16 #define RE_MAX_PICK_DIST 100
41 #define RE_NUM_WINDOW_TYPES RE_WINDOW_INVALID_TYPE
389 #if defined(WIN32) || defined(MBSD_COCOA)
390 typedef void * Display;
395 #define RE_TEXCACHE_DEFAULT_MAX_SIZE int64(512) * 1024 * 1024
396 #define RE_BUFCACHE_DEFAULT_MAX_SIZE int64(2) * 1024 * 1024 * 1024
398 #define RE_TEXCACHE_DEFAULT_MAX_SIZE 96 * 1024 * 1024
399 #define RE_BUFCACHE_DEFAULT_MAX_SIZE 384 * 1024 * 1024
402 #define RE_DEFAULT_DPI 85.0
403 #define RE_SCALE_BELOW_RESOLUTION 1000
404 #define RE_MIN_RESOLUTION_SCALE_FACTOR 0.85f
406 #define MM_TO_INCHES(mm) ((mm) / 25.4)
408 #define RE_HALF_TONE_ALPHA 0.6f
409 #define RE_QUARTER_TONE_ALPHA 0.3f
551 #define RE_MODE_MULTISAMPLE_MASK 0x60
552 #define RE_MODE_MULTISAMPLE_SHIFT 5
643 const char *renderstring);
677 myColorScale(1.0
f), myColorShift(0.0
f),
678 myColorBlack(0.0
f), myColorWhite(1.0
f),
679 myAlphaScale(1.0
f), myAlphaShift(0.0
f),
680 myGamma(1.0
f), myAspectRatio(1.0
f), myVScale(1.0
f),
681 myLUTSize(0), myComponent(-1), myModifyAlpha(false),
682 myDither(true), myComponentsAsGrey(true),
683 myLUTObject(0), myTransparent(0), myPremultiplyFlag(0),
684 myFragment16bit(0), myStereoMode(0), myPreBright(0),
685 myIgnoreGamma(false), myColorCorrectDisable(false),
686 myResetViewMatrix(true), myFlipX(false), myFlipY(false)
687 { myLUT[0] = myLUT[1] = myLUT[2] = myLUT[3] = 0; }
703 unsigned myModifyAlpha :1,
705 myComponentsAsGrey :1,
712 myColorCorrectDisable : 1,
713 myResetViewMatrix :1,
727 mySmoothPushed =
false;
728 mySmoothRequest =
false;
729 mySmoothEnable =
false;
731 myPrevLineWidth = -1.0f;
757 void get(
bool &req_smooth,
int &
blend,
762 req_smooth = mySmoothRequest;
766 sa = myAlphaSourceFactor;
767 da = myAlphaDestFactor;
773 mySmoothRequest =
false;
786 return (mySmoothEnable != -1 &&
787 myForceSmooth != -1 &&
822 myPassDepthFailOperation =
RE_SKEEP;
823 myPassDepthPassOperation =
RE_SKEEP;
837 myClearValue = clearValue;
838 myWriteMask = writeMask;
841 myValueMask = valueMask;
842 myFailOperation = failOperation;
843 myPassDepthFailOperation = passDepthFailOperation;
844 myPassDepthPassOperation = passDepthPassOperation;
858 clearValue = myClearValue;
859 writeMask = myWriteMask;
862 valueMask = myValueMask;
863 failOperation = myFailOperation;
864 passDepthFailOperation = myPassDepthFailOperation;
865 passDepthPassOperation = myPassDepthPassOperation;
886 myDepthBufferWrite = -1;
901 #define PATTERN_STACK_SIZE 7
902 #define RE_SMOOTH_STACK_SIZE 16
903 #define RE_STENCIL_STACK_SIZE 16
904 #define RE_ALIGN_STACK_SIZE 16
905 #define RE_FRAMEBUFFER_STACK_SIZE 8
906 #define RE_SHADER_STACK_SIZE 16
907 #define RE_BUFFER_STACK_SIZE 8
908 #define RE_DEPTH_STACK_SIZE 16
909 #define RE_UNIFORM_STACK_SIZE 16
912 #define RE_STACK_DEPTH 256
921 class QOpenGLContext;
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
GLuint const GLchar * name
RE_GPUType REconvertFromGPUType(UT_GPUType t)
RE_SOperation myPassDepthFailOperation
vint4 blend(const vint4 &a, const vint4 &b, const vbool4 &mask)
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)
typedef int(WINAPI *PFNWGLRELEASEPBUFFERDCARBPROC)(HPBUFFERARB hPbuffer
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)