Last change
on this file since 837 was
755,
checked in by dkearney, 17 years ago
|
added -p option to nanovis so we can add paths in a colon separated string.
removed all references to hard coded paths in /opt/nanovis
updated start_vis.sh script to include nanovis' -p flag and what a call to pymol might look like
|
File size:
578 bytes
|
Line | |
---|
1 | #include <R2/R2FilePath.h> |
---|
2 | #include "NvColorTableShader.h" |
---|
3 | |
---|
4 | NvColorTableShader::NvColorTableShader() |
---|
5 | { |
---|
6 | init(); |
---|
7 | } |
---|
8 | |
---|
9 | NvColorTableShader::~NvColorTableShader() |
---|
10 | { |
---|
11 | } |
---|
12 | |
---|
13 | void NvColorTableShader::init() |
---|
14 | { |
---|
15 | R2string path = R2FilePath::getInstance()->getPath("one_plane.cg"); |
---|
16 | _cgFP = cgCreateProgramFromFile(g_context, CG_SOURCE, |
---|
17 | path, CG_PROFILE_FP30, "main", NULL); |
---|
18 | cgGLLoadProgram(_cgFP); |
---|
19 | |
---|
20 | _dataParam = cgGetNamedParameter(_cgFP, "data"); |
---|
21 | _tfParam = cgGetNamedParameter(_cgFP, "tf"); |
---|
22 | _renderParam = cgGetNamedParameter(_cgFP, "render_param"); |
---|
23 | } |
---|
24 | |
---|
25 | |
---|
26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.