mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 19:32:25 +02:00
32 lines
631 B
C++
32 lines
631 B
C++
//
|
|
// field.h
|
|
// interface
|
|
//
|
|
// Created by Philip Rosedale on 8/23/12.
|
|
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#ifndef interface_field_h
|
|
#define interface_field_h
|
|
|
|
#ifdef __APPLE__
|
|
#include <GLUT/glut.h>
|
|
#else
|
|
#include <GL/glut.h>
|
|
#endif
|
|
#include <iostream>
|
|
#include "world.h"
|
|
#include "util.h"
|
|
#include "glm/glm.hpp"
|
|
|
|
// Field is a lattice of vectors uniformly distributed FIELD_ELEMENTS^(1/3) on side
|
|
|
|
const int FIELD_ELEMENTS = 1000;
|
|
|
|
void field_init();
|
|
int field_value(float *ret, float *pos);
|
|
void field_render();
|
|
void field_add(float* add, float *loc);
|
|
void field_simulate(float dt);
|
|
|
|
#endif
|