Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Graphics Namespace / TextureBase Class / AllocateMemory Method
The render context
In true, the texture is used as a render target
The texture width
The texture height
The minification filter
The magnification filter
If true the texture is repeated in the S direction, else it is clamped
If true the texture is repeated in the T direction, else it is clamped
The pixels data pointer. If not null, they are copied to the texture memory.

In This Topic
    AllocateMemory Method (TextureBase)
    In This Topic
    Allocates memory for a texture.
    Syntax
    'Declaration
     
    Public Overridable Sub AllocateMemory( _
       ByVal context As RenderContextBase, _
       ByVal renderTarget As Boolean, _
       ByVal width As Integer, _
       ByVal height As Integer, _
       ByVal minFilter As textureFilteringFunctionType, _
       ByVal magFilter As textureFilteringFunctionType, _
       ByVal repeatS As Boolean, _
       ByVal repeatT As Boolean, _
       ByVal pixels As IntPtr, _
       ByVal multisample As Boolean _
    ) 
    public virtual void AllocateMemory( 
       RenderContextBase context,
       bool renderTarget,
       int width,
       int height,
       textureFilteringFunctionType minFilter,
       textureFilteringFunctionType magFilter,
       bool repeatS,
       bool repeatT,
       IntPtr pixels,
       bool multisample
    )

    Parameters

    context
    The render context
    renderTarget
    In true, the texture is used as a render target
    width
    The texture width
    height
    The texture height
    minFilter
    The minification filter
    magFilter
    The magnification filter
    repeatS
    If true the texture is repeated in the S direction, else it is clamped
    repeatT
    If true the texture is repeated in the T direction, else it is clamped
    pixels
    The pixels data pointer. If not null, they are copied to the texture memory.
    multisample
    See Also