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

SCM Repository

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

View of /examples/iso2d-spatial/utils/circle.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, 7 months ago) by lamonts
File size: 807 byte(s)
Adding the iso2d demo with particle interaction
#ifndef _CIRCLE_H_
#define _CIRCLE_H_

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

#include "utils.h"
#include "vertex.h"

#include <unistd.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <stdio.h> 
#include <stdbool.h> 

typedef struct { 
	float		radius; 
	GLuint		vaoId;		//!< vertex-array-object ID for this mesh
	GLuint		vbufId;		//! vertex-buffer ID for the vertex data
	GLuint		mbufId; 
	int 		num_segments; 
	Vertex* 	vertices; 	 
	int			count; 
	mat4x4* 	models; 

/* Create an array of circles given a size and radius */ 
Circle * circle_create(int size, float radius, 	vec4 color); 

/* Render a Circle to the screen */ 
void circle_render (Circle * circle, GLint posLoc, GLint colorLoc,  GLint modelLoc); 

#endif /* _CIRCLE_H_ */ 

ViewVC Help
Powered by ViewVC 1.0.0