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, 6 months ago) by lamonts
File size: 641 byte(s)
Adding the iso2d demo with particle interaction
#ifndef _VIEW_H_
#define _VIEW_H_

#include <GLFW/glfw3.h>
#if defined(__APPLE_CC__)
#include <OpenGL/glext.h>
#  include <GL/glext.h>

#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_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);


ViewVC Help
Powered by ViewVC 1.0.0