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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2950 - (download) (as text) (annotate)
Wed Mar 4 20:52:35 2015 UTC (4 years, 3 months ago) by lamonts
File size: 641 byte(s)
Adding the iso2d demo with particle interaction
#ifndef _VIEW_H_
#define _VIEW_H_

#define GL_GLEXT_PROTOTYPES
#define GLFW_INCLUDE_GLCOREARB
#include <GLFW/glfw3.h>
#if defined(__APPLE_CC__)
#include <OpenGL/glext.h>
#else
#  include <GL/glext.h>
#endif

#include <stdbool.h> 
#include "utils/linmath.h"
#include "utils/circle.h"

typedef struct{ 
	GLuint vshId; 
	GLuint fshId; 
	GLuint progId; 
	int32_t width; 
	int32_t height; 
	mat4x4 projection; 
	mat4x4 model; 
}View; 

View * view_createView(int32_t width, int32_t height); 

/* Initiliazes the view */ 
bool view_init(View * view,const char * vFile, const char * fFile); 

void view_render(Circle * boids, View * view);

#endif 

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