Skip to content

Instantly share code, notes, and snippets.

View mk0x9's full-sized avatar

Mikhail Kuryshev mk0x9

  • Berlin, Germany
  • 02:42 (UTC +02:00)
View GitHub Profile
package main
import (
"fmt"
)
type foo struct {
b int
c int
}
@mk0x9
mk0x9 / sdl_constants.c
Created December 23, 2010 17:16
sdl.go
package sdl
// #include "SDL/SDL.h"
// #include "SDL/SDL_image.h"
import "C"
import (
"unsafe"
)
@mk0x9
mk0x9 / gist:752705
Created December 23, 2010 07:36
sdl.go
package sdl
func c_SDL_Init(flags uint32) int __asm__ ("SDL_Init");
func c_SDL_SetVideoMode(width, height, bpp int, flags uint32) *Surface __asm__("SDL_SetVideoMode");
func c_SDL_Delay(ms uint32) __asm__ ("SDL_Delay");
func c_SDL_Quit() __asm__ ("SDL_Quit");
func c_SDL_UpperBlit(src *Surface, srcrect *Rect, dst *Surface, dstrect *Rect) int __asm__ ("SDL_UpperBlit");
func c_SDL_Flip(screen *Surface) int __asm__ ("SDL_Flip");
func c_SDL_FreeSurface(surface *Surface) __asm__ ("SDL_FreeSurface");
func c_SDL_LoadBMP_RW(src *RWops, freesrc int) *Surface __asm__ ("SDL_LoadBMP_RW");
We couldn’t find that file to show.