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