remove some un-used data from b3Generic6DofConstraint

add GLRenderToTexture helper class
enable OpenGLTrueTypeFont test
This commit is contained in:
erwin coumans
2013-06-26 16:09:40 -07:00
parent 34394526f8
commit bb723f9fd1
7 changed files with 119 additions and 13 deletions

View File

@@ -0,0 +1,28 @@
#ifndef GL_RENDER_TO_TEXTURE_H
#define GL_RENDER_TO_TEXTURE_H
///See http://www.opengl-tutorial.org/intermediate-tutorials/tutorial-14-render-to-texture/
#include "OpenGLInclude.h"
struct GLRenderToTexture
{
GLuint m_framebufferName;
GLuint m_renderedTexture;
GLuint m_depthrenderbuffer;
bool m_initialized;
public:
GLRenderToTexture();
void init(int width, int height);
bool enable();
void disable();
virtual ~GLRenderToTexture();
};
#endif //GL_RENDER_TO_TEXTURE_H