Beispiel #1
0
 public void AddCallback(NativeImDrawCallback callback)
 {
     ImGuiNative.ImDrawList_AddCallback(Native, callback, (void *)IntPtr.Zero);
 }
Beispiel #2
0
 public void AddCallback(ImDrawCallback callback)
 {
     ImGuiNative.ImDrawList_AddCallback(Native, (parent_list, cmd) => {
         callback(ref (*parent_list), ref (*cmd));
     }, (void *)IntPtr.Zero);
 }
Beispiel #3
0
        public void AddCallback(IntPtr callback, IntPtr callback_data)
        {
            void *native_callback_data = callback_data.ToPointer();

            ImGuiNative.ImDrawList_AddCallback(NativePtr, callback, native_callback_data);
        }