CrossRenderer.h 542 Bytes
Newer Older
Nianchen Deng's avatar
sync    
Nianchen Deng committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include "../utils/common.h"
#include "../utils/Shader.h"


class CrossRenderer {
public:
	CrossRenderer(glm::vec2 frameRes, float crossSize, glm::vec4 crossColor);

	void render(glm::vec2 p, float globalShift);

private:
	glm::vec2 _frameRes;
	float _crossSize;
	glm::vec4 _crossColor;
	sptr<Shader> _shader;
	GLuint _vertBuf;
	GLuint _shaderProp_crossSize;
	GLuint _shaderProp_crossColor;
	GLuint _shaderProp_crossPos;
	GLuint _shaderProp_frameRes;
	GLuint _shaderProp_globalShift;
	GLuint _loc_MVP;

};