Class RendererTexture
Inheritance
System.Object
RendererTexture
Implements
System.IDisposable
Assembly: Aximo.Render.dll
Syntax
public class RendererTexture : RenderObjectBase, IRenderObject, IData, IObjectLabel, IObjectIdentifier, IObjectHandle, IDisposable
Constructors
|
Improve this Doc
View Source
RendererTexture(Vector3, String)
Declaration
public RendererTexture(Vector3 color, string name)
Parameters
| Type |
Name |
Description |
| OpenToolkit.Mathematics.Vector3 |
color |
|
| System.String |
name |
|
|
Improve this Doc
View Source
RendererTexture(Image, String)
Declaration
public RendererTexture(Image image, string name)
Parameters
| Type |
Name |
Description |
| SixLabors.ImageSharp.Image |
image |
|
| System.String |
name |
|
|
Improve this Doc
View Source
RendererTexture(String, TextureTarget, Int32, PixelInternalFormat, Int32, Int32, Int32, PixelFormat, PixelType, IntPtr)
Declaration
public RendererTexture(string objectLabel, TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int border, PixelFormat format, PixelType type, IntPtr pixels)
Parameters
| Type |
Name |
Description |
| System.String |
objectLabel |
|
| OpenToolkit.Graphics.OpenGL4.TextureTarget |
target |
|
| System.Int32 |
level |
|
| OpenToolkit.Graphics.OpenGL4.PixelInternalFormat |
internalformat |
|
| System.Int32 |
width |
|
| System.Int32 |
height |
|
| System.Int32 |
border |
|
| OpenToolkit.Graphics.OpenGL4.PixelFormat |
format |
|
| OpenToolkit.Graphics.OpenGL4.PixelType |
type |
|
| System.IntPtr |
pixels |
|
Properties
|
Improve this Doc
View Source
Format
Declaration
public PixelFormat Format { get; }
Property Value
| Type |
Description |
| OpenToolkit.Graphics.OpenGL4.PixelFormat |
|
|
Improve this Doc
View Source
Handle
Declaration
public int Handle { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
Height
Declaration
public int Height { 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 |
|
|
Improve this Doc
View Source
Width
Declaration
public int Width { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Methods
|
Improve this Doc
View Source
Bind(TextureUnit)
Declaration
public void Bind(TextureUnit unit = TextureUnit.Texture0)
Parameters
| Type |
Name |
Description |
| OpenToolkit.Graphics.OpenGL4.TextureUnit |
unit |
|
|
Improve this Doc
View Source
Bind(Int32)
Declaration
public void Bind(int textureUnit)
Parameters
| Type |
Name |
Description |
| System.Int32 |
textureUnit |
|
|
Improve this Doc
View Source
CreateArrayShadowMap(PixelInternalFormat, Int32, Int32, Int32, Int32, PixelFormat, PixelType, IntPtr)
Declaration
public static RendererTexture CreateArrayShadowMap(PixelInternalFormat internalformat, int width, int height, int layers, int border, PixelFormat format, PixelType type, IntPtr pixels)
Parameters
| Type |
Name |
Description |
| OpenToolkit.Graphics.OpenGL4.PixelInternalFormat |
internalformat |
|
| System.Int32 |
width |
|
| System.Int32 |
height |
|
| System.Int32 |
layers |
|
| System.Int32 |
border |
|
| OpenToolkit.Graphics.OpenGL4.PixelFormat |
format |
|
| OpenToolkit.Graphics.OpenGL4.PixelType |
type |
|
| System.IntPtr |
pixels |
|
Returns
|
Improve this Doc
View Source
CreateCubeArrayShadowMap(PixelInternalFormat, Int32, Int32, Int32, Int32, PixelFormat, PixelType, IntPtr)
Declaration
public static RendererTexture CreateCubeArrayShadowMap(PixelInternalFormat internalformat, int width, int height, int layers, int border, PixelFormat format, PixelType type, IntPtr pixels)
Parameters
| Type |
Name |
Description |
| OpenToolkit.Graphics.OpenGL4.PixelInternalFormat |
internalformat |
|
| System.Int32 |
width |
|
| System.Int32 |
height |
|
| System.Int32 |
layers |
|
| System.Int32 |
border |
|
| OpenToolkit.Graphics.OpenGL4.PixelFormat |
format |
|
| OpenToolkit.Graphics.OpenGL4.PixelType |
type |
|
| System.IntPtr |
pixels |
|
Returns
|
Improve this Doc
View Source
CreateCubeShadowMap(PixelInternalFormat, Int32, Int32, Int32, PixelFormat, PixelType, IntPtr)
Declaration
public static RendererTexture CreateCubeShadowMap(PixelInternalFormat internalformat, int width, int height, int border, PixelFormat format, PixelType type, IntPtr pixels)
Parameters
| Type |
Name |
Description |
| OpenToolkit.Graphics.OpenGL4.PixelInternalFormat |
internalformat |
|
| System.Int32 |
width |
|
| System.Int32 |
height |
|
| System.Int32 |
border |
|
| OpenToolkit.Graphics.OpenGL4.PixelFormat |
format |
|
| OpenToolkit.Graphics.OpenGL4.PixelType |
type |
|
| System.IntPtr |
pixels |
|
Returns
|
Improve this Doc
View Source
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type |
Name |
Description |
| System.Boolean |
disposing |
|
Overrides
|
Improve this Doc
View Source
Free()
Declaration
public override void Free()
Overrides
|
Improve this Doc
View Source
GetDepthTexture(BufferData2D<Single>, Boolean)
Declaration
public void GetDepthTexture(BufferData2D<float> target, bool normalize = false)
Parameters
| Type |
Name |
Description |
| BufferData2D<System.Single> |
target |
|
| System.Boolean |
normalize |
|
|
Improve this Doc
View Source
GetTexture(BufferData2D<Int32>)
Declaration
public void GetTexture(BufferData2D<int> data)
Parameters
|
Improve this Doc
View Source
Init()
Declaration
public override void Init()
Overrides
|
Improve this Doc
View Source
LoadCubeMap(String)
Declaration
public static RendererTexture LoadCubeMap(string path)
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
Returns
|
Improve this Doc
View Source
Resize(Int32, Int32)
Declaration
public void Resize(int width, int height)
Parameters
| Type |
Name |
Description |
| System.Int32 |
width |
|
| System.Int32 |
height |
|
|
Improve this Doc
View Source
SetClampToBordreWrap()
Declaration
public void SetClampToBordreWrap()
|
Improve this Doc
View Source
SetClampToEdgeWrap()
Declaration
public void SetClampToEdgeWrap()
|
Improve this Doc
View Source
SetData(Image)
Declaration
public void SetData(Image image)
Parameters
| Type |
Name |
Description |
| SixLabors.ImageSharp.Image |
image |
|
|
Improve this Doc
View Source
SetLinearFilter()
Declaration
public void SetLinearFilter()
|
Improve this Doc
View Source
SetNearestFilter()
Declaration
public void SetNearestFilter()
|
Improve this Doc
View Source
SetPixelFormat(PixelFormat)
Declaration
public void SetPixelFormat(PixelFormat pixelFormat)
Parameters
| Type |
Name |
Description |
| OpenToolkit.Graphics.OpenGL4.PixelFormat |
pixelFormat |
|
Implements
System.IDisposable