Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10118 in orxonox.OLD


Ignore:
Timestamp:
Dec 20, 2006, 1:57:39 AM (17 years ago)
Author:
patrick
Message:

added the copy construtor and tried fixing the shader resource bug. no success

Location:
trunk/src/lib/graphics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/shader.cc

    r10034 r10118  
    3535void Shader::Uniform::setV(unsigned int count, float* vv) const
    3636{
    37         if (Shader::isSupported()) 
     37        if (Shader::isSupported())
    3838  switch (count)
    3939  {
     
    5454void Shader::Uniform::setV(unsigned int count, int* vv) const
    5555{
    56         if (Shader::isSupported()) 
     56        if (Shader::isSupported())
    5757  switch (count)
    5858  {
     
    7070    break;
    7171  }
     72}
     73
     74
     75Shader::Shader(const Shader& shader)
     76  : data(shader.data)
     77{
     78
    7279}
    7380
  • trunk/src/lib/graphics/shader.h

    r9942 r10118  
    4545public:
    4646  Shader();
     47  Shader(const Shader& shader);
    4748  Shader(const std::string& vertexShaderFile, const std::string& fragmentShaderFile = "");
    4849
Note: See TracChangeset for help on using the changeset viewer.