Panda3D
|
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) ((D3DCOLOR) D3DCOLOR_COLORVALUE(r, g, b, a)) |
#define | SDK_VERSION(major, minor) tostring(major) << "." << tostring(minor) |
#define | tostring(x) #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) |
CPT (TransformState) DXGraphicsStateGuardian9 | |
Given a lens, calculates the appropriate projection matrix for use with this gsg. | |
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) |
PT (GeomMunger) DXGraphicsStateGuardian9 | |
Creates a new GeomMunger object to munge vertices appropriate to this GSG for the indicated state. | |
PT (OcclusionQueryContext) DXGraphicsStateGuardian9 | |
Ends a previous call to begin_occlusion_query(). | |
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."
Definition in file dxGraphicsStateGuardian9.cxx.
#define __D3DLIGHT_RANGE_MAX ((PN_stdfloat)sqrt(FLT_MAX)) |
Definition at line 95 of file dxGraphicsStateGuardian9.cxx.
#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) |
Definition at line 78 of file dxGraphicsStateGuardian9.cxx.
#define GAMMA_1 (255.0 * 256.0) |
Definition at line 5303 of file dxGraphicsStateGuardian9.cxx.
#define MY_D3DRGBA | ( | r, | |
g, | |||
b, | |||
a ) ((D3DCOLOR) D3DCOLOR_COLORVALUE(r, g, b, a)) |
Definition at line 97 of file dxGraphicsStateGuardian9.cxx.
#define SDK_VERSION | ( | major, | |
minor ) tostring(major) << "." << tostring(minor) |
Definition at line 77 of file dxGraphicsStateGuardian9.cxx.
#define tostring | ( | x | ) | #x |
Definition at line 76 of file dxGraphicsStateGuardian9.cxx.
typedef std::string KEY |
Definition at line 5514 of file dxGraphicsStateGuardian9.cxx.
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 5309 of file dxGraphicsStateGuardian9.cxx.
KEY_ELEMENT * add_to_key_list | ( | KEY | key, |
KEY_LIST * | key_list ) |
Definition at line 5587 of file dxGraphicsStateGuardian9.cxx.
CPT | ( | TransformState | ) |
Given a lens, calculates the appropriate projection matrix for use with this gsg.
Note that the projection matrix depends a lot upon the coordinate system of the rendering API.
The return value is a TransformState if the lens is acceptable, NULL if it is not.
Definition at line 940 of file dxGraphicsStateGuardian9.cxx.
References Lens::get_projection_mat(), and Lens::is_linear().
void delete_key_list | ( | KEY_LIST * | key_list | ) |
Definition at line 5558 of file dxGraphicsStateGuardian9.cxx.
KEY_ELEMENT * first_key_element | ( | KEY_LIST * | key_list | ) |
Definition at line 5548 of file dxGraphicsStateGuardian9.cxx.
KEY_ELEMENT * new_key_element | ( | KEY | key, |
KEY_LIST * | key_list ) |
Definition at line 5533 of file dxGraphicsStateGuardian9.cxx.
KEY_LIST * new_key_list | ( | void | ) |
Definition at line 5577 of file dxGraphicsStateGuardian9.cxx.
KEY_ELEMENT * next_key_element | ( | KEY_ELEMENT * | key_element | ) |
Definition at line 5553 of file dxGraphicsStateGuardian9.cxx.
PT | ( | GeomMunger | ) |
Creates a new GeomMunger object to munge vertices appropriate to this GSG for the indicated state.
Definition at line 801 of file dxGraphicsStateGuardian9.cxx.
PT | ( | OcclusionQueryContext | ) |
Ends a previous call to begin_occlusion_query().
This call returns the OcclusionQueryContext object that will (eventually) report the number of pixels that passed the depth test between the call to begin_occlusion_query() and end_occlusion_query().
Definition at line 776 of file dxGraphicsStateGuardian9.cxx.