Panda3D
Loading...
Searching...
No Matches
dxGraphicsStateGuardian9.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "dxGraphicsStateGuardian9.h"
#include "config_dxgsg9.h"
#include "displayRegion.h"
#include "renderBuffer.h"
#include "geom.h"
#include "graphicsWindow.h"
#include "graphicsEngine.h"
#include "lens.h"
#include "ambientLight.h"
#include "directionalLight.h"
#include "pointLight.h"
#include "spotlight.h"
#include "textureAttrib.h"
#include "texGenAttrib.h"
#include "shadeModelAttrib.h"
#include "cullFaceAttrib.h"
#include "transparencyAttrib.h"
#include "alphaTestAttrib.h"
#include "depthTestAttrib.h"
#include "depthWriteAttrib.h"
#include "colorWriteAttrib.h"
#include "texMatrixAttrib.h"
#include "materialAttrib.h"
#include "renderModeAttrib.h"
#include "rescaleNormalAttrib.h"
#include "fogAttrib.h"
#include "depthOffsetAttrib.h"
#include "lightAttrib.h"
#include "stencilAttrib.h"
#include "scissorAttrib.h"
#include "clipPlaneAttrib.h"
#include "fog.h"
#include "throw_event.h"
#include "geomVertexFormat.h"
#include "geomVertexData.h"
#include "geomTriangles.h"
#include "geomTristrips.h"
#include "geomTrifans.h"
#include "geomLines.h"
#include "geomLinestrips.h"
#include "geomPoints.h"
#include "geomVertexReader.h"
#include "dxGeomMunger9.h"
#include "config_gobj.h"
#include "dxVertexBufferContext9.h"
#include "dxIndexBufferContext9.h"
#include "dxOcclusionQueryContext9.h"
#include "pStatTimer.h"
#include "pStatCollector.h"
#include "wdxGraphicsBuffer9.h"
#include "config_pgraph.h"
#include "shaderGenerator.h"
#include <mmsystem.h>
#include <dxsdkver.h>

Go to the source code of this file.

Macros

#define __D3DLIGHT_RANGE_MAX   ((PN_stdfloat)sqrt(FLT_MAX))
 
#define CHECK_COMPRESSED_FMT(mode, fmt)
 
#define DIRECTX_SDK_VERSION   SDK_VERSION (_DXSDK_PRODUCT_MAJOR, _DXSDK_PRODUCT_MINOR) << "." << SDK_VERSION (_DXSDK_BUILD_MAJOR, _DXSDK_BUILD_MINOR)
 
#define GAMMA_1   (255.0 * 256.0)
 
#define MY_D3DRGBA(r, g, b, a)
 
#define SDK_VERSION(major, minor)
 
#define tostring(x)
 
#define TOTAL_RENDER_TO_TEXTURE_FORMATS   3
 

Typedefs

typedef std::string KEY
 
typedef struct _KEY_ELEMENT KEY_ELEMENT
 
typedef struct _KEY_LIST KEY_LIST
 

Functions

void _create_gamma_table_dx9 (PN_stdfloat gamma, unsigned short *original_red_table, unsigned short *original_green_table, unsigned short *original_blue_table, unsigned short *red_table, unsigned short *green_table, unsigned short *blue_table)
 
KEY_ELEMENT * add_to_key_list (KEY key, KEY_LIST *key_list)
 
void delete_key_list (KEY_LIST *key_list)
 
KEY_ELEMENT * first_key_element (KEY_LIST *key_list)
 
KEY_ELEMENT * new_key_element (KEY key, KEY_LIST *key_list)
 
KEY_LIST * new_key_list (void)
 
KEY_ELEMENT * next_key_element (KEY_ELEMENT *key_element)
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
mike
Date
1999-02-02
Author
fperazzi, PandaSE
Date
2010-05-05

Definition in file dxGraphicsStateGuardian9.cxx.

Macro Definition Documentation

◆ __D3DLIGHT_RANGE_MAX

#define __D3DLIGHT_RANGE_MAX   ((PN_stdfloat)sqrt(FLT_MAX))

Definition at line 95 of file dxGraphicsStateGuardian9.cxx.

◆ CHECK_COMPRESSED_FMT

#define CHECK_COMPRESSED_FMT ( mode,
fmt )
Value:
if (_screen->_supported_tex_formats_mask & fmt##_FLAG) {\
if (dxgsg9_cat.is_debug()) {\
dxgsg9_cat.debug() << "Compressed texture format " << #fmt << " supported\n";\
}\
_supports_compressed_texture = true;\
_compressed_texture_formats.set_bit(Texture::mode);\
}

◆ DIRECTX_SDK_VERSION

#define DIRECTX_SDK_VERSION   SDK_VERSION (_DXSDK_PRODUCT_MAJOR, _DXSDK_PRODUCT_MINOR) << "." << SDK_VERSION (_DXSDK_BUILD_MAJOR, _DXSDK_BUILD_MINOR)

Definition at line 78 of file dxGraphicsStateGuardian9.cxx.

◆ GAMMA_1

#define GAMMA_1   (255.0 * 256.0)

Definition at line 5312 of file dxGraphicsStateGuardian9.cxx.

◆ MY_D3DRGBA

#define MY_D3DRGBA ( r,
g,
b,
a )
Value:
((D3DCOLOR) D3DCOLOR_COLORVALUE(r, g, b, a))

Definition at line 97 of file dxGraphicsStateGuardian9.cxx.

◆ SDK_VERSION

#define SDK_VERSION ( major,
minor )
Value:
tostring(major) << "." << tostring(minor)

Definition at line 77 of file dxGraphicsStateGuardian9.cxx.

◆ tostring

#define tostring ( x)
Value:
#x

Definition at line 76 of file dxGraphicsStateGuardian9.cxx.

Typedef Documentation

◆ KEY

typedef std::string KEY

Definition at line 5523 of file dxGraphicsStateGuardian9.cxx.

Function Documentation

◆ _create_gamma_table_dx9()

void _create_gamma_table_dx9 ( PN_stdfloat gamma,
unsigned short * original_red_table,
unsigned short * original_green_table,
unsigned short * original_blue_table,
unsigned short * red_table,
unsigned short * green_table,
unsigned short * blue_table )

Definition at line 5318 of file dxGraphicsStateGuardian9.cxx.

◆ add_to_key_list()

KEY_ELEMENT * add_to_key_list ( KEY key,
KEY_LIST * key_list )

Definition at line 5596 of file dxGraphicsStateGuardian9.cxx.

◆ delete_key_list()

void delete_key_list ( KEY_LIST * key_list)

Definition at line 5567 of file dxGraphicsStateGuardian9.cxx.

◆ first_key_element()

KEY_ELEMENT * first_key_element ( KEY_LIST * key_list)

Definition at line 5557 of file dxGraphicsStateGuardian9.cxx.

◆ new_key_element()

KEY_ELEMENT * new_key_element ( KEY key,
KEY_LIST * key_list )

Definition at line 5542 of file dxGraphicsStateGuardian9.cxx.

◆ new_key_list()

KEY_LIST * new_key_list ( void )

Definition at line 5586 of file dxGraphicsStateGuardian9.cxx.

◆ next_key_element()

KEY_ELEMENT * next_key_element ( KEY_ELEMENT * key_element)

Definition at line 5562 of file dxGraphicsStateGuardian9.cxx.