CCompiled and runed with working visuals
This commit is contained in:
parent
2455f90550
commit
3b389bdc17
8 changed files with 308 additions and 153 deletions
|
|
@ -2,7 +2,7 @@
|
|||
#include "FrameBuffer.hpp"
|
||||
#include "GraphicsApi.hpp"
|
||||
|
||||
void glerr(GLenum type);
|
||||
void glerr(GLenum type) { printf("GL ERROR\n"); }
|
||||
#define AssertGL(x) { x; GLenum __gle = glGetError(); if (__gle != GL_NO_ERROR) glerr(__gle); }
|
||||
|
||||
using namespace tp;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
#include "Sketch3D.hpp"
|
||||
|
||||
using namespace strokes;
|
||||
using namespace tp;
|
||||
|
||||
Stroke::GLHandles::GLHandles() {
|
||||
glGenVertexArrays(1, &VertexArrayID);
|
||||
|
|
@ -300,6 +300,11 @@ Project::Project() {
|
|||
|
||||
mActiveBrush = "pencil";
|
||||
|
||||
Stroke* debug = new Stroke();
|
||||
debug->mPoints = { { { 0, 0, 0 }, 1 }, { { 1, 1, 1 } , 1} };
|
||||
debug->updateGpuBuffers();
|
||||
|
||||
mLayers.last()->strokes.pushBack(debug);
|
||||
|
||||
auto vec = mCamera.project({0, 0, 0});
|
||||
vec = mCamera.project({-1, 0, 0});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue