31 #include "../radiant/GLWidget.h"
41 virtual void draw(
int x,
int y,
int w,
int h);
43 virtual void buttonDown(
int _button,
float x,
float y);
113 virtual void OnDraw(CDC* pDC);
133 virtual void AssertValid()
const;
134 virtual void Dump(CDumpContext& dc)
const;
143 DECLARE_MESSAGE_MAP()
146 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct);
147 afx_msg
void OnSize(
UINT nType,
int cx,
int cy);
void setLightAllowMove(const int lightId, const bool move)
GLsizei const GLfloat * value
renderLight_t renderLight
const int MAX_GLOBAL_SHADER_PARMS
void setCustomModel(const idStr modelName)
virtual void buttonDown(int _button, float x, float y)
CONST PIXELFORMATDESCRIPTOR UINT
void OnModelChange(int modelId)
const idMaterial * shader
void setLightShader(const int lightId, const idStr shaderName)
void OnDeleteLight(int lightId)
void setLocalParm(int parmNum, float value)
idRenderModel * worldModel
void drawLights(renderView_t *refdef)
void deleteLight(const int lightId)
void OnLightRadiusChange(int lightId, float radius)
Responsible for managing a single material that is being viewed and/or edited.
GLubyte GLubyte GLubyte GLubyte w
void OnCustomModelChange(idStr modelName)
void OnShowLightsChange(bool showLights)
virtual void mouseMove(float x, float y)
void OnLightAllowMoveChange(int lightId, bool move)
void OnGlobalParmChange(int parmNum, float value)
void UpdateCamera(renderView_t *refdef)
virtual ~MaterialPreviewView()
virtual void buttonUp(int button)
idGLDrawableView renderedView
virtual void draw(int x, int y, int w, int h)
virtual void OnDraw(CDC *pDC)
void setShowLights(bool _showLights)
const idMaterial * material
void setLightRadius(const int lightId, const float radius)
void setGlobalParm(int parmNum, float value)
renderEntity_t worldEntity
afx_msg void OnSize(UINT nType, int cx, int cy)
idList< lightInfo_t > viewLights
void OnLocalParmChange(int parmNum, float value)
void OnLightShaderChange(int lightId, idStr shaderName)
void MV_OnMaterialSelectionChange(MaterialDoc *pMaterial)
Called when the selected material has changed.
void setLightColor(const int lightId, const idVec3 &value)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct)
void OnLightColorChange(int lightId, idVec3 &color)
virtual void setMedia(const char *name)
float globalParms[MAX_GLOBAL_SHADER_PARMS]