예제 #1
0
파일: alc.go 프로젝트: Miaque/mojo
// MakeContextCurrent makes a context current process-wide.
func MakeContextCurrent(c *Context) bool {
	return C.alcMakeContextCurrent(c.c) == 1
}
예제 #2
0
파일: alc.go 프로젝트: nzlov/goal
func (context *Context) MakeCurrent() bool {
	return goBool(C.alcMakeContextCurrent((*C.ALCcontext)(context)))
}
예제 #3
0
func alcMakeContextCurrent(c unsafe.Pointer) bool {
	ctx := (*C.ALCcontext)(c)
	return C.alcMakeContextCurrent(ctx) == C.ALC_TRUE
}
예제 #4
0
파일: alcCore.go 프로젝트: dennwc/go-openal
// Renamed, was MakeContextCurrent.
func (self *Context) Activate() bool {
	return C.alcMakeContextCurrent(self.handle) != alFalse
}
예제 #5
0
파일: alc.go 프로젝트: Jragonmiris/go-al
func (con Context) MakeCurrent() error {
	C.alcMakeContextCurrent(con.context)
	return GetError()
}
예제 #6
0
파일: alc.go 프로젝트: Jragonmiris/go-al
func UnsetCurrentContext() error {
	C.alcMakeContextCurrent(nil)
	return GetError()
}