code format
This commit is contained in:
@@ -21,16 +21,17 @@
|
||||
|
||||
#include "qglview.h"
|
||||
|
||||
class RendererSimple: public GLRendererBase
|
||||
{
|
||||
class RendererSimple: public GLRendererBase {
|
||||
public:
|
||||
RendererSimple(QGLView * view);
|
||||
virtual ~RendererSimple() {if (shader_fxaa != 0) delete shader_fxaa;}
|
||||
virtual ~RendererSimple() {
|
||||
if (shader_fxaa != 0) delete shader_fxaa;
|
||||
}
|
||||
|
||||
virtual void renderScene();
|
||||
virtual void reloadShaders();
|
||||
virtual void init(int width, int height) {resizeFBO(width, height);}
|
||||
virtual void resize(int width, int height) {resizeFBO(width, height);}
|
||||
virtual void init(int width, int height) { resizeFBO(width, height); }
|
||||
virtual void resize(int width, int height) { resizeFBO(width, height); }
|
||||
|
||||
QPoint mpos;
|
||||
|
||||
@@ -38,10 +39,9 @@ protected:
|
||||
|
||||
private:
|
||||
void resizeFBO(int w, int h);
|
||||
|
||||
GLFramebuffer fbo, fbo_c;
|
||||
QOpenGLShaderProgram * shader_fxaa, * shader;
|
||||
|
||||
GLFramebuffer fbo, fbo_c;
|
||||
QOpenGLShaderProgram *shader_fxaa, *shader;
|
||||
};
|
||||
|
||||
#endif // RENDERER_SIMPLE_H
|
||||
|
||||
Reference in New Issue
Block a user