source: trunk/packages/vizservers/nanovis/dxReaderCommon.h @ 3452

Last change on this file since 3452 was 2877, checked in by ldelgass, 12 years ago

Some minor refactoring, also add some more fine grained config.h defines
(e.g. replace NV40 define with feature defines). Add tests for some required
OpenGL extensions (should always check for extensions or base version before
calling entry points from the extension). Also, clamp diffuse and specular
values on input and warn when they are out of range.

  • Property svn:eol-style set to native
File size: 597 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2#ifndef DX_READER_COMMON_H
3#define DX_READER_COMMON_H
4
5extern float *
6merge(float *scalar, float *gradient, int size);
7
8extern void
9normalizeScalar(float *fdata, int count, float min, float max);
10
11extern float *
12computeGradient(float *fdata,
13                int width, int height, int depth,
14                float dx, float dy, float dz,
15                float min, float max);
16
17extern void
18computeSimpleGradient(float *data, int nx, int ny, int nz,
19                      float dx = 1.0f, float dy = 1.0f, float dz = 1.0f);
20
21#endif
Note: See TracBrowser for help on using the repository browser.