Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
WW3D Class Reference

#include <ww3d.h>

Public Types

enum  PrelitModeEnum { PRELIT_MODE_VERTEX , PRELIT_MODE_LIGHTMAP_MULTI_PASS , PRELIT_MODE_LIGHTMAP_MULTI_TEXTURE }
 
enum  MeshDrawModeEnum {
  MESH_DRAW_MODE_OLD , MESH_DRAW_MODE_NEW , MESH_DRAW_MODE_DEBUG_DRAW , MESH_DRAW_MODE_DEBUG_CLIP ,
  MESH_DRAW_MODE_DEBUG_BOX , MESH_DRAW_MODE_NONE , MESH_DRAW_MODE_DX8_ONLY
}
 
enum  NPatchesGapFillingModeEnum { NPATCHES_GAP_FILLING_DISABLED , NPATCHES_GAP_FILLING_ENABLED , NPATCHES_GAP_FILLING_FORCE }
 
enum  ScreenShotFormatEnum { TGA , BMP }
 

Static Public Member Functions

static WW3DErrorType Init (void *hwnd, char *defaultpal=NULL, bool lite=false)
 
static WW3DErrorType Shutdown (void)
 
static bool Is_Initted (void)
 
static const int Get_Render_Device_Count (void)
 
static const char * Get_Render_Device_Name (int device_index)
 
static const RenderDeviceDescClassGet_Render_Device_Desc (int device=-1)
 
static int Get_Render_Device (void)
 
static WW3DErrorType Set_Render_Device (int dev=-1, int resx=-1, int resy=-1, int bits=-1, int windowed=-1, bool resize_window=false, bool reset_device=false, bool restore_assets=true)
 
static WW3DErrorType Set_Render_Device (const char *dev_name, int resx=-1, int resy=-1, int bits=-1, int windowed=-1, bool resize_window=false)
 
static WW3DErrorType Set_Next_Render_Device (void)
 
static WW3DErrorType Set_Any_Render_Device (void)
 
static void Get_Pixel_Center (float &x, float &y)
 
static void Get_Render_Target_Resolution (int &set_w, int &set_h, int &get_bits, bool &get_windowed)
 
static void Get_Device_Resolution (int &set_w, int &set_h, int &get_bits, bool &get_windowed)
 
static WW3DErrorType Set_Device_Resolution (int w=-1, int h=-1, int bits=-1, int windowed=-1, bool resize_window=false)
 
static bool Is_Windowed (void)
 
static WW3DErrorType Toggle_Windowed (void)
 
static void Set_Window (void *hwnd)
 
static void * Get_Window (void)
 
static WW3DErrorType On_Activate_App (void)
 
static WW3DErrorType On_Deactivate_App (void)
 
static WW3DErrorType Registry_Save_Render_Device (const char *sub_key)
 
static WW3DErrorType Registry_Save_Render_Device (const char *sub_key, int device, int width, int height, int depth, bool windowed, int texture_depth)
 
static WW3DErrorType Registry_Load_Render_Device (const char *sub_key, bool resize_window=false)
 
static bool Registry_Load_Render_Device (const char *sub_key, char *device, int device_len, int &width, int &height, int &depth, int &windowed, int &texture_depth)
 
static void Set_Texture_Filter (int filter)
 
static int Get_Texture_Filter ()
 
static WW3DErrorType Begin_Render (bool clear=false, bool clearz=true, const Vector3 &color=Vector3(0, 0, 0), float dest_alpha=0.0f, void(*network_callback)(void)=NULL)
 
static WW3DErrorType Render (const LayerListClass &layerlist)
 
static WW3DErrorType Render (const LayerClass &layer)
 
static WW3DErrorType Render (SceneClass *scene, CameraClass *cam, bool clear=false, bool clearz=false, const Vector3 &color=Vector3(0, 0, 0))
 
static WW3DErrorType Render (RenderObjClass &obj, RenderInfoClass &rinfo)
 
static void Flush (RenderInfoClass &rinfo)
 
static WW3DErrorType End_Render (bool flip_frame=true)
 
static bool Is_Rendering (void)
 
static void Flip_To_Primary (void)
 
static void Sync (unsigned int sync_time)
 
static unsigned int Get_Sync_Time (void)
 
static unsigned int Get_Frame_Time (void)
 
static unsigned int Get_Frame_Count (void)
 
static unsigned int Get_Last_Frame_Poly_Count (void)
 
static unsigned int Get_Last_Frame_Vertex_Count (void)
 
static void Make_Screen_Shot (const char *filename="ScreenShot", const float gamma=1.3f, const ScreenShotFormatEnum format=TGA)
 
static void Start_Movie_Capture (const char *filename_base="Movie", float frame_rate=15)
 
static void Stop_Movie_Capture (void)
 
static void Toggle_Movie_Capture (const char *filename_base="Movie", float frame_rate=15)
 
static void Start_Single_Frame_Movie_Capture (const char *filename_base="Frames")
 
static void Capture_Next_Movie_Frame ()
 
static void Update_Movie_Capture (void)
 
static float Get_Movie_Capture_Frame_Rate (void)
 
static void Pause_Movie (bool mode)
 
static bool Is_Movie_Paused ()
 
static bool Is_Recording_Next_Frame ()
 
static bool Is_Movie_Ready ()
 
static void Set_Ext_Swap_Interval (long swap)
 
static long Get_Ext_Swap_Interval (void)
 
static void Set_Texture_Reduction (int value, int min_dim=1)
 
static int Get_Texture_Reduction (void)
 
static int Get_Texture_Min_Dimension (void)
 
static void Enable_Large_Texture_Extra_Reduction (bool onoff)
 
static bool Is_Large_Texture_Extra_Reduction_Enabled (void)
 
static void _Invalidate_Mesh_Cache ()
 
static void _Invalidate_Textures ()
 
static void Set_Thumbnail_Enabled (bool b)
 
static bool Get_Thumbnail_Enabled ()
 
static void Enable_Sorting (bool onoff)
 
static bool Is_Sorting_Enabled (void)
 
static void Set_Screen_UV_Bias (bool onoff)
 
static bool Is_Screen_UV_Biased (void)
 
static void Set_Collision_Box_Display_Mask (int mask)
 
static int Get_Collision_Box_Display_Mask (void)
 
static void Set_Default_Native_Screen_Size (float dnss)
 
static float Get_Default_Native_Screen_Size (void)
 
static void Normalize_Coordinates (int x, int y, float &fx, float &fy)
 
static VertexMaterialClassPeek_Default_Debug_Material (void)
 
static ShaderClass Peek_Default_Debug_Shader (void)
 
static ShaderClass Peek_Backface_Debug_Shader (void)
 
static ShaderClass Peek_Lightmap_Debug_Shader (void)
 
static void Set_Prelit_Mode (PrelitModeEnum mode)
 
static PrelitModeEnum Get_Prelit_Mode ()
 
static bool Supports_Prelit_Mode (PrelitModeEnum mode)
 
static void Expose_Prelit (bool onoff)
 
static bool Expose_Prelit ()
 
static void Set_Texture_Bitdepth (int bitdepth)
 
static int Get_Texture_Bitdepth ()
 
static void Set_Mesh_Draw_Mode (MeshDrawModeEnum mode)
 
static MeshDrawModeEnum Get_Mesh_Draw_Mode ()
 
static void Set_NPatches_Gap_Filling_Mode (NPatchesGapFillingModeEnum mode)
 
static NPatchesGapFillingModeEnum Get_NPatches_Gap_Filling_Mode ()
 
static void Set_NPatches_Level (unsigned level)
 
static unsigned Get_NPatches_Level ()
 
static void Enable_Texturing (bool b)
 
static bool Is_Texturing_Enabled ()
 
static bool Is_Coloring_Enabled ()
 
static void Enable_Coloring (unsigned int color)
 when non-zero color is passed, it will override vertex colors
 
static int Get_Last_Frame_Memory_Allocation_Count ()
 
static int Get_Last_Frame_Memory_Free_Count ()
 
static void Enable_Decals (bool onoff)
 
static bool Are_Decals_Enabled (void)
 
static void Set_Decal_Rejection_Distance (float d)
 
static float Get_Decal_Rejection_Distance (void)
 
static void Enable_Static_Sort_Lists (bool onoff)
 
static bool Are_Static_Sort_Lists_Enabled (void)
 
static void Enable_Munge_Sort_On_Load (bool onoff)
 
static bool Is_Munge_Sort_On_Load_Enabled (void)
 
static void Add_To_Static_Sort_List (RenderObjClass *robj, unsigned int sort_level)
 
static void Render_And_Clear_Static_Sort_Lists (RenderInfoClass &rinfo)
 
static void Override_Current_Static_Sort_Lists (StaticSortListClass *sort_list)
 
static void Reset_Current_Static_Sort_Lists_To_Default (void)
 
static void Enable_Overbright_Modify_On_Load (bool onoff)
 
static bool Is_Overbright_Modify_On_Load_Enabled (void)
 
static bool Is_Snapshot_Activated ()
 
static void Activate_Snapshot (bool b)
 
static void Set_Gamma (float gamma, float bright, float contrast, bool calibrate=true)
 

Static Public Attributes

static long UserStat0 = 0
 
static long UserStat1 = 0
 
static long UserStat2 = 0
 

Detailed Description

WW3D

This is the collection of static functions and data which initialize and control the behavior of the WW3D library.

Definition at line 77 of file ww3d.h.

Member Enumeration Documentation

◆ MeshDrawModeEnum

Enumerator
MESH_DRAW_MODE_OLD 
MESH_DRAW_MODE_NEW 
MESH_DRAW_MODE_DEBUG_DRAW 
MESH_DRAW_MODE_DEBUG_CLIP 
MESH_DRAW_MODE_DEBUG_BOX 
MESH_DRAW_MODE_NONE 
MESH_DRAW_MODE_DX8_ONLY 

Definition at line 87 of file ww3d.h.

◆ NPatchesGapFillingModeEnum

Enumerator
NPATCHES_GAP_FILLING_DISABLED 
NPATCHES_GAP_FILLING_ENABLED 
NPATCHES_GAP_FILLING_FORCE 

Definition at line 97 of file ww3d.h.

◆ PrelitModeEnum

Enumerator
PRELIT_MODE_VERTEX 
PRELIT_MODE_LIGHTMAP_MULTI_PASS 
PRELIT_MODE_LIGHTMAP_MULTI_TEXTURE 

Definition at line 81 of file ww3d.h.

◆ ScreenShotFormatEnum

Enumerator
TGA 
BMP 

Definition at line 103 of file ww3d.h.

Member Function Documentation

◆ _Invalidate_Mesh_Cache()

void WW3D::_Invalidate_Mesh_Cache ( )
static

Definition at line 749 of file ww3d.cpp.

◆ _Invalidate_Textures()

void WW3D::_Invalidate_Textures ( )
static

Definition at line 754 of file ww3d.cpp.

◆ Activate_Snapshot()

static void WW3D::Activate_Snapshot ( bool b)
inlinestatic

Definition at line 299 of file ww3d.h.

◆ Add_To_Static_Sort_List()

void WW3D::Add_To_Static_Sort_List ( RenderObjClass * robj,
unsigned int sort_level )
static

Definition at line 1984 of file ww3d.cpp.

◆ Are_Decals_Enabled()

static bool WW3D::Are_Decals_Enabled ( void )
inlinestatic

Definition at line 270 of file ww3d.h.

◆ Are_Static_Sort_Lists_Enabled()

static bool WW3D::Are_Static_Sort_Lists_Enabled ( void )
inlinestatic

Definition at line 282 of file ww3d.h.

◆ Begin_Render()

WW3DErrorType WW3D::Begin_Render ( bool clear = false,
bool clearz = true,
const Vector3 & color = Vector3(0,0,0),
float dest_alpha = 0.0f,
void(* network_callback )(void) = NULL )
static

Definition at line 791 of file ww3d.cpp.

◆ Capture_Next_Movie_Frame()

void WW3D::Capture_Next_Movie_Frame ( )
static

Definition at line 1584 of file ww3d.cpp.

◆ Enable_Coloring()

void WW3D::Enable_Coloring ( unsigned int color)
static

when non-zero color is passed, it will override vertex colors

Definition at line 1777 of file ww3d.cpp.

◆ Enable_Decals()

static void WW3D::Enable_Decals ( bool onoff)
inlinestatic

Definition at line 269 of file ww3d.h.

◆ Enable_Large_Texture_Extra_Reduction()

void WW3D::Enable_Large_Texture_Extra_Reduction ( bool onoff)
static

Definition at line 1816 of file ww3d.cpp.

◆ Enable_Munge_Sort_On_Load()

static void WW3D::Enable_Munge_Sort_On_Load ( bool onoff)
inlinestatic

Definition at line 283 of file ww3d.h.

◆ Enable_Overbright_Modify_On_Load()

static void WW3D::Enable_Overbright_Modify_On_Load ( bool onoff)
inlinestatic

Definition at line 295 of file ww3d.h.

◆ Enable_Sorting()

void WW3D::Enable_Sorting ( bool onoff)
static

Definition at line 1999 of file ww3d.cpp.

◆ Enable_Static_Sort_Lists()

static void WW3D::Enable_Static_Sort_Lists ( bool onoff)
inlinestatic

Definition at line 281 of file ww3d.h.

◆ Enable_Texturing()

void WW3D::Enable_Texturing ( bool b)
static

Definition at line 1770 of file ww3d.cpp.

◆ End_Render()

WW3DErrorType WW3D::End_Render ( bool flip_frame = true)
static

Definition at line 1082 of file ww3d.cpp.

◆ Expose_Prelit() [1/2]

static bool WW3D::Expose_Prelit ( )
inlinestatic

Definition at line 242 of file ww3d.h.

◆ Expose_Prelit() [2/2]

static void WW3D::Expose_Prelit ( bool onoff)
inlinestatic

Definition at line 241 of file ww3d.h.

◆ Flip_To_Primary()

void WW3D::Flip_To_Primary ( void )
static

Definition at line 1139 of file ww3d.cpp.

◆ Flush()

void WW3D::Flush ( RenderInfoClass & rinfo)
static

Definition at line 1059 of file ww3d.cpp.

◆ Get_Collision_Box_Display_Mask()

int WW3D::Get_Collision_Box_Display_Mask ( void )
static

Definition at line 1252 of file ww3d.cpp.

◆ Get_Decal_Rejection_Distance()

static float WW3D::Get_Decal_Rejection_Distance ( void )
inlinestatic

Definition at line 272 of file ww3d.h.

◆ Get_Default_Native_Screen_Size()

static float WW3D::Get_Default_Native_Screen_Size ( void )
inlinestatic

Definition at line 229 of file ww3d.h.

◆ Get_Device_Resolution()

void WW3D::Get_Device_Resolution ( int & set_w,
int & set_h,
int & get_bits,
bool & get_windowed )
static

Definition at line 670 of file ww3d.cpp.

◆ Get_Ext_Swap_Interval()

long WW3D::Get_Ext_Swap_Interval ( void )
static

Definition at line 1217 of file ww3d.cpp.

◆ Get_Frame_Count()

static unsigned int WW3D::Get_Frame_Count ( void )
inlinestatic

Definition at line 174 of file ww3d.h.

◆ Get_Frame_Time()

static unsigned int WW3D::Get_Frame_Time ( void )
inlinestatic

Definition at line 173 of file ww3d.h.

◆ Get_Last_Frame_Memory_Allocation_Count()

static int WW3D::Get_Last_Frame_Memory_Allocation_Count ( )
inlinestatic

Definition at line 261 of file ww3d.h.

◆ Get_Last_Frame_Memory_Free_Count()

static int WW3D::Get_Last_Frame_Memory_Free_Count ( )
inlinestatic

Definition at line 262 of file ww3d.h.

◆ Get_Last_Frame_Poly_Count()

unsigned int WW3D::Get_Last_Frame_Poly_Count ( void )
static

Definition at line 1157 of file ww3d.cpp.

◆ Get_Last_Frame_Vertex_Count()

unsigned int WW3D::Get_Last_Frame_Vertex_Count ( void )
static

Definition at line 1162 of file ww3d.cpp.

◆ Get_Mesh_Draw_Mode()

static MeshDrawModeEnum WW3D::Get_Mesh_Draw_Mode ( )
inlinestatic

Definition at line 248 of file ww3d.h.

◆ Get_Movie_Capture_Frame_Rate()

float WW3D::Get_Movie_Capture_Frame_Rate ( void )
static

Definition at line 1737 of file ww3d.cpp.

◆ Get_NPatches_Gap_Filling_Mode()

static NPatchesGapFillingModeEnum WW3D::Get_NPatches_Gap_Filling_Mode ( )
inlinestatic

Definition at line 251 of file ww3d.h.

◆ Get_NPatches_Level()

static unsigned WW3D::Get_NPatches_Level ( )
inlinestatic

Definition at line 254 of file ww3d.h.

◆ Get_Pixel_Center()

void WW3D::Get_Pixel_Center ( float & x,
float & y )
static

Definition at line 1947 of file ww3d.cpp.

◆ Get_Prelit_Mode()

static PrelitModeEnum WW3D::Get_Prelit_Mode ( )
inlinestatic

Definition at line 239 of file ww3d.h.

◆ Get_Render_Device()

int WW3D::Get_Render_Device ( void )
static

Definition at line 550 of file ww3d.cpp.

◆ Get_Render_Device_Count()

const int WW3D::Get_Render_Device_Count ( void )
static

Definition at line 589 of file ww3d.cpp.

◆ Get_Render_Device_Desc()

const RenderDeviceDescClass & WW3D::Get_Render_Device_Desc ( int device = -1)
static

Definition at line 569 of file ww3d.cpp.

◆ Get_Render_Device_Name()

const char * WW3D::Get_Render_Device_Name ( int device_index)
static

Definition at line 608 of file ww3d.cpp.

◆ Get_Render_Target_Resolution()

void WW3D::Get_Render_Target_Resolution ( int & set_w,
int & set_h,
int & get_bits,
bool & get_windowed )
static

Definition at line 651 of file ww3d.cpp.

◆ Get_Sync_Time()

static unsigned int WW3D::Get_Sync_Time ( void )
inlinestatic

Definition at line 172 of file ww3d.h.

◆ Get_Texture_Bitdepth()

int WW3D::Get_Texture_Bitdepth ( )
static

Definition at line 1979 of file ww3d.cpp.

◆ Get_Texture_Filter()

static int WW3D::Get_Texture_Filter ( )
inlinestatic

Definition at line 143 of file ww3d.h.

◆ Get_Texture_Min_Dimension()

int WW3D::Get_Texture_Min_Dimension ( void )
static

Definition at line 1811 of file ww3d.cpp.

◆ Get_Texture_Reduction()

int WW3D::Get_Texture_Reduction ( void )
static

Definition at line 1794 of file ww3d.cpp.

◆ Get_Thumbnail_Enabled()

static bool WW3D::Get_Thumbnail_Enabled ( )
inlinestatic

Definition at line 217 of file ww3d.h.

◆ Get_Window()

void * WW3D::Get_Window ( void )
static

Definition at line 489 of file ww3d.cpp.

◆ Init()

WW3DErrorType WW3D::Init ( void * hwnd,
char * defaultpal = NULL,
bool lite = false )
static

Definition at line 268 of file ww3d.cpp.

◆ Is_Coloring_Enabled()

static bool WW3D::Is_Coloring_Enabled ( )
inlinestatic

Definition at line 258 of file ww3d.h.

◆ Is_Initted()

static bool WW3D::Is_Initted ( void )
inlinestatic

Definition at line 111 of file ww3d.h.

◆ Is_Large_Texture_Extra_Reduction_Enabled()

bool WW3D::Is_Large_Texture_Extra_Reduction_Enabled ( void )
static

Definition at line 1824 of file ww3d.cpp.

◆ Is_Movie_Paused()

bool WW3D::Is_Movie_Paused ( )
static

Definition at line 1620 of file ww3d.cpp.

◆ Is_Movie_Ready()

bool WW3D::Is_Movie_Ready ( )
static

Definition at line 1656 of file ww3d.cpp.

◆ Is_Munge_Sort_On_Load_Enabled()

static bool WW3D::Is_Munge_Sort_On_Load_Enabled ( void )
inlinestatic

Definition at line 284 of file ww3d.h.

◆ Is_Overbright_Modify_On_Load_Enabled()

static bool WW3D::Is_Overbright_Modify_On_Load_Enabled ( void )
inlinestatic

Definition at line 296 of file ww3d.h.

◆ Is_Recording_Next_Frame()

bool WW3D::Is_Recording_Next_Frame ( )
static

Definition at line 1638 of file ww3d.cpp.

◆ Is_Rendering()

static bool WW3D::Is_Rendering ( void )
inlinestatic

Definition at line 161 of file ww3d.h.

◆ Is_Screen_UV_Biased()

static bool WW3D::Is_Screen_UV_Biased ( void )
inlinestatic

Definition at line 223 of file ww3d.h.

◆ Is_Snapshot_Activated()

static bool WW3D::Is_Snapshot_Activated ( )
inlinestatic

Definition at line 298 of file ww3d.h.

◆ Is_Sorting_Enabled()

static bool WW3D::Is_Sorting_Enabled ( void )
inlinestatic

Definition at line 220 of file ww3d.h.

◆ Is_Texturing_Enabled()

static bool WW3D::Is_Texturing_Enabled ( )
inlinestatic

Definition at line 257 of file ww3d.h.

◆ Is_Windowed()

bool WW3D::Is_Windowed ( void )
static

Definition at line 506 of file ww3d.cpp.

◆ Make_Screen_Shot()

void WW3D::Make_Screen_Shot ( const char * filename = "ScreenShot",
const float gamma = 1.3f,
const ScreenShotFormatEnum format = TGA )
static

Definition at line 1298 of file ww3d.cpp.

◆ Normalize_Coordinates()

void WW3D::Normalize_Coordinates ( int x,
int y,
float & fx,
float & fy )
static

Definition at line 1273 of file ww3d.cpp.

◆ On_Activate_App()

WW3DErrorType WW3D::On_Activate_App ( void )
static

Definition at line 1941 of file ww3d.cpp.

◆ On_Deactivate_App()

WW3DErrorType WW3D::On_Deactivate_App ( void )
static

Definition at line 1932 of file ww3d.cpp.

◆ Override_Current_Static_Sort_Lists()

void WW3D::Override_Current_Static_Sort_Lists ( StaticSortListClass * sort_list)
static

Definition at line 2007 of file ww3d.cpp.

◆ Pause_Movie()

void WW3D::Pause_Movie ( bool mode)
static

Definition at line 1602 of file ww3d.cpp.

◆ Peek_Backface_Debug_Shader()

static ShaderClass WW3D::Peek_Backface_Debug_Shader ( void )
static

◆ Peek_Default_Debug_Material()

VertexMaterialClass * WW3D::Peek_Default_Debug_Material ( void )
static

Definition at line 1841 of file ww3d.cpp.

◆ Peek_Default_Debug_Shader()

ShaderClass WW3D::Peek_Default_Debug_Shader ( void )
static

Definition at line 1863 of file ww3d.cpp.

◆ Peek_Lightmap_Debug_Shader()

ShaderClass WW3D::Peek_Lightmap_Debug_Shader ( void )
static

Definition at line 1880 of file ww3d.cpp.

◆ Registry_Load_Render_Device() [1/2]

WW3DErrorType WW3D::Registry_Load_Render_Device ( const char * sub_key,
bool resize_window = false )
static

Definition at line 734 of file ww3d.cpp.

◆ Registry_Load_Render_Device() [2/2]

bool WW3D::Registry_Load_Render_Device ( const char * sub_key,
char * device,
int device_len,
int & width,
int & height,
int & depth,
int & windowed,
int & texture_depth )
static

Definition at line 744 of file ww3d.cpp.

◆ Registry_Save_Render_Device() [1/2]

WW3DErrorType WW3D::Registry_Save_Render_Device ( const char * sub_key)
static

Definition at line 689 of file ww3d.cpp.

◆ Registry_Save_Render_Device() [2/2]

WW3DErrorType WW3D::Registry_Save_Render_Device ( const char * sub_key,
int device,
int width,
int height,
int depth,
bool windowed,
int texture_depth )
static

Definition at line 711 of file ww3d.cpp.

◆ Render() [1/4]

WW3DErrorType WW3D::Render ( const LayerClass & layer)
static

Definition at line 911 of file ww3d.cpp.

◆ Render() [2/4]

WW3DErrorType WW3D::Render ( const LayerListClass & layerlist)
static

Definition at line 876 of file ww3d.cpp.

◆ Render() [3/4]

WW3DErrorType WW3D::Render ( RenderObjClass & obj,
RenderInfoClass & rinfo )
static

Definition at line 1000 of file ww3d.cpp.

◆ Render() [4/4]

WW3DErrorType WW3D::Render ( SceneClass * scene,
CameraClass * cam,
bool clear = false,
bool clearz = false,
const Vector3 & color = Vector3(0,0,0) )
static

Definition at line 935 of file ww3d.cpp.

◆ Render_And_Clear_Static_Sort_Lists()

void WW3D::Render_And_Clear_Static_Sort_Lists ( RenderInfoClass & rinfo)
static

Definition at line 1989 of file ww3d.cpp.

◆ Reset_Current_Static_Sort_Lists_To_Default()

void WW3D::Reset_Current_Static_Sort_Lists_To_Default ( void )
static

Definition at line 2017 of file ww3d.cpp.

◆ Set_Any_Render_Device()

WW3DErrorType WW3D::Set_Any_Render_Device ( void )
static

Definition at line 421 of file ww3d.cpp.

◆ Set_Collision_Box_Display_Mask()

void WW3D::Set_Collision_Box_Display_Mask ( int mask)
static

Definition at line 1235 of file ww3d.cpp.

◆ Set_Decal_Rejection_Distance()

static void WW3D::Set_Decal_Rejection_Distance ( float d)
inlinestatic

Definition at line 271 of file ww3d.h.

◆ Set_Default_Native_Screen_Size()

static void WW3D::Set_Default_Native_Screen_Size ( float dnss)
inlinestatic

Definition at line 228 of file ww3d.h.

◆ Set_Device_Resolution()

WW3DErrorType WW3D::Set_Device_Resolution ( int w = -1,
int h = -1,
int bits = -1,
int windowed = -1,
bool resize_window = false )
static

Definition at line 626 of file ww3d.cpp.

◆ Set_Ext_Swap_Interval()

void WW3D::Set_Ext_Swap_Interval ( long swap)
static

Definition at line 1199 of file ww3d.cpp.

◆ Set_Gamma()

void WW3D::Set_Gamma ( float gamma,
float bright,
float contrast,
bool calibrate = true )
static

Definition at line 2022 of file ww3d.cpp.

◆ Set_Mesh_Draw_Mode()

static void WW3D::Set_Mesh_Draw_Mode ( MeshDrawModeEnum mode)
inlinestatic

Definition at line 247 of file ww3d.h.

◆ Set_Next_Render_Device()

WW3DErrorType WW3D::Set_Next_Render_Device ( void )
static

Definition at line 467 of file ww3d.cpp.

◆ Set_NPatches_Gap_Filling_Mode()

void WW3D::Set_NPatches_Gap_Filling_Mode ( NPatchesGapFillingModeEnum mode)
static

Definition at line 239 of file ww3d.cpp.

◆ Set_NPatches_Level()

void WW3D::Set_NPatches_Level ( unsigned level)
static

Definition at line 247 of file ww3d.cpp.

◆ Set_Prelit_Mode()

static void WW3D::Set_Prelit_Mode ( PrelitModeEnum mode)
inlinestatic

Definition at line 238 of file ww3d.h.

◆ Set_Render_Device() [1/2]

WW3DErrorType WW3D::Set_Render_Device ( const char * dev_name,
int resx = -1,
int resy = -1,
int bits = -1,
int windowed = -1,
bool resize_window = false )
static

Definition at line 398 of file ww3d.cpp.

◆ Set_Render_Device() [2/2]

WW3DErrorType WW3D::Set_Render_Device ( int dev = -1,
int resx = -1,
int resy = -1,
int bits = -1,
int windowed = -1,
bool resize_window = false,
bool reset_device = false,
bool restore_assets = true )
static

Definition at line 444 of file ww3d.cpp.

◆ Set_Screen_UV_Bias()

static void WW3D::Set_Screen_UV_Bias ( bool onoff)
inlinestatic

Definition at line 222 of file ww3d.h.

◆ Set_Texture_Bitdepth()

void WW3D::Set_Texture_Bitdepth ( int bitdepth)
static

Definition at line 1974 of file ww3d.cpp.

◆ Set_Texture_Filter()

void WW3D::Set_Texture_Filter ( int filter)
static

Definition at line 770 of file ww3d.cpp.

◆ Set_Texture_Reduction()

void WW3D::Set_Texture_Reduction ( int value,
int min_dim = 1 )
static

Definition at line 1760 of file ww3d.cpp.

◆ Set_Thumbnail_Enabled()

static void WW3D::Set_Thumbnail_Enabled ( bool b)
inlinestatic

Definition at line 216 of file ww3d.h.

◆ Set_Window()

static void WW3D::Set_Window ( void * hwnd)
static

◆ Shutdown()

WW3DErrorType WW3D::Shutdown ( void )
static

Definition at line 332 of file ww3d.cpp.

◆ Start_Movie_Capture()

void WW3D::Start_Movie_Capture ( const char * filename_base = "Movie",
float frame_rate = 15 )
static

Definition at line 1474 of file ww3d.cpp.

◆ Start_Single_Frame_Movie_Capture()

void WW3D::Start_Single_Frame_Movie_Capture ( const char * filename_base = "Frames")
static

Definition at line 1566 of file ww3d.cpp.

◆ Stop_Movie_Capture()

void WW3D::Stop_Movie_Capture ( void )
static

Definition at line 1517 of file ww3d.cpp.

◆ Supports_Prelit_Mode()

static bool WW3D::Supports_Prelit_Mode ( PrelitModeEnum mode)
inlinestatic

Definition at line 240 of file ww3d.h.

◆ Sync()

void WW3D::Sync ( unsigned int sync_time)
static

Definition at line 1180 of file ww3d.cpp.

◆ Toggle_Movie_Capture()

void WW3D::Toggle_Movie_Capture ( const char * filename_base = "Movie",
float frame_rate = 15 )
static

Definition at line 1544 of file ww3d.cpp.

◆ Toggle_Windowed()

WW3DErrorType WW3D::Toggle_Windowed ( void )
static

Definition at line 526 of file ww3d.cpp.

◆ Update_Movie_Capture()

void WW3D::Update_Movie_Capture ( void )
static

Definition at line 1675 of file ww3d.cpp.

Member Data Documentation

◆ UserStat0

long WW3D::UserStat0 = 0
static

Definition at line 303 of file ww3d.h.

◆ UserStat1

long WW3D::UserStat1 = 0
static

Definition at line 304 of file ww3d.h.

◆ UserStat2

long WW3D::UserStat2 = 0
static

Definition at line 305 of file ww3d.h.


The documentation for this class was generated from the following files: