mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
Added ui3d shader
This commit is contained in:
parent
28d93ca39a
commit
11d00dbbf8
4 changed files with 23 additions and 16 deletions
|
|
@ -4,8 +4,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
using namespace glm;
|
||||
|
||||
class Mesh;
|
||||
class Texture;
|
||||
|
||||
|
|
@ -21,10 +19,10 @@ class Batch3D {
|
|||
Texture* _texture;
|
||||
|
||||
void vertex(float x, float y, float z,
|
||||
float u, float v,
|
||||
float r, float g, float b, float a);
|
||||
void vertex(vec3 point, vec2 uvpoint,
|
||||
float r, float g, float b, float a);
|
||||
float u, float v,
|
||||
float r, float g, float b, float a);
|
||||
void vertex(glm::vec3 point, glm::vec2 uvpoint,
|
||||
float r, float g, float b, float a);
|
||||
|
||||
public:
|
||||
Batch3D(size_t capacity);
|
||||
|
|
@ -32,8 +30,9 @@ public:
|
|||
|
||||
void begin();
|
||||
void texture(Texture* texture);
|
||||
void sprite(vec3 pos, vec3 up, vec3 right, float w, float h, int atlasRes, int index, vec4 tint);
|
||||
void sprite(vec3 pos, vec3 up, vec3 right, float w, float h);
|
||||
void sprite(glm::vec3 pos, glm::vec3 up, glm::vec3 right, float w, float h,
|
||||
int atlasRes, int index, glm::vec4 tint);
|
||||
void sprite(glm::vec3 pos, glm::vec3 up, glm::vec3 right, float w, float h);
|
||||
void render();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue