Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 167 vs 168 for /trunk/Source Code/Hardware/Video/OpenGL/Textures/Headers/glSamplerObject.h

Diff revisions: vs.
  @@ -25,15 +25,21 @@
25 25
26 26 #include "Hardware/Video/OpenGL/Headers/glResources.h"
27 27
28 - struct SamplerDescriptor;
28 + class SamplerDescriptor;
29 29
30 30 class glSamplerObject {
31 31 public:
32 32 glSamplerObject();
33 33 ~glSamplerObject();
34 34
35 + bool Destroy();
35 36 bool Create(const SamplerDescriptor& descriptor);
36 - void Bind(GLuint textureUnit);
37 +
38 + void Bind(GLuint textureUnit) const;
39 + void Unbind(GLuint textureUnit) const;
40 + void Bind() const;
41 + void Unbind() const;
42 +
37 43 inline GLuint getObjectHandle() {return _samplerID;}
38 44
39 45 private: