Blame c++/contourgl/environment.h
|
|
49e693 |
/*
|
|
|
49e693 |
......... 2015 Ivan Mahonin
|
|
|
49e693 |
|
|
|
49e693 |
This program is free software: you can redistribute it and/or modify
|
|
|
49e693 |
it under the terms of the GNU General Public License as published by
|
|
|
49e693 |
the Free Software Foundation, either version 3 of the License, or
|
|
|
49e693 |
(at your option) any later version.
|
|
|
49e693 |
|
|
|
49e693 |
This program is distributed in the hope that it will be useful,
|
|
|
49e693 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
49e693 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
49e693 |
GNU General Public License for more details.
|
|
|
49e693 |
|
|
|
49e693 |
You should have received a copy of the GNU General Public License
|
|
|
49e693 |
along with this program. If not, see <http: licenses="" www.gnu.org="">.</http:>
|
|
|
49e693 |
*/
|
|
|
49e693 |
|
|
|
49e693 |
#ifndef _ENVIRONMENT_H_
|
|
|
49e693 |
#define _ENVIRONMENT_H_
|
|
|
49e693 |
|
|
|
49e693 |
#include "glcontext.h"
|
|
|
49e693 |
#include "clcontext.h"
|
|
|
49e693 |
#include "shaders.h"
|
|
|
49e693 |
|
|
|
383633 |
#ifdef CUDA
|
|
|
383633 |
#include "cudacontext.h"
|
|
|
383633 |
#endif
|
|
|
383633 |
|
|
|
49e693 |
class Environment {
|
|
|
49e693 |
public:
|
|
|
49e693 |
GlContext gl;
|
|
|
49e693 |
ClContext cl;
|
|
|
49e693 |
Shaders shaders;
|
|
|
f29469 |
|
|
|
383633 |
#ifdef CUDA
|
|
|
383633 |
CudaContext cu;
|
|
|
383633 |
#endif
|
|
|
383633 |
|
|
|
f29469 |
Environment(int width, int height, bool hdr, bool multisample, int samples):
|
|
|
f29469 |
gl(width, height, hdr, multisample, samples) { }
|
|
|
f29469 |
void use() { gl.use(); }
|
|
|
f29469 |
void unuse() { gl.unuse(); }
|
|
|
49e693 |
};
|
|
|
49e693 |
|
|
|
49e693 |
#endif
|