HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
GR_PointGL3.h
Go to the documentation of this file.
1
/*
2
* PROPRIETARY INFORMATION. This software is proprietary to
3
* Side Effects Software Inc., and is not to be reproduced,
4
* transmitted, or disclosed in any way without written permission.
5
*
6
* NAME: GR_PointGL3 ( GR Library, C++)
7
*
8
* COMMENTS:
9
* Simple point renderer. Cd, alpha and pscale are supported.
10
*/
11
#ifndef GR_PointGL3_h
12
#define GR_PointGL3_h
13
14
#include "
GR_API.h
"
15
#include "
GR_GeoRenderGL.h
"
16
#include <
RE/RE_ShaderHandle.h
>
17
18
class
GR_API
GR_PointGL3
:
public
GR_GeoRenderGL
19
{
20
public
:
21
GR_PointGL3
(
GR_Primitive
*prim);
22
~
GR_PointGL3
()
override
;
23
24
const
char
*
className
()
const override
{
return
"GR_PointGL3"
; }
25
26
void
update
(
RE_RenderContext
r
,
27
const
GT_PrimitiveHandle
&primh,
28
const
GR_UpdateParms
&parms,
29
const
char
*
cache_name
)
override
;
30
31
void
draw
(
RE_RenderContext
r
,
32
GR_RenderMode
mode
,
33
GR_RenderFlags
flags
,
34
GR_DrawParms
dp)
override
;
35
36
exint
getNumGLPrimitives
()
const override
;
37
bool
hasTransparency
()
const override
{
return
myHasAlpha; }
38
39
private
:
40
void
updatePointAttribs(
RE_Render
*
r
,
41
const
GT_PrimitiveHandle
&primh,
42
const
GR_UpdateParms
&parms);
43
void
drawPrivate(
RE_Render
*
r
,
44
GR_RenderMode
mode
,
45
GR_RenderFlags
flags
,
46
GR_DrawParms
dp);
47
48
void
drawUtility(
RE_Render
*
r
,
49
GR_RenderMode
mode
,
50
GR_RenderFlags
flags
,
51
GR_DrawParms
dp);
52
53
static
RE_ShaderHandle
thePointShader;
54
static
RE_ShaderHandle
thePixelShader;
55
bool
myHasCdAttrib;
56
bool
myHasAlphaAttrib;
57
bool
myHasAlpha;
58
bool
myObjectSelected;
59
};
60
61
#endif
GR_PointGL3
Definition:
GR_PointGL3.h:18
GR_GeoRenderGL.h
flags
GLbitfield flags
Definition:
glcorearb.h:1596
GR_GeoRender::draw
virtual void draw(RE_RenderContext r, GR_RenderMode mode, GR_RenderFlags flags, GR_DrawParms draw_parms)=0
Normal drawing method. Only issue rendering commands.
GR_PointGL3::hasTransparency
bool hasTransparency() const override
returns true if this drawable renders some transparent elements
Definition:
GR_PointGL3.h:37
exint
int64 exint
Definition:
SYS_Types.h:125
GT_Names::cache_name
GT_API const UT_StringHolder cache_name
GR_PointGL3::className
const char * className() const override
Definition:
GR_PointGL3.h:24
RE_RenderContext
Temporary container for either a RV_Render and an RE_Render.
Definition:
RE_RenderContext.h:23
GR_GeoRender::getNumGLPrimitives
virtual exint getNumGLPrimitives() const =0
GR_GeoRenderGL
Definition:
GR_GeoRenderGL.h:26
GR_UpdateParms
set of parameters sent to GR_Primitive::update()
Definition:
GR_UpdateParms.h:37
GR_API.h
GR_Primitive
Definition:
GR_Primitive.h:55
GR_RenderMode
GR_RenderMode
Definition:
GR_Defines.h:48
RE_ShaderHandle.h
GR_DrawParms
Definition:
GR_DrawParms.h:19
RE_Render
Definition:
RE_Render.h:29
GR_API
#define GR_API
Definition:
GR_API.h:10
UT_IntrusivePtr< GT_Primitive >
GR_RenderFlags
GR_RenderFlags
Definition:
GR_Defines.h:86
mode
GLenum mode
Definition:
glcorearb.h:99
GR_GeoRender::update
virtual void update(RE_RenderContext r, const GT_PrimitiveHandle &primh, const GR_UpdateParms &p, const char *cache_name)=0
r
GLboolean r
Definition:
glcorearb.h:1222
RE_ShaderHandle
Simple interface to building a shader from a .prog file.
Definition:
RE_ShaderHandle.h:77
GR
GR_PointGL3.h
Generated on Tue Dec 17 2024 03:39:44 for HDK by
1.8.6