Ejemplo n.º 1
0
func newFramebufferFromTexture(context *opengl.Context, texture *texture) (*framebuffer, error) {
	native, err := context.NewFramebuffer(opengl.Texture(texture.native))
	if err != nil {
		return nil, err
	}
	return &framebuffer{
		native: native,
	}, nil
}