public static void SetTexture(int stage, Texture texture) { if (!Toolkit.utSetTexture(stage, texture.Handle)) throw new FrameworkException(); }
public override void Setup() { _window = new GraphicsWindow(T.Get("Framework Sample"), 640, 480); _vfmt = new VertexFormat(format); _vbuf = new VertexBuffer(vertices.Length); _vbuf.CopyData(vertices); _ibuf = new IndexBuffer(indices.Length); _ibuf.CopyData(indices); _tex = new Texture(4, 4, TextureFormat.RGBA8); _tex.CopyData(texture); _startTick = Platform.TickCount; }