Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
dx8wrapper.cpp File Reference
#include "dx8wrapper.h"
#include "dx8webbrowser.h"
#include "dx8fvf.h"
#include "dx8vertexbuffer.h"
#include "dx8indexbuffer.h"
#include "dx8renderer.h"
#include "ww3d.h"
#include "camera.h"
#include "wwstring.h"
#include "matrix4.h"
#include "vertmaterial.h"
#include "rddesc.h"
#include "lightenvironment.h"
#include "statistics.h"
#include "registry.h"
#include "boxrobj.h"
#include "pointgr.h"
#include "render2d.h"
#include "sortingrenderer.h"
#include "shattersystem.h"
#include "light.h"
#include "assetmgr.h"
#include "textureloader.h"
#include "missingtexture.h"
#include "thread.h"
#include <stdio.h>
#include <D3dx8core.h>
#include "pot.h"
#include "wwprofile.h"
#include "ffactory.h"
#include "dx8caps.h"
#include "formconv.h"
#include "dx8texman.h"
#include "bound.h"
#include "shdlib.h"

Go to the source code of this file.

Macros

#define WW3D_DEVTYPE   D3DDEVTYPE_HAL
 

Typedefs

typedef IDirect3D8 *(WINAPI * Direct3DCreate8Type) (UINT SDKVersion)
 

Functions

void Log_DX8_ErrorCode (unsigned res)
 
void Non_Fatal_Log_DX8_ErrorCode (unsigned res, const char *file, int line)
 
DWORD F2DW (float f)
 
void DX8_Assert ()
 

Variables

const int DEFAULT_RESOLUTION_WIDTH = 640
 
const int DEFAULT_RESOLUTION_HEIGHT = 480
 
const int DEFAULT_BIT_DEPTH = 32
 
const int DEFAULT_TEXTURE_BIT_DEPTH = 16
 
bool DX8Wrapper_IsWindowed = true
 
int DX8Wrapper_PreserveFPU = 0
 
bool _DX8SingleThreaded = false
 
unsigned number_of_DX8_calls = 0
 
Direct3DCreate8Type Direct3DCreate8Ptr = NULL
 
HINSTANCE D3D8Lib = NULL
 

Macro Definition Documentation

◆ WW3D_DEVTYPE

#define WW3D_DEVTYPE   D3DDEVTYPE_HAL

Definition at line 46 of file dx8wrapper.cpp.

Typedef Documentation

◆ Direct3DCreate8Type

typedef IDirect3D8 *(WINAPI * Direct3DCreate8Type) (UINT SDKVersion)

Definition at line 201 of file dx8wrapper.cpp.

Function Documentation

◆ DX8_Assert()

void DX8_Assert ( )

Definition at line 1676 of file dx8wrapper.cpp.

◆ F2DW()

DWORD F2DW ( float f)
inline

Definition at line 393 of file dx8wrapper.cpp.

◆ Log_DX8_ErrorCode()

void Log_DX8_ErrorCode ( unsigned res)

Definition at line 215 of file dx8wrapper.cpp.

◆ Non_Fatal_Log_DX8_ErrorCode()

void Non_Fatal_Log_DX8_ErrorCode ( unsigned res,
const char * file,
int line )

Definition at line 231 of file dx8wrapper.cpp.

Variable Documentation

◆ _DX8SingleThreaded

bool _DX8SingleThreaded = false

Definition at line 179 of file dx8wrapper.cpp.

◆ D3D8Lib

HINSTANCE D3D8Lib = NULL

Definition at line 203 of file dx8wrapper.cpp.

◆ DEFAULT_BIT_DEPTH

const int DEFAULT_BIT_DEPTH = 32

Definition at line 88 of file dx8wrapper.cpp.

◆ DEFAULT_RESOLUTION_HEIGHT

const int DEFAULT_RESOLUTION_HEIGHT = 480

Definition at line 87 of file dx8wrapper.cpp.

◆ DEFAULT_RESOLUTION_WIDTH

const int DEFAULT_RESOLUTION_WIDTH = 640

Definition at line 86 of file dx8wrapper.cpp.

◆ DEFAULT_TEXTURE_BIT_DEPTH

const int DEFAULT_TEXTURE_BIT_DEPTH = 16

Definition at line 89 of file dx8wrapper.cpp.

◆ Direct3DCreate8Ptr

Direct3DCreate8Type Direct3DCreate8Ptr = NULL

Definition at line 202 of file dx8wrapper.cpp.

◆ DX8Wrapper_IsWindowed

bool DX8Wrapper_IsWindowed = true

Definition at line 91 of file dx8wrapper.cpp.

◆ DX8Wrapper_PreserveFPU

int DX8Wrapper_PreserveFPU = 0

Definition at line 94 of file dx8wrapper.cpp.

◆ number_of_DX8_calls

unsigned number_of_DX8_calls = 0

Definition at line 181 of file dx8wrapper.cpp.