diff options
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 37 |
1 files changed, 28 insertions, 9 deletions
@@ -30,6 +30,7 @@ enum memory_table_list { P_AVInfo, P_SourceBitmapTable, + P_VectorPoints, P_MiscCache, // don't put this in final F_Layers, @@ -127,23 +128,39 @@ enum blend_mode blend_difference }; -struct gl_vertex_shader { -}; struct gl_effect { - uint32 FragmentShader; uint32 ShaderProgram; - uint32 VertexShader; - uint32 EBO; - uint32 VBO; }; -static gl_effect TGL; +struct gl_vertex_shader { + uint32 VertexArrayObject; + uint32 VertexBufferObject; +}; + +struct default_gl_vertex_object { + uint32 VertexArrayObject; + uint32 VertexBufferObject; + uint32 ElementBufferObject; +}; + +static default_gl_vertex_object DefaultVerts; +static uint32 DefaultVertexShader; +static uint32 DefaultShaderProgram; +static uint32 MaskShaderProgram; + +float DefaultVertices[] = { + 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, + 1.0f, -1.0f, 0.0f, 1.0f, 0.0f, + -1.0f, -1.0f, 0.0f, 0.0f, 0.0f, + -1.0f, 1.0f, 0.0f, 0.0f, 1.0f, +}; + struct gl_effect_layer { GLuint Texture; - GLuint FBO; - GLuint RBO; + GLuint FramebufferObject; + uint32 Color_Renderbuffer; }; static gl_vertex_shader GL_Vertices; @@ -313,6 +330,8 @@ struct mask_point { struct mask { mask_point Point[16]; uint16 NumberOfPoints; + void *TriangulatedPointCache; + uint32 NumberOfVerts; }; struct project_layer { |