mirror of
https://github.com/glest/glest-source.git
synced 2025-09-27 16:09:00 +02:00
- see if this fixes color picking
This commit is contained in:
@@ -32,7 +32,7 @@ private:
|
||||
|
||||
public:
|
||||
ModelRendererGl();
|
||||
virtual void begin(bool renderNormals, bool renderTextures, bool renderColors, MeshCallback *meshCallback);
|
||||
virtual void begin(bool renderNormals, bool renderTextures, bool renderColors, bool colorPickingMode, MeshCallback *meshCallback);
|
||||
virtual void end();
|
||||
virtual void render(Model *model,int renderMode=rmNormal);
|
||||
virtual void renderNormalsOnly(Model *model);
|
||||
|
@@ -49,6 +49,7 @@ protected:
|
||||
bool renderNormals;
|
||||
bool renderTextures;
|
||||
bool renderColors;
|
||||
bool colorPickingMode;
|
||||
MeshCallback *meshCallback;
|
||||
|
||||
public:
|
||||
@@ -56,13 +57,14 @@ public:
|
||||
renderNormals = false;
|
||||
renderTextures = false;
|
||||
renderColors = false;
|
||||
colorPickingMode = false;
|
||||
|
||||
meshCallback= NULL;
|
||||
}
|
||||
|
||||
virtual ~ModelRenderer(){};
|
||||
|
||||
virtual void begin(bool renderNormals, bool renderTextures, bool renderColors, MeshCallback *meshCallback= NULL)=0;
|
||||
virtual void begin(bool renderNormals, bool renderTextures, bool renderColors, bool colorPickingMode, MeshCallback *meshCallback= NULL)=0;
|
||||
virtual void end()=0;
|
||||
virtual void render(Model *model,int renderMode=rmNormal)=0;
|
||||
virtual void renderNormalsOnly(Model *model)=0;
|
||||
|
Reference in New Issue
Block a user