Welcome to Python-flavored Magnum! Please note that, while already being
rather stable, this functionality is still considered experimental and
some APIs might get changed without preserving full backwards compatibility.
class
RendererGlobal renderer configuration
Enums
- class BlendEquation: ADD = 32774 SUBTRACT = 32778 REVERSE_SUBTRACT = 32779 MIN = 32775 MAX = 32776 MULTIPLY = 37524 SCREEN = 37525 OVERLAY = 37526 DARKEN = 37527 LIGHTEN = 37528 COLOR_DODGE = 37529 COLOR_BURN = 37530 HARD_LIGHT = 37531 SOFT_LIGHT = 37532 DIFFERENCE = 37534 EXCLUSION = 37536 HSL_HUE = 37549 HSL_SATURATION = 37550 HSL_COLOR = 37551 HSL_LUMINOSITY = 37552
- Blend Equation
- class BlendFunction: ZERO = 0 ONE = 1 CONSTANT_COLOR = 32769 ONE_MINUS_CONSTANT_COLOR = 32770 CONSTANT_ALPHA = 32771 ONE_MINUS_CONSTANT_ALPHA = 32772 SOURCE_COLOR = 768 SECOND_SOURCE_COLOR = 35065 ONE_MINUS_SOURCE_COLOR = 769 ONE_MINUS_SECOND_SOURCE_COLOR = 35066 SOURCE_ALPHA = 770 SOURCE_ALPHA_SATURATE = 776 SECOND_SOURCE_ALPHA = 34185 ONE_MINUS_SOURCE_ALPHA = 771 ONE_MINUS_SECOND_SOURCE_ALPHA = 35067 DESTINATION_COLOR = 774 ONE_MINUS_DESTINATION_COLOR = 775 DESTINATION_ALPHA = 772 ONE_MINUS_DESTINATION_ALPHA = 773
- Blend Function
- class Error: NO_ERROR = 0 INVALID_ENUM = 1280 INVALID_VALUE = 1281 INVALID_OPERATION = 1282 INVALID_FRAMEBUFFER_OPERATION = 1286 OUT_OF_MEMORY = 1285 STACK_UNDERFLOW = 1284 STACK_OVERFLOW = 1283
- Error status
- class Feature: BLEND_ADVANCED_COHERENT = 37509 BLENDING = 3042 CLIP_DISTANCE0 = 12288 CLIP_DISTANCE1 = 12289 CLIP_DISTANCE2 = 12290 CLIP_DISTANCE3 = 12291 CLIP_DISTANCE4 = 12292 CLIP_DISTANCE5 = 12293 CLIP_DISTANCE6 = 12294 CLIP_DISTANCE7 = 12295 DEBUG_OUTPUT = 37600 DEBUG_OUTPUT_SYNCHRONOUS = 33346 DEPTH_CLAMP = 34383 DEPTH_TEST = 2929 DITHERING = 3024 FACE_CULLING = 2884 FRAMEBUFFER_SRGB = 36281 LOGIC_OPERATION = 3058 MULTISAMPLING = 32925 POLYGON_OFFSET_FILL = 32823 POLYGON_OFFSET_LINE = 10754 POLYGON_OFFSET_POINT = 10753 PROGRAM_POINT_SIZE = 34370 RASTERIZER_DISCARD = 35977 SAMPLE_SHADING = 35894 SEAMLESS_CUBE_MAP_TEXTURE = 34895 SCISSOR_TEST = 3089 STENCIL_TEST = 2960
- Feature
Static methods
- def disable(feature: Feature) -> None
- Disable a feature
- def enable(feature: Feature) -> None
- Enable a feature
- def set_blend_equation(equation: BlendEquation) -> None
- Set blend equation
- def set_blend_equation(draw_buffer: int, equation: BlendEquation) -> None
- Set blend equation for given draw buffer
- def set_blend_equation(rgb: BlendEquation, alpha: BlendEquation) -> None
- Set blend equation separately for RGB and alpha components
- def set_blend_equation(draw_buffer: int, rgb: BlendEquation, alpha: BlendEquation) -> None
- Set blend equation for given draw buffer separately for RGB and alpha components
- def set_blend_function(source: BlendFunction, destination: BlendFunction) -> None
- Set blend function
- def set_blend_function(draw_buffer: int, source: BlendFunction, destination: BlendFunction) -> None
- Set blend function for given draw buffer
- def set_blend_function(source_rgb: BlendFunction, destination_rgb: BlendFunction, source_alpha: BlendFunction, destination_alpha: BlendFunction) -> None
- Set blend function separately for RGB and alpha components
- def set_blend_function(draw_buffer: int, source_rgb: BlendFunction, destination_rgb: BlendFunction, source_alpha: BlendFunction, destination_alpha: BlendFunction) -> None
- Set blend function separately for RGB and alpha components
- def set_feature(feature: Feature, enabled: bool) -> None
- Enable or disable a feature
Properties
- clear_color: Color4 set
- Set clear color