Example #1
0
File: alc.go Project: Miaque/mojo
// MakeContextCurrent makes a context current process-wide.
func MakeContextCurrent(c *Context) bool {
	return C.alcMakeContextCurrent(c.c) == 1
}
Example #2
0
File: alc.go Project: nzlov/goal
func (context *Context) MakeCurrent() bool {
	return goBool(C.alcMakeContextCurrent((*C.ALCcontext)(context)))
}
Example #3
0
func alcMakeContextCurrent(c unsafe.Pointer) bool {
	ctx := (*C.ALCcontext)(c)
	return C.alcMakeContextCurrent(ctx) == C.ALC_TRUE
}
Example #4
0
// Renamed, was MakeContextCurrent.
func (self *Context) Activate() bool {
	return C.alcMakeContextCurrent(self.handle) != alFalse
}
Example #5
0
func (con Context) MakeCurrent() error {
	C.alcMakeContextCurrent(con.context)
	return GetError()
}
Example #6
0
func UnsetCurrentContext() error {
	C.alcMakeContextCurrent(nil)
	return GetError()
}