source: trunk/vizservers/nanovis/Nv.cpp @ 915

Last change on this file since 915 was 915, checked in by gah, 15 years ago

more clean up

File size: 1.1 KB
Line 
1#include "Nv.h"
2#include "NvShader.h"
3#include "NvParticleRenderer.h"
4#include "NvColorTableRenderer.h"
5#include "NvEventLog.h"
6#include "VolumeRenderer.h"
7#include "Grid.h"
8#include <R2/R2FilePath.h>
9#include <stdio.h>
10#include <stdlib.h>
11#include <assert.h>
12#include <BMPImageLoaderImpl.h>
13#include <ImageLoaderFactory.h>
14#include "PointSetRenderer.h"
15
16extern void NvInitCG(); // in NvShader.cpp
17
18void NvCgErrorCallback(void)
19{
20    CGerror lastError = cgGetError();
21
22    if(lastError) {
23        const char *listing = cgGetLastListing(g_context);
24        printf("\n---------------------------------------------------\n");
25        printf("%s\n\n", cgGetErrorString(lastError));
26        printf("%s\n", listing);
27        printf("-----------------------------------------------------\n");
28        printf("Cg error, exiting...\n");
29        cgDestroyContext(g_context);
30        fflush(stdout);
31        exit(-1);
32    }
33}
34
35void NvInit(char* path)
36{
37    printf("Nanovis GL Initialized\n");
38}
39
40void NvExit()
41{
42#ifdef EVENTLOG
43    NvExitEventLog();
44#endif
45
46#ifdef XINETD
47    NvExitService();
48#endif
49
50}
51
Note: See TracBrowser for help on using the repository browser.