9 #ifndef __RE_RenderFlush__
10 #define __RE_RenderFlush__
35 static struct CacheOnlyTag {} CacheOnly;
38 void setViewportRenderer();
39 static RE_Font &getViewportFont();
50 bool flushRender(
bool render_complete =
false);
54 void pushViewport(CacheOnlyTag);
56 void popViewport(CacheOnlyTag);
59 void handleViewportUpdate(
61 void handleViewportUpdate(
64 void handleScissorRectUpdate(
66 void handleScissorRectUpdate(
69 void handleScissorEnableUpdate(
bool enable);
70 void handleScissorEnableUpdate(
bool enable, CacheOnlyTag);
73 void clipPlaneDisable(
int which);
74 void clipPlaneEnable(
int which,
const UT_Vector4D &plane);
81 void replacePushClipPlane(
int which,
const UT_Vector4D &plane,
82 bool xform_to_eye_coords,
84 void replacePopClipPlane(
int which,
87 void getClipPlane(
int which,
UT_Vector4D &plane)
const;
90 void pushMatrix(
bool all_matrices =
true,
92 void popMatrix(
bool all_matrices =
true,
110 void scale(
float x = 1.0,
float y = 1.0,
float z = 1.0);
113 void ortho2DW(
float l,
float r,
float b,
float t);
114 void orthoFromViewport2DI(
const UT_DimRect &rect);
115 void orthoFromViewport2DI(
const UT_DimRect &rect,
bool reverse_depth);
116 void ortho3DW(
float l,
float r,
float b,
float t,
118 void window3DW(
float l,
float r,
float b,
float t,
126 static UT_DMatrix4 getPerspectiveMatrix(
float l,
float r,
150 void getProjectiveTextureTransform(
const RE_Light *light,
153 static void debugOutput(
bool enable);
157 myDevicePixelRatio = ratio;
165 return myDevicePixelRatio;
175 void flush(
bool render_complete);
176 void updatePixelRatios();
193 bool myViewportRenderer;
196 static RE_Font *theViewportFont;
197 static RE_Font *theViewportSymbolFont;
201 int myDevicePixelRatio = 1;
220 flush(render_complete);
225 #endif // __RE_RenderFlush__
void setDevicePixelRatio(int ratio)
Set the device pixel ratio to use when scaling renders.
static bool useNewUISkin()
SIM_API const UT_StringHolder angle
GLdouble GLdouble GLdouble z
virtual void setZStart(fpreal32 zStart)
GA_API const UT_StringHolder scale
int devicePixelRatio() const
GLboolean GLboolean GLboolean b
ImageBuf OIIO_API rotate(const ImageBuf &src, float angle, string_view filtername=string_view(), float filterwidth=0.0f, bool recompute_roi=false, ROI roi={}, int nthreads=0)
virtual void draw(RE_Render *r)
RE_PerContextData * getContextData()
PUGI__FN char_t * translate(char_t *buffer, const char_t *from, const char_t *to, size_t to_length)
GLdouble GLdouble GLdouble y2
bool flushRender(bool render_complete=false)