namespace Msp {
namespace GL {
+const Buffer *Buffer::bound[4] = { 0, 0, 0, 0 };
+
Buffer::Buffer(BufferType t):
type(t),
usage(STATIC_DRAW)
}
}
-const Buffer *Buffer::bound[4] = { 0, 0, 0, 0 };
-
} // namespace GL
} // namespace Msp
namespace Msp {
namespace GL {
+unsigned Light::current_unit = 0;
+vector<const Light *> Light::current_lights(1);
+
Light::Light():
ambient(0),
diffuse(1),
unbind();
}
-unsigned Light::current_unit = 0;
-vector<const Light *> Light::current_lights(1);
-
} // namespace GL
} // namespace Msp
*/
class Object: public Renderable
{
-private:
- std::vector<RefPtr<const Mesh> > meshes;
- RefPtr<const Technique> technique;
-
public:
class Loader: public DataFile::CollectionObjectLoader<Object>
{
void technique(const std::string &);
};
+private:
+ std::vector<RefPtr<const Mesh> > meshes;
+ RefPtr<const Technique> technique;
+
+public:
Object();
Object(const Mesh *, const Technique *);
~Object();