glviewvol
view src/renderer.cc @ 2:701507c8238f
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 28 Dec 2014 15:26:36 +0200 |
parents | |
children | 04330eb80b36 |
line source
1 #include "renderer.h"
3 Renderer::Renderer()
4 {
5 vol = 0;
6 view_width = 512;
7 view_height = 512;
8 }
10 Renderer::~Renderer()
11 {
12 destroy();
13 }
15 bool Renderer::init()
16 {
17 return true;
18 }
20 void Renderer::destroy()
21 {
22 }
24 void Renderer::set_volume(Volume *vol)
25 {
26 this->vol = vol;
27 }
29 Volume *Renderer::get_volume() const
30 {
31 return vol;
32 }
34 void Renderer::reshape(int x, int y)
35 {
36 view_width = x;
37 view_height = y;
38 }
40 void Renderer::update(unsigned int msec)
41 {
42 }