make use of glMapBuffer to set ubo data

This commit is contained in:
Jordan Woyak 2011-12-11 05:13:05 -06:00
commit 5ae1f674f5
3 changed files with 55 additions and 7 deletions

View file

@ -96,6 +96,7 @@ class ProgramShaderCache
static std::pair<u64, u64> CurrentShaderProgram;
static GLuint s_ps_ubo, s_vs_ubo;
static float *s_ps_mapped_data, *s_vs_mapped_data;
public:
static PROGRAMSHADER GetShaderProgram(void);
static GLint GetAttr(int num);
@ -104,6 +105,8 @@ public:
static void SetMultiPSConstant4fv(unsigned int offset, const float *f, unsigned int count);
static void SetMultiVSConstant4fv(unsigned int offset, const float *f, unsigned int count);
static void FlushConstants();
static void Init(void);
static void Shutdown(void);