Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/graphics/shader.cc @ 5261

Last change on this file since 5261 was 5261, checked in by bensch, 19 years ago

orxonox/trunk: structure of the Shader-lib

File size: 1.4 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific:
12   main-programmer: Benjamin Grauer
13   co-programmer: ...
14*/
15
16//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
17
18#include "shader.h"
19
20using namespace std;
21
22
23/**
24 * standard constructor
25*/
26Shader::Shader (SHADER_TYPE type, ...)
27{
28   this->setClassID(CL_SHADER, "Shader");
29
30   this->fragmentShaderFile = NULL;
31   this->vertexShaderFile = NULL;
32   this->fragmentShaderSource = NULL;
33   this->vertexShaderSource = NULL;
34   this->shaderProgram = 0;
35   this->vertexShader = 0;
36   this->fragmentShader = 0;
37}
38
39
40/**
41 * standard deconstructor
42*/
43Shader::~Shader ()
44{
45  // delete what has to be deleted here
46  delete[] this->fragmentShaderFile;
47  delete[] this->vertexShaderFile;
48  delete[] this->fragmentShaderSource;
49  delete[] this->vertexShaderSource;
50
51  // DELETE THE PROGRAMS
52/*  this->shaderProgram = 0;
53  this->vertexShader = 0;
54  this->fragmentShader = 0;*/
55}
56
57
58bool Shader::loadShaderProgramm(SHADER_TYPE type, const char* fileName)
59{
60  if (type != SHADER_VERTEX || type != SHADER_FRAGMENT)
61    return false;
62
63
64}
65
66bool Shader::activateShader()
67{
68
69}
Note: See TracBrowser for help on using the repository browser.