11 #ifndef GR_VolumeGL3_h
12 #define GR_VolumeGL3_h
17 struct gr_VolumeAngleVector;
54 {
return myDrawMotionVectors; }
77 static void sliceCube(
void *
data,
int idx,
int num,
UT_Lock &lock);
81 int total_depth=1,
int d=0);
82 static void sortPolygonCCW(gr_VolumeAngleVector *
points,
int n);
87 int total_depth=-1,
int d=0);
89 static constexpr
int getMaxVolumeSilces();
103 bool myDrawMotionVectors;
107 static int theVolumePassID;
120 const char *
className()
const override {
return "GR_VolumeGL3"; }
GR_VolumeGL3(GR_Primitive *prim, GR_VolumeBase *base)
void setInstanceTransforms(const UT_Matrix4DArray &inst)
GLdouble GLdouble GLint GLint const GLdouble * points
static float getCutoff(int x, int y, int z)
static bool useBSplineInterpolation(const GR_CommonDispOption &opt)
const char * className() const override
GLdouble GLdouble GLdouble z
UT_Array< GR_VolumeSlice * > & slices()
GT_API const UT_StringHolder cache_name
void setIsSelected(bool v)
void updateTexture(GR_TextureRef tex)
void setTexture(GR_TextureRef tex)
Temporary container for either a RV_Render and an RE_Render.
set of parameters sent to GR_Primitive::update()
void draw(RE_RenderContext r, GR_RenderMode mode, GR_RenderFlags flags, GR_DrawParms dp) override
Normal drawing method. Only issue rendering commands.
void update(RE_RenderContext r, const GT_PrimitiveHandle &primh, const GR_UpdateParms &p, const char *cache_name) override
void viewUpdate(RE_RenderContext r, const GR_DisplayOption &opts, const char *cache_name, RE_CacheVersion geo_version, RE_CacheVersion select_version) override
bool getDrawNormals() const
const GR_TextureRef & getTexture() const
void setDrawNormals(bool v)
static void fillBSplineData(const UT_Span< fpreal32 > &out_values)
bool update(const GT_PrimitiveHandle &primh, const GR_UpdateParms &p)
bool getIsSelected() const
bool getDrawMotionVectors() const
void setDrawMotionVectors(bool v)
static RE_Texture * getBSplineWeights(RE_Render *r)
static void cleanupSlices()
Simple class for a mutli-integer cache tag.
bool updateViewAligned(UT_Matrix4D &proj, UT_Matrix4D &view, UT_Matrix4D &object, const GR_DisplayOption &drawOpt)
exint getNumGLPrimitives() const override