Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Renderer.h File Reference

#include "../Common/Globals.h"
#include "../Util/Set.h"
#include "../Util/String.h"
#include "../Math/Vector.h"
#include "Image.h"

Include dependency graph for Renderer.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Texture
struct  Shader
struct  FragmentShader
struct  VertexShader
class  Renderer

Defines

#define MAX_TEXTURES   16
#define TEXTURE_NONE   (-1)
#define DEPTH_NONE   (-1)
#define BLENDING_NONE   (-1)
#define SHADER_NONE   (-1)
#define UNDEFINED   0
#define TEXTURE_CLAMP_S   0x1
#define TEXTURE_CLAMP_T   0x2
#define TEXTURE_CLAMP_R   0x4
#define TEXTURE_CLAMP   (TEXTURE_CLAMP_S | TEXTURE_CLAMP_T | TEXTURE_CLAMP_R)
#define TEXTURE_NORMALMAP   0x10
#define TEXTURE_HEIGHTMAP   0x20
#define TEXTURE_NORMALHEIGHTMAP   (TEXTURE_NORMALMAP | TEXTURE_HEIGHTMAP)
#define DEPTH   0x01
#define RED   0x02
#define GREEN   0x04
#define BLUE   0x08
#define ALPHA   0x10
#define COLOR   (RED | GREEN | BLUE | ALPHA)
#define ALL   (DEPTH | COLOR)
#define NONE   0
#define LF_SHADING   0x1

Typedefs

typedef int TextureID
typedef int ShaderID

Enumerations

enum  TEXTUREKIND { TEXTURE_2D = 0, TEXTURE_CUBEMAP = 1 }

Variables

const int NEVER
const int LESS
const int EQUAL
const int LEQUAL
const int GREATER
const int NOTEQUAL
const int GEQUAL
const int ALWAYS
const int ZERO
const int ONE
const int SRC_COLOR
const int ONE_MINUS_SRC_COLOR
const int DST_COLOR
const int ONE_MINUS_DST_COLOR
const int SRC_ALPHA
const int ONE_MINUS_SRC_ALPHA
const int DST_ALPHA
const int ONE_MINUS_DST_ALPHA
const int SRC_ALPHA_SATURATE
const int BLENDMODE_ADD
const int BLENDMODE_SUBTRACT
const int BLENDMODE_REVERSE_SUBSTRACT
const int BLENDMODE_MIN
const int BLENDMOXE_MAX


Define Documentation

#define ALL   (DEPTH | COLOR)
 

Definition at line 82 of file Renderer.h.

Referenced by Menu::drawCreate(), Menu::drawJoin(), Menu::drawMain(), Menu::drawSettings(), Renderer::reset(), and Renderer::resetToDefaults().

#define ALPHA   0x10
 

Definition at line 79 of file Renderer.h.

Referenced by OpenGLRenderer::changeMask().

#define BLENDING_NONE   (-1)
 

Definition at line 58 of file Renderer.h.

Referenced by OpenGLRenderer::changeBlending(), Renderer::reset(), and Renderer::resetToDefaults().

#define BLUE   0x08
 

Definition at line 78 of file Renderer.h.

Referenced by OpenGLRenderer::changeMask().

#define COLOR   (RED | GREEN | BLUE | ALPHA)
 

Definition at line 81 of file Renderer.h.

Referenced by OpenGLRenderer::changeMask(), Play::drawAvatar(), Menu::drawCreate(), Play::drawExplosions(), Play::drawExtras(), Play::drawFrame(), Menu::drawFrame(), Menu::drawJoin(), Menu::drawLabel(), Join::drawLevels(), Play::drawLifebar(), Menu::drawMain(), Play::drawParticleSystems(), Play::drawPlayer(), Menu::drawQuad(), Join::drawQuad(), Menu::drawSelect(), Menu::drawSelection(), Menu::drawSettings(), and Play::drawShadow().

#define DEPTH   0x01
 

Definition at line 75 of file Renderer.h.

Referenced by OpenGLRenderer::changeMask().

#define DEPTH_NONE   (-1)
 

Definition at line 57 of file Renderer.h.

Referenced by OpenGLRenderer::changeDepthFunc(), Menu::drawFrame(), Join::drawFrame(), Join::drawGalaxies(), and OpenGLFont::startTextMode().

#define GREEN   0x04
 

Definition at line 77 of file Renderer.h.

Referenced by OpenGLRenderer::changeMask().

#define LF_SHADING   0x1
 

Definition at line 115 of file Renderer.h.

Referenced by Renderer::apply(), Menu::load(), MainApp::load(), and Menu::unload().

#define MAX_TEXTURES   16
 

Definition at line 54 of file Renderer.h.

Referenced by OpenGLRenderer::init().

#define NONE   0
 

Definition at line 83 of file Renderer.h.

Referenced by Play::drawFrame().

#define RED   0x02
 

Definition at line 76 of file Renderer.h.

Referenced by OpenGLRenderer::changeMask().

#define SHADER_NONE   (-1)
 

Definition at line 59 of file Renderer.h.

Referenced by Renderer::addFragmentShader(), Renderer::addShader(), Renderer::addVertexShader(), OpenGLRenderer::assignNamedTextures(), OpenGLRenderer::changeFragmentShader(), OpenGLRenderer::changeShader(), OpenGLRenderer::changeShaderConstant1f(), OpenGLRenderer::changeShaderConstant2f(), OpenGLRenderer::changeShaderConstant3f(), OpenGLRenderer::changeShaderConstant4f(), OpenGLRenderer::changeVertexShader(), Menu::load(), Renderer::reset(), and Renderer::resetToDefaults().

#define TEXTURE_CLAMP   (TEXTURE_CLAMP_S | TEXTURE_CLAMP_T | TEXTURE_CLAMP_R)
 

Definition at line 67 of file Renderer.h.

#define TEXTURE_CLAMP_R   0x4
 

Definition at line 66 of file Renderer.h.

#define TEXTURE_CLAMP_S   0x1
 

Definition at line 64 of file Renderer.h.

Referenced by Renderer::addTexture().

#define TEXTURE_CLAMP_T   0x2
 

Definition at line 65 of file Renderer.h.

Referenced by Renderer::addTexture().

#define TEXTURE_HEIGHTMAP   0x20
 

Definition at line 70 of file Renderer.h.

Referenced by Renderer::addTexture().

#define TEXTURE_NONE   (-1)
 

Definition at line 56 of file Renderer.h.

Referenced by Renderer::addCubemap(), Renderer::addTexture(), OpenGLRenderer::changeTexture(), ObjLevel::load(), Menu::load(), Join::load(), Menu::loadMain(), Play::loadTextures(), MS_Material::reloadTexture(), Renderer::reset(), Renderer::resetToDefaults(), Join::setGalaxy(), Menu::setModel(), and Play::unload().

#define TEXTURE_NORMALHEIGHTMAP   (TEXTURE_NORMALMAP | TEXTURE_HEIGHTMAP)
 

Definition at line 71 of file Renderer.h.

#define TEXTURE_NORMALMAP   0x10
 

Definition at line 69 of file Renderer.h.

Referenced by Renderer::addTexture().

#define UNDEFINED   0
 

Definition at line 61 of file Renderer.h.

Referenced by Renderer::deleteFragmentShader(), Renderer::deleteShader(), Renderer::deleteTexture(), Renderer::deleteVertexShader(), Renderer::insertFragmentShader(), Renderer::insertShader(), Renderer::insertTexture(), and Renderer::insertVertexShader().


Typedef Documentation

typedef int ShaderID
 

Definition at line 17 of file Renderer.h.

typedef int TextureID
 

Renderer.h

Author: Petter Alstermark, petter@alstermark.com

Definition at line 16 of file Renderer.h.


Enumeration Type Documentation

enum TEXTUREKIND
 

Enumerator:
TEXTURE_2D 
TEXTURE_CUBEMAP 

Definition at line 19 of file Renderer.h.


Variable Documentation

const int ALWAYS
 

Definition at line 17 of file OpenGLRenderer.cpp.

const int BLENDMODE_ADD
 

Definition at line 32 of file OpenGLRenderer.cpp.

Referenced by Renderer::reset(), and Renderer::resetToDefaults().

const int BLENDMODE_MIN
 

Definition at line 35 of file OpenGLRenderer.cpp.

const int BLENDMODE_REVERSE_SUBSTRACT
 

Definition at line 34 of file OpenGLRenderer.cpp.

const int BLENDMODE_SUBTRACT
 

Definition at line 33 of file OpenGLRenderer.cpp.

const int BLENDMOXE_MAX
 

Definition at line 36 of file OpenGLRenderer.cpp.

const int DST_ALPHA
 

Definition at line 28 of file OpenGLRenderer.cpp.

const int DST_COLOR
 

Definition at line 24 of file OpenGLRenderer.cpp.

Referenced by Play::drawLifebar(), and Play::drawShadow().

const int EQUAL
 

Definition at line 12 of file OpenGLRenderer.cpp.

const int GEQUAL
 

Definition at line 16 of file OpenGLRenderer.cpp.

const int GREATER
 

Definition at line 14 of file OpenGLRenderer.cpp.

const int LEQUAL
 

Definition at line 13 of file OpenGLRenderer.cpp.

Referenced by Explosion::drawAndUpdate(), Menu::drawCreate(), Play::drawExplosions(), Menu::drawFrame(), Menu::drawJoin(), Menu::drawMain(), Play::drawParticleSystems(), Play::drawPlayer(), Menu::drawSettings(), Renderer::reset(), and Renderer::resetToDefaults().

const int LESS
 

Definition at line 11 of file OpenGLRenderer.cpp.

const int NEVER
 

OpenGLRenderer.cpp

Author: Petter Alstermark, petter@alstermark.com

Definition at line 10 of file OpenGLRenderer.cpp.

const int NOTEQUAL
 

Definition at line 15 of file OpenGLRenderer.cpp.

const int ONE
 

Definition at line 21 of file OpenGLRenderer.cpp.

Referenced by Explosion::drawAndUpdate(), Play::drawAvatar(), Menu::drawCreate(), Play::drawExplosions(), Play::drawExtras(), Menu::drawFrame(), Play::drawFrame(), Join::drawGalaxies(), Menu::drawJoin(), Menu::drawLabel(), Join::drawLevels(), Play::drawLifebar(), Menu::drawMain(), Play::drawParticleSystems(), Play::drawPlayer(), Join::drawQuad(), Menu::drawQuad(), Menu::drawSelect(), Menu::drawSelection(), Menu::drawSettings(), ObjLevel::drawWaterSurface(), and OpenGLFont::startTextMode().

const int ONE_MINUS_DST_ALPHA
 

Definition at line 29 of file OpenGLRenderer.cpp.

const int ONE_MINUS_DST_COLOR
 

Definition at line 25 of file OpenGLRenderer.cpp.

const int ONE_MINUS_SRC_ALPHA
 

Definition at line 27 of file OpenGLRenderer.cpp.

Referenced by Play::drawPlayer().

const int ONE_MINUS_SRC_COLOR
 

Definition at line 23 of file OpenGLRenderer.cpp.

const int SRC_ALPHA
 

Definition at line 26 of file OpenGLRenderer.cpp.

Referenced by Explosion::drawAndUpdate(), Menu::drawCreate(), Menu::drawFrame(), Menu::drawJoin(), Menu::drawMain(), Menu::drawSettings(), and OpenGLFont::startTextMode().

const int SRC_ALPHA_SATURATE
 

Definition at line 30 of file OpenGLRenderer.cpp.

const int SRC_COLOR
 

Definition at line 22 of file OpenGLRenderer.cpp.

const int ZERO
 

Definition at line 20 of file OpenGLRenderer.cpp.

Referenced by Play::drawLifebar(), and Play::drawShadow().


Generated on Sun Jun 5 15:48:52 2005 for Defacto by  doxygen 1.4.3