Last change
on this file since 2892 was
2877,
checked in by ldelgass, 13 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 | |
---|
5 | extern float * |
---|
6 | merge(float *scalar, float *gradient, int size); |
---|
7 | |
---|
8 | extern void |
---|
9 | normalizeScalar(float *fdata, int count, float min, float max); |
---|
10 | |
---|
11 | extern float * |
---|
12 | computeGradient(float *fdata, |
---|
13 | int width, int height, int depth, |
---|
14 | float dx, float dy, float dz, |
---|
15 | float min, float max); |
---|
16 | |
---|
17 | extern void |
---|
18 | computeSimpleGradient(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.