This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
type foo struct { | |
b int | |
c int | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sdl | |
// #include "SDL/SDL.h" | |
// #include "SDL/SDL_image.h" | |
import "C" | |
import ( | |
"unsafe" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |
NewerOlder