zorldo

Goofing around with Ebiten
git clone git://bsandro.tech/zorldo
Log | Files | Refs | README

work_other.go (1048B)


      1 // Copyright 2019 The Go Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style
      3 // license that can be found in the LICENSE file.
      4 
      5 //go:build (!cgo || (!darwin && !linux && !openbsd)) && !windows
      6 // +build !cgo !darwin,!linux,!openbsd
      7 // +build !windows
      8 
      9 package gl
     10 
     11 // This file contains stub implementations of what the other work*.go files
     12 // provide. These stubs don't do anything, other than compile (e.g. when cgo is
     13 // disabled).
     14 
     15 type context struct{}
     16 
     17 func (*context) enqueue(c call) uintptr {
     18 	panic("unimplemented; GOOS/CGO combination not supported")
     19 }
     20 
     21 func (*context) cString(str string) (uintptr, func()) {
     22 	panic("unimplemented; GOOS/CGO combination not supported")
     23 }
     24 
     25 func (*context) cStringPtr(str string) (uintptr, func()) {
     26 	panic("unimplemented; GOOS/CGO combination not supported")
     27 }
     28 
     29 type context3 = context
     30 
     31 func NewContext() (Context, Worker) {
     32 	panic("unimplemented; GOOS/CGO combination not supported")
     33 }
     34 
     35 func Version() string {
     36 	panic("unimplemented; GOOS/CGO combination not supported")
     37 }