| typedef TypedStateComponent<Imath::Color4f, BlendColorStateComponentTypeId> IECoreGL::BlendColorStateComponent |
| typedef TypedStateComponent<GLenum, BlendEquationStateComponentTypeId> IECoreGL::BlendEquationStateComponent |
| typedef TypedStateComponent<BlendFactors, BlendFuncStateComponentTypeId> IECoreGL::BlendFuncStateComponent |
| typedef TypedStateComponent<Imath::Color4f, BoundColorStateComponentTypeId> IECoreGL::BoundColorStateComponent |
Specifies the color to draw bounding boxes in.
| typedef TypedStateComponent<Imath::Color4f, ColorTypeId> IECoreGL::Color |
| typedef TypedStateComponent<Imath::Box3f, CullingBoxStateComponentTypeId> IECoreGL::CullingBoxStateComponent |
| typedef TypedStateComponent<RendererSpace, CullingSpaceStateComponentTypeId> IECoreGL::CullingSpaceStateComponent |
| typedef TypedStateComponent<bool, DoubleSidedStateComponentTypeId> IECoreGL::DoubleSidedStateComponent |
Used to specify enable state of GL_CULL_FACE.
| typedef TypedStateComponent<bool, LineSmoothingStateComponentTypeId> IECoreGL::LineSmoothingStateComponent |
Used to specify enable state of GL_LINE_SMOOTH.
| typedef TypedStateComponent<Imath::Color4f, OutlineColorStateComponentTypeId> IECoreGL::OutlineColorStateComponent |
Specifies the color to draw outlines in.
| typedef TypedStateComponent<Imath::Color4f, PointColorStateComponentTypeId> IECoreGL::PointColorStateComponent |
Specifies the color to draw points in.
| typedef TypedStateComponent<bool, PointSmoothingStateComponentTypeId> IECoreGL::PointSmoothingStateComponent |
Used to specify enable state of GL_POINT_SMOOTH.
| typedef TypedStateComponent<bool, PolygonSmoothingStateComponentTypeId> IECoreGL::PolygonSmoothingStateComponent |
Used to specify enable state of GL_POLYGON_SMOOTH.
| typedef TypedStateComponent<bool, ProceduralThreadingStateComponentTypeId> IECoreGL::ProceduralThreadingStateComponent |
Defines whether or not procedurals will be executed in parallel threads.
| typedef TypedStateComponent<bool, RightHandedOrientationStateComponentTypeId> IECoreGL::RightHandedOrientationStateComponent |
Used to implement the "rightHandedOrientation" Renderer attribute. Implemented by calling glFrontFace( GL_CCW ) when true and glFrontFace( GL_CW ) when false.
| typedef TypedStateComponent<bool, TransparentShadingStateComponentTypeId> IECoreGL::TransparentShadingStateComponent |
| typedef void(* IECoreGL::UniformFloatFunction)(GLint, GLsizei count, const GLfloat *) |
The type of the glUniformNfv functions.
| typedef void(* IECoreGL::UniformIntFunction)(GLint, GLsizei count, const GLint *) |
The type of the glUniformNiv functions.
| typedef TypedStateComponent<Imath::Color4f, WireframeColorStateComponentTypeId> IECoreGL::WireframeColorStateComponent |
Specifies the color to draw wireframes in.
| enum IECoreGL::TypeId |
| void IECoreGL::debugPrintErrors | ( | const char * | file, | |
| int | line | |||
| ) |
References IECore::MessageHandler::Error, IECore::Log::error(), and IECore::msg().
| void IECoreGL::glNormal | ( | const Imath::V3f & | n | ) | [inline] |
| void IECoreGL::glTranslate | ( | const Imath::V3f & | t | ) | [inline] |
| void IECoreGL::glTranslate | ( | const Imath::V2f & | t | ) | [inline] |
| void IECoreGL::glVertex | ( | const Imath::V3f & | v | ) | [inline] |
| IECoreGL::IE_CORE_DECLAREPTR | ( | Window | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | Color | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | ToGLTextureConverter | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | ToGLMeshConverter | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | ToGLConverter | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | ToGLCameraConverter | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | Texture | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | TextPrimitive | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | StateComponent | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | SplineToGLTextureConverter | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | SpherePrimitive | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | ShaderStateComponent | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | SceneViewer | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | Scene | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | Renderer | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | Renderable | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | QuadPrimitive | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | Primitive | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | PointsPrimitive | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | PerspectiveCamera | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | OrthographicCamera | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | NameStateComponent | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | MeshPrimitive | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | LuminanceTexture | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | Group | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | FrameBuffer | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | Font | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | DiskPrimitive | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | DepthTexture | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | CurvesPrimitive | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | ColorTexture | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | CameraController | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | Camera | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | BoxPrimitive | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | Bindable | ) |
| IECoreGL::IE_CORE_DECLAREPTR | ( | AlphaTexture | ) |
| IECoreGL::IE_CORE_FORWARDDECLARE | ( | Renderer | ) |
| IECoreGL::IE_CORE_FORWARDDECLARE | ( | NameStateComponent | ) |
| IECoreGL::IE_CORE_FORWARDDECLARE | ( | BoxPrimitive | ) |
| IECoreGL::IE_CORE_FORWARDDECLARE | ( | TextureLoader | ) |
| IECoreGL::IE_CORE_FORWARDDECLARE | ( | FrameBuffer | ) |
| IECoreGL::IE_CORE_FORWARDDECLARE | ( | StateComponent | ) |
| IECoreGL::IE_CORE_FORWARDDECLARE | ( | Texture | ) |
| IECoreGL::IE_CORE_FORWARDDECLARE | ( | ShaderManager | ) |
| IECoreGL::IE_CORE_FORWARDDECLARE | ( | Primitive | ) |
| IECoreGL::IE_CORE_FORWARDDECLARE | ( | Shader | ) |
| IECoreGL::IE_CORE_FORWARDDECLARE | ( | CameraController | ) |
| IECoreGL::IE_CORE_FORWARDDECLARE | ( | Camera | ) |
| IECoreGL::IE_CORE_FORWARDDECLARE | ( | Group | ) |
| IECoreGL::IE_CORE_FORWARDDECLARE | ( | Scene | ) |
| IECoreGL::IE_CORE_FORWARDDECLARE | ( | State | ) |
| IECoreGL::IE_CORE_FORWARDDECLARE | ( | DepthTexture | ) |
| IECoreGL::IE_CORE_FORWARDDECLARE | ( | ColorTexture | ) |
| IECoreGL::IE_CORE_FORWARDDECLARE | ( | MeshPrimitive | ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISE | ( | LineSmoothingStateComponent | , | |
| bool | , | |||
| false | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISE | ( | DoubleSidedStateComponent | , | |
| bool | , | |||
| true | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISE | ( | BlendEquationStateComponent | , | |
| GLenum | , | |||
| GL_FUNC_ADD | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISE | ( | BlendFuncStateComponent | , | |
| BlendFactors | , | |||
| BlendFactors(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISE | ( | Color | , | |
| Color4f | , | |||
| Color4f(1, 1, 1, 1) | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | ProceduralThreadingStateComponent | , | |
| ProceduralThreadingStateComponentTypeId | , | |||
| bool | , | |||
| true | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | CullingBoxStateComponent | , | |
| CullingBoxStateComponentTypeId | , | |||
| Imath::Box3f | , | |||
| Imath:: | Box3f() | |||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | CullingSpaceStateComponent | , | |
| CullingSpaceStateComponentTypeId | , | |||
| RendererSpace | , | |||
| ObjectSpace | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | PointColorStateComponent | , | |
| PointColorStateComponentTypeId | , | |||
| Color4f | , | |||
| Color4f(0.85, 0.45, 0, 1) | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | OutlineColorStateComponent | , | |
| OutlineColorStateComponentTypeId | , | |||
| Color4f | , | |||
| Color4f(0.85, 0.75, 0.45, 1) | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | WireframeColorStateComponent | , | |
| WireframeColorStateComponentTypeId | , | |||
| Color4f | , | |||
| Color4f(0.25, 0.6, 0.85, 1) | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | BoundColorStateComponent | , | |
| BoundColorStateComponentTypeId | , | |||
| Color4f | , | |||
| Color4f(0.36, 0.8, 0.85, 1) | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | TransparentShadingStateComponent | , | |
| TransparentShadingStateComponentTypeId | , | |||
| bool | , | |||
| false | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | TextPrimitive::Type | , | |
| TextPrimitiveTypeTypeId | , | |||
| TextPrimitive::RenderType | , | |||
| TextPrimitive::Mesh | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | Primitive::TransparencySort | , | |
| PrimitiveTransparencySortStateComponentTypeId | , | |||
| bool | , | |||
| true | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | Primitive::PointWidth | , | |
| PrimitivePointWidthTypeId | , | |||
| float | , | |||
| 1. | 0f | |||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | Primitive::DrawPoints | , | |
| PrimitivePointsTypeId | , | |||
| bool | , | |||
| false | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | Primitive::OutlineWidth | , | |
| PrimitiveOutlineWidthTypeId | , | |||
| float | , | |||
| 1. | 0f | |||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | Primitive::DrawOutline | , | |
| PrimitiveOutlineTypeId | , | |||
| bool | , | |||
| false | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | Primitive::DrawSolid | , | |
| PrimitiveSolidTypeId | , | |||
| bool | , | |||
| true | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | Primitive::WireframeWidth | , | |
| PrimitiveWireframeWidthTypeId | , | |||
| float | , | |||
| 1. | 0f | |||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | Primitive::DrawWireframe | , | |
| PrimitiveWireframeTypeId | , | |||
| bool | , | |||
| false | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | Primitive::DrawBound | , | |
| PrimitiveBoundTypeId | , | |||
| bool | , | |||
| false | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | PointsPrimitive::GLPointWidth | , | |
| PointsPrimitiveGLPointWidthTypeId | , | |||
| float | , | |||
| 1. | 0f | |||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | PointsPrimitive::UseGLPoints | , | |
| PointsPrimitiveUseGLPointsTypeId | , | |||
| GLPointsUsage | , | |||
| ForPointsOnly | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | CurvesPrimitive::GLLineWidth | , | |
| CurvesPrimitiveGLLineWidthTypeId | , | |||
| float | , | |||
| 1 | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | CurvesPrimitive::UseGLLines | , | |
| CurvesPrimitiveUseGLLinesTypeId | , | |||
| bool | , | |||
| false | ||||
| ) |
| IECoreGL::IECOREGL_TYPEDSTATECOMPONENT_SPECIALISEANDINSTANTIATE | ( | CurvesPrimitive::IgnoreBasis | , | |
| CurvesPrimitiveIgnoreBasisTypeId | , | |||
| bool | , | |||
| false | ||||
| ) |
| void IECoreGL::init | ( | bool | glAlreadyInitialised = false |
) |
This function must be called at least once before using any functionality in the IECoreGL library. Set glAlreadyInitialised to true if you have setup an OpenGL context already, and false if you wish one to be created for you (using GLUT). There is no harm in calling it multiple times.
References IECore::MessageHandler::Error, and IECore::msg().
| const std::vector< GLenum > & IECoreGL::lights | ( | ) |
Returns a vector containing GL_LIGHT0, GL_LIGHT1, ... GL_LIGHTN for all light enums up to GL_MAX_LIGHTS - 1.
| const std::vector< GLenum > & IECoreGL::textureUnits | ( | ) |
Returns a vector containing GL_TEXTURE0, GL_TEXTURE1, ... GL_TEXTUREN for all texture unit enums up to GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS - 1. That way you can actually program texture code like a grown up, using like loops and stuff.
Referenced by IECoreGL::ShaderStateComponent::bind(), and IECoreGL::Primitive::render().
| const std::vector< IECoreGL::UniformFloatFunction > & IECoreGL::uniformFloatFunctions | ( | ) |
Returns a vector containing functions pointers to glUniform1fv, glUniform2fv ... glUniform4fv. This can be useful to avoid switching on your datasize when setting shader parameters - you can instead index straight into this vector to retrieve the appropriate function to call.
Referenced by IECoreGL::Shader::Shader::VertexToUniform::operator()().
| const std::vector< IECoreGL::UniformIntFunction > & IECoreGL::uniformIntFunctions | ( | ) |
Returns a vector containing functions pointers to glUniform1iv, glUniform2iv ... glUniform4iv. This can be useful to avoid switching on your datasize when setting shader parameters - you can instead index straight into this vector to retrieve the appropriate function to call.
Referenced by IECoreGL::Shader::Shader::VertexToUniform::operator()().
1.5.8