16 #define RE_MAX_PICK_DIST 100
41 #define RE_NUM_WINDOW_TYPES RE_WINDOW_INVALID_TYPE
408 #if defined(WIN32) || defined(MBSD_COCOA)
409 typedef void * Display;
414 #define RE_TEXCACHE_DEFAULT_MAX_SIZE int64(512) * 1024 * 1024
415 #define RE_BUFCACHE_DEFAULT_MAX_SIZE int64(2) * 1024 * 1024 * 1024
417 #define RE_TEXCACHE_DEFAULT_MAX_SIZE 96 * 1024 * 1024
418 #define RE_BUFCACHE_DEFAULT_MAX_SIZE 384 * 1024 * 1024
421 #define RE_DEFAULT_DPI 85.0
422 #define RE_SCALE_BELOW_RESOLUTION 1000
423 #define RE_MIN_RESOLUTION_SCALE_FACTOR 0.85f
425 #define MM_TO_INCHES(mm) ((mm) / 25.4)
427 #define RE_HALF_TONE_ALPHA 0.6f
428 #define RE_QUARTER_TONE_ALPHA 0.3f
570 #define RE_MODE_MULTISAMPLE_MASK 0x60
571 #define RE_MODE_MULTISAMPLE_SHIFT 5
662 const char *renderstring);
705 myColorScale(1.0
f), myColorShift(0.0
f),
706 myColorBlack(0.0
f), myColorWhite(1.0
f),
707 myAlphaScale(1.0
f), myAlphaShift(0.0
f),
708 myGamma(1.0
f), myAspectRatio(1.0
f), myVScale(1.0
f),
709 myLUTSize(0), myComponent(-1), myModifyAlpha(false),
710 myDither(true), myComponentsAsGrey(true),
711 myLUTObject(0), myTransparent(0), myPremultiplyFlag(0),
712 myFragment16bit(0), myStereoMode(0), myPreBright(0),
713 myIgnoreGamma(false), myColorCorrectDisable(false),
714 myResetViewMatrix(true), myFlipX(false), myFlipY(false),
716 { myLUT[0] = myLUT[1] = myLUT[2] = myLUT[3] = 0; }
734 unsigned myModifyAlpha :1,
736 myComponentsAsGrey :1,
743 myColorCorrectDisable : 1,
744 myResetViewMatrix :1,
758 mySmoothPushed =
false;
759 mySmoothRequest =
false;
760 mySmoothEnable =
false;
762 myPrevLineWidth = -1.0f;
788 void get(
bool &req_smooth,
int &
blend,
793 req_smooth = mySmoothRequest;
797 sa = myAlphaSourceFactor;
798 da = myAlphaDestFactor;
804 mySmoothRequest =
false;
817 return (mySmoothEnable != -1 &&
818 myForceSmooth != -1 &&
853 myPassDepthFailOperation =
RE_SKEEP;
854 myPassDepthPassOperation =
RE_SKEEP;
868 myClearValue = clearValue;
869 myWriteMask = writeMask;
872 myValueMask = valueMask;
873 myFailOperation = failOperation;
874 myPassDepthFailOperation = passDepthFailOperation;
875 myPassDepthPassOperation = passDepthPassOperation;
878 void get(
bool &enable,
889 clearValue = myClearValue;
890 writeMask = myWriteMask;
893 valueMask = myValueMask;
894 failOperation = myFailOperation;
895 passDepthFailOperation = myPassDepthFailOperation;
896 passDepthPassOperation = myPassDepthPassOperation;
917 myDepthBufferWrite = -1;
932 #define PATTERN_STACK_SIZE 7
933 #define RE_SMOOTH_STACK_SIZE 16
934 #define RE_STENCIL_STACK_SIZE 16
935 #define RE_ALIGN_STACK_SIZE 16
936 #define RE_FRAMEBUFFER_STACK_SIZE 8
937 #define RE_SHADER_STACK_SIZE 16
938 #define RE_BUFFER_STACK_SIZE 8
939 #define RE_DEPTH_STACK_SIZE 16
940 #define RE_UNIFORM_STACK_SIZE 16
943 #define RE_STACK_DEPTH 256
952 class QOpenGLContext;
955 #if !defined(EXPERIMENTAL_QOPENGLWIDGET)
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
RE_API int REgetGLPrim(RE_PrimType t)
RE_API const char * REgetPrimName(RE_PrimType p)
RE_API RE_ShaderTarget REgetShaderTargetForPrim(RE_PrimType type)
RE_API RE_GraphicsDevice REdetermineGraphicsDevice(const char *renderstring)
RE_API void REgetDeviceName(RE_GraphicsDevice dev, UT_String &name)
RE_BlendSourceFactor mySourceFactor
RE_GPUType REconvertIMGType(IMG_DataType t)
unsigned int REsizeOfGPUType(RE_GPUType gpu_type)
RE_GLDrawable * OGLDrawable
UT_StringArray RE_OverrideList
UT_IntrusivePtr< RE_OGLBuffer > RE_OGLBufferHandle
RE_GPUType REconvertFromGPUType(UT_GPUType t)
RE_SOperation myPassDepthFailOperation
vint4 blend(const vint4 &a, const vint4 &b, const vbool4 &mask)
UT_StringHolder REshaderStageExtension(RE_ShaderType stage)
UT_GPUType PXLconvertToUTGPUType(PXL_DataFormat t)
Visualization myVisualization
RE_SOperation myPassDepthPassOperation
void set(bool enable, int clearValue, int writeMask, RE_SFunction func, int ref, int valueMask, RE_SOperation failOperation, RE_SOperation passDepthFailOperation, RE_SOperation passDepthPassOperation)
RE_BlendSourceFactor myAlphaSourceFactor
void copy(const re_BlendSmoothState &state)
bool REisProfessionalDevice(RE_GraphicsDevice dev)
GLuint const GLchar * name
RE_BlendDestFactor myAlphaDestFactor
RE_BlendDestFactor myDestFactor
UT_GPUType REconvertToUTGPUType(RE_GPUType t)
RE_GPUType REconvertPXLType(PXL_DataFormat t)
RE_BlendEquation myEquation
UT_IntrusivePtr< RE_Material > RE_MaterialPtr
RE_API RE_PrimType REgetREPrim(int gltype)
QOpenGLContext * RE_OGLContext
RE_API const char * REgetTypeName(RE_GPUType p)
bool REisConsumerDevice(RE_GraphicsDevice dev)
RE_SOperation myFailOperation
RE_API RE_ShaderTarget REgetShaderTargetForGLPrim(int gltype)