update interfaces for GL2
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
#include "OpenGLWindow/SimpleOpenGL3App.h"
|
#include "OpenGLWindow/SimpleOpenGL3App.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "OpenGLWindow/CommonRenderInterface.h"
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include "OpenGLWindow/MacOpenGLWindow.h"
|
#include "OpenGLWindow/MacOpenGLWindow.h"
|
||||||
#else
|
#else
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
#include "Bullet3AppSupport/GwenProfileWindow.h"
|
#include "Bullet3AppSupport/GwenProfileWindow.h"
|
||||||
#include "Bullet3AppSupport/GwenTextureWindow.h"
|
#include "Bullet3AppSupport/GwenTextureWindow.h"
|
||||||
#include "Bullet3AppSupport/GraphingTexture.h"
|
#include "Bullet3AppSupport/GraphingTexture.h"
|
||||||
#include "OpenGLWindow/CommonRenderInterface.h"
|
|
||||||
#include "OpenGLWindow/SimpleCamera.h"
|
#include "OpenGLWindow/SimpleCamera.h"
|
||||||
|
|
||||||
CommonGraphicsApp* app=0;
|
CommonGraphicsApp* app=0;
|
||||||
@@ -140,6 +140,10 @@ struct TestRenderer : public CommonRenderInterface
|
|||||||
{
|
{
|
||||||
return m_height;
|
return m_height;
|
||||||
}
|
}
|
||||||
|
virtual int registerGraphicsInstance(int shapeIndex, const double* position, const double* quaternion, const double* color, const double* scaling)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
virtual int registerGraphicsInstance(int shapeIndex, const float* position, const float* quaternion, const float* color, const float* scaling)
|
virtual int registerGraphicsInstance(int shapeIndex, const float* position, const float* quaternion, const float* color, const float* scaling)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
@@ -192,6 +196,26 @@ struct TestRenderer : public CommonRenderInterface
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
virtual void drawLine(const double from[4], const double to[4], const double color[4], double lineWidth)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
virtual void drawPoint(const float* position, const float color[4], float pointDrawSize)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
virtual void drawPoint(const double* position, const double color[4], double pointDrawSize)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual void updateShape(int shapeIndex, const float* vertices)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual void enableBlend(bool blend)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
#endif //USE_OPENGL2
|
#endif //USE_OPENGL2
|
||||||
b3gWindowInterface* s_window = 0;
|
b3gWindowInterface* s_window = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user