Ejemplo n.º 1
0
// We don't return a gl.GLuint as I don't want to add the full gl package
// as a dependency. If you need this, cast it. Otherwise, ignore
func (b *Bitmap) GetGLTexture() uint32 {
	var tex uint32

	tex = uint32(C.al_get_opengl_texture((*C.ALLEGRO_BITMAP)(b)))

	return tex
}
Ejemplo n.º 2
0
func (b *Bitmap) GetOpenglTexture() uint32 {
	return uint32(C.al_get_opengl_texture((*C.ALLEGRO_BITMAP)(unsafe.Pointer(b))))
}