Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
Go to the source code of this file.
Classes | |
struct | GFXVertex |
Vertex, Normal, Texture, and (deprecated) Environment Mapping T2F_N3F_V3F format. More... | |
struct | GFXColor |
struct | GFXColorVertex |
This vertex is used for the interleaved array argument for color based arrays T2F_C4F_N3F_V3F. More... | |
class | GFXLight |
Holds all information for a single light object. More... | |
struct | GFXTVertex |
Contains 4 texture coordinates (deprecated) More... | |
struct | GFXLightLocal |
class | GFXQuadList |
class | GFXVertexList |
union | GFXVertexList::VDAT |
Vertices and colors stored. More... | |
union | GFXVertexList::INDEX |
class | GFXSphereVertexList |
struct | GFXMaterial |
struct | PickData |
Pick data structures. More... | |
Macros | |
#define | GFXBOOL unsigned char |
#define | GFXTRUE 1 |
#define | GFXFALSE 0 |
#define | USE_DISPLAY_LISTS |
Functions | |
int | GFXCreateList () |
Creates a Display list. 0 is returned if no memory is avail for a display list. More... | |
GFXBOOL | GFXEndList () |
Ends the display list call. Returns false if unsuccessful. More... | |
void | GFXDeleteList (int list) |
Removes a display list from application memory. More... | |
GFXColor | operator* (float s, const GFXColor &c) |
GFXColor | operator* (const GFXColor &c, float s) |
GFXColor | operator+ (const GFXColor &c0, const GFXColor &c1) |
GFXColor | operator- (const GFXColor &c0, const GFXColor &c1) |
Variables | |
const int | INDEX_BYTE = sizeof (unsigned char) |
const int | INDEX_SHORT = sizeof (unsigned short) |
const int | INDEX_INT = sizeof (unsigned int) |
const int | CHANGE_MUTABLE = (sizeof (unsigned int)*2) |
const int | CHANGE_CHANGE = (sizeof (unsigned int)*4) |
const int | HAS_COLOR = (sizeof (unsigned int)*8) |
const int | HAS_INDEX = sizeof (unsigned char)|sizeof (unsigned short)|sizeof (unsigned int) |
#define GFXBOOL unsigned char |
Definition at line 27 of file gfxlib_struct.h.
Referenced by GFXCreateLightContext().
#define GFXFALSE 0 |
Definition at line 30 of file gfxlib_struct.h.
Referenced by GamePlanet::AddCity(), bootstrap_draw(), Box::Box(), Camera::Camera(), Texture::checkold(), GameStarSystem::createBackground(), FactionUtil::createTexture(), Background::Draw(), Atmosphere::Draw(), Stars::Draw(), GameCockpit::Draw(), BaseInterface::Room::BaseShip::Draw(), NavigationSystem::Draw(), GameCockpit::DrawNavSystem(), GFXVertexList::DrawOnce(), Mesh::EnableSpecialFX(), Mesh::Fork(), GFXCapture(), GFXCreateLightContext(), GFXDeleteTexture(), GFXDisable(), GFXDisableLight(), GFXEnableLight(), GFXEndList(), GFXGetLightContextAmbient(), GFXGetMaterial(), GFXLightContextAmbient(), GFXQuadList::GFXQuadList(), GFXSetCutoff(), GFXSetLight(), GFXSetOptimalNumLights(), GFXSetSeparateSpecularColor(), GFXTransferTexture(), SphereMesh::InitSphere(), Mesh::InitUnit(), AnimatedTexture::LoadAni(), AnimatedTexture::LoadFrame(), AnimatedTexture::LoadVideoSource(), AnimatedTexture::MakeActive(), Logo::ProcessDrawQueue(), Mesh::ProcessUndrawnMeshes(), Mesh::ProcessZFarMeshes(), Briefing::Render(), quadsquare::Render(), RestoreEnvmapState(), RestoreSpecMapState(), setup_game_data(), SetupEnvmapPass(), SetupGLLightGlobals(), SetupSpecMapFirstPass(), SetupSpecMapSecondPass(), GameCockpit::SetupViewPort(), Mesh::UnDraw(), and VSSprite::VSSprite().
#define GFXTRUE 1 |
Definition at line 29 of file gfxlib_struct.h.
Referenced by DecalQueue::AddTexture(), Background::Background(), bootstrap_draw(), Camera::Camera(), Texture::checkold(), GameStarSystem::createBackground(), FactionUtil::createTexture(), Background::Draw(), GameStarSystem::Draw(), Stars::Draw(), WindowManager::draw(), GameCockpit::Draw(), BaseInterface::Room::BaseShip::Draw(), NavigationSystem::Draw(), BaseInterface::Draw(), NavigationSystem::DrawCursor(), GameCockpit::DrawNavSystem(), Mesh::EnableSpecialFX(), EndGUIFrame(), GFXCreateLightContext(), GFXCreateTexture(), GFXDisableLight(), GFXEnable(), GFXEnableLight(), GFXGetLightContextAmbient(), GFXGetMaterial(), GFXLightContextAmbient(), GFXSetCutoff(), GFXSetLight(), GFXSetOptimalNumLights(), GFXSetSeparateSpecularColor(), GFXTransferSubTexture(), GFXTransferTexture(), Halo::Halo(), SphereMesh::InitSphere(), Mesh::InitUnit(), AnimatedTexture::LoadAni(), AnimatedTexture::LoadFrame(), Mesh::LoadMeshes(), Camera::LookDirection(), Camera::Pitch(), Mesh::ProcessUndrawnMeshes(), Mesh::ProcessZFarMeshes(), Briefing::Render(), RestoreEnvmapState(), RestoreSpecMapState(), Camera::Roll(), Camera::setCockpitOffset(), Camera::SetOrientation(), Camera::SetPosition(), BaseInterface::Room::BaseVSSprite::SetSprite(), Camera::SetSubwindow(), SetupGLLightGlobals(), SetupSpecMapFirstPass(), GameCockpit::SetupViewPort(), VSSprite::VSSprite(), Camera::XSlide(), Camera::Yaw(), Camera::YSlide(), and Camera::ZSlide().
#define USE_DISPLAY_LISTS |
Definition at line 38 of file gfxlib_struct.h.
enum ADDRESSMODE |
Address modes various textures may have
Enumerator | |
---|---|
WRAP | |
MIRROR | |
CLAMP | |
BORDER | |
DEFAULT_ADDRESS_MODE |
Definition at line 780 of file gfxlib_struct.h.
enum BLENDFUNC |
Blend functions that a blendmode may have Not all work for all systems
Enumerator | |
---|---|
ZERO | |
ONE | |
SRCCOLOR | |
INVSRCCOLOR | |
SRCALPHA | |
INVSRCALPHA | |
DESTALPHA | |
INVDESTALPHA | |
DESTCOLOR | |
INVDESTCOLOR | |
SRCALPHASAT | |
CONSTALPHA | |
INVCONSTALPHA | |
CONSTCOLOR | |
INVCONSTCOLOR |
Definition at line 799 of file gfxlib_struct.h.
enum CLIPSTATE |
Enumerator | |
---|---|
GFX_NOT_VISIBLE | |
GFX_PARTIALLY_VISIBLE | |
GFX_TOTALLY_VISIBLE |
Definition at line 770 of file gfxlib_struct.h.
enum DEPTHFUNC |
enum FILTER |
enum FOGMODE |
Enumerator | |
---|---|
FOG_OFF | |
FOG_EXP | |
FOG_EXP2 | |
FOG_LINEAR |
Definition at line 789 of file gfxlib_struct.h.
enum LIGHT_TARGET |
enum MATRIXMODE |
Unlike OpenGL, 3 matrices are saved, the Model, the View and the Projection Consistency is maintained through pushing the rotation part of view onto projection matrix
Enumerator | |
---|---|
MODEL | |
PROJECTION | |
VIEW |
Definition at line 728 of file gfxlib_struct.h.
enum POLYFACE |
Enumerator | |
---|---|
GFXFRONT | |
GFXBACK | |
GFXFRONTANDBACK |
Definition at line 440 of file gfxlib_struct.h.
enum POLYMODE |
Enumerator | |
---|---|
GFXPOINTMODE | |
GFXLINEMODE | |
GFXFILLMODE |
Definition at line 433 of file gfxlib_struct.h.
enum POLYTYPE |
Enumerator | |
---|---|
GFXTRI | |
GFXQUAD | |
GFXLINE | |
GFXTRISTRIP | |
GFXQUADSTRIP | |
GFXTRIFAN | |
GFXLINESTRIP | |
GFXPOLY | |
GFXPOINT |
Definition at line 420 of file gfxlib_struct.h.
enum STATE |
The following state may be activated/deactivated LIGHTING, DEPTHTEST,DEPTHWRITE, TEXTURE0, and TEXTURE1. Future support For arbitrary number of texture units should be added FIXME
Enumerator | |
---|---|
LIGHTING | |
DEPTHTEST | |
DEPTHWRITE | |
COLORWRITE | |
TEXTURE0 | |
TEXTURE1 | |
CULLFACE | |
SMOOTH | |
STENCIL |
Definition at line 757 of file gfxlib_struct.h.
enum STENCILOP |
enum TEXTURE_IMAGE_TARGET |
Textures may only be cube maps, Texture1d, Texture2d or Texture3d.
Enumerator | |
---|---|
TEXTURE_1D | |
TEXTURE_2D | |
TEXTURE_3D | |
CUBEMAP_POSITIVE_X | |
CUBEMAP_NEGATIVE_X | |
CUBEMAP_POSITIVE_Y | |
CUBEMAP_NEGATIVE_Y | |
CUBEMAP_POSITIVE_Z | |
CUBEMAP_NEGATIVE_Z | |
TEXTURE_RECTANGLE |
Definition at line 709 of file gfxlib_struct.h.
enum TEXTURE_TARGET |
Enumerator | |
---|---|
TEXTURE1D | |
TEXTURE2D | |
TEXTURE3D | |
CUBEMAP | |
TEXTURERECT |
Definition at line 700 of file gfxlib_struct.h.
enum TEXTUREFORMAT |
Enumerator | |
---|---|
DUMMY | |
PALETTE8 | |
RGB16 | |
RGBA16 | |
RGB24 | |
RGBA32 | |
RGB32 | |
DXT1 | |
DXT1RGBA | |
DXT3 | |
DXT5 | |
PNGPALETTE8 | |
PNGRGB24 | |
PNGRGBA32 |
Definition at line 735 of file gfxlib_struct.h.
int GFXCreateList | ( | ) |
Creates a Display list. 0 is returned if no memory is avail for a display list.
Definition at line 73 of file gfxlib_struct_server.cpp.
Referenced by CreateLists(), and GFXVertexList::RefreshDisplayList().
void GFXDeleteList | ( | int | list) |
Removes a display list from application memory.
Definition at line 83 of file gfxlib_struct_server.cpp.
Referenced by GFXVertexList::RefreshDisplayList(), and GFXVertexList::~GFXVertexList().
GFXBOOL GFXEndList | ( | ) |
Ends the display list call. Returns false if unsuccessful.
Definition at line 78 of file gfxlib_struct_server.cpp.
References GFXFALSE.
Referenced by CreateLists(), and GFXVertexList::RefreshDisplayList().
Definition at line 194 of file gfxlib_struct.h.
References GFXColor::a, GFXColor::b, GFXColor::g, and GFXColor::r.
Definition at line 198 of file gfxlib_struct.h.
References GFXColor::a, GFXColor::b, GFXColor::g, and GFXColor::r.
Definition at line 202 of file gfxlib_struct.h.
References GFXColor::a, GFXColor::b, GFXColor::g, and GFXColor::r.
Definition at line 206 of file gfxlib_struct.h.
References GFXColor::a, GFXColor::b, GFXColor::g, and GFXColor::r.
Definition at line 36 of file gfxlib_struct.h.
Referenced by GFXVertexList::EndMutate(), GFXVertexList::Init(), and GFXVertexList::RefreshDisplayList().
Definition at line 35 of file gfxlib_struct.h.
Referenced by GFXVertexList::EndMutate(), GFXVertexList::Init(), and GFXVertexList::RefreshDisplayList().
Definition at line 37 of file gfxlib_struct.h.
Referenced by GFXVertexList::BeginDrawState(), GFXVertexList::EndDrawState(), GFXVertexList::GetPolys(), GFXVertexList::hasColor(), GFXVertexList::Init(), GFXVertexList::Map(), GFXVertexList::RefreshDisplayList(), GFXVertexList::RenormalizeNormals(), and GFXVertexList::~GFXVertexList().
Definition at line 39 of file gfxlib_struct.h.
Referenced by GFXVertexList::BeginDrawState(), GFXVertexList::Draw(), GFXVertexList::GetPolys(), and GFXVertexList::RefreshDisplayList().
Definition at line 32 of file gfxlib_struct.h.
Referenced by GFXVertexList::Draw(), GFXVertexList::Init(), and GFXVertexList::RefreshDisplayList().
Definition at line 34 of file gfxlib_struct.h.
Referenced by GFXVertexList::Init().
Definition at line 33 of file gfxlib_struct.h.
Referenced by GFXVertexList::Draw(), GFXVertexList::Init(), and GFXVertexList::RefreshDisplayList().