Ignore:
Timestamp:
Aug 13, 2008, 4:33:28 PM (11 years ago)
Author:
gah
Message:

nanovis/heightmap update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/NvStdVertexShader.cpp

    r617 r1111  
    1 #include <R2/R2FilePath.h>
     1#include <stdio.h>
     2#include "global.h"
    23#include "NvStdVertexShader.h"
    34
     
    1314void NvStdVertexShader::init()
    1415{
    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 
     16    _cgVP = LoadCgSourceProgram(g_context, "vertex_std.cg", CG_PROFILE_VP30,
     17        "main");
    2018    _mvp_vert_std_param = cgGetNamedParameter(_cgVP, "modelViewProjMatrix");
    2119    _mvi_vert_std_param = cgGetNamedParameter(_cgVP, "modelViewInv");
Note: See TracChangeset for help on using the changeset viewer.