source: trunk/vizservers/nanovis/NvStdVertexShader.cpp @ 749

Last change on this file since 749 was 617, checked in by vrinside, 13 years ago

Added new zinc blende renderer - It is still needed to compare with unicell based simulation data.
Removed tentatively used class, NvVolQDVolumeShader,NvVolQDVolume
Moved Font.bmp into resources directory

File size: 570 bytes
Line 
1#include <R2/R2FilePath.h>
2#include "NvStdVertexShader.h"
3
4NvStdVertexShader::NvStdVertexShader()
5{
6    init();
7}
8
9NvStdVertexShader::~NvStdVertexShader()
10{
11}
12
13void NvStdVertexShader::init()
14{
15    R2string path = R2FilePath::getInstance()->getPath("vertex_std.cg");
16    _cgVP= cgCreateProgramFromFile(g_context, CG_SOURCE,
17                (const char*) path, CG_PROFILE_VP30, "main", NULL);
18    cgGLLoadProgram(_cgVP);
19
20    _mvp_vert_std_param = cgGetNamedParameter(_cgVP, "modelViewProjMatrix");
21    _mvi_vert_std_param = cgGetNamedParameter(_cgVP, "modelViewInv");
22}
23
Note: See TracBrowser for help on using the repository browser.