25 #define RE_MAX_PICK_DIST 100
51 #define RE_NUM_WINDOW_TYPES RE_WINDOW_INVALID_TYPE
415 #if defined(WIN32) || defined(MBSD_COCOA)
416 typedef void * Display;
421 #define RE_TEXCACHE_DEFAULT_MAX_SIZE int64(512) * 1024 * 1024
422 #define RE_BUFCACHE_DEFAULT_MAX_SIZE int64(2) * 1024 * 1024 * 1024
424 #define RE_TEXCACHE_DEFAULT_MAX_SIZE 96 * 1024 * 1024
425 #define RE_BUFCACHE_DEFAULT_MAX_SIZE 384 * 1024 * 1024
428 #define RE_DEFAULT_DPI 85.0
429 #define RE_SCALE_BELOW_RESOLUTION 1000
430 #define RE_MIN_RESOLUTION_SCALE_FACTOR 0.85f
432 #define MM_TO_INCHES(mm) ((mm) / 25.4)
434 #define RE_HALF_TONE_ALPHA 0.6f
435 #define RE_QUARTER_TONE_ALPHA 0.3f
577 #define RE_MODE_MULTISAMPLE_MASK 0x60
578 #define RE_MODE_MULTISAMPLE_SHIFT 5
669 const char *renderstring);
702 myColorScale(1.0
f), myColorShift(0.0
f),
703 myColorBlack(0.0
f), myColorWhite(1.0
f),
704 myAlphaScale(1.0
f), myAlphaShift(0.0
f),
705 myGamma(1.0
f), myAspectRatio(1.0
f), myVScale(1.0
f),
706 myLUTSize(0), myComponent(-1), myModifyAlpha(false),
707 myDither(true), myComponentsAsGrey(true),
708 myLUTObject(0), myTransparent(0), myPremultiplyFlag(0),
709 myFragment16bit(0), myStereoMode(0), myPreBright(0),
710 myIgnoreGamma(false), myColorCorrectDisable(false),
711 myResetViewMatrix(true), myFlipX(false), myFlipY(false),
713 { myLUT[0] = myLUT[1] = myLUT[2] = myLUT[3] = 0; }
731 unsigned myModifyAlpha :1,
733 myComponentsAsGrey :1,
740 myColorCorrectDisable : 1,
741 myResetViewMatrix :1,
755 mySmoothPushed =
false;
756 mySmoothRequest =
false;
757 mySmoothEnable =
false;
759 myPrevLineWidth = -1.0f;
785 void get(
bool &req_smooth,
int &
blend,
790 req_smooth = mySmoothRequest;
794 sa = myAlphaSourceFactor;
795 da = myAlphaDestFactor;
801 mySmoothRequest =
false;
814 return (mySmoothEnable != -1 &&
815 myForceSmooth != -1 &&
850 myPassDepthFailOperation =
RE_SKEEP;
851 myPassDepthPassOperation =
RE_SKEEP;
865 myClearValue = clearValue;
866 myWriteMask = writeMask;
869 myValueMask = valueMask;
870 myFailOperation = failOperation;
871 myPassDepthFailOperation = passDepthFailOperation;
872 myPassDepthPassOperation = passDepthPassOperation;
875 void get(
bool &enable,
886 clearValue = myClearValue;
887 writeMask = myWriteMask;
890 valueMask = myValueMask;
891 failOperation = myFailOperation;
892 passDepthFailOperation = myPassDepthFailOperation;
893 passDepthPassOperation = myPassDepthPassOperation;
914 myDepthBufferWrite = -1;
929 #define PATTERN_STACK_SIZE 7
930 #define RE_SMOOTH_STACK_SIZE 16
931 #define RE_STENCIL_STACK_SIZE 16
932 #define RE_ALIGN_STACK_SIZE 16
933 #define RE_FRAMEBUFFER_STACK_SIZE 8
934 #define RE_SHADER_STACK_SIZE 16
935 #define RE_BUFFER_STACK_SIZE 8
936 #define RE_DEPTH_STACK_SIZE 16
937 #define RE_UNIFORM_STACK_SIZE 16
940 #define RE_STACK_DEPTH 256
949 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
PXL_Visualization Visualization
RE_GPUType REconvertFromGPUType(UT_GPUType t)
RE_SOperation myPassDepthFailOperation
vint4 blend(const vint4 &a, const vint4 &b, const vbool4 &mask)
GLint GLint GLsizei GLint GLenum GLenum type
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)