doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Protected Attributes | List of all members
idGLDrawableView Class Reference

#include <MaterialPreviewView.h>

Inheritance diagram for idGLDrawableView:
idGLDrawable

Classes

struct  lightInfo_t
 

Public Member Functions

 idGLDrawableView ()
 
 ~idGLDrawableView ()
 
virtual void setMedia (const char *name)
 
virtual void draw (int x, int y, int w, int h)
 
virtual void buttonUp (int button)
 
virtual void buttonDown (int _button, float x, float y)
 
virtual void mouseMove (float x, float y)
 
virtual void Update ()
 
void UpdateCamera (renderView_t *refdef)
 
void UpdateModel (void)
 
void UpdateLights (void)
 
void addLight (void)
 
void deleteLight (const int lightId)
 
void drawLights (renderView_t *refdef)
 
void InitWorld ()
 
void ResetView (void)
 
void setLightShader (const int lightId, const idStr shaderName)
 
void setLightColor (const int lightId, const idVec3 &value)
 
void setLightRadius (const int lightId, const float radius)
 
void setLightAllowMove (const int lightId, const bool move)
 
void setObject (int Id)
 
void setCustomModel (const idStr modelName)
 
void setShowLights (bool _showLights)
 
void setLocalParm (int parmNum, float value)
 
void setGlobalParm (int parmNum, float value)
 
- Public Member Functions inherited from idGLDrawable
 idGLDrawable ()
 
 ~idGLDrawable ()
 
virtual void buttonUp (int button, float x, float y)
 
virtual int getRealTime ()
 
virtual bool ScreenCoords ()
 
void SetRealTime (int i)
 
float getScale ()
 
void setScale (float f)
 

Protected Attributes

idRenderWorldworld
 
idRenderModelworldModel
 
const idMaterialmaterial
 
bool showLights
 
idVec3 viewOrigin
 
idAngles viewRotation
 
float viewDistance
 
renderEntity_t worldEntity
 
qhandle_t modelDefHandle
 
int objectId
 
idStr customModelName
 
float globalParms [MAX_GLOBAL_SHADER_PARMS]
 
idList< lightInfo_tviewLights
 
- Protected Attributes inherited from idGLDrawable
float scale
 
float xOffset
 
float yOffset
 
float zOffset
 
float pressX
 
float pressY
 
bool handleMove
 
int button
 
int realTime
 

Detailed Description

Definition at line 34 of file MaterialPreviewView.h.

Constructor & Destructor Documentation

idGLDrawableView::idGLDrawableView ( )

Definition at line 184 of file MaterialPreviewView.cpp.

idGLDrawableView::~idGLDrawableView ( )

Definition at line 202 of file MaterialPreviewView.cpp.

Member Function Documentation

void idGLDrawableView::addLight ( void  )

Definition at line 359 of file MaterialPreviewView.cpp.

void idGLDrawableView::buttonDown ( int  _button,
float  x,
float  y 
)
virtual

Reimplemented from idGLDrawable.

Definition at line 256 of file MaterialPreviewView.cpp.

virtual void idGLDrawableView::buttonUp ( int  button)
inlinevirtual

Definition at line 42 of file MaterialPreviewView.h.

void idGLDrawableView::deleteLight ( const int  lightId)

Definition at line 389 of file MaterialPreviewView.cpp.

void idGLDrawableView::draw ( int  x,
int  y,
int  w,
int  h 
)
virtual

Reimplemented from idGLDrawable.

Definition at line 500 of file MaterialPreviewView.cpp.

void idGLDrawableView::drawLights ( renderView_t refdef)

Definition at line 481 of file MaterialPreviewView.cpp.

void idGLDrawableView::InitWorld ( )

Definition at line 241 of file MaterialPreviewView.cpp.

void idGLDrawableView::mouseMove ( float  x,
float  y 
)
virtual

Reimplemented from idGLDrawable.

Definition at line 265 of file MaterialPreviewView.cpp.

void idGLDrawableView::ResetView ( void  )

Definition at line 207 of file MaterialPreviewView.cpp.

void idGLDrawableView::setCustomModel ( const idStr  modelName)

Definition at line 639 of file MaterialPreviewView.cpp.

void idGLDrawableView::setGlobalParm ( int  parmNum,
float  value 
)

Definition at line 596 of file MaterialPreviewView.cpp.

void idGLDrawableView::setLightAllowMove ( const int  lightId,
const bool  move 
)

Definition at line 626 of file MaterialPreviewView.cpp.

void idGLDrawableView::setLightColor ( const int  lightId,
const idVec3 value 
)

Definition at line 611 of file MaterialPreviewView.cpp.

void idGLDrawableView::setLightRadius ( const int  lightId,
const float  radius 
)

Definition at line 619 of file MaterialPreviewView.cpp.

void idGLDrawableView::setLightShader ( const int  lightId,
const idStr  shaderName 
)

Definition at line 604 of file MaterialPreviewView.cpp.

void idGLDrawableView::setLocalParm ( int  parmNum,
float  value 
)

Definition at line 586 of file MaterialPreviewView.cpp.

void idGLDrawableView::setMedia ( const char *  name)
virtual

Reimplemented from idGLDrawable.

Definition at line 552 of file MaterialPreviewView.cpp.

void idGLDrawableView::setObject ( int  Id)

Definition at line 633 of file MaterialPreviewView.cpp.

void idGLDrawableView::setShowLights ( bool  _showLights)

Definition at line 652 of file MaterialPreviewView.cpp.

virtual void idGLDrawableView::Update ( void  )
inlinevirtual

Reimplemented from idGLDrawable.

Definition at line 45 of file MaterialPreviewView.h.

void idGLDrawableView::UpdateCamera ( renderView_t refdef)

Definition at line 397 of file MaterialPreviewView.cpp.

void idGLDrawableView::UpdateLights ( void  )

Definition at line 460 of file MaterialPreviewView.cpp.

void idGLDrawableView::UpdateModel ( void  )

Definition at line 413 of file MaterialPreviewView.cpp.

Member Data Documentation

idStr idGLDrawableView::customModelName
protected

Definition at line 83 of file MaterialPreviewView.h.

float idGLDrawableView::globalParms[MAX_GLOBAL_SHADER_PARMS]
protected

Definition at line 85 of file MaterialPreviewView.h.

const idMaterial* idGLDrawableView::material
protected

Definition at line 71 of file MaterialPreviewView.h.

qhandle_t idGLDrawableView::modelDefHandle
protected

Definition at line 80 of file MaterialPreviewView.h.

int idGLDrawableView::objectId
protected

Definition at line 82 of file MaterialPreviewView.h.

bool idGLDrawableView::showLights
protected

Definition at line 73 of file MaterialPreviewView.h.

float idGLDrawableView::viewDistance
protected

Definition at line 77 of file MaterialPreviewView.h.

idList<lightInfo_t> idGLDrawableView::viewLights
protected

Definition at line 97 of file MaterialPreviewView.h.

idVec3 idGLDrawableView::viewOrigin
protected

Definition at line 75 of file MaterialPreviewView.h.

idAngles idGLDrawableView::viewRotation
protected

Definition at line 76 of file MaterialPreviewView.h.

idRenderWorld* idGLDrawableView::world
protected

Definition at line 69 of file MaterialPreviewView.h.

renderEntity_t idGLDrawableView::worldEntity
protected

Definition at line 79 of file MaterialPreviewView.h.

idRenderModel* idGLDrawableView::worldModel
protected

Definition at line 70 of file MaterialPreviewView.h.


The documentation for this class was generated from the following files: