• Home
  • Samples
  • Api Documentation
Show / Hide Table of Contents
  • Aximo
    • AssetManager
    • AxMath
    • AxPixelFormat
    • AxPrimitiveType
    • BoxExtensions
    • BoxHelper
    • BufferData
    • BufferData1D
    • BufferData1D<T>
    • BufferData2D
    • BufferData2D<T>
    • BufferData3D
    • BufferData3D<T>
    • BufferDataExtentions
    • Camera
    • Camera.CameraChangedDelegate
    • CameraType
    • DebugHelper
    • DictionaryExtensions
    • EventCounter
    • FaceExtensions
    • GenerateFileDelegate
    • Hashing
    • IArray<T>
    • IData
    • IDynamicArray<T>
    • ImageExtensions
    • IPosition
    • IVisitor
    • IVisitorNode
    • Line2
    • Line3
    • ListExtensions
    • Log
    • LogExtensions
    • Mesh
    • MeshColorComponent
    • MeshComponent
    • MeshComponent<T>
    • MeshComponentType
    • MeshFace<T>
    • MeshFaceType
    • MeshNormalComponent
    • MeshPosition2Component
    • MeshPosition3Component
    • MeshPositionComponent<T>
    • MeshUVComponent
    • MeshVertexList<T>
    • OrthographicCamera
    • PathBuilder
    • PerspectiveFieldOfViewCamera
    • Plane
    • Ray
    • ScreenResizeEventArgs
    • SharedLib
    • StreamExtensions
    • StringExtensions
    • Transform
    • VectorExtensions
    • VectorHelper
  • Aximo.Engine
    • Actor
    • ActorComponent
    • AfterApplicationInitializedDelegate
    • Application
    • ApplicationConfig
    • BufferComponent
    • CommandLineOptions
    • ISceneInterface
    • LerpFunc<TValue>
    • Material
    • Material.Parameter
    • Material.ParamterType
    • MaterialManager
    • MeshBuilder
    • PipelineType
    • PrimitiveDrawInterface
    • PrimitiveSceneProxy
    • ScaleFunc
    • ScaleFuncs
    • SceneComponent
    • SceneContext
    • SceneObject
    • Shader
    • Startup
    • Startup<TApplication, TGtk>
    • Startup<TApplication>
    • StaticMeshSceneProxy
    • StaticPrimitiveDrawInterface
    • TaskQueue
    • Texture
    • TextureManager
    • Tween
    • Tween<TValue>
    • Tween1
    • Tween2
    • Tween3
    • TweenBuilder
    • TweenBuilder<TTarget>
    • TweenBuilderExtensions
    • TweenFinishedDelegate
    • TweenState
    • TweenStopBehavior
  • Aximo.Engine.Audio
    • AudioManager
  • Aximo.Engine.Components.Geometry
    • CrossLineComponent
    • CubeComponent
    • DebugCubeComponent
    • GraphicsScreenTextureComponent
    • GridPlaneComponent
    • LineComponent
    • MeshComponent
    • PrimitiveComponent
    • QuadComponent
    • ScreenTextureComponent
    • SkyBoxComponent
    • SphereComponent
    • StaticMeshComponent
    • StatsComponent
  • Aximo.Engine.Components.Lights
    • DirectionalLightComponent
    • LightComponent
    • PointLightComponent
  • Aximo.Engine.Components.UI
    • UIAnchors
    • UIButton
    • UIButtonComponent
    • UIComponent
    • UIContainerComponent
    • UIDock
    • UIFloatingContainer
    • UIFlowContainer
    • UIImage
    • UILabelComponent
    • UIPanelComponent
    • UIRect
  • Aximo.Engine.Windows
    • GtkUI
    • MouseButtonArgs
    • MouseMoveArgs
    • RenderWindow
    • WindowContext
  • Aximo.Generators.AlchemyCircle
    • AlchemyCircleGenerator
    • AlchemyCircleOptions
    • CiaccoRandom
    • TextureDraw
  • Aximo.Render
    • IBounds
    • IDeferredRenderable
    • IForwardRenderable
    • ILightObject
    • ILightTarget
    • IMeshObject
    • IReloadable
    • IRenderableObject
    • IRenderObject
    • IRenderTarget
    • IScaleRotate
    • IScreenRenderable
    • IShadowObject
    • IUpdateFrame
    • LightType
    • MaterialColorBlendMode
    • MeshDepthSorter
    • PixelFormatExtensions
    • PrimitiveObject
    • RenderContext
    • Renderer
    • RendererMaterial
    • ScreenTextureObject
    • SlotAllocator<T>
  • Aximo.Render.Objects
    • LightObject
    • RenderObject
    • RenderObjectBase
    • ScreenSceneObject
    • ScreenshotObject
    • SimpleVertexObject
    • SkyboxObject
  • Aximo.Render.OpenGL
    • BindingPoint
    • BufferObject
    • CullFaceMode
    • DepthFunction
    • DynamicInternalMesh
    • ElementsBufferObject
    • FlushRenderBackend
    • FrameBuffer
    • GraphicsDevice
    • GraphicsTexture
    • InternalLightManager
    • InternalMesh
    • InternalTextureManager
    • IObjectHandle
    • IObjectIdentifier
    • IObjectLabel
    • MeshData
    • MeshData<T>
    • MeshDataBuilder
    • MeshExtensions
    • ObjectManager
    • RenderBuffer
    • RendererShader
    • RendererTexture
    • ShaderCompilation
    • ShaderSource
    • StaticInternalMesh
    • StructHelper
    • UniformBufferObject
    • VertexArrayObject
    • VertexBufferObject
    • VertexLayoutBinded
    • VertexLayoutBindedAttribute
    • VertexLayoutDefinition
    • VertexLayoutDefinitionAttribute
  • Aximo.Render.Pipelines
    • DeferredPass
    • DeferredRenderPipeline
    • DirectionalShadowRenderPipeline
    • ForwardRenderPipeline
    • IRenderPipeline
    • PointShadowRenderPipeline
    • RenderPipeline
    • ScreenPipeline
  • Aximo.Util.IcoSphere
    • IcoSphereCreator
    • IcoSphereMesh
    • MeshGeometry3D
    • TriangleIndices
    • VertexSoup<TVertexStruct>
  • Aximo.VertexData
    • EngineExtensions
    • IPrimitive
    • IPrimitive<TVertex>
    • IVertex
    • IVertexColor
    • IVertexNormal
    • IVertexPos2UV
    • IVertexPosColor
    • IVertexPosition<TVector>
    • IVertexPosition2
    • IVertexPosition3
    • IVertexPosNormalColor
    • IVertexPosNormalUV
    • IVertexPosUV
    • IVertexUV
    • Line<TVertex>
    • Polygon<TVertex>
    • Quad<TVertex>
    • VertexDataPos
    • VertexDataPos2
    • VertexDataPos2UV
    • VertexDataPosColor
    • VertexDataPosNormalColor
    • VertexDataPosNormalUV
    • VertexDataPosUV
  • OpenToolkit.Mathematics
    • AntiVector4d
    • BiVector3d
    • BiVector4d
    • Rotor3

Class RendererShader

Inheritance
System.Object
RendererShader
Implements
IObjectLabel
IObjectIdentifier
IObjectHandle
Namespace: Aximo.Render.OpenGL
Assembly: Aximo.Render.dll
Syntax
public class RendererShader : IObjectLabel, IObjectIdentifier, IObjectHandle

Constructors

| Improve this Doc View Source

RendererShader()

Declaration
public RendererShader()
| Improve this Doc View Source

RendererShader(String, String, String, Boolean, IDictionary<String, Object>)

Declaration
public RendererShader(string vertPath, string fragPath, string geomPath = null, bool compile = true, IDictionary<string, object> defines = null)
Parameters
Type Name Description
System.String vertPath
System.String fragPath
System.String geomPath
System.Boolean compile
System.Collections.Generic.IDictionary<System.String, System.Object> defines

Properties

| Improve this Doc View Source

Handle

Declaration
public int Handle { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

ObjectLabel

Declaration
public string ObjectLabel { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

ObjectLabelIdentifier

Declaration
public ObjectLabelIdentifier ObjectLabelIdentifier { get; }
Property Value
Type Description
OpenToolkit.Graphics.OpenGL4.ObjectLabelIdentifier

Methods

| Improve this Doc View Source

AddSource(String, ShaderType)

Declaration
public void AddSource(string path, ShaderType type)
Parameters
Type Name Description
System.String path
OpenToolkit.Graphics.OpenGL4.ShaderType type
| Improve this Doc View Source

AttributeNameForField(String)

Declaration
public string AttributeNameForField(string structFieldName)
Parameters
Type Name Description
System.String structFieldName
Returns
Type Description
System.String
| Improve this Doc View Source

Bind()

Declaration
public void Bind()
| Improve this Doc View Source

BindBlock(String, BindingPoint)

Declaration
public void BindBlock(string blockName, BindingPoint bindingPoint)
Parameters
Type Name Description
System.String blockName
BindingPoint bindingPoint
| Improve this Doc View Source

BindInternal()

Declaration
public void BindInternal()
| Improve this Doc View Source

Compile()

Declaration
public void Compile()
| Improve this Doc View Source

Free()

Declaration
public void Free()
| Improve this Doc View Source

GetAttribLocation(String)

Declaration
public int GetAttribLocation(string attribName)
Parameters
Type Name Description
System.String attribName
Returns
Type Description
System.Int32
| Improve this Doc View Source

Reload()

Declaration
public void Reload()
| Improve this Doc View Source

SetBool(String, Boolean)

Set a uniform int on this shader.

Declaration
public void SetBool(string name, bool data)
Parameters
Type Name Description
System.String name

The name of the uniform

System.Boolean data

The data to set

| Improve this Doc View Source

SetDefine(String)

Declaration
public void SetDefine(string name)
Parameters
Type Name Description
System.String name
| Improve this Doc View Source

SetDefine(String, Object)

Declaration
public void SetDefine(string name, object value)
Parameters
Type Name Description
System.String name
System.Object value
| Improve this Doc View Source

SetFloat(String, Single)

Set a uniform float on this shader.

Declaration
public void SetFloat(string name, float data)
Parameters
Type Name Description
System.String name

The name of the uniform

System.Single data

The data to set

| Improve this Doc View Source

SetInt(String, Int32)

Set a uniform int on this shader.

Declaration
public void SetInt(string name, int data)
Parameters
Type Name Description
System.String name

The name of the uniform

System.Int32 data

The data to set

| Improve this Doc View Source

SetMaterial(String, RendererMaterial)

Declaration
public void SetMaterial(string name, RendererMaterial material)
Parameters
Type Name Description
System.String name
RendererMaterial material
| Improve this Doc View Source

SetMatrix3(String, Matrix3)

Set a uniform Matrix3 on this shader

Declaration
public void SetMatrix3(string name, Matrix3 data)
Parameters
Type Name Description
System.String name

The name of the uniform

OpenToolkit.Mathematics.Matrix3 data

The data to set

Remarks

The matrix is transposed before being sent to the shader.

| Improve this Doc View Source

SetMatrix4(String, Matrix4)

Set a uniform Matrix4 on this shader

Declaration
public void SetMatrix4(string name, Matrix4 data)
Parameters
Type Name Description
System.String name

The name of the uniform

OpenToolkit.Mathematics.Matrix4 data

The data to set

Remarks

The matrix is transposed before being sent to the shader.

| Improve this Doc View Source

SetVector2(String, Vector2)

Set a uniform Vector2 on this shader.

Declaration
public void SetVector2(string name, Vector2 data)
Parameters
Type Name Description
System.String name

The name of the uniform

OpenToolkit.Mathematics.Vector2 data

The data to set

| Improve this Doc View Source

SetVector3(String, Vector3)

Set a uniform Vector3 on this shader.

Declaration
public void SetVector3(string name, Vector3 data)
Parameters
Type Name Description
System.String name

The name of the uniform

OpenToolkit.Mathematics.Vector3 data

The data to set

| Improve this Doc View Source

SetVector4(String, Vector4)

Set a uniform Vector4 on this shader.

Declaration
public void SetVector4(string name, Vector4 data)
Parameters
Type Name Description
System.String name

The name of the uniform

OpenToolkit.Mathematics.Vector4 data

The data to set

Implements

IObjectLabel
IObjectIdentifier
IObjectHandle
  • Improve this Doc
  • View Source
Back to top Generated by DocFX