code format

This commit is contained in:
2022-12-14 14:14:33 +03:00
parent 09e5342956
commit cdb02fc9be
278 changed files with 15371 additions and 12176 deletions

View File

@@ -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