Skip to content

Instantly share code, notes, and snippets.

View tienery's full-sized avatar

Luke tienery

View GitHub Profile
@tienery
tienery / RaylibImplController.cs
Last active September 13, 2022 13:56
Custom Raylib backend for ImGui.NET
using System;
using System.Collections.Generic;
using System.Buffers;
using System.Numerics;
using System.Reflection;
using System.IO;
using System.Runtime.CompilerServices;
using ImGuiNET;
using Raylib_cs;
using System.Runtime.InteropServices;
@tienery
tienery / TextField.hx
Created September 16, 2016 02:28
TextField class using Kha in Haxe
package render;
import kha.Key;
import kha.input.Keyboard;
import kha.Font;
import kha.Color;
import kha.input.Mouse;
import kha.graphics2.Graphics;
class TextField
private function setBitmapState(state:String)
{
if (state == null)
return;
#if !sys
if (Assets.exists(state))
#else
if (FileSystem.exists(state))
#end
@tienery
tienery / gist:b42c47387fce8f56a2a4
Last active December 31, 2015 02:24
Choices unable to render the background image
private function redraw()
{
....
if (baseImgSrc != null)
{
_bmp.bitmapData = Assets.getBitmapData(_baseImgSrc);
_bmp.visible = true;
_bmp.width = totalWidth + (padding * 2);
_bmp.height = totalHeight + (padding * 2);
}