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);
696 myColorScale(1.0
f), myColorShift(0.0
f),
697 myColorBlack(0.0
f), myColorWhite(1.0
f),
698 myAlphaScale(1.0
f), myAlphaShift(0.0
f),
699 myGamma(1.0
f), myAspectRatio(1.0
f), myVScale(1.0
f),
700 myLUTSize(0), myComponent(-1), myModifyAlpha(false),
701 myDither(true), myComponentsAsGrey(true),
702 myLUTObject(0), myTransparent(0), myPremultiplyFlag(0),
703 myFragment16bit(0), myStereoMode(0), myPreBright(0),
704 myIgnoreGamma(false), myColorCorrectDisable(false),
705 myResetViewMatrix(true), myFlipX(false), myFlipY(false)
706 { myLUT[0] = myLUT[1] = myLUT[2] = myLUT[3] = 0; }
723 unsigned myModifyAlpha :1,
725 myComponentsAsGrey :1,
732 myColorCorrectDisable : 1,
733 myResetViewMatrix :1,
747 mySmoothPushed =
false;
748 mySmoothRequest =
false;
749 mySmoothEnable =
false;
751 myPrevLineWidth = -1.0f;
777 void get(
bool &req_smooth,
int &
blend,
782 req_smooth = mySmoothRequest;
786 sa = myAlphaSourceFactor;
787 da = myAlphaDestFactor;
793 mySmoothRequest =
false;
806 return (mySmoothEnable != -1 &&
807 myForceSmooth != -1 &&
842 myPassDepthFailOperation =
RE_SKEEP;
843 myPassDepthPassOperation =
RE_SKEEP;
857 myClearValue = clearValue;
858 myWriteMask = writeMask;
861 myValueMask = valueMask;
862 myFailOperation = failOperation;
863 myPassDepthFailOperation = passDepthFailOperation;
864 myPassDepthPassOperation = passDepthPassOperation;
867 void get(
bool &enable,
878 clearValue = myClearValue;
879 writeMask = myWriteMask;
882 valueMask = myValueMask;
883 failOperation = myFailOperation;
884 passDepthFailOperation = myPassDepthFailOperation;
885 passDepthPassOperation = myPassDepthPassOperation;
906 myDepthBufferWrite = -1;
921 #define PATTERN_STACK_SIZE 7
922 #define RE_SMOOTH_STACK_SIZE 16
923 #define RE_STENCIL_STACK_SIZE 16
924 #define RE_ALIGN_STACK_SIZE 16
925 #define RE_FRAMEBUFFER_STACK_SIZE 8
926 #define RE_SHADER_STACK_SIZE 16
927 #define RE_BUFFER_STACK_SIZE 8
928 #define RE_DEPTH_STACK_SIZE 16
929 #define RE_UNIFORM_STACK_SIZE 16
932 #define RE_STACK_DEPTH 256
941 class QOpenGLContext;
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)
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)