cohtml::Net::UnityPlugin

Inherits from SystemIDisposable

Public Types

Name
enum classEventTypes { UET_DrawView = 1, UET_SetRenderTarget = 2, UET_CreateSystemRenderer = 3, UET_CreateViewRenderer = 4, UET_DestroySystemRenderer = 5, UET_DestroyViewRenderer = 6, UET_BackendBeginFrame = 7, UET_BackendEndFrame = 8}
enum classRenoirRenderingEvent { RRE_InitializeRenderingResources = 1, RRE_DestroyRenderingResources = 2, RRE_ExecuteCaptureBuffer = 3, RRE_BeginFrame = 4, RRE_EndFrame = 5}

Public Functions

Name
virtual voidDispose()
boolEnsureRenoirLibrary(LibraryParams arg0)
voidSetRenderTextureData(global::System.IntPtr texturePtr, global::System.IntPtr bufferPtr, uint width, uint height, uint antialiasingLevel, uint wideTexture)
voidSetUserBackground(uint systemId, uint viewId, global::System.IntPtr texturePtr, uint width, uint height, int format, uint flipY)
voidProcessResources(uint systemId)
voidOnEditorQuit()
voidDestroySystems()
voidOnApplicationQuit()
voidUnityRenderEvent(int eventID)
voidSetShouldUseCSharpBackend(bool shouldUse)
voidSetLibraryMultithreadAwareness(bool enable)
uintGetAllocationCount()
uintGetAllocatedMemory()
uintGetTotalAllocations()
uintGetTotalsByType(MemTagsType memtag)
uintGetCurrentBytesByType(MemTagsType memtag)
uintGetCurrentCountsByType(MemTagsType memtag)
ulongGetTimeSpentInAllocationsNs()
voidEnableMemoryTracking(bool enable)
voidSetUnityVersion(string str)

Public Properties

Name
UnityPluginInstance

Public Attributes

Name
UnityPlugins_Instance

Protected Attributes

Name
boolswigCMemOwn

Public Types Documentation

enum EventTypes

EnumeratorValueDescription
UET_DrawView1
UET_SetRenderTarget2
UET_CreateSystemRenderer3
UET_CreateViewRenderer4
UET_DestroySystemRenderer5
UET_DestroyViewRenderer6
UET_BackendBeginFrame7
UET_BackendEndFrame8

enum RenoirRenderingEvent

EnumeratorValueDescription
RRE_InitializeRenderingResources1
RRE_DestroyRenderingResources2
RRE_ExecuteCaptureBuffer3
RRE_BeginFrame4
RRE_EndFrame5

Public Functions Documentation

function Dispose

virtual void Dispose()

function EnsureRenoirLibrary

bool EnsureRenoirLibrary(
    LibraryParams arg0
)

function SetRenderTextureData

void SetRenderTextureData(
    global::System.IntPtr texturePtr,
    global::System.IntPtr bufferPtr,
    uint width,
    uint height,
    uint antialiasingLevel,
    uint wideTexture
)

function SetUserBackground

void SetUserBackground(
    uint systemId,
    uint viewId,
    global::System.IntPtr texturePtr,
    uint width,
    uint height,
    int format,
    uint flipY
)

function ProcessResources

void ProcessResources(
    uint systemId
)

function OnEditorQuit

void OnEditorQuit()

function DestroySystems

void DestroySystems()

function OnApplicationQuit

void OnApplicationQuit()

function UnityRenderEvent

void UnityRenderEvent(
    int eventID
)

function SetShouldUseCSharpBackend

void SetShouldUseCSharpBackend(
    bool shouldUse
)

function SetLibraryMultithreadAwareness

void SetLibraryMultithreadAwareness(
    bool enable
)

function GetAllocationCount

uint GetAllocationCount()

function GetAllocatedMemory

uint GetAllocatedMemory()

function GetTotalAllocations

uint GetTotalAllocations()

function GetTotalsByType

uint GetTotalsByType(
    MemTagsType memtag
)

function GetCurrentBytesByType

uint GetCurrentBytesByType(
    MemTagsType memtag
)

function GetCurrentCountsByType

uint GetCurrentCountsByType(
    MemTagsType memtag
)

function GetTimeSpentInAllocationsNs

ulong GetTimeSpentInAllocationsNs()

function EnableMemoryTracking

static void EnableMemoryTracking(
    bool enable
)

function SetUnityVersion

static void SetUnityVersion(
    string str
)

Public Property Documentation

property Instance

static UnityPlugin Instance;

Public Attributes Documentation

variable s_Instance

static UnityPlugin s_Instance;

Protected Attributes Documentation

variable swigCMemOwn

bool swigCMemOwn;