mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 19:03:07 +02:00
fix comments and style
This commit is contained in:
parent
b3aac56d29
commit
f5d09c0218
1 changed files with 5 additions and 9 deletions
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
class ProgramObject;
|
class ProgramObject;
|
||||||
|
|
||||||
/// A generic full screen glow effect.
|
/// A shader program that draws voxels as points with variable sizes
|
||||||
class PointShader : public QObject {
|
class PointShader : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
@ -23,25 +23,21 @@ public:
|
||||||
|
|
||||||
void init();
|
void init();
|
||||||
|
|
||||||
/// Starts using the voxel geometry shader effect.
|
/// Starts using the voxel point shader program.
|
||||||
void begin();
|
void begin();
|
||||||
|
|
||||||
/// Stops using the voxel geometry shader effect.
|
/// Stops using the voxel point shader program.
|
||||||
void end();
|
void end();
|
||||||
|
|
||||||
/// Gets access to attributes from the shader program
|
/// Gets access to attributes from the shader program
|
||||||
int attributeLocation(const char * name) const;
|
int attributeLocation(const char* name) const;
|
||||||
int uniformLocation(const char * name) const;
|
int uniformLocation(const char* name) const;
|
||||||
void setUniformValue(int attributeLocation, float value);
|
void setUniformValue(int attributeLocation, float value);
|
||||||
|
|
||||||
static ProgramObject* createPointShaderProgram(const QString& name);
|
static ProgramObject* createPointShaderProgram(const QString& name);
|
||||||
|
|
||||||
public slots:
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
bool _initialized;
|
bool _initialized;
|
||||||
|
|
||||||
ProgramObject* _program;
|
ProgramObject* _program;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue