mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 21:22:24 +02:00
32 lines
537 B
C++
32 lines
537 B
C++
//
|
|
// cloud.h
|
|
// interface
|
|
//
|
|
// Created by Philip Rosedale on 11/17/12.
|
|
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#ifndef interface_cloud_h
|
|
#define interface_cloud_h
|
|
|
|
#include "field.h"
|
|
|
|
class Cloud {
|
|
public:
|
|
Cloud(int num,
|
|
glm::vec3 box,
|
|
int wrap);
|
|
|
|
void simulate(float deltaTime);
|
|
void render();
|
|
|
|
private:
|
|
struct Particle {
|
|
glm::vec3 position, velocity;
|
|
} *particles;
|
|
unsigned int count;
|
|
glm::vec3 bounds;
|
|
bool wrapBounds;
|
|
};
|
|
|
|
#endif
|