CAST II Game Engine

   DESCRIPTION       FEATURES       SCREENSHOTS       FORUMS       DOCUMENTATION       DOWNLOADS       CONTACTS   
Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Enumerations
Variables
Constants
Functions and Procedures
Identifiers

Unit C2DX8Render

Description

CAST Engine DirectX 8 render unit

(C) 2006 George "Mirage" Bakhtadze. www.casteng.com
The source code may be used under either MPL 1.1 or LGPL 2.1 license. See included license.txt file
Unit contains DirectX 8-based renderer classes

Classes, Interfaces and Objects

NameDescription
Class TDX8BuffersDirect X 8 implementation of vertex and index buffers management class
Class TDX8Renderer 
Class TDX8StateWrapper 
Class TDX8Textures 

Functions and Procedures

Overview

function HResultToStr(Res: HResult): string;

Description

function HResultToStr(Res: HResult): string;

 

Types

Overview

PDX8VertexDeclaration = ^TDX8VertexDeclaration;
TDX8IndexBuffer = record BufferSize: Integer; Static: Boolean; Buffer: IDirect3DIndexBuffer8; end;
TDX8VertexBuffer = record VertexSize, BufferSize: Integer; Static: Boolean; Buffer: IDirect3DVertexBuffer8; end;
TDX8VertexDeclaration = array[0..$FFFF] of Cardinal;

Description

PDX8VertexDeclaration = ^TDX8VertexDeclaration;

 

TDX8IndexBuffer = record BufferSize: Integer; Static: Boolean; Buffer: IDirect3DIndexBuffer8; end;

 

TDX8VertexBuffer = record VertexSize, BufferSize: Integer; Static: Boolean; Buffer: IDirect3DVertexBuffer8; end;

 

TDX8VertexDeclaration = array[0..$FFFF] of Cardinal;

D3DVSDT_UBYTE4, D3DVSDT_FLOAT1, D3DVSDT_FLOAT2); // Unsupported by DX8

Constants

Overview

BufferLockFlags : array[Boolean, Boolean] of Cardinal = ((D3DLOCK_NOOVERWRITE*0 or D3DLOCK_DISCARD or 0*D3DLOCK_NOSYSLOCK, D3DLOCK_DISCARD or 0*D3DLOCK_NOSYSLOCK), (0, 0));
BufferUsage : array[Boolean] of Cardinal = (D3DUSAGE_DYNAMIC or D3DUSAGE_WRITEONLY, D3DUSAGE_WRITEONLY);
DeviceTypesEnum = 'Hardware\&Reference\&Software';
dtHAL = 0;
dtREF = 1;
dtSW = 2;
FullScreenWindowStyle = WS_POPUP or WS_VISIBLE;
VertexDataTypeToD3DVSDT : array[vdtFloat1..vdtInt16_4] of Cardinal = (D3DVSDT_FLOAT1, D3DVSDT_FLOAT2, D3DVSDT_FLOAT3, D3DVSDT_FLOAT4, D3DVSDT_D3DCOLOR, D3DVSDT_UBYTE4, D3DVSDT_SHORT2, D3DVSDT_SHORT4);

Description

BufferLockFlags : array[Boolean, Boolean] of Cardinal = ((D3DLOCK_NOOVERWRITE*0 or D3DLOCK_DISCARD or 0*D3DLOCK_NOSYSLOCK, D3DLOCK_DISCARD or 0*D3DLOCK_NOSYSLOCK), (0, 0));

Static buffer usage

BufferUsage : array[Boolean] of Cardinal = (D3DUSAGE_DYNAMIC or D3DUSAGE_WRITEONLY, D3DUSAGE_WRITEONLY);

 

DeviceTypesEnum = 'Hardware\&Reference\&Software';

Device types string enumeration

dtHAL = 0;

Hardware accelerated layer

dtREF = 1;

Reference software rasterizer

dtSW = 2;

Software rasterizer

FullScreenWindowStyle = WS_POPUP or WS_VISIBLE;

 

VertexDataTypeToD3DVSDT : array[vdtFloat1..vdtInt16_4] of Cardinal = (D3DVSDT_FLOAT1, D3DVSDT_FLOAT2, D3DVSDT_FLOAT3, D3DVSDT_FLOAT4, D3DVSDT_D3DCOLOR, D3DVSDT_UBYTE4, D3DVSDT_SHORT2, D3DVSDT_SHORT4);

Discard lock

Last modified: 4 Jul, 2008
Copyright (C) 2006-2008, casteng.com