Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

gfx/CLODTerrainRenderer.cpp File Reference

#include <iostream>
#include <GL/gl.h>
#include <GL/glext.h>
#include <gfx/CLODTerrainRenderer>
#include <base/BitArray>
#include <string>
#include <osg/Image>
#include <osgDB/Registry>
#include <osgDB/ReadFile>

Include dependency graph for CLODTerrainRenderer.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define GL_GLEXT_PROTOTYPES
#define GL_CLAMP_TO_EDGE_EXT   0x812F
#define GL_TEXTURE0_ARB   0x84C0
#define GL_TEXTURE1_ARB   0x84C1
#define GL_COMBINE_RGB_EXT   0x8571
#define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT   0x81A8
#define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT   0x81A9
#define COMPRESSED_RGB_S3TC_DXT1_EXT   0x83F0

Typedefs

typedef void(GLAPIENTRY * PFNGLMULTITEXCOORD2FARBPROC )(GLenum texture, GLfloat s, GLfloat t)
typedef void(GLAPIENTRY * PFNGLACTIVETEXTUREARBPROC )(GLenum texture)

Functions

GLuint CreateTexture (Uint8 *pTexels, int width, int height, int rowLength, int border, int internalFormat, bool bClamp, bool bColorKey=false)
void LoadImage (char *szFilename, int *pWidth, int *pHeight, Uint8 **pBuffer, bool bColorKey=false)
int RayPlaneIntersect (Ray *ray, Plane *plane, Vector *point, float *distance)
int RayBoxIntersect (Ray *ray, Box *box, Vector *point, float *distance)
bool IsPowerOf2 (double number)

Variables

PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2fARB_ptr = NULL
PFNGLACTIVETEXTUREARBPROC glActiveTextureARB_ptr = NULL
SettingspSettingsInstance = NULL
float numBlocks = 0.0f
float numLevels = 0.0f
float hashDelta = 0.0f


Define Documentation

#define COMPRESSED_RGB_S3TC_DXT1_EXT   0x83F0
 

Definition at line 68 of file CLODTerrainRenderer.cpp.

Referenced by demeter::Texture::UploadTexture().

#define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT   0x81A9
 

Definition at line 67 of file CLODTerrainRenderer.cpp.

#define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT   0x81A8
 

Definition at line 66 of file CLODTerrainRenderer.cpp.

#define GL_CLAMP_TO_EDGE_EXT   0x812F
 

Definition at line 62 of file CLODTerrainRenderer.cpp.

#define GL_COMBINE_RGB_EXT   0x8571
 

Definition at line 65 of file CLODTerrainRenderer.cpp.

Referenced by demeter::Terrain::Render().

#define GL_GLEXT_PROTOTYPES
 

Definition at line 31 of file CLODTerrainRenderer.cpp.

#define GL_TEXTURE0_ARB   0x84C0
 

Definition at line 63 of file CLODTerrainRenderer.cpp.

Referenced by demeter::Terrain::DisableTextures(), demeter::Terrain::EnableTextures(), demeter::TriangleFan::Render(), demeter::TriangleStrip::Render(), and demeter::Terrain::Render().

#define GL_TEXTURE1_ARB   0x84C1
 

Definition at line 64 of file CLODTerrainRenderer.cpp.

Referenced by demeter::Terrain::DisableTextures(), demeter::Terrain::EnableTextures(), demeter::TriangleFan::Render(), demeter::TriangleStrip::Render(), and demeter::Terrain::Render().


Typedef Documentation

typedef void(GLAPIENTRY * PFNGLACTIVETEXTUREARBPROC)(GLenum texture)
 

Definition at line 71 of file CLODTerrainRenderer.cpp.

typedef void(GLAPIENTRY * PFNGLMULTITEXCOORD2FARBPROC)(GLenum texture,GLfloat s,GLfloat t)
 

Definition at line 70 of file CLODTerrainRenderer.cpp.


Function Documentation

GLuint CreateTexture Uint8 pTexels,
int  width,
int  height,
int  rowLength,
int  border,
int  internalFormat,
bool  bClamp,
bool  bColorKey = false
 

Definition at line 2088 of file CLODTerrainRenderer.cpp.

Referenced by demeter::Texture::UploadTexture().

bool IsPowerOf2 double  number  )  [inline]
 

Definition at line 2121 of file CLODTerrainRenderer.cpp.

Referenced by demeter::Terrain::SetCommonTexture(), demeter::Terrain::SetTexture(), and demeter::Terrain::Terrain().

void LoadImage char *  szFilename,
int *  pWidth,
int *  pHeight,
Uint8 **  pBuffer,
bool  bColorKey = false
 

Definition at line 2030 of file CLODTerrainRenderer.cpp.

References demeter::Uint32, and demeter::Uint8.

Referenced by demeter::Terrain::SetCommonTexture(), and demeter::Terrain::SetTexture().

int RayBoxIntersect Ray ray,
Box *  box,
Vector point,
float *  distance
 

int RayPlaneIntersect Ray ray,
Plane plane,
Vector point,
float *  distance
 


Variable Documentation

PFNGLACTIVETEXTUREARBPROC glActiveTextureARB_ptr = NULL
 

Definition at line 79 of file CLODTerrainRenderer.cpp.

Referenced by demeter::Terrain::DisableTextures(), demeter::Terrain::EnableTextures(), and demeter::Terrain::Render().

PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2fARB_ptr = NULL
 

Definition at line 78 of file CLODTerrainRenderer.cpp.

Referenced by demeter::TriangleFan::Render(), and demeter::TriangleStrip::Render().

float hashDelta = 0.0f
 

Definition at line 90 of file CLODTerrainRenderer.cpp.

Referenced by demeter::TerrainBlock::TerrainBlock().

float numBlocks = 0.0f
 

Definition at line 88 of file CLODTerrainRenderer.cpp.

Referenced by base::FixedAllocator::FixedAllocator().

float numLevels = 0.0f
 

Definition at line 89 of file CLODTerrainRenderer.cpp.

Settings* pSettingsInstance = NULL
 

Definition at line 86 of file CLODTerrainRenderer.cpp.

Referenced by demeter::Settings::GetInstance().


Generated on Thu Jul 29 16:23:54 2004 for OpenSim by doxygen 1.3.6