Ignore:
Timestamp:
Aug 17, 2011, 5:20:09 PM (12 years ago)
Author:
sam
Message:

shader: factor the uniform handling logic into platform-independent methods
for both OpenGL and the PS3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shader/shader.h

    r783 r832  
    2929
    3030    int GetAttribLocation(char const *attr) const;
     31
    3132    int GetUniformLocation(char const *uni) const;
     33    void SetUniform(int uni, float f);
     34    void SetUniform(int uni, vec2 const &v);
     35    void SetUniform(int uni, vec3 const &v);
     36    void SetUniform(int uni, vec4 const &v);
     37    void SetUniform(int uni, mat4 const &m);
    3238
    3339    void Bind() const;
Note: See TracChangeset for help on using the changeset viewer.