Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: third_party/go/src/golang.org/x/mobile/gl/doc.go

Issue 1275153002: Remove third_party/golang.org/x/mobile as it is no longer used with Go 1.5. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove golang.org/x/mobile Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 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 /*
6 Package gl implements Go bindings for OpenGL ES 2.
7
8 The bindings are deliberately minimal, staying as close the C API as
9 possible. The semantics of each function maps onto functions
10 described in the Khronos documentation:
11
12 https://www.khronos.org/opengles/sdk/docs/man/
13
14 One notable departure from the C API is the introduction of types
15 to represent common uses of GLint: Texture, Surface, Buffer, etc.
16
17 A tracing version of the OpenGL bindings is behind the `gldebug` build
18 tag. It acts as a simplified version of apitrace. Build your Go binary
19 with
20
21 -tags gldebug
22
23 and each call to a GL function will log its input, output, and any
24 error messages. For example,
25
26 I/GoLog (27668): gl.GenBuffers(1) [Buffer(70001)]
27 I/GoLog (27668): gl.BindBuffer(ARRAY_BUFFER, Buffer(70001))
28 I/GoLog (27668): gl.BufferData(ARRAY_BUFFER, 36, len(36), STATIC_DRAW)
29 I/GoLog (27668): gl.BindBuffer(ARRAY_BUFFER, Buffer(70001))
30 I/GoLog (27668): gl.VertexAttribPointer(Attrib(0), 6, FLOAT, false, 0, 0) error: [INVALID_VALUE]
31
32 The gldebug tracing has very high overhead, so make sure to remove
33 the build tag before deploying any binaries.
34 */
35 package gl // import "golang.org/x/mobile/gl"
36
37 //go:generate go run gendebug.go -o gldebug.go
OLDNEW
« no previous file with comments | « third_party/go/src/golang.org/x/mobile/gl/consts.go ('k') | third_party/go/src/golang.org/x/mobile/gl/gendebug.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698