16 #define RE_MAX_PICK_DIST 100
41 #define RE_NUM_WINDOW_TYPES RE_WINDOW_INVALID_TYPE
409 #if defined(WIN32) || defined(MBSD_COCOA)
410 typedef void * Display;
415 #define RE_TEXCACHE_DEFAULT_MAX_SIZE int64(512) * 1024 * 1024
416 #define RE_BUFCACHE_DEFAULT_MAX_SIZE int64(2) * 1024 * 1024 * 1024
418 #define RE_TEXCACHE_DEFAULT_MAX_SIZE 96 * 1024 * 1024
419 #define RE_BUFCACHE_DEFAULT_MAX_SIZE 384 * 1024 * 1024
422 #define RE_DEFAULT_DPI 85.0
423 #define RE_SCALE_BELOW_RESOLUTION 1000
424 #define RE_MIN_RESOLUTION_SCALE_FACTOR 0.85f
426 #define MM_TO_INCHES(mm) ((mm) / 25.4)
428 #define RE_HALF_TONE_ALPHA 0.6f
429 #define RE_QUARTER_TONE_ALPHA 0.3f
571 #define RE_MODE_MULTISAMPLE_MASK 0x60
572 #define RE_MODE_MULTISAMPLE_SHIFT 5
663 const char *renderstring);
706 myColorScale(1.0
f), myColorShift(0.0
f),
707 myColorBlack(0.0
f), myColorWhite(1.0
f),
708 myAlphaScale(1.0
f), myAlphaShift(0.0
f),
709 myGamma(1.0
f), myAspectRatio(1.0
f), myVScale(1.0
f),
710 myLUTSize(0), myComponent(-1), myModifyAlpha(false),
711 myDither(true), myComponentsAsGrey(true),
712 myLUTObject(0), myTransparent(0), myPremultiplyFlag(0),
713 myFragment16bit(0), myStereoMode(0), myPreBright(0),
714 myIgnoreGamma(false), myColorCorrectDisable(false),
715 myResetViewMatrix(true), myFlipX(false), myFlipY(false),
717 { myLUT[0] = myLUT[1] = myLUT[2] = myLUT[3] = 0; }
735 unsigned myModifyAlpha :1,
737 myComponentsAsGrey :1,
744 myColorCorrectDisable : 1,
745 myResetViewMatrix :1,
759 mySmoothPushed =
false;
760 mySmoothRequest =
false;
761 mySmoothEnable =
false;
763 myPrevLineWidth = -1.0f;
789 void get(
bool &req_smooth,
int &
blend,
794 req_smooth = mySmoothRequest;
798 sa = myAlphaSourceFactor;
799 da = myAlphaDestFactor;
805 mySmoothRequest =
false;
818 return (mySmoothEnable != -1 &&
819 myForceSmooth != -1 &&
854 myPassDepthFailOperation =
RE_SKEEP;
855 myPassDepthPassOperation =
RE_SKEEP;
869 myClearValue = clearValue;
870 myWriteMask = writeMask;
873 myValueMask = valueMask;
874 myFailOperation = failOperation;
875 myPassDepthFailOperation = passDepthFailOperation;
876 myPassDepthPassOperation = passDepthPassOperation;
879 void get(
bool &enable,
890 clearValue = myClearValue;
891 writeMask = myWriteMask;
894 valueMask = myValueMask;
895 failOperation = myFailOperation;
896 passDepthFailOperation = myPassDepthFailOperation;
897 passDepthPassOperation = myPassDepthPassOperation;
918 myDepthBufferWrite = -1;
933 #define PATTERN_STACK_SIZE 7
934 #define RE_SMOOTH_STACK_SIZE 16
935 #define RE_STENCIL_STACK_SIZE 16
936 #define RE_ALIGN_STACK_SIZE 16
937 #define RE_FRAMEBUFFER_STACK_SIZE 8
938 #define RE_SHADER_STACK_SIZE 16
939 #define RE_BUFFER_STACK_SIZE 8
940 #define RE_DEPTH_STACK_SIZE 16
941 #define RE_UNIFORM_STACK_SIZE 16
944 #define RE_STACK_DEPTH 256
953 class QOpenGLContext;
956 #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)