#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:
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 |
Settings * | pSettingsInstance = NULL |
float | numBlocks = 0.0f |
float | numLevels = 0.0f |
float | hashDelta = 0.0f |
|
Definition at line 68 of file CLODTerrainRenderer.cpp. Referenced by demeter::Texture::UploadTexture(). |
|
Definition at line 67 of file CLODTerrainRenderer.cpp. |
|
Definition at line 66 of file CLODTerrainRenderer.cpp. |
|
Definition at line 62 of file CLODTerrainRenderer.cpp. |
|
Definition at line 65 of file CLODTerrainRenderer.cpp. Referenced by demeter::Terrain::Render(). |
|
Definition at line 31 of file CLODTerrainRenderer.cpp. |
|
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(). |
|
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(). |
|
Definition at line 71 of file CLODTerrainRenderer.cpp. |
|
Definition at line 70 of file CLODTerrainRenderer.cpp. |
|
Definition at line 2088 of file CLODTerrainRenderer.cpp. Referenced by demeter::Texture::UploadTexture(). |
|
Definition at line 2121 of file CLODTerrainRenderer.cpp. Referenced by demeter::Terrain::SetCommonTexture(), demeter::Terrain::SetTexture(), and demeter::Terrain::Terrain(). |
|
Definition at line 2030 of file CLODTerrainRenderer.cpp. References demeter::Uint32, and demeter::Uint8. Referenced by demeter::Terrain::SetCommonTexture(), and demeter::Terrain::SetTexture(). |
|
|
|
|
|
Definition at line 79 of file CLODTerrainRenderer.cpp. Referenced by demeter::Terrain::DisableTextures(), demeter::Terrain::EnableTextures(), and demeter::Terrain::Render(). |
|
Definition at line 78 of file CLODTerrainRenderer.cpp. Referenced by demeter::TriangleFan::Render(), and demeter::TriangleStrip::Render(). |
|
Definition at line 90 of file CLODTerrainRenderer.cpp. Referenced by demeter::TerrainBlock::TerrainBlock(). |
|
Definition at line 88 of file CLODTerrainRenderer.cpp. Referenced by base::FixedAllocator::FixedAllocator(). |
|
Definition at line 89 of file CLODTerrainRenderer.cpp. |
|
Definition at line 86 of file CLODTerrainRenderer.cpp. Referenced by demeter::Settings::GetInstance(). |