Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /examples/iso2d-spatial/view.h
ViewVC logotype

Annotation of /examples/iso2d-spatial/view.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2950 - (view) (download) (as text)

1 : lamonts 2950 #ifndef _VIEW_H_
2 :     #define _VIEW_H_
3 :    
4 :     #define GL_GLEXT_PROTOTYPES
5 :     #define GLFW_INCLUDE_GLCOREARB
6 :     #include <GLFW/glfw3.h>
7 :     #if defined(__APPLE_CC__)
8 :     #include <OpenGL/glext.h>
9 :     #else
10 :     # include <GL/glext.h>
11 :     #endif
12 :    
13 :     #include <stdbool.h>
14 :     #include "utils/linmath.h"
15 :     #include "utils/circle.h"
16 :    
17 :     typedef struct{
18 :     GLuint vshId;
19 :     GLuint fshId;
20 :     GLuint progId;
21 :     int32_t width;
22 :     int32_t height;
23 :     mat4x4 projection;
24 :     mat4x4 model;
25 :     }View;
26 :    
27 :     View * view_createView(int32_t width, int32_t height);
28 :    
29 :     /* Initiliazes the view */
30 :     bool view_init(View * view,const char * vFile, const char * fFile);
31 :    
32 :     void view_render(Circle * boids, View * view);
33 :    
34 :     #endif

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0