summaryrefslogtreecommitdiff
path: root/kmscube/cube-gles2.h
blob: 983c133dbabbcc681670fc6bd6774afd5661a7fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include <GLES2/gl2.h>

class GlScene
{
public:
	GlScene();

	GlScene(const GlScene& other) = delete;
	GlScene& operator=(const GlScene& other) = delete;

	void set_viewport(uint32_t width, uint32_t height);

	void draw(uint32_t framenum);

private:
	GLint m_modelviewmatrix, m_modelviewprojectionmatrix, m_normalmatrix;

	uint32_t m_width;
	uint32_t m_height;
};