query
stringlengths
7
3.85k
document
stringlengths
11
430k
metadata
dict
negatives
sequencelengths
0
101
negative_scores
sequencelengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
flag edges as either boundary or nonboundary
func EdgeFlag(flag bool) { C.glowEdgeFlag(gpEdgeFlag, (C.GLboolean)(boolToInt(flag))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Asteroid) checkEdges() {\n\t//Right bound\n\tif s.x > 1 {\n\t\ts.getPoints()\n\t\ts.points = TranslatePoints(s.points, -2, 0)\n\t\ts.points = RotatePoints(s.points, s.rot, s.x, s.y)\n\t\ts.x = -1\n\t} else if s.x < -1 { //Left bound\n\t\ts.getPoints()\n\t\ts.points = TranslatePoints(s.points, 2, 0)\n\t\ts.points = RotatePoints(s.points, s.rot, s.x, s.y)\n\t\ts.x = 1\n\t}\n\t//Upper bound\n\tif s.y > 1 {\n\t\ts.y = -1\n\t\ts.getPoints()\n\t\ts.points = TranslatePoints(s.points, 0, -2)\n\t\ts.points = RotatePoints(s.points, s.rot, s.x, s.y)\n\t} else if s.y < -1 { //Lower bound\n\t\ts.y = 1\n\t\ts.getPoints()\n\t\ts.points = TranslatePoints(s.points, 0, 2)\n\t\ts.points = RotatePoints(s.points, s.rot, s.x, s.y)\n\t}\n}", "func isEdge(e *spb.Entry) bool { return e.Target != nil && e.EdgeKind != \"\" }", "func EdgeFlag(flag bool) {\n C.glowEdgeFlag(gpEdgeFlag, (C.GLboolean)(boolToInt(flag)))\n}", "func (o *Grid) boundaries() {\n\tn0 := o.npts[0]\n\tn1 := o.npts[1]\n\tif o.ndim == 2 {\n\t\to.edge = make([][]int, 4) // xmin,xmax,ymin,ymax\n\t\to.edge[0] = make([]int, n1) // xmin\n\t\to.edge[1] = make([]int, n1) // xmax\n\t\to.edge[2] = make([]int, n0) // ymin\n\t\to.edge[3] = make([]int, n0) // ymax\n\t\tfor n := 0; n < n1; n++ {\n\t\t\to.edge[0][n] = n * n0 // xmin\n\t\t\to.edge[1][n] = n*n0 + n0 - 1 // xmax\n\t\t}\n\t\tfor m := 0; m < n0; m++ {\n\t\t\to.edge[2][m] = m // ymin\n\t\t\to.edge[3][m] = m + n0*(n1-1) // ymax\n\t\t}\n\t\treturn\n\t}\n\tn2 := o.npts[2]\n\to.face = make([][]int, 6) // xmin,xmax,ymin,ymax,zmin,zmax\n\to.face[0] = make([]int, n1*n2) // xmin\n\to.face[1] = make([]int, n1*n2) // xmax\n\to.face[2] = make([]int, n0*n2) // ymin\n\to.face[3] = make([]int, n0*n2) // ymax\n\to.face[4] = make([]int, n0*n1) // zmin\n\to.face[5] = make([]int, n0*n1) // zmax\n\tt := 0\n\tfor p := 0; p < n2; p++ { // loop over z\n\t\tfor n := 0; n < n1; n++ { // loop over y\n\t\t\to.face[0][t] = n*n0 + (n0*n1)*p // xmin\n\t\t\to.face[1][t] = n*n0 + (n0*n1)*p + (n0 - 1) // xmax\n\t\t\tt++\n\t\t}\n\t}\n\tt = 0\n\tfor p := 0; p < n2; p++ { // loop over z\n\t\tfor m := 0; m < n0; m++ { // loop over x\n\t\t\to.face[2][t] = m + (n0*n1)*p // ymin\n\t\t\to.face[3][t] = m + (n0*n1)*p + n0*(n1-1) // ymax\n\t\t\tt++\n\t\t}\n\t}\n\tt = 0\n\tfor n := 0; n < n1; n++ { // loop over y\n\t\tfor m := 0; m < n0; m++ { // loop over x\n\t\t\to.face[4][t] = m + n0*n // zmin\n\t\t\to.face[5][t] = m + n0*n + (n0*n1)*(n2-1) // zmax\n\t\t\tt++\n\t\t}\n\t}\n}", "func (g Undirected) HasEdge(n1, n2 NI) (has bool, x1, x2 int) {\n\tif has, x1 = g.HasArc(n1, n2); !has {\n\t\treturn has, x1, x1\n\t}\n\thas, x2 = g.HasArc(n2, n1)\n\treturn\n}", "func EdgeFlag(flag bool) {\n\tsyscall.Syscall(gpEdgeFlag, 1, boolToUintptr(flag), 0, 0)\n}", "func collideEdge() {\n\tif ballY == 0 || ballY == ballMaxY {\n\t\t// Top or bottom of screen bounce.\n\t\tballYVelocity = -ballYVelocity\n\t} else if ballX == ballMaxX {\n\t\t// Right hand side bounce.\n\t\tballXVelocity = -ballXVelocity\n\t} else if ballX == 0 {\n\t\t// Paddle missed, stop the ball and set the miss frame counter.\n\t\tballXVelocity = 0\n\t\tballYVelocity = 0\n\t\tresetBall(true, false)\n\t\tmissFrames = 10\n\t\tmiss = true\n\t}\n}", "func (g Undirect) HasEdgeBetween(xid, yid int64) bool { return g.G.HasEdgeBetween(xid, yid) }", "func (g UndirectWeighted) HasEdgeBetween(xid, yid int64) bool { return g.G.HasEdgeBetween(xid, yid) }", "func (b *Bound) Empty() bool {\n\treturn b.sw.X() >= b.ne.X() || b.sw.Y() >= b.ne.Y()\n}", "func (e *entry) InBoundary(pt sdl.Point) bool {\n\tif e.button.InBoundary(pt) {\n\t\treturn true\n\t}\n\tif e.enabled && e.list != nil && e.list.InBoundary(pt) {\n\t\treturn true\n\t}\n\treturn false\n}", "func (e Edge) Empty() bool {\n\treturn e.Start == 0 && e.End == 0 && e.Mid == 0\n}", "func (g Object) IsBBoxDefined() bool { return g.bridge().IsBBoxDefined() }", "func (m Matrix) HasEdge(i, e int) bool {\n\treturn m.set.Get(i*m.n + e)\n}", "func (me TxsdFeConvolveMatrixTypeEdgeMode) IsWrap() bool { return me.String() == \"wrap\" }", "func (s *Db) EventIsEdgeCollection() bool {\n\treturn false\n}", "func InsideCell(cell *voronoi.Cell, v voronoi.Vertex) bool {\n\tfor _, halfedge := range cell.Halfedges {\n\t\ta := halfedge.GetStartpoint()\n\t\tb := halfedge.GetEndpoint()\n\n\t\tcross := ((b.X - a.X)*(v.Y - a.Y) - (b.Y - a.Y)*(v.X - a.X))\n\n\t\tif cross > 0 {\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}", "func (tile *Tile) normaliseEdges() {\n\tidx := 0\n\tfor i, v := range tile.sides {\n\t\tif v == 0 {\n\t\t\tidx = i\n\t\t\tbreak\n\t\t}\n\t}\n\tvar tmpSides [4]side\n\tfor i2 := range tile.sides {\n\t\ttmpSides[i2] = tile.sides[(i2+idx)%4]\n\t}\n\ttile.sides = tmpSides\n}", "func IsBipartite(g Graph) bool {\n\tmarked := make([]bool, g.V())\n\tcolor := make([]bool, g.V())\n\n\tisTwoColor := true\n\n\tvar dfs func(v int)\n\n\tdfs = func(v int) {\n\t\tmarked[v] = true\n\t\tfor _, adj := range g.Adj(v) {\n\t\t\tif !marked[adj] {\n\t\t\t\tcolor[adj] = !color[v]\n\t\t\t\tdfs(adj)\n\t\t\t} else if color[v] == color[adj] {\n\t\t\t\tisTwoColor = false\n\t\t\t}\n\t\t}\n\t}\n\n\tfor s := 0; s < g.V(); s++ {\n\t\tif !marked[s] {\n\t\t\tdfs(s)\n\t\t}\n\t}\n\n\treturn isTwoColor\n}", "func (o *Mesh) Boundary(tag int) []int {\n\tif o.Ndim == 2 {\n\t\tif vset, ok := o.Tmaps.EdgeTag2verts[tag]; ok {\n\t\t\treturn vset.IDs()\n\t\t}\n\t\treturn nil\n\t}\n\tif vset, ok := o.Tmaps.FaceTag2verts[tag]; ok {\n\t\treturn vset.IDs()\n\t}\n\treturn nil\n}", "func validateEdge(t *testing.T, a, b Point, ci CellID, hasEdge bool) {\n\t// Expand or shrink the padding slightly to account for errors in the\n\t// function we use to test for intersection (IntersectsRect).\n\tpadding := cellPadding\n\tsign := 1.0\n\tif !hasEdge {\n\t\tsign = -1\n\t}\n\tpadding += sign * intersectsRectErrorUVDist\n\tbound := ci.boundUV().ExpandedByMargin(padding)\n\taUV, bUV, ok := ClipToPaddedFace(a, b, ci.Face(), padding)\n\n\tif got := ok && edgeIntersectsRect(aUV, bUV, bound); got != hasEdge {\n\t\tt.Errorf(\"edgeIntersectsRect(%v, %v, %v) = %v && clip = %v, want %v\", aUV, bUV, bound, edgeIntersectsRect(aUV, bUV, bound), ok, hasEdge)\n\t}\n}", "func (self *Graphics) IsMask() bool{\n return self.Object.Get(\"isMask\").Bool()\n}", "func (r *Rasterizer8BitsSample) addNonZeroEdge(edge *PolygonEdge) {\n\tx := Fix(edge.X * FIXED_FLOAT_COEF)\n\tslope := Fix(edge.Slope * FIXED_FLOAT_COEF)\n\tslopeFix := Fix(0)\n\tif edge.LastLine-edge.FirstLine >= SLOPE_FIX_STEP {\n\t\tslopeFix = Fix(edge.Slope*SLOPE_FIX_STEP*FIXED_FLOAT_COEF) - slope<<SLOPE_FIX_SHIFT\n\t}\n\tvar mask SUBPIXEL_DATA\n\tvar ySub uint32\n\tvar xp, yLine int\n\twinding := NON_ZERO_MASK_DATA_UNIT(edge.Winding)\n\tfor y := edge.FirstLine; y <= edge.LastLine; y++ {\n\t\tySub = uint32(y & (SUBPIXEL_COUNT - 1))\n\t\txp = int((x + SUBPIXEL_OFFSETS[ySub]) >> FIXED_SHIFT)\n\t\tmask = SUBPIXEL_DATA(1 << ySub)\n\t\tyLine = y >> SUBPIXEL_SHIFT\n\t\tr.MaskBuffer[yLine*r.BufferWidth+xp] |= mask\n\t\tr.WindingBuffer[(yLine*r.BufferWidth+xp)*SUBPIXEL_COUNT+int(ySub)] += winding\n\t\tx += slope\n\t\tif y&SLOPE_FIX_MASK == 0 {\n\t\t\tx += slopeFix\n\t\t}\n\t}\n}", "func (e Edges) Range(fn func(e Edge) bool) {\n\tfor _, m := range e {\n\t\tfor _, e := range m {\n\t\t\tif !fn(e) {\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n}", "func (g DenseGraph) IsEdge(i, j int) bool {\n\tif i >= g.NumberOfVertices || j >= g.NumberOfVertices || i < 0 || j < 0 {\n\t\treturn false\n\t}\n\tif i < j && g.Edges[(j*(j-1))/2+i] > 0 {\n\t\treturn true\n\t} else if i > j && g.Edges[(i*(i-1))/2+j] > 0 {\n\t\treturn true\n\t}\n\treturn false\n}", "func IsGraph(b byte) bool { return lookup[b]&graphMask != 0 }", "func (self *Graphics) SetIsMaskA(member bool) {\n self.Object.Set(\"isMask\", member)\n}", "func InnerBoundaryIs(value Element) *CompoundElement { return newCEElement(\"innerBoundaryIs\", value) }", "func (m *RoadMutation) EdgeCleared(name string) bool {\n\treturn false\n}", "func (g Undirected) SimpleEdges(v EdgeVisitor) {\n\tfor fr, to := range g.AdjacencyList {\n\t\te := bits.New(len(g.AdjacencyList))\n\t\tfor _, to := range to {\n\t\t\tif to > NI(fr) && e.Bit(int(to)) == 0 {\n\t\t\t\te.SetBit(int(to), 1)\n\t\t\t\tv(Edge{NI(fr), to})\n\t\t\t}\n\t\t}\n\t}\n\t// undefined behavior is that unpaired arcs may or may not be emitted.\n}", "func (s *SmokeTest) testEdgesSide(p1, p2 gpio.PinIO, e gpio.Edge) error {\n\tset := gpio.High\n\tidle := gpio.Low\n\tif e == gpio.FallingEdge {\n\t\tset, idle = idle, set\n\t}\n\tfmt.Printf(\" Testing edges with %s\\n\", e)\n\tif err := preparePins(p1, p2); err != nil {\n\t\treturn err\n\t}\n\tif err := p2.Out(idle); err != nil {\n\t\treturn err\n\t}\n\ttime.Sleep(s.shortDelay)\n\tif err := p1.In(gpio.Float, e); err != nil {\n\t\treturn err\n\t}\n\ttime.Sleep(s.shortDelay)\n\tif c := s.waitForEdge(p1); <-c {\n\t\t// The linux kernel makes it hard to enforce this. :(\n\t\tfmt.Printf(\" warning: there should be no edge right after setting a pin\\n\")\n\t}\n\n\ts.slowSleep()\n\tc := s.waitForEdge(p1)\n\tif err := p2.Out(set); err != nil {\n\t\treturn err\n\t}\n\tif !<-c {\n\t\treturn fmt.Errorf(\"edge %s->%s didn't trigger\", idle, set)\n\t}\n\n\t// No edge\n\ts.slowSleep()\n\tc = s.waitForEdge(p1)\n\tif err := p2.Out(idle); err != nil {\n\t\treturn err\n\t}\n\tif <-c {\n\t\treturn fmt.Errorf(\"edge %s->%s shouldn't trigger\", set, idle)\n\t}\n\tif <-s.waitForEdge(p1) {\n\t\treturn errors.New(\"spurious edge 2\")\n\t}\n\n\t// One accumulated edge.\n\ts.slowSleep()\n\tif err := p2.Out(set); err != nil {\n\t\treturn err\n\t}\n\tif !<-s.waitForEdge(p1) {\n\t\treturn fmt.Errorf(\"edge %s->%s didn't trigger\", idle, set)\n\t}\n\n\t// Two accumulated edge are merged.\n\ts.slowSleep()\n\tif err := s.togglePin(p2, idle, set, idle, set); err != nil {\n\t\treturn err\n\t}\n\tif !<-s.waitForEdge(p1) {\n\t\treturn fmt.Errorf(\"edge %s->%s didn't trigger\", idle, set)\n\t}\n\tif <-s.waitForEdge(p1) {\n\t\t// The linux kernel makes it hard to enforce this. :(\n\t\tfmt.Printf(\" warning: didn't expect for two edges to accumulate\\n\")\n\t}\n\n\t// Calling In() flush any accumulated event.\n\ts.slowSleep()\n\tif err := s.togglePin(p2, idle, set); err != nil {\n\t\treturn err\n\t}\n\t// At that point, there's an accumulated event.\n\ttime.Sleep(s.shortDelay)\n\t// This flushes the event.\n\tif err := p1.In(gpio.Float, e); err != nil {\n\t\treturn err\n\t}\n\tif <-s.waitForEdge(p1) {\n\t\t// The linux kernel makes it hard to enforce this. :(\n\t\tfmt.Printf(\" warning: accumulated event should have been flushed by In()\\n\")\n\t}\n\n\treturn nil\n}", "func (dg DenseGraph) HasEdge(p,q int) bool{\n\treturn dg.g[p][q]\n}", "func (s *Db) MovieIsEdgeCollection() bool {\n\treturn false\n}", "func (w *Way) Polygon() bool {\n\tif len(w.Nodes) <= 3 {\n\t\t// need more than 3 nodes to be a polygon since first/last is repeated.\n\t\treturn false\n\t}\n\n\tif w.Nodes[0].ID != w.Nodes[len(w.Nodes)-1].ID {\n\t\t// must be closed\n\t\treturn false\n\t}\n\n\tif area := w.Tags.Find(\"area\"); area == \"no\" {\n\t\treturn false\n\t} else if area != \"\" {\n\t\treturn true\n\t}\n\n\tfor _, c := range polyConditions {\n\t\tv := w.Tags.Find(c.Key)\n\t\tif v == \"\" || v == \"no\" {\n\t\t\tcontinue\n\t\t}\n\n\t\tif c.Condition == conditionAll {\n\t\t\treturn true\n\t\t} else if c.Condition == conditionWhitelist {\n\t\t\tindex := sort.SearchStrings(c.Values, v)\n\t\t\tif index != len(c.Values) && c.Values[index] == v {\n\t\t\t\treturn true\n\t\t\t}\n\t\t} else if c.Condition == conditionBlacklist {\n\t\t\tindex := sort.SearchStrings(c.Values, v)\n\t\t\tif index == len(c.Values) || c.Values[index] != v {\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\t}\n\n\treturn false\n}", "func EdgeDetection(src image.Image, radius float64) *image.RGBA {\r\n\tif radius <= 0 {\r\n\t\treturn image.NewRGBA(src.Bounds())\r\n\t}\r\n\r\n\tlength := int(math.Ceil(2*radius + 1))\r\n\tk := convolution.NewKernel(length, length)\r\n\r\n\tfor x := 0; x < length; x++ {\r\n\t\tfor y := 0; y < length; y++ {\r\n\t\t\tv := -1.0\r\n\t\t\tif x == length/2 && y == length/2 {\r\n\t\t\t\tv = float64(length*length) - 1\r\n\t\t\t}\r\n\t\t\tk.Matrix[y*length+x] = v\r\n\r\n\t\t}\r\n\t}\r\n\treturn convolution.Convolve(src, k, &convolution.Options{Bias: 0, Wrap: false, KeepAlpha: true})\r\n}", "func (b BBox) In(b2 BBox) bool {\n\treturn b.SW.InBBox(b2) || b.NE.InBBox(b2) || b2.SW.InBBox(b) || b2.NE.InBBox(b)\n}", "func (b *BasicShape) Refine() []Shape {\n\tpanic(\"Refine should only be called on shapes which cannot be intersected: Basic\")\n}", "func UnidirectionalEdgeBoundary(edge H3Index) GeoBoundary {\n\tgb := new(C.GeoBoundary)\n\tC.getH3UnidirectionalEdgeBoundary(edge, gb)\n\treturn geoBndryFromC(gb)\n}", "func UnidirectionalEdgeBoundary(edge H3Index) GeoBoundary {\n\tgb := new(C.GeoBoundary)\n\tC.getH3UnidirectionalEdgeBoundary(edge, gb)\n\treturn geoBndryFromC(gb)\n}", "func (fcg *FuncCallGraph) ContainsEdge(caller, callee *ir.Func) bool {\n\t_, ok := fcg.callerToCallees[caller][callee]\n\treturn ok\n}", "func (r *Relation) Polygon() bool {\n\tt := r.Tags.Find(\"type\")\n\treturn t == \"multipolygon\" || t == \"boundary\"\n}", "func (Operationroom) Edges() []ent.Edge {\n return []ent.Edge{\n edge.To(\"operationroom_id\",Booking.Type),\n }\n}", "func (g *Graph) ContractEdge(i int) {\n\te := g.Edges[i]\n\n\t// update edges\n\tg.Edges = append(g.Edges[:i], g.Edges[i+1:]...)\n\n\tstartVertex := e.start\n\tendVertex := e.end\n\n\t// Now we stick endVertex to startVertex\n\n\t// update edges where start/end is the endVertex\n\tfor j, edge := range g.Edges {\n\t\tif edge.start == endVertex {\n\t\t\tg.Edges[j].start = startVertex\n\t\t}\n\t\tif edge.end == endVertex {\n\t\t\tg.Edges[j].end = startVertex\n\t\t}\n\t}\n\n\t// remove self loops\n\tedges := []edge{}\n\tfor _, edge := range g.Edges {\n\t\tif edge.start != edge.end {\n\t\t\tedges = append(edges, edge)\n\t\t}\n\t}\n\tg.Edges = edges\n\tg.VertexNumber--\n}", "func (Status) Edges() []ent.Edge {\n\treturn nil\n}", "func (Status) Edges() []ent.Edge {\n\treturn nil\n}", "func ContainEdge(fromItem, toItem ItemRef) types.GomegaMatcher {\n\treturn &edgeMatcher{\n\t\texpFromItem: fromItem,\n\t\texpToItem: toItem,\n\t}\n}", "func intersectsPolygon(a, b *node) bool {\n\tp := a\n\tfor {\n\t\tif p.i != a.i &&\n\t\t\tp.next.i != a.i &&\n\t\t\tp.i != b.i &&\n\t\t\tp.next.i != b.i &&\n\t\t\tintersects(p, p.next, a, b) {\n\t\t\treturn true\n\t\t}\n\t\tp = p.next\n\t\tif p == a {\n\t\t\tbreak\n\t\t}\n\t}\n\n\treturn false\n}", "func (b *BoundingBox) Reset() {\n\tfor i := 0; i < 3; i++ {\n\t\tb.Bounds[0][i] = Inf(1)\n\t\tb.Bounds[1][i] = Inf(-1)\n\t}\n}", "func (g Graph) ExisteEnEdges(v1 int, v2 int) bool {\n count := 0;\n for count < len(*g.edges) {\n v1temp := (*g.edges)[count].v1_index\n v2temp := (*g.edges)[count].v2_index\n if (v1 == v1temp && v2 == v2temp){\n //fmt.Printf(\"%d ---- %d\\n\", v1temp, v2temp)\n return true\n }\n\n if (v2 == v1temp && v1 == v2temp){\n //fmt.Printf(\"%d ---- %d\\n\", v2temp, v1temp)\n return true\n }\n count = count + 1\n }\n return false\n}", "func (s *SmokeTest) testEdges(p1, p2 gpio.PinIO) error {\n\t// Test for:\n\t// - FallingEdge, RisingEdge, BothEdges\n\t// - NoEdge\n\tif err := s.testEdgesBoth(p1, p2); err != nil {\n\t\treturn err\n\t}\n\tif err := s.testEdgesSide(p1, p2, gpio.RisingEdge); err != nil {\n\t\treturn err\n\t}\n\tif err := s.testEdgesSide(p1, p2, gpio.FallingEdge); err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}", "func (A Coor) Inside(B Coor) bool {\n\tif A.Start >= B.Start && A.End <= B.End {\n\t\treturn true\n\t} else {\n\t\treturn false\n\t}\n}", "func isBackEdge(pred, head *cfg.Node) bool {\n\treturn head.Pre < pred.Pre\n}", "func (o *Grid) Boundary(tag int) []int {\n\tif tag > 50 {\n\t\tif o.ndim == 2 {\n\t\t\treturn nil\n\t\t}\n\t\treturn o.FaceGivenTag(tag)\n\t}\n\tif o.ndim == 3 {\n\t\treturn nil\n\t}\n\treturn o.EdgeGivenTag(tag)\n}", "func (m *Mesh) EliminateEdges(f func(tmp *Mesh, segment Segment) bool) *Mesh {\n\tresult := NewMesh()\n\tm.Iterate(func(t *Triangle) {\n\t\tt1 := *t\n\t\tresult.Add(&t1)\n\t})\n\tchanged := true\n\tfor changed {\n\t\tchanged = false\n\t\tremainingSegments := map[Segment]bool{}\n\t\tresult.Iterate(func(t *Triangle) {\n\t\t\tfor _, seg := range t.Segments() {\n\t\t\t\tremainingSegments[seg] = true\n\t\t\t}\n\t\t})\n\t\tfor len(remainingSegments) > 0 {\n\t\t\tvar segment Segment\n\t\t\tfor seg := range remainingSegments {\n\t\t\t\tsegment = seg\n\t\t\t\tdelete(remainingSegments, seg)\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tif !canEliminateSegment(result, segment) || !f(result, segment) {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\teliminateSegment(result, segment, remainingSegments)\n\t\t\tchanged = true\n\t\t}\n\t}\n\treturn result\n}", "func OuterBoundaryIs(value Element) *CompoundElement { return newCEElement(\"outerBoundaryIs\", value) }", "func (g Graph) initFull(){\n numVertex := len(*g.vertexes)\n count := 0\n i := 0\n for i < numVertex{\n j := i+1\n for j < numVertex{\n if g.ExisteEnEdges(i,j){\n (*g.full)[count] = Edge{i,j,1}\n }else{\n (*g.full)[count] = Edge{i,j,0}\n }\n count = count +1\n j = j +1\n }\n i = i +1\n }\n}", "func (me TxsdPresentationAttributesTextContentElementsAlignmentBaseline) IsAfterEdge() bool {\n\treturn me.String() == \"after-edge\"\n}", "func (g Graph) SetEdge(v1 int, v2 int, value float64){\n count := 0;\n for count < len(*g.full) {\n v1temp := (*g.full)[count].v1_index\n v2temp := (*g.full)[count].v2_index\n if (v1 == v1temp && v2 == v2temp){\n //fmt.Printf(\"%d ---- %d\\n\", v1temp, v2temp)\n (*g.full)[count].weight = value\n }\n\n if (v2 == v1temp && v1 == v2temp){\n //fmt.Printf(\"%d ---- %d\\n\", v2temp, v1temp)\n (*g.full)[count].weight = value\n }\n count = count + 1\n }\n}", "func (e *Edge) isComplete() bool {\n\treturn len(e.ClientService) != 0 && len(e.ServerService) != 0\n}", "func (e *Extractor) Boundary(end bool, name string) error {\n\tswitch e.state {\n\tcase statePre:\n\t\tif end {\n\t\t\te.state = stateDone\n\t\t} else {\n\t\t\te.state = stateBody\n\t\t\tif err := e.Meta(\"BOUNDARY_NAME\", name); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tif err := e.res.SetInfo(e.info); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\ttitle := e.info[\"Title\"]\n\t\t\tif parts := strings.SplitN(title, \"\\n\", 2); len(parts) > 1 {\n\t\t\t\ttitle = parts[0]\n\t\t\t}\n\t\t\tif title == \"\" {\n\t\t\t\ttitle = name\n\t\t\t}\n\t\t\te.be.title = strings.ToLower(title)\n\n\t\t\tif err := e.res.SetTitle(title); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\tcase stateBody:\n\t\t// TODO: !end :shrug:\n\t\te.state = stateDone\n\tcase stateDone:\n\t\t// TODO :shrug:\n\t}\n\treturn nil\n}", "func (s *SmokeTest) testEdgesBoth(p1, p2 gpio.PinIO) error {\n\tfmt.Printf(\" Testing edges with %s\\n\", gpio.BothEdges)\n\tif err := preparePins(p1, p2); err != nil {\n\t\treturn err\n\t}\n\ttime.Sleep(s.shortDelay)\n\tif err := p1.In(gpio.Float, gpio.BothEdges); err != nil {\n\t\treturn err\n\t}\n\ttime.Sleep(s.shortDelay)\n\tif c := s.waitForEdge(p1); <-c {\n\t\t// The linux kernel makes it hard to enforce this. :(\n\t\tfmt.Printf(\" warning: there should be no edge right after setting a pin\\n\")\n\t}\n\n\ts.slowSleep()\n\tc := s.waitForEdge(p1)\n\tif err := p2.Out(gpio.High); err != nil {\n\t\treturn err\n\t}\n\tif !<-c {\n\t\treturn errors.New(\"edge Low->High didn't trigger\")\n\t}\n\n\ts.slowSleep()\n\tc = s.waitForEdge(p1)\n\tif err := p2.Out(gpio.Low); err != nil {\n\t\treturn err\n\t}\n\tif !<-c {\n\t\treturn errors.New(\"edge High->Low didn't trigger\")\n\t}\n\n\t// No edge\n\ts.slowSleep()\n\tif <-s.waitForEdge(p1) {\n\t\treturn errors.New(\"spurious edge 2\")\n\t}\n\n\t// One accumulated edge.\n\ts.slowSleep()\n\tif err := p2.Out(gpio.High); err != nil {\n\t\treturn err\n\t}\n\tif !<-s.waitForEdge(p1) {\n\t\treturn errors.New(\"edge Low->High didn't trigger\")\n\t}\n\n\t// Two accumulated edge are merged.\n\ts.slowSleep()\n\tif err := s.togglePin(p2, gpio.Low, gpio.High); err != nil {\n\t\treturn err\n\t}\n\tif !<-s.waitForEdge(p1) {\n\t\treturn errors.New(\"edge High->Low didn't trigger\")\n\t}\n\tif <-s.waitForEdge(p1) {\n\t\t// BUG(maruel): Seen this to occur flakily. Need to investigate. :(\n\t\t//return errors.New(\"didn't expect for two edges to accumulate\")\n\t}\n\n\t// Calling In() flush any accumulated event.\n\ts.slowSleep()\n\tif err := p2.Out(gpio.Low); err != nil {\n\t\treturn err\n\t}\n\t// At that point, there's an accumulated event.\n\ttime.Sleep(s.shortDelay)\n\t// This flushes the event.\n\tif err := p1.In(gpio.Float, gpio.BothEdges); err != nil {\n\t\treturn err\n\t}\n\tif <-s.waitForEdge(p1) {\n\t\t// The linux kernel makes it hard to enforce this. :(\n\t\tfmt.Printf(\" warning: accumulated event should have been flushed by In()\\n\")\n\t}\n\n\treturn nil\n}", "func (Empty) Edges() []ent.Edge {\n\treturn nil\n}", "func (e Edges) HasEdge(id ID) bool {\n\t_, ok := e.GetEdge(id)\n\treturn ok\n}", "func (g *Graph) ContractEdge(i int) {\n\te := g.Edges[i]\n\n\t// update edges to remove e\n\tg.Edges = append(g.Edges[:i], g.Edges[i+1:]...)\n\n\t// loop to remove e.head from edges slice\n\tfor j, edge := range g.Edges {\n\t\tif edge.head == e.head {\n\t\t\tg.Edges[j].head = e.tail\n\t\t} else if edge.tail == e.head {\n\t\t\tg.Edges[j].tail = e.tail\n\t\t}\n\t}\n\n\t// remove self loops\n\ttemp := []edge{}\n\tfor _, edge := range g.Edges {\n\t\tif edge.head != edge.tail {\n\t\t\ttemp = append(temp, edge)\n\t\t}\n\t}\n\tg.Edges = temp\n\n\tg.Vertices--\n}", "func (g *Graph) addEdges(schema *load.Schema) {\n\tt, _ := g.typ(schema.Name)\n\tseen := make(map[string]struct{}, len(schema.Edges))\n\tfor _, e := range schema.Edges {\n\t\ttyp, ok := g.typ(e.Type)\n\t\texpect(ok, \"type %q does not exist for edge\", e.Type)\n\t\t_, ok = t.fields[e.Name]\n\t\texpect(!ok, \"%s schema cannot contain field and edge with the same name %q\", schema.Name, e.Name)\n\t\t_, ok = seen[e.Name]\n\t\texpect(!ok, \"%s schema contains multiple %q edges\", schema.Name, e.Name)\n\t\tseen[e.Name] = struct{}{}\n\t\tswitch {\n\t\t// Assoc only.\n\t\tcase !e.Inverse:\n\t\t\tt.Edges = append(t.Edges, &Edge{\n\t\t\t\tdef: e,\n\t\t\t\tType: typ,\n\t\t\t\tName: e.Name,\n\t\t\t\tOwner: t,\n\t\t\t\tUnique: e.Unique,\n\t\t\t\tOptional: !e.Required,\n\t\t\t\tImmutable: e.Immutable,\n\t\t\t\tStructTag: structTag(e.Name, e.Tag),\n\t\t\t\tAnnotations: e.Annotations,\n\t\t\t})\n\t\t// Inverse only.\n\t\tcase e.Inverse && e.Ref == nil:\n\t\t\texpect(e.RefName != \"\", \"back-reference edge %s.%s is missing the Ref attribute\", t.Name, e.Name)\n\t\t\tt.Edges = append(t.Edges, &Edge{\n\t\t\t\tdef: e,\n\t\t\t\tType: typ,\n\t\t\t\tName: e.Name,\n\t\t\t\tOwner: typ,\n\t\t\t\tInverse: e.RefName,\n\t\t\t\tUnique: e.Unique,\n\t\t\t\tOptional: !e.Required,\n\t\t\t\tImmutable: e.Immutable,\n\t\t\t\tStructTag: structTag(e.Name, e.Tag),\n\t\t\t\tAnnotations: e.Annotations,\n\t\t\t})\n\t\t// Inverse and assoc.\n\t\tcase e.Inverse:\n\t\t\tref := e.Ref\n\t\t\texpect(e.RefName == \"\", \"reference name is derived from the assoc name: %s.%s <-> %s.%s\", t.Name, ref.Name, t.Name, e.Name)\n\t\t\texpect(ref.Type == t.Name, \"assoc-inverse edge allowed only as o2o relation of the same type\")\n\t\t\tfrom := &Edge{\n\t\t\t\tdef: e,\n\t\t\t\tType: typ,\n\t\t\t\tName: e.Name,\n\t\t\t\tOwner: t,\n\t\t\t\tInverse: ref.Name,\n\t\t\t\tUnique: e.Unique,\n\t\t\t\tOptional: !e.Required,\n\t\t\t\tImmutable: e.Immutable,\n\t\t\t\tStructTag: structTag(e.Name, e.Tag),\n\t\t\t\tAnnotations: e.Annotations,\n\t\t\t}\n\t\t\tto := &Edge{\n\t\t\t\tdef: ref,\n\t\t\t\tRef: from,\n\t\t\t\tType: typ,\n\t\t\t\tOwner: t,\n\t\t\t\tName: ref.Name,\n\t\t\t\tUnique: ref.Unique,\n\t\t\t\tOptional: !ref.Required,\n\t\t\t\tImmutable: ref.Immutable,\n\t\t\t\tStructTag: structTag(ref.Name, ref.Tag),\n\t\t\t\tAnnotations: ref.Annotations,\n\t\t\t}\n\t\t\tfrom.Ref = to\n\t\t\tt.Edges = append(t.Edges, from, to)\n\t\tdefault:\n\t\t\tpanic(graphError{\"edge must be either an assoc or inverse edge\"})\n\t\t}\n\t}\n}", "func (m *Mesh) InconsistentEdges() [][2]Coord3D {\n\tedges := map[[2]Coord3D]int{}\n\tm.Iterate(func(t *Triangle) {\n\t\tfor _, edge := range triangleEdges(t) {\n\t\t\tedges[edge]++\n\t\t}\n\t})\n\tvar res [][2]Coord3D\n\tfor edge, count := range edges {\n\t\tif count > 1 {\n\t\t\tres = append(res, edge)\n\t\t}\n\t}\n\treturn res\n}", "func neighbors(adj [][]bool, p point) []point {\n\tqs := []point{\n\t\t{p.x - 1, p.y}, // left\n\t\t{p.x + 1, p.y}, // right\n\t\t{p.x, p.y - 1}, // up\n\t\t{p.x, p.y + 1}, // down\n\t}\n\tresult := make([]point, 0, 4)\n\tfor _, q := range qs {\n\t\tif q.x >= 0 && q.x < len(adj) && q.y >= 0 && q.y < len(adj[0]) {\n\t\t\tif !adj[q.x][q.y] { // not a wall\n\t\t\t\tresult = append(result, q)\n\t\t\t}\n\t\t}\n\t}\n\treturn result\n}", "func (m *BloodtypeMutation) EdgeCleared(name string) bool {\n\tswitch name {\n\t}\n\treturn false\n}", "func (p *Plane3D) isBounded() bool {\n\n\treturn false\n}", "func (me TxsdPresentationAttributesTextContentElementsAlignmentBaseline) IsBeforeEdge() bool {\n\treturn me.String() == \"before-edge\"\n}", "func (g Undirect) Edge(uid, vid int64) Edge { return g.EdgeBetween(uid, vid) }", "func (e Edge) Eq(o Edge) bool {\n\treturn (PointerEq(e.A, o.A) && PointerEq(e.B, o.B)) || (PointerEq(e.A, o.B) && PointerEq(e.B, o.A))\n}", "func boundaryOfBinaryTree(root *TreeNode) []int {\n\tres := make([]int, 0)\n\tif root == nil {\n\t\treturn res\n\t}\n\tres = append(res, root.Val)\n\tleftBoundary(root.Left, &res)\n\tleaves(root.Left, &res)\n\tleaves(root.Right, &res)\n\trightBoundary(root.Right, &res)\n\treturn res\n}", "func (m *BedtypeMutation) EdgeCleared(name string) bool {\n\tswitch name {\n\t}\n\treturn false\n}", "func (this *DtNavMeshQuery) GetPolyWallSegments(ref DtPolyRef, filter *DtQueryFilter,\n\tsegmentVerts []float32, segmentRefs []DtPolyRef, segmentCount *int,\n\tmaxSegments int) DtStatus {\n\tDtAssert(this.m_nav != nil)\n\n\t*segmentCount = 0\n\n\tvar tile *DtMeshTile\n\tvar poly *DtPoly\n\tif DtStatusFailed(this.m_nav.GetTileAndPolyByRef(ref, &tile, &poly)) {\n\t\treturn DT_FAILURE | DT_INVALID_PARAM\n\t}\n\tn := 0\n\tconst MAX_INTERVAL int = 16\n\tvar ints [MAX_INTERVAL]dtSegInterval\n\tvar nints int\n\n\tstorePortals := (segmentRefs != nil)\n\n\tstatus := DT_SUCCESS\n\n\tfor i, j := 0, (int)(poly.VertCount-1); i < (int)(poly.VertCount); j, i = i, i+1 {\n\t\t// Skip non-solid edges.\n\t\tnints = 0\n\t\tif (poly.Neis[j] & DT_EXT_LINK) != 0 {\n\t\t\t// Tile border.\n\t\t\tfor k := poly.FirstLink; k != DT_NULL_LINK; k = tile.Links[k].Next {\n\t\t\t\tlink := &tile.Links[k]\n\t\t\t\tif link.Edge == uint8(j) {\n\t\t\t\t\tif link.Ref != 0 {\n\t\t\t\t\t\tvar neiTile *DtMeshTile\n\t\t\t\t\t\tvar neiPoly *DtPoly\n\t\t\t\t\t\tthis.m_nav.GetTileAndPolyByRefUnsafe(link.Ref, &neiTile, &neiPoly)\n\t\t\t\t\t\tif filter.PassFilter(link.Ref, neiTile, neiPoly) {\n\t\t\t\t\t\t\tinsertInterval(ints[:], &nints, MAX_INTERVAL, int16(link.Bmin), int16(link.Bmax), link.Ref)\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// Internal edge\n\t\t\tvar neiRef DtPolyRef\n\t\t\tif poly.Neis[j] != 0 {\n\t\t\t\tidx := (uint32)(poly.Neis[j] - 1)\n\t\t\t\tneiRef = this.m_nav.GetPolyRefBase(tile) | DtPolyRef(idx)\n\t\t\t\tif !filter.PassFilter(neiRef, tile, &tile.Polys[idx]) {\n\t\t\t\t\tneiRef = 0\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If the edge leads to another polygon and portals are not stored, skip.\n\t\t\tif neiRef != 0 && !storePortals {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tif n < maxSegments {\n\t\t\t\tvj := tile.Verts[poly.Verts[j]*3:]\n\t\t\t\tvi := tile.Verts[poly.Verts[i]*3:]\n\t\t\t\tseg := segmentVerts[n*6:]\n\t\t\t\tDtVcopy(seg[0:], vj)\n\t\t\t\tDtVcopy(seg[3:], vi)\n\t\t\t\tif segmentRefs != nil {\n\t\t\t\t\tsegmentRefs[n] = neiRef\n\t\t\t\t}\n\t\t\t\tn++\n\t\t\t} else {\n\t\t\t\tstatus |= DT_BUFFER_TOO_SMALL\n\t\t\t}\n\n\t\t\tcontinue\n\t\t}\n\n\t\t// Add sentinels\n\t\tinsertInterval(ints[:], &nints, MAX_INTERVAL, -1, 0, 0)\n\t\tinsertInterval(ints[:], &nints, MAX_INTERVAL, 255, 256, 0)\n\n\t\t// Store segments.\n\t\tvj := tile.Verts[poly.Verts[j]*3:]\n\t\tvi := tile.Verts[poly.Verts[i]*3:]\n\t\tfor k := 1; k < nints; k++ {\n\t\t\t// Portal segment.\n\t\t\tif storePortals && ints[k].ref != 0 {\n\t\t\t\ttmin := ints[k].tmin / 255.0\n\t\t\t\ttmax := ints[k].tmax / 255.0\n\t\t\t\tif n < maxSegments {\n\t\t\t\t\tseg := segmentVerts[n*6:]\n\t\t\t\t\tDtVlerp(seg[0:], vj, vi, float32(tmin))\n\t\t\t\t\tDtVlerp(seg[3:], vj, vi, float32(tmax))\n\t\t\t\t\tif segmentRefs != nil {\n\t\t\t\t\t\tsegmentRefs[n] = ints[k].ref\n\t\t\t\t\t}\n\t\t\t\t\tn++\n\t\t\t\t} else {\n\t\t\t\t\tstatus |= DT_BUFFER_TOO_SMALL\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Wall segment.\n\t\t\timin := ints[k-1].tmax\n\t\t\timax := ints[k].tmin\n\t\t\tif imin != imax {\n\t\t\t\ttmin := imin / 255.0\n\t\t\t\ttmax := imax / 255.0\n\t\t\t\tif n < maxSegments {\n\t\t\t\t\tseg := segmentVerts[n*6:]\n\t\t\t\t\tDtVlerp(seg[0:], vj, vi, float32(tmin))\n\t\t\t\t\tDtVlerp(seg[3:], vj, vi, float32(tmax))\n\t\t\t\t\tif segmentRefs != nil {\n\t\t\t\t\t\tsegmentRefs[n] = 0\n\t\t\t\t\t}\n\t\t\t\t\tn++\n\t\t\t\t} else {\n\t\t\t\t\tstatus |= DT_BUFFER_TOO_SMALL\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t*segmentCount = n\n\n\treturn status\n}", "func (b *BasicShape) CanIntersect() bool {\n\treturn true\n}", "func (m *CarMutation) EdgeCleared(name string) bool {\n\treturn false\n}", "func (e *Edge) IsDirectional() bool {\n\treturn e.isDirectional\n}", "func (body Body) IsGround() bool {\n\tfor _, e := range body {\n\t\tif !e.IsGround() {\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}", "func isWall(cell int) bool {\n return cell == wall || (!getBool(&checkFlag) && cell == check)\n}", "func (rs *RenderSystem) TogglePolygons() {\n\trs.drawPolygon = !rs.drawPolygon\n}", "func (a *_Atom) isAtomicLeavingGroup() bool {\n\treturn a.bonds.Count() == 1 && a.atNum != 6\n}", "func (b *Bound) Intersects(bound *Bound) bool {\n\n\tif (b.ne[0] < bound.sw[0]) ||\n\t\t(b.sw[0] > bound.ne[0]) ||\n\t\t(b.ne[1] < bound.sw[1]) ||\n\t\t(b.sw[1] > bound.ne[1]) {\n\t\treturn false\n\t}\n\n\treturn true\n}", "func (m *EventRSVPMutation) EdgeCleared(name string) bool {\n\tswitch name {\n\tcase eventrsvp.EdgeEvent:\n\t\treturn m.clearedevent\n\tcase eventrsvp.EdgeInvitee:\n\t\treturn m.clearedinvitee\n\t}\n\treturn false\n}", "func (m *RentalstatusMutation) EdgeCleared(name string) bool {\n\tswitch name {\n\t}\n\treturn false\n}", "func (cpu *Mos6502) bne() uint8 {\n\tif cpu.GetStatusFlag(Z) == 0 {\n\t\tcpu.branch()\n\t}\n\treturn 0\n}", "func equalClosed(ctx *OpContext, x, y *Vertex, flags Flag) bool {\n\treturn verifyStructs(x, y, flags) && verifyStructs(y, x, flags)\n}", "func (p1 PortInfoMap) NegsWithReadinessGate() sets.String {\n\tret := sets.NewString()\n\tfor _, info := range p1 {\n\t\tif info.ReadinessGate {\n\t\t\tret.Insert(info.NegName)\n\t\t}\n\t}\n\treturn ret\n}", "func (m *ClassifierMutation) EdgeCleared(name string) bool {\n\tswitch name {\n\t}\n\treturn false\n}", "func (m *StartWorkMutation) EdgeCleared(name string) bool {\n\tswitch name {\n\t}\n\treturn false\n}", "func (s *Set) addEdge(n nid, e edge) {\n\tif s.edges[n] == nil {\n\t\ts.edges[n] = map[edge]struct{}{e: struct{}{}}\n\t\ts.canon = false\n\t} else if _, ok := s.edges[n][e]; !ok {\n\t\ts.edges[n][e] = struct{}{}\n\t\ts.canon = false\n\t}\n}", "func (m *PositionMutation) EdgeCleared(name string) bool {\n\tswitch name {\n\t}\n\treturn false\n}", "func (m *PositionMutation) EdgeCleared(name string) bool {\n\tswitch name {\n\t}\n\treturn false\n}", "func (m *CarregisterMutation) EdgeCleared(name string) bool {\n\treturn false\n}", "func FSobel(in image.Image) image.Image {\n\tloadedImage := in\n\n\t//Creation of a new image with the same dimensions as the input one\n\tb := loadedImage.Bounds()\n\tminx, miny := b.Min.X, b.Min.Y\n\tmaxx, maxy := b.Max.X, b.Max.Y\n\tw, h := b.Dx(), b.Dy()\n\tmyImage := image.NewRGBA(loadedImage.Bounds())\n\n\t//convertion in greyscale with the BW algo\n\tgris := make([][]int16, h)\n\tfor i := range gris {\n\t\tgris[i] = make([]int16, w)\n\t}\n\tfor cpt := miny; cpt < maxy; cpt++ {\n\t\tfor cpt2 := minx; cpt2 < maxx; cpt2++ {\n\t\t\tred, gr, blue, _ := loadedImage.At(cpt2, cpt).RGBA()\n\t\t\tgris[cpt-miny][cpt2-minx] = int16(0.2125*float32(red*255/65535) + 0.7154*float32(gr*255/65535) + 0.0721*float32(blue*255/65535))\n\n\t\t}\n\t}\n\t//Edge-detection algorithm applied to each pixel\n\tvar maxG float64 = 0 //we save the highest value of gradient for mapping the values\n\tgradient := make([][]float64, h)\n\tfor i := range gradient {\n\t\tgradient[i] = make([]float64, w)\n\t}\n\tfor cpt := miny + 1; cpt < maxy-2; cpt++ {\n\t\tfor cpt2 := minx + 1; cpt2 < maxx-2; cpt2++ {\n\t\t\tvar gx float64\n\t\t\tgx = float64(-1*gris[cpt-1-miny][cpt2-1-minx] + 1*gris[cpt+1-miny][cpt2-1-minx] + -2*gris[cpt-1-miny][cpt2-minx] + 2*gris[cpt+1-miny][cpt2-minx] - 1*gris[cpt-1-miny][cpt2+1-minx] + 1*gris[cpt+1-miny][cpt2+1-minx])\n\t\t\tgy := float64(-1*gris[cpt-1-miny][cpt2-1-minx] - 2*gris[cpt-miny][cpt2-1-minx] - 1*gris[cpt+1-miny][cpt2-1-minx] + 1*gris[cpt-1-miny][cpt2+1-minx] + 2*gris[cpt-miny][cpt2+1-minx] + 1*gris[cpt+1-miny][cpt2+1-minx])\n\t\t\tgradient[cpt-miny][cpt2-minx] = math.Sqrt(gx*gx + gy*gy)\n\t\t\tif gradient[cpt-miny][cpt2-minx] > maxG {\n\t\t\t\tmaxG = gradient[cpt-miny][cpt2-minx]\n\t\t\t}\n\n\t\t}\n\t}\n\tfor cpt := miny + 1; cpt < maxy-2; cpt++ {\n\t\tfor cpt2 := minx + 1; cpt2 < maxx-2; cpt2++ {\n\t\t\tvar valsobel uint8\n\t\t\tif gradient[cpt-miny][cpt2-minx] > 255 {\n\t\t\t\tvalsobel = 255\n\t\t\t}\n\t\t\tvalsobel = uint8(gradient[cpt-miny][cpt2-minx] * 255 / maxG)\n\t\t\tmyImage.Set(cpt2, cpt, color.RGBA{valsobel, valsobel, valsobel, 255})\n\t\t}\n\t}\n\treturn myImage\n\n}", "func (m *PeopleMutation) EdgeCleared(name string) bool {\n\treturn false\n}", "func (me *XsdGoPkgHasElem_InnerBoundaryIs) Walk() (err error) {\r\n\tif fn := WalkHandlers.XsdGoPkgHasElem_InnerBoundaryIs; me != nil {\r\n\t\tif fn != nil {\r\n\t\t\tif err = fn(me, true); xsdt.OnWalkError(&err, &WalkErrors, WalkContinueOnError, WalkOnError) {\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\t\t}\r\n\t\tif err = me.InnerBoundaryIs.Walk(); xsdt.OnWalkError(&err, &WalkErrors, WalkContinueOnError, WalkOnError) {\r\n\t\t\treturn\r\n\t\t}\r\n\t\tif fn != nil {\r\n\t\t\tif err = fn(me, false); xsdt.OnWalkError(&err, &WalkErrors, WalkContinueOnError, WalkOnError) {\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn\r\n}", "func (m *GroupMutation) EdgeCleared(name string) bool {\n\treturn false\n}", "func (m *RoomStatusMutation) EdgeCleared(name string) bool {\n\tswitch name {\n\t}\n\treturn false\n}", "func (g LabeledAdjacencyList) BoundsOk() (ok bool, fr NI, to Half) {\n\tfor fr, to := range g {\n\t\tfor _, to := range to {\n\t\t\tif to.To < 0 || to.To >= NI(len(g)) {\n\t\t\t\treturn false, NI(fr), to\n\t\t\t}\n\t\t}\n\t}\n\treturn true, -1, to\n}" ]
[ "0.59372705", "0.59209204", "0.57908046", "0.5732857", "0.56283253", "0.5490028", "0.5483679", "0.539988", "0.5217315", "0.52053434", "0.5135416", "0.510351", "0.50243604", "0.4981083", "0.49553952", "0.49409282", "0.4915121", "0.49124599", "0.4893574", "0.48847574", "0.48722324", "0.48372757", "0.4822344", "0.48166788", "0.4813096", "0.48039648", "0.480379", "0.48020926", "0.47881433", "0.4778974", "0.47712553", "0.4766237", "0.47619337", "0.47494397", "0.47484055", "0.47424024", "0.47109866", "0.46908158", "0.46908158", "0.4689435", "0.46826288", "0.4666172", "0.4661568", "0.46563336", "0.46563336", "0.46262655", "0.4625391", "0.462148", "0.4611454", "0.46049127", "0.4596695", "0.45775762", "0.45756823", "0.4564926", "0.45605528", "0.455231", "0.4549997", "0.45151109", "0.4498782", "0.449175", "0.44811958", "0.44754893", "0.4471484", "0.44670343", "0.44640574", "0.44614446", "0.44592643", "0.44524008", "0.44460657", "0.4445915", "0.44448134", "0.44390675", "0.44340804", "0.44269335", "0.44197348", "0.43990684", "0.43968818", "0.43919128", "0.4388535", "0.43865454", "0.4382696", "0.4380434", "0.43723315", "0.43691245", "0.43687907", "0.43687856", "0.43679756", "0.4362029", "0.43610108", "0.43586543", "0.4357903", "0.43556947", "0.43543634", "0.43512854", "0.43501294", "0.43431622", "0.43429163", "0.43422455", "0.43419182", "0.43406084" ]
0.5192578
10
define an array of edge flags
func EdgeFlagPointer(stride int32, pointer unsafe.Pointer) { C.glowEdgeFlagPointer(gpEdgeFlagPointer, (C.GLsizei)(stride), pointer) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func EdgeFlag(flag bool) {\n C.glowEdgeFlag(gpEdgeFlag, (C.GLboolean)(boolToInt(flag)))\n}", "func EdgeFlag(flag bool) {\n\tsyscall.Syscall(gpEdgeFlag, 1, boolToUintptr(flag), 0, 0)\n}", "func EdgeFlag(flag bool) {\n\tC.glowEdgeFlag(gpEdgeFlag, (C.GLboolean)(boolToInt(flag)))\n}", "func EdgeFlagPointer(stride int32, pointer unsafe.Pointer) {\n C.glowEdgeFlagPointer(gpEdgeFlagPointer, (C.GLsizei)(stride), pointer)\n}", "func EdgeFlagPointer(stride int32, pointer unsafe.Pointer) {\n\tsyscall.Syscall(gpEdgeFlagPointer, 2, uintptr(stride), uintptr(pointer), 0)\n}", "func build_adj_list(edges []Edge) [][2]Edge {\n\tadjList := [][2]Edge{}\n\tn := len(edges)\n\tfor i, uv := range edges {\n\t\tfor j := i + 1; j < n; j++ {\n\t\t\tst := edges[j]\n\t\t\tif uv.i == st.i || uv.i == st.j || uv.j == st.i || uv.j == st.j {\n\t\t\t\tadjList = append(adjList, [2]Edge{uv, st})\n\t\t\t}\n\t\t}\n\t}\n\treturn adjList\n}", "func (Beacon) Edges() []ent.Edge {\n\treturn []ent.Edge{\n\t\tedge.To(\"instruction\", Instruction.Type).Unique().Required(),\n\t}\n}", "func isEdge(e *spb.Entry) bool { return e.Target != nil && e.EdgeKind != \"\" }", "func (Operationroom) Edges() []ent.Edge {\n return []ent.Edge{\n edge.To(\"operationroom_id\",Booking.Type),\n }\n}", "func Boggle(array []int) []int {\n\treturn []int{0, 0}\n}", "func (m *World) AddEdges(es []graph.Edge) {\n\tfor _, edge := range es {\n\t\tm.array[m.toInt[edge.From().String()]][m.toInt[edge.To().String()]] = 1\n\t}\n}", "func (g Graph) initFull(){\n numVertex := len(*g.vertexes)\n count := 0\n i := 0\n for i < numVertex{\n j := i+1\n for j < numVertex{\n if g.ExisteEnEdges(i,j){\n (*g.full)[count] = Edge{i,j,1}\n }else{\n (*g.full)[count] = Edge{i,j,0}\n }\n count = count +1\n j = j +1\n }\n i = i +1\n }\n}", "func (Short) Edges() []ent.Edge {\n\treturn nil\n}", "func (Fix) Edges() []ent.Edge {\n\treturn nil\n}", "func (Babystatus) Edges() []ent.Edge {\n\treturn []ent.Edge{\n\t\tedge.To(\"SETSTATUS\", Antenatal.Type),\n\t}\n}", "func neighbors(adj [][]bool, p point) []point {\n\tqs := []point{\n\t\t{p.x - 1, p.y}, // left\n\t\t{p.x + 1, p.y}, // right\n\t\t{p.x, p.y - 1}, // up\n\t\t{p.x, p.y + 1}, // down\n\t}\n\tresult := make([]point, 0, 4)\n\tfor _, q := range qs {\n\t\tif q.x >= 0 && q.x < len(adj) && q.y >= 0 && q.y < len(adj[0]) {\n\t\t\tif !adj[q.x][q.y] { // not a wall\n\t\t\t\tresult = append(result, q)\n\t\t\t}\n\t\t}\n\t}\n\treturn result\n}", "func exampleAdjacency(A *bmatrix) {\n\tA[0][1] = true\n\tA[1][2] = true\n\tA[2][3] = true\n\tA[2][4] = true\n\tA[3][1] = true\n\tA[4][3] = true\n}", "func (DrugAllergy) Edges() []ent.Edge {\n return []ent.Edge{\n edge. From(\"doctor\",Doctor.Type).Ref(\"Doctor_DrugAllergy\").Unique(),\n edge. From(\"patient\",Patient.Type).Ref(\"Patient_DrugAllergy\").Unique(),\n edge. From(\"medicine\",Medicine.Type).Ref(\"Medicine_DrugAllergy\").Unique(),\n edge. From(\"manner\",Manner.Type).Ref(\"Manner_DrugAllergy\").Unique(),\n }\n }", "func addEdge(nodes []*node, from, to int) {\n\tnodes[from].neighbors = append(nodes[from].neighbors, nodes[to])\n\tnodes[to].neighbors = append(nodes[to].neighbors, nodes[from])\n}", "func initAdjMap(pxMap [][]bool) {\n\tfor x := 0; x < sizeX; x++ {\n\t\tfor y := 0; y < sizeY; y++ {\n\t\t\tif pxMap[x][y] && nodeMap[x][y].nodeType != \"dEnd\" && nodeMap[x][y].nodeType != \"path\" {\n\t\t\t\t//scanning x++\n\t\t\t\tix := x\n\t\t\t\tiy := y\n\t\t\t\tfor pxMap[ix][y] {\n\t\t\t\t\tif ix+1 < sizeX {\n\t\t\t\t\t\tix++\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\n\t\t\t\t\tif nodeMap[ix][iy].nodeType != \"dEnd\" && nodeMap[ix][iy].nodeType != \"wall\" && nodeMap[ix][iy].nodeType != \"path\" {\n\t\t\t\t\t\tnodeMap[x][y].weights = append(nodeMap[x][y].weights, ix-x)\n\t\t\t\t\t\tnodeMap[x][y].adjacentNodes = append(nodeMap[x][y].adjacentNodes, &nodeMap[ix][iy])\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//scanning y++\n\t\t\t\tix = x\n\t\t\t\tiy = y\n\t\t\t\tfor pxMap[x][iy] {\n\t\t\t\t\tif iy+1 < sizeY {\n\t\t\t\t\t\tiy++\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tif nodeMap[ix][iy].nodeType != \"dEnd\" && nodeMap[ix][iy].nodeType != \"wall\" && nodeMap[ix][iy].nodeType != \"path\" {\n\t\t\t\t\t\tnodeMap[x][y].weights = append(nodeMap[x][y].weights, iy-y)\n\t\t\t\t\t\tnodeMap[x][y].adjacentNodes = append(nodeMap[x][y].adjacentNodes, &nodeMap[ix][iy])\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//scanning x--\n\t\t\t\tix = x\n\t\t\t\tiy = y\n\t\t\t\tfor pxMap[ix][y] {\n\t\t\t\t\tif ix-1 >= 0 {\n\t\t\t\t\t\tix--\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\n\t\t\t\t\tif nodeMap[ix][iy].nodeType != \"dEnd\" && nodeMap[ix][iy].nodeType != \"wall\" && nodeMap[ix][iy].nodeType != \"path\" {\n\t\t\t\t\t\tnodeMap[x][y].weights = append(nodeMap[x][y].weights, x-ix)\n\t\t\t\t\t\tnodeMap[x][y].adjacentNodes = append(nodeMap[x][y].adjacentNodes, &nodeMap[ix][iy])\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//scanning y--\n\t\t\t\tix = x\n\t\t\t\tiy = y\n\t\t\t\tfor pxMap[x][iy] {\n\t\t\t\t\tif iy-1 >= 0 {\n\t\t\t\t\t\tiy--\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tif nodeMap[ix][iy].nodeType != \"dEnd\" && nodeMap[ix][iy].nodeType != \"wall\" && nodeMap[ix][iy].nodeType != \"path\" {\n\t\t\t\t\t\tnodeMap[x][y].weights = append(nodeMap[x][y].weights, y-iy)\n\t\t\t\t\t\tnodeMap[x][y].adjacentNodes = append(nodeMap[x][y].adjacentNodes, &nodeMap[ix][iy])\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "func (t *Dense) bools() []bool { return *(*[]bool)(unsafe.Pointer(t.hdr)) }", "func SetFlags(f *asn1.BitString, j []int) {\n\tfor _, i := range j {\n\t\tSetFlag(f, i)\n\t}\n}", "func (Connectivity) Edges() []ent.Edge {\n\treturn []ent.Edge{\n\t\tedge.From(\"event\", Event.Type).Ref(\"connectivity\").Unique(),\n\t}\n}", "func (m Matrix) HasEdge(i, e int) bool {\n\treturn m.set.Get(i*m.n + e)\n}", "func (Like) Edges() []ent.Edge {\n\treturn []ent.Edge{\n\t\tedge.From(\"restaurant\", Restaurant.Type).Ref(\"likes\").Unique().Required(),\n\t}\n}", "func (Builder) Edges() []ent.Edge {\n\treturn nil\n}", "func EnableClientState(array uint32) {\n C.glowEnableClientState(gpEnableClientState, (C.GLenum)(array))\n}", "func TestArrayFlag(t *testing.T) {\n\tp := &Srcs\n\tassert.Equal(t, \"\", p.String())\n\n\tmsg.OnErr(p.Set(\"ab\"))\n\tmsg.OnErr(p.Set(\"xyz\"))\n\taf := arrayFlag([]string{\"ab\", \"xyz\"})\n\t//assert.Equal(t, af, Srcs) // this succeeds as singe test but fails as package test for some reason.\n\tassert.Equal(t, af.String(), Srcs.String())\n}", "func CollectEdges(g EdgeEnumerator) (edges []Edge) {\n\tif c, ok := g.(EdgeCounter); ok {\n\t\t// If possible, size the slice based on the number of edges the graph reports it has\n\t\tedges = make([]Edge, 0, c.Size())\n\t} else {\n\t\t// Otherwise just pick something...reasonable?\n\t\tedges = make([]Edge, 0, 32)\n\t}\n\n\tg.Edges(func(e Edge) (terminate bool) {\n\t\tedges = append(edges, e)\n\t\treturn\n\t})\n\n\treturn edges\n}", "func (Rentalstatus) Edges() []ent.Edge {\n\treturn []ent.Edge{\n\t\tedge.To(\"repairinvoices\", Repairinvoice.Type),\n\t}\n}", "func (o *Grid) boundaries() {\n\tn0 := o.npts[0]\n\tn1 := o.npts[1]\n\tif o.ndim == 2 {\n\t\to.edge = make([][]int, 4) // xmin,xmax,ymin,ymax\n\t\to.edge[0] = make([]int, n1) // xmin\n\t\to.edge[1] = make([]int, n1) // xmax\n\t\to.edge[2] = make([]int, n0) // ymin\n\t\to.edge[3] = make([]int, n0) // ymax\n\t\tfor n := 0; n < n1; n++ {\n\t\t\to.edge[0][n] = n * n0 // xmin\n\t\t\to.edge[1][n] = n*n0 + n0 - 1 // xmax\n\t\t}\n\t\tfor m := 0; m < n0; m++ {\n\t\t\to.edge[2][m] = m // ymin\n\t\t\to.edge[3][m] = m + n0*(n1-1) // ymax\n\t\t}\n\t\treturn\n\t}\n\tn2 := o.npts[2]\n\to.face = make([][]int, 6) // xmin,xmax,ymin,ymax,zmin,zmax\n\to.face[0] = make([]int, n1*n2) // xmin\n\to.face[1] = make([]int, n1*n2) // xmax\n\to.face[2] = make([]int, n0*n2) // ymin\n\to.face[3] = make([]int, n0*n2) // ymax\n\to.face[4] = make([]int, n0*n1) // zmin\n\to.face[5] = make([]int, n0*n1) // zmax\n\tt := 0\n\tfor p := 0; p < n2; p++ { // loop over z\n\t\tfor n := 0; n < n1; n++ { // loop over y\n\t\t\to.face[0][t] = n*n0 + (n0*n1)*p // xmin\n\t\t\to.face[1][t] = n*n0 + (n0*n1)*p + (n0 - 1) // xmax\n\t\t\tt++\n\t\t}\n\t}\n\tt = 0\n\tfor p := 0; p < n2; p++ { // loop over z\n\t\tfor m := 0; m < n0; m++ { // loop over x\n\t\t\to.face[2][t] = m + (n0*n1)*p // ymin\n\t\t\to.face[3][t] = m + (n0*n1)*p + n0*(n1-1) // ymax\n\t\t\tt++\n\t\t}\n\t}\n\tt = 0\n\tfor n := 0; n < n1; n++ { // loop over y\n\t\tfor m := 0; m < n0; m++ { // loop over x\n\t\t\to.face[4][t] = m + n0*n // zmin\n\t\t\to.face[5][t] = m + n0*n + (n0*n1)*(n2-1) // zmax\n\t\t\tt++\n\t\t}\n\t}\n}", "func (Status) Edges() []ent.Edge {\n\treturn nil\n}", "func (Status) Edges() []ent.Edge {\n\treturn nil\n}", "func ChebyEdge(r int) []Point {\n\tif r <= 0 {\n\t\treturn []Point{Pt(0, 0)}\n\t}\n\n\tedge := make([]Point, 0)\n\n\tfor i := -r; i < r; i++ {\n\t\tedge = append(edge, Pt(i, -r))\n\t}\n\tfor i := -r; i < r; i++ {\n\t\tedge = append(edge, Pt(r, i))\n\t}\n\tfor i := -r; i < r; i++ {\n\t\tedge = append(edge, Pt(-i, r))\n\t}\n\tfor i := -r; i < r; i++ {\n\t\tedge = append(edge, Pt(-r, -i))\n\t}\n\n\treturn edge\n}", "func (gen *Db) edges() ([]data.Edge, error) {\n\tvar edges []data.Edge\n\n\terr := gen.store.View(func(tx *genji.Tx) error {\n\t\tres, err := tx.Query(`select * from edges`)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tdefer res.Close()\n\n\t\terr = res.Iterate(func(d types.Document) error {\n\t\t\tvar edge data.Edge\n\t\t\terr = document.StructScan(d, &edge)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tedges = append(edges, edge)\n\t\t\treturn nil\n\t\t})\n\n\t\treturn nil\n\t})\n\n\treturn edges, err\n}", "func (w *World) Edges() []graph.Edge {\n\tes := make([]graph.Edge, 0, len(w.array))\n\tfor i := 0; i < len(w.array); i++ {\n\t\tfor j := 0; j < len(w.array); j++ {\n\t\t\tif w.hasEdge(i, j) {\n\t\t\t\tes = append(es, graph.TupleEdge{w.toNode[i], w.toNode[j]})\n\t\t\t}\n\t\t}\n\t}\n\treturn es\n}", "func (g Graph) SetEdge(v1 int, v2 int, value float64){\n count := 0;\n for count < len(*g.full) {\n v1temp := (*g.full)[count].v1_index\n v2temp := (*g.full)[count].v2_index\n if (v1 == v1temp && v2 == v2temp){\n //fmt.Printf(\"%d ---- %d\\n\", v1temp, v2temp)\n (*g.full)[count].weight = value\n }\n\n if (v2 == v1temp && v1 == v2temp){\n //fmt.Printf(\"%d ---- %d\\n\", v2temp, v1temp)\n (*g.full)[count].weight = value\n }\n count = count + 1\n }\n}", "func (Polygon_FenceType) EnumDescriptor() ([]byte, []int) {\n\treturn file_geofence_proto_rawDescGZIP(), []int{1, 0}\n}", "func New(args []string, flags ...string) (Flag, []string) {\n\tflag := Flag(make(map[string]bool))\n\tfor _, s := range flags {\n\t\tflag[s] = false\n\t}\n\n\tfor i := 0; i < len(args); {\n\t\tif _, found := flag[args[i]]; found {\n\t\t\tflag[args[i]] = true\n\t\t\tif i < len(args)-1 {\n\t\t\t\tcopy(args[i:], args[i+1:])\n\t\t\t}\n\t\t\targs = args[:len(args)-1]\n\t\t} else if args[i][0] == '-' {\n\t\t\tset := make([]string, 0, len(flags))\n\t\t\tfor _, c := range args[i][1:] {\n\t\t\t\ts := string([]rune{'-', c})\n\t\t\t\tif _, found := flag[s]; found {\n\t\t\t\t\tset = append(set, s)\n\t\t\t\t} else {\n\t\t\t\t\tset = set[:0]\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\tif len(set) > 0 {\n\t\t\t\tfor _, s := range set {\n\t\t\t\t\tflag[s] = true\n\t\t\t\t}\n\t\t\t\tif i < len(args)-1 {\n\t\t\t\t\tcopy(args[i:], args[i+1:])\n\t\t\t\t}\n\t\t\t\targs = args[:len(args)-1]\n\t\t\t} else {\n\t\t\t\ti++\n\t\t\t}\n\t\t} else {\n\t\t\ti++\n\t\t}\n\t}\n\treturn flag, args\n}", "func DutchFlagAlgo(arr []int) {\n\tlow := 0\n\tmid := 0\n\thigh := len(arr) - 1\n\tfor mid <= high {\n\t\tif arr[mid] == 0 {\n\t\t\tarr[low], arr[mid] = arr[mid], arr[low]\n\t\t\tmid++\n\t\t\tlow++\n\t\t} else if arr[mid] == 1 {\n\t\t\tmid++\n\t\t} else if arr[mid] == 2 {\n\t\t\tarr[high], arr[mid] = arr[mid], arr[high]\n\t\t\thigh--\n\t\t}\n\t}\n\tfmt.Println(arr)\n}", "func (m Matrix) AddEdge(i, e int) {\n\tm.set.Set(i*m.n + e)\n}", "func PackEdge(e *gdbi.Edge) map[string]interface{} {\n\treturn map[string]interface{}{\n\t\t\"gid\": e.ID,\n\t\t\"from\": e.From,\n\t\t\"to\": e.To,\n\t\t\"label\": e.Label,\n\t\t\"data\": e.Data,\n\t}\n}", "func (g *Graph) Edges() []Edge {\n\tne := g.Size()\n\tfmt.Println(\"ne = \", ne)\n\tedgelist := make([]Edge, ne)\n\tedgesAdded := 0\n\tfor c := range g.mx.Colptr[:len(g.mx.Colptr)-1] {\n\t\tuc := uint32(c)\n\t\trrange := g.mx.GetRange(uc)\n\t\tfor _, r := range rrange {\n\t\t\tif r <= uc {\n\t\t\t\tfmt.Printf(\"Adding edge %d, %d\\n\", r, uc)\n\t\t\t\tedgelist[edgesAdded] = Edge{r, uc}\n\t\t\t\tedgesAdded++\n\t\t\t}\n\t\t}\n\t}\n\treturn edgelist\n}", "func (g *Graph) addEdges(schema *load.Schema) {\n\tt, _ := g.typ(schema.Name)\n\tseen := make(map[string]struct{}, len(schema.Edges))\n\tfor _, e := range schema.Edges {\n\t\ttyp, ok := g.typ(e.Type)\n\t\texpect(ok, \"type %q does not exist for edge\", e.Type)\n\t\t_, ok = t.fields[e.Name]\n\t\texpect(!ok, \"%s schema cannot contain field and edge with the same name %q\", schema.Name, e.Name)\n\t\t_, ok = seen[e.Name]\n\t\texpect(!ok, \"%s schema contains multiple %q edges\", schema.Name, e.Name)\n\t\tseen[e.Name] = struct{}{}\n\t\tswitch {\n\t\t// Assoc only.\n\t\tcase !e.Inverse:\n\t\t\tt.Edges = append(t.Edges, &Edge{\n\t\t\t\tdef: e,\n\t\t\t\tType: typ,\n\t\t\t\tName: e.Name,\n\t\t\t\tOwner: t,\n\t\t\t\tUnique: e.Unique,\n\t\t\t\tOptional: !e.Required,\n\t\t\t\tImmutable: e.Immutable,\n\t\t\t\tStructTag: structTag(e.Name, e.Tag),\n\t\t\t\tAnnotations: e.Annotations,\n\t\t\t})\n\t\t// Inverse only.\n\t\tcase e.Inverse && e.Ref == nil:\n\t\t\texpect(e.RefName != \"\", \"back-reference edge %s.%s is missing the Ref attribute\", t.Name, e.Name)\n\t\t\tt.Edges = append(t.Edges, &Edge{\n\t\t\t\tdef: e,\n\t\t\t\tType: typ,\n\t\t\t\tName: e.Name,\n\t\t\t\tOwner: typ,\n\t\t\t\tInverse: e.RefName,\n\t\t\t\tUnique: e.Unique,\n\t\t\t\tOptional: !e.Required,\n\t\t\t\tImmutable: e.Immutable,\n\t\t\t\tStructTag: structTag(e.Name, e.Tag),\n\t\t\t\tAnnotations: e.Annotations,\n\t\t\t})\n\t\t// Inverse and assoc.\n\t\tcase e.Inverse:\n\t\t\tref := e.Ref\n\t\t\texpect(e.RefName == \"\", \"reference name is derived from the assoc name: %s.%s <-> %s.%s\", t.Name, ref.Name, t.Name, e.Name)\n\t\t\texpect(ref.Type == t.Name, \"assoc-inverse edge allowed only as o2o relation of the same type\")\n\t\t\tfrom := &Edge{\n\t\t\t\tdef: e,\n\t\t\t\tType: typ,\n\t\t\t\tName: e.Name,\n\t\t\t\tOwner: t,\n\t\t\t\tInverse: ref.Name,\n\t\t\t\tUnique: e.Unique,\n\t\t\t\tOptional: !e.Required,\n\t\t\t\tImmutable: e.Immutable,\n\t\t\t\tStructTag: structTag(e.Name, e.Tag),\n\t\t\t\tAnnotations: e.Annotations,\n\t\t\t}\n\t\t\tto := &Edge{\n\t\t\t\tdef: ref,\n\t\t\t\tRef: from,\n\t\t\t\tType: typ,\n\t\t\t\tOwner: t,\n\t\t\t\tName: ref.Name,\n\t\t\t\tUnique: ref.Unique,\n\t\t\t\tOptional: !ref.Required,\n\t\t\t\tImmutable: ref.Immutable,\n\t\t\t\tStructTag: structTag(ref.Name, ref.Tag),\n\t\t\t\tAnnotations: ref.Annotations,\n\t\t\t}\n\t\t\tfrom.Ref = to\n\t\t\tt.Edges = append(t.Edges, from, to)\n\t\tdefault:\n\t\t\tpanic(graphError{\"edge must be either an assoc or inverse edge\"})\n\t\t}\n\t}\n}", "func Flags(f byte) Field {\n\treturn func(p *Packet) error {\n\t\treturn p.append(flags, []byte{f})\n\t}\n}", "func (g *graph) getEdges(node string) []edge {\n\treturn g.Schedules[node]\n}", "func createPointArray(array [][]bool) (points []Point) {\n\theight := len(array)\n\twidth := len(array[0])\n\n\tfor y := 0; y < height; y++ {\n\t\tfor x := 0; x < width; x++ {\n\t\t\tif array[y][x] {\n\t\t\t\tpoints = append(points, Point{x % width, y})\n\t\t\t}\n\t\t}\n\t}\n\treturn points[0:]\n}", "func (Borrow) Edges() []ent.Edge {\n\treturn []ent.Edge{}\n}", "func (Heartbeat) Edges() []ent.Edge {\n\treturn []ent.Edge{\n\t\tedge.To(\"agent\", Agent.Type).Unique().Required(),\n\t}\n}", "func (tn *MergeNode) Edges() []Edge {\n\tedges := make([]Edge, 0, 1)\n\tfor _, x := range tn.inputs { // triggers are inbound\n\t\tedges = append(edges, Edge{Name: \"0\", From: x.ID(), To: tn.ID()})\n\t}\n\n\tif tn.next != nil {\n\t\tedges = append(edges, Edge{Name: fmt.Sprintf(\"%v\", 0), From: tn.ID(), To: tn.next.ID()})\n\t}\n\n\treturn edges\n}", "func (v *VerbalExpression) getFlags() string {\n\tflags := \"misU\" // warning, follow Flag const order\n\tresult := []rune{}\n\n\tfor i, flag := range flags {\n\t\tif v.flags&(1<<uint(i)) != 0 {\n\t\t\tresult = append(result, flag)\n\t\t}\n\t}\n\n\treturn string(result)\n}", "func qr_decoder_get_coderegion_vertexes(p _QrDecoderHandle) *_CvPoint {\n\tv := C.qr_decoder_get_coderegion_vertexes(C.QrDecoderHandle(p))\n\treturn (*_CvPoint)(v)\n}", "func (Agentkyc) Edges() []ent.Edge {\n\treturn nil\n}", "func (TriggerMode) Values() []TriggerMode {\n\treturn []TriggerMode{\n\t\t\"ALWAYS\",\n\t\t\"RISING_EDGE\",\n\t}\n}", "func PyArray_FLAGS(arr *PyObject) int {\n\treturn int(C.__PyArray_FLAGS(go2c(arr)))\n}", "func IsGraph(b byte) bool { return lookup[b]&graphMask != 0 }", "func DepthMask(flag bool) {\n C.glowDepthMask(gpDepthMask, (C.GLboolean)(boolToInt(flag)))\n}", "func (ev binlogEvent) Flags() uint16 {\n\treturn binary.LittleEndian.Uint16(ev.Bytes()[17 : 17+2])\n}", "func (d *DualShortestPath) AddEdge(i, j, w int) {\r\n\tif d.min {\r\n\t\td.g[i] = append(d.g[i], [2]int{j, w})\r\n\t} else {\r\n\t\td.g[j] = append(d.g[j], [2]int{i, w})\r\n\t}\r\n\tif w < 0 {\r\n\t\td.hasNeg = true\r\n\t}\r\n}", "func (Answer) Edges() []ent.Edge {\n\treturn nil\n}", "func (Test) Edges() []ent.Edge {\n\treturn nil\n}", "func (Patientroom) Edges() []ent.Edge {\n return []ent.Edge{\n edge.To(\"Patientroom\", Patientofphysician.Type),\n }\n}", "func (a *ALGraph) PeekEdges(vertex int) ([]int, bool) {\n\tif vertex > a.Size()-1 || vertex < 0 {\n\t\treturn []int{}, false\n\t}\n\n\treturn a.adjacencyList[vertex].GetSet(), true\n}", "func (Mode) Values() []Mode {\n\treturn []Mode{\n\t\t\"OFF\",\n\t\t\"BEHIND_LIVE_EDGE\",\n\t}\n}", "func (Sample) Edges() []ent.Edge {\n\treturn nil\n}", "func (Carservice) Edges() []ent.Edge {\n\treturn []ent.Edge{\n\t\tedge.From(\"userid\",User.Type).\n\t\t\tRef(\"userid\").Unique(),\n\t\tedge.From(\"disid\",Distance.Type).\n\t\t\tRef(\"disid\").Unique(),\n\t\tedge.From(\"urgentid\",Urgent.Type).\n\t\t\tRef(\"urgentid\").Unique(),\n\t}\n}", "func (fe FullEdge) Len() int {\n\treturn 2\n}", "func enableWeights(tags []Tag) []Tag {\n\tvar dst []Tag\n\tfor _, v := range tags {\n\t\tdst = append(dst, Tag{v.Word, 1})\n\t\tfor i := 0; i < v.Weight-1; i++ {\n\t\t\tdst = append(dst, Tag{v.Word, 1})\n\t\t}\n\t}\n\treturn dst\n}", "func (s *SmokeTest) testEdges(p1, p2 gpio.PinIO) error {\n\t// Test for:\n\t// - FallingEdge, RisingEdge, BothEdges\n\t// - NoEdge\n\tif err := s.testEdgesBoth(p1, p2); err != nil {\n\t\treturn err\n\t}\n\tif err := s.testEdgesSide(p1, p2, gpio.RisingEdge); err != nil {\n\t\treturn err\n\t}\n\tif err := s.testEdgesSide(p1, p2, gpio.FallingEdge); err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}", "func (Status) Edges() []ent.Edge {\n\treturn []ent.Edge{\n\t\tedge.To(\"checkouts\", Checkout.Type),\n\t}\n}", "func (LightstepConfig_PropagationMode) EnumDescriptor() ([]byte, []int) {\n\treturn file_envoy_config_trace_v3_lightstep_proto_rawDescGZIP(), []int{0, 0}\n}", "func initializeRays() {\n\t// the idea here is to generate rays in every direction for every square\n\t// on the board, to be used by the above methods.\n\n\trank8 := FullBitboard.Rank(Rank8)\n\trank1 := FullBitboard.Rank(Rank1)\n\tfilea := FullBitboard.File(FileA)\n\tfileh := FullBitboard.File(FileH)\n\tfor sq := A1; sq <= H8; sq++ {\n\t\trayTable[sq] = make([]Bitboard, 8)\n\t\tpopulateDirection(sq, North, rank8)\n\t\tpopulateDirection(sq, NorthEast, rank8|fileh)\n\t\tpopulateDirection(sq, East, fileh)\n\t\tpopulateDirection(sq, SouthEast, rank1|fileh)\n\t\tpopulateDirection(sq, South, rank1)\n\t\tpopulateDirection(sq, SouthWest, rank1|filea)\n\t\tpopulateDirection(sq, West, filea)\n\t\tpopulateDirection(sq, NorthWest, rank8|filea)\n\t}\n}", "func (Country) Edges() []ent.Edge {\n\treturn nil\n}", "func (Recordfood) Edges() []ent.Edge {\n\treturn []ent.Edge{\n\t\tedge.From(\"RECORD_USER\",User.Type).Ref(\"USER_RECORD\").Unique(),\n\t\tedge.From(\"RECORD_FOODMENU\",FOODMENU.Type).Ref(\"FOODMENU_RECORD\").Unique(),\n\t\tedge.From(\"RECORD_INGREDIENT\",Mainingre.Type).Ref(\"MAININGRE_RECORD\").Unique(),\n\t\tedge.From(\"RECORD_SOURCE\",Source.Type).Ref(\"SOURCE_RECORD\").Unique(),\n\t}\n}", "func (Complaint) Edges() []ent.Edge {\n\treturn nil\n}", "func (Menu) Edges() []ent.Edge {\n\treturn nil\n}", "func (Question) Edges() []ent.Edge {\n\treturn []ent.Edge{\n\t\tedge.To(\"options\", Opt.Type),\n\t}\n}", "func newEdge(id, i int, u, v Node) Edge {\n\treturn &edge{id: id, i: i, u: u, v: v}\n}", "func (Clubapplication) Edges() []ent.Edge {\n\treturn nil\n}", "func Mode_Values() []string {\n\treturn []string{\n\t\tModeOff,\n\t\tModeBehindLiveEdge,\n\t\tModeAfterLiveEdge,\n\t}\n}", "func (s *Set) addEdge(n nid, e edge) {\n\tif s.edges[n] == nil {\n\t\ts.edges[n] = map[edge]struct{}{e: struct{}{}}\n\t\ts.canon = false\n\t} else if _, ok := s.edges[n][e]; !ok {\n\t\ts.edges[n][e] = struct{}{}\n\t\ts.canon = false\n\t}\n}", "func (e Edges) All() []*Edge {\n\treturn e.edges\n}", "func (m *CarCheckInOutMutation) ClearedEdges() []string {\n\tedges := make([]string, 0, 3)\n\tif m.clearedambulance {\n\t\tedges = append(edges, carcheckinout.EdgeAmbulance)\n\t}\n\tif m.clearedname {\n\t\tedges = append(edges, carcheckinout.EdgeName)\n\t}\n\tif m.clearedpurpose {\n\t\tedges = append(edges, carcheckinout.EdgePurpose)\n\t}\n\treturn edges\n}", "func (g Undirected) HasEdge(n1, n2 NI) (has bool, x1, x2 int) {\n\tif has, x1 = g.HasArc(n1, n2); !has {\n\t\treturn has, x1, x1\n\t}\n\thas, x2 = g.HasArc(n2, n1)\n\treturn\n}", "func (cfg *NodeConfig) CLIFlags() []string {\n\tvar cliFlags []string\n\tcliFlags = append(cliFlags, cfg.Network.CLIFlags()...)\n\tcliFlags = append(cliFlags, cfg.Snapshot.CLIFlags()...)\n\tcliFlags = append(cliFlags, cfg.Coordinator.CLIFlags()...)\n\tcliFlags = append(cliFlags, cfg.Protocol.CLIFlags()...)\n\tcliFlags = append(cliFlags, cfg.RestAPI.CLIFlags()...)\n\tcliFlags = append(cliFlags, cfg.Plugins.CLIFlags()...)\n\tcliFlags = append(cliFlags, cfg.Profiling.CLIFlags()...)\n\tcliFlags = append(cliFlags, cfg.Dashboard.CLIFlags()...)\n\tcliFlags = append(cliFlags, cfg.Receipts.CLIFlags()...)\n\tcliFlags = append(cliFlags, cfg.Migrator.CLIFlags()...)\n\tcliFlags = append(cliFlags, cfg.Autopeering.CLIFlags()...)\n\treturn cliFlags\n}", "func init() {\n\tfor i := 0; i < int(addrModeCount); i++ {\n\t\topNameToOpCode[i] = make(map[string]byte)\n\t}\n\tfor opCode := 0; opCode < 256; opCode++ {\n\t\tinfo := opCodeDataMap[opCode]\n\t\topNameToOpCode[info.addrMode][info.opName] = byte(opCode)\n\t}\n}", "func (s StatefulSetResource) BuildEdges(ns NodeStore) []Edge {\n\t//no op for now to implement interface\n\treturn []Edge{}\n}", "func (Empty) Edges() []ent.Edge {\n\treturn nil\n}", "func findEdge(numberOfColors int) int {\n //Indicating the thickness of the area around the diagonal by L, the number of nodes is found by solving the equation\n //n^3 -6Ln^2+(6L-1)n-numberOfColors = 0\n //Making the choice L=1/6 leads to a much simpler equation, and it's also a good choice for it as it leads to skipping around a third of the colors.\n delta := math.Cbrt((math.Sqrt(float64(27*27*numberOfColors*numberOfColors + 27*4*numberOfColors)) + float64(27*numberOfColors + 2))/2)\n return int(math.Ceil((delta + 1/delta + 1.)/3))\n}", "func (Hoge) Edges() []ent.Edge {\n\treturn nil\n}", "func (IssueX1355) Edges() []ent.Edge {\n\treturn nil\n}", "func (Physician) Edges() []ent.Edge {\n return []ent.Edge{\n edge.To(\"Physician\", Patientofphysician.Type),\n \n }\n}", "func (v Posit8x4) Bits() []uint8 {\n\tout := make([]uint8, 4)\n\tfor i, posit := range v.impl {\n\t\tout[i] = posit.Bits()\n\t}\n\treturn out\n}", "func (Roomtype) Edges() []ent.Edge {\n return []ent.Edge{\n edge.To(\"Room1\", Room.Type),\n }\n}", "func (b *EdgeBag) EdgeVertices() map[Edge]int {\n\n\treturn b.data\n}", "func (CMsgClientToGCUpdatePartyBeacon_Action) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{333, 0}\n}", "func (*RefsEdge) Descriptor() ([]byte, []int) {\n\treturn file_pkg_flow_grpc_workflows_proto_rawDescGZIP(), []int{16}\n}", "func (CounterStaff) Edges() []ent.Edge {\n\treturn []ent.Edge{\n\t\tedge.To(\"checkins\", CheckIn.Type).StorageKey(edge.Column(\"staff_id\")),\n\t\tedge.To(\"checkouts\", Checkout.Type).StorageKey(edge.Column(\"staff_id\")),\n\t\tedge.To(\"details\", FurnitureDetail.Type).StorageKey(edge.Column(\"staff_id\")),\n\t}\n}", "func (TelemetrySelfDefinedEvent_ThresholdRelation) EnumDescriptor() ([]byte, []int) {\n\treturn file_huawei_telemetry_proto_rawDescGZIP(), []int{3, 0}\n}", "func (sr *StatusRegister) getFlags() byte {\n\tvar flags byte\n\tflags |= sr.c << 0\n\tflags |= sr.z << 1\n\tflags |= sr.i << 2\n\tflags |= sr.d << 3\n\tflags |= sr.b << 4\n\tflags |= sr.u << 5\n\tflags |= sr.v << 6\n\tflags |= sr.n << 7\n\treturn flags\n}" ]
[ "0.6406766", "0.6078242", "0.58935267", "0.5498641", "0.5263787", "0.5128917", "0.51081204", "0.50732446", "0.50115794", "0.49815664", "0.4882112", "0.48035008", "0.48003155", "0.47902435", "0.4789387", "0.47597414", "0.4741289", "0.47278187", "0.47019792", "0.467737", "0.46579927", "0.46443653", "0.462706", "0.4620659", "0.4619734", "0.46103352", "0.46088362", "0.45972213", "0.4593968", "0.4582226", "0.4561714", "0.4552286", "0.4552286", "0.45360193", "0.45346648", "0.45343018", "0.4533028", "0.45177394", "0.4517592", "0.45110697", "0.4496412", "0.44900087", "0.44854593", "0.44835678", "0.44756433", "0.44751823", "0.44741744", "0.446941", "0.44565555", "0.44527993", "0.44282076", "0.44175875", "0.4414717", "0.44076645", "0.4404972", "0.44037303", "0.4400444", "0.43967324", "0.43963724", "0.43881032", "0.43835193", "0.43817735", "0.43661305", "0.43607613", "0.4358039", "0.43579", "0.4357746", "0.43570742", "0.43564492", "0.4353939", "0.4352354", "0.4351464", "0.4351317", "0.4351172", "0.43501386", "0.43485603", "0.4347833", "0.4344429", "0.43412057", "0.43399507", "0.43381616", "0.43376425", "0.43341655", "0.43258846", "0.43244228", "0.4321287", "0.43210688", "0.43166816", "0.43161008", "0.43108058", "0.43098295", "0.43094513", "0.4303628", "0.4301897", "0.42857638", "0.4282752", "0.42824033", "0.42734066", "0.42689106", "0.4268432" ]
0.5316267
4
enable or disable serverside GL capabilities
func Enable(cap uint32) { C.glowEnable(gpEnable, (C.GLenum)(cap)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Disable(cap GLenum) {\n\tC.glDisable(C.GLenum(cap))\n}", "func (native *OpenGL) Disable(capability uint32) {\n\tgl.Disable(capability)\n}", "func (native *OpenGL) Enable(capability uint32) {\n\tgl.Enable(capability)\n}", "func (gl *WebGL) Disable(option GLEnum) {\n\tgl.context.Call(\"disable\", option)\n}", "func (gl *WebGL) Enable(option GLEnum) {\n\tgl.context.Call(\"enable\", option)\n}", "func Enable(cap Enum) {\n\tgl.Enable(uint32(cap))\n}", "func enableDisable(status, device int, name string) {\n\tvar request RpcRequest\n\n\tswitch status {\n\tcase 0:\n\t\trequest = RpcRequest{fmt.Sprintf(\"{\\\"command\\\":\\\"gpudisable\\\",\\\"parameter\\\":\\\"%v\\\"}\", device), make(chan []byte), name}\n\tcase 1:\n\t\trequest = RpcRequest{fmt.Sprintf(\"{\\\"command\\\":\\\"gpuenable\\\",\\\"parameter\\\":\\\"%v\\\"}\", device), make(chan []byte), name}\n\t}\n\n\trequest.Send()\n}", "func Disable(cap Enum) {\n\tccap, _ := (C.GLenum)(cap), cgoAllocsUnknown\n\tC.glDisable(ccap)\n}", "func Disable(cap Enum) {\n\tgl.Disable(uint32(cap))\n}", "func (debugging *debuggingOpenGL) Disable(capability uint32) {\n\tdebugging.recordEntry(\"Disable\", capability)\n\tdebugging.gl.Disable(capability)\n\tdebugging.recordExit(\"Disable\")\n}", "func Enable(cap GLenum) {\n\tC.glEnable(C.GLenum(cap))\n}", "func (debugging *debuggingOpenGL) Enable(capability uint32) {\n\tdebugging.recordEntry(\"Enable\", capability)\n\tdebugging.gl.Enable(capability)\n\tdebugging.recordExit(\"Enable\")\n}", "func IsEnabled(cap GLenum) bool {\n\treturn goBool(C.glIsEnabled(C.GLenum(cap)))\n}", "func (native *OpenGL) IsEnabled(capability uint32) bool {\n\treturn gl.IsEnabled(capability)\n}", "func Enable(cap uint32) {\n C.glowEnable(gpEnable, (C.GLenum)(cap))\n}", "func (self *Graphics) _renderWebGL(renderSession *RenderSession) {\n self.Object.Call(\"_renderWebGL\", renderSession)\n}", "func GuiEnable() {\n\tC.GuiEnable()\n}", "func GuiEnable() {\n\tC.GuiEnable()\n\tguiEnabled = true\n}", "func dg() {\n\tgl.Dump() // doesn't need context.\n\n\t// Also print the opengl version which does need a context.\n\tapp := device.New(\"Dump\", 400, 100, 600, 600)\n\tfmt.Printf(\"%s %s\", gl.GetString(gl.RENDERER), gl.GetString(gl.VERSION))\n\tfmt.Printf(\" GLSL %s\\n\", gl.GetString(gl.SHADING_LANGUAGE_VERSION))\n\tapp.Dispose()\n}", "func enableFrontend(w http.ResponseWriter, url string) {\n\tw.Header().Set(\"Access-Control-Allow-Origin\", url)\n\tw.Header().Set(\"Access-Control-Request-Method\", \"POST,GET,OPTIONS\")\n}", "func DisableEffects() {\n\n\tgl.UseProgram(0)\n\tpaunchEffect = nil\n}", "func IsEnabled(cap Enum) Boolean {\n\tccap, _ := (C.GLenum)(cap), cgoAllocsUnknown\n\t__ret := C.glIsEnabled(ccap)\n\t__v := (Boolean)(__ret)\n\treturn __v\n}", "func api(uiUseFlags map[string]struct{}) string {\n\tif _, ok := uiUseFlags[\"opengles\"]; ok {\n\t\treturn \"gles2\"\n\t}\n\treturn \"gl\"\n}", "func setGPUEngine(clock, device int, name string) {\n\trequest := RpcRequest{(fmt.Sprintf(\"{\\\"command\\\":\\\"gpuengine\\\",\\\"parameter\\\":\\\"%v,%v\\\"}\", device, clock)), make(chan []byte), name}\n\trequest.Send()\n}", "func main() {\n\tpixelgl.Run(run)\n}", "func main() {\n\tpixelgl.Run(run)\n}", "func EnableGLog(enabled bool) {\r\n\tgloged = &enabled\r\n}", "func InitGo(loader func(string) unsafe.Pointer) {\n ver := Version{OpenGL, -1, -1}\n\n\tC.pfn_glGetString = C.PFNGLGETSTRING(loader(\"glGetString\"))\n\tvs := C.GoString((*C.char)(unsafe.Pointer(C.gogl_glGetString(GL_VERSION))))\n i := strings.IndexFunc(vs, func(r rune) bool {\n return r >= '0' && r <= '9'\n })\n if i >= 0 {\n fmt.Sscanf(vs[i:], \"%d.%d\", &ver.Major, &ver.Minor)\n }\n if !ver.GE(OpenGL, 1, 0) {\n panic(\"failed to identify OpenGL version\")\n }\n C.GLVersion.major = C.int(ver.Major)\n C.GLVersion.minor = C.int(ver.Minor)\n\n C.pfn_glAccum = C.PFNGLACCUM(loader(\"glAccum\"))\n C.pfn_glAlphaFunc = C.PFNGLALPHAFUNC(loader(\"glAlphaFunc\"))\n C.pfn_glBegin = C.PFNGLBEGIN(loader(\"glBegin\"))\n C.pfn_glBitmap = C.PFNGLBITMAP(loader(\"glBitmap\"))\n C.pfn_glBlendFunc = C.PFNGLBLENDFUNC(loader(\"glBlendFunc\"))\n C.pfn_glCallList = C.PFNGLCALLLIST(loader(\"glCallList\"))\n C.pfn_glCallLists = C.PFNGLCALLLISTS(loader(\"glCallLists\"))\n C.pfn_glClear = C.PFNGLCLEAR(loader(\"glClear\"))\n C.pfn_glClearAccum = C.PFNGLCLEARACCUM(loader(\"glClearAccum\"))\n C.pfn_glClearColor = C.PFNGLCLEARCOLOR(loader(\"glClearColor\"))\n C.pfn_glClearDepth = C.PFNGLCLEARDEPTH(loader(\"glClearDepth\"))\n C.pfn_glClearIndex = C.PFNGLCLEARINDEX(loader(\"glClearIndex\"))\n C.pfn_glClearStencil = C.PFNGLCLEARSTENCIL(loader(\"glClearStencil\"))\n C.pfn_glClipPlane = C.PFNGLCLIPPLANE(loader(\"glClipPlane\"))\n C.pfn_glColor3b = C.PFNGLCOLOR3B(loader(\"glColor3b\"))\n C.pfn_glColor3bv = C.PFNGLCOLOR3BV(loader(\"glColor3bv\"))\n C.pfn_glColor3d = C.PFNGLCOLOR3D(loader(\"glColor3d\"))\n C.pfn_glColor3dv = C.PFNGLCOLOR3DV(loader(\"glColor3dv\"))\n C.pfn_glColor3f = C.PFNGLCOLOR3F(loader(\"glColor3f\"))\n C.pfn_glColor3fv = C.PFNGLCOLOR3FV(loader(\"glColor3fv\"))\n C.pfn_glColor3i = C.PFNGLCOLOR3I(loader(\"glColor3i\"))\n C.pfn_glColor3iv = C.PFNGLCOLOR3IV(loader(\"glColor3iv\"))\n C.pfn_glColor3s = C.PFNGLCOLOR3S(loader(\"glColor3s\"))\n C.pfn_glColor3sv = C.PFNGLCOLOR3SV(loader(\"glColor3sv\"))\n C.pfn_glColor3ub = C.PFNGLCOLOR3UB(loader(\"glColor3ub\"))\n C.pfn_glColor3ubv = C.PFNGLCOLOR3UBV(loader(\"glColor3ubv\"))\n C.pfn_glColor3ui = C.PFNGLCOLOR3UI(loader(\"glColor3ui\"))\n C.pfn_glColor3uiv = C.PFNGLCOLOR3UIV(loader(\"glColor3uiv\"))\n C.pfn_glColor3us = C.PFNGLCOLOR3US(loader(\"glColor3us\"))\n C.pfn_glColor3usv = C.PFNGLCOLOR3USV(loader(\"glColor3usv\"))\n C.pfn_glColor4b = C.PFNGLCOLOR4B(loader(\"glColor4b\"))\n C.pfn_glColor4bv = C.PFNGLCOLOR4BV(loader(\"glColor4bv\"))\n C.pfn_glColor4d = C.PFNGLCOLOR4D(loader(\"glColor4d\"))\n C.pfn_glColor4dv = C.PFNGLCOLOR4DV(loader(\"glColor4dv\"))\n C.pfn_glColor4f = C.PFNGLCOLOR4F(loader(\"glColor4f\"))\n C.pfn_glColor4fv = C.PFNGLCOLOR4FV(loader(\"glColor4fv\"))\n C.pfn_glColor4i = C.PFNGLCOLOR4I(loader(\"glColor4i\"))\n C.pfn_glColor4iv = C.PFNGLCOLOR4IV(loader(\"glColor4iv\"))\n C.pfn_glColor4s = C.PFNGLCOLOR4S(loader(\"glColor4s\"))\n C.pfn_glColor4sv = C.PFNGLCOLOR4SV(loader(\"glColor4sv\"))\n C.pfn_glColor4ub = C.PFNGLCOLOR4UB(loader(\"glColor4ub\"))\n C.pfn_glColor4ubv = C.PFNGLCOLOR4UBV(loader(\"glColor4ubv\"))\n C.pfn_glColor4ui = C.PFNGLCOLOR4UI(loader(\"glColor4ui\"))\n C.pfn_glColor4uiv = C.PFNGLCOLOR4UIV(loader(\"glColor4uiv\"))\n C.pfn_glColor4us = C.PFNGLCOLOR4US(loader(\"glColor4us\"))\n C.pfn_glColor4usv = C.PFNGLCOLOR4USV(loader(\"glColor4usv\"))\n C.pfn_glColorMask = C.PFNGLCOLORMASK(loader(\"glColorMask\"))\n C.pfn_glColorMaterial = C.PFNGLCOLORMATERIAL(loader(\"glColorMaterial\"))\n C.pfn_glCopyPixels = C.PFNGLCOPYPIXELS(loader(\"glCopyPixels\"))\n C.pfn_glCullFace = C.PFNGLCULLFACE(loader(\"glCullFace\"))\n C.pfn_glDeleteLists = C.PFNGLDELETELISTS(loader(\"glDeleteLists\"))\n C.pfn_glDepthFunc = C.PFNGLDEPTHFUNC(loader(\"glDepthFunc\"))\n C.pfn_glDepthMask = C.PFNGLDEPTHMASK(loader(\"glDepthMask\"))\n C.pfn_glDepthRange = C.PFNGLDEPTHRANGE(loader(\"glDepthRange\"))\n C.pfn_glDisable = C.PFNGLDISABLE(loader(\"glDisable\"))\n C.pfn_glDrawBuffer = C.PFNGLDRAWBUFFER(loader(\"glDrawBuffer\"))\n C.pfn_glDrawPixels = C.PFNGLDRAWPIXELS(loader(\"glDrawPixels\"))\n C.pfn_glEdgeFlag = C.PFNGLEDGEFLAG(loader(\"glEdgeFlag\"))\n C.pfn_glEdgeFlagv = C.PFNGLEDGEFLAGV(loader(\"glEdgeFlagv\"))\n C.pfn_glEnable = C.PFNGLENABLE(loader(\"glEnable\"))\n C.pfn_glEnd = C.PFNGLEND(loader(\"glEnd\"))\n C.pfn_glEndList = C.PFNGLENDLIST(loader(\"glEndList\"))\n C.pfn_glEvalCoord1d = C.PFNGLEVALCOORD1D(loader(\"glEvalCoord1d\"))\n C.pfn_glEvalCoord1dv = C.PFNGLEVALCOORD1DV(loader(\"glEvalCoord1dv\"))\n C.pfn_glEvalCoord1f = C.PFNGLEVALCOORD1F(loader(\"glEvalCoord1f\"))\n C.pfn_glEvalCoord1fv = C.PFNGLEVALCOORD1FV(loader(\"glEvalCoord1fv\"))\n C.pfn_glEvalCoord2d = C.PFNGLEVALCOORD2D(loader(\"glEvalCoord2d\"))\n C.pfn_glEvalCoord2dv = C.PFNGLEVALCOORD2DV(loader(\"glEvalCoord2dv\"))\n C.pfn_glEvalCoord2f = C.PFNGLEVALCOORD2F(loader(\"glEvalCoord2f\"))\n C.pfn_glEvalCoord2fv = C.PFNGLEVALCOORD2FV(loader(\"glEvalCoord2fv\"))\n C.pfn_glEvalMesh1 = C.PFNGLEVALMESH1(loader(\"glEvalMesh1\"))\n C.pfn_glEvalMesh2 = C.PFNGLEVALMESH2(loader(\"glEvalMesh2\"))\n C.pfn_glEvalPoint1 = C.PFNGLEVALPOINT1(loader(\"glEvalPoint1\"))\n C.pfn_glEvalPoint2 = C.PFNGLEVALPOINT2(loader(\"glEvalPoint2\"))\n C.pfn_glFeedbackBuffer = C.PFNGLFEEDBACKBUFFER(loader(\"glFeedbackBuffer\"))\n C.pfn_glFinish = C.PFNGLFINISH(loader(\"glFinish\"))\n C.pfn_glFlush = C.PFNGLFLUSH(loader(\"glFlush\"))\n C.pfn_glFogf = C.PFNGLFOGF(loader(\"glFogf\"))\n C.pfn_glFogfv = C.PFNGLFOGFV(loader(\"glFogfv\"))\n C.pfn_glFogi = C.PFNGLFOGI(loader(\"glFogi\"))\n C.pfn_glFogiv = C.PFNGLFOGIV(loader(\"glFogiv\"))\n C.pfn_glFrontFace = C.PFNGLFRONTFACE(loader(\"glFrontFace\"))\n C.pfn_glFrustum = C.PFNGLFRUSTUM(loader(\"glFrustum\"))\n C.pfn_glGenLists = C.PFNGLGENLISTS(loader(\"glGenLists\"))\n C.pfn_glGetBooleanv = C.PFNGLGETBOOLEANV(loader(\"glGetBooleanv\"))\n C.pfn_glGetClipPlane = C.PFNGLGETCLIPPLANE(loader(\"glGetClipPlane\"))\n C.pfn_glGetDoublev = C.PFNGLGETDOUBLEV(loader(\"glGetDoublev\"))\n C.pfn_glGetError = C.PFNGLGETERROR(loader(\"glGetError\"))\n C.pfn_glGetFloatv = C.PFNGLGETFLOATV(loader(\"glGetFloatv\"))\n C.pfn_glGetIntegerv = C.PFNGLGETINTEGERV(loader(\"glGetIntegerv\"))\n C.pfn_glGetLightfv = C.PFNGLGETLIGHTFV(loader(\"glGetLightfv\"))\n C.pfn_glGetLightiv = C.PFNGLGETLIGHTIV(loader(\"glGetLightiv\"))\n C.pfn_glGetMapdv = C.PFNGLGETMAPDV(loader(\"glGetMapdv\"))\n C.pfn_glGetMapfv = C.PFNGLGETMAPFV(loader(\"glGetMapfv\"))\n C.pfn_glGetMapiv = C.PFNGLGETMAPIV(loader(\"glGetMapiv\"))\n C.pfn_glGetMaterialfv = C.PFNGLGETMATERIALFV(loader(\"glGetMaterialfv\"))\n C.pfn_glGetMaterialiv = C.PFNGLGETMATERIALIV(loader(\"glGetMaterialiv\"))\n C.pfn_glGetPixelMapfv = C.PFNGLGETPIXELMAPFV(loader(\"glGetPixelMapfv\"))\n C.pfn_glGetPixelMapuiv = C.PFNGLGETPIXELMAPUIV(loader(\"glGetPixelMapuiv\"))\n C.pfn_glGetPixelMapusv = C.PFNGLGETPIXELMAPUSV(loader(\"glGetPixelMapusv\"))\n C.pfn_glGetPolygonStipple = C.PFNGLGETPOLYGONSTIPPLE(loader(\"glGetPolygonStipple\"))\n C.pfn_glGetString = C.PFNGLGETSTRING(loader(\"glGetString\"))\n C.pfn_glGetTexEnvfv = C.PFNGLGETTEXENVFV(loader(\"glGetTexEnvfv\"))\n C.pfn_glGetTexEnviv = C.PFNGLGETTEXENVIV(loader(\"glGetTexEnviv\"))\n C.pfn_glGetTexGendv = C.PFNGLGETTEXGENDV(loader(\"glGetTexGendv\"))\n C.pfn_glGetTexGenfv = C.PFNGLGETTEXGENFV(loader(\"glGetTexGenfv\"))\n C.pfn_glGetTexGeniv = C.PFNGLGETTEXGENIV(loader(\"glGetTexGeniv\"))\n C.pfn_glGetTexImage = C.PFNGLGETTEXIMAGE(loader(\"glGetTexImage\"))\n C.pfn_glGetTexLevelParameterfv = C.PFNGLGETTEXLEVELPARAMETERFV(loader(\"glGetTexLevelParameterfv\"))\n C.pfn_glGetTexLevelParameteriv = C.PFNGLGETTEXLEVELPARAMETERIV(loader(\"glGetTexLevelParameteriv\"))\n C.pfn_glGetTexParameterfv = C.PFNGLGETTEXPARAMETERFV(loader(\"glGetTexParameterfv\"))\n C.pfn_glGetTexParameteriv = C.PFNGLGETTEXPARAMETERIV(loader(\"glGetTexParameteriv\"))\n C.pfn_glHint = C.PFNGLHINT(loader(\"glHint\"))\n C.pfn_glIndexMask = C.PFNGLINDEXMASK(loader(\"glIndexMask\"))\n C.pfn_glIndexd = C.PFNGLINDEXD(loader(\"glIndexd\"))\n C.pfn_glIndexdv = C.PFNGLINDEXDV(loader(\"glIndexdv\"))\n C.pfn_glIndexf = C.PFNGLINDEXF(loader(\"glIndexf\"))\n C.pfn_glIndexfv = C.PFNGLINDEXFV(loader(\"glIndexfv\"))\n C.pfn_glIndexi = C.PFNGLINDEXI(loader(\"glIndexi\"))\n C.pfn_glIndexiv = C.PFNGLINDEXIV(loader(\"glIndexiv\"))\n C.pfn_glIndexs = C.PFNGLINDEXS(loader(\"glIndexs\"))\n C.pfn_glIndexsv = C.PFNGLINDEXSV(loader(\"glIndexsv\"))\n C.pfn_glInitNames = C.PFNGLINITNAMES(loader(\"glInitNames\"))\n C.pfn_glIsEnabled = C.PFNGLISENABLED(loader(\"glIsEnabled\"))\n C.pfn_glIsList = C.PFNGLISLIST(loader(\"glIsList\"))\n C.pfn_glLightModelf = C.PFNGLLIGHTMODELF(loader(\"glLightModelf\"))\n C.pfn_glLightModelfv = C.PFNGLLIGHTMODELFV(loader(\"glLightModelfv\"))\n C.pfn_glLightModeli = C.PFNGLLIGHTMODELI(loader(\"glLightModeli\"))\n C.pfn_glLightModeliv = C.PFNGLLIGHTMODELIV(loader(\"glLightModeliv\"))\n C.pfn_glLightf = C.PFNGLLIGHTF(loader(\"glLightf\"))\n C.pfn_glLightfv = C.PFNGLLIGHTFV(loader(\"glLightfv\"))\n C.pfn_glLighti = C.PFNGLLIGHTI(loader(\"glLighti\"))\n C.pfn_glLightiv = C.PFNGLLIGHTIV(loader(\"glLightiv\"))\n C.pfn_glLineStipple = C.PFNGLLINESTIPPLE(loader(\"glLineStipple\"))\n C.pfn_glLineWidth = C.PFNGLLINEWIDTH(loader(\"glLineWidth\"))\n C.pfn_glListBase = C.PFNGLLISTBASE(loader(\"glListBase\"))\n C.pfn_glLoadIdentity = C.PFNGLLOADIDENTITY(loader(\"glLoadIdentity\"))\n C.pfn_glLoadMatrixd = C.PFNGLLOADMATRIXD(loader(\"glLoadMatrixd\"))\n C.pfn_glLoadMatrixf = C.PFNGLLOADMATRIXF(loader(\"glLoadMatrixf\"))\n C.pfn_glLoadName = C.PFNGLLOADNAME(loader(\"glLoadName\"))\n C.pfn_glLogicOp = C.PFNGLLOGICOP(loader(\"glLogicOp\"))\n C.pfn_glMap1d = C.PFNGLMAP1D(loader(\"glMap1d\"))\n C.pfn_glMap1f = C.PFNGLMAP1F(loader(\"glMap1f\"))\n C.pfn_glMap2d = C.PFNGLMAP2D(loader(\"glMap2d\"))\n C.pfn_glMap2f = C.PFNGLMAP2F(loader(\"glMap2f\"))\n C.pfn_glMapGrid1d = C.PFNGLMAPGRID1D(loader(\"glMapGrid1d\"))\n C.pfn_glMapGrid1f = C.PFNGLMAPGRID1F(loader(\"glMapGrid1f\"))\n C.pfn_glMapGrid2d = C.PFNGLMAPGRID2D(loader(\"glMapGrid2d\"))\n C.pfn_glMapGrid2f = C.PFNGLMAPGRID2F(loader(\"glMapGrid2f\"))\n C.pfn_glMaterialf = C.PFNGLMATERIALF(loader(\"glMaterialf\"))\n C.pfn_glMaterialfv = C.PFNGLMATERIALFV(loader(\"glMaterialfv\"))\n C.pfn_glMateriali = C.PFNGLMATERIALI(loader(\"glMateriali\"))\n C.pfn_glMaterialiv = C.PFNGLMATERIALIV(loader(\"glMaterialiv\"))\n C.pfn_glMatrixMode = C.PFNGLMATRIXMODE(loader(\"glMatrixMode\"))\n C.pfn_glMultMatrixd = C.PFNGLMULTMATRIXD(loader(\"glMultMatrixd\"))\n C.pfn_glMultMatrixf = C.PFNGLMULTMATRIXF(loader(\"glMultMatrixf\"))\n C.pfn_glNewList = C.PFNGLNEWLIST(loader(\"glNewList\"))\n C.pfn_glNormal3b = C.PFNGLNORMAL3B(loader(\"glNormal3b\"))\n C.pfn_glNormal3bv = C.PFNGLNORMAL3BV(loader(\"glNormal3bv\"))\n C.pfn_glNormal3d = C.PFNGLNORMAL3D(loader(\"glNormal3d\"))\n C.pfn_glNormal3dv = C.PFNGLNORMAL3DV(loader(\"glNormal3dv\"))\n C.pfn_glNormal3f = C.PFNGLNORMAL3F(loader(\"glNormal3f\"))\n C.pfn_glNormal3fv = C.PFNGLNORMAL3FV(loader(\"glNormal3fv\"))\n C.pfn_glNormal3i = C.PFNGLNORMAL3I(loader(\"glNormal3i\"))\n C.pfn_glNormal3iv = C.PFNGLNORMAL3IV(loader(\"glNormal3iv\"))\n C.pfn_glNormal3s = C.PFNGLNORMAL3S(loader(\"glNormal3s\"))\n C.pfn_glNormal3sv = C.PFNGLNORMAL3SV(loader(\"glNormal3sv\"))\n C.pfn_glOrtho = C.PFNGLORTHO(loader(\"glOrtho\"))\n C.pfn_glPassThrough = C.PFNGLPASSTHROUGH(loader(\"glPassThrough\"))\n C.pfn_glPixelMapfv = C.PFNGLPIXELMAPFV(loader(\"glPixelMapfv\"))\n C.pfn_glPixelMapuiv = C.PFNGLPIXELMAPUIV(loader(\"glPixelMapuiv\"))\n C.pfn_glPixelMapusv = C.PFNGLPIXELMAPUSV(loader(\"glPixelMapusv\"))\n C.pfn_glPixelStoref = C.PFNGLPIXELSTOREF(loader(\"glPixelStoref\"))\n C.pfn_glPixelStorei = C.PFNGLPIXELSTOREI(loader(\"glPixelStorei\"))\n C.pfn_glPixelTransferf = C.PFNGLPIXELTRANSFERF(loader(\"glPixelTransferf\"))\n C.pfn_glPixelTransferi = C.PFNGLPIXELTRANSFERI(loader(\"glPixelTransferi\"))\n C.pfn_glPixelZoom = C.PFNGLPIXELZOOM(loader(\"glPixelZoom\"))\n C.pfn_glPointSize = C.PFNGLPOINTSIZE(loader(\"glPointSize\"))\n C.pfn_glPolygonMode = C.PFNGLPOLYGONMODE(loader(\"glPolygonMode\"))\n C.pfn_glPolygonStipple = C.PFNGLPOLYGONSTIPPLE(loader(\"glPolygonStipple\"))\n C.pfn_glPopAttrib = C.PFNGLPOPATTRIB(loader(\"glPopAttrib\"))\n C.pfn_glPopMatrix = C.PFNGLPOPMATRIX(loader(\"glPopMatrix\"))\n C.pfn_glPopName = C.PFNGLPOPNAME(loader(\"glPopName\"))\n C.pfn_glPushAttrib = C.PFNGLPUSHATTRIB(loader(\"glPushAttrib\"))\n C.pfn_glPushMatrix = C.PFNGLPUSHMATRIX(loader(\"glPushMatrix\"))\n C.pfn_glPushName = C.PFNGLPUSHNAME(loader(\"glPushName\"))\n C.pfn_glRasterPos2d = C.PFNGLRASTERPOS2D(loader(\"glRasterPos2d\"))\n C.pfn_glRasterPos2dv = C.PFNGLRASTERPOS2DV(loader(\"glRasterPos2dv\"))\n C.pfn_glRasterPos2f = C.PFNGLRASTERPOS2F(loader(\"glRasterPos2f\"))\n C.pfn_glRasterPos2fv = C.PFNGLRASTERPOS2FV(loader(\"glRasterPos2fv\"))\n C.pfn_glRasterPos2i = C.PFNGLRASTERPOS2I(loader(\"glRasterPos2i\"))\n C.pfn_glRasterPos2iv = C.PFNGLRASTERPOS2IV(loader(\"glRasterPos2iv\"))\n C.pfn_glRasterPos2s = C.PFNGLRASTERPOS2S(loader(\"glRasterPos2s\"))\n C.pfn_glRasterPos2sv = C.PFNGLRASTERPOS2SV(loader(\"glRasterPos2sv\"))\n C.pfn_glRasterPos3d = C.PFNGLRASTERPOS3D(loader(\"glRasterPos3d\"))\n C.pfn_glRasterPos3dv = C.PFNGLRASTERPOS3DV(loader(\"glRasterPos3dv\"))\n C.pfn_glRasterPos3f = C.PFNGLRASTERPOS3F(loader(\"glRasterPos3f\"))\n C.pfn_glRasterPos3fv = C.PFNGLRASTERPOS3FV(loader(\"glRasterPos3fv\"))\n C.pfn_glRasterPos3i = C.PFNGLRASTERPOS3I(loader(\"glRasterPos3i\"))\n C.pfn_glRasterPos3iv = C.PFNGLRASTERPOS3IV(loader(\"glRasterPos3iv\"))\n C.pfn_glRasterPos3s = C.PFNGLRASTERPOS3S(loader(\"glRasterPos3s\"))\n C.pfn_glRasterPos3sv = C.PFNGLRASTERPOS3SV(loader(\"glRasterPos3sv\"))\n C.pfn_glRasterPos4d = C.PFNGLRASTERPOS4D(loader(\"glRasterPos4d\"))\n C.pfn_glRasterPos4dv = C.PFNGLRASTERPOS4DV(loader(\"glRasterPos4dv\"))\n C.pfn_glRasterPos4f = C.PFNGLRASTERPOS4F(loader(\"glRasterPos4f\"))\n C.pfn_glRasterPos4fv = C.PFNGLRASTERPOS4FV(loader(\"glRasterPos4fv\"))\n C.pfn_glRasterPos4i = C.PFNGLRASTERPOS4I(loader(\"glRasterPos4i\"))\n C.pfn_glRasterPos4iv = C.PFNGLRASTERPOS4IV(loader(\"glRasterPos4iv\"))\n C.pfn_glRasterPos4s = C.PFNGLRASTERPOS4S(loader(\"glRasterPos4s\"))\n C.pfn_glRasterPos4sv = C.PFNGLRASTERPOS4SV(loader(\"glRasterPos4sv\"))\n C.pfn_glReadBuffer = C.PFNGLREADBUFFER(loader(\"glReadBuffer\"))\n C.pfn_glReadPixels = C.PFNGLREADPIXELS(loader(\"glReadPixels\"))\n C.pfn_glRectd = C.PFNGLRECTD(loader(\"glRectd\"))\n C.pfn_glRectdv = C.PFNGLRECTDV(loader(\"glRectdv\"))\n C.pfn_glRectf = C.PFNGLRECTF(loader(\"glRectf\"))\n C.pfn_glRectfv = C.PFNGLRECTFV(loader(\"glRectfv\"))\n C.pfn_glRecti = C.PFNGLRECTI(loader(\"glRecti\"))\n C.pfn_glRectiv = C.PFNGLRECTIV(loader(\"glRectiv\"))\n C.pfn_glRects = C.PFNGLRECTS(loader(\"glRects\"))\n C.pfn_glRectsv = C.PFNGLRECTSV(loader(\"glRectsv\"))\n C.pfn_glRenderMode = C.PFNGLRENDERMODE(loader(\"glRenderMode\"))\n C.pfn_glRotated = C.PFNGLROTATED(loader(\"glRotated\"))\n C.pfn_glRotatef = C.PFNGLROTATEF(loader(\"glRotatef\"))\n C.pfn_glScaled = C.PFNGLSCALED(loader(\"glScaled\"))\n C.pfn_glScalef = C.PFNGLSCALEF(loader(\"glScalef\"))\n C.pfn_glScissor = C.PFNGLSCISSOR(loader(\"glScissor\"))\n C.pfn_glSelectBuffer = C.PFNGLSELECTBUFFER(loader(\"glSelectBuffer\"))\n C.pfn_glShadeModel = C.PFNGLSHADEMODEL(loader(\"glShadeModel\"))\n C.pfn_glStencilFunc = C.PFNGLSTENCILFUNC(loader(\"glStencilFunc\"))\n C.pfn_glStencilMask = C.PFNGLSTENCILMASK(loader(\"glStencilMask\"))\n C.pfn_glStencilOp = C.PFNGLSTENCILOP(loader(\"glStencilOp\"))\n C.pfn_glTexCoord1d = C.PFNGLTEXCOORD1D(loader(\"glTexCoord1d\"))\n C.pfn_glTexCoord1dv = C.PFNGLTEXCOORD1DV(loader(\"glTexCoord1dv\"))\n C.pfn_glTexCoord1f = C.PFNGLTEXCOORD1F(loader(\"glTexCoord1f\"))\n C.pfn_glTexCoord1fv = C.PFNGLTEXCOORD1FV(loader(\"glTexCoord1fv\"))\n C.pfn_glTexCoord1i = C.PFNGLTEXCOORD1I(loader(\"glTexCoord1i\"))\n C.pfn_glTexCoord1iv = C.PFNGLTEXCOORD1IV(loader(\"glTexCoord1iv\"))\n C.pfn_glTexCoord1s = C.PFNGLTEXCOORD1S(loader(\"glTexCoord1s\"))\n C.pfn_glTexCoord1sv = C.PFNGLTEXCOORD1SV(loader(\"glTexCoord1sv\"))\n C.pfn_glTexCoord2d = C.PFNGLTEXCOORD2D(loader(\"glTexCoord2d\"))\n C.pfn_glTexCoord2dv = C.PFNGLTEXCOORD2DV(loader(\"glTexCoord2dv\"))\n C.pfn_glTexCoord2f = C.PFNGLTEXCOORD2F(loader(\"glTexCoord2f\"))\n C.pfn_glTexCoord2fv = C.PFNGLTEXCOORD2FV(loader(\"glTexCoord2fv\"))\n C.pfn_glTexCoord2i = C.PFNGLTEXCOORD2I(loader(\"glTexCoord2i\"))\n C.pfn_glTexCoord2iv = C.PFNGLTEXCOORD2IV(loader(\"glTexCoord2iv\"))\n C.pfn_glTexCoord2s = C.PFNGLTEXCOORD2S(loader(\"glTexCoord2s\"))\n C.pfn_glTexCoord2sv = C.PFNGLTEXCOORD2SV(loader(\"glTexCoord2sv\"))\n C.pfn_glTexCoord3d = C.PFNGLTEXCOORD3D(loader(\"glTexCoord3d\"))\n C.pfn_glTexCoord3dv = C.PFNGLTEXCOORD3DV(loader(\"glTexCoord3dv\"))\n C.pfn_glTexCoord3f = C.PFNGLTEXCOORD3F(loader(\"glTexCoord3f\"))\n C.pfn_glTexCoord3fv = C.PFNGLTEXCOORD3FV(loader(\"glTexCoord3fv\"))\n C.pfn_glTexCoord3i = C.PFNGLTEXCOORD3I(loader(\"glTexCoord3i\"))\n C.pfn_glTexCoord3iv = C.PFNGLTEXCOORD3IV(loader(\"glTexCoord3iv\"))\n C.pfn_glTexCoord3s = C.PFNGLTEXCOORD3S(loader(\"glTexCoord3s\"))\n C.pfn_glTexCoord3sv = C.PFNGLTEXCOORD3SV(loader(\"glTexCoord3sv\"))\n C.pfn_glTexCoord4d = C.PFNGLTEXCOORD4D(loader(\"glTexCoord4d\"))\n C.pfn_glTexCoord4dv = C.PFNGLTEXCOORD4DV(loader(\"glTexCoord4dv\"))\n C.pfn_glTexCoord4f = C.PFNGLTEXCOORD4F(loader(\"glTexCoord4f\"))\n C.pfn_glTexCoord4fv = C.PFNGLTEXCOORD4FV(loader(\"glTexCoord4fv\"))\n C.pfn_glTexCoord4i = C.PFNGLTEXCOORD4I(loader(\"glTexCoord4i\"))\n C.pfn_glTexCoord4iv = C.PFNGLTEXCOORD4IV(loader(\"glTexCoord4iv\"))\n C.pfn_glTexCoord4s = C.PFNGLTEXCOORD4S(loader(\"glTexCoord4s\"))\n C.pfn_glTexCoord4sv = C.PFNGLTEXCOORD4SV(loader(\"glTexCoord4sv\"))\n C.pfn_glTexEnvf = C.PFNGLTEXENVF(loader(\"glTexEnvf\"))\n C.pfn_glTexEnvfv = C.PFNGLTEXENVFV(loader(\"glTexEnvfv\"))\n C.pfn_glTexEnvi = C.PFNGLTEXENVI(loader(\"glTexEnvi\"))\n C.pfn_glTexEnviv = C.PFNGLTEXENVIV(loader(\"glTexEnviv\"))\n C.pfn_glTexGend = C.PFNGLTEXGEND(loader(\"glTexGend\"))\n C.pfn_glTexGendv = C.PFNGLTEXGENDV(loader(\"glTexGendv\"))\n C.pfn_glTexGenf = C.PFNGLTEXGENF(loader(\"glTexGenf\"))\n C.pfn_glTexGenfv = C.PFNGLTEXGENFV(loader(\"glTexGenfv\"))\n C.pfn_glTexGeni = C.PFNGLTEXGENI(loader(\"glTexGeni\"))\n C.pfn_glTexGeniv = C.PFNGLTEXGENIV(loader(\"glTexGeniv\"))\n C.pfn_glTexImage1D = C.PFNGLTEXIMAGE1D(loader(\"glTexImage1D\"))\n C.pfn_glTexImage2D = C.PFNGLTEXIMAGE2D(loader(\"glTexImage2D\"))\n C.pfn_glTexParameterf = C.PFNGLTEXPARAMETERF(loader(\"glTexParameterf\"))\n C.pfn_glTexParameterfv = C.PFNGLTEXPARAMETERFV(loader(\"glTexParameterfv\"))\n C.pfn_glTexParameteri = C.PFNGLTEXPARAMETERI(loader(\"glTexParameteri\"))\n C.pfn_glTexParameteriv = C.PFNGLTEXPARAMETERIV(loader(\"glTexParameteriv\"))\n C.pfn_glTranslated = C.PFNGLTRANSLATED(loader(\"glTranslated\"))\n C.pfn_glTranslatef = C.PFNGLTRANSLATEF(loader(\"glTranslatef\"))\n C.pfn_glVertex2d = C.PFNGLVERTEX2D(loader(\"glVertex2d\"))\n C.pfn_glVertex2dv = C.PFNGLVERTEX2DV(loader(\"glVertex2dv\"))\n C.pfn_glVertex2f = C.PFNGLVERTEX2F(loader(\"glVertex2f\"))\n C.pfn_glVertex2fv = C.PFNGLVERTEX2FV(loader(\"glVertex2fv\"))\n C.pfn_glVertex2i = C.PFNGLVERTEX2I(loader(\"glVertex2i\"))\n C.pfn_glVertex2iv = C.PFNGLVERTEX2IV(loader(\"glVertex2iv\"))\n C.pfn_glVertex2s = C.PFNGLVERTEX2S(loader(\"glVertex2s\"))\n C.pfn_glVertex2sv = C.PFNGLVERTEX2SV(loader(\"glVertex2sv\"))\n C.pfn_glVertex3d = C.PFNGLVERTEX3D(loader(\"glVertex3d\"))\n C.pfn_glVertex3dv = C.PFNGLVERTEX3DV(loader(\"glVertex3dv\"))\n C.pfn_glVertex3f = C.PFNGLVERTEX3F(loader(\"glVertex3f\"))\n C.pfn_glVertex3fv = C.PFNGLVERTEX3FV(loader(\"glVertex3fv\"))\n C.pfn_glVertex3i = C.PFNGLVERTEX3I(loader(\"glVertex3i\"))\n C.pfn_glVertex3iv = C.PFNGLVERTEX3IV(loader(\"glVertex3iv\"))\n C.pfn_glVertex3s = C.PFNGLVERTEX3S(loader(\"glVertex3s\"))\n C.pfn_glVertex3sv = C.PFNGLVERTEX3SV(loader(\"glVertex3sv\"))\n C.pfn_glVertex4d = C.PFNGLVERTEX4D(loader(\"glVertex4d\"))\n C.pfn_glVertex4dv = C.PFNGLVERTEX4DV(loader(\"glVertex4dv\"))\n C.pfn_glVertex4f = C.PFNGLVERTEX4F(loader(\"glVertex4f\"))\n C.pfn_glVertex4fv = C.PFNGLVERTEX4FV(loader(\"glVertex4fv\"))\n C.pfn_glVertex4i = C.PFNGLVERTEX4I(loader(\"glVertex4i\"))\n C.pfn_glVertex4iv = C.PFNGLVERTEX4IV(loader(\"glVertex4iv\"))\n C.pfn_glVertex4s = C.PFNGLVERTEX4S(loader(\"glVertex4s\"))\n C.pfn_glVertex4sv = C.PFNGLVERTEX4SV(loader(\"glVertex4sv\"))\n C.pfn_glViewport = C.PFNGLVIEWPORT(loader(\"glViewport\"))\n\n // OpenGL 1.1\n if !ver.GE(OpenGL, 1, 1) {\n return\n }\n C.pfn_glAreTexturesResident = C.PFNGLARETEXTURESRESIDENT(loader(\"glAreTexturesResident\"))\n C.pfn_glArrayElement = C.PFNGLARRAYELEMENT(loader(\"glArrayElement\"))\n C.pfn_glBindTexture = C.PFNGLBINDTEXTURE(loader(\"glBindTexture\"))\n C.pfn_glColorPointer = C.PFNGLCOLORPOINTER(loader(\"glColorPointer\"))\n C.pfn_glCopyTexImage1D = C.PFNGLCOPYTEXIMAGE1D(loader(\"glCopyTexImage1D\"))\n C.pfn_glCopyTexImage2D = C.PFNGLCOPYTEXIMAGE2D(loader(\"glCopyTexImage2D\"))\n C.pfn_glCopyTexSubImage1D = C.PFNGLCOPYTEXSUBIMAGE1D(loader(\"glCopyTexSubImage1D\"))\n C.pfn_glCopyTexSubImage2D = C.PFNGLCOPYTEXSUBIMAGE2D(loader(\"glCopyTexSubImage2D\"))\n C.pfn_glDeleteTextures = C.PFNGLDELETETEXTURES(loader(\"glDeleteTextures\"))\n C.pfn_glDisableClientState = C.PFNGLDISABLECLIENTSTATE(loader(\"glDisableClientState\"))\n C.pfn_glDrawArrays = C.PFNGLDRAWARRAYS(loader(\"glDrawArrays\"))\n C.pfn_glDrawElements = C.PFNGLDRAWELEMENTS(loader(\"glDrawElements\"))\n C.pfn_glEdgeFlagPointer = C.PFNGLEDGEFLAGPOINTER(loader(\"glEdgeFlagPointer\"))\n C.pfn_glEnableClientState = C.PFNGLENABLECLIENTSTATE(loader(\"glEnableClientState\"))\n C.pfn_glGenTextures = C.PFNGLGENTEXTURES(loader(\"glGenTextures\"))\n C.pfn_glGetPointerv = C.PFNGLGETPOINTERV(loader(\"glGetPointerv\"))\n C.pfn_glIndexPointer = C.PFNGLINDEXPOINTER(loader(\"glIndexPointer\"))\n C.pfn_glIndexub = C.PFNGLINDEXUB(loader(\"glIndexub\"))\n C.pfn_glIndexubv = C.PFNGLINDEXUBV(loader(\"glIndexubv\"))\n C.pfn_glInterleavedArrays = C.PFNGLINTERLEAVEDARRAYS(loader(\"glInterleavedArrays\"))\n C.pfn_glIsTexture = C.PFNGLISTEXTURE(loader(\"glIsTexture\"))\n C.pfn_glNormalPointer = C.PFNGLNORMALPOINTER(loader(\"glNormalPointer\"))\n C.pfn_glPolygonOffset = C.PFNGLPOLYGONOFFSET(loader(\"glPolygonOffset\"))\n C.pfn_glPopClientAttrib = C.PFNGLPOPCLIENTATTRIB(loader(\"glPopClientAttrib\"))\n C.pfn_glPrioritizeTextures = C.PFNGLPRIORITIZETEXTURES(loader(\"glPrioritizeTextures\"))\n C.pfn_glPushClientAttrib = C.PFNGLPUSHCLIENTATTRIB(loader(\"glPushClientAttrib\"))\n C.pfn_glTexCoordPointer = C.PFNGLTEXCOORDPOINTER(loader(\"glTexCoordPointer\"))\n C.pfn_glTexSubImage1D = C.PFNGLTEXSUBIMAGE1D(loader(\"glTexSubImage1D\"))\n C.pfn_glTexSubImage2D = C.PFNGLTEXSUBIMAGE2D(loader(\"glTexSubImage2D\"))\n C.pfn_glVertexPointer = C.PFNGLVERTEXPOINTER(loader(\"glVertexPointer\"))\n\n // OpenGL 1.2\n if !ver.GE(OpenGL, 1, 2) {\n return\n }\n C.pfn_glCopyTexSubImage3D = C.PFNGLCOPYTEXSUBIMAGE3D(loader(\"glCopyTexSubImage3D\"))\n C.pfn_glDrawRangeElements = C.PFNGLDRAWRANGEELEMENTS(loader(\"glDrawRangeElements\"))\n C.pfn_glTexImage3D = C.PFNGLTEXIMAGE3D(loader(\"glTexImage3D\"))\n C.pfn_glTexSubImage3D = C.PFNGLTEXSUBIMAGE3D(loader(\"glTexSubImage3D\"))\n\n // OpenGL 1.3\n if !ver.GE(OpenGL, 1, 3) {\n return\n }\n C.pfn_glActiveTexture = C.PFNGLACTIVETEXTURE(loader(\"glActiveTexture\"))\n C.pfn_glClientActiveTexture = C.PFNGLCLIENTACTIVETEXTURE(loader(\"glClientActiveTexture\"))\n C.pfn_glCompressedTexImage1D = C.PFNGLCOMPRESSEDTEXIMAGE1D(loader(\"glCompressedTexImage1D\"))\n C.pfn_glCompressedTexImage2D = C.PFNGLCOMPRESSEDTEXIMAGE2D(loader(\"glCompressedTexImage2D\"))\n C.pfn_glCompressedTexImage3D = C.PFNGLCOMPRESSEDTEXIMAGE3D(loader(\"glCompressedTexImage3D\"))\n C.pfn_glCompressedTexSubImage1D = C.PFNGLCOMPRESSEDTEXSUBIMAGE1D(loader(\"glCompressedTexSubImage1D\"))\n C.pfn_glCompressedTexSubImage2D = C.PFNGLCOMPRESSEDTEXSUBIMAGE2D(loader(\"glCompressedTexSubImage2D\"))\n C.pfn_glCompressedTexSubImage3D = C.PFNGLCOMPRESSEDTEXSUBIMAGE3D(loader(\"glCompressedTexSubImage3D\"))\n C.pfn_glGetCompressedTexImage = C.PFNGLGETCOMPRESSEDTEXIMAGE(loader(\"glGetCompressedTexImage\"))\n C.pfn_glLoadTransposeMatrixd = C.PFNGLLOADTRANSPOSEMATRIXD(loader(\"glLoadTransposeMatrixd\"))\n C.pfn_glLoadTransposeMatrixf = C.PFNGLLOADTRANSPOSEMATRIXF(loader(\"glLoadTransposeMatrixf\"))\n C.pfn_glMultTransposeMatrixd = C.PFNGLMULTTRANSPOSEMATRIXD(loader(\"glMultTransposeMatrixd\"))\n C.pfn_glMultTransposeMatrixf = C.PFNGLMULTTRANSPOSEMATRIXF(loader(\"glMultTransposeMatrixf\"))\n C.pfn_glMultiTexCoord1d = C.PFNGLMULTITEXCOORD1D(loader(\"glMultiTexCoord1d\"))\n C.pfn_glMultiTexCoord1dv = C.PFNGLMULTITEXCOORD1DV(loader(\"glMultiTexCoord1dv\"))\n C.pfn_glMultiTexCoord1f = C.PFNGLMULTITEXCOORD1F(loader(\"glMultiTexCoord1f\"))\n C.pfn_glMultiTexCoord1fv = C.PFNGLMULTITEXCOORD1FV(loader(\"glMultiTexCoord1fv\"))\n C.pfn_glMultiTexCoord1i = C.PFNGLMULTITEXCOORD1I(loader(\"glMultiTexCoord1i\"))\n C.pfn_glMultiTexCoord1iv = C.PFNGLMULTITEXCOORD1IV(loader(\"glMultiTexCoord1iv\"))\n C.pfn_glMultiTexCoord1s = C.PFNGLMULTITEXCOORD1S(loader(\"glMultiTexCoord1s\"))\n C.pfn_glMultiTexCoord1sv = C.PFNGLMULTITEXCOORD1SV(loader(\"glMultiTexCoord1sv\"))\n C.pfn_glMultiTexCoord2d = C.PFNGLMULTITEXCOORD2D(loader(\"glMultiTexCoord2d\"))\n C.pfn_glMultiTexCoord2dv = C.PFNGLMULTITEXCOORD2DV(loader(\"glMultiTexCoord2dv\"))\n C.pfn_glMultiTexCoord2f = C.PFNGLMULTITEXCOORD2F(loader(\"glMultiTexCoord2f\"))\n C.pfn_glMultiTexCoord2fv = C.PFNGLMULTITEXCOORD2FV(loader(\"glMultiTexCoord2fv\"))\n C.pfn_glMultiTexCoord2i = C.PFNGLMULTITEXCOORD2I(loader(\"glMultiTexCoord2i\"))\n C.pfn_glMultiTexCoord2iv = C.PFNGLMULTITEXCOORD2IV(loader(\"glMultiTexCoord2iv\"))\n C.pfn_glMultiTexCoord2s = C.PFNGLMULTITEXCOORD2S(loader(\"glMultiTexCoord2s\"))\n C.pfn_glMultiTexCoord2sv = C.PFNGLMULTITEXCOORD2SV(loader(\"glMultiTexCoord2sv\"))\n C.pfn_glMultiTexCoord3d = C.PFNGLMULTITEXCOORD3D(loader(\"glMultiTexCoord3d\"))\n C.pfn_glMultiTexCoord3dv = C.PFNGLMULTITEXCOORD3DV(loader(\"glMultiTexCoord3dv\"))\n C.pfn_glMultiTexCoord3f = C.PFNGLMULTITEXCOORD3F(loader(\"glMultiTexCoord3f\"))\n C.pfn_glMultiTexCoord3fv = C.PFNGLMULTITEXCOORD3FV(loader(\"glMultiTexCoord3fv\"))\n C.pfn_glMultiTexCoord3i = C.PFNGLMULTITEXCOORD3I(loader(\"glMultiTexCoord3i\"))\n C.pfn_glMultiTexCoord3iv = C.PFNGLMULTITEXCOORD3IV(loader(\"glMultiTexCoord3iv\"))\n C.pfn_glMultiTexCoord3s = C.PFNGLMULTITEXCOORD3S(loader(\"glMultiTexCoord3s\"))\n C.pfn_glMultiTexCoord3sv = C.PFNGLMULTITEXCOORD3SV(loader(\"glMultiTexCoord3sv\"))\n C.pfn_glMultiTexCoord4d = C.PFNGLMULTITEXCOORD4D(loader(\"glMultiTexCoord4d\"))\n C.pfn_glMultiTexCoord4dv = C.PFNGLMULTITEXCOORD4DV(loader(\"glMultiTexCoord4dv\"))\n C.pfn_glMultiTexCoord4f = C.PFNGLMULTITEXCOORD4F(loader(\"glMultiTexCoord4f\"))\n C.pfn_glMultiTexCoord4fv = C.PFNGLMULTITEXCOORD4FV(loader(\"glMultiTexCoord4fv\"))\n C.pfn_glMultiTexCoord4i = C.PFNGLMULTITEXCOORD4I(loader(\"glMultiTexCoord4i\"))\n C.pfn_glMultiTexCoord4iv = C.PFNGLMULTITEXCOORD4IV(loader(\"glMultiTexCoord4iv\"))\n C.pfn_glMultiTexCoord4s = C.PFNGLMULTITEXCOORD4S(loader(\"glMultiTexCoord4s\"))\n C.pfn_glMultiTexCoord4sv = C.PFNGLMULTITEXCOORD4SV(loader(\"glMultiTexCoord4sv\"))\n C.pfn_glSampleCoverage = C.PFNGLSAMPLECOVERAGE(loader(\"glSampleCoverage\"))\n\n // OpenGL 1.4\n if !ver.GE(OpenGL, 1, 4) {\n return\n }\n C.pfn_glBlendColor = C.PFNGLBLENDCOLOR(loader(\"glBlendColor\"))\n C.pfn_glBlendEquation = C.PFNGLBLENDEQUATION(loader(\"glBlendEquation\"))\n C.pfn_glBlendFuncSeparate = C.PFNGLBLENDFUNCSEPARATE(loader(\"glBlendFuncSeparate\"))\n C.pfn_glFogCoordPointer = C.PFNGLFOGCOORDPOINTER(loader(\"glFogCoordPointer\"))\n C.pfn_glFogCoordd = C.PFNGLFOGCOORDD(loader(\"glFogCoordd\"))\n C.pfn_glFogCoorddv = C.PFNGLFOGCOORDDV(loader(\"glFogCoorddv\"))\n C.pfn_glFogCoordf = C.PFNGLFOGCOORDF(loader(\"glFogCoordf\"))\n C.pfn_glFogCoordfv = C.PFNGLFOGCOORDFV(loader(\"glFogCoordfv\"))\n C.pfn_glMultiDrawArrays = C.PFNGLMULTIDRAWARRAYS(loader(\"glMultiDrawArrays\"))\n C.pfn_glMultiDrawElements = C.PFNGLMULTIDRAWELEMENTS(loader(\"glMultiDrawElements\"))\n C.pfn_glPointParameterf = C.PFNGLPOINTPARAMETERF(loader(\"glPointParameterf\"))\n C.pfn_glPointParameterfv = C.PFNGLPOINTPARAMETERFV(loader(\"glPointParameterfv\"))\n C.pfn_glPointParameteri = C.PFNGLPOINTPARAMETERI(loader(\"glPointParameteri\"))\n C.pfn_glPointParameteriv = C.PFNGLPOINTPARAMETERIV(loader(\"glPointParameteriv\"))\n C.pfn_glSecondaryColor3b = C.PFNGLSECONDARYCOLOR3B(loader(\"glSecondaryColor3b\"))\n C.pfn_glSecondaryColor3bv = C.PFNGLSECONDARYCOLOR3BV(loader(\"glSecondaryColor3bv\"))\n C.pfn_glSecondaryColor3d = C.PFNGLSECONDARYCOLOR3D(loader(\"glSecondaryColor3d\"))\n C.pfn_glSecondaryColor3dv = C.PFNGLSECONDARYCOLOR3DV(loader(\"glSecondaryColor3dv\"))\n C.pfn_glSecondaryColor3f = C.PFNGLSECONDARYCOLOR3F(loader(\"glSecondaryColor3f\"))\n C.pfn_glSecondaryColor3fv = C.PFNGLSECONDARYCOLOR3FV(loader(\"glSecondaryColor3fv\"))\n C.pfn_glSecondaryColor3i = C.PFNGLSECONDARYCOLOR3I(loader(\"glSecondaryColor3i\"))\n C.pfn_glSecondaryColor3iv = C.PFNGLSECONDARYCOLOR3IV(loader(\"glSecondaryColor3iv\"))\n C.pfn_glSecondaryColor3s = C.PFNGLSECONDARYCOLOR3S(loader(\"glSecondaryColor3s\"))\n C.pfn_glSecondaryColor3sv = C.PFNGLSECONDARYCOLOR3SV(loader(\"glSecondaryColor3sv\"))\n C.pfn_glSecondaryColor3ub = C.PFNGLSECONDARYCOLOR3UB(loader(\"glSecondaryColor3ub\"))\n C.pfn_glSecondaryColor3ubv = C.PFNGLSECONDARYCOLOR3UBV(loader(\"glSecondaryColor3ubv\"))\n C.pfn_glSecondaryColor3ui = C.PFNGLSECONDARYCOLOR3UI(loader(\"glSecondaryColor3ui\"))\n C.pfn_glSecondaryColor3uiv = C.PFNGLSECONDARYCOLOR3UIV(loader(\"glSecondaryColor3uiv\"))\n C.pfn_glSecondaryColor3us = C.PFNGLSECONDARYCOLOR3US(loader(\"glSecondaryColor3us\"))\n C.pfn_glSecondaryColor3usv = C.PFNGLSECONDARYCOLOR3USV(loader(\"glSecondaryColor3usv\"))\n C.pfn_glSecondaryColorPointer = C.PFNGLSECONDARYCOLORPOINTER(loader(\"glSecondaryColorPointer\"))\n C.pfn_glWindowPos2d = C.PFNGLWINDOWPOS2D(loader(\"glWindowPos2d\"))\n C.pfn_glWindowPos2dv = C.PFNGLWINDOWPOS2DV(loader(\"glWindowPos2dv\"))\n C.pfn_glWindowPos2f = C.PFNGLWINDOWPOS2F(loader(\"glWindowPos2f\"))\n C.pfn_glWindowPos2fv = C.PFNGLWINDOWPOS2FV(loader(\"glWindowPos2fv\"))\n C.pfn_glWindowPos2i = C.PFNGLWINDOWPOS2I(loader(\"glWindowPos2i\"))\n C.pfn_glWindowPos2iv = C.PFNGLWINDOWPOS2IV(loader(\"glWindowPos2iv\"))\n C.pfn_glWindowPos2s = C.PFNGLWINDOWPOS2S(loader(\"glWindowPos2s\"))\n C.pfn_glWindowPos2sv = C.PFNGLWINDOWPOS2SV(loader(\"glWindowPos2sv\"))\n C.pfn_glWindowPos3d = C.PFNGLWINDOWPOS3D(loader(\"glWindowPos3d\"))\n C.pfn_glWindowPos3dv = C.PFNGLWINDOWPOS3DV(loader(\"glWindowPos3dv\"))\n C.pfn_glWindowPos3f = C.PFNGLWINDOWPOS3F(loader(\"glWindowPos3f\"))\n C.pfn_glWindowPos3fv = C.PFNGLWINDOWPOS3FV(loader(\"glWindowPos3fv\"))\n C.pfn_glWindowPos3i = C.PFNGLWINDOWPOS3I(loader(\"glWindowPos3i\"))\n C.pfn_glWindowPos3iv = C.PFNGLWINDOWPOS3IV(loader(\"glWindowPos3iv\"))\n C.pfn_glWindowPos3s = C.PFNGLWINDOWPOS3S(loader(\"glWindowPos3s\"))\n C.pfn_glWindowPos3sv = C.PFNGLWINDOWPOS3SV(loader(\"glWindowPos3sv\"))\n\n // OpenGL 1.5\n if !ver.GE(OpenGL, 1, 5) {\n return\n }\n C.pfn_glBeginQuery = C.PFNGLBEGINQUERY(loader(\"glBeginQuery\"))\n C.pfn_glBindBuffer = C.PFNGLBINDBUFFER(loader(\"glBindBuffer\"))\n C.pfn_glBufferData = C.PFNGLBUFFERDATA(loader(\"glBufferData\"))\n C.pfn_glBufferSubData = C.PFNGLBUFFERSUBDATA(loader(\"glBufferSubData\"))\n C.pfn_glDeleteBuffers = C.PFNGLDELETEBUFFERS(loader(\"glDeleteBuffers\"))\n C.pfn_glDeleteQueries = C.PFNGLDELETEQUERIES(loader(\"glDeleteQueries\"))\n C.pfn_glEndQuery = C.PFNGLENDQUERY(loader(\"glEndQuery\"))\n C.pfn_glGenBuffers = C.PFNGLGENBUFFERS(loader(\"glGenBuffers\"))\n C.pfn_glGenQueries = C.PFNGLGENQUERIES(loader(\"glGenQueries\"))\n C.pfn_glGetBufferParameteriv = C.PFNGLGETBUFFERPARAMETERIV(loader(\"glGetBufferParameteriv\"))\n C.pfn_glGetBufferPointerv = C.PFNGLGETBUFFERPOINTERV(loader(\"glGetBufferPointerv\"))\n C.pfn_glGetBufferSubData = C.PFNGLGETBUFFERSUBDATA(loader(\"glGetBufferSubData\"))\n C.pfn_glGetQueryObjectiv = C.PFNGLGETQUERYOBJECTIV(loader(\"glGetQueryObjectiv\"))\n C.pfn_glGetQueryObjectuiv = C.PFNGLGETQUERYOBJECTUIV(loader(\"glGetQueryObjectuiv\"))\n C.pfn_glGetQueryiv = C.PFNGLGETQUERYIV(loader(\"glGetQueryiv\"))\n C.pfn_glIsBuffer = C.PFNGLISBUFFER(loader(\"glIsBuffer\"))\n C.pfn_glIsQuery = C.PFNGLISQUERY(loader(\"glIsQuery\"))\n C.pfn_glMapBuffer = C.PFNGLMAPBUFFER(loader(\"glMapBuffer\"))\n C.pfn_glUnmapBuffer = C.PFNGLUNMAPBUFFER(loader(\"glUnmapBuffer\"))\n\n // OpenGL 2.0\n if !ver.GE(OpenGL, 2, 0) {\n return\n }\n C.pfn_glAttachShader = C.PFNGLATTACHSHADER(loader(\"glAttachShader\"))\n C.pfn_glBindAttribLocation = C.PFNGLBINDATTRIBLOCATION(loader(\"glBindAttribLocation\"))\n C.pfn_glBlendEquationSeparate = C.PFNGLBLENDEQUATIONSEPARATE(loader(\"glBlendEquationSeparate\"))\n C.pfn_glCompileShader = C.PFNGLCOMPILESHADER(loader(\"glCompileShader\"))\n C.pfn_glCreateProgram = C.PFNGLCREATEPROGRAM(loader(\"glCreateProgram\"))\n C.pfn_glCreateShader = C.PFNGLCREATESHADER(loader(\"glCreateShader\"))\n C.pfn_glDeleteProgram = C.PFNGLDELETEPROGRAM(loader(\"glDeleteProgram\"))\n C.pfn_glDeleteShader = C.PFNGLDELETESHADER(loader(\"glDeleteShader\"))\n C.pfn_glDetachShader = C.PFNGLDETACHSHADER(loader(\"glDetachShader\"))\n C.pfn_glDisableVertexAttribArray = C.PFNGLDISABLEVERTEXATTRIBARRAY(loader(\"glDisableVertexAttribArray\"))\n C.pfn_glDrawBuffers = C.PFNGLDRAWBUFFERS(loader(\"glDrawBuffers\"))\n C.pfn_glEnableVertexAttribArray = C.PFNGLENABLEVERTEXATTRIBARRAY(loader(\"glEnableVertexAttribArray\"))\n C.pfn_glGetActiveAttrib = C.PFNGLGETACTIVEATTRIB(loader(\"glGetActiveAttrib\"))\n C.pfn_glGetActiveUniform = C.PFNGLGETACTIVEUNIFORM(loader(\"glGetActiveUniform\"))\n C.pfn_glGetAttachedShaders = C.PFNGLGETATTACHEDSHADERS(loader(\"glGetAttachedShaders\"))\n C.pfn_glGetAttribLocation = C.PFNGLGETATTRIBLOCATION(loader(\"glGetAttribLocation\"))\n C.pfn_glGetProgramInfoLog = C.PFNGLGETPROGRAMINFOLOG(loader(\"glGetProgramInfoLog\"))\n C.pfn_glGetProgramiv = C.PFNGLGETPROGRAMIV(loader(\"glGetProgramiv\"))\n C.pfn_glGetShaderInfoLog = C.PFNGLGETSHADERINFOLOG(loader(\"glGetShaderInfoLog\"))\n C.pfn_glGetShaderSource = C.PFNGLGETSHADERSOURCE(loader(\"glGetShaderSource\"))\n C.pfn_glGetShaderiv = C.PFNGLGETSHADERIV(loader(\"glGetShaderiv\"))\n C.pfn_glGetUniformLocation = C.PFNGLGETUNIFORMLOCATION(loader(\"glGetUniformLocation\"))\n C.pfn_glGetUniformfv = C.PFNGLGETUNIFORMFV(loader(\"glGetUniformfv\"))\n C.pfn_glGetUniformiv = C.PFNGLGETUNIFORMIV(loader(\"glGetUniformiv\"))\n C.pfn_glGetVertexAttribPointerv = C.PFNGLGETVERTEXATTRIBPOINTERV(loader(\"glGetVertexAttribPointerv\"))\n C.pfn_glGetVertexAttribdv = C.PFNGLGETVERTEXATTRIBDV(loader(\"glGetVertexAttribdv\"))\n C.pfn_glGetVertexAttribfv = C.PFNGLGETVERTEXATTRIBFV(loader(\"glGetVertexAttribfv\"))\n C.pfn_glGetVertexAttribiv = C.PFNGLGETVERTEXATTRIBIV(loader(\"glGetVertexAttribiv\"))\n C.pfn_glIsProgram = C.PFNGLISPROGRAM(loader(\"glIsProgram\"))\n C.pfn_glIsShader = C.PFNGLISSHADER(loader(\"glIsShader\"))\n C.pfn_glLinkProgram = C.PFNGLLINKPROGRAM(loader(\"glLinkProgram\"))\n C.pfn_glShaderSource = C.PFNGLSHADERSOURCE(loader(\"glShaderSource\"))\n C.pfn_glStencilFuncSeparate = C.PFNGLSTENCILFUNCSEPARATE(loader(\"glStencilFuncSeparate\"))\n C.pfn_glStencilMaskSeparate = C.PFNGLSTENCILMASKSEPARATE(loader(\"glStencilMaskSeparate\"))\n C.pfn_glStencilOpSeparate = C.PFNGLSTENCILOPSEPARATE(loader(\"glStencilOpSeparate\"))\n C.pfn_glUniform1f = C.PFNGLUNIFORM1F(loader(\"glUniform1f\"))\n C.pfn_glUniform1fv = C.PFNGLUNIFORM1FV(loader(\"glUniform1fv\"))\n C.pfn_glUniform1i = C.PFNGLUNIFORM1I(loader(\"glUniform1i\"))\n C.pfn_glUniform1iv = C.PFNGLUNIFORM1IV(loader(\"glUniform1iv\"))\n C.pfn_glUniform2f = C.PFNGLUNIFORM2F(loader(\"glUniform2f\"))\n C.pfn_glUniform2fv = C.PFNGLUNIFORM2FV(loader(\"glUniform2fv\"))\n C.pfn_glUniform2i = C.PFNGLUNIFORM2I(loader(\"glUniform2i\"))\n C.pfn_glUniform2iv = C.PFNGLUNIFORM2IV(loader(\"glUniform2iv\"))\n C.pfn_glUniform3f = C.PFNGLUNIFORM3F(loader(\"glUniform3f\"))\n C.pfn_glUniform3fv = C.PFNGLUNIFORM3FV(loader(\"glUniform3fv\"))\n C.pfn_glUniform3i = C.PFNGLUNIFORM3I(loader(\"glUniform3i\"))\n C.pfn_glUniform3iv = C.PFNGLUNIFORM3IV(loader(\"glUniform3iv\"))\n C.pfn_glUniform4f = C.PFNGLUNIFORM4F(loader(\"glUniform4f\"))\n C.pfn_glUniform4fv = C.PFNGLUNIFORM4FV(loader(\"glUniform4fv\"))\n C.pfn_glUniform4i = C.PFNGLUNIFORM4I(loader(\"glUniform4i\"))\n C.pfn_glUniform4iv = C.PFNGLUNIFORM4IV(loader(\"glUniform4iv\"))\n C.pfn_glUniformMatrix2fv = C.PFNGLUNIFORMMATRIX2FV(loader(\"glUniformMatrix2fv\"))\n C.pfn_glUniformMatrix3fv = C.PFNGLUNIFORMMATRIX3FV(loader(\"glUniformMatrix3fv\"))\n C.pfn_glUniformMatrix4fv = C.PFNGLUNIFORMMATRIX4FV(loader(\"glUniformMatrix4fv\"))\n C.pfn_glUseProgram = C.PFNGLUSEPROGRAM(loader(\"glUseProgram\"))\n C.pfn_glValidateProgram = C.PFNGLVALIDATEPROGRAM(loader(\"glValidateProgram\"))\n C.pfn_glVertexAttrib1d = C.PFNGLVERTEXATTRIB1D(loader(\"glVertexAttrib1d\"))\n C.pfn_glVertexAttrib1dv = C.PFNGLVERTEXATTRIB1DV(loader(\"glVertexAttrib1dv\"))\n C.pfn_glVertexAttrib1f = C.PFNGLVERTEXATTRIB1F(loader(\"glVertexAttrib1f\"))\n C.pfn_glVertexAttrib1fv = C.PFNGLVERTEXATTRIB1FV(loader(\"glVertexAttrib1fv\"))\n C.pfn_glVertexAttrib1s = C.PFNGLVERTEXATTRIB1S(loader(\"glVertexAttrib1s\"))\n C.pfn_glVertexAttrib1sv = C.PFNGLVERTEXATTRIB1SV(loader(\"glVertexAttrib1sv\"))\n C.pfn_glVertexAttrib2d = C.PFNGLVERTEXATTRIB2D(loader(\"glVertexAttrib2d\"))\n C.pfn_glVertexAttrib2dv = C.PFNGLVERTEXATTRIB2DV(loader(\"glVertexAttrib2dv\"))\n C.pfn_glVertexAttrib2f = C.PFNGLVERTEXATTRIB2F(loader(\"glVertexAttrib2f\"))\n C.pfn_glVertexAttrib2fv = C.PFNGLVERTEXATTRIB2FV(loader(\"glVertexAttrib2fv\"))\n C.pfn_glVertexAttrib2s = C.PFNGLVERTEXATTRIB2S(loader(\"glVertexAttrib2s\"))\n C.pfn_glVertexAttrib2sv = C.PFNGLVERTEXATTRIB2SV(loader(\"glVertexAttrib2sv\"))\n C.pfn_glVertexAttrib3d = C.PFNGLVERTEXATTRIB3D(loader(\"glVertexAttrib3d\"))\n C.pfn_glVertexAttrib3dv = C.PFNGLVERTEXATTRIB3DV(loader(\"glVertexAttrib3dv\"))\n C.pfn_glVertexAttrib3f = C.PFNGLVERTEXATTRIB3F(loader(\"glVertexAttrib3f\"))\n C.pfn_glVertexAttrib3fv = C.PFNGLVERTEXATTRIB3FV(loader(\"glVertexAttrib3fv\"))\n C.pfn_glVertexAttrib3s = C.PFNGLVERTEXATTRIB3S(loader(\"glVertexAttrib3s\"))\n C.pfn_glVertexAttrib3sv = C.PFNGLVERTEXATTRIB3SV(loader(\"glVertexAttrib3sv\"))\n C.pfn_glVertexAttrib4Nbv = C.PFNGLVERTEXATTRIB4NBV(loader(\"glVertexAttrib4Nbv\"))\n C.pfn_glVertexAttrib4Niv = C.PFNGLVERTEXATTRIB4NIV(loader(\"glVertexAttrib4Niv\"))\n C.pfn_glVertexAttrib4Nsv = C.PFNGLVERTEXATTRIB4NSV(loader(\"glVertexAttrib4Nsv\"))\n C.pfn_glVertexAttrib4Nub = C.PFNGLVERTEXATTRIB4NUB(loader(\"glVertexAttrib4Nub\"))\n C.pfn_glVertexAttrib4Nubv = C.PFNGLVERTEXATTRIB4NUBV(loader(\"glVertexAttrib4Nubv\"))\n C.pfn_glVertexAttrib4Nuiv = C.PFNGLVERTEXATTRIB4NUIV(loader(\"glVertexAttrib4Nuiv\"))\n C.pfn_glVertexAttrib4Nusv = C.PFNGLVERTEXATTRIB4NUSV(loader(\"glVertexAttrib4Nusv\"))\n C.pfn_glVertexAttrib4bv = C.PFNGLVERTEXATTRIB4BV(loader(\"glVertexAttrib4bv\"))\n C.pfn_glVertexAttrib4d = C.PFNGLVERTEXATTRIB4D(loader(\"glVertexAttrib4d\"))\n C.pfn_glVertexAttrib4dv = C.PFNGLVERTEXATTRIB4DV(loader(\"glVertexAttrib4dv\"))\n C.pfn_glVertexAttrib4f = C.PFNGLVERTEXATTRIB4F(loader(\"glVertexAttrib4f\"))\n C.pfn_glVertexAttrib4fv = C.PFNGLVERTEXATTRIB4FV(loader(\"glVertexAttrib4fv\"))\n C.pfn_glVertexAttrib4iv = C.PFNGLVERTEXATTRIB4IV(loader(\"glVertexAttrib4iv\"))\n C.pfn_glVertexAttrib4s = C.PFNGLVERTEXATTRIB4S(loader(\"glVertexAttrib4s\"))\n C.pfn_glVertexAttrib4sv = C.PFNGLVERTEXATTRIB4SV(loader(\"glVertexAttrib4sv\"))\n C.pfn_glVertexAttrib4ubv = C.PFNGLVERTEXATTRIB4UBV(loader(\"glVertexAttrib4ubv\"))\n C.pfn_glVertexAttrib4uiv = C.PFNGLVERTEXATTRIB4UIV(loader(\"glVertexAttrib4uiv\"))\n C.pfn_glVertexAttrib4usv = C.PFNGLVERTEXATTRIB4USV(loader(\"glVertexAttrib4usv\"))\n C.pfn_glVertexAttribPointer = C.PFNGLVERTEXATTRIBPOINTER(loader(\"glVertexAttribPointer\"))\n\n // OpenGL 2.1\n if !ver.GE(OpenGL, 2, 1) {\n return\n }\n C.pfn_glUniformMatrix2x3fv = C.PFNGLUNIFORMMATRIX2X3FV(loader(\"glUniformMatrix2x3fv\"))\n C.pfn_glUniformMatrix2x4fv = C.PFNGLUNIFORMMATRIX2X4FV(loader(\"glUniformMatrix2x4fv\"))\n C.pfn_glUniformMatrix3x2fv = C.PFNGLUNIFORMMATRIX3X2FV(loader(\"glUniformMatrix3x2fv\"))\n C.pfn_glUniformMatrix3x4fv = C.PFNGLUNIFORMMATRIX3X4FV(loader(\"glUniformMatrix3x4fv\"))\n C.pfn_glUniformMatrix4x2fv = C.PFNGLUNIFORMMATRIX4X2FV(loader(\"glUniformMatrix4x2fv\"))\n C.pfn_glUniformMatrix4x3fv = C.PFNGLUNIFORMMATRIX4X3FV(loader(\"glUniformMatrix4x3fv\"))\n}", "func initGraphics(title string, w int, h int) (*glfw.Window, graphics.GraphicsProvider) {\n\t// GLFW must be initialized before it's called\n\terr := glfw.Init()\n\tif err != nil {\n\t\tpanic(\"Can't init glfw! \" + err.Error())\n\t}\n\n\t// request a OpenGL 3.3 core context\n\tglfw.WindowHint(glfw.Samples, 0)\n\tglfw.WindowHint(glfw.ContextVersionMajor, 3)\n\tglfw.WindowHint(glfw.ContextVersionMinor, 3)\n\tglfw.WindowHint(glfw.OpenGLForwardCompatible, glfw.True)\n\tglfw.WindowHint(glfw.OpenGLProfile, glfw.OpenGLCoreProfile)\n\n\t// get a list of all the monitors to use and then take the one\n\t// specified by the command line flag\n\tmonitors := glfw.GetMonitors()\n\tif flagDesktopNumber >= len(monitors) {\n\t\tflagDesktopNumber = -1\n\t}\n\tvar monitorToUse *glfw.Monitor\n\tif flagDesktopNumber >= 0 {\n\t\tmonitorToUse = monitors[flagDesktopNumber]\n\t}\n\n\t// do the actual window creation\n\tmainWindow, err = glfw.CreateWindow(w, h, title, monitorToUse, nil)\n\tif err != nil {\n\t\tpanic(\"Failed to create the main window! \" + err.Error())\n\t}\n\tmainWindow.SetSizeCallback(onWindowResize)\n\tmainWindow.MakeContextCurrent()\n\n\t// disable v-sync for max draw rate\n\tglfw.SwapInterval(1)\n\n\t// initialize OpenGL\n\tgfx, err := opengl.InitOpenGL()\n\tif err != nil {\n\t\tpanic(\"Failed to initialize OpenGL! \" + err.Error())\n\t}\n\tfizzle.SetGraphics(gfx)\n\n\treturn mainWindow, gfx\n}", "func Enable(cap Enum) {\n\tccap, _ := (C.GLenum)(cap), cgoAllocsUnknown\n\tC.glEnable(ccap)\n}", "func GuiDisable() {\n\tC.GuiDisable()\n}", "func initOpenGL() uint32 {\n\tif err := gl.Init(); err != nil {\n\t\tpanic(err)\n\t}\n\tversion := gl.GoStr(gl.GetString(gl.VERSION))\n\tlog.Println(\"OpenGL version\", version)\n\n\tvar vertexShaderSource string\n\tvar fragmentShaderSource string\n\n\tvertexShaderSource = `\n\t#version 410\n\tlayout (location=0) in vec3 position;\n\tlayout (location=1) in vec2 texcoord;\n\tout vec2 tCoord;\n\tuniform mat4 projection;\n\tuniform mat4 world;\n\tuniform mat4 view;\n\tuniform vec2 texScale;\n\tuniform vec2 texOffset;\n\tvoid main() {\n\t\tgl_Position = projection * world * vec4(position, 1.0);\n\t\ttCoord = (texcoord+texOffset) * texScale;\n\t}\n\t` + \"\\x00\"\n\t//gl_Position = vec4(position, 10.0, 1.0) * camera * projection;\n\n\tfragmentShaderSource = `\n\t#version 410\n\tin vec2 tCoord;\n\tout vec4 frag_colour;\n\tuniform sampler2D ourTexture;\n\tuniform vec4 color;\n\tvoid main() {\n\t\t\tfrag_colour = texture(ourTexture, tCoord) * color;\n\t}\n\t` + \"\\x00\"\n\n\tprog := CreateProgram(vertexShaderSource, fragmentShaderSource)\n\n\tgl.UseProgram(prog)\n\tgl.Uniform2f(\n\t\tgl.GetUniformLocation(prog, gl.Str(\"texScale\\x00\")),\n\t\t1.0, 1.0,\n\t)\n\tgl.Uniform4f(\n\t\tgl.GetUniformLocation(prog, gl.Str(\"color\\x00\")),\n\t\t1, 1, 1, 1,\n\t)\n\n\t// line opengl program\n\tvertexShaderSource = `\n\t#version 330 core\n\tlayout (location = 0) in vec3 aPos;\n\tuniform mat4 uProjection;\n\tuniform mat4 uWorld;\n\n\tvoid main()\n\t{\n\t gl_Position = uProjection * vec4(aPos, 1.0);\n\t}` + \"\\x00\"\n\n\tfragmentShaderSource = `\n\t#version 330 core\n\tout vec4 FragColor;\n\tuniform vec3 uColor;\n\n\tvoid main()\n\t{\n\t FragColor = vec4(uColor, 1.0f);\n\t}` + \"\\x00\"\n\n\tlineProgram = CreateProgram(vertexShaderSource, fragmentShaderSource)\n\n\treturn prog\n}", "func (b *GoGLBackend) Activate() {\n\tb.activate()\n}", "func initGraphics(title string, w int, h int) (*glfw.Window, graphics.GraphicsProvider) {\n\t// GLFW must be initialized before it's called\n\terr := glfw.Init()\n\tif err != nil {\n\t\tpanic(\"Can't init glfw! \" + err.Error())\n\t}\n\n\t// request a OpenGL 3.3 core context\n\tglfw.WindowHint(glfw.Samples, 4)\n\tglfw.WindowHint(glfw.ContextVersionMajor, 3)\n\tglfw.WindowHint(glfw.ContextVersionMinor, 3)\n\tglfw.WindowHint(glfw.OpenGLForwardCompatible, glfw.True)\n\tglfw.WindowHint(glfw.OpenGLProfile, glfw.OpenGLCoreProfile)\n\n\t// get a list of all the monitors to use and then take the one\n\t// specified by the command line flag\n\tmonitors := glfw.GetMonitors()\n\tif flagDesktopNumber >= len(monitors) {\n\t\tflagDesktopNumber = -1\n\t}\n\tvar monitorToUse *glfw.Monitor\n\tif flagDesktopNumber >= 0 {\n\t\tmonitorToUse = monitors[flagDesktopNumber]\n\t}\n\n\t// do the actual window creation\n\tmainWindow, err = glfw.CreateWindow(w, h, title, monitorToUse, nil)\n\tif err != nil {\n\t\tpanic(\"Failed to create the main window! \" + err.Error())\n\t}\n\tmainWindow.SetSizeCallback(onWindowResize)\n\tmainWindow.MakeContextCurrent()\n\n\t// disable v-sync for max draw rate\n\tglfw.SwapInterval(0)\n\n\t// initialize OpenGL\n\tgfx, err := opengl.InitOpenGL()\n\tif err != nil {\n\t\tpanic(\"Failed to initialize OpenGL! \" + err.Error())\n\t}\n\tfizzle.SetGraphics(gfx)\n\n\treturn mainWindow, gfx\n}", "func (self *Graphics) _renderWebGLI(args ...interface{}) {\n self.Object.Call(\"_renderWebGL\", args)\n}", "func Enable(cap uint32) {\n\tsyscall.Syscall(gpEnable, 1, uintptr(cap), 0, 0)\n}", "func EnableExperimentalProtocol() {\n\tcurrentRPCProtocolVersion = experimentalRPCProtocolVersion\n}", "func GuiDisable() {\n\tC.GuiDisable()\n\tguiEnabled = false\n}", "func DisableVertexAttribArray(index Uint) {\n\tcindex, _ := (C.GLuint)(index), cgoAllocsUnknown\n\tC.glDisableVertexAttribArray(cindex)\n}", "func EnableClientState(array uint32) {\n C.glowEnableClientState(gpEnableClientState, (C.GLenum)(array))\n}", "func (e *Engine) enablePluginGET(w http.ResponseWriter, req *http.Request, param httprouter.Params) {\n\tvar (\n\t\tresp = new(enablePlgResp)\n\t\tform = new(enablePlgForm)\n\t)\n\n\tif err := api.Bind(form, req); err != nil {\n\t\tapi.ResponseWithError(w, resp, err)\n\t\treturn\n\t}\n\n\tif err := api.Valid(form); err != nil {\n\t\tapi.ResponseWithError(w, resp, err)\n\t\treturn\n\t}\n\n\te.enablePlugin(form.Enabled, form.Idx)\n\n\tcode.FillCodeInfo(resp, code.GetCodeInfo(code.CodeOk))\n\tutils.ResponseJSON(w, resp)\n}", "func SupportedAPIs(glMajor, glMinor int, vulkan bool) []APIType {\n\tvar apis []APIType\n\tif glMajor >= 2 {\n\t\tapis = append(apis, GLES2)\n\t}\n\tif glMajor >= 3 {\n\t\tapis = append(apis, GLES3)\n\t\tif glMajor > 3 || glMinor >= 1 {\n\t\t\tapis = append(apis, GLES31)\n\t\t}\n\t}\n\tif vulkan {\n\t\tapis = append(apis, VK)\n\t}\n\treturn apis\n}", "func InitWithProcAddrFunc(getProcAddr func(name string) unsafe.Pointer) error {\n\tgpActiveProgramEXT = (C.GPACTIVEPROGRAMEXT)(getProcAddr(\"glActiveProgramEXT\"))\n\tgpActiveShaderProgram = (C.GPACTIVESHADERPROGRAM)(getProcAddr(\"glActiveShaderProgram\"))\n\tif gpActiveShaderProgram == nil {\n\t\treturn errors.New(\"glActiveShaderProgram\")\n\t}\n\tgpActiveShaderProgramEXT = (C.GPACTIVESHADERPROGRAMEXT)(getProcAddr(\"glActiveShaderProgramEXT\"))\n\tgpActiveTexture = (C.GPACTIVETEXTURE)(getProcAddr(\"glActiveTexture\"))\n\tif gpActiveTexture == nil {\n\t\treturn errors.New(\"glActiveTexture\")\n\t}\n\tgpApplyFramebufferAttachmentCMAAINTEL = (C.GPAPPLYFRAMEBUFFERATTACHMENTCMAAINTEL)(getProcAddr(\"glApplyFramebufferAttachmentCMAAINTEL\"))\n\tgpAttachShader = (C.GPATTACHSHADER)(getProcAddr(\"glAttachShader\"))\n\tif gpAttachShader == nil {\n\t\treturn errors.New(\"glAttachShader\")\n\t}\n\tgpBeginConditionalRender = (C.GPBEGINCONDITIONALRENDER)(getProcAddr(\"glBeginConditionalRender\"))\n\tif gpBeginConditionalRender == nil {\n\t\treturn errors.New(\"glBeginConditionalRender\")\n\t}\n\tgpBeginConditionalRenderNV = (C.GPBEGINCONDITIONALRENDERNV)(getProcAddr(\"glBeginConditionalRenderNV\"))\n\tgpBeginPerfMonitorAMD = (C.GPBEGINPERFMONITORAMD)(getProcAddr(\"glBeginPerfMonitorAMD\"))\n\tgpBeginPerfQueryINTEL = (C.GPBEGINPERFQUERYINTEL)(getProcAddr(\"glBeginPerfQueryINTEL\"))\n\tgpBeginQuery = (C.GPBEGINQUERY)(getProcAddr(\"glBeginQuery\"))\n\tif gpBeginQuery == nil {\n\t\treturn errors.New(\"glBeginQuery\")\n\t}\n\tgpBeginQueryIndexed = (C.GPBEGINQUERYINDEXED)(getProcAddr(\"glBeginQueryIndexed\"))\n\tif gpBeginQueryIndexed == nil {\n\t\treturn errors.New(\"glBeginQueryIndexed\")\n\t}\n\tgpBeginTransformFeedback = (C.GPBEGINTRANSFORMFEEDBACK)(getProcAddr(\"glBeginTransformFeedback\"))\n\tif gpBeginTransformFeedback == nil {\n\t\treturn errors.New(\"glBeginTransformFeedback\")\n\t}\n\tgpBindAttribLocation = (C.GPBINDATTRIBLOCATION)(getProcAddr(\"glBindAttribLocation\"))\n\tif gpBindAttribLocation == nil {\n\t\treturn errors.New(\"glBindAttribLocation\")\n\t}\n\tgpBindBuffer = (C.GPBINDBUFFER)(getProcAddr(\"glBindBuffer\"))\n\tif gpBindBuffer == nil {\n\t\treturn errors.New(\"glBindBuffer\")\n\t}\n\tgpBindBufferBase = (C.GPBINDBUFFERBASE)(getProcAddr(\"glBindBufferBase\"))\n\tif gpBindBufferBase == nil {\n\t\treturn errors.New(\"glBindBufferBase\")\n\t}\n\tgpBindBufferRange = (C.GPBINDBUFFERRANGE)(getProcAddr(\"glBindBufferRange\"))\n\tif gpBindBufferRange == nil {\n\t\treturn errors.New(\"glBindBufferRange\")\n\t}\n\tgpBindBuffersBase = (C.GPBINDBUFFERSBASE)(getProcAddr(\"glBindBuffersBase\"))\n\tgpBindBuffersRange = (C.GPBINDBUFFERSRANGE)(getProcAddr(\"glBindBuffersRange\"))\n\tgpBindFragDataLocation = (C.GPBINDFRAGDATALOCATION)(getProcAddr(\"glBindFragDataLocation\"))\n\tif gpBindFragDataLocation == nil {\n\t\treturn errors.New(\"glBindFragDataLocation\")\n\t}\n\tgpBindFragDataLocationIndexed = (C.GPBINDFRAGDATALOCATIONINDEXED)(getProcAddr(\"glBindFragDataLocationIndexed\"))\n\tif gpBindFragDataLocationIndexed == nil {\n\t\treturn errors.New(\"glBindFragDataLocationIndexed\")\n\t}\n\tgpBindFramebuffer = (C.GPBINDFRAMEBUFFER)(getProcAddr(\"glBindFramebuffer\"))\n\tif gpBindFramebuffer == nil {\n\t\treturn errors.New(\"glBindFramebuffer\")\n\t}\n\tgpBindImageTexture = (C.GPBINDIMAGETEXTURE)(getProcAddr(\"glBindImageTexture\"))\n\tif gpBindImageTexture == nil {\n\t\treturn errors.New(\"glBindImageTexture\")\n\t}\n\tgpBindImageTextures = (C.GPBINDIMAGETEXTURES)(getProcAddr(\"glBindImageTextures\"))\n\tgpBindMultiTextureEXT = (C.GPBINDMULTITEXTUREEXT)(getProcAddr(\"glBindMultiTextureEXT\"))\n\tgpBindProgramPipeline = (C.GPBINDPROGRAMPIPELINE)(getProcAddr(\"glBindProgramPipeline\"))\n\tif gpBindProgramPipeline == nil {\n\t\treturn errors.New(\"glBindProgramPipeline\")\n\t}\n\tgpBindProgramPipelineEXT = (C.GPBINDPROGRAMPIPELINEEXT)(getProcAddr(\"glBindProgramPipelineEXT\"))\n\tgpBindRenderbuffer = (C.GPBINDRENDERBUFFER)(getProcAddr(\"glBindRenderbuffer\"))\n\tif gpBindRenderbuffer == nil {\n\t\treturn errors.New(\"glBindRenderbuffer\")\n\t}\n\tgpBindSampler = (C.GPBINDSAMPLER)(getProcAddr(\"glBindSampler\"))\n\tif gpBindSampler == nil {\n\t\treturn errors.New(\"glBindSampler\")\n\t}\n\tgpBindSamplers = (C.GPBINDSAMPLERS)(getProcAddr(\"glBindSamplers\"))\n\tgpBindShadingRateImageNV = (C.GPBINDSHADINGRATEIMAGENV)(getProcAddr(\"glBindShadingRateImageNV\"))\n\tgpBindTexture = (C.GPBINDTEXTURE)(getProcAddr(\"glBindTexture\"))\n\tif gpBindTexture == nil {\n\t\treturn errors.New(\"glBindTexture\")\n\t}\n\tgpBindTextureUnit = (C.GPBINDTEXTUREUNIT)(getProcAddr(\"glBindTextureUnit\"))\n\tgpBindTextures = (C.GPBINDTEXTURES)(getProcAddr(\"glBindTextures\"))\n\tgpBindTransformFeedback = (C.GPBINDTRANSFORMFEEDBACK)(getProcAddr(\"glBindTransformFeedback\"))\n\tif gpBindTransformFeedback == nil {\n\t\treturn errors.New(\"glBindTransformFeedback\")\n\t}\n\tgpBindVertexArray = (C.GPBINDVERTEXARRAY)(getProcAddr(\"glBindVertexArray\"))\n\tif gpBindVertexArray == nil {\n\t\treturn errors.New(\"glBindVertexArray\")\n\t}\n\tgpBindVertexBuffer = (C.GPBINDVERTEXBUFFER)(getProcAddr(\"glBindVertexBuffer\"))\n\tgpBindVertexBuffers = (C.GPBINDVERTEXBUFFERS)(getProcAddr(\"glBindVertexBuffers\"))\n\tgpBlendBarrierKHR = (C.GPBLENDBARRIERKHR)(getProcAddr(\"glBlendBarrierKHR\"))\n\tgpBlendBarrierNV = (C.GPBLENDBARRIERNV)(getProcAddr(\"glBlendBarrierNV\"))\n\tgpBlendColor = (C.GPBLENDCOLOR)(getProcAddr(\"glBlendColor\"))\n\tif gpBlendColor == nil {\n\t\treturn errors.New(\"glBlendColor\")\n\t}\n\tgpBlendEquation = (C.GPBLENDEQUATION)(getProcAddr(\"glBlendEquation\"))\n\tif gpBlendEquation == nil {\n\t\treturn errors.New(\"glBlendEquation\")\n\t}\n\tgpBlendEquationSeparate = (C.GPBLENDEQUATIONSEPARATE)(getProcAddr(\"glBlendEquationSeparate\"))\n\tif gpBlendEquationSeparate == nil {\n\t\treturn errors.New(\"glBlendEquationSeparate\")\n\t}\n\tgpBlendEquationSeparatei = (C.GPBLENDEQUATIONSEPARATEI)(getProcAddr(\"glBlendEquationSeparatei\"))\n\tif gpBlendEquationSeparatei == nil {\n\t\treturn errors.New(\"glBlendEquationSeparatei\")\n\t}\n\tgpBlendEquationSeparateiARB = (C.GPBLENDEQUATIONSEPARATEIARB)(getProcAddr(\"glBlendEquationSeparateiARB\"))\n\tgpBlendEquationi = (C.GPBLENDEQUATIONI)(getProcAddr(\"glBlendEquationi\"))\n\tif gpBlendEquationi == nil {\n\t\treturn errors.New(\"glBlendEquationi\")\n\t}\n\tgpBlendEquationiARB = (C.GPBLENDEQUATIONIARB)(getProcAddr(\"glBlendEquationiARB\"))\n\tgpBlendFunc = (C.GPBLENDFUNC)(getProcAddr(\"glBlendFunc\"))\n\tif gpBlendFunc == nil {\n\t\treturn errors.New(\"glBlendFunc\")\n\t}\n\tgpBlendFuncSeparate = (C.GPBLENDFUNCSEPARATE)(getProcAddr(\"glBlendFuncSeparate\"))\n\tif gpBlendFuncSeparate == nil {\n\t\treturn errors.New(\"glBlendFuncSeparate\")\n\t}\n\tgpBlendFuncSeparatei = (C.GPBLENDFUNCSEPARATEI)(getProcAddr(\"glBlendFuncSeparatei\"))\n\tif gpBlendFuncSeparatei == nil {\n\t\treturn errors.New(\"glBlendFuncSeparatei\")\n\t}\n\tgpBlendFuncSeparateiARB = (C.GPBLENDFUNCSEPARATEIARB)(getProcAddr(\"glBlendFuncSeparateiARB\"))\n\tgpBlendFunci = (C.GPBLENDFUNCI)(getProcAddr(\"glBlendFunci\"))\n\tif gpBlendFunci == nil {\n\t\treturn errors.New(\"glBlendFunci\")\n\t}\n\tgpBlendFunciARB = (C.GPBLENDFUNCIARB)(getProcAddr(\"glBlendFunciARB\"))\n\tgpBlendParameteriNV = (C.GPBLENDPARAMETERINV)(getProcAddr(\"glBlendParameteriNV\"))\n\tgpBlitFramebuffer = (C.GPBLITFRAMEBUFFER)(getProcAddr(\"glBlitFramebuffer\"))\n\tif gpBlitFramebuffer == nil {\n\t\treturn errors.New(\"glBlitFramebuffer\")\n\t}\n\tgpBlitNamedFramebuffer = (C.GPBLITNAMEDFRAMEBUFFER)(getProcAddr(\"glBlitNamedFramebuffer\"))\n\tgpBufferAddressRangeNV = (C.GPBUFFERADDRESSRANGENV)(getProcAddr(\"glBufferAddressRangeNV\"))\n\tgpBufferAttachMemoryNV = (C.GPBUFFERATTACHMEMORYNV)(getProcAddr(\"glBufferAttachMemoryNV\"))\n\tgpBufferData = (C.GPBUFFERDATA)(getProcAddr(\"glBufferData\"))\n\tif gpBufferData == nil {\n\t\treturn errors.New(\"glBufferData\")\n\t}\n\tgpBufferPageCommitmentARB = (C.GPBUFFERPAGECOMMITMENTARB)(getProcAddr(\"glBufferPageCommitmentARB\"))\n\tgpBufferPageCommitmentMemNV = (C.GPBUFFERPAGECOMMITMENTMEMNV)(getProcAddr(\"glBufferPageCommitmentMemNV\"))\n\tgpBufferStorage = (C.GPBUFFERSTORAGE)(getProcAddr(\"glBufferStorage\"))\n\tgpBufferSubData = (C.GPBUFFERSUBDATA)(getProcAddr(\"glBufferSubData\"))\n\tif gpBufferSubData == nil {\n\t\treturn errors.New(\"glBufferSubData\")\n\t}\n\tgpCallCommandListNV = (C.GPCALLCOMMANDLISTNV)(getProcAddr(\"glCallCommandListNV\"))\n\tgpCheckFramebufferStatus = (C.GPCHECKFRAMEBUFFERSTATUS)(getProcAddr(\"glCheckFramebufferStatus\"))\n\tif gpCheckFramebufferStatus == nil {\n\t\treturn errors.New(\"glCheckFramebufferStatus\")\n\t}\n\tgpCheckNamedFramebufferStatus = (C.GPCHECKNAMEDFRAMEBUFFERSTATUS)(getProcAddr(\"glCheckNamedFramebufferStatus\"))\n\tgpCheckNamedFramebufferStatusEXT = (C.GPCHECKNAMEDFRAMEBUFFERSTATUSEXT)(getProcAddr(\"glCheckNamedFramebufferStatusEXT\"))\n\tgpClampColor = (C.GPCLAMPCOLOR)(getProcAddr(\"glClampColor\"))\n\tif gpClampColor == nil {\n\t\treturn errors.New(\"glClampColor\")\n\t}\n\tgpClear = (C.GPCLEAR)(getProcAddr(\"glClear\"))\n\tif gpClear == nil {\n\t\treturn errors.New(\"glClear\")\n\t}\n\tgpClearBufferData = (C.GPCLEARBUFFERDATA)(getProcAddr(\"glClearBufferData\"))\n\tgpClearBufferSubData = (C.GPCLEARBUFFERSUBDATA)(getProcAddr(\"glClearBufferSubData\"))\n\tgpClearBufferfi = (C.GPCLEARBUFFERFI)(getProcAddr(\"glClearBufferfi\"))\n\tif gpClearBufferfi == nil {\n\t\treturn errors.New(\"glClearBufferfi\")\n\t}\n\tgpClearBufferfv = (C.GPCLEARBUFFERFV)(getProcAddr(\"glClearBufferfv\"))\n\tif gpClearBufferfv == nil {\n\t\treturn errors.New(\"glClearBufferfv\")\n\t}\n\tgpClearBufferiv = (C.GPCLEARBUFFERIV)(getProcAddr(\"glClearBufferiv\"))\n\tif gpClearBufferiv == nil {\n\t\treturn errors.New(\"glClearBufferiv\")\n\t}\n\tgpClearBufferuiv = (C.GPCLEARBUFFERUIV)(getProcAddr(\"glClearBufferuiv\"))\n\tif gpClearBufferuiv == nil {\n\t\treturn errors.New(\"glClearBufferuiv\")\n\t}\n\tgpClearColor = (C.GPCLEARCOLOR)(getProcAddr(\"glClearColor\"))\n\tif gpClearColor == nil {\n\t\treturn errors.New(\"glClearColor\")\n\t}\n\tgpClearDepth = (C.GPCLEARDEPTH)(getProcAddr(\"glClearDepth\"))\n\tif gpClearDepth == nil {\n\t\treturn errors.New(\"glClearDepth\")\n\t}\n\tgpClearDepthdNV = (C.GPCLEARDEPTHDNV)(getProcAddr(\"glClearDepthdNV\"))\n\tgpClearDepthf = (C.GPCLEARDEPTHF)(getProcAddr(\"glClearDepthf\"))\n\tif gpClearDepthf == nil {\n\t\treturn errors.New(\"glClearDepthf\")\n\t}\n\tgpClearNamedBufferData = (C.GPCLEARNAMEDBUFFERDATA)(getProcAddr(\"glClearNamedBufferData\"))\n\tgpClearNamedBufferDataEXT = (C.GPCLEARNAMEDBUFFERDATAEXT)(getProcAddr(\"glClearNamedBufferDataEXT\"))\n\tgpClearNamedBufferSubData = (C.GPCLEARNAMEDBUFFERSUBDATA)(getProcAddr(\"glClearNamedBufferSubData\"))\n\tgpClearNamedBufferSubDataEXT = (C.GPCLEARNAMEDBUFFERSUBDATAEXT)(getProcAddr(\"glClearNamedBufferSubDataEXT\"))\n\tgpClearNamedFramebufferfi = (C.GPCLEARNAMEDFRAMEBUFFERFI)(getProcAddr(\"glClearNamedFramebufferfi\"))\n\tgpClearNamedFramebufferfv = (C.GPCLEARNAMEDFRAMEBUFFERFV)(getProcAddr(\"glClearNamedFramebufferfv\"))\n\tgpClearNamedFramebufferiv = (C.GPCLEARNAMEDFRAMEBUFFERIV)(getProcAddr(\"glClearNamedFramebufferiv\"))\n\tgpClearNamedFramebufferuiv = (C.GPCLEARNAMEDFRAMEBUFFERUIV)(getProcAddr(\"glClearNamedFramebufferuiv\"))\n\tgpClearStencil = (C.GPCLEARSTENCIL)(getProcAddr(\"glClearStencil\"))\n\tif gpClearStencil == nil {\n\t\treturn errors.New(\"glClearStencil\")\n\t}\n\tgpClearTexImage = (C.GPCLEARTEXIMAGE)(getProcAddr(\"glClearTexImage\"))\n\tgpClearTexSubImage = (C.GPCLEARTEXSUBIMAGE)(getProcAddr(\"glClearTexSubImage\"))\n\tgpClientAttribDefaultEXT = (C.GPCLIENTATTRIBDEFAULTEXT)(getProcAddr(\"glClientAttribDefaultEXT\"))\n\tgpClientWaitSync = (C.GPCLIENTWAITSYNC)(getProcAddr(\"glClientWaitSync\"))\n\tif gpClientWaitSync == nil {\n\t\treturn errors.New(\"glClientWaitSync\")\n\t}\n\tgpClipControl = (C.GPCLIPCONTROL)(getProcAddr(\"glClipControl\"))\n\tgpColorFormatNV = (C.GPCOLORFORMATNV)(getProcAddr(\"glColorFormatNV\"))\n\tgpColorMask = (C.GPCOLORMASK)(getProcAddr(\"glColorMask\"))\n\tif gpColorMask == nil {\n\t\treturn errors.New(\"glColorMask\")\n\t}\n\tgpColorMaski = (C.GPCOLORMASKI)(getProcAddr(\"glColorMaski\"))\n\tif gpColorMaski == nil {\n\t\treturn errors.New(\"glColorMaski\")\n\t}\n\tgpCommandListSegmentsNV = (C.GPCOMMANDLISTSEGMENTSNV)(getProcAddr(\"glCommandListSegmentsNV\"))\n\tgpCompileCommandListNV = (C.GPCOMPILECOMMANDLISTNV)(getProcAddr(\"glCompileCommandListNV\"))\n\tgpCompileShader = (C.GPCOMPILESHADER)(getProcAddr(\"glCompileShader\"))\n\tif gpCompileShader == nil {\n\t\treturn errors.New(\"glCompileShader\")\n\t}\n\tgpCompileShaderIncludeARB = (C.GPCOMPILESHADERINCLUDEARB)(getProcAddr(\"glCompileShaderIncludeARB\"))\n\tgpCompressedMultiTexImage1DEXT = (C.GPCOMPRESSEDMULTITEXIMAGE1DEXT)(getProcAddr(\"glCompressedMultiTexImage1DEXT\"))\n\tgpCompressedMultiTexImage2DEXT = (C.GPCOMPRESSEDMULTITEXIMAGE2DEXT)(getProcAddr(\"glCompressedMultiTexImage2DEXT\"))\n\tgpCompressedMultiTexImage3DEXT = (C.GPCOMPRESSEDMULTITEXIMAGE3DEXT)(getProcAddr(\"glCompressedMultiTexImage3DEXT\"))\n\tgpCompressedMultiTexSubImage1DEXT = (C.GPCOMPRESSEDMULTITEXSUBIMAGE1DEXT)(getProcAddr(\"glCompressedMultiTexSubImage1DEXT\"))\n\tgpCompressedMultiTexSubImage2DEXT = (C.GPCOMPRESSEDMULTITEXSUBIMAGE2DEXT)(getProcAddr(\"glCompressedMultiTexSubImage2DEXT\"))\n\tgpCompressedMultiTexSubImage3DEXT = (C.GPCOMPRESSEDMULTITEXSUBIMAGE3DEXT)(getProcAddr(\"glCompressedMultiTexSubImage3DEXT\"))\n\tgpCompressedTexImage1D = (C.GPCOMPRESSEDTEXIMAGE1D)(getProcAddr(\"glCompressedTexImage1D\"))\n\tif gpCompressedTexImage1D == nil {\n\t\treturn errors.New(\"glCompressedTexImage1D\")\n\t}\n\tgpCompressedTexImage2D = (C.GPCOMPRESSEDTEXIMAGE2D)(getProcAddr(\"glCompressedTexImage2D\"))\n\tif gpCompressedTexImage2D == nil {\n\t\treturn errors.New(\"glCompressedTexImage2D\")\n\t}\n\tgpCompressedTexImage3D = (C.GPCOMPRESSEDTEXIMAGE3D)(getProcAddr(\"glCompressedTexImage3D\"))\n\tif gpCompressedTexImage3D == nil {\n\t\treturn errors.New(\"glCompressedTexImage3D\")\n\t}\n\tgpCompressedTexSubImage1D = (C.GPCOMPRESSEDTEXSUBIMAGE1D)(getProcAddr(\"glCompressedTexSubImage1D\"))\n\tif gpCompressedTexSubImage1D == nil {\n\t\treturn errors.New(\"glCompressedTexSubImage1D\")\n\t}\n\tgpCompressedTexSubImage2D = (C.GPCOMPRESSEDTEXSUBIMAGE2D)(getProcAddr(\"glCompressedTexSubImage2D\"))\n\tif gpCompressedTexSubImage2D == nil {\n\t\treturn errors.New(\"glCompressedTexSubImage2D\")\n\t}\n\tgpCompressedTexSubImage3D = (C.GPCOMPRESSEDTEXSUBIMAGE3D)(getProcAddr(\"glCompressedTexSubImage3D\"))\n\tif gpCompressedTexSubImage3D == nil {\n\t\treturn errors.New(\"glCompressedTexSubImage3D\")\n\t}\n\tgpCompressedTextureImage1DEXT = (C.GPCOMPRESSEDTEXTUREIMAGE1DEXT)(getProcAddr(\"glCompressedTextureImage1DEXT\"))\n\tgpCompressedTextureImage2DEXT = (C.GPCOMPRESSEDTEXTUREIMAGE2DEXT)(getProcAddr(\"glCompressedTextureImage2DEXT\"))\n\tgpCompressedTextureImage3DEXT = (C.GPCOMPRESSEDTEXTUREIMAGE3DEXT)(getProcAddr(\"glCompressedTextureImage3DEXT\"))\n\tgpCompressedTextureSubImage1D = (C.GPCOMPRESSEDTEXTURESUBIMAGE1D)(getProcAddr(\"glCompressedTextureSubImage1D\"))\n\tgpCompressedTextureSubImage1DEXT = (C.GPCOMPRESSEDTEXTURESUBIMAGE1DEXT)(getProcAddr(\"glCompressedTextureSubImage1DEXT\"))\n\tgpCompressedTextureSubImage2D = (C.GPCOMPRESSEDTEXTURESUBIMAGE2D)(getProcAddr(\"glCompressedTextureSubImage2D\"))\n\tgpCompressedTextureSubImage2DEXT = (C.GPCOMPRESSEDTEXTURESUBIMAGE2DEXT)(getProcAddr(\"glCompressedTextureSubImage2DEXT\"))\n\tgpCompressedTextureSubImage3D = (C.GPCOMPRESSEDTEXTURESUBIMAGE3D)(getProcAddr(\"glCompressedTextureSubImage3D\"))\n\tgpCompressedTextureSubImage3DEXT = (C.GPCOMPRESSEDTEXTURESUBIMAGE3DEXT)(getProcAddr(\"glCompressedTextureSubImage3DEXT\"))\n\tgpConservativeRasterParameterfNV = (C.GPCONSERVATIVERASTERPARAMETERFNV)(getProcAddr(\"glConservativeRasterParameterfNV\"))\n\tgpConservativeRasterParameteriNV = (C.GPCONSERVATIVERASTERPARAMETERINV)(getProcAddr(\"glConservativeRasterParameteriNV\"))\n\tgpCopyBufferSubData = (C.GPCOPYBUFFERSUBDATA)(getProcAddr(\"glCopyBufferSubData\"))\n\tif gpCopyBufferSubData == nil {\n\t\treturn errors.New(\"glCopyBufferSubData\")\n\t}\n\tgpCopyImageSubData = (C.GPCOPYIMAGESUBDATA)(getProcAddr(\"glCopyImageSubData\"))\n\tgpCopyMultiTexImage1DEXT = (C.GPCOPYMULTITEXIMAGE1DEXT)(getProcAddr(\"glCopyMultiTexImage1DEXT\"))\n\tgpCopyMultiTexImage2DEXT = (C.GPCOPYMULTITEXIMAGE2DEXT)(getProcAddr(\"glCopyMultiTexImage2DEXT\"))\n\tgpCopyMultiTexSubImage1DEXT = (C.GPCOPYMULTITEXSUBIMAGE1DEXT)(getProcAddr(\"glCopyMultiTexSubImage1DEXT\"))\n\tgpCopyMultiTexSubImage2DEXT = (C.GPCOPYMULTITEXSUBIMAGE2DEXT)(getProcAddr(\"glCopyMultiTexSubImage2DEXT\"))\n\tgpCopyMultiTexSubImage3DEXT = (C.GPCOPYMULTITEXSUBIMAGE3DEXT)(getProcAddr(\"glCopyMultiTexSubImage3DEXT\"))\n\tgpCopyNamedBufferSubData = (C.GPCOPYNAMEDBUFFERSUBDATA)(getProcAddr(\"glCopyNamedBufferSubData\"))\n\tgpCopyPathNV = (C.GPCOPYPATHNV)(getProcAddr(\"glCopyPathNV\"))\n\tgpCopyTexImage1D = (C.GPCOPYTEXIMAGE1D)(getProcAddr(\"glCopyTexImage1D\"))\n\tif gpCopyTexImage1D == nil {\n\t\treturn errors.New(\"glCopyTexImage1D\")\n\t}\n\tgpCopyTexImage2D = (C.GPCOPYTEXIMAGE2D)(getProcAddr(\"glCopyTexImage2D\"))\n\tif gpCopyTexImage2D == nil {\n\t\treturn errors.New(\"glCopyTexImage2D\")\n\t}\n\tgpCopyTexSubImage1D = (C.GPCOPYTEXSUBIMAGE1D)(getProcAddr(\"glCopyTexSubImage1D\"))\n\tif gpCopyTexSubImage1D == nil {\n\t\treturn errors.New(\"glCopyTexSubImage1D\")\n\t}\n\tgpCopyTexSubImage2D = (C.GPCOPYTEXSUBIMAGE2D)(getProcAddr(\"glCopyTexSubImage2D\"))\n\tif gpCopyTexSubImage2D == nil {\n\t\treturn errors.New(\"glCopyTexSubImage2D\")\n\t}\n\tgpCopyTexSubImage3D = (C.GPCOPYTEXSUBIMAGE3D)(getProcAddr(\"glCopyTexSubImage3D\"))\n\tif gpCopyTexSubImage3D == nil {\n\t\treturn errors.New(\"glCopyTexSubImage3D\")\n\t}\n\tgpCopyTextureImage1DEXT = (C.GPCOPYTEXTUREIMAGE1DEXT)(getProcAddr(\"glCopyTextureImage1DEXT\"))\n\tgpCopyTextureImage2DEXT = (C.GPCOPYTEXTUREIMAGE2DEXT)(getProcAddr(\"glCopyTextureImage2DEXT\"))\n\tgpCopyTextureSubImage1D = (C.GPCOPYTEXTURESUBIMAGE1D)(getProcAddr(\"glCopyTextureSubImage1D\"))\n\tgpCopyTextureSubImage1DEXT = (C.GPCOPYTEXTURESUBIMAGE1DEXT)(getProcAddr(\"glCopyTextureSubImage1DEXT\"))\n\tgpCopyTextureSubImage2D = (C.GPCOPYTEXTURESUBIMAGE2D)(getProcAddr(\"glCopyTextureSubImage2D\"))\n\tgpCopyTextureSubImage2DEXT = (C.GPCOPYTEXTURESUBIMAGE2DEXT)(getProcAddr(\"glCopyTextureSubImage2DEXT\"))\n\tgpCopyTextureSubImage3D = (C.GPCOPYTEXTURESUBIMAGE3D)(getProcAddr(\"glCopyTextureSubImage3D\"))\n\tgpCopyTextureSubImage3DEXT = (C.GPCOPYTEXTURESUBIMAGE3DEXT)(getProcAddr(\"glCopyTextureSubImage3DEXT\"))\n\tgpCoverFillPathInstancedNV = (C.GPCOVERFILLPATHINSTANCEDNV)(getProcAddr(\"glCoverFillPathInstancedNV\"))\n\tgpCoverFillPathNV = (C.GPCOVERFILLPATHNV)(getProcAddr(\"glCoverFillPathNV\"))\n\tgpCoverStrokePathInstancedNV = (C.GPCOVERSTROKEPATHINSTANCEDNV)(getProcAddr(\"glCoverStrokePathInstancedNV\"))\n\tgpCoverStrokePathNV = (C.GPCOVERSTROKEPATHNV)(getProcAddr(\"glCoverStrokePathNV\"))\n\tgpCoverageModulationNV = (C.GPCOVERAGEMODULATIONNV)(getProcAddr(\"glCoverageModulationNV\"))\n\tgpCoverageModulationTableNV = (C.GPCOVERAGEMODULATIONTABLENV)(getProcAddr(\"glCoverageModulationTableNV\"))\n\tgpCreateBuffers = (C.GPCREATEBUFFERS)(getProcAddr(\"glCreateBuffers\"))\n\tgpCreateCommandListsNV = (C.GPCREATECOMMANDLISTSNV)(getProcAddr(\"glCreateCommandListsNV\"))\n\tgpCreateFramebuffers = (C.GPCREATEFRAMEBUFFERS)(getProcAddr(\"glCreateFramebuffers\"))\n\tgpCreatePerfQueryINTEL = (C.GPCREATEPERFQUERYINTEL)(getProcAddr(\"glCreatePerfQueryINTEL\"))\n\tgpCreateProgram = (C.GPCREATEPROGRAM)(getProcAddr(\"glCreateProgram\"))\n\tif gpCreateProgram == nil {\n\t\treturn errors.New(\"glCreateProgram\")\n\t}\n\tgpCreateProgramPipelines = (C.GPCREATEPROGRAMPIPELINES)(getProcAddr(\"glCreateProgramPipelines\"))\n\tgpCreateQueries = (C.GPCREATEQUERIES)(getProcAddr(\"glCreateQueries\"))\n\tgpCreateRenderbuffers = (C.GPCREATERENDERBUFFERS)(getProcAddr(\"glCreateRenderbuffers\"))\n\tgpCreateSamplers = (C.GPCREATESAMPLERS)(getProcAddr(\"glCreateSamplers\"))\n\tgpCreateShader = (C.GPCREATESHADER)(getProcAddr(\"glCreateShader\"))\n\tif gpCreateShader == nil {\n\t\treturn errors.New(\"glCreateShader\")\n\t}\n\tgpCreateShaderProgramEXT = (C.GPCREATESHADERPROGRAMEXT)(getProcAddr(\"glCreateShaderProgramEXT\"))\n\tgpCreateShaderProgramv = (C.GPCREATESHADERPROGRAMV)(getProcAddr(\"glCreateShaderProgramv\"))\n\tif gpCreateShaderProgramv == nil {\n\t\treturn errors.New(\"glCreateShaderProgramv\")\n\t}\n\tgpCreateShaderProgramvEXT = (C.GPCREATESHADERPROGRAMVEXT)(getProcAddr(\"glCreateShaderProgramvEXT\"))\n\tgpCreateStatesNV = (C.GPCREATESTATESNV)(getProcAddr(\"glCreateStatesNV\"))\n\tgpCreateSyncFromCLeventARB = (C.GPCREATESYNCFROMCLEVENTARB)(getProcAddr(\"glCreateSyncFromCLeventARB\"))\n\tgpCreateTextures = (C.GPCREATETEXTURES)(getProcAddr(\"glCreateTextures\"))\n\tgpCreateTransformFeedbacks = (C.GPCREATETRANSFORMFEEDBACKS)(getProcAddr(\"glCreateTransformFeedbacks\"))\n\tgpCreateVertexArrays = (C.GPCREATEVERTEXARRAYS)(getProcAddr(\"glCreateVertexArrays\"))\n\tgpCullFace = (C.GPCULLFACE)(getProcAddr(\"glCullFace\"))\n\tif gpCullFace == nil {\n\t\treturn errors.New(\"glCullFace\")\n\t}\n\tgpDebugMessageCallback = (C.GPDEBUGMESSAGECALLBACK)(getProcAddr(\"glDebugMessageCallback\"))\n\tgpDebugMessageCallbackARB = (C.GPDEBUGMESSAGECALLBACKARB)(getProcAddr(\"glDebugMessageCallbackARB\"))\n\tgpDebugMessageCallbackKHR = (C.GPDEBUGMESSAGECALLBACKKHR)(getProcAddr(\"glDebugMessageCallbackKHR\"))\n\tgpDebugMessageControl = (C.GPDEBUGMESSAGECONTROL)(getProcAddr(\"glDebugMessageControl\"))\n\tgpDebugMessageControlARB = (C.GPDEBUGMESSAGECONTROLARB)(getProcAddr(\"glDebugMessageControlARB\"))\n\tgpDebugMessageControlKHR = (C.GPDEBUGMESSAGECONTROLKHR)(getProcAddr(\"glDebugMessageControlKHR\"))\n\tgpDebugMessageInsert = (C.GPDEBUGMESSAGEINSERT)(getProcAddr(\"glDebugMessageInsert\"))\n\tgpDebugMessageInsertARB = (C.GPDEBUGMESSAGEINSERTARB)(getProcAddr(\"glDebugMessageInsertARB\"))\n\tgpDebugMessageInsertKHR = (C.GPDEBUGMESSAGEINSERTKHR)(getProcAddr(\"glDebugMessageInsertKHR\"))\n\tgpDeleteBuffers = (C.GPDELETEBUFFERS)(getProcAddr(\"glDeleteBuffers\"))\n\tif gpDeleteBuffers == nil {\n\t\treturn errors.New(\"glDeleteBuffers\")\n\t}\n\tgpDeleteCommandListsNV = (C.GPDELETECOMMANDLISTSNV)(getProcAddr(\"glDeleteCommandListsNV\"))\n\tgpDeleteFramebuffers = (C.GPDELETEFRAMEBUFFERS)(getProcAddr(\"glDeleteFramebuffers\"))\n\tif gpDeleteFramebuffers == nil {\n\t\treturn errors.New(\"glDeleteFramebuffers\")\n\t}\n\tgpDeleteNamedStringARB = (C.GPDELETENAMEDSTRINGARB)(getProcAddr(\"glDeleteNamedStringARB\"))\n\tgpDeletePathsNV = (C.GPDELETEPATHSNV)(getProcAddr(\"glDeletePathsNV\"))\n\tgpDeletePerfMonitorsAMD = (C.GPDELETEPERFMONITORSAMD)(getProcAddr(\"glDeletePerfMonitorsAMD\"))\n\tgpDeletePerfQueryINTEL = (C.GPDELETEPERFQUERYINTEL)(getProcAddr(\"glDeletePerfQueryINTEL\"))\n\tgpDeleteProgram = (C.GPDELETEPROGRAM)(getProcAddr(\"glDeleteProgram\"))\n\tif gpDeleteProgram == nil {\n\t\treturn errors.New(\"glDeleteProgram\")\n\t}\n\tgpDeleteProgramPipelines = (C.GPDELETEPROGRAMPIPELINES)(getProcAddr(\"glDeleteProgramPipelines\"))\n\tif gpDeleteProgramPipelines == nil {\n\t\treturn errors.New(\"glDeleteProgramPipelines\")\n\t}\n\tgpDeleteProgramPipelinesEXT = (C.GPDELETEPROGRAMPIPELINESEXT)(getProcAddr(\"glDeleteProgramPipelinesEXT\"))\n\tgpDeleteQueries = (C.GPDELETEQUERIES)(getProcAddr(\"glDeleteQueries\"))\n\tif gpDeleteQueries == nil {\n\t\treturn errors.New(\"glDeleteQueries\")\n\t}\n\tgpDeleteRenderbuffers = (C.GPDELETERENDERBUFFERS)(getProcAddr(\"glDeleteRenderbuffers\"))\n\tif gpDeleteRenderbuffers == nil {\n\t\treturn errors.New(\"glDeleteRenderbuffers\")\n\t}\n\tgpDeleteSamplers = (C.GPDELETESAMPLERS)(getProcAddr(\"glDeleteSamplers\"))\n\tif gpDeleteSamplers == nil {\n\t\treturn errors.New(\"glDeleteSamplers\")\n\t}\n\tgpDeleteShader = (C.GPDELETESHADER)(getProcAddr(\"glDeleteShader\"))\n\tif gpDeleteShader == nil {\n\t\treturn errors.New(\"glDeleteShader\")\n\t}\n\tgpDeleteStatesNV = (C.GPDELETESTATESNV)(getProcAddr(\"glDeleteStatesNV\"))\n\tgpDeleteSync = (C.GPDELETESYNC)(getProcAddr(\"glDeleteSync\"))\n\tif gpDeleteSync == nil {\n\t\treturn errors.New(\"glDeleteSync\")\n\t}\n\tgpDeleteTextures = (C.GPDELETETEXTURES)(getProcAddr(\"glDeleteTextures\"))\n\tif gpDeleteTextures == nil {\n\t\treturn errors.New(\"glDeleteTextures\")\n\t}\n\tgpDeleteTransformFeedbacks = (C.GPDELETETRANSFORMFEEDBACKS)(getProcAddr(\"glDeleteTransformFeedbacks\"))\n\tif gpDeleteTransformFeedbacks == nil {\n\t\treturn errors.New(\"glDeleteTransformFeedbacks\")\n\t}\n\tgpDeleteVertexArrays = (C.GPDELETEVERTEXARRAYS)(getProcAddr(\"glDeleteVertexArrays\"))\n\tif gpDeleteVertexArrays == nil {\n\t\treturn errors.New(\"glDeleteVertexArrays\")\n\t}\n\tgpDepthBoundsdNV = (C.GPDEPTHBOUNDSDNV)(getProcAddr(\"glDepthBoundsdNV\"))\n\tgpDepthFunc = (C.GPDEPTHFUNC)(getProcAddr(\"glDepthFunc\"))\n\tif gpDepthFunc == nil {\n\t\treturn errors.New(\"glDepthFunc\")\n\t}\n\tgpDepthMask = (C.GPDEPTHMASK)(getProcAddr(\"glDepthMask\"))\n\tif gpDepthMask == nil {\n\t\treturn errors.New(\"glDepthMask\")\n\t}\n\tgpDepthRange = (C.GPDEPTHRANGE)(getProcAddr(\"glDepthRange\"))\n\tif gpDepthRange == nil {\n\t\treturn errors.New(\"glDepthRange\")\n\t}\n\tgpDepthRangeArraydvNV = (C.GPDEPTHRANGEARRAYDVNV)(getProcAddr(\"glDepthRangeArraydvNV\"))\n\tgpDepthRangeArrayv = (C.GPDEPTHRANGEARRAYV)(getProcAddr(\"glDepthRangeArrayv\"))\n\tif gpDepthRangeArrayv == nil {\n\t\treturn errors.New(\"glDepthRangeArrayv\")\n\t}\n\tgpDepthRangeIndexed = (C.GPDEPTHRANGEINDEXED)(getProcAddr(\"glDepthRangeIndexed\"))\n\tif gpDepthRangeIndexed == nil {\n\t\treturn errors.New(\"glDepthRangeIndexed\")\n\t}\n\tgpDepthRangeIndexeddNV = (C.GPDEPTHRANGEINDEXEDDNV)(getProcAddr(\"glDepthRangeIndexeddNV\"))\n\tgpDepthRangedNV = (C.GPDEPTHRANGEDNV)(getProcAddr(\"glDepthRangedNV\"))\n\tgpDepthRangef = (C.GPDEPTHRANGEF)(getProcAddr(\"glDepthRangef\"))\n\tif gpDepthRangef == nil {\n\t\treturn errors.New(\"glDepthRangef\")\n\t}\n\tgpDetachShader = (C.GPDETACHSHADER)(getProcAddr(\"glDetachShader\"))\n\tif gpDetachShader == nil {\n\t\treturn errors.New(\"glDetachShader\")\n\t}\n\tgpDisable = (C.GPDISABLE)(getProcAddr(\"glDisable\"))\n\tif gpDisable == nil {\n\t\treturn errors.New(\"glDisable\")\n\t}\n\tgpDisableClientStateIndexedEXT = (C.GPDISABLECLIENTSTATEINDEXEDEXT)(getProcAddr(\"glDisableClientStateIndexedEXT\"))\n\tgpDisableClientStateiEXT = (C.GPDISABLECLIENTSTATEIEXT)(getProcAddr(\"glDisableClientStateiEXT\"))\n\tgpDisableIndexedEXT = (C.GPDISABLEINDEXEDEXT)(getProcAddr(\"glDisableIndexedEXT\"))\n\tgpDisableVertexArrayAttrib = (C.GPDISABLEVERTEXARRAYATTRIB)(getProcAddr(\"glDisableVertexArrayAttrib\"))\n\tgpDisableVertexArrayAttribEXT = (C.GPDISABLEVERTEXARRAYATTRIBEXT)(getProcAddr(\"glDisableVertexArrayAttribEXT\"))\n\tgpDisableVertexArrayEXT = (C.GPDISABLEVERTEXARRAYEXT)(getProcAddr(\"glDisableVertexArrayEXT\"))\n\tgpDisableVertexAttribArray = (C.GPDISABLEVERTEXATTRIBARRAY)(getProcAddr(\"glDisableVertexAttribArray\"))\n\tif gpDisableVertexAttribArray == nil {\n\t\treturn errors.New(\"glDisableVertexAttribArray\")\n\t}\n\tgpDisablei = (C.GPDISABLEI)(getProcAddr(\"glDisablei\"))\n\tif gpDisablei == nil {\n\t\treturn errors.New(\"glDisablei\")\n\t}\n\tgpDispatchCompute = (C.GPDISPATCHCOMPUTE)(getProcAddr(\"glDispatchCompute\"))\n\tgpDispatchComputeGroupSizeARB = (C.GPDISPATCHCOMPUTEGROUPSIZEARB)(getProcAddr(\"glDispatchComputeGroupSizeARB\"))\n\tgpDispatchComputeIndirect = (C.GPDISPATCHCOMPUTEINDIRECT)(getProcAddr(\"glDispatchComputeIndirect\"))\n\tgpDrawArrays = (C.GPDRAWARRAYS)(getProcAddr(\"glDrawArrays\"))\n\tif gpDrawArrays == nil {\n\t\treturn errors.New(\"glDrawArrays\")\n\t}\n\tgpDrawArraysIndirect = (C.GPDRAWARRAYSINDIRECT)(getProcAddr(\"glDrawArraysIndirect\"))\n\tif gpDrawArraysIndirect == nil {\n\t\treturn errors.New(\"glDrawArraysIndirect\")\n\t}\n\tgpDrawArraysInstanced = (C.GPDRAWARRAYSINSTANCED)(getProcAddr(\"glDrawArraysInstanced\"))\n\tif gpDrawArraysInstanced == nil {\n\t\treturn errors.New(\"glDrawArraysInstanced\")\n\t}\n\tgpDrawArraysInstancedARB = (C.GPDRAWARRAYSINSTANCEDARB)(getProcAddr(\"glDrawArraysInstancedARB\"))\n\tgpDrawArraysInstancedBaseInstance = (C.GPDRAWARRAYSINSTANCEDBASEINSTANCE)(getProcAddr(\"glDrawArraysInstancedBaseInstance\"))\n\tif gpDrawArraysInstancedBaseInstance == nil {\n\t\treturn errors.New(\"glDrawArraysInstancedBaseInstance\")\n\t}\n\tgpDrawArraysInstancedEXT = (C.GPDRAWARRAYSINSTANCEDEXT)(getProcAddr(\"glDrawArraysInstancedEXT\"))\n\tgpDrawBuffer = (C.GPDRAWBUFFER)(getProcAddr(\"glDrawBuffer\"))\n\tif gpDrawBuffer == nil {\n\t\treturn errors.New(\"glDrawBuffer\")\n\t}\n\tgpDrawBuffers = (C.GPDRAWBUFFERS)(getProcAddr(\"glDrawBuffers\"))\n\tif gpDrawBuffers == nil {\n\t\treturn errors.New(\"glDrawBuffers\")\n\t}\n\tgpDrawCommandsAddressNV = (C.GPDRAWCOMMANDSADDRESSNV)(getProcAddr(\"glDrawCommandsAddressNV\"))\n\tgpDrawCommandsNV = (C.GPDRAWCOMMANDSNV)(getProcAddr(\"glDrawCommandsNV\"))\n\tgpDrawCommandsStatesAddressNV = (C.GPDRAWCOMMANDSSTATESADDRESSNV)(getProcAddr(\"glDrawCommandsStatesAddressNV\"))\n\tgpDrawCommandsStatesNV = (C.GPDRAWCOMMANDSSTATESNV)(getProcAddr(\"glDrawCommandsStatesNV\"))\n\tgpDrawElements = (C.GPDRAWELEMENTS)(getProcAddr(\"glDrawElements\"))\n\tif gpDrawElements == nil {\n\t\treturn errors.New(\"glDrawElements\")\n\t}\n\tgpDrawElementsBaseVertex = (C.GPDRAWELEMENTSBASEVERTEX)(getProcAddr(\"glDrawElementsBaseVertex\"))\n\tif gpDrawElementsBaseVertex == nil {\n\t\treturn errors.New(\"glDrawElementsBaseVertex\")\n\t}\n\tgpDrawElementsIndirect = (C.GPDRAWELEMENTSINDIRECT)(getProcAddr(\"glDrawElementsIndirect\"))\n\tif gpDrawElementsIndirect == nil {\n\t\treturn errors.New(\"glDrawElementsIndirect\")\n\t}\n\tgpDrawElementsInstanced = (C.GPDRAWELEMENTSINSTANCED)(getProcAddr(\"glDrawElementsInstanced\"))\n\tif gpDrawElementsInstanced == nil {\n\t\treturn errors.New(\"glDrawElementsInstanced\")\n\t}\n\tgpDrawElementsInstancedARB = (C.GPDRAWELEMENTSINSTANCEDARB)(getProcAddr(\"glDrawElementsInstancedARB\"))\n\tgpDrawElementsInstancedBaseInstance = (C.GPDRAWELEMENTSINSTANCEDBASEINSTANCE)(getProcAddr(\"glDrawElementsInstancedBaseInstance\"))\n\tif gpDrawElementsInstancedBaseInstance == nil {\n\t\treturn errors.New(\"glDrawElementsInstancedBaseInstance\")\n\t}\n\tgpDrawElementsInstancedBaseVertex = (C.GPDRAWELEMENTSINSTANCEDBASEVERTEX)(getProcAddr(\"glDrawElementsInstancedBaseVertex\"))\n\tif gpDrawElementsInstancedBaseVertex == nil {\n\t\treturn errors.New(\"glDrawElementsInstancedBaseVertex\")\n\t}\n\tgpDrawElementsInstancedBaseVertexBaseInstance = (C.GPDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCE)(getProcAddr(\"glDrawElementsInstancedBaseVertexBaseInstance\"))\n\tif gpDrawElementsInstancedBaseVertexBaseInstance == nil {\n\t\treturn errors.New(\"glDrawElementsInstancedBaseVertexBaseInstance\")\n\t}\n\tgpDrawElementsInstancedEXT = (C.GPDRAWELEMENTSINSTANCEDEXT)(getProcAddr(\"glDrawElementsInstancedEXT\"))\n\tgpDrawMeshTasksIndirectNV = (C.GPDRAWMESHTASKSINDIRECTNV)(getProcAddr(\"glDrawMeshTasksIndirectNV\"))\n\tgpDrawMeshTasksNV = (C.GPDRAWMESHTASKSNV)(getProcAddr(\"glDrawMeshTasksNV\"))\n\tgpDrawRangeElements = (C.GPDRAWRANGEELEMENTS)(getProcAddr(\"glDrawRangeElements\"))\n\tif gpDrawRangeElements == nil {\n\t\treturn errors.New(\"glDrawRangeElements\")\n\t}\n\tgpDrawRangeElementsBaseVertex = (C.GPDRAWRANGEELEMENTSBASEVERTEX)(getProcAddr(\"glDrawRangeElementsBaseVertex\"))\n\tif gpDrawRangeElementsBaseVertex == nil {\n\t\treturn errors.New(\"glDrawRangeElementsBaseVertex\")\n\t}\n\tgpDrawTransformFeedback = (C.GPDRAWTRANSFORMFEEDBACK)(getProcAddr(\"glDrawTransformFeedback\"))\n\tif gpDrawTransformFeedback == nil {\n\t\treturn errors.New(\"glDrawTransformFeedback\")\n\t}\n\tgpDrawTransformFeedbackInstanced = (C.GPDRAWTRANSFORMFEEDBACKINSTANCED)(getProcAddr(\"glDrawTransformFeedbackInstanced\"))\n\tif gpDrawTransformFeedbackInstanced == nil {\n\t\treturn errors.New(\"glDrawTransformFeedbackInstanced\")\n\t}\n\tgpDrawTransformFeedbackStream = (C.GPDRAWTRANSFORMFEEDBACKSTREAM)(getProcAddr(\"glDrawTransformFeedbackStream\"))\n\tif gpDrawTransformFeedbackStream == nil {\n\t\treturn errors.New(\"glDrawTransformFeedbackStream\")\n\t}\n\tgpDrawTransformFeedbackStreamInstanced = (C.GPDRAWTRANSFORMFEEDBACKSTREAMINSTANCED)(getProcAddr(\"glDrawTransformFeedbackStreamInstanced\"))\n\tif gpDrawTransformFeedbackStreamInstanced == nil {\n\t\treturn errors.New(\"glDrawTransformFeedbackStreamInstanced\")\n\t}\n\tgpDrawVkImageNV = (C.GPDRAWVKIMAGENV)(getProcAddr(\"glDrawVkImageNV\"))\n\tgpEGLImageTargetTexStorageEXT = (C.GPEGLIMAGETARGETTEXSTORAGEEXT)(getProcAddr(\"glEGLImageTargetTexStorageEXT\"))\n\tgpEGLImageTargetTextureStorageEXT = (C.GPEGLIMAGETARGETTEXTURESTORAGEEXT)(getProcAddr(\"glEGLImageTargetTextureStorageEXT\"))\n\tgpEdgeFlagFormatNV = (C.GPEDGEFLAGFORMATNV)(getProcAddr(\"glEdgeFlagFormatNV\"))\n\tgpEnable = (C.GPENABLE)(getProcAddr(\"glEnable\"))\n\tif gpEnable == nil {\n\t\treturn errors.New(\"glEnable\")\n\t}\n\tgpEnableClientStateIndexedEXT = (C.GPENABLECLIENTSTATEINDEXEDEXT)(getProcAddr(\"glEnableClientStateIndexedEXT\"))\n\tgpEnableClientStateiEXT = (C.GPENABLECLIENTSTATEIEXT)(getProcAddr(\"glEnableClientStateiEXT\"))\n\tgpEnableIndexedEXT = (C.GPENABLEINDEXEDEXT)(getProcAddr(\"glEnableIndexedEXT\"))\n\tgpEnableVertexArrayAttrib = (C.GPENABLEVERTEXARRAYATTRIB)(getProcAddr(\"glEnableVertexArrayAttrib\"))\n\tgpEnableVertexArrayAttribEXT = (C.GPENABLEVERTEXARRAYATTRIBEXT)(getProcAddr(\"glEnableVertexArrayAttribEXT\"))\n\tgpEnableVertexArrayEXT = (C.GPENABLEVERTEXARRAYEXT)(getProcAddr(\"glEnableVertexArrayEXT\"))\n\tgpEnableVertexAttribArray = (C.GPENABLEVERTEXATTRIBARRAY)(getProcAddr(\"glEnableVertexAttribArray\"))\n\tif gpEnableVertexAttribArray == nil {\n\t\treturn errors.New(\"glEnableVertexAttribArray\")\n\t}\n\tgpEnablei = (C.GPENABLEI)(getProcAddr(\"glEnablei\"))\n\tif gpEnablei == nil {\n\t\treturn errors.New(\"glEnablei\")\n\t}\n\tgpEndConditionalRender = (C.GPENDCONDITIONALRENDER)(getProcAddr(\"glEndConditionalRender\"))\n\tif gpEndConditionalRender == nil {\n\t\treturn errors.New(\"glEndConditionalRender\")\n\t}\n\tgpEndConditionalRenderNV = (C.GPENDCONDITIONALRENDERNV)(getProcAddr(\"glEndConditionalRenderNV\"))\n\tgpEndPerfMonitorAMD = (C.GPENDPERFMONITORAMD)(getProcAddr(\"glEndPerfMonitorAMD\"))\n\tgpEndPerfQueryINTEL = (C.GPENDPERFQUERYINTEL)(getProcAddr(\"glEndPerfQueryINTEL\"))\n\tgpEndQuery = (C.GPENDQUERY)(getProcAddr(\"glEndQuery\"))\n\tif gpEndQuery == nil {\n\t\treturn errors.New(\"glEndQuery\")\n\t}\n\tgpEndQueryIndexed = (C.GPENDQUERYINDEXED)(getProcAddr(\"glEndQueryIndexed\"))\n\tif gpEndQueryIndexed == nil {\n\t\treturn errors.New(\"glEndQueryIndexed\")\n\t}\n\tgpEndTransformFeedback = (C.GPENDTRANSFORMFEEDBACK)(getProcAddr(\"glEndTransformFeedback\"))\n\tif gpEndTransformFeedback == nil {\n\t\treturn errors.New(\"glEndTransformFeedback\")\n\t}\n\tgpEvaluateDepthValuesARB = (C.GPEVALUATEDEPTHVALUESARB)(getProcAddr(\"glEvaluateDepthValuesARB\"))\n\tgpFenceSync = (C.GPFENCESYNC)(getProcAddr(\"glFenceSync\"))\n\tif gpFenceSync == nil {\n\t\treturn errors.New(\"glFenceSync\")\n\t}\n\tgpFinish = (C.GPFINISH)(getProcAddr(\"glFinish\"))\n\tif gpFinish == nil {\n\t\treturn errors.New(\"glFinish\")\n\t}\n\tgpFlush = (C.GPFLUSH)(getProcAddr(\"glFlush\"))\n\tif gpFlush == nil {\n\t\treturn errors.New(\"glFlush\")\n\t}\n\tgpFlushMappedBufferRange = (C.GPFLUSHMAPPEDBUFFERRANGE)(getProcAddr(\"glFlushMappedBufferRange\"))\n\tif gpFlushMappedBufferRange == nil {\n\t\treturn errors.New(\"glFlushMappedBufferRange\")\n\t}\n\tgpFlushMappedNamedBufferRange = (C.GPFLUSHMAPPEDNAMEDBUFFERRANGE)(getProcAddr(\"glFlushMappedNamedBufferRange\"))\n\tgpFlushMappedNamedBufferRangeEXT = (C.GPFLUSHMAPPEDNAMEDBUFFERRANGEEXT)(getProcAddr(\"glFlushMappedNamedBufferRangeEXT\"))\n\tgpFogCoordFormatNV = (C.GPFOGCOORDFORMATNV)(getProcAddr(\"glFogCoordFormatNV\"))\n\tgpFragmentCoverageColorNV = (C.GPFRAGMENTCOVERAGECOLORNV)(getProcAddr(\"glFragmentCoverageColorNV\"))\n\tgpFramebufferDrawBufferEXT = (C.GPFRAMEBUFFERDRAWBUFFEREXT)(getProcAddr(\"glFramebufferDrawBufferEXT\"))\n\tgpFramebufferDrawBuffersEXT = (C.GPFRAMEBUFFERDRAWBUFFERSEXT)(getProcAddr(\"glFramebufferDrawBuffersEXT\"))\n\tgpFramebufferFetchBarrierEXT = (C.GPFRAMEBUFFERFETCHBARRIEREXT)(getProcAddr(\"glFramebufferFetchBarrierEXT\"))\n\tgpFramebufferParameteri = (C.GPFRAMEBUFFERPARAMETERI)(getProcAddr(\"glFramebufferParameteri\"))\n\tgpFramebufferParameteriMESA = (C.GPFRAMEBUFFERPARAMETERIMESA)(getProcAddr(\"glFramebufferParameteriMESA\"))\n\tgpFramebufferReadBufferEXT = (C.GPFRAMEBUFFERREADBUFFEREXT)(getProcAddr(\"glFramebufferReadBufferEXT\"))\n\tgpFramebufferRenderbuffer = (C.GPFRAMEBUFFERRENDERBUFFER)(getProcAddr(\"glFramebufferRenderbuffer\"))\n\tif gpFramebufferRenderbuffer == nil {\n\t\treturn errors.New(\"glFramebufferRenderbuffer\")\n\t}\n\tgpFramebufferSampleLocationsfvARB = (C.GPFRAMEBUFFERSAMPLELOCATIONSFVARB)(getProcAddr(\"glFramebufferSampleLocationsfvARB\"))\n\tgpFramebufferSampleLocationsfvNV = (C.GPFRAMEBUFFERSAMPLELOCATIONSFVNV)(getProcAddr(\"glFramebufferSampleLocationsfvNV\"))\n\tgpFramebufferTexture = (C.GPFRAMEBUFFERTEXTURE)(getProcAddr(\"glFramebufferTexture\"))\n\tif gpFramebufferTexture == nil {\n\t\treturn errors.New(\"glFramebufferTexture\")\n\t}\n\tgpFramebufferTexture1D = (C.GPFRAMEBUFFERTEXTURE1D)(getProcAddr(\"glFramebufferTexture1D\"))\n\tif gpFramebufferTexture1D == nil {\n\t\treturn errors.New(\"glFramebufferTexture1D\")\n\t}\n\tgpFramebufferTexture2D = (C.GPFRAMEBUFFERTEXTURE2D)(getProcAddr(\"glFramebufferTexture2D\"))\n\tif gpFramebufferTexture2D == nil {\n\t\treturn errors.New(\"glFramebufferTexture2D\")\n\t}\n\tgpFramebufferTexture3D = (C.GPFRAMEBUFFERTEXTURE3D)(getProcAddr(\"glFramebufferTexture3D\"))\n\tif gpFramebufferTexture3D == nil {\n\t\treturn errors.New(\"glFramebufferTexture3D\")\n\t}\n\tgpFramebufferTextureARB = (C.GPFRAMEBUFFERTEXTUREARB)(getProcAddr(\"glFramebufferTextureARB\"))\n\tgpFramebufferTextureFaceARB = (C.GPFRAMEBUFFERTEXTUREFACEARB)(getProcAddr(\"glFramebufferTextureFaceARB\"))\n\tgpFramebufferTextureLayer = (C.GPFRAMEBUFFERTEXTURELAYER)(getProcAddr(\"glFramebufferTextureLayer\"))\n\tif gpFramebufferTextureLayer == nil {\n\t\treturn errors.New(\"glFramebufferTextureLayer\")\n\t}\n\tgpFramebufferTextureLayerARB = (C.GPFRAMEBUFFERTEXTURELAYERARB)(getProcAddr(\"glFramebufferTextureLayerARB\"))\n\tgpFramebufferTextureMultiviewOVR = (C.GPFRAMEBUFFERTEXTUREMULTIVIEWOVR)(getProcAddr(\"glFramebufferTextureMultiviewOVR\"))\n\tgpFrontFace = (C.GPFRONTFACE)(getProcAddr(\"glFrontFace\"))\n\tif gpFrontFace == nil {\n\t\treturn errors.New(\"glFrontFace\")\n\t}\n\tgpGenBuffers = (C.GPGENBUFFERS)(getProcAddr(\"glGenBuffers\"))\n\tif gpGenBuffers == nil {\n\t\treturn errors.New(\"glGenBuffers\")\n\t}\n\tgpGenFramebuffers = (C.GPGENFRAMEBUFFERS)(getProcAddr(\"glGenFramebuffers\"))\n\tif gpGenFramebuffers == nil {\n\t\treturn errors.New(\"glGenFramebuffers\")\n\t}\n\tgpGenPathsNV = (C.GPGENPATHSNV)(getProcAddr(\"glGenPathsNV\"))\n\tgpGenPerfMonitorsAMD = (C.GPGENPERFMONITORSAMD)(getProcAddr(\"glGenPerfMonitorsAMD\"))\n\tgpGenProgramPipelines = (C.GPGENPROGRAMPIPELINES)(getProcAddr(\"glGenProgramPipelines\"))\n\tif gpGenProgramPipelines == nil {\n\t\treturn errors.New(\"glGenProgramPipelines\")\n\t}\n\tgpGenProgramPipelinesEXT = (C.GPGENPROGRAMPIPELINESEXT)(getProcAddr(\"glGenProgramPipelinesEXT\"))\n\tgpGenQueries = (C.GPGENQUERIES)(getProcAddr(\"glGenQueries\"))\n\tif gpGenQueries == nil {\n\t\treturn errors.New(\"glGenQueries\")\n\t}\n\tgpGenRenderbuffers = (C.GPGENRENDERBUFFERS)(getProcAddr(\"glGenRenderbuffers\"))\n\tif gpGenRenderbuffers == nil {\n\t\treturn errors.New(\"glGenRenderbuffers\")\n\t}\n\tgpGenSamplers = (C.GPGENSAMPLERS)(getProcAddr(\"glGenSamplers\"))\n\tif gpGenSamplers == nil {\n\t\treturn errors.New(\"glGenSamplers\")\n\t}\n\tgpGenTextures = (C.GPGENTEXTURES)(getProcAddr(\"glGenTextures\"))\n\tif gpGenTextures == nil {\n\t\treturn errors.New(\"glGenTextures\")\n\t}\n\tgpGenTransformFeedbacks = (C.GPGENTRANSFORMFEEDBACKS)(getProcAddr(\"glGenTransformFeedbacks\"))\n\tif gpGenTransformFeedbacks == nil {\n\t\treturn errors.New(\"glGenTransformFeedbacks\")\n\t}\n\tgpGenVertexArrays = (C.GPGENVERTEXARRAYS)(getProcAddr(\"glGenVertexArrays\"))\n\tif gpGenVertexArrays == nil {\n\t\treturn errors.New(\"glGenVertexArrays\")\n\t}\n\tgpGenerateMipmap = (C.GPGENERATEMIPMAP)(getProcAddr(\"glGenerateMipmap\"))\n\tif gpGenerateMipmap == nil {\n\t\treturn errors.New(\"glGenerateMipmap\")\n\t}\n\tgpGenerateMultiTexMipmapEXT = (C.GPGENERATEMULTITEXMIPMAPEXT)(getProcAddr(\"glGenerateMultiTexMipmapEXT\"))\n\tgpGenerateTextureMipmap = (C.GPGENERATETEXTUREMIPMAP)(getProcAddr(\"glGenerateTextureMipmap\"))\n\tgpGenerateTextureMipmapEXT = (C.GPGENERATETEXTUREMIPMAPEXT)(getProcAddr(\"glGenerateTextureMipmapEXT\"))\n\tgpGetActiveAtomicCounterBufferiv = (C.GPGETACTIVEATOMICCOUNTERBUFFERIV)(getProcAddr(\"glGetActiveAtomicCounterBufferiv\"))\n\tif gpGetActiveAtomicCounterBufferiv == nil {\n\t\treturn errors.New(\"glGetActiveAtomicCounterBufferiv\")\n\t}\n\tgpGetActiveAttrib = (C.GPGETACTIVEATTRIB)(getProcAddr(\"glGetActiveAttrib\"))\n\tif gpGetActiveAttrib == nil {\n\t\treturn errors.New(\"glGetActiveAttrib\")\n\t}\n\tgpGetActiveSubroutineName = (C.GPGETACTIVESUBROUTINENAME)(getProcAddr(\"glGetActiveSubroutineName\"))\n\tif gpGetActiveSubroutineName == nil {\n\t\treturn errors.New(\"glGetActiveSubroutineName\")\n\t}\n\tgpGetActiveSubroutineUniformName = (C.GPGETACTIVESUBROUTINEUNIFORMNAME)(getProcAddr(\"glGetActiveSubroutineUniformName\"))\n\tif gpGetActiveSubroutineUniformName == nil {\n\t\treturn errors.New(\"glGetActiveSubroutineUniformName\")\n\t}\n\tgpGetActiveSubroutineUniformiv = (C.GPGETACTIVESUBROUTINEUNIFORMIV)(getProcAddr(\"glGetActiveSubroutineUniformiv\"))\n\tif gpGetActiveSubroutineUniformiv == nil {\n\t\treturn errors.New(\"glGetActiveSubroutineUniformiv\")\n\t}\n\tgpGetActiveUniform = (C.GPGETACTIVEUNIFORM)(getProcAddr(\"glGetActiveUniform\"))\n\tif gpGetActiveUniform == nil {\n\t\treturn errors.New(\"glGetActiveUniform\")\n\t}\n\tgpGetActiveUniformBlockName = (C.GPGETACTIVEUNIFORMBLOCKNAME)(getProcAddr(\"glGetActiveUniformBlockName\"))\n\tif gpGetActiveUniformBlockName == nil {\n\t\treturn errors.New(\"glGetActiveUniformBlockName\")\n\t}\n\tgpGetActiveUniformBlockiv = (C.GPGETACTIVEUNIFORMBLOCKIV)(getProcAddr(\"glGetActiveUniformBlockiv\"))\n\tif gpGetActiveUniformBlockiv == nil {\n\t\treturn errors.New(\"glGetActiveUniformBlockiv\")\n\t}\n\tgpGetActiveUniformName = (C.GPGETACTIVEUNIFORMNAME)(getProcAddr(\"glGetActiveUniformName\"))\n\tif gpGetActiveUniformName == nil {\n\t\treturn errors.New(\"glGetActiveUniformName\")\n\t}\n\tgpGetActiveUniformsiv = (C.GPGETACTIVEUNIFORMSIV)(getProcAddr(\"glGetActiveUniformsiv\"))\n\tif gpGetActiveUniformsiv == nil {\n\t\treturn errors.New(\"glGetActiveUniformsiv\")\n\t}\n\tgpGetAttachedShaders = (C.GPGETATTACHEDSHADERS)(getProcAddr(\"glGetAttachedShaders\"))\n\tif gpGetAttachedShaders == nil {\n\t\treturn errors.New(\"glGetAttachedShaders\")\n\t}\n\tgpGetAttribLocation = (C.GPGETATTRIBLOCATION)(getProcAddr(\"glGetAttribLocation\"))\n\tif gpGetAttribLocation == nil {\n\t\treturn errors.New(\"glGetAttribLocation\")\n\t}\n\tgpGetBooleanIndexedvEXT = (C.GPGETBOOLEANINDEXEDVEXT)(getProcAddr(\"glGetBooleanIndexedvEXT\"))\n\tgpGetBooleani_v = (C.GPGETBOOLEANI_V)(getProcAddr(\"glGetBooleani_v\"))\n\tif gpGetBooleani_v == nil {\n\t\treturn errors.New(\"glGetBooleani_v\")\n\t}\n\tgpGetBooleanv = (C.GPGETBOOLEANV)(getProcAddr(\"glGetBooleanv\"))\n\tif gpGetBooleanv == nil {\n\t\treturn errors.New(\"glGetBooleanv\")\n\t}\n\tgpGetBufferParameteri64v = (C.GPGETBUFFERPARAMETERI64V)(getProcAddr(\"glGetBufferParameteri64v\"))\n\tif gpGetBufferParameteri64v == nil {\n\t\treturn errors.New(\"glGetBufferParameteri64v\")\n\t}\n\tgpGetBufferParameteriv = (C.GPGETBUFFERPARAMETERIV)(getProcAddr(\"glGetBufferParameteriv\"))\n\tif gpGetBufferParameteriv == nil {\n\t\treturn errors.New(\"glGetBufferParameteriv\")\n\t}\n\tgpGetBufferParameterui64vNV = (C.GPGETBUFFERPARAMETERUI64VNV)(getProcAddr(\"glGetBufferParameterui64vNV\"))\n\tgpGetBufferPointerv = (C.GPGETBUFFERPOINTERV)(getProcAddr(\"glGetBufferPointerv\"))\n\tif gpGetBufferPointerv == nil {\n\t\treturn errors.New(\"glGetBufferPointerv\")\n\t}\n\tgpGetBufferSubData = (C.GPGETBUFFERSUBDATA)(getProcAddr(\"glGetBufferSubData\"))\n\tif gpGetBufferSubData == nil {\n\t\treturn errors.New(\"glGetBufferSubData\")\n\t}\n\tgpGetCommandHeaderNV = (C.GPGETCOMMANDHEADERNV)(getProcAddr(\"glGetCommandHeaderNV\"))\n\tgpGetCompressedMultiTexImageEXT = (C.GPGETCOMPRESSEDMULTITEXIMAGEEXT)(getProcAddr(\"glGetCompressedMultiTexImageEXT\"))\n\tgpGetCompressedTexImage = (C.GPGETCOMPRESSEDTEXIMAGE)(getProcAddr(\"glGetCompressedTexImage\"))\n\tif gpGetCompressedTexImage == nil {\n\t\treturn errors.New(\"glGetCompressedTexImage\")\n\t}\n\tgpGetCompressedTextureImage = (C.GPGETCOMPRESSEDTEXTUREIMAGE)(getProcAddr(\"glGetCompressedTextureImage\"))\n\tgpGetCompressedTextureImageEXT = (C.GPGETCOMPRESSEDTEXTUREIMAGEEXT)(getProcAddr(\"glGetCompressedTextureImageEXT\"))\n\tgpGetCompressedTextureSubImage = (C.GPGETCOMPRESSEDTEXTURESUBIMAGE)(getProcAddr(\"glGetCompressedTextureSubImage\"))\n\tgpGetCoverageModulationTableNV = (C.GPGETCOVERAGEMODULATIONTABLENV)(getProcAddr(\"glGetCoverageModulationTableNV\"))\n\tgpGetDebugMessageLog = (C.GPGETDEBUGMESSAGELOG)(getProcAddr(\"glGetDebugMessageLog\"))\n\tgpGetDebugMessageLogARB = (C.GPGETDEBUGMESSAGELOGARB)(getProcAddr(\"glGetDebugMessageLogARB\"))\n\tgpGetDebugMessageLogKHR = (C.GPGETDEBUGMESSAGELOGKHR)(getProcAddr(\"glGetDebugMessageLogKHR\"))\n\tgpGetDoubleIndexedvEXT = (C.GPGETDOUBLEINDEXEDVEXT)(getProcAddr(\"glGetDoubleIndexedvEXT\"))\n\tgpGetDoublei_v = (C.GPGETDOUBLEI_V)(getProcAddr(\"glGetDoublei_v\"))\n\tif gpGetDoublei_v == nil {\n\t\treturn errors.New(\"glGetDoublei_v\")\n\t}\n\tgpGetDoublei_vEXT = (C.GPGETDOUBLEI_VEXT)(getProcAddr(\"glGetDoublei_vEXT\"))\n\tgpGetDoublev = (C.GPGETDOUBLEV)(getProcAddr(\"glGetDoublev\"))\n\tif gpGetDoublev == nil {\n\t\treturn errors.New(\"glGetDoublev\")\n\t}\n\tgpGetError = (C.GPGETERROR)(getProcAddr(\"glGetError\"))\n\tif gpGetError == nil {\n\t\treturn errors.New(\"glGetError\")\n\t}\n\tgpGetFirstPerfQueryIdINTEL = (C.GPGETFIRSTPERFQUERYIDINTEL)(getProcAddr(\"glGetFirstPerfQueryIdINTEL\"))\n\tgpGetFloatIndexedvEXT = (C.GPGETFLOATINDEXEDVEXT)(getProcAddr(\"glGetFloatIndexedvEXT\"))\n\tgpGetFloati_v = (C.GPGETFLOATI_V)(getProcAddr(\"glGetFloati_v\"))\n\tif gpGetFloati_v == nil {\n\t\treturn errors.New(\"glGetFloati_v\")\n\t}\n\tgpGetFloati_vEXT = (C.GPGETFLOATI_VEXT)(getProcAddr(\"glGetFloati_vEXT\"))\n\tgpGetFloatv = (C.GPGETFLOATV)(getProcAddr(\"glGetFloatv\"))\n\tif gpGetFloatv == nil {\n\t\treturn errors.New(\"glGetFloatv\")\n\t}\n\tgpGetFragDataIndex = (C.GPGETFRAGDATAINDEX)(getProcAddr(\"glGetFragDataIndex\"))\n\tif gpGetFragDataIndex == nil {\n\t\treturn errors.New(\"glGetFragDataIndex\")\n\t}\n\tgpGetFragDataLocation = (C.GPGETFRAGDATALOCATION)(getProcAddr(\"glGetFragDataLocation\"))\n\tif gpGetFragDataLocation == nil {\n\t\treturn errors.New(\"glGetFragDataLocation\")\n\t}\n\tgpGetFramebufferAttachmentParameteriv = (C.GPGETFRAMEBUFFERATTACHMENTPARAMETERIV)(getProcAddr(\"glGetFramebufferAttachmentParameteriv\"))\n\tif gpGetFramebufferAttachmentParameteriv == nil {\n\t\treturn errors.New(\"glGetFramebufferAttachmentParameteriv\")\n\t}\n\tgpGetFramebufferParameteriv = (C.GPGETFRAMEBUFFERPARAMETERIV)(getProcAddr(\"glGetFramebufferParameteriv\"))\n\tgpGetFramebufferParameterivEXT = (C.GPGETFRAMEBUFFERPARAMETERIVEXT)(getProcAddr(\"glGetFramebufferParameterivEXT\"))\n\tgpGetFramebufferParameterivMESA = (C.GPGETFRAMEBUFFERPARAMETERIVMESA)(getProcAddr(\"glGetFramebufferParameterivMESA\"))\n\tgpGetGraphicsResetStatus = (C.GPGETGRAPHICSRESETSTATUS)(getProcAddr(\"glGetGraphicsResetStatus\"))\n\tgpGetGraphicsResetStatusARB = (C.GPGETGRAPHICSRESETSTATUSARB)(getProcAddr(\"glGetGraphicsResetStatusARB\"))\n\tgpGetGraphicsResetStatusKHR = (C.GPGETGRAPHICSRESETSTATUSKHR)(getProcAddr(\"glGetGraphicsResetStatusKHR\"))\n\tgpGetImageHandleARB = (C.GPGETIMAGEHANDLEARB)(getProcAddr(\"glGetImageHandleARB\"))\n\tgpGetImageHandleNV = (C.GPGETIMAGEHANDLENV)(getProcAddr(\"glGetImageHandleNV\"))\n\tgpGetInteger64i_v = (C.GPGETINTEGER64I_V)(getProcAddr(\"glGetInteger64i_v\"))\n\tif gpGetInteger64i_v == nil {\n\t\treturn errors.New(\"glGetInteger64i_v\")\n\t}\n\tgpGetInteger64v = (C.GPGETINTEGER64V)(getProcAddr(\"glGetInteger64v\"))\n\tif gpGetInteger64v == nil {\n\t\treturn errors.New(\"glGetInteger64v\")\n\t}\n\tgpGetIntegerIndexedvEXT = (C.GPGETINTEGERINDEXEDVEXT)(getProcAddr(\"glGetIntegerIndexedvEXT\"))\n\tgpGetIntegeri_v = (C.GPGETINTEGERI_V)(getProcAddr(\"glGetIntegeri_v\"))\n\tif gpGetIntegeri_v == nil {\n\t\treturn errors.New(\"glGetIntegeri_v\")\n\t}\n\tgpGetIntegerui64i_vNV = (C.GPGETINTEGERUI64I_VNV)(getProcAddr(\"glGetIntegerui64i_vNV\"))\n\tgpGetIntegerui64vNV = (C.GPGETINTEGERUI64VNV)(getProcAddr(\"glGetIntegerui64vNV\"))\n\tgpGetIntegerv = (C.GPGETINTEGERV)(getProcAddr(\"glGetIntegerv\"))\n\tif gpGetIntegerv == nil {\n\t\treturn errors.New(\"glGetIntegerv\")\n\t}\n\tgpGetInternalformatSampleivNV = (C.GPGETINTERNALFORMATSAMPLEIVNV)(getProcAddr(\"glGetInternalformatSampleivNV\"))\n\tgpGetInternalformati64v = (C.GPGETINTERNALFORMATI64V)(getProcAddr(\"glGetInternalformati64v\"))\n\tgpGetInternalformativ = (C.GPGETINTERNALFORMATIV)(getProcAddr(\"glGetInternalformativ\"))\n\tif gpGetInternalformativ == nil {\n\t\treturn errors.New(\"glGetInternalformativ\")\n\t}\n\tgpGetMemoryObjectDetachedResourcesuivNV = (C.GPGETMEMORYOBJECTDETACHEDRESOURCESUIVNV)(getProcAddr(\"glGetMemoryObjectDetachedResourcesuivNV\"))\n\tgpGetMultiTexEnvfvEXT = (C.GPGETMULTITEXENVFVEXT)(getProcAddr(\"glGetMultiTexEnvfvEXT\"))\n\tgpGetMultiTexEnvivEXT = (C.GPGETMULTITEXENVIVEXT)(getProcAddr(\"glGetMultiTexEnvivEXT\"))\n\tgpGetMultiTexGendvEXT = (C.GPGETMULTITEXGENDVEXT)(getProcAddr(\"glGetMultiTexGendvEXT\"))\n\tgpGetMultiTexGenfvEXT = (C.GPGETMULTITEXGENFVEXT)(getProcAddr(\"glGetMultiTexGenfvEXT\"))\n\tgpGetMultiTexGenivEXT = (C.GPGETMULTITEXGENIVEXT)(getProcAddr(\"glGetMultiTexGenivEXT\"))\n\tgpGetMultiTexImageEXT = (C.GPGETMULTITEXIMAGEEXT)(getProcAddr(\"glGetMultiTexImageEXT\"))\n\tgpGetMultiTexLevelParameterfvEXT = (C.GPGETMULTITEXLEVELPARAMETERFVEXT)(getProcAddr(\"glGetMultiTexLevelParameterfvEXT\"))\n\tgpGetMultiTexLevelParameterivEXT = (C.GPGETMULTITEXLEVELPARAMETERIVEXT)(getProcAddr(\"glGetMultiTexLevelParameterivEXT\"))\n\tgpGetMultiTexParameterIivEXT = (C.GPGETMULTITEXPARAMETERIIVEXT)(getProcAddr(\"glGetMultiTexParameterIivEXT\"))\n\tgpGetMultiTexParameterIuivEXT = (C.GPGETMULTITEXPARAMETERIUIVEXT)(getProcAddr(\"glGetMultiTexParameterIuivEXT\"))\n\tgpGetMultiTexParameterfvEXT = (C.GPGETMULTITEXPARAMETERFVEXT)(getProcAddr(\"glGetMultiTexParameterfvEXT\"))\n\tgpGetMultiTexParameterivEXT = (C.GPGETMULTITEXPARAMETERIVEXT)(getProcAddr(\"glGetMultiTexParameterivEXT\"))\n\tgpGetMultisamplefv = (C.GPGETMULTISAMPLEFV)(getProcAddr(\"glGetMultisamplefv\"))\n\tif gpGetMultisamplefv == nil {\n\t\treturn errors.New(\"glGetMultisamplefv\")\n\t}\n\tgpGetNamedBufferParameteri64v = (C.GPGETNAMEDBUFFERPARAMETERI64V)(getProcAddr(\"glGetNamedBufferParameteri64v\"))\n\tgpGetNamedBufferParameteriv = (C.GPGETNAMEDBUFFERPARAMETERIV)(getProcAddr(\"glGetNamedBufferParameteriv\"))\n\tgpGetNamedBufferParameterivEXT = (C.GPGETNAMEDBUFFERPARAMETERIVEXT)(getProcAddr(\"glGetNamedBufferParameterivEXT\"))\n\tgpGetNamedBufferParameterui64vNV = (C.GPGETNAMEDBUFFERPARAMETERUI64VNV)(getProcAddr(\"glGetNamedBufferParameterui64vNV\"))\n\tgpGetNamedBufferPointerv = (C.GPGETNAMEDBUFFERPOINTERV)(getProcAddr(\"glGetNamedBufferPointerv\"))\n\tgpGetNamedBufferPointervEXT = (C.GPGETNAMEDBUFFERPOINTERVEXT)(getProcAddr(\"glGetNamedBufferPointervEXT\"))\n\tgpGetNamedBufferSubData = (C.GPGETNAMEDBUFFERSUBDATA)(getProcAddr(\"glGetNamedBufferSubData\"))\n\tgpGetNamedBufferSubDataEXT = (C.GPGETNAMEDBUFFERSUBDATAEXT)(getProcAddr(\"glGetNamedBufferSubDataEXT\"))\n\tgpGetNamedFramebufferAttachmentParameteriv = (C.GPGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIV)(getProcAddr(\"glGetNamedFramebufferAttachmentParameteriv\"))\n\tgpGetNamedFramebufferAttachmentParameterivEXT = (C.GPGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXT)(getProcAddr(\"glGetNamedFramebufferAttachmentParameterivEXT\"))\n\tgpGetNamedFramebufferParameteriv = (C.GPGETNAMEDFRAMEBUFFERPARAMETERIV)(getProcAddr(\"glGetNamedFramebufferParameteriv\"))\n\tgpGetNamedFramebufferParameterivEXT = (C.GPGETNAMEDFRAMEBUFFERPARAMETERIVEXT)(getProcAddr(\"glGetNamedFramebufferParameterivEXT\"))\n\tgpGetNamedProgramLocalParameterIivEXT = (C.GPGETNAMEDPROGRAMLOCALPARAMETERIIVEXT)(getProcAddr(\"glGetNamedProgramLocalParameterIivEXT\"))\n\tgpGetNamedProgramLocalParameterIuivEXT = (C.GPGETNAMEDPROGRAMLOCALPARAMETERIUIVEXT)(getProcAddr(\"glGetNamedProgramLocalParameterIuivEXT\"))\n\tgpGetNamedProgramLocalParameterdvEXT = (C.GPGETNAMEDPROGRAMLOCALPARAMETERDVEXT)(getProcAddr(\"glGetNamedProgramLocalParameterdvEXT\"))\n\tgpGetNamedProgramLocalParameterfvEXT = (C.GPGETNAMEDPROGRAMLOCALPARAMETERFVEXT)(getProcAddr(\"glGetNamedProgramLocalParameterfvEXT\"))\n\tgpGetNamedProgramStringEXT = (C.GPGETNAMEDPROGRAMSTRINGEXT)(getProcAddr(\"glGetNamedProgramStringEXT\"))\n\tgpGetNamedProgramivEXT = (C.GPGETNAMEDPROGRAMIVEXT)(getProcAddr(\"glGetNamedProgramivEXT\"))\n\tgpGetNamedRenderbufferParameteriv = (C.GPGETNAMEDRENDERBUFFERPARAMETERIV)(getProcAddr(\"glGetNamedRenderbufferParameteriv\"))\n\tgpGetNamedRenderbufferParameterivEXT = (C.GPGETNAMEDRENDERBUFFERPARAMETERIVEXT)(getProcAddr(\"glGetNamedRenderbufferParameterivEXT\"))\n\tgpGetNamedStringARB = (C.GPGETNAMEDSTRINGARB)(getProcAddr(\"glGetNamedStringARB\"))\n\tgpGetNamedStringivARB = (C.GPGETNAMEDSTRINGIVARB)(getProcAddr(\"glGetNamedStringivARB\"))\n\tgpGetNextPerfQueryIdINTEL = (C.GPGETNEXTPERFQUERYIDINTEL)(getProcAddr(\"glGetNextPerfQueryIdINTEL\"))\n\tgpGetObjectLabel = (C.GPGETOBJECTLABEL)(getProcAddr(\"glGetObjectLabel\"))\n\tgpGetObjectLabelEXT = (C.GPGETOBJECTLABELEXT)(getProcAddr(\"glGetObjectLabelEXT\"))\n\tgpGetObjectLabelKHR = (C.GPGETOBJECTLABELKHR)(getProcAddr(\"glGetObjectLabelKHR\"))\n\tgpGetObjectPtrLabel = (C.GPGETOBJECTPTRLABEL)(getProcAddr(\"glGetObjectPtrLabel\"))\n\tgpGetObjectPtrLabelKHR = (C.GPGETOBJECTPTRLABELKHR)(getProcAddr(\"glGetObjectPtrLabelKHR\"))\n\tgpGetPathCommandsNV = (C.GPGETPATHCOMMANDSNV)(getProcAddr(\"glGetPathCommandsNV\"))\n\tgpGetPathCoordsNV = (C.GPGETPATHCOORDSNV)(getProcAddr(\"glGetPathCoordsNV\"))\n\tgpGetPathDashArrayNV = (C.GPGETPATHDASHARRAYNV)(getProcAddr(\"glGetPathDashArrayNV\"))\n\tgpGetPathLengthNV = (C.GPGETPATHLENGTHNV)(getProcAddr(\"glGetPathLengthNV\"))\n\tgpGetPathMetricRangeNV = (C.GPGETPATHMETRICRANGENV)(getProcAddr(\"glGetPathMetricRangeNV\"))\n\tgpGetPathMetricsNV = (C.GPGETPATHMETRICSNV)(getProcAddr(\"glGetPathMetricsNV\"))\n\tgpGetPathParameterfvNV = (C.GPGETPATHPARAMETERFVNV)(getProcAddr(\"glGetPathParameterfvNV\"))\n\tgpGetPathParameterivNV = (C.GPGETPATHPARAMETERIVNV)(getProcAddr(\"glGetPathParameterivNV\"))\n\tgpGetPathSpacingNV = (C.GPGETPATHSPACINGNV)(getProcAddr(\"glGetPathSpacingNV\"))\n\tgpGetPerfCounterInfoINTEL = (C.GPGETPERFCOUNTERINFOINTEL)(getProcAddr(\"glGetPerfCounterInfoINTEL\"))\n\tgpGetPerfMonitorCounterDataAMD = (C.GPGETPERFMONITORCOUNTERDATAAMD)(getProcAddr(\"glGetPerfMonitorCounterDataAMD\"))\n\tgpGetPerfMonitorCounterInfoAMD = (C.GPGETPERFMONITORCOUNTERINFOAMD)(getProcAddr(\"glGetPerfMonitorCounterInfoAMD\"))\n\tgpGetPerfMonitorCounterStringAMD = (C.GPGETPERFMONITORCOUNTERSTRINGAMD)(getProcAddr(\"glGetPerfMonitorCounterStringAMD\"))\n\tgpGetPerfMonitorCountersAMD = (C.GPGETPERFMONITORCOUNTERSAMD)(getProcAddr(\"glGetPerfMonitorCountersAMD\"))\n\tgpGetPerfMonitorGroupStringAMD = (C.GPGETPERFMONITORGROUPSTRINGAMD)(getProcAddr(\"glGetPerfMonitorGroupStringAMD\"))\n\tgpGetPerfMonitorGroupsAMD = (C.GPGETPERFMONITORGROUPSAMD)(getProcAddr(\"glGetPerfMonitorGroupsAMD\"))\n\tgpGetPerfQueryDataINTEL = (C.GPGETPERFQUERYDATAINTEL)(getProcAddr(\"glGetPerfQueryDataINTEL\"))\n\tgpGetPerfQueryIdByNameINTEL = (C.GPGETPERFQUERYIDBYNAMEINTEL)(getProcAddr(\"glGetPerfQueryIdByNameINTEL\"))\n\tgpGetPerfQueryInfoINTEL = (C.GPGETPERFQUERYINFOINTEL)(getProcAddr(\"glGetPerfQueryInfoINTEL\"))\n\tgpGetPointerIndexedvEXT = (C.GPGETPOINTERINDEXEDVEXT)(getProcAddr(\"glGetPointerIndexedvEXT\"))\n\tgpGetPointeri_vEXT = (C.GPGETPOINTERI_VEXT)(getProcAddr(\"glGetPointeri_vEXT\"))\n\tgpGetPointerv = (C.GPGETPOINTERV)(getProcAddr(\"glGetPointerv\"))\n\tgpGetPointervKHR = (C.GPGETPOINTERVKHR)(getProcAddr(\"glGetPointervKHR\"))\n\tgpGetProgramBinary = (C.GPGETPROGRAMBINARY)(getProcAddr(\"glGetProgramBinary\"))\n\tif gpGetProgramBinary == nil {\n\t\treturn errors.New(\"glGetProgramBinary\")\n\t}\n\tgpGetProgramInfoLog = (C.GPGETPROGRAMINFOLOG)(getProcAddr(\"glGetProgramInfoLog\"))\n\tif gpGetProgramInfoLog == nil {\n\t\treturn errors.New(\"glGetProgramInfoLog\")\n\t}\n\tgpGetProgramInterfaceiv = (C.GPGETPROGRAMINTERFACEIV)(getProcAddr(\"glGetProgramInterfaceiv\"))\n\tgpGetProgramPipelineInfoLog = (C.GPGETPROGRAMPIPELINEINFOLOG)(getProcAddr(\"glGetProgramPipelineInfoLog\"))\n\tif gpGetProgramPipelineInfoLog == nil {\n\t\treturn errors.New(\"glGetProgramPipelineInfoLog\")\n\t}\n\tgpGetProgramPipelineInfoLogEXT = (C.GPGETPROGRAMPIPELINEINFOLOGEXT)(getProcAddr(\"glGetProgramPipelineInfoLogEXT\"))\n\tgpGetProgramPipelineiv = (C.GPGETPROGRAMPIPELINEIV)(getProcAddr(\"glGetProgramPipelineiv\"))\n\tif gpGetProgramPipelineiv == nil {\n\t\treturn errors.New(\"glGetProgramPipelineiv\")\n\t}\n\tgpGetProgramPipelineivEXT = (C.GPGETPROGRAMPIPELINEIVEXT)(getProcAddr(\"glGetProgramPipelineivEXT\"))\n\tgpGetProgramResourceIndex = (C.GPGETPROGRAMRESOURCEINDEX)(getProcAddr(\"glGetProgramResourceIndex\"))\n\tgpGetProgramResourceLocation = (C.GPGETPROGRAMRESOURCELOCATION)(getProcAddr(\"glGetProgramResourceLocation\"))\n\tgpGetProgramResourceLocationIndex = (C.GPGETPROGRAMRESOURCELOCATIONINDEX)(getProcAddr(\"glGetProgramResourceLocationIndex\"))\n\tgpGetProgramResourceName = (C.GPGETPROGRAMRESOURCENAME)(getProcAddr(\"glGetProgramResourceName\"))\n\tgpGetProgramResourcefvNV = (C.GPGETPROGRAMRESOURCEFVNV)(getProcAddr(\"glGetProgramResourcefvNV\"))\n\tgpGetProgramResourceiv = (C.GPGETPROGRAMRESOURCEIV)(getProcAddr(\"glGetProgramResourceiv\"))\n\tgpGetProgramStageiv = (C.GPGETPROGRAMSTAGEIV)(getProcAddr(\"glGetProgramStageiv\"))\n\tif gpGetProgramStageiv == nil {\n\t\treturn errors.New(\"glGetProgramStageiv\")\n\t}\n\tgpGetProgramiv = (C.GPGETPROGRAMIV)(getProcAddr(\"glGetProgramiv\"))\n\tif gpGetProgramiv == nil {\n\t\treturn errors.New(\"glGetProgramiv\")\n\t}\n\tgpGetQueryBufferObjecti64v = (C.GPGETQUERYBUFFEROBJECTI64V)(getProcAddr(\"glGetQueryBufferObjecti64v\"))\n\tgpGetQueryBufferObjectiv = (C.GPGETQUERYBUFFEROBJECTIV)(getProcAddr(\"glGetQueryBufferObjectiv\"))\n\tgpGetQueryBufferObjectui64v = (C.GPGETQUERYBUFFEROBJECTUI64V)(getProcAddr(\"glGetQueryBufferObjectui64v\"))\n\tgpGetQueryBufferObjectuiv = (C.GPGETQUERYBUFFEROBJECTUIV)(getProcAddr(\"glGetQueryBufferObjectuiv\"))\n\tgpGetQueryIndexediv = (C.GPGETQUERYINDEXEDIV)(getProcAddr(\"glGetQueryIndexediv\"))\n\tif gpGetQueryIndexediv == nil {\n\t\treturn errors.New(\"glGetQueryIndexediv\")\n\t}\n\tgpGetQueryObjecti64v = (C.GPGETQUERYOBJECTI64V)(getProcAddr(\"glGetQueryObjecti64v\"))\n\tif gpGetQueryObjecti64v == nil {\n\t\treturn errors.New(\"glGetQueryObjecti64v\")\n\t}\n\tgpGetQueryObjectiv = (C.GPGETQUERYOBJECTIV)(getProcAddr(\"glGetQueryObjectiv\"))\n\tif gpGetQueryObjectiv == nil {\n\t\treturn errors.New(\"glGetQueryObjectiv\")\n\t}\n\tgpGetQueryObjectui64v = (C.GPGETQUERYOBJECTUI64V)(getProcAddr(\"glGetQueryObjectui64v\"))\n\tif gpGetQueryObjectui64v == nil {\n\t\treturn errors.New(\"glGetQueryObjectui64v\")\n\t}\n\tgpGetQueryObjectuiv = (C.GPGETQUERYOBJECTUIV)(getProcAddr(\"glGetQueryObjectuiv\"))\n\tif gpGetQueryObjectuiv == nil {\n\t\treturn errors.New(\"glGetQueryObjectuiv\")\n\t}\n\tgpGetQueryiv = (C.GPGETQUERYIV)(getProcAddr(\"glGetQueryiv\"))\n\tif gpGetQueryiv == nil {\n\t\treturn errors.New(\"glGetQueryiv\")\n\t}\n\tgpGetRenderbufferParameteriv = (C.GPGETRENDERBUFFERPARAMETERIV)(getProcAddr(\"glGetRenderbufferParameteriv\"))\n\tif gpGetRenderbufferParameteriv == nil {\n\t\treturn errors.New(\"glGetRenderbufferParameteriv\")\n\t}\n\tgpGetSamplerParameterIiv = (C.GPGETSAMPLERPARAMETERIIV)(getProcAddr(\"glGetSamplerParameterIiv\"))\n\tif gpGetSamplerParameterIiv == nil {\n\t\treturn errors.New(\"glGetSamplerParameterIiv\")\n\t}\n\tgpGetSamplerParameterIuiv = (C.GPGETSAMPLERPARAMETERIUIV)(getProcAddr(\"glGetSamplerParameterIuiv\"))\n\tif gpGetSamplerParameterIuiv == nil {\n\t\treturn errors.New(\"glGetSamplerParameterIuiv\")\n\t}\n\tgpGetSamplerParameterfv = (C.GPGETSAMPLERPARAMETERFV)(getProcAddr(\"glGetSamplerParameterfv\"))\n\tif gpGetSamplerParameterfv == nil {\n\t\treturn errors.New(\"glGetSamplerParameterfv\")\n\t}\n\tgpGetSamplerParameteriv = (C.GPGETSAMPLERPARAMETERIV)(getProcAddr(\"glGetSamplerParameteriv\"))\n\tif gpGetSamplerParameteriv == nil {\n\t\treturn errors.New(\"glGetSamplerParameteriv\")\n\t}\n\tgpGetShaderInfoLog = (C.GPGETSHADERINFOLOG)(getProcAddr(\"glGetShaderInfoLog\"))\n\tif gpGetShaderInfoLog == nil {\n\t\treturn errors.New(\"glGetShaderInfoLog\")\n\t}\n\tgpGetShaderPrecisionFormat = (C.GPGETSHADERPRECISIONFORMAT)(getProcAddr(\"glGetShaderPrecisionFormat\"))\n\tif gpGetShaderPrecisionFormat == nil {\n\t\treturn errors.New(\"glGetShaderPrecisionFormat\")\n\t}\n\tgpGetShaderSource = (C.GPGETSHADERSOURCE)(getProcAddr(\"glGetShaderSource\"))\n\tif gpGetShaderSource == nil {\n\t\treturn errors.New(\"glGetShaderSource\")\n\t}\n\tgpGetShaderiv = (C.GPGETSHADERIV)(getProcAddr(\"glGetShaderiv\"))\n\tif gpGetShaderiv == nil {\n\t\treturn errors.New(\"glGetShaderiv\")\n\t}\n\tgpGetShadingRateImagePaletteNV = (C.GPGETSHADINGRATEIMAGEPALETTENV)(getProcAddr(\"glGetShadingRateImagePaletteNV\"))\n\tgpGetShadingRateSampleLocationivNV = (C.GPGETSHADINGRATESAMPLELOCATIONIVNV)(getProcAddr(\"glGetShadingRateSampleLocationivNV\"))\n\tgpGetStageIndexNV = (C.GPGETSTAGEINDEXNV)(getProcAddr(\"glGetStageIndexNV\"))\n\tgpGetString = (C.GPGETSTRING)(getProcAddr(\"glGetString\"))\n\tif gpGetString == nil {\n\t\treturn errors.New(\"glGetString\")\n\t}\n\tgpGetStringi = (C.GPGETSTRINGI)(getProcAddr(\"glGetStringi\"))\n\tif gpGetStringi == nil {\n\t\treturn errors.New(\"glGetStringi\")\n\t}\n\tgpGetSubroutineIndex = (C.GPGETSUBROUTINEINDEX)(getProcAddr(\"glGetSubroutineIndex\"))\n\tif gpGetSubroutineIndex == nil {\n\t\treturn errors.New(\"glGetSubroutineIndex\")\n\t}\n\tgpGetSubroutineUniformLocation = (C.GPGETSUBROUTINEUNIFORMLOCATION)(getProcAddr(\"glGetSubroutineUniformLocation\"))\n\tif gpGetSubroutineUniformLocation == nil {\n\t\treturn errors.New(\"glGetSubroutineUniformLocation\")\n\t}\n\tgpGetSynciv = (C.GPGETSYNCIV)(getProcAddr(\"glGetSynciv\"))\n\tif gpGetSynciv == nil {\n\t\treturn errors.New(\"glGetSynciv\")\n\t}\n\tgpGetTexImage = (C.GPGETTEXIMAGE)(getProcAddr(\"glGetTexImage\"))\n\tif gpGetTexImage == nil {\n\t\treturn errors.New(\"glGetTexImage\")\n\t}\n\tgpGetTexLevelParameterfv = (C.GPGETTEXLEVELPARAMETERFV)(getProcAddr(\"glGetTexLevelParameterfv\"))\n\tif gpGetTexLevelParameterfv == nil {\n\t\treturn errors.New(\"glGetTexLevelParameterfv\")\n\t}\n\tgpGetTexLevelParameteriv = (C.GPGETTEXLEVELPARAMETERIV)(getProcAddr(\"glGetTexLevelParameteriv\"))\n\tif gpGetTexLevelParameteriv == nil {\n\t\treturn errors.New(\"glGetTexLevelParameteriv\")\n\t}\n\tgpGetTexParameterIiv = (C.GPGETTEXPARAMETERIIV)(getProcAddr(\"glGetTexParameterIiv\"))\n\tif gpGetTexParameterIiv == nil {\n\t\treturn errors.New(\"glGetTexParameterIiv\")\n\t}\n\tgpGetTexParameterIuiv = (C.GPGETTEXPARAMETERIUIV)(getProcAddr(\"glGetTexParameterIuiv\"))\n\tif gpGetTexParameterIuiv == nil {\n\t\treturn errors.New(\"glGetTexParameterIuiv\")\n\t}\n\tgpGetTexParameterfv = (C.GPGETTEXPARAMETERFV)(getProcAddr(\"glGetTexParameterfv\"))\n\tif gpGetTexParameterfv == nil {\n\t\treturn errors.New(\"glGetTexParameterfv\")\n\t}\n\tgpGetTexParameteriv = (C.GPGETTEXPARAMETERIV)(getProcAddr(\"glGetTexParameteriv\"))\n\tif gpGetTexParameteriv == nil {\n\t\treturn errors.New(\"glGetTexParameteriv\")\n\t}\n\tgpGetTextureHandleARB = (C.GPGETTEXTUREHANDLEARB)(getProcAddr(\"glGetTextureHandleARB\"))\n\tgpGetTextureHandleNV = (C.GPGETTEXTUREHANDLENV)(getProcAddr(\"glGetTextureHandleNV\"))\n\tgpGetTextureImage = (C.GPGETTEXTUREIMAGE)(getProcAddr(\"glGetTextureImage\"))\n\tgpGetTextureImageEXT = (C.GPGETTEXTUREIMAGEEXT)(getProcAddr(\"glGetTextureImageEXT\"))\n\tgpGetTextureLevelParameterfv = (C.GPGETTEXTURELEVELPARAMETERFV)(getProcAddr(\"glGetTextureLevelParameterfv\"))\n\tgpGetTextureLevelParameterfvEXT = (C.GPGETTEXTURELEVELPARAMETERFVEXT)(getProcAddr(\"glGetTextureLevelParameterfvEXT\"))\n\tgpGetTextureLevelParameteriv = (C.GPGETTEXTURELEVELPARAMETERIV)(getProcAddr(\"glGetTextureLevelParameteriv\"))\n\tgpGetTextureLevelParameterivEXT = (C.GPGETTEXTURELEVELPARAMETERIVEXT)(getProcAddr(\"glGetTextureLevelParameterivEXT\"))\n\tgpGetTextureParameterIiv = (C.GPGETTEXTUREPARAMETERIIV)(getProcAddr(\"glGetTextureParameterIiv\"))\n\tgpGetTextureParameterIivEXT = (C.GPGETTEXTUREPARAMETERIIVEXT)(getProcAddr(\"glGetTextureParameterIivEXT\"))\n\tgpGetTextureParameterIuiv = (C.GPGETTEXTUREPARAMETERIUIV)(getProcAddr(\"glGetTextureParameterIuiv\"))\n\tgpGetTextureParameterIuivEXT = (C.GPGETTEXTUREPARAMETERIUIVEXT)(getProcAddr(\"glGetTextureParameterIuivEXT\"))\n\tgpGetTextureParameterfv = (C.GPGETTEXTUREPARAMETERFV)(getProcAddr(\"glGetTextureParameterfv\"))\n\tgpGetTextureParameterfvEXT = (C.GPGETTEXTUREPARAMETERFVEXT)(getProcAddr(\"glGetTextureParameterfvEXT\"))\n\tgpGetTextureParameteriv = (C.GPGETTEXTUREPARAMETERIV)(getProcAddr(\"glGetTextureParameteriv\"))\n\tgpGetTextureParameterivEXT = (C.GPGETTEXTUREPARAMETERIVEXT)(getProcAddr(\"glGetTextureParameterivEXT\"))\n\tgpGetTextureSamplerHandleARB = (C.GPGETTEXTURESAMPLERHANDLEARB)(getProcAddr(\"glGetTextureSamplerHandleARB\"))\n\tgpGetTextureSamplerHandleNV = (C.GPGETTEXTURESAMPLERHANDLENV)(getProcAddr(\"glGetTextureSamplerHandleNV\"))\n\tgpGetTextureSubImage = (C.GPGETTEXTURESUBIMAGE)(getProcAddr(\"glGetTextureSubImage\"))\n\tgpGetTransformFeedbackVarying = (C.GPGETTRANSFORMFEEDBACKVARYING)(getProcAddr(\"glGetTransformFeedbackVarying\"))\n\tif gpGetTransformFeedbackVarying == nil {\n\t\treturn errors.New(\"glGetTransformFeedbackVarying\")\n\t}\n\tgpGetTransformFeedbacki64_v = (C.GPGETTRANSFORMFEEDBACKI64_V)(getProcAddr(\"glGetTransformFeedbacki64_v\"))\n\tgpGetTransformFeedbacki_v = (C.GPGETTRANSFORMFEEDBACKI_V)(getProcAddr(\"glGetTransformFeedbacki_v\"))\n\tgpGetTransformFeedbackiv = (C.GPGETTRANSFORMFEEDBACKIV)(getProcAddr(\"glGetTransformFeedbackiv\"))\n\tgpGetUniformBlockIndex = (C.GPGETUNIFORMBLOCKINDEX)(getProcAddr(\"glGetUniformBlockIndex\"))\n\tif gpGetUniformBlockIndex == nil {\n\t\treturn errors.New(\"glGetUniformBlockIndex\")\n\t}\n\tgpGetUniformIndices = (C.GPGETUNIFORMINDICES)(getProcAddr(\"glGetUniformIndices\"))\n\tif gpGetUniformIndices == nil {\n\t\treturn errors.New(\"glGetUniformIndices\")\n\t}\n\tgpGetUniformLocation = (C.GPGETUNIFORMLOCATION)(getProcAddr(\"glGetUniformLocation\"))\n\tif gpGetUniformLocation == nil {\n\t\treturn errors.New(\"glGetUniformLocation\")\n\t}\n\tgpGetUniformSubroutineuiv = (C.GPGETUNIFORMSUBROUTINEUIV)(getProcAddr(\"glGetUniformSubroutineuiv\"))\n\tif gpGetUniformSubroutineuiv == nil {\n\t\treturn errors.New(\"glGetUniformSubroutineuiv\")\n\t}\n\tgpGetUniformdv = (C.GPGETUNIFORMDV)(getProcAddr(\"glGetUniformdv\"))\n\tif gpGetUniformdv == nil {\n\t\treturn errors.New(\"glGetUniformdv\")\n\t}\n\tgpGetUniformfv = (C.GPGETUNIFORMFV)(getProcAddr(\"glGetUniformfv\"))\n\tif gpGetUniformfv == nil {\n\t\treturn errors.New(\"glGetUniformfv\")\n\t}\n\tgpGetUniformi64vARB = (C.GPGETUNIFORMI64VARB)(getProcAddr(\"glGetUniformi64vARB\"))\n\tgpGetUniformi64vNV = (C.GPGETUNIFORMI64VNV)(getProcAddr(\"glGetUniformi64vNV\"))\n\tgpGetUniformiv = (C.GPGETUNIFORMIV)(getProcAddr(\"glGetUniformiv\"))\n\tif gpGetUniformiv == nil {\n\t\treturn errors.New(\"glGetUniformiv\")\n\t}\n\tgpGetUniformui64vARB = (C.GPGETUNIFORMUI64VARB)(getProcAddr(\"glGetUniformui64vARB\"))\n\tgpGetUniformui64vNV = (C.GPGETUNIFORMUI64VNV)(getProcAddr(\"glGetUniformui64vNV\"))\n\tgpGetUniformuiv = (C.GPGETUNIFORMUIV)(getProcAddr(\"glGetUniformuiv\"))\n\tif gpGetUniformuiv == nil {\n\t\treturn errors.New(\"glGetUniformuiv\")\n\t}\n\tgpGetVertexArrayIndexed64iv = (C.GPGETVERTEXARRAYINDEXED64IV)(getProcAddr(\"glGetVertexArrayIndexed64iv\"))\n\tgpGetVertexArrayIndexediv = (C.GPGETVERTEXARRAYINDEXEDIV)(getProcAddr(\"glGetVertexArrayIndexediv\"))\n\tgpGetVertexArrayIntegeri_vEXT = (C.GPGETVERTEXARRAYINTEGERI_VEXT)(getProcAddr(\"glGetVertexArrayIntegeri_vEXT\"))\n\tgpGetVertexArrayIntegervEXT = (C.GPGETVERTEXARRAYINTEGERVEXT)(getProcAddr(\"glGetVertexArrayIntegervEXT\"))\n\tgpGetVertexArrayPointeri_vEXT = (C.GPGETVERTEXARRAYPOINTERI_VEXT)(getProcAddr(\"glGetVertexArrayPointeri_vEXT\"))\n\tgpGetVertexArrayPointervEXT = (C.GPGETVERTEXARRAYPOINTERVEXT)(getProcAddr(\"glGetVertexArrayPointervEXT\"))\n\tgpGetVertexArrayiv = (C.GPGETVERTEXARRAYIV)(getProcAddr(\"glGetVertexArrayiv\"))\n\tgpGetVertexAttribIiv = (C.GPGETVERTEXATTRIBIIV)(getProcAddr(\"glGetVertexAttribIiv\"))\n\tif gpGetVertexAttribIiv == nil {\n\t\treturn errors.New(\"glGetVertexAttribIiv\")\n\t}\n\tgpGetVertexAttribIuiv = (C.GPGETVERTEXATTRIBIUIV)(getProcAddr(\"glGetVertexAttribIuiv\"))\n\tif gpGetVertexAttribIuiv == nil {\n\t\treturn errors.New(\"glGetVertexAttribIuiv\")\n\t}\n\tgpGetVertexAttribLdv = (C.GPGETVERTEXATTRIBLDV)(getProcAddr(\"glGetVertexAttribLdv\"))\n\tif gpGetVertexAttribLdv == nil {\n\t\treturn errors.New(\"glGetVertexAttribLdv\")\n\t}\n\tgpGetVertexAttribLi64vNV = (C.GPGETVERTEXATTRIBLI64VNV)(getProcAddr(\"glGetVertexAttribLi64vNV\"))\n\tgpGetVertexAttribLui64vARB = (C.GPGETVERTEXATTRIBLUI64VARB)(getProcAddr(\"glGetVertexAttribLui64vARB\"))\n\tgpGetVertexAttribLui64vNV = (C.GPGETVERTEXATTRIBLUI64VNV)(getProcAddr(\"glGetVertexAttribLui64vNV\"))\n\tgpGetVertexAttribPointerv = (C.GPGETVERTEXATTRIBPOINTERV)(getProcAddr(\"glGetVertexAttribPointerv\"))\n\tif gpGetVertexAttribPointerv == nil {\n\t\treturn errors.New(\"glGetVertexAttribPointerv\")\n\t}\n\tgpGetVertexAttribdv = (C.GPGETVERTEXATTRIBDV)(getProcAddr(\"glGetVertexAttribdv\"))\n\tif gpGetVertexAttribdv == nil {\n\t\treturn errors.New(\"glGetVertexAttribdv\")\n\t}\n\tgpGetVertexAttribfv = (C.GPGETVERTEXATTRIBFV)(getProcAddr(\"glGetVertexAttribfv\"))\n\tif gpGetVertexAttribfv == nil {\n\t\treturn errors.New(\"glGetVertexAttribfv\")\n\t}\n\tgpGetVertexAttribiv = (C.GPGETVERTEXATTRIBIV)(getProcAddr(\"glGetVertexAttribiv\"))\n\tif gpGetVertexAttribiv == nil {\n\t\treturn errors.New(\"glGetVertexAttribiv\")\n\t}\n\tgpGetVkProcAddrNV = (C.GPGETVKPROCADDRNV)(getProcAddr(\"glGetVkProcAddrNV\"))\n\tgpGetnCompressedTexImageARB = (C.GPGETNCOMPRESSEDTEXIMAGEARB)(getProcAddr(\"glGetnCompressedTexImageARB\"))\n\tgpGetnTexImageARB = (C.GPGETNTEXIMAGEARB)(getProcAddr(\"glGetnTexImageARB\"))\n\tgpGetnUniformdvARB = (C.GPGETNUNIFORMDVARB)(getProcAddr(\"glGetnUniformdvARB\"))\n\tgpGetnUniformfv = (C.GPGETNUNIFORMFV)(getProcAddr(\"glGetnUniformfv\"))\n\tgpGetnUniformfvARB = (C.GPGETNUNIFORMFVARB)(getProcAddr(\"glGetnUniformfvARB\"))\n\tgpGetnUniformfvKHR = (C.GPGETNUNIFORMFVKHR)(getProcAddr(\"glGetnUniformfvKHR\"))\n\tgpGetnUniformi64vARB = (C.GPGETNUNIFORMI64VARB)(getProcAddr(\"glGetnUniformi64vARB\"))\n\tgpGetnUniformiv = (C.GPGETNUNIFORMIV)(getProcAddr(\"glGetnUniformiv\"))\n\tgpGetnUniformivARB = (C.GPGETNUNIFORMIVARB)(getProcAddr(\"glGetnUniformivARB\"))\n\tgpGetnUniformivKHR = (C.GPGETNUNIFORMIVKHR)(getProcAddr(\"glGetnUniformivKHR\"))\n\tgpGetnUniformui64vARB = (C.GPGETNUNIFORMUI64VARB)(getProcAddr(\"glGetnUniformui64vARB\"))\n\tgpGetnUniformuiv = (C.GPGETNUNIFORMUIV)(getProcAddr(\"glGetnUniformuiv\"))\n\tgpGetnUniformuivARB = (C.GPGETNUNIFORMUIVARB)(getProcAddr(\"glGetnUniformuivARB\"))\n\tgpGetnUniformuivKHR = (C.GPGETNUNIFORMUIVKHR)(getProcAddr(\"glGetnUniformuivKHR\"))\n\tgpHint = (C.GPHINT)(getProcAddr(\"glHint\"))\n\tif gpHint == nil {\n\t\treturn errors.New(\"glHint\")\n\t}\n\tgpIndexFormatNV = (C.GPINDEXFORMATNV)(getProcAddr(\"glIndexFormatNV\"))\n\tgpInsertEventMarkerEXT = (C.GPINSERTEVENTMARKEREXT)(getProcAddr(\"glInsertEventMarkerEXT\"))\n\tgpInterpolatePathsNV = (C.GPINTERPOLATEPATHSNV)(getProcAddr(\"glInterpolatePathsNV\"))\n\tgpInvalidateBufferData = (C.GPINVALIDATEBUFFERDATA)(getProcAddr(\"glInvalidateBufferData\"))\n\tgpInvalidateBufferSubData = (C.GPINVALIDATEBUFFERSUBDATA)(getProcAddr(\"glInvalidateBufferSubData\"))\n\tgpInvalidateFramebuffer = (C.GPINVALIDATEFRAMEBUFFER)(getProcAddr(\"glInvalidateFramebuffer\"))\n\tgpInvalidateNamedFramebufferData = (C.GPINVALIDATENAMEDFRAMEBUFFERDATA)(getProcAddr(\"glInvalidateNamedFramebufferData\"))\n\tgpInvalidateNamedFramebufferSubData = (C.GPINVALIDATENAMEDFRAMEBUFFERSUBDATA)(getProcAddr(\"glInvalidateNamedFramebufferSubData\"))\n\tgpInvalidateSubFramebuffer = (C.GPINVALIDATESUBFRAMEBUFFER)(getProcAddr(\"glInvalidateSubFramebuffer\"))\n\tgpInvalidateTexImage = (C.GPINVALIDATETEXIMAGE)(getProcAddr(\"glInvalidateTexImage\"))\n\tgpInvalidateTexSubImage = (C.GPINVALIDATETEXSUBIMAGE)(getProcAddr(\"glInvalidateTexSubImage\"))\n\tgpIsBuffer = (C.GPISBUFFER)(getProcAddr(\"glIsBuffer\"))\n\tif gpIsBuffer == nil {\n\t\treturn errors.New(\"glIsBuffer\")\n\t}\n\tgpIsBufferResidentNV = (C.GPISBUFFERRESIDENTNV)(getProcAddr(\"glIsBufferResidentNV\"))\n\tgpIsCommandListNV = (C.GPISCOMMANDLISTNV)(getProcAddr(\"glIsCommandListNV\"))\n\tgpIsEnabled = (C.GPISENABLED)(getProcAddr(\"glIsEnabled\"))\n\tif gpIsEnabled == nil {\n\t\treturn errors.New(\"glIsEnabled\")\n\t}\n\tgpIsEnabledIndexedEXT = (C.GPISENABLEDINDEXEDEXT)(getProcAddr(\"glIsEnabledIndexedEXT\"))\n\tgpIsEnabledi = (C.GPISENABLEDI)(getProcAddr(\"glIsEnabledi\"))\n\tif gpIsEnabledi == nil {\n\t\treturn errors.New(\"glIsEnabledi\")\n\t}\n\tgpIsFramebuffer = (C.GPISFRAMEBUFFER)(getProcAddr(\"glIsFramebuffer\"))\n\tif gpIsFramebuffer == nil {\n\t\treturn errors.New(\"glIsFramebuffer\")\n\t}\n\tgpIsImageHandleResidentARB = (C.GPISIMAGEHANDLERESIDENTARB)(getProcAddr(\"glIsImageHandleResidentARB\"))\n\tgpIsImageHandleResidentNV = (C.GPISIMAGEHANDLERESIDENTNV)(getProcAddr(\"glIsImageHandleResidentNV\"))\n\tgpIsNamedBufferResidentNV = (C.GPISNAMEDBUFFERRESIDENTNV)(getProcAddr(\"glIsNamedBufferResidentNV\"))\n\tgpIsNamedStringARB = (C.GPISNAMEDSTRINGARB)(getProcAddr(\"glIsNamedStringARB\"))\n\tgpIsPathNV = (C.GPISPATHNV)(getProcAddr(\"glIsPathNV\"))\n\tgpIsPointInFillPathNV = (C.GPISPOINTINFILLPATHNV)(getProcAddr(\"glIsPointInFillPathNV\"))\n\tgpIsPointInStrokePathNV = (C.GPISPOINTINSTROKEPATHNV)(getProcAddr(\"glIsPointInStrokePathNV\"))\n\tgpIsProgram = (C.GPISPROGRAM)(getProcAddr(\"glIsProgram\"))\n\tif gpIsProgram == nil {\n\t\treturn errors.New(\"glIsProgram\")\n\t}\n\tgpIsProgramPipeline = (C.GPISPROGRAMPIPELINE)(getProcAddr(\"glIsProgramPipeline\"))\n\tif gpIsProgramPipeline == nil {\n\t\treturn errors.New(\"glIsProgramPipeline\")\n\t}\n\tgpIsProgramPipelineEXT = (C.GPISPROGRAMPIPELINEEXT)(getProcAddr(\"glIsProgramPipelineEXT\"))\n\tgpIsQuery = (C.GPISQUERY)(getProcAddr(\"glIsQuery\"))\n\tif gpIsQuery == nil {\n\t\treturn errors.New(\"glIsQuery\")\n\t}\n\tgpIsRenderbuffer = (C.GPISRENDERBUFFER)(getProcAddr(\"glIsRenderbuffer\"))\n\tif gpIsRenderbuffer == nil {\n\t\treturn errors.New(\"glIsRenderbuffer\")\n\t}\n\tgpIsSampler = (C.GPISSAMPLER)(getProcAddr(\"glIsSampler\"))\n\tif gpIsSampler == nil {\n\t\treturn errors.New(\"glIsSampler\")\n\t}\n\tgpIsShader = (C.GPISSHADER)(getProcAddr(\"glIsShader\"))\n\tif gpIsShader == nil {\n\t\treturn errors.New(\"glIsShader\")\n\t}\n\tgpIsStateNV = (C.GPISSTATENV)(getProcAddr(\"glIsStateNV\"))\n\tgpIsSync = (C.GPISSYNC)(getProcAddr(\"glIsSync\"))\n\tif gpIsSync == nil {\n\t\treturn errors.New(\"glIsSync\")\n\t}\n\tgpIsTexture = (C.GPISTEXTURE)(getProcAddr(\"glIsTexture\"))\n\tif gpIsTexture == nil {\n\t\treturn errors.New(\"glIsTexture\")\n\t}\n\tgpIsTextureHandleResidentARB = (C.GPISTEXTUREHANDLERESIDENTARB)(getProcAddr(\"glIsTextureHandleResidentARB\"))\n\tgpIsTextureHandleResidentNV = (C.GPISTEXTUREHANDLERESIDENTNV)(getProcAddr(\"glIsTextureHandleResidentNV\"))\n\tgpIsTransformFeedback = (C.GPISTRANSFORMFEEDBACK)(getProcAddr(\"glIsTransformFeedback\"))\n\tif gpIsTransformFeedback == nil {\n\t\treturn errors.New(\"glIsTransformFeedback\")\n\t}\n\tgpIsVertexArray = (C.GPISVERTEXARRAY)(getProcAddr(\"glIsVertexArray\"))\n\tif gpIsVertexArray == nil {\n\t\treturn errors.New(\"glIsVertexArray\")\n\t}\n\tgpLabelObjectEXT = (C.GPLABELOBJECTEXT)(getProcAddr(\"glLabelObjectEXT\"))\n\tgpLineWidth = (C.GPLINEWIDTH)(getProcAddr(\"glLineWidth\"))\n\tif gpLineWidth == nil {\n\t\treturn errors.New(\"glLineWidth\")\n\t}\n\tgpLinkProgram = (C.GPLINKPROGRAM)(getProcAddr(\"glLinkProgram\"))\n\tif gpLinkProgram == nil {\n\t\treturn errors.New(\"glLinkProgram\")\n\t}\n\tgpListDrawCommandsStatesClientNV = (C.GPLISTDRAWCOMMANDSSTATESCLIENTNV)(getProcAddr(\"glListDrawCommandsStatesClientNV\"))\n\tgpLogicOp = (C.GPLOGICOP)(getProcAddr(\"glLogicOp\"))\n\tif gpLogicOp == nil {\n\t\treturn errors.New(\"glLogicOp\")\n\t}\n\tgpMakeBufferNonResidentNV = (C.GPMAKEBUFFERNONRESIDENTNV)(getProcAddr(\"glMakeBufferNonResidentNV\"))\n\tgpMakeBufferResidentNV = (C.GPMAKEBUFFERRESIDENTNV)(getProcAddr(\"glMakeBufferResidentNV\"))\n\tgpMakeImageHandleNonResidentARB = (C.GPMAKEIMAGEHANDLENONRESIDENTARB)(getProcAddr(\"glMakeImageHandleNonResidentARB\"))\n\tgpMakeImageHandleNonResidentNV = (C.GPMAKEIMAGEHANDLENONRESIDENTNV)(getProcAddr(\"glMakeImageHandleNonResidentNV\"))\n\tgpMakeImageHandleResidentARB = (C.GPMAKEIMAGEHANDLERESIDENTARB)(getProcAddr(\"glMakeImageHandleResidentARB\"))\n\tgpMakeImageHandleResidentNV = (C.GPMAKEIMAGEHANDLERESIDENTNV)(getProcAddr(\"glMakeImageHandleResidentNV\"))\n\tgpMakeNamedBufferNonResidentNV = (C.GPMAKENAMEDBUFFERNONRESIDENTNV)(getProcAddr(\"glMakeNamedBufferNonResidentNV\"))\n\tgpMakeNamedBufferResidentNV = (C.GPMAKENAMEDBUFFERRESIDENTNV)(getProcAddr(\"glMakeNamedBufferResidentNV\"))\n\tgpMakeTextureHandleNonResidentARB = (C.GPMAKETEXTUREHANDLENONRESIDENTARB)(getProcAddr(\"glMakeTextureHandleNonResidentARB\"))\n\tgpMakeTextureHandleNonResidentNV = (C.GPMAKETEXTUREHANDLENONRESIDENTNV)(getProcAddr(\"glMakeTextureHandleNonResidentNV\"))\n\tgpMakeTextureHandleResidentARB = (C.GPMAKETEXTUREHANDLERESIDENTARB)(getProcAddr(\"glMakeTextureHandleResidentARB\"))\n\tgpMakeTextureHandleResidentNV = (C.GPMAKETEXTUREHANDLERESIDENTNV)(getProcAddr(\"glMakeTextureHandleResidentNV\"))\n\tgpMapBuffer = (C.GPMAPBUFFER)(getProcAddr(\"glMapBuffer\"))\n\tif gpMapBuffer == nil {\n\t\treturn errors.New(\"glMapBuffer\")\n\t}\n\tgpMapBufferRange = (C.GPMAPBUFFERRANGE)(getProcAddr(\"glMapBufferRange\"))\n\tif gpMapBufferRange == nil {\n\t\treturn errors.New(\"glMapBufferRange\")\n\t}\n\tgpMapNamedBuffer = (C.GPMAPNAMEDBUFFER)(getProcAddr(\"glMapNamedBuffer\"))\n\tgpMapNamedBufferEXT = (C.GPMAPNAMEDBUFFEREXT)(getProcAddr(\"glMapNamedBufferEXT\"))\n\tgpMapNamedBufferRange = (C.GPMAPNAMEDBUFFERRANGE)(getProcAddr(\"glMapNamedBufferRange\"))\n\tgpMapNamedBufferRangeEXT = (C.GPMAPNAMEDBUFFERRANGEEXT)(getProcAddr(\"glMapNamedBufferRangeEXT\"))\n\tgpMatrixFrustumEXT = (C.GPMATRIXFRUSTUMEXT)(getProcAddr(\"glMatrixFrustumEXT\"))\n\tgpMatrixLoad3x2fNV = (C.GPMATRIXLOAD3X2FNV)(getProcAddr(\"glMatrixLoad3x2fNV\"))\n\tgpMatrixLoad3x3fNV = (C.GPMATRIXLOAD3X3FNV)(getProcAddr(\"glMatrixLoad3x3fNV\"))\n\tgpMatrixLoadIdentityEXT = (C.GPMATRIXLOADIDENTITYEXT)(getProcAddr(\"glMatrixLoadIdentityEXT\"))\n\tgpMatrixLoadTranspose3x3fNV = (C.GPMATRIXLOADTRANSPOSE3X3FNV)(getProcAddr(\"glMatrixLoadTranspose3x3fNV\"))\n\tgpMatrixLoadTransposedEXT = (C.GPMATRIXLOADTRANSPOSEDEXT)(getProcAddr(\"glMatrixLoadTransposedEXT\"))\n\tgpMatrixLoadTransposefEXT = (C.GPMATRIXLOADTRANSPOSEFEXT)(getProcAddr(\"glMatrixLoadTransposefEXT\"))\n\tgpMatrixLoaddEXT = (C.GPMATRIXLOADDEXT)(getProcAddr(\"glMatrixLoaddEXT\"))\n\tgpMatrixLoadfEXT = (C.GPMATRIXLOADFEXT)(getProcAddr(\"glMatrixLoadfEXT\"))\n\tgpMatrixMult3x2fNV = (C.GPMATRIXMULT3X2FNV)(getProcAddr(\"glMatrixMult3x2fNV\"))\n\tgpMatrixMult3x3fNV = (C.GPMATRIXMULT3X3FNV)(getProcAddr(\"glMatrixMult3x3fNV\"))\n\tgpMatrixMultTranspose3x3fNV = (C.GPMATRIXMULTTRANSPOSE3X3FNV)(getProcAddr(\"glMatrixMultTranspose3x3fNV\"))\n\tgpMatrixMultTransposedEXT = (C.GPMATRIXMULTTRANSPOSEDEXT)(getProcAddr(\"glMatrixMultTransposedEXT\"))\n\tgpMatrixMultTransposefEXT = (C.GPMATRIXMULTTRANSPOSEFEXT)(getProcAddr(\"glMatrixMultTransposefEXT\"))\n\tgpMatrixMultdEXT = (C.GPMATRIXMULTDEXT)(getProcAddr(\"glMatrixMultdEXT\"))\n\tgpMatrixMultfEXT = (C.GPMATRIXMULTFEXT)(getProcAddr(\"glMatrixMultfEXT\"))\n\tgpMatrixOrthoEXT = (C.GPMATRIXORTHOEXT)(getProcAddr(\"glMatrixOrthoEXT\"))\n\tgpMatrixPopEXT = (C.GPMATRIXPOPEXT)(getProcAddr(\"glMatrixPopEXT\"))\n\tgpMatrixPushEXT = (C.GPMATRIXPUSHEXT)(getProcAddr(\"glMatrixPushEXT\"))\n\tgpMatrixRotatedEXT = (C.GPMATRIXROTATEDEXT)(getProcAddr(\"glMatrixRotatedEXT\"))\n\tgpMatrixRotatefEXT = (C.GPMATRIXROTATEFEXT)(getProcAddr(\"glMatrixRotatefEXT\"))\n\tgpMatrixScaledEXT = (C.GPMATRIXSCALEDEXT)(getProcAddr(\"glMatrixScaledEXT\"))\n\tgpMatrixScalefEXT = (C.GPMATRIXSCALEFEXT)(getProcAddr(\"glMatrixScalefEXT\"))\n\tgpMatrixTranslatedEXT = (C.GPMATRIXTRANSLATEDEXT)(getProcAddr(\"glMatrixTranslatedEXT\"))\n\tgpMatrixTranslatefEXT = (C.GPMATRIXTRANSLATEFEXT)(getProcAddr(\"glMatrixTranslatefEXT\"))\n\tgpMaxShaderCompilerThreadsARB = (C.GPMAXSHADERCOMPILERTHREADSARB)(getProcAddr(\"glMaxShaderCompilerThreadsARB\"))\n\tgpMaxShaderCompilerThreadsKHR = (C.GPMAXSHADERCOMPILERTHREADSKHR)(getProcAddr(\"glMaxShaderCompilerThreadsKHR\"))\n\tgpMemoryBarrier = (C.GPMEMORYBARRIER)(getProcAddr(\"glMemoryBarrier\"))\n\tif gpMemoryBarrier == nil {\n\t\treturn errors.New(\"glMemoryBarrier\")\n\t}\n\tgpMemoryBarrierByRegion = (C.GPMEMORYBARRIERBYREGION)(getProcAddr(\"glMemoryBarrierByRegion\"))\n\tgpMinSampleShading = (C.GPMINSAMPLESHADING)(getProcAddr(\"glMinSampleShading\"))\n\tif gpMinSampleShading == nil {\n\t\treturn errors.New(\"glMinSampleShading\")\n\t}\n\tgpMinSampleShadingARB = (C.GPMINSAMPLESHADINGARB)(getProcAddr(\"glMinSampleShadingARB\"))\n\tgpMultiDrawArrays = (C.GPMULTIDRAWARRAYS)(getProcAddr(\"glMultiDrawArrays\"))\n\tif gpMultiDrawArrays == nil {\n\t\treturn errors.New(\"glMultiDrawArrays\")\n\t}\n\tgpMultiDrawArraysIndirect = (C.GPMULTIDRAWARRAYSINDIRECT)(getProcAddr(\"glMultiDrawArraysIndirect\"))\n\tgpMultiDrawArraysIndirectBindlessCountNV = (C.GPMULTIDRAWARRAYSINDIRECTBINDLESSCOUNTNV)(getProcAddr(\"glMultiDrawArraysIndirectBindlessCountNV\"))\n\tgpMultiDrawArraysIndirectBindlessNV = (C.GPMULTIDRAWARRAYSINDIRECTBINDLESSNV)(getProcAddr(\"glMultiDrawArraysIndirectBindlessNV\"))\n\tgpMultiDrawArraysIndirectCountARB = (C.GPMULTIDRAWARRAYSINDIRECTCOUNTARB)(getProcAddr(\"glMultiDrawArraysIndirectCountARB\"))\n\tgpMultiDrawElements = (C.GPMULTIDRAWELEMENTS)(getProcAddr(\"glMultiDrawElements\"))\n\tif gpMultiDrawElements == nil {\n\t\treturn errors.New(\"glMultiDrawElements\")\n\t}\n\tgpMultiDrawElementsBaseVertex = (C.GPMULTIDRAWELEMENTSBASEVERTEX)(getProcAddr(\"glMultiDrawElementsBaseVertex\"))\n\tif gpMultiDrawElementsBaseVertex == nil {\n\t\treturn errors.New(\"glMultiDrawElementsBaseVertex\")\n\t}\n\tgpMultiDrawElementsIndirect = (C.GPMULTIDRAWELEMENTSINDIRECT)(getProcAddr(\"glMultiDrawElementsIndirect\"))\n\tgpMultiDrawElementsIndirectBindlessCountNV = (C.GPMULTIDRAWELEMENTSINDIRECTBINDLESSCOUNTNV)(getProcAddr(\"glMultiDrawElementsIndirectBindlessCountNV\"))\n\tgpMultiDrawElementsIndirectBindlessNV = (C.GPMULTIDRAWELEMENTSINDIRECTBINDLESSNV)(getProcAddr(\"glMultiDrawElementsIndirectBindlessNV\"))\n\tgpMultiDrawElementsIndirectCountARB = (C.GPMULTIDRAWELEMENTSINDIRECTCOUNTARB)(getProcAddr(\"glMultiDrawElementsIndirectCountARB\"))\n\tgpMultiDrawMeshTasksIndirectCountNV = (C.GPMULTIDRAWMESHTASKSINDIRECTCOUNTNV)(getProcAddr(\"glMultiDrawMeshTasksIndirectCountNV\"))\n\tgpMultiDrawMeshTasksIndirectNV = (C.GPMULTIDRAWMESHTASKSINDIRECTNV)(getProcAddr(\"glMultiDrawMeshTasksIndirectNV\"))\n\tgpMultiTexBufferEXT = (C.GPMULTITEXBUFFEREXT)(getProcAddr(\"glMultiTexBufferEXT\"))\n\tgpMultiTexCoordPointerEXT = (C.GPMULTITEXCOORDPOINTEREXT)(getProcAddr(\"glMultiTexCoordPointerEXT\"))\n\tgpMultiTexEnvfEXT = (C.GPMULTITEXENVFEXT)(getProcAddr(\"glMultiTexEnvfEXT\"))\n\tgpMultiTexEnvfvEXT = (C.GPMULTITEXENVFVEXT)(getProcAddr(\"glMultiTexEnvfvEXT\"))\n\tgpMultiTexEnviEXT = (C.GPMULTITEXENVIEXT)(getProcAddr(\"glMultiTexEnviEXT\"))\n\tgpMultiTexEnvivEXT = (C.GPMULTITEXENVIVEXT)(getProcAddr(\"glMultiTexEnvivEXT\"))\n\tgpMultiTexGendEXT = (C.GPMULTITEXGENDEXT)(getProcAddr(\"glMultiTexGendEXT\"))\n\tgpMultiTexGendvEXT = (C.GPMULTITEXGENDVEXT)(getProcAddr(\"glMultiTexGendvEXT\"))\n\tgpMultiTexGenfEXT = (C.GPMULTITEXGENFEXT)(getProcAddr(\"glMultiTexGenfEXT\"))\n\tgpMultiTexGenfvEXT = (C.GPMULTITEXGENFVEXT)(getProcAddr(\"glMultiTexGenfvEXT\"))\n\tgpMultiTexGeniEXT = (C.GPMULTITEXGENIEXT)(getProcAddr(\"glMultiTexGeniEXT\"))\n\tgpMultiTexGenivEXT = (C.GPMULTITEXGENIVEXT)(getProcAddr(\"glMultiTexGenivEXT\"))\n\tgpMultiTexImage1DEXT = (C.GPMULTITEXIMAGE1DEXT)(getProcAddr(\"glMultiTexImage1DEXT\"))\n\tgpMultiTexImage2DEXT = (C.GPMULTITEXIMAGE2DEXT)(getProcAddr(\"glMultiTexImage2DEXT\"))\n\tgpMultiTexImage3DEXT = (C.GPMULTITEXIMAGE3DEXT)(getProcAddr(\"glMultiTexImage3DEXT\"))\n\tgpMultiTexParameterIivEXT = (C.GPMULTITEXPARAMETERIIVEXT)(getProcAddr(\"glMultiTexParameterIivEXT\"))\n\tgpMultiTexParameterIuivEXT = (C.GPMULTITEXPARAMETERIUIVEXT)(getProcAddr(\"glMultiTexParameterIuivEXT\"))\n\tgpMultiTexParameterfEXT = (C.GPMULTITEXPARAMETERFEXT)(getProcAddr(\"glMultiTexParameterfEXT\"))\n\tgpMultiTexParameterfvEXT = (C.GPMULTITEXPARAMETERFVEXT)(getProcAddr(\"glMultiTexParameterfvEXT\"))\n\tgpMultiTexParameteriEXT = (C.GPMULTITEXPARAMETERIEXT)(getProcAddr(\"glMultiTexParameteriEXT\"))\n\tgpMultiTexParameterivEXT = (C.GPMULTITEXPARAMETERIVEXT)(getProcAddr(\"glMultiTexParameterivEXT\"))\n\tgpMultiTexRenderbufferEXT = (C.GPMULTITEXRENDERBUFFEREXT)(getProcAddr(\"glMultiTexRenderbufferEXT\"))\n\tgpMultiTexSubImage1DEXT = (C.GPMULTITEXSUBIMAGE1DEXT)(getProcAddr(\"glMultiTexSubImage1DEXT\"))\n\tgpMultiTexSubImage2DEXT = (C.GPMULTITEXSUBIMAGE2DEXT)(getProcAddr(\"glMultiTexSubImage2DEXT\"))\n\tgpMultiTexSubImage3DEXT = (C.GPMULTITEXSUBIMAGE3DEXT)(getProcAddr(\"glMultiTexSubImage3DEXT\"))\n\tgpNamedBufferAttachMemoryNV = (C.GPNAMEDBUFFERATTACHMEMORYNV)(getProcAddr(\"glNamedBufferAttachMemoryNV\"))\n\tgpNamedBufferData = (C.GPNAMEDBUFFERDATA)(getProcAddr(\"glNamedBufferData\"))\n\tgpNamedBufferDataEXT = (C.GPNAMEDBUFFERDATAEXT)(getProcAddr(\"glNamedBufferDataEXT\"))\n\tgpNamedBufferPageCommitmentARB = (C.GPNAMEDBUFFERPAGECOMMITMENTARB)(getProcAddr(\"glNamedBufferPageCommitmentARB\"))\n\tgpNamedBufferPageCommitmentEXT = (C.GPNAMEDBUFFERPAGECOMMITMENTEXT)(getProcAddr(\"glNamedBufferPageCommitmentEXT\"))\n\tgpNamedBufferPageCommitmentMemNV = (C.GPNAMEDBUFFERPAGECOMMITMENTMEMNV)(getProcAddr(\"glNamedBufferPageCommitmentMemNV\"))\n\tgpNamedBufferStorage = (C.GPNAMEDBUFFERSTORAGE)(getProcAddr(\"glNamedBufferStorage\"))\n\tgpNamedBufferStorageEXT = (C.GPNAMEDBUFFERSTORAGEEXT)(getProcAddr(\"glNamedBufferStorageEXT\"))\n\tgpNamedBufferSubData = (C.GPNAMEDBUFFERSUBDATA)(getProcAddr(\"glNamedBufferSubData\"))\n\tgpNamedBufferSubDataEXT = (C.GPNAMEDBUFFERSUBDATAEXT)(getProcAddr(\"glNamedBufferSubDataEXT\"))\n\tgpNamedCopyBufferSubDataEXT = (C.GPNAMEDCOPYBUFFERSUBDATAEXT)(getProcAddr(\"glNamedCopyBufferSubDataEXT\"))\n\tgpNamedFramebufferDrawBuffer = (C.GPNAMEDFRAMEBUFFERDRAWBUFFER)(getProcAddr(\"glNamedFramebufferDrawBuffer\"))\n\tgpNamedFramebufferDrawBuffers = (C.GPNAMEDFRAMEBUFFERDRAWBUFFERS)(getProcAddr(\"glNamedFramebufferDrawBuffers\"))\n\tgpNamedFramebufferParameteri = (C.GPNAMEDFRAMEBUFFERPARAMETERI)(getProcAddr(\"glNamedFramebufferParameteri\"))\n\tgpNamedFramebufferParameteriEXT = (C.GPNAMEDFRAMEBUFFERPARAMETERIEXT)(getProcAddr(\"glNamedFramebufferParameteriEXT\"))\n\tgpNamedFramebufferReadBuffer = (C.GPNAMEDFRAMEBUFFERREADBUFFER)(getProcAddr(\"glNamedFramebufferReadBuffer\"))\n\tgpNamedFramebufferRenderbuffer = (C.GPNAMEDFRAMEBUFFERRENDERBUFFER)(getProcAddr(\"glNamedFramebufferRenderbuffer\"))\n\tgpNamedFramebufferRenderbufferEXT = (C.GPNAMEDFRAMEBUFFERRENDERBUFFEREXT)(getProcAddr(\"glNamedFramebufferRenderbufferEXT\"))\n\tgpNamedFramebufferSampleLocationsfvARB = (C.GPNAMEDFRAMEBUFFERSAMPLELOCATIONSFVARB)(getProcAddr(\"glNamedFramebufferSampleLocationsfvARB\"))\n\tgpNamedFramebufferSampleLocationsfvNV = (C.GPNAMEDFRAMEBUFFERSAMPLELOCATIONSFVNV)(getProcAddr(\"glNamedFramebufferSampleLocationsfvNV\"))\n\tgpNamedFramebufferTexture = (C.GPNAMEDFRAMEBUFFERTEXTURE)(getProcAddr(\"glNamedFramebufferTexture\"))\n\tgpNamedFramebufferTexture1DEXT = (C.GPNAMEDFRAMEBUFFERTEXTURE1DEXT)(getProcAddr(\"glNamedFramebufferTexture1DEXT\"))\n\tgpNamedFramebufferTexture2DEXT = (C.GPNAMEDFRAMEBUFFERTEXTURE2DEXT)(getProcAddr(\"glNamedFramebufferTexture2DEXT\"))\n\tgpNamedFramebufferTexture3DEXT = (C.GPNAMEDFRAMEBUFFERTEXTURE3DEXT)(getProcAddr(\"glNamedFramebufferTexture3DEXT\"))\n\tgpNamedFramebufferTextureEXT = (C.GPNAMEDFRAMEBUFFERTEXTUREEXT)(getProcAddr(\"glNamedFramebufferTextureEXT\"))\n\tgpNamedFramebufferTextureFaceEXT = (C.GPNAMEDFRAMEBUFFERTEXTUREFACEEXT)(getProcAddr(\"glNamedFramebufferTextureFaceEXT\"))\n\tgpNamedFramebufferTextureLayer = (C.GPNAMEDFRAMEBUFFERTEXTURELAYER)(getProcAddr(\"glNamedFramebufferTextureLayer\"))\n\tgpNamedFramebufferTextureLayerEXT = (C.GPNAMEDFRAMEBUFFERTEXTURELAYEREXT)(getProcAddr(\"glNamedFramebufferTextureLayerEXT\"))\n\tgpNamedProgramLocalParameter4dEXT = (C.GPNAMEDPROGRAMLOCALPARAMETER4DEXT)(getProcAddr(\"glNamedProgramLocalParameter4dEXT\"))\n\tgpNamedProgramLocalParameter4dvEXT = (C.GPNAMEDPROGRAMLOCALPARAMETER4DVEXT)(getProcAddr(\"glNamedProgramLocalParameter4dvEXT\"))\n\tgpNamedProgramLocalParameter4fEXT = (C.GPNAMEDPROGRAMLOCALPARAMETER4FEXT)(getProcAddr(\"glNamedProgramLocalParameter4fEXT\"))\n\tgpNamedProgramLocalParameter4fvEXT = (C.GPNAMEDPROGRAMLOCALPARAMETER4FVEXT)(getProcAddr(\"glNamedProgramLocalParameter4fvEXT\"))\n\tgpNamedProgramLocalParameterI4iEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERI4IEXT)(getProcAddr(\"glNamedProgramLocalParameterI4iEXT\"))\n\tgpNamedProgramLocalParameterI4ivEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERI4IVEXT)(getProcAddr(\"glNamedProgramLocalParameterI4ivEXT\"))\n\tgpNamedProgramLocalParameterI4uiEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERI4UIEXT)(getProcAddr(\"glNamedProgramLocalParameterI4uiEXT\"))\n\tgpNamedProgramLocalParameterI4uivEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERI4UIVEXT)(getProcAddr(\"glNamedProgramLocalParameterI4uivEXT\"))\n\tgpNamedProgramLocalParameters4fvEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERS4FVEXT)(getProcAddr(\"glNamedProgramLocalParameters4fvEXT\"))\n\tgpNamedProgramLocalParametersI4ivEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERSI4IVEXT)(getProcAddr(\"glNamedProgramLocalParametersI4ivEXT\"))\n\tgpNamedProgramLocalParametersI4uivEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERSI4UIVEXT)(getProcAddr(\"glNamedProgramLocalParametersI4uivEXT\"))\n\tgpNamedProgramStringEXT = (C.GPNAMEDPROGRAMSTRINGEXT)(getProcAddr(\"glNamedProgramStringEXT\"))\n\tgpNamedRenderbufferStorage = (C.GPNAMEDRENDERBUFFERSTORAGE)(getProcAddr(\"glNamedRenderbufferStorage\"))\n\tgpNamedRenderbufferStorageEXT = (C.GPNAMEDRENDERBUFFERSTORAGEEXT)(getProcAddr(\"glNamedRenderbufferStorageEXT\"))\n\tgpNamedRenderbufferStorageMultisample = (C.GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLE)(getProcAddr(\"glNamedRenderbufferStorageMultisample\"))\n\tgpNamedRenderbufferStorageMultisampleAdvancedAMD = (C.GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMD)(getProcAddr(\"glNamedRenderbufferStorageMultisampleAdvancedAMD\"))\n\tgpNamedRenderbufferStorageMultisampleCoverageEXT = (C.GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXT)(getProcAddr(\"glNamedRenderbufferStorageMultisampleCoverageEXT\"))\n\tgpNamedRenderbufferStorageMultisampleEXT = (C.GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXT)(getProcAddr(\"glNamedRenderbufferStorageMultisampleEXT\"))\n\tgpNamedStringARB = (C.GPNAMEDSTRINGARB)(getProcAddr(\"glNamedStringARB\"))\n\tgpNormalFormatNV = (C.GPNORMALFORMATNV)(getProcAddr(\"glNormalFormatNV\"))\n\tgpObjectLabel = (C.GPOBJECTLABEL)(getProcAddr(\"glObjectLabel\"))\n\tgpObjectLabelKHR = (C.GPOBJECTLABELKHR)(getProcAddr(\"glObjectLabelKHR\"))\n\tgpObjectPtrLabel = (C.GPOBJECTPTRLABEL)(getProcAddr(\"glObjectPtrLabel\"))\n\tgpObjectPtrLabelKHR = (C.GPOBJECTPTRLABELKHR)(getProcAddr(\"glObjectPtrLabelKHR\"))\n\tgpPatchParameterfv = (C.GPPATCHPARAMETERFV)(getProcAddr(\"glPatchParameterfv\"))\n\tif gpPatchParameterfv == nil {\n\t\treturn errors.New(\"glPatchParameterfv\")\n\t}\n\tgpPatchParameteri = (C.GPPATCHPARAMETERI)(getProcAddr(\"glPatchParameteri\"))\n\tif gpPatchParameteri == nil {\n\t\treturn errors.New(\"glPatchParameteri\")\n\t}\n\tgpPathCommandsNV = (C.GPPATHCOMMANDSNV)(getProcAddr(\"glPathCommandsNV\"))\n\tgpPathCoordsNV = (C.GPPATHCOORDSNV)(getProcAddr(\"glPathCoordsNV\"))\n\tgpPathCoverDepthFuncNV = (C.GPPATHCOVERDEPTHFUNCNV)(getProcAddr(\"glPathCoverDepthFuncNV\"))\n\tgpPathDashArrayNV = (C.GPPATHDASHARRAYNV)(getProcAddr(\"glPathDashArrayNV\"))\n\tgpPathGlyphIndexArrayNV = (C.GPPATHGLYPHINDEXARRAYNV)(getProcAddr(\"glPathGlyphIndexArrayNV\"))\n\tgpPathGlyphIndexRangeNV = (C.GPPATHGLYPHINDEXRANGENV)(getProcAddr(\"glPathGlyphIndexRangeNV\"))\n\tgpPathGlyphRangeNV = (C.GPPATHGLYPHRANGENV)(getProcAddr(\"glPathGlyphRangeNV\"))\n\tgpPathGlyphsNV = (C.GPPATHGLYPHSNV)(getProcAddr(\"glPathGlyphsNV\"))\n\tgpPathMemoryGlyphIndexArrayNV = (C.GPPATHMEMORYGLYPHINDEXARRAYNV)(getProcAddr(\"glPathMemoryGlyphIndexArrayNV\"))\n\tgpPathParameterfNV = (C.GPPATHPARAMETERFNV)(getProcAddr(\"glPathParameterfNV\"))\n\tgpPathParameterfvNV = (C.GPPATHPARAMETERFVNV)(getProcAddr(\"glPathParameterfvNV\"))\n\tgpPathParameteriNV = (C.GPPATHPARAMETERINV)(getProcAddr(\"glPathParameteriNV\"))\n\tgpPathParameterivNV = (C.GPPATHPARAMETERIVNV)(getProcAddr(\"glPathParameterivNV\"))\n\tgpPathStencilDepthOffsetNV = (C.GPPATHSTENCILDEPTHOFFSETNV)(getProcAddr(\"glPathStencilDepthOffsetNV\"))\n\tgpPathStencilFuncNV = (C.GPPATHSTENCILFUNCNV)(getProcAddr(\"glPathStencilFuncNV\"))\n\tgpPathStringNV = (C.GPPATHSTRINGNV)(getProcAddr(\"glPathStringNV\"))\n\tgpPathSubCommandsNV = (C.GPPATHSUBCOMMANDSNV)(getProcAddr(\"glPathSubCommandsNV\"))\n\tgpPathSubCoordsNV = (C.GPPATHSUBCOORDSNV)(getProcAddr(\"glPathSubCoordsNV\"))\n\tgpPauseTransformFeedback = (C.GPPAUSETRANSFORMFEEDBACK)(getProcAddr(\"glPauseTransformFeedback\"))\n\tif gpPauseTransformFeedback == nil {\n\t\treturn errors.New(\"glPauseTransformFeedback\")\n\t}\n\tgpPixelStoref = (C.GPPIXELSTOREF)(getProcAddr(\"glPixelStoref\"))\n\tif gpPixelStoref == nil {\n\t\treturn errors.New(\"glPixelStoref\")\n\t}\n\tgpPixelStorei = (C.GPPIXELSTOREI)(getProcAddr(\"glPixelStorei\"))\n\tif gpPixelStorei == nil {\n\t\treturn errors.New(\"glPixelStorei\")\n\t}\n\tgpPointAlongPathNV = (C.GPPOINTALONGPATHNV)(getProcAddr(\"glPointAlongPathNV\"))\n\tgpPointParameterf = (C.GPPOINTPARAMETERF)(getProcAddr(\"glPointParameterf\"))\n\tif gpPointParameterf == nil {\n\t\treturn errors.New(\"glPointParameterf\")\n\t}\n\tgpPointParameterfv = (C.GPPOINTPARAMETERFV)(getProcAddr(\"glPointParameterfv\"))\n\tif gpPointParameterfv == nil {\n\t\treturn errors.New(\"glPointParameterfv\")\n\t}\n\tgpPointParameteri = (C.GPPOINTPARAMETERI)(getProcAddr(\"glPointParameteri\"))\n\tif gpPointParameteri == nil {\n\t\treturn errors.New(\"glPointParameteri\")\n\t}\n\tgpPointParameteriv = (C.GPPOINTPARAMETERIV)(getProcAddr(\"glPointParameteriv\"))\n\tif gpPointParameteriv == nil {\n\t\treturn errors.New(\"glPointParameteriv\")\n\t}\n\tgpPointSize = (C.GPPOINTSIZE)(getProcAddr(\"glPointSize\"))\n\tif gpPointSize == nil {\n\t\treturn errors.New(\"glPointSize\")\n\t}\n\tgpPolygonMode = (C.GPPOLYGONMODE)(getProcAddr(\"glPolygonMode\"))\n\tif gpPolygonMode == nil {\n\t\treturn errors.New(\"glPolygonMode\")\n\t}\n\tgpPolygonOffset = (C.GPPOLYGONOFFSET)(getProcAddr(\"glPolygonOffset\"))\n\tif gpPolygonOffset == nil {\n\t\treturn errors.New(\"glPolygonOffset\")\n\t}\n\tgpPolygonOffsetClamp = (C.GPPOLYGONOFFSETCLAMP)(getProcAddr(\"glPolygonOffsetClamp\"))\n\tgpPolygonOffsetClampEXT = (C.GPPOLYGONOFFSETCLAMPEXT)(getProcAddr(\"glPolygonOffsetClampEXT\"))\n\tgpPopDebugGroup = (C.GPPOPDEBUGGROUP)(getProcAddr(\"glPopDebugGroup\"))\n\tgpPopDebugGroupKHR = (C.GPPOPDEBUGGROUPKHR)(getProcAddr(\"glPopDebugGroupKHR\"))\n\tgpPopGroupMarkerEXT = (C.GPPOPGROUPMARKEREXT)(getProcAddr(\"glPopGroupMarkerEXT\"))\n\tgpPrimitiveBoundingBoxARB = (C.GPPRIMITIVEBOUNDINGBOXARB)(getProcAddr(\"glPrimitiveBoundingBoxARB\"))\n\tgpPrimitiveRestartIndex = (C.GPPRIMITIVERESTARTINDEX)(getProcAddr(\"glPrimitiveRestartIndex\"))\n\tif gpPrimitiveRestartIndex == nil {\n\t\treturn errors.New(\"glPrimitiveRestartIndex\")\n\t}\n\tgpProgramBinary = (C.GPPROGRAMBINARY)(getProcAddr(\"glProgramBinary\"))\n\tif gpProgramBinary == nil {\n\t\treturn errors.New(\"glProgramBinary\")\n\t}\n\tgpProgramParameteri = (C.GPPROGRAMPARAMETERI)(getProcAddr(\"glProgramParameteri\"))\n\tif gpProgramParameteri == nil {\n\t\treturn errors.New(\"glProgramParameteri\")\n\t}\n\tgpProgramParameteriARB = (C.GPPROGRAMPARAMETERIARB)(getProcAddr(\"glProgramParameteriARB\"))\n\tgpProgramParameteriEXT = (C.GPPROGRAMPARAMETERIEXT)(getProcAddr(\"glProgramParameteriEXT\"))\n\tgpProgramPathFragmentInputGenNV = (C.GPPROGRAMPATHFRAGMENTINPUTGENNV)(getProcAddr(\"glProgramPathFragmentInputGenNV\"))\n\tgpProgramUniform1d = (C.GPPROGRAMUNIFORM1D)(getProcAddr(\"glProgramUniform1d\"))\n\tif gpProgramUniform1d == nil {\n\t\treturn errors.New(\"glProgramUniform1d\")\n\t}\n\tgpProgramUniform1dEXT = (C.GPPROGRAMUNIFORM1DEXT)(getProcAddr(\"glProgramUniform1dEXT\"))\n\tgpProgramUniform1dv = (C.GPPROGRAMUNIFORM1DV)(getProcAddr(\"glProgramUniform1dv\"))\n\tif gpProgramUniform1dv == nil {\n\t\treturn errors.New(\"glProgramUniform1dv\")\n\t}\n\tgpProgramUniform1dvEXT = (C.GPPROGRAMUNIFORM1DVEXT)(getProcAddr(\"glProgramUniform1dvEXT\"))\n\tgpProgramUniform1f = (C.GPPROGRAMUNIFORM1F)(getProcAddr(\"glProgramUniform1f\"))\n\tif gpProgramUniform1f == nil {\n\t\treturn errors.New(\"glProgramUniform1f\")\n\t}\n\tgpProgramUniform1fEXT = (C.GPPROGRAMUNIFORM1FEXT)(getProcAddr(\"glProgramUniform1fEXT\"))\n\tgpProgramUniform1fv = (C.GPPROGRAMUNIFORM1FV)(getProcAddr(\"glProgramUniform1fv\"))\n\tif gpProgramUniform1fv == nil {\n\t\treturn errors.New(\"glProgramUniform1fv\")\n\t}\n\tgpProgramUniform1fvEXT = (C.GPPROGRAMUNIFORM1FVEXT)(getProcAddr(\"glProgramUniform1fvEXT\"))\n\tgpProgramUniform1i = (C.GPPROGRAMUNIFORM1I)(getProcAddr(\"glProgramUniform1i\"))\n\tif gpProgramUniform1i == nil {\n\t\treturn errors.New(\"glProgramUniform1i\")\n\t}\n\tgpProgramUniform1i64ARB = (C.GPPROGRAMUNIFORM1I64ARB)(getProcAddr(\"glProgramUniform1i64ARB\"))\n\tgpProgramUniform1i64NV = (C.GPPROGRAMUNIFORM1I64NV)(getProcAddr(\"glProgramUniform1i64NV\"))\n\tgpProgramUniform1i64vARB = (C.GPPROGRAMUNIFORM1I64VARB)(getProcAddr(\"glProgramUniform1i64vARB\"))\n\tgpProgramUniform1i64vNV = (C.GPPROGRAMUNIFORM1I64VNV)(getProcAddr(\"glProgramUniform1i64vNV\"))\n\tgpProgramUniform1iEXT = (C.GPPROGRAMUNIFORM1IEXT)(getProcAddr(\"glProgramUniform1iEXT\"))\n\tgpProgramUniform1iv = (C.GPPROGRAMUNIFORM1IV)(getProcAddr(\"glProgramUniform1iv\"))\n\tif gpProgramUniform1iv == nil {\n\t\treturn errors.New(\"glProgramUniform1iv\")\n\t}\n\tgpProgramUniform1ivEXT = (C.GPPROGRAMUNIFORM1IVEXT)(getProcAddr(\"glProgramUniform1ivEXT\"))\n\tgpProgramUniform1ui = (C.GPPROGRAMUNIFORM1UI)(getProcAddr(\"glProgramUniform1ui\"))\n\tif gpProgramUniform1ui == nil {\n\t\treturn errors.New(\"glProgramUniform1ui\")\n\t}\n\tgpProgramUniform1ui64ARB = (C.GPPROGRAMUNIFORM1UI64ARB)(getProcAddr(\"glProgramUniform1ui64ARB\"))\n\tgpProgramUniform1ui64NV = (C.GPPROGRAMUNIFORM1UI64NV)(getProcAddr(\"glProgramUniform1ui64NV\"))\n\tgpProgramUniform1ui64vARB = (C.GPPROGRAMUNIFORM1UI64VARB)(getProcAddr(\"glProgramUniform1ui64vARB\"))\n\tgpProgramUniform1ui64vNV = (C.GPPROGRAMUNIFORM1UI64VNV)(getProcAddr(\"glProgramUniform1ui64vNV\"))\n\tgpProgramUniform1uiEXT = (C.GPPROGRAMUNIFORM1UIEXT)(getProcAddr(\"glProgramUniform1uiEXT\"))\n\tgpProgramUniform1uiv = (C.GPPROGRAMUNIFORM1UIV)(getProcAddr(\"glProgramUniform1uiv\"))\n\tif gpProgramUniform1uiv == nil {\n\t\treturn errors.New(\"glProgramUniform1uiv\")\n\t}\n\tgpProgramUniform1uivEXT = (C.GPPROGRAMUNIFORM1UIVEXT)(getProcAddr(\"glProgramUniform1uivEXT\"))\n\tgpProgramUniform2d = (C.GPPROGRAMUNIFORM2D)(getProcAddr(\"glProgramUniform2d\"))\n\tif gpProgramUniform2d == nil {\n\t\treturn errors.New(\"glProgramUniform2d\")\n\t}\n\tgpProgramUniform2dEXT = (C.GPPROGRAMUNIFORM2DEXT)(getProcAddr(\"glProgramUniform2dEXT\"))\n\tgpProgramUniform2dv = (C.GPPROGRAMUNIFORM2DV)(getProcAddr(\"glProgramUniform2dv\"))\n\tif gpProgramUniform2dv == nil {\n\t\treturn errors.New(\"glProgramUniform2dv\")\n\t}\n\tgpProgramUniform2dvEXT = (C.GPPROGRAMUNIFORM2DVEXT)(getProcAddr(\"glProgramUniform2dvEXT\"))\n\tgpProgramUniform2f = (C.GPPROGRAMUNIFORM2F)(getProcAddr(\"glProgramUniform2f\"))\n\tif gpProgramUniform2f == nil {\n\t\treturn errors.New(\"glProgramUniform2f\")\n\t}\n\tgpProgramUniform2fEXT = (C.GPPROGRAMUNIFORM2FEXT)(getProcAddr(\"glProgramUniform2fEXT\"))\n\tgpProgramUniform2fv = (C.GPPROGRAMUNIFORM2FV)(getProcAddr(\"glProgramUniform2fv\"))\n\tif gpProgramUniform2fv == nil {\n\t\treturn errors.New(\"glProgramUniform2fv\")\n\t}\n\tgpProgramUniform2fvEXT = (C.GPPROGRAMUNIFORM2FVEXT)(getProcAddr(\"glProgramUniform2fvEXT\"))\n\tgpProgramUniform2i = (C.GPPROGRAMUNIFORM2I)(getProcAddr(\"glProgramUniform2i\"))\n\tif gpProgramUniform2i == nil {\n\t\treturn errors.New(\"glProgramUniform2i\")\n\t}\n\tgpProgramUniform2i64ARB = (C.GPPROGRAMUNIFORM2I64ARB)(getProcAddr(\"glProgramUniform2i64ARB\"))\n\tgpProgramUniform2i64NV = (C.GPPROGRAMUNIFORM2I64NV)(getProcAddr(\"glProgramUniform2i64NV\"))\n\tgpProgramUniform2i64vARB = (C.GPPROGRAMUNIFORM2I64VARB)(getProcAddr(\"glProgramUniform2i64vARB\"))\n\tgpProgramUniform2i64vNV = (C.GPPROGRAMUNIFORM2I64VNV)(getProcAddr(\"glProgramUniform2i64vNV\"))\n\tgpProgramUniform2iEXT = (C.GPPROGRAMUNIFORM2IEXT)(getProcAddr(\"glProgramUniform2iEXT\"))\n\tgpProgramUniform2iv = (C.GPPROGRAMUNIFORM2IV)(getProcAddr(\"glProgramUniform2iv\"))\n\tif gpProgramUniform2iv == nil {\n\t\treturn errors.New(\"glProgramUniform2iv\")\n\t}\n\tgpProgramUniform2ivEXT = (C.GPPROGRAMUNIFORM2IVEXT)(getProcAddr(\"glProgramUniform2ivEXT\"))\n\tgpProgramUniform2ui = (C.GPPROGRAMUNIFORM2UI)(getProcAddr(\"glProgramUniform2ui\"))\n\tif gpProgramUniform2ui == nil {\n\t\treturn errors.New(\"glProgramUniform2ui\")\n\t}\n\tgpProgramUniform2ui64ARB = (C.GPPROGRAMUNIFORM2UI64ARB)(getProcAddr(\"glProgramUniform2ui64ARB\"))\n\tgpProgramUniform2ui64NV = (C.GPPROGRAMUNIFORM2UI64NV)(getProcAddr(\"glProgramUniform2ui64NV\"))\n\tgpProgramUniform2ui64vARB = (C.GPPROGRAMUNIFORM2UI64VARB)(getProcAddr(\"glProgramUniform2ui64vARB\"))\n\tgpProgramUniform2ui64vNV = (C.GPPROGRAMUNIFORM2UI64VNV)(getProcAddr(\"glProgramUniform2ui64vNV\"))\n\tgpProgramUniform2uiEXT = (C.GPPROGRAMUNIFORM2UIEXT)(getProcAddr(\"glProgramUniform2uiEXT\"))\n\tgpProgramUniform2uiv = (C.GPPROGRAMUNIFORM2UIV)(getProcAddr(\"glProgramUniform2uiv\"))\n\tif gpProgramUniform2uiv == nil {\n\t\treturn errors.New(\"glProgramUniform2uiv\")\n\t}\n\tgpProgramUniform2uivEXT = (C.GPPROGRAMUNIFORM2UIVEXT)(getProcAddr(\"glProgramUniform2uivEXT\"))\n\tgpProgramUniform3d = (C.GPPROGRAMUNIFORM3D)(getProcAddr(\"glProgramUniform3d\"))\n\tif gpProgramUniform3d == nil {\n\t\treturn errors.New(\"glProgramUniform3d\")\n\t}\n\tgpProgramUniform3dEXT = (C.GPPROGRAMUNIFORM3DEXT)(getProcAddr(\"glProgramUniform3dEXT\"))\n\tgpProgramUniform3dv = (C.GPPROGRAMUNIFORM3DV)(getProcAddr(\"glProgramUniform3dv\"))\n\tif gpProgramUniform3dv == nil {\n\t\treturn errors.New(\"glProgramUniform3dv\")\n\t}\n\tgpProgramUniform3dvEXT = (C.GPPROGRAMUNIFORM3DVEXT)(getProcAddr(\"glProgramUniform3dvEXT\"))\n\tgpProgramUniform3f = (C.GPPROGRAMUNIFORM3F)(getProcAddr(\"glProgramUniform3f\"))\n\tif gpProgramUniform3f == nil {\n\t\treturn errors.New(\"glProgramUniform3f\")\n\t}\n\tgpProgramUniform3fEXT = (C.GPPROGRAMUNIFORM3FEXT)(getProcAddr(\"glProgramUniform3fEXT\"))\n\tgpProgramUniform3fv = (C.GPPROGRAMUNIFORM3FV)(getProcAddr(\"glProgramUniform3fv\"))\n\tif gpProgramUniform3fv == nil {\n\t\treturn errors.New(\"glProgramUniform3fv\")\n\t}\n\tgpProgramUniform3fvEXT = (C.GPPROGRAMUNIFORM3FVEXT)(getProcAddr(\"glProgramUniform3fvEXT\"))\n\tgpProgramUniform3i = (C.GPPROGRAMUNIFORM3I)(getProcAddr(\"glProgramUniform3i\"))\n\tif gpProgramUniform3i == nil {\n\t\treturn errors.New(\"glProgramUniform3i\")\n\t}\n\tgpProgramUniform3i64ARB = (C.GPPROGRAMUNIFORM3I64ARB)(getProcAddr(\"glProgramUniform3i64ARB\"))\n\tgpProgramUniform3i64NV = (C.GPPROGRAMUNIFORM3I64NV)(getProcAddr(\"glProgramUniform3i64NV\"))\n\tgpProgramUniform3i64vARB = (C.GPPROGRAMUNIFORM3I64VARB)(getProcAddr(\"glProgramUniform3i64vARB\"))\n\tgpProgramUniform3i64vNV = (C.GPPROGRAMUNIFORM3I64VNV)(getProcAddr(\"glProgramUniform3i64vNV\"))\n\tgpProgramUniform3iEXT = (C.GPPROGRAMUNIFORM3IEXT)(getProcAddr(\"glProgramUniform3iEXT\"))\n\tgpProgramUniform3iv = (C.GPPROGRAMUNIFORM3IV)(getProcAddr(\"glProgramUniform3iv\"))\n\tif gpProgramUniform3iv == nil {\n\t\treturn errors.New(\"glProgramUniform3iv\")\n\t}\n\tgpProgramUniform3ivEXT = (C.GPPROGRAMUNIFORM3IVEXT)(getProcAddr(\"glProgramUniform3ivEXT\"))\n\tgpProgramUniform3ui = (C.GPPROGRAMUNIFORM3UI)(getProcAddr(\"glProgramUniform3ui\"))\n\tif gpProgramUniform3ui == nil {\n\t\treturn errors.New(\"glProgramUniform3ui\")\n\t}\n\tgpProgramUniform3ui64ARB = (C.GPPROGRAMUNIFORM3UI64ARB)(getProcAddr(\"glProgramUniform3ui64ARB\"))\n\tgpProgramUniform3ui64NV = (C.GPPROGRAMUNIFORM3UI64NV)(getProcAddr(\"glProgramUniform3ui64NV\"))\n\tgpProgramUniform3ui64vARB = (C.GPPROGRAMUNIFORM3UI64VARB)(getProcAddr(\"glProgramUniform3ui64vARB\"))\n\tgpProgramUniform3ui64vNV = (C.GPPROGRAMUNIFORM3UI64VNV)(getProcAddr(\"glProgramUniform3ui64vNV\"))\n\tgpProgramUniform3uiEXT = (C.GPPROGRAMUNIFORM3UIEXT)(getProcAddr(\"glProgramUniform3uiEXT\"))\n\tgpProgramUniform3uiv = (C.GPPROGRAMUNIFORM3UIV)(getProcAddr(\"glProgramUniform3uiv\"))\n\tif gpProgramUniform3uiv == nil {\n\t\treturn errors.New(\"glProgramUniform3uiv\")\n\t}\n\tgpProgramUniform3uivEXT = (C.GPPROGRAMUNIFORM3UIVEXT)(getProcAddr(\"glProgramUniform3uivEXT\"))\n\tgpProgramUniform4d = (C.GPPROGRAMUNIFORM4D)(getProcAddr(\"glProgramUniform4d\"))\n\tif gpProgramUniform4d == nil {\n\t\treturn errors.New(\"glProgramUniform4d\")\n\t}\n\tgpProgramUniform4dEXT = (C.GPPROGRAMUNIFORM4DEXT)(getProcAddr(\"glProgramUniform4dEXT\"))\n\tgpProgramUniform4dv = (C.GPPROGRAMUNIFORM4DV)(getProcAddr(\"glProgramUniform4dv\"))\n\tif gpProgramUniform4dv == nil {\n\t\treturn errors.New(\"glProgramUniform4dv\")\n\t}\n\tgpProgramUniform4dvEXT = (C.GPPROGRAMUNIFORM4DVEXT)(getProcAddr(\"glProgramUniform4dvEXT\"))\n\tgpProgramUniform4f = (C.GPPROGRAMUNIFORM4F)(getProcAddr(\"glProgramUniform4f\"))\n\tif gpProgramUniform4f == nil {\n\t\treturn errors.New(\"glProgramUniform4f\")\n\t}\n\tgpProgramUniform4fEXT = (C.GPPROGRAMUNIFORM4FEXT)(getProcAddr(\"glProgramUniform4fEXT\"))\n\tgpProgramUniform4fv = (C.GPPROGRAMUNIFORM4FV)(getProcAddr(\"glProgramUniform4fv\"))\n\tif gpProgramUniform4fv == nil {\n\t\treturn errors.New(\"glProgramUniform4fv\")\n\t}\n\tgpProgramUniform4fvEXT = (C.GPPROGRAMUNIFORM4FVEXT)(getProcAddr(\"glProgramUniform4fvEXT\"))\n\tgpProgramUniform4i = (C.GPPROGRAMUNIFORM4I)(getProcAddr(\"glProgramUniform4i\"))\n\tif gpProgramUniform4i == nil {\n\t\treturn errors.New(\"glProgramUniform4i\")\n\t}\n\tgpProgramUniform4i64ARB = (C.GPPROGRAMUNIFORM4I64ARB)(getProcAddr(\"glProgramUniform4i64ARB\"))\n\tgpProgramUniform4i64NV = (C.GPPROGRAMUNIFORM4I64NV)(getProcAddr(\"glProgramUniform4i64NV\"))\n\tgpProgramUniform4i64vARB = (C.GPPROGRAMUNIFORM4I64VARB)(getProcAddr(\"glProgramUniform4i64vARB\"))\n\tgpProgramUniform4i64vNV = (C.GPPROGRAMUNIFORM4I64VNV)(getProcAddr(\"glProgramUniform4i64vNV\"))\n\tgpProgramUniform4iEXT = (C.GPPROGRAMUNIFORM4IEXT)(getProcAddr(\"glProgramUniform4iEXT\"))\n\tgpProgramUniform4iv = (C.GPPROGRAMUNIFORM4IV)(getProcAddr(\"glProgramUniform4iv\"))\n\tif gpProgramUniform4iv == nil {\n\t\treturn errors.New(\"glProgramUniform4iv\")\n\t}\n\tgpProgramUniform4ivEXT = (C.GPPROGRAMUNIFORM4IVEXT)(getProcAddr(\"glProgramUniform4ivEXT\"))\n\tgpProgramUniform4ui = (C.GPPROGRAMUNIFORM4UI)(getProcAddr(\"glProgramUniform4ui\"))\n\tif gpProgramUniform4ui == nil {\n\t\treturn errors.New(\"glProgramUniform4ui\")\n\t}\n\tgpProgramUniform4ui64ARB = (C.GPPROGRAMUNIFORM4UI64ARB)(getProcAddr(\"glProgramUniform4ui64ARB\"))\n\tgpProgramUniform4ui64NV = (C.GPPROGRAMUNIFORM4UI64NV)(getProcAddr(\"glProgramUniform4ui64NV\"))\n\tgpProgramUniform4ui64vARB = (C.GPPROGRAMUNIFORM4UI64VARB)(getProcAddr(\"glProgramUniform4ui64vARB\"))\n\tgpProgramUniform4ui64vNV = (C.GPPROGRAMUNIFORM4UI64VNV)(getProcAddr(\"glProgramUniform4ui64vNV\"))\n\tgpProgramUniform4uiEXT = (C.GPPROGRAMUNIFORM4UIEXT)(getProcAddr(\"glProgramUniform4uiEXT\"))\n\tgpProgramUniform4uiv = (C.GPPROGRAMUNIFORM4UIV)(getProcAddr(\"glProgramUniform4uiv\"))\n\tif gpProgramUniform4uiv == nil {\n\t\treturn errors.New(\"glProgramUniform4uiv\")\n\t}\n\tgpProgramUniform4uivEXT = (C.GPPROGRAMUNIFORM4UIVEXT)(getProcAddr(\"glProgramUniform4uivEXT\"))\n\tgpProgramUniformHandleui64ARB = (C.GPPROGRAMUNIFORMHANDLEUI64ARB)(getProcAddr(\"glProgramUniformHandleui64ARB\"))\n\tgpProgramUniformHandleui64NV = (C.GPPROGRAMUNIFORMHANDLEUI64NV)(getProcAddr(\"glProgramUniformHandleui64NV\"))\n\tgpProgramUniformHandleui64vARB = (C.GPPROGRAMUNIFORMHANDLEUI64VARB)(getProcAddr(\"glProgramUniformHandleui64vARB\"))\n\tgpProgramUniformHandleui64vNV = (C.GPPROGRAMUNIFORMHANDLEUI64VNV)(getProcAddr(\"glProgramUniformHandleui64vNV\"))\n\tgpProgramUniformMatrix2dv = (C.GPPROGRAMUNIFORMMATRIX2DV)(getProcAddr(\"glProgramUniformMatrix2dv\"))\n\tif gpProgramUniformMatrix2dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix2dv\")\n\t}\n\tgpProgramUniformMatrix2dvEXT = (C.GPPROGRAMUNIFORMMATRIX2DVEXT)(getProcAddr(\"glProgramUniformMatrix2dvEXT\"))\n\tgpProgramUniformMatrix2fv = (C.GPPROGRAMUNIFORMMATRIX2FV)(getProcAddr(\"glProgramUniformMatrix2fv\"))\n\tif gpProgramUniformMatrix2fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix2fv\")\n\t}\n\tgpProgramUniformMatrix2fvEXT = (C.GPPROGRAMUNIFORMMATRIX2FVEXT)(getProcAddr(\"glProgramUniformMatrix2fvEXT\"))\n\tgpProgramUniformMatrix2x3dv = (C.GPPROGRAMUNIFORMMATRIX2X3DV)(getProcAddr(\"glProgramUniformMatrix2x3dv\"))\n\tif gpProgramUniformMatrix2x3dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix2x3dv\")\n\t}\n\tgpProgramUniformMatrix2x3dvEXT = (C.GPPROGRAMUNIFORMMATRIX2X3DVEXT)(getProcAddr(\"glProgramUniformMatrix2x3dvEXT\"))\n\tgpProgramUniformMatrix2x3fv = (C.GPPROGRAMUNIFORMMATRIX2X3FV)(getProcAddr(\"glProgramUniformMatrix2x3fv\"))\n\tif gpProgramUniformMatrix2x3fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix2x3fv\")\n\t}\n\tgpProgramUniformMatrix2x3fvEXT = (C.GPPROGRAMUNIFORMMATRIX2X3FVEXT)(getProcAddr(\"glProgramUniformMatrix2x3fvEXT\"))\n\tgpProgramUniformMatrix2x4dv = (C.GPPROGRAMUNIFORMMATRIX2X4DV)(getProcAddr(\"glProgramUniformMatrix2x4dv\"))\n\tif gpProgramUniformMatrix2x4dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix2x4dv\")\n\t}\n\tgpProgramUniformMatrix2x4dvEXT = (C.GPPROGRAMUNIFORMMATRIX2X4DVEXT)(getProcAddr(\"glProgramUniformMatrix2x4dvEXT\"))\n\tgpProgramUniformMatrix2x4fv = (C.GPPROGRAMUNIFORMMATRIX2X4FV)(getProcAddr(\"glProgramUniformMatrix2x4fv\"))\n\tif gpProgramUniformMatrix2x4fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix2x4fv\")\n\t}\n\tgpProgramUniformMatrix2x4fvEXT = (C.GPPROGRAMUNIFORMMATRIX2X4FVEXT)(getProcAddr(\"glProgramUniformMatrix2x4fvEXT\"))\n\tgpProgramUniformMatrix3dv = (C.GPPROGRAMUNIFORMMATRIX3DV)(getProcAddr(\"glProgramUniformMatrix3dv\"))\n\tif gpProgramUniformMatrix3dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix3dv\")\n\t}\n\tgpProgramUniformMatrix3dvEXT = (C.GPPROGRAMUNIFORMMATRIX3DVEXT)(getProcAddr(\"glProgramUniformMatrix3dvEXT\"))\n\tgpProgramUniformMatrix3fv = (C.GPPROGRAMUNIFORMMATRIX3FV)(getProcAddr(\"glProgramUniformMatrix3fv\"))\n\tif gpProgramUniformMatrix3fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix3fv\")\n\t}\n\tgpProgramUniformMatrix3fvEXT = (C.GPPROGRAMUNIFORMMATRIX3FVEXT)(getProcAddr(\"glProgramUniformMatrix3fvEXT\"))\n\tgpProgramUniformMatrix3x2dv = (C.GPPROGRAMUNIFORMMATRIX3X2DV)(getProcAddr(\"glProgramUniformMatrix3x2dv\"))\n\tif gpProgramUniformMatrix3x2dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix3x2dv\")\n\t}\n\tgpProgramUniformMatrix3x2dvEXT = (C.GPPROGRAMUNIFORMMATRIX3X2DVEXT)(getProcAddr(\"glProgramUniformMatrix3x2dvEXT\"))\n\tgpProgramUniformMatrix3x2fv = (C.GPPROGRAMUNIFORMMATRIX3X2FV)(getProcAddr(\"glProgramUniformMatrix3x2fv\"))\n\tif gpProgramUniformMatrix3x2fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix3x2fv\")\n\t}\n\tgpProgramUniformMatrix3x2fvEXT = (C.GPPROGRAMUNIFORMMATRIX3X2FVEXT)(getProcAddr(\"glProgramUniformMatrix3x2fvEXT\"))\n\tgpProgramUniformMatrix3x4dv = (C.GPPROGRAMUNIFORMMATRIX3X4DV)(getProcAddr(\"glProgramUniformMatrix3x4dv\"))\n\tif gpProgramUniformMatrix3x4dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix3x4dv\")\n\t}\n\tgpProgramUniformMatrix3x4dvEXT = (C.GPPROGRAMUNIFORMMATRIX3X4DVEXT)(getProcAddr(\"glProgramUniformMatrix3x4dvEXT\"))\n\tgpProgramUniformMatrix3x4fv = (C.GPPROGRAMUNIFORMMATRIX3X4FV)(getProcAddr(\"glProgramUniformMatrix3x4fv\"))\n\tif gpProgramUniformMatrix3x4fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix3x4fv\")\n\t}\n\tgpProgramUniformMatrix3x4fvEXT = (C.GPPROGRAMUNIFORMMATRIX3X4FVEXT)(getProcAddr(\"glProgramUniformMatrix3x4fvEXT\"))\n\tgpProgramUniformMatrix4dv = (C.GPPROGRAMUNIFORMMATRIX4DV)(getProcAddr(\"glProgramUniformMatrix4dv\"))\n\tif gpProgramUniformMatrix4dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix4dv\")\n\t}\n\tgpProgramUniformMatrix4dvEXT = (C.GPPROGRAMUNIFORMMATRIX4DVEXT)(getProcAddr(\"glProgramUniformMatrix4dvEXT\"))\n\tgpProgramUniformMatrix4fv = (C.GPPROGRAMUNIFORMMATRIX4FV)(getProcAddr(\"glProgramUniformMatrix4fv\"))\n\tif gpProgramUniformMatrix4fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix4fv\")\n\t}\n\tgpProgramUniformMatrix4fvEXT = (C.GPPROGRAMUNIFORMMATRIX4FVEXT)(getProcAddr(\"glProgramUniformMatrix4fvEXT\"))\n\tgpProgramUniformMatrix4x2dv = (C.GPPROGRAMUNIFORMMATRIX4X2DV)(getProcAddr(\"glProgramUniformMatrix4x2dv\"))\n\tif gpProgramUniformMatrix4x2dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix4x2dv\")\n\t}\n\tgpProgramUniformMatrix4x2dvEXT = (C.GPPROGRAMUNIFORMMATRIX4X2DVEXT)(getProcAddr(\"glProgramUniformMatrix4x2dvEXT\"))\n\tgpProgramUniformMatrix4x2fv = (C.GPPROGRAMUNIFORMMATRIX4X2FV)(getProcAddr(\"glProgramUniformMatrix4x2fv\"))\n\tif gpProgramUniformMatrix4x2fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix4x2fv\")\n\t}\n\tgpProgramUniformMatrix4x2fvEXT = (C.GPPROGRAMUNIFORMMATRIX4X2FVEXT)(getProcAddr(\"glProgramUniformMatrix4x2fvEXT\"))\n\tgpProgramUniformMatrix4x3dv = (C.GPPROGRAMUNIFORMMATRIX4X3DV)(getProcAddr(\"glProgramUniformMatrix4x3dv\"))\n\tif gpProgramUniformMatrix4x3dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix4x3dv\")\n\t}\n\tgpProgramUniformMatrix4x3dvEXT = (C.GPPROGRAMUNIFORMMATRIX4X3DVEXT)(getProcAddr(\"glProgramUniformMatrix4x3dvEXT\"))\n\tgpProgramUniformMatrix4x3fv = (C.GPPROGRAMUNIFORMMATRIX4X3FV)(getProcAddr(\"glProgramUniformMatrix4x3fv\"))\n\tif gpProgramUniformMatrix4x3fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix4x3fv\")\n\t}\n\tgpProgramUniformMatrix4x3fvEXT = (C.GPPROGRAMUNIFORMMATRIX4X3FVEXT)(getProcAddr(\"glProgramUniformMatrix4x3fvEXT\"))\n\tgpProgramUniformui64NV = (C.GPPROGRAMUNIFORMUI64NV)(getProcAddr(\"glProgramUniformui64NV\"))\n\tgpProgramUniformui64vNV = (C.GPPROGRAMUNIFORMUI64VNV)(getProcAddr(\"glProgramUniformui64vNV\"))\n\tgpProvokingVertex = (C.GPPROVOKINGVERTEX)(getProcAddr(\"glProvokingVertex\"))\n\tif gpProvokingVertex == nil {\n\t\treturn errors.New(\"glProvokingVertex\")\n\t}\n\tgpPushClientAttribDefaultEXT = (C.GPPUSHCLIENTATTRIBDEFAULTEXT)(getProcAddr(\"glPushClientAttribDefaultEXT\"))\n\tgpPushDebugGroup = (C.GPPUSHDEBUGGROUP)(getProcAddr(\"glPushDebugGroup\"))\n\tgpPushDebugGroupKHR = (C.GPPUSHDEBUGGROUPKHR)(getProcAddr(\"glPushDebugGroupKHR\"))\n\tgpPushGroupMarkerEXT = (C.GPPUSHGROUPMARKEREXT)(getProcAddr(\"glPushGroupMarkerEXT\"))\n\tgpQueryCounter = (C.GPQUERYCOUNTER)(getProcAddr(\"glQueryCounter\"))\n\tif gpQueryCounter == nil {\n\t\treturn errors.New(\"glQueryCounter\")\n\t}\n\tgpRasterSamplesEXT = (C.GPRASTERSAMPLESEXT)(getProcAddr(\"glRasterSamplesEXT\"))\n\tgpReadBuffer = (C.GPREADBUFFER)(getProcAddr(\"glReadBuffer\"))\n\tif gpReadBuffer == nil {\n\t\treturn errors.New(\"glReadBuffer\")\n\t}\n\tgpReadPixels = (C.GPREADPIXELS)(getProcAddr(\"glReadPixels\"))\n\tif gpReadPixels == nil {\n\t\treturn errors.New(\"glReadPixels\")\n\t}\n\tgpReadnPixels = (C.GPREADNPIXELS)(getProcAddr(\"glReadnPixels\"))\n\tgpReadnPixelsARB = (C.GPREADNPIXELSARB)(getProcAddr(\"glReadnPixelsARB\"))\n\tgpReadnPixelsKHR = (C.GPREADNPIXELSKHR)(getProcAddr(\"glReadnPixelsKHR\"))\n\tgpReleaseShaderCompiler = (C.GPRELEASESHADERCOMPILER)(getProcAddr(\"glReleaseShaderCompiler\"))\n\tif gpReleaseShaderCompiler == nil {\n\t\treturn errors.New(\"glReleaseShaderCompiler\")\n\t}\n\tgpRenderbufferStorage = (C.GPRENDERBUFFERSTORAGE)(getProcAddr(\"glRenderbufferStorage\"))\n\tif gpRenderbufferStorage == nil {\n\t\treturn errors.New(\"glRenderbufferStorage\")\n\t}\n\tgpRenderbufferStorageMultisample = (C.GPRENDERBUFFERSTORAGEMULTISAMPLE)(getProcAddr(\"glRenderbufferStorageMultisample\"))\n\tif gpRenderbufferStorageMultisample == nil {\n\t\treturn errors.New(\"glRenderbufferStorageMultisample\")\n\t}\n\tgpRenderbufferStorageMultisampleAdvancedAMD = (C.GPRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMD)(getProcAddr(\"glRenderbufferStorageMultisampleAdvancedAMD\"))\n\tgpRenderbufferStorageMultisampleCoverageNV = (C.GPRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENV)(getProcAddr(\"glRenderbufferStorageMultisampleCoverageNV\"))\n\tgpResetMemoryObjectParameterNV = (C.GPRESETMEMORYOBJECTPARAMETERNV)(getProcAddr(\"glResetMemoryObjectParameterNV\"))\n\tgpResolveDepthValuesNV = (C.GPRESOLVEDEPTHVALUESNV)(getProcAddr(\"glResolveDepthValuesNV\"))\n\tgpResumeTransformFeedback = (C.GPRESUMETRANSFORMFEEDBACK)(getProcAddr(\"glResumeTransformFeedback\"))\n\tif gpResumeTransformFeedback == nil {\n\t\treturn errors.New(\"glResumeTransformFeedback\")\n\t}\n\tgpSampleCoverage = (C.GPSAMPLECOVERAGE)(getProcAddr(\"glSampleCoverage\"))\n\tif gpSampleCoverage == nil {\n\t\treturn errors.New(\"glSampleCoverage\")\n\t}\n\tgpSampleMaski = (C.GPSAMPLEMASKI)(getProcAddr(\"glSampleMaski\"))\n\tif gpSampleMaski == nil {\n\t\treturn errors.New(\"glSampleMaski\")\n\t}\n\tgpSamplerParameterIiv = (C.GPSAMPLERPARAMETERIIV)(getProcAddr(\"glSamplerParameterIiv\"))\n\tif gpSamplerParameterIiv == nil {\n\t\treturn errors.New(\"glSamplerParameterIiv\")\n\t}\n\tgpSamplerParameterIuiv = (C.GPSAMPLERPARAMETERIUIV)(getProcAddr(\"glSamplerParameterIuiv\"))\n\tif gpSamplerParameterIuiv == nil {\n\t\treturn errors.New(\"glSamplerParameterIuiv\")\n\t}\n\tgpSamplerParameterf = (C.GPSAMPLERPARAMETERF)(getProcAddr(\"glSamplerParameterf\"))\n\tif gpSamplerParameterf == nil {\n\t\treturn errors.New(\"glSamplerParameterf\")\n\t}\n\tgpSamplerParameterfv = (C.GPSAMPLERPARAMETERFV)(getProcAddr(\"glSamplerParameterfv\"))\n\tif gpSamplerParameterfv == nil {\n\t\treturn errors.New(\"glSamplerParameterfv\")\n\t}\n\tgpSamplerParameteri = (C.GPSAMPLERPARAMETERI)(getProcAddr(\"glSamplerParameteri\"))\n\tif gpSamplerParameteri == nil {\n\t\treturn errors.New(\"glSamplerParameteri\")\n\t}\n\tgpSamplerParameteriv = (C.GPSAMPLERPARAMETERIV)(getProcAddr(\"glSamplerParameteriv\"))\n\tif gpSamplerParameteriv == nil {\n\t\treturn errors.New(\"glSamplerParameteriv\")\n\t}\n\tgpScissor = (C.GPSCISSOR)(getProcAddr(\"glScissor\"))\n\tif gpScissor == nil {\n\t\treturn errors.New(\"glScissor\")\n\t}\n\tgpScissorArrayv = (C.GPSCISSORARRAYV)(getProcAddr(\"glScissorArrayv\"))\n\tif gpScissorArrayv == nil {\n\t\treturn errors.New(\"glScissorArrayv\")\n\t}\n\tgpScissorExclusiveArrayvNV = (C.GPSCISSOREXCLUSIVEARRAYVNV)(getProcAddr(\"glScissorExclusiveArrayvNV\"))\n\tgpScissorExclusiveNV = (C.GPSCISSOREXCLUSIVENV)(getProcAddr(\"glScissorExclusiveNV\"))\n\tgpScissorIndexed = (C.GPSCISSORINDEXED)(getProcAddr(\"glScissorIndexed\"))\n\tif gpScissorIndexed == nil {\n\t\treturn errors.New(\"glScissorIndexed\")\n\t}\n\tgpScissorIndexedv = (C.GPSCISSORINDEXEDV)(getProcAddr(\"glScissorIndexedv\"))\n\tif gpScissorIndexedv == nil {\n\t\treturn errors.New(\"glScissorIndexedv\")\n\t}\n\tgpSecondaryColorFormatNV = (C.GPSECONDARYCOLORFORMATNV)(getProcAddr(\"glSecondaryColorFormatNV\"))\n\tgpSelectPerfMonitorCountersAMD = (C.GPSELECTPERFMONITORCOUNTERSAMD)(getProcAddr(\"glSelectPerfMonitorCountersAMD\"))\n\tgpShaderBinary = (C.GPSHADERBINARY)(getProcAddr(\"glShaderBinary\"))\n\tif gpShaderBinary == nil {\n\t\treturn errors.New(\"glShaderBinary\")\n\t}\n\tgpShaderSource = (C.GPSHADERSOURCE)(getProcAddr(\"glShaderSource\"))\n\tif gpShaderSource == nil {\n\t\treturn errors.New(\"glShaderSource\")\n\t}\n\tgpShaderStorageBlockBinding = (C.GPSHADERSTORAGEBLOCKBINDING)(getProcAddr(\"glShaderStorageBlockBinding\"))\n\tgpShadingRateImageBarrierNV = (C.GPSHADINGRATEIMAGEBARRIERNV)(getProcAddr(\"glShadingRateImageBarrierNV\"))\n\tgpShadingRateImagePaletteNV = (C.GPSHADINGRATEIMAGEPALETTENV)(getProcAddr(\"glShadingRateImagePaletteNV\"))\n\tgpShadingRateSampleOrderCustomNV = (C.GPSHADINGRATESAMPLEORDERCUSTOMNV)(getProcAddr(\"glShadingRateSampleOrderCustomNV\"))\n\tgpShadingRateSampleOrderNV = (C.GPSHADINGRATESAMPLEORDERNV)(getProcAddr(\"glShadingRateSampleOrderNV\"))\n\tgpSignalVkFenceNV = (C.GPSIGNALVKFENCENV)(getProcAddr(\"glSignalVkFenceNV\"))\n\tgpSignalVkSemaphoreNV = (C.GPSIGNALVKSEMAPHORENV)(getProcAddr(\"glSignalVkSemaphoreNV\"))\n\tgpSpecializeShaderARB = (C.GPSPECIALIZESHADERARB)(getProcAddr(\"glSpecializeShaderARB\"))\n\tgpStateCaptureNV = (C.GPSTATECAPTURENV)(getProcAddr(\"glStateCaptureNV\"))\n\tgpStencilFillPathInstancedNV = (C.GPSTENCILFILLPATHINSTANCEDNV)(getProcAddr(\"glStencilFillPathInstancedNV\"))\n\tgpStencilFillPathNV = (C.GPSTENCILFILLPATHNV)(getProcAddr(\"glStencilFillPathNV\"))\n\tgpStencilFunc = (C.GPSTENCILFUNC)(getProcAddr(\"glStencilFunc\"))\n\tif gpStencilFunc == nil {\n\t\treturn errors.New(\"glStencilFunc\")\n\t}\n\tgpStencilFuncSeparate = (C.GPSTENCILFUNCSEPARATE)(getProcAddr(\"glStencilFuncSeparate\"))\n\tif gpStencilFuncSeparate == nil {\n\t\treturn errors.New(\"glStencilFuncSeparate\")\n\t}\n\tgpStencilMask = (C.GPSTENCILMASK)(getProcAddr(\"glStencilMask\"))\n\tif gpStencilMask == nil {\n\t\treturn errors.New(\"glStencilMask\")\n\t}\n\tgpStencilMaskSeparate = (C.GPSTENCILMASKSEPARATE)(getProcAddr(\"glStencilMaskSeparate\"))\n\tif gpStencilMaskSeparate == nil {\n\t\treturn errors.New(\"glStencilMaskSeparate\")\n\t}\n\tgpStencilOp = (C.GPSTENCILOP)(getProcAddr(\"glStencilOp\"))\n\tif gpStencilOp == nil {\n\t\treturn errors.New(\"glStencilOp\")\n\t}\n\tgpStencilOpSeparate = (C.GPSTENCILOPSEPARATE)(getProcAddr(\"glStencilOpSeparate\"))\n\tif gpStencilOpSeparate == nil {\n\t\treturn errors.New(\"glStencilOpSeparate\")\n\t}\n\tgpStencilStrokePathInstancedNV = (C.GPSTENCILSTROKEPATHINSTANCEDNV)(getProcAddr(\"glStencilStrokePathInstancedNV\"))\n\tgpStencilStrokePathNV = (C.GPSTENCILSTROKEPATHNV)(getProcAddr(\"glStencilStrokePathNV\"))\n\tgpStencilThenCoverFillPathInstancedNV = (C.GPSTENCILTHENCOVERFILLPATHINSTANCEDNV)(getProcAddr(\"glStencilThenCoverFillPathInstancedNV\"))\n\tgpStencilThenCoverFillPathNV = (C.GPSTENCILTHENCOVERFILLPATHNV)(getProcAddr(\"glStencilThenCoverFillPathNV\"))\n\tgpStencilThenCoverStrokePathInstancedNV = (C.GPSTENCILTHENCOVERSTROKEPATHINSTANCEDNV)(getProcAddr(\"glStencilThenCoverStrokePathInstancedNV\"))\n\tgpStencilThenCoverStrokePathNV = (C.GPSTENCILTHENCOVERSTROKEPATHNV)(getProcAddr(\"glStencilThenCoverStrokePathNV\"))\n\tgpSubpixelPrecisionBiasNV = (C.GPSUBPIXELPRECISIONBIASNV)(getProcAddr(\"glSubpixelPrecisionBiasNV\"))\n\tgpTexAttachMemoryNV = (C.GPTEXATTACHMEMORYNV)(getProcAddr(\"glTexAttachMemoryNV\"))\n\tgpTexBuffer = (C.GPTEXBUFFER)(getProcAddr(\"glTexBuffer\"))\n\tif gpTexBuffer == nil {\n\t\treturn errors.New(\"glTexBuffer\")\n\t}\n\tgpTexBufferARB = (C.GPTEXBUFFERARB)(getProcAddr(\"glTexBufferARB\"))\n\tgpTexBufferRange = (C.GPTEXBUFFERRANGE)(getProcAddr(\"glTexBufferRange\"))\n\tgpTexCoordFormatNV = (C.GPTEXCOORDFORMATNV)(getProcAddr(\"glTexCoordFormatNV\"))\n\tgpTexImage1D = (C.GPTEXIMAGE1D)(getProcAddr(\"glTexImage1D\"))\n\tif gpTexImage1D == nil {\n\t\treturn errors.New(\"glTexImage1D\")\n\t}\n\tgpTexImage2D = (C.GPTEXIMAGE2D)(getProcAddr(\"glTexImage2D\"))\n\tif gpTexImage2D == nil {\n\t\treturn errors.New(\"glTexImage2D\")\n\t}\n\tgpTexImage2DMultisample = (C.GPTEXIMAGE2DMULTISAMPLE)(getProcAddr(\"glTexImage2DMultisample\"))\n\tif gpTexImage2DMultisample == nil {\n\t\treturn errors.New(\"glTexImage2DMultisample\")\n\t}\n\tgpTexImage3D = (C.GPTEXIMAGE3D)(getProcAddr(\"glTexImage3D\"))\n\tif gpTexImage3D == nil {\n\t\treturn errors.New(\"glTexImage3D\")\n\t}\n\tgpTexImage3DMultisample = (C.GPTEXIMAGE3DMULTISAMPLE)(getProcAddr(\"glTexImage3DMultisample\"))\n\tif gpTexImage3DMultisample == nil {\n\t\treturn errors.New(\"glTexImage3DMultisample\")\n\t}\n\tgpTexPageCommitmentARB = (C.GPTEXPAGECOMMITMENTARB)(getProcAddr(\"glTexPageCommitmentARB\"))\n\tgpTexPageCommitmentMemNV = (C.GPTEXPAGECOMMITMENTMEMNV)(getProcAddr(\"glTexPageCommitmentMemNV\"))\n\tgpTexParameterIiv = (C.GPTEXPARAMETERIIV)(getProcAddr(\"glTexParameterIiv\"))\n\tif gpTexParameterIiv == nil {\n\t\treturn errors.New(\"glTexParameterIiv\")\n\t}\n\tgpTexParameterIuiv = (C.GPTEXPARAMETERIUIV)(getProcAddr(\"glTexParameterIuiv\"))\n\tif gpTexParameterIuiv == nil {\n\t\treturn errors.New(\"glTexParameterIuiv\")\n\t}\n\tgpTexParameterf = (C.GPTEXPARAMETERF)(getProcAddr(\"glTexParameterf\"))\n\tif gpTexParameterf == nil {\n\t\treturn errors.New(\"glTexParameterf\")\n\t}\n\tgpTexParameterfv = (C.GPTEXPARAMETERFV)(getProcAddr(\"glTexParameterfv\"))\n\tif gpTexParameterfv == nil {\n\t\treturn errors.New(\"glTexParameterfv\")\n\t}\n\tgpTexParameteri = (C.GPTEXPARAMETERI)(getProcAddr(\"glTexParameteri\"))\n\tif gpTexParameteri == nil {\n\t\treturn errors.New(\"glTexParameteri\")\n\t}\n\tgpTexParameteriv = (C.GPTEXPARAMETERIV)(getProcAddr(\"glTexParameteriv\"))\n\tif gpTexParameteriv == nil {\n\t\treturn errors.New(\"glTexParameteriv\")\n\t}\n\tgpTexStorage1D = (C.GPTEXSTORAGE1D)(getProcAddr(\"glTexStorage1D\"))\n\tif gpTexStorage1D == nil {\n\t\treturn errors.New(\"glTexStorage1D\")\n\t}\n\tgpTexStorage2D = (C.GPTEXSTORAGE2D)(getProcAddr(\"glTexStorage2D\"))\n\tif gpTexStorage2D == nil {\n\t\treturn errors.New(\"glTexStorage2D\")\n\t}\n\tgpTexStorage2DMultisample = (C.GPTEXSTORAGE2DMULTISAMPLE)(getProcAddr(\"glTexStorage2DMultisample\"))\n\tgpTexStorage3D = (C.GPTEXSTORAGE3D)(getProcAddr(\"glTexStorage3D\"))\n\tif gpTexStorage3D == nil {\n\t\treturn errors.New(\"glTexStorage3D\")\n\t}\n\tgpTexStorage3DMultisample = (C.GPTEXSTORAGE3DMULTISAMPLE)(getProcAddr(\"glTexStorage3DMultisample\"))\n\tgpTexSubImage1D = (C.GPTEXSUBIMAGE1D)(getProcAddr(\"glTexSubImage1D\"))\n\tif gpTexSubImage1D == nil {\n\t\treturn errors.New(\"glTexSubImage1D\")\n\t}\n\tgpTexSubImage2D = (C.GPTEXSUBIMAGE2D)(getProcAddr(\"glTexSubImage2D\"))\n\tif gpTexSubImage2D == nil {\n\t\treturn errors.New(\"glTexSubImage2D\")\n\t}\n\tgpTexSubImage3D = (C.GPTEXSUBIMAGE3D)(getProcAddr(\"glTexSubImage3D\"))\n\tif gpTexSubImage3D == nil {\n\t\treturn errors.New(\"glTexSubImage3D\")\n\t}\n\tgpTextureAttachMemoryNV = (C.GPTEXTUREATTACHMEMORYNV)(getProcAddr(\"glTextureAttachMemoryNV\"))\n\tgpTextureBarrier = (C.GPTEXTUREBARRIER)(getProcAddr(\"glTextureBarrier\"))\n\tgpTextureBarrierNV = (C.GPTEXTUREBARRIERNV)(getProcAddr(\"glTextureBarrierNV\"))\n\tgpTextureBuffer = (C.GPTEXTUREBUFFER)(getProcAddr(\"glTextureBuffer\"))\n\tgpTextureBufferEXT = (C.GPTEXTUREBUFFEREXT)(getProcAddr(\"glTextureBufferEXT\"))\n\tgpTextureBufferRange = (C.GPTEXTUREBUFFERRANGE)(getProcAddr(\"glTextureBufferRange\"))\n\tgpTextureBufferRangeEXT = (C.GPTEXTUREBUFFERRANGEEXT)(getProcAddr(\"glTextureBufferRangeEXT\"))\n\tgpTextureImage1DEXT = (C.GPTEXTUREIMAGE1DEXT)(getProcAddr(\"glTextureImage1DEXT\"))\n\tgpTextureImage2DEXT = (C.GPTEXTUREIMAGE2DEXT)(getProcAddr(\"glTextureImage2DEXT\"))\n\tgpTextureImage3DEXT = (C.GPTEXTUREIMAGE3DEXT)(getProcAddr(\"glTextureImage3DEXT\"))\n\tgpTexturePageCommitmentEXT = (C.GPTEXTUREPAGECOMMITMENTEXT)(getProcAddr(\"glTexturePageCommitmentEXT\"))\n\tgpTexturePageCommitmentMemNV = (C.GPTEXTUREPAGECOMMITMENTMEMNV)(getProcAddr(\"glTexturePageCommitmentMemNV\"))\n\tgpTextureParameterIiv = (C.GPTEXTUREPARAMETERIIV)(getProcAddr(\"glTextureParameterIiv\"))\n\tgpTextureParameterIivEXT = (C.GPTEXTUREPARAMETERIIVEXT)(getProcAddr(\"glTextureParameterIivEXT\"))\n\tgpTextureParameterIuiv = (C.GPTEXTUREPARAMETERIUIV)(getProcAddr(\"glTextureParameterIuiv\"))\n\tgpTextureParameterIuivEXT = (C.GPTEXTUREPARAMETERIUIVEXT)(getProcAddr(\"glTextureParameterIuivEXT\"))\n\tgpTextureParameterf = (C.GPTEXTUREPARAMETERF)(getProcAddr(\"glTextureParameterf\"))\n\tgpTextureParameterfEXT = (C.GPTEXTUREPARAMETERFEXT)(getProcAddr(\"glTextureParameterfEXT\"))\n\tgpTextureParameterfv = (C.GPTEXTUREPARAMETERFV)(getProcAddr(\"glTextureParameterfv\"))\n\tgpTextureParameterfvEXT = (C.GPTEXTUREPARAMETERFVEXT)(getProcAddr(\"glTextureParameterfvEXT\"))\n\tgpTextureParameteri = (C.GPTEXTUREPARAMETERI)(getProcAddr(\"glTextureParameteri\"))\n\tgpTextureParameteriEXT = (C.GPTEXTUREPARAMETERIEXT)(getProcAddr(\"glTextureParameteriEXT\"))\n\tgpTextureParameteriv = (C.GPTEXTUREPARAMETERIV)(getProcAddr(\"glTextureParameteriv\"))\n\tgpTextureParameterivEXT = (C.GPTEXTUREPARAMETERIVEXT)(getProcAddr(\"glTextureParameterivEXT\"))\n\tgpTextureRenderbufferEXT = (C.GPTEXTURERENDERBUFFEREXT)(getProcAddr(\"glTextureRenderbufferEXT\"))\n\tgpTextureStorage1D = (C.GPTEXTURESTORAGE1D)(getProcAddr(\"glTextureStorage1D\"))\n\tgpTextureStorage1DEXT = (C.GPTEXTURESTORAGE1DEXT)(getProcAddr(\"glTextureStorage1DEXT\"))\n\tgpTextureStorage2D = (C.GPTEXTURESTORAGE2D)(getProcAddr(\"glTextureStorage2D\"))\n\tgpTextureStorage2DEXT = (C.GPTEXTURESTORAGE2DEXT)(getProcAddr(\"glTextureStorage2DEXT\"))\n\tgpTextureStorage2DMultisample = (C.GPTEXTURESTORAGE2DMULTISAMPLE)(getProcAddr(\"glTextureStorage2DMultisample\"))\n\tgpTextureStorage2DMultisampleEXT = (C.GPTEXTURESTORAGE2DMULTISAMPLEEXT)(getProcAddr(\"glTextureStorage2DMultisampleEXT\"))\n\tgpTextureStorage3D = (C.GPTEXTURESTORAGE3D)(getProcAddr(\"glTextureStorage3D\"))\n\tgpTextureStorage3DEXT = (C.GPTEXTURESTORAGE3DEXT)(getProcAddr(\"glTextureStorage3DEXT\"))\n\tgpTextureStorage3DMultisample = (C.GPTEXTURESTORAGE3DMULTISAMPLE)(getProcAddr(\"glTextureStorage3DMultisample\"))\n\tgpTextureStorage3DMultisampleEXT = (C.GPTEXTURESTORAGE3DMULTISAMPLEEXT)(getProcAddr(\"glTextureStorage3DMultisampleEXT\"))\n\tgpTextureSubImage1D = (C.GPTEXTURESUBIMAGE1D)(getProcAddr(\"glTextureSubImage1D\"))\n\tgpTextureSubImage1DEXT = (C.GPTEXTURESUBIMAGE1DEXT)(getProcAddr(\"glTextureSubImage1DEXT\"))\n\tgpTextureSubImage2D = (C.GPTEXTURESUBIMAGE2D)(getProcAddr(\"glTextureSubImage2D\"))\n\tgpTextureSubImage2DEXT = (C.GPTEXTURESUBIMAGE2DEXT)(getProcAddr(\"glTextureSubImage2DEXT\"))\n\tgpTextureSubImage3D = (C.GPTEXTURESUBIMAGE3D)(getProcAddr(\"glTextureSubImage3D\"))\n\tgpTextureSubImage3DEXT = (C.GPTEXTURESUBIMAGE3DEXT)(getProcAddr(\"glTextureSubImage3DEXT\"))\n\tgpTextureView = (C.GPTEXTUREVIEW)(getProcAddr(\"glTextureView\"))\n\tgpTransformFeedbackBufferBase = (C.GPTRANSFORMFEEDBACKBUFFERBASE)(getProcAddr(\"glTransformFeedbackBufferBase\"))\n\tgpTransformFeedbackBufferRange = (C.GPTRANSFORMFEEDBACKBUFFERRANGE)(getProcAddr(\"glTransformFeedbackBufferRange\"))\n\tgpTransformFeedbackVaryings = (C.GPTRANSFORMFEEDBACKVARYINGS)(getProcAddr(\"glTransformFeedbackVaryings\"))\n\tif gpTransformFeedbackVaryings == nil {\n\t\treturn errors.New(\"glTransformFeedbackVaryings\")\n\t}\n\tgpTransformPathNV = (C.GPTRANSFORMPATHNV)(getProcAddr(\"glTransformPathNV\"))\n\tgpUniform1d = (C.GPUNIFORM1D)(getProcAddr(\"glUniform1d\"))\n\tif gpUniform1d == nil {\n\t\treturn errors.New(\"glUniform1d\")\n\t}\n\tgpUniform1dv = (C.GPUNIFORM1DV)(getProcAddr(\"glUniform1dv\"))\n\tif gpUniform1dv == nil {\n\t\treturn errors.New(\"glUniform1dv\")\n\t}\n\tgpUniform1f = (C.GPUNIFORM1F)(getProcAddr(\"glUniform1f\"))\n\tif gpUniform1f == nil {\n\t\treturn errors.New(\"glUniform1f\")\n\t}\n\tgpUniform1fv = (C.GPUNIFORM1FV)(getProcAddr(\"glUniform1fv\"))\n\tif gpUniform1fv == nil {\n\t\treturn errors.New(\"glUniform1fv\")\n\t}\n\tgpUniform1i = (C.GPUNIFORM1I)(getProcAddr(\"glUniform1i\"))\n\tif gpUniform1i == nil {\n\t\treturn errors.New(\"glUniform1i\")\n\t}\n\tgpUniform1i64ARB = (C.GPUNIFORM1I64ARB)(getProcAddr(\"glUniform1i64ARB\"))\n\tgpUniform1i64NV = (C.GPUNIFORM1I64NV)(getProcAddr(\"glUniform1i64NV\"))\n\tgpUniform1i64vARB = (C.GPUNIFORM1I64VARB)(getProcAddr(\"glUniform1i64vARB\"))\n\tgpUniform1i64vNV = (C.GPUNIFORM1I64VNV)(getProcAddr(\"glUniform1i64vNV\"))\n\tgpUniform1iv = (C.GPUNIFORM1IV)(getProcAddr(\"glUniform1iv\"))\n\tif gpUniform1iv == nil {\n\t\treturn errors.New(\"glUniform1iv\")\n\t}\n\tgpUniform1ui = (C.GPUNIFORM1UI)(getProcAddr(\"glUniform1ui\"))\n\tif gpUniform1ui == nil {\n\t\treturn errors.New(\"glUniform1ui\")\n\t}\n\tgpUniform1ui64ARB = (C.GPUNIFORM1UI64ARB)(getProcAddr(\"glUniform1ui64ARB\"))\n\tgpUniform1ui64NV = (C.GPUNIFORM1UI64NV)(getProcAddr(\"glUniform1ui64NV\"))\n\tgpUniform1ui64vARB = (C.GPUNIFORM1UI64VARB)(getProcAddr(\"glUniform1ui64vARB\"))\n\tgpUniform1ui64vNV = (C.GPUNIFORM1UI64VNV)(getProcAddr(\"glUniform1ui64vNV\"))\n\tgpUniform1uiv = (C.GPUNIFORM1UIV)(getProcAddr(\"glUniform1uiv\"))\n\tif gpUniform1uiv == nil {\n\t\treturn errors.New(\"glUniform1uiv\")\n\t}\n\tgpUniform2d = (C.GPUNIFORM2D)(getProcAddr(\"glUniform2d\"))\n\tif gpUniform2d == nil {\n\t\treturn errors.New(\"glUniform2d\")\n\t}\n\tgpUniform2dv = (C.GPUNIFORM2DV)(getProcAddr(\"glUniform2dv\"))\n\tif gpUniform2dv == nil {\n\t\treturn errors.New(\"glUniform2dv\")\n\t}\n\tgpUniform2f = (C.GPUNIFORM2F)(getProcAddr(\"glUniform2f\"))\n\tif gpUniform2f == nil {\n\t\treturn errors.New(\"glUniform2f\")\n\t}\n\tgpUniform2fv = (C.GPUNIFORM2FV)(getProcAddr(\"glUniform2fv\"))\n\tif gpUniform2fv == nil {\n\t\treturn errors.New(\"glUniform2fv\")\n\t}\n\tgpUniform2i = (C.GPUNIFORM2I)(getProcAddr(\"glUniform2i\"))\n\tif gpUniform2i == nil {\n\t\treturn errors.New(\"glUniform2i\")\n\t}\n\tgpUniform2i64ARB = (C.GPUNIFORM2I64ARB)(getProcAddr(\"glUniform2i64ARB\"))\n\tgpUniform2i64NV = (C.GPUNIFORM2I64NV)(getProcAddr(\"glUniform2i64NV\"))\n\tgpUniform2i64vARB = (C.GPUNIFORM2I64VARB)(getProcAddr(\"glUniform2i64vARB\"))\n\tgpUniform2i64vNV = (C.GPUNIFORM2I64VNV)(getProcAddr(\"glUniform2i64vNV\"))\n\tgpUniform2iv = (C.GPUNIFORM2IV)(getProcAddr(\"glUniform2iv\"))\n\tif gpUniform2iv == nil {\n\t\treturn errors.New(\"glUniform2iv\")\n\t}\n\tgpUniform2ui = (C.GPUNIFORM2UI)(getProcAddr(\"glUniform2ui\"))\n\tif gpUniform2ui == nil {\n\t\treturn errors.New(\"glUniform2ui\")\n\t}\n\tgpUniform2ui64ARB = (C.GPUNIFORM2UI64ARB)(getProcAddr(\"glUniform2ui64ARB\"))\n\tgpUniform2ui64NV = (C.GPUNIFORM2UI64NV)(getProcAddr(\"glUniform2ui64NV\"))\n\tgpUniform2ui64vARB = (C.GPUNIFORM2UI64VARB)(getProcAddr(\"glUniform2ui64vARB\"))\n\tgpUniform2ui64vNV = (C.GPUNIFORM2UI64VNV)(getProcAddr(\"glUniform2ui64vNV\"))\n\tgpUniform2uiv = (C.GPUNIFORM2UIV)(getProcAddr(\"glUniform2uiv\"))\n\tif gpUniform2uiv == nil {\n\t\treturn errors.New(\"glUniform2uiv\")\n\t}\n\tgpUniform3d = (C.GPUNIFORM3D)(getProcAddr(\"glUniform3d\"))\n\tif gpUniform3d == nil {\n\t\treturn errors.New(\"glUniform3d\")\n\t}\n\tgpUniform3dv = (C.GPUNIFORM3DV)(getProcAddr(\"glUniform3dv\"))\n\tif gpUniform3dv == nil {\n\t\treturn errors.New(\"glUniform3dv\")\n\t}\n\tgpUniform3f = (C.GPUNIFORM3F)(getProcAddr(\"glUniform3f\"))\n\tif gpUniform3f == nil {\n\t\treturn errors.New(\"glUniform3f\")\n\t}\n\tgpUniform3fv = (C.GPUNIFORM3FV)(getProcAddr(\"glUniform3fv\"))\n\tif gpUniform3fv == nil {\n\t\treturn errors.New(\"glUniform3fv\")\n\t}\n\tgpUniform3i = (C.GPUNIFORM3I)(getProcAddr(\"glUniform3i\"))\n\tif gpUniform3i == nil {\n\t\treturn errors.New(\"glUniform3i\")\n\t}\n\tgpUniform3i64ARB = (C.GPUNIFORM3I64ARB)(getProcAddr(\"glUniform3i64ARB\"))\n\tgpUniform3i64NV = (C.GPUNIFORM3I64NV)(getProcAddr(\"glUniform3i64NV\"))\n\tgpUniform3i64vARB = (C.GPUNIFORM3I64VARB)(getProcAddr(\"glUniform3i64vARB\"))\n\tgpUniform3i64vNV = (C.GPUNIFORM3I64VNV)(getProcAddr(\"glUniform3i64vNV\"))\n\tgpUniform3iv = (C.GPUNIFORM3IV)(getProcAddr(\"glUniform3iv\"))\n\tif gpUniform3iv == nil {\n\t\treturn errors.New(\"glUniform3iv\")\n\t}\n\tgpUniform3ui = (C.GPUNIFORM3UI)(getProcAddr(\"glUniform3ui\"))\n\tif gpUniform3ui == nil {\n\t\treturn errors.New(\"glUniform3ui\")\n\t}\n\tgpUniform3ui64ARB = (C.GPUNIFORM3UI64ARB)(getProcAddr(\"glUniform3ui64ARB\"))\n\tgpUniform3ui64NV = (C.GPUNIFORM3UI64NV)(getProcAddr(\"glUniform3ui64NV\"))\n\tgpUniform3ui64vARB = (C.GPUNIFORM3UI64VARB)(getProcAddr(\"glUniform3ui64vARB\"))\n\tgpUniform3ui64vNV = (C.GPUNIFORM3UI64VNV)(getProcAddr(\"glUniform3ui64vNV\"))\n\tgpUniform3uiv = (C.GPUNIFORM3UIV)(getProcAddr(\"glUniform3uiv\"))\n\tif gpUniform3uiv == nil {\n\t\treturn errors.New(\"glUniform3uiv\")\n\t}\n\tgpUniform4d = (C.GPUNIFORM4D)(getProcAddr(\"glUniform4d\"))\n\tif gpUniform4d == nil {\n\t\treturn errors.New(\"glUniform4d\")\n\t}\n\tgpUniform4dv = (C.GPUNIFORM4DV)(getProcAddr(\"glUniform4dv\"))\n\tif gpUniform4dv == nil {\n\t\treturn errors.New(\"glUniform4dv\")\n\t}\n\tgpUniform4f = (C.GPUNIFORM4F)(getProcAddr(\"glUniform4f\"))\n\tif gpUniform4f == nil {\n\t\treturn errors.New(\"glUniform4f\")\n\t}\n\tgpUniform4fv = (C.GPUNIFORM4FV)(getProcAddr(\"glUniform4fv\"))\n\tif gpUniform4fv == nil {\n\t\treturn errors.New(\"glUniform4fv\")\n\t}\n\tgpUniform4i = (C.GPUNIFORM4I)(getProcAddr(\"glUniform4i\"))\n\tif gpUniform4i == nil {\n\t\treturn errors.New(\"glUniform4i\")\n\t}\n\tgpUniform4i64ARB = (C.GPUNIFORM4I64ARB)(getProcAddr(\"glUniform4i64ARB\"))\n\tgpUniform4i64NV = (C.GPUNIFORM4I64NV)(getProcAddr(\"glUniform4i64NV\"))\n\tgpUniform4i64vARB = (C.GPUNIFORM4I64VARB)(getProcAddr(\"glUniform4i64vARB\"))\n\tgpUniform4i64vNV = (C.GPUNIFORM4I64VNV)(getProcAddr(\"glUniform4i64vNV\"))\n\tgpUniform4iv = (C.GPUNIFORM4IV)(getProcAddr(\"glUniform4iv\"))\n\tif gpUniform4iv == nil {\n\t\treturn errors.New(\"glUniform4iv\")\n\t}\n\tgpUniform4ui = (C.GPUNIFORM4UI)(getProcAddr(\"glUniform4ui\"))\n\tif gpUniform4ui == nil {\n\t\treturn errors.New(\"glUniform4ui\")\n\t}\n\tgpUniform4ui64ARB = (C.GPUNIFORM4UI64ARB)(getProcAddr(\"glUniform4ui64ARB\"))\n\tgpUniform4ui64NV = (C.GPUNIFORM4UI64NV)(getProcAddr(\"glUniform4ui64NV\"))\n\tgpUniform4ui64vARB = (C.GPUNIFORM4UI64VARB)(getProcAddr(\"glUniform4ui64vARB\"))\n\tgpUniform4ui64vNV = (C.GPUNIFORM4UI64VNV)(getProcAddr(\"glUniform4ui64vNV\"))\n\tgpUniform4uiv = (C.GPUNIFORM4UIV)(getProcAddr(\"glUniform4uiv\"))\n\tif gpUniform4uiv == nil {\n\t\treturn errors.New(\"glUniform4uiv\")\n\t}\n\tgpUniformBlockBinding = (C.GPUNIFORMBLOCKBINDING)(getProcAddr(\"glUniformBlockBinding\"))\n\tif gpUniformBlockBinding == nil {\n\t\treturn errors.New(\"glUniformBlockBinding\")\n\t}\n\tgpUniformHandleui64ARB = (C.GPUNIFORMHANDLEUI64ARB)(getProcAddr(\"glUniformHandleui64ARB\"))\n\tgpUniformHandleui64NV = (C.GPUNIFORMHANDLEUI64NV)(getProcAddr(\"glUniformHandleui64NV\"))\n\tgpUniformHandleui64vARB = (C.GPUNIFORMHANDLEUI64VARB)(getProcAddr(\"glUniformHandleui64vARB\"))\n\tgpUniformHandleui64vNV = (C.GPUNIFORMHANDLEUI64VNV)(getProcAddr(\"glUniformHandleui64vNV\"))\n\tgpUniformMatrix2dv = (C.GPUNIFORMMATRIX2DV)(getProcAddr(\"glUniformMatrix2dv\"))\n\tif gpUniformMatrix2dv == nil {\n\t\treturn errors.New(\"glUniformMatrix2dv\")\n\t}\n\tgpUniformMatrix2fv = (C.GPUNIFORMMATRIX2FV)(getProcAddr(\"glUniformMatrix2fv\"))\n\tif gpUniformMatrix2fv == nil {\n\t\treturn errors.New(\"glUniformMatrix2fv\")\n\t}\n\tgpUniformMatrix2x3dv = (C.GPUNIFORMMATRIX2X3DV)(getProcAddr(\"glUniformMatrix2x3dv\"))\n\tif gpUniformMatrix2x3dv == nil {\n\t\treturn errors.New(\"glUniformMatrix2x3dv\")\n\t}\n\tgpUniformMatrix2x3fv = (C.GPUNIFORMMATRIX2X3FV)(getProcAddr(\"glUniformMatrix2x3fv\"))\n\tif gpUniformMatrix2x3fv == nil {\n\t\treturn errors.New(\"glUniformMatrix2x3fv\")\n\t}\n\tgpUniformMatrix2x4dv = (C.GPUNIFORMMATRIX2X4DV)(getProcAddr(\"glUniformMatrix2x4dv\"))\n\tif gpUniformMatrix2x4dv == nil {\n\t\treturn errors.New(\"glUniformMatrix2x4dv\")\n\t}\n\tgpUniformMatrix2x4fv = (C.GPUNIFORMMATRIX2X4FV)(getProcAddr(\"glUniformMatrix2x4fv\"))\n\tif gpUniformMatrix2x4fv == nil {\n\t\treturn errors.New(\"glUniformMatrix2x4fv\")\n\t}\n\tgpUniformMatrix3dv = (C.GPUNIFORMMATRIX3DV)(getProcAddr(\"glUniformMatrix3dv\"))\n\tif gpUniformMatrix3dv == nil {\n\t\treturn errors.New(\"glUniformMatrix3dv\")\n\t}\n\tgpUniformMatrix3fv = (C.GPUNIFORMMATRIX3FV)(getProcAddr(\"glUniformMatrix3fv\"))\n\tif gpUniformMatrix3fv == nil {\n\t\treturn errors.New(\"glUniformMatrix3fv\")\n\t}\n\tgpUniformMatrix3x2dv = (C.GPUNIFORMMATRIX3X2DV)(getProcAddr(\"glUniformMatrix3x2dv\"))\n\tif gpUniformMatrix3x2dv == nil {\n\t\treturn errors.New(\"glUniformMatrix3x2dv\")\n\t}\n\tgpUniformMatrix3x2fv = (C.GPUNIFORMMATRIX3X2FV)(getProcAddr(\"glUniformMatrix3x2fv\"))\n\tif gpUniformMatrix3x2fv == nil {\n\t\treturn errors.New(\"glUniformMatrix3x2fv\")\n\t}\n\tgpUniformMatrix3x4dv = (C.GPUNIFORMMATRIX3X4DV)(getProcAddr(\"glUniformMatrix3x4dv\"))\n\tif gpUniformMatrix3x4dv == nil {\n\t\treturn errors.New(\"glUniformMatrix3x4dv\")\n\t}\n\tgpUniformMatrix3x4fv = (C.GPUNIFORMMATRIX3X4FV)(getProcAddr(\"glUniformMatrix3x4fv\"))\n\tif gpUniformMatrix3x4fv == nil {\n\t\treturn errors.New(\"glUniformMatrix3x4fv\")\n\t}\n\tgpUniformMatrix4dv = (C.GPUNIFORMMATRIX4DV)(getProcAddr(\"glUniformMatrix4dv\"))\n\tif gpUniformMatrix4dv == nil {\n\t\treturn errors.New(\"glUniformMatrix4dv\")\n\t}\n\tgpUniformMatrix4fv = (C.GPUNIFORMMATRIX4FV)(getProcAddr(\"glUniformMatrix4fv\"))\n\tif gpUniformMatrix4fv == nil {\n\t\treturn errors.New(\"glUniformMatrix4fv\")\n\t}\n\tgpUniformMatrix4x2dv = (C.GPUNIFORMMATRIX4X2DV)(getProcAddr(\"glUniformMatrix4x2dv\"))\n\tif gpUniformMatrix4x2dv == nil {\n\t\treturn errors.New(\"glUniformMatrix4x2dv\")\n\t}\n\tgpUniformMatrix4x2fv = (C.GPUNIFORMMATRIX4X2FV)(getProcAddr(\"glUniformMatrix4x2fv\"))\n\tif gpUniformMatrix4x2fv == nil {\n\t\treturn errors.New(\"glUniformMatrix4x2fv\")\n\t}\n\tgpUniformMatrix4x3dv = (C.GPUNIFORMMATRIX4X3DV)(getProcAddr(\"glUniformMatrix4x3dv\"))\n\tif gpUniformMatrix4x3dv == nil {\n\t\treturn errors.New(\"glUniformMatrix4x3dv\")\n\t}\n\tgpUniformMatrix4x3fv = (C.GPUNIFORMMATRIX4X3FV)(getProcAddr(\"glUniformMatrix4x3fv\"))\n\tif gpUniformMatrix4x3fv == nil {\n\t\treturn errors.New(\"glUniformMatrix4x3fv\")\n\t}\n\tgpUniformSubroutinesuiv = (C.GPUNIFORMSUBROUTINESUIV)(getProcAddr(\"glUniformSubroutinesuiv\"))\n\tif gpUniformSubroutinesuiv == nil {\n\t\treturn errors.New(\"glUniformSubroutinesuiv\")\n\t}\n\tgpUniformui64NV = (C.GPUNIFORMUI64NV)(getProcAddr(\"glUniformui64NV\"))\n\tgpUniformui64vNV = (C.GPUNIFORMUI64VNV)(getProcAddr(\"glUniformui64vNV\"))\n\tgpUnmapBuffer = (C.GPUNMAPBUFFER)(getProcAddr(\"glUnmapBuffer\"))\n\tif gpUnmapBuffer == nil {\n\t\treturn errors.New(\"glUnmapBuffer\")\n\t}\n\tgpUnmapNamedBuffer = (C.GPUNMAPNAMEDBUFFER)(getProcAddr(\"glUnmapNamedBuffer\"))\n\tgpUnmapNamedBufferEXT = (C.GPUNMAPNAMEDBUFFEREXT)(getProcAddr(\"glUnmapNamedBufferEXT\"))\n\tgpUseProgram = (C.GPUSEPROGRAM)(getProcAddr(\"glUseProgram\"))\n\tif gpUseProgram == nil {\n\t\treturn errors.New(\"glUseProgram\")\n\t}\n\tgpUseProgramStages = (C.GPUSEPROGRAMSTAGES)(getProcAddr(\"glUseProgramStages\"))\n\tif gpUseProgramStages == nil {\n\t\treturn errors.New(\"glUseProgramStages\")\n\t}\n\tgpUseProgramStagesEXT = (C.GPUSEPROGRAMSTAGESEXT)(getProcAddr(\"glUseProgramStagesEXT\"))\n\tgpUseShaderProgramEXT = (C.GPUSESHADERPROGRAMEXT)(getProcAddr(\"glUseShaderProgramEXT\"))\n\tgpValidateProgram = (C.GPVALIDATEPROGRAM)(getProcAddr(\"glValidateProgram\"))\n\tif gpValidateProgram == nil {\n\t\treturn errors.New(\"glValidateProgram\")\n\t}\n\tgpValidateProgramPipeline = (C.GPVALIDATEPROGRAMPIPELINE)(getProcAddr(\"glValidateProgramPipeline\"))\n\tif gpValidateProgramPipeline == nil {\n\t\treturn errors.New(\"glValidateProgramPipeline\")\n\t}\n\tgpValidateProgramPipelineEXT = (C.GPVALIDATEPROGRAMPIPELINEEXT)(getProcAddr(\"glValidateProgramPipelineEXT\"))\n\tgpVertexArrayAttribBinding = (C.GPVERTEXARRAYATTRIBBINDING)(getProcAddr(\"glVertexArrayAttribBinding\"))\n\tgpVertexArrayAttribFormat = (C.GPVERTEXARRAYATTRIBFORMAT)(getProcAddr(\"glVertexArrayAttribFormat\"))\n\tgpVertexArrayAttribIFormat = (C.GPVERTEXARRAYATTRIBIFORMAT)(getProcAddr(\"glVertexArrayAttribIFormat\"))\n\tgpVertexArrayAttribLFormat = (C.GPVERTEXARRAYATTRIBLFORMAT)(getProcAddr(\"glVertexArrayAttribLFormat\"))\n\tgpVertexArrayBindVertexBufferEXT = (C.GPVERTEXARRAYBINDVERTEXBUFFEREXT)(getProcAddr(\"glVertexArrayBindVertexBufferEXT\"))\n\tgpVertexArrayBindingDivisor = (C.GPVERTEXARRAYBINDINGDIVISOR)(getProcAddr(\"glVertexArrayBindingDivisor\"))\n\tgpVertexArrayColorOffsetEXT = (C.GPVERTEXARRAYCOLOROFFSETEXT)(getProcAddr(\"glVertexArrayColorOffsetEXT\"))\n\tgpVertexArrayEdgeFlagOffsetEXT = (C.GPVERTEXARRAYEDGEFLAGOFFSETEXT)(getProcAddr(\"glVertexArrayEdgeFlagOffsetEXT\"))\n\tgpVertexArrayElementBuffer = (C.GPVERTEXARRAYELEMENTBUFFER)(getProcAddr(\"glVertexArrayElementBuffer\"))\n\tgpVertexArrayFogCoordOffsetEXT = (C.GPVERTEXARRAYFOGCOORDOFFSETEXT)(getProcAddr(\"glVertexArrayFogCoordOffsetEXT\"))\n\tgpVertexArrayIndexOffsetEXT = (C.GPVERTEXARRAYINDEXOFFSETEXT)(getProcAddr(\"glVertexArrayIndexOffsetEXT\"))\n\tgpVertexArrayMultiTexCoordOffsetEXT = (C.GPVERTEXARRAYMULTITEXCOORDOFFSETEXT)(getProcAddr(\"glVertexArrayMultiTexCoordOffsetEXT\"))\n\tgpVertexArrayNormalOffsetEXT = (C.GPVERTEXARRAYNORMALOFFSETEXT)(getProcAddr(\"glVertexArrayNormalOffsetEXT\"))\n\tgpVertexArraySecondaryColorOffsetEXT = (C.GPVERTEXARRAYSECONDARYCOLOROFFSETEXT)(getProcAddr(\"glVertexArraySecondaryColorOffsetEXT\"))\n\tgpVertexArrayTexCoordOffsetEXT = (C.GPVERTEXARRAYTEXCOORDOFFSETEXT)(getProcAddr(\"glVertexArrayTexCoordOffsetEXT\"))\n\tgpVertexArrayVertexAttribBindingEXT = (C.GPVERTEXARRAYVERTEXATTRIBBINDINGEXT)(getProcAddr(\"glVertexArrayVertexAttribBindingEXT\"))\n\tgpVertexArrayVertexAttribDivisorEXT = (C.GPVERTEXARRAYVERTEXATTRIBDIVISOREXT)(getProcAddr(\"glVertexArrayVertexAttribDivisorEXT\"))\n\tgpVertexArrayVertexAttribFormatEXT = (C.GPVERTEXARRAYVERTEXATTRIBFORMATEXT)(getProcAddr(\"glVertexArrayVertexAttribFormatEXT\"))\n\tgpVertexArrayVertexAttribIFormatEXT = (C.GPVERTEXARRAYVERTEXATTRIBIFORMATEXT)(getProcAddr(\"glVertexArrayVertexAttribIFormatEXT\"))\n\tgpVertexArrayVertexAttribIOffsetEXT = (C.GPVERTEXARRAYVERTEXATTRIBIOFFSETEXT)(getProcAddr(\"glVertexArrayVertexAttribIOffsetEXT\"))\n\tgpVertexArrayVertexAttribLFormatEXT = (C.GPVERTEXARRAYVERTEXATTRIBLFORMATEXT)(getProcAddr(\"glVertexArrayVertexAttribLFormatEXT\"))\n\tgpVertexArrayVertexAttribLOffsetEXT = (C.GPVERTEXARRAYVERTEXATTRIBLOFFSETEXT)(getProcAddr(\"glVertexArrayVertexAttribLOffsetEXT\"))\n\tgpVertexArrayVertexAttribOffsetEXT = (C.GPVERTEXARRAYVERTEXATTRIBOFFSETEXT)(getProcAddr(\"glVertexArrayVertexAttribOffsetEXT\"))\n\tgpVertexArrayVertexBindingDivisorEXT = (C.GPVERTEXARRAYVERTEXBINDINGDIVISOREXT)(getProcAddr(\"glVertexArrayVertexBindingDivisorEXT\"))\n\tgpVertexArrayVertexBuffer = (C.GPVERTEXARRAYVERTEXBUFFER)(getProcAddr(\"glVertexArrayVertexBuffer\"))\n\tgpVertexArrayVertexBuffers = (C.GPVERTEXARRAYVERTEXBUFFERS)(getProcAddr(\"glVertexArrayVertexBuffers\"))\n\tgpVertexArrayVertexOffsetEXT = (C.GPVERTEXARRAYVERTEXOFFSETEXT)(getProcAddr(\"glVertexArrayVertexOffsetEXT\"))\n\tgpVertexAttrib1d = (C.GPVERTEXATTRIB1D)(getProcAddr(\"glVertexAttrib1d\"))\n\tif gpVertexAttrib1d == nil {\n\t\treturn errors.New(\"glVertexAttrib1d\")\n\t}\n\tgpVertexAttrib1dv = (C.GPVERTEXATTRIB1DV)(getProcAddr(\"glVertexAttrib1dv\"))\n\tif gpVertexAttrib1dv == nil {\n\t\treturn errors.New(\"glVertexAttrib1dv\")\n\t}\n\tgpVertexAttrib1f = (C.GPVERTEXATTRIB1F)(getProcAddr(\"glVertexAttrib1f\"))\n\tif gpVertexAttrib1f == nil {\n\t\treturn errors.New(\"glVertexAttrib1f\")\n\t}\n\tgpVertexAttrib1fv = (C.GPVERTEXATTRIB1FV)(getProcAddr(\"glVertexAttrib1fv\"))\n\tif gpVertexAttrib1fv == nil {\n\t\treturn errors.New(\"glVertexAttrib1fv\")\n\t}\n\tgpVertexAttrib1s = (C.GPVERTEXATTRIB1S)(getProcAddr(\"glVertexAttrib1s\"))\n\tif gpVertexAttrib1s == nil {\n\t\treturn errors.New(\"glVertexAttrib1s\")\n\t}\n\tgpVertexAttrib1sv = (C.GPVERTEXATTRIB1SV)(getProcAddr(\"glVertexAttrib1sv\"))\n\tif gpVertexAttrib1sv == nil {\n\t\treturn errors.New(\"glVertexAttrib1sv\")\n\t}\n\tgpVertexAttrib2d = (C.GPVERTEXATTRIB2D)(getProcAddr(\"glVertexAttrib2d\"))\n\tif gpVertexAttrib2d == nil {\n\t\treturn errors.New(\"glVertexAttrib2d\")\n\t}\n\tgpVertexAttrib2dv = (C.GPVERTEXATTRIB2DV)(getProcAddr(\"glVertexAttrib2dv\"))\n\tif gpVertexAttrib2dv == nil {\n\t\treturn errors.New(\"glVertexAttrib2dv\")\n\t}\n\tgpVertexAttrib2f = (C.GPVERTEXATTRIB2F)(getProcAddr(\"glVertexAttrib2f\"))\n\tif gpVertexAttrib2f == nil {\n\t\treturn errors.New(\"glVertexAttrib2f\")\n\t}\n\tgpVertexAttrib2fv = (C.GPVERTEXATTRIB2FV)(getProcAddr(\"glVertexAttrib2fv\"))\n\tif gpVertexAttrib2fv == nil {\n\t\treturn errors.New(\"glVertexAttrib2fv\")\n\t}\n\tgpVertexAttrib2s = (C.GPVERTEXATTRIB2S)(getProcAddr(\"glVertexAttrib2s\"))\n\tif gpVertexAttrib2s == nil {\n\t\treturn errors.New(\"glVertexAttrib2s\")\n\t}\n\tgpVertexAttrib2sv = (C.GPVERTEXATTRIB2SV)(getProcAddr(\"glVertexAttrib2sv\"))\n\tif gpVertexAttrib2sv == nil {\n\t\treturn errors.New(\"glVertexAttrib2sv\")\n\t}\n\tgpVertexAttrib3d = (C.GPVERTEXATTRIB3D)(getProcAddr(\"glVertexAttrib3d\"))\n\tif gpVertexAttrib3d == nil {\n\t\treturn errors.New(\"glVertexAttrib3d\")\n\t}\n\tgpVertexAttrib3dv = (C.GPVERTEXATTRIB3DV)(getProcAddr(\"glVertexAttrib3dv\"))\n\tif gpVertexAttrib3dv == nil {\n\t\treturn errors.New(\"glVertexAttrib3dv\")\n\t}\n\tgpVertexAttrib3f = (C.GPVERTEXATTRIB3F)(getProcAddr(\"glVertexAttrib3f\"))\n\tif gpVertexAttrib3f == nil {\n\t\treturn errors.New(\"glVertexAttrib3f\")\n\t}\n\tgpVertexAttrib3fv = (C.GPVERTEXATTRIB3FV)(getProcAddr(\"glVertexAttrib3fv\"))\n\tif gpVertexAttrib3fv == nil {\n\t\treturn errors.New(\"glVertexAttrib3fv\")\n\t}\n\tgpVertexAttrib3s = (C.GPVERTEXATTRIB3S)(getProcAddr(\"glVertexAttrib3s\"))\n\tif gpVertexAttrib3s == nil {\n\t\treturn errors.New(\"glVertexAttrib3s\")\n\t}\n\tgpVertexAttrib3sv = (C.GPVERTEXATTRIB3SV)(getProcAddr(\"glVertexAttrib3sv\"))\n\tif gpVertexAttrib3sv == nil {\n\t\treturn errors.New(\"glVertexAttrib3sv\")\n\t}\n\tgpVertexAttrib4Nbv = (C.GPVERTEXATTRIB4NBV)(getProcAddr(\"glVertexAttrib4Nbv\"))\n\tif gpVertexAttrib4Nbv == nil {\n\t\treturn errors.New(\"glVertexAttrib4Nbv\")\n\t}\n\tgpVertexAttrib4Niv = (C.GPVERTEXATTRIB4NIV)(getProcAddr(\"glVertexAttrib4Niv\"))\n\tif gpVertexAttrib4Niv == nil {\n\t\treturn errors.New(\"glVertexAttrib4Niv\")\n\t}\n\tgpVertexAttrib4Nsv = (C.GPVERTEXATTRIB4NSV)(getProcAddr(\"glVertexAttrib4Nsv\"))\n\tif gpVertexAttrib4Nsv == nil {\n\t\treturn errors.New(\"glVertexAttrib4Nsv\")\n\t}\n\tgpVertexAttrib4Nub = (C.GPVERTEXATTRIB4NUB)(getProcAddr(\"glVertexAttrib4Nub\"))\n\tif gpVertexAttrib4Nub == nil {\n\t\treturn errors.New(\"glVertexAttrib4Nub\")\n\t}\n\tgpVertexAttrib4Nubv = (C.GPVERTEXATTRIB4NUBV)(getProcAddr(\"glVertexAttrib4Nubv\"))\n\tif gpVertexAttrib4Nubv == nil {\n\t\treturn errors.New(\"glVertexAttrib4Nubv\")\n\t}\n\tgpVertexAttrib4Nuiv = (C.GPVERTEXATTRIB4NUIV)(getProcAddr(\"glVertexAttrib4Nuiv\"))\n\tif gpVertexAttrib4Nuiv == nil {\n\t\treturn errors.New(\"glVertexAttrib4Nuiv\")\n\t}\n\tgpVertexAttrib4Nusv = (C.GPVERTEXATTRIB4NUSV)(getProcAddr(\"glVertexAttrib4Nusv\"))\n\tif gpVertexAttrib4Nusv == nil {\n\t\treturn errors.New(\"glVertexAttrib4Nusv\")\n\t}\n\tgpVertexAttrib4bv = (C.GPVERTEXATTRIB4BV)(getProcAddr(\"glVertexAttrib4bv\"))\n\tif gpVertexAttrib4bv == nil {\n\t\treturn errors.New(\"glVertexAttrib4bv\")\n\t}\n\tgpVertexAttrib4d = (C.GPVERTEXATTRIB4D)(getProcAddr(\"glVertexAttrib4d\"))\n\tif gpVertexAttrib4d == nil {\n\t\treturn errors.New(\"glVertexAttrib4d\")\n\t}\n\tgpVertexAttrib4dv = (C.GPVERTEXATTRIB4DV)(getProcAddr(\"glVertexAttrib4dv\"))\n\tif gpVertexAttrib4dv == nil {\n\t\treturn errors.New(\"glVertexAttrib4dv\")\n\t}\n\tgpVertexAttrib4f = (C.GPVERTEXATTRIB4F)(getProcAddr(\"glVertexAttrib4f\"))\n\tif gpVertexAttrib4f == nil {\n\t\treturn errors.New(\"glVertexAttrib4f\")\n\t}\n\tgpVertexAttrib4fv = (C.GPVERTEXATTRIB4FV)(getProcAddr(\"glVertexAttrib4fv\"))\n\tif gpVertexAttrib4fv == nil {\n\t\treturn errors.New(\"glVertexAttrib4fv\")\n\t}\n\tgpVertexAttrib4iv = (C.GPVERTEXATTRIB4IV)(getProcAddr(\"glVertexAttrib4iv\"))\n\tif gpVertexAttrib4iv == nil {\n\t\treturn errors.New(\"glVertexAttrib4iv\")\n\t}\n\tgpVertexAttrib4s = (C.GPVERTEXATTRIB4S)(getProcAddr(\"glVertexAttrib4s\"))\n\tif gpVertexAttrib4s == nil {\n\t\treturn errors.New(\"glVertexAttrib4s\")\n\t}\n\tgpVertexAttrib4sv = (C.GPVERTEXATTRIB4SV)(getProcAddr(\"glVertexAttrib4sv\"))\n\tif gpVertexAttrib4sv == nil {\n\t\treturn errors.New(\"glVertexAttrib4sv\")\n\t}\n\tgpVertexAttrib4ubv = (C.GPVERTEXATTRIB4UBV)(getProcAddr(\"glVertexAttrib4ubv\"))\n\tif gpVertexAttrib4ubv == nil {\n\t\treturn errors.New(\"glVertexAttrib4ubv\")\n\t}\n\tgpVertexAttrib4uiv = (C.GPVERTEXATTRIB4UIV)(getProcAddr(\"glVertexAttrib4uiv\"))\n\tif gpVertexAttrib4uiv == nil {\n\t\treturn errors.New(\"glVertexAttrib4uiv\")\n\t}\n\tgpVertexAttrib4usv = (C.GPVERTEXATTRIB4USV)(getProcAddr(\"glVertexAttrib4usv\"))\n\tif gpVertexAttrib4usv == nil {\n\t\treturn errors.New(\"glVertexAttrib4usv\")\n\t}\n\tgpVertexAttribBinding = (C.GPVERTEXATTRIBBINDING)(getProcAddr(\"glVertexAttribBinding\"))\n\tgpVertexAttribDivisor = (C.GPVERTEXATTRIBDIVISOR)(getProcAddr(\"glVertexAttribDivisor\"))\n\tif gpVertexAttribDivisor == nil {\n\t\treturn errors.New(\"glVertexAttribDivisor\")\n\t}\n\tgpVertexAttribDivisorARB = (C.GPVERTEXATTRIBDIVISORARB)(getProcAddr(\"glVertexAttribDivisorARB\"))\n\tgpVertexAttribFormat = (C.GPVERTEXATTRIBFORMAT)(getProcAddr(\"glVertexAttribFormat\"))\n\tgpVertexAttribFormatNV = (C.GPVERTEXATTRIBFORMATNV)(getProcAddr(\"glVertexAttribFormatNV\"))\n\tgpVertexAttribI1i = (C.GPVERTEXATTRIBI1I)(getProcAddr(\"glVertexAttribI1i\"))\n\tif gpVertexAttribI1i == nil {\n\t\treturn errors.New(\"glVertexAttribI1i\")\n\t}\n\tgpVertexAttribI1iv = (C.GPVERTEXATTRIBI1IV)(getProcAddr(\"glVertexAttribI1iv\"))\n\tif gpVertexAttribI1iv == nil {\n\t\treturn errors.New(\"glVertexAttribI1iv\")\n\t}\n\tgpVertexAttribI1ui = (C.GPVERTEXATTRIBI1UI)(getProcAddr(\"glVertexAttribI1ui\"))\n\tif gpVertexAttribI1ui == nil {\n\t\treturn errors.New(\"glVertexAttribI1ui\")\n\t}\n\tgpVertexAttribI1uiv = (C.GPVERTEXATTRIBI1UIV)(getProcAddr(\"glVertexAttribI1uiv\"))\n\tif gpVertexAttribI1uiv == nil {\n\t\treturn errors.New(\"glVertexAttribI1uiv\")\n\t}\n\tgpVertexAttribI2i = (C.GPVERTEXATTRIBI2I)(getProcAddr(\"glVertexAttribI2i\"))\n\tif gpVertexAttribI2i == nil {\n\t\treturn errors.New(\"glVertexAttribI2i\")\n\t}\n\tgpVertexAttribI2iv = (C.GPVERTEXATTRIBI2IV)(getProcAddr(\"glVertexAttribI2iv\"))\n\tif gpVertexAttribI2iv == nil {\n\t\treturn errors.New(\"glVertexAttribI2iv\")\n\t}\n\tgpVertexAttribI2ui = (C.GPVERTEXATTRIBI2UI)(getProcAddr(\"glVertexAttribI2ui\"))\n\tif gpVertexAttribI2ui == nil {\n\t\treturn errors.New(\"glVertexAttribI2ui\")\n\t}\n\tgpVertexAttribI2uiv = (C.GPVERTEXATTRIBI2UIV)(getProcAddr(\"glVertexAttribI2uiv\"))\n\tif gpVertexAttribI2uiv == nil {\n\t\treturn errors.New(\"glVertexAttribI2uiv\")\n\t}\n\tgpVertexAttribI3i = (C.GPVERTEXATTRIBI3I)(getProcAddr(\"glVertexAttribI3i\"))\n\tif gpVertexAttribI3i == nil {\n\t\treturn errors.New(\"glVertexAttribI3i\")\n\t}\n\tgpVertexAttribI3iv = (C.GPVERTEXATTRIBI3IV)(getProcAddr(\"glVertexAttribI3iv\"))\n\tif gpVertexAttribI3iv == nil {\n\t\treturn errors.New(\"glVertexAttribI3iv\")\n\t}\n\tgpVertexAttribI3ui = (C.GPVERTEXATTRIBI3UI)(getProcAddr(\"glVertexAttribI3ui\"))\n\tif gpVertexAttribI3ui == nil {\n\t\treturn errors.New(\"glVertexAttribI3ui\")\n\t}\n\tgpVertexAttribI3uiv = (C.GPVERTEXATTRIBI3UIV)(getProcAddr(\"glVertexAttribI3uiv\"))\n\tif gpVertexAttribI3uiv == nil {\n\t\treturn errors.New(\"glVertexAttribI3uiv\")\n\t}\n\tgpVertexAttribI4bv = (C.GPVERTEXATTRIBI4BV)(getProcAddr(\"glVertexAttribI4bv\"))\n\tif gpVertexAttribI4bv == nil {\n\t\treturn errors.New(\"glVertexAttribI4bv\")\n\t}\n\tgpVertexAttribI4i = (C.GPVERTEXATTRIBI4I)(getProcAddr(\"glVertexAttribI4i\"))\n\tif gpVertexAttribI4i == nil {\n\t\treturn errors.New(\"glVertexAttribI4i\")\n\t}\n\tgpVertexAttribI4iv = (C.GPVERTEXATTRIBI4IV)(getProcAddr(\"glVertexAttribI4iv\"))\n\tif gpVertexAttribI4iv == nil {\n\t\treturn errors.New(\"glVertexAttribI4iv\")\n\t}\n\tgpVertexAttribI4sv = (C.GPVERTEXATTRIBI4SV)(getProcAddr(\"glVertexAttribI4sv\"))\n\tif gpVertexAttribI4sv == nil {\n\t\treturn errors.New(\"glVertexAttribI4sv\")\n\t}\n\tgpVertexAttribI4ubv = (C.GPVERTEXATTRIBI4UBV)(getProcAddr(\"glVertexAttribI4ubv\"))\n\tif gpVertexAttribI4ubv == nil {\n\t\treturn errors.New(\"glVertexAttribI4ubv\")\n\t}\n\tgpVertexAttribI4ui = (C.GPVERTEXATTRIBI4UI)(getProcAddr(\"glVertexAttribI4ui\"))\n\tif gpVertexAttribI4ui == nil {\n\t\treturn errors.New(\"glVertexAttribI4ui\")\n\t}\n\tgpVertexAttribI4uiv = (C.GPVERTEXATTRIBI4UIV)(getProcAddr(\"glVertexAttribI4uiv\"))\n\tif gpVertexAttribI4uiv == nil {\n\t\treturn errors.New(\"glVertexAttribI4uiv\")\n\t}\n\tgpVertexAttribI4usv = (C.GPVERTEXATTRIBI4USV)(getProcAddr(\"glVertexAttribI4usv\"))\n\tif gpVertexAttribI4usv == nil {\n\t\treturn errors.New(\"glVertexAttribI4usv\")\n\t}\n\tgpVertexAttribIFormat = (C.GPVERTEXATTRIBIFORMAT)(getProcAddr(\"glVertexAttribIFormat\"))\n\tgpVertexAttribIFormatNV = (C.GPVERTEXATTRIBIFORMATNV)(getProcAddr(\"glVertexAttribIFormatNV\"))\n\tgpVertexAttribIPointer = (C.GPVERTEXATTRIBIPOINTER)(getProcAddr(\"glVertexAttribIPointer\"))\n\tif gpVertexAttribIPointer == nil {\n\t\treturn errors.New(\"glVertexAttribIPointer\")\n\t}\n\tgpVertexAttribL1d = (C.GPVERTEXATTRIBL1D)(getProcAddr(\"glVertexAttribL1d\"))\n\tif gpVertexAttribL1d == nil {\n\t\treturn errors.New(\"glVertexAttribL1d\")\n\t}\n\tgpVertexAttribL1dv = (C.GPVERTEXATTRIBL1DV)(getProcAddr(\"glVertexAttribL1dv\"))\n\tif gpVertexAttribL1dv == nil {\n\t\treturn errors.New(\"glVertexAttribL1dv\")\n\t}\n\tgpVertexAttribL1i64NV = (C.GPVERTEXATTRIBL1I64NV)(getProcAddr(\"glVertexAttribL1i64NV\"))\n\tgpVertexAttribL1i64vNV = (C.GPVERTEXATTRIBL1I64VNV)(getProcAddr(\"glVertexAttribL1i64vNV\"))\n\tgpVertexAttribL1ui64ARB = (C.GPVERTEXATTRIBL1UI64ARB)(getProcAddr(\"glVertexAttribL1ui64ARB\"))\n\tgpVertexAttribL1ui64NV = (C.GPVERTEXATTRIBL1UI64NV)(getProcAddr(\"glVertexAttribL1ui64NV\"))\n\tgpVertexAttribL1ui64vARB = (C.GPVERTEXATTRIBL1UI64VARB)(getProcAddr(\"glVertexAttribL1ui64vARB\"))\n\tgpVertexAttribL1ui64vNV = (C.GPVERTEXATTRIBL1UI64VNV)(getProcAddr(\"glVertexAttribL1ui64vNV\"))\n\tgpVertexAttribL2d = (C.GPVERTEXATTRIBL2D)(getProcAddr(\"glVertexAttribL2d\"))\n\tif gpVertexAttribL2d == nil {\n\t\treturn errors.New(\"glVertexAttribL2d\")\n\t}\n\tgpVertexAttribL2dv = (C.GPVERTEXATTRIBL2DV)(getProcAddr(\"glVertexAttribL2dv\"))\n\tif gpVertexAttribL2dv == nil {\n\t\treturn errors.New(\"glVertexAttribL2dv\")\n\t}\n\tgpVertexAttribL2i64NV = (C.GPVERTEXATTRIBL2I64NV)(getProcAddr(\"glVertexAttribL2i64NV\"))\n\tgpVertexAttribL2i64vNV = (C.GPVERTEXATTRIBL2I64VNV)(getProcAddr(\"glVertexAttribL2i64vNV\"))\n\tgpVertexAttribL2ui64NV = (C.GPVERTEXATTRIBL2UI64NV)(getProcAddr(\"glVertexAttribL2ui64NV\"))\n\tgpVertexAttribL2ui64vNV = (C.GPVERTEXATTRIBL2UI64VNV)(getProcAddr(\"glVertexAttribL2ui64vNV\"))\n\tgpVertexAttribL3d = (C.GPVERTEXATTRIBL3D)(getProcAddr(\"glVertexAttribL3d\"))\n\tif gpVertexAttribL3d == nil {\n\t\treturn errors.New(\"glVertexAttribL3d\")\n\t}\n\tgpVertexAttribL3dv = (C.GPVERTEXATTRIBL3DV)(getProcAddr(\"glVertexAttribL3dv\"))\n\tif gpVertexAttribL3dv == nil {\n\t\treturn errors.New(\"glVertexAttribL3dv\")\n\t}\n\tgpVertexAttribL3i64NV = (C.GPVERTEXATTRIBL3I64NV)(getProcAddr(\"glVertexAttribL3i64NV\"))\n\tgpVertexAttribL3i64vNV = (C.GPVERTEXATTRIBL3I64VNV)(getProcAddr(\"glVertexAttribL3i64vNV\"))\n\tgpVertexAttribL3ui64NV = (C.GPVERTEXATTRIBL3UI64NV)(getProcAddr(\"glVertexAttribL3ui64NV\"))\n\tgpVertexAttribL3ui64vNV = (C.GPVERTEXATTRIBL3UI64VNV)(getProcAddr(\"glVertexAttribL3ui64vNV\"))\n\tgpVertexAttribL4d = (C.GPVERTEXATTRIBL4D)(getProcAddr(\"glVertexAttribL4d\"))\n\tif gpVertexAttribL4d == nil {\n\t\treturn errors.New(\"glVertexAttribL4d\")\n\t}\n\tgpVertexAttribL4dv = (C.GPVERTEXATTRIBL4DV)(getProcAddr(\"glVertexAttribL4dv\"))\n\tif gpVertexAttribL4dv == nil {\n\t\treturn errors.New(\"glVertexAttribL4dv\")\n\t}\n\tgpVertexAttribL4i64NV = (C.GPVERTEXATTRIBL4I64NV)(getProcAddr(\"glVertexAttribL4i64NV\"))\n\tgpVertexAttribL4i64vNV = (C.GPVERTEXATTRIBL4I64VNV)(getProcAddr(\"glVertexAttribL4i64vNV\"))\n\tgpVertexAttribL4ui64NV = (C.GPVERTEXATTRIBL4UI64NV)(getProcAddr(\"glVertexAttribL4ui64NV\"))\n\tgpVertexAttribL4ui64vNV = (C.GPVERTEXATTRIBL4UI64VNV)(getProcAddr(\"glVertexAttribL4ui64vNV\"))\n\tgpVertexAttribLFormat = (C.GPVERTEXATTRIBLFORMAT)(getProcAddr(\"glVertexAttribLFormat\"))\n\tgpVertexAttribLFormatNV = (C.GPVERTEXATTRIBLFORMATNV)(getProcAddr(\"glVertexAttribLFormatNV\"))\n\tgpVertexAttribLPointer = (C.GPVERTEXATTRIBLPOINTER)(getProcAddr(\"glVertexAttribLPointer\"))\n\tif gpVertexAttribLPointer == nil {\n\t\treturn errors.New(\"glVertexAttribLPointer\")\n\t}\n\tgpVertexAttribP1ui = (C.GPVERTEXATTRIBP1UI)(getProcAddr(\"glVertexAttribP1ui\"))\n\tif gpVertexAttribP1ui == nil {\n\t\treturn errors.New(\"glVertexAttribP1ui\")\n\t}\n\tgpVertexAttribP1uiv = (C.GPVERTEXATTRIBP1UIV)(getProcAddr(\"glVertexAttribP1uiv\"))\n\tif gpVertexAttribP1uiv == nil {\n\t\treturn errors.New(\"glVertexAttribP1uiv\")\n\t}\n\tgpVertexAttribP2ui = (C.GPVERTEXATTRIBP2UI)(getProcAddr(\"glVertexAttribP2ui\"))\n\tif gpVertexAttribP2ui == nil {\n\t\treturn errors.New(\"glVertexAttribP2ui\")\n\t}\n\tgpVertexAttribP2uiv = (C.GPVERTEXATTRIBP2UIV)(getProcAddr(\"glVertexAttribP2uiv\"))\n\tif gpVertexAttribP2uiv == nil {\n\t\treturn errors.New(\"glVertexAttribP2uiv\")\n\t}\n\tgpVertexAttribP3ui = (C.GPVERTEXATTRIBP3UI)(getProcAddr(\"glVertexAttribP3ui\"))\n\tif gpVertexAttribP3ui == nil {\n\t\treturn errors.New(\"glVertexAttribP3ui\")\n\t}\n\tgpVertexAttribP3uiv = (C.GPVERTEXATTRIBP3UIV)(getProcAddr(\"glVertexAttribP3uiv\"))\n\tif gpVertexAttribP3uiv == nil {\n\t\treturn errors.New(\"glVertexAttribP3uiv\")\n\t}\n\tgpVertexAttribP4ui = (C.GPVERTEXATTRIBP4UI)(getProcAddr(\"glVertexAttribP4ui\"))\n\tif gpVertexAttribP4ui == nil {\n\t\treturn errors.New(\"glVertexAttribP4ui\")\n\t}\n\tgpVertexAttribP4uiv = (C.GPVERTEXATTRIBP4UIV)(getProcAddr(\"glVertexAttribP4uiv\"))\n\tif gpVertexAttribP4uiv == nil {\n\t\treturn errors.New(\"glVertexAttribP4uiv\")\n\t}\n\tgpVertexAttribPointer = (C.GPVERTEXATTRIBPOINTER)(getProcAddr(\"glVertexAttribPointer\"))\n\tif gpVertexAttribPointer == nil {\n\t\treturn errors.New(\"glVertexAttribPointer\")\n\t}\n\tgpVertexBindingDivisor = (C.GPVERTEXBINDINGDIVISOR)(getProcAddr(\"glVertexBindingDivisor\"))\n\tgpVertexFormatNV = (C.GPVERTEXFORMATNV)(getProcAddr(\"glVertexFormatNV\"))\n\tgpViewport = (C.GPVIEWPORT)(getProcAddr(\"glViewport\"))\n\tif gpViewport == nil {\n\t\treturn errors.New(\"glViewport\")\n\t}\n\tgpViewportArrayv = (C.GPVIEWPORTARRAYV)(getProcAddr(\"glViewportArrayv\"))\n\tif gpViewportArrayv == nil {\n\t\treturn errors.New(\"glViewportArrayv\")\n\t}\n\tgpViewportIndexedf = (C.GPVIEWPORTINDEXEDF)(getProcAddr(\"glViewportIndexedf\"))\n\tif gpViewportIndexedf == nil {\n\t\treturn errors.New(\"glViewportIndexedf\")\n\t}\n\tgpViewportIndexedfv = (C.GPVIEWPORTINDEXEDFV)(getProcAddr(\"glViewportIndexedfv\"))\n\tif gpViewportIndexedfv == nil {\n\t\treturn errors.New(\"glViewportIndexedfv\")\n\t}\n\tgpViewportPositionWScaleNV = (C.GPVIEWPORTPOSITIONWSCALENV)(getProcAddr(\"glViewportPositionWScaleNV\"))\n\tgpViewportSwizzleNV = (C.GPVIEWPORTSWIZZLENV)(getProcAddr(\"glViewportSwizzleNV\"))\n\tgpWaitSync = (C.GPWAITSYNC)(getProcAddr(\"glWaitSync\"))\n\tif gpWaitSync == nil {\n\t\treturn errors.New(\"glWaitSync\")\n\t}\n\tgpWaitVkSemaphoreNV = (C.GPWAITVKSEMAPHORENV)(getProcAddr(\"glWaitVkSemaphoreNV\"))\n\tgpWeightPathsNV = (C.GPWEIGHTPATHSNV)(getProcAddr(\"glWeightPathsNV\"))\n\tgpWindowRectanglesEXT = (C.GPWINDOWRECTANGLESEXT)(getProcAddr(\"glWindowRectanglesEXT\"))\n\treturn nil\n}", "func newGLWindow(opts *oswin.NewWindowOptions, sc *oswin.Screen) (*glfw.Window, error) {\n\t_, _, tool, fullscreen := oswin.WindowFlagsToBool(opts.Flags)\n\tglfw.DefaultWindowHints()\n\tglfw.WindowHint(glfw.Resizable, glfw.True)\n\tglfw.WindowHint(glfw.Visible, glfw.False) // needed to position\n\tglfw.WindowHint(glfw.Focused, glfw.True)\n\t// glfw.WindowHint(glfw.ScaleToMonitor, glfw.True)\n\tglfw.WindowHint(glfw.ContextVersionMajor, glosGlMajor)\n\tglfw.WindowHint(glfw.ContextVersionMinor, glosGlMinor)\n\tglfw.WindowHint(glfw.OpenGLProfile, glfw.OpenGLCoreProfile)\n\tglfw.WindowHint(glfw.OpenGLForwardCompatible, glfw.True)\n\tglfw.WindowHint(glfw.Samples, 0) // don't do multisampling for main window -- only in sub-render\n\tif glosDebug {\n\t\tglfw.WindowHint(glfw.OpenGLDebugContext, glfw.True)\n\t}\n\n\t// todo: glfw.Samples -- multisampling\n\tif fullscreen {\n\t\tglfw.WindowHint(glfw.Maximized, glfw.True)\n\t}\n\tif tool {\n\t\tglfw.WindowHint(glfw.Decorated, glfw.False)\n\t} else {\n\t\tglfw.WindowHint(glfw.Decorated, glfw.True)\n\t}\n\t// todo: glfw.Floating for always-on-top -- could set for modal\n\tsz := opts.Size // note: this is already in standard window size units!\n\twin, err := glfw.CreateWindow(sz.X, sz.Y, opts.GetTitle(), nil, theApp.shareWin)\n\tif err != nil {\n\t\treturn win, err\n\t}\n\twin.SetPos(opts.Pos.X, opts.Pos.Y)\n\treturn win, err\n}", "func init() {\n\t// Locks the Execution in the main Thread as OpenGL is not thread Safe\n\truntime.LockOSThread()\n}", "func enableMultiplex(enable bool) option.ClientOption {\n\treturn &enableMultiplexSetting{useMultiplex: enable}\n}", "func InitGLTI() {\n\tpanic(\"not implemented\")\n}", "func ToggleLiveMode() {\n\tConfig.LiveMode = !Config.LiveMode\n}", "func System(g gl.Context3, m *ecs.Manager) {\n\tg.ClearColor(1, 1, 1, 1)\n\tg.LineWidth(4)\n\tg.Enable(gl.CULL_FACE)\n\tg.CullFace(gl.BACK)\n\n\trs := glRenderer{\n\t\tg: g,\n\t\tinstances: []*renderableInstance{},\n\t}\n\trs.setupMaterial()\n\tm.ReflAuto(&rs)\n\n}", "func (VS *Server) features(c *gin.Context) {\n\trender(c, gin.H{}, \"presentation-features.html\")\n}", "func LoRaGPSEnable(TTYPath string) error {\n\tfd := C.int(0)\n\n\t// HAL only supports u-blox7 for now, so gps_family must be \"ubx7\"\n\tok := (C.lgw_gps_enable(C.CString(TTYPath), C.CString(\"ubx7\"), C.speed_t(0), &fd) == C.LGW_GPS_SUCCESS)\n\tif !ok {\n\t\treturn errors.New(\"Failed GPS configuration - impossible to open port for GPS sync (check permissions?)\")\n\t}\n\n\tgps = os.NewFile(uintptr(fd), \"GPS\")\n\n\treturn nil\n}", "func Init() {\n\terr := gl.Init()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tgl.Enable(gl.BLEND)\n\tgl.Enable(gl.SCISSOR_TEST)\n\tgl.BlendEquation(gl.FUNC_ADD)\n}", "func serveLicensed(c config.Server) {\n\tweb.ExitIfError(system.Module.Migrate())\n\tweb.ExitIfError(ldap.Initialize(c.LDAP))\n\n\tservices, modulePaths := module.Amalgamate(freeModules)\n\tserviceHandler := module.Handle(services)\n\n\tlog.Printf(\"Initializing %d modules and %d services\", len(modulePaths), len(services))\n\n\thttp.HandleFunc(\"/ws\", socket.Handle(c.HTTP, serviceHandler))\n\thttp.HandleFunc(\"/\", web.Handle(c.HTTP, modulePaths, nil))\n\tlog.Printf(\"Server starting on port %d\", c.HTTP.Port)\n\taddr := fmt.Sprintf(\":%d\", c.HTTP.Port)\n\n\t// Consider http://goroutines.com/ssl\n\tweb.ExitIfError(http.ListenAndServeTLS(addr, c.HTTP.SslCert, c.HTTP.SslKey, nil))\n}", "func DisableVertexAttribArray(index uint32) {\n\tgl.DisableVertexAttribArray(index)\n}", "func DisableVertexAttribArray(index uint32) {\n C.glowDisableVertexAttribArray(gpDisableVertexAttribArray, (C.GLuint)(index))\n}", "func (debugging *debuggingOpenGL) IsEnabled(capability uint32) bool {\n\tdebugging.recordEntry(\"IsEnabled\", capability)\n\tresult := debugging.gl.IsEnabled(capability)\n\tdebugging.recordExit(\"IsEnabled\", result)\n\treturn result\n}", "func IsEnabled(cap Enum) bool {\n\treturn gl.IsEnabled(uint32(cap))\n}", "func (rs *RenderSystem) initGraphics(title string, w int, h int) error {\n\t// GLFW must be initialized before it's called\n\terr := glfw.Init()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"Failed to initialize GLFW. %v\", err)\n\t}\n\n\t// request a OpenGL 3.3 core context\n\tglfw.WindowHint(glfw.Samples, 0)\n\tglfw.WindowHint(glfw.ContextVersionMajor, 3)\n\tglfw.WindowHint(glfw.ContextVersionMinor, 3)\n\tglfw.WindowHint(glfw.OpenGLForwardCompatible, glfw.True)\n\tglfw.WindowHint(glfw.OpenGLProfile, glfw.OpenGLCoreProfile)\n\n\t// do the actual window creation\n\trs.MainWindow, err = glfw.CreateWindow(w, h, title, nil, nil)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"Failed to create the main window. %v\", err)\n\t}\n\n\t// set a function to update the renderer on window resize\n\trs.MainWindow.SetSizeCallback(func(w *glfw.Window, width int, height int) {\n\t\trs.Renderer.ChangeResolution(int32(width), int32(height))\n\t})\n\n\trs.MainWindow.MakeContextCurrent()\n\n\t// disable v-sync for max draw rate\n\tglfw.SwapInterval(0)\n\n\t// initialize OpenGL\n\trs.gfx, err = opengl.InitOpenGL()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"Failed to initialize OpenGL. %v\", err)\n\t}\n\tfizzle.SetGraphics(rs.gfx)\n\n\treturn nil\n}", "func (gbc *GomeboyColor) setHardwareMode(isColor bool) {\n\tif isColor {\n\t\tgbc.cpu.R.A = 0x11\n\t\tgbc.gpu.RunningColorGBHardware = gbc.mmu.IsCartridgeColor()\n\t\tgbc.mmu.RunningColorGBHardware = true\n\t} else {\n\t\tgbc.cpu.R.A = 0x01\n\t\tgbc.gpu.RunningColorGBHardware = false\n\t\tgbc.mmu.RunningColorGBHardware = false\n\t}\n}", "func newGLWindow(opts *oswin.NewWindowOptions) (*glfw.Window, error) {\n\t_, _, tool, fullscreen := oswin.WindowFlagsToBool(opts.Flags)\n\tglfw.DefaultWindowHints()\n\tglfw.WindowHint(glfw.Resizable, glfw.True)\n\tglfw.WindowHint(glfw.Visible, glfw.True) // needed to position\n\tglfw.WindowHint(glfw.Focused, glfw.True)\n\tglfw.WindowHint(glfw.ContextVersionMajor, 4) // 4.1 is max supported on macos\n\tglfw.WindowHint(glfw.ContextVersionMinor, 1)\n\tglfw.WindowHint(glfw.OpenGLProfile, glfw.OpenGLCoreProfile)\n\tglfw.WindowHint(glfw.OpenGLForwardCompatible, glfw.True)\n\tglfw.WindowHint(glfw.Samples, 0) // don't do multisampling for main window -- only in sub-render\n\tif glosDebug {\n\t\tglfw.WindowHint(glfw.OpenGLDebugContext, glfw.True)\n\t}\n\n\t// todo: glfw.Samples -- multisampling\n\tif fullscreen {\n\t\tglfw.WindowHint(glfw.Maximized, glfw.True)\n\t}\n\tif tool {\n\t\tglfw.WindowHint(glfw.Decorated, glfw.False)\n\t} else {\n\t\tglfw.WindowHint(glfw.Decorated, glfw.True)\n\t}\n\t// todo: glfw.Floating for always-on-top -- could set for modal\n\twin, err := glfw.CreateWindow(opts.Size.X, opts.Size.Y, opts.GetTitle(), nil, nil)\n\tif err != nil {\n\t\treturn win, err\n\t}\n\twin.SetPos(opts.Pos.X, opts.Pos.Y)\n\treturn win, err\n}", "func initOpenGL() (uint32, uint32) {\n\tif err := gl.Init(); err != nil {\n\t\tpanic(err)\n\t}\n\tversion := gl.GoStr(gl.GetString(gl.VERSION))\n\tlog.Println(\"OpenGL version\", version)\n\n\tgl.Enable(gl.CULL_FACE)\n\tgl.CullFace(gl.BACK)\n\tgl.FrontFace(gl.CW)\n\n\tvar reactProg, landProg uint32\n\treactProg, landProg = setupShaders()\n\n\t//---------------------------\n\n\tgl.GenVertexArrays(1, &VAO)\n\tgl.GenBuffers(1, &VBO)\n\tgl.GenBuffers(1, &EBO)\n\n\tgl.BindVertexArray(VAO)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, VBO)\n\tgl.BufferData(gl.ARRAY_BUFFER, 4*len(vertices), gl.Ptr(vertices), gl.STATIC_DRAW)\n\tgl.BindBuffer(gl.ELEMENT_ARRAY_BUFFER, EBO)\n\tgl.BufferData(gl.ELEMENT_ARRAY_BUFFER, 4*len(indices), gl.Ptr(indices), gl.STATIC_DRAW)\n\n\t// position attribute\n\tvar vOffset int = 0\n\tgl.EnableVertexAttribArray(0)\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(vOffset))\n\t// color attribute\n\tvar cOffset int = 3 * 4\n\tgl.EnableVertexAttribArray(1)\n\tgl.VertexAttribPointer(1, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(cOffset))\n\t// texture coord attribute\n\tvar tOffset int = 6 * 4\n\tgl.EnableVertexAttribArray(2)\n\tgl.VertexAttribPointer(2, 2, gl.FLOAT, false, 8*4, gl.PtrOffset(tOffset))\n\n\tgl.BindVertexArray(0) // Unbind\n\n\tgl.GenVertexArrays(1, &sqVAO)\n\tgl.GenBuffers(1, &sqVBO)\n\tgl.GenBuffers(1, &sqEBO)\n\n\tgl.BindVertexArray(sqVAO)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, sqVBO)\n\tgl.BufferData(gl.ARRAY_BUFFER, 4*len(vertices2), gl.Ptr(vertices2), gl.STATIC_DRAW)\n\tgl.BindBuffer(gl.ELEMENT_ARRAY_BUFFER, sqEBO)\n\tgl.BufferData(gl.ELEMENT_ARRAY_BUFFER, 4*len(indices2), gl.Ptr(indices2), gl.STATIC_DRAW)\n\n\t// position attribute\n\tvOffset = 0\n\tgl.EnableVertexAttribArray(0)\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(vOffset))\n\t// color attribute\n\tcOffset = 3 * 4\n\tgl.EnableVertexAttribArray(1)\n\tgl.VertexAttribPointer(1, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(cOffset))\n\t// texture coord attribute\n\ttOffset = 6 * 4\n\tgl.EnableVertexAttribArray(2)\n\tgl.VertexAttribPointer(2, 2, gl.FLOAT, false, 8*4, gl.PtrOffset(tOffset))\n\n\tgl.BindVertexArray(0) // Unbind\n\n\t// Both FBO created here\n\tcreateFrameBuffers()\n\tif CheckGLErrors() {\n\t\tInfo.Println(\"InitGL Problems\")\n\t}\n\n\t// -==- Texture data -==-\n\tgl.GenTextures(1, &initTexture)\n\tgl.BindTexture(gl.TEXTURE_2D, initTexture)\n\t// set the texture wrapping/filtering options (on the currently bound texture object)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.REPEAT)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.REPEAT)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST)\n\n\tloadImage(1, data)\n\tgl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, cols, rows, 0, gl.RGBA, gl.UNSIGNED_BYTE, gl.Ptr(data))\n\tgl.GenerateMipmap(gl.TEXTURE_2D)\n\n\tif CheckGLErrors() {\n\t\tInfo.Println(\"InitGL Problems\")\n\t}\n\n\treturn reactProg, landProg\n}", "func main() {\n\tctx, cancel := signals.NewSigKillContext()\n\tctlConf := parseEnvFlags()\n\n\tif ctlConf.LogDir != \"\" {\n\t\tsetupLogging(ctlConf.LogDir, ctlConf.LogSizeLimitMB)\n\t}\n\n\tlogger.WithField(\"logLevel\", ctlConf.LogLevel).Info(\"Setting LogLevel configuration\")\n\tlevel, err := logrus.ParseLevel(strings.ToLower(ctlConf.LogLevel))\n\tif err == nil {\n\t\truntime.SetLevel(level)\n\t} else {\n\t\tlogger.WithError(err).Info(\"Specified wrong Logging.SdkServer. Setting default loglevel - Info\")\n\t\truntime.SetLevel(logrus.InfoLevel)\n\t}\n\n\tlogger.WithField(\"version\", pkg.Version).WithField(\"featureGates\", runtime.EncodeFeatures()).\n\t\tWithField(\"ctlConf\", ctlConf).Info(\"starting gameServer operator...\")\n\n\tif errs := ctlConf.validate(); len(errs) != 0 {\n\t\tfor _, err := range errs {\n\t\t\tlogger.Error(err)\n\t\t}\n\t\tlogger.Fatal(\"Could not create controller from environment or flags\")\n\t}\n\n\t// if the kubeconfig fails BuildConfigFromFlags will try in cluster config\n\tclientConf, err := clientcmd.BuildConfigFromFlags(\"\", ctlConf.KubeConfig)\n\tif err != nil {\n\t\tlogger.WithError(err).Fatal(\"Could not create in cluster config\")\n\t}\n\n\tclientConf.QPS = float32(ctlConf.APIServerSustainedQPS)\n\tclientConf.Burst = ctlConf.APIServerBurstQPS\n\n\tkubeClient, err := kubernetes.NewForConfig(clientConf)\n\tif err != nil {\n\t\tlogger.WithError(err).Fatal(\"Could not create the kubernetes clientset\")\n\t}\n\n\textClient, err := extclientset.NewForConfig(clientConf)\n\tif err != nil {\n\t\tlogger.WithError(err).Fatal(\"Could not create the api extension clientset\")\n\t}\n\n\tagonesClient, err := versioned.NewForConfig(clientConf)\n\tif err != nil {\n\t\tlogger.WithError(err).Fatal(\"Could not create the agones api clientset\")\n\t}\n\n\tcontrollerHooks, err := cloudproduct.NewFromFlag(ctx, kubeClient)\n\tif err != nil {\n\t\tlogger.WithError(err).Fatal(\"Could not initialize cloud product\")\n\t}\n\t// https server and the items that share the Mux for routing\n\thttpsServer := https.NewServer(ctlConf.CertFile, ctlConf.KeyFile)\n\twh := webhooks.NewWebHook(httpsServer.Mux)\n\tapi := apiserver.NewAPIServer(httpsServer.Mux)\n\n\tagonesInformerFactory := externalversions.NewSharedInformerFactory(agonesClient, defaultResync)\n\tkubeInformerFactory := informers.NewSharedInformerFactory(kubeClient, defaultResync)\n\n\tserver := &httpServer{}\n\tvar rs []runner\n\tvar health healthcheck.Handler\n\n\t// Stackdriver metrics\n\tif ctlConf.Stackdriver {\n\t\tsd, err := metrics.RegisterStackdriverExporter(ctlConf.GCPProjectID, ctlConf.StackdriverLabels)\n\t\tif err != nil {\n\t\t\tlogger.WithError(err).Fatal(\"Could not register stackdriver exporter\")\n\t\t}\n\t\t// It is imperative to invoke flush before your main function exits\n\t\tdefer sd.Flush()\n\t}\n\n\t// Prometheus metrics\n\tif ctlConf.PrometheusMetrics {\n\t\tregistry := prom.NewRegistry()\n\t\tmetricHandler, err := metrics.RegisterPrometheusExporter(registry)\n\t\tif err != nil {\n\t\t\tlogger.WithError(err).Fatal(\"Could not register prometheus exporter\")\n\t\t}\n\t\tserver.Handle(\"/metrics\", metricHandler)\n\t\thealth = healthcheck.NewMetricsHandler(registry, \"agones\")\n\t} else {\n\t\thealth = healthcheck.NewHandler()\n\t}\n\n\t// If we are using Prometheus only exporter we can make reporting more often,\n\t// every 1 seconds, if we are using Stackdriver we would use 60 seconds reporting period,\n\t// which is a requirements of Stackdriver, otherwise most of time series would be invalid for Stackdriver\n\tmetrics.SetReportingPeriod(ctlConf.PrometheusMetrics, ctlConf.Stackdriver)\n\n\t// Add metrics controller only if we configure one of metrics exporters\n\tif ctlConf.PrometheusMetrics || ctlConf.Stackdriver {\n\t\trs = append(rs, metrics.NewController(kubeClient, agonesClient, kubeInformerFactory, agonesInformerFactory))\n\t}\n\n\tserver.Handle(\"/\", health)\n\n\tgsCounter := gameservers.NewPerNodeCounter(kubeInformerFactory, agonesInformerFactory)\n\n\tgsController := gameservers.NewController(controllerHooks, health,\n\t\tctlConf.MinPort, ctlConf.MaxPort, ctlConf.SidecarImage, ctlConf.AlwaysPullSidecar,\n\t\tctlConf.SidecarCPURequest, ctlConf.SidecarCPULimit,\n\t\tctlConf.SidecarMemoryRequest, ctlConf.SidecarMemoryLimit, ctlConf.SdkServiceAccount,\n\t\tkubeClient, kubeInformerFactory, extClient, agonesClient, agonesInformerFactory)\n\tgsSetController := gameserversets.NewController(health, gsCounter,\n\t\tkubeClient, extClient, agonesClient, agonesInformerFactory)\n\tfleetController := fleets.NewController(health, kubeClient, extClient, agonesClient, agonesInformerFactory)\n\tfasController := fleetautoscalers.NewController(health,\n\t\tkubeClient, extClient, agonesClient, agonesInformerFactory, gsCounter)\n\n\trs = append(rs,\n\t\tgsCounter, gsController, gsSetController, fleetController, fasController)\n\n\tif !runtime.FeatureEnabled(runtime.FeatureSplitControllerAndExtensions) {\n\t\tgameservers.NewExtensions(controllerHooks, wh)\n\t\tgameserversets.NewExtensions(controllerHooks, wh)\n\t\tfleets.NewExtensions(controllerHooks, wh)\n\t\tfleetautoscalers.NewExtensions(wh)\n\n\t\tgasController := gameserverallocations.NewExtensions(api, health, gsCounter, kubeClient, kubeInformerFactory,\n\t\t\tagonesClient, agonesInformerFactory, 10*time.Second, 30*time.Second, ctlConf.AllocationBatchWaitTime)\n\t\trs = append(rs, httpsServer, gasController)\n\t}\n\n\trunRunner := func(r runner) {\n\t\tif err := r.Run(ctx, ctlConf.NumWorkers); err != nil {\n\t\t\tlogger.WithError(err).Fatalf(\"could not start runner! %T\", r)\n\t\t}\n\t}\n\n\t// Server has to be started earlier because it contains the health check.\n\t// This allows the controller to not fail health check during install when there is replication\n\tgo runRunner(server)\n\n\twhenLeader(ctx, cancel, logger, ctlConf.LeaderElection, kubeClient, ctlConf.PodNamespace, func(ctx context.Context) {\n\t\tkubeInformerFactory.Start(ctx.Done())\n\t\tagonesInformerFactory.Start(ctx.Done())\n\n\t\tfor _, r := range rs {\n\t\t\tgo runRunner(r)\n\t\t}\n\n\t\t<-ctx.Done()\n\t\tlogger.Info(\"Shut down agones controllers\")\n\t})\n}", "func Enable() {\n\tdebug = true\n}", "func ReleaseShaderCompiler() {\n C.glowReleaseShaderCompiler(gpReleaseShaderCompiler)\n}", "func initializeGoogleFeature(router *dgc.Router, rateLimiter dgc.RateLimiter) {\n\t// Register the 'google' command\n\trouter.RegisterCmd(&dgc.Command{\n\t\tName: \"google\",\n\t\tAliases: []string{\"lmgtfy\", \"search\"},\n\t\tDescription: \"Creates a lmgtfy link with the given parameters\",\n\t\tUsage: \"google <parameters>\",\n\t\tExample: \"google How to bake an apple cake\",\n\t\tIgnoreCase: true,\n\t\tRateLimiter: rateLimiter,\n\t\tHandler: googleCommand,\n\t})\n}", "func DrawBuffer(mode uint32) {\n C.glowDrawBuffer(gpDrawBuffer, (C.GLenum)(mode))\n}", "func (b *GoGLBackendOffscreen) Delete() {\n\tgl.DeleteTextures(1, &b.offscrBuf.tex)\n\tgl.DeleteFramebuffers(1, &b.offscrBuf.frameBuf)\n\tgl.DeleteRenderbuffers(1, &b.offscrBuf.renderStencilBuf)\n}", "func (self *TileSprite) _renderWebGL(renderSession *RenderSession) {\n self.Object.Call(\"_renderWebGL\", renderSession)\n}", "func initGlfw(render *Render, scale int, fullscreen bool) *glfw.Window {\n\tif err := glfw.Init(); err != nil {\n\t\tpanic(err)\n\t}\n\n\tglfw.WindowHint(glfw.ContextVersionMajor, 4)\n\tglfw.WindowHint(glfw.ContextVersionMinor, 1)\n\tglfw.WindowHint(glfw.OpenGLProfile, glfw.OpenGLCoreProfile)\n\tglfw.WindowHint(glfw.OpenGLForwardCompatible, glfw.True)\n\n\tvar window *glfw.Window\n\tvar err error\n\tif fullscreen {\n\t\tmonitor := glfw.GetPrimaryMonitor()\n\t\tmode := monitor.GetVideoMode()\n\t\tfmt.Printf(\"dimensions=%dx%d\\n\", mode.Width, mode.Height)\n\n\t\t// doesn't work right on my mac's second monitor...\n\t\twindow, err = glfw.CreateWindow(Width, Height, \"Benji4000\", monitor, nil)\n\t} else {\n\t\tglfw.WindowHint(glfw.Resizable, glfw.True)\n\t\twindow, err = glfw.CreateWindow(Width*scale, Height*scale, \"Benji4000\", nil, nil)\n\t}\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\twindow.MakeContextCurrent()\n\twindow.SetCharCallback(func(w *glfw.Window, char rune) {\n\t\tif render.InputMode > INPUT_MODE_OFF {\n\t\t\trender.CharInput <- char\n\t\t\tif render.InputMode == INPUT_MODE_CHAR {\n\t\t\t\trender.InputMode = INPUT_MODE_OFF\n\t\t\t}\n\t\t}\n\t})\n\twindow.SetKeyCallback(func(w *glfw.Window, key glfw.Key, scancode int, action glfw.Action, mods glfw.ModifierKey) {\n\t\t// fmt.Printf(\"Key pressed: %v, Action=%v, scancode=%d\\n\", key, action, scancode)\n\t\tif render.InputMode > INPUT_MODE_OFF {\n\t\t\tif action == glfw.Release {\n\t\t\t\tif key == glfw.KeyEnter {\n\t\t\t\t\trender.StopInput <- 1\n\t\t\t\t\trender.InputMode = INPUT_MODE_OFF\n\t\t\t\t} else if key == glfw.KeyEscape {\n\t\t\t\t\trender.CharInput <- 27\n\t\t\t\t\tif render.InputMode == INPUT_MODE_CHAR {\n\t\t\t\t\t\trender.InputMode = INPUT_MODE_OFF\n\t\t\t\t\t}\n\t\t\t\t} else if key == glfw.KeyBackspace {\n\t\t\t\t\trender.CharInput <- 9\n\t\t\t\t\tif render.InputMode == INPUT_MODE_CHAR {\n\t\t\t\t\t\trender.InputMode = INPUT_MODE_OFF\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tKeyLock.Lock()\n\t\tKeyDown[key] = action == glfw.Repeat || action == glfw.Press\n\t\tKeyLock.Unlock()\n\t})\n\n\treturn window\n}", "func selectDebug() {\n\tDEBUG_GATE = false\n\tDEBUG_STATE = true\n}", "func main() {\n\tpgs.Init().RegisterModule(&cMod{&pgs.ModuleBase{}}).Render()\n}", "func BufferPoolEnable(enable bool) {\n\tenableBufferPool = enable\n}", "func UseProgram(program uint32) {\n C.glowUseProgram(gpUseProgram, (C.GLuint)(program))\n}", "func init() {\n\taddCheck(CheckCapabilitiesRestricted)\n}", "func Enabled() bool {\n\treturn false\n}", "func Enabled() bool {\n\treturn false\n}", "func disengage() {\n\tglfwWindow := flyCam.glfwWindow\n\tglfwWindow.UnsubscribeID(window.OnKeyUp, DefaultEvId)\n\tglfwWindow.UnsubscribeID(window.OnKeyRepeat, DefaultEvId)\n\tglfwWindow.UnsubscribeID(window.OnKeyDown, DefaultEvId)\n\tglfwWindow.UnsubscribeID(window.OnCursor, DefaultEvId)\n\tw := glfwWindow.Window\n\tw.SetInputMode(glfw.RawMouseMotion, False)\n\tw.SetInputMode(glfw.CursorMode, glfw.CursorNormal)\n}", "func InitWithProcAddrFunc(getProcAddr func(name string) unsafe.Pointer) error {\n\tgpAccum = (C.GPACCUM)(getProcAddr(\"glAccum\"))\n\tif gpAccum == nil {\n\t\treturn errors.New(\"glAccum\")\n\t}\n\tgpAccumxOES = (C.GPACCUMXOES)(getProcAddr(\"glAccumxOES\"))\n\tgpAcquireKeyedMutexWin32EXT = (C.GPACQUIREKEYEDMUTEXWIN32EXT)(getProcAddr(\"glAcquireKeyedMutexWin32EXT\"))\n\tgpActiveProgramEXT = (C.GPACTIVEPROGRAMEXT)(getProcAddr(\"glActiveProgramEXT\"))\n\tgpActiveShaderProgram = (C.GPACTIVESHADERPROGRAM)(getProcAddr(\"glActiveShaderProgram\"))\n\tif gpActiveShaderProgram == nil {\n\t\treturn errors.New(\"glActiveShaderProgram\")\n\t}\n\tgpActiveShaderProgramEXT = (C.GPACTIVESHADERPROGRAMEXT)(getProcAddr(\"glActiveShaderProgramEXT\"))\n\tgpActiveStencilFaceEXT = (C.GPACTIVESTENCILFACEEXT)(getProcAddr(\"glActiveStencilFaceEXT\"))\n\tgpActiveTexture = (C.GPACTIVETEXTURE)(getProcAddr(\"glActiveTexture\"))\n\tif gpActiveTexture == nil {\n\t\treturn errors.New(\"glActiveTexture\")\n\t}\n\tgpActiveTextureARB = (C.GPACTIVETEXTUREARB)(getProcAddr(\"glActiveTextureARB\"))\n\tgpActiveVaryingNV = (C.GPACTIVEVARYINGNV)(getProcAddr(\"glActiveVaryingNV\"))\n\tgpAlphaFragmentOp1ATI = (C.GPALPHAFRAGMENTOP1ATI)(getProcAddr(\"glAlphaFragmentOp1ATI\"))\n\tgpAlphaFragmentOp2ATI = (C.GPALPHAFRAGMENTOP2ATI)(getProcAddr(\"glAlphaFragmentOp2ATI\"))\n\tgpAlphaFragmentOp3ATI = (C.GPALPHAFRAGMENTOP3ATI)(getProcAddr(\"glAlphaFragmentOp3ATI\"))\n\tgpAlphaFunc = (C.GPALPHAFUNC)(getProcAddr(\"glAlphaFunc\"))\n\tif gpAlphaFunc == nil {\n\t\treturn errors.New(\"glAlphaFunc\")\n\t}\n\tgpAlphaFuncxOES = (C.GPALPHAFUNCXOES)(getProcAddr(\"glAlphaFuncxOES\"))\n\tgpAlphaToCoverageDitherControlNV = (C.GPALPHATOCOVERAGEDITHERCONTROLNV)(getProcAddr(\"glAlphaToCoverageDitherControlNV\"))\n\tgpApplyFramebufferAttachmentCMAAINTEL = (C.GPAPPLYFRAMEBUFFERATTACHMENTCMAAINTEL)(getProcAddr(\"glApplyFramebufferAttachmentCMAAINTEL\"))\n\tgpApplyTextureEXT = (C.GPAPPLYTEXTUREEXT)(getProcAddr(\"glApplyTextureEXT\"))\n\tgpAreProgramsResidentNV = (C.GPAREPROGRAMSRESIDENTNV)(getProcAddr(\"glAreProgramsResidentNV\"))\n\tgpAreTexturesResident = (C.GPARETEXTURESRESIDENT)(getProcAddr(\"glAreTexturesResident\"))\n\tif gpAreTexturesResident == nil {\n\t\treturn errors.New(\"glAreTexturesResident\")\n\t}\n\tgpAreTexturesResidentEXT = (C.GPARETEXTURESRESIDENTEXT)(getProcAddr(\"glAreTexturesResidentEXT\"))\n\tgpArrayElement = (C.GPARRAYELEMENT)(getProcAddr(\"glArrayElement\"))\n\tif gpArrayElement == nil {\n\t\treturn errors.New(\"glArrayElement\")\n\t}\n\tgpArrayElementEXT = (C.GPARRAYELEMENTEXT)(getProcAddr(\"glArrayElementEXT\"))\n\tgpArrayObjectATI = (C.GPARRAYOBJECTATI)(getProcAddr(\"glArrayObjectATI\"))\n\tgpAsyncCopyBufferSubDataNVX = (C.GPASYNCCOPYBUFFERSUBDATANVX)(getProcAddr(\"glAsyncCopyBufferSubDataNVX\"))\n\tgpAsyncCopyImageSubDataNVX = (C.GPASYNCCOPYIMAGESUBDATANVX)(getProcAddr(\"glAsyncCopyImageSubDataNVX\"))\n\tgpAsyncMarkerSGIX = (C.GPASYNCMARKERSGIX)(getProcAddr(\"glAsyncMarkerSGIX\"))\n\tgpAttachObjectARB = (C.GPATTACHOBJECTARB)(getProcAddr(\"glAttachObjectARB\"))\n\tgpAttachShader = (C.GPATTACHSHADER)(getProcAddr(\"glAttachShader\"))\n\tif gpAttachShader == nil {\n\t\treturn errors.New(\"glAttachShader\")\n\t}\n\tgpBegin = (C.GPBEGIN)(getProcAddr(\"glBegin\"))\n\tif gpBegin == nil {\n\t\treturn errors.New(\"glBegin\")\n\t}\n\tgpBeginConditionalRender = (C.GPBEGINCONDITIONALRENDER)(getProcAddr(\"glBeginConditionalRender\"))\n\tif gpBeginConditionalRender == nil {\n\t\treturn errors.New(\"glBeginConditionalRender\")\n\t}\n\tgpBeginConditionalRenderNV = (C.GPBEGINCONDITIONALRENDERNV)(getProcAddr(\"glBeginConditionalRenderNV\"))\n\tgpBeginConditionalRenderNVX = (C.GPBEGINCONDITIONALRENDERNVX)(getProcAddr(\"glBeginConditionalRenderNVX\"))\n\tgpBeginFragmentShaderATI = (C.GPBEGINFRAGMENTSHADERATI)(getProcAddr(\"glBeginFragmentShaderATI\"))\n\tgpBeginOcclusionQueryNV = (C.GPBEGINOCCLUSIONQUERYNV)(getProcAddr(\"glBeginOcclusionQueryNV\"))\n\tgpBeginPerfMonitorAMD = (C.GPBEGINPERFMONITORAMD)(getProcAddr(\"glBeginPerfMonitorAMD\"))\n\tgpBeginPerfQueryINTEL = (C.GPBEGINPERFQUERYINTEL)(getProcAddr(\"glBeginPerfQueryINTEL\"))\n\tgpBeginQuery = (C.GPBEGINQUERY)(getProcAddr(\"glBeginQuery\"))\n\tif gpBeginQuery == nil {\n\t\treturn errors.New(\"glBeginQuery\")\n\t}\n\tgpBeginQueryARB = (C.GPBEGINQUERYARB)(getProcAddr(\"glBeginQueryARB\"))\n\tgpBeginQueryIndexed = (C.GPBEGINQUERYINDEXED)(getProcAddr(\"glBeginQueryIndexed\"))\n\tif gpBeginQueryIndexed == nil {\n\t\treturn errors.New(\"glBeginQueryIndexed\")\n\t}\n\tgpBeginTransformFeedback = (C.GPBEGINTRANSFORMFEEDBACK)(getProcAddr(\"glBeginTransformFeedback\"))\n\tif gpBeginTransformFeedback == nil {\n\t\treturn errors.New(\"glBeginTransformFeedback\")\n\t}\n\tgpBeginTransformFeedbackEXT = (C.GPBEGINTRANSFORMFEEDBACKEXT)(getProcAddr(\"glBeginTransformFeedbackEXT\"))\n\tgpBeginTransformFeedbackNV = (C.GPBEGINTRANSFORMFEEDBACKNV)(getProcAddr(\"glBeginTransformFeedbackNV\"))\n\tgpBeginVertexShaderEXT = (C.GPBEGINVERTEXSHADEREXT)(getProcAddr(\"glBeginVertexShaderEXT\"))\n\tgpBeginVideoCaptureNV = (C.GPBEGINVIDEOCAPTURENV)(getProcAddr(\"glBeginVideoCaptureNV\"))\n\tgpBindAttribLocation = (C.GPBINDATTRIBLOCATION)(getProcAddr(\"glBindAttribLocation\"))\n\tif gpBindAttribLocation == nil {\n\t\treturn errors.New(\"glBindAttribLocation\")\n\t}\n\tgpBindAttribLocationARB = (C.GPBINDATTRIBLOCATIONARB)(getProcAddr(\"glBindAttribLocationARB\"))\n\tgpBindBuffer = (C.GPBINDBUFFER)(getProcAddr(\"glBindBuffer\"))\n\tif gpBindBuffer == nil {\n\t\treturn errors.New(\"glBindBuffer\")\n\t}\n\tgpBindBufferARB = (C.GPBINDBUFFERARB)(getProcAddr(\"glBindBufferARB\"))\n\tgpBindBufferBase = (C.GPBINDBUFFERBASE)(getProcAddr(\"glBindBufferBase\"))\n\tif gpBindBufferBase == nil {\n\t\treturn errors.New(\"glBindBufferBase\")\n\t}\n\tgpBindBufferBaseEXT = (C.GPBINDBUFFERBASEEXT)(getProcAddr(\"glBindBufferBaseEXT\"))\n\tgpBindBufferBaseNV = (C.GPBINDBUFFERBASENV)(getProcAddr(\"glBindBufferBaseNV\"))\n\tgpBindBufferOffsetEXT = (C.GPBINDBUFFEROFFSETEXT)(getProcAddr(\"glBindBufferOffsetEXT\"))\n\tgpBindBufferOffsetNV = (C.GPBINDBUFFEROFFSETNV)(getProcAddr(\"glBindBufferOffsetNV\"))\n\tgpBindBufferRange = (C.GPBINDBUFFERRANGE)(getProcAddr(\"glBindBufferRange\"))\n\tif gpBindBufferRange == nil {\n\t\treturn errors.New(\"glBindBufferRange\")\n\t}\n\tgpBindBufferRangeEXT = (C.GPBINDBUFFERRANGEEXT)(getProcAddr(\"glBindBufferRangeEXT\"))\n\tgpBindBufferRangeNV = (C.GPBINDBUFFERRANGENV)(getProcAddr(\"glBindBufferRangeNV\"))\n\tgpBindBuffersBase = (C.GPBINDBUFFERSBASE)(getProcAddr(\"glBindBuffersBase\"))\n\tif gpBindBuffersBase == nil {\n\t\treturn errors.New(\"glBindBuffersBase\")\n\t}\n\tgpBindBuffersRange = (C.GPBINDBUFFERSRANGE)(getProcAddr(\"glBindBuffersRange\"))\n\tif gpBindBuffersRange == nil {\n\t\treturn errors.New(\"glBindBuffersRange\")\n\t}\n\tgpBindFragDataLocation = (C.GPBINDFRAGDATALOCATION)(getProcAddr(\"glBindFragDataLocation\"))\n\tif gpBindFragDataLocation == nil {\n\t\treturn errors.New(\"glBindFragDataLocation\")\n\t}\n\tgpBindFragDataLocationEXT = (C.GPBINDFRAGDATALOCATIONEXT)(getProcAddr(\"glBindFragDataLocationEXT\"))\n\tgpBindFragDataLocationIndexed = (C.GPBINDFRAGDATALOCATIONINDEXED)(getProcAddr(\"glBindFragDataLocationIndexed\"))\n\tif gpBindFragDataLocationIndexed == nil {\n\t\treturn errors.New(\"glBindFragDataLocationIndexed\")\n\t}\n\tgpBindFragmentShaderATI = (C.GPBINDFRAGMENTSHADERATI)(getProcAddr(\"glBindFragmentShaderATI\"))\n\tgpBindFramebuffer = (C.GPBINDFRAMEBUFFER)(getProcAddr(\"glBindFramebuffer\"))\n\tif gpBindFramebuffer == nil {\n\t\treturn errors.New(\"glBindFramebuffer\")\n\t}\n\tgpBindFramebufferEXT = (C.GPBINDFRAMEBUFFEREXT)(getProcAddr(\"glBindFramebufferEXT\"))\n\tgpBindImageTexture = (C.GPBINDIMAGETEXTURE)(getProcAddr(\"glBindImageTexture\"))\n\tif gpBindImageTexture == nil {\n\t\treturn errors.New(\"glBindImageTexture\")\n\t}\n\tgpBindImageTextureEXT = (C.GPBINDIMAGETEXTUREEXT)(getProcAddr(\"glBindImageTextureEXT\"))\n\tgpBindImageTextures = (C.GPBINDIMAGETEXTURES)(getProcAddr(\"glBindImageTextures\"))\n\tif gpBindImageTextures == nil {\n\t\treturn errors.New(\"glBindImageTextures\")\n\t}\n\tgpBindLightParameterEXT = (C.GPBINDLIGHTPARAMETEREXT)(getProcAddr(\"glBindLightParameterEXT\"))\n\tgpBindMaterialParameterEXT = (C.GPBINDMATERIALPARAMETEREXT)(getProcAddr(\"glBindMaterialParameterEXT\"))\n\tgpBindMultiTextureEXT = (C.GPBINDMULTITEXTUREEXT)(getProcAddr(\"glBindMultiTextureEXT\"))\n\tgpBindParameterEXT = (C.GPBINDPARAMETEREXT)(getProcAddr(\"glBindParameterEXT\"))\n\tgpBindProgramARB = (C.GPBINDPROGRAMARB)(getProcAddr(\"glBindProgramARB\"))\n\tgpBindProgramNV = (C.GPBINDPROGRAMNV)(getProcAddr(\"glBindProgramNV\"))\n\tgpBindProgramPipeline = (C.GPBINDPROGRAMPIPELINE)(getProcAddr(\"glBindProgramPipeline\"))\n\tif gpBindProgramPipeline == nil {\n\t\treturn errors.New(\"glBindProgramPipeline\")\n\t}\n\tgpBindProgramPipelineEXT = (C.GPBINDPROGRAMPIPELINEEXT)(getProcAddr(\"glBindProgramPipelineEXT\"))\n\tgpBindRenderbuffer = (C.GPBINDRENDERBUFFER)(getProcAddr(\"glBindRenderbuffer\"))\n\tif gpBindRenderbuffer == nil {\n\t\treturn errors.New(\"glBindRenderbuffer\")\n\t}\n\tgpBindRenderbufferEXT = (C.GPBINDRENDERBUFFEREXT)(getProcAddr(\"glBindRenderbufferEXT\"))\n\tgpBindSampler = (C.GPBINDSAMPLER)(getProcAddr(\"glBindSampler\"))\n\tif gpBindSampler == nil {\n\t\treturn errors.New(\"glBindSampler\")\n\t}\n\tgpBindSamplers = (C.GPBINDSAMPLERS)(getProcAddr(\"glBindSamplers\"))\n\tif gpBindSamplers == nil {\n\t\treturn errors.New(\"glBindSamplers\")\n\t}\n\tgpBindShadingRateImageNV = (C.GPBINDSHADINGRATEIMAGENV)(getProcAddr(\"glBindShadingRateImageNV\"))\n\tgpBindTexGenParameterEXT = (C.GPBINDTEXGENPARAMETEREXT)(getProcAddr(\"glBindTexGenParameterEXT\"))\n\tgpBindTexture = (C.GPBINDTEXTURE)(getProcAddr(\"glBindTexture\"))\n\tif gpBindTexture == nil {\n\t\treturn errors.New(\"glBindTexture\")\n\t}\n\tgpBindTextureEXT = (C.GPBINDTEXTUREEXT)(getProcAddr(\"glBindTextureEXT\"))\n\tgpBindTextureUnit = (C.GPBINDTEXTUREUNIT)(getProcAddr(\"glBindTextureUnit\"))\n\tgpBindTextureUnitParameterEXT = (C.GPBINDTEXTUREUNITPARAMETEREXT)(getProcAddr(\"glBindTextureUnitParameterEXT\"))\n\tgpBindTextures = (C.GPBINDTEXTURES)(getProcAddr(\"glBindTextures\"))\n\tif gpBindTextures == nil {\n\t\treturn errors.New(\"glBindTextures\")\n\t}\n\tgpBindTransformFeedback = (C.GPBINDTRANSFORMFEEDBACK)(getProcAddr(\"glBindTransformFeedback\"))\n\tif gpBindTransformFeedback == nil {\n\t\treturn errors.New(\"glBindTransformFeedback\")\n\t}\n\tgpBindTransformFeedbackNV = (C.GPBINDTRANSFORMFEEDBACKNV)(getProcAddr(\"glBindTransformFeedbackNV\"))\n\tgpBindVertexArray = (C.GPBINDVERTEXARRAY)(getProcAddr(\"glBindVertexArray\"))\n\tif gpBindVertexArray == nil {\n\t\treturn errors.New(\"glBindVertexArray\")\n\t}\n\tgpBindVertexArrayAPPLE = (C.GPBINDVERTEXARRAYAPPLE)(getProcAddr(\"glBindVertexArrayAPPLE\"))\n\tgpBindVertexBuffer = (C.GPBINDVERTEXBUFFER)(getProcAddr(\"glBindVertexBuffer\"))\n\tif gpBindVertexBuffer == nil {\n\t\treturn errors.New(\"glBindVertexBuffer\")\n\t}\n\tgpBindVertexBuffers = (C.GPBINDVERTEXBUFFERS)(getProcAddr(\"glBindVertexBuffers\"))\n\tif gpBindVertexBuffers == nil {\n\t\treturn errors.New(\"glBindVertexBuffers\")\n\t}\n\tgpBindVertexShaderEXT = (C.GPBINDVERTEXSHADEREXT)(getProcAddr(\"glBindVertexShaderEXT\"))\n\tgpBindVideoCaptureStreamBufferNV = (C.GPBINDVIDEOCAPTURESTREAMBUFFERNV)(getProcAddr(\"glBindVideoCaptureStreamBufferNV\"))\n\tgpBindVideoCaptureStreamTextureNV = (C.GPBINDVIDEOCAPTURESTREAMTEXTURENV)(getProcAddr(\"glBindVideoCaptureStreamTextureNV\"))\n\tgpBinormal3bEXT = (C.GPBINORMAL3BEXT)(getProcAddr(\"glBinormal3bEXT\"))\n\tgpBinormal3bvEXT = (C.GPBINORMAL3BVEXT)(getProcAddr(\"glBinormal3bvEXT\"))\n\tgpBinormal3dEXT = (C.GPBINORMAL3DEXT)(getProcAddr(\"glBinormal3dEXT\"))\n\tgpBinormal3dvEXT = (C.GPBINORMAL3DVEXT)(getProcAddr(\"glBinormal3dvEXT\"))\n\tgpBinormal3fEXT = (C.GPBINORMAL3FEXT)(getProcAddr(\"glBinormal3fEXT\"))\n\tgpBinormal3fvEXT = (C.GPBINORMAL3FVEXT)(getProcAddr(\"glBinormal3fvEXT\"))\n\tgpBinormal3iEXT = (C.GPBINORMAL3IEXT)(getProcAddr(\"glBinormal3iEXT\"))\n\tgpBinormal3ivEXT = (C.GPBINORMAL3IVEXT)(getProcAddr(\"glBinormal3ivEXT\"))\n\tgpBinormal3sEXT = (C.GPBINORMAL3SEXT)(getProcAddr(\"glBinormal3sEXT\"))\n\tgpBinormal3svEXT = (C.GPBINORMAL3SVEXT)(getProcAddr(\"glBinormal3svEXT\"))\n\tgpBinormalPointerEXT = (C.GPBINORMALPOINTEREXT)(getProcAddr(\"glBinormalPointerEXT\"))\n\tgpBitmap = (C.GPBITMAP)(getProcAddr(\"glBitmap\"))\n\tif gpBitmap == nil {\n\t\treturn errors.New(\"glBitmap\")\n\t}\n\tgpBitmapxOES = (C.GPBITMAPXOES)(getProcAddr(\"glBitmapxOES\"))\n\tgpBlendBarrierKHR = (C.GPBLENDBARRIERKHR)(getProcAddr(\"glBlendBarrierKHR\"))\n\tgpBlendBarrierNV = (C.GPBLENDBARRIERNV)(getProcAddr(\"glBlendBarrierNV\"))\n\tgpBlendColor = (C.GPBLENDCOLOR)(getProcAddr(\"glBlendColor\"))\n\tif gpBlendColor == nil {\n\t\treturn errors.New(\"glBlendColor\")\n\t}\n\tgpBlendColorEXT = (C.GPBLENDCOLOREXT)(getProcAddr(\"glBlendColorEXT\"))\n\tgpBlendColorxOES = (C.GPBLENDCOLORXOES)(getProcAddr(\"glBlendColorxOES\"))\n\tgpBlendEquation = (C.GPBLENDEQUATION)(getProcAddr(\"glBlendEquation\"))\n\tif gpBlendEquation == nil {\n\t\treturn errors.New(\"glBlendEquation\")\n\t}\n\tgpBlendEquationEXT = (C.GPBLENDEQUATIONEXT)(getProcAddr(\"glBlendEquationEXT\"))\n\tgpBlendEquationIndexedAMD = (C.GPBLENDEQUATIONINDEXEDAMD)(getProcAddr(\"glBlendEquationIndexedAMD\"))\n\tgpBlendEquationSeparate = (C.GPBLENDEQUATIONSEPARATE)(getProcAddr(\"glBlendEquationSeparate\"))\n\tif gpBlendEquationSeparate == nil {\n\t\treturn errors.New(\"glBlendEquationSeparate\")\n\t}\n\tgpBlendEquationSeparateEXT = (C.GPBLENDEQUATIONSEPARATEEXT)(getProcAddr(\"glBlendEquationSeparateEXT\"))\n\tgpBlendEquationSeparateIndexedAMD = (C.GPBLENDEQUATIONSEPARATEINDEXEDAMD)(getProcAddr(\"glBlendEquationSeparateIndexedAMD\"))\n\tgpBlendEquationSeparatei = (C.GPBLENDEQUATIONSEPARATEI)(getProcAddr(\"glBlendEquationSeparatei\"))\n\tif gpBlendEquationSeparatei == nil {\n\t\treturn errors.New(\"glBlendEquationSeparatei\")\n\t}\n\tgpBlendEquationSeparateiARB = (C.GPBLENDEQUATIONSEPARATEIARB)(getProcAddr(\"glBlendEquationSeparateiARB\"))\n\tgpBlendEquationi = (C.GPBLENDEQUATIONI)(getProcAddr(\"glBlendEquationi\"))\n\tif gpBlendEquationi == nil {\n\t\treturn errors.New(\"glBlendEquationi\")\n\t}\n\tgpBlendEquationiARB = (C.GPBLENDEQUATIONIARB)(getProcAddr(\"glBlendEquationiARB\"))\n\tgpBlendFunc = (C.GPBLENDFUNC)(getProcAddr(\"glBlendFunc\"))\n\tif gpBlendFunc == nil {\n\t\treturn errors.New(\"glBlendFunc\")\n\t}\n\tgpBlendFuncIndexedAMD = (C.GPBLENDFUNCINDEXEDAMD)(getProcAddr(\"glBlendFuncIndexedAMD\"))\n\tgpBlendFuncSeparate = (C.GPBLENDFUNCSEPARATE)(getProcAddr(\"glBlendFuncSeparate\"))\n\tif gpBlendFuncSeparate == nil {\n\t\treturn errors.New(\"glBlendFuncSeparate\")\n\t}\n\tgpBlendFuncSeparateEXT = (C.GPBLENDFUNCSEPARATEEXT)(getProcAddr(\"glBlendFuncSeparateEXT\"))\n\tgpBlendFuncSeparateINGR = (C.GPBLENDFUNCSEPARATEINGR)(getProcAddr(\"glBlendFuncSeparateINGR\"))\n\tgpBlendFuncSeparateIndexedAMD = (C.GPBLENDFUNCSEPARATEINDEXEDAMD)(getProcAddr(\"glBlendFuncSeparateIndexedAMD\"))\n\tgpBlendFuncSeparatei = (C.GPBLENDFUNCSEPARATEI)(getProcAddr(\"glBlendFuncSeparatei\"))\n\tif gpBlendFuncSeparatei == nil {\n\t\treturn errors.New(\"glBlendFuncSeparatei\")\n\t}\n\tgpBlendFuncSeparateiARB = (C.GPBLENDFUNCSEPARATEIARB)(getProcAddr(\"glBlendFuncSeparateiARB\"))\n\tgpBlendFunci = (C.GPBLENDFUNCI)(getProcAddr(\"glBlendFunci\"))\n\tif gpBlendFunci == nil {\n\t\treturn errors.New(\"glBlendFunci\")\n\t}\n\tgpBlendFunciARB = (C.GPBLENDFUNCIARB)(getProcAddr(\"glBlendFunciARB\"))\n\tgpBlendParameteriNV = (C.GPBLENDPARAMETERINV)(getProcAddr(\"glBlendParameteriNV\"))\n\tgpBlitFramebuffer = (C.GPBLITFRAMEBUFFER)(getProcAddr(\"glBlitFramebuffer\"))\n\tif gpBlitFramebuffer == nil {\n\t\treturn errors.New(\"glBlitFramebuffer\")\n\t}\n\tgpBlitFramebufferEXT = (C.GPBLITFRAMEBUFFEREXT)(getProcAddr(\"glBlitFramebufferEXT\"))\n\tgpBlitNamedFramebuffer = (C.GPBLITNAMEDFRAMEBUFFER)(getProcAddr(\"glBlitNamedFramebuffer\"))\n\tgpBufferAddressRangeNV = (C.GPBUFFERADDRESSRANGENV)(getProcAddr(\"glBufferAddressRangeNV\"))\n\tgpBufferAttachMemoryNV = (C.GPBUFFERATTACHMEMORYNV)(getProcAddr(\"glBufferAttachMemoryNV\"))\n\tgpBufferData = (C.GPBUFFERDATA)(getProcAddr(\"glBufferData\"))\n\tif gpBufferData == nil {\n\t\treturn errors.New(\"glBufferData\")\n\t}\n\tgpBufferDataARB = (C.GPBUFFERDATAARB)(getProcAddr(\"glBufferDataARB\"))\n\tgpBufferPageCommitmentARB = (C.GPBUFFERPAGECOMMITMENTARB)(getProcAddr(\"glBufferPageCommitmentARB\"))\n\tgpBufferPageCommitmentMemNV = (C.GPBUFFERPAGECOMMITMENTMEMNV)(getProcAddr(\"glBufferPageCommitmentMemNV\"))\n\tgpBufferParameteriAPPLE = (C.GPBUFFERPARAMETERIAPPLE)(getProcAddr(\"glBufferParameteriAPPLE\"))\n\tgpBufferStorage = (C.GPBUFFERSTORAGE)(getProcAddr(\"glBufferStorage\"))\n\tif gpBufferStorage == nil {\n\t\treturn errors.New(\"glBufferStorage\")\n\t}\n\tgpBufferStorageExternalEXT = (C.GPBUFFERSTORAGEEXTERNALEXT)(getProcAddr(\"glBufferStorageExternalEXT\"))\n\tgpBufferStorageMemEXT = (C.GPBUFFERSTORAGEMEMEXT)(getProcAddr(\"glBufferStorageMemEXT\"))\n\tgpBufferSubData = (C.GPBUFFERSUBDATA)(getProcAddr(\"glBufferSubData\"))\n\tif gpBufferSubData == nil {\n\t\treturn errors.New(\"glBufferSubData\")\n\t}\n\tgpBufferSubDataARB = (C.GPBUFFERSUBDATAARB)(getProcAddr(\"glBufferSubDataARB\"))\n\tgpCallCommandListNV = (C.GPCALLCOMMANDLISTNV)(getProcAddr(\"glCallCommandListNV\"))\n\tgpCallList = (C.GPCALLLIST)(getProcAddr(\"glCallList\"))\n\tif gpCallList == nil {\n\t\treturn errors.New(\"glCallList\")\n\t}\n\tgpCallLists = (C.GPCALLLISTS)(getProcAddr(\"glCallLists\"))\n\tif gpCallLists == nil {\n\t\treturn errors.New(\"glCallLists\")\n\t}\n\tgpCheckFramebufferStatus = (C.GPCHECKFRAMEBUFFERSTATUS)(getProcAddr(\"glCheckFramebufferStatus\"))\n\tif gpCheckFramebufferStatus == nil {\n\t\treturn errors.New(\"glCheckFramebufferStatus\")\n\t}\n\tgpCheckFramebufferStatusEXT = (C.GPCHECKFRAMEBUFFERSTATUSEXT)(getProcAddr(\"glCheckFramebufferStatusEXT\"))\n\tgpCheckNamedFramebufferStatus = (C.GPCHECKNAMEDFRAMEBUFFERSTATUS)(getProcAddr(\"glCheckNamedFramebufferStatus\"))\n\tgpCheckNamedFramebufferStatusEXT = (C.GPCHECKNAMEDFRAMEBUFFERSTATUSEXT)(getProcAddr(\"glCheckNamedFramebufferStatusEXT\"))\n\tgpClampColor = (C.GPCLAMPCOLOR)(getProcAddr(\"glClampColor\"))\n\tif gpClampColor == nil {\n\t\treturn errors.New(\"glClampColor\")\n\t}\n\tgpClampColorARB = (C.GPCLAMPCOLORARB)(getProcAddr(\"glClampColorARB\"))\n\tgpClear = (C.GPCLEAR)(getProcAddr(\"glClear\"))\n\tif gpClear == nil {\n\t\treturn errors.New(\"glClear\")\n\t}\n\tgpClearAccum = (C.GPCLEARACCUM)(getProcAddr(\"glClearAccum\"))\n\tif gpClearAccum == nil {\n\t\treturn errors.New(\"glClearAccum\")\n\t}\n\tgpClearAccumxOES = (C.GPCLEARACCUMXOES)(getProcAddr(\"glClearAccumxOES\"))\n\tgpClearBufferData = (C.GPCLEARBUFFERDATA)(getProcAddr(\"glClearBufferData\"))\n\tif gpClearBufferData == nil {\n\t\treturn errors.New(\"glClearBufferData\")\n\t}\n\tgpClearBufferSubData = (C.GPCLEARBUFFERSUBDATA)(getProcAddr(\"glClearBufferSubData\"))\n\tif gpClearBufferSubData == nil {\n\t\treturn errors.New(\"glClearBufferSubData\")\n\t}\n\tgpClearBufferfi = (C.GPCLEARBUFFERFI)(getProcAddr(\"glClearBufferfi\"))\n\tif gpClearBufferfi == nil {\n\t\treturn errors.New(\"glClearBufferfi\")\n\t}\n\tgpClearBufferfv = (C.GPCLEARBUFFERFV)(getProcAddr(\"glClearBufferfv\"))\n\tif gpClearBufferfv == nil {\n\t\treturn errors.New(\"glClearBufferfv\")\n\t}\n\tgpClearBufferiv = (C.GPCLEARBUFFERIV)(getProcAddr(\"glClearBufferiv\"))\n\tif gpClearBufferiv == nil {\n\t\treturn errors.New(\"glClearBufferiv\")\n\t}\n\tgpClearBufferuiv = (C.GPCLEARBUFFERUIV)(getProcAddr(\"glClearBufferuiv\"))\n\tif gpClearBufferuiv == nil {\n\t\treturn errors.New(\"glClearBufferuiv\")\n\t}\n\tgpClearColor = (C.GPCLEARCOLOR)(getProcAddr(\"glClearColor\"))\n\tif gpClearColor == nil {\n\t\treturn errors.New(\"glClearColor\")\n\t}\n\tgpClearColorIiEXT = (C.GPCLEARCOLORIIEXT)(getProcAddr(\"glClearColorIiEXT\"))\n\tgpClearColorIuiEXT = (C.GPCLEARCOLORIUIEXT)(getProcAddr(\"glClearColorIuiEXT\"))\n\tgpClearColorxOES = (C.GPCLEARCOLORXOES)(getProcAddr(\"glClearColorxOES\"))\n\tgpClearDepth = (C.GPCLEARDEPTH)(getProcAddr(\"glClearDepth\"))\n\tif gpClearDepth == nil {\n\t\treturn errors.New(\"glClearDepth\")\n\t}\n\tgpClearDepthdNV = (C.GPCLEARDEPTHDNV)(getProcAddr(\"glClearDepthdNV\"))\n\tgpClearDepthf = (C.GPCLEARDEPTHF)(getProcAddr(\"glClearDepthf\"))\n\tif gpClearDepthf == nil {\n\t\treturn errors.New(\"glClearDepthf\")\n\t}\n\tgpClearDepthfOES = (C.GPCLEARDEPTHFOES)(getProcAddr(\"glClearDepthfOES\"))\n\tgpClearDepthxOES = (C.GPCLEARDEPTHXOES)(getProcAddr(\"glClearDepthxOES\"))\n\tgpClearIndex = (C.GPCLEARINDEX)(getProcAddr(\"glClearIndex\"))\n\tif gpClearIndex == nil {\n\t\treturn errors.New(\"glClearIndex\")\n\t}\n\tgpClearNamedBufferData = (C.GPCLEARNAMEDBUFFERDATA)(getProcAddr(\"glClearNamedBufferData\"))\n\tgpClearNamedBufferDataEXT = (C.GPCLEARNAMEDBUFFERDATAEXT)(getProcAddr(\"glClearNamedBufferDataEXT\"))\n\tgpClearNamedBufferSubData = (C.GPCLEARNAMEDBUFFERSUBDATA)(getProcAddr(\"glClearNamedBufferSubData\"))\n\tgpClearNamedBufferSubDataEXT = (C.GPCLEARNAMEDBUFFERSUBDATAEXT)(getProcAddr(\"glClearNamedBufferSubDataEXT\"))\n\tgpClearNamedFramebufferfi = (C.GPCLEARNAMEDFRAMEBUFFERFI)(getProcAddr(\"glClearNamedFramebufferfi\"))\n\tgpClearNamedFramebufferfv = (C.GPCLEARNAMEDFRAMEBUFFERFV)(getProcAddr(\"glClearNamedFramebufferfv\"))\n\tgpClearNamedFramebufferiv = (C.GPCLEARNAMEDFRAMEBUFFERIV)(getProcAddr(\"glClearNamedFramebufferiv\"))\n\tgpClearNamedFramebufferuiv = (C.GPCLEARNAMEDFRAMEBUFFERUIV)(getProcAddr(\"glClearNamedFramebufferuiv\"))\n\tgpClearStencil = (C.GPCLEARSTENCIL)(getProcAddr(\"glClearStencil\"))\n\tif gpClearStencil == nil {\n\t\treturn errors.New(\"glClearStencil\")\n\t}\n\tgpClearTexImage = (C.GPCLEARTEXIMAGE)(getProcAddr(\"glClearTexImage\"))\n\tif gpClearTexImage == nil {\n\t\treturn errors.New(\"glClearTexImage\")\n\t}\n\tgpClearTexSubImage = (C.GPCLEARTEXSUBIMAGE)(getProcAddr(\"glClearTexSubImage\"))\n\tif gpClearTexSubImage == nil {\n\t\treturn errors.New(\"glClearTexSubImage\")\n\t}\n\tgpClientActiveTexture = (C.GPCLIENTACTIVETEXTURE)(getProcAddr(\"glClientActiveTexture\"))\n\tif gpClientActiveTexture == nil {\n\t\treturn errors.New(\"glClientActiveTexture\")\n\t}\n\tgpClientActiveTextureARB = (C.GPCLIENTACTIVETEXTUREARB)(getProcAddr(\"glClientActiveTextureARB\"))\n\tgpClientActiveVertexStreamATI = (C.GPCLIENTACTIVEVERTEXSTREAMATI)(getProcAddr(\"glClientActiveVertexStreamATI\"))\n\tgpClientAttribDefaultEXT = (C.GPCLIENTATTRIBDEFAULTEXT)(getProcAddr(\"glClientAttribDefaultEXT\"))\n\tgpClientWaitSemaphoreui64NVX = (C.GPCLIENTWAITSEMAPHOREUI64NVX)(getProcAddr(\"glClientWaitSemaphoreui64NVX\"))\n\tgpClientWaitSync = (C.GPCLIENTWAITSYNC)(getProcAddr(\"glClientWaitSync\"))\n\tif gpClientWaitSync == nil {\n\t\treturn errors.New(\"glClientWaitSync\")\n\t}\n\tgpClipControl = (C.GPCLIPCONTROL)(getProcAddr(\"glClipControl\"))\n\tgpClipPlane = (C.GPCLIPPLANE)(getProcAddr(\"glClipPlane\"))\n\tif gpClipPlane == nil {\n\t\treturn errors.New(\"glClipPlane\")\n\t}\n\tgpClipPlanefOES = (C.GPCLIPPLANEFOES)(getProcAddr(\"glClipPlanefOES\"))\n\tgpClipPlanexOES = (C.GPCLIPPLANEXOES)(getProcAddr(\"glClipPlanexOES\"))\n\tgpColor3b = (C.GPCOLOR3B)(getProcAddr(\"glColor3b\"))\n\tif gpColor3b == nil {\n\t\treturn errors.New(\"glColor3b\")\n\t}\n\tgpColor3bv = (C.GPCOLOR3BV)(getProcAddr(\"glColor3bv\"))\n\tif gpColor3bv == nil {\n\t\treturn errors.New(\"glColor3bv\")\n\t}\n\tgpColor3d = (C.GPCOLOR3D)(getProcAddr(\"glColor3d\"))\n\tif gpColor3d == nil {\n\t\treturn errors.New(\"glColor3d\")\n\t}\n\tgpColor3dv = (C.GPCOLOR3DV)(getProcAddr(\"glColor3dv\"))\n\tif gpColor3dv == nil {\n\t\treturn errors.New(\"glColor3dv\")\n\t}\n\tgpColor3f = (C.GPCOLOR3F)(getProcAddr(\"glColor3f\"))\n\tif gpColor3f == nil {\n\t\treturn errors.New(\"glColor3f\")\n\t}\n\tgpColor3fVertex3fSUN = (C.GPCOLOR3FVERTEX3FSUN)(getProcAddr(\"glColor3fVertex3fSUN\"))\n\tgpColor3fVertex3fvSUN = (C.GPCOLOR3FVERTEX3FVSUN)(getProcAddr(\"glColor3fVertex3fvSUN\"))\n\tgpColor3fv = (C.GPCOLOR3FV)(getProcAddr(\"glColor3fv\"))\n\tif gpColor3fv == nil {\n\t\treturn errors.New(\"glColor3fv\")\n\t}\n\tgpColor3hNV = (C.GPCOLOR3HNV)(getProcAddr(\"glColor3hNV\"))\n\tgpColor3hvNV = (C.GPCOLOR3HVNV)(getProcAddr(\"glColor3hvNV\"))\n\tgpColor3i = (C.GPCOLOR3I)(getProcAddr(\"glColor3i\"))\n\tif gpColor3i == nil {\n\t\treturn errors.New(\"glColor3i\")\n\t}\n\tgpColor3iv = (C.GPCOLOR3IV)(getProcAddr(\"glColor3iv\"))\n\tif gpColor3iv == nil {\n\t\treturn errors.New(\"glColor3iv\")\n\t}\n\tgpColor3s = (C.GPCOLOR3S)(getProcAddr(\"glColor3s\"))\n\tif gpColor3s == nil {\n\t\treturn errors.New(\"glColor3s\")\n\t}\n\tgpColor3sv = (C.GPCOLOR3SV)(getProcAddr(\"glColor3sv\"))\n\tif gpColor3sv == nil {\n\t\treturn errors.New(\"glColor3sv\")\n\t}\n\tgpColor3ub = (C.GPCOLOR3UB)(getProcAddr(\"glColor3ub\"))\n\tif gpColor3ub == nil {\n\t\treturn errors.New(\"glColor3ub\")\n\t}\n\tgpColor3ubv = (C.GPCOLOR3UBV)(getProcAddr(\"glColor3ubv\"))\n\tif gpColor3ubv == nil {\n\t\treturn errors.New(\"glColor3ubv\")\n\t}\n\tgpColor3ui = (C.GPCOLOR3UI)(getProcAddr(\"glColor3ui\"))\n\tif gpColor3ui == nil {\n\t\treturn errors.New(\"glColor3ui\")\n\t}\n\tgpColor3uiv = (C.GPCOLOR3UIV)(getProcAddr(\"glColor3uiv\"))\n\tif gpColor3uiv == nil {\n\t\treturn errors.New(\"glColor3uiv\")\n\t}\n\tgpColor3us = (C.GPCOLOR3US)(getProcAddr(\"glColor3us\"))\n\tif gpColor3us == nil {\n\t\treturn errors.New(\"glColor3us\")\n\t}\n\tgpColor3usv = (C.GPCOLOR3USV)(getProcAddr(\"glColor3usv\"))\n\tif gpColor3usv == nil {\n\t\treturn errors.New(\"glColor3usv\")\n\t}\n\tgpColor3xOES = (C.GPCOLOR3XOES)(getProcAddr(\"glColor3xOES\"))\n\tgpColor3xvOES = (C.GPCOLOR3XVOES)(getProcAddr(\"glColor3xvOES\"))\n\tgpColor4b = (C.GPCOLOR4B)(getProcAddr(\"glColor4b\"))\n\tif gpColor4b == nil {\n\t\treturn errors.New(\"glColor4b\")\n\t}\n\tgpColor4bv = (C.GPCOLOR4BV)(getProcAddr(\"glColor4bv\"))\n\tif gpColor4bv == nil {\n\t\treturn errors.New(\"glColor4bv\")\n\t}\n\tgpColor4d = (C.GPCOLOR4D)(getProcAddr(\"glColor4d\"))\n\tif gpColor4d == nil {\n\t\treturn errors.New(\"glColor4d\")\n\t}\n\tgpColor4dv = (C.GPCOLOR4DV)(getProcAddr(\"glColor4dv\"))\n\tif gpColor4dv == nil {\n\t\treturn errors.New(\"glColor4dv\")\n\t}\n\tgpColor4f = (C.GPCOLOR4F)(getProcAddr(\"glColor4f\"))\n\tif gpColor4f == nil {\n\t\treturn errors.New(\"glColor4f\")\n\t}\n\tgpColor4fNormal3fVertex3fSUN = (C.GPCOLOR4FNORMAL3FVERTEX3FSUN)(getProcAddr(\"glColor4fNormal3fVertex3fSUN\"))\n\tgpColor4fNormal3fVertex3fvSUN = (C.GPCOLOR4FNORMAL3FVERTEX3FVSUN)(getProcAddr(\"glColor4fNormal3fVertex3fvSUN\"))\n\tgpColor4fv = (C.GPCOLOR4FV)(getProcAddr(\"glColor4fv\"))\n\tif gpColor4fv == nil {\n\t\treturn errors.New(\"glColor4fv\")\n\t}\n\tgpColor4hNV = (C.GPCOLOR4HNV)(getProcAddr(\"glColor4hNV\"))\n\tgpColor4hvNV = (C.GPCOLOR4HVNV)(getProcAddr(\"glColor4hvNV\"))\n\tgpColor4i = (C.GPCOLOR4I)(getProcAddr(\"glColor4i\"))\n\tif gpColor4i == nil {\n\t\treturn errors.New(\"glColor4i\")\n\t}\n\tgpColor4iv = (C.GPCOLOR4IV)(getProcAddr(\"glColor4iv\"))\n\tif gpColor4iv == nil {\n\t\treturn errors.New(\"glColor4iv\")\n\t}\n\tgpColor4s = (C.GPCOLOR4S)(getProcAddr(\"glColor4s\"))\n\tif gpColor4s == nil {\n\t\treturn errors.New(\"glColor4s\")\n\t}\n\tgpColor4sv = (C.GPCOLOR4SV)(getProcAddr(\"glColor4sv\"))\n\tif gpColor4sv == nil {\n\t\treturn errors.New(\"glColor4sv\")\n\t}\n\tgpColor4ub = (C.GPCOLOR4UB)(getProcAddr(\"glColor4ub\"))\n\tif gpColor4ub == nil {\n\t\treturn errors.New(\"glColor4ub\")\n\t}\n\tgpColor4ubVertex2fSUN = (C.GPCOLOR4UBVERTEX2FSUN)(getProcAddr(\"glColor4ubVertex2fSUN\"))\n\tgpColor4ubVertex2fvSUN = (C.GPCOLOR4UBVERTEX2FVSUN)(getProcAddr(\"glColor4ubVertex2fvSUN\"))\n\tgpColor4ubVertex3fSUN = (C.GPCOLOR4UBVERTEX3FSUN)(getProcAddr(\"glColor4ubVertex3fSUN\"))\n\tgpColor4ubVertex3fvSUN = (C.GPCOLOR4UBVERTEX3FVSUN)(getProcAddr(\"glColor4ubVertex3fvSUN\"))\n\tgpColor4ubv = (C.GPCOLOR4UBV)(getProcAddr(\"glColor4ubv\"))\n\tif gpColor4ubv == nil {\n\t\treturn errors.New(\"glColor4ubv\")\n\t}\n\tgpColor4ui = (C.GPCOLOR4UI)(getProcAddr(\"glColor4ui\"))\n\tif gpColor4ui == nil {\n\t\treturn errors.New(\"glColor4ui\")\n\t}\n\tgpColor4uiv = (C.GPCOLOR4UIV)(getProcAddr(\"glColor4uiv\"))\n\tif gpColor4uiv == nil {\n\t\treturn errors.New(\"glColor4uiv\")\n\t}\n\tgpColor4us = (C.GPCOLOR4US)(getProcAddr(\"glColor4us\"))\n\tif gpColor4us == nil {\n\t\treturn errors.New(\"glColor4us\")\n\t}\n\tgpColor4usv = (C.GPCOLOR4USV)(getProcAddr(\"glColor4usv\"))\n\tif gpColor4usv == nil {\n\t\treturn errors.New(\"glColor4usv\")\n\t}\n\tgpColor4xOES = (C.GPCOLOR4XOES)(getProcAddr(\"glColor4xOES\"))\n\tgpColor4xvOES = (C.GPCOLOR4XVOES)(getProcAddr(\"glColor4xvOES\"))\n\tgpColorFormatNV = (C.GPCOLORFORMATNV)(getProcAddr(\"glColorFormatNV\"))\n\tgpColorFragmentOp1ATI = (C.GPCOLORFRAGMENTOP1ATI)(getProcAddr(\"glColorFragmentOp1ATI\"))\n\tgpColorFragmentOp2ATI = (C.GPCOLORFRAGMENTOP2ATI)(getProcAddr(\"glColorFragmentOp2ATI\"))\n\tgpColorFragmentOp3ATI = (C.GPCOLORFRAGMENTOP3ATI)(getProcAddr(\"glColorFragmentOp3ATI\"))\n\tgpColorMask = (C.GPCOLORMASK)(getProcAddr(\"glColorMask\"))\n\tif gpColorMask == nil {\n\t\treturn errors.New(\"glColorMask\")\n\t}\n\tgpColorMaskIndexedEXT = (C.GPCOLORMASKINDEXEDEXT)(getProcAddr(\"glColorMaskIndexedEXT\"))\n\tgpColorMaski = (C.GPCOLORMASKI)(getProcAddr(\"glColorMaski\"))\n\tif gpColorMaski == nil {\n\t\treturn errors.New(\"glColorMaski\")\n\t}\n\tgpColorMaterial = (C.GPCOLORMATERIAL)(getProcAddr(\"glColorMaterial\"))\n\tif gpColorMaterial == nil {\n\t\treturn errors.New(\"glColorMaterial\")\n\t}\n\tgpColorP3ui = (C.GPCOLORP3UI)(getProcAddr(\"glColorP3ui\"))\n\tif gpColorP3ui == nil {\n\t\treturn errors.New(\"glColorP3ui\")\n\t}\n\tgpColorP3uiv = (C.GPCOLORP3UIV)(getProcAddr(\"glColorP3uiv\"))\n\tif gpColorP3uiv == nil {\n\t\treturn errors.New(\"glColorP3uiv\")\n\t}\n\tgpColorP4ui = (C.GPCOLORP4UI)(getProcAddr(\"glColorP4ui\"))\n\tif gpColorP4ui == nil {\n\t\treturn errors.New(\"glColorP4ui\")\n\t}\n\tgpColorP4uiv = (C.GPCOLORP4UIV)(getProcAddr(\"glColorP4uiv\"))\n\tif gpColorP4uiv == nil {\n\t\treturn errors.New(\"glColorP4uiv\")\n\t}\n\tgpColorPointer = (C.GPCOLORPOINTER)(getProcAddr(\"glColorPointer\"))\n\tif gpColorPointer == nil {\n\t\treturn errors.New(\"glColorPointer\")\n\t}\n\tgpColorPointerEXT = (C.GPCOLORPOINTEREXT)(getProcAddr(\"glColorPointerEXT\"))\n\tgpColorPointerListIBM = (C.GPCOLORPOINTERLISTIBM)(getProcAddr(\"glColorPointerListIBM\"))\n\tgpColorPointervINTEL = (C.GPCOLORPOINTERVINTEL)(getProcAddr(\"glColorPointervINTEL\"))\n\tgpColorSubTable = (C.GPCOLORSUBTABLE)(getProcAddr(\"glColorSubTable\"))\n\tgpColorSubTableEXT = (C.GPCOLORSUBTABLEEXT)(getProcAddr(\"glColorSubTableEXT\"))\n\tgpColorTable = (C.GPCOLORTABLE)(getProcAddr(\"glColorTable\"))\n\tgpColorTableEXT = (C.GPCOLORTABLEEXT)(getProcAddr(\"glColorTableEXT\"))\n\tgpColorTableParameterfv = (C.GPCOLORTABLEPARAMETERFV)(getProcAddr(\"glColorTableParameterfv\"))\n\tgpColorTableParameterfvSGI = (C.GPCOLORTABLEPARAMETERFVSGI)(getProcAddr(\"glColorTableParameterfvSGI\"))\n\tgpColorTableParameteriv = (C.GPCOLORTABLEPARAMETERIV)(getProcAddr(\"glColorTableParameteriv\"))\n\tgpColorTableParameterivSGI = (C.GPCOLORTABLEPARAMETERIVSGI)(getProcAddr(\"glColorTableParameterivSGI\"))\n\tgpColorTableSGI = (C.GPCOLORTABLESGI)(getProcAddr(\"glColorTableSGI\"))\n\tgpCombinerInputNV = (C.GPCOMBINERINPUTNV)(getProcAddr(\"glCombinerInputNV\"))\n\tgpCombinerOutputNV = (C.GPCOMBINEROUTPUTNV)(getProcAddr(\"glCombinerOutputNV\"))\n\tgpCombinerParameterfNV = (C.GPCOMBINERPARAMETERFNV)(getProcAddr(\"glCombinerParameterfNV\"))\n\tgpCombinerParameterfvNV = (C.GPCOMBINERPARAMETERFVNV)(getProcAddr(\"glCombinerParameterfvNV\"))\n\tgpCombinerParameteriNV = (C.GPCOMBINERPARAMETERINV)(getProcAddr(\"glCombinerParameteriNV\"))\n\tgpCombinerParameterivNV = (C.GPCOMBINERPARAMETERIVNV)(getProcAddr(\"glCombinerParameterivNV\"))\n\tgpCombinerStageParameterfvNV = (C.GPCOMBINERSTAGEPARAMETERFVNV)(getProcAddr(\"glCombinerStageParameterfvNV\"))\n\tgpCommandListSegmentsNV = (C.GPCOMMANDLISTSEGMENTSNV)(getProcAddr(\"glCommandListSegmentsNV\"))\n\tgpCompileCommandListNV = (C.GPCOMPILECOMMANDLISTNV)(getProcAddr(\"glCompileCommandListNV\"))\n\tgpCompileShader = (C.GPCOMPILESHADER)(getProcAddr(\"glCompileShader\"))\n\tif gpCompileShader == nil {\n\t\treturn errors.New(\"glCompileShader\")\n\t}\n\tgpCompileShaderARB = (C.GPCOMPILESHADERARB)(getProcAddr(\"glCompileShaderARB\"))\n\tgpCompileShaderIncludeARB = (C.GPCOMPILESHADERINCLUDEARB)(getProcAddr(\"glCompileShaderIncludeARB\"))\n\tgpCompressedMultiTexImage1DEXT = (C.GPCOMPRESSEDMULTITEXIMAGE1DEXT)(getProcAddr(\"glCompressedMultiTexImage1DEXT\"))\n\tgpCompressedMultiTexImage2DEXT = (C.GPCOMPRESSEDMULTITEXIMAGE2DEXT)(getProcAddr(\"glCompressedMultiTexImage2DEXT\"))\n\tgpCompressedMultiTexImage3DEXT = (C.GPCOMPRESSEDMULTITEXIMAGE3DEXT)(getProcAddr(\"glCompressedMultiTexImage3DEXT\"))\n\tgpCompressedMultiTexSubImage1DEXT = (C.GPCOMPRESSEDMULTITEXSUBIMAGE1DEXT)(getProcAddr(\"glCompressedMultiTexSubImage1DEXT\"))\n\tgpCompressedMultiTexSubImage2DEXT = (C.GPCOMPRESSEDMULTITEXSUBIMAGE2DEXT)(getProcAddr(\"glCompressedMultiTexSubImage2DEXT\"))\n\tgpCompressedMultiTexSubImage3DEXT = (C.GPCOMPRESSEDMULTITEXSUBIMAGE3DEXT)(getProcAddr(\"glCompressedMultiTexSubImage3DEXT\"))\n\tgpCompressedTexImage1D = (C.GPCOMPRESSEDTEXIMAGE1D)(getProcAddr(\"glCompressedTexImage1D\"))\n\tif gpCompressedTexImage1D == nil {\n\t\treturn errors.New(\"glCompressedTexImage1D\")\n\t}\n\tgpCompressedTexImage1DARB = (C.GPCOMPRESSEDTEXIMAGE1DARB)(getProcAddr(\"glCompressedTexImage1DARB\"))\n\tgpCompressedTexImage2D = (C.GPCOMPRESSEDTEXIMAGE2D)(getProcAddr(\"glCompressedTexImage2D\"))\n\tif gpCompressedTexImage2D == nil {\n\t\treturn errors.New(\"glCompressedTexImage2D\")\n\t}\n\tgpCompressedTexImage2DARB = (C.GPCOMPRESSEDTEXIMAGE2DARB)(getProcAddr(\"glCompressedTexImage2DARB\"))\n\tgpCompressedTexImage3D = (C.GPCOMPRESSEDTEXIMAGE3D)(getProcAddr(\"glCompressedTexImage3D\"))\n\tif gpCompressedTexImage3D == nil {\n\t\treturn errors.New(\"glCompressedTexImage3D\")\n\t}\n\tgpCompressedTexImage3DARB = (C.GPCOMPRESSEDTEXIMAGE3DARB)(getProcAddr(\"glCompressedTexImage3DARB\"))\n\tgpCompressedTexSubImage1D = (C.GPCOMPRESSEDTEXSUBIMAGE1D)(getProcAddr(\"glCompressedTexSubImage1D\"))\n\tif gpCompressedTexSubImage1D == nil {\n\t\treturn errors.New(\"glCompressedTexSubImage1D\")\n\t}\n\tgpCompressedTexSubImage1DARB = (C.GPCOMPRESSEDTEXSUBIMAGE1DARB)(getProcAddr(\"glCompressedTexSubImage1DARB\"))\n\tgpCompressedTexSubImage2D = (C.GPCOMPRESSEDTEXSUBIMAGE2D)(getProcAddr(\"glCompressedTexSubImage2D\"))\n\tif gpCompressedTexSubImage2D == nil {\n\t\treturn errors.New(\"glCompressedTexSubImage2D\")\n\t}\n\tgpCompressedTexSubImage2DARB = (C.GPCOMPRESSEDTEXSUBIMAGE2DARB)(getProcAddr(\"glCompressedTexSubImage2DARB\"))\n\tgpCompressedTexSubImage3D = (C.GPCOMPRESSEDTEXSUBIMAGE3D)(getProcAddr(\"glCompressedTexSubImage3D\"))\n\tif gpCompressedTexSubImage3D == nil {\n\t\treturn errors.New(\"glCompressedTexSubImage3D\")\n\t}\n\tgpCompressedTexSubImage3DARB = (C.GPCOMPRESSEDTEXSUBIMAGE3DARB)(getProcAddr(\"glCompressedTexSubImage3DARB\"))\n\tgpCompressedTextureImage1DEXT = (C.GPCOMPRESSEDTEXTUREIMAGE1DEXT)(getProcAddr(\"glCompressedTextureImage1DEXT\"))\n\tgpCompressedTextureImage2DEXT = (C.GPCOMPRESSEDTEXTUREIMAGE2DEXT)(getProcAddr(\"glCompressedTextureImage2DEXT\"))\n\tgpCompressedTextureImage3DEXT = (C.GPCOMPRESSEDTEXTUREIMAGE3DEXT)(getProcAddr(\"glCompressedTextureImage3DEXT\"))\n\tgpCompressedTextureSubImage1D = (C.GPCOMPRESSEDTEXTURESUBIMAGE1D)(getProcAddr(\"glCompressedTextureSubImage1D\"))\n\tgpCompressedTextureSubImage1DEXT = (C.GPCOMPRESSEDTEXTURESUBIMAGE1DEXT)(getProcAddr(\"glCompressedTextureSubImage1DEXT\"))\n\tgpCompressedTextureSubImage2D = (C.GPCOMPRESSEDTEXTURESUBIMAGE2D)(getProcAddr(\"glCompressedTextureSubImage2D\"))\n\tgpCompressedTextureSubImage2DEXT = (C.GPCOMPRESSEDTEXTURESUBIMAGE2DEXT)(getProcAddr(\"glCompressedTextureSubImage2DEXT\"))\n\tgpCompressedTextureSubImage3D = (C.GPCOMPRESSEDTEXTURESUBIMAGE3D)(getProcAddr(\"glCompressedTextureSubImage3D\"))\n\tgpCompressedTextureSubImage3DEXT = (C.GPCOMPRESSEDTEXTURESUBIMAGE3DEXT)(getProcAddr(\"glCompressedTextureSubImage3DEXT\"))\n\tgpConservativeRasterParameterfNV = (C.GPCONSERVATIVERASTERPARAMETERFNV)(getProcAddr(\"glConservativeRasterParameterfNV\"))\n\tgpConservativeRasterParameteriNV = (C.GPCONSERVATIVERASTERPARAMETERINV)(getProcAddr(\"glConservativeRasterParameteriNV\"))\n\tgpConvolutionFilter1D = (C.GPCONVOLUTIONFILTER1D)(getProcAddr(\"glConvolutionFilter1D\"))\n\tgpConvolutionFilter1DEXT = (C.GPCONVOLUTIONFILTER1DEXT)(getProcAddr(\"glConvolutionFilter1DEXT\"))\n\tgpConvolutionFilter2D = (C.GPCONVOLUTIONFILTER2D)(getProcAddr(\"glConvolutionFilter2D\"))\n\tgpConvolutionFilter2DEXT = (C.GPCONVOLUTIONFILTER2DEXT)(getProcAddr(\"glConvolutionFilter2DEXT\"))\n\tgpConvolutionParameterf = (C.GPCONVOLUTIONPARAMETERF)(getProcAddr(\"glConvolutionParameterf\"))\n\tgpConvolutionParameterfEXT = (C.GPCONVOLUTIONPARAMETERFEXT)(getProcAddr(\"glConvolutionParameterfEXT\"))\n\tgpConvolutionParameterfv = (C.GPCONVOLUTIONPARAMETERFV)(getProcAddr(\"glConvolutionParameterfv\"))\n\tgpConvolutionParameterfvEXT = (C.GPCONVOLUTIONPARAMETERFVEXT)(getProcAddr(\"glConvolutionParameterfvEXT\"))\n\tgpConvolutionParameteri = (C.GPCONVOLUTIONPARAMETERI)(getProcAddr(\"glConvolutionParameteri\"))\n\tgpConvolutionParameteriEXT = (C.GPCONVOLUTIONPARAMETERIEXT)(getProcAddr(\"glConvolutionParameteriEXT\"))\n\tgpConvolutionParameteriv = (C.GPCONVOLUTIONPARAMETERIV)(getProcAddr(\"glConvolutionParameteriv\"))\n\tgpConvolutionParameterivEXT = (C.GPCONVOLUTIONPARAMETERIVEXT)(getProcAddr(\"glConvolutionParameterivEXT\"))\n\tgpConvolutionParameterxOES = (C.GPCONVOLUTIONPARAMETERXOES)(getProcAddr(\"glConvolutionParameterxOES\"))\n\tgpConvolutionParameterxvOES = (C.GPCONVOLUTIONPARAMETERXVOES)(getProcAddr(\"glConvolutionParameterxvOES\"))\n\tgpCopyBufferSubData = (C.GPCOPYBUFFERSUBDATA)(getProcAddr(\"glCopyBufferSubData\"))\n\tif gpCopyBufferSubData == nil {\n\t\treturn errors.New(\"glCopyBufferSubData\")\n\t}\n\tgpCopyColorSubTable = (C.GPCOPYCOLORSUBTABLE)(getProcAddr(\"glCopyColorSubTable\"))\n\tgpCopyColorSubTableEXT = (C.GPCOPYCOLORSUBTABLEEXT)(getProcAddr(\"glCopyColorSubTableEXT\"))\n\tgpCopyColorTable = (C.GPCOPYCOLORTABLE)(getProcAddr(\"glCopyColorTable\"))\n\tgpCopyColorTableSGI = (C.GPCOPYCOLORTABLESGI)(getProcAddr(\"glCopyColorTableSGI\"))\n\tgpCopyConvolutionFilter1D = (C.GPCOPYCONVOLUTIONFILTER1D)(getProcAddr(\"glCopyConvolutionFilter1D\"))\n\tgpCopyConvolutionFilter1DEXT = (C.GPCOPYCONVOLUTIONFILTER1DEXT)(getProcAddr(\"glCopyConvolutionFilter1DEXT\"))\n\tgpCopyConvolutionFilter2D = (C.GPCOPYCONVOLUTIONFILTER2D)(getProcAddr(\"glCopyConvolutionFilter2D\"))\n\tgpCopyConvolutionFilter2DEXT = (C.GPCOPYCONVOLUTIONFILTER2DEXT)(getProcAddr(\"glCopyConvolutionFilter2DEXT\"))\n\tgpCopyImageSubData = (C.GPCOPYIMAGESUBDATA)(getProcAddr(\"glCopyImageSubData\"))\n\tif gpCopyImageSubData == nil {\n\t\treturn errors.New(\"glCopyImageSubData\")\n\t}\n\tgpCopyImageSubDataNV = (C.GPCOPYIMAGESUBDATANV)(getProcAddr(\"glCopyImageSubDataNV\"))\n\tgpCopyMultiTexImage1DEXT = (C.GPCOPYMULTITEXIMAGE1DEXT)(getProcAddr(\"glCopyMultiTexImage1DEXT\"))\n\tgpCopyMultiTexImage2DEXT = (C.GPCOPYMULTITEXIMAGE2DEXT)(getProcAddr(\"glCopyMultiTexImage2DEXT\"))\n\tgpCopyMultiTexSubImage1DEXT = (C.GPCOPYMULTITEXSUBIMAGE1DEXT)(getProcAddr(\"glCopyMultiTexSubImage1DEXT\"))\n\tgpCopyMultiTexSubImage2DEXT = (C.GPCOPYMULTITEXSUBIMAGE2DEXT)(getProcAddr(\"glCopyMultiTexSubImage2DEXT\"))\n\tgpCopyMultiTexSubImage3DEXT = (C.GPCOPYMULTITEXSUBIMAGE3DEXT)(getProcAddr(\"glCopyMultiTexSubImage3DEXT\"))\n\tgpCopyNamedBufferSubData = (C.GPCOPYNAMEDBUFFERSUBDATA)(getProcAddr(\"glCopyNamedBufferSubData\"))\n\tgpCopyPathNV = (C.GPCOPYPATHNV)(getProcAddr(\"glCopyPathNV\"))\n\tgpCopyPixels = (C.GPCOPYPIXELS)(getProcAddr(\"glCopyPixels\"))\n\tif gpCopyPixels == nil {\n\t\treturn errors.New(\"glCopyPixels\")\n\t}\n\tgpCopyTexImage1D = (C.GPCOPYTEXIMAGE1D)(getProcAddr(\"glCopyTexImage1D\"))\n\tif gpCopyTexImage1D == nil {\n\t\treturn errors.New(\"glCopyTexImage1D\")\n\t}\n\tgpCopyTexImage1DEXT = (C.GPCOPYTEXIMAGE1DEXT)(getProcAddr(\"glCopyTexImage1DEXT\"))\n\tgpCopyTexImage2D = (C.GPCOPYTEXIMAGE2D)(getProcAddr(\"glCopyTexImage2D\"))\n\tif gpCopyTexImage2D == nil {\n\t\treturn errors.New(\"glCopyTexImage2D\")\n\t}\n\tgpCopyTexImage2DEXT = (C.GPCOPYTEXIMAGE2DEXT)(getProcAddr(\"glCopyTexImage2DEXT\"))\n\tgpCopyTexSubImage1D = (C.GPCOPYTEXSUBIMAGE1D)(getProcAddr(\"glCopyTexSubImage1D\"))\n\tif gpCopyTexSubImage1D == nil {\n\t\treturn errors.New(\"glCopyTexSubImage1D\")\n\t}\n\tgpCopyTexSubImage1DEXT = (C.GPCOPYTEXSUBIMAGE1DEXT)(getProcAddr(\"glCopyTexSubImage1DEXT\"))\n\tgpCopyTexSubImage2D = (C.GPCOPYTEXSUBIMAGE2D)(getProcAddr(\"glCopyTexSubImage2D\"))\n\tif gpCopyTexSubImage2D == nil {\n\t\treturn errors.New(\"glCopyTexSubImage2D\")\n\t}\n\tgpCopyTexSubImage2DEXT = (C.GPCOPYTEXSUBIMAGE2DEXT)(getProcAddr(\"glCopyTexSubImage2DEXT\"))\n\tgpCopyTexSubImage3D = (C.GPCOPYTEXSUBIMAGE3D)(getProcAddr(\"glCopyTexSubImage3D\"))\n\tif gpCopyTexSubImage3D == nil {\n\t\treturn errors.New(\"glCopyTexSubImage3D\")\n\t}\n\tgpCopyTexSubImage3DEXT = (C.GPCOPYTEXSUBIMAGE3DEXT)(getProcAddr(\"glCopyTexSubImage3DEXT\"))\n\tgpCopyTextureImage1DEXT = (C.GPCOPYTEXTUREIMAGE1DEXT)(getProcAddr(\"glCopyTextureImage1DEXT\"))\n\tgpCopyTextureImage2DEXT = (C.GPCOPYTEXTUREIMAGE2DEXT)(getProcAddr(\"glCopyTextureImage2DEXT\"))\n\tgpCopyTextureSubImage1D = (C.GPCOPYTEXTURESUBIMAGE1D)(getProcAddr(\"glCopyTextureSubImage1D\"))\n\tgpCopyTextureSubImage1DEXT = (C.GPCOPYTEXTURESUBIMAGE1DEXT)(getProcAddr(\"glCopyTextureSubImage1DEXT\"))\n\tgpCopyTextureSubImage2D = (C.GPCOPYTEXTURESUBIMAGE2D)(getProcAddr(\"glCopyTextureSubImage2D\"))\n\tgpCopyTextureSubImage2DEXT = (C.GPCOPYTEXTURESUBIMAGE2DEXT)(getProcAddr(\"glCopyTextureSubImage2DEXT\"))\n\tgpCopyTextureSubImage3D = (C.GPCOPYTEXTURESUBIMAGE3D)(getProcAddr(\"glCopyTextureSubImage3D\"))\n\tgpCopyTextureSubImage3DEXT = (C.GPCOPYTEXTURESUBIMAGE3DEXT)(getProcAddr(\"glCopyTextureSubImage3DEXT\"))\n\tgpCoverFillPathInstancedNV = (C.GPCOVERFILLPATHINSTANCEDNV)(getProcAddr(\"glCoverFillPathInstancedNV\"))\n\tgpCoverFillPathNV = (C.GPCOVERFILLPATHNV)(getProcAddr(\"glCoverFillPathNV\"))\n\tgpCoverStrokePathInstancedNV = (C.GPCOVERSTROKEPATHINSTANCEDNV)(getProcAddr(\"glCoverStrokePathInstancedNV\"))\n\tgpCoverStrokePathNV = (C.GPCOVERSTROKEPATHNV)(getProcAddr(\"glCoverStrokePathNV\"))\n\tgpCoverageModulationNV = (C.GPCOVERAGEMODULATIONNV)(getProcAddr(\"glCoverageModulationNV\"))\n\tgpCoverageModulationTableNV = (C.GPCOVERAGEMODULATIONTABLENV)(getProcAddr(\"glCoverageModulationTableNV\"))\n\tgpCreateBuffers = (C.GPCREATEBUFFERS)(getProcAddr(\"glCreateBuffers\"))\n\tgpCreateCommandListsNV = (C.GPCREATECOMMANDLISTSNV)(getProcAddr(\"glCreateCommandListsNV\"))\n\tgpCreateFramebuffers = (C.GPCREATEFRAMEBUFFERS)(getProcAddr(\"glCreateFramebuffers\"))\n\tgpCreateMemoryObjectsEXT = (C.GPCREATEMEMORYOBJECTSEXT)(getProcAddr(\"glCreateMemoryObjectsEXT\"))\n\tgpCreatePerfQueryINTEL = (C.GPCREATEPERFQUERYINTEL)(getProcAddr(\"glCreatePerfQueryINTEL\"))\n\tgpCreateProgram = (C.GPCREATEPROGRAM)(getProcAddr(\"glCreateProgram\"))\n\tif gpCreateProgram == nil {\n\t\treturn errors.New(\"glCreateProgram\")\n\t}\n\tgpCreateProgramObjectARB = (C.GPCREATEPROGRAMOBJECTARB)(getProcAddr(\"glCreateProgramObjectARB\"))\n\tgpCreateProgramPipelines = (C.GPCREATEPROGRAMPIPELINES)(getProcAddr(\"glCreateProgramPipelines\"))\n\tgpCreateProgressFenceNVX = (C.GPCREATEPROGRESSFENCENVX)(getProcAddr(\"glCreateProgressFenceNVX\"))\n\tgpCreateQueries = (C.GPCREATEQUERIES)(getProcAddr(\"glCreateQueries\"))\n\tgpCreateRenderbuffers = (C.GPCREATERENDERBUFFERS)(getProcAddr(\"glCreateRenderbuffers\"))\n\tgpCreateSamplers = (C.GPCREATESAMPLERS)(getProcAddr(\"glCreateSamplers\"))\n\tgpCreateSemaphoresNV = (C.GPCREATESEMAPHORESNV)(getProcAddr(\"glCreateSemaphoresNV\"))\n\tgpCreateShader = (C.GPCREATESHADER)(getProcAddr(\"glCreateShader\"))\n\tif gpCreateShader == nil {\n\t\treturn errors.New(\"glCreateShader\")\n\t}\n\tgpCreateShaderObjectARB = (C.GPCREATESHADEROBJECTARB)(getProcAddr(\"glCreateShaderObjectARB\"))\n\tgpCreateShaderProgramEXT = (C.GPCREATESHADERPROGRAMEXT)(getProcAddr(\"glCreateShaderProgramEXT\"))\n\tgpCreateShaderProgramv = (C.GPCREATESHADERPROGRAMV)(getProcAddr(\"glCreateShaderProgramv\"))\n\tif gpCreateShaderProgramv == nil {\n\t\treturn errors.New(\"glCreateShaderProgramv\")\n\t}\n\tgpCreateShaderProgramvEXT = (C.GPCREATESHADERPROGRAMVEXT)(getProcAddr(\"glCreateShaderProgramvEXT\"))\n\tgpCreateStatesNV = (C.GPCREATESTATESNV)(getProcAddr(\"glCreateStatesNV\"))\n\tgpCreateSyncFromCLeventARB = (C.GPCREATESYNCFROMCLEVENTARB)(getProcAddr(\"glCreateSyncFromCLeventARB\"))\n\tgpCreateTextures = (C.GPCREATETEXTURES)(getProcAddr(\"glCreateTextures\"))\n\tgpCreateTransformFeedbacks = (C.GPCREATETRANSFORMFEEDBACKS)(getProcAddr(\"glCreateTransformFeedbacks\"))\n\tgpCreateVertexArrays = (C.GPCREATEVERTEXARRAYS)(getProcAddr(\"glCreateVertexArrays\"))\n\tgpCullFace = (C.GPCULLFACE)(getProcAddr(\"glCullFace\"))\n\tif gpCullFace == nil {\n\t\treturn errors.New(\"glCullFace\")\n\t}\n\tgpCullParameterdvEXT = (C.GPCULLPARAMETERDVEXT)(getProcAddr(\"glCullParameterdvEXT\"))\n\tgpCullParameterfvEXT = (C.GPCULLPARAMETERFVEXT)(getProcAddr(\"glCullParameterfvEXT\"))\n\tgpCurrentPaletteMatrixARB = (C.GPCURRENTPALETTEMATRIXARB)(getProcAddr(\"glCurrentPaletteMatrixARB\"))\n\tgpDebugMessageCallback = (C.GPDEBUGMESSAGECALLBACK)(getProcAddr(\"glDebugMessageCallback\"))\n\tif gpDebugMessageCallback == nil {\n\t\treturn errors.New(\"glDebugMessageCallback\")\n\t}\n\tgpDebugMessageCallbackAMD = (C.GPDEBUGMESSAGECALLBACKAMD)(getProcAddr(\"glDebugMessageCallbackAMD\"))\n\tgpDebugMessageCallbackARB = (C.GPDEBUGMESSAGECALLBACKARB)(getProcAddr(\"glDebugMessageCallbackARB\"))\n\tgpDebugMessageCallbackKHR = (C.GPDEBUGMESSAGECALLBACKKHR)(getProcAddr(\"glDebugMessageCallbackKHR\"))\n\tgpDebugMessageControl = (C.GPDEBUGMESSAGECONTROL)(getProcAddr(\"glDebugMessageControl\"))\n\tif gpDebugMessageControl == nil {\n\t\treturn errors.New(\"glDebugMessageControl\")\n\t}\n\tgpDebugMessageControlARB = (C.GPDEBUGMESSAGECONTROLARB)(getProcAddr(\"glDebugMessageControlARB\"))\n\tgpDebugMessageControlKHR = (C.GPDEBUGMESSAGECONTROLKHR)(getProcAddr(\"glDebugMessageControlKHR\"))\n\tgpDebugMessageEnableAMD = (C.GPDEBUGMESSAGEENABLEAMD)(getProcAddr(\"glDebugMessageEnableAMD\"))\n\tgpDebugMessageInsert = (C.GPDEBUGMESSAGEINSERT)(getProcAddr(\"glDebugMessageInsert\"))\n\tif gpDebugMessageInsert == nil {\n\t\treturn errors.New(\"glDebugMessageInsert\")\n\t}\n\tgpDebugMessageInsertAMD = (C.GPDEBUGMESSAGEINSERTAMD)(getProcAddr(\"glDebugMessageInsertAMD\"))\n\tgpDebugMessageInsertARB = (C.GPDEBUGMESSAGEINSERTARB)(getProcAddr(\"glDebugMessageInsertARB\"))\n\tgpDebugMessageInsertKHR = (C.GPDEBUGMESSAGEINSERTKHR)(getProcAddr(\"glDebugMessageInsertKHR\"))\n\tgpDeformSGIX = (C.GPDEFORMSGIX)(getProcAddr(\"glDeformSGIX\"))\n\tgpDeformationMap3dSGIX = (C.GPDEFORMATIONMAP3DSGIX)(getProcAddr(\"glDeformationMap3dSGIX\"))\n\tgpDeformationMap3fSGIX = (C.GPDEFORMATIONMAP3FSGIX)(getProcAddr(\"glDeformationMap3fSGIX\"))\n\tgpDeleteAsyncMarkersSGIX = (C.GPDELETEASYNCMARKERSSGIX)(getProcAddr(\"glDeleteAsyncMarkersSGIX\"))\n\tgpDeleteBuffers = (C.GPDELETEBUFFERS)(getProcAddr(\"glDeleteBuffers\"))\n\tif gpDeleteBuffers == nil {\n\t\treturn errors.New(\"glDeleteBuffers\")\n\t}\n\tgpDeleteBuffersARB = (C.GPDELETEBUFFERSARB)(getProcAddr(\"glDeleteBuffersARB\"))\n\tgpDeleteCommandListsNV = (C.GPDELETECOMMANDLISTSNV)(getProcAddr(\"glDeleteCommandListsNV\"))\n\tgpDeleteFencesAPPLE = (C.GPDELETEFENCESAPPLE)(getProcAddr(\"glDeleteFencesAPPLE\"))\n\tgpDeleteFencesNV = (C.GPDELETEFENCESNV)(getProcAddr(\"glDeleteFencesNV\"))\n\tgpDeleteFragmentShaderATI = (C.GPDELETEFRAGMENTSHADERATI)(getProcAddr(\"glDeleteFragmentShaderATI\"))\n\tgpDeleteFramebuffers = (C.GPDELETEFRAMEBUFFERS)(getProcAddr(\"glDeleteFramebuffers\"))\n\tif gpDeleteFramebuffers == nil {\n\t\treturn errors.New(\"glDeleteFramebuffers\")\n\t}\n\tgpDeleteFramebuffersEXT = (C.GPDELETEFRAMEBUFFERSEXT)(getProcAddr(\"glDeleteFramebuffersEXT\"))\n\tgpDeleteLists = (C.GPDELETELISTS)(getProcAddr(\"glDeleteLists\"))\n\tif gpDeleteLists == nil {\n\t\treturn errors.New(\"glDeleteLists\")\n\t}\n\tgpDeleteMemoryObjectsEXT = (C.GPDELETEMEMORYOBJECTSEXT)(getProcAddr(\"glDeleteMemoryObjectsEXT\"))\n\tgpDeleteNamedStringARB = (C.GPDELETENAMEDSTRINGARB)(getProcAddr(\"glDeleteNamedStringARB\"))\n\tgpDeleteNamesAMD = (C.GPDELETENAMESAMD)(getProcAddr(\"glDeleteNamesAMD\"))\n\tgpDeleteObjectARB = (C.GPDELETEOBJECTARB)(getProcAddr(\"glDeleteObjectARB\"))\n\tgpDeleteOcclusionQueriesNV = (C.GPDELETEOCCLUSIONQUERIESNV)(getProcAddr(\"glDeleteOcclusionQueriesNV\"))\n\tgpDeletePathsNV = (C.GPDELETEPATHSNV)(getProcAddr(\"glDeletePathsNV\"))\n\tgpDeletePerfMonitorsAMD = (C.GPDELETEPERFMONITORSAMD)(getProcAddr(\"glDeletePerfMonitorsAMD\"))\n\tgpDeletePerfQueryINTEL = (C.GPDELETEPERFQUERYINTEL)(getProcAddr(\"glDeletePerfQueryINTEL\"))\n\tgpDeleteProgram = (C.GPDELETEPROGRAM)(getProcAddr(\"glDeleteProgram\"))\n\tif gpDeleteProgram == nil {\n\t\treturn errors.New(\"glDeleteProgram\")\n\t}\n\tgpDeleteProgramPipelines = (C.GPDELETEPROGRAMPIPELINES)(getProcAddr(\"glDeleteProgramPipelines\"))\n\tif gpDeleteProgramPipelines == nil {\n\t\treturn errors.New(\"glDeleteProgramPipelines\")\n\t}\n\tgpDeleteProgramPipelinesEXT = (C.GPDELETEPROGRAMPIPELINESEXT)(getProcAddr(\"glDeleteProgramPipelinesEXT\"))\n\tgpDeleteProgramsARB = (C.GPDELETEPROGRAMSARB)(getProcAddr(\"glDeleteProgramsARB\"))\n\tgpDeleteProgramsNV = (C.GPDELETEPROGRAMSNV)(getProcAddr(\"glDeleteProgramsNV\"))\n\tgpDeleteQueries = (C.GPDELETEQUERIES)(getProcAddr(\"glDeleteQueries\"))\n\tif gpDeleteQueries == nil {\n\t\treturn errors.New(\"glDeleteQueries\")\n\t}\n\tgpDeleteQueriesARB = (C.GPDELETEQUERIESARB)(getProcAddr(\"glDeleteQueriesARB\"))\n\tgpDeleteQueryResourceTagNV = (C.GPDELETEQUERYRESOURCETAGNV)(getProcAddr(\"glDeleteQueryResourceTagNV\"))\n\tgpDeleteRenderbuffers = (C.GPDELETERENDERBUFFERS)(getProcAddr(\"glDeleteRenderbuffers\"))\n\tif gpDeleteRenderbuffers == nil {\n\t\treturn errors.New(\"glDeleteRenderbuffers\")\n\t}\n\tgpDeleteRenderbuffersEXT = (C.GPDELETERENDERBUFFERSEXT)(getProcAddr(\"glDeleteRenderbuffersEXT\"))\n\tgpDeleteSamplers = (C.GPDELETESAMPLERS)(getProcAddr(\"glDeleteSamplers\"))\n\tif gpDeleteSamplers == nil {\n\t\treturn errors.New(\"glDeleteSamplers\")\n\t}\n\tgpDeleteSemaphoresEXT = (C.GPDELETESEMAPHORESEXT)(getProcAddr(\"glDeleteSemaphoresEXT\"))\n\tgpDeleteShader = (C.GPDELETESHADER)(getProcAddr(\"glDeleteShader\"))\n\tif gpDeleteShader == nil {\n\t\treturn errors.New(\"glDeleteShader\")\n\t}\n\tgpDeleteStatesNV = (C.GPDELETESTATESNV)(getProcAddr(\"glDeleteStatesNV\"))\n\tgpDeleteSync = (C.GPDELETESYNC)(getProcAddr(\"glDeleteSync\"))\n\tif gpDeleteSync == nil {\n\t\treturn errors.New(\"glDeleteSync\")\n\t}\n\tgpDeleteTextures = (C.GPDELETETEXTURES)(getProcAddr(\"glDeleteTextures\"))\n\tif gpDeleteTextures == nil {\n\t\treturn errors.New(\"glDeleteTextures\")\n\t}\n\tgpDeleteTexturesEXT = (C.GPDELETETEXTURESEXT)(getProcAddr(\"glDeleteTexturesEXT\"))\n\tgpDeleteTransformFeedbacks = (C.GPDELETETRANSFORMFEEDBACKS)(getProcAddr(\"glDeleteTransformFeedbacks\"))\n\tif gpDeleteTransformFeedbacks == nil {\n\t\treturn errors.New(\"glDeleteTransformFeedbacks\")\n\t}\n\tgpDeleteTransformFeedbacksNV = (C.GPDELETETRANSFORMFEEDBACKSNV)(getProcAddr(\"glDeleteTransformFeedbacksNV\"))\n\tgpDeleteVertexArrays = (C.GPDELETEVERTEXARRAYS)(getProcAddr(\"glDeleteVertexArrays\"))\n\tif gpDeleteVertexArrays == nil {\n\t\treturn errors.New(\"glDeleteVertexArrays\")\n\t}\n\tgpDeleteVertexArraysAPPLE = (C.GPDELETEVERTEXARRAYSAPPLE)(getProcAddr(\"glDeleteVertexArraysAPPLE\"))\n\tgpDeleteVertexShaderEXT = (C.GPDELETEVERTEXSHADEREXT)(getProcAddr(\"glDeleteVertexShaderEXT\"))\n\tgpDepthBoundsEXT = (C.GPDEPTHBOUNDSEXT)(getProcAddr(\"glDepthBoundsEXT\"))\n\tgpDepthBoundsdNV = (C.GPDEPTHBOUNDSDNV)(getProcAddr(\"glDepthBoundsdNV\"))\n\tgpDepthFunc = (C.GPDEPTHFUNC)(getProcAddr(\"glDepthFunc\"))\n\tif gpDepthFunc == nil {\n\t\treturn errors.New(\"glDepthFunc\")\n\t}\n\tgpDepthMask = (C.GPDEPTHMASK)(getProcAddr(\"glDepthMask\"))\n\tif gpDepthMask == nil {\n\t\treturn errors.New(\"glDepthMask\")\n\t}\n\tgpDepthRange = (C.GPDEPTHRANGE)(getProcAddr(\"glDepthRange\"))\n\tif gpDepthRange == nil {\n\t\treturn errors.New(\"glDepthRange\")\n\t}\n\tgpDepthRangeArraydvNV = (C.GPDEPTHRANGEARRAYDVNV)(getProcAddr(\"glDepthRangeArraydvNV\"))\n\tgpDepthRangeArrayv = (C.GPDEPTHRANGEARRAYV)(getProcAddr(\"glDepthRangeArrayv\"))\n\tif gpDepthRangeArrayv == nil {\n\t\treturn errors.New(\"glDepthRangeArrayv\")\n\t}\n\tgpDepthRangeIndexed = (C.GPDEPTHRANGEINDEXED)(getProcAddr(\"glDepthRangeIndexed\"))\n\tif gpDepthRangeIndexed == nil {\n\t\treturn errors.New(\"glDepthRangeIndexed\")\n\t}\n\tgpDepthRangeIndexeddNV = (C.GPDEPTHRANGEINDEXEDDNV)(getProcAddr(\"glDepthRangeIndexeddNV\"))\n\tgpDepthRangedNV = (C.GPDEPTHRANGEDNV)(getProcAddr(\"glDepthRangedNV\"))\n\tgpDepthRangef = (C.GPDEPTHRANGEF)(getProcAddr(\"glDepthRangef\"))\n\tif gpDepthRangef == nil {\n\t\treturn errors.New(\"glDepthRangef\")\n\t}\n\tgpDepthRangefOES = (C.GPDEPTHRANGEFOES)(getProcAddr(\"glDepthRangefOES\"))\n\tgpDepthRangexOES = (C.GPDEPTHRANGEXOES)(getProcAddr(\"glDepthRangexOES\"))\n\tgpDetachObjectARB = (C.GPDETACHOBJECTARB)(getProcAddr(\"glDetachObjectARB\"))\n\tgpDetachShader = (C.GPDETACHSHADER)(getProcAddr(\"glDetachShader\"))\n\tif gpDetachShader == nil {\n\t\treturn errors.New(\"glDetachShader\")\n\t}\n\tgpDetailTexFuncSGIS = (C.GPDETAILTEXFUNCSGIS)(getProcAddr(\"glDetailTexFuncSGIS\"))\n\tgpDisable = (C.GPDISABLE)(getProcAddr(\"glDisable\"))\n\tif gpDisable == nil {\n\t\treturn errors.New(\"glDisable\")\n\t}\n\tgpDisableClientState = (C.GPDISABLECLIENTSTATE)(getProcAddr(\"glDisableClientState\"))\n\tif gpDisableClientState == nil {\n\t\treturn errors.New(\"glDisableClientState\")\n\t}\n\tgpDisableClientStateIndexedEXT = (C.GPDISABLECLIENTSTATEINDEXEDEXT)(getProcAddr(\"glDisableClientStateIndexedEXT\"))\n\tgpDisableClientStateiEXT = (C.GPDISABLECLIENTSTATEIEXT)(getProcAddr(\"glDisableClientStateiEXT\"))\n\tgpDisableIndexedEXT = (C.GPDISABLEINDEXEDEXT)(getProcAddr(\"glDisableIndexedEXT\"))\n\tgpDisableVariantClientStateEXT = (C.GPDISABLEVARIANTCLIENTSTATEEXT)(getProcAddr(\"glDisableVariantClientStateEXT\"))\n\tgpDisableVertexArrayAttrib = (C.GPDISABLEVERTEXARRAYATTRIB)(getProcAddr(\"glDisableVertexArrayAttrib\"))\n\tgpDisableVertexArrayAttribEXT = (C.GPDISABLEVERTEXARRAYATTRIBEXT)(getProcAddr(\"glDisableVertexArrayAttribEXT\"))\n\tgpDisableVertexArrayEXT = (C.GPDISABLEVERTEXARRAYEXT)(getProcAddr(\"glDisableVertexArrayEXT\"))\n\tgpDisableVertexAttribAPPLE = (C.GPDISABLEVERTEXATTRIBAPPLE)(getProcAddr(\"glDisableVertexAttribAPPLE\"))\n\tgpDisableVertexAttribArray = (C.GPDISABLEVERTEXATTRIBARRAY)(getProcAddr(\"glDisableVertexAttribArray\"))\n\tif gpDisableVertexAttribArray == nil {\n\t\treturn errors.New(\"glDisableVertexAttribArray\")\n\t}\n\tgpDisableVertexAttribArrayARB = (C.GPDISABLEVERTEXATTRIBARRAYARB)(getProcAddr(\"glDisableVertexAttribArrayARB\"))\n\tgpDisablei = (C.GPDISABLEI)(getProcAddr(\"glDisablei\"))\n\tif gpDisablei == nil {\n\t\treturn errors.New(\"glDisablei\")\n\t}\n\tgpDispatchCompute = (C.GPDISPATCHCOMPUTE)(getProcAddr(\"glDispatchCompute\"))\n\tif gpDispatchCompute == nil {\n\t\treturn errors.New(\"glDispatchCompute\")\n\t}\n\tgpDispatchComputeGroupSizeARB = (C.GPDISPATCHCOMPUTEGROUPSIZEARB)(getProcAddr(\"glDispatchComputeGroupSizeARB\"))\n\tgpDispatchComputeIndirect = (C.GPDISPATCHCOMPUTEINDIRECT)(getProcAddr(\"glDispatchComputeIndirect\"))\n\tif gpDispatchComputeIndirect == nil {\n\t\treturn errors.New(\"glDispatchComputeIndirect\")\n\t}\n\tgpDrawArrays = (C.GPDRAWARRAYS)(getProcAddr(\"glDrawArrays\"))\n\tif gpDrawArrays == nil {\n\t\treturn errors.New(\"glDrawArrays\")\n\t}\n\tgpDrawArraysEXT = (C.GPDRAWARRAYSEXT)(getProcAddr(\"glDrawArraysEXT\"))\n\tgpDrawArraysIndirect = (C.GPDRAWARRAYSINDIRECT)(getProcAddr(\"glDrawArraysIndirect\"))\n\tif gpDrawArraysIndirect == nil {\n\t\treturn errors.New(\"glDrawArraysIndirect\")\n\t}\n\tgpDrawArraysInstanced = (C.GPDRAWARRAYSINSTANCED)(getProcAddr(\"glDrawArraysInstanced\"))\n\tif gpDrawArraysInstanced == nil {\n\t\treturn errors.New(\"glDrawArraysInstanced\")\n\t}\n\tgpDrawArraysInstancedARB = (C.GPDRAWARRAYSINSTANCEDARB)(getProcAddr(\"glDrawArraysInstancedARB\"))\n\tgpDrawArraysInstancedBaseInstance = (C.GPDRAWARRAYSINSTANCEDBASEINSTANCE)(getProcAddr(\"glDrawArraysInstancedBaseInstance\"))\n\tif gpDrawArraysInstancedBaseInstance == nil {\n\t\treturn errors.New(\"glDrawArraysInstancedBaseInstance\")\n\t}\n\tgpDrawArraysInstancedEXT = (C.GPDRAWARRAYSINSTANCEDEXT)(getProcAddr(\"glDrawArraysInstancedEXT\"))\n\tgpDrawBuffer = (C.GPDRAWBUFFER)(getProcAddr(\"glDrawBuffer\"))\n\tif gpDrawBuffer == nil {\n\t\treturn errors.New(\"glDrawBuffer\")\n\t}\n\tgpDrawBuffers = (C.GPDRAWBUFFERS)(getProcAddr(\"glDrawBuffers\"))\n\tif gpDrawBuffers == nil {\n\t\treturn errors.New(\"glDrawBuffers\")\n\t}\n\tgpDrawBuffersARB = (C.GPDRAWBUFFERSARB)(getProcAddr(\"glDrawBuffersARB\"))\n\tgpDrawBuffersATI = (C.GPDRAWBUFFERSATI)(getProcAddr(\"glDrawBuffersATI\"))\n\tgpDrawCommandsAddressNV = (C.GPDRAWCOMMANDSADDRESSNV)(getProcAddr(\"glDrawCommandsAddressNV\"))\n\tgpDrawCommandsNV = (C.GPDRAWCOMMANDSNV)(getProcAddr(\"glDrawCommandsNV\"))\n\tgpDrawCommandsStatesAddressNV = (C.GPDRAWCOMMANDSSTATESADDRESSNV)(getProcAddr(\"glDrawCommandsStatesAddressNV\"))\n\tgpDrawCommandsStatesNV = (C.GPDRAWCOMMANDSSTATESNV)(getProcAddr(\"glDrawCommandsStatesNV\"))\n\tgpDrawElementArrayAPPLE = (C.GPDRAWELEMENTARRAYAPPLE)(getProcAddr(\"glDrawElementArrayAPPLE\"))\n\tgpDrawElementArrayATI = (C.GPDRAWELEMENTARRAYATI)(getProcAddr(\"glDrawElementArrayATI\"))\n\tgpDrawElements = (C.GPDRAWELEMENTS)(getProcAddr(\"glDrawElements\"))\n\tif gpDrawElements == nil {\n\t\treturn errors.New(\"glDrawElements\")\n\t}\n\tgpDrawElementsBaseVertex = (C.GPDRAWELEMENTSBASEVERTEX)(getProcAddr(\"glDrawElementsBaseVertex\"))\n\tif gpDrawElementsBaseVertex == nil {\n\t\treturn errors.New(\"glDrawElementsBaseVertex\")\n\t}\n\tgpDrawElementsIndirect = (C.GPDRAWELEMENTSINDIRECT)(getProcAddr(\"glDrawElementsIndirect\"))\n\tif gpDrawElementsIndirect == nil {\n\t\treturn errors.New(\"glDrawElementsIndirect\")\n\t}\n\tgpDrawElementsInstanced = (C.GPDRAWELEMENTSINSTANCED)(getProcAddr(\"glDrawElementsInstanced\"))\n\tif gpDrawElementsInstanced == nil {\n\t\treturn errors.New(\"glDrawElementsInstanced\")\n\t}\n\tgpDrawElementsInstancedARB = (C.GPDRAWELEMENTSINSTANCEDARB)(getProcAddr(\"glDrawElementsInstancedARB\"))\n\tgpDrawElementsInstancedBaseInstance = (C.GPDRAWELEMENTSINSTANCEDBASEINSTANCE)(getProcAddr(\"glDrawElementsInstancedBaseInstance\"))\n\tif gpDrawElementsInstancedBaseInstance == nil {\n\t\treturn errors.New(\"glDrawElementsInstancedBaseInstance\")\n\t}\n\tgpDrawElementsInstancedBaseVertex = (C.GPDRAWELEMENTSINSTANCEDBASEVERTEX)(getProcAddr(\"glDrawElementsInstancedBaseVertex\"))\n\tif gpDrawElementsInstancedBaseVertex == nil {\n\t\treturn errors.New(\"glDrawElementsInstancedBaseVertex\")\n\t}\n\tgpDrawElementsInstancedBaseVertexBaseInstance = (C.GPDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCE)(getProcAddr(\"glDrawElementsInstancedBaseVertexBaseInstance\"))\n\tif gpDrawElementsInstancedBaseVertexBaseInstance == nil {\n\t\treturn errors.New(\"glDrawElementsInstancedBaseVertexBaseInstance\")\n\t}\n\tgpDrawElementsInstancedEXT = (C.GPDRAWELEMENTSINSTANCEDEXT)(getProcAddr(\"glDrawElementsInstancedEXT\"))\n\tgpDrawMeshArraysSUN = (C.GPDRAWMESHARRAYSSUN)(getProcAddr(\"glDrawMeshArraysSUN\"))\n\tgpDrawMeshTasksIndirectNV = (C.GPDRAWMESHTASKSINDIRECTNV)(getProcAddr(\"glDrawMeshTasksIndirectNV\"))\n\tgpDrawMeshTasksNV = (C.GPDRAWMESHTASKSNV)(getProcAddr(\"glDrawMeshTasksNV\"))\n\tgpDrawPixels = (C.GPDRAWPIXELS)(getProcAddr(\"glDrawPixels\"))\n\tif gpDrawPixels == nil {\n\t\treturn errors.New(\"glDrawPixels\")\n\t}\n\tgpDrawRangeElementArrayAPPLE = (C.GPDRAWRANGEELEMENTARRAYAPPLE)(getProcAddr(\"glDrawRangeElementArrayAPPLE\"))\n\tgpDrawRangeElementArrayATI = (C.GPDRAWRANGEELEMENTARRAYATI)(getProcAddr(\"glDrawRangeElementArrayATI\"))\n\tgpDrawRangeElements = (C.GPDRAWRANGEELEMENTS)(getProcAddr(\"glDrawRangeElements\"))\n\tif gpDrawRangeElements == nil {\n\t\treturn errors.New(\"glDrawRangeElements\")\n\t}\n\tgpDrawRangeElementsBaseVertex = (C.GPDRAWRANGEELEMENTSBASEVERTEX)(getProcAddr(\"glDrawRangeElementsBaseVertex\"))\n\tif gpDrawRangeElementsBaseVertex == nil {\n\t\treturn errors.New(\"glDrawRangeElementsBaseVertex\")\n\t}\n\tgpDrawRangeElementsEXT = (C.GPDRAWRANGEELEMENTSEXT)(getProcAddr(\"glDrawRangeElementsEXT\"))\n\tgpDrawTextureNV = (C.GPDRAWTEXTURENV)(getProcAddr(\"glDrawTextureNV\"))\n\tgpDrawTransformFeedback = (C.GPDRAWTRANSFORMFEEDBACK)(getProcAddr(\"glDrawTransformFeedback\"))\n\tif gpDrawTransformFeedback == nil {\n\t\treturn errors.New(\"glDrawTransformFeedback\")\n\t}\n\tgpDrawTransformFeedbackInstanced = (C.GPDRAWTRANSFORMFEEDBACKINSTANCED)(getProcAddr(\"glDrawTransformFeedbackInstanced\"))\n\tif gpDrawTransformFeedbackInstanced == nil {\n\t\treturn errors.New(\"glDrawTransformFeedbackInstanced\")\n\t}\n\tgpDrawTransformFeedbackNV = (C.GPDRAWTRANSFORMFEEDBACKNV)(getProcAddr(\"glDrawTransformFeedbackNV\"))\n\tgpDrawTransformFeedbackStream = (C.GPDRAWTRANSFORMFEEDBACKSTREAM)(getProcAddr(\"glDrawTransformFeedbackStream\"))\n\tif gpDrawTransformFeedbackStream == nil {\n\t\treturn errors.New(\"glDrawTransformFeedbackStream\")\n\t}\n\tgpDrawTransformFeedbackStreamInstanced = (C.GPDRAWTRANSFORMFEEDBACKSTREAMINSTANCED)(getProcAddr(\"glDrawTransformFeedbackStreamInstanced\"))\n\tif gpDrawTransformFeedbackStreamInstanced == nil {\n\t\treturn errors.New(\"glDrawTransformFeedbackStreamInstanced\")\n\t}\n\tgpDrawVkImageNV = (C.GPDRAWVKIMAGENV)(getProcAddr(\"glDrawVkImageNV\"))\n\tgpEGLImageTargetTexStorageEXT = (C.GPEGLIMAGETARGETTEXSTORAGEEXT)(getProcAddr(\"glEGLImageTargetTexStorageEXT\"))\n\tgpEGLImageTargetTextureStorageEXT = (C.GPEGLIMAGETARGETTEXTURESTORAGEEXT)(getProcAddr(\"glEGLImageTargetTextureStorageEXT\"))\n\tgpEdgeFlag = (C.GPEDGEFLAG)(getProcAddr(\"glEdgeFlag\"))\n\tif gpEdgeFlag == nil {\n\t\treturn errors.New(\"glEdgeFlag\")\n\t}\n\tgpEdgeFlagFormatNV = (C.GPEDGEFLAGFORMATNV)(getProcAddr(\"glEdgeFlagFormatNV\"))\n\tgpEdgeFlagPointer = (C.GPEDGEFLAGPOINTER)(getProcAddr(\"glEdgeFlagPointer\"))\n\tif gpEdgeFlagPointer == nil {\n\t\treturn errors.New(\"glEdgeFlagPointer\")\n\t}\n\tgpEdgeFlagPointerEXT = (C.GPEDGEFLAGPOINTEREXT)(getProcAddr(\"glEdgeFlagPointerEXT\"))\n\tgpEdgeFlagPointerListIBM = (C.GPEDGEFLAGPOINTERLISTIBM)(getProcAddr(\"glEdgeFlagPointerListIBM\"))\n\tgpEdgeFlagv = (C.GPEDGEFLAGV)(getProcAddr(\"glEdgeFlagv\"))\n\tif gpEdgeFlagv == nil {\n\t\treturn errors.New(\"glEdgeFlagv\")\n\t}\n\tgpElementPointerAPPLE = (C.GPELEMENTPOINTERAPPLE)(getProcAddr(\"glElementPointerAPPLE\"))\n\tgpElementPointerATI = (C.GPELEMENTPOINTERATI)(getProcAddr(\"glElementPointerATI\"))\n\tgpEnable = (C.GPENABLE)(getProcAddr(\"glEnable\"))\n\tif gpEnable == nil {\n\t\treturn errors.New(\"glEnable\")\n\t}\n\tgpEnableClientState = (C.GPENABLECLIENTSTATE)(getProcAddr(\"glEnableClientState\"))\n\tif gpEnableClientState == nil {\n\t\treturn errors.New(\"glEnableClientState\")\n\t}\n\tgpEnableClientStateIndexedEXT = (C.GPENABLECLIENTSTATEINDEXEDEXT)(getProcAddr(\"glEnableClientStateIndexedEXT\"))\n\tgpEnableClientStateiEXT = (C.GPENABLECLIENTSTATEIEXT)(getProcAddr(\"glEnableClientStateiEXT\"))\n\tgpEnableIndexedEXT = (C.GPENABLEINDEXEDEXT)(getProcAddr(\"glEnableIndexedEXT\"))\n\tgpEnableVariantClientStateEXT = (C.GPENABLEVARIANTCLIENTSTATEEXT)(getProcAddr(\"glEnableVariantClientStateEXT\"))\n\tgpEnableVertexArrayAttrib = (C.GPENABLEVERTEXARRAYATTRIB)(getProcAddr(\"glEnableVertexArrayAttrib\"))\n\tgpEnableVertexArrayAttribEXT = (C.GPENABLEVERTEXARRAYATTRIBEXT)(getProcAddr(\"glEnableVertexArrayAttribEXT\"))\n\tgpEnableVertexArrayEXT = (C.GPENABLEVERTEXARRAYEXT)(getProcAddr(\"glEnableVertexArrayEXT\"))\n\tgpEnableVertexAttribAPPLE = (C.GPENABLEVERTEXATTRIBAPPLE)(getProcAddr(\"glEnableVertexAttribAPPLE\"))\n\tgpEnableVertexAttribArray = (C.GPENABLEVERTEXATTRIBARRAY)(getProcAddr(\"glEnableVertexAttribArray\"))\n\tif gpEnableVertexAttribArray == nil {\n\t\treturn errors.New(\"glEnableVertexAttribArray\")\n\t}\n\tgpEnableVertexAttribArrayARB = (C.GPENABLEVERTEXATTRIBARRAYARB)(getProcAddr(\"glEnableVertexAttribArrayARB\"))\n\tgpEnablei = (C.GPENABLEI)(getProcAddr(\"glEnablei\"))\n\tif gpEnablei == nil {\n\t\treturn errors.New(\"glEnablei\")\n\t}\n\tgpEnd = (C.GPEND)(getProcAddr(\"glEnd\"))\n\tif gpEnd == nil {\n\t\treturn errors.New(\"glEnd\")\n\t}\n\tgpEndConditionalRender = (C.GPENDCONDITIONALRENDER)(getProcAddr(\"glEndConditionalRender\"))\n\tif gpEndConditionalRender == nil {\n\t\treturn errors.New(\"glEndConditionalRender\")\n\t}\n\tgpEndConditionalRenderNV = (C.GPENDCONDITIONALRENDERNV)(getProcAddr(\"glEndConditionalRenderNV\"))\n\tgpEndConditionalRenderNVX = (C.GPENDCONDITIONALRENDERNVX)(getProcAddr(\"glEndConditionalRenderNVX\"))\n\tgpEndFragmentShaderATI = (C.GPENDFRAGMENTSHADERATI)(getProcAddr(\"glEndFragmentShaderATI\"))\n\tgpEndList = (C.GPENDLIST)(getProcAddr(\"glEndList\"))\n\tif gpEndList == nil {\n\t\treturn errors.New(\"glEndList\")\n\t}\n\tgpEndOcclusionQueryNV = (C.GPENDOCCLUSIONQUERYNV)(getProcAddr(\"glEndOcclusionQueryNV\"))\n\tgpEndPerfMonitorAMD = (C.GPENDPERFMONITORAMD)(getProcAddr(\"glEndPerfMonitorAMD\"))\n\tgpEndPerfQueryINTEL = (C.GPENDPERFQUERYINTEL)(getProcAddr(\"glEndPerfQueryINTEL\"))\n\tgpEndQuery = (C.GPENDQUERY)(getProcAddr(\"glEndQuery\"))\n\tif gpEndQuery == nil {\n\t\treturn errors.New(\"glEndQuery\")\n\t}\n\tgpEndQueryARB = (C.GPENDQUERYARB)(getProcAddr(\"glEndQueryARB\"))\n\tgpEndQueryIndexed = (C.GPENDQUERYINDEXED)(getProcAddr(\"glEndQueryIndexed\"))\n\tif gpEndQueryIndexed == nil {\n\t\treturn errors.New(\"glEndQueryIndexed\")\n\t}\n\tgpEndTransformFeedback = (C.GPENDTRANSFORMFEEDBACK)(getProcAddr(\"glEndTransformFeedback\"))\n\tif gpEndTransformFeedback == nil {\n\t\treturn errors.New(\"glEndTransformFeedback\")\n\t}\n\tgpEndTransformFeedbackEXT = (C.GPENDTRANSFORMFEEDBACKEXT)(getProcAddr(\"glEndTransformFeedbackEXT\"))\n\tgpEndTransformFeedbackNV = (C.GPENDTRANSFORMFEEDBACKNV)(getProcAddr(\"glEndTransformFeedbackNV\"))\n\tgpEndVertexShaderEXT = (C.GPENDVERTEXSHADEREXT)(getProcAddr(\"glEndVertexShaderEXT\"))\n\tgpEndVideoCaptureNV = (C.GPENDVIDEOCAPTURENV)(getProcAddr(\"glEndVideoCaptureNV\"))\n\tgpEvalCoord1d = (C.GPEVALCOORD1D)(getProcAddr(\"glEvalCoord1d\"))\n\tif gpEvalCoord1d == nil {\n\t\treturn errors.New(\"glEvalCoord1d\")\n\t}\n\tgpEvalCoord1dv = (C.GPEVALCOORD1DV)(getProcAddr(\"glEvalCoord1dv\"))\n\tif gpEvalCoord1dv == nil {\n\t\treturn errors.New(\"glEvalCoord1dv\")\n\t}\n\tgpEvalCoord1f = (C.GPEVALCOORD1F)(getProcAddr(\"glEvalCoord1f\"))\n\tif gpEvalCoord1f == nil {\n\t\treturn errors.New(\"glEvalCoord1f\")\n\t}\n\tgpEvalCoord1fv = (C.GPEVALCOORD1FV)(getProcAddr(\"glEvalCoord1fv\"))\n\tif gpEvalCoord1fv == nil {\n\t\treturn errors.New(\"glEvalCoord1fv\")\n\t}\n\tgpEvalCoord1xOES = (C.GPEVALCOORD1XOES)(getProcAddr(\"glEvalCoord1xOES\"))\n\tgpEvalCoord1xvOES = (C.GPEVALCOORD1XVOES)(getProcAddr(\"glEvalCoord1xvOES\"))\n\tgpEvalCoord2d = (C.GPEVALCOORD2D)(getProcAddr(\"glEvalCoord2d\"))\n\tif gpEvalCoord2d == nil {\n\t\treturn errors.New(\"glEvalCoord2d\")\n\t}\n\tgpEvalCoord2dv = (C.GPEVALCOORD2DV)(getProcAddr(\"glEvalCoord2dv\"))\n\tif gpEvalCoord2dv == nil {\n\t\treturn errors.New(\"glEvalCoord2dv\")\n\t}\n\tgpEvalCoord2f = (C.GPEVALCOORD2F)(getProcAddr(\"glEvalCoord2f\"))\n\tif gpEvalCoord2f == nil {\n\t\treturn errors.New(\"glEvalCoord2f\")\n\t}\n\tgpEvalCoord2fv = (C.GPEVALCOORD2FV)(getProcAddr(\"glEvalCoord2fv\"))\n\tif gpEvalCoord2fv == nil {\n\t\treturn errors.New(\"glEvalCoord2fv\")\n\t}\n\tgpEvalCoord2xOES = (C.GPEVALCOORD2XOES)(getProcAddr(\"glEvalCoord2xOES\"))\n\tgpEvalCoord2xvOES = (C.GPEVALCOORD2XVOES)(getProcAddr(\"glEvalCoord2xvOES\"))\n\tgpEvalMapsNV = (C.GPEVALMAPSNV)(getProcAddr(\"glEvalMapsNV\"))\n\tgpEvalMesh1 = (C.GPEVALMESH1)(getProcAddr(\"glEvalMesh1\"))\n\tif gpEvalMesh1 == nil {\n\t\treturn errors.New(\"glEvalMesh1\")\n\t}\n\tgpEvalMesh2 = (C.GPEVALMESH2)(getProcAddr(\"glEvalMesh2\"))\n\tif gpEvalMesh2 == nil {\n\t\treturn errors.New(\"glEvalMesh2\")\n\t}\n\tgpEvalPoint1 = (C.GPEVALPOINT1)(getProcAddr(\"glEvalPoint1\"))\n\tif gpEvalPoint1 == nil {\n\t\treturn errors.New(\"glEvalPoint1\")\n\t}\n\tgpEvalPoint2 = (C.GPEVALPOINT2)(getProcAddr(\"glEvalPoint2\"))\n\tif gpEvalPoint2 == nil {\n\t\treturn errors.New(\"glEvalPoint2\")\n\t}\n\tgpEvaluateDepthValuesARB = (C.GPEVALUATEDEPTHVALUESARB)(getProcAddr(\"glEvaluateDepthValuesARB\"))\n\tgpExecuteProgramNV = (C.GPEXECUTEPROGRAMNV)(getProcAddr(\"glExecuteProgramNV\"))\n\tgpExtractComponentEXT = (C.GPEXTRACTCOMPONENTEXT)(getProcAddr(\"glExtractComponentEXT\"))\n\tgpFeedbackBuffer = (C.GPFEEDBACKBUFFER)(getProcAddr(\"glFeedbackBuffer\"))\n\tif gpFeedbackBuffer == nil {\n\t\treturn errors.New(\"glFeedbackBuffer\")\n\t}\n\tgpFeedbackBufferxOES = (C.GPFEEDBACKBUFFERXOES)(getProcAddr(\"glFeedbackBufferxOES\"))\n\tgpFenceSync = (C.GPFENCESYNC)(getProcAddr(\"glFenceSync\"))\n\tif gpFenceSync == nil {\n\t\treturn errors.New(\"glFenceSync\")\n\t}\n\tgpFinalCombinerInputNV = (C.GPFINALCOMBINERINPUTNV)(getProcAddr(\"glFinalCombinerInputNV\"))\n\tgpFinish = (C.GPFINISH)(getProcAddr(\"glFinish\"))\n\tif gpFinish == nil {\n\t\treturn errors.New(\"glFinish\")\n\t}\n\tgpFinishAsyncSGIX = (C.GPFINISHASYNCSGIX)(getProcAddr(\"glFinishAsyncSGIX\"))\n\tgpFinishFenceAPPLE = (C.GPFINISHFENCEAPPLE)(getProcAddr(\"glFinishFenceAPPLE\"))\n\tgpFinishFenceNV = (C.GPFINISHFENCENV)(getProcAddr(\"glFinishFenceNV\"))\n\tgpFinishObjectAPPLE = (C.GPFINISHOBJECTAPPLE)(getProcAddr(\"glFinishObjectAPPLE\"))\n\tgpFinishTextureSUNX = (C.GPFINISHTEXTURESUNX)(getProcAddr(\"glFinishTextureSUNX\"))\n\tgpFlush = (C.GPFLUSH)(getProcAddr(\"glFlush\"))\n\tif gpFlush == nil {\n\t\treturn errors.New(\"glFlush\")\n\t}\n\tgpFlushMappedBufferRange = (C.GPFLUSHMAPPEDBUFFERRANGE)(getProcAddr(\"glFlushMappedBufferRange\"))\n\tif gpFlushMappedBufferRange == nil {\n\t\treturn errors.New(\"glFlushMappedBufferRange\")\n\t}\n\tgpFlushMappedBufferRangeAPPLE = (C.GPFLUSHMAPPEDBUFFERRANGEAPPLE)(getProcAddr(\"glFlushMappedBufferRangeAPPLE\"))\n\tgpFlushMappedNamedBufferRange = (C.GPFLUSHMAPPEDNAMEDBUFFERRANGE)(getProcAddr(\"glFlushMappedNamedBufferRange\"))\n\tgpFlushMappedNamedBufferRangeEXT = (C.GPFLUSHMAPPEDNAMEDBUFFERRANGEEXT)(getProcAddr(\"glFlushMappedNamedBufferRangeEXT\"))\n\tgpFlushPixelDataRangeNV = (C.GPFLUSHPIXELDATARANGENV)(getProcAddr(\"glFlushPixelDataRangeNV\"))\n\tgpFlushRasterSGIX = (C.GPFLUSHRASTERSGIX)(getProcAddr(\"glFlushRasterSGIX\"))\n\tgpFlushStaticDataIBM = (C.GPFLUSHSTATICDATAIBM)(getProcAddr(\"glFlushStaticDataIBM\"))\n\tgpFlushVertexArrayRangeAPPLE = (C.GPFLUSHVERTEXARRAYRANGEAPPLE)(getProcAddr(\"glFlushVertexArrayRangeAPPLE\"))\n\tgpFlushVertexArrayRangeNV = (C.GPFLUSHVERTEXARRAYRANGENV)(getProcAddr(\"glFlushVertexArrayRangeNV\"))\n\tgpFogCoordFormatNV = (C.GPFOGCOORDFORMATNV)(getProcAddr(\"glFogCoordFormatNV\"))\n\tgpFogCoordPointer = (C.GPFOGCOORDPOINTER)(getProcAddr(\"glFogCoordPointer\"))\n\tif gpFogCoordPointer == nil {\n\t\treturn errors.New(\"glFogCoordPointer\")\n\t}\n\tgpFogCoordPointerEXT = (C.GPFOGCOORDPOINTEREXT)(getProcAddr(\"glFogCoordPointerEXT\"))\n\tgpFogCoordPointerListIBM = (C.GPFOGCOORDPOINTERLISTIBM)(getProcAddr(\"glFogCoordPointerListIBM\"))\n\tgpFogCoordd = (C.GPFOGCOORDD)(getProcAddr(\"glFogCoordd\"))\n\tif gpFogCoordd == nil {\n\t\treturn errors.New(\"glFogCoordd\")\n\t}\n\tgpFogCoorddEXT = (C.GPFOGCOORDDEXT)(getProcAddr(\"glFogCoorddEXT\"))\n\tgpFogCoorddv = (C.GPFOGCOORDDV)(getProcAddr(\"glFogCoorddv\"))\n\tif gpFogCoorddv == nil {\n\t\treturn errors.New(\"glFogCoorddv\")\n\t}\n\tgpFogCoorddvEXT = (C.GPFOGCOORDDVEXT)(getProcAddr(\"glFogCoorddvEXT\"))\n\tgpFogCoordf = (C.GPFOGCOORDF)(getProcAddr(\"glFogCoordf\"))\n\tif gpFogCoordf == nil {\n\t\treturn errors.New(\"glFogCoordf\")\n\t}\n\tgpFogCoordfEXT = (C.GPFOGCOORDFEXT)(getProcAddr(\"glFogCoordfEXT\"))\n\tgpFogCoordfv = (C.GPFOGCOORDFV)(getProcAddr(\"glFogCoordfv\"))\n\tif gpFogCoordfv == nil {\n\t\treturn errors.New(\"glFogCoordfv\")\n\t}\n\tgpFogCoordfvEXT = (C.GPFOGCOORDFVEXT)(getProcAddr(\"glFogCoordfvEXT\"))\n\tgpFogCoordhNV = (C.GPFOGCOORDHNV)(getProcAddr(\"glFogCoordhNV\"))\n\tgpFogCoordhvNV = (C.GPFOGCOORDHVNV)(getProcAddr(\"glFogCoordhvNV\"))\n\tgpFogFuncSGIS = (C.GPFOGFUNCSGIS)(getProcAddr(\"glFogFuncSGIS\"))\n\tgpFogf = (C.GPFOGF)(getProcAddr(\"glFogf\"))\n\tif gpFogf == nil {\n\t\treturn errors.New(\"glFogf\")\n\t}\n\tgpFogfv = (C.GPFOGFV)(getProcAddr(\"glFogfv\"))\n\tif gpFogfv == nil {\n\t\treturn errors.New(\"glFogfv\")\n\t}\n\tgpFogi = (C.GPFOGI)(getProcAddr(\"glFogi\"))\n\tif gpFogi == nil {\n\t\treturn errors.New(\"glFogi\")\n\t}\n\tgpFogiv = (C.GPFOGIV)(getProcAddr(\"glFogiv\"))\n\tif gpFogiv == nil {\n\t\treturn errors.New(\"glFogiv\")\n\t}\n\tgpFogxOES = (C.GPFOGXOES)(getProcAddr(\"glFogxOES\"))\n\tgpFogxvOES = (C.GPFOGXVOES)(getProcAddr(\"glFogxvOES\"))\n\tgpFragmentColorMaterialSGIX = (C.GPFRAGMENTCOLORMATERIALSGIX)(getProcAddr(\"glFragmentColorMaterialSGIX\"))\n\tgpFragmentCoverageColorNV = (C.GPFRAGMENTCOVERAGECOLORNV)(getProcAddr(\"glFragmentCoverageColorNV\"))\n\tgpFragmentLightModelfSGIX = (C.GPFRAGMENTLIGHTMODELFSGIX)(getProcAddr(\"glFragmentLightModelfSGIX\"))\n\tgpFragmentLightModelfvSGIX = (C.GPFRAGMENTLIGHTMODELFVSGIX)(getProcAddr(\"glFragmentLightModelfvSGIX\"))\n\tgpFragmentLightModeliSGIX = (C.GPFRAGMENTLIGHTMODELISGIX)(getProcAddr(\"glFragmentLightModeliSGIX\"))\n\tgpFragmentLightModelivSGIX = (C.GPFRAGMENTLIGHTMODELIVSGIX)(getProcAddr(\"glFragmentLightModelivSGIX\"))\n\tgpFragmentLightfSGIX = (C.GPFRAGMENTLIGHTFSGIX)(getProcAddr(\"glFragmentLightfSGIX\"))\n\tgpFragmentLightfvSGIX = (C.GPFRAGMENTLIGHTFVSGIX)(getProcAddr(\"glFragmentLightfvSGIX\"))\n\tgpFragmentLightiSGIX = (C.GPFRAGMENTLIGHTISGIX)(getProcAddr(\"glFragmentLightiSGIX\"))\n\tgpFragmentLightivSGIX = (C.GPFRAGMENTLIGHTIVSGIX)(getProcAddr(\"glFragmentLightivSGIX\"))\n\tgpFragmentMaterialfSGIX = (C.GPFRAGMENTMATERIALFSGIX)(getProcAddr(\"glFragmentMaterialfSGIX\"))\n\tgpFragmentMaterialfvSGIX = (C.GPFRAGMENTMATERIALFVSGIX)(getProcAddr(\"glFragmentMaterialfvSGIX\"))\n\tgpFragmentMaterialiSGIX = (C.GPFRAGMENTMATERIALISGIX)(getProcAddr(\"glFragmentMaterialiSGIX\"))\n\tgpFragmentMaterialivSGIX = (C.GPFRAGMENTMATERIALIVSGIX)(getProcAddr(\"glFragmentMaterialivSGIX\"))\n\tgpFrameTerminatorGREMEDY = (C.GPFRAMETERMINATORGREMEDY)(getProcAddr(\"glFrameTerminatorGREMEDY\"))\n\tgpFrameZoomSGIX = (C.GPFRAMEZOOMSGIX)(getProcAddr(\"glFrameZoomSGIX\"))\n\tgpFramebufferDrawBufferEXT = (C.GPFRAMEBUFFERDRAWBUFFEREXT)(getProcAddr(\"glFramebufferDrawBufferEXT\"))\n\tgpFramebufferDrawBuffersEXT = (C.GPFRAMEBUFFERDRAWBUFFERSEXT)(getProcAddr(\"glFramebufferDrawBuffersEXT\"))\n\tgpFramebufferFetchBarrierEXT = (C.GPFRAMEBUFFERFETCHBARRIEREXT)(getProcAddr(\"glFramebufferFetchBarrierEXT\"))\n\tgpFramebufferParameteri = (C.GPFRAMEBUFFERPARAMETERI)(getProcAddr(\"glFramebufferParameteri\"))\n\tif gpFramebufferParameteri == nil {\n\t\treturn errors.New(\"glFramebufferParameteri\")\n\t}\n\tgpFramebufferParameteriMESA = (C.GPFRAMEBUFFERPARAMETERIMESA)(getProcAddr(\"glFramebufferParameteriMESA\"))\n\tgpFramebufferReadBufferEXT = (C.GPFRAMEBUFFERREADBUFFEREXT)(getProcAddr(\"glFramebufferReadBufferEXT\"))\n\tgpFramebufferRenderbuffer = (C.GPFRAMEBUFFERRENDERBUFFER)(getProcAddr(\"glFramebufferRenderbuffer\"))\n\tif gpFramebufferRenderbuffer == nil {\n\t\treturn errors.New(\"glFramebufferRenderbuffer\")\n\t}\n\tgpFramebufferRenderbufferEXT = (C.GPFRAMEBUFFERRENDERBUFFEREXT)(getProcAddr(\"glFramebufferRenderbufferEXT\"))\n\tgpFramebufferSampleLocationsfvARB = (C.GPFRAMEBUFFERSAMPLELOCATIONSFVARB)(getProcAddr(\"glFramebufferSampleLocationsfvARB\"))\n\tgpFramebufferSampleLocationsfvNV = (C.GPFRAMEBUFFERSAMPLELOCATIONSFVNV)(getProcAddr(\"glFramebufferSampleLocationsfvNV\"))\n\tgpFramebufferSamplePositionsfvAMD = (C.GPFRAMEBUFFERSAMPLEPOSITIONSFVAMD)(getProcAddr(\"glFramebufferSamplePositionsfvAMD\"))\n\tgpFramebufferTexture = (C.GPFRAMEBUFFERTEXTURE)(getProcAddr(\"glFramebufferTexture\"))\n\tif gpFramebufferTexture == nil {\n\t\treturn errors.New(\"glFramebufferTexture\")\n\t}\n\tgpFramebufferTexture1D = (C.GPFRAMEBUFFERTEXTURE1D)(getProcAddr(\"glFramebufferTexture1D\"))\n\tif gpFramebufferTexture1D == nil {\n\t\treturn errors.New(\"glFramebufferTexture1D\")\n\t}\n\tgpFramebufferTexture1DEXT = (C.GPFRAMEBUFFERTEXTURE1DEXT)(getProcAddr(\"glFramebufferTexture1DEXT\"))\n\tgpFramebufferTexture2D = (C.GPFRAMEBUFFERTEXTURE2D)(getProcAddr(\"glFramebufferTexture2D\"))\n\tif gpFramebufferTexture2D == nil {\n\t\treturn errors.New(\"glFramebufferTexture2D\")\n\t}\n\tgpFramebufferTexture2DEXT = (C.GPFRAMEBUFFERTEXTURE2DEXT)(getProcAddr(\"glFramebufferTexture2DEXT\"))\n\tgpFramebufferTexture3D = (C.GPFRAMEBUFFERTEXTURE3D)(getProcAddr(\"glFramebufferTexture3D\"))\n\tif gpFramebufferTexture3D == nil {\n\t\treturn errors.New(\"glFramebufferTexture3D\")\n\t}\n\tgpFramebufferTexture3DEXT = (C.GPFRAMEBUFFERTEXTURE3DEXT)(getProcAddr(\"glFramebufferTexture3DEXT\"))\n\tgpFramebufferTextureARB = (C.GPFRAMEBUFFERTEXTUREARB)(getProcAddr(\"glFramebufferTextureARB\"))\n\tgpFramebufferTextureEXT = (C.GPFRAMEBUFFERTEXTUREEXT)(getProcAddr(\"glFramebufferTextureEXT\"))\n\tgpFramebufferTextureFaceARB = (C.GPFRAMEBUFFERTEXTUREFACEARB)(getProcAddr(\"glFramebufferTextureFaceARB\"))\n\tgpFramebufferTextureFaceEXT = (C.GPFRAMEBUFFERTEXTUREFACEEXT)(getProcAddr(\"glFramebufferTextureFaceEXT\"))\n\tgpFramebufferTextureLayer = (C.GPFRAMEBUFFERTEXTURELAYER)(getProcAddr(\"glFramebufferTextureLayer\"))\n\tif gpFramebufferTextureLayer == nil {\n\t\treturn errors.New(\"glFramebufferTextureLayer\")\n\t}\n\tgpFramebufferTextureLayerARB = (C.GPFRAMEBUFFERTEXTURELAYERARB)(getProcAddr(\"glFramebufferTextureLayerARB\"))\n\tgpFramebufferTextureLayerEXT = (C.GPFRAMEBUFFERTEXTURELAYEREXT)(getProcAddr(\"glFramebufferTextureLayerEXT\"))\n\tgpFramebufferTextureMultiviewOVR = (C.GPFRAMEBUFFERTEXTUREMULTIVIEWOVR)(getProcAddr(\"glFramebufferTextureMultiviewOVR\"))\n\tgpFreeObjectBufferATI = (C.GPFREEOBJECTBUFFERATI)(getProcAddr(\"glFreeObjectBufferATI\"))\n\tgpFrontFace = (C.GPFRONTFACE)(getProcAddr(\"glFrontFace\"))\n\tif gpFrontFace == nil {\n\t\treturn errors.New(\"glFrontFace\")\n\t}\n\tgpFrustum = (C.GPFRUSTUM)(getProcAddr(\"glFrustum\"))\n\tif gpFrustum == nil {\n\t\treturn errors.New(\"glFrustum\")\n\t}\n\tgpFrustumfOES = (C.GPFRUSTUMFOES)(getProcAddr(\"glFrustumfOES\"))\n\tgpFrustumxOES = (C.GPFRUSTUMXOES)(getProcAddr(\"glFrustumxOES\"))\n\tgpGenAsyncMarkersSGIX = (C.GPGENASYNCMARKERSSGIX)(getProcAddr(\"glGenAsyncMarkersSGIX\"))\n\tgpGenBuffers = (C.GPGENBUFFERS)(getProcAddr(\"glGenBuffers\"))\n\tif gpGenBuffers == nil {\n\t\treturn errors.New(\"glGenBuffers\")\n\t}\n\tgpGenBuffersARB = (C.GPGENBUFFERSARB)(getProcAddr(\"glGenBuffersARB\"))\n\tgpGenFencesAPPLE = (C.GPGENFENCESAPPLE)(getProcAddr(\"glGenFencesAPPLE\"))\n\tgpGenFencesNV = (C.GPGENFENCESNV)(getProcAddr(\"glGenFencesNV\"))\n\tgpGenFragmentShadersATI = (C.GPGENFRAGMENTSHADERSATI)(getProcAddr(\"glGenFragmentShadersATI\"))\n\tgpGenFramebuffers = (C.GPGENFRAMEBUFFERS)(getProcAddr(\"glGenFramebuffers\"))\n\tif gpGenFramebuffers == nil {\n\t\treturn errors.New(\"glGenFramebuffers\")\n\t}\n\tgpGenFramebuffersEXT = (C.GPGENFRAMEBUFFERSEXT)(getProcAddr(\"glGenFramebuffersEXT\"))\n\tgpGenLists = (C.GPGENLISTS)(getProcAddr(\"glGenLists\"))\n\tif gpGenLists == nil {\n\t\treturn errors.New(\"glGenLists\")\n\t}\n\tgpGenNamesAMD = (C.GPGENNAMESAMD)(getProcAddr(\"glGenNamesAMD\"))\n\tgpGenOcclusionQueriesNV = (C.GPGENOCCLUSIONQUERIESNV)(getProcAddr(\"glGenOcclusionQueriesNV\"))\n\tgpGenPathsNV = (C.GPGENPATHSNV)(getProcAddr(\"glGenPathsNV\"))\n\tgpGenPerfMonitorsAMD = (C.GPGENPERFMONITORSAMD)(getProcAddr(\"glGenPerfMonitorsAMD\"))\n\tgpGenProgramPipelines = (C.GPGENPROGRAMPIPELINES)(getProcAddr(\"glGenProgramPipelines\"))\n\tif gpGenProgramPipelines == nil {\n\t\treturn errors.New(\"glGenProgramPipelines\")\n\t}\n\tgpGenProgramPipelinesEXT = (C.GPGENPROGRAMPIPELINESEXT)(getProcAddr(\"glGenProgramPipelinesEXT\"))\n\tgpGenProgramsARB = (C.GPGENPROGRAMSARB)(getProcAddr(\"glGenProgramsARB\"))\n\tgpGenProgramsNV = (C.GPGENPROGRAMSNV)(getProcAddr(\"glGenProgramsNV\"))\n\tgpGenQueries = (C.GPGENQUERIES)(getProcAddr(\"glGenQueries\"))\n\tif gpGenQueries == nil {\n\t\treturn errors.New(\"glGenQueries\")\n\t}\n\tgpGenQueriesARB = (C.GPGENQUERIESARB)(getProcAddr(\"glGenQueriesARB\"))\n\tgpGenQueryResourceTagNV = (C.GPGENQUERYRESOURCETAGNV)(getProcAddr(\"glGenQueryResourceTagNV\"))\n\tgpGenRenderbuffers = (C.GPGENRENDERBUFFERS)(getProcAddr(\"glGenRenderbuffers\"))\n\tif gpGenRenderbuffers == nil {\n\t\treturn errors.New(\"glGenRenderbuffers\")\n\t}\n\tgpGenRenderbuffersEXT = (C.GPGENRENDERBUFFERSEXT)(getProcAddr(\"glGenRenderbuffersEXT\"))\n\tgpGenSamplers = (C.GPGENSAMPLERS)(getProcAddr(\"glGenSamplers\"))\n\tif gpGenSamplers == nil {\n\t\treturn errors.New(\"glGenSamplers\")\n\t}\n\tgpGenSemaphoresEXT = (C.GPGENSEMAPHORESEXT)(getProcAddr(\"glGenSemaphoresEXT\"))\n\tgpGenSymbolsEXT = (C.GPGENSYMBOLSEXT)(getProcAddr(\"glGenSymbolsEXT\"))\n\tgpGenTextures = (C.GPGENTEXTURES)(getProcAddr(\"glGenTextures\"))\n\tif gpGenTextures == nil {\n\t\treturn errors.New(\"glGenTextures\")\n\t}\n\tgpGenTexturesEXT = (C.GPGENTEXTURESEXT)(getProcAddr(\"glGenTexturesEXT\"))\n\tgpGenTransformFeedbacks = (C.GPGENTRANSFORMFEEDBACKS)(getProcAddr(\"glGenTransformFeedbacks\"))\n\tif gpGenTransformFeedbacks == nil {\n\t\treturn errors.New(\"glGenTransformFeedbacks\")\n\t}\n\tgpGenTransformFeedbacksNV = (C.GPGENTRANSFORMFEEDBACKSNV)(getProcAddr(\"glGenTransformFeedbacksNV\"))\n\tgpGenVertexArrays = (C.GPGENVERTEXARRAYS)(getProcAddr(\"glGenVertexArrays\"))\n\tif gpGenVertexArrays == nil {\n\t\treturn errors.New(\"glGenVertexArrays\")\n\t}\n\tgpGenVertexArraysAPPLE = (C.GPGENVERTEXARRAYSAPPLE)(getProcAddr(\"glGenVertexArraysAPPLE\"))\n\tgpGenVertexShadersEXT = (C.GPGENVERTEXSHADERSEXT)(getProcAddr(\"glGenVertexShadersEXT\"))\n\tgpGenerateMipmap = (C.GPGENERATEMIPMAP)(getProcAddr(\"glGenerateMipmap\"))\n\tif gpGenerateMipmap == nil {\n\t\treturn errors.New(\"glGenerateMipmap\")\n\t}\n\tgpGenerateMipmapEXT = (C.GPGENERATEMIPMAPEXT)(getProcAddr(\"glGenerateMipmapEXT\"))\n\tgpGenerateMultiTexMipmapEXT = (C.GPGENERATEMULTITEXMIPMAPEXT)(getProcAddr(\"glGenerateMultiTexMipmapEXT\"))\n\tgpGenerateTextureMipmap = (C.GPGENERATETEXTUREMIPMAP)(getProcAddr(\"glGenerateTextureMipmap\"))\n\tgpGenerateTextureMipmapEXT = (C.GPGENERATETEXTUREMIPMAPEXT)(getProcAddr(\"glGenerateTextureMipmapEXT\"))\n\tgpGetActiveAtomicCounterBufferiv = (C.GPGETACTIVEATOMICCOUNTERBUFFERIV)(getProcAddr(\"glGetActiveAtomicCounterBufferiv\"))\n\tif gpGetActiveAtomicCounterBufferiv == nil {\n\t\treturn errors.New(\"glGetActiveAtomicCounterBufferiv\")\n\t}\n\tgpGetActiveAttrib = (C.GPGETACTIVEATTRIB)(getProcAddr(\"glGetActiveAttrib\"))\n\tif gpGetActiveAttrib == nil {\n\t\treturn errors.New(\"glGetActiveAttrib\")\n\t}\n\tgpGetActiveAttribARB = (C.GPGETACTIVEATTRIBARB)(getProcAddr(\"glGetActiveAttribARB\"))\n\tgpGetActiveSubroutineName = (C.GPGETACTIVESUBROUTINENAME)(getProcAddr(\"glGetActiveSubroutineName\"))\n\tif gpGetActiveSubroutineName == nil {\n\t\treturn errors.New(\"glGetActiveSubroutineName\")\n\t}\n\tgpGetActiveSubroutineUniformName = (C.GPGETACTIVESUBROUTINEUNIFORMNAME)(getProcAddr(\"glGetActiveSubroutineUniformName\"))\n\tif gpGetActiveSubroutineUniformName == nil {\n\t\treturn errors.New(\"glGetActiveSubroutineUniformName\")\n\t}\n\tgpGetActiveSubroutineUniformiv = (C.GPGETACTIVESUBROUTINEUNIFORMIV)(getProcAddr(\"glGetActiveSubroutineUniformiv\"))\n\tif gpGetActiveSubroutineUniformiv == nil {\n\t\treturn errors.New(\"glGetActiveSubroutineUniformiv\")\n\t}\n\tgpGetActiveUniform = (C.GPGETACTIVEUNIFORM)(getProcAddr(\"glGetActiveUniform\"))\n\tif gpGetActiveUniform == nil {\n\t\treturn errors.New(\"glGetActiveUniform\")\n\t}\n\tgpGetActiveUniformARB = (C.GPGETACTIVEUNIFORMARB)(getProcAddr(\"glGetActiveUniformARB\"))\n\tgpGetActiveUniformBlockName = (C.GPGETACTIVEUNIFORMBLOCKNAME)(getProcAddr(\"glGetActiveUniformBlockName\"))\n\tif gpGetActiveUniformBlockName == nil {\n\t\treturn errors.New(\"glGetActiveUniformBlockName\")\n\t}\n\tgpGetActiveUniformBlockiv = (C.GPGETACTIVEUNIFORMBLOCKIV)(getProcAddr(\"glGetActiveUniformBlockiv\"))\n\tif gpGetActiveUniformBlockiv == nil {\n\t\treturn errors.New(\"glGetActiveUniformBlockiv\")\n\t}\n\tgpGetActiveUniformName = (C.GPGETACTIVEUNIFORMNAME)(getProcAddr(\"glGetActiveUniformName\"))\n\tif gpGetActiveUniformName == nil {\n\t\treturn errors.New(\"glGetActiveUniformName\")\n\t}\n\tgpGetActiveUniformsiv = (C.GPGETACTIVEUNIFORMSIV)(getProcAddr(\"glGetActiveUniformsiv\"))\n\tif gpGetActiveUniformsiv == nil {\n\t\treturn errors.New(\"glGetActiveUniformsiv\")\n\t}\n\tgpGetActiveVaryingNV = (C.GPGETACTIVEVARYINGNV)(getProcAddr(\"glGetActiveVaryingNV\"))\n\tgpGetArrayObjectfvATI = (C.GPGETARRAYOBJECTFVATI)(getProcAddr(\"glGetArrayObjectfvATI\"))\n\tgpGetArrayObjectivATI = (C.GPGETARRAYOBJECTIVATI)(getProcAddr(\"glGetArrayObjectivATI\"))\n\tgpGetAttachedObjectsARB = (C.GPGETATTACHEDOBJECTSARB)(getProcAddr(\"glGetAttachedObjectsARB\"))\n\tgpGetAttachedShaders = (C.GPGETATTACHEDSHADERS)(getProcAddr(\"glGetAttachedShaders\"))\n\tif gpGetAttachedShaders == nil {\n\t\treturn errors.New(\"glGetAttachedShaders\")\n\t}\n\tgpGetAttribLocation = (C.GPGETATTRIBLOCATION)(getProcAddr(\"glGetAttribLocation\"))\n\tif gpGetAttribLocation == nil {\n\t\treturn errors.New(\"glGetAttribLocation\")\n\t}\n\tgpGetAttribLocationARB = (C.GPGETATTRIBLOCATIONARB)(getProcAddr(\"glGetAttribLocationARB\"))\n\tgpGetBooleanIndexedvEXT = (C.GPGETBOOLEANINDEXEDVEXT)(getProcAddr(\"glGetBooleanIndexedvEXT\"))\n\tgpGetBooleani_v = (C.GPGETBOOLEANI_V)(getProcAddr(\"glGetBooleani_v\"))\n\tif gpGetBooleani_v == nil {\n\t\treturn errors.New(\"glGetBooleani_v\")\n\t}\n\tgpGetBooleanv = (C.GPGETBOOLEANV)(getProcAddr(\"glGetBooleanv\"))\n\tif gpGetBooleanv == nil {\n\t\treturn errors.New(\"glGetBooleanv\")\n\t}\n\tgpGetBufferParameteri64v = (C.GPGETBUFFERPARAMETERI64V)(getProcAddr(\"glGetBufferParameteri64v\"))\n\tif gpGetBufferParameteri64v == nil {\n\t\treturn errors.New(\"glGetBufferParameteri64v\")\n\t}\n\tgpGetBufferParameteriv = (C.GPGETBUFFERPARAMETERIV)(getProcAddr(\"glGetBufferParameteriv\"))\n\tif gpGetBufferParameteriv == nil {\n\t\treturn errors.New(\"glGetBufferParameteriv\")\n\t}\n\tgpGetBufferParameterivARB = (C.GPGETBUFFERPARAMETERIVARB)(getProcAddr(\"glGetBufferParameterivARB\"))\n\tgpGetBufferParameterui64vNV = (C.GPGETBUFFERPARAMETERUI64VNV)(getProcAddr(\"glGetBufferParameterui64vNV\"))\n\tgpGetBufferPointerv = (C.GPGETBUFFERPOINTERV)(getProcAddr(\"glGetBufferPointerv\"))\n\tif gpGetBufferPointerv == nil {\n\t\treturn errors.New(\"glGetBufferPointerv\")\n\t}\n\tgpGetBufferPointervARB = (C.GPGETBUFFERPOINTERVARB)(getProcAddr(\"glGetBufferPointervARB\"))\n\tgpGetBufferSubData = (C.GPGETBUFFERSUBDATA)(getProcAddr(\"glGetBufferSubData\"))\n\tif gpGetBufferSubData == nil {\n\t\treturn errors.New(\"glGetBufferSubData\")\n\t}\n\tgpGetBufferSubDataARB = (C.GPGETBUFFERSUBDATAARB)(getProcAddr(\"glGetBufferSubDataARB\"))\n\tgpGetClipPlane = (C.GPGETCLIPPLANE)(getProcAddr(\"glGetClipPlane\"))\n\tif gpGetClipPlane == nil {\n\t\treturn errors.New(\"glGetClipPlane\")\n\t}\n\tgpGetClipPlanefOES = (C.GPGETCLIPPLANEFOES)(getProcAddr(\"glGetClipPlanefOES\"))\n\tgpGetClipPlanexOES = (C.GPGETCLIPPLANEXOES)(getProcAddr(\"glGetClipPlanexOES\"))\n\tgpGetColorTable = (C.GPGETCOLORTABLE)(getProcAddr(\"glGetColorTable\"))\n\tgpGetColorTableEXT = (C.GPGETCOLORTABLEEXT)(getProcAddr(\"glGetColorTableEXT\"))\n\tgpGetColorTableParameterfv = (C.GPGETCOLORTABLEPARAMETERFV)(getProcAddr(\"glGetColorTableParameterfv\"))\n\tgpGetColorTableParameterfvEXT = (C.GPGETCOLORTABLEPARAMETERFVEXT)(getProcAddr(\"glGetColorTableParameterfvEXT\"))\n\tgpGetColorTableParameterfvSGI = (C.GPGETCOLORTABLEPARAMETERFVSGI)(getProcAddr(\"glGetColorTableParameterfvSGI\"))\n\tgpGetColorTableParameteriv = (C.GPGETCOLORTABLEPARAMETERIV)(getProcAddr(\"glGetColorTableParameteriv\"))\n\tgpGetColorTableParameterivEXT = (C.GPGETCOLORTABLEPARAMETERIVEXT)(getProcAddr(\"glGetColorTableParameterivEXT\"))\n\tgpGetColorTableParameterivSGI = (C.GPGETCOLORTABLEPARAMETERIVSGI)(getProcAddr(\"glGetColorTableParameterivSGI\"))\n\tgpGetColorTableSGI = (C.GPGETCOLORTABLESGI)(getProcAddr(\"glGetColorTableSGI\"))\n\tgpGetCombinerInputParameterfvNV = (C.GPGETCOMBINERINPUTPARAMETERFVNV)(getProcAddr(\"glGetCombinerInputParameterfvNV\"))\n\tgpGetCombinerInputParameterivNV = (C.GPGETCOMBINERINPUTPARAMETERIVNV)(getProcAddr(\"glGetCombinerInputParameterivNV\"))\n\tgpGetCombinerOutputParameterfvNV = (C.GPGETCOMBINEROUTPUTPARAMETERFVNV)(getProcAddr(\"glGetCombinerOutputParameterfvNV\"))\n\tgpGetCombinerOutputParameterivNV = (C.GPGETCOMBINEROUTPUTPARAMETERIVNV)(getProcAddr(\"glGetCombinerOutputParameterivNV\"))\n\tgpGetCombinerStageParameterfvNV = (C.GPGETCOMBINERSTAGEPARAMETERFVNV)(getProcAddr(\"glGetCombinerStageParameterfvNV\"))\n\tgpGetCommandHeaderNV = (C.GPGETCOMMANDHEADERNV)(getProcAddr(\"glGetCommandHeaderNV\"))\n\tgpGetCompressedMultiTexImageEXT = (C.GPGETCOMPRESSEDMULTITEXIMAGEEXT)(getProcAddr(\"glGetCompressedMultiTexImageEXT\"))\n\tgpGetCompressedTexImage = (C.GPGETCOMPRESSEDTEXIMAGE)(getProcAddr(\"glGetCompressedTexImage\"))\n\tif gpGetCompressedTexImage == nil {\n\t\treturn errors.New(\"glGetCompressedTexImage\")\n\t}\n\tgpGetCompressedTexImageARB = (C.GPGETCOMPRESSEDTEXIMAGEARB)(getProcAddr(\"glGetCompressedTexImageARB\"))\n\tgpGetCompressedTextureImage = (C.GPGETCOMPRESSEDTEXTUREIMAGE)(getProcAddr(\"glGetCompressedTextureImage\"))\n\tgpGetCompressedTextureImageEXT = (C.GPGETCOMPRESSEDTEXTUREIMAGEEXT)(getProcAddr(\"glGetCompressedTextureImageEXT\"))\n\tgpGetCompressedTextureSubImage = (C.GPGETCOMPRESSEDTEXTURESUBIMAGE)(getProcAddr(\"glGetCompressedTextureSubImage\"))\n\tgpGetConvolutionFilter = (C.GPGETCONVOLUTIONFILTER)(getProcAddr(\"glGetConvolutionFilter\"))\n\tgpGetConvolutionFilterEXT = (C.GPGETCONVOLUTIONFILTEREXT)(getProcAddr(\"glGetConvolutionFilterEXT\"))\n\tgpGetConvolutionParameterfv = (C.GPGETCONVOLUTIONPARAMETERFV)(getProcAddr(\"glGetConvolutionParameterfv\"))\n\tgpGetConvolutionParameterfvEXT = (C.GPGETCONVOLUTIONPARAMETERFVEXT)(getProcAddr(\"glGetConvolutionParameterfvEXT\"))\n\tgpGetConvolutionParameteriv = (C.GPGETCONVOLUTIONPARAMETERIV)(getProcAddr(\"glGetConvolutionParameteriv\"))\n\tgpGetConvolutionParameterivEXT = (C.GPGETCONVOLUTIONPARAMETERIVEXT)(getProcAddr(\"glGetConvolutionParameterivEXT\"))\n\tgpGetConvolutionParameterxvOES = (C.GPGETCONVOLUTIONPARAMETERXVOES)(getProcAddr(\"glGetConvolutionParameterxvOES\"))\n\tgpGetCoverageModulationTableNV = (C.GPGETCOVERAGEMODULATIONTABLENV)(getProcAddr(\"glGetCoverageModulationTableNV\"))\n\tgpGetDebugMessageLog = (C.GPGETDEBUGMESSAGELOG)(getProcAddr(\"glGetDebugMessageLog\"))\n\tif gpGetDebugMessageLog == nil {\n\t\treturn errors.New(\"glGetDebugMessageLog\")\n\t}\n\tgpGetDebugMessageLogAMD = (C.GPGETDEBUGMESSAGELOGAMD)(getProcAddr(\"glGetDebugMessageLogAMD\"))\n\tgpGetDebugMessageLogARB = (C.GPGETDEBUGMESSAGELOGARB)(getProcAddr(\"glGetDebugMessageLogARB\"))\n\tgpGetDebugMessageLogKHR = (C.GPGETDEBUGMESSAGELOGKHR)(getProcAddr(\"glGetDebugMessageLogKHR\"))\n\tgpGetDetailTexFuncSGIS = (C.GPGETDETAILTEXFUNCSGIS)(getProcAddr(\"glGetDetailTexFuncSGIS\"))\n\tgpGetDoubleIndexedvEXT = (C.GPGETDOUBLEINDEXEDVEXT)(getProcAddr(\"glGetDoubleIndexedvEXT\"))\n\tgpGetDoublei_v = (C.GPGETDOUBLEI_V)(getProcAddr(\"glGetDoublei_v\"))\n\tif gpGetDoublei_v == nil {\n\t\treturn errors.New(\"glGetDoublei_v\")\n\t}\n\tgpGetDoublei_vEXT = (C.GPGETDOUBLEI_VEXT)(getProcAddr(\"glGetDoublei_vEXT\"))\n\tgpGetDoublev = (C.GPGETDOUBLEV)(getProcAddr(\"glGetDoublev\"))\n\tif gpGetDoublev == nil {\n\t\treturn errors.New(\"glGetDoublev\")\n\t}\n\tgpGetError = (C.GPGETERROR)(getProcAddr(\"glGetError\"))\n\tif gpGetError == nil {\n\t\treturn errors.New(\"glGetError\")\n\t}\n\tgpGetFenceivNV = (C.GPGETFENCEIVNV)(getProcAddr(\"glGetFenceivNV\"))\n\tgpGetFinalCombinerInputParameterfvNV = (C.GPGETFINALCOMBINERINPUTPARAMETERFVNV)(getProcAddr(\"glGetFinalCombinerInputParameterfvNV\"))\n\tgpGetFinalCombinerInputParameterivNV = (C.GPGETFINALCOMBINERINPUTPARAMETERIVNV)(getProcAddr(\"glGetFinalCombinerInputParameterivNV\"))\n\tgpGetFirstPerfQueryIdINTEL = (C.GPGETFIRSTPERFQUERYIDINTEL)(getProcAddr(\"glGetFirstPerfQueryIdINTEL\"))\n\tgpGetFixedvOES = (C.GPGETFIXEDVOES)(getProcAddr(\"glGetFixedvOES\"))\n\tgpGetFloatIndexedvEXT = (C.GPGETFLOATINDEXEDVEXT)(getProcAddr(\"glGetFloatIndexedvEXT\"))\n\tgpGetFloati_v = (C.GPGETFLOATI_V)(getProcAddr(\"glGetFloati_v\"))\n\tif gpGetFloati_v == nil {\n\t\treturn errors.New(\"glGetFloati_v\")\n\t}\n\tgpGetFloati_vEXT = (C.GPGETFLOATI_VEXT)(getProcAddr(\"glGetFloati_vEXT\"))\n\tgpGetFloatv = (C.GPGETFLOATV)(getProcAddr(\"glGetFloatv\"))\n\tif gpGetFloatv == nil {\n\t\treturn errors.New(\"glGetFloatv\")\n\t}\n\tgpGetFogFuncSGIS = (C.GPGETFOGFUNCSGIS)(getProcAddr(\"glGetFogFuncSGIS\"))\n\tgpGetFragDataIndex = (C.GPGETFRAGDATAINDEX)(getProcAddr(\"glGetFragDataIndex\"))\n\tif gpGetFragDataIndex == nil {\n\t\treturn errors.New(\"glGetFragDataIndex\")\n\t}\n\tgpGetFragDataLocation = (C.GPGETFRAGDATALOCATION)(getProcAddr(\"glGetFragDataLocation\"))\n\tif gpGetFragDataLocation == nil {\n\t\treturn errors.New(\"glGetFragDataLocation\")\n\t}\n\tgpGetFragDataLocationEXT = (C.GPGETFRAGDATALOCATIONEXT)(getProcAddr(\"glGetFragDataLocationEXT\"))\n\tgpGetFragmentLightfvSGIX = (C.GPGETFRAGMENTLIGHTFVSGIX)(getProcAddr(\"glGetFragmentLightfvSGIX\"))\n\tgpGetFragmentLightivSGIX = (C.GPGETFRAGMENTLIGHTIVSGIX)(getProcAddr(\"glGetFragmentLightivSGIX\"))\n\tgpGetFragmentMaterialfvSGIX = (C.GPGETFRAGMENTMATERIALFVSGIX)(getProcAddr(\"glGetFragmentMaterialfvSGIX\"))\n\tgpGetFragmentMaterialivSGIX = (C.GPGETFRAGMENTMATERIALIVSGIX)(getProcAddr(\"glGetFragmentMaterialivSGIX\"))\n\tgpGetFramebufferAttachmentParameteriv = (C.GPGETFRAMEBUFFERATTACHMENTPARAMETERIV)(getProcAddr(\"glGetFramebufferAttachmentParameteriv\"))\n\tif gpGetFramebufferAttachmentParameteriv == nil {\n\t\treturn errors.New(\"glGetFramebufferAttachmentParameteriv\")\n\t}\n\tgpGetFramebufferAttachmentParameterivEXT = (C.GPGETFRAMEBUFFERATTACHMENTPARAMETERIVEXT)(getProcAddr(\"glGetFramebufferAttachmentParameterivEXT\"))\n\tgpGetFramebufferParameterfvAMD = (C.GPGETFRAMEBUFFERPARAMETERFVAMD)(getProcAddr(\"glGetFramebufferParameterfvAMD\"))\n\tgpGetFramebufferParameteriv = (C.GPGETFRAMEBUFFERPARAMETERIV)(getProcAddr(\"glGetFramebufferParameteriv\"))\n\tif gpGetFramebufferParameteriv == nil {\n\t\treturn errors.New(\"glGetFramebufferParameteriv\")\n\t}\n\tgpGetFramebufferParameterivEXT = (C.GPGETFRAMEBUFFERPARAMETERIVEXT)(getProcAddr(\"glGetFramebufferParameterivEXT\"))\n\tgpGetFramebufferParameterivMESA = (C.GPGETFRAMEBUFFERPARAMETERIVMESA)(getProcAddr(\"glGetFramebufferParameterivMESA\"))\n\tgpGetGraphicsResetStatus = (C.GPGETGRAPHICSRESETSTATUS)(getProcAddr(\"glGetGraphicsResetStatus\"))\n\tgpGetGraphicsResetStatusARB = (C.GPGETGRAPHICSRESETSTATUSARB)(getProcAddr(\"glGetGraphicsResetStatusARB\"))\n\tgpGetGraphicsResetStatusKHR = (C.GPGETGRAPHICSRESETSTATUSKHR)(getProcAddr(\"glGetGraphicsResetStatusKHR\"))\n\tgpGetHandleARB = (C.GPGETHANDLEARB)(getProcAddr(\"glGetHandleARB\"))\n\tgpGetHistogram = (C.GPGETHISTOGRAM)(getProcAddr(\"glGetHistogram\"))\n\tgpGetHistogramEXT = (C.GPGETHISTOGRAMEXT)(getProcAddr(\"glGetHistogramEXT\"))\n\tgpGetHistogramParameterfv = (C.GPGETHISTOGRAMPARAMETERFV)(getProcAddr(\"glGetHistogramParameterfv\"))\n\tgpGetHistogramParameterfvEXT = (C.GPGETHISTOGRAMPARAMETERFVEXT)(getProcAddr(\"glGetHistogramParameterfvEXT\"))\n\tgpGetHistogramParameteriv = (C.GPGETHISTOGRAMPARAMETERIV)(getProcAddr(\"glGetHistogramParameteriv\"))\n\tgpGetHistogramParameterivEXT = (C.GPGETHISTOGRAMPARAMETERIVEXT)(getProcAddr(\"glGetHistogramParameterivEXT\"))\n\tgpGetHistogramParameterxvOES = (C.GPGETHISTOGRAMPARAMETERXVOES)(getProcAddr(\"glGetHistogramParameterxvOES\"))\n\tgpGetImageHandleARB = (C.GPGETIMAGEHANDLEARB)(getProcAddr(\"glGetImageHandleARB\"))\n\tgpGetImageHandleNV = (C.GPGETIMAGEHANDLENV)(getProcAddr(\"glGetImageHandleNV\"))\n\tgpGetImageTransformParameterfvHP = (C.GPGETIMAGETRANSFORMPARAMETERFVHP)(getProcAddr(\"glGetImageTransformParameterfvHP\"))\n\tgpGetImageTransformParameterivHP = (C.GPGETIMAGETRANSFORMPARAMETERIVHP)(getProcAddr(\"glGetImageTransformParameterivHP\"))\n\tgpGetInfoLogARB = (C.GPGETINFOLOGARB)(getProcAddr(\"glGetInfoLogARB\"))\n\tgpGetInstrumentsSGIX = (C.GPGETINSTRUMENTSSGIX)(getProcAddr(\"glGetInstrumentsSGIX\"))\n\tgpGetInteger64i_v = (C.GPGETINTEGER64I_V)(getProcAddr(\"glGetInteger64i_v\"))\n\tif gpGetInteger64i_v == nil {\n\t\treturn errors.New(\"glGetInteger64i_v\")\n\t}\n\tgpGetInteger64v = (C.GPGETINTEGER64V)(getProcAddr(\"glGetInteger64v\"))\n\tif gpGetInteger64v == nil {\n\t\treturn errors.New(\"glGetInteger64v\")\n\t}\n\tgpGetIntegerIndexedvEXT = (C.GPGETINTEGERINDEXEDVEXT)(getProcAddr(\"glGetIntegerIndexedvEXT\"))\n\tgpGetIntegeri_v = (C.GPGETINTEGERI_V)(getProcAddr(\"glGetIntegeri_v\"))\n\tif gpGetIntegeri_v == nil {\n\t\treturn errors.New(\"glGetIntegeri_v\")\n\t}\n\tgpGetIntegerui64i_vNV = (C.GPGETINTEGERUI64I_VNV)(getProcAddr(\"glGetIntegerui64i_vNV\"))\n\tgpGetIntegerui64vNV = (C.GPGETINTEGERUI64VNV)(getProcAddr(\"glGetIntegerui64vNV\"))\n\tgpGetIntegerv = (C.GPGETINTEGERV)(getProcAddr(\"glGetIntegerv\"))\n\tif gpGetIntegerv == nil {\n\t\treturn errors.New(\"glGetIntegerv\")\n\t}\n\tgpGetInternalformatSampleivNV = (C.GPGETINTERNALFORMATSAMPLEIVNV)(getProcAddr(\"glGetInternalformatSampleivNV\"))\n\tgpGetInternalformati64v = (C.GPGETINTERNALFORMATI64V)(getProcAddr(\"glGetInternalformati64v\"))\n\tif gpGetInternalformati64v == nil {\n\t\treturn errors.New(\"glGetInternalformati64v\")\n\t}\n\tgpGetInternalformativ = (C.GPGETINTERNALFORMATIV)(getProcAddr(\"glGetInternalformativ\"))\n\tif gpGetInternalformativ == nil {\n\t\treturn errors.New(\"glGetInternalformativ\")\n\t}\n\tgpGetInvariantBooleanvEXT = (C.GPGETINVARIANTBOOLEANVEXT)(getProcAddr(\"glGetInvariantBooleanvEXT\"))\n\tgpGetInvariantFloatvEXT = (C.GPGETINVARIANTFLOATVEXT)(getProcAddr(\"glGetInvariantFloatvEXT\"))\n\tgpGetInvariantIntegervEXT = (C.GPGETINVARIANTINTEGERVEXT)(getProcAddr(\"glGetInvariantIntegervEXT\"))\n\tgpGetLightfv = (C.GPGETLIGHTFV)(getProcAddr(\"glGetLightfv\"))\n\tif gpGetLightfv == nil {\n\t\treturn errors.New(\"glGetLightfv\")\n\t}\n\tgpGetLightiv = (C.GPGETLIGHTIV)(getProcAddr(\"glGetLightiv\"))\n\tif gpGetLightiv == nil {\n\t\treturn errors.New(\"glGetLightiv\")\n\t}\n\tgpGetLightxOES = (C.GPGETLIGHTXOES)(getProcAddr(\"glGetLightxOES\"))\n\tgpGetLightxvOES = (C.GPGETLIGHTXVOES)(getProcAddr(\"glGetLightxvOES\"))\n\tgpGetListParameterfvSGIX = (C.GPGETLISTPARAMETERFVSGIX)(getProcAddr(\"glGetListParameterfvSGIX\"))\n\tgpGetListParameterivSGIX = (C.GPGETLISTPARAMETERIVSGIX)(getProcAddr(\"glGetListParameterivSGIX\"))\n\tgpGetLocalConstantBooleanvEXT = (C.GPGETLOCALCONSTANTBOOLEANVEXT)(getProcAddr(\"glGetLocalConstantBooleanvEXT\"))\n\tgpGetLocalConstantFloatvEXT = (C.GPGETLOCALCONSTANTFLOATVEXT)(getProcAddr(\"glGetLocalConstantFloatvEXT\"))\n\tgpGetLocalConstantIntegervEXT = (C.GPGETLOCALCONSTANTINTEGERVEXT)(getProcAddr(\"glGetLocalConstantIntegervEXT\"))\n\tgpGetMapAttribParameterfvNV = (C.GPGETMAPATTRIBPARAMETERFVNV)(getProcAddr(\"glGetMapAttribParameterfvNV\"))\n\tgpGetMapAttribParameterivNV = (C.GPGETMAPATTRIBPARAMETERIVNV)(getProcAddr(\"glGetMapAttribParameterivNV\"))\n\tgpGetMapControlPointsNV = (C.GPGETMAPCONTROLPOINTSNV)(getProcAddr(\"glGetMapControlPointsNV\"))\n\tgpGetMapParameterfvNV = (C.GPGETMAPPARAMETERFVNV)(getProcAddr(\"glGetMapParameterfvNV\"))\n\tgpGetMapParameterivNV = (C.GPGETMAPPARAMETERIVNV)(getProcAddr(\"glGetMapParameterivNV\"))\n\tgpGetMapdv = (C.GPGETMAPDV)(getProcAddr(\"glGetMapdv\"))\n\tif gpGetMapdv == nil {\n\t\treturn errors.New(\"glGetMapdv\")\n\t}\n\tgpGetMapfv = (C.GPGETMAPFV)(getProcAddr(\"glGetMapfv\"))\n\tif gpGetMapfv == nil {\n\t\treturn errors.New(\"glGetMapfv\")\n\t}\n\tgpGetMapiv = (C.GPGETMAPIV)(getProcAddr(\"glGetMapiv\"))\n\tif gpGetMapiv == nil {\n\t\treturn errors.New(\"glGetMapiv\")\n\t}\n\tgpGetMapxvOES = (C.GPGETMAPXVOES)(getProcAddr(\"glGetMapxvOES\"))\n\tgpGetMaterialfv = (C.GPGETMATERIALFV)(getProcAddr(\"glGetMaterialfv\"))\n\tif gpGetMaterialfv == nil {\n\t\treturn errors.New(\"glGetMaterialfv\")\n\t}\n\tgpGetMaterialiv = (C.GPGETMATERIALIV)(getProcAddr(\"glGetMaterialiv\"))\n\tif gpGetMaterialiv == nil {\n\t\treturn errors.New(\"glGetMaterialiv\")\n\t}\n\tgpGetMaterialxOES = (C.GPGETMATERIALXOES)(getProcAddr(\"glGetMaterialxOES\"))\n\tgpGetMaterialxvOES = (C.GPGETMATERIALXVOES)(getProcAddr(\"glGetMaterialxvOES\"))\n\tgpGetMemoryObjectDetachedResourcesuivNV = (C.GPGETMEMORYOBJECTDETACHEDRESOURCESUIVNV)(getProcAddr(\"glGetMemoryObjectDetachedResourcesuivNV\"))\n\tgpGetMemoryObjectParameterivEXT = (C.GPGETMEMORYOBJECTPARAMETERIVEXT)(getProcAddr(\"glGetMemoryObjectParameterivEXT\"))\n\tgpGetMinmax = (C.GPGETMINMAX)(getProcAddr(\"glGetMinmax\"))\n\tgpGetMinmaxEXT = (C.GPGETMINMAXEXT)(getProcAddr(\"glGetMinmaxEXT\"))\n\tgpGetMinmaxParameterfv = (C.GPGETMINMAXPARAMETERFV)(getProcAddr(\"glGetMinmaxParameterfv\"))\n\tgpGetMinmaxParameterfvEXT = (C.GPGETMINMAXPARAMETERFVEXT)(getProcAddr(\"glGetMinmaxParameterfvEXT\"))\n\tgpGetMinmaxParameteriv = (C.GPGETMINMAXPARAMETERIV)(getProcAddr(\"glGetMinmaxParameteriv\"))\n\tgpGetMinmaxParameterivEXT = (C.GPGETMINMAXPARAMETERIVEXT)(getProcAddr(\"glGetMinmaxParameterivEXT\"))\n\tgpGetMultiTexEnvfvEXT = (C.GPGETMULTITEXENVFVEXT)(getProcAddr(\"glGetMultiTexEnvfvEXT\"))\n\tgpGetMultiTexEnvivEXT = (C.GPGETMULTITEXENVIVEXT)(getProcAddr(\"glGetMultiTexEnvivEXT\"))\n\tgpGetMultiTexGendvEXT = (C.GPGETMULTITEXGENDVEXT)(getProcAddr(\"glGetMultiTexGendvEXT\"))\n\tgpGetMultiTexGenfvEXT = (C.GPGETMULTITEXGENFVEXT)(getProcAddr(\"glGetMultiTexGenfvEXT\"))\n\tgpGetMultiTexGenivEXT = (C.GPGETMULTITEXGENIVEXT)(getProcAddr(\"glGetMultiTexGenivEXT\"))\n\tgpGetMultiTexImageEXT = (C.GPGETMULTITEXIMAGEEXT)(getProcAddr(\"glGetMultiTexImageEXT\"))\n\tgpGetMultiTexLevelParameterfvEXT = (C.GPGETMULTITEXLEVELPARAMETERFVEXT)(getProcAddr(\"glGetMultiTexLevelParameterfvEXT\"))\n\tgpGetMultiTexLevelParameterivEXT = (C.GPGETMULTITEXLEVELPARAMETERIVEXT)(getProcAddr(\"glGetMultiTexLevelParameterivEXT\"))\n\tgpGetMultiTexParameterIivEXT = (C.GPGETMULTITEXPARAMETERIIVEXT)(getProcAddr(\"glGetMultiTexParameterIivEXT\"))\n\tgpGetMultiTexParameterIuivEXT = (C.GPGETMULTITEXPARAMETERIUIVEXT)(getProcAddr(\"glGetMultiTexParameterIuivEXT\"))\n\tgpGetMultiTexParameterfvEXT = (C.GPGETMULTITEXPARAMETERFVEXT)(getProcAddr(\"glGetMultiTexParameterfvEXT\"))\n\tgpGetMultiTexParameterivEXT = (C.GPGETMULTITEXPARAMETERIVEXT)(getProcAddr(\"glGetMultiTexParameterivEXT\"))\n\tgpGetMultisamplefv = (C.GPGETMULTISAMPLEFV)(getProcAddr(\"glGetMultisamplefv\"))\n\tif gpGetMultisamplefv == nil {\n\t\treturn errors.New(\"glGetMultisamplefv\")\n\t}\n\tgpGetMultisamplefvNV = (C.GPGETMULTISAMPLEFVNV)(getProcAddr(\"glGetMultisamplefvNV\"))\n\tgpGetNamedBufferParameteri64v = (C.GPGETNAMEDBUFFERPARAMETERI64V)(getProcAddr(\"glGetNamedBufferParameteri64v\"))\n\tgpGetNamedBufferParameteriv = (C.GPGETNAMEDBUFFERPARAMETERIV)(getProcAddr(\"glGetNamedBufferParameteriv\"))\n\tgpGetNamedBufferParameterivEXT = (C.GPGETNAMEDBUFFERPARAMETERIVEXT)(getProcAddr(\"glGetNamedBufferParameterivEXT\"))\n\tgpGetNamedBufferParameterui64vNV = (C.GPGETNAMEDBUFFERPARAMETERUI64VNV)(getProcAddr(\"glGetNamedBufferParameterui64vNV\"))\n\tgpGetNamedBufferPointerv = (C.GPGETNAMEDBUFFERPOINTERV)(getProcAddr(\"glGetNamedBufferPointerv\"))\n\tgpGetNamedBufferPointervEXT = (C.GPGETNAMEDBUFFERPOINTERVEXT)(getProcAddr(\"glGetNamedBufferPointervEXT\"))\n\tgpGetNamedBufferSubData = (C.GPGETNAMEDBUFFERSUBDATA)(getProcAddr(\"glGetNamedBufferSubData\"))\n\tgpGetNamedBufferSubDataEXT = (C.GPGETNAMEDBUFFERSUBDATAEXT)(getProcAddr(\"glGetNamedBufferSubDataEXT\"))\n\tgpGetNamedFramebufferAttachmentParameteriv = (C.GPGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIV)(getProcAddr(\"glGetNamedFramebufferAttachmentParameteriv\"))\n\tgpGetNamedFramebufferAttachmentParameterivEXT = (C.GPGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXT)(getProcAddr(\"glGetNamedFramebufferAttachmentParameterivEXT\"))\n\tgpGetNamedFramebufferParameterfvAMD = (C.GPGETNAMEDFRAMEBUFFERPARAMETERFVAMD)(getProcAddr(\"glGetNamedFramebufferParameterfvAMD\"))\n\tgpGetNamedFramebufferParameteriv = (C.GPGETNAMEDFRAMEBUFFERPARAMETERIV)(getProcAddr(\"glGetNamedFramebufferParameteriv\"))\n\tgpGetNamedFramebufferParameterivEXT = (C.GPGETNAMEDFRAMEBUFFERPARAMETERIVEXT)(getProcAddr(\"glGetNamedFramebufferParameterivEXT\"))\n\tgpGetNamedProgramLocalParameterIivEXT = (C.GPGETNAMEDPROGRAMLOCALPARAMETERIIVEXT)(getProcAddr(\"glGetNamedProgramLocalParameterIivEXT\"))\n\tgpGetNamedProgramLocalParameterIuivEXT = (C.GPGETNAMEDPROGRAMLOCALPARAMETERIUIVEXT)(getProcAddr(\"glGetNamedProgramLocalParameterIuivEXT\"))\n\tgpGetNamedProgramLocalParameterdvEXT = (C.GPGETNAMEDPROGRAMLOCALPARAMETERDVEXT)(getProcAddr(\"glGetNamedProgramLocalParameterdvEXT\"))\n\tgpGetNamedProgramLocalParameterfvEXT = (C.GPGETNAMEDPROGRAMLOCALPARAMETERFVEXT)(getProcAddr(\"glGetNamedProgramLocalParameterfvEXT\"))\n\tgpGetNamedProgramStringEXT = (C.GPGETNAMEDPROGRAMSTRINGEXT)(getProcAddr(\"glGetNamedProgramStringEXT\"))\n\tgpGetNamedProgramivEXT = (C.GPGETNAMEDPROGRAMIVEXT)(getProcAddr(\"glGetNamedProgramivEXT\"))\n\tgpGetNamedRenderbufferParameteriv = (C.GPGETNAMEDRENDERBUFFERPARAMETERIV)(getProcAddr(\"glGetNamedRenderbufferParameteriv\"))\n\tgpGetNamedRenderbufferParameterivEXT = (C.GPGETNAMEDRENDERBUFFERPARAMETERIVEXT)(getProcAddr(\"glGetNamedRenderbufferParameterivEXT\"))\n\tgpGetNamedStringARB = (C.GPGETNAMEDSTRINGARB)(getProcAddr(\"glGetNamedStringARB\"))\n\tgpGetNamedStringivARB = (C.GPGETNAMEDSTRINGIVARB)(getProcAddr(\"glGetNamedStringivARB\"))\n\tgpGetNextPerfQueryIdINTEL = (C.GPGETNEXTPERFQUERYIDINTEL)(getProcAddr(\"glGetNextPerfQueryIdINTEL\"))\n\tgpGetObjectBufferfvATI = (C.GPGETOBJECTBUFFERFVATI)(getProcAddr(\"glGetObjectBufferfvATI\"))\n\tgpGetObjectBufferivATI = (C.GPGETOBJECTBUFFERIVATI)(getProcAddr(\"glGetObjectBufferivATI\"))\n\tgpGetObjectLabel = (C.GPGETOBJECTLABEL)(getProcAddr(\"glGetObjectLabel\"))\n\tif gpGetObjectLabel == nil {\n\t\treturn errors.New(\"glGetObjectLabel\")\n\t}\n\tgpGetObjectLabelEXT = (C.GPGETOBJECTLABELEXT)(getProcAddr(\"glGetObjectLabelEXT\"))\n\tgpGetObjectLabelKHR = (C.GPGETOBJECTLABELKHR)(getProcAddr(\"glGetObjectLabelKHR\"))\n\tgpGetObjectParameterfvARB = (C.GPGETOBJECTPARAMETERFVARB)(getProcAddr(\"glGetObjectParameterfvARB\"))\n\tgpGetObjectParameterivAPPLE = (C.GPGETOBJECTPARAMETERIVAPPLE)(getProcAddr(\"glGetObjectParameterivAPPLE\"))\n\tgpGetObjectParameterivARB = (C.GPGETOBJECTPARAMETERIVARB)(getProcAddr(\"glGetObjectParameterivARB\"))\n\tgpGetObjectPtrLabel = (C.GPGETOBJECTPTRLABEL)(getProcAddr(\"glGetObjectPtrLabel\"))\n\tif gpGetObjectPtrLabel == nil {\n\t\treturn errors.New(\"glGetObjectPtrLabel\")\n\t}\n\tgpGetObjectPtrLabelKHR = (C.GPGETOBJECTPTRLABELKHR)(getProcAddr(\"glGetObjectPtrLabelKHR\"))\n\tgpGetOcclusionQueryivNV = (C.GPGETOCCLUSIONQUERYIVNV)(getProcAddr(\"glGetOcclusionQueryivNV\"))\n\tgpGetOcclusionQueryuivNV = (C.GPGETOCCLUSIONQUERYUIVNV)(getProcAddr(\"glGetOcclusionQueryuivNV\"))\n\tgpGetPathColorGenfvNV = (C.GPGETPATHCOLORGENFVNV)(getProcAddr(\"glGetPathColorGenfvNV\"))\n\tgpGetPathColorGenivNV = (C.GPGETPATHCOLORGENIVNV)(getProcAddr(\"glGetPathColorGenivNV\"))\n\tgpGetPathCommandsNV = (C.GPGETPATHCOMMANDSNV)(getProcAddr(\"glGetPathCommandsNV\"))\n\tgpGetPathCoordsNV = (C.GPGETPATHCOORDSNV)(getProcAddr(\"glGetPathCoordsNV\"))\n\tgpGetPathDashArrayNV = (C.GPGETPATHDASHARRAYNV)(getProcAddr(\"glGetPathDashArrayNV\"))\n\tgpGetPathLengthNV = (C.GPGETPATHLENGTHNV)(getProcAddr(\"glGetPathLengthNV\"))\n\tgpGetPathMetricRangeNV = (C.GPGETPATHMETRICRANGENV)(getProcAddr(\"glGetPathMetricRangeNV\"))\n\tgpGetPathMetricsNV = (C.GPGETPATHMETRICSNV)(getProcAddr(\"glGetPathMetricsNV\"))\n\tgpGetPathParameterfvNV = (C.GPGETPATHPARAMETERFVNV)(getProcAddr(\"glGetPathParameterfvNV\"))\n\tgpGetPathParameterivNV = (C.GPGETPATHPARAMETERIVNV)(getProcAddr(\"glGetPathParameterivNV\"))\n\tgpGetPathSpacingNV = (C.GPGETPATHSPACINGNV)(getProcAddr(\"glGetPathSpacingNV\"))\n\tgpGetPathTexGenfvNV = (C.GPGETPATHTEXGENFVNV)(getProcAddr(\"glGetPathTexGenfvNV\"))\n\tgpGetPathTexGenivNV = (C.GPGETPATHTEXGENIVNV)(getProcAddr(\"glGetPathTexGenivNV\"))\n\tgpGetPerfCounterInfoINTEL = (C.GPGETPERFCOUNTERINFOINTEL)(getProcAddr(\"glGetPerfCounterInfoINTEL\"))\n\tgpGetPerfMonitorCounterDataAMD = (C.GPGETPERFMONITORCOUNTERDATAAMD)(getProcAddr(\"glGetPerfMonitorCounterDataAMD\"))\n\tgpGetPerfMonitorCounterInfoAMD = (C.GPGETPERFMONITORCOUNTERINFOAMD)(getProcAddr(\"glGetPerfMonitorCounterInfoAMD\"))\n\tgpGetPerfMonitorCounterStringAMD = (C.GPGETPERFMONITORCOUNTERSTRINGAMD)(getProcAddr(\"glGetPerfMonitorCounterStringAMD\"))\n\tgpGetPerfMonitorCountersAMD = (C.GPGETPERFMONITORCOUNTERSAMD)(getProcAddr(\"glGetPerfMonitorCountersAMD\"))\n\tgpGetPerfMonitorGroupStringAMD = (C.GPGETPERFMONITORGROUPSTRINGAMD)(getProcAddr(\"glGetPerfMonitorGroupStringAMD\"))\n\tgpGetPerfMonitorGroupsAMD = (C.GPGETPERFMONITORGROUPSAMD)(getProcAddr(\"glGetPerfMonitorGroupsAMD\"))\n\tgpGetPerfQueryDataINTEL = (C.GPGETPERFQUERYDATAINTEL)(getProcAddr(\"glGetPerfQueryDataINTEL\"))\n\tgpGetPerfQueryIdByNameINTEL = (C.GPGETPERFQUERYIDBYNAMEINTEL)(getProcAddr(\"glGetPerfQueryIdByNameINTEL\"))\n\tgpGetPerfQueryInfoINTEL = (C.GPGETPERFQUERYINFOINTEL)(getProcAddr(\"glGetPerfQueryInfoINTEL\"))\n\tgpGetPixelMapfv = (C.GPGETPIXELMAPFV)(getProcAddr(\"glGetPixelMapfv\"))\n\tif gpGetPixelMapfv == nil {\n\t\treturn errors.New(\"glGetPixelMapfv\")\n\t}\n\tgpGetPixelMapuiv = (C.GPGETPIXELMAPUIV)(getProcAddr(\"glGetPixelMapuiv\"))\n\tif gpGetPixelMapuiv == nil {\n\t\treturn errors.New(\"glGetPixelMapuiv\")\n\t}\n\tgpGetPixelMapusv = (C.GPGETPIXELMAPUSV)(getProcAddr(\"glGetPixelMapusv\"))\n\tif gpGetPixelMapusv == nil {\n\t\treturn errors.New(\"glGetPixelMapusv\")\n\t}\n\tgpGetPixelMapxv = (C.GPGETPIXELMAPXV)(getProcAddr(\"glGetPixelMapxv\"))\n\tgpGetPixelTexGenParameterfvSGIS = (C.GPGETPIXELTEXGENPARAMETERFVSGIS)(getProcAddr(\"glGetPixelTexGenParameterfvSGIS\"))\n\tgpGetPixelTexGenParameterivSGIS = (C.GPGETPIXELTEXGENPARAMETERIVSGIS)(getProcAddr(\"glGetPixelTexGenParameterivSGIS\"))\n\tgpGetPixelTransformParameterfvEXT = (C.GPGETPIXELTRANSFORMPARAMETERFVEXT)(getProcAddr(\"glGetPixelTransformParameterfvEXT\"))\n\tgpGetPixelTransformParameterivEXT = (C.GPGETPIXELTRANSFORMPARAMETERIVEXT)(getProcAddr(\"glGetPixelTransformParameterivEXT\"))\n\tgpGetPointerIndexedvEXT = (C.GPGETPOINTERINDEXEDVEXT)(getProcAddr(\"glGetPointerIndexedvEXT\"))\n\tgpGetPointeri_vEXT = (C.GPGETPOINTERI_VEXT)(getProcAddr(\"glGetPointeri_vEXT\"))\n\tgpGetPointerv = (C.GPGETPOINTERV)(getProcAddr(\"glGetPointerv\"))\n\tif gpGetPointerv == nil {\n\t\treturn errors.New(\"glGetPointerv\")\n\t}\n\tgpGetPointervEXT = (C.GPGETPOINTERVEXT)(getProcAddr(\"glGetPointervEXT\"))\n\tgpGetPointervKHR = (C.GPGETPOINTERVKHR)(getProcAddr(\"glGetPointervKHR\"))\n\tgpGetPolygonStipple = (C.GPGETPOLYGONSTIPPLE)(getProcAddr(\"glGetPolygonStipple\"))\n\tif gpGetPolygonStipple == nil {\n\t\treturn errors.New(\"glGetPolygonStipple\")\n\t}\n\tgpGetProgramBinary = (C.GPGETPROGRAMBINARY)(getProcAddr(\"glGetProgramBinary\"))\n\tif gpGetProgramBinary == nil {\n\t\treturn errors.New(\"glGetProgramBinary\")\n\t}\n\tgpGetProgramEnvParameterIivNV = (C.GPGETPROGRAMENVPARAMETERIIVNV)(getProcAddr(\"glGetProgramEnvParameterIivNV\"))\n\tgpGetProgramEnvParameterIuivNV = (C.GPGETPROGRAMENVPARAMETERIUIVNV)(getProcAddr(\"glGetProgramEnvParameterIuivNV\"))\n\tgpGetProgramEnvParameterdvARB = (C.GPGETPROGRAMENVPARAMETERDVARB)(getProcAddr(\"glGetProgramEnvParameterdvARB\"))\n\tgpGetProgramEnvParameterfvARB = (C.GPGETPROGRAMENVPARAMETERFVARB)(getProcAddr(\"glGetProgramEnvParameterfvARB\"))\n\tgpGetProgramInfoLog = (C.GPGETPROGRAMINFOLOG)(getProcAddr(\"glGetProgramInfoLog\"))\n\tif gpGetProgramInfoLog == nil {\n\t\treturn errors.New(\"glGetProgramInfoLog\")\n\t}\n\tgpGetProgramInterfaceiv = (C.GPGETPROGRAMINTERFACEIV)(getProcAddr(\"glGetProgramInterfaceiv\"))\n\tif gpGetProgramInterfaceiv == nil {\n\t\treturn errors.New(\"glGetProgramInterfaceiv\")\n\t}\n\tgpGetProgramLocalParameterIivNV = (C.GPGETPROGRAMLOCALPARAMETERIIVNV)(getProcAddr(\"glGetProgramLocalParameterIivNV\"))\n\tgpGetProgramLocalParameterIuivNV = (C.GPGETPROGRAMLOCALPARAMETERIUIVNV)(getProcAddr(\"glGetProgramLocalParameterIuivNV\"))\n\tgpGetProgramLocalParameterdvARB = (C.GPGETPROGRAMLOCALPARAMETERDVARB)(getProcAddr(\"glGetProgramLocalParameterdvARB\"))\n\tgpGetProgramLocalParameterfvARB = (C.GPGETPROGRAMLOCALPARAMETERFVARB)(getProcAddr(\"glGetProgramLocalParameterfvARB\"))\n\tgpGetProgramNamedParameterdvNV = (C.GPGETPROGRAMNAMEDPARAMETERDVNV)(getProcAddr(\"glGetProgramNamedParameterdvNV\"))\n\tgpGetProgramNamedParameterfvNV = (C.GPGETPROGRAMNAMEDPARAMETERFVNV)(getProcAddr(\"glGetProgramNamedParameterfvNV\"))\n\tgpGetProgramParameterdvNV = (C.GPGETPROGRAMPARAMETERDVNV)(getProcAddr(\"glGetProgramParameterdvNV\"))\n\tgpGetProgramParameterfvNV = (C.GPGETPROGRAMPARAMETERFVNV)(getProcAddr(\"glGetProgramParameterfvNV\"))\n\tgpGetProgramPipelineInfoLog = (C.GPGETPROGRAMPIPELINEINFOLOG)(getProcAddr(\"glGetProgramPipelineInfoLog\"))\n\tif gpGetProgramPipelineInfoLog == nil {\n\t\treturn errors.New(\"glGetProgramPipelineInfoLog\")\n\t}\n\tgpGetProgramPipelineInfoLogEXT = (C.GPGETPROGRAMPIPELINEINFOLOGEXT)(getProcAddr(\"glGetProgramPipelineInfoLogEXT\"))\n\tgpGetProgramPipelineiv = (C.GPGETPROGRAMPIPELINEIV)(getProcAddr(\"glGetProgramPipelineiv\"))\n\tif gpGetProgramPipelineiv == nil {\n\t\treturn errors.New(\"glGetProgramPipelineiv\")\n\t}\n\tgpGetProgramPipelineivEXT = (C.GPGETPROGRAMPIPELINEIVEXT)(getProcAddr(\"glGetProgramPipelineivEXT\"))\n\tgpGetProgramResourceIndex = (C.GPGETPROGRAMRESOURCEINDEX)(getProcAddr(\"glGetProgramResourceIndex\"))\n\tif gpGetProgramResourceIndex == nil {\n\t\treturn errors.New(\"glGetProgramResourceIndex\")\n\t}\n\tgpGetProgramResourceLocation = (C.GPGETPROGRAMRESOURCELOCATION)(getProcAddr(\"glGetProgramResourceLocation\"))\n\tif gpGetProgramResourceLocation == nil {\n\t\treturn errors.New(\"glGetProgramResourceLocation\")\n\t}\n\tgpGetProgramResourceLocationIndex = (C.GPGETPROGRAMRESOURCELOCATIONINDEX)(getProcAddr(\"glGetProgramResourceLocationIndex\"))\n\tif gpGetProgramResourceLocationIndex == nil {\n\t\treturn errors.New(\"glGetProgramResourceLocationIndex\")\n\t}\n\tgpGetProgramResourceName = (C.GPGETPROGRAMRESOURCENAME)(getProcAddr(\"glGetProgramResourceName\"))\n\tif gpGetProgramResourceName == nil {\n\t\treturn errors.New(\"glGetProgramResourceName\")\n\t}\n\tgpGetProgramResourcefvNV = (C.GPGETPROGRAMRESOURCEFVNV)(getProcAddr(\"glGetProgramResourcefvNV\"))\n\tgpGetProgramResourceiv = (C.GPGETPROGRAMRESOURCEIV)(getProcAddr(\"glGetProgramResourceiv\"))\n\tif gpGetProgramResourceiv == nil {\n\t\treturn errors.New(\"glGetProgramResourceiv\")\n\t}\n\tgpGetProgramStageiv = (C.GPGETPROGRAMSTAGEIV)(getProcAddr(\"glGetProgramStageiv\"))\n\tif gpGetProgramStageiv == nil {\n\t\treturn errors.New(\"glGetProgramStageiv\")\n\t}\n\tgpGetProgramStringARB = (C.GPGETPROGRAMSTRINGARB)(getProcAddr(\"glGetProgramStringARB\"))\n\tgpGetProgramStringNV = (C.GPGETPROGRAMSTRINGNV)(getProcAddr(\"glGetProgramStringNV\"))\n\tgpGetProgramSubroutineParameteruivNV = (C.GPGETPROGRAMSUBROUTINEPARAMETERUIVNV)(getProcAddr(\"glGetProgramSubroutineParameteruivNV\"))\n\tgpGetProgramiv = (C.GPGETPROGRAMIV)(getProcAddr(\"glGetProgramiv\"))\n\tif gpGetProgramiv == nil {\n\t\treturn errors.New(\"glGetProgramiv\")\n\t}\n\tgpGetProgramivARB = (C.GPGETPROGRAMIVARB)(getProcAddr(\"glGetProgramivARB\"))\n\tgpGetProgramivNV = (C.GPGETPROGRAMIVNV)(getProcAddr(\"glGetProgramivNV\"))\n\tgpGetQueryBufferObjecti64v = (C.GPGETQUERYBUFFEROBJECTI64V)(getProcAddr(\"glGetQueryBufferObjecti64v\"))\n\tgpGetQueryBufferObjectiv = (C.GPGETQUERYBUFFEROBJECTIV)(getProcAddr(\"glGetQueryBufferObjectiv\"))\n\tgpGetQueryBufferObjectui64v = (C.GPGETQUERYBUFFEROBJECTUI64V)(getProcAddr(\"glGetQueryBufferObjectui64v\"))\n\tgpGetQueryBufferObjectuiv = (C.GPGETQUERYBUFFEROBJECTUIV)(getProcAddr(\"glGetQueryBufferObjectuiv\"))\n\tgpGetQueryIndexediv = (C.GPGETQUERYINDEXEDIV)(getProcAddr(\"glGetQueryIndexediv\"))\n\tif gpGetQueryIndexediv == nil {\n\t\treturn errors.New(\"glGetQueryIndexediv\")\n\t}\n\tgpGetQueryObjecti64v = (C.GPGETQUERYOBJECTI64V)(getProcAddr(\"glGetQueryObjecti64v\"))\n\tif gpGetQueryObjecti64v == nil {\n\t\treturn errors.New(\"glGetQueryObjecti64v\")\n\t}\n\tgpGetQueryObjecti64vEXT = (C.GPGETQUERYOBJECTI64VEXT)(getProcAddr(\"glGetQueryObjecti64vEXT\"))\n\tgpGetQueryObjectiv = (C.GPGETQUERYOBJECTIV)(getProcAddr(\"glGetQueryObjectiv\"))\n\tif gpGetQueryObjectiv == nil {\n\t\treturn errors.New(\"glGetQueryObjectiv\")\n\t}\n\tgpGetQueryObjectivARB = (C.GPGETQUERYOBJECTIVARB)(getProcAddr(\"glGetQueryObjectivARB\"))\n\tgpGetQueryObjectui64v = (C.GPGETQUERYOBJECTUI64V)(getProcAddr(\"glGetQueryObjectui64v\"))\n\tif gpGetQueryObjectui64v == nil {\n\t\treturn errors.New(\"glGetQueryObjectui64v\")\n\t}\n\tgpGetQueryObjectui64vEXT = (C.GPGETQUERYOBJECTUI64VEXT)(getProcAddr(\"glGetQueryObjectui64vEXT\"))\n\tgpGetQueryObjectuiv = (C.GPGETQUERYOBJECTUIV)(getProcAddr(\"glGetQueryObjectuiv\"))\n\tif gpGetQueryObjectuiv == nil {\n\t\treturn errors.New(\"glGetQueryObjectuiv\")\n\t}\n\tgpGetQueryObjectuivARB = (C.GPGETQUERYOBJECTUIVARB)(getProcAddr(\"glGetQueryObjectuivARB\"))\n\tgpGetQueryiv = (C.GPGETQUERYIV)(getProcAddr(\"glGetQueryiv\"))\n\tif gpGetQueryiv == nil {\n\t\treturn errors.New(\"glGetQueryiv\")\n\t}\n\tgpGetQueryivARB = (C.GPGETQUERYIVARB)(getProcAddr(\"glGetQueryivARB\"))\n\tgpGetRenderbufferParameteriv = (C.GPGETRENDERBUFFERPARAMETERIV)(getProcAddr(\"glGetRenderbufferParameteriv\"))\n\tif gpGetRenderbufferParameteriv == nil {\n\t\treturn errors.New(\"glGetRenderbufferParameteriv\")\n\t}\n\tgpGetRenderbufferParameterivEXT = (C.GPGETRENDERBUFFERPARAMETERIVEXT)(getProcAddr(\"glGetRenderbufferParameterivEXT\"))\n\tgpGetSamplerParameterIiv = (C.GPGETSAMPLERPARAMETERIIV)(getProcAddr(\"glGetSamplerParameterIiv\"))\n\tif gpGetSamplerParameterIiv == nil {\n\t\treturn errors.New(\"glGetSamplerParameterIiv\")\n\t}\n\tgpGetSamplerParameterIuiv = (C.GPGETSAMPLERPARAMETERIUIV)(getProcAddr(\"glGetSamplerParameterIuiv\"))\n\tif gpGetSamplerParameterIuiv == nil {\n\t\treturn errors.New(\"glGetSamplerParameterIuiv\")\n\t}\n\tgpGetSamplerParameterfv = (C.GPGETSAMPLERPARAMETERFV)(getProcAddr(\"glGetSamplerParameterfv\"))\n\tif gpGetSamplerParameterfv == nil {\n\t\treturn errors.New(\"glGetSamplerParameterfv\")\n\t}\n\tgpGetSamplerParameteriv = (C.GPGETSAMPLERPARAMETERIV)(getProcAddr(\"glGetSamplerParameteriv\"))\n\tif gpGetSamplerParameteriv == nil {\n\t\treturn errors.New(\"glGetSamplerParameteriv\")\n\t}\n\tgpGetSemaphoreParameterivNV = (C.GPGETSEMAPHOREPARAMETERIVNV)(getProcAddr(\"glGetSemaphoreParameterivNV\"))\n\tgpGetSemaphoreParameterui64vEXT = (C.GPGETSEMAPHOREPARAMETERUI64VEXT)(getProcAddr(\"glGetSemaphoreParameterui64vEXT\"))\n\tgpGetSeparableFilter = (C.GPGETSEPARABLEFILTER)(getProcAddr(\"glGetSeparableFilter\"))\n\tgpGetSeparableFilterEXT = (C.GPGETSEPARABLEFILTEREXT)(getProcAddr(\"glGetSeparableFilterEXT\"))\n\tgpGetShaderInfoLog = (C.GPGETSHADERINFOLOG)(getProcAddr(\"glGetShaderInfoLog\"))\n\tif gpGetShaderInfoLog == nil {\n\t\treturn errors.New(\"glGetShaderInfoLog\")\n\t}\n\tgpGetShaderPrecisionFormat = (C.GPGETSHADERPRECISIONFORMAT)(getProcAddr(\"glGetShaderPrecisionFormat\"))\n\tif gpGetShaderPrecisionFormat == nil {\n\t\treturn errors.New(\"glGetShaderPrecisionFormat\")\n\t}\n\tgpGetShaderSource = (C.GPGETSHADERSOURCE)(getProcAddr(\"glGetShaderSource\"))\n\tif gpGetShaderSource == nil {\n\t\treturn errors.New(\"glGetShaderSource\")\n\t}\n\tgpGetShaderSourceARB = (C.GPGETSHADERSOURCEARB)(getProcAddr(\"glGetShaderSourceARB\"))\n\tgpGetShaderiv = (C.GPGETSHADERIV)(getProcAddr(\"glGetShaderiv\"))\n\tif gpGetShaderiv == nil {\n\t\treturn errors.New(\"glGetShaderiv\")\n\t}\n\tgpGetShadingRateImagePaletteNV = (C.GPGETSHADINGRATEIMAGEPALETTENV)(getProcAddr(\"glGetShadingRateImagePaletteNV\"))\n\tgpGetShadingRateSampleLocationivNV = (C.GPGETSHADINGRATESAMPLELOCATIONIVNV)(getProcAddr(\"glGetShadingRateSampleLocationivNV\"))\n\tgpGetSharpenTexFuncSGIS = (C.GPGETSHARPENTEXFUNCSGIS)(getProcAddr(\"glGetSharpenTexFuncSGIS\"))\n\tgpGetStageIndexNV = (C.GPGETSTAGEINDEXNV)(getProcAddr(\"glGetStageIndexNV\"))\n\tgpGetString = (C.GPGETSTRING)(getProcAddr(\"glGetString\"))\n\tif gpGetString == nil {\n\t\treturn errors.New(\"glGetString\")\n\t}\n\tgpGetStringi = (C.GPGETSTRINGI)(getProcAddr(\"glGetStringi\"))\n\tif gpGetStringi == nil {\n\t\treturn errors.New(\"glGetStringi\")\n\t}\n\tgpGetSubroutineIndex = (C.GPGETSUBROUTINEINDEX)(getProcAddr(\"glGetSubroutineIndex\"))\n\tif gpGetSubroutineIndex == nil {\n\t\treturn errors.New(\"glGetSubroutineIndex\")\n\t}\n\tgpGetSubroutineUniformLocation = (C.GPGETSUBROUTINEUNIFORMLOCATION)(getProcAddr(\"glGetSubroutineUniformLocation\"))\n\tif gpGetSubroutineUniformLocation == nil {\n\t\treturn errors.New(\"glGetSubroutineUniformLocation\")\n\t}\n\tgpGetSynciv = (C.GPGETSYNCIV)(getProcAddr(\"glGetSynciv\"))\n\tif gpGetSynciv == nil {\n\t\treturn errors.New(\"glGetSynciv\")\n\t}\n\tgpGetTexBumpParameterfvATI = (C.GPGETTEXBUMPPARAMETERFVATI)(getProcAddr(\"glGetTexBumpParameterfvATI\"))\n\tgpGetTexBumpParameterivATI = (C.GPGETTEXBUMPPARAMETERIVATI)(getProcAddr(\"glGetTexBumpParameterivATI\"))\n\tgpGetTexEnvfv = (C.GPGETTEXENVFV)(getProcAddr(\"glGetTexEnvfv\"))\n\tif gpGetTexEnvfv == nil {\n\t\treturn errors.New(\"glGetTexEnvfv\")\n\t}\n\tgpGetTexEnviv = (C.GPGETTEXENVIV)(getProcAddr(\"glGetTexEnviv\"))\n\tif gpGetTexEnviv == nil {\n\t\treturn errors.New(\"glGetTexEnviv\")\n\t}\n\tgpGetTexEnvxvOES = (C.GPGETTEXENVXVOES)(getProcAddr(\"glGetTexEnvxvOES\"))\n\tgpGetTexFilterFuncSGIS = (C.GPGETTEXFILTERFUNCSGIS)(getProcAddr(\"glGetTexFilterFuncSGIS\"))\n\tgpGetTexGendv = (C.GPGETTEXGENDV)(getProcAddr(\"glGetTexGendv\"))\n\tif gpGetTexGendv == nil {\n\t\treturn errors.New(\"glGetTexGendv\")\n\t}\n\tgpGetTexGenfv = (C.GPGETTEXGENFV)(getProcAddr(\"glGetTexGenfv\"))\n\tif gpGetTexGenfv == nil {\n\t\treturn errors.New(\"glGetTexGenfv\")\n\t}\n\tgpGetTexGeniv = (C.GPGETTEXGENIV)(getProcAddr(\"glGetTexGeniv\"))\n\tif gpGetTexGeniv == nil {\n\t\treturn errors.New(\"glGetTexGeniv\")\n\t}\n\tgpGetTexGenxvOES = (C.GPGETTEXGENXVOES)(getProcAddr(\"glGetTexGenxvOES\"))\n\tgpGetTexImage = (C.GPGETTEXIMAGE)(getProcAddr(\"glGetTexImage\"))\n\tif gpGetTexImage == nil {\n\t\treturn errors.New(\"glGetTexImage\")\n\t}\n\tgpGetTexLevelParameterfv = (C.GPGETTEXLEVELPARAMETERFV)(getProcAddr(\"glGetTexLevelParameterfv\"))\n\tif gpGetTexLevelParameterfv == nil {\n\t\treturn errors.New(\"glGetTexLevelParameterfv\")\n\t}\n\tgpGetTexLevelParameteriv = (C.GPGETTEXLEVELPARAMETERIV)(getProcAddr(\"glGetTexLevelParameteriv\"))\n\tif gpGetTexLevelParameteriv == nil {\n\t\treturn errors.New(\"glGetTexLevelParameteriv\")\n\t}\n\tgpGetTexLevelParameterxvOES = (C.GPGETTEXLEVELPARAMETERXVOES)(getProcAddr(\"glGetTexLevelParameterxvOES\"))\n\tgpGetTexParameterIiv = (C.GPGETTEXPARAMETERIIV)(getProcAddr(\"glGetTexParameterIiv\"))\n\tif gpGetTexParameterIiv == nil {\n\t\treturn errors.New(\"glGetTexParameterIiv\")\n\t}\n\tgpGetTexParameterIivEXT = (C.GPGETTEXPARAMETERIIVEXT)(getProcAddr(\"glGetTexParameterIivEXT\"))\n\tgpGetTexParameterIuiv = (C.GPGETTEXPARAMETERIUIV)(getProcAddr(\"glGetTexParameterIuiv\"))\n\tif gpGetTexParameterIuiv == nil {\n\t\treturn errors.New(\"glGetTexParameterIuiv\")\n\t}\n\tgpGetTexParameterIuivEXT = (C.GPGETTEXPARAMETERIUIVEXT)(getProcAddr(\"glGetTexParameterIuivEXT\"))\n\tgpGetTexParameterPointervAPPLE = (C.GPGETTEXPARAMETERPOINTERVAPPLE)(getProcAddr(\"glGetTexParameterPointervAPPLE\"))\n\tgpGetTexParameterfv = (C.GPGETTEXPARAMETERFV)(getProcAddr(\"glGetTexParameterfv\"))\n\tif gpGetTexParameterfv == nil {\n\t\treturn errors.New(\"glGetTexParameterfv\")\n\t}\n\tgpGetTexParameteriv = (C.GPGETTEXPARAMETERIV)(getProcAddr(\"glGetTexParameteriv\"))\n\tif gpGetTexParameteriv == nil {\n\t\treturn errors.New(\"glGetTexParameteriv\")\n\t}\n\tgpGetTexParameterxvOES = (C.GPGETTEXPARAMETERXVOES)(getProcAddr(\"glGetTexParameterxvOES\"))\n\tgpGetTextureHandleARB = (C.GPGETTEXTUREHANDLEARB)(getProcAddr(\"glGetTextureHandleARB\"))\n\tgpGetTextureHandleNV = (C.GPGETTEXTUREHANDLENV)(getProcAddr(\"glGetTextureHandleNV\"))\n\tgpGetTextureImage = (C.GPGETTEXTUREIMAGE)(getProcAddr(\"glGetTextureImage\"))\n\tgpGetTextureImageEXT = (C.GPGETTEXTUREIMAGEEXT)(getProcAddr(\"glGetTextureImageEXT\"))\n\tgpGetTextureLevelParameterfv = (C.GPGETTEXTURELEVELPARAMETERFV)(getProcAddr(\"glGetTextureLevelParameterfv\"))\n\tgpGetTextureLevelParameterfvEXT = (C.GPGETTEXTURELEVELPARAMETERFVEXT)(getProcAddr(\"glGetTextureLevelParameterfvEXT\"))\n\tgpGetTextureLevelParameteriv = (C.GPGETTEXTURELEVELPARAMETERIV)(getProcAddr(\"glGetTextureLevelParameteriv\"))\n\tgpGetTextureLevelParameterivEXT = (C.GPGETTEXTURELEVELPARAMETERIVEXT)(getProcAddr(\"glGetTextureLevelParameterivEXT\"))\n\tgpGetTextureParameterIiv = (C.GPGETTEXTUREPARAMETERIIV)(getProcAddr(\"glGetTextureParameterIiv\"))\n\tgpGetTextureParameterIivEXT = (C.GPGETTEXTUREPARAMETERIIVEXT)(getProcAddr(\"glGetTextureParameterIivEXT\"))\n\tgpGetTextureParameterIuiv = (C.GPGETTEXTUREPARAMETERIUIV)(getProcAddr(\"glGetTextureParameterIuiv\"))\n\tgpGetTextureParameterIuivEXT = (C.GPGETTEXTUREPARAMETERIUIVEXT)(getProcAddr(\"glGetTextureParameterIuivEXT\"))\n\tgpGetTextureParameterfv = (C.GPGETTEXTUREPARAMETERFV)(getProcAddr(\"glGetTextureParameterfv\"))\n\tgpGetTextureParameterfvEXT = (C.GPGETTEXTUREPARAMETERFVEXT)(getProcAddr(\"glGetTextureParameterfvEXT\"))\n\tgpGetTextureParameteriv = (C.GPGETTEXTUREPARAMETERIV)(getProcAddr(\"glGetTextureParameteriv\"))\n\tgpGetTextureParameterivEXT = (C.GPGETTEXTUREPARAMETERIVEXT)(getProcAddr(\"glGetTextureParameterivEXT\"))\n\tgpGetTextureSamplerHandleARB = (C.GPGETTEXTURESAMPLERHANDLEARB)(getProcAddr(\"glGetTextureSamplerHandleARB\"))\n\tgpGetTextureSamplerHandleNV = (C.GPGETTEXTURESAMPLERHANDLENV)(getProcAddr(\"glGetTextureSamplerHandleNV\"))\n\tgpGetTextureSubImage = (C.GPGETTEXTURESUBIMAGE)(getProcAddr(\"glGetTextureSubImage\"))\n\tgpGetTrackMatrixivNV = (C.GPGETTRACKMATRIXIVNV)(getProcAddr(\"glGetTrackMatrixivNV\"))\n\tgpGetTransformFeedbackVarying = (C.GPGETTRANSFORMFEEDBACKVARYING)(getProcAddr(\"glGetTransformFeedbackVarying\"))\n\tif gpGetTransformFeedbackVarying == nil {\n\t\treturn errors.New(\"glGetTransformFeedbackVarying\")\n\t}\n\tgpGetTransformFeedbackVaryingEXT = (C.GPGETTRANSFORMFEEDBACKVARYINGEXT)(getProcAddr(\"glGetTransformFeedbackVaryingEXT\"))\n\tgpGetTransformFeedbackVaryingNV = (C.GPGETTRANSFORMFEEDBACKVARYINGNV)(getProcAddr(\"glGetTransformFeedbackVaryingNV\"))\n\tgpGetTransformFeedbacki64_v = (C.GPGETTRANSFORMFEEDBACKI64_V)(getProcAddr(\"glGetTransformFeedbacki64_v\"))\n\tgpGetTransformFeedbacki_v = (C.GPGETTRANSFORMFEEDBACKI_V)(getProcAddr(\"glGetTransformFeedbacki_v\"))\n\tgpGetTransformFeedbackiv = (C.GPGETTRANSFORMFEEDBACKIV)(getProcAddr(\"glGetTransformFeedbackiv\"))\n\tgpGetUniformBlockIndex = (C.GPGETUNIFORMBLOCKINDEX)(getProcAddr(\"glGetUniformBlockIndex\"))\n\tif gpGetUniformBlockIndex == nil {\n\t\treturn errors.New(\"glGetUniformBlockIndex\")\n\t}\n\tgpGetUniformBufferSizeEXT = (C.GPGETUNIFORMBUFFERSIZEEXT)(getProcAddr(\"glGetUniformBufferSizeEXT\"))\n\tgpGetUniformIndices = (C.GPGETUNIFORMINDICES)(getProcAddr(\"glGetUniformIndices\"))\n\tif gpGetUniformIndices == nil {\n\t\treturn errors.New(\"glGetUniformIndices\")\n\t}\n\tgpGetUniformLocation = (C.GPGETUNIFORMLOCATION)(getProcAddr(\"glGetUniformLocation\"))\n\tif gpGetUniformLocation == nil {\n\t\treturn errors.New(\"glGetUniformLocation\")\n\t}\n\tgpGetUniformLocationARB = (C.GPGETUNIFORMLOCATIONARB)(getProcAddr(\"glGetUniformLocationARB\"))\n\tgpGetUniformOffsetEXT = (C.GPGETUNIFORMOFFSETEXT)(getProcAddr(\"glGetUniformOffsetEXT\"))\n\tgpGetUniformSubroutineuiv = (C.GPGETUNIFORMSUBROUTINEUIV)(getProcAddr(\"glGetUniformSubroutineuiv\"))\n\tif gpGetUniformSubroutineuiv == nil {\n\t\treturn errors.New(\"glGetUniformSubroutineuiv\")\n\t}\n\tgpGetUniformdv = (C.GPGETUNIFORMDV)(getProcAddr(\"glGetUniformdv\"))\n\tif gpGetUniformdv == nil {\n\t\treturn errors.New(\"glGetUniformdv\")\n\t}\n\tgpGetUniformfv = (C.GPGETUNIFORMFV)(getProcAddr(\"glGetUniformfv\"))\n\tif gpGetUniformfv == nil {\n\t\treturn errors.New(\"glGetUniformfv\")\n\t}\n\tgpGetUniformfvARB = (C.GPGETUNIFORMFVARB)(getProcAddr(\"glGetUniformfvARB\"))\n\tgpGetUniformi64vARB = (C.GPGETUNIFORMI64VARB)(getProcAddr(\"glGetUniformi64vARB\"))\n\tgpGetUniformi64vNV = (C.GPGETUNIFORMI64VNV)(getProcAddr(\"glGetUniformi64vNV\"))\n\tgpGetUniformiv = (C.GPGETUNIFORMIV)(getProcAddr(\"glGetUniformiv\"))\n\tif gpGetUniformiv == nil {\n\t\treturn errors.New(\"glGetUniformiv\")\n\t}\n\tgpGetUniformivARB = (C.GPGETUNIFORMIVARB)(getProcAddr(\"glGetUniformivARB\"))\n\tgpGetUniformui64vARB = (C.GPGETUNIFORMUI64VARB)(getProcAddr(\"glGetUniformui64vARB\"))\n\tgpGetUniformui64vNV = (C.GPGETUNIFORMUI64VNV)(getProcAddr(\"glGetUniformui64vNV\"))\n\tgpGetUniformuiv = (C.GPGETUNIFORMUIV)(getProcAddr(\"glGetUniformuiv\"))\n\tif gpGetUniformuiv == nil {\n\t\treturn errors.New(\"glGetUniformuiv\")\n\t}\n\tgpGetUniformuivEXT = (C.GPGETUNIFORMUIVEXT)(getProcAddr(\"glGetUniformuivEXT\"))\n\tgpGetUnsignedBytei_vEXT = (C.GPGETUNSIGNEDBYTEI_VEXT)(getProcAddr(\"glGetUnsignedBytei_vEXT\"))\n\tgpGetUnsignedBytevEXT = (C.GPGETUNSIGNEDBYTEVEXT)(getProcAddr(\"glGetUnsignedBytevEXT\"))\n\tgpGetVariantArrayObjectfvATI = (C.GPGETVARIANTARRAYOBJECTFVATI)(getProcAddr(\"glGetVariantArrayObjectfvATI\"))\n\tgpGetVariantArrayObjectivATI = (C.GPGETVARIANTARRAYOBJECTIVATI)(getProcAddr(\"glGetVariantArrayObjectivATI\"))\n\tgpGetVariantBooleanvEXT = (C.GPGETVARIANTBOOLEANVEXT)(getProcAddr(\"glGetVariantBooleanvEXT\"))\n\tgpGetVariantFloatvEXT = (C.GPGETVARIANTFLOATVEXT)(getProcAddr(\"glGetVariantFloatvEXT\"))\n\tgpGetVariantIntegervEXT = (C.GPGETVARIANTINTEGERVEXT)(getProcAddr(\"glGetVariantIntegervEXT\"))\n\tgpGetVariantPointervEXT = (C.GPGETVARIANTPOINTERVEXT)(getProcAddr(\"glGetVariantPointervEXT\"))\n\tgpGetVaryingLocationNV = (C.GPGETVARYINGLOCATIONNV)(getProcAddr(\"glGetVaryingLocationNV\"))\n\tgpGetVertexArrayIndexed64iv = (C.GPGETVERTEXARRAYINDEXED64IV)(getProcAddr(\"glGetVertexArrayIndexed64iv\"))\n\tgpGetVertexArrayIndexediv = (C.GPGETVERTEXARRAYINDEXEDIV)(getProcAddr(\"glGetVertexArrayIndexediv\"))\n\tgpGetVertexArrayIntegeri_vEXT = (C.GPGETVERTEXARRAYINTEGERI_VEXT)(getProcAddr(\"glGetVertexArrayIntegeri_vEXT\"))\n\tgpGetVertexArrayIntegervEXT = (C.GPGETVERTEXARRAYINTEGERVEXT)(getProcAddr(\"glGetVertexArrayIntegervEXT\"))\n\tgpGetVertexArrayPointeri_vEXT = (C.GPGETVERTEXARRAYPOINTERI_VEXT)(getProcAddr(\"glGetVertexArrayPointeri_vEXT\"))\n\tgpGetVertexArrayPointervEXT = (C.GPGETVERTEXARRAYPOINTERVEXT)(getProcAddr(\"glGetVertexArrayPointervEXT\"))\n\tgpGetVertexArrayiv = (C.GPGETVERTEXARRAYIV)(getProcAddr(\"glGetVertexArrayiv\"))\n\tgpGetVertexAttribArrayObjectfvATI = (C.GPGETVERTEXATTRIBARRAYOBJECTFVATI)(getProcAddr(\"glGetVertexAttribArrayObjectfvATI\"))\n\tgpGetVertexAttribArrayObjectivATI = (C.GPGETVERTEXATTRIBARRAYOBJECTIVATI)(getProcAddr(\"glGetVertexAttribArrayObjectivATI\"))\n\tgpGetVertexAttribIiv = (C.GPGETVERTEXATTRIBIIV)(getProcAddr(\"glGetVertexAttribIiv\"))\n\tif gpGetVertexAttribIiv == nil {\n\t\treturn errors.New(\"glGetVertexAttribIiv\")\n\t}\n\tgpGetVertexAttribIivEXT = (C.GPGETVERTEXATTRIBIIVEXT)(getProcAddr(\"glGetVertexAttribIivEXT\"))\n\tgpGetVertexAttribIuiv = (C.GPGETVERTEXATTRIBIUIV)(getProcAddr(\"glGetVertexAttribIuiv\"))\n\tif gpGetVertexAttribIuiv == nil {\n\t\treturn errors.New(\"glGetVertexAttribIuiv\")\n\t}\n\tgpGetVertexAttribIuivEXT = (C.GPGETVERTEXATTRIBIUIVEXT)(getProcAddr(\"glGetVertexAttribIuivEXT\"))\n\tgpGetVertexAttribLdv = (C.GPGETVERTEXATTRIBLDV)(getProcAddr(\"glGetVertexAttribLdv\"))\n\tif gpGetVertexAttribLdv == nil {\n\t\treturn errors.New(\"glGetVertexAttribLdv\")\n\t}\n\tgpGetVertexAttribLdvEXT = (C.GPGETVERTEXATTRIBLDVEXT)(getProcAddr(\"glGetVertexAttribLdvEXT\"))\n\tgpGetVertexAttribLi64vNV = (C.GPGETVERTEXATTRIBLI64VNV)(getProcAddr(\"glGetVertexAttribLi64vNV\"))\n\tgpGetVertexAttribLui64vARB = (C.GPGETVERTEXATTRIBLUI64VARB)(getProcAddr(\"glGetVertexAttribLui64vARB\"))\n\tgpGetVertexAttribLui64vNV = (C.GPGETVERTEXATTRIBLUI64VNV)(getProcAddr(\"glGetVertexAttribLui64vNV\"))\n\tgpGetVertexAttribPointerv = (C.GPGETVERTEXATTRIBPOINTERV)(getProcAddr(\"glGetVertexAttribPointerv\"))\n\tif gpGetVertexAttribPointerv == nil {\n\t\treturn errors.New(\"glGetVertexAttribPointerv\")\n\t}\n\tgpGetVertexAttribPointervARB = (C.GPGETVERTEXATTRIBPOINTERVARB)(getProcAddr(\"glGetVertexAttribPointervARB\"))\n\tgpGetVertexAttribPointervNV = (C.GPGETVERTEXATTRIBPOINTERVNV)(getProcAddr(\"glGetVertexAttribPointervNV\"))\n\tgpGetVertexAttribdv = (C.GPGETVERTEXATTRIBDV)(getProcAddr(\"glGetVertexAttribdv\"))\n\tif gpGetVertexAttribdv == nil {\n\t\treturn errors.New(\"glGetVertexAttribdv\")\n\t}\n\tgpGetVertexAttribdvARB = (C.GPGETVERTEXATTRIBDVARB)(getProcAddr(\"glGetVertexAttribdvARB\"))\n\tgpGetVertexAttribdvNV = (C.GPGETVERTEXATTRIBDVNV)(getProcAddr(\"glGetVertexAttribdvNV\"))\n\tgpGetVertexAttribfv = (C.GPGETVERTEXATTRIBFV)(getProcAddr(\"glGetVertexAttribfv\"))\n\tif gpGetVertexAttribfv == nil {\n\t\treturn errors.New(\"glGetVertexAttribfv\")\n\t}\n\tgpGetVertexAttribfvARB = (C.GPGETVERTEXATTRIBFVARB)(getProcAddr(\"glGetVertexAttribfvARB\"))\n\tgpGetVertexAttribfvNV = (C.GPGETVERTEXATTRIBFVNV)(getProcAddr(\"glGetVertexAttribfvNV\"))\n\tgpGetVertexAttribiv = (C.GPGETVERTEXATTRIBIV)(getProcAddr(\"glGetVertexAttribiv\"))\n\tif gpGetVertexAttribiv == nil {\n\t\treturn errors.New(\"glGetVertexAttribiv\")\n\t}\n\tgpGetVertexAttribivARB = (C.GPGETVERTEXATTRIBIVARB)(getProcAddr(\"glGetVertexAttribivARB\"))\n\tgpGetVertexAttribivNV = (C.GPGETVERTEXATTRIBIVNV)(getProcAddr(\"glGetVertexAttribivNV\"))\n\tgpGetVideoCaptureStreamdvNV = (C.GPGETVIDEOCAPTURESTREAMDVNV)(getProcAddr(\"glGetVideoCaptureStreamdvNV\"))\n\tgpGetVideoCaptureStreamfvNV = (C.GPGETVIDEOCAPTURESTREAMFVNV)(getProcAddr(\"glGetVideoCaptureStreamfvNV\"))\n\tgpGetVideoCaptureStreamivNV = (C.GPGETVIDEOCAPTURESTREAMIVNV)(getProcAddr(\"glGetVideoCaptureStreamivNV\"))\n\tgpGetVideoCaptureivNV = (C.GPGETVIDEOCAPTUREIVNV)(getProcAddr(\"glGetVideoCaptureivNV\"))\n\tgpGetVideoi64vNV = (C.GPGETVIDEOI64VNV)(getProcAddr(\"glGetVideoi64vNV\"))\n\tgpGetVideoivNV = (C.GPGETVIDEOIVNV)(getProcAddr(\"glGetVideoivNV\"))\n\tgpGetVideoui64vNV = (C.GPGETVIDEOUI64VNV)(getProcAddr(\"glGetVideoui64vNV\"))\n\tgpGetVideouivNV = (C.GPGETVIDEOUIVNV)(getProcAddr(\"glGetVideouivNV\"))\n\tgpGetVkProcAddrNV = (C.GPGETVKPROCADDRNV)(getProcAddr(\"glGetVkProcAddrNV\"))\n\tgpGetnColorTableARB = (C.GPGETNCOLORTABLEARB)(getProcAddr(\"glGetnColorTableARB\"))\n\tgpGetnCompressedTexImageARB = (C.GPGETNCOMPRESSEDTEXIMAGEARB)(getProcAddr(\"glGetnCompressedTexImageARB\"))\n\tgpGetnConvolutionFilterARB = (C.GPGETNCONVOLUTIONFILTERARB)(getProcAddr(\"glGetnConvolutionFilterARB\"))\n\tgpGetnHistogramARB = (C.GPGETNHISTOGRAMARB)(getProcAddr(\"glGetnHistogramARB\"))\n\tgpGetnMapdvARB = (C.GPGETNMAPDVARB)(getProcAddr(\"glGetnMapdvARB\"))\n\tgpGetnMapfvARB = (C.GPGETNMAPFVARB)(getProcAddr(\"glGetnMapfvARB\"))\n\tgpGetnMapivARB = (C.GPGETNMAPIVARB)(getProcAddr(\"glGetnMapivARB\"))\n\tgpGetnMinmaxARB = (C.GPGETNMINMAXARB)(getProcAddr(\"glGetnMinmaxARB\"))\n\tgpGetnPixelMapfvARB = (C.GPGETNPIXELMAPFVARB)(getProcAddr(\"glGetnPixelMapfvARB\"))\n\tgpGetnPixelMapuivARB = (C.GPGETNPIXELMAPUIVARB)(getProcAddr(\"glGetnPixelMapuivARB\"))\n\tgpGetnPixelMapusvARB = (C.GPGETNPIXELMAPUSVARB)(getProcAddr(\"glGetnPixelMapusvARB\"))\n\tgpGetnPolygonStippleARB = (C.GPGETNPOLYGONSTIPPLEARB)(getProcAddr(\"glGetnPolygonStippleARB\"))\n\tgpGetnSeparableFilterARB = (C.GPGETNSEPARABLEFILTERARB)(getProcAddr(\"glGetnSeparableFilterARB\"))\n\tgpGetnTexImageARB = (C.GPGETNTEXIMAGEARB)(getProcAddr(\"glGetnTexImageARB\"))\n\tgpGetnUniformdvARB = (C.GPGETNUNIFORMDVARB)(getProcAddr(\"glGetnUniformdvARB\"))\n\tgpGetnUniformfv = (C.GPGETNUNIFORMFV)(getProcAddr(\"glGetnUniformfv\"))\n\tgpGetnUniformfvARB = (C.GPGETNUNIFORMFVARB)(getProcAddr(\"glGetnUniformfvARB\"))\n\tgpGetnUniformfvKHR = (C.GPGETNUNIFORMFVKHR)(getProcAddr(\"glGetnUniformfvKHR\"))\n\tgpGetnUniformi64vARB = (C.GPGETNUNIFORMI64VARB)(getProcAddr(\"glGetnUniformi64vARB\"))\n\tgpGetnUniformiv = (C.GPGETNUNIFORMIV)(getProcAddr(\"glGetnUniformiv\"))\n\tgpGetnUniformivARB = (C.GPGETNUNIFORMIVARB)(getProcAddr(\"glGetnUniformivARB\"))\n\tgpGetnUniformivKHR = (C.GPGETNUNIFORMIVKHR)(getProcAddr(\"glGetnUniformivKHR\"))\n\tgpGetnUniformui64vARB = (C.GPGETNUNIFORMUI64VARB)(getProcAddr(\"glGetnUniformui64vARB\"))\n\tgpGetnUniformuiv = (C.GPGETNUNIFORMUIV)(getProcAddr(\"glGetnUniformuiv\"))\n\tgpGetnUniformuivARB = (C.GPGETNUNIFORMUIVARB)(getProcAddr(\"glGetnUniformuivARB\"))\n\tgpGetnUniformuivKHR = (C.GPGETNUNIFORMUIVKHR)(getProcAddr(\"glGetnUniformuivKHR\"))\n\tgpGlobalAlphaFactorbSUN = (C.GPGLOBALALPHAFACTORBSUN)(getProcAddr(\"glGlobalAlphaFactorbSUN\"))\n\tgpGlobalAlphaFactordSUN = (C.GPGLOBALALPHAFACTORDSUN)(getProcAddr(\"glGlobalAlphaFactordSUN\"))\n\tgpGlobalAlphaFactorfSUN = (C.GPGLOBALALPHAFACTORFSUN)(getProcAddr(\"glGlobalAlphaFactorfSUN\"))\n\tgpGlobalAlphaFactoriSUN = (C.GPGLOBALALPHAFACTORISUN)(getProcAddr(\"glGlobalAlphaFactoriSUN\"))\n\tgpGlobalAlphaFactorsSUN = (C.GPGLOBALALPHAFACTORSSUN)(getProcAddr(\"glGlobalAlphaFactorsSUN\"))\n\tgpGlobalAlphaFactorubSUN = (C.GPGLOBALALPHAFACTORUBSUN)(getProcAddr(\"glGlobalAlphaFactorubSUN\"))\n\tgpGlobalAlphaFactoruiSUN = (C.GPGLOBALALPHAFACTORUISUN)(getProcAddr(\"glGlobalAlphaFactoruiSUN\"))\n\tgpGlobalAlphaFactorusSUN = (C.GPGLOBALALPHAFACTORUSSUN)(getProcAddr(\"glGlobalAlphaFactorusSUN\"))\n\tgpHint = (C.GPHINT)(getProcAddr(\"glHint\"))\n\tif gpHint == nil {\n\t\treturn errors.New(\"glHint\")\n\t}\n\tgpHintPGI = (C.GPHINTPGI)(getProcAddr(\"glHintPGI\"))\n\tgpHistogram = (C.GPHISTOGRAM)(getProcAddr(\"glHistogram\"))\n\tgpHistogramEXT = (C.GPHISTOGRAMEXT)(getProcAddr(\"glHistogramEXT\"))\n\tgpIglooInterfaceSGIX = (C.GPIGLOOINTERFACESGIX)(getProcAddr(\"glIglooInterfaceSGIX\"))\n\tgpImageTransformParameterfHP = (C.GPIMAGETRANSFORMPARAMETERFHP)(getProcAddr(\"glImageTransformParameterfHP\"))\n\tgpImageTransformParameterfvHP = (C.GPIMAGETRANSFORMPARAMETERFVHP)(getProcAddr(\"glImageTransformParameterfvHP\"))\n\tgpImageTransformParameteriHP = (C.GPIMAGETRANSFORMPARAMETERIHP)(getProcAddr(\"glImageTransformParameteriHP\"))\n\tgpImageTransformParameterivHP = (C.GPIMAGETRANSFORMPARAMETERIVHP)(getProcAddr(\"glImageTransformParameterivHP\"))\n\tgpImportMemoryFdEXT = (C.GPIMPORTMEMORYFDEXT)(getProcAddr(\"glImportMemoryFdEXT\"))\n\tgpImportMemoryWin32HandleEXT = (C.GPIMPORTMEMORYWIN32HANDLEEXT)(getProcAddr(\"glImportMemoryWin32HandleEXT\"))\n\tgpImportMemoryWin32NameEXT = (C.GPIMPORTMEMORYWIN32NAMEEXT)(getProcAddr(\"glImportMemoryWin32NameEXT\"))\n\tgpImportSemaphoreFdEXT = (C.GPIMPORTSEMAPHOREFDEXT)(getProcAddr(\"glImportSemaphoreFdEXT\"))\n\tgpImportSemaphoreWin32HandleEXT = (C.GPIMPORTSEMAPHOREWIN32HANDLEEXT)(getProcAddr(\"glImportSemaphoreWin32HandleEXT\"))\n\tgpImportSemaphoreWin32NameEXT = (C.GPIMPORTSEMAPHOREWIN32NAMEEXT)(getProcAddr(\"glImportSemaphoreWin32NameEXT\"))\n\tgpImportSyncEXT = (C.GPIMPORTSYNCEXT)(getProcAddr(\"glImportSyncEXT\"))\n\tgpIndexFormatNV = (C.GPINDEXFORMATNV)(getProcAddr(\"glIndexFormatNV\"))\n\tgpIndexFuncEXT = (C.GPINDEXFUNCEXT)(getProcAddr(\"glIndexFuncEXT\"))\n\tgpIndexMask = (C.GPINDEXMASK)(getProcAddr(\"glIndexMask\"))\n\tif gpIndexMask == nil {\n\t\treturn errors.New(\"glIndexMask\")\n\t}\n\tgpIndexMaterialEXT = (C.GPINDEXMATERIALEXT)(getProcAddr(\"glIndexMaterialEXT\"))\n\tgpIndexPointer = (C.GPINDEXPOINTER)(getProcAddr(\"glIndexPointer\"))\n\tif gpIndexPointer == nil {\n\t\treturn errors.New(\"glIndexPointer\")\n\t}\n\tgpIndexPointerEXT = (C.GPINDEXPOINTEREXT)(getProcAddr(\"glIndexPointerEXT\"))\n\tgpIndexPointerListIBM = (C.GPINDEXPOINTERLISTIBM)(getProcAddr(\"glIndexPointerListIBM\"))\n\tgpIndexd = (C.GPINDEXD)(getProcAddr(\"glIndexd\"))\n\tif gpIndexd == nil {\n\t\treturn errors.New(\"glIndexd\")\n\t}\n\tgpIndexdv = (C.GPINDEXDV)(getProcAddr(\"glIndexdv\"))\n\tif gpIndexdv == nil {\n\t\treturn errors.New(\"glIndexdv\")\n\t}\n\tgpIndexf = (C.GPINDEXF)(getProcAddr(\"glIndexf\"))\n\tif gpIndexf == nil {\n\t\treturn errors.New(\"glIndexf\")\n\t}\n\tgpIndexfv = (C.GPINDEXFV)(getProcAddr(\"glIndexfv\"))\n\tif gpIndexfv == nil {\n\t\treturn errors.New(\"glIndexfv\")\n\t}\n\tgpIndexi = (C.GPINDEXI)(getProcAddr(\"glIndexi\"))\n\tif gpIndexi == nil {\n\t\treturn errors.New(\"glIndexi\")\n\t}\n\tgpIndexiv = (C.GPINDEXIV)(getProcAddr(\"glIndexiv\"))\n\tif gpIndexiv == nil {\n\t\treturn errors.New(\"glIndexiv\")\n\t}\n\tgpIndexs = (C.GPINDEXS)(getProcAddr(\"glIndexs\"))\n\tif gpIndexs == nil {\n\t\treturn errors.New(\"glIndexs\")\n\t}\n\tgpIndexsv = (C.GPINDEXSV)(getProcAddr(\"glIndexsv\"))\n\tif gpIndexsv == nil {\n\t\treturn errors.New(\"glIndexsv\")\n\t}\n\tgpIndexub = (C.GPINDEXUB)(getProcAddr(\"glIndexub\"))\n\tif gpIndexub == nil {\n\t\treturn errors.New(\"glIndexub\")\n\t}\n\tgpIndexubv = (C.GPINDEXUBV)(getProcAddr(\"glIndexubv\"))\n\tif gpIndexubv == nil {\n\t\treturn errors.New(\"glIndexubv\")\n\t}\n\tgpIndexxOES = (C.GPINDEXXOES)(getProcAddr(\"glIndexxOES\"))\n\tgpIndexxvOES = (C.GPINDEXXVOES)(getProcAddr(\"glIndexxvOES\"))\n\tgpInitNames = (C.GPINITNAMES)(getProcAddr(\"glInitNames\"))\n\tif gpInitNames == nil {\n\t\treturn errors.New(\"glInitNames\")\n\t}\n\tgpInsertComponentEXT = (C.GPINSERTCOMPONENTEXT)(getProcAddr(\"glInsertComponentEXT\"))\n\tgpInsertEventMarkerEXT = (C.GPINSERTEVENTMARKEREXT)(getProcAddr(\"glInsertEventMarkerEXT\"))\n\tgpInstrumentsBufferSGIX = (C.GPINSTRUMENTSBUFFERSGIX)(getProcAddr(\"glInstrumentsBufferSGIX\"))\n\tgpInterleavedArrays = (C.GPINTERLEAVEDARRAYS)(getProcAddr(\"glInterleavedArrays\"))\n\tif gpInterleavedArrays == nil {\n\t\treturn errors.New(\"glInterleavedArrays\")\n\t}\n\tgpInterpolatePathsNV = (C.GPINTERPOLATEPATHSNV)(getProcAddr(\"glInterpolatePathsNV\"))\n\tgpInvalidateBufferData = (C.GPINVALIDATEBUFFERDATA)(getProcAddr(\"glInvalidateBufferData\"))\n\tif gpInvalidateBufferData == nil {\n\t\treturn errors.New(\"glInvalidateBufferData\")\n\t}\n\tgpInvalidateBufferSubData = (C.GPINVALIDATEBUFFERSUBDATA)(getProcAddr(\"glInvalidateBufferSubData\"))\n\tif gpInvalidateBufferSubData == nil {\n\t\treturn errors.New(\"glInvalidateBufferSubData\")\n\t}\n\tgpInvalidateFramebuffer = (C.GPINVALIDATEFRAMEBUFFER)(getProcAddr(\"glInvalidateFramebuffer\"))\n\tif gpInvalidateFramebuffer == nil {\n\t\treturn errors.New(\"glInvalidateFramebuffer\")\n\t}\n\tgpInvalidateNamedFramebufferData = (C.GPINVALIDATENAMEDFRAMEBUFFERDATA)(getProcAddr(\"glInvalidateNamedFramebufferData\"))\n\tgpInvalidateNamedFramebufferSubData = (C.GPINVALIDATENAMEDFRAMEBUFFERSUBDATA)(getProcAddr(\"glInvalidateNamedFramebufferSubData\"))\n\tgpInvalidateSubFramebuffer = (C.GPINVALIDATESUBFRAMEBUFFER)(getProcAddr(\"glInvalidateSubFramebuffer\"))\n\tif gpInvalidateSubFramebuffer == nil {\n\t\treturn errors.New(\"glInvalidateSubFramebuffer\")\n\t}\n\tgpInvalidateTexImage = (C.GPINVALIDATETEXIMAGE)(getProcAddr(\"glInvalidateTexImage\"))\n\tif gpInvalidateTexImage == nil {\n\t\treturn errors.New(\"glInvalidateTexImage\")\n\t}\n\tgpInvalidateTexSubImage = (C.GPINVALIDATETEXSUBIMAGE)(getProcAddr(\"glInvalidateTexSubImage\"))\n\tif gpInvalidateTexSubImage == nil {\n\t\treturn errors.New(\"glInvalidateTexSubImage\")\n\t}\n\tgpIsAsyncMarkerSGIX = (C.GPISASYNCMARKERSGIX)(getProcAddr(\"glIsAsyncMarkerSGIX\"))\n\tgpIsBuffer = (C.GPISBUFFER)(getProcAddr(\"glIsBuffer\"))\n\tif gpIsBuffer == nil {\n\t\treturn errors.New(\"glIsBuffer\")\n\t}\n\tgpIsBufferARB = (C.GPISBUFFERARB)(getProcAddr(\"glIsBufferARB\"))\n\tgpIsBufferResidentNV = (C.GPISBUFFERRESIDENTNV)(getProcAddr(\"glIsBufferResidentNV\"))\n\tgpIsCommandListNV = (C.GPISCOMMANDLISTNV)(getProcAddr(\"glIsCommandListNV\"))\n\tgpIsEnabled = (C.GPISENABLED)(getProcAddr(\"glIsEnabled\"))\n\tif gpIsEnabled == nil {\n\t\treturn errors.New(\"glIsEnabled\")\n\t}\n\tgpIsEnabledIndexedEXT = (C.GPISENABLEDINDEXEDEXT)(getProcAddr(\"glIsEnabledIndexedEXT\"))\n\tgpIsEnabledi = (C.GPISENABLEDI)(getProcAddr(\"glIsEnabledi\"))\n\tif gpIsEnabledi == nil {\n\t\treturn errors.New(\"glIsEnabledi\")\n\t}\n\tgpIsFenceAPPLE = (C.GPISFENCEAPPLE)(getProcAddr(\"glIsFenceAPPLE\"))\n\tgpIsFenceNV = (C.GPISFENCENV)(getProcAddr(\"glIsFenceNV\"))\n\tgpIsFramebuffer = (C.GPISFRAMEBUFFER)(getProcAddr(\"glIsFramebuffer\"))\n\tif gpIsFramebuffer == nil {\n\t\treturn errors.New(\"glIsFramebuffer\")\n\t}\n\tgpIsFramebufferEXT = (C.GPISFRAMEBUFFEREXT)(getProcAddr(\"glIsFramebufferEXT\"))\n\tgpIsImageHandleResidentARB = (C.GPISIMAGEHANDLERESIDENTARB)(getProcAddr(\"glIsImageHandleResidentARB\"))\n\tgpIsImageHandleResidentNV = (C.GPISIMAGEHANDLERESIDENTNV)(getProcAddr(\"glIsImageHandleResidentNV\"))\n\tgpIsList = (C.GPISLIST)(getProcAddr(\"glIsList\"))\n\tif gpIsList == nil {\n\t\treturn errors.New(\"glIsList\")\n\t}\n\tgpIsMemoryObjectEXT = (C.GPISMEMORYOBJECTEXT)(getProcAddr(\"glIsMemoryObjectEXT\"))\n\tgpIsNameAMD = (C.GPISNAMEAMD)(getProcAddr(\"glIsNameAMD\"))\n\tgpIsNamedBufferResidentNV = (C.GPISNAMEDBUFFERRESIDENTNV)(getProcAddr(\"glIsNamedBufferResidentNV\"))\n\tgpIsNamedStringARB = (C.GPISNAMEDSTRINGARB)(getProcAddr(\"glIsNamedStringARB\"))\n\tgpIsObjectBufferATI = (C.GPISOBJECTBUFFERATI)(getProcAddr(\"glIsObjectBufferATI\"))\n\tgpIsOcclusionQueryNV = (C.GPISOCCLUSIONQUERYNV)(getProcAddr(\"glIsOcclusionQueryNV\"))\n\tgpIsPathNV = (C.GPISPATHNV)(getProcAddr(\"glIsPathNV\"))\n\tgpIsPointInFillPathNV = (C.GPISPOINTINFILLPATHNV)(getProcAddr(\"glIsPointInFillPathNV\"))\n\tgpIsPointInStrokePathNV = (C.GPISPOINTINSTROKEPATHNV)(getProcAddr(\"glIsPointInStrokePathNV\"))\n\tgpIsProgram = (C.GPISPROGRAM)(getProcAddr(\"glIsProgram\"))\n\tif gpIsProgram == nil {\n\t\treturn errors.New(\"glIsProgram\")\n\t}\n\tgpIsProgramARB = (C.GPISPROGRAMARB)(getProcAddr(\"glIsProgramARB\"))\n\tgpIsProgramNV = (C.GPISPROGRAMNV)(getProcAddr(\"glIsProgramNV\"))\n\tgpIsProgramPipeline = (C.GPISPROGRAMPIPELINE)(getProcAddr(\"glIsProgramPipeline\"))\n\tif gpIsProgramPipeline == nil {\n\t\treturn errors.New(\"glIsProgramPipeline\")\n\t}\n\tgpIsProgramPipelineEXT = (C.GPISPROGRAMPIPELINEEXT)(getProcAddr(\"glIsProgramPipelineEXT\"))\n\tgpIsQuery = (C.GPISQUERY)(getProcAddr(\"glIsQuery\"))\n\tif gpIsQuery == nil {\n\t\treturn errors.New(\"glIsQuery\")\n\t}\n\tgpIsQueryARB = (C.GPISQUERYARB)(getProcAddr(\"glIsQueryARB\"))\n\tgpIsRenderbuffer = (C.GPISRENDERBUFFER)(getProcAddr(\"glIsRenderbuffer\"))\n\tif gpIsRenderbuffer == nil {\n\t\treturn errors.New(\"glIsRenderbuffer\")\n\t}\n\tgpIsRenderbufferEXT = (C.GPISRENDERBUFFEREXT)(getProcAddr(\"glIsRenderbufferEXT\"))\n\tgpIsSampler = (C.GPISSAMPLER)(getProcAddr(\"glIsSampler\"))\n\tif gpIsSampler == nil {\n\t\treturn errors.New(\"glIsSampler\")\n\t}\n\tgpIsSemaphoreEXT = (C.GPISSEMAPHOREEXT)(getProcAddr(\"glIsSemaphoreEXT\"))\n\tgpIsShader = (C.GPISSHADER)(getProcAddr(\"glIsShader\"))\n\tif gpIsShader == nil {\n\t\treturn errors.New(\"glIsShader\")\n\t}\n\tgpIsStateNV = (C.GPISSTATENV)(getProcAddr(\"glIsStateNV\"))\n\tgpIsSync = (C.GPISSYNC)(getProcAddr(\"glIsSync\"))\n\tif gpIsSync == nil {\n\t\treturn errors.New(\"glIsSync\")\n\t}\n\tgpIsTexture = (C.GPISTEXTURE)(getProcAddr(\"glIsTexture\"))\n\tif gpIsTexture == nil {\n\t\treturn errors.New(\"glIsTexture\")\n\t}\n\tgpIsTextureEXT = (C.GPISTEXTUREEXT)(getProcAddr(\"glIsTextureEXT\"))\n\tgpIsTextureHandleResidentARB = (C.GPISTEXTUREHANDLERESIDENTARB)(getProcAddr(\"glIsTextureHandleResidentARB\"))\n\tgpIsTextureHandleResidentNV = (C.GPISTEXTUREHANDLERESIDENTNV)(getProcAddr(\"glIsTextureHandleResidentNV\"))\n\tgpIsTransformFeedback = (C.GPISTRANSFORMFEEDBACK)(getProcAddr(\"glIsTransformFeedback\"))\n\tif gpIsTransformFeedback == nil {\n\t\treturn errors.New(\"glIsTransformFeedback\")\n\t}\n\tgpIsTransformFeedbackNV = (C.GPISTRANSFORMFEEDBACKNV)(getProcAddr(\"glIsTransformFeedbackNV\"))\n\tgpIsVariantEnabledEXT = (C.GPISVARIANTENABLEDEXT)(getProcAddr(\"glIsVariantEnabledEXT\"))\n\tgpIsVertexArray = (C.GPISVERTEXARRAY)(getProcAddr(\"glIsVertexArray\"))\n\tif gpIsVertexArray == nil {\n\t\treturn errors.New(\"glIsVertexArray\")\n\t}\n\tgpIsVertexArrayAPPLE = (C.GPISVERTEXARRAYAPPLE)(getProcAddr(\"glIsVertexArrayAPPLE\"))\n\tgpIsVertexAttribEnabledAPPLE = (C.GPISVERTEXATTRIBENABLEDAPPLE)(getProcAddr(\"glIsVertexAttribEnabledAPPLE\"))\n\tgpLGPUCopyImageSubDataNVX = (C.GPLGPUCOPYIMAGESUBDATANVX)(getProcAddr(\"glLGPUCopyImageSubDataNVX\"))\n\tgpLGPUInterlockNVX = (C.GPLGPUINTERLOCKNVX)(getProcAddr(\"glLGPUInterlockNVX\"))\n\tgpLGPUNamedBufferSubDataNVX = (C.GPLGPUNAMEDBUFFERSUBDATANVX)(getProcAddr(\"glLGPUNamedBufferSubDataNVX\"))\n\tgpLabelObjectEXT = (C.GPLABELOBJECTEXT)(getProcAddr(\"glLabelObjectEXT\"))\n\tgpLightEnviSGIX = (C.GPLIGHTENVISGIX)(getProcAddr(\"glLightEnviSGIX\"))\n\tgpLightModelf = (C.GPLIGHTMODELF)(getProcAddr(\"glLightModelf\"))\n\tif gpLightModelf == nil {\n\t\treturn errors.New(\"glLightModelf\")\n\t}\n\tgpLightModelfv = (C.GPLIGHTMODELFV)(getProcAddr(\"glLightModelfv\"))\n\tif gpLightModelfv == nil {\n\t\treturn errors.New(\"glLightModelfv\")\n\t}\n\tgpLightModeli = (C.GPLIGHTMODELI)(getProcAddr(\"glLightModeli\"))\n\tif gpLightModeli == nil {\n\t\treturn errors.New(\"glLightModeli\")\n\t}\n\tgpLightModeliv = (C.GPLIGHTMODELIV)(getProcAddr(\"glLightModeliv\"))\n\tif gpLightModeliv == nil {\n\t\treturn errors.New(\"glLightModeliv\")\n\t}\n\tgpLightModelxOES = (C.GPLIGHTMODELXOES)(getProcAddr(\"glLightModelxOES\"))\n\tgpLightModelxvOES = (C.GPLIGHTMODELXVOES)(getProcAddr(\"glLightModelxvOES\"))\n\tgpLightf = (C.GPLIGHTF)(getProcAddr(\"glLightf\"))\n\tif gpLightf == nil {\n\t\treturn errors.New(\"glLightf\")\n\t}\n\tgpLightfv = (C.GPLIGHTFV)(getProcAddr(\"glLightfv\"))\n\tif gpLightfv == nil {\n\t\treturn errors.New(\"glLightfv\")\n\t}\n\tgpLighti = (C.GPLIGHTI)(getProcAddr(\"glLighti\"))\n\tif gpLighti == nil {\n\t\treturn errors.New(\"glLighti\")\n\t}\n\tgpLightiv = (C.GPLIGHTIV)(getProcAddr(\"glLightiv\"))\n\tif gpLightiv == nil {\n\t\treturn errors.New(\"glLightiv\")\n\t}\n\tgpLightxOES = (C.GPLIGHTXOES)(getProcAddr(\"glLightxOES\"))\n\tgpLightxvOES = (C.GPLIGHTXVOES)(getProcAddr(\"glLightxvOES\"))\n\tgpLineStipple = (C.GPLINESTIPPLE)(getProcAddr(\"glLineStipple\"))\n\tif gpLineStipple == nil {\n\t\treturn errors.New(\"glLineStipple\")\n\t}\n\tgpLineWidth = (C.GPLINEWIDTH)(getProcAddr(\"glLineWidth\"))\n\tif gpLineWidth == nil {\n\t\treturn errors.New(\"glLineWidth\")\n\t}\n\tgpLineWidthxOES = (C.GPLINEWIDTHXOES)(getProcAddr(\"glLineWidthxOES\"))\n\tgpLinkProgram = (C.GPLINKPROGRAM)(getProcAddr(\"glLinkProgram\"))\n\tif gpLinkProgram == nil {\n\t\treturn errors.New(\"glLinkProgram\")\n\t}\n\tgpLinkProgramARB = (C.GPLINKPROGRAMARB)(getProcAddr(\"glLinkProgramARB\"))\n\tgpListBase = (C.GPLISTBASE)(getProcAddr(\"glListBase\"))\n\tif gpListBase == nil {\n\t\treturn errors.New(\"glListBase\")\n\t}\n\tgpListDrawCommandsStatesClientNV = (C.GPLISTDRAWCOMMANDSSTATESCLIENTNV)(getProcAddr(\"glListDrawCommandsStatesClientNV\"))\n\tgpListParameterfSGIX = (C.GPLISTPARAMETERFSGIX)(getProcAddr(\"glListParameterfSGIX\"))\n\tgpListParameterfvSGIX = (C.GPLISTPARAMETERFVSGIX)(getProcAddr(\"glListParameterfvSGIX\"))\n\tgpListParameteriSGIX = (C.GPLISTPARAMETERISGIX)(getProcAddr(\"glListParameteriSGIX\"))\n\tgpListParameterivSGIX = (C.GPLISTPARAMETERIVSGIX)(getProcAddr(\"glListParameterivSGIX\"))\n\tgpLoadIdentity = (C.GPLOADIDENTITY)(getProcAddr(\"glLoadIdentity\"))\n\tif gpLoadIdentity == nil {\n\t\treturn errors.New(\"glLoadIdentity\")\n\t}\n\tgpLoadIdentityDeformationMapSGIX = (C.GPLOADIDENTITYDEFORMATIONMAPSGIX)(getProcAddr(\"glLoadIdentityDeformationMapSGIX\"))\n\tgpLoadMatrixd = (C.GPLOADMATRIXD)(getProcAddr(\"glLoadMatrixd\"))\n\tif gpLoadMatrixd == nil {\n\t\treturn errors.New(\"glLoadMatrixd\")\n\t}\n\tgpLoadMatrixf = (C.GPLOADMATRIXF)(getProcAddr(\"glLoadMatrixf\"))\n\tif gpLoadMatrixf == nil {\n\t\treturn errors.New(\"glLoadMatrixf\")\n\t}\n\tgpLoadMatrixxOES = (C.GPLOADMATRIXXOES)(getProcAddr(\"glLoadMatrixxOES\"))\n\tgpLoadName = (C.GPLOADNAME)(getProcAddr(\"glLoadName\"))\n\tif gpLoadName == nil {\n\t\treturn errors.New(\"glLoadName\")\n\t}\n\tgpLoadProgramNV = (C.GPLOADPROGRAMNV)(getProcAddr(\"glLoadProgramNV\"))\n\tgpLoadTransposeMatrixd = (C.GPLOADTRANSPOSEMATRIXD)(getProcAddr(\"glLoadTransposeMatrixd\"))\n\tif gpLoadTransposeMatrixd == nil {\n\t\treturn errors.New(\"glLoadTransposeMatrixd\")\n\t}\n\tgpLoadTransposeMatrixdARB = (C.GPLOADTRANSPOSEMATRIXDARB)(getProcAddr(\"glLoadTransposeMatrixdARB\"))\n\tgpLoadTransposeMatrixf = (C.GPLOADTRANSPOSEMATRIXF)(getProcAddr(\"glLoadTransposeMatrixf\"))\n\tif gpLoadTransposeMatrixf == nil {\n\t\treturn errors.New(\"glLoadTransposeMatrixf\")\n\t}\n\tgpLoadTransposeMatrixfARB = (C.GPLOADTRANSPOSEMATRIXFARB)(getProcAddr(\"glLoadTransposeMatrixfARB\"))\n\tgpLoadTransposeMatrixxOES = (C.GPLOADTRANSPOSEMATRIXXOES)(getProcAddr(\"glLoadTransposeMatrixxOES\"))\n\tgpLockArraysEXT = (C.GPLOCKARRAYSEXT)(getProcAddr(\"glLockArraysEXT\"))\n\tgpLogicOp = (C.GPLOGICOP)(getProcAddr(\"glLogicOp\"))\n\tif gpLogicOp == nil {\n\t\treturn errors.New(\"glLogicOp\")\n\t}\n\tgpMakeBufferNonResidentNV = (C.GPMAKEBUFFERNONRESIDENTNV)(getProcAddr(\"glMakeBufferNonResidentNV\"))\n\tgpMakeBufferResidentNV = (C.GPMAKEBUFFERRESIDENTNV)(getProcAddr(\"glMakeBufferResidentNV\"))\n\tgpMakeImageHandleNonResidentARB = (C.GPMAKEIMAGEHANDLENONRESIDENTARB)(getProcAddr(\"glMakeImageHandleNonResidentARB\"))\n\tgpMakeImageHandleNonResidentNV = (C.GPMAKEIMAGEHANDLENONRESIDENTNV)(getProcAddr(\"glMakeImageHandleNonResidentNV\"))\n\tgpMakeImageHandleResidentARB = (C.GPMAKEIMAGEHANDLERESIDENTARB)(getProcAddr(\"glMakeImageHandleResidentARB\"))\n\tgpMakeImageHandleResidentNV = (C.GPMAKEIMAGEHANDLERESIDENTNV)(getProcAddr(\"glMakeImageHandleResidentNV\"))\n\tgpMakeNamedBufferNonResidentNV = (C.GPMAKENAMEDBUFFERNONRESIDENTNV)(getProcAddr(\"glMakeNamedBufferNonResidentNV\"))\n\tgpMakeNamedBufferResidentNV = (C.GPMAKENAMEDBUFFERRESIDENTNV)(getProcAddr(\"glMakeNamedBufferResidentNV\"))\n\tgpMakeTextureHandleNonResidentARB = (C.GPMAKETEXTUREHANDLENONRESIDENTARB)(getProcAddr(\"glMakeTextureHandleNonResidentARB\"))\n\tgpMakeTextureHandleNonResidentNV = (C.GPMAKETEXTUREHANDLENONRESIDENTNV)(getProcAddr(\"glMakeTextureHandleNonResidentNV\"))\n\tgpMakeTextureHandleResidentARB = (C.GPMAKETEXTUREHANDLERESIDENTARB)(getProcAddr(\"glMakeTextureHandleResidentARB\"))\n\tgpMakeTextureHandleResidentNV = (C.GPMAKETEXTUREHANDLERESIDENTNV)(getProcAddr(\"glMakeTextureHandleResidentNV\"))\n\tgpMap1d = (C.GPMAP1D)(getProcAddr(\"glMap1d\"))\n\tif gpMap1d == nil {\n\t\treturn errors.New(\"glMap1d\")\n\t}\n\tgpMap1f = (C.GPMAP1F)(getProcAddr(\"glMap1f\"))\n\tif gpMap1f == nil {\n\t\treturn errors.New(\"glMap1f\")\n\t}\n\tgpMap1xOES = (C.GPMAP1XOES)(getProcAddr(\"glMap1xOES\"))\n\tgpMap2d = (C.GPMAP2D)(getProcAddr(\"glMap2d\"))\n\tif gpMap2d == nil {\n\t\treturn errors.New(\"glMap2d\")\n\t}\n\tgpMap2f = (C.GPMAP2F)(getProcAddr(\"glMap2f\"))\n\tif gpMap2f == nil {\n\t\treturn errors.New(\"glMap2f\")\n\t}\n\tgpMap2xOES = (C.GPMAP2XOES)(getProcAddr(\"glMap2xOES\"))\n\tgpMapBuffer = (C.GPMAPBUFFER)(getProcAddr(\"glMapBuffer\"))\n\tif gpMapBuffer == nil {\n\t\treturn errors.New(\"glMapBuffer\")\n\t}\n\tgpMapBufferARB = (C.GPMAPBUFFERARB)(getProcAddr(\"glMapBufferARB\"))\n\tgpMapBufferRange = (C.GPMAPBUFFERRANGE)(getProcAddr(\"glMapBufferRange\"))\n\tif gpMapBufferRange == nil {\n\t\treturn errors.New(\"glMapBufferRange\")\n\t}\n\tgpMapControlPointsNV = (C.GPMAPCONTROLPOINTSNV)(getProcAddr(\"glMapControlPointsNV\"))\n\tgpMapGrid1d = (C.GPMAPGRID1D)(getProcAddr(\"glMapGrid1d\"))\n\tif gpMapGrid1d == nil {\n\t\treturn errors.New(\"glMapGrid1d\")\n\t}\n\tgpMapGrid1f = (C.GPMAPGRID1F)(getProcAddr(\"glMapGrid1f\"))\n\tif gpMapGrid1f == nil {\n\t\treturn errors.New(\"glMapGrid1f\")\n\t}\n\tgpMapGrid1xOES = (C.GPMAPGRID1XOES)(getProcAddr(\"glMapGrid1xOES\"))\n\tgpMapGrid2d = (C.GPMAPGRID2D)(getProcAddr(\"glMapGrid2d\"))\n\tif gpMapGrid2d == nil {\n\t\treturn errors.New(\"glMapGrid2d\")\n\t}\n\tgpMapGrid2f = (C.GPMAPGRID2F)(getProcAddr(\"glMapGrid2f\"))\n\tif gpMapGrid2f == nil {\n\t\treturn errors.New(\"glMapGrid2f\")\n\t}\n\tgpMapGrid2xOES = (C.GPMAPGRID2XOES)(getProcAddr(\"glMapGrid2xOES\"))\n\tgpMapNamedBuffer = (C.GPMAPNAMEDBUFFER)(getProcAddr(\"glMapNamedBuffer\"))\n\tgpMapNamedBufferEXT = (C.GPMAPNAMEDBUFFEREXT)(getProcAddr(\"glMapNamedBufferEXT\"))\n\tgpMapNamedBufferRange = (C.GPMAPNAMEDBUFFERRANGE)(getProcAddr(\"glMapNamedBufferRange\"))\n\tgpMapNamedBufferRangeEXT = (C.GPMAPNAMEDBUFFERRANGEEXT)(getProcAddr(\"glMapNamedBufferRangeEXT\"))\n\tgpMapObjectBufferATI = (C.GPMAPOBJECTBUFFERATI)(getProcAddr(\"glMapObjectBufferATI\"))\n\tgpMapParameterfvNV = (C.GPMAPPARAMETERFVNV)(getProcAddr(\"glMapParameterfvNV\"))\n\tgpMapParameterivNV = (C.GPMAPPARAMETERIVNV)(getProcAddr(\"glMapParameterivNV\"))\n\tgpMapTexture2DINTEL = (C.GPMAPTEXTURE2DINTEL)(getProcAddr(\"glMapTexture2DINTEL\"))\n\tgpMapVertexAttrib1dAPPLE = (C.GPMAPVERTEXATTRIB1DAPPLE)(getProcAddr(\"glMapVertexAttrib1dAPPLE\"))\n\tgpMapVertexAttrib1fAPPLE = (C.GPMAPVERTEXATTRIB1FAPPLE)(getProcAddr(\"glMapVertexAttrib1fAPPLE\"))\n\tgpMapVertexAttrib2dAPPLE = (C.GPMAPVERTEXATTRIB2DAPPLE)(getProcAddr(\"glMapVertexAttrib2dAPPLE\"))\n\tgpMapVertexAttrib2fAPPLE = (C.GPMAPVERTEXATTRIB2FAPPLE)(getProcAddr(\"glMapVertexAttrib2fAPPLE\"))\n\tgpMaterialf = (C.GPMATERIALF)(getProcAddr(\"glMaterialf\"))\n\tif gpMaterialf == nil {\n\t\treturn errors.New(\"glMaterialf\")\n\t}\n\tgpMaterialfv = (C.GPMATERIALFV)(getProcAddr(\"glMaterialfv\"))\n\tif gpMaterialfv == nil {\n\t\treturn errors.New(\"glMaterialfv\")\n\t}\n\tgpMateriali = (C.GPMATERIALI)(getProcAddr(\"glMateriali\"))\n\tif gpMateriali == nil {\n\t\treturn errors.New(\"glMateriali\")\n\t}\n\tgpMaterialiv = (C.GPMATERIALIV)(getProcAddr(\"glMaterialiv\"))\n\tif gpMaterialiv == nil {\n\t\treturn errors.New(\"glMaterialiv\")\n\t}\n\tgpMaterialxOES = (C.GPMATERIALXOES)(getProcAddr(\"glMaterialxOES\"))\n\tgpMaterialxvOES = (C.GPMATERIALXVOES)(getProcAddr(\"glMaterialxvOES\"))\n\tgpMatrixFrustumEXT = (C.GPMATRIXFRUSTUMEXT)(getProcAddr(\"glMatrixFrustumEXT\"))\n\tgpMatrixIndexPointerARB = (C.GPMATRIXINDEXPOINTERARB)(getProcAddr(\"glMatrixIndexPointerARB\"))\n\tgpMatrixIndexubvARB = (C.GPMATRIXINDEXUBVARB)(getProcAddr(\"glMatrixIndexubvARB\"))\n\tgpMatrixIndexuivARB = (C.GPMATRIXINDEXUIVARB)(getProcAddr(\"glMatrixIndexuivARB\"))\n\tgpMatrixIndexusvARB = (C.GPMATRIXINDEXUSVARB)(getProcAddr(\"glMatrixIndexusvARB\"))\n\tgpMatrixLoad3x2fNV = (C.GPMATRIXLOAD3X2FNV)(getProcAddr(\"glMatrixLoad3x2fNV\"))\n\tgpMatrixLoad3x3fNV = (C.GPMATRIXLOAD3X3FNV)(getProcAddr(\"glMatrixLoad3x3fNV\"))\n\tgpMatrixLoadIdentityEXT = (C.GPMATRIXLOADIDENTITYEXT)(getProcAddr(\"glMatrixLoadIdentityEXT\"))\n\tgpMatrixLoadTranspose3x3fNV = (C.GPMATRIXLOADTRANSPOSE3X3FNV)(getProcAddr(\"glMatrixLoadTranspose3x3fNV\"))\n\tgpMatrixLoadTransposedEXT = (C.GPMATRIXLOADTRANSPOSEDEXT)(getProcAddr(\"glMatrixLoadTransposedEXT\"))\n\tgpMatrixLoadTransposefEXT = (C.GPMATRIXLOADTRANSPOSEFEXT)(getProcAddr(\"glMatrixLoadTransposefEXT\"))\n\tgpMatrixLoaddEXT = (C.GPMATRIXLOADDEXT)(getProcAddr(\"glMatrixLoaddEXT\"))\n\tgpMatrixLoadfEXT = (C.GPMATRIXLOADFEXT)(getProcAddr(\"glMatrixLoadfEXT\"))\n\tgpMatrixMode = (C.GPMATRIXMODE)(getProcAddr(\"glMatrixMode\"))\n\tif gpMatrixMode == nil {\n\t\treturn errors.New(\"glMatrixMode\")\n\t}\n\tgpMatrixMult3x2fNV = (C.GPMATRIXMULT3X2FNV)(getProcAddr(\"glMatrixMult3x2fNV\"))\n\tgpMatrixMult3x3fNV = (C.GPMATRIXMULT3X3FNV)(getProcAddr(\"glMatrixMult3x3fNV\"))\n\tgpMatrixMultTranspose3x3fNV = (C.GPMATRIXMULTTRANSPOSE3X3FNV)(getProcAddr(\"glMatrixMultTranspose3x3fNV\"))\n\tgpMatrixMultTransposedEXT = (C.GPMATRIXMULTTRANSPOSEDEXT)(getProcAddr(\"glMatrixMultTransposedEXT\"))\n\tgpMatrixMultTransposefEXT = (C.GPMATRIXMULTTRANSPOSEFEXT)(getProcAddr(\"glMatrixMultTransposefEXT\"))\n\tgpMatrixMultdEXT = (C.GPMATRIXMULTDEXT)(getProcAddr(\"glMatrixMultdEXT\"))\n\tgpMatrixMultfEXT = (C.GPMATRIXMULTFEXT)(getProcAddr(\"glMatrixMultfEXT\"))\n\tgpMatrixOrthoEXT = (C.GPMATRIXORTHOEXT)(getProcAddr(\"glMatrixOrthoEXT\"))\n\tgpMatrixPopEXT = (C.GPMATRIXPOPEXT)(getProcAddr(\"glMatrixPopEXT\"))\n\tgpMatrixPushEXT = (C.GPMATRIXPUSHEXT)(getProcAddr(\"glMatrixPushEXT\"))\n\tgpMatrixRotatedEXT = (C.GPMATRIXROTATEDEXT)(getProcAddr(\"glMatrixRotatedEXT\"))\n\tgpMatrixRotatefEXT = (C.GPMATRIXROTATEFEXT)(getProcAddr(\"glMatrixRotatefEXT\"))\n\tgpMatrixScaledEXT = (C.GPMATRIXSCALEDEXT)(getProcAddr(\"glMatrixScaledEXT\"))\n\tgpMatrixScalefEXT = (C.GPMATRIXSCALEFEXT)(getProcAddr(\"glMatrixScalefEXT\"))\n\tgpMatrixTranslatedEXT = (C.GPMATRIXTRANSLATEDEXT)(getProcAddr(\"glMatrixTranslatedEXT\"))\n\tgpMatrixTranslatefEXT = (C.GPMATRIXTRANSLATEFEXT)(getProcAddr(\"glMatrixTranslatefEXT\"))\n\tgpMaxShaderCompilerThreadsARB = (C.GPMAXSHADERCOMPILERTHREADSARB)(getProcAddr(\"glMaxShaderCompilerThreadsARB\"))\n\tgpMaxShaderCompilerThreadsKHR = (C.GPMAXSHADERCOMPILERTHREADSKHR)(getProcAddr(\"glMaxShaderCompilerThreadsKHR\"))\n\tgpMemoryBarrier = (C.GPMEMORYBARRIER)(getProcAddr(\"glMemoryBarrier\"))\n\tif gpMemoryBarrier == nil {\n\t\treturn errors.New(\"glMemoryBarrier\")\n\t}\n\tgpMemoryBarrierByRegion = (C.GPMEMORYBARRIERBYREGION)(getProcAddr(\"glMemoryBarrierByRegion\"))\n\tgpMemoryBarrierEXT = (C.GPMEMORYBARRIEREXT)(getProcAddr(\"glMemoryBarrierEXT\"))\n\tgpMemoryObjectParameterivEXT = (C.GPMEMORYOBJECTPARAMETERIVEXT)(getProcAddr(\"glMemoryObjectParameterivEXT\"))\n\tgpMinSampleShading = (C.GPMINSAMPLESHADING)(getProcAddr(\"glMinSampleShading\"))\n\tif gpMinSampleShading == nil {\n\t\treturn errors.New(\"glMinSampleShading\")\n\t}\n\tgpMinSampleShadingARB = (C.GPMINSAMPLESHADINGARB)(getProcAddr(\"glMinSampleShadingARB\"))\n\tgpMinmax = (C.GPMINMAX)(getProcAddr(\"glMinmax\"))\n\tgpMinmaxEXT = (C.GPMINMAXEXT)(getProcAddr(\"glMinmaxEXT\"))\n\tgpMultMatrixd = (C.GPMULTMATRIXD)(getProcAddr(\"glMultMatrixd\"))\n\tif gpMultMatrixd == nil {\n\t\treturn errors.New(\"glMultMatrixd\")\n\t}\n\tgpMultMatrixf = (C.GPMULTMATRIXF)(getProcAddr(\"glMultMatrixf\"))\n\tif gpMultMatrixf == nil {\n\t\treturn errors.New(\"glMultMatrixf\")\n\t}\n\tgpMultMatrixxOES = (C.GPMULTMATRIXXOES)(getProcAddr(\"glMultMatrixxOES\"))\n\tgpMultTransposeMatrixd = (C.GPMULTTRANSPOSEMATRIXD)(getProcAddr(\"glMultTransposeMatrixd\"))\n\tif gpMultTransposeMatrixd == nil {\n\t\treturn errors.New(\"glMultTransposeMatrixd\")\n\t}\n\tgpMultTransposeMatrixdARB = (C.GPMULTTRANSPOSEMATRIXDARB)(getProcAddr(\"glMultTransposeMatrixdARB\"))\n\tgpMultTransposeMatrixf = (C.GPMULTTRANSPOSEMATRIXF)(getProcAddr(\"glMultTransposeMatrixf\"))\n\tif gpMultTransposeMatrixf == nil {\n\t\treturn errors.New(\"glMultTransposeMatrixf\")\n\t}\n\tgpMultTransposeMatrixfARB = (C.GPMULTTRANSPOSEMATRIXFARB)(getProcAddr(\"glMultTransposeMatrixfARB\"))\n\tgpMultTransposeMatrixxOES = (C.GPMULTTRANSPOSEMATRIXXOES)(getProcAddr(\"glMultTransposeMatrixxOES\"))\n\tgpMultiDrawArrays = (C.GPMULTIDRAWARRAYS)(getProcAddr(\"glMultiDrawArrays\"))\n\tif gpMultiDrawArrays == nil {\n\t\treturn errors.New(\"glMultiDrawArrays\")\n\t}\n\tgpMultiDrawArraysEXT = (C.GPMULTIDRAWARRAYSEXT)(getProcAddr(\"glMultiDrawArraysEXT\"))\n\tgpMultiDrawArraysIndirect = (C.GPMULTIDRAWARRAYSINDIRECT)(getProcAddr(\"glMultiDrawArraysIndirect\"))\n\tif gpMultiDrawArraysIndirect == nil {\n\t\treturn errors.New(\"glMultiDrawArraysIndirect\")\n\t}\n\tgpMultiDrawArraysIndirectAMD = (C.GPMULTIDRAWARRAYSINDIRECTAMD)(getProcAddr(\"glMultiDrawArraysIndirectAMD\"))\n\tgpMultiDrawArraysIndirectBindlessCountNV = (C.GPMULTIDRAWARRAYSINDIRECTBINDLESSCOUNTNV)(getProcAddr(\"glMultiDrawArraysIndirectBindlessCountNV\"))\n\tgpMultiDrawArraysIndirectBindlessNV = (C.GPMULTIDRAWARRAYSINDIRECTBINDLESSNV)(getProcAddr(\"glMultiDrawArraysIndirectBindlessNV\"))\n\tgpMultiDrawArraysIndirectCountARB = (C.GPMULTIDRAWARRAYSINDIRECTCOUNTARB)(getProcAddr(\"glMultiDrawArraysIndirectCountARB\"))\n\tgpMultiDrawElementArrayAPPLE = (C.GPMULTIDRAWELEMENTARRAYAPPLE)(getProcAddr(\"glMultiDrawElementArrayAPPLE\"))\n\tgpMultiDrawElements = (C.GPMULTIDRAWELEMENTS)(getProcAddr(\"glMultiDrawElements\"))\n\tif gpMultiDrawElements == nil {\n\t\treturn errors.New(\"glMultiDrawElements\")\n\t}\n\tgpMultiDrawElementsBaseVertex = (C.GPMULTIDRAWELEMENTSBASEVERTEX)(getProcAddr(\"glMultiDrawElementsBaseVertex\"))\n\tif gpMultiDrawElementsBaseVertex == nil {\n\t\treturn errors.New(\"glMultiDrawElementsBaseVertex\")\n\t}\n\tgpMultiDrawElementsEXT = (C.GPMULTIDRAWELEMENTSEXT)(getProcAddr(\"glMultiDrawElementsEXT\"))\n\tgpMultiDrawElementsIndirect = (C.GPMULTIDRAWELEMENTSINDIRECT)(getProcAddr(\"glMultiDrawElementsIndirect\"))\n\tif gpMultiDrawElementsIndirect == nil {\n\t\treturn errors.New(\"glMultiDrawElementsIndirect\")\n\t}\n\tgpMultiDrawElementsIndirectAMD = (C.GPMULTIDRAWELEMENTSINDIRECTAMD)(getProcAddr(\"glMultiDrawElementsIndirectAMD\"))\n\tgpMultiDrawElementsIndirectBindlessCountNV = (C.GPMULTIDRAWELEMENTSINDIRECTBINDLESSCOUNTNV)(getProcAddr(\"glMultiDrawElementsIndirectBindlessCountNV\"))\n\tgpMultiDrawElementsIndirectBindlessNV = (C.GPMULTIDRAWELEMENTSINDIRECTBINDLESSNV)(getProcAddr(\"glMultiDrawElementsIndirectBindlessNV\"))\n\tgpMultiDrawElementsIndirectCountARB = (C.GPMULTIDRAWELEMENTSINDIRECTCOUNTARB)(getProcAddr(\"glMultiDrawElementsIndirectCountARB\"))\n\tgpMultiDrawMeshTasksIndirectCountNV = (C.GPMULTIDRAWMESHTASKSINDIRECTCOUNTNV)(getProcAddr(\"glMultiDrawMeshTasksIndirectCountNV\"))\n\tgpMultiDrawMeshTasksIndirectNV = (C.GPMULTIDRAWMESHTASKSINDIRECTNV)(getProcAddr(\"glMultiDrawMeshTasksIndirectNV\"))\n\tgpMultiDrawRangeElementArrayAPPLE = (C.GPMULTIDRAWRANGEELEMENTARRAYAPPLE)(getProcAddr(\"glMultiDrawRangeElementArrayAPPLE\"))\n\tgpMultiModeDrawArraysIBM = (C.GPMULTIMODEDRAWARRAYSIBM)(getProcAddr(\"glMultiModeDrawArraysIBM\"))\n\tgpMultiModeDrawElementsIBM = (C.GPMULTIMODEDRAWELEMENTSIBM)(getProcAddr(\"glMultiModeDrawElementsIBM\"))\n\tgpMultiTexBufferEXT = (C.GPMULTITEXBUFFEREXT)(getProcAddr(\"glMultiTexBufferEXT\"))\n\tgpMultiTexCoord1bOES = (C.GPMULTITEXCOORD1BOES)(getProcAddr(\"glMultiTexCoord1bOES\"))\n\tgpMultiTexCoord1bvOES = (C.GPMULTITEXCOORD1BVOES)(getProcAddr(\"glMultiTexCoord1bvOES\"))\n\tgpMultiTexCoord1d = (C.GPMULTITEXCOORD1D)(getProcAddr(\"glMultiTexCoord1d\"))\n\tif gpMultiTexCoord1d == nil {\n\t\treturn errors.New(\"glMultiTexCoord1d\")\n\t}\n\tgpMultiTexCoord1dARB = (C.GPMULTITEXCOORD1DARB)(getProcAddr(\"glMultiTexCoord1dARB\"))\n\tgpMultiTexCoord1dv = (C.GPMULTITEXCOORD1DV)(getProcAddr(\"glMultiTexCoord1dv\"))\n\tif gpMultiTexCoord1dv == nil {\n\t\treturn errors.New(\"glMultiTexCoord1dv\")\n\t}\n\tgpMultiTexCoord1dvARB = (C.GPMULTITEXCOORD1DVARB)(getProcAddr(\"glMultiTexCoord1dvARB\"))\n\tgpMultiTexCoord1f = (C.GPMULTITEXCOORD1F)(getProcAddr(\"glMultiTexCoord1f\"))\n\tif gpMultiTexCoord1f == nil {\n\t\treturn errors.New(\"glMultiTexCoord1f\")\n\t}\n\tgpMultiTexCoord1fARB = (C.GPMULTITEXCOORD1FARB)(getProcAddr(\"glMultiTexCoord1fARB\"))\n\tgpMultiTexCoord1fv = (C.GPMULTITEXCOORD1FV)(getProcAddr(\"glMultiTexCoord1fv\"))\n\tif gpMultiTexCoord1fv == nil {\n\t\treturn errors.New(\"glMultiTexCoord1fv\")\n\t}\n\tgpMultiTexCoord1fvARB = (C.GPMULTITEXCOORD1FVARB)(getProcAddr(\"glMultiTexCoord1fvARB\"))\n\tgpMultiTexCoord1hNV = (C.GPMULTITEXCOORD1HNV)(getProcAddr(\"glMultiTexCoord1hNV\"))\n\tgpMultiTexCoord1hvNV = (C.GPMULTITEXCOORD1HVNV)(getProcAddr(\"glMultiTexCoord1hvNV\"))\n\tgpMultiTexCoord1i = (C.GPMULTITEXCOORD1I)(getProcAddr(\"glMultiTexCoord1i\"))\n\tif gpMultiTexCoord1i == nil {\n\t\treturn errors.New(\"glMultiTexCoord1i\")\n\t}\n\tgpMultiTexCoord1iARB = (C.GPMULTITEXCOORD1IARB)(getProcAddr(\"glMultiTexCoord1iARB\"))\n\tgpMultiTexCoord1iv = (C.GPMULTITEXCOORD1IV)(getProcAddr(\"glMultiTexCoord1iv\"))\n\tif gpMultiTexCoord1iv == nil {\n\t\treturn errors.New(\"glMultiTexCoord1iv\")\n\t}\n\tgpMultiTexCoord1ivARB = (C.GPMULTITEXCOORD1IVARB)(getProcAddr(\"glMultiTexCoord1ivARB\"))\n\tgpMultiTexCoord1s = (C.GPMULTITEXCOORD1S)(getProcAddr(\"glMultiTexCoord1s\"))\n\tif gpMultiTexCoord1s == nil {\n\t\treturn errors.New(\"glMultiTexCoord1s\")\n\t}\n\tgpMultiTexCoord1sARB = (C.GPMULTITEXCOORD1SARB)(getProcAddr(\"glMultiTexCoord1sARB\"))\n\tgpMultiTexCoord1sv = (C.GPMULTITEXCOORD1SV)(getProcAddr(\"glMultiTexCoord1sv\"))\n\tif gpMultiTexCoord1sv == nil {\n\t\treturn errors.New(\"glMultiTexCoord1sv\")\n\t}\n\tgpMultiTexCoord1svARB = (C.GPMULTITEXCOORD1SVARB)(getProcAddr(\"glMultiTexCoord1svARB\"))\n\tgpMultiTexCoord1xOES = (C.GPMULTITEXCOORD1XOES)(getProcAddr(\"glMultiTexCoord1xOES\"))\n\tgpMultiTexCoord1xvOES = (C.GPMULTITEXCOORD1XVOES)(getProcAddr(\"glMultiTexCoord1xvOES\"))\n\tgpMultiTexCoord2bOES = (C.GPMULTITEXCOORD2BOES)(getProcAddr(\"glMultiTexCoord2bOES\"))\n\tgpMultiTexCoord2bvOES = (C.GPMULTITEXCOORD2BVOES)(getProcAddr(\"glMultiTexCoord2bvOES\"))\n\tgpMultiTexCoord2d = (C.GPMULTITEXCOORD2D)(getProcAddr(\"glMultiTexCoord2d\"))\n\tif gpMultiTexCoord2d == nil {\n\t\treturn errors.New(\"glMultiTexCoord2d\")\n\t}\n\tgpMultiTexCoord2dARB = (C.GPMULTITEXCOORD2DARB)(getProcAddr(\"glMultiTexCoord2dARB\"))\n\tgpMultiTexCoord2dv = (C.GPMULTITEXCOORD2DV)(getProcAddr(\"glMultiTexCoord2dv\"))\n\tif gpMultiTexCoord2dv == nil {\n\t\treturn errors.New(\"glMultiTexCoord2dv\")\n\t}\n\tgpMultiTexCoord2dvARB = (C.GPMULTITEXCOORD2DVARB)(getProcAddr(\"glMultiTexCoord2dvARB\"))\n\tgpMultiTexCoord2f = (C.GPMULTITEXCOORD2F)(getProcAddr(\"glMultiTexCoord2f\"))\n\tif gpMultiTexCoord2f == nil {\n\t\treturn errors.New(\"glMultiTexCoord2f\")\n\t}\n\tgpMultiTexCoord2fARB = (C.GPMULTITEXCOORD2FARB)(getProcAddr(\"glMultiTexCoord2fARB\"))\n\tgpMultiTexCoord2fv = (C.GPMULTITEXCOORD2FV)(getProcAddr(\"glMultiTexCoord2fv\"))\n\tif gpMultiTexCoord2fv == nil {\n\t\treturn errors.New(\"glMultiTexCoord2fv\")\n\t}\n\tgpMultiTexCoord2fvARB = (C.GPMULTITEXCOORD2FVARB)(getProcAddr(\"glMultiTexCoord2fvARB\"))\n\tgpMultiTexCoord2hNV = (C.GPMULTITEXCOORD2HNV)(getProcAddr(\"glMultiTexCoord2hNV\"))\n\tgpMultiTexCoord2hvNV = (C.GPMULTITEXCOORD2HVNV)(getProcAddr(\"glMultiTexCoord2hvNV\"))\n\tgpMultiTexCoord2i = (C.GPMULTITEXCOORD2I)(getProcAddr(\"glMultiTexCoord2i\"))\n\tif gpMultiTexCoord2i == nil {\n\t\treturn errors.New(\"glMultiTexCoord2i\")\n\t}\n\tgpMultiTexCoord2iARB = (C.GPMULTITEXCOORD2IARB)(getProcAddr(\"glMultiTexCoord2iARB\"))\n\tgpMultiTexCoord2iv = (C.GPMULTITEXCOORD2IV)(getProcAddr(\"glMultiTexCoord2iv\"))\n\tif gpMultiTexCoord2iv == nil {\n\t\treturn errors.New(\"glMultiTexCoord2iv\")\n\t}\n\tgpMultiTexCoord2ivARB = (C.GPMULTITEXCOORD2IVARB)(getProcAddr(\"glMultiTexCoord2ivARB\"))\n\tgpMultiTexCoord2s = (C.GPMULTITEXCOORD2S)(getProcAddr(\"glMultiTexCoord2s\"))\n\tif gpMultiTexCoord2s == nil {\n\t\treturn errors.New(\"glMultiTexCoord2s\")\n\t}\n\tgpMultiTexCoord2sARB = (C.GPMULTITEXCOORD2SARB)(getProcAddr(\"glMultiTexCoord2sARB\"))\n\tgpMultiTexCoord2sv = (C.GPMULTITEXCOORD2SV)(getProcAddr(\"glMultiTexCoord2sv\"))\n\tif gpMultiTexCoord2sv == nil {\n\t\treturn errors.New(\"glMultiTexCoord2sv\")\n\t}\n\tgpMultiTexCoord2svARB = (C.GPMULTITEXCOORD2SVARB)(getProcAddr(\"glMultiTexCoord2svARB\"))\n\tgpMultiTexCoord2xOES = (C.GPMULTITEXCOORD2XOES)(getProcAddr(\"glMultiTexCoord2xOES\"))\n\tgpMultiTexCoord2xvOES = (C.GPMULTITEXCOORD2XVOES)(getProcAddr(\"glMultiTexCoord2xvOES\"))\n\tgpMultiTexCoord3bOES = (C.GPMULTITEXCOORD3BOES)(getProcAddr(\"glMultiTexCoord3bOES\"))\n\tgpMultiTexCoord3bvOES = (C.GPMULTITEXCOORD3BVOES)(getProcAddr(\"glMultiTexCoord3bvOES\"))\n\tgpMultiTexCoord3d = (C.GPMULTITEXCOORD3D)(getProcAddr(\"glMultiTexCoord3d\"))\n\tif gpMultiTexCoord3d == nil {\n\t\treturn errors.New(\"glMultiTexCoord3d\")\n\t}\n\tgpMultiTexCoord3dARB = (C.GPMULTITEXCOORD3DARB)(getProcAddr(\"glMultiTexCoord3dARB\"))\n\tgpMultiTexCoord3dv = (C.GPMULTITEXCOORD3DV)(getProcAddr(\"glMultiTexCoord3dv\"))\n\tif gpMultiTexCoord3dv == nil {\n\t\treturn errors.New(\"glMultiTexCoord3dv\")\n\t}\n\tgpMultiTexCoord3dvARB = (C.GPMULTITEXCOORD3DVARB)(getProcAddr(\"glMultiTexCoord3dvARB\"))\n\tgpMultiTexCoord3f = (C.GPMULTITEXCOORD3F)(getProcAddr(\"glMultiTexCoord3f\"))\n\tif gpMultiTexCoord3f == nil {\n\t\treturn errors.New(\"glMultiTexCoord3f\")\n\t}\n\tgpMultiTexCoord3fARB = (C.GPMULTITEXCOORD3FARB)(getProcAddr(\"glMultiTexCoord3fARB\"))\n\tgpMultiTexCoord3fv = (C.GPMULTITEXCOORD3FV)(getProcAddr(\"glMultiTexCoord3fv\"))\n\tif gpMultiTexCoord3fv == nil {\n\t\treturn errors.New(\"glMultiTexCoord3fv\")\n\t}\n\tgpMultiTexCoord3fvARB = (C.GPMULTITEXCOORD3FVARB)(getProcAddr(\"glMultiTexCoord3fvARB\"))\n\tgpMultiTexCoord3hNV = (C.GPMULTITEXCOORD3HNV)(getProcAddr(\"glMultiTexCoord3hNV\"))\n\tgpMultiTexCoord3hvNV = (C.GPMULTITEXCOORD3HVNV)(getProcAddr(\"glMultiTexCoord3hvNV\"))\n\tgpMultiTexCoord3i = (C.GPMULTITEXCOORD3I)(getProcAddr(\"glMultiTexCoord3i\"))\n\tif gpMultiTexCoord3i == nil {\n\t\treturn errors.New(\"glMultiTexCoord3i\")\n\t}\n\tgpMultiTexCoord3iARB = (C.GPMULTITEXCOORD3IARB)(getProcAddr(\"glMultiTexCoord3iARB\"))\n\tgpMultiTexCoord3iv = (C.GPMULTITEXCOORD3IV)(getProcAddr(\"glMultiTexCoord3iv\"))\n\tif gpMultiTexCoord3iv == nil {\n\t\treturn errors.New(\"glMultiTexCoord3iv\")\n\t}\n\tgpMultiTexCoord3ivARB = (C.GPMULTITEXCOORD3IVARB)(getProcAddr(\"glMultiTexCoord3ivARB\"))\n\tgpMultiTexCoord3s = (C.GPMULTITEXCOORD3S)(getProcAddr(\"glMultiTexCoord3s\"))\n\tif gpMultiTexCoord3s == nil {\n\t\treturn errors.New(\"glMultiTexCoord3s\")\n\t}\n\tgpMultiTexCoord3sARB = (C.GPMULTITEXCOORD3SARB)(getProcAddr(\"glMultiTexCoord3sARB\"))\n\tgpMultiTexCoord3sv = (C.GPMULTITEXCOORD3SV)(getProcAddr(\"glMultiTexCoord3sv\"))\n\tif gpMultiTexCoord3sv == nil {\n\t\treturn errors.New(\"glMultiTexCoord3sv\")\n\t}\n\tgpMultiTexCoord3svARB = (C.GPMULTITEXCOORD3SVARB)(getProcAddr(\"glMultiTexCoord3svARB\"))\n\tgpMultiTexCoord3xOES = (C.GPMULTITEXCOORD3XOES)(getProcAddr(\"glMultiTexCoord3xOES\"))\n\tgpMultiTexCoord3xvOES = (C.GPMULTITEXCOORD3XVOES)(getProcAddr(\"glMultiTexCoord3xvOES\"))\n\tgpMultiTexCoord4bOES = (C.GPMULTITEXCOORD4BOES)(getProcAddr(\"glMultiTexCoord4bOES\"))\n\tgpMultiTexCoord4bvOES = (C.GPMULTITEXCOORD4BVOES)(getProcAddr(\"glMultiTexCoord4bvOES\"))\n\tgpMultiTexCoord4d = (C.GPMULTITEXCOORD4D)(getProcAddr(\"glMultiTexCoord4d\"))\n\tif gpMultiTexCoord4d == nil {\n\t\treturn errors.New(\"glMultiTexCoord4d\")\n\t}\n\tgpMultiTexCoord4dARB = (C.GPMULTITEXCOORD4DARB)(getProcAddr(\"glMultiTexCoord4dARB\"))\n\tgpMultiTexCoord4dv = (C.GPMULTITEXCOORD4DV)(getProcAddr(\"glMultiTexCoord4dv\"))\n\tif gpMultiTexCoord4dv == nil {\n\t\treturn errors.New(\"glMultiTexCoord4dv\")\n\t}\n\tgpMultiTexCoord4dvARB = (C.GPMULTITEXCOORD4DVARB)(getProcAddr(\"glMultiTexCoord4dvARB\"))\n\tgpMultiTexCoord4f = (C.GPMULTITEXCOORD4F)(getProcAddr(\"glMultiTexCoord4f\"))\n\tif gpMultiTexCoord4f == nil {\n\t\treturn errors.New(\"glMultiTexCoord4f\")\n\t}\n\tgpMultiTexCoord4fARB = (C.GPMULTITEXCOORD4FARB)(getProcAddr(\"glMultiTexCoord4fARB\"))\n\tgpMultiTexCoord4fv = (C.GPMULTITEXCOORD4FV)(getProcAddr(\"glMultiTexCoord4fv\"))\n\tif gpMultiTexCoord4fv == nil {\n\t\treturn errors.New(\"glMultiTexCoord4fv\")\n\t}\n\tgpMultiTexCoord4fvARB = (C.GPMULTITEXCOORD4FVARB)(getProcAddr(\"glMultiTexCoord4fvARB\"))\n\tgpMultiTexCoord4hNV = (C.GPMULTITEXCOORD4HNV)(getProcAddr(\"glMultiTexCoord4hNV\"))\n\tgpMultiTexCoord4hvNV = (C.GPMULTITEXCOORD4HVNV)(getProcAddr(\"glMultiTexCoord4hvNV\"))\n\tgpMultiTexCoord4i = (C.GPMULTITEXCOORD4I)(getProcAddr(\"glMultiTexCoord4i\"))\n\tif gpMultiTexCoord4i == nil {\n\t\treturn errors.New(\"glMultiTexCoord4i\")\n\t}\n\tgpMultiTexCoord4iARB = (C.GPMULTITEXCOORD4IARB)(getProcAddr(\"glMultiTexCoord4iARB\"))\n\tgpMultiTexCoord4iv = (C.GPMULTITEXCOORD4IV)(getProcAddr(\"glMultiTexCoord4iv\"))\n\tif gpMultiTexCoord4iv == nil {\n\t\treturn errors.New(\"glMultiTexCoord4iv\")\n\t}\n\tgpMultiTexCoord4ivARB = (C.GPMULTITEXCOORD4IVARB)(getProcAddr(\"glMultiTexCoord4ivARB\"))\n\tgpMultiTexCoord4s = (C.GPMULTITEXCOORD4S)(getProcAddr(\"glMultiTexCoord4s\"))\n\tif gpMultiTexCoord4s == nil {\n\t\treturn errors.New(\"glMultiTexCoord4s\")\n\t}\n\tgpMultiTexCoord4sARB = (C.GPMULTITEXCOORD4SARB)(getProcAddr(\"glMultiTexCoord4sARB\"))\n\tgpMultiTexCoord4sv = (C.GPMULTITEXCOORD4SV)(getProcAddr(\"glMultiTexCoord4sv\"))\n\tif gpMultiTexCoord4sv == nil {\n\t\treturn errors.New(\"glMultiTexCoord4sv\")\n\t}\n\tgpMultiTexCoord4svARB = (C.GPMULTITEXCOORD4SVARB)(getProcAddr(\"glMultiTexCoord4svARB\"))\n\tgpMultiTexCoord4xOES = (C.GPMULTITEXCOORD4XOES)(getProcAddr(\"glMultiTexCoord4xOES\"))\n\tgpMultiTexCoord4xvOES = (C.GPMULTITEXCOORD4XVOES)(getProcAddr(\"glMultiTexCoord4xvOES\"))\n\tgpMultiTexCoordP1ui = (C.GPMULTITEXCOORDP1UI)(getProcAddr(\"glMultiTexCoordP1ui\"))\n\tif gpMultiTexCoordP1ui == nil {\n\t\treturn errors.New(\"glMultiTexCoordP1ui\")\n\t}\n\tgpMultiTexCoordP1uiv = (C.GPMULTITEXCOORDP1UIV)(getProcAddr(\"glMultiTexCoordP1uiv\"))\n\tif gpMultiTexCoordP1uiv == nil {\n\t\treturn errors.New(\"glMultiTexCoordP1uiv\")\n\t}\n\tgpMultiTexCoordP2ui = (C.GPMULTITEXCOORDP2UI)(getProcAddr(\"glMultiTexCoordP2ui\"))\n\tif gpMultiTexCoordP2ui == nil {\n\t\treturn errors.New(\"glMultiTexCoordP2ui\")\n\t}\n\tgpMultiTexCoordP2uiv = (C.GPMULTITEXCOORDP2UIV)(getProcAddr(\"glMultiTexCoordP2uiv\"))\n\tif gpMultiTexCoordP2uiv == nil {\n\t\treturn errors.New(\"glMultiTexCoordP2uiv\")\n\t}\n\tgpMultiTexCoordP3ui = (C.GPMULTITEXCOORDP3UI)(getProcAddr(\"glMultiTexCoordP3ui\"))\n\tif gpMultiTexCoordP3ui == nil {\n\t\treturn errors.New(\"glMultiTexCoordP3ui\")\n\t}\n\tgpMultiTexCoordP3uiv = (C.GPMULTITEXCOORDP3UIV)(getProcAddr(\"glMultiTexCoordP3uiv\"))\n\tif gpMultiTexCoordP3uiv == nil {\n\t\treturn errors.New(\"glMultiTexCoordP3uiv\")\n\t}\n\tgpMultiTexCoordP4ui = (C.GPMULTITEXCOORDP4UI)(getProcAddr(\"glMultiTexCoordP4ui\"))\n\tif gpMultiTexCoordP4ui == nil {\n\t\treturn errors.New(\"glMultiTexCoordP4ui\")\n\t}\n\tgpMultiTexCoordP4uiv = (C.GPMULTITEXCOORDP4UIV)(getProcAddr(\"glMultiTexCoordP4uiv\"))\n\tif gpMultiTexCoordP4uiv == nil {\n\t\treturn errors.New(\"glMultiTexCoordP4uiv\")\n\t}\n\tgpMultiTexCoordPointerEXT = (C.GPMULTITEXCOORDPOINTEREXT)(getProcAddr(\"glMultiTexCoordPointerEXT\"))\n\tgpMultiTexEnvfEXT = (C.GPMULTITEXENVFEXT)(getProcAddr(\"glMultiTexEnvfEXT\"))\n\tgpMultiTexEnvfvEXT = (C.GPMULTITEXENVFVEXT)(getProcAddr(\"glMultiTexEnvfvEXT\"))\n\tgpMultiTexEnviEXT = (C.GPMULTITEXENVIEXT)(getProcAddr(\"glMultiTexEnviEXT\"))\n\tgpMultiTexEnvivEXT = (C.GPMULTITEXENVIVEXT)(getProcAddr(\"glMultiTexEnvivEXT\"))\n\tgpMultiTexGendEXT = (C.GPMULTITEXGENDEXT)(getProcAddr(\"glMultiTexGendEXT\"))\n\tgpMultiTexGendvEXT = (C.GPMULTITEXGENDVEXT)(getProcAddr(\"glMultiTexGendvEXT\"))\n\tgpMultiTexGenfEXT = (C.GPMULTITEXGENFEXT)(getProcAddr(\"glMultiTexGenfEXT\"))\n\tgpMultiTexGenfvEXT = (C.GPMULTITEXGENFVEXT)(getProcAddr(\"glMultiTexGenfvEXT\"))\n\tgpMultiTexGeniEXT = (C.GPMULTITEXGENIEXT)(getProcAddr(\"glMultiTexGeniEXT\"))\n\tgpMultiTexGenivEXT = (C.GPMULTITEXGENIVEXT)(getProcAddr(\"glMultiTexGenivEXT\"))\n\tgpMultiTexImage1DEXT = (C.GPMULTITEXIMAGE1DEXT)(getProcAddr(\"glMultiTexImage1DEXT\"))\n\tgpMultiTexImage2DEXT = (C.GPMULTITEXIMAGE2DEXT)(getProcAddr(\"glMultiTexImage2DEXT\"))\n\tgpMultiTexImage3DEXT = (C.GPMULTITEXIMAGE3DEXT)(getProcAddr(\"glMultiTexImage3DEXT\"))\n\tgpMultiTexParameterIivEXT = (C.GPMULTITEXPARAMETERIIVEXT)(getProcAddr(\"glMultiTexParameterIivEXT\"))\n\tgpMultiTexParameterIuivEXT = (C.GPMULTITEXPARAMETERIUIVEXT)(getProcAddr(\"glMultiTexParameterIuivEXT\"))\n\tgpMultiTexParameterfEXT = (C.GPMULTITEXPARAMETERFEXT)(getProcAddr(\"glMultiTexParameterfEXT\"))\n\tgpMultiTexParameterfvEXT = (C.GPMULTITEXPARAMETERFVEXT)(getProcAddr(\"glMultiTexParameterfvEXT\"))\n\tgpMultiTexParameteriEXT = (C.GPMULTITEXPARAMETERIEXT)(getProcAddr(\"glMultiTexParameteriEXT\"))\n\tgpMultiTexParameterivEXT = (C.GPMULTITEXPARAMETERIVEXT)(getProcAddr(\"glMultiTexParameterivEXT\"))\n\tgpMultiTexRenderbufferEXT = (C.GPMULTITEXRENDERBUFFEREXT)(getProcAddr(\"glMultiTexRenderbufferEXT\"))\n\tgpMultiTexSubImage1DEXT = (C.GPMULTITEXSUBIMAGE1DEXT)(getProcAddr(\"glMultiTexSubImage1DEXT\"))\n\tgpMultiTexSubImage2DEXT = (C.GPMULTITEXSUBIMAGE2DEXT)(getProcAddr(\"glMultiTexSubImage2DEXT\"))\n\tgpMultiTexSubImage3DEXT = (C.GPMULTITEXSUBIMAGE3DEXT)(getProcAddr(\"glMultiTexSubImage3DEXT\"))\n\tgpMulticastBarrierNV = (C.GPMULTICASTBARRIERNV)(getProcAddr(\"glMulticastBarrierNV\"))\n\tgpMulticastBlitFramebufferNV = (C.GPMULTICASTBLITFRAMEBUFFERNV)(getProcAddr(\"glMulticastBlitFramebufferNV\"))\n\tgpMulticastBufferSubDataNV = (C.GPMULTICASTBUFFERSUBDATANV)(getProcAddr(\"glMulticastBufferSubDataNV\"))\n\tgpMulticastCopyBufferSubDataNV = (C.GPMULTICASTCOPYBUFFERSUBDATANV)(getProcAddr(\"glMulticastCopyBufferSubDataNV\"))\n\tgpMulticastCopyImageSubDataNV = (C.GPMULTICASTCOPYIMAGESUBDATANV)(getProcAddr(\"glMulticastCopyImageSubDataNV\"))\n\tgpMulticastFramebufferSampleLocationsfvNV = (C.GPMULTICASTFRAMEBUFFERSAMPLELOCATIONSFVNV)(getProcAddr(\"glMulticastFramebufferSampleLocationsfvNV\"))\n\tgpMulticastGetQueryObjecti64vNV = (C.GPMULTICASTGETQUERYOBJECTI64VNV)(getProcAddr(\"glMulticastGetQueryObjecti64vNV\"))\n\tgpMulticastGetQueryObjectivNV = (C.GPMULTICASTGETQUERYOBJECTIVNV)(getProcAddr(\"glMulticastGetQueryObjectivNV\"))\n\tgpMulticastGetQueryObjectui64vNV = (C.GPMULTICASTGETQUERYOBJECTUI64VNV)(getProcAddr(\"glMulticastGetQueryObjectui64vNV\"))\n\tgpMulticastGetQueryObjectuivNV = (C.GPMULTICASTGETQUERYOBJECTUIVNV)(getProcAddr(\"glMulticastGetQueryObjectuivNV\"))\n\tgpMulticastScissorArrayvNVX = (C.GPMULTICASTSCISSORARRAYVNVX)(getProcAddr(\"glMulticastScissorArrayvNVX\"))\n\tgpMulticastViewportArrayvNVX = (C.GPMULTICASTVIEWPORTARRAYVNVX)(getProcAddr(\"glMulticastViewportArrayvNVX\"))\n\tgpMulticastViewportPositionWScaleNVX = (C.GPMULTICASTVIEWPORTPOSITIONWSCALENVX)(getProcAddr(\"glMulticastViewportPositionWScaleNVX\"))\n\tgpMulticastWaitSyncNV = (C.GPMULTICASTWAITSYNCNV)(getProcAddr(\"glMulticastWaitSyncNV\"))\n\tgpNamedBufferAttachMemoryNV = (C.GPNAMEDBUFFERATTACHMEMORYNV)(getProcAddr(\"glNamedBufferAttachMemoryNV\"))\n\tgpNamedBufferData = (C.GPNAMEDBUFFERDATA)(getProcAddr(\"glNamedBufferData\"))\n\tgpNamedBufferDataEXT = (C.GPNAMEDBUFFERDATAEXT)(getProcAddr(\"glNamedBufferDataEXT\"))\n\tgpNamedBufferPageCommitmentARB = (C.GPNAMEDBUFFERPAGECOMMITMENTARB)(getProcAddr(\"glNamedBufferPageCommitmentARB\"))\n\tgpNamedBufferPageCommitmentEXT = (C.GPNAMEDBUFFERPAGECOMMITMENTEXT)(getProcAddr(\"glNamedBufferPageCommitmentEXT\"))\n\tgpNamedBufferPageCommitmentMemNV = (C.GPNAMEDBUFFERPAGECOMMITMENTMEMNV)(getProcAddr(\"glNamedBufferPageCommitmentMemNV\"))\n\tgpNamedBufferStorage = (C.GPNAMEDBUFFERSTORAGE)(getProcAddr(\"glNamedBufferStorage\"))\n\tgpNamedBufferStorageEXT = (C.GPNAMEDBUFFERSTORAGEEXT)(getProcAddr(\"glNamedBufferStorageEXT\"))\n\tgpNamedBufferStorageExternalEXT = (C.GPNAMEDBUFFERSTORAGEEXTERNALEXT)(getProcAddr(\"glNamedBufferStorageExternalEXT\"))\n\tgpNamedBufferStorageMemEXT = (C.GPNAMEDBUFFERSTORAGEMEMEXT)(getProcAddr(\"glNamedBufferStorageMemEXT\"))\n\tgpNamedBufferSubData = (C.GPNAMEDBUFFERSUBDATA)(getProcAddr(\"glNamedBufferSubData\"))\n\tgpNamedBufferSubDataEXT = (C.GPNAMEDBUFFERSUBDATAEXT)(getProcAddr(\"glNamedBufferSubDataEXT\"))\n\tgpNamedCopyBufferSubDataEXT = (C.GPNAMEDCOPYBUFFERSUBDATAEXT)(getProcAddr(\"glNamedCopyBufferSubDataEXT\"))\n\tgpNamedFramebufferDrawBuffer = (C.GPNAMEDFRAMEBUFFERDRAWBUFFER)(getProcAddr(\"glNamedFramebufferDrawBuffer\"))\n\tgpNamedFramebufferDrawBuffers = (C.GPNAMEDFRAMEBUFFERDRAWBUFFERS)(getProcAddr(\"glNamedFramebufferDrawBuffers\"))\n\tgpNamedFramebufferParameteri = (C.GPNAMEDFRAMEBUFFERPARAMETERI)(getProcAddr(\"glNamedFramebufferParameteri\"))\n\tgpNamedFramebufferParameteriEXT = (C.GPNAMEDFRAMEBUFFERPARAMETERIEXT)(getProcAddr(\"glNamedFramebufferParameteriEXT\"))\n\tgpNamedFramebufferReadBuffer = (C.GPNAMEDFRAMEBUFFERREADBUFFER)(getProcAddr(\"glNamedFramebufferReadBuffer\"))\n\tgpNamedFramebufferRenderbuffer = (C.GPNAMEDFRAMEBUFFERRENDERBUFFER)(getProcAddr(\"glNamedFramebufferRenderbuffer\"))\n\tgpNamedFramebufferRenderbufferEXT = (C.GPNAMEDFRAMEBUFFERRENDERBUFFEREXT)(getProcAddr(\"glNamedFramebufferRenderbufferEXT\"))\n\tgpNamedFramebufferSampleLocationsfvARB = (C.GPNAMEDFRAMEBUFFERSAMPLELOCATIONSFVARB)(getProcAddr(\"glNamedFramebufferSampleLocationsfvARB\"))\n\tgpNamedFramebufferSampleLocationsfvNV = (C.GPNAMEDFRAMEBUFFERSAMPLELOCATIONSFVNV)(getProcAddr(\"glNamedFramebufferSampleLocationsfvNV\"))\n\tgpNamedFramebufferSamplePositionsfvAMD = (C.GPNAMEDFRAMEBUFFERSAMPLEPOSITIONSFVAMD)(getProcAddr(\"glNamedFramebufferSamplePositionsfvAMD\"))\n\tgpNamedFramebufferTexture = (C.GPNAMEDFRAMEBUFFERTEXTURE)(getProcAddr(\"glNamedFramebufferTexture\"))\n\tgpNamedFramebufferTexture1DEXT = (C.GPNAMEDFRAMEBUFFERTEXTURE1DEXT)(getProcAddr(\"glNamedFramebufferTexture1DEXT\"))\n\tgpNamedFramebufferTexture2DEXT = (C.GPNAMEDFRAMEBUFFERTEXTURE2DEXT)(getProcAddr(\"glNamedFramebufferTexture2DEXT\"))\n\tgpNamedFramebufferTexture3DEXT = (C.GPNAMEDFRAMEBUFFERTEXTURE3DEXT)(getProcAddr(\"glNamedFramebufferTexture3DEXT\"))\n\tgpNamedFramebufferTextureEXT = (C.GPNAMEDFRAMEBUFFERTEXTUREEXT)(getProcAddr(\"glNamedFramebufferTextureEXT\"))\n\tgpNamedFramebufferTextureFaceEXT = (C.GPNAMEDFRAMEBUFFERTEXTUREFACEEXT)(getProcAddr(\"glNamedFramebufferTextureFaceEXT\"))\n\tgpNamedFramebufferTextureLayer = (C.GPNAMEDFRAMEBUFFERTEXTURELAYER)(getProcAddr(\"glNamedFramebufferTextureLayer\"))\n\tgpNamedFramebufferTextureLayerEXT = (C.GPNAMEDFRAMEBUFFERTEXTURELAYEREXT)(getProcAddr(\"glNamedFramebufferTextureLayerEXT\"))\n\tgpNamedProgramLocalParameter4dEXT = (C.GPNAMEDPROGRAMLOCALPARAMETER4DEXT)(getProcAddr(\"glNamedProgramLocalParameter4dEXT\"))\n\tgpNamedProgramLocalParameter4dvEXT = (C.GPNAMEDPROGRAMLOCALPARAMETER4DVEXT)(getProcAddr(\"glNamedProgramLocalParameter4dvEXT\"))\n\tgpNamedProgramLocalParameter4fEXT = (C.GPNAMEDPROGRAMLOCALPARAMETER4FEXT)(getProcAddr(\"glNamedProgramLocalParameter4fEXT\"))\n\tgpNamedProgramLocalParameter4fvEXT = (C.GPNAMEDPROGRAMLOCALPARAMETER4FVEXT)(getProcAddr(\"glNamedProgramLocalParameter4fvEXT\"))\n\tgpNamedProgramLocalParameterI4iEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERI4IEXT)(getProcAddr(\"glNamedProgramLocalParameterI4iEXT\"))\n\tgpNamedProgramLocalParameterI4ivEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERI4IVEXT)(getProcAddr(\"glNamedProgramLocalParameterI4ivEXT\"))\n\tgpNamedProgramLocalParameterI4uiEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERI4UIEXT)(getProcAddr(\"glNamedProgramLocalParameterI4uiEXT\"))\n\tgpNamedProgramLocalParameterI4uivEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERI4UIVEXT)(getProcAddr(\"glNamedProgramLocalParameterI4uivEXT\"))\n\tgpNamedProgramLocalParameters4fvEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERS4FVEXT)(getProcAddr(\"glNamedProgramLocalParameters4fvEXT\"))\n\tgpNamedProgramLocalParametersI4ivEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERSI4IVEXT)(getProcAddr(\"glNamedProgramLocalParametersI4ivEXT\"))\n\tgpNamedProgramLocalParametersI4uivEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERSI4UIVEXT)(getProcAddr(\"glNamedProgramLocalParametersI4uivEXT\"))\n\tgpNamedProgramStringEXT = (C.GPNAMEDPROGRAMSTRINGEXT)(getProcAddr(\"glNamedProgramStringEXT\"))\n\tgpNamedRenderbufferStorage = (C.GPNAMEDRENDERBUFFERSTORAGE)(getProcAddr(\"glNamedRenderbufferStorage\"))\n\tgpNamedRenderbufferStorageEXT = (C.GPNAMEDRENDERBUFFERSTORAGEEXT)(getProcAddr(\"glNamedRenderbufferStorageEXT\"))\n\tgpNamedRenderbufferStorageMultisample = (C.GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLE)(getProcAddr(\"glNamedRenderbufferStorageMultisample\"))\n\tgpNamedRenderbufferStorageMultisampleAdvancedAMD = (C.GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMD)(getProcAddr(\"glNamedRenderbufferStorageMultisampleAdvancedAMD\"))\n\tgpNamedRenderbufferStorageMultisampleCoverageEXT = (C.GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXT)(getProcAddr(\"glNamedRenderbufferStorageMultisampleCoverageEXT\"))\n\tgpNamedRenderbufferStorageMultisampleEXT = (C.GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXT)(getProcAddr(\"glNamedRenderbufferStorageMultisampleEXT\"))\n\tgpNamedStringARB = (C.GPNAMEDSTRINGARB)(getProcAddr(\"glNamedStringARB\"))\n\tgpNewList = (C.GPNEWLIST)(getProcAddr(\"glNewList\"))\n\tif gpNewList == nil {\n\t\treturn errors.New(\"glNewList\")\n\t}\n\tgpNewObjectBufferATI = (C.GPNEWOBJECTBUFFERATI)(getProcAddr(\"glNewObjectBufferATI\"))\n\tgpNormal3b = (C.GPNORMAL3B)(getProcAddr(\"glNormal3b\"))\n\tif gpNormal3b == nil {\n\t\treturn errors.New(\"glNormal3b\")\n\t}\n\tgpNormal3bv = (C.GPNORMAL3BV)(getProcAddr(\"glNormal3bv\"))\n\tif gpNormal3bv == nil {\n\t\treturn errors.New(\"glNormal3bv\")\n\t}\n\tgpNormal3d = (C.GPNORMAL3D)(getProcAddr(\"glNormal3d\"))\n\tif gpNormal3d == nil {\n\t\treturn errors.New(\"glNormal3d\")\n\t}\n\tgpNormal3dv = (C.GPNORMAL3DV)(getProcAddr(\"glNormal3dv\"))\n\tif gpNormal3dv == nil {\n\t\treturn errors.New(\"glNormal3dv\")\n\t}\n\tgpNormal3f = (C.GPNORMAL3F)(getProcAddr(\"glNormal3f\"))\n\tif gpNormal3f == nil {\n\t\treturn errors.New(\"glNormal3f\")\n\t}\n\tgpNormal3fVertex3fSUN = (C.GPNORMAL3FVERTEX3FSUN)(getProcAddr(\"glNormal3fVertex3fSUN\"))\n\tgpNormal3fVertex3fvSUN = (C.GPNORMAL3FVERTEX3FVSUN)(getProcAddr(\"glNormal3fVertex3fvSUN\"))\n\tgpNormal3fv = (C.GPNORMAL3FV)(getProcAddr(\"glNormal3fv\"))\n\tif gpNormal3fv == nil {\n\t\treturn errors.New(\"glNormal3fv\")\n\t}\n\tgpNormal3hNV = (C.GPNORMAL3HNV)(getProcAddr(\"glNormal3hNV\"))\n\tgpNormal3hvNV = (C.GPNORMAL3HVNV)(getProcAddr(\"glNormal3hvNV\"))\n\tgpNormal3i = (C.GPNORMAL3I)(getProcAddr(\"glNormal3i\"))\n\tif gpNormal3i == nil {\n\t\treturn errors.New(\"glNormal3i\")\n\t}\n\tgpNormal3iv = (C.GPNORMAL3IV)(getProcAddr(\"glNormal3iv\"))\n\tif gpNormal3iv == nil {\n\t\treturn errors.New(\"glNormal3iv\")\n\t}\n\tgpNormal3s = (C.GPNORMAL3S)(getProcAddr(\"glNormal3s\"))\n\tif gpNormal3s == nil {\n\t\treturn errors.New(\"glNormal3s\")\n\t}\n\tgpNormal3sv = (C.GPNORMAL3SV)(getProcAddr(\"glNormal3sv\"))\n\tif gpNormal3sv == nil {\n\t\treturn errors.New(\"glNormal3sv\")\n\t}\n\tgpNormal3xOES = (C.GPNORMAL3XOES)(getProcAddr(\"glNormal3xOES\"))\n\tgpNormal3xvOES = (C.GPNORMAL3XVOES)(getProcAddr(\"glNormal3xvOES\"))\n\tgpNormalFormatNV = (C.GPNORMALFORMATNV)(getProcAddr(\"glNormalFormatNV\"))\n\tgpNormalP3ui = (C.GPNORMALP3UI)(getProcAddr(\"glNormalP3ui\"))\n\tif gpNormalP3ui == nil {\n\t\treturn errors.New(\"glNormalP3ui\")\n\t}\n\tgpNormalP3uiv = (C.GPNORMALP3UIV)(getProcAddr(\"glNormalP3uiv\"))\n\tif gpNormalP3uiv == nil {\n\t\treturn errors.New(\"glNormalP3uiv\")\n\t}\n\tgpNormalPointer = (C.GPNORMALPOINTER)(getProcAddr(\"glNormalPointer\"))\n\tif gpNormalPointer == nil {\n\t\treturn errors.New(\"glNormalPointer\")\n\t}\n\tgpNormalPointerEXT = (C.GPNORMALPOINTEREXT)(getProcAddr(\"glNormalPointerEXT\"))\n\tgpNormalPointerListIBM = (C.GPNORMALPOINTERLISTIBM)(getProcAddr(\"glNormalPointerListIBM\"))\n\tgpNormalPointervINTEL = (C.GPNORMALPOINTERVINTEL)(getProcAddr(\"glNormalPointervINTEL\"))\n\tgpNormalStream3bATI = (C.GPNORMALSTREAM3BATI)(getProcAddr(\"glNormalStream3bATI\"))\n\tgpNormalStream3bvATI = (C.GPNORMALSTREAM3BVATI)(getProcAddr(\"glNormalStream3bvATI\"))\n\tgpNormalStream3dATI = (C.GPNORMALSTREAM3DATI)(getProcAddr(\"glNormalStream3dATI\"))\n\tgpNormalStream3dvATI = (C.GPNORMALSTREAM3DVATI)(getProcAddr(\"glNormalStream3dvATI\"))\n\tgpNormalStream3fATI = (C.GPNORMALSTREAM3FATI)(getProcAddr(\"glNormalStream3fATI\"))\n\tgpNormalStream3fvATI = (C.GPNORMALSTREAM3FVATI)(getProcAddr(\"glNormalStream3fvATI\"))\n\tgpNormalStream3iATI = (C.GPNORMALSTREAM3IATI)(getProcAddr(\"glNormalStream3iATI\"))\n\tgpNormalStream3ivATI = (C.GPNORMALSTREAM3IVATI)(getProcAddr(\"glNormalStream3ivATI\"))\n\tgpNormalStream3sATI = (C.GPNORMALSTREAM3SATI)(getProcAddr(\"glNormalStream3sATI\"))\n\tgpNormalStream3svATI = (C.GPNORMALSTREAM3SVATI)(getProcAddr(\"glNormalStream3svATI\"))\n\tgpObjectLabel = (C.GPOBJECTLABEL)(getProcAddr(\"glObjectLabel\"))\n\tif gpObjectLabel == nil {\n\t\treturn errors.New(\"glObjectLabel\")\n\t}\n\tgpObjectLabelKHR = (C.GPOBJECTLABELKHR)(getProcAddr(\"glObjectLabelKHR\"))\n\tgpObjectPtrLabel = (C.GPOBJECTPTRLABEL)(getProcAddr(\"glObjectPtrLabel\"))\n\tif gpObjectPtrLabel == nil {\n\t\treturn errors.New(\"glObjectPtrLabel\")\n\t}\n\tgpObjectPtrLabelKHR = (C.GPOBJECTPTRLABELKHR)(getProcAddr(\"glObjectPtrLabelKHR\"))\n\tgpObjectPurgeableAPPLE = (C.GPOBJECTPURGEABLEAPPLE)(getProcAddr(\"glObjectPurgeableAPPLE\"))\n\tgpObjectUnpurgeableAPPLE = (C.GPOBJECTUNPURGEABLEAPPLE)(getProcAddr(\"glObjectUnpurgeableAPPLE\"))\n\tgpOrtho = (C.GPORTHO)(getProcAddr(\"glOrtho\"))\n\tif gpOrtho == nil {\n\t\treturn errors.New(\"glOrtho\")\n\t}\n\tgpOrthofOES = (C.GPORTHOFOES)(getProcAddr(\"glOrthofOES\"))\n\tgpOrthoxOES = (C.GPORTHOXOES)(getProcAddr(\"glOrthoxOES\"))\n\tgpPNTrianglesfATI = (C.GPPNTRIANGLESFATI)(getProcAddr(\"glPNTrianglesfATI\"))\n\tgpPNTrianglesiATI = (C.GPPNTRIANGLESIATI)(getProcAddr(\"glPNTrianglesiATI\"))\n\tgpPassTexCoordATI = (C.GPPASSTEXCOORDATI)(getProcAddr(\"glPassTexCoordATI\"))\n\tgpPassThrough = (C.GPPASSTHROUGH)(getProcAddr(\"glPassThrough\"))\n\tif gpPassThrough == nil {\n\t\treturn errors.New(\"glPassThrough\")\n\t}\n\tgpPassThroughxOES = (C.GPPASSTHROUGHXOES)(getProcAddr(\"glPassThroughxOES\"))\n\tgpPatchParameterfv = (C.GPPATCHPARAMETERFV)(getProcAddr(\"glPatchParameterfv\"))\n\tif gpPatchParameterfv == nil {\n\t\treturn errors.New(\"glPatchParameterfv\")\n\t}\n\tgpPatchParameteri = (C.GPPATCHPARAMETERI)(getProcAddr(\"glPatchParameteri\"))\n\tif gpPatchParameteri == nil {\n\t\treturn errors.New(\"glPatchParameteri\")\n\t}\n\tgpPathColorGenNV = (C.GPPATHCOLORGENNV)(getProcAddr(\"glPathColorGenNV\"))\n\tgpPathCommandsNV = (C.GPPATHCOMMANDSNV)(getProcAddr(\"glPathCommandsNV\"))\n\tgpPathCoordsNV = (C.GPPATHCOORDSNV)(getProcAddr(\"glPathCoordsNV\"))\n\tgpPathCoverDepthFuncNV = (C.GPPATHCOVERDEPTHFUNCNV)(getProcAddr(\"glPathCoverDepthFuncNV\"))\n\tgpPathDashArrayNV = (C.GPPATHDASHARRAYNV)(getProcAddr(\"glPathDashArrayNV\"))\n\tgpPathFogGenNV = (C.GPPATHFOGGENNV)(getProcAddr(\"glPathFogGenNV\"))\n\tgpPathGlyphIndexArrayNV = (C.GPPATHGLYPHINDEXARRAYNV)(getProcAddr(\"glPathGlyphIndexArrayNV\"))\n\tgpPathGlyphIndexRangeNV = (C.GPPATHGLYPHINDEXRANGENV)(getProcAddr(\"glPathGlyphIndexRangeNV\"))\n\tgpPathGlyphRangeNV = (C.GPPATHGLYPHRANGENV)(getProcAddr(\"glPathGlyphRangeNV\"))\n\tgpPathGlyphsNV = (C.GPPATHGLYPHSNV)(getProcAddr(\"glPathGlyphsNV\"))\n\tgpPathMemoryGlyphIndexArrayNV = (C.GPPATHMEMORYGLYPHINDEXARRAYNV)(getProcAddr(\"glPathMemoryGlyphIndexArrayNV\"))\n\tgpPathParameterfNV = (C.GPPATHPARAMETERFNV)(getProcAddr(\"glPathParameterfNV\"))\n\tgpPathParameterfvNV = (C.GPPATHPARAMETERFVNV)(getProcAddr(\"glPathParameterfvNV\"))\n\tgpPathParameteriNV = (C.GPPATHPARAMETERINV)(getProcAddr(\"glPathParameteriNV\"))\n\tgpPathParameterivNV = (C.GPPATHPARAMETERIVNV)(getProcAddr(\"glPathParameterivNV\"))\n\tgpPathStencilDepthOffsetNV = (C.GPPATHSTENCILDEPTHOFFSETNV)(getProcAddr(\"glPathStencilDepthOffsetNV\"))\n\tgpPathStencilFuncNV = (C.GPPATHSTENCILFUNCNV)(getProcAddr(\"glPathStencilFuncNV\"))\n\tgpPathStringNV = (C.GPPATHSTRINGNV)(getProcAddr(\"glPathStringNV\"))\n\tgpPathSubCommandsNV = (C.GPPATHSUBCOMMANDSNV)(getProcAddr(\"glPathSubCommandsNV\"))\n\tgpPathSubCoordsNV = (C.GPPATHSUBCOORDSNV)(getProcAddr(\"glPathSubCoordsNV\"))\n\tgpPathTexGenNV = (C.GPPATHTEXGENNV)(getProcAddr(\"glPathTexGenNV\"))\n\tgpPauseTransformFeedback = (C.GPPAUSETRANSFORMFEEDBACK)(getProcAddr(\"glPauseTransformFeedback\"))\n\tif gpPauseTransformFeedback == nil {\n\t\treturn errors.New(\"glPauseTransformFeedback\")\n\t}\n\tgpPauseTransformFeedbackNV = (C.GPPAUSETRANSFORMFEEDBACKNV)(getProcAddr(\"glPauseTransformFeedbackNV\"))\n\tgpPixelDataRangeNV = (C.GPPIXELDATARANGENV)(getProcAddr(\"glPixelDataRangeNV\"))\n\tgpPixelMapfv = (C.GPPIXELMAPFV)(getProcAddr(\"glPixelMapfv\"))\n\tif gpPixelMapfv == nil {\n\t\treturn errors.New(\"glPixelMapfv\")\n\t}\n\tgpPixelMapuiv = (C.GPPIXELMAPUIV)(getProcAddr(\"glPixelMapuiv\"))\n\tif gpPixelMapuiv == nil {\n\t\treturn errors.New(\"glPixelMapuiv\")\n\t}\n\tgpPixelMapusv = (C.GPPIXELMAPUSV)(getProcAddr(\"glPixelMapusv\"))\n\tif gpPixelMapusv == nil {\n\t\treturn errors.New(\"glPixelMapusv\")\n\t}\n\tgpPixelMapx = (C.GPPIXELMAPX)(getProcAddr(\"glPixelMapx\"))\n\tgpPixelStoref = (C.GPPIXELSTOREF)(getProcAddr(\"glPixelStoref\"))\n\tif gpPixelStoref == nil {\n\t\treturn errors.New(\"glPixelStoref\")\n\t}\n\tgpPixelStorei = (C.GPPIXELSTOREI)(getProcAddr(\"glPixelStorei\"))\n\tif gpPixelStorei == nil {\n\t\treturn errors.New(\"glPixelStorei\")\n\t}\n\tgpPixelStorex = (C.GPPIXELSTOREX)(getProcAddr(\"glPixelStorex\"))\n\tgpPixelTexGenParameterfSGIS = (C.GPPIXELTEXGENPARAMETERFSGIS)(getProcAddr(\"glPixelTexGenParameterfSGIS\"))\n\tgpPixelTexGenParameterfvSGIS = (C.GPPIXELTEXGENPARAMETERFVSGIS)(getProcAddr(\"glPixelTexGenParameterfvSGIS\"))\n\tgpPixelTexGenParameteriSGIS = (C.GPPIXELTEXGENPARAMETERISGIS)(getProcAddr(\"glPixelTexGenParameteriSGIS\"))\n\tgpPixelTexGenParameterivSGIS = (C.GPPIXELTEXGENPARAMETERIVSGIS)(getProcAddr(\"glPixelTexGenParameterivSGIS\"))\n\tgpPixelTexGenSGIX = (C.GPPIXELTEXGENSGIX)(getProcAddr(\"glPixelTexGenSGIX\"))\n\tgpPixelTransferf = (C.GPPIXELTRANSFERF)(getProcAddr(\"glPixelTransferf\"))\n\tif gpPixelTransferf == nil {\n\t\treturn errors.New(\"glPixelTransferf\")\n\t}\n\tgpPixelTransferi = (C.GPPIXELTRANSFERI)(getProcAddr(\"glPixelTransferi\"))\n\tif gpPixelTransferi == nil {\n\t\treturn errors.New(\"glPixelTransferi\")\n\t}\n\tgpPixelTransferxOES = (C.GPPIXELTRANSFERXOES)(getProcAddr(\"glPixelTransferxOES\"))\n\tgpPixelTransformParameterfEXT = (C.GPPIXELTRANSFORMPARAMETERFEXT)(getProcAddr(\"glPixelTransformParameterfEXT\"))\n\tgpPixelTransformParameterfvEXT = (C.GPPIXELTRANSFORMPARAMETERFVEXT)(getProcAddr(\"glPixelTransformParameterfvEXT\"))\n\tgpPixelTransformParameteriEXT = (C.GPPIXELTRANSFORMPARAMETERIEXT)(getProcAddr(\"glPixelTransformParameteriEXT\"))\n\tgpPixelTransformParameterivEXT = (C.GPPIXELTRANSFORMPARAMETERIVEXT)(getProcAddr(\"glPixelTransformParameterivEXT\"))\n\tgpPixelZoom = (C.GPPIXELZOOM)(getProcAddr(\"glPixelZoom\"))\n\tif gpPixelZoom == nil {\n\t\treturn errors.New(\"glPixelZoom\")\n\t}\n\tgpPixelZoomxOES = (C.GPPIXELZOOMXOES)(getProcAddr(\"glPixelZoomxOES\"))\n\tgpPointAlongPathNV = (C.GPPOINTALONGPATHNV)(getProcAddr(\"glPointAlongPathNV\"))\n\tgpPointParameterf = (C.GPPOINTPARAMETERF)(getProcAddr(\"glPointParameterf\"))\n\tif gpPointParameterf == nil {\n\t\treturn errors.New(\"glPointParameterf\")\n\t}\n\tgpPointParameterfARB = (C.GPPOINTPARAMETERFARB)(getProcAddr(\"glPointParameterfARB\"))\n\tgpPointParameterfEXT = (C.GPPOINTPARAMETERFEXT)(getProcAddr(\"glPointParameterfEXT\"))\n\tgpPointParameterfSGIS = (C.GPPOINTPARAMETERFSGIS)(getProcAddr(\"glPointParameterfSGIS\"))\n\tgpPointParameterfv = (C.GPPOINTPARAMETERFV)(getProcAddr(\"glPointParameterfv\"))\n\tif gpPointParameterfv == nil {\n\t\treturn errors.New(\"glPointParameterfv\")\n\t}\n\tgpPointParameterfvARB = (C.GPPOINTPARAMETERFVARB)(getProcAddr(\"glPointParameterfvARB\"))\n\tgpPointParameterfvEXT = (C.GPPOINTPARAMETERFVEXT)(getProcAddr(\"glPointParameterfvEXT\"))\n\tgpPointParameterfvSGIS = (C.GPPOINTPARAMETERFVSGIS)(getProcAddr(\"glPointParameterfvSGIS\"))\n\tgpPointParameteri = (C.GPPOINTPARAMETERI)(getProcAddr(\"glPointParameteri\"))\n\tif gpPointParameteri == nil {\n\t\treturn errors.New(\"glPointParameteri\")\n\t}\n\tgpPointParameteriNV = (C.GPPOINTPARAMETERINV)(getProcAddr(\"glPointParameteriNV\"))\n\tgpPointParameteriv = (C.GPPOINTPARAMETERIV)(getProcAddr(\"glPointParameteriv\"))\n\tif gpPointParameteriv == nil {\n\t\treturn errors.New(\"glPointParameteriv\")\n\t}\n\tgpPointParameterivNV = (C.GPPOINTPARAMETERIVNV)(getProcAddr(\"glPointParameterivNV\"))\n\tgpPointParameterxOES = (C.GPPOINTPARAMETERXOES)(getProcAddr(\"glPointParameterxOES\"))\n\tgpPointParameterxvOES = (C.GPPOINTPARAMETERXVOES)(getProcAddr(\"glPointParameterxvOES\"))\n\tgpPointSize = (C.GPPOINTSIZE)(getProcAddr(\"glPointSize\"))\n\tif gpPointSize == nil {\n\t\treturn errors.New(\"glPointSize\")\n\t}\n\tgpPointSizexOES = (C.GPPOINTSIZEXOES)(getProcAddr(\"glPointSizexOES\"))\n\tgpPollAsyncSGIX = (C.GPPOLLASYNCSGIX)(getProcAddr(\"glPollAsyncSGIX\"))\n\tgpPollInstrumentsSGIX = (C.GPPOLLINSTRUMENTSSGIX)(getProcAddr(\"glPollInstrumentsSGIX\"))\n\tgpPolygonMode = (C.GPPOLYGONMODE)(getProcAddr(\"glPolygonMode\"))\n\tif gpPolygonMode == nil {\n\t\treturn errors.New(\"glPolygonMode\")\n\t}\n\tgpPolygonOffset = (C.GPPOLYGONOFFSET)(getProcAddr(\"glPolygonOffset\"))\n\tif gpPolygonOffset == nil {\n\t\treturn errors.New(\"glPolygonOffset\")\n\t}\n\tgpPolygonOffsetClamp = (C.GPPOLYGONOFFSETCLAMP)(getProcAddr(\"glPolygonOffsetClamp\"))\n\tgpPolygonOffsetClampEXT = (C.GPPOLYGONOFFSETCLAMPEXT)(getProcAddr(\"glPolygonOffsetClampEXT\"))\n\tgpPolygonOffsetEXT = (C.GPPOLYGONOFFSETEXT)(getProcAddr(\"glPolygonOffsetEXT\"))\n\tgpPolygonOffsetxOES = (C.GPPOLYGONOFFSETXOES)(getProcAddr(\"glPolygonOffsetxOES\"))\n\tgpPolygonStipple = (C.GPPOLYGONSTIPPLE)(getProcAddr(\"glPolygonStipple\"))\n\tif gpPolygonStipple == nil {\n\t\treturn errors.New(\"glPolygonStipple\")\n\t}\n\tgpPopAttrib = (C.GPPOPATTRIB)(getProcAddr(\"glPopAttrib\"))\n\tif gpPopAttrib == nil {\n\t\treturn errors.New(\"glPopAttrib\")\n\t}\n\tgpPopClientAttrib = (C.GPPOPCLIENTATTRIB)(getProcAddr(\"glPopClientAttrib\"))\n\tif gpPopClientAttrib == nil {\n\t\treturn errors.New(\"glPopClientAttrib\")\n\t}\n\tgpPopDebugGroup = (C.GPPOPDEBUGGROUP)(getProcAddr(\"glPopDebugGroup\"))\n\tif gpPopDebugGroup == nil {\n\t\treturn errors.New(\"glPopDebugGroup\")\n\t}\n\tgpPopDebugGroupKHR = (C.GPPOPDEBUGGROUPKHR)(getProcAddr(\"glPopDebugGroupKHR\"))\n\tgpPopGroupMarkerEXT = (C.GPPOPGROUPMARKEREXT)(getProcAddr(\"glPopGroupMarkerEXT\"))\n\tgpPopMatrix = (C.GPPOPMATRIX)(getProcAddr(\"glPopMatrix\"))\n\tif gpPopMatrix == nil {\n\t\treturn errors.New(\"glPopMatrix\")\n\t}\n\tgpPopName = (C.GPPOPNAME)(getProcAddr(\"glPopName\"))\n\tif gpPopName == nil {\n\t\treturn errors.New(\"glPopName\")\n\t}\n\tgpPresentFrameDualFillNV = (C.GPPRESENTFRAMEDUALFILLNV)(getProcAddr(\"glPresentFrameDualFillNV\"))\n\tgpPresentFrameKeyedNV = (C.GPPRESENTFRAMEKEYEDNV)(getProcAddr(\"glPresentFrameKeyedNV\"))\n\tgpPrimitiveBoundingBoxARB = (C.GPPRIMITIVEBOUNDINGBOXARB)(getProcAddr(\"glPrimitiveBoundingBoxARB\"))\n\tgpPrimitiveRestartIndex = (C.GPPRIMITIVERESTARTINDEX)(getProcAddr(\"glPrimitiveRestartIndex\"))\n\tif gpPrimitiveRestartIndex == nil {\n\t\treturn errors.New(\"glPrimitiveRestartIndex\")\n\t}\n\tgpPrimitiveRestartIndexNV = (C.GPPRIMITIVERESTARTINDEXNV)(getProcAddr(\"glPrimitiveRestartIndexNV\"))\n\tgpPrimitiveRestartNV = (C.GPPRIMITIVERESTARTNV)(getProcAddr(\"glPrimitiveRestartNV\"))\n\tgpPrioritizeTextures = (C.GPPRIORITIZETEXTURES)(getProcAddr(\"glPrioritizeTextures\"))\n\tif gpPrioritizeTextures == nil {\n\t\treturn errors.New(\"glPrioritizeTextures\")\n\t}\n\tgpPrioritizeTexturesEXT = (C.GPPRIORITIZETEXTURESEXT)(getProcAddr(\"glPrioritizeTexturesEXT\"))\n\tgpPrioritizeTexturesxOES = (C.GPPRIORITIZETEXTURESXOES)(getProcAddr(\"glPrioritizeTexturesxOES\"))\n\tgpProgramBinary = (C.GPPROGRAMBINARY)(getProcAddr(\"glProgramBinary\"))\n\tif gpProgramBinary == nil {\n\t\treturn errors.New(\"glProgramBinary\")\n\t}\n\tgpProgramBufferParametersIivNV = (C.GPPROGRAMBUFFERPARAMETERSIIVNV)(getProcAddr(\"glProgramBufferParametersIivNV\"))\n\tgpProgramBufferParametersIuivNV = (C.GPPROGRAMBUFFERPARAMETERSIUIVNV)(getProcAddr(\"glProgramBufferParametersIuivNV\"))\n\tgpProgramBufferParametersfvNV = (C.GPPROGRAMBUFFERPARAMETERSFVNV)(getProcAddr(\"glProgramBufferParametersfvNV\"))\n\tgpProgramEnvParameter4dARB = (C.GPPROGRAMENVPARAMETER4DARB)(getProcAddr(\"glProgramEnvParameter4dARB\"))\n\tgpProgramEnvParameter4dvARB = (C.GPPROGRAMENVPARAMETER4DVARB)(getProcAddr(\"glProgramEnvParameter4dvARB\"))\n\tgpProgramEnvParameter4fARB = (C.GPPROGRAMENVPARAMETER4FARB)(getProcAddr(\"glProgramEnvParameter4fARB\"))\n\tgpProgramEnvParameter4fvARB = (C.GPPROGRAMENVPARAMETER4FVARB)(getProcAddr(\"glProgramEnvParameter4fvARB\"))\n\tgpProgramEnvParameterI4iNV = (C.GPPROGRAMENVPARAMETERI4INV)(getProcAddr(\"glProgramEnvParameterI4iNV\"))\n\tgpProgramEnvParameterI4ivNV = (C.GPPROGRAMENVPARAMETERI4IVNV)(getProcAddr(\"glProgramEnvParameterI4ivNV\"))\n\tgpProgramEnvParameterI4uiNV = (C.GPPROGRAMENVPARAMETERI4UINV)(getProcAddr(\"glProgramEnvParameterI4uiNV\"))\n\tgpProgramEnvParameterI4uivNV = (C.GPPROGRAMENVPARAMETERI4UIVNV)(getProcAddr(\"glProgramEnvParameterI4uivNV\"))\n\tgpProgramEnvParameters4fvEXT = (C.GPPROGRAMENVPARAMETERS4FVEXT)(getProcAddr(\"glProgramEnvParameters4fvEXT\"))\n\tgpProgramEnvParametersI4ivNV = (C.GPPROGRAMENVPARAMETERSI4IVNV)(getProcAddr(\"glProgramEnvParametersI4ivNV\"))\n\tgpProgramEnvParametersI4uivNV = (C.GPPROGRAMENVPARAMETERSI4UIVNV)(getProcAddr(\"glProgramEnvParametersI4uivNV\"))\n\tgpProgramLocalParameter4dARB = (C.GPPROGRAMLOCALPARAMETER4DARB)(getProcAddr(\"glProgramLocalParameter4dARB\"))\n\tgpProgramLocalParameter4dvARB = (C.GPPROGRAMLOCALPARAMETER4DVARB)(getProcAddr(\"glProgramLocalParameter4dvARB\"))\n\tgpProgramLocalParameter4fARB = (C.GPPROGRAMLOCALPARAMETER4FARB)(getProcAddr(\"glProgramLocalParameter4fARB\"))\n\tgpProgramLocalParameter4fvARB = (C.GPPROGRAMLOCALPARAMETER4FVARB)(getProcAddr(\"glProgramLocalParameter4fvARB\"))\n\tgpProgramLocalParameterI4iNV = (C.GPPROGRAMLOCALPARAMETERI4INV)(getProcAddr(\"glProgramLocalParameterI4iNV\"))\n\tgpProgramLocalParameterI4ivNV = (C.GPPROGRAMLOCALPARAMETERI4IVNV)(getProcAddr(\"glProgramLocalParameterI4ivNV\"))\n\tgpProgramLocalParameterI4uiNV = (C.GPPROGRAMLOCALPARAMETERI4UINV)(getProcAddr(\"glProgramLocalParameterI4uiNV\"))\n\tgpProgramLocalParameterI4uivNV = (C.GPPROGRAMLOCALPARAMETERI4UIVNV)(getProcAddr(\"glProgramLocalParameterI4uivNV\"))\n\tgpProgramLocalParameters4fvEXT = (C.GPPROGRAMLOCALPARAMETERS4FVEXT)(getProcAddr(\"glProgramLocalParameters4fvEXT\"))\n\tgpProgramLocalParametersI4ivNV = (C.GPPROGRAMLOCALPARAMETERSI4IVNV)(getProcAddr(\"glProgramLocalParametersI4ivNV\"))\n\tgpProgramLocalParametersI4uivNV = (C.GPPROGRAMLOCALPARAMETERSI4UIVNV)(getProcAddr(\"glProgramLocalParametersI4uivNV\"))\n\tgpProgramNamedParameter4dNV = (C.GPPROGRAMNAMEDPARAMETER4DNV)(getProcAddr(\"glProgramNamedParameter4dNV\"))\n\tgpProgramNamedParameter4dvNV = (C.GPPROGRAMNAMEDPARAMETER4DVNV)(getProcAddr(\"glProgramNamedParameter4dvNV\"))\n\tgpProgramNamedParameter4fNV = (C.GPPROGRAMNAMEDPARAMETER4FNV)(getProcAddr(\"glProgramNamedParameter4fNV\"))\n\tgpProgramNamedParameter4fvNV = (C.GPPROGRAMNAMEDPARAMETER4FVNV)(getProcAddr(\"glProgramNamedParameter4fvNV\"))\n\tgpProgramParameter4dNV = (C.GPPROGRAMPARAMETER4DNV)(getProcAddr(\"glProgramParameter4dNV\"))\n\tgpProgramParameter4dvNV = (C.GPPROGRAMPARAMETER4DVNV)(getProcAddr(\"glProgramParameter4dvNV\"))\n\tgpProgramParameter4fNV = (C.GPPROGRAMPARAMETER4FNV)(getProcAddr(\"glProgramParameter4fNV\"))\n\tgpProgramParameter4fvNV = (C.GPPROGRAMPARAMETER4FVNV)(getProcAddr(\"glProgramParameter4fvNV\"))\n\tgpProgramParameteri = (C.GPPROGRAMPARAMETERI)(getProcAddr(\"glProgramParameteri\"))\n\tif gpProgramParameteri == nil {\n\t\treturn errors.New(\"glProgramParameteri\")\n\t}\n\tgpProgramParameteriARB = (C.GPPROGRAMPARAMETERIARB)(getProcAddr(\"glProgramParameteriARB\"))\n\tgpProgramParameteriEXT = (C.GPPROGRAMPARAMETERIEXT)(getProcAddr(\"glProgramParameteriEXT\"))\n\tgpProgramParameters4dvNV = (C.GPPROGRAMPARAMETERS4DVNV)(getProcAddr(\"glProgramParameters4dvNV\"))\n\tgpProgramParameters4fvNV = (C.GPPROGRAMPARAMETERS4FVNV)(getProcAddr(\"glProgramParameters4fvNV\"))\n\tgpProgramPathFragmentInputGenNV = (C.GPPROGRAMPATHFRAGMENTINPUTGENNV)(getProcAddr(\"glProgramPathFragmentInputGenNV\"))\n\tgpProgramStringARB = (C.GPPROGRAMSTRINGARB)(getProcAddr(\"glProgramStringARB\"))\n\tgpProgramSubroutineParametersuivNV = (C.GPPROGRAMSUBROUTINEPARAMETERSUIVNV)(getProcAddr(\"glProgramSubroutineParametersuivNV\"))\n\tgpProgramUniform1d = (C.GPPROGRAMUNIFORM1D)(getProcAddr(\"glProgramUniform1d\"))\n\tif gpProgramUniform1d == nil {\n\t\treturn errors.New(\"glProgramUniform1d\")\n\t}\n\tgpProgramUniform1dEXT = (C.GPPROGRAMUNIFORM1DEXT)(getProcAddr(\"glProgramUniform1dEXT\"))\n\tgpProgramUniform1dv = (C.GPPROGRAMUNIFORM1DV)(getProcAddr(\"glProgramUniform1dv\"))\n\tif gpProgramUniform1dv == nil {\n\t\treturn errors.New(\"glProgramUniform1dv\")\n\t}\n\tgpProgramUniform1dvEXT = (C.GPPROGRAMUNIFORM1DVEXT)(getProcAddr(\"glProgramUniform1dvEXT\"))\n\tgpProgramUniform1f = (C.GPPROGRAMUNIFORM1F)(getProcAddr(\"glProgramUniform1f\"))\n\tif gpProgramUniform1f == nil {\n\t\treturn errors.New(\"glProgramUniform1f\")\n\t}\n\tgpProgramUniform1fEXT = (C.GPPROGRAMUNIFORM1FEXT)(getProcAddr(\"glProgramUniform1fEXT\"))\n\tgpProgramUniform1fv = (C.GPPROGRAMUNIFORM1FV)(getProcAddr(\"glProgramUniform1fv\"))\n\tif gpProgramUniform1fv == nil {\n\t\treturn errors.New(\"glProgramUniform1fv\")\n\t}\n\tgpProgramUniform1fvEXT = (C.GPPROGRAMUNIFORM1FVEXT)(getProcAddr(\"glProgramUniform1fvEXT\"))\n\tgpProgramUniform1i = (C.GPPROGRAMUNIFORM1I)(getProcAddr(\"glProgramUniform1i\"))\n\tif gpProgramUniform1i == nil {\n\t\treturn errors.New(\"glProgramUniform1i\")\n\t}\n\tgpProgramUniform1i64ARB = (C.GPPROGRAMUNIFORM1I64ARB)(getProcAddr(\"glProgramUniform1i64ARB\"))\n\tgpProgramUniform1i64NV = (C.GPPROGRAMUNIFORM1I64NV)(getProcAddr(\"glProgramUniform1i64NV\"))\n\tgpProgramUniform1i64vARB = (C.GPPROGRAMUNIFORM1I64VARB)(getProcAddr(\"glProgramUniform1i64vARB\"))\n\tgpProgramUniform1i64vNV = (C.GPPROGRAMUNIFORM1I64VNV)(getProcAddr(\"glProgramUniform1i64vNV\"))\n\tgpProgramUniform1iEXT = (C.GPPROGRAMUNIFORM1IEXT)(getProcAddr(\"glProgramUniform1iEXT\"))\n\tgpProgramUniform1iv = (C.GPPROGRAMUNIFORM1IV)(getProcAddr(\"glProgramUniform1iv\"))\n\tif gpProgramUniform1iv == nil {\n\t\treturn errors.New(\"glProgramUniform1iv\")\n\t}\n\tgpProgramUniform1ivEXT = (C.GPPROGRAMUNIFORM1IVEXT)(getProcAddr(\"glProgramUniform1ivEXT\"))\n\tgpProgramUniform1ui = (C.GPPROGRAMUNIFORM1UI)(getProcAddr(\"glProgramUniform1ui\"))\n\tif gpProgramUniform1ui == nil {\n\t\treturn errors.New(\"glProgramUniform1ui\")\n\t}\n\tgpProgramUniform1ui64ARB = (C.GPPROGRAMUNIFORM1UI64ARB)(getProcAddr(\"glProgramUniform1ui64ARB\"))\n\tgpProgramUniform1ui64NV = (C.GPPROGRAMUNIFORM1UI64NV)(getProcAddr(\"glProgramUniform1ui64NV\"))\n\tgpProgramUniform1ui64vARB = (C.GPPROGRAMUNIFORM1UI64VARB)(getProcAddr(\"glProgramUniform1ui64vARB\"))\n\tgpProgramUniform1ui64vNV = (C.GPPROGRAMUNIFORM1UI64VNV)(getProcAddr(\"glProgramUniform1ui64vNV\"))\n\tgpProgramUniform1uiEXT = (C.GPPROGRAMUNIFORM1UIEXT)(getProcAddr(\"glProgramUniform1uiEXT\"))\n\tgpProgramUniform1uiv = (C.GPPROGRAMUNIFORM1UIV)(getProcAddr(\"glProgramUniform1uiv\"))\n\tif gpProgramUniform1uiv == nil {\n\t\treturn errors.New(\"glProgramUniform1uiv\")\n\t}\n\tgpProgramUniform1uivEXT = (C.GPPROGRAMUNIFORM1UIVEXT)(getProcAddr(\"glProgramUniform1uivEXT\"))\n\tgpProgramUniform2d = (C.GPPROGRAMUNIFORM2D)(getProcAddr(\"glProgramUniform2d\"))\n\tif gpProgramUniform2d == nil {\n\t\treturn errors.New(\"glProgramUniform2d\")\n\t}\n\tgpProgramUniform2dEXT = (C.GPPROGRAMUNIFORM2DEXT)(getProcAddr(\"glProgramUniform2dEXT\"))\n\tgpProgramUniform2dv = (C.GPPROGRAMUNIFORM2DV)(getProcAddr(\"glProgramUniform2dv\"))\n\tif gpProgramUniform2dv == nil {\n\t\treturn errors.New(\"glProgramUniform2dv\")\n\t}\n\tgpProgramUniform2dvEXT = (C.GPPROGRAMUNIFORM2DVEXT)(getProcAddr(\"glProgramUniform2dvEXT\"))\n\tgpProgramUniform2f = (C.GPPROGRAMUNIFORM2F)(getProcAddr(\"glProgramUniform2f\"))\n\tif gpProgramUniform2f == nil {\n\t\treturn errors.New(\"glProgramUniform2f\")\n\t}\n\tgpProgramUniform2fEXT = (C.GPPROGRAMUNIFORM2FEXT)(getProcAddr(\"glProgramUniform2fEXT\"))\n\tgpProgramUniform2fv = (C.GPPROGRAMUNIFORM2FV)(getProcAddr(\"glProgramUniform2fv\"))\n\tif gpProgramUniform2fv == nil {\n\t\treturn errors.New(\"glProgramUniform2fv\")\n\t}\n\tgpProgramUniform2fvEXT = (C.GPPROGRAMUNIFORM2FVEXT)(getProcAddr(\"glProgramUniform2fvEXT\"))\n\tgpProgramUniform2i = (C.GPPROGRAMUNIFORM2I)(getProcAddr(\"glProgramUniform2i\"))\n\tif gpProgramUniform2i == nil {\n\t\treturn errors.New(\"glProgramUniform2i\")\n\t}\n\tgpProgramUniform2i64ARB = (C.GPPROGRAMUNIFORM2I64ARB)(getProcAddr(\"glProgramUniform2i64ARB\"))\n\tgpProgramUniform2i64NV = (C.GPPROGRAMUNIFORM2I64NV)(getProcAddr(\"glProgramUniform2i64NV\"))\n\tgpProgramUniform2i64vARB = (C.GPPROGRAMUNIFORM2I64VARB)(getProcAddr(\"glProgramUniform2i64vARB\"))\n\tgpProgramUniform2i64vNV = (C.GPPROGRAMUNIFORM2I64VNV)(getProcAddr(\"glProgramUniform2i64vNV\"))\n\tgpProgramUniform2iEXT = (C.GPPROGRAMUNIFORM2IEXT)(getProcAddr(\"glProgramUniform2iEXT\"))\n\tgpProgramUniform2iv = (C.GPPROGRAMUNIFORM2IV)(getProcAddr(\"glProgramUniform2iv\"))\n\tif gpProgramUniform2iv == nil {\n\t\treturn errors.New(\"glProgramUniform2iv\")\n\t}\n\tgpProgramUniform2ivEXT = (C.GPPROGRAMUNIFORM2IVEXT)(getProcAddr(\"glProgramUniform2ivEXT\"))\n\tgpProgramUniform2ui = (C.GPPROGRAMUNIFORM2UI)(getProcAddr(\"glProgramUniform2ui\"))\n\tif gpProgramUniform2ui == nil {\n\t\treturn errors.New(\"glProgramUniform2ui\")\n\t}\n\tgpProgramUniform2ui64ARB = (C.GPPROGRAMUNIFORM2UI64ARB)(getProcAddr(\"glProgramUniform2ui64ARB\"))\n\tgpProgramUniform2ui64NV = (C.GPPROGRAMUNIFORM2UI64NV)(getProcAddr(\"glProgramUniform2ui64NV\"))\n\tgpProgramUniform2ui64vARB = (C.GPPROGRAMUNIFORM2UI64VARB)(getProcAddr(\"glProgramUniform2ui64vARB\"))\n\tgpProgramUniform2ui64vNV = (C.GPPROGRAMUNIFORM2UI64VNV)(getProcAddr(\"glProgramUniform2ui64vNV\"))\n\tgpProgramUniform2uiEXT = (C.GPPROGRAMUNIFORM2UIEXT)(getProcAddr(\"glProgramUniform2uiEXT\"))\n\tgpProgramUniform2uiv = (C.GPPROGRAMUNIFORM2UIV)(getProcAddr(\"glProgramUniform2uiv\"))\n\tif gpProgramUniform2uiv == nil {\n\t\treturn errors.New(\"glProgramUniform2uiv\")\n\t}\n\tgpProgramUniform2uivEXT = (C.GPPROGRAMUNIFORM2UIVEXT)(getProcAddr(\"glProgramUniform2uivEXT\"))\n\tgpProgramUniform3d = (C.GPPROGRAMUNIFORM3D)(getProcAddr(\"glProgramUniform3d\"))\n\tif gpProgramUniform3d == nil {\n\t\treturn errors.New(\"glProgramUniform3d\")\n\t}\n\tgpProgramUniform3dEXT = (C.GPPROGRAMUNIFORM3DEXT)(getProcAddr(\"glProgramUniform3dEXT\"))\n\tgpProgramUniform3dv = (C.GPPROGRAMUNIFORM3DV)(getProcAddr(\"glProgramUniform3dv\"))\n\tif gpProgramUniform3dv == nil {\n\t\treturn errors.New(\"glProgramUniform3dv\")\n\t}\n\tgpProgramUniform3dvEXT = (C.GPPROGRAMUNIFORM3DVEXT)(getProcAddr(\"glProgramUniform3dvEXT\"))\n\tgpProgramUniform3f = (C.GPPROGRAMUNIFORM3F)(getProcAddr(\"glProgramUniform3f\"))\n\tif gpProgramUniform3f == nil {\n\t\treturn errors.New(\"glProgramUniform3f\")\n\t}\n\tgpProgramUniform3fEXT = (C.GPPROGRAMUNIFORM3FEXT)(getProcAddr(\"glProgramUniform3fEXT\"))\n\tgpProgramUniform3fv = (C.GPPROGRAMUNIFORM3FV)(getProcAddr(\"glProgramUniform3fv\"))\n\tif gpProgramUniform3fv == nil {\n\t\treturn errors.New(\"glProgramUniform3fv\")\n\t}\n\tgpProgramUniform3fvEXT = (C.GPPROGRAMUNIFORM3FVEXT)(getProcAddr(\"glProgramUniform3fvEXT\"))\n\tgpProgramUniform3i = (C.GPPROGRAMUNIFORM3I)(getProcAddr(\"glProgramUniform3i\"))\n\tif gpProgramUniform3i == nil {\n\t\treturn errors.New(\"glProgramUniform3i\")\n\t}\n\tgpProgramUniform3i64ARB = (C.GPPROGRAMUNIFORM3I64ARB)(getProcAddr(\"glProgramUniform3i64ARB\"))\n\tgpProgramUniform3i64NV = (C.GPPROGRAMUNIFORM3I64NV)(getProcAddr(\"glProgramUniform3i64NV\"))\n\tgpProgramUniform3i64vARB = (C.GPPROGRAMUNIFORM3I64VARB)(getProcAddr(\"glProgramUniform3i64vARB\"))\n\tgpProgramUniform3i64vNV = (C.GPPROGRAMUNIFORM3I64VNV)(getProcAddr(\"glProgramUniform3i64vNV\"))\n\tgpProgramUniform3iEXT = (C.GPPROGRAMUNIFORM3IEXT)(getProcAddr(\"glProgramUniform3iEXT\"))\n\tgpProgramUniform3iv = (C.GPPROGRAMUNIFORM3IV)(getProcAddr(\"glProgramUniform3iv\"))\n\tif gpProgramUniform3iv == nil {\n\t\treturn errors.New(\"glProgramUniform3iv\")\n\t}\n\tgpProgramUniform3ivEXT = (C.GPPROGRAMUNIFORM3IVEXT)(getProcAddr(\"glProgramUniform3ivEXT\"))\n\tgpProgramUniform3ui = (C.GPPROGRAMUNIFORM3UI)(getProcAddr(\"glProgramUniform3ui\"))\n\tif gpProgramUniform3ui == nil {\n\t\treturn errors.New(\"glProgramUniform3ui\")\n\t}\n\tgpProgramUniform3ui64ARB = (C.GPPROGRAMUNIFORM3UI64ARB)(getProcAddr(\"glProgramUniform3ui64ARB\"))\n\tgpProgramUniform3ui64NV = (C.GPPROGRAMUNIFORM3UI64NV)(getProcAddr(\"glProgramUniform3ui64NV\"))\n\tgpProgramUniform3ui64vARB = (C.GPPROGRAMUNIFORM3UI64VARB)(getProcAddr(\"glProgramUniform3ui64vARB\"))\n\tgpProgramUniform3ui64vNV = (C.GPPROGRAMUNIFORM3UI64VNV)(getProcAddr(\"glProgramUniform3ui64vNV\"))\n\tgpProgramUniform3uiEXT = (C.GPPROGRAMUNIFORM3UIEXT)(getProcAddr(\"glProgramUniform3uiEXT\"))\n\tgpProgramUniform3uiv = (C.GPPROGRAMUNIFORM3UIV)(getProcAddr(\"glProgramUniform3uiv\"))\n\tif gpProgramUniform3uiv == nil {\n\t\treturn errors.New(\"glProgramUniform3uiv\")\n\t}\n\tgpProgramUniform3uivEXT = (C.GPPROGRAMUNIFORM3UIVEXT)(getProcAddr(\"glProgramUniform3uivEXT\"))\n\tgpProgramUniform4d = (C.GPPROGRAMUNIFORM4D)(getProcAddr(\"glProgramUniform4d\"))\n\tif gpProgramUniform4d == nil {\n\t\treturn errors.New(\"glProgramUniform4d\")\n\t}\n\tgpProgramUniform4dEXT = (C.GPPROGRAMUNIFORM4DEXT)(getProcAddr(\"glProgramUniform4dEXT\"))\n\tgpProgramUniform4dv = (C.GPPROGRAMUNIFORM4DV)(getProcAddr(\"glProgramUniform4dv\"))\n\tif gpProgramUniform4dv == nil {\n\t\treturn errors.New(\"glProgramUniform4dv\")\n\t}\n\tgpProgramUniform4dvEXT = (C.GPPROGRAMUNIFORM4DVEXT)(getProcAddr(\"glProgramUniform4dvEXT\"))\n\tgpProgramUniform4f = (C.GPPROGRAMUNIFORM4F)(getProcAddr(\"glProgramUniform4f\"))\n\tif gpProgramUniform4f == nil {\n\t\treturn errors.New(\"glProgramUniform4f\")\n\t}\n\tgpProgramUniform4fEXT = (C.GPPROGRAMUNIFORM4FEXT)(getProcAddr(\"glProgramUniform4fEXT\"))\n\tgpProgramUniform4fv = (C.GPPROGRAMUNIFORM4FV)(getProcAddr(\"glProgramUniform4fv\"))\n\tif gpProgramUniform4fv == nil {\n\t\treturn errors.New(\"glProgramUniform4fv\")\n\t}\n\tgpProgramUniform4fvEXT = (C.GPPROGRAMUNIFORM4FVEXT)(getProcAddr(\"glProgramUniform4fvEXT\"))\n\tgpProgramUniform4i = (C.GPPROGRAMUNIFORM4I)(getProcAddr(\"glProgramUniform4i\"))\n\tif gpProgramUniform4i == nil {\n\t\treturn errors.New(\"glProgramUniform4i\")\n\t}\n\tgpProgramUniform4i64ARB = (C.GPPROGRAMUNIFORM4I64ARB)(getProcAddr(\"glProgramUniform4i64ARB\"))\n\tgpProgramUniform4i64NV = (C.GPPROGRAMUNIFORM4I64NV)(getProcAddr(\"glProgramUniform4i64NV\"))\n\tgpProgramUniform4i64vARB = (C.GPPROGRAMUNIFORM4I64VARB)(getProcAddr(\"glProgramUniform4i64vARB\"))\n\tgpProgramUniform4i64vNV = (C.GPPROGRAMUNIFORM4I64VNV)(getProcAddr(\"glProgramUniform4i64vNV\"))\n\tgpProgramUniform4iEXT = (C.GPPROGRAMUNIFORM4IEXT)(getProcAddr(\"glProgramUniform4iEXT\"))\n\tgpProgramUniform4iv = (C.GPPROGRAMUNIFORM4IV)(getProcAddr(\"glProgramUniform4iv\"))\n\tif gpProgramUniform4iv == nil {\n\t\treturn errors.New(\"glProgramUniform4iv\")\n\t}\n\tgpProgramUniform4ivEXT = (C.GPPROGRAMUNIFORM4IVEXT)(getProcAddr(\"glProgramUniform4ivEXT\"))\n\tgpProgramUniform4ui = (C.GPPROGRAMUNIFORM4UI)(getProcAddr(\"glProgramUniform4ui\"))\n\tif gpProgramUniform4ui == nil {\n\t\treturn errors.New(\"glProgramUniform4ui\")\n\t}\n\tgpProgramUniform4ui64ARB = (C.GPPROGRAMUNIFORM4UI64ARB)(getProcAddr(\"glProgramUniform4ui64ARB\"))\n\tgpProgramUniform4ui64NV = (C.GPPROGRAMUNIFORM4UI64NV)(getProcAddr(\"glProgramUniform4ui64NV\"))\n\tgpProgramUniform4ui64vARB = (C.GPPROGRAMUNIFORM4UI64VARB)(getProcAddr(\"glProgramUniform4ui64vARB\"))\n\tgpProgramUniform4ui64vNV = (C.GPPROGRAMUNIFORM4UI64VNV)(getProcAddr(\"glProgramUniform4ui64vNV\"))\n\tgpProgramUniform4uiEXT = (C.GPPROGRAMUNIFORM4UIEXT)(getProcAddr(\"glProgramUniform4uiEXT\"))\n\tgpProgramUniform4uiv = (C.GPPROGRAMUNIFORM4UIV)(getProcAddr(\"glProgramUniform4uiv\"))\n\tif gpProgramUniform4uiv == nil {\n\t\treturn errors.New(\"glProgramUniform4uiv\")\n\t}\n\tgpProgramUniform4uivEXT = (C.GPPROGRAMUNIFORM4UIVEXT)(getProcAddr(\"glProgramUniform4uivEXT\"))\n\tgpProgramUniformHandleui64ARB = (C.GPPROGRAMUNIFORMHANDLEUI64ARB)(getProcAddr(\"glProgramUniformHandleui64ARB\"))\n\tgpProgramUniformHandleui64NV = (C.GPPROGRAMUNIFORMHANDLEUI64NV)(getProcAddr(\"glProgramUniformHandleui64NV\"))\n\tgpProgramUniformHandleui64vARB = (C.GPPROGRAMUNIFORMHANDLEUI64VARB)(getProcAddr(\"glProgramUniformHandleui64vARB\"))\n\tgpProgramUniformHandleui64vNV = (C.GPPROGRAMUNIFORMHANDLEUI64VNV)(getProcAddr(\"glProgramUniformHandleui64vNV\"))\n\tgpProgramUniformMatrix2dv = (C.GPPROGRAMUNIFORMMATRIX2DV)(getProcAddr(\"glProgramUniformMatrix2dv\"))\n\tif gpProgramUniformMatrix2dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix2dv\")\n\t}\n\tgpProgramUniformMatrix2dvEXT = (C.GPPROGRAMUNIFORMMATRIX2DVEXT)(getProcAddr(\"glProgramUniformMatrix2dvEXT\"))\n\tgpProgramUniformMatrix2fv = (C.GPPROGRAMUNIFORMMATRIX2FV)(getProcAddr(\"glProgramUniformMatrix2fv\"))\n\tif gpProgramUniformMatrix2fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix2fv\")\n\t}\n\tgpProgramUniformMatrix2fvEXT = (C.GPPROGRAMUNIFORMMATRIX2FVEXT)(getProcAddr(\"glProgramUniformMatrix2fvEXT\"))\n\tgpProgramUniformMatrix2x3dv = (C.GPPROGRAMUNIFORMMATRIX2X3DV)(getProcAddr(\"glProgramUniformMatrix2x3dv\"))\n\tif gpProgramUniformMatrix2x3dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix2x3dv\")\n\t}\n\tgpProgramUniformMatrix2x3dvEXT = (C.GPPROGRAMUNIFORMMATRIX2X3DVEXT)(getProcAddr(\"glProgramUniformMatrix2x3dvEXT\"))\n\tgpProgramUniformMatrix2x3fv = (C.GPPROGRAMUNIFORMMATRIX2X3FV)(getProcAddr(\"glProgramUniformMatrix2x3fv\"))\n\tif gpProgramUniformMatrix2x3fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix2x3fv\")\n\t}\n\tgpProgramUniformMatrix2x3fvEXT = (C.GPPROGRAMUNIFORMMATRIX2X3FVEXT)(getProcAddr(\"glProgramUniformMatrix2x3fvEXT\"))\n\tgpProgramUniformMatrix2x4dv = (C.GPPROGRAMUNIFORMMATRIX2X4DV)(getProcAddr(\"glProgramUniformMatrix2x4dv\"))\n\tif gpProgramUniformMatrix2x4dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix2x4dv\")\n\t}\n\tgpProgramUniformMatrix2x4dvEXT = (C.GPPROGRAMUNIFORMMATRIX2X4DVEXT)(getProcAddr(\"glProgramUniformMatrix2x4dvEXT\"))\n\tgpProgramUniformMatrix2x4fv = (C.GPPROGRAMUNIFORMMATRIX2X4FV)(getProcAddr(\"glProgramUniformMatrix2x4fv\"))\n\tif gpProgramUniformMatrix2x4fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix2x4fv\")\n\t}\n\tgpProgramUniformMatrix2x4fvEXT = (C.GPPROGRAMUNIFORMMATRIX2X4FVEXT)(getProcAddr(\"glProgramUniformMatrix2x4fvEXT\"))\n\tgpProgramUniformMatrix3dv = (C.GPPROGRAMUNIFORMMATRIX3DV)(getProcAddr(\"glProgramUniformMatrix3dv\"))\n\tif gpProgramUniformMatrix3dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix3dv\")\n\t}\n\tgpProgramUniformMatrix3dvEXT = (C.GPPROGRAMUNIFORMMATRIX3DVEXT)(getProcAddr(\"glProgramUniformMatrix3dvEXT\"))\n\tgpProgramUniformMatrix3fv = (C.GPPROGRAMUNIFORMMATRIX3FV)(getProcAddr(\"glProgramUniformMatrix3fv\"))\n\tif gpProgramUniformMatrix3fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix3fv\")\n\t}\n\tgpProgramUniformMatrix3fvEXT = (C.GPPROGRAMUNIFORMMATRIX3FVEXT)(getProcAddr(\"glProgramUniformMatrix3fvEXT\"))\n\tgpProgramUniformMatrix3x2dv = (C.GPPROGRAMUNIFORMMATRIX3X2DV)(getProcAddr(\"glProgramUniformMatrix3x2dv\"))\n\tif gpProgramUniformMatrix3x2dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix3x2dv\")\n\t}\n\tgpProgramUniformMatrix3x2dvEXT = (C.GPPROGRAMUNIFORMMATRIX3X2DVEXT)(getProcAddr(\"glProgramUniformMatrix3x2dvEXT\"))\n\tgpProgramUniformMatrix3x2fv = (C.GPPROGRAMUNIFORMMATRIX3X2FV)(getProcAddr(\"glProgramUniformMatrix3x2fv\"))\n\tif gpProgramUniformMatrix3x2fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix3x2fv\")\n\t}\n\tgpProgramUniformMatrix3x2fvEXT = (C.GPPROGRAMUNIFORMMATRIX3X2FVEXT)(getProcAddr(\"glProgramUniformMatrix3x2fvEXT\"))\n\tgpProgramUniformMatrix3x4dv = (C.GPPROGRAMUNIFORMMATRIX3X4DV)(getProcAddr(\"glProgramUniformMatrix3x4dv\"))\n\tif gpProgramUniformMatrix3x4dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix3x4dv\")\n\t}\n\tgpProgramUniformMatrix3x4dvEXT = (C.GPPROGRAMUNIFORMMATRIX3X4DVEXT)(getProcAddr(\"glProgramUniformMatrix3x4dvEXT\"))\n\tgpProgramUniformMatrix3x4fv = (C.GPPROGRAMUNIFORMMATRIX3X4FV)(getProcAddr(\"glProgramUniformMatrix3x4fv\"))\n\tif gpProgramUniformMatrix3x4fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix3x4fv\")\n\t}\n\tgpProgramUniformMatrix3x4fvEXT = (C.GPPROGRAMUNIFORMMATRIX3X4FVEXT)(getProcAddr(\"glProgramUniformMatrix3x4fvEXT\"))\n\tgpProgramUniformMatrix4dv = (C.GPPROGRAMUNIFORMMATRIX4DV)(getProcAddr(\"glProgramUniformMatrix4dv\"))\n\tif gpProgramUniformMatrix4dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix4dv\")\n\t}\n\tgpProgramUniformMatrix4dvEXT = (C.GPPROGRAMUNIFORMMATRIX4DVEXT)(getProcAddr(\"glProgramUniformMatrix4dvEXT\"))\n\tgpProgramUniformMatrix4fv = (C.GPPROGRAMUNIFORMMATRIX4FV)(getProcAddr(\"glProgramUniformMatrix4fv\"))\n\tif gpProgramUniformMatrix4fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix4fv\")\n\t}\n\tgpProgramUniformMatrix4fvEXT = (C.GPPROGRAMUNIFORMMATRIX4FVEXT)(getProcAddr(\"glProgramUniformMatrix4fvEXT\"))\n\tgpProgramUniformMatrix4x2dv = (C.GPPROGRAMUNIFORMMATRIX4X2DV)(getProcAddr(\"glProgramUniformMatrix4x2dv\"))\n\tif gpProgramUniformMatrix4x2dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix4x2dv\")\n\t}\n\tgpProgramUniformMatrix4x2dvEXT = (C.GPPROGRAMUNIFORMMATRIX4X2DVEXT)(getProcAddr(\"glProgramUniformMatrix4x2dvEXT\"))\n\tgpProgramUniformMatrix4x2fv = (C.GPPROGRAMUNIFORMMATRIX4X2FV)(getProcAddr(\"glProgramUniformMatrix4x2fv\"))\n\tif gpProgramUniformMatrix4x2fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix4x2fv\")\n\t}\n\tgpProgramUniformMatrix4x2fvEXT = (C.GPPROGRAMUNIFORMMATRIX4X2FVEXT)(getProcAddr(\"glProgramUniformMatrix4x2fvEXT\"))\n\tgpProgramUniformMatrix4x3dv = (C.GPPROGRAMUNIFORMMATRIX4X3DV)(getProcAddr(\"glProgramUniformMatrix4x3dv\"))\n\tif gpProgramUniformMatrix4x3dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix4x3dv\")\n\t}\n\tgpProgramUniformMatrix4x3dvEXT = (C.GPPROGRAMUNIFORMMATRIX4X3DVEXT)(getProcAddr(\"glProgramUniformMatrix4x3dvEXT\"))\n\tgpProgramUniformMatrix4x3fv = (C.GPPROGRAMUNIFORMMATRIX4X3FV)(getProcAddr(\"glProgramUniformMatrix4x3fv\"))\n\tif gpProgramUniformMatrix4x3fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix4x3fv\")\n\t}\n\tgpProgramUniformMatrix4x3fvEXT = (C.GPPROGRAMUNIFORMMATRIX4X3FVEXT)(getProcAddr(\"glProgramUniformMatrix4x3fvEXT\"))\n\tgpProgramUniformui64NV = (C.GPPROGRAMUNIFORMUI64NV)(getProcAddr(\"glProgramUniformui64NV\"))\n\tgpProgramUniformui64vNV = (C.GPPROGRAMUNIFORMUI64VNV)(getProcAddr(\"glProgramUniformui64vNV\"))\n\tgpProgramVertexLimitNV = (C.GPPROGRAMVERTEXLIMITNV)(getProcAddr(\"glProgramVertexLimitNV\"))\n\tgpProvokingVertex = (C.GPPROVOKINGVERTEX)(getProcAddr(\"glProvokingVertex\"))\n\tif gpProvokingVertex == nil {\n\t\treturn errors.New(\"glProvokingVertex\")\n\t}\n\tgpProvokingVertexEXT = (C.GPPROVOKINGVERTEXEXT)(getProcAddr(\"glProvokingVertexEXT\"))\n\tgpPushAttrib = (C.GPPUSHATTRIB)(getProcAddr(\"glPushAttrib\"))\n\tif gpPushAttrib == nil {\n\t\treturn errors.New(\"glPushAttrib\")\n\t}\n\tgpPushClientAttrib = (C.GPPUSHCLIENTATTRIB)(getProcAddr(\"glPushClientAttrib\"))\n\tif gpPushClientAttrib == nil {\n\t\treturn errors.New(\"glPushClientAttrib\")\n\t}\n\tgpPushClientAttribDefaultEXT = (C.GPPUSHCLIENTATTRIBDEFAULTEXT)(getProcAddr(\"glPushClientAttribDefaultEXT\"))\n\tgpPushDebugGroup = (C.GPPUSHDEBUGGROUP)(getProcAddr(\"glPushDebugGroup\"))\n\tif gpPushDebugGroup == nil {\n\t\treturn errors.New(\"glPushDebugGroup\")\n\t}\n\tgpPushDebugGroupKHR = (C.GPPUSHDEBUGGROUPKHR)(getProcAddr(\"glPushDebugGroupKHR\"))\n\tgpPushGroupMarkerEXT = (C.GPPUSHGROUPMARKEREXT)(getProcAddr(\"glPushGroupMarkerEXT\"))\n\tgpPushMatrix = (C.GPPUSHMATRIX)(getProcAddr(\"glPushMatrix\"))\n\tif gpPushMatrix == nil {\n\t\treturn errors.New(\"glPushMatrix\")\n\t}\n\tgpPushName = (C.GPPUSHNAME)(getProcAddr(\"glPushName\"))\n\tif gpPushName == nil {\n\t\treturn errors.New(\"glPushName\")\n\t}\n\tgpQueryCounter = (C.GPQUERYCOUNTER)(getProcAddr(\"glQueryCounter\"))\n\tif gpQueryCounter == nil {\n\t\treturn errors.New(\"glQueryCounter\")\n\t}\n\tgpQueryMatrixxOES = (C.GPQUERYMATRIXXOES)(getProcAddr(\"glQueryMatrixxOES\"))\n\tgpQueryObjectParameteruiAMD = (C.GPQUERYOBJECTPARAMETERUIAMD)(getProcAddr(\"glQueryObjectParameteruiAMD\"))\n\tgpQueryResourceNV = (C.GPQUERYRESOURCENV)(getProcAddr(\"glQueryResourceNV\"))\n\tgpQueryResourceTagNV = (C.GPQUERYRESOURCETAGNV)(getProcAddr(\"glQueryResourceTagNV\"))\n\tgpRasterPos2d = (C.GPRASTERPOS2D)(getProcAddr(\"glRasterPos2d\"))\n\tif gpRasterPos2d == nil {\n\t\treturn errors.New(\"glRasterPos2d\")\n\t}\n\tgpRasterPos2dv = (C.GPRASTERPOS2DV)(getProcAddr(\"glRasterPos2dv\"))\n\tif gpRasterPos2dv == nil {\n\t\treturn errors.New(\"glRasterPos2dv\")\n\t}\n\tgpRasterPos2f = (C.GPRASTERPOS2F)(getProcAddr(\"glRasterPos2f\"))\n\tif gpRasterPos2f == nil {\n\t\treturn errors.New(\"glRasterPos2f\")\n\t}\n\tgpRasterPos2fv = (C.GPRASTERPOS2FV)(getProcAddr(\"glRasterPos2fv\"))\n\tif gpRasterPos2fv == nil {\n\t\treturn errors.New(\"glRasterPos2fv\")\n\t}\n\tgpRasterPos2i = (C.GPRASTERPOS2I)(getProcAddr(\"glRasterPos2i\"))\n\tif gpRasterPos2i == nil {\n\t\treturn errors.New(\"glRasterPos2i\")\n\t}\n\tgpRasterPos2iv = (C.GPRASTERPOS2IV)(getProcAddr(\"glRasterPos2iv\"))\n\tif gpRasterPos2iv == nil {\n\t\treturn errors.New(\"glRasterPos2iv\")\n\t}\n\tgpRasterPos2s = (C.GPRASTERPOS2S)(getProcAddr(\"glRasterPos2s\"))\n\tif gpRasterPos2s == nil {\n\t\treturn errors.New(\"glRasterPos2s\")\n\t}\n\tgpRasterPos2sv = (C.GPRASTERPOS2SV)(getProcAddr(\"glRasterPos2sv\"))\n\tif gpRasterPos2sv == nil {\n\t\treturn errors.New(\"glRasterPos2sv\")\n\t}\n\tgpRasterPos2xOES = (C.GPRASTERPOS2XOES)(getProcAddr(\"glRasterPos2xOES\"))\n\tgpRasterPos2xvOES = (C.GPRASTERPOS2XVOES)(getProcAddr(\"glRasterPos2xvOES\"))\n\tgpRasterPos3d = (C.GPRASTERPOS3D)(getProcAddr(\"glRasterPos3d\"))\n\tif gpRasterPos3d == nil {\n\t\treturn errors.New(\"glRasterPos3d\")\n\t}\n\tgpRasterPos3dv = (C.GPRASTERPOS3DV)(getProcAddr(\"glRasterPos3dv\"))\n\tif gpRasterPos3dv == nil {\n\t\treturn errors.New(\"glRasterPos3dv\")\n\t}\n\tgpRasterPos3f = (C.GPRASTERPOS3F)(getProcAddr(\"glRasterPos3f\"))\n\tif gpRasterPos3f == nil {\n\t\treturn errors.New(\"glRasterPos3f\")\n\t}\n\tgpRasterPos3fv = (C.GPRASTERPOS3FV)(getProcAddr(\"glRasterPos3fv\"))\n\tif gpRasterPos3fv == nil {\n\t\treturn errors.New(\"glRasterPos3fv\")\n\t}\n\tgpRasterPos3i = (C.GPRASTERPOS3I)(getProcAddr(\"glRasterPos3i\"))\n\tif gpRasterPos3i == nil {\n\t\treturn errors.New(\"glRasterPos3i\")\n\t}\n\tgpRasterPos3iv = (C.GPRASTERPOS3IV)(getProcAddr(\"glRasterPos3iv\"))\n\tif gpRasterPos3iv == nil {\n\t\treturn errors.New(\"glRasterPos3iv\")\n\t}\n\tgpRasterPos3s = (C.GPRASTERPOS3S)(getProcAddr(\"glRasterPos3s\"))\n\tif gpRasterPos3s == nil {\n\t\treturn errors.New(\"glRasterPos3s\")\n\t}\n\tgpRasterPos3sv = (C.GPRASTERPOS3SV)(getProcAddr(\"glRasterPos3sv\"))\n\tif gpRasterPos3sv == nil {\n\t\treturn errors.New(\"glRasterPos3sv\")\n\t}\n\tgpRasterPos3xOES = (C.GPRASTERPOS3XOES)(getProcAddr(\"glRasterPos3xOES\"))\n\tgpRasterPos3xvOES = (C.GPRASTERPOS3XVOES)(getProcAddr(\"glRasterPos3xvOES\"))\n\tgpRasterPos4d = (C.GPRASTERPOS4D)(getProcAddr(\"glRasterPos4d\"))\n\tif gpRasterPos4d == nil {\n\t\treturn errors.New(\"glRasterPos4d\")\n\t}\n\tgpRasterPos4dv = (C.GPRASTERPOS4DV)(getProcAddr(\"glRasterPos4dv\"))\n\tif gpRasterPos4dv == nil {\n\t\treturn errors.New(\"glRasterPos4dv\")\n\t}\n\tgpRasterPos4f = (C.GPRASTERPOS4F)(getProcAddr(\"glRasterPos4f\"))\n\tif gpRasterPos4f == nil {\n\t\treturn errors.New(\"glRasterPos4f\")\n\t}\n\tgpRasterPos4fv = (C.GPRASTERPOS4FV)(getProcAddr(\"glRasterPos4fv\"))\n\tif gpRasterPos4fv == nil {\n\t\treturn errors.New(\"glRasterPos4fv\")\n\t}\n\tgpRasterPos4i = (C.GPRASTERPOS4I)(getProcAddr(\"glRasterPos4i\"))\n\tif gpRasterPos4i == nil {\n\t\treturn errors.New(\"glRasterPos4i\")\n\t}\n\tgpRasterPos4iv = (C.GPRASTERPOS4IV)(getProcAddr(\"glRasterPos4iv\"))\n\tif gpRasterPos4iv == nil {\n\t\treturn errors.New(\"glRasterPos4iv\")\n\t}\n\tgpRasterPos4s = (C.GPRASTERPOS4S)(getProcAddr(\"glRasterPos4s\"))\n\tif gpRasterPos4s == nil {\n\t\treturn errors.New(\"glRasterPos4s\")\n\t}\n\tgpRasterPos4sv = (C.GPRASTERPOS4SV)(getProcAddr(\"glRasterPos4sv\"))\n\tif gpRasterPos4sv == nil {\n\t\treturn errors.New(\"glRasterPos4sv\")\n\t}\n\tgpRasterPos4xOES = (C.GPRASTERPOS4XOES)(getProcAddr(\"glRasterPos4xOES\"))\n\tgpRasterPos4xvOES = (C.GPRASTERPOS4XVOES)(getProcAddr(\"glRasterPos4xvOES\"))\n\tgpRasterSamplesEXT = (C.GPRASTERSAMPLESEXT)(getProcAddr(\"glRasterSamplesEXT\"))\n\tgpReadBuffer = (C.GPREADBUFFER)(getProcAddr(\"glReadBuffer\"))\n\tif gpReadBuffer == nil {\n\t\treturn errors.New(\"glReadBuffer\")\n\t}\n\tgpReadInstrumentsSGIX = (C.GPREADINSTRUMENTSSGIX)(getProcAddr(\"glReadInstrumentsSGIX\"))\n\tgpReadPixels = (C.GPREADPIXELS)(getProcAddr(\"glReadPixels\"))\n\tif gpReadPixels == nil {\n\t\treturn errors.New(\"glReadPixels\")\n\t}\n\tgpReadnPixels = (C.GPREADNPIXELS)(getProcAddr(\"glReadnPixels\"))\n\tgpReadnPixelsARB = (C.GPREADNPIXELSARB)(getProcAddr(\"glReadnPixelsARB\"))\n\tgpReadnPixelsKHR = (C.GPREADNPIXELSKHR)(getProcAddr(\"glReadnPixelsKHR\"))\n\tgpRectd = (C.GPRECTD)(getProcAddr(\"glRectd\"))\n\tif gpRectd == nil {\n\t\treturn errors.New(\"glRectd\")\n\t}\n\tgpRectdv = (C.GPRECTDV)(getProcAddr(\"glRectdv\"))\n\tif gpRectdv == nil {\n\t\treturn errors.New(\"glRectdv\")\n\t}\n\tgpRectf = (C.GPRECTF)(getProcAddr(\"glRectf\"))\n\tif gpRectf == nil {\n\t\treturn errors.New(\"glRectf\")\n\t}\n\tgpRectfv = (C.GPRECTFV)(getProcAddr(\"glRectfv\"))\n\tif gpRectfv == nil {\n\t\treturn errors.New(\"glRectfv\")\n\t}\n\tgpRecti = (C.GPRECTI)(getProcAddr(\"glRecti\"))\n\tif gpRecti == nil {\n\t\treturn errors.New(\"glRecti\")\n\t}\n\tgpRectiv = (C.GPRECTIV)(getProcAddr(\"glRectiv\"))\n\tif gpRectiv == nil {\n\t\treturn errors.New(\"glRectiv\")\n\t}\n\tgpRects = (C.GPRECTS)(getProcAddr(\"glRects\"))\n\tif gpRects == nil {\n\t\treturn errors.New(\"glRects\")\n\t}\n\tgpRectsv = (C.GPRECTSV)(getProcAddr(\"glRectsv\"))\n\tif gpRectsv == nil {\n\t\treturn errors.New(\"glRectsv\")\n\t}\n\tgpRectxOES = (C.GPRECTXOES)(getProcAddr(\"glRectxOES\"))\n\tgpRectxvOES = (C.GPRECTXVOES)(getProcAddr(\"glRectxvOES\"))\n\tgpReferencePlaneSGIX = (C.GPREFERENCEPLANESGIX)(getProcAddr(\"glReferencePlaneSGIX\"))\n\tgpReleaseKeyedMutexWin32EXT = (C.GPRELEASEKEYEDMUTEXWIN32EXT)(getProcAddr(\"glReleaseKeyedMutexWin32EXT\"))\n\tgpReleaseShaderCompiler = (C.GPRELEASESHADERCOMPILER)(getProcAddr(\"glReleaseShaderCompiler\"))\n\tif gpReleaseShaderCompiler == nil {\n\t\treturn errors.New(\"glReleaseShaderCompiler\")\n\t}\n\tgpRenderGpuMaskNV = (C.GPRENDERGPUMASKNV)(getProcAddr(\"glRenderGpuMaskNV\"))\n\tgpRenderMode = (C.GPRENDERMODE)(getProcAddr(\"glRenderMode\"))\n\tif gpRenderMode == nil {\n\t\treturn errors.New(\"glRenderMode\")\n\t}\n\tgpRenderbufferStorage = (C.GPRENDERBUFFERSTORAGE)(getProcAddr(\"glRenderbufferStorage\"))\n\tif gpRenderbufferStorage == nil {\n\t\treturn errors.New(\"glRenderbufferStorage\")\n\t}\n\tgpRenderbufferStorageEXT = (C.GPRENDERBUFFERSTORAGEEXT)(getProcAddr(\"glRenderbufferStorageEXT\"))\n\tgpRenderbufferStorageMultisample = (C.GPRENDERBUFFERSTORAGEMULTISAMPLE)(getProcAddr(\"glRenderbufferStorageMultisample\"))\n\tif gpRenderbufferStorageMultisample == nil {\n\t\treturn errors.New(\"glRenderbufferStorageMultisample\")\n\t}\n\tgpRenderbufferStorageMultisampleAdvancedAMD = (C.GPRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMD)(getProcAddr(\"glRenderbufferStorageMultisampleAdvancedAMD\"))\n\tgpRenderbufferStorageMultisampleCoverageNV = (C.GPRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENV)(getProcAddr(\"glRenderbufferStorageMultisampleCoverageNV\"))\n\tgpRenderbufferStorageMultisampleEXT = (C.GPRENDERBUFFERSTORAGEMULTISAMPLEEXT)(getProcAddr(\"glRenderbufferStorageMultisampleEXT\"))\n\tgpReplacementCodePointerSUN = (C.GPREPLACEMENTCODEPOINTERSUN)(getProcAddr(\"glReplacementCodePointerSUN\"))\n\tgpReplacementCodeubSUN = (C.GPREPLACEMENTCODEUBSUN)(getProcAddr(\"glReplacementCodeubSUN\"))\n\tgpReplacementCodeubvSUN = (C.GPREPLACEMENTCODEUBVSUN)(getProcAddr(\"glReplacementCodeubvSUN\"))\n\tgpReplacementCodeuiColor3fVertex3fSUN = (C.GPREPLACEMENTCODEUICOLOR3FVERTEX3FSUN)(getProcAddr(\"glReplacementCodeuiColor3fVertex3fSUN\"))\n\tgpReplacementCodeuiColor3fVertex3fvSUN = (C.GPREPLACEMENTCODEUICOLOR3FVERTEX3FVSUN)(getProcAddr(\"glReplacementCodeuiColor3fVertex3fvSUN\"))\n\tgpReplacementCodeuiColor4fNormal3fVertex3fSUN = (C.GPREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUN)(getProcAddr(\"glReplacementCodeuiColor4fNormal3fVertex3fSUN\"))\n\tgpReplacementCodeuiColor4fNormal3fVertex3fvSUN = (C.GPREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUN)(getProcAddr(\"glReplacementCodeuiColor4fNormal3fVertex3fvSUN\"))\n\tgpReplacementCodeuiColor4ubVertex3fSUN = (C.GPREPLACEMENTCODEUICOLOR4UBVERTEX3FSUN)(getProcAddr(\"glReplacementCodeuiColor4ubVertex3fSUN\"))\n\tgpReplacementCodeuiColor4ubVertex3fvSUN = (C.GPREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUN)(getProcAddr(\"glReplacementCodeuiColor4ubVertex3fvSUN\"))\n\tgpReplacementCodeuiNormal3fVertex3fSUN = (C.GPREPLACEMENTCODEUINORMAL3FVERTEX3FSUN)(getProcAddr(\"glReplacementCodeuiNormal3fVertex3fSUN\"))\n\tgpReplacementCodeuiNormal3fVertex3fvSUN = (C.GPREPLACEMENTCODEUINORMAL3FVERTEX3FVSUN)(getProcAddr(\"glReplacementCodeuiNormal3fVertex3fvSUN\"))\n\tgpReplacementCodeuiSUN = (C.GPREPLACEMENTCODEUISUN)(getProcAddr(\"glReplacementCodeuiSUN\"))\n\tgpReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN = (C.GPREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUN)(getProcAddr(\"glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN\"))\n\tgpReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN = (C.GPREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUN)(getProcAddr(\"glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN\"))\n\tgpReplacementCodeuiTexCoord2fNormal3fVertex3fSUN = (C.GPREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUN)(getProcAddr(\"glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN\"))\n\tgpReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN = (C.GPREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUN)(getProcAddr(\"glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN\"))\n\tgpReplacementCodeuiTexCoord2fVertex3fSUN = (C.GPREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUN)(getProcAddr(\"glReplacementCodeuiTexCoord2fVertex3fSUN\"))\n\tgpReplacementCodeuiTexCoord2fVertex3fvSUN = (C.GPREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUN)(getProcAddr(\"glReplacementCodeuiTexCoord2fVertex3fvSUN\"))\n\tgpReplacementCodeuiVertex3fSUN = (C.GPREPLACEMENTCODEUIVERTEX3FSUN)(getProcAddr(\"glReplacementCodeuiVertex3fSUN\"))\n\tgpReplacementCodeuiVertex3fvSUN = (C.GPREPLACEMENTCODEUIVERTEX3FVSUN)(getProcAddr(\"glReplacementCodeuiVertex3fvSUN\"))\n\tgpReplacementCodeuivSUN = (C.GPREPLACEMENTCODEUIVSUN)(getProcAddr(\"glReplacementCodeuivSUN\"))\n\tgpReplacementCodeusSUN = (C.GPREPLACEMENTCODEUSSUN)(getProcAddr(\"glReplacementCodeusSUN\"))\n\tgpReplacementCodeusvSUN = (C.GPREPLACEMENTCODEUSVSUN)(getProcAddr(\"glReplacementCodeusvSUN\"))\n\tgpRequestResidentProgramsNV = (C.GPREQUESTRESIDENTPROGRAMSNV)(getProcAddr(\"glRequestResidentProgramsNV\"))\n\tgpResetHistogram = (C.GPRESETHISTOGRAM)(getProcAddr(\"glResetHistogram\"))\n\tgpResetHistogramEXT = (C.GPRESETHISTOGRAMEXT)(getProcAddr(\"glResetHistogramEXT\"))\n\tgpResetMemoryObjectParameterNV = (C.GPRESETMEMORYOBJECTPARAMETERNV)(getProcAddr(\"glResetMemoryObjectParameterNV\"))\n\tgpResetMinmax = (C.GPRESETMINMAX)(getProcAddr(\"glResetMinmax\"))\n\tgpResetMinmaxEXT = (C.GPRESETMINMAXEXT)(getProcAddr(\"glResetMinmaxEXT\"))\n\tgpResizeBuffersMESA = (C.GPRESIZEBUFFERSMESA)(getProcAddr(\"glResizeBuffersMESA\"))\n\tgpResolveDepthValuesNV = (C.GPRESOLVEDEPTHVALUESNV)(getProcAddr(\"glResolveDepthValuesNV\"))\n\tgpResumeTransformFeedback = (C.GPRESUMETRANSFORMFEEDBACK)(getProcAddr(\"glResumeTransformFeedback\"))\n\tif gpResumeTransformFeedback == nil {\n\t\treturn errors.New(\"glResumeTransformFeedback\")\n\t}\n\tgpResumeTransformFeedbackNV = (C.GPRESUMETRANSFORMFEEDBACKNV)(getProcAddr(\"glResumeTransformFeedbackNV\"))\n\tgpRotated = (C.GPROTATED)(getProcAddr(\"glRotated\"))\n\tif gpRotated == nil {\n\t\treturn errors.New(\"glRotated\")\n\t}\n\tgpRotatef = (C.GPROTATEF)(getProcAddr(\"glRotatef\"))\n\tif gpRotatef == nil {\n\t\treturn errors.New(\"glRotatef\")\n\t}\n\tgpRotatexOES = (C.GPROTATEXOES)(getProcAddr(\"glRotatexOES\"))\n\tgpSampleCoverage = (C.GPSAMPLECOVERAGE)(getProcAddr(\"glSampleCoverage\"))\n\tif gpSampleCoverage == nil {\n\t\treturn errors.New(\"glSampleCoverage\")\n\t}\n\tgpSampleCoverageARB = (C.GPSAMPLECOVERAGEARB)(getProcAddr(\"glSampleCoverageARB\"))\n\tgpSampleCoveragexOES = (C.GPSAMPLECOVERAGEXOES)(getProcAddr(\"glSampleCoveragexOES\"))\n\tgpSampleMapATI = (C.GPSAMPLEMAPATI)(getProcAddr(\"glSampleMapATI\"))\n\tgpSampleMaskEXT = (C.GPSAMPLEMASKEXT)(getProcAddr(\"glSampleMaskEXT\"))\n\tgpSampleMaskIndexedNV = (C.GPSAMPLEMASKINDEXEDNV)(getProcAddr(\"glSampleMaskIndexedNV\"))\n\tgpSampleMaskSGIS = (C.GPSAMPLEMASKSGIS)(getProcAddr(\"glSampleMaskSGIS\"))\n\tgpSampleMaski = (C.GPSAMPLEMASKI)(getProcAddr(\"glSampleMaski\"))\n\tif gpSampleMaski == nil {\n\t\treturn errors.New(\"glSampleMaski\")\n\t}\n\tgpSamplePatternEXT = (C.GPSAMPLEPATTERNEXT)(getProcAddr(\"glSamplePatternEXT\"))\n\tgpSamplePatternSGIS = (C.GPSAMPLEPATTERNSGIS)(getProcAddr(\"glSamplePatternSGIS\"))\n\tgpSamplerParameterIiv = (C.GPSAMPLERPARAMETERIIV)(getProcAddr(\"glSamplerParameterIiv\"))\n\tif gpSamplerParameterIiv == nil {\n\t\treturn errors.New(\"glSamplerParameterIiv\")\n\t}\n\tgpSamplerParameterIuiv = (C.GPSAMPLERPARAMETERIUIV)(getProcAddr(\"glSamplerParameterIuiv\"))\n\tif gpSamplerParameterIuiv == nil {\n\t\treturn errors.New(\"glSamplerParameterIuiv\")\n\t}\n\tgpSamplerParameterf = (C.GPSAMPLERPARAMETERF)(getProcAddr(\"glSamplerParameterf\"))\n\tif gpSamplerParameterf == nil {\n\t\treturn errors.New(\"glSamplerParameterf\")\n\t}\n\tgpSamplerParameterfv = (C.GPSAMPLERPARAMETERFV)(getProcAddr(\"glSamplerParameterfv\"))\n\tif gpSamplerParameterfv == nil {\n\t\treturn errors.New(\"glSamplerParameterfv\")\n\t}\n\tgpSamplerParameteri = (C.GPSAMPLERPARAMETERI)(getProcAddr(\"glSamplerParameteri\"))\n\tif gpSamplerParameteri == nil {\n\t\treturn errors.New(\"glSamplerParameteri\")\n\t}\n\tgpSamplerParameteriv = (C.GPSAMPLERPARAMETERIV)(getProcAddr(\"glSamplerParameteriv\"))\n\tif gpSamplerParameteriv == nil {\n\t\treturn errors.New(\"glSamplerParameteriv\")\n\t}\n\tgpScaled = (C.GPSCALED)(getProcAddr(\"glScaled\"))\n\tif gpScaled == nil {\n\t\treturn errors.New(\"glScaled\")\n\t}\n\tgpScalef = (C.GPSCALEF)(getProcAddr(\"glScalef\"))\n\tif gpScalef == nil {\n\t\treturn errors.New(\"glScalef\")\n\t}\n\tgpScalexOES = (C.GPSCALEXOES)(getProcAddr(\"glScalexOES\"))\n\tgpScissor = (C.GPSCISSOR)(getProcAddr(\"glScissor\"))\n\tif gpScissor == nil {\n\t\treturn errors.New(\"glScissor\")\n\t}\n\tgpScissorArrayv = (C.GPSCISSORARRAYV)(getProcAddr(\"glScissorArrayv\"))\n\tif gpScissorArrayv == nil {\n\t\treturn errors.New(\"glScissorArrayv\")\n\t}\n\tgpScissorExclusiveArrayvNV = (C.GPSCISSOREXCLUSIVEARRAYVNV)(getProcAddr(\"glScissorExclusiveArrayvNV\"))\n\tgpScissorExclusiveNV = (C.GPSCISSOREXCLUSIVENV)(getProcAddr(\"glScissorExclusiveNV\"))\n\tgpScissorIndexed = (C.GPSCISSORINDEXED)(getProcAddr(\"glScissorIndexed\"))\n\tif gpScissorIndexed == nil {\n\t\treturn errors.New(\"glScissorIndexed\")\n\t}\n\tgpScissorIndexedv = (C.GPSCISSORINDEXEDV)(getProcAddr(\"glScissorIndexedv\"))\n\tif gpScissorIndexedv == nil {\n\t\treturn errors.New(\"glScissorIndexedv\")\n\t}\n\tgpSecondaryColor3b = (C.GPSECONDARYCOLOR3B)(getProcAddr(\"glSecondaryColor3b\"))\n\tif gpSecondaryColor3b == nil {\n\t\treturn errors.New(\"glSecondaryColor3b\")\n\t}\n\tgpSecondaryColor3bEXT = (C.GPSECONDARYCOLOR3BEXT)(getProcAddr(\"glSecondaryColor3bEXT\"))\n\tgpSecondaryColor3bv = (C.GPSECONDARYCOLOR3BV)(getProcAddr(\"glSecondaryColor3bv\"))\n\tif gpSecondaryColor3bv == nil {\n\t\treturn errors.New(\"glSecondaryColor3bv\")\n\t}\n\tgpSecondaryColor3bvEXT = (C.GPSECONDARYCOLOR3BVEXT)(getProcAddr(\"glSecondaryColor3bvEXT\"))\n\tgpSecondaryColor3d = (C.GPSECONDARYCOLOR3D)(getProcAddr(\"glSecondaryColor3d\"))\n\tif gpSecondaryColor3d == nil {\n\t\treturn errors.New(\"glSecondaryColor3d\")\n\t}\n\tgpSecondaryColor3dEXT = (C.GPSECONDARYCOLOR3DEXT)(getProcAddr(\"glSecondaryColor3dEXT\"))\n\tgpSecondaryColor3dv = (C.GPSECONDARYCOLOR3DV)(getProcAddr(\"glSecondaryColor3dv\"))\n\tif gpSecondaryColor3dv == nil {\n\t\treturn errors.New(\"glSecondaryColor3dv\")\n\t}\n\tgpSecondaryColor3dvEXT = (C.GPSECONDARYCOLOR3DVEXT)(getProcAddr(\"glSecondaryColor3dvEXT\"))\n\tgpSecondaryColor3f = (C.GPSECONDARYCOLOR3F)(getProcAddr(\"glSecondaryColor3f\"))\n\tif gpSecondaryColor3f == nil {\n\t\treturn errors.New(\"glSecondaryColor3f\")\n\t}\n\tgpSecondaryColor3fEXT = (C.GPSECONDARYCOLOR3FEXT)(getProcAddr(\"glSecondaryColor3fEXT\"))\n\tgpSecondaryColor3fv = (C.GPSECONDARYCOLOR3FV)(getProcAddr(\"glSecondaryColor3fv\"))\n\tif gpSecondaryColor3fv == nil {\n\t\treturn errors.New(\"glSecondaryColor3fv\")\n\t}\n\tgpSecondaryColor3fvEXT = (C.GPSECONDARYCOLOR3FVEXT)(getProcAddr(\"glSecondaryColor3fvEXT\"))\n\tgpSecondaryColor3hNV = (C.GPSECONDARYCOLOR3HNV)(getProcAddr(\"glSecondaryColor3hNV\"))\n\tgpSecondaryColor3hvNV = (C.GPSECONDARYCOLOR3HVNV)(getProcAddr(\"glSecondaryColor3hvNV\"))\n\tgpSecondaryColor3i = (C.GPSECONDARYCOLOR3I)(getProcAddr(\"glSecondaryColor3i\"))\n\tif gpSecondaryColor3i == nil {\n\t\treturn errors.New(\"glSecondaryColor3i\")\n\t}\n\tgpSecondaryColor3iEXT = (C.GPSECONDARYCOLOR3IEXT)(getProcAddr(\"glSecondaryColor3iEXT\"))\n\tgpSecondaryColor3iv = (C.GPSECONDARYCOLOR3IV)(getProcAddr(\"glSecondaryColor3iv\"))\n\tif gpSecondaryColor3iv == nil {\n\t\treturn errors.New(\"glSecondaryColor3iv\")\n\t}\n\tgpSecondaryColor3ivEXT = (C.GPSECONDARYCOLOR3IVEXT)(getProcAddr(\"glSecondaryColor3ivEXT\"))\n\tgpSecondaryColor3s = (C.GPSECONDARYCOLOR3S)(getProcAddr(\"glSecondaryColor3s\"))\n\tif gpSecondaryColor3s == nil {\n\t\treturn errors.New(\"glSecondaryColor3s\")\n\t}\n\tgpSecondaryColor3sEXT = (C.GPSECONDARYCOLOR3SEXT)(getProcAddr(\"glSecondaryColor3sEXT\"))\n\tgpSecondaryColor3sv = (C.GPSECONDARYCOLOR3SV)(getProcAddr(\"glSecondaryColor3sv\"))\n\tif gpSecondaryColor3sv == nil {\n\t\treturn errors.New(\"glSecondaryColor3sv\")\n\t}\n\tgpSecondaryColor3svEXT = (C.GPSECONDARYCOLOR3SVEXT)(getProcAddr(\"glSecondaryColor3svEXT\"))\n\tgpSecondaryColor3ub = (C.GPSECONDARYCOLOR3UB)(getProcAddr(\"glSecondaryColor3ub\"))\n\tif gpSecondaryColor3ub == nil {\n\t\treturn errors.New(\"glSecondaryColor3ub\")\n\t}\n\tgpSecondaryColor3ubEXT = (C.GPSECONDARYCOLOR3UBEXT)(getProcAddr(\"glSecondaryColor3ubEXT\"))\n\tgpSecondaryColor3ubv = (C.GPSECONDARYCOLOR3UBV)(getProcAddr(\"glSecondaryColor3ubv\"))\n\tif gpSecondaryColor3ubv == nil {\n\t\treturn errors.New(\"glSecondaryColor3ubv\")\n\t}\n\tgpSecondaryColor3ubvEXT = (C.GPSECONDARYCOLOR3UBVEXT)(getProcAddr(\"glSecondaryColor3ubvEXT\"))\n\tgpSecondaryColor3ui = (C.GPSECONDARYCOLOR3UI)(getProcAddr(\"glSecondaryColor3ui\"))\n\tif gpSecondaryColor3ui == nil {\n\t\treturn errors.New(\"glSecondaryColor3ui\")\n\t}\n\tgpSecondaryColor3uiEXT = (C.GPSECONDARYCOLOR3UIEXT)(getProcAddr(\"glSecondaryColor3uiEXT\"))\n\tgpSecondaryColor3uiv = (C.GPSECONDARYCOLOR3UIV)(getProcAddr(\"glSecondaryColor3uiv\"))\n\tif gpSecondaryColor3uiv == nil {\n\t\treturn errors.New(\"glSecondaryColor3uiv\")\n\t}\n\tgpSecondaryColor3uivEXT = (C.GPSECONDARYCOLOR3UIVEXT)(getProcAddr(\"glSecondaryColor3uivEXT\"))\n\tgpSecondaryColor3us = (C.GPSECONDARYCOLOR3US)(getProcAddr(\"glSecondaryColor3us\"))\n\tif gpSecondaryColor3us == nil {\n\t\treturn errors.New(\"glSecondaryColor3us\")\n\t}\n\tgpSecondaryColor3usEXT = (C.GPSECONDARYCOLOR3USEXT)(getProcAddr(\"glSecondaryColor3usEXT\"))\n\tgpSecondaryColor3usv = (C.GPSECONDARYCOLOR3USV)(getProcAddr(\"glSecondaryColor3usv\"))\n\tif gpSecondaryColor3usv == nil {\n\t\treturn errors.New(\"glSecondaryColor3usv\")\n\t}\n\tgpSecondaryColor3usvEXT = (C.GPSECONDARYCOLOR3USVEXT)(getProcAddr(\"glSecondaryColor3usvEXT\"))\n\tgpSecondaryColorFormatNV = (C.GPSECONDARYCOLORFORMATNV)(getProcAddr(\"glSecondaryColorFormatNV\"))\n\tgpSecondaryColorP3ui = (C.GPSECONDARYCOLORP3UI)(getProcAddr(\"glSecondaryColorP3ui\"))\n\tif gpSecondaryColorP3ui == nil {\n\t\treturn errors.New(\"glSecondaryColorP3ui\")\n\t}\n\tgpSecondaryColorP3uiv = (C.GPSECONDARYCOLORP3UIV)(getProcAddr(\"glSecondaryColorP3uiv\"))\n\tif gpSecondaryColorP3uiv == nil {\n\t\treturn errors.New(\"glSecondaryColorP3uiv\")\n\t}\n\tgpSecondaryColorPointer = (C.GPSECONDARYCOLORPOINTER)(getProcAddr(\"glSecondaryColorPointer\"))\n\tif gpSecondaryColorPointer == nil {\n\t\treturn errors.New(\"glSecondaryColorPointer\")\n\t}\n\tgpSecondaryColorPointerEXT = (C.GPSECONDARYCOLORPOINTEREXT)(getProcAddr(\"glSecondaryColorPointerEXT\"))\n\tgpSecondaryColorPointerListIBM = (C.GPSECONDARYCOLORPOINTERLISTIBM)(getProcAddr(\"glSecondaryColorPointerListIBM\"))\n\tgpSelectBuffer = (C.GPSELECTBUFFER)(getProcAddr(\"glSelectBuffer\"))\n\tif gpSelectBuffer == nil {\n\t\treturn errors.New(\"glSelectBuffer\")\n\t}\n\tgpSelectPerfMonitorCountersAMD = (C.GPSELECTPERFMONITORCOUNTERSAMD)(getProcAddr(\"glSelectPerfMonitorCountersAMD\"))\n\tgpSemaphoreParameterivNV = (C.GPSEMAPHOREPARAMETERIVNV)(getProcAddr(\"glSemaphoreParameterivNV\"))\n\tgpSemaphoreParameterui64vEXT = (C.GPSEMAPHOREPARAMETERUI64VEXT)(getProcAddr(\"glSemaphoreParameterui64vEXT\"))\n\tgpSeparableFilter2D = (C.GPSEPARABLEFILTER2D)(getProcAddr(\"glSeparableFilter2D\"))\n\tgpSeparableFilter2DEXT = (C.GPSEPARABLEFILTER2DEXT)(getProcAddr(\"glSeparableFilter2DEXT\"))\n\tgpSetFenceAPPLE = (C.GPSETFENCEAPPLE)(getProcAddr(\"glSetFenceAPPLE\"))\n\tgpSetFenceNV = (C.GPSETFENCENV)(getProcAddr(\"glSetFenceNV\"))\n\tgpSetFragmentShaderConstantATI = (C.GPSETFRAGMENTSHADERCONSTANTATI)(getProcAddr(\"glSetFragmentShaderConstantATI\"))\n\tgpSetInvariantEXT = (C.GPSETINVARIANTEXT)(getProcAddr(\"glSetInvariantEXT\"))\n\tgpSetLocalConstantEXT = (C.GPSETLOCALCONSTANTEXT)(getProcAddr(\"glSetLocalConstantEXT\"))\n\tgpSetMultisamplefvAMD = (C.GPSETMULTISAMPLEFVAMD)(getProcAddr(\"glSetMultisamplefvAMD\"))\n\tgpShadeModel = (C.GPSHADEMODEL)(getProcAddr(\"glShadeModel\"))\n\tif gpShadeModel == nil {\n\t\treturn errors.New(\"glShadeModel\")\n\t}\n\tgpShaderBinary = (C.GPSHADERBINARY)(getProcAddr(\"glShaderBinary\"))\n\tif gpShaderBinary == nil {\n\t\treturn errors.New(\"glShaderBinary\")\n\t}\n\tgpShaderOp1EXT = (C.GPSHADEROP1EXT)(getProcAddr(\"glShaderOp1EXT\"))\n\tgpShaderOp2EXT = (C.GPSHADEROP2EXT)(getProcAddr(\"glShaderOp2EXT\"))\n\tgpShaderOp3EXT = (C.GPSHADEROP3EXT)(getProcAddr(\"glShaderOp3EXT\"))\n\tgpShaderSource = (C.GPSHADERSOURCE)(getProcAddr(\"glShaderSource\"))\n\tif gpShaderSource == nil {\n\t\treturn errors.New(\"glShaderSource\")\n\t}\n\tgpShaderSourceARB = (C.GPSHADERSOURCEARB)(getProcAddr(\"glShaderSourceARB\"))\n\tgpShaderStorageBlockBinding = (C.GPSHADERSTORAGEBLOCKBINDING)(getProcAddr(\"glShaderStorageBlockBinding\"))\n\tif gpShaderStorageBlockBinding == nil {\n\t\treturn errors.New(\"glShaderStorageBlockBinding\")\n\t}\n\tgpShadingRateImageBarrierNV = (C.GPSHADINGRATEIMAGEBARRIERNV)(getProcAddr(\"glShadingRateImageBarrierNV\"))\n\tgpShadingRateImagePaletteNV = (C.GPSHADINGRATEIMAGEPALETTENV)(getProcAddr(\"glShadingRateImagePaletteNV\"))\n\tgpShadingRateSampleOrderCustomNV = (C.GPSHADINGRATESAMPLEORDERCUSTOMNV)(getProcAddr(\"glShadingRateSampleOrderCustomNV\"))\n\tgpShadingRateSampleOrderNV = (C.GPSHADINGRATESAMPLEORDERNV)(getProcAddr(\"glShadingRateSampleOrderNV\"))\n\tgpSharpenTexFuncSGIS = (C.GPSHARPENTEXFUNCSGIS)(getProcAddr(\"glSharpenTexFuncSGIS\"))\n\tgpSignalSemaphoreEXT = (C.GPSIGNALSEMAPHOREEXT)(getProcAddr(\"glSignalSemaphoreEXT\"))\n\tgpSignalSemaphoreui64NVX = (C.GPSIGNALSEMAPHOREUI64NVX)(getProcAddr(\"glSignalSemaphoreui64NVX\"))\n\tgpSignalVkFenceNV = (C.GPSIGNALVKFENCENV)(getProcAddr(\"glSignalVkFenceNV\"))\n\tgpSignalVkSemaphoreNV = (C.GPSIGNALVKSEMAPHORENV)(getProcAddr(\"glSignalVkSemaphoreNV\"))\n\tgpSpecializeShaderARB = (C.GPSPECIALIZESHADERARB)(getProcAddr(\"glSpecializeShaderARB\"))\n\tgpSpriteParameterfSGIX = (C.GPSPRITEPARAMETERFSGIX)(getProcAddr(\"glSpriteParameterfSGIX\"))\n\tgpSpriteParameterfvSGIX = (C.GPSPRITEPARAMETERFVSGIX)(getProcAddr(\"glSpriteParameterfvSGIX\"))\n\tgpSpriteParameteriSGIX = (C.GPSPRITEPARAMETERISGIX)(getProcAddr(\"glSpriteParameteriSGIX\"))\n\tgpSpriteParameterivSGIX = (C.GPSPRITEPARAMETERIVSGIX)(getProcAddr(\"glSpriteParameterivSGIX\"))\n\tgpStartInstrumentsSGIX = (C.GPSTARTINSTRUMENTSSGIX)(getProcAddr(\"glStartInstrumentsSGIX\"))\n\tgpStateCaptureNV = (C.GPSTATECAPTURENV)(getProcAddr(\"glStateCaptureNV\"))\n\tgpStencilClearTagEXT = (C.GPSTENCILCLEARTAGEXT)(getProcAddr(\"glStencilClearTagEXT\"))\n\tgpStencilFillPathInstancedNV = (C.GPSTENCILFILLPATHINSTANCEDNV)(getProcAddr(\"glStencilFillPathInstancedNV\"))\n\tgpStencilFillPathNV = (C.GPSTENCILFILLPATHNV)(getProcAddr(\"glStencilFillPathNV\"))\n\tgpStencilFunc = (C.GPSTENCILFUNC)(getProcAddr(\"glStencilFunc\"))\n\tif gpStencilFunc == nil {\n\t\treturn errors.New(\"glStencilFunc\")\n\t}\n\tgpStencilFuncSeparate = (C.GPSTENCILFUNCSEPARATE)(getProcAddr(\"glStencilFuncSeparate\"))\n\tif gpStencilFuncSeparate == nil {\n\t\treturn errors.New(\"glStencilFuncSeparate\")\n\t}\n\tgpStencilFuncSeparateATI = (C.GPSTENCILFUNCSEPARATEATI)(getProcAddr(\"glStencilFuncSeparateATI\"))\n\tgpStencilMask = (C.GPSTENCILMASK)(getProcAddr(\"glStencilMask\"))\n\tif gpStencilMask == nil {\n\t\treturn errors.New(\"glStencilMask\")\n\t}\n\tgpStencilMaskSeparate = (C.GPSTENCILMASKSEPARATE)(getProcAddr(\"glStencilMaskSeparate\"))\n\tif gpStencilMaskSeparate == nil {\n\t\treturn errors.New(\"glStencilMaskSeparate\")\n\t}\n\tgpStencilOp = (C.GPSTENCILOP)(getProcAddr(\"glStencilOp\"))\n\tif gpStencilOp == nil {\n\t\treturn errors.New(\"glStencilOp\")\n\t}\n\tgpStencilOpSeparate = (C.GPSTENCILOPSEPARATE)(getProcAddr(\"glStencilOpSeparate\"))\n\tif gpStencilOpSeparate == nil {\n\t\treturn errors.New(\"glStencilOpSeparate\")\n\t}\n\tgpStencilOpSeparateATI = (C.GPSTENCILOPSEPARATEATI)(getProcAddr(\"glStencilOpSeparateATI\"))\n\tgpStencilOpValueAMD = (C.GPSTENCILOPVALUEAMD)(getProcAddr(\"glStencilOpValueAMD\"))\n\tgpStencilStrokePathInstancedNV = (C.GPSTENCILSTROKEPATHINSTANCEDNV)(getProcAddr(\"glStencilStrokePathInstancedNV\"))\n\tgpStencilStrokePathNV = (C.GPSTENCILSTROKEPATHNV)(getProcAddr(\"glStencilStrokePathNV\"))\n\tgpStencilThenCoverFillPathInstancedNV = (C.GPSTENCILTHENCOVERFILLPATHINSTANCEDNV)(getProcAddr(\"glStencilThenCoverFillPathInstancedNV\"))\n\tgpStencilThenCoverFillPathNV = (C.GPSTENCILTHENCOVERFILLPATHNV)(getProcAddr(\"glStencilThenCoverFillPathNV\"))\n\tgpStencilThenCoverStrokePathInstancedNV = (C.GPSTENCILTHENCOVERSTROKEPATHINSTANCEDNV)(getProcAddr(\"glStencilThenCoverStrokePathInstancedNV\"))\n\tgpStencilThenCoverStrokePathNV = (C.GPSTENCILTHENCOVERSTROKEPATHNV)(getProcAddr(\"glStencilThenCoverStrokePathNV\"))\n\tgpStopInstrumentsSGIX = (C.GPSTOPINSTRUMENTSSGIX)(getProcAddr(\"glStopInstrumentsSGIX\"))\n\tgpStringMarkerGREMEDY = (C.GPSTRINGMARKERGREMEDY)(getProcAddr(\"glStringMarkerGREMEDY\"))\n\tgpSubpixelPrecisionBiasNV = (C.GPSUBPIXELPRECISIONBIASNV)(getProcAddr(\"glSubpixelPrecisionBiasNV\"))\n\tgpSwizzleEXT = (C.GPSWIZZLEEXT)(getProcAddr(\"glSwizzleEXT\"))\n\tgpSyncTextureINTEL = (C.GPSYNCTEXTUREINTEL)(getProcAddr(\"glSyncTextureINTEL\"))\n\tgpTagSampleBufferSGIX = (C.GPTAGSAMPLEBUFFERSGIX)(getProcAddr(\"glTagSampleBufferSGIX\"))\n\tgpTangent3bEXT = (C.GPTANGENT3BEXT)(getProcAddr(\"glTangent3bEXT\"))\n\tgpTangent3bvEXT = (C.GPTANGENT3BVEXT)(getProcAddr(\"glTangent3bvEXT\"))\n\tgpTangent3dEXT = (C.GPTANGENT3DEXT)(getProcAddr(\"glTangent3dEXT\"))\n\tgpTangent3dvEXT = (C.GPTANGENT3DVEXT)(getProcAddr(\"glTangent3dvEXT\"))\n\tgpTangent3fEXT = (C.GPTANGENT3FEXT)(getProcAddr(\"glTangent3fEXT\"))\n\tgpTangent3fvEXT = (C.GPTANGENT3FVEXT)(getProcAddr(\"glTangent3fvEXT\"))\n\tgpTangent3iEXT = (C.GPTANGENT3IEXT)(getProcAddr(\"glTangent3iEXT\"))\n\tgpTangent3ivEXT = (C.GPTANGENT3IVEXT)(getProcAddr(\"glTangent3ivEXT\"))\n\tgpTangent3sEXT = (C.GPTANGENT3SEXT)(getProcAddr(\"glTangent3sEXT\"))\n\tgpTangent3svEXT = (C.GPTANGENT3SVEXT)(getProcAddr(\"glTangent3svEXT\"))\n\tgpTangentPointerEXT = (C.GPTANGENTPOINTEREXT)(getProcAddr(\"glTangentPointerEXT\"))\n\tgpTbufferMask3DFX = (C.GPTBUFFERMASK3DFX)(getProcAddr(\"glTbufferMask3DFX\"))\n\tgpTessellationFactorAMD = (C.GPTESSELLATIONFACTORAMD)(getProcAddr(\"glTessellationFactorAMD\"))\n\tgpTessellationModeAMD = (C.GPTESSELLATIONMODEAMD)(getProcAddr(\"glTessellationModeAMD\"))\n\tgpTestFenceAPPLE = (C.GPTESTFENCEAPPLE)(getProcAddr(\"glTestFenceAPPLE\"))\n\tgpTestFenceNV = (C.GPTESTFENCENV)(getProcAddr(\"glTestFenceNV\"))\n\tgpTestObjectAPPLE = (C.GPTESTOBJECTAPPLE)(getProcAddr(\"glTestObjectAPPLE\"))\n\tgpTexAttachMemoryNV = (C.GPTEXATTACHMEMORYNV)(getProcAddr(\"glTexAttachMemoryNV\"))\n\tgpTexBuffer = (C.GPTEXBUFFER)(getProcAddr(\"glTexBuffer\"))\n\tif gpTexBuffer == nil {\n\t\treturn errors.New(\"glTexBuffer\")\n\t}\n\tgpTexBufferARB = (C.GPTEXBUFFERARB)(getProcAddr(\"glTexBufferARB\"))\n\tgpTexBufferEXT = (C.GPTEXBUFFEREXT)(getProcAddr(\"glTexBufferEXT\"))\n\tgpTexBufferRange = (C.GPTEXBUFFERRANGE)(getProcAddr(\"glTexBufferRange\"))\n\tif gpTexBufferRange == nil {\n\t\treturn errors.New(\"glTexBufferRange\")\n\t}\n\tgpTexBumpParameterfvATI = (C.GPTEXBUMPPARAMETERFVATI)(getProcAddr(\"glTexBumpParameterfvATI\"))\n\tgpTexBumpParameterivATI = (C.GPTEXBUMPPARAMETERIVATI)(getProcAddr(\"glTexBumpParameterivATI\"))\n\tgpTexCoord1bOES = (C.GPTEXCOORD1BOES)(getProcAddr(\"glTexCoord1bOES\"))\n\tgpTexCoord1bvOES = (C.GPTEXCOORD1BVOES)(getProcAddr(\"glTexCoord1bvOES\"))\n\tgpTexCoord1d = (C.GPTEXCOORD1D)(getProcAddr(\"glTexCoord1d\"))\n\tif gpTexCoord1d == nil {\n\t\treturn errors.New(\"glTexCoord1d\")\n\t}\n\tgpTexCoord1dv = (C.GPTEXCOORD1DV)(getProcAddr(\"glTexCoord1dv\"))\n\tif gpTexCoord1dv == nil {\n\t\treturn errors.New(\"glTexCoord1dv\")\n\t}\n\tgpTexCoord1f = (C.GPTEXCOORD1F)(getProcAddr(\"glTexCoord1f\"))\n\tif gpTexCoord1f == nil {\n\t\treturn errors.New(\"glTexCoord1f\")\n\t}\n\tgpTexCoord1fv = (C.GPTEXCOORD1FV)(getProcAddr(\"glTexCoord1fv\"))\n\tif gpTexCoord1fv == nil {\n\t\treturn errors.New(\"glTexCoord1fv\")\n\t}\n\tgpTexCoord1hNV = (C.GPTEXCOORD1HNV)(getProcAddr(\"glTexCoord1hNV\"))\n\tgpTexCoord1hvNV = (C.GPTEXCOORD1HVNV)(getProcAddr(\"glTexCoord1hvNV\"))\n\tgpTexCoord1i = (C.GPTEXCOORD1I)(getProcAddr(\"glTexCoord1i\"))\n\tif gpTexCoord1i == nil {\n\t\treturn errors.New(\"glTexCoord1i\")\n\t}\n\tgpTexCoord1iv = (C.GPTEXCOORD1IV)(getProcAddr(\"glTexCoord1iv\"))\n\tif gpTexCoord1iv == nil {\n\t\treturn errors.New(\"glTexCoord1iv\")\n\t}\n\tgpTexCoord1s = (C.GPTEXCOORD1S)(getProcAddr(\"glTexCoord1s\"))\n\tif gpTexCoord1s == nil {\n\t\treturn errors.New(\"glTexCoord1s\")\n\t}\n\tgpTexCoord1sv = (C.GPTEXCOORD1SV)(getProcAddr(\"glTexCoord1sv\"))\n\tif gpTexCoord1sv == nil {\n\t\treturn errors.New(\"glTexCoord1sv\")\n\t}\n\tgpTexCoord1xOES = (C.GPTEXCOORD1XOES)(getProcAddr(\"glTexCoord1xOES\"))\n\tgpTexCoord1xvOES = (C.GPTEXCOORD1XVOES)(getProcAddr(\"glTexCoord1xvOES\"))\n\tgpTexCoord2bOES = (C.GPTEXCOORD2BOES)(getProcAddr(\"glTexCoord2bOES\"))\n\tgpTexCoord2bvOES = (C.GPTEXCOORD2BVOES)(getProcAddr(\"glTexCoord2bvOES\"))\n\tgpTexCoord2d = (C.GPTEXCOORD2D)(getProcAddr(\"glTexCoord2d\"))\n\tif gpTexCoord2d == nil {\n\t\treturn errors.New(\"glTexCoord2d\")\n\t}\n\tgpTexCoord2dv = (C.GPTEXCOORD2DV)(getProcAddr(\"glTexCoord2dv\"))\n\tif gpTexCoord2dv == nil {\n\t\treturn errors.New(\"glTexCoord2dv\")\n\t}\n\tgpTexCoord2f = (C.GPTEXCOORD2F)(getProcAddr(\"glTexCoord2f\"))\n\tif gpTexCoord2f == nil {\n\t\treturn errors.New(\"glTexCoord2f\")\n\t}\n\tgpTexCoord2fColor3fVertex3fSUN = (C.GPTEXCOORD2FCOLOR3FVERTEX3FSUN)(getProcAddr(\"glTexCoord2fColor3fVertex3fSUN\"))\n\tgpTexCoord2fColor3fVertex3fvSUN = (C.GPTEXCOORD2FCOLOR3FVERTEX3FVSUN)(getProcAddr(\"glTexCoord2fColor3fVertex3fvSUN\"))\n\tgpTexCoord2fColor4fNormal3fVertex3fSUN = (C.GPTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUN)(getProcAddr(\"glTexCoord2fColor4fNormal3fVertex3fSUN\"))\n\tgpTexCoord2fColor4fNormal3fVertex3fvSUN = (C.GPTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUN)(getProcAddr(\"glTexCoord2fColor4fNormal3fVertex3fvSUN\"))\n\tgpTexCoord2fColor4ubVertex3fSUN = (C.GPTEXCOORD2FCOLOR4UBVERTEX3FSUN)(getProcAddr(\"glTexCoord2fColor4ubVertex3fSUN\"))\n\tgpTexCoord2fColor4ubVertex3fvSUN = (C.GPTEXCOORD2FCOLOR4UBVERTEX3FVSUN)(getProcAddr(\"glTexCoord2fColor4ubVertex3fvSUN\"))\n\tgpTexCoord2fNormal3fVertex3fSUN = (C.GPTEXCOORD2FNORMAL3FVERTEX3FSUN)(getProcAddr(\"glTexCoord2fNormal3fVertex3fSUN\"))\n\tgpTexCoord2fNormal3fVertex3fvSUN = (C.GPTEXCOORD2FNORMAL3FVERTEX3FVSUN)(getProcAddr(\"glTexCoord2fNormal3fVertex3fvSUN\"))\n\tgpTexCoord2fVertex3fSUN = (C.GPTEXCOORD2FVERTEX3FSUN)(getProcAddr(\"glTexCoord2fVertex3fSUN\"))\n\tgpTexCoord2fVertex3fvSUN = (C.GPTEXCOORD2FVERTEX3FVSUN)(getProcAddr(\"glTexCoord2fVertex3fvSUN\"))\n\tgpTexCoord2fv = (C.GPTEXCOORD2FV)(getProcAddr(\"glTexCoord2fv\"))\n\tif gpTexCoord2fv == nil {\n\t\treturn errors.New(\"glTexCoord2fv\")\n\t}\n\tgpTexCoord2hNV = (C.GPTEXCOORD2HNV)(getProcAddr(\"glTexCoord2hNV\"))\n\tgpTexCoord2hvNV = (C.GPTEXCOORD2HVNV)(getProcAddr(\"glTexCoord2hvNV\"))\n\tgpTexCoord2i = (C.GPTEXCOORD2I)(getProcAddr(\"glTexCoord2i\"))\n\tif gpTexCoord2i == nil {\n\t\treturn errors.New(\"glTexCoord2i\")\n\t}\n\tgpTexCoord2iv = (C.GPTEXCOORD2IV)(getProcAddr(\"glTexCoord2iv\"))\n\tif gpTexCoord2iv == nil {\n\t\treturn errors.New(\"glTexCoord2iv\")\n\t}\n\tgpTexCoord2s = (C.GPTEXCOORD2S)(getProcAddr(\"glTexCoord2s\"))\n\tif gpTexCoord2s == nil {\n\t\treturn errors.New(\"glTexCoord2s\")\n\t}\n\tgpTexCoord2sv = (C.GPTEXCOORD2SV)(getProcAddr(\"glTexCoord2sv\"))\n\tif gpTexCoord2sv == nil {\n\t\treturn errors.New(\"glTexCoord2sv\")\n\t}\n\tgpTexCoord2xOES = (C.GPTEXCOORD2XOES)(getProcAddr(\"glTexCoord2xOES\"))\n\tgpTexCoord2xvOES = (C.GPTEXCOORD2XVOES)(getProcAddr(\"glTexCoord2xvOES\"))\n\tgpTexCoord3bOES = (C.GPTEXCOORD3BOES)(getProcAddr(\"glTexCoord3bOES\"))\n\tgpTexCoord3bvOES = (C.GPTEXCOORD3BVOES)(getProcAddr(\"glTexCoord3bvOES\"))\n\tgpTexCoord3d = (C.GPTEXCOORD3D)(getProcAddr(\"glTexCoord3d\"))\n\tif gpTexCoord3d == nil {\n\t\treturn errors.New(\"glTexCoord3d\")\n\t}\n\tgpTexCoord3dv = (C.GPTEXCOORD3DV)(getProcAddr(\"glTexCoord3dv\"))\n\tif gpTexCoord3dv == nil {\n\t\treturn errors.New(\"glTexCoord3dv\")\n\t}\n\tgpTexCoord3f = (C.GPTEXCOORD3F)(getProcAddr(\"glTexCoord3f\"))\n\tif gpTexCoord3f == nil {\n\t\treturn errors.New(\"glTexCoord3f\")\n\t}\n\tgpTexCoord3fv = (C.GPTEXCOORD3FV)(getProcAddr(\"glTexCoord3fv\"))\n\tif gpTexCoord3fv == nil {\n\t\treturn errors.New(\"glTexCoord3fv\")\n\t}\n\tgpTexCoord3hNV = (C.GPTEXCOORD3HNV)(getProcAddr(\"glTexCoord3hNV\"))\n\tgpTexCoord3hvNV = (C.GPTEXCOORD3HVNV)(getProcAddr(\"glTexCoord3hvNV\"))\n\tgpTexCoord3i = (C.GPTEXCOORD3I)(getProcAddr(\"glTexCoord3i\"))\n\tif gpTexCoord3i == nil {\n\t\treturn errors.New(\"glTexCoord3i\")\n\t}\n\tgpTexCoord3iv = (C.GPTEXCOORD3IV)(getProcAddr(\"glTexCoord3iv\"))\n\tif gpTexCoord3iv == nil {\n\t\treturn errors.New(\"glTexCoord3iv\")\n\t}\n\tgpTexCoord3s = (C.GPTEXCOORD3S)(getProcAddr(\"glTexCoord3s\"))\n\tif gpTexCoord3s == nil {\n\t\treturn errors.New(\"glTexCoord3s\")\n\t}\n\tgpTexCoord3sv = (C.GPTEXCOORD3SV)(getProcAddr(\"glTexCoord3sv\"))\n\tif gpTexCoord3sv == nil {\n\t\treturn errors.New(\"glTexCoord3sv\")\n\t}\n\tgpTexCoord3xOES = (C.GPTEXCOORD3XOES)(getProcAddr(\"glTexCoord3xOES\"))\n\tgpTexCoord3xvOES = (C.GPTEXCOORD3XVOES)(getProcAddr(\"glTexCoord3xvOES\"))\n\tgpTexCoord4bOES = (C.GPTEXCOORD4BOES)(getProcAddr(\"glTexCoord4bOES\"))\n\tgpTexCoord4bvOES = (C.GPTEXCOORD4BVOES)(getProcAddr(\"glTexCoord4bvOES\"))\n\tgpTexCoord4d = (C.GPTEXCOORD4D)(getProcAddr(\"glTexCoord4d\"))\n\tif gpTexCoord4d == nil {\n\t\treturn errors.New(\"glTexCoord4d\")\n\t}\n\tgpTexCoord4dv = (C.GPTEXCOORD4DV)(getProcAddr(\"glTexCoord4dv\"))\n\tif gpTexCoord4dv == nil {\n\t\treturn errors.New(\"glTexCoord4dv\")\n\t}\n\tgpTexCoord4f = (C.GPTEXCOORD4F)(getProcAddr(\"glTexCoord4f\"))\n\tif gpTexCoord4f == nil {\n\t\treturn errors.New(\"glTexCoord4f\")\n\t}\n\tgpTexCoord4fColor4fNormal3fVertex4fSUN = (C.GPTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUN)(getProcAddr(\"glTexCoord4fColor4fNormal3fVertex4fSUN\"))\n\tgpTexCoord4fColor4fNormal3fVertex4fvSUN = (C.GPTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUN)(getProcAddr(\"glTexCoord4fColor4fNormal3fVertex4fvSUN\"))\n\tgpTexCoord4fVertex4fSUN = (C.GPTEXCOORD4FVERTEX4FSUN)(getProcAddr(\"glTexCoord4fVertex4fSUN\"))\n\tgpTexCoord4fVertex4fvSUN = (C.GPTEXCOORD4FVERTEX4FVSUN)(getProcAddr(\"glTexCoord4fVertex4fvSUN\"))\n\tgpTexCoord4fv = (C.GPTEXCOORD4FV)(getProcAddr(\"glTexCoord4fv\"))\n\tif gpTexCoord4fv == nil {\n\t\treturn errors.New(\"glTexCoord4fv\")\n\t}\n\tgpTexCoord4hNV = (C.GPTEXCOORD4HNV)(getProcAddr(\"glTexCoord4hNV\"))\n\tgpTexCoord4hvNV = (C.GPTEXCOORD4HVNV)(getProcAddr(\"glTexCoord4hvNV\"))\n\tgpTexCoord4i = (C.GPTEXCOORD4I)(getProcAddr(\"glTexCoord4i\"))\n\tif gpTexCoord4i == nil {\n\t\treturn errors.New(\"glTexCoord4i\")\n\t}\n\tgpTexCoord4iv = (C.GPTEXCOORD4IV)(getProcAddr(\"glTexCoord4iv\"))\n\tif gpTexCoord4iv == nil {\n\t\treturn errors.New(\"glTexCoord4iv\")\n\t}\n\tgpTexCoord4s = (C.GPTEXCOORD4S)(getProcAddr(\"glTexCoord4s\"))\n\tif gpTexCoord4s == nil {\n\t\treturn errors.New(\"glTexCoord4s\")\n\t}\n\tgpTexCoord4sv = (C.GPTEXCOORD4SV)(getProcAddr(\"glTexCoord4sv\"))\n\tif gpTexCoord4sv == nil {\n\t\treturn errors.New(\"glTexCoord4sv\")\n\t}\n\tgpTexCoord4xOES = (C.GPTEXCOORD4XOES)(getProcAddr(\"glTexCoord4xOES\"))\n\tgpTexCoord4xvOES = (C.GPTEXCOORD4XVOES)(getProcAddr(\"glTexCoord4xvOES\"))\n\tgpTexCoordFormatNV = (C.GPTEXCOORDFORMATNV)(getProcAddr(\"glTexCoordFormatNV\"))\n\tgpTexCoordP1ui = (C.GPTEXCOORDP1UI)(getProcAddr(\"glTexCoordP1ui\"))\n\tif gpTexCoordP1ui == nil {\n\t\treturn errors.New(\"glTexCoordP1ui\")\n\t}\n\tgpTexCoordP1uiv = (C.GPTEXCOORDP1UIV)(getProcAddr(\"glTexCoordP1uiv\"))\n\tif gpTexCoordP1uiv == nil {\n\t\treturn errors.New(\"glTexCoordP1uiv\")\n\t}\n\tgpTexCoordP2ui = (C.GPTEXCOORDP2UI)(getProcAddr(\"glTexCoordP2ui\"))\n\tif gpTexCoordP2ui == nil {\n\t\treturn errors.New(\"glTexCoordP2ui\")\n\t}\n\tgpTexCoordP2uiv = (C.GPTEXCOORDP2UIV)(getProcAddr(\"glTexCoordP2uiv\"))\n\tif gpTexCoordP2uiv == nil {\n\t\treturn errors.New(\"glTexCoordP2uiv\")\n\t}\n\tgpTexCoordP3ui = (C.GPTEXCOORDP3UI)(getProcAddr(\"glTexCoordP3ui\"))\n\tif gpTexCoordP3ui == nil {\n\t\treturn errors.New(\"glTexCoordP3ui\")\n\t}\n\tgpTexCoordP3uiv = (C.GPTEXCOORDP3UIV)(getProcAddr(\"glTexCoordP3uiv\"))\n\tif gpTexCoordP3uiv == nil {\n\t\treturn errors.New(\"glTexCoordP3uiv\")\n\t}\n\tgpTexCoordP4ui = (C.GPTEXCOORDP4UI)(getProcAddr(\"glTexCoordP4ui\"))\n\tif gpTexCoordP4ui == nil {\n\t\treturn errors.New(\"glTexCoordP4ui\")\n\t}\n\tgpTexCoordP4uiv = (C.GPTEXCOORDP4UIV)(getProcAddr(\"glTexCoordP4uiv\"))\n\tif gpTexCoordP4uiv == nil {\n\t\treturn errors.New(\"glTexCoordP4uiv\")\n\t}\n\tgpTexCoordPointer = (C.GPTEXCOORDPOINTER)(getProcAddr(\"glTexCoordPointer\"))\n\tif gpTexCoordPointer == nil {\n\t\treturn errors.New(\"glTexCoordPointer\")\n\t}\n\tgpTexCoordPointerEXT = (C.GPTEXCOORDPOINTEREXT)(getProcAddr(\"glTexCoordPointerEXT\"))\n\tgpTexCoordPointerListIBM = (C.GPTEXCOORDPOINTERLISTIBM)(getProcAddr(\"glTexCoordPointerListIBM\"))\n\tgpTexCoordPointervINTEL = (C.GPTEXCOORDPOINTERVINTEL)(getProcAddr(\"glTexCoordPointervINTEL\"))\n\tgpTexEnvf = (C.GPTEXENVF)(getProcAddr(\"glTexEnvf\"))\n\tif gpTexEnvf == nil {\n\t\treturn errors.New(\"glTexEnvf\")\n\t}\n\tgpTexEnvfv = (C.GPTEXENVFV)(getProcAddr(\"glTexEnvfv\"))\n\tif gpTexEnvfv == nil {\n\t\treturn errors.New(\"glTexEnvfv\")\n\t}\n\tgpTexEnvi = (C.GPTEXENVI)(getProcAddr(\"glTexEnvi\"))\n\tif gpTexEnvi == nil {\n\t\treturn errors.New(\"glTexEnvi\")\n\t}\n\tgpTexEnviv = (C.GPTEXENVIV)(getProcAddr(\"glTexEnviv\"))\n\tif gpTexEnviv == nil {\n\t\treturn errors.New(\"glTexEnviv\")\n\t}\n\tgpTexEnvxOES = (C.GPTEXENVXOES)(getProcAddr(\"glTexEnvxOES\"))\n\tgpTexEnvxvOES = (C.GPTEXENVXVOES)(getProcAddr(\"glTexEnvxvOES\"))\n\tgpTexFilterFuncSGIS = (C.GPTEXFILTERFUNCSGIS)(getProcAddr(\"glTexFilterFuncSGIS\"))\n\tgpTexGend = (C.GPTEXGEND)(getProcAddr(\"glTexGend\"))\n\tif gpTexGend == nil {\n\t\treturn errors.New(\"glTexGend\")\n\t}\n\tgpTexGendv = (C.GPTEXGENDV)(getProcAddr(\"glTexGendv\"))\n\tif gpTexGendv == nil {\n\t\treturn errors.New(\"glTexGendv\")\n\t}\n\tgpTexGenf = (C.GPTEXGENF)(getProcAddr(\"glTexGenf\"))\n\tif gpTexGenf == nil {\n\t\treturn errors.New(\"glTexGenf\")\n\t}\n\tgpTexGenfv = (C.GPTEXGENFV)(getProcAddr(\"glTexGenfv\"))\n\tif gpTexGenfv == nil {\n\t\treturn errors.New(\"glTexGenfv\")\n\t}\n\tgpTexGeni = (C.GPTEXGENI)(getProcAddr(\"glTexGeni\"))\n\tif gpTexGeni == nil {\n\t\treturn errors.New(\"glTexGeni\")\n\t}\n\tgpTexGeniv = (C.GPTEXGENIV)(getProcAddr(\"glTexGeniv\"))\n\tif gpTexGeniv == nil {\n\t\treturn errors.New(\"glTexGeniv\")\n\t}\n\tgpTexGenxOES = (C.GPTEXGENXOES)(getProcAddr(\"glTexGenxOES\"))\n\tgpTexGenxvOES = (C.GPTEXGENXVOES)(getProcAddr(\"glTexGenxvOES\"))\n\tgpTexImage1D = (C.GPTEXIMAGE1D)(getProcAddr(\"glTexImage1D\"))\n\tif gpTexImage1D == nil {\n\t\treturn errors.New(\"glTexImage1D\")\n\t}\n\tgpTexImage2D = (C.GPTEXIMAGE2D)(getProcAddr(\"glTexImage2D\"))\n\tif gpTexImage2D == nil {\n\t\treturn errors.New(\"glTexImage2D\")\n\t}\n\tgpTexImage2DMultisample = (C.GPTEXIMAGE2DMULTISAMPLE)(getProcAddr(\"glTexImage2DMultisample\"))\n\tif gpTexImage2DMultisample == nil {\n\t\treturn errors.New(\"glTexImage2DMultisample\")\n\t}\n\tgpTexImage2DMultisampleCoverageNV = (C.GPTEXIMAGE2DMULTISAMPLECOVERAGENV)(getProcAddr(\"glTexImage2DMultisampleCoverageNV\"))\n\tgpTexImage3D = (C.GPTEXIMAGE3D)(getProcAddr(\"glTexImage3D\"))\n\tif gpTexImage3D == nil {\n\t\treturn errors.New(\"glTexImage3D\")\n\t}\n\tgpTexImage3DEXT = (C.GPTEXIMAGE3DEXT)(getProcAddr(\"glTexImage3DEXT\"))\n\tgpTexImage3DMultisample = (C.GPTEXIMAGE3DMULTISAMPLE)(getProcAddr(\"glTexImage3DMultisample\"))\n\tif gpTexImage3DMultisample == nil {\n\t\treturn errors.New(\"glTexImage3DMultisample\")\n\t}\n\tgpTexImage3DMultisampleCoverageNV = (C.GPTEXIMAGE3DMULTISAMPLECOVERAGENV)(getProcAddr(\"glTexImage3DMultisampleCoverageNV\"))\n\tgpTexImage4DSGIS = (C.GPTEXIMAGE4DSGIS)(getProcAddr(\"glTexImage4DSGIS\"))\n\tgpTexPageCommitmentARB = (C.GPTEXPAGECOMMITMENTARB)(getProcAddr(\"glTexPageCommitmentARB\"))\n\tgpTexPageCommitmentMemNV = (C.GPTEXPAGECOMMITMENTMEMNV)(getProcAddr(\"glTexPageCommitmentMemNV\"))\n\tgpTexParameterIiv = (C.GPTEXPARAMETERIIV)(getProcAddr(\"glTexParameterIiv\"))\n\tif gpTexParameterIiv == nil {\n\t\treturn errors.New(\"glTexParameterIiv\")\n\t}\n\tgpTexParameterIivEXT = (C.GPTEXPARAMETERIIVEXT)(getProcAddr(\"glTexParameterIivEXT\"))\n\tgpTexParameterIuiv = (C.GPTEXPARAMETERIUIV)(getProcAddr(\"glTexParameterIuiv\"))\n\tif gpTexParameterIuiv == nil {\n\t\treturn errors.New(\"glTexParameterIuiv\")\n\t}\n\tgpTexParameterIuivEXT = (C.GPTEXPARAMETERIUIVEXT)(getProcAddr(\"glTexParameterIuivEXT\"))\n\tgpTexParameterf = (C.GPTEXPARAMETERF)(getProcAddr(\"glTexParameterf\"))\n\tif gpTexParameterf == nil {\n\t\treturn errors.New(\"glTexParameterf\")\n\t}\n\tgpTexParameterfv = (C.GPTEXPARAMETERFV)(getProcAddr(\"glTexParameterfv\"))\n\tif gpTexParameterfv == nil {\n\t\treturn errors.New(\"glTexParameterfv\")\n\t}\n\tgpTexParameteri = (C.GPTEXPARAMETERI)(getProcAddr(\"glTexParameteri\"))\n\tif gpTexParameteri == nil {\n\t\treturn errors.New(\"glTexParameteri\")\n\t}\n\tgpTexParameteriv = (C.GPTEXPARAMETERIV)(getProcAddr(\"glTexParameteriv\"))\n\tif gpTexParameteriv == nil {\n\t\treturn errors.New(\"glTexParameteriv\")\n\t}\n\tgpTexParameterxOES = (C.GPTEXPARAMETERXOES)(getProcAddr(\"glTexParameterxOES\"))\n\tgpTexParameterxvOES = (C.GPTEXPARAMETERXVOES)(getProcAddr(\"glTexParameterxvOES\"))\n\tgpTexRenderbufferNV = (C.GPTEXRENDERBUFFERNV)(getProcAddr(\"glTexRenderbufferNV\"))\n\tgpTexStorage1D = (C.GPTEXSTORAGE1D)(getProcAddr(\"glTexStorage1D\"))\n\tif gpTexStorage1D == nil {\n\t\treturn errors.New(\"glTexStorage1D\")\n\t}\n\tgpTexStorage2D = (C.GPTEXSTORAGE2D)(getProcAddr(\"glTexStorage2D\"))\n\tif gpTexStorage2D == nil {\n\t\treturn errors.New(\"glTexStorage2D\")\n\t}\n\tgpTexStorage2DMultisample = (C.GPTEXSTORAGE2DMULTISAMPLE)(getProcAddr(\"glTexStorage2DMultisample\"))\n\tif gpTexStorage2DMultisample == nil {\n\t\treturn errors.New(\"glTexStorage2DMultisample\")\n\t}\n\tgpTexStorage3D = (C.GPTEXSTORAGE3D)(getProcAddr(\"glTexStorage3D\"))\n\tif gpTexStorage3D == nil {\n\t\treturn errors.New(\"glTexStorage3D\")\n\t}\n\tgpTexStorage3DMultisample = (C.GPTEXSTORAGE3DMULTISAMPLE)(getProcAddr(\"glTexStorage3DMultisample\"))\n\tif gpTexStorage3DMultisample == nil {\n\t\treturn errors.New(\"glTexStorage3DMultisample\")\n\t}\n\tgpTexStorageMem1DEXT = (C.GPTEXSTORAGEMEM1DEXT)(getProcAddr(\"glTexStorageMem1DEXT\"))\n\tgpTexStorageMem2DEXT = (C.GPTEXSTORAGEMEM2DEXT)(getProcAddr(\"glTexStorageMem2DEXT\"))\n\tgpTexStorageMem2DMultisampleEXT = (C.GPTEXSTORAGEMEM2DMULTISAMPLEEXT)(getProcAddr(\"glTexStorageMem2DMultisampleEXT\"))\n\tgpTexStorageMem3DEXT = (C.GPTEXSTORAGEMEM3DEXT)(getProcAddr(\"glTexStorageMem3DEXT\"))\n\tgpTexStorageMem3DMultisampleEXT = (C.GPTEXSTORAGEMEM3DMULTISAMPLEEXT)(getProcAddr(\"glTexStorageMem3DMultisampleEXT\"))\n\tgpTexStorageSparseAMD = (C.GPTEXSTORAGESPARSEAMD)(getProcAddr(\"glTexStorageSparseAMD\"))\n\tgpTexSubImage1D = (C.GPTEXSUBIMAGE1D)(getProcAddr(\"glTexSubImage1D\"))\n\tif gpTexSubImage1D == nil {\n\t\treturn errors.New(\"glTexSubImage1D\")\n\t}\n\tgpTexSubImage1DEXT = (C.GPTEXSUBIMAGE1DEXT)(getProcAddr(\"glTexSubImage1DEXT\"))\n\tgpTexSubImage2D = (C.GPTEXSUBIMAGE2D)(getProcAddr(\"glTexSubImage2D\"))\n\tif gpTexSubImage2D == nil {\n\t\treturn errors.New(\"glTexSubImage2D\")\n\t}\n\tgpTexSubImage2DEXT = (C.GPTEXSUBIMAGE2DEXT)(getProcAddr(\"glTexSubImage2DEXT\"))\n\tgpTexSubImage3D = (C.GPTEXSUBIMAGE3D)(getProcAddr(\"glTexSubImage3D\"))\n\tif gpTexSubImage3D == nil {\n\t\treturn errors.New(\"glTexSubImage3D\")\n\t}\n\tgpTexSubImage3DEXT = (C.GPTEXSUBIMAGE3DEXT)(getProcAddr(\"glTexSubImage3DEXT\"))\n\tgpTexSubImage4DSGIS = (C.GPTEXSUBIMAGE4DSGIS)(getProcAddr(\"glTexSubImage4DSGIS\"))\n\tgpTextureAttachMemoryNV = (C.GPTEXTUREATTACHMEMORYNV)(getProcAddr(\"glTextureAttachMemoryNV\"))\n\tgpTextureBarrier = (C.GPTEXTUREBARRIER)(getProcAddr(\"glTextureBarrier\"))\n\tgpTextureBarrierNV = (C.GPTEXTUREBARRIERNV)(getProcAddr(\"glTextureBarrierNV\"))\n\tgpTextureBuffer = (C.GPTEXTUREBUFFER)(getProcAddr(\"glTextureBuffer\"))\n\tgpTextureBufferEXT = (C.GPTEXTUREBUFFEREXT)(getProcAddr(\"glTextureBufferEXT\"))\n\tgpTextureBufferRange = (C.GPTEXTUREBUFFERRANGE)(getProcAddr(\"glTextureBufferRange\"))\n\tgpTextureBufferRangeEXT = (C.GPTEXTUREBUFFERRANGEEXT)(getProcAddr(\"glTextureBufferRangeEXT\"))\n\tgpTextureColorMaskSGIS = (C.GPTEXTURECOLORMASKSGIS)(getProcAddr(\"glTextureColorMaskSGIS\"))\n\tgpTextureImage1DEXT = (C.GPTEXTUREIMAGE1DEXT)(getProcAddr(\"glTextureImage1DEXT\"))\n\tgpTextureImage2DEXT = (C.GPTEXTUREIMAGE2DEXT)(getProcAddr(\"glTextureImage2DEXT\"))\n\tgpTextureImage2DMultisampleCoverageNV = (C.GPTEXTUREIMAGE2DMULTISAMPLECOVERAGENV)(getProcAddr(\"glTextureImage2DMultisampleCoverageNV\"))\n\tgpTextureImage2DMultisampleNV = (C.GPTEXTUREIMAGE2DMULTISAMPLENV)(getProcAddr(\"glTextureImage2DMultisampleNV\"))\n\tgpTextureImage3DEXT = (C.GPTEXTUREIMAGE3DEXT)(getProcAddr(\"glTextureImage3DEXT\"))\n\tgpTextureImage3DMultisampleCoverageNV = (C.GPTEXTUREIMAGE3DMULTISAMPLECOVERAGENV)(getProcAddr(\"glTextureImage3DMultisampleCoverageNV\"))\n\tgpTextureImage3DMultisampleNV = (C.GPTEXTUREIMAGE3DMULTISAMPLENV)(getProcAddr(\"glTextureImage3DMultisampleNV\"))\n\tgpTextureLightEXT = (C.GPTEXTURELIGHTEXT)(getProcAddr(\"glTextureLightEXT\"))\n\tgpTextureMaterialEXT = (C.GPTEXTUREMATERIALEXT)(getProcAddr(\"glTextureMaterialEXT\"))\n\tgpTextureNormalEXT = (C.GPTEXTURENORMALEXT)(getProcAddr(\"glTextureNormalEXT\"))\n\tgpTexturePageCommitmentEXT = (C.GPTEXTUREPAGECOMMITMENTEXT)(getProcAddr(\"glTexturePageCommitmentEXT\"))\n\tgpTexturePageCommitmentMemNV = (C.GPTEXTUREPAGECOMMITMENTMEMNV)(getProcAddr(\"glTexturePageCommitmentMemNV\"))\n\tgpTextureParameterIiv = (C.GPTEXTUREPARAMETERIIV)(getProcAddr(\"glTextureParameterIiv\"))\n\tgpTextureParameterIivEXT = (C.GPTEXTUREPARAMETERIIVEXT)(getProcAddr(\"glTextureParameterIivEXT\"))\n\tgpTextureParameterIuiv = (C.GPTEXTUREPARAMETERIUIV)(getProcAddr(\"glTextureParameterIuiv\"))\n\tgpTextureParameterIuivEXT = (C.GPTEXTUREPARAMETERIUIVEXT)(getProcAddr(\"glTextureParameterIuivEXT\"))\n\tgpTextureParameterf = (C.GPTEXTUREPARAMETERF)(getProcAddr(\"glTextureParameterf\"))\n\tgpTextureParameterfEXT = (C.GPTEXTUREPARAMETERFEXT)(getProcAddr(\"glTextureParameterfEXT\"))\n\tgpTextureParameterfv = (C.GPTEXTUREPARAMETERFV)(getProcAddr(\"glTextureParameterfv\"))\n\tgpTextureParameterfvEXT = (C.GPTEXTUREPARAMETERFVEXT)(getProcAddr(\"glTextureParameterfvEXT\"))\n\tgpTextureParameteri = (C.GPTEXTUREPARAMETERI)(getProcAddr(\"glTextureParameteri\"))\n\tgpTextureParameteriEXT = (C.GPTEXTUREPARAMETERIEXT)(getProcAddr(\"glTextureParameteriEXT\"))\n\tgpTextureParameteriv = (C.GPTEXTUREPARAMETERIV)(getProcAddr(\"glTextureParameteriv\"))\n\tgpTextureParameterivEXT = (C.GPTEXTUREPARAMETERIVEXT)(getProcAddr(\"glTextureParameterivEXT\"))\n\tgpTextureRangeAPPLE = (C.GPTEXTURERANGEAPPLE)(getProcAddr(\"glTextureRangeAPPLE\"))\n\tgpTextureRenderbufferEXT = (C.GPTEXTURERENDERBUFFEREXT)(getProcAddr(\"glTextureRenderbufferEXT\"))\n\tgpTextureStorage1D = (C.GPTEXTURESTORAGE1D)(getProcAddr(\"glTextureStorage1D\"))\n\tgpTextureStorage1DEXT = (C.GPTEXTURESTORAGE1DEXT)(getProcAddr(\"glTextureStorage1DEXT\"))\n\tgpTextureStorage2D = (C.GPTEXTURESTORAGE2D)(getProcAddr(\"glTextureStorage2D\"))\n\tgpTextureStorage2DEXT = (C.GPTEXTURESTORAGE2DEXT)(getProcAddr(\"glTextureStorage2DEXT\"))\n\tgpTextureStorage2DMultisample = (C.GPTEXTURESTORAGE2DMULTISAMPLE)(getProcAddr(\"glTextureStorage2DMultisample\"))\n\tgpTextureStorage2DMultisampleEXT = (C.GPTEXTURESTORAGE2DMULTISAMPLEEXT)(getProcAddr(\"glTextureStorage2DMultisampleEXT\"))\n\tgpTextureStorage3D = (C.GPTEXTURESTORAGE3D)(getProcAddr(\"glTextureStorage3D\"))\n\tgpTextureStorage3DEXT = (C.GPTEXTURESTORAGE3DEXT)(getProcAddr(\"glTextureStorage3DEXT\"))\n\tgpTextureStorage3DMultisample = (C.GPTEXTURESTORAGE3DMULTISAMPLE)(getProcAddr(\"glTextureStorage3DMultisample\"))\n\tgpTextureStorage3DMultisampleEXT = (C.GPTEXTURESTORAGE3DMULTISAMPLEEXT)(getProcAddr(\"glTextureStorage3DMultisampleEXT\"))\n\tgpTextureStorageMem1DEXT = (C.GPTEXTURESTORAGEMEM1DEXT)(getProcAddr(\"glTextureStorageMem1DEXT\"))\n\tgpTextureStorageMem2DEXT = (C.GPTEXTURESTORAGEMEM2DEXT)(getProcAddr(\"glTextureStorageMem2DEXT\"))\n\tgpTextureStorageMem2DMultisampleEXT = (C.GPTEXTURESTORAGEMEM2DMULTISAMPLEEXT)(getProcAddr(\"glTextureStorageMem2DMultisampleEXT\"))\n\tgpTextureStorageMem3DEXT = (C.GPTEXTURESTORAGEMEM3DEXT)(getProcAddr(\"glTextureStorageMem3DEXT\"))\n\tgpTextureStorageMem3DMultisampleEXT = (C.GPTEXTURESTORAGEMEM3DMULTISAMPLEEXT)(getProcAddr(\"glTextureStorageMem3DMultisampleEXT\"))\n\tgpTextureStorageSparseAMD = (C.GPTEXTURESTORAGESPARSEAMD)(getProcAddr(\"glTextureStorageSparseAMD\"))\n\tgpTextureSubImage1D = (C.GPTEXTURESUBIMAGE1D)(getProcAddr(\"glTextureSubImage1D\"))\n\tgpTextureSubImage1DEXT = (C.GPTEXTURESUBIMAGE1DEXT)(getProcAddr(\"glTextureSubImage1DEXT\"))\n\tgpTextureSubImage2D = (C.GPTEXTURESUBIMAGE2D)(getProcAddr(\"glTextureSubImage2D\"))\n\tgpTextureSubImage2DEXT = (C.GPTEXTURESUBIMAGE2DEXT)(getProcAddr(\"glTextureSubImage2DEXT\"))\n\tgpTextureSubImage3D = (C.GPTEXTURESUBIMAGE3D)(getProcAddr(\"glTextureSubImage3D\"))\n\tgpTextureSubImage3DEXT = (C.GPTEXTURESUBIMAGE3DEXT)(getProcAddr(\"glTextureSubImage3DEXT\"))\n\tgpTextureView = (C.GPTEXTUREVIEW)(getProcAddr(\"glTextureView\"))\n\tif gpTextureView == nil {\n\t\treturn errors.New(\"glTextureView\")\n\t}\n\tgpTrackMatrixNV = (C.GPTRACKMATRIXNV)(getProcAddr(\"glTrackMatrixNV\"))\n\tgpTransformFeedbackAttribsNV = (C.GPTRANSFORMFEEDBACKATTRIBSNV)(getProcAddr(\"glTransformFeedbackAttribsNV\"))\n\tgpTransformFeedbackBufferBase = (C.GPTRANSFORMFEEDBACKBUFFERBASE)(getProcAddr(\"glTransformFeedbackBufferBase\"))\n\tgpTransformFeedbackBufferRange = (C.GPTRANSFORMFEEDBACKBUFFERRANGE)(getProcAddr(\"glTransformFeedbackBufferRange\"))\n\tgpTransformFeedbackStreamAttribsNV = (C.GPTRANSFORMFEEDBACKSTREAMATTRIBSNV)(getProcAddr(\"glTransformFeedbackStreamAttribsNV\"))\n\tgpTransformFeedbackVaryings = (C.GPTRANSFORMFEEDBACKVARYINGS)(getProcAddr(\"glTransformFeedbackVaryings\"))\n\tif gpTransformFeedbackVaryings == nil {\n\t\treturn errors.New(\"glTransformFeedbackVaryings\")\n\t}\n\tgpTransformFeedbackVaryingsEXT = (C.GPTRANSFORMFEEDBACKVARYINGSEXT)(getProcAddr(\"glTransformFeedbackVaryingsEXT\"))\n\tgpTransformFeedbackVaryingsNV = (C.GPTRANSFORMFEEDBACKVARYINGSNV)(getProcAddr(\"glTransformFeedbackVaryingsNV\"))\n\tgpTransformPathNV = (C.GPTRANSFORMPATHNV)(getProcAddr(\"glTransformPathNV\"))\n\tgpTranslated = (C.GPTRANSLATED)(getProcAddr(\"glTranslated\"))\n\tif gpTranslated == nil {\n\t\treturn errors.New(\"glTranslated\")\n\t}\n\tgpTranslatef = (C.GPTRANSLATEF)(getProcAddr(\"glTranslatef\"))\n\tif gpTranslatef == nil {\n\t\treturn errors.New(\"glTranslatef\")\n\t}\n\tgpTranslatexOES = (C.GPTRANSLATEXOES)(getProcAddr(\"glTranslatexOES\"))\n\tgpUniform1d = (C.GPUNIFORM1D)(getProcAddr(\"glUniform1d\"))\n\tif gpUniform1d == nil {\n\t\treturn errors.New(\"glUniform1d\")\n\t}\n\tgpUniform1dv = (C.GPUNIFORM1DV)(getProcAddr(\"glUniform1dv\"))\n\tif gpUniform1dv == nil {\n\t\treturn errors.New(\"glUniform1dv\")\n\t}\n\tgpUniform1f = (C.GPUNIFORM1F)(getProcAddr(\"glUniform1f\"))\n\tif gpUniform1f == nil {\n\t\treturn errors.New(\"glUniform1f\")\n\t}\n\tgpUniform1fARB = (C.GPUNIFORM1FARB)(getProcAddr(\"glUniform1fARB\"))\n\tgpUniform1fv = (C.GPUNIFORM1FV)(getProcAddr(\"glUniform1fv\"))\n\tif gpUniform1fv == nil {\n\t\treturn errors.New(\"glUniform1fv\")\n\t}\n\tgpUniform1fvARB = (C.GPUNIFORM1FVARB)(getProcAddr(\"glUniform1fvARB\"))\n\tgpUniform1i = (C.GPUNIFORM1I)(getProcAddr(\"glUniform1i\"))\n\tif gpUniform1i == nil {\n\t\treturn errors.New(\"glUniform1i\")\n\t}\n\tgpUniform1i64ARB = (C.GPUNIFORM1I64ARB)(getProcAddr(\"glUniform1i64ARB\"))\n\tgpUniform1i64NV = (C.GPUNIFORM1I64NV)(getProcAddr(\"glUniform1i64NV\"))\n\tgpUniform1i64vARB = (C.GPUNIFORM1I64VARB)(getProcAddr(\"glUniform1i64vARB\"))\n\tgpUniform1i64vNV = (C.GPUNIFORM1I64VNV)(getProcAddr(\"glUniform1i64vNV\"))\n\tgpUniform1iARB = (C.GPUNIFORM1IARB)(getProcAddr(\"glUniform1iARB\"))\n\tgpUniform1iv = (C.GPUNIFORM1IV)(getProcAddr(\"glUniform1iv\"))\n\tif gpUniform1iv == nil {\n\t\treturn errors.New(\"glUniform1iv\")\n\t}\n\tgpUniform1ivARB = (C.GPUNIFORM1IVARB)(getProcAddr(\"glUniform1ivARB\"))\n\tgpUniform1ui = (C.GPUNIFORM1UI)(getProcAddr(\"glUniform1ui\"))\n\tif gpUniform1ui == nil {\n\t\treturn errors.New(\"glUniform1ui\")\n\t}\n\tgpUniform1ui64ARB = (C.GPUNIFORM1UI64ARB)(getProcAddr(\"glUniform1ui64ARB\"))\n\tgpUniform1ui64NV = (C.GPUNIFORM1UI64NV)(getProcAddr(\"glUniform1ui64NV\"))\n\tgpUniform1ui64vARB = (C.GPUNIFORM1UI64VARB)(getProcAddr(\"glUniform1ui64vARB\"))\n\tgpUniform1ui64vNV = (C.GPUNIFORM1UI64VNV)(getProcAddr(\"glUniform1ui64vNV\"))\n\tgpUniform1uiEXT = (C.GPUNIFORM1UIEXT)(getProcAddr(\"glUniform1uiEXT\"))\n\tgpUniform1uiv = (C.GPUNIFORM1UIV)(getProcAddr(\"glUniform1uiv\"))\n\tif gpUniform1uiv == nil {\n\t\treturn errors.New(\"glUniform1uiv\")\n\t}\n\tgpUniform1uivEXT = (C.GPUNIFORM1UIVEXT)(getProcAddr(\"glUniform1uivEXT\"))\n\tgpUniform2d = (C.GPUNIFORM2D)(getProcAddr(\"glUniform2d\"))\n\tif gpUniform2d == nil {\n\t\treturn errors.New(\"glUniform2d\")\n\t}\n\tgpUniform2dv = (C.GPUNIFORM2DV)(getProcAddr(\"glUniform2dv\"))\n\tif gpUniform2dv == nil {\n\t\treturn errors.New(\"glUniform2dv\")\n\t}\n\tgpUniform2f = (C.GPUNIFORM2F)(getProcAddr(\"glUniform2f\"))\n\tif gpUniform2f == nil {\n\t\treturn errors.New(\"glUniform2f\")\n\t}\n\tgpUniform2fARB = (C.GPUNIFORM2FARB)(getProcAddr(\"glUniform2fARB\"))\n\tgpUniform2fv = (C.GPUNIFORM2FV)(getProcAddr(\"glUniform2fv\"))\n\tif gpUniform2fv == nil {\n\t\treturn errors.New(\"glUniform2fv\")\n\t}\n\tgpUniform2fvARB = (C.GPUNIFORM2FVARB)(getProcAddr(\"glUniform2fvARB\"))\n\tgpUniform2i = (C.GPUNIFORM2I)(getProcAddr(\"glUniform2i\"))\n\tif gpUniform2i == nil {\n\t\treturn errors.New(\"glUniform2i\")\n\t}\n\tgpUniform2i64ARB = (C.GPUNIFORM2I64ARB)(getProcAddr(\"glUniform2i64ARB\"))\n\tgpUniform2i64NV = (C.GPUNIFORM2I64NV)(getProcAddr(\"glUniform2i64NV\"))\n\tgpUniform2i64vARB = (C.GPUNIFORM2I64VARB)(getProcAddr(\"glUniform2i64vARB\"))\n\tgpUniform2i64vNV = (C.GPUNIFORM2I64VNV)(getProcAddr(\"glUniform2i64vNV\"))\n\tgpUniform2iARB = (C.GPUNIFORM2IARB)(getProcAddr(\"glUniform2iARB\"))\n\tgpUniform2iv = (C.GPUNIFORM2IV)(getProcAddr(\"glUniform2iv\"))\n\tif gpUniform2iv == nil {\n\t\treturn errors.New(\"glUniform2iv\")\n\t}\n\tgpUniform2ivARB = (C.GPUNIFORM2IVARB)(getProcAddr(\"glUniform2ivARB\"))\n\tgpUniform2ui = (C.GPUNIFORM2UI)(getProcAddr(\"glUniform2ui\"))\n\tif gpUniform2ui == nil {\n\t\treturn errors.New(\"glUniform2ui\")\n\t}\n\tgpUniform2ui64ARB = (C.GPUNIFORM2UI64ARB)(getProcAddr(\"glUniform2ui64ARB\"))\n\tgpUniform2ui64NV = (C.GPUNIFORM2UI64NV)(getProcAddr(\"glUniform2ui64NV\"))\n\tgpUniform2ui64vARB = (C.GPUNIFORM2UI64VARB)(getProcAddr(\"glUniform2ui64vARB\"))\n\tgpUniform2ui64vNV = (C.GPUNIFORM2UI64VNV)(getProcAddr(\"glUniform2ui64vNV\"))\n\tgpUniform2uiEXT = (C.GPUNIFORM2UIEXT)(getProcAddr(\"glUniform2uiEXT\"))\n\tgpUniform2uiv = (C.GPUNIFORM2UIV)(getProcAddr(\"glUniform2uiv\"))\n\tif gpUniform2uiv == nil {\n\t\treturn errors.New(\"glUniform2uiv\")\n\t}\n\tgpUniform2uivEXT = (C.GPUNIFORM2UIVEXT)(getProcAddr(\"glUniform2uivEXT\"))\n\tgpUniform3d = (C.GPUNIFORM3D)(getProcAddr(\"glUniform3d\"))\n\tif gpUniform3d == nil {\n\t\treturn errors.New(\"glUniform3d\")\n\t}\n\tgpUniform3dv = (C.GPUNIFORM3DV)(getProcAddr(\"glUniform3dv\"))\n\tif gpUniform3dv == nil {\n\t\treturn errors.New(\"glUniform3dv\")\n\t}\n\tgpUniform3f = (C.GPUNIFORM3F)(getProcAddr(\"glUniform3f\"))\n\tif gpUniform3f == nil {\n\t\treturn errors.New(\"glUniform3f\")\n\t}\n\tgpUniform3fARB = (C.GPUNIFORM3FARB)(getProcAddr(\"glUniform3fARB\"))\n\tgpUniform3fv = (C.GPUNIFORM3FV)(getProcAddr(\"glUniform3fv\"))\n\tif gpUniform3fv == nil {\n\t\treturn errors.New(\"glUniform3fv\")\n\t}\n\tgpUniform3fvARB = (C.GPUNIFORM3FVARB)(getProcAddr(\"glUniform3fvARB\"))\n\tgpUniform3i = (C.GPUNIFORM3I)(getProcAddr(\"glUniform3i\"))\n\tif gpUniform3i == nil {\n\t\treturn errors.New(\"glUniform3i\")\n\t}\n\tgpUniform3i64ARB = (C.GPUNIFORM3I64ARB)(getProcAddr(\"glUniform3i64ARB\"))\n\tgpUniform3i64NV = (C.GPUNIFORM3I64NV)(getProcAddr(\"glUniform3i64NV\"))\n\tgpUniform3i64vARB = (C.GPUNIFORM3I64VARB)(getProcAddr(\"glUniform3i64vARB\"))\n\tgpUniform3i64vNV = (C.GPUNIFORM3I64VNV)(getProcAddr(\"glUniform3i64vNV\"))\n\tgpUniform3iARB = (C.GPUNIFORM3IARB)(getProcAddr(\"glUniform3iARB\"))\n\tgpUniform3iv = (C.GPUNIFORM3IV)(getProcAddr(\"glUniform3iv\"))\n\tif gpUniform3iv == nil {\n\t\treturn errors.New(\"glUniform3iv\")\n\t}\n\tgpUniform3ivARB = (C.GPUNIFORM3IVARB)(getProcAddr(\"glUniform3ivARB\"))\n\tgpUniform3ui = (C.GPUNIFORM3UI)(getProcAddr(\"glUniform3ui\"))\n\tif gpUniform3ui == nil {\n\t\treturn errors.New(\"glUniform3ui\")\n\t}\n\tgpUniform3ui64ARB = (C.GPUNIFORM3UI64ARB)(getProcAddr(\"glUniform3ui64ARB\"))\n\tgpUniform3ui64NV = (C.GPUNIFORM3UI64NV)(getProcAddr(\"glUniform3ui64NV\"))\n\tgpUniform3ui64vARB = (C.GPUNIFORM3UI64VARB)(getProcAddr(\"glUniform3ui64vARB\"))\n\tgpUniform3ui64vNV = (C.GPUNIFORM3UI64VNV)(getProcAddr(\"glUniform3ui64vNV\"))\n\tgpUniform3uiEXT = (C.GPUNIFORM3UIEXT)(getProcAddr(\"glUniform3uiEXT\"))\n\tgpUniform3uiv = (C.GPUNIFORM3UIV)(getProcAddr(\"glUniform3uiv\"))\n\tif gpUniform3uiv == nil {\n\t\treturn errors.New(\"glUniform3uiv\")\n\t}\n\tgpUniform3uivEXT = (C.GPUNIFORM3UIVEXT)(getProcAddr(\"glUniform3uivEXT\"))\n\tgpUniform4d = (C.GPUNIFORM4D)(getProcAddr(\"glUniform4d\"))\n\tif gpUniform4d == nil {\n\t\treturn errors.New(\"glUniform4d\")\n\t}\n\tgpUniform4dv = (C.GPUNIFORM4DV)(getProcAddr(\"glUniform4dv\"))\n\tif gpUniform4dv == nil {\n\t\treturn errors.New(\"glUniform4dv\")\n\t}\n\tgpUniform4f = (C.GPUNIFORM4F)(getProcAddr(\"glUniform4f\"))\n\tif gpUniform4f == nil {\n\t\treturn errors.New(\"glUniform4f\")\n\t}\n\tgpUniform4fARB = (C.GPUNIFORM4FARB)(getProcAddr(\"glUniform4fARB\"))\n\tgpUniform4fv = (C.GPUNIFORM4FV)(getProcAddr(\"glUniform4fv\"))\n\tif gpUniform4fv == nil {\n\t\treturn errors.New(\"glUniform4fv\")\n\t}\n\tgpUniform4fvARB = (C.GPUNIFORM4FVARB)(getProcAddr(\"glUniform4fvARB\"))\n\tgpUniform4i = (C.GPUNIFORM4I)(getProcAddr(\"glUniform4i\"))\n\tif gpUniform4i == nil {\n\t\treturn errors.New(\"glUniform4i\")\n\t}\n\tgpUniform4i64ARB = (C.GPUNIFORM4I64ARB)(getProcAddr(\"glUniform4i64ARB\"))\n\tgpUniform4i64NV = (C.GPUNIFORM4I64NV)(getProcAddr(\"glUniform4i64NV\"))\n\tgpUniform4i64vARB = (C.GPUNIFORM4I64VARB)(getProcAddr(\"glUniform4i64vARB\"))\n\tgpUniform4i64vNV = (C.GPUNIFORM4I64VNV)(getProcAddr(\"glUniform4i64vNV\"))\n\tgpUniform4iARB = (C.GPUNIFORM4IARB)(getProcAddr(\"glUniform4iARB\"))\n\tgpUniform4iv = (C.GPUNIFORM4IV)(getProcAddr(\"glUniform4iv\"))\n\tif gpUniform4iv == nil {\n\t\treturn errors.New(\"glUniform4iv\")\n\t}\n\tgpUniform4ivARB = (C.GPUNIFORM4IVARB)(getProcAddr(\"glUniform4ivARB\"))\n\tgpUniform4ui = (C.GPUNIFORM4UI)(getProcAddr(\"glUniform4ui\"))\n\tif gpUniform4ui == nil {\n\t\treturn errors.New(\"glUniform4ui\")\n\t}\n\tgpUniform4ui64ARB = (C.GPUNIFORM4UI64ARB)(getProcAddr(\"glUniform4ui64ARB\"))\n\tgpUniform4ui64NV = (C.GPUNIFORM4UI64NV)(getProcAddr(\"glUniform4ui64NV\"))\n\tgpUniform4ui64vARB = (C.GPUNIFORM4UI64VARB)(getProcAddr(\"glUniform4ui64vARB\"))\n\tgpUniform4ui64vNV = (C.GPUNIFORM4UI64VNV)(getProcAddr(\"glUniform4ui64vNV\"))\n\tgpUniform4uiEXT = (C.GPUNIFORM4UIEXT)(getProcAddr(\"glUniform4uiEXT\"))\n\tgpUniform4uiv = (C.GPUNIFORM4UIV)(getProcAddr(\"glUniform4uiv\"))\n\tif gpUniform4uiv == nil {\n\t\treturn errors.New(\"glUniform4uiv\")\n\t}\n\tgpUniform4uivEXT = (C.GPUNIFORM4UIVEXT)(getProcAddr(\"glUniform4uivEXT\"))\n\tgpUniformBlockBinding = (C.GPUNIFORMBLOCKBINDING)(getProcAddr(\"glUniformBlockBinding\"))\n\tif gpUniformBlockBinding == nil {\n\t\treturn errors.New(\"glUniformBlockBinding\")\n\t}\n\tgpUniformBufferEXT = (C.GPUNIFORMBUFFEREXT)(getProcAddr(\"glUniformBufferEXT\"))\n\tgpUniformHandleui64ARB = (C.GPUNIFORMHANDLEUI64ARB)(getProcAddr(\"glUniformHandleui64ARB\"))\n\tgpUniformHandleui64NV = (C.GPUNIFORMHANDLEUI64NV)(getProcAddr(\"glUniformHandleui64NV\"))\n\tgpUniformHandleui64vARB = (C.GPUNIFORMHANDLEUI64VARB)(getProcAddr(\"glUniformHandleui64vARB\"))\n\tgpUniformHandleui64vNV = (C.GPUNIFORMHANDLEUI64VNV)(getProcAddr(\"glUniformHandleui64vNV\"))\n\tgpUniformMatrix2dv = (C.GPUNIFORMMATRIX2DV)(getProcAddr(\"glUniformMatrix2dv\"))\n\tif gpUniformMatrix2dv == nil {\n\t\treturn errors.New(\"glUniformMatrix2dv\")\n\t}\n\tgpUniformMatrix2fv = (C.GPUNIFORMMATRIX2FV)(getProcAddr(\"glUniformMatrix2fv\"))\n\tif gpUniformMatrix2fv == nil {\n\t\treturn errors.New(\"glUniformMatrix2fv\")\n\t}\n\tgpUniformMatrix2fvARB = (C.GPUNIFORMMATRIX2FVARB)(getProcAddr(\"glUniformMatrix2fvARB\"))\n\tgpUniformMatrix2x3dv = (C.GPUNIFORMMATRIX2X3DV)(getProcAddr(\"glUniformMatrix2x3dv\"))\n\tif gpUniformMatrix2x3dv == nil {\n\t\treturn errors.New(\"glUniformMatrix2x3dv\")\n\t}\n\tgpUniformMatrix2x3fv = (C.GPUNIFORMMATRIX2X3FV)(getProcAddr(\"glUniformMatrix2x3fv\"))\n\tif gpUniformMatrix2x3fv == nil {\n\t\treturn errors.New(\"glUniformMatrix2x3fv\")\n\t}\n\tgpUniformMatrix2x4dv = (C.GPUNIFORMMATRIX2X4DV)(getProcAddr(\"glUniformMatrix2x4dv\"))\n\tif gpUniformMatrix2x4dv == nil {\n\t\treturn errors.New(\"glUniformMatrix2x4dv\")\n\t}\n\tgpUniformMatrix2x4fv = (C.GPUNIFORMMATRIX2X4FV)(getProcAddr(\"glUniformMatrix2x4fv\"))\n\tif gpUniformMatrix2x4fv == nil {\n\t\treturn errors.New(\"glUniformMatrix2x4fv\")\n\t}\n\tgpUniformMatrix3dv = (C.GPUNIFORMMATRIX3DV)(getProcAddr(\"glUniformMatrix3dv\"))\n\tif gpUniformMatrix3dv == nil {\n\t\treturn errors.New(\"glUniformMatrix3dv\")\n\t}\n\tgpUniformMatrix3fv = (C.GPUNIFORMMATRIX3FV)(getProcAddr(\"glUniformMatrix3fv\"))\n\tif gpUniformMatrix3fv == nil {\n\t\treturn errors.New(\"glUniformMatrix3fv\")\n\t}\n\tgpUniformMatrix3fvARB = (C.GPUNIFORMMATRIX3FVARB)(getProcAddr(\"glUniformMatrix3fvARB\"))\n\tgpUniformMatrix3x2dv = (C.GPUNIFORMMATRIX3X2DV)(getProcAddr(\"glUniformMatrix3x2dv\"))\n\tif gpUniformMatrix3x2dv == nil {\n\t\treturn errors.New(\"glUniformMatrix3x2dv\")\n\t}\n\tgpUniformMatrix3x2fv = (C.GPUNIFORMMATRIX3X2FV)(getProcAddr(\"glUniformMatrix3x2fv\"))\n\tif gpUniformMatrix3x2fv == nil {\n\t\treturn errors.New(\"glUniformMatrix3x2fv\")\n\t}\n\tgpUniformMatrix3x4dv = (C.GPUNIFORMMATRIX3X4DV)(getProcAddr(\"glUniformMatrix3x4dv\"))\n\tif gpUniformMatrix3x4dv == nil {\n\t\treturn errors.New(\"glUniformMatrix3x4dv\")\n\t}\n\tgpUniformMatrix3x4fv = (C.GPUNIFORMMATRIX3X4FV)(getProcAddr(\"glUniformMatrix3x4fv\"))\n\tif gpUniformMatrix3x4fv == nil {\n\t\treturn errors.New(\"glUniformMatrix3x4fv\")\n\t}\n\tgpUniformMatrix4dv = (C.GPUNIFORMMATRIX4DV)(getProcAddr(\"glUniformMatrix4dv\"))\n\tif gpUniformMatrix4dv == nil {\n\t\treturn errors.New(\"glUniformMatrix4dv\")\n\t}\n\tgpUniformMatrix4fv = (C.GPUNIFORMMATRIX4FV)(getProcAddr(\"glUniformMatrix4fv\"))\n\tif gpUniformMatrix4fv == nil {\n\t\treturn errors.New(\"glUniformMatrix4fv\")\n\t}\n\tgpUniformMatrix4fvARB = (C.GPUNIFORMMATRIX4FVARB)(getProcAddr(\"glUniformMatrix4fvARB\"))\n\tgpUniformMatrix4x2dv = (C.GPUNIFORMMATRIX4X2DV)(getProcAddr(\"glUniformMatrix4x2dv\"))\n\tif gpUniformMatrix4x2dv == nil {\n\t\treturn errors.New(\"glUniformMatrix4x2dv\")\n\t}\n\tgpUniformMatrix4x2fv = (C.GPUNIFORMMATRIX4X2FV)(getProcAddr(\"glUniformMatrix4x2fv\"))\n\tif gpUniformMatrix4x2fv == nil {\n\t\treturn errors.New(\"glUniformMatrix4x2fv\")\n\t}\n\tgpUniformMatrix4x3dv = (C.GPUNIFORMMATRIX4X3DV)(getProcAddr(\"glUniformMatrix4x3dv\"))\n\tif gpUniformMatrix4x3dv == nil {\n\t\treturn errors.New(\"glUniformMatrix4x3dv\")\n\t}\n\tgpUniformMatrix4x3fv = (C.GPUNIFORMMATRIX4X3FV)(getProcAddr(\"glUniformMatrix4x3fv\"))\n\tif gpUniformMatrix4x3fv == nil {\n\t\treturn errors.New(\"glUniformMatrix4x3fv\")\n\t}\n\tgpUniformSubroutinesuiv = (C.GPUNIFORMSUBROUTINESUIV)(getProcAddr(\"glUniformSubroutinesuiv\"))\n\tif gpUniformSubroutinesuiv == nil {\n\t\treturn errors.New(\"glUniformSubroutinesuiv\")\n\t}\n\tgpUniformui64NV = (C.GPUNIFORMUI64NV)(getProcAddr(\"glUniformui64NV\"))\n\tgpUniformui64vNV = (C.GPUNIFORMUI64VNV)(getProcAddr(\"glUniformui64vNV\"))\n\tgpUnlockArraysEXT = (C.GPUNLOCKARRAYSEXT)(getProcAddr(\"glUnlockArraysEXT\"))\n\tgpUnmapBuffer = (C.GPUNMAPBUFFER)(getProcAddr(\"glUnmapBuffer\"))\n\tif gpUnmapBuffer == nil {\n\t\treturn errors.New(\"glUnmapBuffer\")\n\t}\n\tgpUnmapBufferARB = (C.GPUNMAPBUFFERARB)(getProcAddr(\"glUnmapBufferARB\"))\n\tgpUnmapNamedBuffer = (C.GPUNMAPNAMEDBUFFER)(getProcAddr(\"glUnmapNamedBuffer\"))\n\tgpUnmapNamedBufferEXT = (C.GPUNMAPNAMEDBUFFEREXT)(getProcAddr(\"glUnmapNamedBufferEXT\"))\n\tgpUnmapObjectBufferATI = (C.GPUNMAPOBJECTBUFFERATI)(getProcAddr(\"glUnmapObjectBufferATI\"))\n\tgpUnmapTexture2DINTEL = (C.GPUNMAPTEXTURE2DINTEL)(getProcAddr(\"glUnmapTexture2DINTEL\"))\n\tgpUpdateObjectBufferATI = (C.GPUPDATEOBJECTBUFFERATI)(getProcAddr(\"glUpdateObjectBufferATI\"))\n\tgpUploadGpuMaskNVX = (C.GPUPLOADGPUMASKNVX)(getProcAddr(\"glUploadGpuMaskNVX\"))\n\tgpUseProgram = (C.GPUSEPROGRAM)(getProcAddr(\"glUseProgram\"))\n\tif gpUseProgram == nil {\n\t\treturn errors.New(\"glUseProgram\")\n\t}\n\tgpUseProgramObjectARB = (C.GPUSEPROGRAMOBJECTARB)(getProcAddr(\"glUseProgramObjectARB\"))\n\tgpUseProgramStages = (C.GPUSEPROGRAMSTAGES)(getProcAddr(\"glUseProgramStages\"))\n\tif gpUseProgramStages == nil {\n\t\treturn errors.New(\"glUseProgramStages\")\n\t}\n\tgpUseProgramStagesEXT = (C.GPUSEPROGRAMSTAGESEXT)(getProcAddr(\"glUseProgramStagesEXT\"))\n\tgpUseShaderProgramEXT = (C.GPUSESHADERPROGRAMEXT)(getProcAddr(\"glUseShaderProgramEXT\"))\n\tgpVDPAUFiniNV = (C.GPVDPAUFININV)(getProcAddr(\"glVDPAUFiniNV\"))\n\tgpVDPAUGetSurfaceivNV = (C.GPVDPAUGETSURFACEIVNV)(getProcAddr(\"glVDPAUGetSurfaceivNV\"))\n\tgpVDPAUInitNV = (C.GPVDPAUINITNV)(getProcAddr(\"glVDPAUInitNV\"))\n\tgpVDPAUIsSurfaceNV = (C.GPVDPAUISSURFACENV)(getProcAddr(\"glVDPAUIsSurfaceNV\"))\n\tgpVDPAUMapSurfacesNV = (C.GPVDPAUMAPSURFACESNV)(getProcAddr(\"glVDPAUMapSurfacesNV\"))\n\tgpVDPAURegisterOutputSurfaceNV = (C.GPVDPAUREGISTEROUTPUTSURFACENV)(getProcAddr(\"glVDPAURegisterOutputSurfaceNV\"))\n\tgpVDPAURegisterVideoSurfaceNV = (C.GPVDPAUREGISTERVIDEOSURFACENV)(getProcAddr(\"glVDPAURegisterVideoSurfaceNV\"))\n\tgpVDPAURegisterVideoSurfaceWithPictureStructureNV = (C.GPVDPAUREGISTERVIDEOSURFACEWITHPICTURESTRUCTURENV)(getProcAddr(\"glVDPAURegisterVideoSurfaceWithPictureStructureNV\"))\n\tgpVDPAUSurfaceAccessNV = (C.GPVDPAUSURFACEACCESSNV)(getProcAddr(\"glVDPAUSurfaceAccessNV\"))\n\tgpVDPAUUnmapSurfacesNV = (C.GPVDPAUUNMAPSURFACESNV)(getProcAddr(\"glVDPAUUnmapSurfacesNV\"))\n\tgpVDPAUUnregisterSurfaceNV = (C.GPVDPAUUNREGISTERSURFACENV)(getProcAddr(\"glVDPAUUnregisterSurfaceNV\"))\n\tgpValidateProgram = (C.GPVALIDATEPROGRAM)(getProcAddr(\"glValidateProgram\"))\n\tif gpValidateProgram == nil {\n\t\treturn errors.New(\"glValidateProgram\")\n\t}\n\tgpValidateProgramARB = (C.GPVALIDATEPROGRAMARB)(getProcAddr(\"glValidateProgramARB\"))\n\tgpValidateProgramPipeline = (C.GPVALIDATEPROGRAMPIPELINE)(getProcAddr(\"glValidateProgramPipeline\"))\n\tif gpValidateProgramPipeline == nil {\n\t\treturn errors.New(\"glValidateProgramPipeline\")\n\t}\n\tgpValidateProgramPipelineEXT = (C.GPVALIDATEPROGRAMPIPELINEEXT)(getProcAddr(\"glValidateProgramPipelineEXT\"))\n\tgpVariantArrayObjectATI = (C.GPVARIANTARRAYOBJECTATI)(getProcAddr(\"glVariantArrayObjectATI\"))\n\tgpVariantPointerEXT = (C.GPVARIANTPOINTEREXT)(getProcAddr(\"glVariantPointerEXT\"))\n\tgpVariantbvEXT = (C.GPVARIANTBVEXT)(getProcAddr(\"glVariantbvEXT\"))\n\tgpVariantdvEXT = (C.GPVARIANTDVEXT)(getProcAddr(\"glVariantdvEXT\"))\n\tgpVariantfvEXT = (C.GPVARIANTFVEXT)(getProcAddr(\"glVariantfvEXT\"))\n\tgpVariantivEXT = (C.GPVARIANTIVEXT)(getProcAddr(\"glVariantivEXT\"))\n\tgpVariantsvEXT = (C.GPVARIANTSVEXT)(getProcAddr(\"glVariantsvEXT\"))\n\tgpVariantubvEXT = (C.GPVARIANTUBVEXT)(getProcAddr(\"glVariantubvEXT\"))\n\tgpVariantuivEXT = (C.GPVARIANTUIVEXT)(getProcAddr(\"glVariantuivEXT\"))\n\tgpVariantusvEXT = (C.GPVARIANTUSVEXT)(getProcAddr(\"glVariantusvEXT\"))\n\tgpVertex2bOES = (C.GPVERTEX2BOES)(getProcAddr(\"glVertex2bOES\"))\n\tgpVertex2bvOES = (C.GPVERTEX2BVOES)(getProcAddr(\"glVertex2bvOES\"))\n\tgpVertex2d = (C.GPVERTEX2D)(getProcAddr(\"glVertex2d\"))\n\tif gpVertex2d == nil {\n\t\treturn errors.New(\"glVertex2d\")\n\t}\n\tgpVertex2dv = (C.GPVERTEX2DV)(getProcAddr(\"glVertex2dv\"))\n\tif gpVertex2dv == nil {\n\t\treturn errors.New(\"glVertex2dv\")\n\t}\n\tgpVertex2f = (C.GPVERTEX2F)(getProcAddr(\"glVertex2f\"))\n\tif gpVertex2f == nil {\n\t\treturn errors.New(\"glVertex2f\")\n\t}\n\tgpVertex2fv = (C.GPVERTEX2FV)(getProcAddr(\"glVertex2fv\"))\n\tif gpVertex2fv == nil {\n\t\treturn errors.New(\"glVertex2fv\")\n\t}\n\tgpVertex2hNV = (C.GPVERTEX2HNV)(getProcAddr(\"glVertex2hNV\"))\n\tgpVertex2hvNV = (C.GPVERTEX2HVNV)(getProcAddr(\"glVertex2hvNV\"))\n\tgpVertex2i = (C.GPVERTEX2I)(getProcAddr(\"glVertex2i\"))\n\tif gpVertex2i == nil {\n\t\treturn errors.New(\"glVertex2i\")\n\t}\n\tgpVertex2iv = (C.GPVERTEX2IV)(getProcAddr(\"glVertex2iv\"))\n\tif gpVertex2iv == nil {\n\t\treturn errors.New(\"glVertex2iv\")\n\t}\n\tgpVertex2s = (C.GPVERTEX2S)(getProcAddr(\"glVertex2s\"))\n\tif gpVertex2s == nil {\n\t\treturn errors.New(\"glVertex2s\")\n\t}\n\tgpVertex2sv = (C.GPVERTEX2SV)(getProcAddr(\"glVertex2sv\"))\n\tif gpVertex2sv == nil {\n\t\treturn errors.New(\"glVertex2sv\")\n\t}\n\tgpVertex2xOES = (C.GPVERTEX2XOES)(getProcAddr(\"glVertex2xOES\"))\n\tgpVertex2xvOES = (C.GPVERTEX2XVOES)(getProcAddr(\"glVertex2xvOES\"))\n\tgpVertex3bOES = (C.GPVERTEX3BOES)(getProcAddr(\"glVertex3bOES\"))\n\tgpVertex3bvOES = (C.GPVERTEX3BVOES)(getProcAddr(\"glVertex3bvOES\"))\n\tgpVertex3d = (C.GPVERTEX3D)(getProcAddr(\"glVertex3d\"))\n\tif gpVertex3d == nil {\n\t\treturn errors.New(\"glVertex3d\")\n\t}\n\tgpVertex3dv = (C.GPVERTEX3DV)(getProcAddr(\"glVertex3dv\"))\n\tif gpVertex3dv == nil {\n\t\treturn errors.New(\"glVertex3dv\")\n\t}\n\tgpVertex3f = (C.GPVERTEX3F)(getProcAddr(\"glVertex3f\"))\n\tif gpVertex3f == nil {\n\t\treturn errors.New(\"glVertex3f\")\n\t}\n\tgpVertex3fv = (C.GPVERTEX3FV)(getProcAddr(\"glVertex3fv\"))\n\tif gpVertex3fv == nil {\n\t\treturn errors.New(\"glVertex3fv\")\n\t}\n\tgpVertex3hNV = (C.GPVERTEX3HNV)(getProcAddr(\"glVertex3hNV\"))\n\tgpVertex3hvNV = (C.GPVERTEX3HVNV)(getProcAddr(\"glVertex3hvNV\"))\n\tgpVertex3i = (C.GPVERTEX3I)(getProcAddr(\"glVertex3i\"))\n\tif gpVertex3i == nil {\n\t\treturn errors.New(\"glVertex3i\")\n\t}\n\tgpVertex3iv = (C.GPVERTEX3IV)(getProcAddr(\"glVertex3iv\"))\n\tif gpVertex3iv == nil {\n\t\treturn errors.New(\"glVertex3iv\")\n\t}\n\tgpVertex3s = (C.GPVERTEX3S)(getProcAddr(\"glVertex3s\"))\n\tif gpVertex3s == nil {\n\t\treturn errors.New(\"glVertex3s\")\n\t}\n\tgpVertex3sv = (C.GPVERTEX3SV)(getProcAddr(\"glVertex3sv\"))\n\tif gpVertex3sv == nil {\n\t\treturn errors.New(\"glVertex3sv\")\n\t}\n\tgpVertex3xOES = (C.GPVERTEX3XOES)(getProcAddr(\"glVertex3xOES\"))\n\tgpVertex3xvOES = (C.GPVERTEX3XVOES)(getProcAddr(\"glVertex3xvOES\"))\n\tgpVertex4bOES = (C.GPVERTEX4BOES)(getProcAddr(\"glVertex4bOES\"))\n\tgpVertex4bvOES = (C.GPVERTEX4BVOES)(getProcAddr(\"glVertex4bvOES\"))\n\tgpVertex4d = (C.GPVERTEX4D)(getProcAddr(\"glVertex4d\"))\n\tif gpVertex4d == nil {\n\t\treturn errors.New(\"glVertex4d\")\n\t}\n\tgpVertex4dv = (C.GPVERTEX4DV)(getProcAddr(\"glVertex4dv\"))\n\tif gpVertex4dv == nil {\n\t\treturn errors.New(\"glVertex4dv\")\n\t}\n\tgpVertex4f = (C.GPVERTEX4F)(getProcAddr(\"glVertex4f\"))\n\tif gpVertex4f == nil {\n\t\treturn errors.New(\"glVertex4f\")\n\t}\n\tgpVertex4fv = (C.GPVERTEX4FV)(getProcAddr(\"glVertex4fv\"))\n\tif gpVertex4fv == nil {\n\t\treturn errors.New(\"glVertex4fv\")\n\t}\n\tgpVertex4hNV = (C.GPVERTEX4HNV)(getProcAddr(\"glVertex4hNV\"))\n\tgpVertex4hvNV = (C.GPVERTEX4HVNV)(getProcAddr(\"glVertex4hvNV\"))\n\tgpVertex4i = (C.GPVERTEX4I)(getProcAddr(\"glVertex4i\"))\n\tif gpVertex4i == nil {\n\t\treturn errors.New(\"glVertex4i\")\n\t}\n\tgpVertex4iv = (C.GPVERTEX4IV)(getProcAddr(\"glVertex4iv\"))\n\tif gpVertex4iv == nil {\n\t\treturn errors.New(\"glVertex4iv\")\n\t}\n\tgpVertex4s = (C.GPVERTEX4S)(getProcAddr(\"glVertex4s\"))\n\tif gpVertex4s == nil {\n\t\treturn errors.New(\"glVertex4s\")\n\t}\n\tgpVertex4sv = (C.GPVERTEX4SV)(getProcAddr(\"glVertex4sv\"))\n\tif gpVertex4sv == nil {\n\t\treturn errors.New(\"glVertex4sv\")\n\t}\n\tgpVertex4xOES = (C.GPVERTEX4XOES)(getProcAddr(\"glVertex4xOES\"))\n\tgpVertex4xvOES = (C.GPVERTEX4XVOES)(getProcAddr(\"glVertex4xvOES\"))\n\tgpVertexArrayAttribBinding = (C.GPVERTEXARRAYATTRIBBINDING)(getProcAddr(\"glVertexArrayAttribBinding\"))\n\tgpVertexArrayAttribFormat = (C.GPVERTEXARRAYATTRIBFORMAT)(getProcAddr(\"glVertexArrayAttribFormat\"))\n\tgpVertexArrayAttribIFormat = (C.GPVERTEXARRAYATTRIBIFORMAT)(getProcAddr(\"glVertexArrayAttribIFormat\"))\n\tgpVertexArrayAttribLFormat = (C.GPVERTEXARRAYATTRIBLFORMAT)(getProcAddr(\"glVertexArrayAttribLFormat\"))\n\tgpVertexArrayBindVertexBufferEXT = (C.GPVERTEXARRAYBINDVERTEXBUFFEREXT)(getProcAddr(\"glVertexArrayBindVertexBufferEXT\"))\n\tgpVertexArrayBindingDivisor = (C.GPVERTEXARRAYBINDINGDIVISOR)(getProcAddr(\"glVertexArrayBindingDivisor\"))\n\tgpVertexArrayColorOffsetEXT = (C.GPVERTEXARRAYCOLOROFFSETEXT)(getProcAddr(\"glVertexArrayColorOffsetEXT\"))\n\tgpVertexArrayEdgeFlagOffsetEXT = (C.GPVERTEXARRAYEDGEFLAGOFFSETEXT)(getProcAddr(\"glVertexArrayEdgeFlagOffsetEXT\"))\n\tgpVertexArrayElementBuffer = (C.GPVERTEXARRAYELEMENTBUFFER)(getProcAddr(\"glVertexArrayElementBuffer\"))\n\tgpVertexArrayFogCoordOffsetEXT = (C.GPVERTEXARRAYFOGCOORDOFFSETEXT)(getProcAddr(\"glVertexArrayFogCoordOffsetEXT\"))\n\tgpVertexArrayIndexOffsetEXT = (C.GPVERTEXARRAYINDEXOFFSETEXT)(getProcAddr(\"glVertexArrayIndexOffsetEXT\"))\n\tgpVertexArrayMultiTexCoordOffsetEXT = (C.GPVERTEXARRAYMULTITEXCOORDOFFSETEXT)(getProcAddr(\"glVertexArrayMultiTexCoordOffsetEXT\"))\n\tgpVertexArrayNormalOffsetEXT = (C.GPVERTEXARRAYNORMALOFFSETEXT)(getProcAddr(\"glVertexArrayNormalOffsetEXT\"))\n\tgpVertexArrayParameteriAPPLE = (C.GPVERTEXARRAYPARAMETERIAPPLE)(getProcAddr(\"glVertexArrayParameteriAPPLE\"))\n\tgpVertexArrayRangeAPPLE = (C.GPVERTEXARRAYRANGEAPPLE)(getProcAddr(\"glVertexArrayRangeAPPLE\"))\n\tgpVertexArrayRangeNV = (C.GPVERTEXARRAYRANGENV)(getProcAddr(\"glVertexArrayRangeNV\"))\n\tgpVertexArraySecondaryColorOffsetEXT = (C.GPVERTEXARRAYSECONDARYCOLOROFFSETEXT)(getProcAddr(\"glVertexArraySecondaryColorOffsetEXT\"))\n\tgpVertexArrayTexCoordOffsetEXT = (C.GPVERTEXARRAYTEXCOORDOFFSETEXT)(getProcAddr(\"glVertexArrayTexCoordOffsetEXT\"))\n\tgpVertexArrayVertexAttribBindingEXT = (C.GPVERTEXARRAYVERTEXATTRIBBINDINGEXT)(getProcAddr(\"glVertexArrayVertexAttribBindingEXT\"))\n\tgpVertexArrayVertexAttribDivisorEXT = (C.GPVERTEXARRAYVERTEXATTRIBDIVISOREXT)(getProcAddr(\"glVertexArrayVertexAttribDivisorEXT\"))\n\tgpVertexArrayVertexAttribFormatEXT = (C.GPVERTEXARRAYVERTEXATTRIBFORMATEXT)(getProcAddr(\"glVertexArrayVertexAttribFormatEXT\"))\n\tgpVertexArrayVertexAttribIFormatEXT = (C.GPVERTEXARRAYVERTEXATTRIBIFORMATEXT)(getProcAddr(\"glVertexArrayVertexAttribIFormatEXT\"))\n\tgpVertexArrayVertexAttribIOffsetEXT = (C.GPVERTEXARRAYVERTEXATTRIBIOFFSETEXT)(getProcAddr(\"glVertexArrayVertexAttribIOffsetEXT\"))\n\tgpVertexArrayVertexAttribLFormatEXT = (C.GPVERTEXARRAYVERTEXATTRIBLFORMATEXT)(getProcAddr(\"glVertexArrayVertexAttribLFormatEXT\"))\n\tgpVertexArrayVertexAttribLOffsetEXT = (C.GPVERTEXARRAYVERTEXATTRIBLOFFSETEXT)(getProcAddr(\"glVertexArrayVertexAttribLOffsetEXT\"))\n\tgpVertexArrayVertexAttribOffsetEXT = (C.GPVERTEXARRAYVERTEXATTRIBOFFSETEXT)(getProcAddr(\"glVertexArrayVertexAttribOffsetEXT\"))\n\tgpVertexArrayVertexBindingDivisorEXT = (C.GPVERTEXARRAYVERTEXBINDINGDIVISOREXT)(getProcAddr(\"glVertexArrayVertexBindingDivisorEXT\"))\n\tgpVertexArrayVertexBuffer = (C.GPVERTEXARRAYVERTEXBUFFER)(getProcAddr(\"glVertexArrayVertexBuffer\"))\n\tgpVertexArrayVertexBuffers = (C.GPVERTEXARRAYVERTEXBUFFERS)(getProcAddr(\"glVertexArrayVertexBuffers\"))\n\tgpVertexArrayVertexOffsetEXT = (C.GPVERTEXARRAYVERTEXOFFSETEXT)(getProcAddr(\"glVertexArrayVertexOffsetEXT\"))\n\tgpVertexAttrib1d = (C.GPVERTEXATTRIB1D)(getProcAddr(\"glVertexAttrib1d\"))\n\tif gpVertexAttrib1d == nil {\n\t\treturn errors.New(\"glVertexAttrib1d\")\n\t}\n\tgpVertexAttrib1dARB = (C.GPVERTEXATTRIB1DARB)(getProcAddr(\"glVertexAttrib1dARB\"))\n\tgpVertexAttrib1dNV = (C.GPVERTEXATTRIB1DNV)(getProcAddr(\"glVertexAttrib1dNV\"))\n\tgpVertexAttrib1dv = (C.GPVERTEXATTRIB1DV)(getProcAddr(\"glVertexAttrib1dv\"))\n\tif gpVertexAttrib1dv == nil {\n\t\treturn errors.New(\"glVertexAttrib1dv\")\n\t}\n\tgpVertexAttrib1dvARB = (C.GPVERTEXATTRIB1DVARB)(getProcAddr(\"glVertexAttrib1dvARB\"))\n\tgpVertexAttrib1dvNV = (C.GPVERTEXATTRIB1DVNV)(getProcAddr(\"glVertexAttrib1dvNV\"))\n\tgpVertexAttrib1f = (C.GPVERTEXATTRIB1F)(getProcAddr(\"glVertexAttrib1f\"))\n\tif gpVertexAttrib1f == nil {\n\t\treturn errors.New(\"glVertexAttrib1f\")\n\t}\n\tgpVertexAttrib1fARB = (C.GPVERTEXATTRIB1FARB)(getProcAddr(\"glVertexAttrib1fARB\"))\n\tgpVertexAttrib1fNV = (C.GPVERTEXATTRIB1FNV)(getProcAddr(\"glVertexAttrib1fNV\"))\n\tgpVertexAttrib1fv = (C.GPVERTEXATTRIB1FV)(getProcAddr(\"glVertexAttrib1fv\"))\n\tif gpVertexAttrib1fv == nil {\n\t\treturn errors.New(\"glVertexAttrib1fv\")\n\t}\n\tgpVertexAttrib1fvARB = (C.GPVERTEXATTRIB1FVARB)(getProcAddr(\"glVertexAttrib1fvARB\"))\n\tgpVertexAttrib1fvNV = (C.GPVERTEXATTRIB1FVNV)(getProcAddr(\"glVertexAttrib1fvNV\"))\n\tgpVertexAttrib1hNV = (C.GPVERTEXATTRIB1HNV)(getProcAddr(\"glVertexAttrib1hNV\"))\n\tgpVertexAttrib1hvNV = (C.GPVERTEXATTRIB1HVNV)(getProcAddr(\"glVertexAttrib1hvNV\"))\n\tgpVertexAttrib1s = (C.GPVERTEXATTRIB1S)(getProcAddr(\"glVertexAttrib1s\"))\n\tif gpVertexAttrib1s == nil {\n\t\treturn errors.New(\"glVertexAttrib1s\")\n\t}\n\tgpVertexAttrib1sARB = (C.GPVERTEXATTRIB1SARB)(getProcAddr(\"glVertexAttrib1sARB\"))\n\tgpVertexAttrib1sNV = (C.GPVERTEXATTRIB1SNV)(getProcAddr(\"glVertexAttrib1sNV\"))\n\tgpVertexAttrib1sv = (C.GPVERTEXATTRIB1SV)(getProcAddr(\"glVertexAttrib1sv\"))\n\tif gpVertexAttrib1sv == nil {\n\t\treturn errors.New(\"glVertexAttrib1sv\")\n\t}\n\tgpVertexAttrib1svARB = (C.GPVERTEXATTRIB1SVARB)(getProcAddr(\"glVertexAttrib1svARB\"))\n\tgpVertexAttrib1svNV = (C.GPVERTEXATTRIB1SVNV)(getProcAddr(\"glVertexAttrib1svNV\"))\n\tgpVertexAttrib2d = (C.GPVERTEXATTRIB2D)(getProcAddr(\"glVertexAttrib2d\"))\n\tif gpVertexAttrib2d == nil {\n\t\treturn errors.New(\"glVertexAttrib2d\")\n\t}\n\tgpVertexAttrib2dARB = (C.GPVERTEXATTRIB2DARB)(getProcAddr(\"glVertexAttrib2dARB\"))\n\tgpVertexAttrib2dNV = (C.GPVERTEXATTRIB2DNV)(getProcAddr(\"glVertexAttrib2dNV\"))\n\tgpVertexAttrib2dv = (C.GPVERTEXATTRIB2DV)(getProcAddr(\"glVertexAttrib2dv\"))\n\tif gpVertexAttrib2dv == nil {\n\t\treturn errors.New(\"glVertexAttrib2dv\")\n\t}\n\tgpVertexAttrib2dvARB = (C.GPVERTEXATTRIB2DVARB)(getProcAddr(\"glVertexAttrib2dvARB\"))\n\tgpVertexAttrib2dvNV = (C.GPVERTEXATTRIB2DVNV)(getProcAddr(\"glVertexAttrib2dvNV\"))\n\tgpVertexAttrib2f = (C.GPVERTEXATTRIB2F)(getProcAddr(\"glVertexAttrib2f\"))\n\tif gpVertexAttrib2f == nil {\n\t\treturn errors.New(\"glVertexAttrib2f\")\n\t}\n\tgpVertexAttrib2fARB = (C.GPVERTEXATTRIB2FARB)(getProcAddr(\"glVertexAttrib2fARB\"))\n\tgpVertexAttrib2fNV = (C.GPVERTEXATTRIB2FNV)(getProcAddr(\"glVertexAttrib2fNV\"))\n\tgpVertexAttrib2fv = (C.GPVERTEXATTRIB2FV)(getProcAddr(\"glVertexAttrib2fv\"))\n\tif gpVertexAttrib2fv == nil {\n\t\treturn errors.New(\"glVertexAttrib2fv\")\n\t}\n\tgpVertexAttrib2fvARB = (C.GPVERTEXATTRIB2FVARB)(getProcAddr(\"glVertexAttrib2fvARB\"))\n\tgpVertexAttrib2fvNV = (C.GPVERTEXATTRIB2FVNV)(getProcAddr(\"glVertexAttrib2fvNV\"))\n\tgpVertexAttrib2hNV = (C.GPVERTEXATTRIB2HNV)(getProcAddr(\"glVertexAttrib2hNV\"))\n\tgpVertexAttrib2hvNV = (C.GPVERTEXATTRIB2HVNV)(getProcAddr(\"glVertexAttrib2hvNV\"))\n\tgpVertexAttrib2s = (C.GPVERTEXATTRIB2S)(getProcAddr(\"glVertexAttrib2s\"))\n\tif gpVertexAttrib2s == nil {\n\t\treturn errors.New(\"glVertexAttrib2s\")\n\t}\n\tgpVertexAttrib2sARB = (C.GPVERTEXATTRIB2SARB)(getProcAddr(\"glVertexAttrib2sARB\"))\n\tgpVertexAttrib2sNV = (C.GPVERTEXATTRIB2SNV)(getProcAddr(\"glVertexAttrib2sNV\"))\n\tgpVertexAttrib2sv = (C.GPVERTEXATTRIB2SV)(getProcAddr(\"glVertexAttrib2sv\"))\n\tif gpVertexAttrib2sv == nil {\n\t\treturn errors.New(\"glVertexAttrib2sv\")\n\t}\n\tgpVertexAttrib2svARB = (C.GPVERTEXATTRIB2SVARB)(getProcAddr(\"glVertexAttrib2svARB\"))\n\tgpVertexAttrib2svNV = (C.GPVERTEXATTRIB2SVNV)(getProcAddr(\"glVertexAttrib2svNV\"))\n\tgpVertexAttrib3d = (C.GPVERTEXATTRIB3D)(getProcAddr(\"glVertexAttrib3d\"))\n\tif gpVertexAttrib3d == nil {\n\t\treturn errors.New(\"glVertexAttrib3d\")\n\t}\n\tgpVertexAttrib3dARB = (C.GPVERTEXATTRIB3DARB)(getProcAddr(\"glVertexAttrib3dARB\"))\n\tgpVertexAttrib3dNV = (C.GPVERTEXATTRIB3DNV)(getProcAddr(\"glVertexAttrib3dNV\"))\n\tgpVertexAttrib3dv = (C.GPVERTEXATTRIB3DV)(getProcAddr(\"glVertexAttrib3dv\"))\n\tif gpVertexAttrib3dv == nil {\n\t\treturn errors.New(\"glVertexAttrib3dv\")\n\t}\n\tgpVertexAttrib3dvARB = (C.GPVERTEXATTRIB3DVARB)(getProcAddr(\"glVertexAttrib3dvARB\"))\n\tgpVertexAttrib3dvNV = (C.GPVERTEXATTRIB3DVNV)(getProcAddr(\"glVertexAttrib3dvNV\"))\n\tgpVertexAttrib3f = (C.GPVERTEXATTRIB3F)(getProcAddr(\"glVertexAttrib3f\"))\n\tif gpVertexAttrib3f == nil {\n\t\treturn errors.New(\"glVertexAttrib3f\")\n\t}\n\tgpVertexAttrib3fARB = (C.GPVERTEXATTRIB3FARB)(getProcAddr(\"glVertexAttrib3fARB\"))\n\tgpVertexAttrib3fNV = (C.GPVERTEXATTRIB3FNV)(getProcAddr(\"glVertexAttrib3fNV\"))\n\tgpVertexAttrib3fv = (C.GPVERTEXATTRIB3FV)(getProcAddr(\"glVertexAttrib3fv\"))\n\tif gpVertexAttrib3fv == nil {\n\t\treturn errors.New(\"glVertexAttrib3fv\")\n\t}\n\tgpVertexAttrib3fvARB = (C.GPVERTEXATTRIB3FVARB)(getProcAddr(\"glVertexAttrib3fvARB\"))\n\tgpVertexAttrib3fvNV = (C.GPVERTEXATTRIB3FVNV)(getProcAddr(\"glVertexAttrib3fvNV\"))\n\tgpVertexAttrib3hNV = (C.GPVERTEXATTRIB3HNV)(getProcAddr(\"glVertexAttrib3hNV\"))\n\tgpVertexAttrib3hvNV = (C.GPVERTEXATTRIB3HVNV)(getProcAddr(\"glVertexAttrib3hvNV\"))\n\tgpVertexAttrib3s = (C.GPVERTEXATTRIB3S)(getProcAddr(\"glVertexAttrib3s\"))\n\tif gpVertexAttrib3s == nil {\n\t\treturn errors.New(\"glVertexAttrib3s\")\n\t}\n\tgpVertexAttrib3sARB = (C.GPVERTEXATTRIB3SARB)(getProcAddr(\"glVertexAttrib3sARB\"))\n\tgpVertexAttrib3sNV = (C.GPVERTEXATTRIB3SNV)(getProcAddr(\"glVertexAttrib3sNV\"))\n\tgpVertexAttrib3sv = (C.GPVERTEXATTRIB3SV)(getProcAddr(\"glVertexAttrib3sv\"))\n\tif gpVertexAttrib3sv == nil {\n\t\treturn errors.New(\"glVertexAttrib3sv\")\n\t}\n\tgpVertexAttrib3svARB = (C.GPVERTEXATTRIB3SVARB)(getProcAddr(\"glVertexAttrib3svARB\"))\n\tgpVertexAttrib3svNV = (C.GPVERTEXATTRIB3SVNV)(getProcAddr(\"glVertexAttrib3svNV\"))\n\tgpVertexAttrib4Nbv = (C.GPVERTEXATTRIB4NBV)(getProcAddr(\"glVertexAttrib4Nbv\"))\n\tif gpVertexAttrib4Nbv == nil {\n\t\treturn errors.New(\"glVertexAttrib4Nbv\")\n\t}\n\tgpVertexAttrib4NbvARB = (C.GPVERTEXATTRIB4NBVARB)(getProcAddr(\"glVertexAttrib4NbvARB\"))\n\tgpVertexAttrib4Niv = (C.GPVERTEXATTRIB4NIV)(getProcAddr(\"glVertexAttrib4Niv\"))\n\tif gpVertexAttrib4Niv == nil {\n\t\treturn errors.New(\"glVertexAttrib4Niv\")\n\t}\n\tgpVertexAttrib4NivARB = (C.GPVERTEXATTRIB4NIVARB)(getProcAddr(\"glVertexAttrib4NivARB\"))\n\tgpVertexAttrib4Nsv = (C.GPVERTEXATTRIB4NSV)(getProcAddr(\"glVertexAttrib4Nsv\"))\n\tif gpVertexAttrib4Nsv == nil {\n\t\treturn errors.New(\"glVertexAttrib4Nsv\")\n\t}\n\tgpVertexAttrib4NsvARB = (C.GPVERTEXATTRIB4NSVARB)(getProcAddr(\"glVertexAttrib4NsvARB\"))\n\tgpVertexAttrib4Nub = (C.GPVERTEXATTRIB4NUB)(getProcAddr(\"glVertexAttrib4Nub\"))\n\tif gpVertexAttrib4Nub == nil {\n\t\treturn errors.New(\"glVertexAttrib4Nub\")\n\t}\n\tgpVertexAttrib4NubARB = (C.GPVERTEXATTRIB4NUBARB)(getProcAddr(\"glVertexAttrib4NubARB\"))\n\tgpVertexAttrib4Nubv = (C.GPVERTEXATTRIB4NUBV)(getProcAddr(\"glVertexAttrib4Nubv\"))\n\tif gpVertexAttrib4Nubv == nil {\n\t\treturn errors.New(\"glVertexAttrib4Nubv\")\n\t}\n\tgpVertexAttrib4NubvARB = (C.GPVERTEXATTRIB4NUBVARB)(getProcAddr(\"glVertexAttrib4NubvARB\"))\n\tgpVertexAttrib4Nuiv = (C.GPVERTEXATTRIB4NUIV)(getProcAddr(\"glVertexAttrib4Nuiv\"))\n\tif gpVertexAttrib4Nuiv == nil {\n\t\treturn errors.New(\"glVertexAttrib4Nuiv\")\n\t}\n\tgpVertexAttrib4NuivARB = (C.GPVERTEXATTRIB4NUIVARB)(getProcAddr(\"glVertexAttrib4NuivARB\"))\n\tgpVertexAttrib4Nusv = (C.GPVERTEXATTRIB4NUSV)(getProcAddr(\"glVertexAttrib4Nusv\"))\n\tif gpVertexAttrib4Nusv == nil {\n\t\treturn errors.New(\"glVertexAttrib4Nusv\")\n\t}\n\tgpVertexAttrib4NusvARB = (C.GPVERTEXATTRIB4NUSVARB)(getProcAddr(\"glVertexAttrib4NusvARB\"))\n\tgpVertexAttrib4bv = (C.GPVERTEXATTRIB4BV)(getProcAddr(\"glVertexAttrib4bv\"))\n\tif gpVertexAttrib4bv == nil {\n\t\treturn errors.New(\"glVertexAttrib4bv\")\n\t}\n\tgpVertexAttrib4bvARB = (C.GPVERTEXATTRIB4BVARB)(getProcAddr(\"glVertexAttrib4bvARB\"))\n\tgpVertexAttrib4d = (C.GPVERTEXATTRIB4D)(getProcAddr(\"glVertexAttrib4d\"))\n\tif gpVertexAttrib4d == nil {\n\t\treturn errors.New(\"glVertexAttrib4d\")\n\t}\n\tgpVertexAttrib4dARB = (C.GPVERTEXATTRIB4DARB)(getProcAddr(\"glVertexAttrib4dARB\"))\n\tgpVertexAttrib4dNV = (C.GPVERTEXATTRIB4DNV)(getProcAddr(\"glVertexAttrib4dNV\"))\n\tgpVertexAttrib4dv = (C.GPVERTEXATTRIB4DV)(getProcAddr(\"glVertexAttrib4dv\"))\n\tif gpVertexAttrib4dv == nil {\n\t\treturn errors.New(\"glVertexAttrib4dv\")\n\t}\n\tgpVertexAttrib4dvARB = (C.GPVERTEXATTRIB4DVARB)(getProcAddr(\"glVertexAttrib4dvARB\"))\n\tgpVertexAttrib4dvNV = (C.GPVERTEXATTRIB4DVNV)(getProcAddr(\"glVertexAttrib4dvNV\"))\n\tgpVertexAttrib4f = (C.GPVERTEXATTRIB4F)(getProcAddr(\"glVertexAttrib4f\"))\n\tif gpVertexAttrib4f == nil {\n\t\treturn errors.New(\"glVertexAttrib4f\")\n\t}\n\tgpVertexAttrib4fARB = (C.GPVERTEXATTRIB4FARB)(getProcAddr(\"glVertexAttrib4fARB\"))\n\tgpVertexAttrib4fNV = (C.GPVERTEXATTRIB4FNV)(getProcAddr(\"glVertexAttrib4fNV\"))\n\tgpVertexAttrib4fv = (C.GPVERTEXATTRIB4FV)(getProcAddr(\"glVertexAttrib4fv\"))\n\tif gpVertexAttrib4fv == nil {\n\t\treturn errors.New(\"glVertexAttrib4fv\")\n\t}\n\tgpVertexAttrib4fvARB = (C.GPVERTEXATTRIB4FVARB)(getProcAddr(\"glVertexAttrib4fvARB\"))\n\tgpVertexAttrib4fvNV = (C.GPVERTEXATTRIB4FVNV)(getProcAddr(\"glVertexAttrib4fvNV\"))\n\tgpVertexAttrib4hNV = (C.GPVERTEXATTRIB4HNV)(getProcAddr(\"glVertexAttrib4hNV\"))\n\tgpVertexAttrib4hvNV = (C.GPVERTEXATTRIB4HVNV)(getProcAddr(\"glVertexAttrib4hvNV\"))\n\tgpVertexAttrib4iv = (C.GPVERTEXATTRIB4IV)(getProcAddr(\"glVertexAttrib4iv\"))\n\tif gpVertexAttrib4iv == nil {\n\t\treturn errors.New(\"glVertexAttrib4iv\")\n\t}\n\tgpVertexAttrib4ivARB = (C.GPVERTEXATTRIB4IVARB)(getProcAddr(\"glVertexAttrib4ivARB\"))\n\tgpVertexAttrib4s = (C.GPVERTEXATTRIB4S)(getProcAddr(\"glVertexAttrib4s\"))\n\tif gpVertexAttrib4s == nil {\n\t\treturn errors.New(\"glVertexAttrib4s\")\n\t}\n\tgpVertexAttrib4sARB = (C.GPVERTEXATTRIB4SARB)(getProcAddr(\"glVertexAttrib4sARB\"))\n\tgpVertexAttrib4sNV = (C.GPVERTEXATTRIB4SNV)(getProcAddr(\"glVertexAttrib4sNV\"))\n\tgpVertexAttrib4sv = (C.GPVERTEXATTRIB4SV)(getProcAddr(\"glVertexAttrib4sv\"))\n\tif gpVertexAttrib4sv == nil {\n\t\treturn errors.New(\"glVertexAttrib4sv\")\n\t}\n\tgpVertexAttrib4svARB = (C.GPVERTEXATTRIB4SVARB)(getProcAddr(\"glVertexAttrib4svARB\"))\n\tgpVertexAttrib4svNV = (C.GPVERTEXATTRIB4SVNV)(getProcAddr(\"glVertexAttrib4svNV\"))\n\tgpVertexAttrib4ubNV = (C.GPVERTEXATTRIB4UBNV)(getProcAddr(\"glVertexAttrib4ubNV\"))\n\tgpVertexAttrib4ubv = (C.GPVERTEXATTRIB4UBV)(getProcAddr(\"glVertexAttrib4ubv\"))\n\tif gpVertexAttrib4ubv == nil {\n\t\treturn errors.New(\"glVertexAttrib4ubv\")\n\t}\n\tgpVertexAttrib4ubvARB = (C.GPVERTEXATTRIB4UBVARB)(getProcAddr(\"glVertexAttrib4ubvARB\"))\n\tgpVertexAttrib4ubvNV = (C.GPVERTEXATTRIB4UBVNV)(getProcAddr(\"glVertexAttrib4ubvNV\"))\n\tgpVertexAttrib4uiv = (C.GPVERTEXATTRIB4UIV)(getProcAddr(\"glVertexAttrib4uiv\"))\n\tif gpVertexAttrib4uiv == nil {\n\t\treturn errors.New(\"glVertexAttrib4uiv\")\n\t}\n\tgpVertexAttrib4uivARB = (C.GPVERTEXATTRIB4UIVARB)(getProcAddr(\"glVertexAttrib4uivARB\"))\n\tgpVertexAttrib4usv = (C.GPVERTEXATTRIB4USV)(getProcAddr(\"glVertexAttrib4usv\"))\n\tif gpVertexAttrib4usv == nil {\n\t\treturn errors.New(\"glVertexAttrib4usv\")\n\t}\n\tgpVertexAttrib4usvARB = (C.GPVERTEXATTRIB4USVARB)(getProcAddr(\"glVertexAttrib4usvARB\"))\n\tgpVertexAttribArrayObjectATI = (C.GPVERTEXATTRIBARRAYOBJECTATI)(getProcAddr(\"glVertexAttribArrayObjectATI\"))\n\tgpVertexAttribBinding = (C.GPVERTEXATTRIBBINDING)(getProcAddr(\"glVertexAttribBinding\"))\n\tif gpVertexAttribBinding == nil {\n\t\treturn errors.New(\"glVertexAttribBinding\")\n\t}\n\tgpVertexAttribDivisor = (C.GPVERTEXATTRIBDIVISOR)(getProcAddr(\"glVertexAttribDivisor\"))\n\tif gpVertexAttribDivisor == nil {\n\t\treturn errors.New(\"glVertexAttribDivisor\")\n\t}\n\tgpVertexAttribDivisorARB = (C.GPVERTEXATTRIBDIVISORARB)(getProcAddr(\"glVertexAttribDivisorARB\"))\n\tgpVertexAttribFormat = (C.GPVERTEXATTRIBFORMAT)(getProcAddr(\"glVertexAttribFormat\"))\n\tif gpVertexAttribFormat == nil {\n\t\treturn errors.New(\"glVertexAttribFormat\")\n\t}\n\tgpVertexAttribFormatNV = (C.GPVERTEXATTRIBFORMATNV)(getProcAddr(\"glVertexAttribFormatNV\"))\n\tgpVertexAttribI1i = (C.GPVERTEXATTRIBI1I)(getProcAddr(\"glVertexAttribI1i\"))\n\tif gpVertexAttribI1i == nil {\n\t\treturn errors.New(\"glVertexAttribI1i\")\n\t}\n\tgpVertexAttribI1iEXT = (C.GPVERTEXATTRIBI1IEXT)(getProcAddr(\"glVertexAttribI1iEXT\"))\n\tgpVertexAttribI1iv = (C.GPVERTEXATTRIBI1IV)(getProcAddr(\"glVertexAttribI1iv\"))\n\tif gpVertexAttribI1iv == nil {\n\t\treturn errors.New(\"glVertexAttribI1iv\")\n\t}\n\tgpVertexAttribI1ivEXT = (C.GPVERTEXATTRIBI1IVEXT)(getProcAddr(\"glVertexAttribI1ivEXT\"))\n\tgpVertexAttribI1ui = (C.GPVERTEXATTRIBI1UI)(getProcAddr(\"glVertexAttribI1ui\"))\n\tif gpVertexAttribI1ui == nil {\n\t\treturn errors.New(\"glVertexAttribI1ui\")\n\t}\n\tgpVertexAttribI1uiEXT = (C.GPVERTEXATTRIBI1UIEXT)(getProcAddr(\"glVertexAttribI1uiEXT\"))\n\tgpVertexAttribI1uiv = (C.GPVERTEXATTRIBI1UIV)(getProcAddr(\"glVertexAttribI1uiv\"))\n\tif gpVertexAttribI1uiv == nil {\n\t\treturn errors.New(\"glVertexAttribI1uiv\")\n\t}\n\tgpVertexAttribI1uivEXT = (C.GPVERTEXATTRIBI1UIVEXT)(getProcAddr(\"glVertexAttribI1uivEXT\"))\n\tgpVertexAttribI2i = (C.GPVERTEXATTRIBI2I)(getProcAddr(\"glVertexAttribI2i\"))\n\tif gpVertexAttribI2i == nil {\n\t\treturn errors.New(\"glVertexAttribI2i\")\n\t}\n\tgpVertexAttribI2iEXT = (C.GPVERTEXATTRIBI2IEXT)(getProcAddr(\"glVertexAttribI2iEXT\"))\n\tgpVertexAttribI2iv = (C.GPVERTEXATTRIBI2IV)(getProcAddr(\"glVertexAttribI2iv\"))\n\tif gpVertexAttribI2iv == nil {\n\t\treturn errors.New(\"glVertexAttribI2iv\")\n\t}\n\tgpVertexAttribI2ivEXT = (C.GPVERTEXATTRIBI2IVEXT)(getProcAddr(\"glVertexAttribI2ivEXT\"))\n\tgpVertexAttribI2ui = (C.GPVERTEXATTRIBI2UI)(getProcAddr(\"glVertexAttribI2ui\"))\n\tif gpVertexAttribI2ui == nil {\n\t\treturn errors.New(\"glVertexAttribI2ui\")\n\t}\n\tgpVertexAttribI2uiEXT = (C.GPVERTEXATTRIBI2UIEXT)(getProcAddr(\"glVertexAttribI2uiEXT\"))\n\tgpVertexAttribI2uiv = (C.GPVERTEXATTRIBI2UIV)(getProcAddr(\"glVertexAttribI2uiv\"))\n\tif gpVertexAttribI2uiv == nil {\n\t\treturn errors.New(\"glVertexAttribI2uiv\")\n\t}\n\tgpVertexAttribI2uivEXT = (C.GPVERTEXATTRIBI2UIVEXT)(getProcAddr(\"glVertexAttribI2uivEXT\"))\n\tgpVertexAttribI3i = (C.GPVERTEXATTRIBI3I)(getProcAddr(\"glVertexAttribI3i\"))\n\tif gpVertexAttribI3i == nil {\n\t\treturn errors.New(\"glVertexAttribI3i\")\n\t}\n\tgpVertexAttribI3iEXT = (C.GPVERTEXATTRIBI3IEXT)(getProcAddr(\"glVertexAttribI3iEXT\"))\n\tgpVertexAttribI3iv = (C.GPVERTEXATTRIBI3IV)(getProcAddr(\"glVertexAttribI3iv\"))\n\tif gpVertexAttribI3iv == nil {\n\t\treturn errors.New(\"glVertexAttribI3iv\")\n\t}\n\tgpVertexAttribI3ivEXT = (C.GPVERTEXATTRIBI3IVEXT)(getProcAddr(\"glVertexAttribI3ivEXT\"))\n\tgpVertexAttribI3ui = (C.GPVERTEXATTRIBI3UI)(getProcAddr(\"glVertexAttribI3ui\"))\n\tif gpVertexAttribI3ui == nil {\n\t\treturn errors.New(\"glVertexAttribI3ui\")\n\t}\n\tgpVertexAttribI3uiEXT = (C.GPVERTEXATTRIBI3UIEXT)(getProcAddr(\"glVertexAttribI3uiEXT\"))\n\tgpVertexAttribI3uiv = (C.GPVERTEXATTRIBI3UIV)(getProcAddr(\"glVertexAttribI3uiv\"))\n\tif gpVertexAttribI3uiv == nil {\n\t\treturn errors.New(\"glVertexAttribI3uiv\")\n\t}\n\tgpVertexAttribI3uivEXT = (C.GPVERTEXATTRIBI3UIVEXT)(getProcAddr(\"glVertexAttribI3uivEXT\"))\n\tgpVertexAttribI4bv = (C.GPVERTEXATTRIBI4BV)(getProcAddr(\"glVertexAttribI4bv\"))\n\tif gpVertexAttribI4bv == nil {\n\t\treturn errors.New(\"glVertexAttribI4bv\")\n\t}\n\tgpVertexAttribI4bvEXT = (C.GPVERTEXATTRIBI4BVEXT)(getProcAddr(\"glVertexAttribI4bvEXT\"))\n\tgpVertexAttribI4i = (C.GPVERTEXATTRIBI4I)(getProcAddr(\"glVertexAttribI4i\"))\n\tif gpVertexAttribI4i == nil {\n\t\treturn errors.New(\"glVertexAttribI4i\")\n\t}\n\tgpVertexAttribI4iEXT = (C.GPVERTEXATTRIBI4IEXT)(getProcAddr(\"glVertexAttribI4iEXT\"))\n\tgpVertexAttribI4iv = (C.GPVERTEXATTRIBI4IV)(getProcAddr(\"glVertexAttribI4iv\"))\n\tif gpVertexAttribI4iv == nil {\n\t\treturn errors.New(\"glVertexAttribI4iv\")\n\t}\n\tgpVertexAttribI4ivEXT = (C.GPVERTEXATTRIBI4IVEXT)(getProcAddr(\"glVertexAttribI4ivEXT\"))\n\tgpVertexAttribI4sv = (C.GPVERTEXATTRIBI4SV)(getProcAddr(\"glVertexAttribI4sv\"))\n\tif gpVertexAttribI4sv == nil {\n\t\treturn errors.New(\"glVertexAttribI4sv\")\n\t}\n\tgpVertexAttribI4svEXT = (C.GPVERTEXATTRIBI4SVEXT)(getProcAddr(\"glVertexAttribI4svEXT\"))\n\tgpVertexAttribI4ubv = (C.GPVERTEXATTRIBI4UBV)(getProcAddr(\"glVertexAttribI4ubv\"))\n\tif gpVertexAttribI4ubv == nil {\n\t\treturn errors.New(\"glVertexAttribI4ubv\")\n\t}\n\tgpVertexAttribI4ubvEXT = (C.GPVERTEXATTRIBI4UBVEXT)(getProcAddr(\"glVertexAttribI4ubvEXT\"))\n\tgpVertexAttribI4ui = (C.GPVERTEXATTRIBI4UI)(getProcAddr(\"glVertexAttribI4ui\"))\n\tif gpVertexAttribI4ui == nil {\n\t\treturn errors.New(\"glVertexAttribI4ui\")\n\t}\n\tgpVertexAttribI4uiEXT = (C.GPVERTEXATTRIBI4UIEXT)(getProcAddr(\"glVertexAttribI4uiEXT\"))\n\tgpVertexAttribI4uiv = (C.GPVERTEXATTRIBI4UIV)(getProcAddr(\"glVertexAttribI4uiv\"))\n\tif gpVertexAttribI4uiv == nil {\n\t\treturn errors.New(\"glVertexAttribI4uiv\")\n\t}\n\tgpVertexAttribI4uivEXT = (C.GPVERTEXATTRIBI4UIVEXT)(getProcAddr(\"glVertexAttribI4uivEXT\"))\n\tgpVertexAttribI4usv = (C.GPVERTEXATTRIBI4USV)(getProcAddr(\"glVertexAttribI4usv\"))\n\tif gpVertexAttribI4usv == nil {\n\t\treturn errors.New(\"glVertexAttribI4usv\")\n\t}\n\tgpVertexAttribI4usvEXT = (C.GPVERTEXATTRIBI4USVEXT)(getProcAddr(\"glVertexAttribI4usvEXT\"))\n\tgpVertexAttribIFormat = (C.GPVERTEXATTRIBIFORMAT)(getProcAddr(\"glVertexAttribIFormat\"))\n\tif gpVertexAttribIFormat == nil {\n\t\treturn errors.New(\"glVertexAttribIFormat\")\n\t}\n\tgpVertexAttribIFormatNV = (C.GPVERTEXATTRIBIFORMATNV)(getProcAddr(\"glVertexAttribIFormatNV\"))\n\tgpVertexAttribIPointer = (C.GPVERTEXATTRIBIPOINTER)(getProcAddr(\"glVertexAttribIPointer\"))\n\tif gpVertexAttribIPointer == nil {\n\t\treturn errors.New(\"glVertexAttribIPointer\")\n\t}\n\tgpVertexAttribIPointerEXT = (C.GPVERTEXATTRIBIPOINTEREXT)(getProcAddr(\"glVertexAttribIPointerEXT\"))\n\tgpVertexAttribL1d = (C.GPVERTEXATTRIBL1D)(getProcAddr(\"glVertexAttribL1d\"))\n\tif gpVertexAttribL1d == nil {\n\t\treturn errors.New(\"glVertexAttribL1d\")\n\t}\n\tgpVertexAttribL1dEXT = (C.GPVERTEXATTRIBL1DEXT)(getProcAddr(\"glVertexAttribL1dEXT\"))\n\tgpVertexAttribL1dv = (C.GPVERTEXATTRIBL1DV)(getProcAddr(\"glVertexAttribL1dv\"))\n\tif gpVertexAttribL1dv == nil {\n\t\treturn errors.New(\"glVertexAttribL1dv\")\n\t}\n\tgpVertexAttribL1dvEXT = (C.GPVERTEXATTRIBL1DVEXT)(getProcAddr(\"glVertexAttribL1dvEXT\"))\n\tgpVertexAttribL1i64NV = (C.GPVERTEXATTRIBL1I64NV)(getProcAddr(\"glVertexAttribL1i64NV\"))\n\tgpVertexAttribL1i64vNV = (C.GPVERTEXATTRIBL1I64VNV)(getProcAddr(\"glVertexAttribL1i64vNV\"))\n\tgpVertexAttribL1ui64ARB = (C.GPVERTEXATTRIBL1UI64ARB)(getProcAddr(\"glVertexAttribL1ui64ARB\"))\n\tgpVertexAttribL1ui64NV = (C.GPVERTEXATTRIBL1UI64NV)(getProcAddr(\"glVertexAttribL1ui64NV\"))\n\tgpVertexAttribL1ui64vARB = (C.GPVERTEXATTRIBL1UI64VARB)(getProcAddr(\"glVertexAttribL1ui64vARB\"))\n\tgpVertexAttribL1ui64vNV = (C.GPVERTEXATTRIBL1UI64VNV)(getProcAddr(\"glVertexAttribL1ui64vNV\"))\n\tgpVertexAttribL2d = (C.GPVERTEXATTRIBL2D)(getProcAddr(\"glVertexAttribL2d\"))\n\tif gpVertexAttribL2d == nil {\n\t\treturn errors.New(\"glVertexAttribL2d\")\n\t}\n\tgpVertexAttribL2dEXT = (C.GPVERTEXATTRIBL2DEXT)(getProcAddr(\"glVertexAttribL2dEXT\"))\n\tgpVertexAttribL2dv = (C.GPVERTEXATTRIBL2DV)(getProcAddr(\"glVertexAttribL2dv\"))\n\tif gpVertexAttribL2dv == nil {\n\t\treturn errors.New(\"glVertexAttribL2dv\")\n\t}\n\tgpVertexAttribL2dvEXT = (C.GPVERTEXATTRIBL2DVEXT)(getProcAddr(\"glVertexAttribL2dvEXT\"))\n\tgpVertexAttribL2i64NV = (C.GPVERTEXATTRIBL2I64NV)(getProcAddr(\"glVertexAttribL2i64NV\"))\n\tgpVertexAttribL2i64vNV = (C.GPVERTEXATTRIBL2I64VNV)(getProcAddr(\"glVertexAttribL2i64vNV\"))\n\tgpVertexAttribL2ui64NV = (C.GPVERTEXATTRIBL2UI64NV)(getProcAddr(\"glVertexAttribL2ui64NV\"))\n\tgpVertexAttribL2ui64vNV = (C.GPVERTEXATTRIBL2UI64VNV)(getProcAddr(\"glVertexAttribL2ui64vNV\"))\n\tgpVertexAttribL3d = (C.GPVERTEXATTRIBL3D)(getProcAddr(\"glVertexAttribL3d\"))\n\tif gpVertexAttribL3d == nil {\n\t\treturn errors.New(\"glVertexAttribL3d\")\n\t}\n\tgpVertexAttribL3dEXT = (C.GPVERTEXATTRIBL3DEXT)(getProcAddr(\"glVertexAttribL3dEXT\"))\n\tgpVertexAttribL3dv = (C.GPVERTEXATTRIBL3DV)(getProcAddr(\"glVertexAttribL3dv\"))\n\tif gpVertexAttribL3dv == nil {\n\t\treturn errors.New(\"glVertexAttribL3dv\")\n\t}\n\tgpVertexAttribL3dvEXT = (C.GPVERTEXATTRIBL3DVEXT)(getProcAddr(\"glVertexAttribL3dvEXT\"))\n\tgpVertexAttribL3i64NV = (C.GPVERTEXATTRIBL3I64NV)(getProcAddr(\"glVertexAttribL3i64NV\"))\n\tgpVertexAttribL3i64vNV = (C.GPVERTEXATTRIBL3I64VNV)(getProcAddr(\"glVertexAttribL3i64vNV\"))\n\tgpVertexAttribL3ui64NV = (C.GPVERTEXATTRIBL3UI64NV)(getProcAddr(\"glVertexAttribL3ui64NV\"))\n\tgpVertexAttribL3ui64vNV = (C.GPVERTEXATTRIBL3UI64VNV)(getProcAddr(\"glVertexAttribL3ui64vNV\"))\n\tgpVertexAttribL4d = (C.GPVERTEXATTRIBL4D)(getProcAddr(\"glVertexAttribL4d\"))\n\tif gpVertexAttribL4d == nil {\n\t\treturn errors.New(\"glVertexAttribL4d\")\n\t}\n\tgpVertexAttribL4dEXT = (C.GPVERTEXATTRIBL4DEXT)(getProcAddr(\"glVertexAttribL4dEXT\"))\n\tgpVertexAttribL4dv = (C.GPVERTEXATTRIBL4DV)(getProcAddr(\"glVertexAttribL4dv\"))\n\tif gpVertexAttribL4dv == nil {\n\t\treturn errors.New(\"glVertexAttribL4dv\")\n\t}\n\tgpVertexAttribL4dvEXT = (C.GPVERTEXATTRIBL4DVEXT)(getProcAddr(\"glVertexAttribL4dvEXT\"))\n\tgpVertexAttribL4i64NV = (C.GPVERTEXATTRIBL4I64NV)(getProcAddr(\"glVertexAttribL4i64NV\"))\n\tgpVertexAttribL4i64vNV = (C.GPVERTEXATTRIBL4I64VNV)(getProcAddr(\"glVertexAttribL4i64vNV\"))\n\tgpVertexAttribL4ui64NV = (C.GPVERTEXATTRIBL4UI64NV)(getProcAddr(\"glVertexAttribL4ui64NV\"))\n\tgpVertexAttribL4ui64vNV = (C.GPVERTEXATTRIBL4UI64VNV)(getProcAddr(\"glVertexAttribL4ui64vNV\"))\n\tgpVertexAttribLFormat = (C.GPVERTEXATTRIBLFORMAT)(getProcAddr(\"glVertexAttribLFormat\"))\n\tif gpVertexAttribLFormat == nil {\n\t\treturn errors.New(\"glVertexAttribLFormat\")\n\t}\n\tgpVertexAttribLFormatNV = (C.GPVERTEXATTRIBLFORMATNV)(getProcAddr(\"glVertexAttribLFormatNV\"))\n\tgpVertexAttribLPointer = (C.GPVERTEXATTRIBLPOINTER)(getProcAddr(\"glVertexAttribLPointer\"))\n\tif gpVertexAttribLPointer == nil {\n\t\treturn errors.New(\"glVertexAttribLPointer\")\n\t}\n\tgpVertexAttribLPointerEXT = (C.GPVERTEXATTRIBLPOINTEREXT)(getProcAddr(\"glVertexAttribLPointerEXT\"))\n\tgpVertexAttribP1ui = (C.GPVERTEXATTRIBP1UI)(getProcAddr(\"glVertexAttribP1ui\"))\n\tif gpVertexAttribP1ui == nil {\n\t\treturn errors.New(\"glVertexAttribP1ui\")\n\t}\n\tgpVertexAttribP1uiv = (C.GPVERTEXATTRIBP1UIV)(getProcAddr(\"glVertexAttribP1uiv\"))\n\tif gpVertexAttribP1uiv == nil {\n\t\treturn errors.New(\"glVertexAttribP1uiv\")\n\t}\n\tgpVertexAttribP2ui = (C.GPVERTEXATTRIBP2UI)(getProcAddr(\"glVertexAttribP2ui\"))\n\tif gpVertexAttribP2ui == nil {\n\t\treturn errors.New(\"glVertexAttribP2ui\")\n\t}\n\tgpVertexAttribP2uiv = (C.GPVERTEXATTRIBP2UIV)(getProcAddr(\"glVertexAttribP2uiv\"))\n\tif gpVertexAttribP2uiv == nil {\n\t\treturn errors.New(\"glVertexAttribP2uiv\")\n\t}\n\tgpVertexAttribP3ui = (C.GPVERTEXATTRIBP3UI)(getProcAddr(\"glVertexAttribP3ui\"))\n\tif gpVertexAttribP3ui == nil {\n\t\treturn errors.New(\"glVertexAttribP3ui\")\n\t}\n\tgpVertexAttribP3uiv = (C.GPVERTEXATTRIBP3UIV)(getProcAddr(\"glVertexAttribP3uiv\"))\n\tif gpVertexAttribP3uiv == nil {\n\t\treturn errors.New(\"glVertexAttribP3uiv\")\n\t}\n\tgpVertexAttribP4ui = (C.GPVERTEXATTRIBP4UI)(getProcAddr(\"glVertexAttribP4ui\"))\n\tif gpVertexAttribP4ui == nil {\n\t\treturn errors.New(\"glVertexAttribP4ui\")\n\t}\n\tgpVertexAttribP4uiv = (C.GPVERTEXATTRIBP4UIV)(getProcAddr(\"glVertexAttribP4uiv\"))\n\tif gpVertexAttribP4uiv == nil {\n\t\treturn errors.New(\"glVertexAttribP4uiv\")\n\t}\n\tgpVertexAttribParameteriAMD = (C.GPVERTEXATTRIBPARAMETERIAMD)(getProcAddr(\"glVertexAttribParameteriAMD\"))\n\tgpVertexAttribPointer = (C.GPVERTEXATTRIBPOINTER)(getProcAddr(\"glVertexAttribPointer\"))\n\tif gpVertexAttribPointer == nil {\n\t\treturn errors.New(\"glVertexAttribPointer\")\n\t}\n\tgpVertexAttribPointerARB = (C.GPVERTEXATTRIBPOINTERARB)(getProcAddr(\"glVertexAttribPointerARB\"))\n\tgpVertexAttribPointerNV = (C.GPVERTEXATTRIBPOINTERNV)(getProcAddr(\"glVertexAttribPointerNV\"))\n\tgpVertexAttribs1dvNV = (C.GPVERTEXATTRIBS1DVNV)(getProcAddr(\"glVertexAttribs1dvNV\"))\n\tgpVertexAttribs1fvNV = (C.GPVERTEXATTRIBS1FVNV)(getProcAddr(\"glVertexAttribs1fvNV\"))\n\tgpVertexAttribs1hvNV = (C.GPVERTEXATTRIBS1HVNV)(getProcAddr(\"glVertexAttribs1hvNV\"))\n\tgpVertexAttribs1svNV = (C.GPVERTEXATTRIBS1SVNV)(getProcAddr(\"glVertexAttribs1svNV\"))\n\tgpVertexAttribs2dvNV = (C.GPVERTEXATTRIBS2DVNV)(getProcAddr(\"glVertexAttribs2dvNV\"))\n\tgpVertexAttribs2fvNV = (C.GPVERTEXATTRIBS2FVNV)(getProcAddr(\"glVertexAttribs2fvNV\"))\n\tgpVertexAttribs2hvNV = (C.GPVERTEXATTRIBS2HVNV)(getProcAddr(\"glVertexAttribs2hvNV\"))\n\tgpVertexAttribs2svNV = (C.GPVERTEXATTRIBS2SVNV)(getProcAddr(\"glVertexAttribs2svNV\"))\n\tgpVertexAttribs3dvNV = (C.GPVERTEXATTRIBS3DVNV)(getProcAddr(\"glVertexAttribs3dvNV\"))\n\tgpVertexAttribs3fvNV = (C.GPVERTEXATTRIBS3FVNV)(getProcAddr(\"glVertexAttribs3fvNV\"))\n\tgpVertexAttribs3hvNV = (C.GPVERTEXATTRIBS3HVNV)(getProcAddr(\"glVertexAttribs3hvNV\"))\n\tgpVertexAttribs3svNV = (C.GPVERTEXATTRIBS3SVNV)(getProcAddr(\"glVertexAttribs3svNV\"))\n\tgpVertexAttribs4dvNV = (C.GPVERTEXATTRIBS4DVNV)(getProcAddr(\"glVertexAttribs4dvNV\"))\n\tgpVertexAttribs4fvNV = (C.GPVERTEXATTRIBS4FVNV)(getProcAddr(\"glVertexAttribs4fvNV\"))\n\tgpVertexAttribs4hvNV = (C.GPVERTEXATTRIBS4HVNV)(getProcAddr(\"glVertexAttribs4hvNV\"))\n\tgpVertexAttribs4svNV = (C.GPVERTEXATTRIBS4SVNV)(getProcAddr(\"glVertexAttribs4svNV\"))\n\tgpVertexAttribs4ubvNV = (C.GPVERTEXATTRIBS4UBVNV)(getProcAddr(\"glVertexAttribs4ubvNV\"))\n\tgpVertexBindingDivisor = (C.GPVERTEXBINDINGDIVISOR)(getProcAddr(\"glVertexBindingDivisor\"))\n\tif gpVertexBindingDivisor == nil {\n\t\treturn errors.New(\"glVertexBindingDivisor\")\n\t}\n\tgpVertexBlendARB = (C.GPVERTEXBLENDARB)(getProcAddr(\"glVertexBlendARB\"))\n\tgpVertexBlendEnvfATI = (C.GPVERTEXBLENDENVFATI)(getProcAddr(\"glVertexBlendEnvfATI\"))\n\tgpVertexBlendEnviATI = (C.GPVERTEXBLENDENVIATI)(getProcAddr(\"glVertexBlendEnviATI\"))\n\tgpVertexFormatNV = (C.GPVERTEXFORMATNV)(getProcAddr(\"glVertexFormatNV\"))\n\tgpVertexP2ui = (C.GPVERTEXP2UI)(getProcAddr(\"glVertexP2ui\"))\n\tif gpVertexP2ui == nil {\n\t\treturn errors.New(\"glVertexP2ui\")\n\t}\n\tgpVertexP2uiv = (C.GPVERTEXP2UIV)(getProcAddr(\"glVertexP2uiv\"))\n\tif gpVertexP2uiv == nil {\n\t\treturn errors.New(\"glVertexP2uiv\")\n\t}\n\tgpVertexP3ui = (C.GPVERTEXP3UI)(getProcAddr(\"glVertexP3ui\"))\n\tif gpVertexP3ui == nil {\n\t\treturn errors.New(\"glVertexP3ui\")\n\t}\n\tgpVertexP3uiv = (C.GPVERTEXP3UIV)(getProcAddr(\"glVertexP3uiv\"))\n\tif gpVertexP3uiv == nil {\n\t\treturn errors.New(\"glVertexP3uiv\")\n\t}\n\tgpVertexP4ui = (C.GPVERTEXP4UI)(getProcAddr(\"glVertexP4ui\"))\n\tif gpVertexP4ui == nil {\n\t\treturn errors.New(\"glVertexP4ui\")\n\t}\n\tgpVertexP4uiv = (C.GPVERTEXP4UIV)(getProcAddr(\"glVertexP4uiv\"))\n\tif gpVertexP4uiv == nil {\n\t\treturn errors.New(\"glVertexP4uiv\")\n\t}\n\tgpVertexPointer = (C.GPVERTEXPOINTER)(getProcAddr(\"glVertexPointer\"))\n\tif gpVertexPointer == nil {\n\t\treturn errors.New(\"glVertexPointer\")\n\t}\n\tgpVertexPointerEXT = (C.GPVERTEXPOINTEREXT)(getProcAddr(\"glVertexPointerEXT\"))\n\tgpVertexPointerListIBM = (C.GPVERTEXPOINTERLISTIBM)(getProcAddr(\"glVertexPointerListIBM\"))\n\tgpVertexPointervINTEL = (C.GPVERTEXPOINTERVINTEL)(getProcAddr(\"glVertexPointervINTEL\"))\n\tgpVertexStream1dATI = (C.GPVERTEXSTREAM1DATI)(getProcAddr(\"glVertexStream1dATI\"))\n\tgpVertexStream1dvATI = (C.GPVERTEXSTREAM1DVATI)(getProcAddr(\"glVertexStream1dvATI\"))\n\tgpVertexStream1fATI = (C.GPVERTEXSTREAM1FATI)(getProcAddr(\"glVertexStream1fATI\"))\n\tgpVertexStream1fvATI = (C.GPVERTEXSTREAM1FVATI)(getProcAddr(\"glVertexStream1fvATI\"))\n\tgpVertexStream1iATI = (C.GPVERTEXSTREAM1IATI)(getProcAddr(\"glVertexStream1iATI\"))\n\tgpVertexStream1ivATI = (C.GPVERTEXSTREAM1IVATI)(getProcAddr(\"glVertexStream1ivATI\"))\n\tgpVertexStream1sATI = (C.GPVERTEXSTREAM1SATI)(getProcAddr(\"glVertexStream1sATI\"))\n\tgpVertexStream1svATI = (C.GPVERTEXSTREAM1SVATI)(getProcAddr(\"glVertexStream1svATI\"))\n\tgpVertexStream2dATI = (C.GPVERTEXSTREAM2DATI)(getProcAddr(\"glVertexStream2dATI\"))\n\tgpVertexStream2dvATI = (C.GPVERTEXSTREAM2DVATI)(getProcAddr(\"glVertexStream2dvATI\"))\n\tgpVertexStream2fATI = (C.GPVERTEXSTREAM2FATI)(getProcAddr(\"glVertexStream2fATI\"))\n\tgpVertexStream2fvATI = (C.GPVERTEXSTREAM2FVATI)(getProcAddr(\"glVertexStream2fvATI\"))\n\tgpVertexStream2iATI = (C.GPVERTEXSTREAM2IATI)(getProcAddr(\"glVertexStream2iATI\"))\n\tgpVertexStream2ivATI = (C.GPVERTEXSTREAM2IVATI)(getProcAddr(\"glVertexStream2ivATI\"))\n\tgpVertexStream2sATI = (C.GPVERTEXSTREAM2SATI)(getProcAddr(\"glVertexStream2sATI\"))\n\tgpVertexStream2svATI = (C.GPVERTEXSTREAM2SVATI)(getProcAddr(\"glVertexStream2svATI\"))\n\tgpVertexStream3dATI = (C.GPVERTEXSTREAM3DATI)(getProcAddr(\"glVertexStream3dATI\"))\n\tgpVertexStream3dvATI = (C.GPVERTEXSTREAM3DVATI)(getProcAddr(\"glVertexStream3dvATI\"))\n\tgpVertexStream3fATI = (C.GPVERTEXSTREAM3FATI)(getProcAddr(\"glVertexStream3fATI\"))\n\tgpVertexStream3fvATI = (C.GPVERTEXSTREAM3FVATI)(getProcAddr(\"glVertexStream3fvATI\"))\n\tgpVertexStream3iATI = (C.GPVERTEXSTREAM3IATI)(getProcAddr(\"glVertexStream3iATI\"))\n\tgpVertexStream3ivATI = (C.GPVERTEXSTREAM3IVATI)(getProcAddr(\"glVertexStream3ivATI\"))\n\tgpVertexStream3sATI = (C.GPVERTEXSTREAM3SATI)(getProcAddr(\"glVertexStream3sATI\"))\n\tgpVertexStream3svATI = (C.GPVERTEXSTREAM3SVATI)(getProcAddr(\"glVertexStream3svATI\"))\n\tgpVertexStream4dATI = (C.GPVERTEXSTREAM4DATI)(getProcAddr(\"glVertexStream4dATI\"))\n\tgpVertexStream4dvATI = (C.GPVERTEXSTREAM4DVATI)(getProcAddr(\"glVertexStream4dvATI\"))\n\tgpVertexStream4fATI = (C.GPVERTEXSTREAM4FATI)(getProcAddr(\"glVertexStream4fATI\"))\n\tgpVertexStream4fvATI = (C.GPVERTEXSTREAM4FVATI)(getProcAddr(\"glVertexStream4fvATI\"))\n\tgpVertexStream4iATI = (C.GPVERTEXSTREAM4IATI)(getProcAddr(\"glVertexStream4iATI\"))\n\tgpVertexStream4ivATI = (C.GPVERTEXSTREAM4IVATI)(getProcAddr(\"glVertexStream4ivATI\"))\n\tgpVertexStream4sATI = (C.GPVERTEXSTREAM4SATI)(getProcAddr(\"glVertexStream4sATI\"))\n\tgpVertexStream4svATI = (C.GPVERTEXSTREAM4SVATI)(getProcAddr(\"glVertexStream4svATI\"))\n\tgpVertexWeightPointerEXT = (C.GPVERTEXWEIGHTPOINTEREXT)(getProcAddr(\"glVertexWeightPointerEXT\"))\n\tgpVertexWeightfEXT = (C.GPVERTEXWEIGHTFEXT)(getProcAddr(\"glVertexWeightfEXT\"))\n\tgpVertexWeightfvEXT = (C.GPVERTEXWEIGHTFVEXT)(getProcAddr(\"glVertexWeightfvEXT\"))\n\tgpVertexWeighthNV = (C.GPVERTEXWEIGHTHNV)(getProcAddr(\"glVertexWeighthNV\"))\n\tgpVertexWeighthvNV = (C.GPVERTEXWEIGHTHVNV)(getProcAddr(\"glVertexWeighthvNV\"))\n\tgpVideoCaptureNV = (C.GPVIDEOCAPTURENV)(getProcAddr(\"glVideoCaptureNV\"))\n\tgpVideoCaptureStreamParameterdvNV = (C.GPVIDEOCAPTURESTREAMPARAMETERDVNV)(getProcAddr(\"glVideoCaptureStreamParameterdvNV\"))\n\tgpVideoCaptureStreamParameterfvNV = (C.GPVIDEOCAPTURESTREAMPARAMETERFVNV)(getProcAddr(\"glVideoCaptureStreamParameterfvNV\"))\n\tgpVideoCaptureStreamParameterivNV = (C.GPVIDEOCAPTURESTREAMPARAMETERIVNV)(getProcAddr(\"glVideoCaptureStreamParameterivNV\"))\n\tgpViewport = (C.GPVIEWPORT)(getProcAddr(\"glViewport\"))\n\tif gpViewport == nil {\n\t\treturn errors.New(\"glViewport\")\n\t}\n\tgpViewportArrayv = (C.GPVIEWPORTARRAYV)(getProcAddr(\"glViewportArrayv\"))\n\tif gpViewportArrayv == nil {\n\t\treturn errors.New(\"glViewportArrayv\")\n\t}\n\tgpViewportIndexedf = (C.GPVIEWPORTINDEXEDF)(getProcAddr(\"glViewportIndexedf\"))\n\tif gpViewportIndexedf == nil {\n\t\treturn errors.New(\"glViewportIndexedf\")\n\t}\n\tgpViewportIndexedfv = (C.GPVIEWPORTINDEXEDFV)(getProcAddr(\"glViewportIndexedfv\"))\n\tif gpViewportIndexedfv == nil {\n\t\treturn errors.New(\"glViewportIndexedfv\")\n\t}\n\tgpViewportPositionWScaleNV = (C.GPVIEWPORTPOSITIONWSCALENV)(getProcAddr(\"glViewportPositionWScaleNV\"))\n\tgpViewportSwizzleNV = (C.GPVIEWPORTSWIZZLENV)(getProcAddr(\"glViewportSwizzleNV\"))\n\tgpWaitSemaphoreEXT = (C.GPWAITSEMAPHOREEXT)(getProcAddr(\"glWaitSemaphoreEXT\"))\n\tgpWaitSemaphoreui64NVX = (C.GPWAITSEMAPHOREUI64NVX)(getProcAddr(\"glWaitSemaphoreui64NVX\"))\n\tgpWaitSync = (C.GPWAITSYNC)(getProcAddr(\"glWaitSync\"))\n\tif gpWaitSync == nil {\n\t\treturn errors.New(\"glWaitSync\")\n\t}\n\tgpWaitVkSemaphoreNV = (C.GPWAITVKSEMAPHORENV)(getProcAddr(\"glWaitVkSemaphoreNV\"))\n\tgpWeightPathsNV = (C.GPWEIGHTPATHSNV)(getProcAddr(\"glWeightPathsNV\"))\n\tgpWeightPointerARB = (C.GPWEIGHTPOINTERARB)(getProcAddr(\"glWeightPointerARB\"))\n\tgpWeightbvARB = (C.GPWEIGHTBVARB)(getProcAddr(\"glWeightbvARB\"))\n\tgpWeightdvARB = (C.GPWEIGHTDVARB)(getProcAddr(\"glWeightdvARB\"))\n\tgpWeightfvARB = (C.GPWEIGHTFVARB)(getProcAddr(\"glWeightfvARB\"))\n\tgpWeightivARB = (C.GPWEIGHTIVARB)(getProcAddr(\"glWeightivARB\"))\n\tgpWeightsvARB = (C.GPWEIGHTSVARB)(getProcAddr(\"glWeightsvARB\"))\n\tgpWeightubvARB = (C.GPWEIGHTUBVARB)(getProcAddr(\"glWeightubvARB\"))\n\tgpWeightuivARB = (C.GPWEIGHTUIVARB)(getProcAddr(\"glWeightuivARB\"))\n\tgpWeightusvARB = (C.GPWEIGHTUSVARB)(getProcAddr(\"glWeightusvARB\"))\n\tgpWindowPos2d = (C.GPWINDOWPOS2D)(getProcAddr(\"glWindowPos2d\"))\n\tif gpWindowPos2d == nil {\n\t\treturn errors.New(\"glWindowPos2d\")\n\t}\n\tgpWindowPos2dARB = (C.GPWINDOWPOS2DARB)(getProcAddr(\"glWindowPos2dARB\"))\n\tgpWindowPos2dMESA = (C.GPWINDOWPOS2DMESA)(getProcAddr(\"glWindowPos2dMESA\"))\n\tgpWindowPos2dv = (C.GPWINDOWPOS2DV)(getProcAddr(\"glWindowPos2dv\"))\n\tif gpWindowPos2dv == nil {\n\t\treturn errors.New(\"glWindowPos2dv\")\n\t}\n\tgpWindowPos2dvARB = (C.GPWINDOWPOS2DVARB)(getProcAddr(\"glWindowPos2dvARB\"))\n\tgpWindowPos2dvMESA = (C.GPWINDOWPOS2DVMESA)(getProcAddr(\"glWindowPos2dvMESA\"))\n\tgpWindowPos2f = (C.GPWINDOWPOS2F)(getProcAddr(\"glWindowPos2f\"))\n\tif gpWindowPos2f == nil {\n\t\treturn errors.New(\"glWindowPos2f\")\n\t}\n\tgpWindowPos2fARB = (C.GPWINDOWPOS2FARB)(getProcAddr(\"glWindowPos2fARB\"))\n\tgpWindowPos2fMESA = (C.GPWINDOWPOS2FMESA)(getProcAddr(\"glWindowPos2fMESA\"))\n\tgpWindowPos2fv = (C.GPWINDOWPOS2FV)(getProcAddr(\"glWindowPos2fv\"))\n\tif gpWindowPos2fv == nil {\n\t\treturn errors.New(\"glWindowPos2fv\")\n\t}\n\tgpWindowPos2fvARB = (C.GPWINDOWPOS2FVARB)(getProcAddr(\"glWindowPos2fvARB\"))\n\tgpWindowPos2fvMESA = (C.GPWINDOWPOS2FVMESA)(getProcAddr(\"glWindowPos2fvMESA\"))\n\tgpWindowPos2i = (C.GPWINDOWPOS2I)(getProcAddr(\"glWindowPos2i\"))\n\tif gpWindowPos2i == nil {\n\t\treturn errors.New(\"glWindowPos2i\")\n\t}\n\tgpWindowPos2iARB = (C.GPWINDOWPOS2IARB)(getProcAddr(\"glWindowPos2iARB\"))\n\tgpWindowPos2iMESA = (C.GPWINDOWPOS2IMESA)(getProcAddr(\"glWindowPos2iMESA\"))\n\tgpWindowPos2iv = (C.GPWINDOWPOS2IV)(getProcAddr(\"glWindowPos2iv\"))\n\tif gpWindowPos2iv == nil {\n\t\treturn errors.New(\"glWindowPos2iv\")\n\t}\n\tgpWindowPos2ivARB = (C.GPWINDOWPOS2IVARB)(getProcAddr(\"glWindowPos2ivARB\"))\n\tgpWindowPos2ivMESA = (C.GPWINDOWPOS2IVMESA)(getProcAddr(\"glWindowPos2ivMESA\"))\n\tgpWindowPos2s = (C.GPWINDOWPOS2S)(getProcAddr(\"glWindowPos2s\"))\n\tif gpWindowPos2s == nil {\n\t\treturn errors.New(\"glWindowPos2s\")\n\t}\n\tgpWindowPos2sARB = (C.GPWINDOWPOS2SARB)(getProcAddr(\"glWindowPos2sARB\"))\n\tgpWindowPos2sMESA = (C.GPWINDOWPOS2SMESA)(getProcAddr(\"glWindowPos2sMESA\"))\n\tgpWindowPos2sv = (C.GPWINDOWPOS2SV)(getProcAddr(\"glWindowPos2sv\"))\n\tif gpWindowPos2sv == nil {\n\t\treturn errors.New(\"glWindowPos2sv\")\n\t}\n\tgpWindowPos2svARB = (C.GPWINDOWPOS2SVARB)(getProcAddr(\"glWindowPos2svARB\"))\n\tgpWindowPos2svMESA = (C.GPWINDOWPOS2SVMESA)(getProcAddr(\"glWindowPos2svMESA\"))\n\tgpWindowPos3d = (C.GPWINDOWPOS3D)(getProcAddr(\"glWindowPos3d\"))\n\tif gpWindowPos3d == nil {\n\t\treturn errors.New(\"glWindowPos3d\")\n\t}\n\tgpWindowPos3dARB = (C.GPWINDOWPOS3DARB)(getProcAddr(\"glWindowPos3dARB\"))\n\tgpWindowPos3dMESA = (C.GPWINDOWPOS3DMESA)(getProcAddr(\"glWindowPos3dMESA\"))\n\tgpWindowPos3dv = (C.GPWINDOWPOS3DV)(getProcAddr(\"glWindowPos3dv\"))\n\tif gpWindowPos3dv == nil {\n\t\treturn errors.New(\"glWindowPos3dv\")\n\t}\n\tgpWindowPos3dvARB = (C.GPWINDOWPOS3DVARB)(getProcAddr(\"glWindowPos3dvARB\"))\n\tgpWindowPos3dvMESA = (C.GPWINDOWPOS3DVMESA)(getProcAddr(\"glWindowPos3dvMESA\"))\n\tgpWindowPos3f = (C.GPWINDOWPOS3F)(getProcAddr(\"glWindowPos3f\"))\n\tif gpWindowPos3f == nil {\n\t\treturn errors.New(\"glWindowPos3f\")\n\t}\n\tgpWindowPos3fARB = (C.GPWINDOWPOS3FARB)(getProcAddr(\"glWindowPos3fARB\"))\n\tgpWindowPos3fMESA = (C.GPWINDOWPOS3FMESA)(getProcAddr(\"glWindowPos3fMESA\"))\n\tgpWindowPos3fv = (C.GPWINDOWPOS3FV)(getProcAddr(\"glWindowPos3fv\"))\n\tif gpWindowPos3fv == nil {\n\t\treturn errors.New(\"glWindowPos3fv\")\n\t}\n\tgpWindowPos3fvARB = (C.GPWINDOWPOS3FVARB)(getProcAddr(\"glWindowPos3fvARB\"))\n\tgpWindowPos3fvMESA = (C.GPWINDOWPOS3FVMESA)(getProcAddr(\"glWindowPos3fvMESA\"))\n\tgpWindowPos3i = (C.GPWINDOWPOS3I)(getProcAddr(\"glWindowPos3i\"))\n\tif gpWindowPos3i == nil {\n\t\treturn errors.New(\"glWindowPos3i\")\n\t}\n\tgpWindowPos3iARB = (C.GPWINDOWPOS3IARB)(getProcAddr(\"glWindowPos3iARB\"))\n\tgpWindowPos3iMESA = (C.GPWINDOWPOS3IMESA)(getProcAddr(\"glWindowPos3iMESA\"))\n\tgpWindowPos3iv = (C.GPWINDOWPOS3IV)(getProcAddr(\"glWindowPos3iv\"))\n\tif gpWindowPos3iv == nil {\n\t\treturn errors.New(\"glWindowPos3iv\")\n\t}\n\tgpWindowPos3ivARB = (C.GPWINDOWPOS3IVARB)(getProcAddr(\"glWindowPos3ivARB\"))\n\tgpWindowPos3ivMESA = (C.GPWINDOWPOS3IVMESA)(getProcAddr(\"glWindowPos3ivMESA\"))\n\tgpWindowPos3s = (C.GPWINDOWPOS3S)(getProcAddr(\"glWindowPos3s\"))\n\tif gpWindowPos3s == nil {\n\t\treturn errors.New(\"glWindowPos3s\")\n\t}\n\tgpWindowPos3sARB = (C.GPWINDOWPOS3SARB)(getProcAddr(\"glWindowPos3sARB\"))\n\tgpWindowPos3sMESA = (C.GPWINDOWPOS3SMESA)(getProcAddr(\"glWindowPos3sMESA\"))\n\tgpWindowPos3sv = (C.GPWINDOWPOS3SV)(getProcAddr(\"glWindowPos3sv\"))\n\tif gpWindowPos3sv == nil {\n\t\treturn errors.New(\"glWindowPos3sv\")\n\t}\n\tgpWindowPos3svARB = (C.GPWINDOWPOS3SVARB)(getProcAddr(\"glWindowPos3svARB\"))\n\tgpWindowPos3svMESA = (C.GPWINDOWPOS3SVMESA)(getProcAddr(\"glWindowPos3svMESA\"))\n\tgpWindowPos4dMESA = (C.GPWINDOWPOS4DMESA)(getProcAddr(\"glWindowPos4dMESA\"))\n\tgpWindowPos4dvMESA = (C.GPWINDOWPOS4DVMESA)(getProcAddr(\"glWindowPos4dvMESA\"))\n\tgpWindowPos4fMESA = (C.GPWINDOWPOS4FMESA)(getProcAddr(\"glWindowPos4fMESA\"))\n\tgpWindowPos4fvMESA = (C.GPWINDOWPOS4FVMESA)(getProcAddr(\"glWindowPos4fvMESA\"))\n\tgpWindowPos4iMESA = (C.GPWINDOWPOS4IMESA)(getProcAddr(\"glWindowPos4iMESA\"))\n\tgpWindowPos4ivMESA = (C.GPWINDOWPOS4IVMESA)(getProcAddr(\"glWindowPos4ivMESA\"))\n\tgpWindowPos4sMESA = (C.GPWINDOWPOS4SMESA)(getProcAddr(\"glWindowPos4sMESA\"))\n\tgpWindowPos4svMESA = (C.GPWINDOWPOS4SVMESA)(getProcAddr(\"glWindowPos4svMESA\"))\n\tgpWindowRectanglesEXT = (C.GPWINDOWRECTANGLESEXT)(getProcAddr(\"glWindowRectanglesEXT\"))\n\tgpWriteMaskEXT = (C.GPWRITEMASKEXT)(getProcAddr(\"glWriteMaskEXT\"))\n\treturn nil\n}", "func ToggleDebugMode() {\n\tDEBUG = !DEBUG\n}", "func (p *Platform) enablePreviewFeature(client *features.Client, session *azure.Session, featureNamespace, featureName string) error {\n\t// register provider if neeeded\n\terr := p.registerProvider(session, featureNamespace)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\t// enable preview feature in Azure since Terraform doesnt provide a way for us to do so\n\tregisterResult, err := azure.RegisterFeature(client, featureNamespace, featureName)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif *registerResult.Properties.State == azure.FeatureRegisteredState {\n\t\treturn nil // p.registerProvider(session, featureNamespace)\n\t}\n\n\tp.ui.Log.Infof(\"Registering feature %s/%s for the first time, this can take 15+ minutes...\", featureNamespace, featureName)\n\n\tvar isRegistered bool\n\tfor i := 0; i < numRetries; i++ {\n\t\ttime.Sleep(time.Duration(intervalSeconds) * time.Second)\n\t\tisRegistered, err = azure.IsFeatureRegistered(client, featureNamespace, featureName)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tif isRegistered {\n\t\t\treturn nil // p.registerProvider(session, featureNamespace)\n\t\t}\n\n\t\tp.ui.Log.Infof(\"Feature is still not registered, checking again in %d seconds [%d retries left]\", intervalSeconds, numRetries-i)\n\t}\n\n\treturn fmt.Errorf(errRegisterFeatureFmt, err)\n}", "func ProvokingVertex(mode uint32) {\n C.glowProvokingVertex(gpProvokingVertex, (C.GLenum)(mode))\n}", "func EnableClientState(array uint32) {\n\tsyscall.Syscall(gpEnableClientState, 1, uintptr(array), 0, 0)\n}", "func Start() {\n\tif os.Getenv(\"STEVEN_DEBUG\") == \"true\" {\n\t\tgl.DebugLog()\n\t}\n\n\tgl.Enable(gl.DepthTest)\n\tgl.Enable(gl.CullFaceFlag)\n\tgl.CullFace(gl.Back)\n\tgl.FrontFace(gl.ClockWise)\n\n\tchunkProgram = CreateProgram(\n\t\tglsl.Get(\"chunk_vertex\"),\n\t\tglsl.Get(\"chunk_frag\"),\n\t)\n\tshaderChunk = &chunkShader{}\n\tInitStruct(shaderChunk, chunkProgram)\n\n\tchunkProgramT = CreateProgram(\n\t\tglsl.Get(\"chunk_vertex\"),\n\t\tglsl.Get(\"chunk_frag\", \"alpha\"),\n\t)\n\tshaderChunkT = &chunkShader{}\n\tInitStruct(shaderChunkT, chunkProgramT)\n\n\tinitUI()\n\tinitLineDraw()\n\tinitStatic()\n\tclouds.init()\n\n\tgl.BlendFunc(gl.SrcAlpha, gl.OneMinusSrcAlpha)\n\n\telementBuffer = gl.CreateBuffer()\n}", "func EnableInPostgreSQL(ctx context.Context, exec postgres.Executor) error {\n\tlog := logging.FromContext(ctx)\n\n\tstdout, stderr, err := exec.ExecInAllDatabases(ctx,\n\t\tstrings.Join([]string{\n\t\t\t// Quiet NOTICE messages from IF NOT EXISTS statements.\n\t\t\t// - https://www.postgresql.org/docs/current/runtime-config-client.html\n\t\t\t`SET client_min_messages = WARNING;`,\n\n\t\t\t`CREATE EXTENSION IF NOT EXISTS postgis;`,\n\t\t\t`CREATE EXTENSION IF NOT EXISTS postgis_topology;`,\n\t\t\t`CREATE EXTENSION IF NOT EXISTS fuzzystrmatch;`,\n\t\t\t`CREATE EXTENSION IF NOT EXISTS postgis_tiger_geocoder;`,\n\t\t}, \"\\n\"),\n\t\tmap[string]string{\n\t\t\t\"ON_ERROR_STOP\": \"on\", // Abort when any one statement fails.\n\t\t\t\"QUIET\": \"on\", // Do not print successful statements to stdout.\n\t\t})\n\n\tlog.V(1).Info(\"enabled PostGIS and related extensions\", \"stdout\", stdout, \"stderr\", stderr)\n\n\treturn err\n}", "func (n *Neural32) EnableRegression() {\n\toutput := len(n.Functions) - 1\n\tn.Functions[output].F = identity\n\tn.Functions[output].DF = one\n}", "func (m *AospDeviceOwnerDeviceConfiguration) SetSecurityAllowDebuggingFeatures(value *bool)() {\n err := m.GetBackingStore().Set(\"securityAllowDebuggingFeatures\", value)\n if err != nil {\n panic(err)\n }\n}", "func (r *Roster) ServerFeatures(_ context.Context) ([]string, error) { return nil, nil }", "func (rs *RenderSystem) TogglePolygons() {\n\trs.drawPolygon = !rs.drawPolygon\n}", "func EnableVertexAttribArray(index uint32) {\n C.glowEnableVertexAttribArray(gpEnableVertexAttribArray, (C.GLuint)(index))\n}", "func InitWithProcAddrFunc(getProcAddr func(name string) unsafe.Pointer) error {\n\tgpActiveTexture = (C.GPACTIVETEXTURE)(getProcAddr(\"glActiveTexture\"))\n\tif gpActiveTexture == nil {\n\t\treturn errors.New(\"glActiveTexture\")\n\t}\n\tgpAttachShader = (C.GPATTACHSHADER)(getProcAddr(\"glAttachShader\"))\n\tif gpAttachShader == nil {\n\t\treturn errors.New(\"glAttachShader\")\n\t}\n\tgpBindAttribLocation = (C.GPBINDATTRIBLOCATION)(getProcAddr(\"glBindAttribLocation\"))\n\tif gpBindAttribLocation == nil {\n\t\treturn errors.New(\"glBindAttribLocation\")\n\t}\n\tgpBindBuffer = (C.GPBINDBUFFER)(getProcAddr(\"glBindBuffer\"))\n\tif gpBindBuffer == nil {\n\t\treturn errors.New(\"glBindBuffer\")\n\t}\n\tgpBindFramebuffer = (C.GPBINDFRAMEBUFFER)(getProcAddr(\"glBindFramebuffer\"))\n\tif gpBindFramebuffer == nil {\n\t\treturn errors.New(\"glBindFramebuffer\")\n\t}\n\tgpBindRenderbuffer = (C.GPBINDRENDERBUFFER)(getProcAddr(\"glBindRenderbuffer\"))\n\tif gpBindRenderbuffer == nil {\n\t\treturn errors.New(\"glBindRenderbuffer\")\n\t}\n\tgpBindTexture = (C.GPBINDTEXTURE)(getProcAddr(\"glBindTexture\"))\n\tif gpBindTexture == nil {\n\t\treturn errors.New(\"glBindTexture\")\n\t}\n\tgpBlendColor = (C.GPBLENDCOLOR)(getProcAddr(\"glBlendColor\"))\n\tif gpBlendColor == nil {\n\t\treturn errors.New(\"glBlendColor\")\n\t}\n\tgpBlendEquation = (C.GPBLENDEQUATION)(getProcAddr(\"glBlendEquation\"))\n\tif gpBlendEquation == nil {\n\t\treturn errors.New(\"glBlendEquation\")\n\t}\n\tgpBlendEquationSeparate = (C.GPBLENDEQUATIONSEPARATE)(getProcAddr(\"glBlendEquationSeparate\"))\n\tif gpBlendEquationSeparate == nil {\n\t\treturn errors.New(\"glBlendEquationSeparate\")\n\t}\n\tgpBlendFunc = (C.GPBLENDFUNC)(getProcAddr(\"glBlendFunc\"))\n\tif gpBlendFunc == nil {\n\t\treturn errors.New(\"glBlendFunc\")\n\t}\n\tgpBlendFuncSeparate = (C.GPBLENDFUNCSEPARATE)(getProcAddr(\"glBlendFuncSeparate\"))\n\tif gpBlendFuncSeparate == nil {\n\t\treturn errors.New(\"glBlendFuncSeparate\")\n\t}\n\tgpBufferData = (C.GPBUFFERDATA)(getProcAddr(\"glBufferData\"))\n\tif gpBufferData == nil {\n\t\treturn errors.New(\"glBufferData\")\n\t}\n\tgpBufferSubData = (C.GPBUFFERSUBDATA)(getProcAddr(\"glBufferSubData\"))\n\tif gpBufferSubData == nil {\n\t\treturn errors.New(\"glBufferSubData\")\n\t}\n\tgpCheckFramebufferStatus = (C.GPCHECKFRAMEBUFFERSTATUS)(getProcAddr(\"glCheckFramebufferStatus\"))\n\tif gpCheckFramebufferStatus == nil {\n\t\treturn errors.New(\"glCheckFramebufferStatus\")\n\t}\n\tgpClear = (C.GPCLEAR)(getProcAddr(\"glClear\"))\n\tif gpClear == nil {\n\t\treturn errors.New(\"glClear\")\n\t}\n\tgpClearColor = (C.GPCLEARCOLOR)(getProcAddr(\"glClearColor\"))\n\tif gpClearColor == nil {\n\t\treturn errors.New(\"glClearColor\")\n\t}\n\tgpClearStencil = (C.GPCLEARSTENCIL)(getProcAddr(\"glClearStencil\"))\n\tif gpClearStencil == nil {\n\t\treturn errors.New(\"glClearStencil\")\n\t}\n\tgpColorMask = (C.GPCOLORMASK)(getProcAddr(\"glColorMask\"))\n\tif gpColorMask == nil {\n\t\treturn errors.New(\"glColorMask\")\n\t}\n\tgpCompileShader = (C.GPCOMPILESHADER)(getProcAddr(\"glCompileShader\"))\n\tif gpCompileShader == nil {\n\t\treturn errors.New(\"glCompileShader\")\n\t}\n\tgpCompressedTexImage2D = (C.GPCOMPRESSEDTEXIMAGE2D)(getProcAddr(\"glCompressedTexImage2D\"))\n\tif gpCompressedTexImage2D == nil {\n\t\treturn errors.New(\"glCompressedTexImage2D\")\n\t}\n\tgpCompressedTexSubImage2D = (C.GPCOMPRESSEDTEXSUBIMAGE2D)(getProcAddr(\"glCompressedTexSubImage2D\"))\n\tif gpCompressedTexSubImage2D == nil {\n\t\treturn errors.New(\"glCompressedTexSubImage2D\")\n\t}\n\tgpCopyTexImage2D = (C.GPCOPYTEXIMAGE2D)(getProcAddr(\"glCopyTexImage2D\"))\n\tif gpCopyTexImage2D == nil {\n\t\treturn errors.New(\"glCopyTexImage2D\")\n\t}\n\tgpCopyTexSubImage2D = (C.GPCOPYTEXSUBIMAGE2D)(getProcAddr(\"glCopyTexSubImage2D\"))\n\tif gpCopyTexSubImage2D == nil {\n\t\treturn errors.New(\"glCopyTexSubImage2D\")\n\t}\n\tgpCreateProgram = (C.GPCREATEPROGRAM)(getProcAddr(\"glCreateProgram\"))\n\tif gpCreateProgram == nil {\n\t\treturn errors.New(\"glCreateProgram\")\n\t}\n\tgpCreateShader = (C.GPCREATESHADER)(getProcAddr(\"glCreateShader\"))\n\tif gpCreateShader == nil {\n\t\treturn errors.New(\"glCreateShader\")\n\t}\n\tgpCullFace = (C.GPCULLFACE)(getProcAddr(\"glCullFace\"))\n\tif gpCullFace == nil {\n\t\treturn errors.New(\"glCullFace\")\n\t}\n\tgpDeleteBuffers = (C.GPDELETEBUFFERS)(getProcAddr(\"glDeleteBuffers\"))\n\tif gpDeleteBuffers == nil {\n\t\treturn errors.New(\"glDeleteBuffers\")\n\t}\n\tgpDeleteFramebuffers = (C.GPDELETEFRAMEBUFFERS)(getProcAddr(\"glDeleteFramebuffers\"))\n\tif gpDeleteFramebuffers == nil {\n\t\treturn errors.New(\"glDeleteFramebuffers\")\n\t}\n\tgpDeleteProgram = (C.GPDELETEPROGRAM)(getProcAddr(\"glDeleteProgram\"))\n\tif gpDeleteProgram == nil {\n\t\treturn errors.New(\"glDeleteProgram\")\n\t}\n\tgpDeleteRenderbuffers = (C.GPDELETERENDERBUFFERS)(getProcAddr(\"glDeleteRenderbuffers\"))\n\tif gpDeleteRenderbuffers == nil {\n\t\treturn errors.New(\"glDeleteRenderbuffers\")\n\t}\n\tgpDeleteShader = (C.GPDELETESHADER)(getProcAddr(\"glDeleteShader\"))\n\tif gpDeleteShader == nil {\n\t\treturn errors.New(\"glDeleteShader\")\n\t}\n\tgpDeleteTextures = (C.GPDELETETEXTURES)(getProcAddr(\"glDeleteTextures\"))\n\tif gpDeleteTextures == nil {\n\t\treturn errors.New(\"glDeleteTextures\")\n\t}\n\tgpDepthFunc = (C.GPDEPTHFUNC)(getProcAddr(\"glDepthFunc\"))\n\tif gpDepthFunc == nil {\n\t\treturn errors.New(\"glDepthFunc\")\n\t}\n\tgpDepthMask = (C.GPDEPTHMASK)(getProcAddr(\"glDepthMask\"))\n\tif gpDepthMask == nil {\n\t\treturn errors.New(\"glDepthMask\")\n\t}\n\tgpDetachShader = (C.GPDETACHSHADER)(getProcAddr(\"glDetachShader\"))\n\tif gpDetachShader == nil {\n\t\treturn errors.New(\"glDetachShader\")\n\t}\n\tgpDisable = (C.GPDISABLE)(getProcAddr(\"glDisable\"))\n\tif gpDisable == nil {\n\t\treturn errors.New(\"glDisable\")\n\t}\n\tgpDisableVertexAttribArray = (C.GPDISABLEVERTEXATTRIBARRAY)(getProcAddr(\"glDisableVertexAttribArray\"))\n\tif gpDisableVertexAttribArray == nil {\n\t\treturn errors.New(\"glDisableVertexAttribArray\")\n\t}\n\tgpDrawArrays = (C.GPDRAWARRAYS)(getProcAddr(\"glDrawArrays\"))\n\tif gpDrawArrays == nil {\n\t\treturn errors.New(\"glDrawArrays\")\n\t}\n\tgpDrawElements = (C.GPDRAWELEMENTS)(getProcAddr(\"glDrawElements\"))\n\tif gpDrawElements == nil {\n\t\treturn errors.New(\"glDrawElements\")\n\t}\n\tgpEnable = (C.GPENABLE)(getProcAddr(\"glEnable\"))\n\tif gpEnable == nil {\n\t\treturn errors.New(\"glEnable\")\n\t}\n\tgpEnableVertexAttribArray = (C.GPENABLEVERTEXATTRIBARRAY)(getProcAddr(\"glEnableVertexAttribArray\"))\n\tif gpEnableVertexAttribArray == nil {\n\t\treturn errors.New(\"glEnableVertexAttribArray\")\n\t}\n\tgpFinish = (C.GPFINISH)(getProcAddr(\"glFinish\"))\n\tif gpFinish == nil {\n\t\treturn errors.New(\"glFinish\")\n\t}\n\tgpFlush = (C.GPFLUSH)(getProcAddr(\"glFlush\"))\n\tif gpFlush == nil {\n\t\treturn errors.New(\"glFlush\")\n\t}\n\tgpFramebufferRenderbuffer = (C.GPFRAMEBUFFERRENDERBUFFER)(getProcAddr(\"glFramebufferRenderbuffer\"))\n\tif gpFramebufferRenderbuffer == nil {\n\t\treturn errors.New(\"glFramebufferRenderbuffer\")\n\t}\n\tgpFramebufferTexture2D = (C.GPFRAMEBUFFERTEXTURE2D)(getProcAddr(\"glFramebufferTexture2D\"))\n\tif gpFramebufferTexture2D == nil {\n\t\treturn errors.New(\"glFramebufferTexture2D\")\n\t}\n\tgpFrontFace = (C.GPFRONTFACE)(getProcAddr(\"glFrontFace\"))\n\tif gpFrontFace == nil {\n\t\treturn errors.New(\"glFrontFace\")\n\t}\n\tgpGenBuffers = (C.GPGENBUFFERS)(getProcAddr(\"glGenBuffers\"))\n\tif gpGenBuffers == nil {\n\t\treturn errors.New(\"glGenBuffers\")\n\t}\n\tgpGenFramebuffers = (C.GPGENFRAMEBUFFERS)(getProcAddr(\"glGenFramebuffers\"))\n\tif gpGenFramebuffers == nil {\n\t\treturn errors.New(\"glGenFramebuffers\")\n\t}\n\tgpGenRenderbuffers = (C.GPGENRENDERBUFFERS)(getProcAddr(\"glGenRenderbuffers\"))\n\tif gpGenRenderbuffers == nil {\n\t\treturn errors.New(\"glGenRenderbuffers\")\n\t}\n\tgpGenTextures = (C.GPGENTEXTURES)(getProcAddr(\"glGenTextures\"))\n\tif gpGenTextures == nil {\n\t\treturn errors.New(\"glGenTextures\")\n\t}\n\tgpGenerateMipmap = (C.GPGENERATEMIPMAP)(getProcAddr(\"glGenerateMipmap\"))\n\tif gpGenerateMipmap == nil {\n\t\treturn errors.New(\"glGenerateMipmap\")\n\t}\n\tgpGetActiveAttrib = (C.GPGETACTIVEATTRIB)(getProcAddr(\"glGetActiveAttrib\"))\n\tif gpGetActiveAttrib == nil {\n\t\treturn errors.New(\"glGetActiveAttrib\")\n\t}\n\tgpGetActiveUniform = (C.GPGETACTIVEUNIFORM)(getProcAddr(\"glGetActiveUniform\"))\n\tif gpGetActiveUniform == nil {\n\t\treturn errors.New(\"glGetActiveUniform\")\n\t}\n\tgpGetAttachedShaders = (C.GPGETATTACHEDSHADERS)(getProcAddr(\"glGetAttachedShaders\"))\n\tif gpGetAttachedShaders == nil {\n\t\treturn errors.New(\"glGetAttachedShaders\")\n\t}\n\tgpGetAttribLocation = (C.GPGETATTRIBLOCATION)(getProcAddr(\"glGetAttribLocation\"))\n\tif gpGetAttribLocation == nil {\n\t\treturn errors.New(\"glGetAttribLocation\")\n\t}\n\tgpGetBooleanv = (C.GPGETBOOLEANV)(getProcAddr(\"glGetBooleanv\"))\n\tif gpGetBooleanv == nil {\n\t\treturn errors.New(\"glGetBooleanv\")\n\t}\n\tgpGetBufferParameteriv = (C.GPGETBUFFERPARAMETERIV)(getProcAddr(\"glGetBufferParameteriv\"))\n\tif gpGetBufferParameteriv == nil {\n\t\treturn errors.New(\"glGetBufferParameteriv\")\n\t}\n\tgpGetError = (C.GPGETERROR)(getProcAddr(\"glGetError\"))\n\tif gpGetError == nil {\n\t\treturn errors.New(\"glGetError\")\n\t}\n\tgpGetFloatv = (C.GPGETFLOATV)(getProcAddr(\"glGetFloatv\"))\n\tif gpGetFloatv == nil {\n\t\treturn errors.New(\"glGetFloatv\")\n\t}\n\tgpGetFramebufferAttachmentParameteriv = (C.GPGETFRAMEBUFFERATTACHMENTPARAMETERIV)(getProcAddr(\"glGetFramebufferAttachmentParameteriv\"))\n\tif gpGetFramebufferAttachmentParameteriv == nil {\n\t\treturn errors.New(\"glGetFramebufferAttachmentParameteriv\")\n\t}\n\tgpGetIntegerv = (C.GPGETINTEGERV)(getProcAddr(\"glGetIntegerv\"))\n\tif gpGetIntegerv == nil {\n\t\treturn errors.New(\"glGetIntegerv\")\n\t}\n\tgpGetProgramInfoLog = (C.GPGETPROGRAMINFOLOG)(getProcAddr(\"glGetProgramInfoLog\"))\n\tif gpGetProgramInfoLog == nil {\n\t\treturn errors.New(\"glGetProgramInfoLog\")\n\t}\n\tgpGetProgramiv = (C.GPGETPROGRAMIV)(getProcAddr(\"glGetProgramiv\"))\n\tif gpGetProgramiv == nil {\n\t\treturn errors.New(\"glGetProgramiv\")\n\t}\n\tgpGetRenderbufferParameteriv = (C.GPGETRENDERBUFFERPARAMETERIV)(getProcAddr(\"glGetRenderbufferParameteriv\"))\n\tif gpGetRenderbufferParameteriv == nil {\n\t\treturn errors.New(\"glGetRenderbufferParameteriv\")\n\t}\n\tgpGetShaderInfoLog = (C.GPGETSHADERINFOLOG)(getProcAddr(\"glGetShaderInfoLog\"))\n\tif gpGetShaderInfoLog == nil {\n\t\treturn errors.New(\"glGetShaderInfoLog\")\n\t}\n\tgpGetShaderSource = (C.GPGETSHADERSOURCE)(getProcAddr(\"glGetShaderSource\"))\n\tif gpGetShaderSource == nil {\n\t\treturn errors.New(\"glGetShaderSource\")\n\t}\n\tgpGetShaderiv = (C.GPGETSHADERIV)(getProcAddr(\"glGetShaderiv\"))\n\tif gpGetShaderiv == nil {\n\t\treturn errors.New(\"glGetShaderiv\")\n\t}\n\tgpGetString = (C.GPGETSTRING)(getProcAddr(\"glGetString\"))\n\tif gpGetString == nil {\n\t\treturn errors.New(\"glGetString\")\n\t}\n\tgpGetTexParameterfv = (C.GPGETTEXPARAMETERFV)(getProcAddr(\"glGetTexParameterfv\"))\n\tif gpGetTexParameterfv == nil {\n\t\treturn errors.New(\"glGetTexParameterfv\")\n\t}\n\tgpGetTexParameteriv = (C.GPGETTEXPARAMETERIV)(getProcAddr(\"glGetTexParameteriv\"))\n\tif gpGetTexParameteriv == nil {\n\t\treturn errors.New(\"glGetTexParameteriv\")\n\t}\n\tgpGetUniformLocation = (C.GPGETUNIFORMLOCATION)(getProcAddr(\"glGetUniformLocation\"))\n\tif gpGetUniformLocation == nil {\n\t\treturn errors.New(\"glGetUniformLocation\")\n\t}\n\tgpGetUniformfv = (C.GPGETUNIFORMFV)(getProcAddr(\"glGetUniformfv\"))\n\tif gpGetUniformfv == nil {\n\t\treturn errors.New(\"glGetUniformfv\")\n\t}\n\tgpGetUniformiv = (C.GPGETUNIFORMIV)(getProcAddr(\"glGetUniformiv\"))\n\tif gpGetUniformiv == nil {\n\t\treturn errors.New(\"glGetUniformiv\")\n\t}\n\tgpGetVertexAttribPointerv = (C.GPGETVERTEXATTRIBPOINTERV)(getProcAddr(\"glGetVertexAttribPointerv\"))\n\tif gpGetVertexAttribPointerv == nil {\n\t\treturn errors.New(\"glGetVertexAttribPointerv\")\n\t}\n\tgpGetVertexAttribfv = (C.GPGETVERTEXATTRIBFV)(getProcAddr(\"glGetVertexAttribfv\"))\n\tif gpGetVertexAttribfv == nil {\n\t\treturn errors.New(\"glGetVertexAttribfv\")\n\t}\n\tgpGetVertexAttribiv = (C.GPGETVERTEXATTRIBIV)(getProcAddr(\"glGetVertexAttribiv\"))\n\tif gpGetVertexAttribiv == nil {\n\t\treturn errors.New(\"glGetVertexAttribiv\")\n\t}\n\tgpHint = (C.GPHINT)(getProcAddr(\"glHint\"))\n\tif gpHint == nil {\n\t\treturn errors.New(\"glHint\")\n\t}\n\tgpIsBuffer = (C.GPISBUFFER)(getProcAddr(\"glIsBuffer\"))\n\tif gpIsBuffer == nil {\n\t\treturn errors.New(\"glIsBuffer\")\n\t}\n\tgpIsEnabled = (C.GPISENABLED)(getProcAddr(\"glIsEnabled\"))\n\tif gpIsEnabled == nil {\n\t\treturn errors.New(\"glIsEnabled\")\n\t}\n\tgpIsFramebuffer = (C.GPISFRAMEBUFFER)(getProcAddr(\"glIsFramebuffer\"))\n\tif gpIsFramebuffer == nil {\n\t\treturn errors.New(\"glIsFramebuffer\")\n\t}\n\tgpIsProgram = (C.GPISPROGRAM)(getProcAddr(\"glIsProgram\"))\n\tif gpIsProgram == nil {\n\t\treturn errors.New(\"glIsProgram\")\n\t}\n\tgpIsRenderbuffer = (C.GPISRENDERBUFFER)(getProcAddr(\"glIsRenderbuffer\"))\n\tif gpIsRenderbuffer == nil {\n\t\treturn errors.New(\"glIsRenderbuffer\")\n\t}\n\tgpIsShader = (C.GPISSHADER)(getProcAddr(\"glIsShader\"))\n\tif gpIsShader == nil {\n\t\treturn errors.New(\"glIsShader\")\n\t}\n\tgpIsTexture = (C.GPISTEXTURE)(getProcAddr(\"glIsTexture\"))\n\tif gpIsTexture == nil {\n\t\treturn errors.New(\"glIsTexture\")\n\t}\n\tgpLineWidth = (C.GPLINEWIDTH)(getProcAddr(\"glLineWidth\"))\n\tif gpLineWidth == nil {\n\t\treturn errors.New(\"glLineWidth\")\n\t}\n\tgpLinkProgram = (C.GPLINKPROGRAM)(getProcAddr(\"glLinkProgram\"))\n\tif gpLinkProgram == nil {\n\t\treturn errors.New(\"glLinkProgram\")\n\t}\n\tgpPixelStorei = (C.GPPIXELSTOREI)(getProcAddr(\"glPixelStorei\"))\n\tif gpPixelStorei == nil {\n\t\treturn errors.New(\"glPixelStorei\")\n\t}\n\tgpPolygonOffset = (C.GPPOLYGONOFFSET)(getProcAddr(\"glPolygonOffset\"))\n\tif gpPolygonOffset == nil {\n\t\treturn errors.New(\"glPolygonOffset\")\n\t}\n\tgpReadPixels = (C.GPREADPIXELS)(getProcAddr(\"glReadPixels\"))\n\tif gpReadPixels == nil {\n\t\treturn errors.New(\"glReadPixels\")\n\t}\n\tgpRenderbufferStorage = (C.GPRENDERBUFFERSTORAGE)(getProcAddr(\"glRenderbufferStorage\"))\n\tif gpRenderbufferStorage == nil {\n\t\treturn errors.New(\"glRenderbufferStorage\")\n\t}\n\tgpSampleCoverage = (C.GPSAMPLECOVERAGE)(getProcAddr(\"glSampleCoverage\"))\n\tif gpSampleCoverage == nil {\n\t\treturn errors.New(\"glSampleCoverage\")\n\t}\n\tgpScissor = (C.GPSCISSOR)(getProcAddr(\"glScissor\"))\n\tif gpScissor == nil {\n\t\treturn errors.New(\"glScissor\")\n\t}\n\tgpShaderSource = (C.GPSHADERSOURCE)(getProcAddr(\"glShaderSource\"))\n\tif gpShaderSource == nil {\n\t\treturn errors.New(\"glShaderSource\")\n\t}\n\tgpStencilFunc = (C.GPSTENCILFUNC)(getProcAddr(\"glStencilFunc\"))\n\tif gpStencilFunc == nil {\n\t\treturn errors.New(\"glStencilFunc\")\n\t}\n\tgpStencilFuncSeparate = (C.GPSTENCILFUNCSEPARATE)(getProcAddr(\"glStencilFuncSeparate\"))\n\tif gpStencilFuncSeparate == nil {\n\t\treturn errors.New(\"glStencilFuncSeparate\")\n\t}\n\tgpStencilMask = (C.GPSTENCILMASK)(getProcAddr(\"glStencilMask\"))\n\tif gpStencilMask == nil {\n\t\treturn errors.New(\"glStencilMask\")\n\t}\n\tgpStencilMaskSeparate = (C.GPSTENCILMASKSEPARATE)(getProcAddr(\"glStencilMaskSeparate\"))\n\tif gpStencilMaskSeparate == nil {\n\t\treturn errors.New(\"glStencilMaskSeparate\")\n\t}\n\tgpStencilOp = (C.GPSTENCILOP)(getProcAddr(\"glStencilOp\"))\n\tif gpStencilOp == nil {\n\t\treturn errors.New(\"glStencilOp\")\n\t}\n\tgpStencilOpSeparate = (C.GPSTENCILOPSEPARATE)(getProcAddr(\"glStencilOpSeparate\"))\n\tif gpStencilOpSeparate == nil {\n\t\treturn errors.New(\"glStencilOpSeparate\")\n\t}\n\tgpTexImage2D = (C.GPTEXIMAGE2D)(getProcAddr(\"glTexImage2D\"))\n\tif gpTexImage2D == nil {\n\t\treturn errors.New(\"glTexImage2D\")\n\t}\n\tgpTexParameterf = (C.GPTEXPARAMETERF)(getProcAddr(\"glTexParameterf\"))\n\tif gpTexParameterf == nil {\n\t\treturn errors.New(\"glTexParameterf\")\n\t}\n\tgpTexParameterfv = (C.GPTEXPARAMETERFV)(getProcAddr(\"glTexParameterfv\"))\n\tif gpTexParameterfv == nil {\n\t\treturn errors.New(\"glTexParameterfv\")\n\t}\n\tgpTexParameteri = (C.GPTEXPARAMETERI)(getProcAddr(\"glTexParameteri\"))\n\tif gpTexParameteri == nil {\n\t\treturn errors.New(\"glTexParameteri\")\n\t}\n\tgpTexParameteriv = (C.GPTEXPARAMETERIV)(getProcAddr(\"glTexParameteriv\"))\n\tif gpTexParameteriv == nil {\n\t\treturn errors.New(\"glTexParameteriv\")\n\t}\n\tgpTexSubImage2D = (C.GPTEXSUBIMAGE2D)(getProcAddr(\"glTexSubImage2D\"))\n\tif gpTexSubImage2D == nil {\n\t\treturn errors.New(\"glTexSubImage2D\")\n\t}\n\tgpUniform1f = (C.GPUNIFORM1F)(getProcAddr(\"glUniform1f\"))\n\tif gpUniform1f == nil {\n\t\treturn errors.New(\"glUniform1f\")\n\t}\n\tgpUniform1fv = (C.GPUNIFORM1FV)(getProcAddr(\"glUniform1fv\"))\n\tif gpUniform1fv == nil {\n\t\treturn errors.New(\"glUniform1fv\")\n\t}\n\tgpUniform1i = (C.GPUNIFORM1I)(getProcAddr(\"glUniform1i\"))\n\tif gpUniform1i == nil {\n\t\treturn errors.New(\"glUniform1i\")\n\t}\n\tgpUniform1iv = (C.GPUNIFORM1IV)(getProcAddr(\"glUniform1iv\"))\n\tif gpUniform1iv == nil {\n\t\treturn errors.New(\"glUniform1iv\")\n\t}\n\tgpUniform2f = (C.GPUNIFORM2F)(getProcAddr(\"glUniform2f\"))\n\tif gpUniform2f == nil {\n\t\treturn errors.New(\"glUniform2f\")\n\t}\n\tgpUniform2fv = (C.GPUNIFORM2FV)(getProcAddr(\"glUniform2fv\"))\n\tif gpUniform2fv == nil {\n\t\treturn errors.New(\"glUniform2fv\")\n\t}\n\tgpUniform2i = (C.GPUNIFORM2I)(getProcAddr(\"glUniform2i\"))\n\tif gpUniform2i == nil {\n\t\treturn errors.New(\"glUniform2i\")\n\t}\n\tgpUniform2iv = (C.GPUNIFORM2IV)(getProcAddr(\"glUniform2iv\"))\n\tif gpUniform2iv == nil {\n\t\treturn errors.New(\"glUniform2iv\")\n\t}\n\tgpUniform3f = (C.GPUNIFORM3F)(getProcAddr(\"glUniform3f\"))\n\tif gpUniform3f == nil {\n\t\treturn errors.New(\"glUniform3f\")\n\t}\n\tgpUniform3fv = (C.GPUNIFORM3FV)(getProcAddr(\"glUniform3fv\"))\n\tif gpUniform3fv == nil {\n\t\treturn errors.New(\"glUniform3fv\")\n\t}\n\tgpUniform3i = (C.GPUNIFORM3I)(getProcAddr(\"glUniform3i\"))\n\tif gpUniform3i == nil {\n\t\treturn errors.New(\"glUniform3i\")\n\t}\n\tgpUniform3iv = (C.GPUNIFORM3IV)(getProcAddr(\"glUniform3iv\"))\n\tif gpUniform3iv == nil {\n\t\treturn errors.New(\"glUniform3iv\")\n\t}\n\tgpUniform4f = (C.GPUNIFORM4F)(getProcAddr(\"glUniform4f\"))\n\tif gpUniform4f == nil {\n\t\treturn errors.New(\"glUniform4f\")\n\t}\n\tgpUniform4fv = (C.GPUNIFORM4FV)(getProcAddr(\"glUniform4fv\"))\n\tif gpUniform4fv == nil {\n\t\treturn errors.New(\"glUniform4fv\")\n\t}\n\tgpUniform4i = (C.GPUNIFORM4I)(getProcAddr(\"glUniform4i\"))\n\tif gpUniform4i == nil {\n\t\treturn errors.New(\"glUniform4i\")\n\t}\n\tgpUniform4iv = (C.GPUNIFORM4IV)(getProcAddr(\"glUniform4iv\"))\n\tif gpUniform4iv == nil {\n\t\treturn errors.New(\"glUniform4iv\")\n\t}\n\tgpUniformMatrix2fv = (C.GPUNIFORMMATRIX2FV)(getProcAddr(\"glUniformMatrix2fv\"))\n\tif gpUniformMatrix2fv == nil {\n\t\treturn errors.New(\"glUniformMatrix2fv\")\n\t}\n\tgpUniformMatrix3fv = (C.GPUNIFORMMATRIX3FV)(getProcAddr(\"glUniformMatrix3fv\"))\n\tif gpUniformMatrix3fv == nil {\n\t\treturn errors.New(\"glUniformMatrix3fv\")\n\t}\n\tgpUniformMatrix4fv = (C.GPUNIFORMMATRIX4FV)(getProcAddr(\"glUniformMatrix4fv\"))\n\tif gpUniformMatrix4fv == nil {\n\t\treturn errors.New(\"glUniformMatrix4fv\")\n\t}\n\tgpUseProgram = (C.GPUSEPROGRAM)(getProcAddr(\"glUseProgram\"))\n\tif gpUseProgram == nil {\n\t\treturn errors.New(\"glUseProgram\")\n\t}\n\tgpValidateProgram = (C.GPVALIDATEPROGRAM)(getProcAddr(\"glValidateProgram\"))\n\tif gpValidateProgram == nil {\n\t\treturn errors.New(\"glValidateProgram\")\n\t}\n\tgpVertexAttrib1f = (C.GPVERTEXATTRIB1F)(getProcAddr(\"glVertexAttrib1f\"))\n\tif gpVertexAttrib1f == nil {\n\t\treturn errors.New(\"glVertexAttrib1f\")\n\t}\n\tgpVertexAttrib1fv = (C.GPVERTEXATTRIB1FV)(getProcAddr(\"glVertexAttrib1fv\"))\n\tif gpVertexAttrib1fv == nil {\n\t\treturn errors.New(\"glVertexAttrib1fv\")\n\t}\n\tgpVertexAttrib2f = (C.GPVERTEXATTRIB2F)(getProcAddr(\"glVertexAttrib2f\"))\n\tif gpVertexAttrib2f == nil {\n\t\treturn errors.New(\"glVertexAttrib2f\")\n\t}\n\tgpVertexAttrib2fv = (C.GPVERTEXATTRIB2FV)(getProcAddr(\"glVertexAttrib2fv\"))\n\tif gpVertexAttrib2fv == nil {\n\t\treturn errors.New(\"glVertexAttrib2fv\")\n\t}\n\tgpVertexAttrib3f = (C.GPVERTEXATTRIB3F)(getProcAddr(\"glVertexAttrib3f\"))\n\tif gpVertexAttrib3f == nil {\n\t\treturn errors.New(\"glVertexAttrib3f\")\n\t}\n\tgpVertexAttrib3fv = (C.GPVERTEXATTRIB3FV)(getProcAddr(\"glVertexAttrib3fv\"))\n\tif gpVertexAttrib3fv == nil {\n\t\treturn errors.New(\"glVertexAttrib3fv\")\n\t}\n\tgpVertexAttrib4f = (C.GPVERTEXATTRIB4F)(getProcAddr(\"glVertexAttrib4f\"))\n\tif gpVertexAttrib4f == nil {\n\t\treturn errors.New(\"glVertexAttrib4f\")\n\t}\n\tgpVertexAttrib4fv = (C.GPVERTEXATTRIB4FV)(getProcAddr(\"glVertexAttrib4fv\"))\n\tif gpVertexAttrib4fv == nil {\n\t\treturn errors.New(\"glVertexAttrib4fv\")\n\t}\n\tgpVertexAttribPointer = (C.GPVERTEXATTRIBPOINTER)(getProcAddr(\"glVertexAttribPointer\"))\n\tif gpVertexAttribPointer == nil {\n\t\treturn errors.New(\"glVertexAttribPointer\")\n\t}\n\tgpViewport = (C.GPVIEWPORT)(getProcAddr(\"glViewport\"))\n\tif gpViewport == nil {\n\t\treturn errors.New(\"glViewport\")\n\t}\n\treturn nil\n}", "func preferServerCipherSuites() bool {\n\t// Copied from the Go TLS implementation.\n\n\t// Check the cpu flags for each platform that has optimized GCM implementations.\n\t// Worst case, these variables will just all be false.\n\tvar (\n\t\thasGCMAsmAMD64 = cpu.X86.HasAES && cpu.X86.HasPCLMULQDQ\n\t\thasGCMAsmARM64 = cpu.ARM64.HasAES && cpu.ARM64.HasPMULL\n\t\t// Keep in sync with crypto/aes/cipher_s390x.go.\n\t\thasGCMAsmS390X = cpu.S390X.HasAES && cpu.S390X.HasAESCBC && cpu.S390X.HasAESCTR && (cpu.S390X.HasGHASH || cpu.S390X.HasAESGCM)\n\n\t\thasGCMAsm = hasGCMAsmAMD64 || hasGCMAsmARM64 || hasGCMAsmS390X\n\t)\n\treturn !hasGCMAsm\n}", "func New(x, y, w, h int, ctx *GLContext) (*GoGLBackend, error) {\n\tif ctx == nil {\n\t\tvar err error\n\t\tctx, err = NewGLContext()\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\n\tb := &GoGLBackend{\n\t\tw: w,\n\t\th: h,\n\t\tfw: float64(w),\n\t\tfh: float64(h),\n\t\tGLContext: ctx,\n\t}\n\n\tb.activateFn = func() {\n\t\tgl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\t\tgl.Viewport(int32(b.x), int32(b.y), int32(b.w), int32(b.h))\n\t\t// todo reapply clipping since another application may have used the stencil buffer\n\t}\n\tb.disableTextureRenderTarget = func() {\n\t\tgl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\t\tgl.Viewport(int32(b.x), int32(b.y), int32(b.w), int32(b.h))\n\t}\n\n\treturn b, nil\n}", "func InitWithProcAddrFunc(getProcAddr func(name string) unsafe.Pointer) error {\n\tgpAccum = uintptr(getProcAddr(\"glAccum\"))\n\tif gpAccum == 0 {\n\t\treturn errors.New(\"glAccum\")\n\t}\n\tgpAccumxOES = uintptr(getProcAddr(\"glAccumxOES\"))\n\tgpAcquireKeyedMutexWin32EXT = uintptr(getProcAddr(\"glAcquireKeyedMutexWin32EXT\"))\n\tgpActiveProgramEXT = uintptr(getProcAddr(\"glActiveProgramEXT\"))\n\tgpActiveShaderProgram = uintptr(getProcAddr(\"glActiveShaderProgram\"))\n\tgpActiveShaderProgramEXT = uintptr(getProcAddr(\"glActiveShaderProgramEXT\"))\n\tgpActiveStencilFaceEXT = uintptr(getProcAddr(\"glActiveStencilFaceEXT\"))\n\tgpActiveTexture = uintptr(getProcAddr(\"glActiveTexture\"))\n\tif gpActiveTexture == 0 {\n\t\treturn errors.New(\"glActiveTexture\")\n\t}\n\tgpActiveTextureARB = uintptr(getProcAddr(\"glActiveTextureARB\"))\n\tgpActiveVaryingNV = uintptr(getProcAddr(\"glActiveVaryingNV\"))\n\tgpAlphaFragmentOp1ATI = uintptr(getProcAddr(\"glAlphaFragmentOp1ATI\"))\n\tgpAlphaFragmentOp2ATI = uintptr(getProcAddr(\"glAlphaFragmentOp2ATI\"))\n\tgpAlphaFragmentOp3ATI = uintptr(getProcAddr(\"glAlphaFragmentOp3ATI\"))\n\tgpAlphaFunc = uintptr(getProcAddr(\"glAlphaFunc\"))\n\tif gpAlphaFunc == 0 {\n\t\treturn errors.New(\"glAlphaFunc\")\n\t}\n\tgpAlphaFuncxOES = uintptr(getProcAddr(\"glAlphaFuncxOES\"))\n\tgpAlphaToCoverageDitherControlNV = uintptr(getProcAddr(\"glAlphaToCoverageDitherControlNV\"))\n\tgpApplyFramebufferAttachmentCMAAINTEL = uintptr(getProcAddr(\"glApplyFramebufferAttachmentCMAAINTEL\"))\n\tgpApplyTextureEXT = uintptr(getProcAddr(\"glApplyTextureEXT\"))\n\tgpAreProgramsResidentNV = uintptr(getProcAddr(\"glAreProgramsResidentNV\"))\n\tgpAreTexturesResident = uintptr(getProcAddr(\"glAreTexturesResident\"))\n\tif gpAreTexturesResident == 0 {\n\t\treturn errors.New(\"glAreTexturesResident\")\n\t}\n\tgpAreTexturesResidentEXT = uintptr(getProcAddr(\"glAreTexturesResidentEXT\"))\n\tgpArrayElement = uintptr(getProcAddr(\"glArrayElement\"))\n\tif gpArrayElement == 0 {\n\t\treturn errors.New(\"glArrayElement\")\n\t}\n\tgpArrayElementEXT = uintptr(getProcAddr(\"glArrayElementEXT\"))\n\tgpArrayObjectATI = uintptr(getProcAddr(\"glArrayObjectATI\"))\n\tgpAsyncMarkerSGIX = uintptr(getProcAddr(\"glAsyncMarkerSGIX\"))\n\tgpAttachObjectARB = uintptr(getProcAddr(\"glAttachObjectARB\"))\n\tgpAttachShader = uintptr(getProcAddr(\"glAttachShader\"))\n\tif gpAttachShader == 0 {\n\t\treturn errors.New(\"glAttachShader\")\n\t}\n\tgpBegin = uintptr(getProcAddr(\"glBegin\"))\n\tif gpBegin == 0 {\n\t\treturn errors.New(\"glBegin\")\n\t}\n\tgpBeginConditionalRenderNV = uintptr(getProcAddr(\"glBeginConditionalRenderNV\"))\n\tgpBeginConditionalRenderNVX = uintptr(getProcAddr(\"glBeginConditionalRenderNVX\"))\n\tgpBeginFragmentShaderATI = uintptr(getProcAddr(\"glBeginFragmentShaderATI\"))\n\tgpBeginOcclusionQueryNV = uintptr(getProcAddr(\"glBeginOcclusionQueryNV\"))\n\tgpBeginPerfMonitorAMD = uintptr(getProcAddr(\"glBeginPerfMonitorAMD\"))\n\tgpBeginPerfQueryINTEL = uintptr(getProcAddr(\"glBeginPerfQueryINTEL\"))\n\tgpBeginQuery = uintptr(getProcAddr(\"glBeginQuery\"))\n\tif gpBeginQuery == 0 {\n\t\treturn errors.New(\"glBeginQuery\")\n\t}\n\tgpBeginQueryARB = uintptr(getProcAddr(\"glBeginQueryARB\"))\n\tgpBeginQueryIndexed = uintptr(getProcAddr(\"glBeginQueryIndexed\"))\n\tgpBeginTransformFeedbackEXT = uintptr(getProcAddr(\"glBeginTransformFeedbackEXT\"))\n\tgpBeginTransformFeedbackNV = uintptr(getProcAddr(\"glBeginTransformFeedbackNV\"))\n\tgpBeginVertexShaderEXT = uintptr(getProcAddr(\"glBeginVertexShaderEXT\"))\n\tgpBeginVideoCaptureNV = uintptr(getProcAddr(\"glBeginVideoCaptureNV\"))\n\tgpBindAttribLocation = uintptr(getProcAddr(\"glBindAttribLocation\"))\n\tif gpBindAttribLocation == 0 {\n\t\treturn errors.New(\"glBindAttribLocation\")\n\t}\n\tgpBindAttribLocationARB = uintptr(getProcAddr(\"glBindAttribLocationARB\"))\n\tgpBindBuffer = uintptr(getProcAddr(\"glBindBuffer\"))\n\tif gpBindBuffer == 0 {\n\t\treturn errors.New(\"glBindBuffer\")\n\t}\n\tgpBindBufferARB = uintptr(getProcAddr(\"glBindBufferARB\"))\n\tgpBindBufferBase = uintptr(getProcAddr(\"glBindBufferBase\"))\n\tgpBindBufferBaseEXT = uintptr(getProcAddr(\"glBindBufferBaseEXT\"))\n\tgpBindBufferBaseNV = uintptr(getProcAddr(\"glBindBufferBaseNV\"))\n\tgpBindBufferOffsetEXT = uintptr(getProcAddr(\"glBindBufferOffsetEXT\"))\n\tgpBindBufferOffsetNV = uintptr(getProcAddr(\"glBindBufferOffsetNV\"))\n\tgpBindBufferRange = uintptr(getProcAddr(\"glBindBufferRange\"))\n\tgpBindBufferRangeEXT = uintptr(getProcAddr(\"glBindBufferRangeEXT\"))\n\tgpBindBufferRangeNV = uintptr(getProcAddr(\"glBindBufferRangeNV\"))\n\tgpBindBuffersBase = uintptr(getProcAddr(\"glBindBuffersBase\"))\n\tgpBindBuffersRange = uintptr(getProcAddr(\"glBindBuffersRange\"))\n\tgpBindFragDataLocationEXT = uintptr(getProcAddr(\"glBindFragDataLocationEXT\"))\n\tgpBindFragDataLocationIndexed = uintptr(getProcAddr(\"glBindFragDataLocationIndexed\"))\n\tgpBindFragmentShaderATI = uintptr(getProcAddr(\"glBindFragmentShaderATI\"))\n\tgpBindFramebuffer = uintptr(getProcAddr(\"glBindFramebuffer\"))\n\tgpBindFramebufferEXT = uintptr(getProcAddr(\"glBindFramebufferEXT\"))\n\tgpBindImageTexture = uintptr(getProcAddr(\"glBindImageTexture\"))\n\tgpBindImageTextureEXT = uintptr(getProcAddr(\"glBindImageTextureEXT\"))\n\tgpBindImageTextures = uintptr(getProcAddr(\"glBindImageTextures\"))\n\tgpBindLightParameterEXT = uintptr(getProcAddr(\"glBindLightParameterEXT\"))\n\tgpBindMaterialParameterEXT = uintptr(getProcAddr(\"glBindMaterialParameterEXT\"))\n\tgpBindMultiTextureEXT = uintptr(getProcAddr(\"glBindMultiTextureEXT\"))\n\tgpBindParameterEXT = uintptr(getProcAddr(\"glBindParameterEXT\"))\n\tgpBindProgramARB = uintptr(getProcAddr(\"glBindProgramARB\"))\n\tgpBindProgramNV = uintptr(getProcAddr(\"glBindProgramNV\"))\n\tgpBindProgramPipeline = uintptr(getProcAddr(\"glBindProgramPipeline\"))\n\tgpBindProgramPipelineEXT = uintptr(getProcAddr(\"glBindProgramPipelineEXT\"))\n\tgpBindRenderbuffer = uintptr(getProcAddr(\"glBindRenderbuffer\"))\n\tgpBindRenderbufferEXT = uintptr(getProcAddr(\"glBindRenderbufferEXT\"))\n\tgpBindSampler = uintptr(getProcAddr(\"glBindSampler\"))\n\tgpBindSamplers = uintptr(getProcAddr(\"glBindSamplers\"))\n\tgpBindTexGenParameterEXT = uintptr(getProcAddr(\"glBindTexGenParameterEXT\"))\n\tgpBindTexture = uintptr(getProcAddr(\"glBindTexture\"))\n\tif gpBindTexture == 0 {\n\t\treturn errors.New(\"glBindTexture\")\n\t}\n\tgpBindTextureEXT = uintptr(getProcAddr(\"glBindTextureEXT\"))\n\tgpBindTextureUnit = uintptr(getProcAddr(\"glBindTextureUnit\"))\n\tgpBindTextureUnitParameterEXT = uintptr(getProcAddr(\"glBindTextureUnitParameterEXT\"))\n\tgpBindTextures = uintptr(getProcAddr(\"glBindTextures\"))\n\tgpBindTransformFeedback = uintptr(getProcAddr(\"glBindTransformFeedback\"))\n\tgpBindTransformFeedbackNV = uintptr(getProcAddr(\"glBindTransformFeedbackNV\"))\n\tgpBindVertexArray = uintptr(getProcAddr(\"glBindVertexArray\"))\n\tgpBindVertexArrayAPPLE = uintptr(getProcAddr(\"glBindVertexArrayAPPLE\"))\n\tgpBindVertexBuffer = uintptr(getProcAddr(\"glBindVertexBuffer\"))\n\tgpBindVertexBuffers = uintptr(getProcAddr(\"glBindVertexBuffers\"))\n\tgpBindVertexShaderEXT = uintptr(getProcAddr(\"glBindVertexShaderEXT\"))\n\tgpBindVideoCaptureStreamBufferNV = uintptr(getProcAddr(\"glBindVideoCaptureStreamBufferNV\"))\n\tgpBindVideoCaptureStreamTextureNV = uintptr(getProcAddr(\"glBindVideoCaptureStreamTextureNV\"))\n\tgpBinormal3bEXT = uintptr(getProcAddr(\"glBinormal3bEXT\"))\n\tgpBinormal3bvEXT = uintptr(getProcAddr(\"glBinormal3bvEXT\"))\n\tgpBinormal3dEXT = uintptr(getProcAddr(\"glBinormal3dEXT\"))\n\tgpBinormal3dvEXT = uintptr(getProcAddr(\"glBinormal3dvEXT\"))\n\tgpBinormal3fEXT = uintptr(getProcAddr(\"glBinormal3fEXT\"))\n\tgpBinormal3fvEXT = uintptr(getProcAddr(\"glBinormal3fvEXT\"))\n\tgpBinormal3iEXT = uintptr(getProcAddr(\"glBinormal3iEXT\"))\n\tgpBinormal3ivEXT = uintptr(getProcAddr(\"glBinormal3ivEXT\"))\n\tgpBinormal3sEXT = uintptr(getProcAddr(\"glBinormal3sEXT\"))\n\tgpBinormal3svEXT = uintptr(getProcAddr(\"glBinormal3svEXT\"))\n\tgpBinormalPointerEXT = uintptr(getProcAddr(\"glBinormalPointerEXT\"))\n\tgpBitmap = uintptr(getProcAddr(\"glBitmap\"))\n\tif gpBitmap == 0 {\n\t\treturn errors.New(\"glBitmap\")\n\t}\n\tgpBitmapxOES = uintptr(getProcAddr(\"glBitmapxOES\"))\n\tgpBlendBarrierKHR = uintptr(getProcAddr(\"glBlendBarrierKHR\"))\n\tgpBlendBarrierNV = uintptr(getProcAddr(\"glBlendBarrierNV\"))\n\tgpBlendColor = uintptr(getProcAddr(\"glBlendColor\"))\n\tif gpBlendColor == 0 {\n\t\treturn errors.New(\"glBlendColor\")\n\t}\n\tgpBlendColorEXT = uintptr(getProcAddr(\"glBlendColorEXT\"))\n\tgpBlendColorxOES = uintptr(getProcAddr(\"glBlendColorxOES\"))\n\tgpBlendEquation = uintptr(getProcAddr(\"glBlendEquation\"))\n\tif gpBlendEquation == 0 {\n\t\treturn errors.New(\"glBlendEquation\")\n\t}\n\tgpBlendEquationEXT = uintptr(getProcAddr(\"glBlendEquationEXT\"))\n\tgpBlendEquationIndexedAMD = uintptr(getProcAddr(\"glBlendEquationIndexedAMD\"))\n\tgpBlendEquationSeparate = uintptr(getProcAddr(\"glBlendEquationSeparate\"))\n\tif gpBlendEquationSeparate == 0 {\n\t\treturn errors.New(\"glBlendEquationSeparate\")\n\t}\n\tgpBlendEquationSeparateEXT = uintptr(getProcAddr(\"glBlendEquationSeparateEXT\"))\n\tgpBlendEquationSeparateIndexedAMD = uintptr(getProcAddr(\"glBlendEquationSeparateIndexedAMD\"))\n\tgpBlendEquationSeparateiARB = uintptr(getProcAddr(\"glBlendEquationSeparateiARB\"))\n\tgpBlendEquationiARB = uintptr(getProcAddr(\"glBlendEquationiARB\"))\n\tgpBlendFunc = uintptr(getProcAddr(\"glBlendFunc\"))\n\tif gpBlendFunc == 0 {\n\t\treturn errors.New(\"glBlendFunc\")\n\t}\n\tgpBlendFuncIndexedAMD = uintptr(getProcAddr(\"glBlendFuncIndexedAMD\"))\n\tgpBlendFuncSeparate = uintptr(getProcAddr(\"glBlendFuncSeparate\"))\n\tif gpBlendFuncSeparate == 0 {\n\t\treturn errors.New(\"glBlendFuncSeparate\")\n\t}\n\tgpBlendFuncSeparateEXT = uintptr(getProcAddr(\"glBlendFuncSeparateEXT\"))\n\tgpBlendFuncSeparateINGR = uintptr(getProcAddr(\"glBlendFuncSeparateINGR\"))\n\tgpBlendFuncSeparateIndexedAMD = uintptr(getProcAddr(\"glBlendFuncSeparateIndexedAMD\"))\n\tgpBlendFuncSeparateiARB = uintptr(getProcAddr(\"glBlendFuncSeparateiARB\"))\n\tgpBlendFunciARB = uintptr(getProcAddr(\"glBlendFunciARB\"))\n\tgpBlendParameteriNV = uintptr(getProcAddr(\"glBlendParameteriNV\"))\n\tgpBlitFramebuffer = uintptr(getProcAddr(\"glBlitFramebuffer\"))\n\tgpBlitFramebufferEXT = uintptr(getProcAddr(\"glBlitFramebufferEXT\"))\n\tgpBlitNamedFramebuffer = uintptr(getProcAddr(\"glBlitNamedFramebuffer\"))\n\tgpBufferAddressRangeNV = uintptr(getProcAddr(\"glBufferAddressRangeNV\"))\n\tgpBufferData = uintptr(getProcAddr(\"glBufferData\"))\n\tif gpBufferData == 0 {\n\t\treturn errors.New(\"glBufferData\")\n\t}\n\tgpBufferDataARB = uintptr(getProcAddr(\"glBufferDataARB\"))\n\tgpBufferPageCommitmentARB = uintptr(getProcAddr(\"glBufferPageCommitmentARB\"))\n\tgpBufferParameteriAPPLE = uintptr(getProcAddr(\"glBufferParameteriAPPLE\"))\n\tgpBufferStorage = uintptr(getProcAddr(\"glBufferStorage\"))\n\tgpBufferStorageExternalEXT = uintptr(getProcAddr(\"glBufferStorageExternalEXT\"))\n\tgpBufferStorageMemEXT = uintptr(getProcAddr(\"glBufferStorageMemEXT\"))\n\tgpBufferSubData = uintptr(getProcAddr(\"glBufferSubData\"))\n\tif gpBufferSubData == 0 {\n\t\treturn errors.New(\"glBufferSubData\")\n\t}\n\tgpBufferSubDataARB = uintptr(getProcAddr(\"glBufferSubDataARB\"))\n\tgpCallCommandListNV = uintptr(getProcAddr(\"glCallCommandListNV\"))\n\tgpCallList = uintptr(getProcAddr(\"glCallList\"))\n\tif gpCallList == 0 {\n\t\treturn errors.New(\"glCallList\")\n\t}\n\tgpCallLists = uintptr(getProcAddr(\"glCallLists\"))\n\tif gpCallLists == 0 {\n\t\treturn errors.New(\"glCallLists\")\n\t}\n\tgpCheckFramebufferStatus = uintptr(getProcAddr(\"glCheckFramebufferStatus\"))\n\tgpCheckFramebufferStatusEXT = uintptr(getProcAddr(\"glCheckFramebufferStatusEXT\"))\n\tgpCheckNamedFramebufferStatus = uintptr(getProcAddr(\"glCheckNamedFramebufferStatus\"))\n\tgpCheckNamedFramebufferStatusEXT = uintptr(getProcAddr(\"glCheckNamedFramebufferStatusEXT\"))\n\tgpClampColorARB = uintptr(getProcAddr(\"glClampColorARB\"))\n\tgpClear = uintptr(getProcAddr(\"glClear\"))\n\tif gpClear == 0 {\n\t\treturn errors.New(\"glClear\")\n\t}\n\tgpClearAccum = uintptr(getProcAddr(\"glClearAccum\"))\n\tif gpClearAccum == 0 {\n\t\treturn errors.New(\"glClearAccum\")\n\t}\n\tgpClearAccumxOES = uintptr(getProcAddr(\"glClearAccumxOES\"))\n\tgpClearBufferData = uintptr(getProcAddr(\"glClearBufferData\"))\n\tgpClearBufferSubData = uintptr(getProcAddr(\"glClearBufferSubData\"))\n\tgpClearColor = uintptr(getProcAddr(\"glClearColor\"))\n\tif gpClearColor == 0 {\n\t\treturn errors.New(\"glClearColor\")\n\t}\n\tgpClearColorIiEXT = uintptr(getProcAddr(\"glClearColorIiEXT\"))\n\tgpClearColorIuiEXT = uintptr(getProcAddr(\"glClearColorIuiEXT\"))\n\tgpClearColorxOES = uintptr(getProcAddr(\"glClearColorxOES\"))\n\tgpClearDepth = uintptr(getProcAddr(\"glClearDepth\"))\n\tif gpClearDepth == 0 {\n\t\treturn errors.New(\"glClearDepth\")\n\t}\n\tgpClearDepthdNV = uintptr(getProcAddr(\"glClearDepthdNV\"))\n\tgpClearDepthf = uintptr(getProcAddr(\"glClearDepthf\"))\n\tgpClearDepthfOES = uintptr(getProcAddr(\"glClearDepthfOES\"))\n\tgpClearDepthxOES = uintptr(getProcAddr(\"glClearDepthxOES\"))\n\tgpClearIndex = uintptr(getProcAddr(\"glClearIndex\"))\n\tif gpClearIndex == 0 {\n\t\treturn errors.New(\"glClearIndex\")\n\t}\n\tgpClearNamedBufferData = uintptr(getProcAddr(\"glClearNamedBufferData\"))\n\tgpClearNamedBufferDataEXT = uintptr(getProcAddr(\"glClearNamedBufferDataEXT\"))\n\tgpClearNamedBufferSubData = uintptr(getProcAddr(\"glClearNamedBufferSubData\"))\n\tgpClearNamedBufferSubDataEXT = uintptr(getProcAddr(\"glClearNamedBufferSubDataEXT\"))\n\tgpClearNamedFramebufferfi = uintptr(getProcAddr(\"glClearNamedFramebufferfi\"))\n\tgpClearNamedFramebufferfv = uintptr(getProcAddr(\"glClearNamedFramebufferfv\"))\n\tgpClearNamedFramebufferiv = uintptr(getProcAddr(\"glClearNamedFramebufferiv\"))\n\tgpClearNamedFramebufferuiv = uintptr(getProcAddr(\"glClearNamedFramebufferuiv\"))\n\tgpClearStencil = uintptr(getProcAddr(\"glClearStencil\"))\n\tif gpClearStencil == 0 {\n\t\treturn errors.New(\"glClearStencil\")\n\t}\n\tgpClearTexImage = uintptr(getProcAddr(\"glClearTexImage\"))\n\tgpClearTexSubImage = uintptr(getProcAddr(\"glClearTexSubImage\"))\n\tgpClientActiveTexture = uintptr(getProcAddr(\"glClientActiveTexture\"))\n\tif gpClientActiveTexture == 0 {\n\t\treturn errors.New(\"glClientActiveTexture\")\n\t}\n\tgpClientActiveTextureARB = uintptr(getProcAddr(\"glClientActiveTextureARB\"))\n\tgpClientActiveVertexStreamATI = uintptr(getProcAddr(\"glClientActiveVertexStreamATI\"))\n\tgpClientAttribDefaultEXT = uintptr(getProcAddr(\"glClientAttribDefaultEXT\"))\n\tgpClientWaitSync = uintptr(getProcAddr(\"glClientWaitSync\"))\n\tgpClipControl = uintptr(getProcAddr(\"glClipControl\"))\n\tgpClipPlane = uintptr(getProcAddr(\"glClipPlane\"))\n\tif gpClipPlane == 0 {\n\t\treturn errors.New(\"glClipPlane\")\n\t}\n\tgpClipPlanefOES = uintptr(getProcAddr(\"glClipPlanefOES\"))\n\tgpClipPlanexOES = uintptr(getProcAddr(\"glClipPlanexOES\"))\n\tgpColor3b = uintptr(getProcAddr(\"glColor3b\"))\n\tif gpColor3b == 0 {\n\t\treturn errors.New(\"glColor3b\")\n\t}\n\tgpColor3bv = uintptr(getProcAddr(\"glColor3bv\"))\n\tif gpColor3bv == 0 {\n\t\treturn errors.New(\"glColor3bv\")\n\t}\n\tgpColor3d = uintptr(getProcAddr(\"glColor3d\"))\n\tif gpColor3d == 0 {\n\t\treturn errors.New(\"glColor3d\")\n\t}\n\tgpColor3dv = uintptr(getProcAddr(\"glColor3dv\"))\n\tif gpColor3dv == 0 {\n\t\treturn errors.New(\"glColor3dv\")\n\t}\n\tgpColor3f = uintptr(getProcAddr(\"glColor3f\"))\n\tif gpColor3f == 0 {\n\t\treturn errors.New(\"glColor3f\")\n\t}\n\tgpColor3fVertex3fSUN = uintptr(getProcAddr(\"glColor3fVertex3fSUN\"))\n\tgpColor3fVertex3fvSUN = uintptr(getProcAddr(\"glColor3fVertex3fvSUN\"))\n\tgpColor3fv = uintptr(getProcAddr(\"glColor3fv\"))\n\tif gpColor3fv == 0 {\n\t\treturn errors.New(\"glColor3fv\")\n\t}\n\tgpColor3hNV = uintptr(getProcAddr(\"glColor3hNV\"))\n\tgpColor3hvNV = uintptr(getProcAddr(\"glColor3hvNV\"))\n\tgpColor3i = uintptr(getProcAddr(\"glColor3i\"))\n\tif gpColor3i == 0 {\n\t\treturn errors.New(\"glColor3i\")\n\t}\n\tgpColor3iv = uintptr(getProcAddr(\"glColor3iv\"))\n\tif gpColor3iv == 0 {\n\t\treturn errors.New(\"glColor3iv\")\n\t}\n\tgpColor3s = uintptr(getProcAddr(\"glColor3s\"))\n\tif gpColor3s == 0 {\n\t\treturn errors.New(\"glColor3s\")\n\t}\n\tgpColor3sv = uintptr(getProcAddr(\"glColor3sv\"))\n\tif gpColor3sv == 0 {\n\t\treturn errors.New(\"glColor3sv\")\n\t}\n\tgpColor3ub = uintptr(getProcAddr(\"glColor3ub\"))\n\tif gpColor3ub == 0 {\n\t\treturn errors.New(\"glColor3ub\")\n\t}\n\tgpColor3ubv = uintptr(getProcAddr(\"glColor3ubv\"))\n\tif gpColor3ubv == 0 {\n\t\treturn errors.New(\"glColor3ubv\")\n\t}\n\tgpColor3ui = uintptr(getProcAddr(\"glColor3ui\"))\n\tif gpColor3ui == 0 {\n\t\treturn errors.New(\"glColor3ui\")\n\t}\n\tgpColor3uiv = uintptr(getProcAddr(\"glColor3uiv\"))\n\tif gpColor3uiv == 0 {\n\t\treturn errors.New(\"glColor3uiv\")\n\t}\n\tgpColor3us = uintptr(getProcAddr(\"glColor3us\"))\n\tif gpColor3us == 0 {\n\t\treturn errors.New(\"glColor3us\")\n\t}\n\tgpColor3usv = uintptr(getProcAddr(\"glColor3usv\"))\n\tif gpColor3usv == 0 {\n\t\treturn errors.New(\"glColor3usv\")\n\t}\n\tgpColor3xOES = uintptr(getProcAddr(\"glColor3xOES\"))\n\tgpColor3xvOES = uintptr(getProcAddr(\"glColor3xvOES\"))\n\tgpColor4b = uintptr(getProcAddr(\"glColor4b\"))\n\tif gpColor4b == 0 {\n\t\treturn errors.New(\"glColor4b\")\n\t}\n\tgpColor4bv = uintptr(getProcAddr(\"glColor4bv\"))\n\tif gpColor4bv == 0 {\n\t\treturn errors.New(\"glColor4bv\")\n\t}\n\tgpColor4d = uintptr(getProcAddr(\"glColor4d\"))\n\tif gpColor4d == 0 {\n\t\treturn errors.New(\"glColor4d\")\n\t}\n\tgpColor4dv = uintptr(getProcAddr(\"glColor4dv\"))\n\tif gpColor4dv == 0 {\n\t\treturn errors.New(\"glColor4dv\")\n\t}\n\tgpColor4f = uintptr(getProcAddr(\"glColor4f\"))\n\tif gpColor4f == 0 {\n\t\treturn errors.New(\"glColor4f\")\n\t}\n\tgpColor4fNormal3fVertex3fSUN = uintptr(getProcAddr(\"glColor4fNormal3fVertex3fSUN\"))\n\tgpColor4fNormal3fVertex3fvSUN = uintptr(getProcAddr(\"glColor4fNormal3fVertex3fvSUN\"))\n\tgpColor4fv = uintptr(getProcAddr(\"glColor4fv\"))\n\tif gpColor4fv == 0 {\n\t\treturn errors.New(\"glColor4fv\")\n\t}\n\tgpColor4hNV = uintptr(getProcAddr(\"glColor4hNV\"))\n\tgpColor4hvNV = uintptr(getProcAddr(\"glColor4hvNV\"))\n\tgpColor4i = uintptr(getProcAddr(\"glColor4i\"))\n\tif gpColor4i == 0 {\n\t\treturn errors.New(\"glColor4i\")\n\t}\n\tgpColor4iv = uintptr(getProcAddr(\"glColor4iv\"))\n\tif gpColor4iv == 0 {\n\t\treturn errors.New(\"glColor4iv\")\n\t}\n\tgpColor4s = uintptr(getProcAddr(\"glColor4s\"))\n\tif gpColor4s == 0 {\n\t\treturn errors.New(\"glColor4s\")\n\t}\n\tgpColor4sv = uintptr(getProcAddr(\"glColor4sv\"))\n\tif gpColor4sv == 0 {\n\t\treturn errors.New(\"glColor4sv\")\n\t}\n\tgpColor4ub = uintptr(getProcAddr(\"glColor4ub\"))\n\tif gpColor4ub == 0 {\n\t\treturn errors.New(\"glColor4ub\")\n\t}\n\tgpColor4ubVertex2fSUN = uintptr(getProcAddr(\"glColor4ubVertex2fSUN\"))\n\tgpColor4ubVertex2fvSUN = uintptr(getProcAddr(\"glColor4ubVertex2fvSUN\"))\n\tgpColor4ubVertex3fSUN = uintptr(getProcAddr(\"glColor4ubVertex3fSUN\"))\n\tgpColor4ubVertex3fvSUN = uintptr(getProcAddr(\"glColor4ubVertex3fvSUN\"))\n\tgpColor4ubv = uintptr(getProcAddr(\"glColor4ubv\"))\n\tif gpColor4ubv == 0 {\n\t\treturn errors.New(\"glColor4ubv\")\n\t}\n\tgpColor4ui = uintptr(getProcAddr(\"glColor4ui\"))\n\tif gpColor4ui == 0 {\n\t\treturn errors.New(\"glColor4ui\")\n\t}\n\tgpColor4uiv = uintptr(getProcAddr(\"glColor4uiv\"))\n\tif gpColor4uiv == 0 {\n\t\treturn errors.New(\"glColor4uiv\")\n\t}\n\tgpColor4us = uintptr(getProcAddr(\"glColor4us\"))\n\tif gpColor4us == 0 {\n\t\treturn errors.New(\"glColor4us\")\n\t}\n\tgpColor4usv = uintptr(getProcAddr(\"glColor4usv\"))\n\tif gpColor4usv == 0 {\n\t\treturn errors.New(\"glColor4usv\")\n\t}\n\tgpColor4xOES = uintptr(getProcAddr(\"glColor4xOES\"))\n\tgpColor4xvOES = uintptr(getProcAddr(\"glColor4xvOES\"))\n\tgpColorFormatNV = uintptr(getProcAddr(\"glColorFormatNV\"))\n\tgpColorFragmentOp1ATI = uintptr(getProcAddr(\"glColorFragmentOp1ATI\"))\n\tgpColorFragmentOp2ATI = uintptr(getProcAddr(\"glColorFragmentOp2ATI\"))\n\tgpColorFragmentOp3ATI = uintptr(getProcAddr(\"glColorFragmentOp3ATI\"))\n\tgpColorMask = uintptr(getProcAddr(\"glColorMask\"))\n\tif gpColorMask == 0 {\n\t\treturn errors.New(\"glColorMask\")\n\t}\n\tgpColorMaskIndexedEXT = uintptr(getProcAddr(\"glColorMaskIndexedEXT\"))\n\tgpColorMaterial = uintptr(getProcAddr(\"glColorMaterial\"))\n\tif gpColorMaterial == 0 {\n\t\treturn errors.New(\"glColorMaterial\")\n\t}\n\tgpColorPointer = uintptr(getProcAddr(\"glColorPointer\"))\n\tif gpColorPointer == 0 {\n\t\treturn errors.New(\"glColorPointer\")\n\t}\n\tgpColorPointerEXT = uintptr(getProcAddr(\"glColorPointerEXT\"))\n\tgpColorPointerListIBM = uintptr(getProcAddr(\"glColorPointerListIBM\"))\n\tgpColorPointervINTEL = uintptr(getProcAddr(\"glColorPointervINTEL\"))\n\tgpColorSubTableEXT = uintptr(getProcAddr(\"glColorSubTableEXT\"))\n\tgpColorTableEXT = uintptr(getProcAddr(\"glColorTableEXT\"))\n\tgpColorTableParameterfvSGI = uintptr(getProcAddr(\"glColorTableParameterfvSGI\"))\n\tgpColorTableParameterivSGI = uintptr(getProcAddr(\"glColorTableParameterivSGI\"))\n\tgpColorTableSGI = uintptr(getProcAddr(\"glColorTableSGI\"))\n\tgpCombinerInputNV = uintptr(getProcAddr(\"glCombinerInputNV\"))\n\tgpCombinerOutputNV = uintptr(getProcAddr(\"glCombinerOutputNV\"))\n\tgpCombinerParameterfNV = uintptr(getProcAddr(\"glCombinerParameterfNV\"))\n\tgpCombinerParameterfvNV = uintptr(getProcAddr(\"glCombinerParameterfvNV\"))\n\tgpCombinerParameteriNV = uintptr(getProcAddr(\"glCombinerParameteriNV\"))\n\tgpCombinerParameterivNV = uintptr(getProcAddr(\"glCombinerParameterivNV\"))\n\tgpCombinerStageParameterfvNV = uintptr(getProcAddr(\"glCombinerStageParameterfvNV\"))\n\tgpCommandListSegmentsNV = uintptr(getProcAddr(\"glCommandListSegmentsNV\"))\n\tgpCompileCommandListNV = uintptr(getProcAddr(\"glCompileCommandListNV\"))\n\tgpCompileShader = uintptr(getProcAddr(\"glCompileShader\"))\n\tif gpCompileShader == 0 {\n\t\treturn errors.New(\"glCompileShader\")\n\t}\n\tgpCompileShaderARB = uintptr(getProcAddr(\"glCompileShaderARB\"))\n\tgpCompileShaderIncludeARB = uintptr(getProcAddr(\"glCompileShaderIncludeARB\"))\n\tgpCompressedMultiTexImage1DEXT = uintptr(getProcAddr(\"glCompressedMultiTexImage1DEXT\"))\n\tgpCompressedMultiTexImage2DEXT = uintptr(getProcAddr(\"glCompressedMultiTexImage2DEXT\"))\n\tgpCompressedMultiTexImage3DEXT = uintptr(getProcAddr(\"glCompressedMultiTexImage3DEXT\"))\n\tgpCompressedMultiTexSubImage1DEXT = uintptr(getProcAddr(\"glCompressedMultiTexSubImage1DEXT\"))\n\tgpCompressedMultiTexSubImage2DEXT = uintptr(getProcAddr(\"glCompressedMultiTexSubImage2DEXT\"))\n\tgpCompressedMultiTexSubImage3DEXT = uintptr(getProcAddr(\"glCompressedMultiTexSubImage3DEXT\"))\n\tgpCompressedTexImage1D = uintptr(getProcAddr(\"glCompressedTexImage1D\"))\n\tif gpCompressedTexImage1D == 0 {\n\t\treturn errors.New(\"glCompressedTexImage1D\")\n\t}\n\tgpCompressedTexImage1DARB = uintptr(getProcAddr(\"glCompressedTexImage1DARB\"))\n\tgpCompressedTexImage2D = uintptr(getProcAddr(\"glCompressedTexImage2D\"))\n\tif gpCompressedTexImage2D == 0 {\n\t\treturn errors.New(\"glCompressedTexImage2D\")\n\t}\n\tgpCompressedTexImage2DARB = uintptr(getProcAddr(\"glCompressedTexImage2DARB\"))\n\tgpCompressedTexImage3D = uintptr(getProcAddr(\"glCompressedTexImage3D\"))\n\tif gpCompressedTexImage3D == 0 {\n\t\treturn errors.New(\"glCompressedTexImage3D\")\n\t}\n\tgpCompressedTexImage3DARB = uintptr(getProcAddr(\"glCompressedTexImage3DARB\"))\n\tgpCompressedTexSubImage1D = uintptr(getProcAddr(\"glCompressedTexSubImage1D\"))\n\tif gpCompressedTexSubImage1D == 0 {\n\t\treturn errors.New(\"glCompressedTexSubImage1D\")\n\t}\n\tgpCompressedTexSubImage1DARB = uintptr(getProcAddr(\"glCompressedTexSubImage1DARB\"))\n\tgpCompressedTexSubImage2D = uintptr(getProcAddr(\"glCompressedTexSubImage2D\"))\n\tif gpCompressedTexSubImage2D == 0 {\n\t\treturn errors.New(\"glCompressedTexSubImage2D\")\n\t}\n\tgpCompressedTexSubImage2DARB = uintptr(getProcAddr(\"glCompressedTexSubImage2DARB\"))\n\tgpCompressedTexSubImage3D = uintptr(getProcAddr(\"glCompressedTexSubImage3D\"))\n\tif gpCompressedTexSubImage3D == 0 {\n\t\treturn errors.New(\"glCompressedTexSubImage3D\")\n\t}\n\tgpCompressedTexSubImage3DARB = uintptr(getProcAddr(\"glCompressedTexSubImage3DARB\"))\n\tgpCompressedTextureImage1DEXT = uintptr(getProcAddr(\"glCompressedTextureImage1DEXT\"))\n\tgpCompressedTextureImage2DEXT = uintptr(getProcAddr(\"glCompressedTextureImage2DEXT\"))\n\tgpCompressedTextureImage3DEXT = uintptr(getProcAddr(\"glCompressedTextureImage3DEXT\"))\n\tgpCompressedTextureSubImage1D = uintptr(getProcAddr(\"glCompressedTextureSubImage1D\"))\n\tgpCompressedTextureSubImage1DEXT = uintptr(getProcAddr(\"glCompressedTextureSubImage1DEXT\"))\n\tgpCompressedTextureSubImage2D = uintptr(getProcAddr(\"glCompressedTextureSubImage2D\"))\n\tgpCompressedTextureSubImage2DEXT = uintptr(getProcAddr(\"glCompressedTextureSubImage2DEXT\"))\n\tgpCompressedTextureSubImage3D = uintptr(getProcAddr(\"glCompressedTextureSubImage3D\"))\n\tgpCompressedTextureSubImage3DEXT = uintptr(getProcAddr(\"glCompressedTextureSubImage3DEXT\"))\n\tgpConservativeRasterParameterfNV = uintptr(getProcAddr(\"glConservativeRasterParameterfNV\"))\n\tgpConservativeRasterParameteriNV = uintptr(getProcAddr(\"glConservativeRasterParameteriNV\"))\n\tgpConvolutionFilter1DEXT = uintptr(getProcAddr(\"glConvolutionFilter1DEXT\"))\n\tgpConvolutionFilter2DEXT = uintptr(getProcAddr(\"glConvolutionFilter2DEXT\"))\n\tgpConvolutionParameterfEXT = uintptr(getProcAddr(\"glConvolutionParameterfEXT\"))\n\tgpConvolutionParameterfvEXT = uintptr(getProcAddr(\"glConvolutionParameterfvEXT\"))\n\tgpConvolutionParameteriEXT = uintptr(getProcAddr(\"glConvolutionParameteriEXT\"))\n\tgpConvolutionParameterivEXT = uintptr(getProcAddr(\"glConvolutionParameterivEXT\"))\n\tgpConvolutionParameterxOES = uintptr(getProcAddr(\"glConvolutionParameterxOES\"))\n\tgpConvolutionParameterxvOES = uintptr(getProcAddr(\"glConvolutionParameterxvOES\"))\n\tgpCopyBufferSubData = uintptr(getProcAddr(\"glCopyBufferSubData\"))\n\tgpCopyColorSubTableEXT = uintptr(getProcAddr(\"glCopyColorSubTableEXT\"))\n\tgpCopyColorTableSGI = uintptr(getProcAddr(\"glCopyColorTableSGI\"))\n\tgpCopyConvolutionFilter1DEXT = uintptr(getProcAddr(\"glCopyConvolutionFilter1DEXT\"))\n\tgpCopyConvolutionFilter2DEXT = uintptr(getProcAddr(\"glCopyConvolutionFilter2DEXT\"))\n\tgpCopyImageSubData = uintptr(getProcAddr(\"glCopyImageSubData\"))\n\tgpCopyImageSubDataNV = uintptr(getProcAddr(\"glCopyImageSubDataNV\"))\n\tgpCopyMultiTexImage1DEXT = uintptr(getProcAddr(\"glCopyMultiTexImage1DEXT\"))\n\tgpCopyMultiTexImage2DEXT = uintptr(getProcAddr(\"glCopyMultiTexImage2DEXT\"))\n\tgpCopyMultiTexSubImage1DEXT = uintptr(getProcAddr(\"glCopyMultiTexSubImage1DEXT\"))\n\tgpCopyMultiTexSubImage2DEXT = uintptr(getProcAddr(\"glCopyMultiTexSubImage2DEXT\"))\n\tgpCopyMultiTexSubImage3DEXT = uintptr(getProcAddr(\"glCopyMultiTexSubImage3DEXT\"))\n\tgpCopyNamedBufferSubData = uintptr(getProcAddr(\"glCopyNamedBufferSubData\"))\n\tgpCopyPathNV = uintptr(getProcAddr(\"glCopyPathNV\"))\n\tgpCopyPixels = uintptr(getProcAddr(\"glCopyPixels\"))\n\tif gpCopyPixels == 0 {\n\t\treturn errors.New(\"glCopyPixels\")\n\t}\n\tgpCopyTexImage1D = uintptr(getProcAddr(\"glCopyTexImage1D\"))\n\tif gpCopyTexImage1D == 0 {\n\t\treturn errors.New(\"glCopyTexImage1D\")\n\t}\n\tgpCopyTexImage1DEXT = uintptr(getProcAddr(\"glCopyTexImage1DEXT\"))\n\tgpCopyTexImage2D = uintptr(getProcAddr(\"glCopyTexImage2D\"))\n\tif gpCopyTexImage2D == 0 {\n\t\treturn errors.New(\"glCopyTexImage2D\")\n\t}\n\tgpCopyTexImage2DEXT = uintptr(getProcAddr(\"glCopyTexImage2DEXT\"))\n\tgpCopyTexSubImage1D = uintptr(getProcAddr(\"glCopyTexSubImage1D\"))\n\tif gpCopyTexSubImage1D == 0 {\n\t\treturn errors.New(\"glCopyTexSubImage1D\")\n\t}\n\tgpCopyTexSubImage1DEXT = uintptr(getProcAddr(\"glCopyTexSubImage1DEXT\"))\n\tgpCopyTexSubImage2D = uintptr(getProcAddr(\"glCopyTexSubImage2D\"))\n\tif gpCopyTexSubImage2D == 0 {\n\t\treturn errors.New(\"glCopyTexSubImage2D\")\n\t}\n\tgpCopyTexSubImage2DEXT = uintptr(getProcAddr(\"glCopyTexSubImage2DEXT\"))\n\tgpCopyTexSubImage3D = uintptr(getProcAddr(\"glCopyTexSubImage3D\"))\n\tif gpCopyTexSubImage3D == 0 {\n\t\treturn errors.New(\"glCopyTexSubImage3D\")\n\t}\n\tgpCopyTexSubImage3DEXT = uintptr(getProcAddr(\"glCopyTexSubImage3DEXT\"))\n\tgpCopyTextureImage1DEXT = uintptr(getProcAddr(\"glCopyTextureImage1DEXT\"))\n\tgpCopyTextureImage2DEXT = uintptr(getProcAddr(\"glCopyTextureImage2DEXT\"))\n\tgpCopyTextureSubImage1D = uintptr(getProcAddr(\"glCopyTextureSubImage1D\"))\n\tgpCopyTextureSubImage1DEXT = uintptr(getProcAddr(\"glCopyTextureSubImage1DEXT\"))\n\tgpCopyTextureSubImage2D = uintptr(getProcAddr(\"glCopyTextureSubImage2D\"))\n\tgpCopyTextureSubImage2DEXT = uintptr(getProcAddr(\"glCopyTextureSubImage2DEXT\"))\n\tgpCopyTextureSubImage3D = uintptr(getProcAddr(\"glCopyTextureSubImage3D\"))\n\tgpCopyTextureSubImage3DEXT = uintptr(getProcAddr(\"glCopyTextureSubImage3DEXT\"))\n\tgpCoverFillPathInstancedNV = uintptr(getProcAddr(\"glCoverFillPathInstancedNV\"))\n\tgpCoverFillPathNV = uintptr(getProcAddr(\"glCoverFillPathNV\"))\n\tgpCoverStrokePathInstancedNV = uintptr(getProcAddr(\"glCoverStrokePathInstancedNV\"))\n\tgpCoverStrokePathNV = uintptr(getProcAddr(\"glCoverStrokePathNV\"))\n\tgpCoverageModulationNV = uintptr(getProcAddr(\"glCoverageModulationNV\"))\n\tgpCoverageModulationTableNV = uintptr(getProcAddr(\"glCoverageModulationTableNV\"))\n\tgpCreateBuffers = uintptr(getProcAddr(\"glCreateBuffers\"))\n\tgpCreateCommandListsNV = uintptr(getProcAddr(\"glCreateCommandListsNV\"))\n\tgpCreateFramebuffers = uintptr(getProcAddr(\"glCreateFramebuffers\"))\n\tgpCreateMemoryObjectsEXT = uintptr(getProcAddr(\"glCreateMemoryObjectsEXT\"))\n\tgpCreatePerfQueryINTEL = uintptr(getProcAddr(\"glCreatePerfQueryINTEL\"))\n\tgpCreateProgram = uintptr(getProcAddr(\"glCreateProgram\"))\n\tif gpCreateProgram == 0 {\n\t\treturn errors.New(\"glCreateProgram\")\n\t}\n\tgpCreateProgramObjectARB = uintptr(getProcAddr(\"glCreateProgramObjectARB\"))\n\tgpCreateProgramPipelines = uintptr(getProcAddr(\"glCreateProgramPipelines\"))\n\tgpCreateQueries = uintptr(getProcAddr(\"glCreateQueries\"))\n\tgpCreateRenderbuffers = uintptr(getProcAddr(\"glCreateRenderbuffers\"))\n\tgpCreateSamplers = uintptr(getProcAddr(\"glCreateSamplers\"))\n\tgpCreateShader = uintptr(getProcAddr(\"glCreateShader\"))\n\tif gpCreateShader == 0 {\n\t\treturn errors.New(\"glCreateShader\")\n\t}\n\tgpCreateShaderObjectARB = uintptr(getProcAddr(\"glCreateShaderObjectARB\"))\n\tgpCreateShaderProgramEXT = uintptr(getProcAddr(\"glCreateShaderProgramEXT\"))\n\tgpCreateShaderProgramv = uintptr(getProcAddr(\"glCreateShaderProgramv\"))\n\tgpCreateShaderProgramvEXT = uintptr(getProcAddr(\"glCreateShaderProgramvEXT\"))\n\tgpCreateStatesNV = uintptr(getProcAddr(\"glCreateStatesNV\"))\n\tgpCreateSyncFromCLeventARB = uintptr(getProcAddr(\"glCreateSyncFromCLeventARB\"))\n\tgpCreateTextures = uintptr(getProcAddr(\"glCreateTextures\"))\n\tgpCreateTransformFeedbacks = uintptr(getProcAddr(\"glCreateTransformFeedbacks\"))\n\tgpCreateVertexArrays = uintptr(getProcAddr(\"glCreateVertexArrays\"))\n\tgpCullFace = uintptr(getProcAddr(\"glCullFace\"))\n\tif gpCullFace == 0 {\n\t\treturn errors.New(\"glCullFace\")\n\t}\n\tgpCullParameterdvEXT = uintptr(getProcAddr(\"glCullParameterdvEXT\"))\n\tgpCullParameterfvEXT = uintptr(getProcAddr(\"glCullParameterfvEXT\"))\n\tgpCurrentPaletteMatrixARB = uintptr(getProcAddr(\"glCurrentPaletteMatrixARB\"))\n\tgpDebugMessageCallback = uintptr(getProcAddr(\"glDebugMessageCallback\"))\n\tgpDebugMessageCallbackAMD = uintptr(getProcAddr(\"glDebugMessageCallbackAMD\"))\n\tgpDebugMessageCallbackARB = uintptr(getProcAddr(\"glDebugMessageCallbackARB\"))\n\tgpDebugMessageCallbackKHR = uintptr(getProcAddr(\"glDebugMessageCallbackKHR\"))\n\tgpDebugMessageControl = uintptr(getProcAddr(\"glDebugMessageControl\"))\n\tgpDebugMessageControlARB = uintptr(getProcAddr(\"glDebugMessageControlARB\"))\n\tgpDebugMessageControlKHR = uintptr(getProcAddr(\"glDebugMessageControlKHR\"))\n\tgpDebugMessageEnableAMD = uintptr(getProcAddr(\"glDebugMessageEnableAMD\"))\n\tgpDebugMessageInsert = uintptr(getProcAddr(\"glDebugMessageInsert\"))\n\tgpDebugMessageInsertAMD = uintptr(getProcAddr(\"glDebugMessageInsertAMD\"))\n\tgpDebugMessageInsertARB = uintptr(getProcAddr(\"glDebugMessageInsertARB\"))\n\tgpDebugMessageInsertKHR = uintptr(getProcAddr(\"glDebugMessageInsertKHR\"))\n\tgpDeformSGIX = uintptr(getProcAddr(\"glDeformSGIX\"))\n\tgpDeformationMap3dSGIX = uintptr(getProcAddr(\"glDeformationMap3dSGIX\"))\n\tgpDeformationMap3fSGIX = uintptr(getProcAddr(\"glDeformationMap3fSGIX\"))\n\tgpDeleteAsyncMarkersSGIX = uintptr(getProcAddr(\"glDeleteAsyncMarkersSGIX\"))\n\tgpDeleteBuffers = uintptr(getProcAddr(\"glDeleteBuffers\"))\n\tif gpDeleteBuffers == 0 {\n\t\treturn errors.New(\"glDeleteBuffers\")\n\t}\n\tgpDeleteBuffersARB = uintptr(getProcAddr(\"glDeleteBuffersARB\"))\n\tgpDeleteCommandListsNV = uintptr(getProcAddr(\"glDeleteCommandListsNV\"))\n\tgpDeleteFencesAPPLE = uintptr(getProcAddr(\"glDeleteFencesAPPLE\"))\n\tgpDeleteFencesNV = uintptr(getProcAddr(\"glDeleteFencesNV\"))\n\tgpDeleteFragmentShaderATI = uintptr(getProcAddr(\"glDeleteFragmentShaderATI\"))\n\tgpDeleteFramebuffers = uintptr(getProcAddr(\"glDeleteFramebuffers\"))\n\tgpDeleteFramebuffersEXT = uintptr(getProcAddr(\"glDeleteFramebuffersEXT\"))\n\tgpDeleteLists = uintptr(getProcAddr(\"glDeleteLists\"))\n\tif gpDeleteLists == 0 {\n\t\treturn errors.New(\"glDeleteLists\")\n\t}\n\tgpDeleteMemoryObjectsEXT = uintptr(getProcAddr(\"glDeleteMemoryObjectsEXT\"))\n\tgpDeleteNamedStringARB = uintptr(getProcAddr(\"glDeleteNamedStringARB\"))\n\tgpDeleteNamesAMD = uintptr(getProcAddr(\"glDeleteNamesAMD\"))\n\tgpDeleteObjectARB = uintptr(getProcAddr(\"glDeleteObjectARB\"))\n\tgpDeleteOcclusionQueriesNV = uintptr(getProcAddr(\"glDeleteOcclusionQueriesNV\"))\n\tgpDeletePathsNV = uintptr(getProcAddr(\"glDeletePathsNV\"))\n\tgpDeletePerfMonitorsAMD = uintptr(getProcAddr(\"glDeletePerfMonitorsAMD\"))\n\tgpDeletePerfQueryINTEL = uintptr(getProcAddr(\"glDeletePerfQueryINTEL\"))\n\tgpDeleteProgram = uintptr(getProcAddr(\"glDeleteProgram\"))\n\tif gpDeleteProgram == 0 {\n\t\treturn errors.New(\"glDeleteProgram\")\n\t}\n\tgpDeleteProgramPipelines = uintptr(getProcAddr(\"glDeleteProgramPipelines\"))\n\tgpDeleteProgramPipelinesEXT = uintptr(getProcAddr(\"glDeleteProgramPipelinesEXT\"))\n\tgpDeleteProgramsARB = uintptr(getProcAddr(\"glDeleteProgramsARB\"))\n\tgpDeleteProgramsNV = uintptr(getProcAddr(\"glDeleteProgramsNV\"))\n\tgpDeleteQueries = uintptr(getProcAddr(\"glDeleteQueries\"))\n\tif gpDeleteQueries == 0 {\n\t\treturn errors.New(\"glDeleteQueries\")\n\t}\n\tgpDeleteQueriesARB = uintptr(getProcAddr(\"glDeleteQueriesARB\"))\n\tgpDeleteQueryResourceTagNV = uintptr(getProcAddr(\"glDeleteQueryResourceTagNV\"))\n\tgpDeleteRenderbuffers = uintptr(getProcAddr(\"glDeleteRenderbuffers\"))\n\tgpDeleteRenderbuffersEXT = uintptr(getProcAddr(\"glDeleteRenderbuffersEXT\"))\n\tgpDeleteSamplers = uintptr(getProcAddr(\"glDeleteSamplers\"))\n\tgpDeleteSemaphoresEXT = uintptr(getProcAddr(\"glDeleteSemaphoresEXT\"))\n\tgpDeleteShader = uintptr(getProcAddr(\"glDeleteShader\"))\n\tif gpDeleteShader == 0 {\n\t\treturn errors.New(\"glDeleteShader\")\n\t}\n\tgpDeleteStatesNV = uintptr(getProcAddr(\"glDeleteStatesNV\"))\n\tgpDeleteSync = uintptr(getProcAddr(\"glDeleteSync\"))\n\tgpDeleteTextures = uintptr(getProcAddr(\"glDeleteTextures\"))\n\tif gpDeleteTextures == 0 {\n\t\treturn errors.New(\"glDeleteTextures\")\n\t}\n\tgpDeleteTexturesEXT = uintptr(getProcAddr(\"glDeleteTexturesEXT\"))\n\tgpDeleteTransformFeedbacks = uintptr(getProcAddr(\"glDeleteTransformFeedbacks\"))\n\tgpDeleteTransformFeedbacksNV = uintptr(getProcAddr(\"glDeleteTransformFeedbacksNV\"))\n\tgpDeleteVertexArrays = uintptr(getProcAddr(\"glDeleteVertexArrays\"))\n\tgpDeleteVertexArraysAPPLE = uintptr(getProcAddr(\"glDeleteVertexArraysAPPLE\"))\n\tgpDeleteVertexShaderEXT = uintptr(getProcAddr(\"glDeleteVertexShaderEXT\"))\n\tgpDepthBoundsEXT = uintptr(getProcAddr(\"glDepthBoundsEXT\"))\n\tgpDepthBoundsdNV = uintptr(getProcAddr(\"glDepthBoundsdNV\"))\n\tgpDepthFunc = uintptr(getProcAddr(\"glDepthFunc\"))\n\tif gpDepthFunc == 0 {\n\t\treturn errors.New(\"glDepthFunc\")\n\t}\n\tgpDepthMask = uintptr(getProcAddr(\"glDepthMask\"))\n\tif gpDepthMask == 0 {\n\t\treturn errors.New(\"glDepthMask\")\n\t}\n\tgpDepthRange = uintptr(getProcAddr(\"glDepthRange\"))\n\tif gpDepthRange == 0 {\n\t\treturn errors.New(\"glDepthRange\")\n\t}\n\tgpDepthRangeArrayv = uintptr(getProcAddr(\"glDepthRangeArrayv\"))\n\tgpDepthRangeIndexed = uintptr(getProcAddr(\"glDepthRangeIndexed\"))\n\tgpDepthRangedNV = uintptr(getProcAddr(\"glDepthRangedNV\"))\n\tgpDepthRangef = uintptr(getProcAddr(\"glDepthRangef\"))\n\tgpDepthRangefOES = uintptr(getProcAddr(\"glDepthRangefOES\"))\n\tgpDepthRangexOES = uintptr(getProcAddr(\"glDepthRangexOES\"))\n\tgpDetachObjectARB = uintptr(getProcAddr(\"glDetachObjectARB\"))\n\tgpDetachShader = uintptr(getProcAddr(\"glDetachShader\"))\n\tif gpDetachShader == 0 {\n\t\treturn errors.New(\"glDetachShader\")\n\t}\n\tgpDetailTexFuncSGIS = uintptr(getProcAddr(\"glDetailTexFuncSGIS\"))\n\tgpDisable = uintptr(getProcAddr(\"glDisable\"))\n\tif gpDisable == 0 {\n\t\treturn errors.New(\"glDisable\")\n\t}\n\tgpDisableClientState = uintptr(getProcAddr(\"glDisableClientState\"))\n\tif gpDisableClientState == 0 {\n\t\treturn errors.New(\"glDisableClientState\")\n\t}\n\tgpDisableClientStateIndexedEXT = uintptr(getProcAddr(\"glDisableClientStateIndexedEXT\"))\n\tgpDisableClientStateiEXT = uintptr(getProcAddr(\"glDisableClientStateiEXT\"))\n\tgpDisableIndexedEXT = uintptr(getProcAddr(\"glDisableIndexedEXT\"))\n\tgpDisableVariantClientStateEXT = uintptr(getProcAddr(\"glDisableVariantClientStateEXT\"))\n\tgpDisableVertexArrayAttrib = uintptr(getProcAddr(\"glDisableVertexArrayAttrib\"))\n\tgpDisableVertexArrayAttribEXT = uintptr(getProcAddr(\"glDisableVertexArrayAttribEXT\"))\n\tgpDisableVertexArrayEXT = uintptr(getProcAddr(\"glDisableVertexArrayEXT\"))\n\tgpDisableVertexAttribAPPLE = uintptr(getProcAddr(\"glDisableVertexAttribAPPLE\"))\n\tgpDisableVertexAttribArray = uintptr(getProcAddr(\"glDisableVertexAttribArray\"))\n\tif gpDisableVertexAttribArray == 0 {\n\t\treturn errors.New(\"glDisableVertexAttribArray\")\n\t}\n\tgpDisableVertexAttribArrayARB = uintptr(getProcAddr(\"glDisableVertexAttribArrayARB\"))\n\tgpDispatchCompute = uintptr(getProcAddr(\"glDispatchCompute\"))\n\tgpDispatchComputeGroupSizeARB = uintptr(getProcAddr(\"glDispatchComputeGroupSizeARB\"))\n\tgpDispatchComputeIndirect = uintptr(getProcAddr(\"glDispatchComputeIndirect\"))\n\tgpDrawArrays = uintptr(getProcAddr(\"glDrawArrays\"))\n\tif gpDrawArrays == 0 {\n\t\treturn errors.New(\"glDrawArrays\")\n\t}\n\tgpDrawArraysEXT = uintptr(getProcAddr(\"glDrawArraysEXT\"))\n\tgpDrawArraysIndirect = uintptr(getProcAddr(\"glDrawArraysIndirect\"))\n\tgpDrawArraysInstancedARB = uintptr(getProcAddr(\"glDrawArraysInstancedARB\"))\n\tgpDrawArraysInstancedBaseInstance = uintptr(getProcAddr(\"glDrawArraysInstancedBaseInstance\"))\n\tgpDrawArraysInstancedEXT = uintptr(getProcAddr(\"glDrawArraysInstancedEXT\"))\n\tgpDrawBuffer = uintptr(getProcAddr(\"glDrawBuffer\"))\n\tif gpDrawBuffer == 0 {\n\t\treturn errors.New(\"glDrawBuffer\")\n\t}\n\tgpDrawBuffers = uintptr(getProcAddr(\"glDrawBuffers\"))\n\tif gpDrawBuffers == 0 {\n\t\treturn errors.New(\"glDrawBuffers\")\n\t}\n\tgpDrawBuffersARB = uintptr(getProcAddr(\"glDrawBuffersARB\"))\n\tgpDrawBuffersATI = uintptr(getProcAddr(\"glDrawBuffersATI\"))\n\tgpDrawCommandsAddressNV = uintptr(getProcAddr(\"glDrawCommandsAddressNV\"))\n\tgpDrawCommandsNV = uintptr(getProcAddr(\"glDrawCommandsNV\"))\n\tgpDrawCommandsStatesAddressNV = uintptr(getProcAddr(\"glDrawCommandsStatesAddressNV\"))\n\tgpDrawCommandsStatesNV = uintptr(getProcAddr(\"glDrawCommandsStatesNV\"))\n\tgpDrawElementArrayAPPLE = uintptr(getProcAddr(\"glDrawElementArrayAPPLE\"))\n\tgpDrawElementArrayATI = uintptr(getProcAddr(\"glDrawElementArrayATI\"))\n\tgpDrawElements = uintptr(getProcAddr(\"glDrawElements\"))\n\tif gpDrawElements == 0 {\n\t\treturn errors.New(\"glDrawElements\")\n\t}\n\tgpDrawElementsBaseVertex = uintptr(getProcAddr(\"glDrawElementsBaseVertex\"))\n\tgpDrawElementsIndirect = uintptr(getProcAddr(\"glDrawElementsIndirect\"))\n\tgpDrawElementsInstancedARB = uintptr(getProcAddr(\"glDrawElementsInstancedARB\"))\n\tgpDrawElementsInstancedBaseInstance = uintptr(getProcAddr(\"glDrawElementsInstancedBaseInstance\"))\n\tgpDrawElementsInstancedBaseVertex = uintptr(getProcAddr(\"glDrawElementsInstancedBaseVertex\"))\n\tgpDrawElementsInstancedBaseVertexBaseInstance = uintptr(getProcAddr(\"glDrawElementsInstancedBaseVertexBaseInstance\"))\n\tgpDrawElementsInstancedEXT = uintptr(getProcAddr(\"glDrawElementsInstancedEXT\"))\n\tgpDrawMeshArraysSUN = uintptr(getProcAddr(\"glDrawMeshArraysSUN\"))\n\tgpDrawPixels = uintptr(getProcAddr(\"glDrawPixels\"))\n\tif gpDrawPixels == 0 {\n\t\treturn errors.New(\"glDrawPixels\")\n\t}\n\tgpDrawRangeElementArrayAPPLE = uintptr(getProcAddr(\"glDrawRangeElementArrayAPPLE\"))\n\tgpDrawRangeElementArrayATI = uintptr(getProcAddr(\"glDrawRangeElementArrayATI\"))\n\tgpDrawRangeElements = uintptr(getProcAddr(\"glDrawRangeElements\"))\n\tif gpDrawRangeElements == 0 {\n\t\treturn errors.New(\"glDrawRangeElements\")\n\t}\n\tgpDrawRangeElementsBaseVertex = uintptr(getProcAddr(\"glDrawRangeElementsBaseVertex\"))\n\tgpDrawRangeElementsEXT = uintptr(getProcAddr(\"glDrawRangeElementsEXT\"))\n\tgpDrawTextureNV = uintptr(getProcAddr(\"glDrawTextureNV\"))\n\tgpDrawTransformFeedback = uintptr(getProcAddr(\"glDrawTransformFeedback\"))\n\tgpDrawTransformFeedbackInstanced = uintptr(getProcAddr(\"glDrawTransformFeedbackInstanced\"))\n\tgpDrawTransformFeedbackNV = uintptr(getProcAddr(\"glDrawTransformFeedbackNV\"))\n\tgpDrawTransformFeedbackStream = uintptr(getProcAddr(\"glDrawTransformFeedbackStream\"))\n\tgpDrawTransformFeedbackStreamInstanced = uintptr(getProcAddr(\"glDrawTransformFeedbackStreamInstanced\"))\n\tgpDrawVkImageNV = uintptr(getProcAddr(\"glDrawVkImageNV\"))\n\tgpEGLImageTargetTexStorageEXT = uintptr(getProcAddr(\"glEGLImageTargetTexStorageEXT\"))\n\tgpEGLImageTargetTextureStorageEXT = uintptr(getProcAddr(\"glEGLImageTargetTextureStorageEXT\"))\n\tgpEdgeFlag = uintptr(getProcAddr(\"glEdgeFlag\"))\n\tif gpEdgeFlag == 0 {\n\t\treturn errors.New(\"glEdgeFlag\")\n\t}\n\tgpEdgeFlagFormatNV = uintptr(getProcAddr(\"glEdgeFlagFormatNV\"))\n\tgpEdgeFlagPointer = uintptr(getProcAddr(\"glEdgeFlagPointer\"))\n\tif gpEdgeFlagPointer == 0 {\n\t\treturn errors.New(\"glEdgeFlagPointer\")\n\t}\n\tgpEdgeFlagPointerEXT = uintptr(getProcAddr(\"glEdgeFlagPointerEXT\"))\n\tgpEdgeFlagPointerListIBM = uintptr(getProcAddr(\"glEdgeFlagPointerListIBM\"))\n\tgpEdgeFlagv = uintptr(getProcAddr(\"glEdgeFlagv\"))\n\tif gpEdgeFlagv == 0 {\n\t\treturn errors.New(\"glEdgeFlagv\")\n\t}\n\tgpElementPointerAPPLE = uintptr(getProcAddr(\"glElementPointerAPPLE\"))\n\tgpElementPointerATI = uintptr(getProcAddr(\"glElementPointerATI\"))\n\tgpEnable = uintptr(getProcAddr(\"glEnable\"))\n\tif gpEnable == 0 {\n\t\treturn errors.New(\"glEnable\")\n\t}\n\tgpEnableClientState = uintptr(getProcAddr(\"glEnableClientState\"))\n\tif gpEnableClientState == 0 {\n\t\treturn errors.New(\"glEnableClientState\")\n\t}\n\tgpEnableClientStateIndexedEXT = uintptr(getProcAddr(\"glEnableClientStateIndexedEXT\"))\n\tgpEnableClientStateiEXT = uintptr(getProcAddr(\"glEnableClientStateiEXT\"))\n\tgpEnableIndexedEXT = uintptr(getProcAddr(\"glEnableIndexedEXT\"))\n\tgpEnableVariantClientStateEXT = uintptr(getProcAddr(\"glEnableVariantClientStateEXT\"))\n\tgpEnableVertexArrayAttrib = uintptr(getProcAddr(\"glEnableVertexArrayAttrib\"))\n\tgpEnableVertexArrayAttribEXT = uintptr(getProcAddr(\"glEnableVertexArrayAttribEXT\"))\n\tgpEnableVertexArrayEXT = uintptr(getProcAddr(\"glEnableVertexArrayEXT\"))\n\tgpEnableVertexAttribAPPLE = uintptr(getProcAddr(\"glEnableVertexAttribAPPLE\"))\n\tgpEnableVertexAttribArray = uintptr(getProcAddr(\"glEnableVertexAttribArray\"))\n\tif gpEnableVertexAttribArray == 0 {\n\t\treturn errors.New(\"glEnableVertexAttribArray\")\n\t}\n\tgpEnableVertexAttribArrayARB = uintptr(getProcAddr(\"glEnableVertexAttribArrayARB\"))\n\tgpEnd = uintptr(getProcAddr(\"glEnd\"))\n\tif gpEnd == 0 {\n\t\treturn errors.New(\"glEnd\")\n\t}\n\tgpEndConditionalRenderNV = uintptr(getProcAddr(\"glEndConditionalRenderNV\"))\n\tgpEndConditionalRenderNVX = uintptr(getProcAddr(\"glEndConditionalRenderNVX\"))\n\tgpEndFragmentShaderATI = uintptr(getProcAddr(\"glEndFragmentShaderATI\"))\n\tgpEndList = uintptr(getProcAddr(\"glEndList\"))\n\tif gpEndList == 0 {\n\t\treturn errors.New(\"glEndList\")\n\t}\n\tgpEndOcclusionQueryNV = uintptr(getProcAddr(\"glEndOcclusionQueryNV\"))\n\tgpEndPerfMonitorAMD = uintptr(getProcAddr(\"glEndPerfMonitorAMD\"))\n\tgpEndPerfQueryINTEL = uintptr(getProcAddr(\"glEndPerfQueryINTEL\"))\n\tgpEndQuery = uintptr(getProcAddr(\"glEndQuery\"))\n\tif gpEndQuery == 0 {\n\t\treturn errors.New(\"glEndQuery\")\n\t}\n\tgpEndQueryARB = uintptr(getProcAddr(\"glEndQueryARB\"))\n\tgpEndQueryIndexed = uintptr(getProcAddr(\"glEndQueryIndexed\"))\n\tgpEndTransformFeedbackEXT = uintptr(getProcAddr(\"glEndTransformFeedbackEXT\"))\n\tgpEndTransformFeedbackNV = uintptr(getProcAddr(\"glEndTransformFeedbackNV\"))\n\tgpEndVertexShaderEXT = uintptr(getProcAddr(\"glEndVertexShaderEXT\"))\n\tgpEndVideoCaptureNV = uintptr(getProcAddr(\"glEndVideoCaptureNV\"))\n\tgpEvalCoord1d = uintptr(getProcAddr(\"glEvalCoord1d\"))\n\tif gpEvalCoord1d == 0 {\n\t\treturn errors.New(\"glEvalCoord1d\")\n\t}\n\tgpEvalCoord1dv = uintptr(getProcAddr(\"glEvalCoord1dv\"))\n\tif gpEvalCoord1dv == 0 {\n\t\treturn errors.New(\"glEvalCoord1dv\")\n\t}\n\tgpEvalCoord1f = uintptr(getProcAddr(\"glEvalCoord1f\"))\n\tif gpEvalCoord1f == 0 {\n\t\treturn errors.New(\"glEvalCoord1f\")\n\t}\n\tgpEvalCoord1fv = uintptr(getProcAddr(\"glEvalCoord1fv\"))\n\tif gpEvalCoord1fv == 0 {\n\t\treturn errors.New(\"glEvalCoord1fv\")\n\t}\n\tgpEvalCoord1xOES = uintptr(getProcAddr(\"glEvalCoord1xOES\"))\n\tgpEvalCoord1xvOES = uintptr(getProcAddr(\"glEvalCoord1xvOES\"))\n\tgpEvalCoord2d = uintptr(getProcAddr(\"glEvalCoord2d\"))\n\tif gpEvalCoord2d == 0 {\n\t\treturn errors.New(\"glEvalCoord2d\")\n\t}\n\tgpEvalCoord2dv = uintptr(getProcAddr(\"glEvalCoord2dv\"))\n\tif gpEvalCoord2dv == 0 {\n\t\treturn errors.New(\"glEvalCoord2dv\")\n\t}\n\tgpEvalCoord2f = uintptr(getProcAddr(\"glEvalCoord2f\"))\n\tif gpEvalCoord2f == 0 {\n\t\treturn errors.New(\"glEvalCoord2f\")\n\t}\n\tgpEvalCoord2fv = uintptr(getProcAddr(\"glEvalCoord2fv\"))\n\tif gpEvalCoord2fv == 0 {\n\t\treturn errors.New(\"glEvalCoord2fv\")\n\t}\n\tgpEvalCoord2xOES = uintptr(getProcAddr(\"glEvalCoord2xOES\"))\n\tgpEvalCoord2xvOES = uintptr(getProcAddr(\"glEvalCoord2xvOES\"))\n\tgpEvalMapsNV = uintptr(getProcAddr(\"glEvalMapsNV\"))\n\tgpEvalMesh1 = uintptr(getProcAddr(\"glEvalMesh1\"))\n\tif gpEvalMesh1 == 0 {\n\t\treturn errors.New(\"glEvalMesh1\")\n\t}\n\tgpEvalMesh2 = uintptr(getProcAddr(\"glEvalMesh2\"))\n\tif gpEvalMesh2 == 0 {\n\t\treturn errors.New(\"glEvalMesh2\")\n\t}\n\tgpEvalPoint1 = uintptr(getProcAddr(\"glEvalPoint1\"))\n\tif gpEvalPoint1 == 0 {\n\t\treturn errors.New(\"glEvalPoint1\")\n\t}\n\tgpEvalPoint2 = uintptr(getProcAddr(\"glEvalPoint2\"))\n\tif gpEvalPoint2 == 0 {\n\t\treturn errors.New(\"glEvalPoint2\")\n\t}\n\tgpEvaluateDepthValuesARB = uintptr(getProcAddr(\"glEvaluateDepthValuesARB\"))\n\tgpExecuteProgramNV = uintptr(getProcAddr(\"glExecuteProgramNV\"))\n\tgpExtractComponentEXT = uintptr(getProcAddr(\"glExtractComponentEXT\"))\n\tgpFeedbackBuffer = uintptr(getProcAddr(\"glFeedbackBuffer\"))\n\tif gpFeedbackBuffer == 0 {\n\t\treturn errors.New(\"glFeedbackBuffer\")\n\t}\n\tgpFeedbackBufferxOES = uintptr(getProcAddr(\"glFeedbackBufferxOES\"))\n\tgpFenceSync = uintptr(getProcAddr(\"glFenceSync\"))\n\tgpFinalCombinerInputNV = uintptr(getProcAddr(\"glFinalCombinerInputNV\"))\n\tgpFinish = uintptr(getProcAddr(\"glFinish\"))\n\tif gpFinish == 0 {\n\t\treturn errors.New(\"glFinish\")\n\t}\n\tgpFinishAsyncSGIX = uintptr(getProcAddr(\"glFinishAsyncSGIX\"))\n\tgpFinishFenceAPPLE = uintptr(getProcAddr(\"glFinishFenceAPPLE\"))\n\tgpFinishFenceNV = uintptr(getProcAddr(\"glFinishFenceNV\"))\n\tgpFinishObjectAPPLE = uintptr(getProcAddr(\"glFinishObjectAPPLE\"))\n\tgpFinishTextureSUNX = uintptr(getProcAddr(\"glFinishTextureSUNX\"))\n\tgpFlush = uintptr(getProcAddr(\"glFlush\"))\n\tif gpFlush == 0 {\n\t\treturn errors.New(\"glFlush\")\n\t}\n\tgpFlushMappedBufferRange = uintptr(getProcAddr(\"glFlushMappedBufferRange\"))\n\tgpFlushMappedBufferRangeAPPLE = uintptr(getProcAddr(\"glFlushMappedBufferRangeAPPLE\"))\n\tgpFlushMappedNamedBufferRange = uintptr(getProcAddr(\"glFlushMappedNamedBufferRange\"))\n\tgpFlushMappedNamedBufferRangeEXT = uintptr(getProcAddr(\"glFlushMappedNamedBufferRangeEXT\"))\n\tgpFlushPixelDataRangeNV = uintptr(getProcAddr(\"glFlushPixelDataRangeNV\"))\n\tgpFlushRasterSGIX = uintptr(getProcAddr(\"glFlushRasterSGIX\"))\n\tgpFlushStaticDataIBM = uintptr(getProcAddr(\"glFlushStaticDataIBM\"))\n\tgpFlushVertexArrayRangeAPPLE = uintptr(getProcAddr(\"glFlushVertexArrayRangeAPPLE\"))\n\tgpFlushVertexArrayRangeNV = uintptr(getProcAddr(\"glFlushVertexArrayRangeNV\"))\n\tgpFogCoordFormatNV = uintptr(getProcAddr(\"glFogCoordFormatNV\"))\n\tgpFogCoordPointer = uintptr(getProcAddr(\"glFogCoordPointer\"))\n\tif gpFogCoordPointer == 0 {\n\t\treturn errors.New(\"glFogCoordPointer\")\n\t}\n\tgpFogCoordPointerEXT = uintptr(getProcAddr(\"glFogCoordPointerEXT\"))\n\tgpFogCoordPointerListIBM = uintptr(getProcAddr(\"glFogCoordPointerListIBM\"))\n\tgpFogCoordd = uintptr(getProcAddr(\"glFogCoordd\"))\n\tif gpFogCoordd == 0 {\n\t\treturn errors.New(\"glFogCoordd\")\n\t}\n\tgpFogCoorddEXT = uintptr(getProcAddr(\"glFogCoorddEXT\"))\n\tgpFogCoorddv = uintptr(getProcAddr(\"glFogCoorddv\"))\n\tif gpFogCoorddv == 0 {\n\t\treturn errors.New(\"glFogCoorddv\")\n\t}\n\tgpFogCoorddvEXT = uintptr(getProcAddr(\"glFogCoorddvEXT\"))\n\tgpFogCoordf = uintptr(getProcAddr(\"glFogCoordf\"))\n\tif gpFogCoordf == 0 {\n\t\treturn errors.New(\"glFogCoordf\")\n\t}\n\tgpFogCoordfEXT = uintptr(getProcAddr(\"glFogCoordfEXT\"))\n\tgpFogCoordfv = uintptr(getProcAddr(\"glFogCoordfv\"))\n\tif gpFogCoordfv == 0 {\n\t\treturn errors.New(\"glFogCoordfv\")\n\t}\n\tgpFogCoordfvEXT = uintptr(getProcAddr(\"glFogCoordfvEXT\"))\n\tgpFogCoordhNV = uintptr(getProcAddr(\"glFogCoordhNV\"))\n\tgpFogCoordhvNV = uintptr(getProcAddr(\"glFogCoordhvNV\"))\n\tgpFogFuncSGIS = uintptr(getProcAddr(\"glFogFuncSGIS\"))\n\tgpFogf = uintptr(getProcAddr(\"glFogf\"))\n\tif gpFogf == 0 {\n\t\treturn errors.New(\"glFogf\")\n\t}\n\tgpFogfv = uintptr(getProcAddr(\"glFogfv\"))\n\tif gpFogfv == 0 {\n\t\treturn errors.New(\"glFogfv\")\n\t}\n\tgpFogi = uintptr(getProcAddr(\"glFogi\"))\n\tif gpFogi == 0 {\n\t\treturn errors.New(\"glFogi\")\n\t}\n\tgpFogiv = uintptr(getProcAddr(\"glFogiv\"))\n\tif gpFogiv == 0 {\n\t\treturn errors.New(\"glFogiv\")\n\t}\n\tgpFogxOES = uintptr(getProcAddr(\"glFogxOES\"))\n\tgpFogxvOES = uintptr(getProcAddr(\"glFogxvOES\"))\n\tgpFragmentColorMaterialSGIX = uintptr(getProcAddr(\"glFragmentColorMaterialSGIX\"))\n\tgpFragmentCoverageColorNV = uintptr(getProcAddr(\"glFragmentCoverageColorNV\"))\n\tgpFragmentLightModelfSGIX = uintptr(getProcAddr(\"glFragmentLightModelfSGIX\"))\n\tgpFragmentLightModelfvSGIX = uintptr(getProcAddr(\"glFragmentLightModelfvSGIX\"))\n\tgpFragmentLightModeliSGIX = uintptr(getProcAddr(\"glFragmentLightModeliSGIX\"))\n\tgpFragmentLightModelivSGIX = uintptr(getProcAddr(\"glFragmentLightModelivSGIX\"))\n\tgpFragmentLightfSGIX = uintptr(getProcAddr(\"glFragmentLightfSGIX\"))\n\tgpFragmentLightfvSGIX = uintptr(getProcAddr(\"glFragmentLightfvSGIX\"))\n\tgpFragmentLightiSGIX = uintptr(getProcAddr(\"glFragmentLightiSGIX\"))\n\tgpFragmentLightivSGIX = uintptr(getProcAddr(\"glFragmentLightivSGIX\"))\n\tgpFragmentMaterialfSGIX = uintptr(getProcAddr(\"glFragmentMaterialfSGIX\"))\n\tgpFragmentMaterialfvSGIX = uintptr(getProcAddr(\"glFragmentMaterialfvSGIX\"))\n\tgpFragmentMaterialiSGIX = uintptr(getProcAddr(\"glFragmentMaterialiSGIX\"))\n\tgpFragmentMaterialivSGIX = uintptr(getProcAddr(\"glFragmentMaterialivSGIX\"))\n\tgpFrameTerminatorGREMEDY = uintptr(getProcAddr(\"glFrameTerminatorGREMEDY\"))\n\tgpFrameZoomSGIX = uintptr(getProcAddr(\"glFrameZoomSGIX\"))\n\tgpFramebufferDrawBufferEXT = uintptr(getProcAddr(\"glFramebufferDrawBufferEXT\"))\n\tgpFramebufferDrawBuffersEXT = uintptr(getProcAddr(\"glFramebufferDrawBuffersEXT\"))\n\tgpFramebufferFetchBarrierEXT = uintptr(getProcAddr(\"glFramebufferFetchBarrierEXT\"))\n\tgpFramebufferParameteri = uintptr(getProcAddr(\"glFramebufferParameteri\"))\n\tgpFramebufferReadBufferEXT = uintptr(getProcAddr(\"glFramebufferReadBufferEXT\"))\n\tgpFramebufferRenderbuffer = uintptr(getProcAddr(\"glFramebufferRenderbuffer\"))\n\tgpFramebufferRenderbufferEXT = uintptr(getProcAddr(\"glFramebufferRenderbufferEXT\"))\n\tgpFramebufferSampleLocationsfvARB = uintptr(getProcAddr(\"glFramebufferSampleLocationsfvARB\"))\n\tgpFramebufferSampleLocationsfvNV = uintptr(getProcAddr(\"glFramebufferSampleLocationsfvNV\"))\n\tgpFramebufferSamplePositionsfvAMD = uintptr(getProcAddr(\"glFramebufferSamplePositionsfvAMD\"))\n\tgpFramebufferTexture1D = uintptr(getProcAddr(\"glFramebufferTexture1D\"))\n\tgpFramebufferTexture1DEXT = uintptr(getProcAddr(\"glFramebufferTexture1DEXT\"))\n\tgpFramebufferTexture2D = uintptr(getProcAddr(\"glFramebufferTexture2D\"))\n\tgpFramebufferTexture2DEXT = uintptr(getProcAddr(\"glFramebufferTexture2DEXT\"))\n\tgpFramebufferTexture3D = uintptr(getProcAddr(\"glFramebufferTexture3D\"))\n\tgpFramebufferTexture3DEXT = uintptr(getProcAddr(\"glFramebufferTexture3DEXT\"))\n\tgpFramebufferTextureARB = uintptr(getProcAddr(\"glFramebufferTextureARB\"))\n\tgpFramebufferTextureEXT = uintptr(getProcAddr(\"glFramebufferTextureEXT\"))\n\tgpFramebufferTextureFaceARB = uintptr(getProcAddr(\"glFramebufferTextureFaceARB\"))\n\tgpFramebufferTextureFaceEXT = uintptr(getProcAddr(\"glFramebufferTextureFaceEXT\"))\n\tgpFramebufferTextureLayer = uintptr(getProcAddr(\"glFramebufferTextureLayer\"))\n\tgpFramebufferTextureLayerARB = uintptr(getProcAddr(\"glFramebufferTextureLayerARB\"))\n\tgpFramebufferTextureLayerEXT = uintptr(getProcAddr(\"glFramebufferTextureLayerEXT\"))\n\tgpFramebufferTextureMultiviewOVR = uintptr(getProcAddr(\"glFramebufferTextureMultiviewOVR\"))\n\tgpFreeObjectBufferATI = uintptr(getProcAddr(\"glFreeObjectBufferATI\"))\n\tgpFrontFace = uintptr(getProcAddr(\"glFrontFace\"))\n\tif gpFrontFace == 0 {\n\t\treturn errors.New(\"glFrontFace\")\n\t}\n\tgpFrustum = uintptr(getProcAddr(\"glFrustum\"))\n\tif gpFrustum == 0 {\n\t\treturn errors.New(\"glFrustum\")\n\t}\n\tgpFrustumfOES = uintptr(getProcAddr(\"glFrustumfOES\"))\n\tgpFrustumxOES = uintptr(getProcAddr(\"glFrustumxOES\"))\n\tgpGenAsyncMarkersSGIX = uintptr(getProcAddr(\"glGenAsyncMarkersSGIX\"))\n\tgpGenBuffers = uintptr(getProcAddr(\"glGenBuffers\"))\n\tif gpGenBuffers == 0 {\n\t\treturn errors.New(\"glGenBuffers\")\n\t}\n\tgpGenBuffersARB = uintptr(getProcAddr(\"glGenBuffersARB\"))\n\tgpGenFencesAPPLE = uintptr(getProcAddr(\"glGenFencesAPPLE\"))\n\tgpGenFencesNV = uintptr(getProcAddr(\"glGenFencesNV\"))\n\tgpGenFragmentShadersATI = uintptr(getProcAddr(\"glGenFragmentShadersATI\"))\n\tgpGenFramebuffers = uintptr(getProcAddr(\"glGenFramebuffers\"))\n\tgpGenFramebuffersEXT = uintptr(getProcAddr(\"glGenFramebuffersEXT\"))\n\tgpGenLists = uintptr(getProcAddr(\"glGenLists\"))\n\tif gpGenLists == 0 {\n\t\treturn errors.New(\"glGenLists\")\n\t}\n\tgpGenNamesAMD = uintptr(getProcAddr(\"glGenNamesAMD\"))\n\tgpGenOcclusionQueriesNV = uintptr(getProcAddr(\"glGenOcclusionQueriesNV\"))\n\tgpGenPathsNV = uintptr(getProcAddr(\"glGenPathsNV\"))\n\tgpGenPerfMonitorsAMD = uintptr(getProcAddr(\"glGenPerfMonitorsAMD\"))\n\tgpGenProgramPipelines = uintptr(getProcAddr(\"glGenProgramPipelines\"))\n\tgpGenProgramPipelinesEXT = uintptr(getProcAddr(\"glGenProgramPipelinesEXT\"))\n\tgpGenProgramsARB = uintptr(getProcAddr(\"glGenProgramsARB\"))\n\tgpGenProgramsNV = uintptr(getProcAddr(\"glGenProgramsNV\"))\n\tgpGenQueries = uintptr(getProcAddr(\"glGenQueries\"))\n\tif gpGenQueries == 0 {\n\t\treturn errors.New(\"glGenQueries\")\n\t}\n\tgpGenQueriesARB = uintptr(getProcAddr(\"glGenQueriesARB\"))\n\tgpGenQueryResourceTagNV = uintptr(getProcAddr(\"glGenQueryResourceTagNV\"))\n\tgpGenRenderbuffers = uintptr(getProcAddr(\"glGenRenderbuffers\"))\n\tgpGenRenderbuffersEXT = uintptr(getProcAddr(\"glGenRenderbuffersEXT\"))\n\tgpGenSamplers = uintptr(getProcAddr(\"glGenSamplers\"))\n\tgpGenSemaphoresEXT = uintptr(getProcAddr(\"glGenSemaphoresEXT\"))\n\tgpGenSymbolsEXT = uintptr(getProcAddr(\"glGenSymbolsEXT\"))\n\tgpGenTextures = uintptr(getProcAddr(\"glGenTextures\"))\n\tif gpGenTextures == 0 {\n\t\treturn errors.New(\"glGenTextures\")\n\t}\n\tgpGenTexturesEXT = uintptr(getProcAddr(\"glGenTexturesEXT\"))\n\tgpGenTransformFeedbacks = uintptr(getProcAddr(\"glGenTransformFeedbacks\"))\n\tgpGenTransformFeedbacksNV = uintptr(getProcAddr(\"glGenTransformFeedbacksNV\"))\n\tgpGenVertexArrays = uintptr(getProcAddr(\"glGenVertexArrays\"))\n\tgpGenVertexArraysAPPLE = uintptr(getProcAddr(\"glGenVertexArraysAPPLE\"))\n\tgpGenVertexShadersEXT = uintptr(getProcAddr(\"glGenVertexShadersEXT\"))\n\tgpGenerateMipmap = uintptr(getProcAddr(\"glGenerateMipmap\"))\n\tgpGenerateMipmapEXT = uintptr(getProcAddr(\"glGenerateMipmapEXT\"))\n\tgpGenerateMultiTexMipmapEXT = uintptr(getProcAddr(\"glGenerateMultiTexMipmapEXT\"))\n\tgpGenerateTextureMipmap = uintptr(getProcAddr(\"glGenerateTextureMipmap\"))\n\tgpGenerateTextureMipmapEXT = uintptr(getProcAddr(\"glGenerateTextureMipmapEXT\"))\n\tgpGetActiveAtomicCounterBufferiv = uintptr(getProcAddr(\"glGetActiveAtomicCounterBufferiv\"))\n\tgpGetActiveAttrib = uintptr(getProcAddr(\"glGetActiveAttrib\"))\n\tif gpGetActiveAttrib == 0 {\n\t\treturn errors.New(\"glGetActiveAttrib\")\n\t}\n\tgpGetActiveAttribARB = uintptr(getProcAddr(\"glGetActiveAttribARB\"))\n\tgpGetActiveSubroutineName = uintptr(getProcAddr(\"glGetActiveSubroutineName\"))\n\tgpGetActiveSubroutineUniformName = uintptr(getProcAddr(\"glGetActiveSubroutineUniformName\"))\n\tgpGetActiveSubroutineUniformiv = uintptr(getProcAddr(\"glGetActiveSubroutineUniformiv\"))\n\tgpGetActiveUniform = uintptr(getProcAddr(\"glGetActiveUniform\"))\n\tif gpGetActiveUniform == 0 {\n\t\treturn errors.New(\"glGetActiveUniform\")\n\t}\n\tgpGetActiveUniformARB = uintptr(getProcAddr(\"glGetActiveUniformARB\"))\n\tgpGetActiveUniformBlockName = uintptr(getProcAddr(\"glGetActiveUniformBlockName\"))\n\tgpGetActiveUniformBlockiv = uintptr(getProcAddr(\"glGetActiveUniformBlockiv\"))\n\tgpGetActiveUniformName = uintptr(getProcAddr(\"glGetActiveUniformName\"))\n\tgpGetActiveUniformsiv = uintptr(getProcAddr(\"glGetActiveUniformsiv\"))\n\tgpGetActiveVaryingNV = uintptr(getProcAddr(\"glGetActiveVaryingNV\"))\n\tgpGetArrayObjectfvATI = uintptr(getProcAddr(\"glGetArrayObjectfvATI\"))\n\tgpGetArrayObjectivATI = uintptr(getProcAddr(\"glGetArrayObjectivATI\"))\n\tgpGetAttachedObjectsARB = uintptr(getProcAddr(\"glGetAttachedObjectsARB\"))\n\tgpGetAttachedShaders = uintptr(getProcAddr(\"glGetAttachedShaders\"))\n\tif gpGetAttachedShaders == 0 {\n\t\treturn errors.New(\"glGetAttachedShaders\")\n\t}\n\tgpGetAttribLocation = uintptr(getProcAddr(\"glGetAttribLocation\"))\n\tif gpGetAttribLocation == 0 {\n\t\treturn errors.New(\"glGetAttribLocation\")\n\t}\n\tgpGetAttribLocationARB = uintptr(getProcAddr(\"glGetAttribLocationARB\"))\n\tgpGetBooleanIndexedvEXT = uintptr(getProcAddr(\"glGetBooleanIndexedvEXT\"))\n\tgpGetBooleanv = uintptr(getProcAddr(\"glGetBooleanv\"))\n\tif gpGetBooleanv == 0 {\n\t\treturn errors.New(\"glGetBooleanv\")\n\t}\n\tgpGetBufferParameteriv = uintptr(getProcAddr(\"glGetBufferParameteriv\"))\n\tif gpGetBufferParameteriv == 0 {\n\t\treturn errors.New(\"glGetBufferParameteriv\")\n\t}\n\tgpGetBufferParameterivARB = uintptr(getProcAddr(\"glGetBufferParameterivARB\"))\n\tgpGetBufferParameterui64vNV = uintptr(getProcAddr(\"glGetBufferParameterui64vNV\"))\n\tgpGetBufferPointerv = uintptr(getProcAddr(\"glGetBufferPointerv\"))\n\tif gpGetBufferPointerv == 0 {\n\t\treturn errors.New(\"glGetBufferPointerv\")\n\t}\n\tgpGetBufferPointervARB = uintptr(getProcAddr(\"glGetBufferPointervARB\"))\n\tgpGetBufferSubData = uintptr(getProcAddr(\"glGetBufferSubData\"))\n\tif gpGetBufferSubData == 0 {\n\t\treturn errors.New(\"glGetBufferSubData\")\n\t}\n\tgpGetBufferSubDataARB = uintptr(getProcAddr(\"glGetBufferSubDataARB\"))\n\tgpGetClipPlane = uintptr(getProcAddr(\"glGetClipPlane\"))\n\tif gpGetClipPlane == 0 {\n\t\treturn errors.New(\"glGetClipPlane\")\n\t}\n\tgpGetClipPlanefOES = uintptr(getProcAddr(\"glGetClipPlanefOES\"))\n\tgpGetClipPlanexOES = uintptr(getProcAddr(\"glGetClipPlanexOES\"))\n\tgpGetColorTableEXT = uintptr(getProcAddr(\"glGetColorTableEXT\"))\n\tgpGetColorTableParameterfvEXT = uintptr(getProcAddr(\"glGetColorTableParameterfvEXT\"))\n\tgpGetColorTableParameterfvSGI = uintptr(getProcAddr(\"glGetColorTableParameterfvSGI\"))\n\tgpGetColorTableParameterivEXT = uintptr(getProcAddr(\"glGetColorTableParameterivEXT\"))\n\tgpGetColorTableParameterivSGI = uintptr(getProcAddr(\"glGetColorTableParameterivSGI\"))\n\tgpGetColorTableSGI = uintptr(getProcAddr(\"glGetColorTableSGI\"))\n\tgpGetCombinerInputParameterfvNV = uintptr(getProcAddr(\"glGetCombinerInputParameterfvNV\"))\n\tgpGetCombinerInputParameterivNV = uintptr(getProcAddr(\"glGetCombinerInputParameterivNV\"))\n\tgpGetCombinerOutputParameterfvNV = uintptr(getProcAddr(\"glGetCombinerOutputParameterfvNV\"))\n\tgpGetCombinerOutputParameterivNV = uintptr(getProcAddr(\"glGetCombinerOutputParameterivNV\"))\n\tgpGetCombinerStageParameterfvNV = uintptr(getProcAddr(\"glGetCombinerStageParameterfvNV\"))\n\tgpGetCommandHeaderNV = uintptr(getProcAddr(\"glGetCommandHeaderNV\"))\n\tgpGetCompressedMultiTexImageEXT = uintptr(getProcAddr(\"glGetCompressedMultiTexImageEXT\"))\n\tgpGetCompressedTexImage = uintptr(getProcAddr(\"glGetCompressedTexImage\"))\n\tif gpGetCompressedTexImage == 0 {\n\t\treturn errors.New(\"glGetCompressedTexImage\")\n\t}\n\tgpGetCompressedTexImageARB = uintptr(getProcAddr(\"glGetCompressedTexImageARB\"))\n\tgpGetCompressedTextureImage = uintptr(getProcAddr(\"glGetCompressedTextureImage\"))\n\tgpGetCompressedTextureImageEXT = uintptr(getProcAddr(\"glGetCompressedTextureImageEXT\"))\n\tgpGetCompressedTextureSubImage = uintptr(getProcAddr(\"glGetCompressedTextureSubImage\"))\n\tgpGetConvolutionFilterEXT = uintptr(getProcAddr(\"glGetConvolutionFilterEXT\"))\n\tgpGetConvolutionParameterfvEXT = uintptr(getProcAddr(\"glGetConvolutionParameterfvEXT\"))\n\tgpGetConvolutionParameterivEXT = uintptr(getProcAddr(\"glGetConvolutionParameterivEXT\"))\n\tgpGetConvolutionParameterxvOES = uintptr(getProcAddr(\"glGetConvolutionParameterxvOES\"))\n\tgpGetCoverageModulationTableNV = uintptr(getProcAddr(\"glGetCoverageModulationTableNV\"))\n\tgpGetDebugMessageLog = uintptr(getProcAddr(\"glGetDebugMessageLog\"))\n\tgpGetDebugMessageLogAMD = uintptr(getProcAddr(\"glGetDebugMessageLogAMD\"))\n\tgpGetDebugMessageLogARB = uintptr(getProcAddr(\"glGetDebugMessageLogARB\"))\n\tgpGetDebugMessageLogKHR = uintptr(getProcAddr(\"glGetDebugMessageLogKHR\"))\n\tgpGetDetailTexFuncSGIS = uintptr(getProcAddr(\"glGetDetailTexFuncSGIS\"))\n\tgpGetDoubleIndexedvEXT = uintptr(getProcAddr(\"glGetDoubleIndexedvEXT\"))\n\tgpGetDoublei_v = uintptr(getProcAddr(\"glGetDoublei_v\"))\n\tgpGetDoublei_vEXT = uintptr(getProcAddr(\"glGetDoublei_vEXT\"))\n\tgpGetDoublev = uintptr(getProcAddr(\"glGetDoublev\"))\n\tif gpGetDoublev == 0 {\n\t\treturn errors.New(\"glGetDoublev\")\n\t}\n\tgpGetError = uintptr(getProcAddr(\"glGetError\"))\n\tif gpGetError == 0 {\n\t\treturn errors.New(\"glGetError\")\n\t}\n\tgpGetFenceivNV = uintptr(getProcAddr(\"glGetFenceivNV\"))\n\tgpGetFinalCombinerInputParameterfvNV = uintptr(getProcAddr(\"glGetFinalCombinerInputParameterfvNV\"))\n\tgpGetFinalCombinerInputParameterivNV = uintptr(getProcAddr(\"glGetFinalCombinerInputParameterivNV\"))\n\tgpGetFirstPerfQueryIdINTEL = uintptr(getProcAddr(\"glGetFirstPerfQueryIdINTEL\"))\n\tgpGetFixedvOES = uintptr(getProcAddr(\"glGetFixedvOES\"))\n\tgpGetFloatIndexedvEXT = uintptr(getProcAddr(\"glGetFloatIndexedvEXT\"))\n\tgpGetFloati_v = uintptr(getProcAddr(\"glGetFloati_v\"))\n\tgpGetFloati_vEXT = uintptr(getProcAddr(\"glGetFloati_vEXT\"))\n\tgpGetFloatv = uintptr(getProcAddr(\"glGetFloatv\"))\n\tif gpGetFloatv == 0 {\n\t\treturn errors.New(\"glGetFloatv\")\n\t}\n\tgpGetFogFuncSGIS = uintptr(getProcAddr(\"glGetFogFuncSGIS\"))\n\tgpGetFragDataIndex = uintptr(getProcAddr(\"glGetFragDataIndex\"))\n\tgpGetFragDataLocationEXT = uintptr(getProcAddr(\"glGetFragDataLocationEXT\"))\n\tgpGetFragmentLightfvSGIX = uintptr(getProcAddr(\"glGetFragmentLightfvSGIX\"))\n\tgpGetFragmentLightivSGIX = uintptr(getProcAddr(\"glGetFragmentLightivSGIX\"))\n\tgpGetFragmentMaterialfvSGIX = uintptr(getProcAddr(\"glGetFragmentMaterialfvSGIX\"))\n\tgpGetFragmentMaterialivSGIX = uintptr(getProcAddr(\"glGetFragmentMaterialivSGIX\"))\n\tgpGetFramebufferAttachmentParameteriv = uintptr(getProcAddr(\"glGetFramebufferAttachmentParameteriv\"))\n\tgpGetFramebufferAttachmentParameterivEXT = uintptr(getProcAddr(\"glGetFramebufferAttachmentParameterivEXT\"))\n\tgpGetFramebufferParameterfvAMD = uintptr(getProcAddr(\"glGetFramebufferParameterfvAMD\"))\n\tgpGetFramebufferParameteriv = uintptr(getProcAddr(\"glGetFramebufferParameteriv\"))\n\tgpGetFramebufferParameterivEXT = uintptr(getProcAddr(\"glGetFramebufferParameterivEXT\"))\n\tgpGetGraphicsResetStatus = uintptr(getProcAddr(\"glGetGraphicsResetStatus\"))\n\tgpGetGraphicsResetStatusARB = uintptr(getProcAddr(\"glGetGraphicsResetStatusARB\"))\n\tgpGetGraphicsResetStatusKHR = uintptr(getProcAddr(\"glGetGraphicsResetStatusKHR\"))\n\tgpGetHandleARB = uintptr(getProcAddr(\"glGetHandleARB\"))\n\tgpGetHistogramEXT = uintptr(getProcAddr(\"glGetHistogramEXT\"))\n\tgpGetHistogramParameterfvEXT = uintptr(getProcAddr(\"glGetHistogramParameterfvEXT\"))\n\tgpGetHistogramParameterivEXT = uintptr(getProcAddr(\"glGetHistogramParameterivEXT\"))\n\tgpGetHistogramParameterxvOES = uintptr(getProcAddr(\"glGetHistogramParameterxvOES\"))\n\tgpGetImageHandleARB = uintptr(getProcAddr(\"glGetImageHandleARB\"))\n\tgpGetImageHandleNV = uintptr(getProcAddr(\"glGetImageHandleNV\"))\n\tgpGetImageTransformParameterfvHP = uintptr(getProcAddr(\"glGetImageTransformParameterfvHP\"))\n\tgpGetImageTransformParameterivHP = uintptr(getProcAddr(\"glGetImageTransformParameterivHP\"))\n\tgpGetInfoLogARB = uintptr(getProcAddr(\"glGetInfoLogARB\"))\n\tgpGetInstrumentsSGIX = uintptr(getProcAddr(\"glGetInstrumentsSGIX\"))\n\tgpGetInteger64v = uintptr(getProcAddr(\"glGetInteger64v\"))\n\tgpGetIntegerIndexedvEXT = uintptr(getProcAddr(\"glGetIntegerIndexedvEXT\"))\n\tgpGetIntegeri_v = uintptr(getProcAddr(\"glGetIntegeri_v\"))\n\tgpGetIntegerui64i_vNV = uintptr(getProcAddr(\"glGetIntegerui64i_vNV\"))\n\tgpGetIntegerui64vNV = uintptr(getProcAddr(\"glGetIntegerui64vNV\"))\n\tgpGetIntegerv = uintptr(getProcAddr(\"glGetIntegerv\"))\n\tif gpGetIntegerv == 0 {\n\t\treturn errors.New(\"glGetIntegerv\")\n\t}\n\tgpGetInternalformatSampleivNV = uintptr(getProcAddr(\"glGetInternalformatSampleivNV\"))\n\tgpGetInternalformati64v = uintptr(getProcAddr(\"glGetInternalformati64v\"))\n\tgpGetInternalformativ = uintptr(getProcAddr(\"glGetInternalformativ\"))\n\tgpGetInvariantBooleanvEXT = uintptr(getProcAddr(\"glGetInvariantBooleanvEXT\"))\n\tgpGetInvariantFloatvEXT = uintptr(getProcAddr(\"glGetInvariantFloatvEXT\"))\n\tgpGetInvariantIntegervEXT = uintptr(getProcAddr(\"glGetInvariantIntegervEXT\"))\n\tgpGetLightfv = uintptr(getProcAddr(\"glGetLightfv\"))\n\tif gpGetLightfv == 0 {\n\t\treturn errors.New(\"glGetLightfv\")\n\t}\n\tgpGetLightiv = uintptr(getProcAddr(\"glGetLightiv\"))\n\tif gpGetLightiv == 0 {\n\t\treturn errors.New(\"glGetLightiv\")\n\t}\n\tgpGetLightxOES = uintptr(getProcAddr(\"glGetLightxOES\"))\n\tgpGetLightxvOES = uintptr(getProcAddr(\"glGetLightxvOES\"))\n\tgpGetListParameterfvSGIX = uintptr(getProcAddr(\"glGetListParameterfvSGIX\"))\n\tgpGetListParameterivSGIX = uintptr(getProcAddr(\"glGetListParameterivSGIX\"))\n\tgpGetLocalConstantBooleanvEXT = uintptr(getProcAddr(\"glGetLocalConstantBooleanvEXT\"))\n\tgpGetLocalConstantFloatvEXT = uintptr(getProcAddr(\"glGetLocalConstantFloatvEXT\"))\n\tgpGetLocalConstantIntegervEXT = uintptr(getProcAddr(\"glGetLocalConstantIntegervEXT\"))\n\tgpGetMapAttribParameterfvNV = uintptr(getProcAddr(\"glGetMapAttribParameterfvNV\"))\n\tgpGetMapAttribParameterivNV = uintptr(getProcAddr(\"glGetMapAttribParameterivNV\"))\n\tgpGetMapControlPointsNV = uintptr(getProcAddr(\"glGetMapControlPointsNV\"))\n\tgpGetMapParameterfvNV = uintptr(getProcAddr(\"glGetMapParameterfvNV\"))\n\tgpGetMapParameterivNV = uintptr(getProcAddr(\"glGetMapParameterivNV\"))\n\tgpGetMapdv = uintptr(getProcAddr(\"glGetMapdv\"))\n\tif gpGetMapdv == 0 {\n\t\treturn errors.New(\"glGetMapdv\")\n\t}\n\tgpGetMapfv = uintptr(getProcAddr(\"glGetMapfv\"))\n\tif gpGetMapfv == 0 {\n\t\treturn errors.New(\"glGetMapfv\")\n\t}\n\tgpGetMapiv = uintptr(getProcAddr(\"glGetMapiv\"))\n\tif gpGetMapiv == 0 {\n\t\treturn errors.New(\"glGetMapiv\")\n\t}\n\tgpGetMapxvOES = uintptr(getProcAddr(\"glGetMapxvOES\"))\n\tgpGetMaterialfv = uintptr(getProcAddr(\"glGetMaterialfv\"))\n\tif gpGetMaterialfv == 0 {\n\t\treturn errors.New(\"glGetMaterialfv\")\n\t}\n\tgpGetMaterialiv = uintptr(getProcAddr(\"glGetMaterialiv\"))\n\tif gpGetMaterialiv == 0 {\n\t\treturn errors.New(\"glGetMaterialiv\")\n\t}\n\tgpGetMaterialxOES = uintptr(getProcAddr(\"glGetMaterialxOES\"))\n\tgpGetMaterialxvOES = uintptr(getProcAddr(\"glGetMaterialxvOES\"))\n\tgpGetMemoryObjectParameterivEXT = uintptr(getProcAddr(\"glGetMemoryObjectParameterivEXT\"))\n\tgpGetMinmaxEXT = uintptr(getProcAddr(\"glGetMinmaxEXT\"))\n\tgpGetMinmaxParameterfvEXT = uintptr(getProcAddr(\"glGetMinmaxParameterfvEXT\"))\n\tgpGetMinmaxParameterivEXT = uintptr(getProcAddr(\"glGetMinmaxParameterivEXT\"))\n\tgpGetMultiTexEnvfvEXT = uintptr(getProcAddr(\"glGetMultiTexEnvfvEXT\"))\n\tgpGetMultiTexEnvivEXT = uintptr(getProcAddr(\"glGetMultiTexEnvivEXT\"))\n\tgpGetMultiTexGendvEXT = uintptr(getProcAddr(\"glGetMultiTexGendvEXT\"))\n\tgpGetMultiTexGenfvEXT = uintptr(getProcAddr(\"glGetMultiTexGenfvEXT\"))\n\tgpGetMultiTexGenivEXT = uintptr(getProcAddr(\"glGetMultiTexGenivEXT\"))\n\tgpGetMultiTexImageEXT = uintptr(getProcAddr(\"glGetMultiTexImageEXT\"))\n\tgpGetMultiTexLevelParameterfvEXT = uintptr(getProcAddr(\"glGetMultiTexLevelParameterfvEXT\"))\n\tgpGetMultiTexLevelParameterivEXT = uintptr(getProcAddr(\"glGetMultiTexLevelParameterivEXT\"))\n\tgpGetMultiTexParameterIivEXT = uintptr(getProcAddr(\"glGetMultiTexParameterIivEXT\"))\n\tgpGetMultiTexParameterIuivEXT = uintptr(getProcAddr(\"glGetMultiTexParameterIuivEXT\"))\n\tgpGetMultiTexParameterfvEXT = uintptr(getProcAddr(\"glGetMultiTexParameterfvEXT\"))\n\tgpGetMultiTexParameterivEXT = uintptr(getProcAddr(\"glGetMultiTexParameterivEXT\"))\n\tgpGetMultisamplefv = uintptr(getProcAddr(\"glGetMultisamplefv\"))\n\tgpGetMultisamplefvNV = uintptr(getProcAddr(\"glGetMultisamplefvNV\"))\n\tgpGetNamedBufferParameteri64v = uintptr(getProcAddr(\"glGetNamedBufferParameteri64v\"))\n\tgpGetNamedBufferParameteriv = uintptr(getProcAddr(\"glGetNamedBufferParameteriv\"))\n\tgpGetNamedBufferParameterivEXT = uintptr(getProcAddr(\"glGetNamedBufferParameterivEXT\"))\n\tgpGetNamedBufferParameterui64vNV = uintptr(getProcAddr(\"glGetNamedBufferParameterui64vNV\"))\n\tgpGetNamedBufferPointerv = uintptr(getProcAddr(\"glGetNamedBufferPointerv\"))\n\tgpGetNamedBufferPointervEXT = uintptr(getProcAddr(\"glGetNamedBufferPointervEXT\"))\n\tgpGetNamedBufferSubData = uintptr(getProcAddr(\"glGetNamedBufferSubData\"))\n\tgpGetNamedBufferSubDataEXT = uintptr(getProcAddr(\"glGetNamedBufferSubDataEXT\"))\n\tgpGetNamedFramebufferAttachmentParameteriv = uintptr(getProcAddr(\"glGetNamedFramebufferAttachmentParameteriv\"))\n\tgpGetNamedFramebufferAttachmentParameterivEXT = uintptr(getProcAddr(\"glGetNamedFramebufferAttachmentParameterivEXT\"))\n\tgpGetNamedFramebufferParameterfvAMD = uintptr(getProcAddr(\"glGetNamedFramebufferParameterfvAMD\"))\n\tgpGetNamedFramebufferParameteriv = uintptr(getProcAddr(\"glGetNamedFramebufferParameteriv\"))\n\tgpGetNamedFramebufferParameterivEXT = uintptr(getProcAddr(\"glGetNamedFramebufferParameterivEXT\"))\n\tgpGetNamedProgramLocalParameterIivEXT = uintptr(getProcAddr(\"glGetNamedProgramLocalParameterIivEXT\"))\n\tgpGetNamedProgramLocalParameterIuivEXT = uintptr(getProcAddr(\"glGetNamedProgramLocalParameterIuivEXT\"))\n\tgpGetNamedProgramLocalParameterdvEXT = uintptr(getProcAddr(\"glGetNamedProgramLocalParameterdvEXT\"))\n\tgpGetNamedProgramLocalParameterfvEXT = uintptr(getProcAddr(\"glGetNamedProgramLocalParameterfvEXT\"))\n\tgpGetNamedProgramStringEXT = uintptr(getProcAddr(\"glGetNamedProgramStringEXT\"))\n\tgpGetNamedProgramivEXT = uintptr(getProcAddr(\"glGetNamedProgramivEXT\"))\n\tgpGetNamedRenderbufferParameteriv = uintptr(getProcAddr(\"glGetNamedRenderbufferParameteriv\"))\n\tgpGetNamedRenderbufferParameterivEXT = uintptr(getProcAddr(\"glGetNamedRenderbufferParameterivEXT\"))\n\tgpGetNamedStringARB = uintptr(getProcAddr(\"glGetNamedStringARB\"))\n\tgpGetNamedStringivARB = uintptr(getProcAddr(\"glGetNamedStringivARB\"))\n\tgpGetNextPerfQueryIdINTEL = uintptr(getProcAddr(\"glGetNextPerfQueryIdINTEL\"))\n\tgpGetObjectBufferfvATI = uintptr(getProcAddr(\"glGetObjectBufferfvATI\"))\n\tgpGetObjectBufferivATI = uintptr(getProcAddr(\"glGetObjectBufferivATI\"))\n\tgpGetObjectLabel = uintptr(getProcAddr(\"glGetObjectLabel\"))\n\tgpGetObjectLabelEXT = uintptr(getProcAddr(\"glGetObjectLabelEXT\"))\n\tgpGetObjectLabelKHR = uintptr(getProcAddr(\"glGetObjectLabelKHR\"))\n\tgpGetObjectParameterfvARB = uintptr(getProcAddr(\"glGetObjectParameterfvARB\"))\n\tgpGetObjectParameterivAPPLE = uintptr(getProcAddr(\"glGetObjectParameterivAPPLE\"))\n\tgpGetObjectParameterivARB = uintptr(getProcAddr(\"glGetObjectParameterivARB\"))\n\tgpGetObjectPtrLabel = uintptr(getProcAddr(\"glGetObjectPtrLabel\"))\n\tgpGetObjectPtrLabelKHR = uintptr(getProcAddr(\"glGetObjectPtrLabelKHR\"))\n\tgpGetOcclusionQueryivNV = uintptr(getProcAddr(\"glGetOcclusionQueryivNV\"))\n\tgpGetOcclusionQueryuivNV = uintptr(getProcAddr(\"glGetOcclusionQueryuivNV\"))\n\tgpGetPathCommandsNV = uintptr(getProcAddr(\"glGetPathCommandsNV\"))\n\tgpGetPathCoordsNV = uintptr(getProcAddr(\"glGetPathCoordsNV\"))\n\tgpGetPathDashArrayNV = uintptr(getProcAddr(\"glGetPathDashArrayNV\"))\n\tgpGetPathLengthNV = uintptr(getProcAddr(\"glGetPathLengthNV\"))\n\tgpGetPathMetricRangeNV = uintptr(getProcAddr(\"glGetPathMetricRangeNV\"))\n\tgpGetPathMetricsNV = uintptr(getProcAddr(\"glGetPathMetricsNV\"))\n\tgpGetPathParameterfvNV = uintptr(getProcAddr(\"glGetPathParameterfvNV\"))\n\tgpGetPathParameterivNV = uintptr(getProcAddr(\"glGetPathParameterivNV\"))\n\tgpGetPathSpacingNV = uintptr(getProcAddr(\"glGetPathSpacingNV\"))\n\tgpGetPerfCounterInfoINTEL = uintptr(getProcAddr(\"glGetPerfCounterInfoINTEL\"))\n\tgpGetPerfMonitorCounterDataAMD = uintptr(getProcAddr(\"glGetPerfMonitorCounterDataAMD\"))\n\tgpGetPerfMonitorCounterInfoAMD = uintptr(getProcAddr(\"glGetPerfMonitorCounterInfoAMD\"))\n\tgpGetPerfMonitorCounterStringAMD = uintptr(getProcAddr(\"glGetPerfMonitorCounterStringAMD\"))\n\tgpGetPerfMonitorCountersAMD = uintptr(getProcAddr(\"glGetPerfMonitorCountersAMD\"))\n\tgpGetPerfMonitorGroupStringAMD = uintptr(getProcAddr(\"glGetPerfMonitorGroupStringAMD\"))\n\tgpGetPerfMonitorGroupsAMD = uintptr(getProcAddr(\"glGetPerfMonitorGroupsAMD\"))\n\tgpGetPerfQueryDataINTEL = uintptr(getProcAddr(\"glGetPerfQueryDataINTEL\"))\n\tgpGetPerfQueryIdByNameINTEL = uintptr(getProcAddr(\"glGetPerfQueryIdByNameINTEL\"))\n\tgpGetPerfQueryInfoINTEL = uintptr(getProcAddr(\"glGetPerfQueryInfoINTEL\"))\n\tgpGetPixelMapfv = uintptr(getProcAddr(\"glGetPixelMapfv\"))\n\tif gpGetPixelMapfv == 0 {\n\t\treturn errors.New(\"glGetPixelMapfv\")\n\t}\n\tgpGetPixelMapuiv = uintptr(getProcAddr(\"glGetPixelMapuiv\"))\n\tif gpGetPixelMapuiv == 0 {\n\t\treturn errors.New(\"glGetPixelMapuiv\")\n\t}\n\tgpGetPixelMapusv = uintptr(getProcAddr(\"glGetPixelMapusv\"))\n\tif gpGetPixelMapusv == 0 {\n\t\treturn errors.New(\"glGetPixelMapusv\")\n\t}\n\tgpGetPixelMapxv = uintptr(getProcAddr(\"glGetPixelMapxv\"))\n\tgpGetPixelTexGenParameterfvSGIS = uintptr(getProcAddr(\"glGetPixelTexGenParameterfvSGIS\"))\n\tgpGetPixelTexGenParameterivSGIS = uintptr(getProcAddr(\"glGetPixelTexGenParameterivSGIS\"))\n\tgpGetPixelTransformParameterfvEXT = uintptr(getProcAddr(\"glGetPixelTransformParameterfvEXT\"))\n\tgpGetPixelTransformParameterivEXT = uintptr(getProcAddr(\"glGetPixelTransformParameterivEXT\"))\n\tgpGetPointerIndexedvEXT = uintptr(getProcAddr(\"glGetPointerIndexedvEXT\"))\n\tgpGetPointeri_vEXT = uintptr(getProcAddr(\"glGetPointeri_vEXT\"))\n\tgpGetPointerv = uintptr(getProcAddr(\"glGetPointerv\"))\n\tif gpGetPointerv == 0 {\n\t\treturn errors.New(\"glGetPointerv\")\n\t}\n\tgpGetPointervEXT = uintptr(getProcAddr(\"glGetPointervEXT\"))\n\tgpGetPointervKHR = uintptr(getProcAddr(\"glGetPointervKHR\"))\n\tgpGetPolygonStipple = uintptr(getProcAddr(\"glGetPolygonStipple\"))\n\tif gpGetPolygonStipple == 0 {\n\t\treturn errors.New(\"glGetPolygonStipple\")\n\t}\n\tgpGetProgramBinary = uintptr(getProcAddr(\"glGetProgramBinary\"))\n\tgpGetProgramEnvParameterIivNV = uintptr(getProcAddr(\"glGetProgramEnvParameterIivNV\"))\n\tgpGetProgramEnvParameterIuivNV = uintptr(getProcAddr(\"glGetProgramEnvParameterIuivNV\"))\n\tgpGetProgramEnvParameterdvARB = uintptr(getProcAddr(\"glGetProgramEnvParameterdvARB\"))\n\tgpGetProgramEnvParameterfvARB = uintptr(getProcAddr(\"glGetProgramEnvParameterfvARB\"))\n\tgpGetProgramInfoLog = uintptr(getProcAddr(\"glGetProgramInfoLog\"))\n\tif gpGetProgramInfoLog == 0 {\n\t\treturn errors.New(\"glGetProgramInfoLog\")\n\t}\n\tgpGetProgramInterfaceiv = uintptr(getProcAddr(\"glGetProgramInterfaceiv\"))\n\tgpGetProgramLocalParameterIivNV = uintptr(getProcAddr(\"glGetProgramLocalParameterIivNV\"))\n\tgpGetProgramLocalParameterIuivNV = uintptr(getProcAddr(\"glGetProgramLocalParameterIuivNV\"))\n\tgpGetProgramLocalParameterdvARB = uintptr(getProcAddr(\"glGetProgramLocalParameterdvARB\"))\n\tgpGetProgramLocalParameterfvARB = uintptr(getProcAddr(\"glGetProgramLocalParameterfvARB\"))\n\tgpGetProgramNamedParameterdvNV = uintptr(getProcAddr(\"glGetProgramNamedParameterdvNV\"))\n\tgpGetProgramNamedParameterfvNV = uintptr(getProcAddr(\"glGetProgramNamedParameterfvNV\"))\n\tgpGetProgramParameterdvNV = uintptr(getProcAddr(\"glGetProgramParameterdvNV\"))\n\tgpGetProgramParameterfvNV = uintptr(getProcAddr(\"glGetProgramParameterfvNV\"))\n\tgpGetProgramPipelineInfoLog = uintptr(getProcAddr(\"glGetProgramPipelineInfoLog\"))\n\tgpGetProgramPipelineInfoLogEXT = uintptr(getProcAddr(\"glGetProgramPipelineInfoLogEXT\"))\n\tgpGetProgramPipelineiv = uintptr(getProcAddr(\"glGetProgramPipelineiv\"))\n\tgpGetProgramPipelineivEXT = uintptr(getProcAddr(\"glGetProgramPipelineivEXT\"))\n\tgpGetProgramResourceIndex = uintptr(getProcAddr(\"glGetProgramResourceIndex\"))\n\tgpGetProgramResourceLocation = uintptr(getProcAddr(\"glGetProgramResourceLocation\"))\n\tgpGetProgramResourceLocationIndex = uintptr(getProcAddr(\"glGetProgramResourceLocationIndex\"))\n\tgpGetProgramResourceName = uintptr(getProcAddr(\"glGetProgramResourceName\"))\n\tgpGetProgramResourcefvNV = uintptr(getProcAddr(\"glGetProgramResourcefvNV\"))\n\tgpGetProgramResourceiv = uintptr(getProcAddr(\"glGetProgramResourceiv\"))\n\tgpGetProgramStageiv = uintptr(getProcAddr(\"glGetProgramStageiv\"))\n\tgpGetProgramStringARB = uintptr(getProcAddr(\"glGetProgramStringARB\"))\n\tgpGetProgramStringNV = uintptr(getProcAddr(\"glGetProgramStringNV\"))\n\tgpGetProgramSubroutineParameteruivNV = uintptr(getProcAddr(\"glGetProgramSubroutineParameteruivNV\"))\n\tgpGetProgramiv = uintptr(getProcAddr(\"glGetProgramiv\"))\n\tif gpGetProgramiv == 0 {\n\t\treturn errors.New(\"glGetProgramiv\")\n\t}\n\tgpGetProgramivARB = uintptr(getProcAddr(\"glGetProgramivARB\"))\n\tgpGetProgramivNV = uintptr(getProcAddr(\"glGetProgramivNV\"))\n\tgpGetQueryBufferObjecti64v = uintptr(getProcAddr(\"glGetQueryBufferObjecti64v\"))\n\tgpGetQueryBufferObjectiv = uintptr(getProcAddr(\"glGetQueryBufferObjectiv\"))\n\tgpGetQueryBufferObjectui64v = uintptr(getProcAddr(\"glGetQueryBufferObjectui64v\"))\n\tgpGetQueryBufferObjectuiv = uintptr(getProcAddr(\"glGetQueryBufferObjectuiv\"))\n\tgpGetQueryIndexediv = uintptr(getProcAddr(\"glGetQueryIndexediv\"))\n\tgpGetQueryObjecti64v = uintptr(getProcAddr(\"glGetQueryObjecti64v\"))\n\tgpGetQueryObjecti64vEXT = uintptr(getProcAddr(\"glGetQueryObjecti64vEXT\"))\n\tgpGetQueryObjectiv = uintptr(getProcAddr(\"glGetQueryObjectiv\"))\n\tif gpGetQueryObjectiv == 0 {\n\t\treturn errors.New(\"glGetQueryObjectiv\")\n\t}\n\tgpGetQueryObjectivARB = uintptr(getProcAddr(\"glGetQueryObjectivARB\"))\n\tgpGetQueryObjectui64v = uintptr(getProcAddr(\"glGetQueryObjectui64v\"))\n\tgpGetQueryObjectui64vEXT = uintptr(getProcAddr(\"glGetQueryObjectui64vEXT\"))\n\tgpGetQueryObjectuiv = uintptr(getProcAddr(\"glGetQueryObjectuiv\"))\n\tif gpGetQueryObjectuiv == 0 {\n\t\treturn errors.New(\"glGetQueryObjectuiv\")\n\t}\n\tgpGetQueryObjectuivARB = uintptr(getProcAddr(\"glGetQueryObjectuivARB\"))\n\tgpGetQueryiv = uintptr(getProcAddr(\"glGetQueryiv\"))\n\tif gpGetQueryiv == 0 {\n\t\treturn errors.New(\"glGetQueryiv\")\n\t}\n\tgpGetQueryivARB = uintptr(getProcAddr(\"glGetQueryivARB\"))\n\tgpGetRenderbufferParameteriv = uintptr(getProcAddr(\"glGetRenderbufferParameteriv\"))\n\tgpGetRenderbufferParameterivEXT = uintptr(getProcAddr(\"glGetRenderbufferParameterivEXT\"))\n\tgpGetSamplerParameterIiv = uintptr(getProcAddr(\"glGetSamplerParameterIiv\"))\n\tgpGetSamplerParameterIuiv = uintptr(getProcAddr(\"glGetSamplerParameterIuiv\"))\n\tgpGetSamplerParameterfv = uintptr(getProcAddr(\"glGetSamplerParameterfv\"))\n\tgpGetSamplerParameteriv = uintptr(getProcAddr(\"glGetSamplerParameteriv\"))\n\tgpGetSemaphoreParameterui64vEXT = uintptr(getProcAddr(\"glGetSemaphoreParameterui64vEXT\"))\n\tgpGetSeparableFilterEXT = uintptr(getProcAddr(\"glGetSeparableFilterEXT\"))\n\tgpGetShaderInfoLog = uintptr(getProcAddr(\"glGetShaderInfoLog\"))\n\tif gpGetShaderInfoLog == 0 {\n\t\treturn errors.New(\"glGetShaderInfoLog\")\n\t}\n\tgpGetShaderPrecisionFormat = uintptr(getProcAddr(\"glGetShaderPrecisionFormat\"))\n\tgpGetShaderSource = uintptr(getProcAddr(\"glGetShaderSource\"))\n\tif gpGetShaderSource == 0 {\n\t\treturn errors.New(\"glGetShaderSource\")\n\t}\n\tgpGetShaderSourceARB = uintptr(getProcAddr(\"glGetShaderSourceARB\"))\n\tgpGetShaderiv = uintptr(getProcAddr(\"glGetShaderiv\"))\n\tif gpGetShaderiv == 0 {\n\t\treturn errors.New(\"glGetShaderiv\")\n\t}\n\tgpGetSharpenTexFuncSGIS = uintptr(getProcAddr(\"glGetSharpenTexFuncSGIS\"))\n\tgpGetStageIndexNV = uintptr(getProcAddr(\"glGetStageIndexNV\"))\n\tgpGetString = uintptr(getProcAddr(\"glGetString\"))\n\tif gpGetString == 0 {\n\t\treturn errors.New(\"glGetString\")\n\t}\n\tgpGetSubroutineIndex = uintptr(getProcAddr(\"glGetSubroutineIndex\"))\n\tgpGetSubroutineUniformLocation = uintptr(getProcAddr(\"glGetSubroutineUniformLocation\"))\n\tgpGetSynciv = uintptr(getProcAddr(\"glGetSynciv\"))\n\tgpGetTexBumpParameterfvATI = uintptr(getProcAddr(\"glGetTexBumpParameterfvATI\"))\n\tgpGetTexBumpParameterivATI = uintptr(getProcAddr(\"glGetTexBumpParameterivATI\"))\n\tgpGetTexEnvfv = uintptr(getProcAddr(\"glGetTexEnvfv\"))\n\tif gpGetTexEnvfv == 0 {\n\t\treturn errors.New(\"glGetTexEnvfv\")\n\t}\n\tgpGetTexEnviv = uintptr(getProcAddr(\"glGetTexEnviv\"))\n\tif gpGetTexEnviv == 0 {\n\t\treturn errors.New(\"glGetTexEnviv\")\n\t}\n\tgpGetTexEnvxvOES = uintptr(getProcAddr(\"glGetTexEnvxvOES\"))\n\tgpGetTexFilterFuncSGIS = uintptr(getProcAddr(\"glGetTexFilterFuncSGIS\"))\n\tgpGetTexGendv = uintptr(getProcAddr(\"glGetTexGendv\"))\n\tif gpGetTexGendv == 0 {\n\t\treturn errors.New(\"glGetTexGendv\")\n\t}\n\tgpGetTexGenfv = uintptr(getProcAddr(\"glGetTexGenfv\"))\n\tif gpGetTexGenfv == 0 {\n\t\treturn errors.New(\"glGetTexGenfv\")\n\t}\n\tgpGetTexGeniv = uintptr(getProcAddr(\"glGetTexGeniv\"))\n\tif gpGetTexGeniv == 0 {\n\t\treturn errors.New(\"glGetTexGeniv\")\n\t}\n\tgpGetTexGenxvOES = uintptr(getProcAddr(\"glGetTexGenxvOES\"))\n\tgpGetTexImage = uintptr(getProcAddr(\"glGetTexImage\"))\n\tif gpGetTexImage == 0 {\n\t\treturn errors.New(\"glGetTexImage\")\n\t}\n\tgpGetTexLevelParameterfv = uintptr(getProcAddr(\"glGetTexLevelParameterfv\"))\n\tif gpGetTexLevelParameterfv == 0 {\n\t\treturn errors.New(\"glGetTexLevelParameterfv\")\n\t}\n\tgpGetTexLevelParameteriv = uintptr(getProcAddr(\"glGetTexLevelParameteriv\"))\n\tif gpGetTexLevelParameteriv == 0 {\n\t\treturn errors.New(\"glGetTexLevelParameteriv\")\n\t}\n\tgpGetTexLevelParameterxvOES = uintptr(getProcAddr(\"glGetTexLevelParameterxvOES\"))\n\tgpGetTexParameterIivEXT = uintptr(getProcAddr(\"glGetTexParameterIivEXT\"))\n\tgpGetTexParameterIuivEXT = uintptr(getProcAddr(\"glGetTexParameterIuivEXT\"))\n\tgpGetTexParameterPointervAPPLE = uintptr(getProcAddr(\"glGetTexParameterPointervAPPLE\"))\n\tgpGetTexParameterfv = uintptr(getProcAddr(\"glGetTexParameterfv\"))\n\tif gpGetTexParameterfv == 0 {\n\t\treturn errors.New(\"glGetTexParameterfv\")\n\t}\n\tgpGetTexParameteriv = uintptr(getProcAddr(\"glGetTexParameteriv\"))\n\tif gpGetTexParameteriv == 0 {\n\t\treturn errors.New(\"glGetTexParameteriv\")\n\t}\n\tgpGetTexParameterxvOES = uintptr(getProcAddr(\"glGetTexParameterxvOES\"))\n\tgpGetTextureHandleARB = uintptr(getProcAddr(\"glGetTextureHandleARB\"))\n\tgpGetTextureHandleNV = uintptr(getProcAddr(\"glGetTextureHandleNV\"))\n\tgpGetTextureImage = uintptr(getProcAddr(\"glGetTextureImage\"))\n\tgpGetTextureImageEXT = uintptr(getProcAddr(\"glGetTextureImageEXT\"))\n\tgpGetTextureLevelParameterfv = uintptr(getProcAddr(\"glGetTextureLevelParameterfv\"))\n\tgpGetTextureLevelParameterfvEXT = uintptr(getProcAddr(\"glGetTextureLevelParameterfvEXT\"))\n\tgpGetTextureLevelParameteriv = uintptr(getProcAddr(\"glGetTextureLevelParameteriv\"))\n\tgpGetTextureLevelParameterivEXT = uintptr(getProcAddr(\"glGetTextureLevelParameterivEXT\"))\n\tgpGetTextureParameterIiv = uintptr(getProcAddr(\"glGetTextureParameterIiv\"))\n\tgpGetTextureParameterIivEXT = uintptr(getProcAddr(\"glGetTextureParameterIivEXT\"))\n\tgpGetTextureParameterIuiv = uintptr(getProcAddr(\"glGetTextureParameterIuiv\"))\n\tgpGetTextureParameterIuivEXT = uintptr(getProcAddr(\"glGetTextureParameterIuivEXT\"))\n\tgpGetTextureParameterfv = uintptr(getProcAddr(\"glGetTextureParameterfv\"))\n\tgpGetTextureParameterfvEXT = uintptr(getProcAddr(\"glGetTextureParameterfvEXT\"))\n\tgpGetTextureParameteriv = uintptr(getProcAddr(\"glGetTextureParameteriv\"))\n\tgpGetTextureParameterivEXT = uintptr(getProcAddr(\"glGetTextureParameterivEXT\"))\n\tgpGetTextureSamplerHandleARB = uintptr(getProcAddr(\"glGetTextureSamplerHandleARB\"))\n\tgpGetTextureSamplerHandleNV = uintptr(getProcAddr(\"glGetTextureSamplerHandleNV\"))\n\tgpGetTextureSubImage = uintptr(getProcAddr(\"glGetTextureSubImage\"))\n\tgpGetTrackMatrixivNV = uintptr(getProcAddr(\"glGetTrackMatrixivNV\"))\n\tgpGetTransformFeedbackVaryingEXT = uintptr(getProcAddr(\"glGetTransformFeedbackVaryingEXT\"))\n\tgpGetTransformFeedbackVaryingNV = uintptr(getProcAddr(\"glGetTransformFeedbackVaryingNV\"))\n\tgpGetTransformFeedbacki64_v = uintptr(getProcAddr(\"glGetTransformFeedbacki64_v\"))\n\tgpGetTransformFeedbacki_v = uintptr(getProcAddr(\"glGetTransformFeedbacki_v\"))\n\tgpGetTransformFeedbackiv = uintptr(getProcAddr(\"glGetTransformFeedbackiv\"))\n\tgpGetUniformBlockIndex = uintptr(getProcAddr(\"glGetUniformBlockIndex\"))\n\tgpGetUniformBufferSizeEXT = uintptr(getProcAddr(\"glGetUniformBufferSizeEXT\"))\n\tgpGetUniformIndices = uintptr(getProcAddr(\"glGetUniformIndices\"))\n\tgpGetUniformLocation = uintptr(getProcAddr(\"glGetUniformLocation\"))\n\tif gpGetUniformLocation == 0 {\n\t\treturn errors.New(\"glGetUniformLocation\")\n\t}\n\tgpGetUniformLocationARB = uintptr(getProcAddr(\"glGetUniformLocationARB\"))\n\tgpGetUniformOffsetEXT = uintptr(getProcAddr(\"glGetUniformOffsetEXT\"))\n\tgpGetUniformSubroutineuiv = uintptr(getProcAddr(\"glGetUniformSubroutineuiv\"))\n\tgpGetUniformdv = uintptr(getProcAddr(\"glGetUniformdv\"))\n\tgpGetUniformfv = uintptr(getProcAddr(\"glGetUniformfv\"))\n\tif gpGetUniformfv == 0 {\n\t\treturn errors.New(\"glGetUniformfv\")\n\t}\n\tgpGetUniformfvARB = uintptr(getProcAddr(\"glGetUniformfvARB\"))\n\tgpGetUniformi64vARB = uintptr(getProcAddr(\"glGetUniformi64vARB\"))\n\tgpGetUniformi64vNV = uintptr(getProcAddr(\"glGetUniformi64vNV\"))\n\tgpGetUniformiv = uintptr(getProcAddr(\"glGetUniformiv\"))\n\tif gpGetUniformiv == 0 {\n\t\treturn errors.New(\"glGetUniformiv\")\n\t}\n\tgpGetUniformivARB = uintptr(getProcAddr(\"glGetUniformivARB\"))\n\tgpGetUniformui64vARB = uintptr(getProcAddr(\"glGetUniformui64vARB\"))\n\tgpGetUniformui64vNV = uintptr(getProcAddr(\"glGetUniformui64vNV\"))\n\tgpGetUniformuivEXT = uintptr(getProcAddr(\"glGetUniformuivEXT\"))\n\tgpGetUnsignedBytei_vEXT = uintptr(getProcAddr(\"glGetUnsignedBytei_vEXT\"))\n\tgpGetUnsignedBytevEXT = uintptr(getProcAddr(\"glGetUnsignedBytevEXT\"))\n\tgpGetVariantArrayObjectfvATI = uintptr(getProcAddr(\"glGetVariantArrayObjectfvATI\"))\n\tgpGetVariantArrayObjectivATI = uintptr(getProcAddr(\"glGetVariantArrayObjectivATI\"))\n\tgpGetVariantBooleanvEXT = uintptr(getProcAddr(\"glGetVariantBooleanvEXT\"))\n\tgpGetVariantFloatvEXT = uintptr(getProcAddr(\"glGetVariantFloatvEXT\"))\n\tgpGetVariantIntegervEXT = uintptr(getProcAddr(\"glGetVariantIntegervEXT\"))\n\tgpGetVariantPointervEXT = uintptr(getProcAddr(\"glGetVariantPointervEXT\"))\n\tgpGetVaryingLocationNV = uintptr(getProcAddr(\"glGetVaryingLocationNV\"))\n\tgpGetVertexArrayIndexed64iv = uintptr(getProcAddr(\"glGetVertexArrayIndexed64iv\"))\n\tgpGetVertexArrayIndexediv = uintptr(getProcAddr(\"glGetVertexArrayIndexediv\"))\n\tgpGetVertexArrayIntegeri_vEXT = uintptr(getProcAddr(\"glGetVertexArrayIntegeri_vEXT\"))\n\tgpGetVertexArrayIntegervEXT = uintptr(getProcAddr(\"glGetVertexArrayIntegervEXT\"))\n\tgpGetVertexArrayPointeri_vEXT = uintptr(getProcAddr(\"glGetVertexArrayPointeri_vEXT\"))\n\tgpGetVertexArrayPointervEXT = uintptr(getProcAddr(\"glGetVertexArrayPointervEXT\"))\n\tgpGetVertexArrayiv = uintptr(getProcAddr(\"glGetVertexArrayiv\"))\n\tgpGetVertexAttribArrayObjectfvATI = uintptr(getProcAddr(\"glGetVertexAttribArrayObjectfvATI\"))\n\tgpGetVertexAttribArrayObjectivATI = uintptr(getProcAddr(\"glGetVertexAttribArrayObjectivATI\"))\n\tgpGetVertexAttribIivEXT = uintptr(getProcAddr(\"glGetVertexAttribIivEXT\"))\n\tgpGetVertexAttribIuivEXT = uintptr(getProcAddr(\"glGetVertexAttribIuivEXT\"))\n\tgpGetVertexAttribLdv = uintptr(getProcAddr(\"glGetVertexAttribLdv\"))\n\tgpGetVertexAttribLdvEXT = uintptr(getProcAddr(\"glGetVertexAttribLdvEXT\"))\n\tgpGetVertexAttribLi64vNV = uintptr(getProcAddr(\"glGetVertexAttribLi64vNV\"))\n\tgpGetVertexAttribLui64vARB = uintptr(getProcAddr(\"glGetVertexAttribLui64vARB\"))\n\tgpGetVertexAttribLui64vNV = uintptr(getProcAddr(\"glGetVertexAttribLui64vNV\"))\n\tgpGetVertexAttribPointerv = uintptr(getProcAddr(\"glGetVertexAttribPointerv\"))\n\tif gpGetVertexAttribPointerv == 0 {\n\t\treturn errors.New(\"glGetVertexAttribPointerv\")\n\t}\n\tgpGetVertexAttribPointervARB = uintptr(getProcAddr(\"glGetVertexAttribPointervARB\"))\n\tgpGetVertexAttribPointervNV = uintptr(getProcAddr(\"glGetVertexAttribPointervNV\"))\n\tgpGetVertexAttribdv = uintptr(getProcAddr(\"glGetVertexAttribdv\"))\n\tif gpGetVertexAttribdv == 0 {\n\t\treturn errors.New(\"glGetVertexAttribdv\")\n\t}\n\tgpGetVertexAttribdvARB = uintptr(getProcAddr(\"glGetVertexAttribdvARB\"))\n\tgpGetVertexAttribdvNV = uintptr(getProcAddr(\"glGetVertexAttribdvNV\"))\n\tgpGetVertexAttribfv = uintptr(getProcAddr(\"glGetVertexAttribfv\"))\n\tif gpGetVertexAttribfv == 0 {\n\t\treturn errors.New(\"glGetVertexAttribfv\")\n\t}\n\tgpGetVertexAttribfvARB = uintptr(getProcAddr(\"glGetVertexAttribfvARB\"))\n\tgpGetVertexAttribfvNV = uintptr(getProcAddr(\"glGetVertexAttribfvNV\"))\n\tgpGetVertexAttribiv = uintptr(getProcAddr(\"glGetVertexAttribiv\"))\n\tif gpGetVertexAttribiv == 0 {\n\t\treturn errors.New(\"glGetVertexAttribiv\")\n\t}\n\tgpGetVertexAttribivARB = uintptr(getProcAddr(\"glGetVertexAttribivARB\"))\n\tgpGetVertexAttribivNV = uintptr(getProcAddr(\"glGetVertexAttribivNV\"))\n\tgpGetVideoCaptureStreamdvNV = uintptr(getProcAddr(\"glGetVideoCaptureStreamdvNV\"))\n\tgpGetVideoCaptureStreamfvNV = uintptr(getProcAddr(\"glGetVideoCaptureStreamfvNV\"))\n\tgpGetVideoCaptureStreamivNV = uintptr(getProcAddr(\"glGetVideoCaptureStreamivNV\"))\n\tgpGetVideoCaptureivNV = uintptr(getProcAddr(\"glGetVideoCaptureivNV\"))\n\tgpGetVideoi64vNV = uintptr(getProcAddr(\"glGetVideoi64vNV\"))\n\tgpGetVideoivNV = uintptr(getProcAddr(\"glGetVideoivNV\"))\n\tgpGetVideoui64vNV = uintptr(getProcAddr(\"glGetVideoui64vNV\"))\n\tgpGetVideouivNV = uintptr(getProcAddr(\"glGetVideouivNV\"))\n\tgpGetVkProcAddrNV = uintptr(getProcAddr(\"glGetVkProcAddrNV\"))\n\tgpGetnCompressedTexImageARB = uintptr(getProcAddr(\"glGetnCompressedTexImageARB\"))\n\tgpGetnTexImageARB = uintptr(getProcAddr(\"glGetnTexImageARB\"))\n\tgpGetnUniformdvARB = uintptr(getProcAddr(\"glGetnUniformdvARB\"))\n\tgpGetnUniformfv = uintptr(getProcAddr(\"glGetnUniformfv\"))\n\tgpGetnUniformfvARB = uintptr(getProcAddr(\"glGetnUniformfvARB\"))\n\tgpGetnUniformfvKHR = uintptr(getProcAddr(\"glGetnUniformfvKHR\"))\n\tgpGetnUniformi64vARB = uintptr(getProcAddr(\"glGetnUniformi64vARB\"))\n\tgpGetnUniformiv = uintptr(getProcAddr(\"glGetnUniformiv\"))\n\tgpGetnUniformivARB = uintptr(getProcAddr(\"glGetnUniformivARB\"))\n\tgpGetnUniformivKHR = uintptr(getProcAddr(\"glGetnUniformivKHR\"))\n\tgpGetnUniformui64vARB = uintptr(getProcAddr(\"glGetnUniformui64vARB\"))\n\tgpGetnUniformuiv = uintptr(getProcAddr(\"glGetnUniformuiv\"))\n\tgpGetnUniformuivARB = uintptr(getProcAddr(\"glGetnUniformuivARB\"))\n\tgpGetnUniformuivKHR = uintptr(getProcAddr(\"glGetnUniformuivKHR\"))\n\tgpGlobalAlphaFactorbSUN = uintptr(getProcAddr(\"glGlobalAlphaFactorbSUN\"))\n\tgpGlobalAlphaFactordSUN = uintptr(getProcAddr(\"glGlobalAlphaFactordSUN\"))\n\tgpGlobalAlphaFactorfSUN = uintptr(getProcAddr(\"glGlobalAlphaFactorfSUN\"))\n\tgpGlobalAlphaFactoriSUN = uintptr(getProcAddr(\"glGlobalAlphaFactoriSUN\"))\n\tgpGlobalAlphaFactorsSUN = uintptr(getProcAddr(\"glGlobalAlphaFactorsSUN\"))\n\tgpGlobalAlphaFactorubSUN = uintptr(getProcAddr(\"glGlobalAlphaFactorubSUN\"))\n\tgpGlobalAlphaFactoruiSUN = uintptr(getProcAddr(\"glGlobalAlphaFactoruiSUN\"))\n\tgpGlobalAlphaFactorusSUN = uintptr(getProcAddr(\"glGlobalAlphaFactorusSUN\"))\n\tgpHint = uintptr(getProcAddr(\"glHint\"))\n\tif gpHint == 0 {\n\t\treturn errors.New(\"glHint\")\n\t}\n\tgpHintPGI = uintptr(getProcAddr(\"glHintPGI\"))\n\tgpHistogramEXT = uintptr(getProcAddr(\"glHistogramEXT\"))\n\tgpIglooInterfaceSGIX = uintptr(getProcAddr(\"glIglooInterfaceSGIX\"))\n\tgpImageTransformParameterfHP = uintptr(getProcAddr(\"glImageTransformParameterfHP\"))\n\tgpImageTransformParameterfvHP = uintptr(getProcAddr(\"glImageTransformParameterfvHP\"))\n\tgpImageTransformParameteriHP = uintptr(getProcAddr(\"glImageTransformParameteriHP\"))\n\tgpImageTransformParameterivHP = uintptr(getProcAddr(\"glImageTransformParameterivHP\"))\n\tgpImportMemoryFdEXT = uintptr(getProcAddr(\"glImportMemoryFdEXT\"))\n\tgpImportMemoryWin32HandleEXT = uintptr(getProcAddr(\"glImportMemoryWin32HandleEXT\"))\n\tgpImportMemoryWin32NameEXT = uintptr(getProcAddr(\"glImportMemoryWin32NameEXT\"))\n\tgpImportSemaphoreFdEXT = uintptr(getProcAddr(\"glImportSemaphoreFdEXT\"))\n\tgpImportSemaphoreWin32HandleEXT = uintptr(getProcAddr(\"glImportSemaphoreWin32HandleEXT\"))\n\tgpImportSemaphoreWin32NameEXT = uintptr(getProcAddr(\"glImportSemaphoreWin32NameEXT\"))\n\tgpImportSyncEXT = uintptr(getProcAddr(\"glImportSyncEXT\"))\n\tgpIndexFormatNV = uintptr(getProcAddr(\"glIndexFormatNV\"))\n\tgpIndexFuncEXT = uintptr(getProcAddr(\"glIndexFuncEXT\"))\n\tgpIndexMask = uintptr(getProcAddr(\"glIndexMask\"))\n\tif gpIndexMask == 0 {\n\t\treturn errors.New(\"glIndexMask\")\n\t}\n\tgpIndexMaterialEXT = uintptr(getProcAddr(\"glIndexMaterialEXT\"))\n\tgpIndexPointer = uintptr(getProcAddr(\"glIndexPointer\"))\n\tif gpIndexPointer == 0 {\n\t\treturn errors.New(\"glIndexPointer\")\n\t}\n\tgpIndexPointerEXT = uintptr(getProcAddr(\"glIndexPointerEXT\"))\n\tgpIndexPointerListIBM = uintptr(getProcAddr(\"glIndexPointerListIBM\"))\n\tgpIndexd = uintptr(getProcAddr(\"glIndexd\"))\n\tif gpIndexd == 0 {\n\t\treturn errors.New(\"glIndexd\")\n\t}\n\tgpIndexdv = uintptr(getProcAddr(\"glIndexdv\"))\n\tif gpIndexdv == 0 {\n\t\treturn errors.New(\"glIndexdv\")\n\t}\n\tgpIndexf = uintptr(getProcAddr(\"glIndexf\"))\n\tif gpIndexf == 0 {\n\t\treturn errors.New(\"glIndexf\")\n\t}\n\tgpIndexfv = uintptr(getProcAddr(\"glIndexfv\"))\n\tif gpIndexfv == 0 {\n\t\treturn errors.New(\"glIndexfv\")\n\t}\n\tgpIndexi = uintptr(getProcAddr(\"glIndexi\"))\n\tif gpIndexi == 0 {\n\t\treturn errors.New(\"glIndexi\")\n\t}\n\tgpIndexiv = uintptr(getProcAddr(\"glIndexiv\"))\n\tif gpIndexiv == 0 {\n\t\treturn errors.New(\"glIndexiv\")\n\t}\n\tgpIndexs = uintptr(getProcAddr(\"glIndexs\"))\n\tif gpIndexs == 0 {\n\t\treturn errors.New(\"glIndexs\")\n\t}\n\tgpIndexsv = uintptr(getProcAddr(\"glIndexsv\"))\n\tif gpIndexsv == 0 {\n\t\treturn errors.New(\"glIndexsv\")\n\t}\n\tgpIndexub = uintptr(getProcAddr(\"glIndexub\"))\n\tif gpIndexub == 0 {\n\t\treturn errors.New(\"glIndexub\")\n\t}\n\tgpIndexubv = uintptr(getProcAddr(\"glIndexubv\"))\n\tif gpIndexubv == 0 {\n\t\treturn errors.New(\"glIndexubv\")\n\t}\n\tgpIndexxOES = uintptr(getProcAddr(\"glIndexxOES\"))\n\tgpIndexxvOES = uintptr(getProcAddr(\"glIndexxvOES\"))\n\tgpInitNames = uintptr(getProcAddr(\"glInitNames\"))\n\tif gpInitNames == 0 {\n\t\treturn errors.New(\"glInitNames\")\n\t}\n\tgpInsertComponentEXT = uintptr(getProcAddr(\"glInsertComponentEXT\"))\n\tgpInsertEventMarkerEXT = uintptr(getProcAddr(\"glInsertEventMarkerEXT\"))\n\tgpInstrumentsBufferSGIX = uintptr(getProcAddr(\"glInstrumentsBufferSGIX\"))\n\tgpInterleavedArrays = uintptr(getProcAddr(\"glInterleavedArrays\"))\n\tif gpInterleavedArrays == 0 {\n\t\treturn errors.New(\"glInterleavedArrays\")\n\t}\n\tgpInterpolatePathsNV = uintptr(getProcAddr(\"glInterpolatePathsNV\"))\n\tgpInvalidateBufferData = uintptr(getProcAddr(\"glInvalidateBufferData\"))\n\tgpInvalidateBufferSubData = uintptr(getProcAddr(\"glInvalidateBufferSubData\"))\n\tgpInvalidateFramebuffer = uintptr(getProcAddr(\"glInvalidateFramebuffer\"))\n\tgpInvalidateNamedFramebufferData = uintptr(getProcAddr(\"glInvalidateNamedFramebufferData\"))\n\tgpInvalidateNamedFramebufferSubData = uintptr(getProcAddr(\"glInvalidateNamedFramebufferSubData\"))\n\tgpInvalidateSubFramebuffer = uintptr(getProcAddr(\"glInvalidateSubFramebuffer\"))\n\tgpInvalidateTexImage = uintptr(getProcAddr(\"glInvalidateTexImage\"))\n\tgpInvalidateTexSubImage = uintptr(getProcAddr(\"glInvalidateTexSubImage\"))\n\tgpIsAsyncMarkerSGIX = uintptr(getProcAddr(\"glIsAsyncMarkerSGIX\"))\n\tgpIsBuffer = uintptr(getProcAddr(\"glIsBuffer\"))\n\tif gpIsBuffer == 0 {\n\t\treturn errors.New(\"glIsBuffer\")\n\t}\n\tgpIsBufferARB = uintptr(getProcAddr(\"glIsBufferARB\"))\n\tgpIsBufferResidentNV = uintptr(getProcAddr(\"glIsBufferResidentNV\"))\n\tgpIsCommandListNV = uintptr(getProcAddr(\"glIsCommandListNV\"))\n\tgpIsEnabled = uintptr(getProcAddr(\"glIsEnabled\"))\n\tif gpIsEnabled == 0 {\n\t\treturn errors.New(\"glIsEnabled\")\n\t}\n\tgpIsEnabledIndexedEXT = uintptr(getProcAddr(\"glIsEnabledIndexedEXT\"))\n\tgpIsFenceAPPLE = uintptr(getProcAddr(\"glIsFenceAPPLE\"))\n\tgpIsFenceNV = uintptr(getProcAddr(\"glIsFenceNV\"))\n\tgpIsFramebuffer = uintptr(getProcAddr(\"glIsFramebuffer\"))\n\tgpIsFramebufferEXT = uintptr(getProcAddr(\"glIsFramebufferEXT\"))\n\tgpIsImageHandleResidentARB = uintptr(getProcAddr(\"glIsImageHandleResidentARB\"))\n\tgpIsImageHandleResidentNV = uintptr(getProcAddr(\"glIsImageHandleResidentNV\"))\n\tgpIsList = uintptr(getProcAddr(\"glIsList\"))\n\tif gpIsList == 0 {\n\t\treturn errors.New(\"glIsList\")\n\t}\n\tgpIsMemoryObjectEXT = uintptr(getProcAddr(\"glIsMemoryObjectEXT\"))\n\tgpIsNameAMD = uintptr(getProcAddr(\"glIsNameAMD\"))\n\tgpIsNamedBufferResidentNV = uintptr(getProcAddr(\"glIsNamedBufferResidentNV\"))\n\tgpIsNamedStringARB = uintptr(getProcAddr(\"glIsNamedStringARB\"))\n\tgpIsObjectBufferATI = uintptr(getProcAddr(\"glIsObjectBufferATI\"))\n\tgpIsOcclusionQueryNV = uintptr(getProcAddr(\"glIsOcclusionQueryNV\"))\n\tgpIsPathNV = uintptr(getProcAddr(\"glIsPathNV\"))\n\tgpIsPointInFillPathNV = uintptr(getProcAddr(\"glIsPointInFillPathNV\"))\n\tgpIsPointInStrokePathNV = uintptr(getProcAddr(\"glIsPointInStrokePathNV\"))\n\tgpIsProgram = uintptr(getProcAddr(\"glIsProgram\"))\n\tif gpIsProgram == 0 {\n\t\treturn errors.New(\"glIsProgram\")\n\t}\n\tgpIsProgramARB = uintptr(getProcAddr(\"glIsProgramARB\"))\n\tgpIsProgramNV = uintptr(getProcAddr(\"glIsProgramNV\"))\n\tgpIsProgramPipeline = uintptr(getProcAddr(\"glIsProgramPipeline\"))\n\tgpIsProgramPipelineEXT = uintptr(getProcAddr(\"glIsProgramPipelineEXT\"))\n\tgpIsQuery = uintptr(getProcAddr(\"glIsQuery\"))\n\tif gpIsQuery == 0 {\n\t\treturn errors.New(\"glIsQuery\")\n\t}\n\tgpIsQueryARB = uintptr(getProcAddr(\"glIsQueryARB\"))\n\tgpIsRenderbuffer = uintptr(getProcAddr(\"glIsRenderbuffer\"))\n\tgpIsRenderbufferEXT = uintptr(getProcAddr(\"glIsRenderbufferEXT\"))\n\tgpIsSampler = uintptr(getProcAddr(\"glIsSampler\"))\n\tgpIsSemaphoreEXT = uintptr(getProcAddr(\"glIsSemaphoreEXT\"))\n\tgpIsShader = uintptr(getProcAddr(\"glIsShader\"))\n\tif gpIsShader == 0 {\n\t\treturn errors.New(\"glIsShader\")\n\t}\n\tgpIsStateNV = uintptr(getProcAddr(\"glIsStateNV\"))\n\tgpIsSync = uintptr(getProcAddr(\"glIsSync\"))\n\tgpIsTexture = uintptr(getProcAddr(\"glIsTexture\"))\n\tif gpIsTexture == 0 {\n\t\treturn errors.New(\"glIsTexture\")\n\t}\n\tgpIsTextureEXT = uintptr(getProcAddr(\"glIsTextureEXT\"))\n\tgpIsTextureHandleResidentARB = uintptr(getProcAddr(\"glIsTextureHandleResidentARB\"))\n\tgpIsTextureHandleResidentNV = uintptr(getProcAddr(\"glIsTextureHandleResidentNV\"))\n\tgpIsTransformFeedback = uintptr(getProcAddr(\"glIsTransformFeedback\"))\n\tgpIsTransformFeedbackNV = uintptr(getProcAddr(\"glIsTransformFeedbackNV\"))\n\tgpIsVariantEnabledEXT = uintptr(getProcAddr(\"glIsVariantEnabledEXT\"))\n\tgpIsVertexArray = uintptr(getProcAddr(\"glIsVertexArray\"))\n\tgpIsVertexArrayAPPLE = uintptr(getProcAddr(\"glIsVertexArrayAPPLE\"))\n\tgpIsVertexAttribEnabledAPPLE = uintptr(getProcAddr(\"glIsVertexAttribEnabledAPPLE\"))\n\tgpLGPUCopyImageSubDataNVX = uintptr(getProcAddr(\"glLGPUCopyImageSubDataNVX\"))\n\tgpLGPUInterlockNVX = uintptr(getProcAddr(\"glLGPUInterlockNVX\"))\n\tgpLGPUNamedBufferSubDataNVX = uintptr(getProcAddr(\"glLGPUNamedBufferSubDataNVX\"))\n\tgpLabelObjectEXT = uintptr(getProcAddr(\"glLabelObjectEXT\"))\n\tgpLightEnviSGIX = uintptr(getProcAddr(\"glLightEnviSGIX\"))\n\tgpLightModelf = uintptr(getProcAddr(\"glLightModelf\"))\n\tif gpLightModelf == 0 {\n\t\treturn errors.New(\"glLightModelf\")\n\t}\n\tgpLightModelfv = uintptr(getProcAddr(\"glLightModelfv\"))\n\tif gpLightModelfv == 0 {\n\t\treturn errors.New(\"glLightModelfv\")\n\t}\n\tgpLightModeli = uintptr(getProcAddr(\"glLightModeli\"))\n\tif gpLightModeli == 0 {\n\t\treturn errors.New(\"glLightModeli\")\n\t}\n\tgpLightModeliv = uintptr(getProcAddr(\"glLightModeliv\"))\n\tif gpLightModeliv == 0 {\n\t\treturn errors.New(\"glLightModeliv\")\n\t}\n\tgpLightModelxOES = uintptr(getProcAddr(\"glLightModelxOES\"))\n\tgpLightModelxvOES = uintptr(getProcAddr(\"glLightModelxvOES\"))\n\tgpLightf = uintptr(getProcAddr(\"glLightf\"))\n\tif gpLightf == 0 {\n\t\treturn errors.New(\"glLightf\")\n\t}\n\tgpLightfv = uintptr(getProcAddr(\"glLightfv\"))\n\tif gpLightfv == 0 {\n\t\treturn errors.New(\"glLightfv\")\n\t}\n\tgpLighti = uintptr(getProcAddr(\"glLighti\"))\n\tif gpLighti == 0 {\n\t\treturn errors.New(\"glLighti\")\n\t}\n\tgpLightiv = uintptr(getProcAddr(\"glLightiv\"))\n\tif gpLightiv == 0 {\n\t\treturn errors.New(\"glLightiv\")\n\t}\n\tgpLightxOES = uintptr(getProcAddr(\"glLightxOES\"))\n\tgpLightxvOES = uintptr(getProcAddr(\"glLightxvOES\"))\n\tgpLineStipple = uintptr(getProcAddr(\"glLineStipple\"))\n\tif gpLineStipple == 0 {\n\t\treturn errors.New(\"glLineStipple\")\n\t}\n\tgpLineWidth = uintptr(getProcAddr(\"glLineWidth\"))\n\tif gpLineWidth == 0 {\n\t\treturn errors.New(\"glLineWidth\")\n\t}\n\tgpLineWidthxOES = uintptr(getProcAddr(\"glLineWidthxOES\"))\n\tgpLinkProgram = uintptr(getProcAddr(\"glLinkProgram\"))\n\tif gpLinkProgram == 0 {\n\t\treturn errors.New(\"glLinkProgram\")\n\t}\n\tgpLinkProgramARB = uintptr(getProcAddr(\"glLinkProgramARB\"))\n\tgpListBase = uintptr(getProcAddr(\"glListBase\"))\n\tif gpListBase == 0 {\n\t\treturn errors.New(\"glListBase\")\n\t}\n\tgpListDrawCommandsStatesClientNV = uintptr(getProcAddr(\"glListDrawCommandsStatesClientNV\"))\n\tgpListParameterfSGIX = uintptr(getProcAddr(\"glListParameterfSGIX\"))\n\tgpListParameterfvSGIX = uintptr(getProcAddr(\"glListParameterfvSGIX\"))\n\tgpListParameteriSGIX = uintptr(getProcAddr(\"glListParameteriSGIX\"))\n\tgpListParameterivSGIX = uintptr(getProcAddr(\"glListParameterivSGIX\"))\n\tgpLoadIdentity = uintptr(getProcAddr(\"glLoadIdentity\"))\n\tif gpLoadIdentity == 0 {\n\t\treturn errors.New(\"glLoadIdentity\")\n\t}\n\tgpLoadIdentityDeformationMapSGIX = uintptr(getProcAddr(\"glLoadIdentityDeformationMapSGIX\"))\n\tgpLoadMatrixd = uintptr(getProcAddr(\"glLoadMatrixd\"))\n\tif gpLoadMatrixd == 0 {\n\t\treturn errors.New(\"glLoadMatrixd\")\n\t}\n\tgpLoadMatrixf = uintptr(getProcAddr(\"glLoadMatrixf\"))\n\tif gpLoadMatrixf == 0 {\n\t\treturn errors.New(\"glLoadMatrixf\")\n\t}\n\tgpLoadMatrixxOES = uintptr(getProcAddr(\"glLoadMatrixxOES\"))\n\tgpLoadName = uintptr(getProcAddr(\"glLoadName\"))\n\tif gpLoadName == 0 {\n\t\treturn errors.New(\"glLoadName\")\n\t}\n\tgpLoadProgramNV = uintptr(getProcAddr(\"glLoadProgramNV\"))\n\tgpLoadTransposeMatrixd = uintptr(getProcAddr(\"glLoadTransposeMatrixd\"))\n\tif gpLoadTransposeMatrixd == 0 {\n\t\treturn errors.New(\"glLoadTransposeMatrixd\")\n\t}\n\tgpLoadTransposeMatrixdARB = uintptr(getProcAddr(\"glLoadTransposeMatrixdARB\"))\n\tgpLoadTransposeMatrixf = uintptr(getProcAddr(\"glLoadTransposeMatrixf\"))\n\tif gpLoadTransposeMatrixf == 0 {\n\t\treturn errors.New(\"glLoadTransposeMatrixf\")\n\t}\n\tgpLoadTransposeMatrixfARB = uintptr(getProcAddr(\"glLoadTransposeMatrixfARB\"))\n\tgpLoadTransposeMatrixxOES = uintptr(getProcAddr(\"glLoadTransposeMatrixxOES\"))\n\tgpLockArraysEXT = uintptr(getProcAddr(\"glLockArraysEXT\"))\n\tgpLogicOp = uintptr(getProcAddr(\"glLogicOp\"))\n\tif gpLogicOp == 0 {\n\t\treturn errors.New(\"glLogicOp\")\n\t}\n\tgpMakeBufferNonResidentNV = uintptr(getProcAddr(\"glMakeBufferNonResidentNV\"))\n\tgpMakeBufferResidentNV = uintptr(getProcAddr(\"glMakeBufferResidentNV\"))\n\tgpMakeImageHandleNonResidentARB = uintptr(getProcAddr(\"glMakeImageHandleNonResidentARB\"))\n\tgpMakeImageHandleNonResidentNV = uintptr(getProcAddr(\"glMakeImageHandleNonResidentNV\"))\n\tgpMakeImageHandleResidentARB = uintptr(getProcAddr(\"glMakeImageHandleResidentARB\"))\n\tgpMakeImageHandleResidentNV = uintptr(getProcAddr(\"glMakeImageHandleResidentNV\"))\n\tgpMakeNamedBufferNonResidentNV = uintptr(getProcAddr(\"glMakeNamedBufferNonResidentNV\"))\n\tgpMakeNamedBufferResidentNV = uintptr(getProcAddr(\"glMakeNamedBufferResidentNV\"))\n\tgpMakeTextureHandleNonResidentARB = uintptr(getProcAddr(\"glMakeTextureHandleNonResidentARB\"))\n\tgpMakeTextureHandleNonResidentNV = uintptr(getProcAddr(\"glMakeTextureHandleNonResidentNV\"))\n\tgpMakeTextureHandleResidentARB = uintptr(getProcAddr(\"glMakeTextureHandleResidentARB\"))\n\tgpMakeTextureHandleResidentNV = uintptr(getProcAddr(\"glMakeTextureHandleResidentNV\"))\n\tgpMap1d = uintptr(getProcAddr(\"glMap1d\"))\n\tif gpMap1d == 0 {\n\t\treturn errors.New(\"glMap1d\")\n\t}\n\tgpMap1f = uintptr(getProcAddr(\"glMap1f\"))\n\tif gpMap1f == 0 {\n\t\treturn errors.New(\"glMap1f\")\n\t}\n\tgpMap1xOES = uintptr(getProcAddr(\"glMap1xOES\"))\n\tgpMap2d = uintptr(getProcAddr(\"glMap2d\"))\n\tif gpMap2d == 0 {\n\t\treturn errors.New(\"glMap2d\")\n\t}\n\tgpMap2f = uintptr(getProcAddr(\"glMap2f\"))\n\tif gpMap2f == 0 {\n\t\treturn errors.New(\"glMap2f\")\n\t}\n\tgpMap2xOES = uintptr(getProcAddr(\"glMap2xOES\"))\n\tgpMapBuffer = uintptr(getProcAddr(\"glMapBuffer\"))\n\tif gpMapBuffer == 0 {\n\t\treturn errors.New(\"glMapBuffer\")\n\t}\n\tgpMapBufferARB = uintptr(getProcAddr(\"glMapBufferARB\"))\n\tgpMapBufferRange = uintptr(getProcAddr(\"glMapBufferRange\"))\n\tgpMapControlPointsNV = uintptr(getProcAddr(\"glMapControlPointsNV\"))\n\tgpMapGrid1d = uintptr(getProcAddr(\"glMapGrid1d\"))\n\tif gpMapGrid1d == 0 {\n\t\treturn errors.New(\"glMapGrid1d\")\n\t}\n\tgpMapGrid1f = uintptr(getProcAddr(\"glMapGrid1f\"))\n\tif gpMapGrid1f == 0 {\n\t\treturn errors.New(\"glMapGrid1f\")\n\t}\n\tgpMapGrid1xOES = uintptr(getProcAddr(\"glMapGrid1xOES\"))\n\tgpMapGrid2d = uintptr(getProcAddr(\"glMapGrid2d\"))\n\tif gpMapGrid2d == 0 {\n\t\treturn errors.New(\"glMapGrid2d\")\n\t}\n\tgpMapGrid2f = uintptr(getProcAddr(\"glMapGrid2f\"))\n\tif gpMapGrid2f == 0 {\n\t\treturn errors.New(\"glMapGrid2f\")\n\t}\n\tgpMapGrid2xOES = uintptr(getProcAddr(\"glMapGrid2xOES\"))\n\tgpMapNamedBuffer = uintptr(getProcAddr(\"glMapNamedBuffer\"))\n\tgpMapNamedBufferEXT = uintptr(getProcAddr(\"glMapNamedBufferEXT\"))\n\tgpMapNamedBufferRange = uintptr(getProcAddr(\"glMapNamedBufferRange\"))\n\tgpMapNamedBufferRangeEXT = uintptr(getProcAddr(\"glMapNamedBufferRangeEXT\"))\n\tgpMapObjectBufferATI = uintptr(getProcAddr(\"glMapObjectBufferATI\"))\n\tgpMapParameterfvNV = uintptr(getProcAddr(\"glMapParameterfvNV\"))\n\tgpMapParameterivNV = uintptr(getProcAddr(\"glMapParameterivNV\"))\n\tgpMapTexture2DINTEL = uintptr(getProcAddr(\"glMapTexture2DINTEL\"))\n\tgpMapVertexAttrib1dAPPLE = uintptr(getProcAddr(\"glMapVertexAttrib1dAPPLE\"))\n\tgpMapVertexAttrib1fAPPLE = uintptr(getProcAddr(\"glMapVertexAttrib1fAPPLE\"))\n\tgpMapVertexAttrib2dAPPLE = uintptr(getProcAddr(\"glMapVertexAttrib2dAPPLE\"))\n\tgpMapVertexAttrib2fAPPLE = uintptr(getProcAddr(\"glMapVertexAttrib2fAPPLE\"))\n\tgpMaterialf = uintptr(getProcAddr(\"glMaterialf\"))\n\tif gpMaterialf == 0 {\n\t\treturn errors.New(\"glMaterialf\")\n\t}\n\tgpMaterialfv = uintptr(getProcAddr(\"glMaterialfv\"))\n\tif gpMaterialfv == 0 {\n\t\treturn errors.New(\"glMaterialfv\")\n\t}\n\tgpMateriali = uintptr(getProcAddr(\"glMateriali\"))\n\tif gpMateriali == 0 {\n\t\treturn errors.New(\"glMateriali\")\n\t}\n\tgpMaterialiv = uintptr(getProcAddr(\"glMaterialiv\"))\n\tif gpMaterialiv == 0 {\n\t\treturn errors.New(\"glMaterialiv\")\n\t}\n\tgpMaterialxOES = uintptr(getProcAddr(\"glMaterialxOES\"))\n\tgpMaterialxvOES = uintptr(getProcAddr(\"glMaterialxvOES\"))\n\tgpMatrixFrustumEXT = uintptr(getProcAddr(\"glMatrixFrustumEXT\"))\n\tgpMatrixIndexPointerARB = uintptr(getProcAddr(\"glMatrixIndexPointerARB\"))\n\tgpMatrixIndexubvARB = uintptr(getProcAddr(\"glMatrixIndexubvARB\"))\n\tgpMatrixIndexuivARB = uintptr(getProcAddr(\"glMatrixIndexuivARB\"))\n\tgpMatrixIndexusvARB = uintptr(getProcAddr(\"glMatrixIndexusvARB\"))\n\tgpMatrixLoad3x2fNV = uintptr(getProcAddr(\"glMatrixLoad3x2fNV\"))\n\tgpMatrixLoad3x3fNV = uintptr(getProcAddr(\"glMatrixLoad3x3fNV\"))\n\tgpMatrixLoadIdentityEXT = uintptr(getProcAddr(\"glMatrixLoadIdentityEXT\"))\n\tgpMatrixLoadTranspose3x3fNV = uintptr(getProcAddr(\"glMatrixLoadTranspose3x3fNV\"))\n\tgpMatrixLoadTransposedEXT = uintptr(getProcAddr(\"glMatrixLoadTransposedEXT\"))\n\tgpMatrixLoadTransposefEXT = uintptr(getProcAddr(\"glMatrixLoadTransposefEXT\"))\n\tgpMatrixLoaddEXT = uintptr(getProcAddr(\"glMatrixLoaddEXT\"))\n\tgpMatrixLoadfEXT = uintptr(getProcAddr(\"glMatrixLoadfEXT\"))\n\tgpMatrixMode = uintptr(getProcAddr(\"glMatrixMode\"))\n\tif gpMatrixMode == 0 {\n\t\treturn errors.New(\"glMatrixMode\")\n\t}\n\tgpMatrixMult3x2fNV = uintptr(getProcAddr(\"glMatrixMult3x2fNV\"))\n\tgpMatrixMult3x3fNV = uintptr(getProcAddr(\"glMatrixMult3x3fNV\"))\n\tgpMatrixMultTranspose3x3fNV = uintptr(getProcAddr(\"glMatrixMultTranspose3x3fNV\"))\n\tgpMatrixMultTransposedEXT = uintptr(getProcAddr(\"glMatrixMultTransposedEXT\"))\n\tgpMatrixMultTransposefEXT = uintptr(getProcAddr(\"glMatrixMultTransposefEXT\"))\n\tgpMatrixMultdEXT = uintptr(getProcAddr(\"glMatrixMultdEXT\"))\n\tgpMatrixMultfEXT = uintptr(getProcAddr(\"glMatrixMultfEXT\"))\n\tgpMatrixOrthoEXT = uintptr(getProcAddr(\"glMatrixOrthoEXT\"))\n\tgpMatrixPopEXT = uintptr(getProcAddr(\"glMatrixPopEXT\"))\n\tgpMatrixPushEXT = uintptr(getProcAddr(\"glMatrixPushEXT\"))\n\tgpMatrixRotatedEXT = uintptr(getProcAddr(\"glMatrixRotatedEXT\"))\n\tgpMatrixRotatefEXT = uintptr(getProcAddr(\"glMatrixRotatefEXT\"))\n\tgpMatrixScaledEXT = uintptr(getProcAddr(\"glMatrixScaledEXT\"))\n\tgpMatrixScalefEXT = uintptr(getProcAddr(\"glMatrixScalefEXT\"))\n\tgpMatrixTranslatedEXT = uintptr(getProcAddr(\"glMatrixTranslatedEXT\"))\n\tgpMatrixTranslatefEXT = uintptr(getProcAddr(\"glMatrixTranslatefEXT\"))\n\tgpMaxShaderCompilerThreadsARB = uintptr(getProcAddr(\"glMaxShaderCompilerThreadsARB\"))\n\tgpMaxShaderCompilerThreadsKHR = uintptr(getProcAddr(\"glMaxShaderCompilerThreadsKHR\"))\n\tgpMemoryBarrier = uintptr(getProcAddr(\"glMemoryBarrier\"))\n\tgpMemoryBarrierByRegion = uintptr(getProcAddr(\"glMemoryBarrierByRegion\"))\n\tgpMemoryBarrierEXT = uintptr(getProcAddr(\"glMemoryBarrierEXT\"))\n\tgpMemoryObjectParameterivEXT = uintptr(getProcAddr(\"glMemoryObjectParameterivEXT\"))\n\tgpMinSampleShadingARB = uintptr(getProcAddr(\"glMinSampleShadingARB\"))\n\tgpMinmaxEXT = uintptr(getProcAddr(\"glMinmaxEXT\"))\n\tgpMultMatrixd = uintptr(getProcAddr(\"glMultMatrixd\"))\n\tif gpMultMatrixd == 0 {\n\t\treturn errors.New(\"glMultMatrixd\")\n\t}\n\tgpMultMatrixf = uintptr(getProcAddr(\"glMultMatrixf\"))\n\tif gpMultMatrixf == 0 {\n\t\treturn errors.New(\"glMultMatrixf\")\n\t}\n\tgpMultMatrixxOES = uintptr(getProcAddr(\"glMultMatrixxOES\"))\n\tgpMultTransposeMatrixd = uintptr(getProcAddr(\"glMultTransposeMatrixd\"))\n\tif gpMultTransposeMatrixd == 0 {\n\t\treturn errors.New(\"glMultTransposeMatrixd\")\n\t}\n\tgpMultTransposeMatrixdARB = uintptr(getProcAddr(\"glMultTransposeMatrixdARB\"))\n\tgpMultTransposeMatrixf = uintptr(getProcAddr(\"glMultTransposeMatrixf\"))\n\tif gpMultTransposeMatrixf == 0 {\n\t\treturn errors.New(\"glMultTransposeMatrixf\")\n\t}\n\tgpMultTransposeMatrixfARB = uintptr(getProcAddr(\"glMultTransposeMatrixfARB\"))\n\tgpMultTransposeMatrixxOES = uintptr(getProcAddr(\"glMultTransposeMatrixxOES\"))\n\tgpMultiDrawArrays = uintptr(getProcAddr(\"glMultiDrawArrays\"))\n\tif gpMultiDrawArrays == 0 {\n\t\treturn errors.New(\"glMultiDrawArrays\")\n\t}\n\tgpMultiDrawArraysEXT = uintptr(getProcAddr(\"glMultiDrawArraysEXT\"))\n\tgpMultiDrawArraysIndirect = uintptr(getProcAddr(\"glMultiDrawArraysIndirect\"))\n\tgpMultiDrawArraysIndirectAMD = uintptr(getProcAddr(\"glMultiDrawArraysIndirectAMD\"))\n\tgpMultiDrawArraysIndirectBindlessCountNV = uintptr(getProcAddr(\"glMultiDrawArraysIndirectBindlessCountNV\"))\n\tgpMultiDrawArraysIndirectBindlessNV = uintptr(getProcAddr(\"glMultiDrawArraysIndirectBindlessNV\"))\n\tgpMultiDrawArraysIndirectCountARB = uintptr(getProcAddr(\"glMultiDrawArraysIndirectCountARB\"))\n\tgpMultiDrawElementArrayAPPLE = uintptr(getProcAddr(\"glMultiDrawElementArrayAPPLE\"))\n\tgpMultiDrawElements = uintptr(getProcAddr(\"glMultiDrawElements\"))\n\tif gpMultiDrawElements == 0 {\n\t\treturn errors.New(\"glMultiDrawElements\")\n\t}\n\tgpMultiDrawElementsBaseVertex = uintptr(getProcAddr(\"glMultiDrawElementsBaseVertex\"))\n\tgpMultiDrawElementsEXT = uintptr(getProcAddr(\"glMultiDrawElementsEXT\"))\n\tgpMultiDrawElementsIndirect = uintptr(getProcAddr(\"glMultiDrawElementsIndirect\"))\n\tgpMultiDrawElementsIndirectAMD = uintptr(getProcAddr(\"glMultiDrawElementsIndirectAMD\"))\n\tgpMultiDrawElementsIndirectBindlessCountNV = uintptr(getProcAddr(\"glMultiDrawElementsIndirectBindlessCountNV\"))\n\tgpMultiDrawElementsIndirectBindlessNV = uintptr(getProcAddr(\"glMultiDrawElementsIndirectBindlessNV\"))\n\tgpMultiDrawElementsIndirectCountARB = uintptr(getProcAddr(\"glMultiDrawElementsIndirectCountARB\"))\n\tgpMultiDrawRangeElementArrayAPPLE = uintptr(getProcAddr(\"glMultiDrawRangeElementArrayAPPLE\"))\n\tgpMultiModeDrawArraysIBM = uintptr(getProcAddr(\"glMultiModeDrawArraysIBM\"))\n\tgpMultiModeDrawElementsIBM = uintptr(getProcAddr(\"glMultiModeDrawElementsIBM\"))\n\tgpMultiTexBufferEXT = uintptr(getProcAddr(\"glMultiTexBufferEXT\"))\n\tgpMultiTexCoord1bOES = uintptr(getProcAddr(\"glMultiTexCoord1bOES\"))\n\tgpMultiTexCoord1bvOES = uintptr(getProcAddr(\"glMultiTexCoord1bvOES\"))\n\tgpMultiTexCoord1d = uintptr(getProcAddr(\"glMultiTexCoord1d\"))\n\tif gpMultiTexCoord1d == 0 {\n\t\treturn errors.New(\"glMultiTexCoord1d\")\n\t}\n\tgpMultiTexCoord1dARB = uintptr(getProcAddr(\"glMultiTexCoord1dARB\"))\n\tgpMultiTexCoord1dv = uintptr(getProcAddr(\"glMultiTexCoord1dv\"))\n\tif gpMultiTexCoord1dv == 0 {\n\t\treturn errors.New(\"glMultiTexCoord1dv\")\n\t}\n\tgpMultiTexCoord1dvARB = uintptr(getProcAddr(\"glMultiTexCoord1dvARB\"))\n\tgpMultiTexCoord1f = uintptr(getProcAddr(\"glMultiTexCoord1f\"))\n\tif gpMultiTexCoord1f == 0 {\n\t\treturn errors.New(\"glMultiTexCoord1f\")\n\t}\n\tgpMultiTexCoord1fARB = uintptr(getProcAddr(\"glMultiTexCoord1fARB\"))\n\tgpMultiTexCoord1fv = uintptr(getProcAddr(\"glMultiTexCoord1fv\"))\n\tif gpMultiTexCoord1fv == 0 {\n\t\treturn errors.New(\"glMultiTexCoord1fv\")\n\t}\n\tgpMultiTexCoord1fvARB = uintptr(getProcAddr(\"glMultiTexCoord1fvARB\"))\n\tgpMultiTexCoord1hNV = uintptr(getProcAddr(\"glMultiTexCoord1hNV\"))\n\tgpMultiTexCoord1hvNV = uintptr(getProcAddr(\"glMultiTexCoord1hvNV\"))\n\tgpMultiTexCoord1i = uintptr(getProcAddr(\"glMultiTexCoord1i\"))\n\tif gpMultiTexCoord1i == 0 {\n\t\treturn errors.New(\"glMultiTexCoord1i\")\n\t}\n\tgpMultiTexCoord1iARB = uintptr(getProcAddr(\"glMultiTexCoord1iARB\"))\n\tgpMultiTexCoord1iv = uintptr(getProcAddr(\"glMultiTexCoord1iv\"))\n\tif gpMultiTexCoord1iv == 0 {\n\t\treturn errors.New(\"glMultiTexCoord1iv\")\n\t}\n\tgpMultiTexCoord1ivARB = uintptr(getProcAddr(\"glMultiTexCoord1ivARB\"))\n\tgpMultiTexCoord1s = uintptr(getProcAddr(\"glMultiTexCoord1s\"))\n\tif gpMultiTexCoord1s == 0 {\n\t\treturn errors.New(\"glMultiTexCoord1s\")\n\t}\n\tgpMultiTexCoord1sARB = uintptr(getProcAddr(\"glMultiTexCoord1sARB\"))\n\tgpMultiTexCoord1sv = uintptr(getProcAddr(\"glMultiTexCoord1sv\"))\n\tif gpMultiTexCoord1sv == 0 {\n\t\treturn errors.New(\"glMultiTexCoord1sv\")\n\t}\n\tgpMultiTexCoord1svARB = uintptr(getProcAddr(\"glMultiTexCoord1svARB\"))\n\tgpMultiTexCoord1xOES = uintptr(getProcAddr(\"glMultiTexCoord1xOES\"))\n\tgpMultiTexCoord1xvOES = uintptr(getProcAddr(\"glMultiTexCoord1xvOES\"))\n\tgpMultiTexCoord2bOES = uintptr(getProcAddr(\"glMultiTexCoord2bOES\"))\n\tgpMultiTexCoord2bvOES = uintptr(getProcAddr(\"glMultiTexCoord2bvOES\"))\n\tgpMultiTexCoord2d = uintptr(getProcAddr(\"glMultiTexCoord2d\"))\n\tif gpMultiTexCoord2d == 0 {\n\t\treturn errors.New(\"glMultiTexCoord2d\")\n\t}\n\tgpMultiTexCoord2dARB = uintptr(getProcAddr(\"glMultiTexCoord2dARB\"))\n\tgpMultiTexCoord2dv = uintptr(getProcAddr(\"glMultiTexCoord2dv\"))\n\tif gpMultiTexCoord2dv == 0 {\n\t\treturn errors.New(\"glMultiTexCoord2dv\")\n\t}\n\tgpMultiTexCoord2dvARB = uintptr(getProcAddr(\"glMultiTexCoord2dvARB\"))\n\tgpMultiTexCoord2f = uintptr(getProcAddr(\"glMultiTexCoord2f\"))\n\tif gpMultiTexCoord2f == 0 {\n\t\treturn errors.New(\"glMultiTexCoord2f\")\n\t}\n\tgpMultiTexCoord2fARB = uintptr(getProcAddr(\"glMultiTexCoord2fARB\"))\n\tgpMultiTexCoord2fv = uintptr(getProcAddr(\"glMultiTexCoord2fv\"))\n\tif gpMultiTexCoord2fv == 0 {\n\t\treturn errors.New(\"glMultiTexCoord2fv\")\n\t}\n\tgpMultiTexCoord2fvARB = uintptr(getProcAddr(\"glMultiTexCoord2fvARB\"))\n\tgpMultiTexCoord2hNV = uintptr(getProcAddr(\"glMultiTexCoord2hNV\"))\n\tgpMultiTexCoord2hvNV = uintptr(getProcAddr(\"glMultiTexCoord2hvNV\"))\n\tgpMultiTexCoord2i = uintptr(getProcAddr(\"glMultiTexCoord2i\"))\n\tif gpMultiTexCoord2i == 0 {\n\t\treturn errors.New(\"glMultiTexCoord2i\")\n\t}\n\tgpMultiTexCoord2iARB = uintptr(getProcAddr(\"glMultiTexCoord2iARB\"))\n\tgpMultiTexCoord2iv = uintptr(getProcAddr(\"glMultiTexCoord2iv\"))\n\tif gpMultiTexCoord2iv == 0 {\n\t\treturn errors.New(\"glMultiTexCoord2iv\")\n\t}\n\tgpMultiTexCoord2ivARB = uintptr(getProcAddr(\"glMultiTexCoord2ivARB\"))\n\tgpMultiTexCoord2s = uintptr(getProcAddr(\"glMultiTexCoord2s\"))\n\tif gpMultiTexCoord2s == 0 {\n\t\treturn errors.New(\"glMultiTexCoord2s\")\n\t}\n\tgpMultiTexCoord2sARB = uintptr(getProcAddr(\"glMultiTexCoord2sARB\"))\n\tgpMultiTexCoord2sv = uintptr(getProcAddr(\"glMultiTexCoord2sv\"))\n\tif gpMultiTexCoord2sv == 0 {\n\t\treturn errors.New(\"glMultiTexCoord2sv\")\n\t}\n\tgpMultiTexCoord2svARB = uintptr(getProcAddr(\"glMultiTexCoord2svARB\"))\n\tgpMultiTexCoord2xOES = uintptr(getProcAddr(\"glMultiTexCoord2xOES\"))\n\tgpMultiTexCoord2xvOES = uintptr(getProcAddr(\"glMultiTexCoord2xvOES\"))\n\tgpMultiTexCoord3bOES = uintptr(getProcAddr(\"glMultiTexCoord3bOES\"))\n\tgpMultiTexCoord3bvOES = uintptr(getProcAddr(\"glMultiTexCoord3bvOES\"))\n\tgpMultiTexCoord3d = uintptr(getProcAddr(\"glMultiTexCoord3d\"))\n\tif gpMultiTexCoord3d == 0 {\n\t\treturn errors.New(\"glMultiTexCoord3d\")\n\t}\n\tgpMultiTexCoord3dARB = uintptr(getProcAddr(\"glMultiTexCoord3dARB\"))\n\tgpMultiTexCoord3dv = uintptr(getProcAddr(\"glMultiTexCoord3dv\"))\n\tif gpMultiTexCoord3dv == 0 {\n\t\treturn errors.New(\"glMultiTexCoord3dv\")\n\t}\n\tgpMultiTexCoord3dvARB = uintptr(getProcAddr(\"glMultiTexCoord3dvARB\"))\n\tgpMultiTexCoord3f = uintptr(getProcAddr(\"glMultiTexCoord3f\"))\n\tif gpMultiTexCoord3f == 0 {\n\t\treturn errors.New(\"glMultiTexCoord3f\")\n\t}\n\tgpMultiTexCoord3fARB = uintptr(getProcAddr(\"glMultiTexCoord3fARB\"))\n\tgpMultiTexCoord3fv = uintptr(getProcAddr(\"glMultiTexCoord3fv\"))\n\tif gpMultiTexCoord3fv == 0 {\n\t\treturn errors.New(\"glMultiTexCoord3fv\")\n\t}\n\tgpMultiTexCoord3fvARB = uintptr(getProcAddr(\"glMultiTexCoord3fvARB\"))\n\tgpMultiTexCoord3hNV = uintptr(getProcAddr(\"glMultiTexCoord3hNV\"))\n\tgpMultiTexCoord3hvNV = uintptr(getProcAddr(\"glMultiTexCoord3hvNV\"))\n\tgpMultiTexCoord3i = uintptr(getProcAddr(\"glMultiTexCoord3i\"))\n\tif gpMultiTexCoord3i == 0 {\n\t\treturn errors.New(\"glMultiTexCoord3i\")\n\t}\n\tgpMultiTexCoord3iARB = uintptr(getProcAddr(\"glMultiTexCoord3iARB\"))\n\tgpMultiTexCoord3iv = uintptr(getProcAddr(\"glMultiTexCoord3iv\"))\n\tif gpMultiTexCoord3iv == 0 {\n\t\treturn errors.New(\"glMultiTexCoord3iv\")\n\t}\n\tgpMultiTexCoord3ivARB = uintptr(getProcAddr(\"glMultiTexCoord3ivARB\"))\n\tgpMultiTexCoord3s = uintptr(getProcAddr(\"glMultiTexCoord3s\"))\n\tif gpMultiTexCoord3s == 0 {\n\t\treturn errors.New(\"glMultiTexCoord3s\")\n\t}\n\tgpMultiTexCoord3sARB = uintptr(getProcAddr(\"glMultiTexCoord3sARB\"))\n\tgpMultiTexCoord3sv = uintptr(getProcAddr(\"glMultiTexCoord3sv\"))\n\tif gpMultiTexCoord3sv == 0 {\n\t\treturn errors.New(\"glMultiTexCoord3sv\")\n\t}\n\tgpMultiTexCoord3svARB = uintptr(getProcAddr(\"glMultiTexCoord3svARB\"))\n\tgpMultiTexCoord3xOES = uintptr(getProcAddr(\"glMultiTexCoord3xOES\"))\n\tgpMultiTexCoord3xvOES = uintptr(getProcAddr(\"glMultiTexCoord3xvOES\"))\n\tgpMultiTexCoord4bOES = uintptr(getProcAddr(\"glMultiTexCoord4bOES\"))\n\tgpMultiTexCoord4bvOES = uintptr(getProcAddr(\"glMultiTexCoord4bvOES\"))\n\tgpMultiTexCoord4d = uintptr(getProcAddr(\"glMultiTexCoord4d\"))\n\tif gpMultiTexCoord4d == 0 {\n\t\treturn errors.New(\"glMultiTexCoord4d\")\n\t}\n\tgpMultiTexCoord4dARB = uintptr(getProcAddr(\"glMultiTexCoord4dARB\"))\n\tgpMultiTexCoord4dv = uintptr(getProcAddr(\"glMultiTexCoord4dv\"))\n\tif gpMultiTexCoord4dv == 0 {\n\t\treturn errors.New(\"glMultiTexCoord4dv\")\n\t}\n\tgpMultiTexCoord4dvARB = uintptr(getProcAddr(\"glMultiTexCoord4dvARB\"))\n\tgpMultiTexCoord4f = uintptr(getProcAddr(\"glMultiTexCoord4f\"))\n\tif gpMultiTexCoord4f == 0 {\n\t\treturn errors.New(\"glMultiTexCoord4f\")\n\t}\n\tgpMultiTexCoord4fARB = uintptr(getProcAddr(\"glMultiTexCoord4fARB\"))\n\tgpMultiTexCoord4fv = uintptr(getProcAddr(\"glMultiTexCoord4fv\"))\n\tif gpMultiTexCoord4fv == 0 {\n\t\treturn errors.New(\"glMultiTexCoord4fv\")\n\t}\n\tgpMultiTexCoord4fvARB = uintptr(getProcAddr(\"glMultiTexCoord4fvARB\"))\n\tgpMultiTexCoord4hNV = uintptr(getProcAddr(\"glMultiTexCoord4hNV\"))\n\tgpMultiTexCoord4hvNV = uintptr(getProcAddr(\"glMultiTexCoord4hvNV\"))\n\tgpMultiTexCoord4i = uintptr(getProcAddr(\"glMultiTexCoord4i\"))\n\tif gpMultiTexCoord4i == 0 {\n\t\treturn errors.New(\"glMultiTexCoord4i\")\n\t}\n\tgpMultiTexCoord4iARB = uintptr(getProcAddr(\"glMultiTexCoord4iARB\"))\n\tgpMultiTexCoord4iv = uintptr(getProcAddr(\"glMultiTexCoord4iv\"))\n\tif gpMultiTexCoord4iv == 0 {\n\t\treturn errors.New(\"glMultiTexCoord4iv\")\n\t}\n\tgpMultiTexCoord4ivARB = uintptr(getProcAddr(\"glMultiTexCoord4ivARB\"))\n\tgpMultiTexCoord4s = uintptr(getProcAddr(\"glMultiTexCoord4s\"))\n\tif gpMultiTexCoord4s == 0 {\n\t\treturn errors.New(\"glMultiTexCoord4s\")\n\t}\n\tgpMultiTexCoord4sARB = uintptr(getProcAddr(\"glMultiTexCoord4sARB\"))\n\tgpMultiTexCoord4sv = uintptr(getProcAddr(\"glMultiTexCoord4sv\"))\n\tif gpMultiTexCoord4sv == 0 {\n\t\treturn errors.New(\"glMultiTexCoord4sv\")\n\t}\n\tgpMultiTexCoord4svARB = uintptr(getProcAddr(\"glMultiTexCoord4svARB\"))\n\tgpMultiTexCoord4xOES = uintptr(getProcAddr(\"glMultiTexCoord4xOES\"))\n\tgpMultiTexCoord4xvOES = uintptr(getProcAddr(\"glMultiTexCoord4xvOES\"))\n\tgpMultiTexCoordPointerEXT = uintptr(getProcAddr(\"glMultiTexCoordPointerEXT\"))\n\tgpMultiTexEnvfEXT = uintptr(getProcAddr(\"glMultiTexEnvfEXT\"))\n\tgpMultiTexEnvfvEXT = uintptr(getProcAddr(\"glMultiTexEnvfvEXT\"))\n\tgpMultiTexEnviEXT = uintptr(getProcAddr(\"glMultiTexEnviEXT\"))\n\tgpMultiTexEnvivEXT = uintptr(getProcAddr(\"glMultiTexEnvivEXT\"))\n\tgpMultiTexGendEXT = uintptr(getProcAddr(\"glMultiTexGendEXT\"))\n\tgpMultiTexGendvEXT = uintptr(getProcAddr(\"glMultiTexGendvEXT\"))\n\tgpMultiTexGenfEXT = uintptr(getProcAddr(\"glMultiTexGenfEXT\"))\n\tgpMultiTexGenfvEXT = uintptr(getProcAddr(\"glMultiTexGenfvEXT\"))\n\tgpMultiTexGeniEXT = uintptr(getProcAddr(\"glMultiTexGeniEXT\"))\n\tgpMultiTexGenivEXT = uintptr(getProcAddr(\"glMultiTexGenivEXT\"))\n\tgpMultiTexImage1DEXT = uintptr(getProcAddr(\"glMultiTexImage1DEXT\"))\n\tgpMultiTexImage2DEXT = uintptr(getProcAddr(\"glMultiTexImage2DEXT\"))\n\tgpMultiTexImage3DEXT = uintptr(getProcAddr(\"glMultiTexImage3DEXT\"))\n\tgpMultiTexParameterIivEXT = uintptr(getProcAddr(\"glMultiTexParameterIivEXT\"))\n\tgpMultiTexParameterIuivEXT = uintptr(getProcAddr(\"glMultiTexParameterIuivEXT\"))\n\tgpMultiTexParameterfEXT = uintptr(getProcAddr(\"glMultiTexParameterfEXT\"))\n\tgpMultiTexParameterfvEXT = uintptr(getProcAddr(\"glMultiTexParameterfvEXT\"))\n\tgpMultiTexParameteriEXT = uintptr(getProcAddr(\"glMultiTexParameteriEXT\"))\n\tgpMultiTexParameterivEXT = uintptr(getProcAddr(\"glMultiTexParameterivEXT\"))\n\tgpMultiTexRenderbufferEXT = uintptr(getProcAddr(\"glMultiTexRenderbufferEXT\"))\n\tgpMultiTexSubImage1DEXT = uintptr(getProcAddr(\"glMultiTexSubImage1DEXT\"))\n\tgpMultiTexSubImage2DEXT = uintptr(getProcAddr(\"glMultiTexSubImage2DEXT\"))\n\tgpMultiTexSubImage3DEXT = uintptr(getProcAddr(\"glMultiTexSubImage3DEXT\"))\n\tgpMulticastBarrierNV = uintptr(getProcAddr(\"glMulticastBarrierNV\"))\n\tgpMulticastBlitFramebufferNV = uintptr(getProcAddr(\"glMulticastBlitFramebufferNV\"))\n\tgpMulticastBufferSubDataNV = uintptr(getProcAddr(\"glMulticastBufferSubDataNV\"))\n\tgpMulticastCopyBufferSubDataNV = uintptr(getProcAddr(\"glMulticastCopyBufferSubDataNV\"))\n\tgpMulticastCopyImageSubDataNV = uintptr(getProcAddr(\"glMulticastCopyImageSubDataNV\"))\n\tgpMulticastFramebufferSampleLocationsfvNV = uintptr(getProcAddr(\"glMulticastFramebufferSampleLocationsfvNV\"))\n\tgpMulticastGetQueryObjecti64vNV = uintptr(getProcAddr(\"glMulticastGetQueryObjecti64vNV\"))\n\tgpMulticastGetQueryObjectivNV = uintptr(getProcAddr(\"glMulticastGetQueryObjectivNV\"))\n\tgpMulticastGetQueryObjectui64vNV = uintptr(getProcAddr(\"glMulticastGetQueryObjectui64vNV\"))\n\tgpMulticastGetQueryObjectuivNV = uintptr(getProcAddr(\"glMulticastGetQueryObjectuivNV\"))\n\tgpMulticastWaitSyncNV = uintptr(getProcAddr(\"glMulticastWaitSyncNV\"))\n\tgpNamedBufferData = uintptr(getProcAddr(\"glNamedBufferData\"))\n\tgpNamedBufferDataEXT = uintptr(getProcAddr(\"glNamedBufferDataEXT\"))\n\tgpNamedBufferPageCommitmentARB = uintptr(getProcAddr(\"glNamedBufferPageCommitmentARB\"))\n\tgpNamedBufferPageCommitmentEXT = uintptr(getProcAddr(\"glNamedBufferPageCommitmentEXT\"))\n\tgpNamedBufferStorage = uintptr(getProcAddr(\"glNamedBufferStorage\"))\n\tgpNamedBufferStorageEXT = uintptr(getProcAddr(\"glNamedBufferStorageEXT\"))\n\tgpNamedBufferStorageExternalEXT = uintptr(getProcAddr(\"glNamedBufferStorageExternalEXT\"))\n\tgpNamedBufferStorageMemEXT = uintptr(getProcAddr(\"glNamedBufferStorageMemEXT\"))\n\tgpNamedBufferSubData = uintptr(getProcAddr(\"glNamedBufferSubData\"))\n\tgpNamedBufferSubDataEXT = uintptr(getProcAddr(\"glNamedBufferSubDataEXT\"))\n\tgpNamedCopyBufferSubDataEXT = uintptr(getProcAddr(\"glNamedCopyBufferSubDataEXT\"))\n\tgpNamedFramebufferDrawBuffer = uintptr(getProcAddr(\"glNamedFramebufferDrawBuffer\"))\n\tgpNamedFramebufferDrawBuffers = uintptr(getProcAddr(\"glNamedFramebufferDrawBuffers\"))\n\tgpNamedFramebufferParameteri = uintptr(getProcAddr(\"glNamedFramebufferParameteri\"))\n\tgpNamedFramebufferParameteriEXT = uintptr(getProcAddr(\"glNamedFramebufferParameteriEXT\"))\n\tgpNamedFramebufferReadBuffer = uintptr(getProcAddr(\"glNamedFramebufferReadBuffer\"))\n\tgpNamedFramebufferRenderbuffer = uintptr(getProcAddr(\"glNamedFramebufferRenderbuffer\"))\n\tgpNamedFramebufferRenderbufferEXT = uintptr(getProcAddr(\"glNamedFramebufferRenderbufferEXT\"))\n\tgpNamedFramebufferSampleLocationsfvARB = uintptr(getProcAddr(\"glNamedFramebufferSampleLocationsfvARB\"))\n\tgpNamedFramebufferSampleLocationsfvNV = uintptr(getProcAddr(\"glNamedFramebufferSampleLocationsfvNV\"))\n\tgpNamedFramebufferSamplePositionsfvAMD = uintptr(getProcAddr(\"glNamedFramebufferSamplePositionsfvAMD\"))\n\tgpNamedFramebufferTexture = uintptr(getProcAddr(\"glNamedFramebufferTexture\"))\n\tgpNamedFramebufferTexture1DEXT = uintptr(getProcAddr(\"glNamedFramebufferTexture1DEXT\"))\n\tgpNamedFramebufferTexture2DEXT = uintptr(getProcAddr(\"glNamedFramebufferTexture2DEXT\"))\n\tgpNamedFramebufferTexture3DEXT = uintptr(getProcAddr(\"glNamedFramebufferTexture3DEXT\"))\n\tgpNamedFramebufferTextureEXT = uintptr(getProcAddr(\"glNamedFramebufferTextureEXT\"))\n\tgpNamedFramebufferTextureFaceEXT = uintptr(getProcAddr(\"glNamedFramebufferTextureFaceEXT\"))\n\tgpNamedFramebufferTextureLayer = uintptr(getProcAddr(\"glNamedFramebufferTextureLayer\"))\n\tgpNamedFramebufferTextureLayerEXT = uintptr(getProcAddr(\"glNamedFramebufferTextureLayerEXT\"))\n\tgpNamedProgramLocalParameter4dEXT = uintptr(getProcAddr(\"glNamedProgramLocalParameter4dEXT\"))\n\tgpNamedProgramLocalParameter4dvEXT = uintptr(getProcAddr(\"glNamedProgramLocalParameter4dvEXT\"))\n\tgpNamedProgramLocalParameter4fEXT = uintptr(getProcAddr(\"glNamedProgramLocalParameter4fEXT\"))\n\tgpNamedProgramLocalParameter4fvEXT = uintptr(getProcAddr(\"glNamedProgramLocalParameter4fvEXT\"))\n\tgpNamedProgramLocalParameterI4iEXT = uintptr(getProcAddr(\"glNamedProgramLocalParameterI4iEXT\"))\n\tgpNamedProgramLocalParameterI4ivEXT = uintptr(getProcAddr(\"glNamedProgramLocalParameterI4ivEXT\"))\n\tgpNamedProgramLocalParameterI4uiEXT = uintptr(getProcAddr(\"glNamedProgramLocalParameterI4uiEXT\"))\n\tgpNamedProgramLocalParameterI4uivEXT = uintptr(getProcAddr(\"glNamedProgramLocalParameterI4uivEXT\"))\n\tgpNamedProgramLocalParameters4fvEXT = uintptr(getProcAddr(\"glNamedProgramLocalParameters4fvEXT\"))\n\tgpNamedProgramLocalParametersI4ivEXT = uintptr(getProcAddr(\"glNamedProgramLocalParametersI4ivEXT\"))\n\tgpNamedProgramLocalParametersI4uivEXT = uintptr(getProcAddr(\"glNamedProgramLocalParametersI4uivEXT\"))\n\tgpNamedProgramStringEXT = uintptr(getProcAddr(\"glNamedProgramStringEXT\"))\n\tgpNamedRenderbufferStorage = uintptr(getProcAddr(\"glNamedRenderbufferStorage\"))\n\tgpNamedRenderbufferStorageEXT = uintptr(getProcAddr(\"glNamedRenderbufferStorageEXT\"))\n\tgpNamedRenderbufferStorageMultisample = uintptr(getProcAddr(\"glNamedRenderbufferStorageMultisample\"))\n\tgpNamedRenderbufferStorageMultisampleCoverageEXT = uintptr(getProcAddr(\"glNamedRenderbufferStorageMultisampleCoverageEXT\"))\n\tgpNamedRenderbufferStorageMultisampleEXT = uintptr(getProcAddr(\"glNamedRenderbufferStorageMultisampleEXT\"))\n\tgpNamedStringARB = uintptr(getProcAddr(\"glNamedStringARB\"))\n\tgpNewList = uintptr(getProcAddr(\"glNewList\"))\n\tif gpNewList == 0 {\n\t\treturn errors.New(\"glNewList\")\n\t}\n\tgpNewObjectBufferATI = uintptr(getProcAddr(\"glNewObjectBufferATI\"))\n\tgpNormal3b = uintptr(getProcAddr(\"glNormal3b\"))\n\tif gpNormal3b == 0 {\n\t\treturn errors.New(\"glNormal3b\")\n\t}\n\tgpNormal3bv = uintptr(getProcAddr(\"glNormal3bv\"))\n\tif gpNormal3bv == 0 {\n\t\treturn errors.New(\"glNormal3bv\")\n\t}\n\tgpNormal3d = uintptr(getProcAddr(\"glNormal3d\"))\n\tif gpNormal3d == 0 {\n\t\treturn errors.New(\"glNormal3d\")\n\t}\n\tgpNormal3dv = uintptr(getProcAddr(\"glNormal3dv\"))\n\tif gpNormal3dv == 0 {\n\t\treturn errors.New(\"glNormal3dv\")\n\t}\n\tgpNormal3f = uintptr(getProcAddr(\"glNormal3f\"))\n\tif gpNormal3f == 0 {\n\t\treturn errors.New(\"glNormal3f\")\n\t}\n\tgpNormal3fVertex3fSUN = uintptr(getProcAddr(\"glNormal3fVertex3fSUN\"))\n\tgpNormal3fVertex3fvSUN = uintptr(getProcAddr(\"glNormal3fVertex3fvSUN\"))\n\tgpNormal3fv = uintptr(getProcAddr(\"glNormal3fv\"))\n\tif gpNormal3fv == 0 {\n\t\treturn errors.New(\"glNormal3fv\")\n\t}\n\tgpNormal3hNV = uintptr(getProcAddr(\"glNormal3hNV\"))\n\tgpNormal3hvNV = uintptr(getProcAddr(\"glNormal3hvNV\"))\n\tgpNormal3i = uintptr(getProcAddr(\"glNormal3i\"))\n\tif gpNormal3i == 0 {\n\t\treturn errors.New(\"glNormal3i\")\n\t}\n\tgpNormal3iv = uintptr(getProcAddr(\"glNormal3iv\"))\n\tif gpNormal3iv == 0 {\n\t\treturn errors.New(\"glNormal3iv\")\n\t}\n\tgpNormal3s = uintptr(getProcAddr(\"glNormal3s\"))\n\tif gpNormal3s == 0 {\n\t\treturn errors.New(\"glNormal3s\")\n\t}\n\tgpNormal3sv = uintptr(getProcAddr(\"glNormal3sv\"))\n\tif gpNormal3sv == 0 {\n\t\treturn errors.New(\"glNormal3sv\")\n\t}\n\tgpNormal3xOES = uintptr(getProcAddr(\"glNormal3xOES\"))\n\tgpNormal3xvOES = uintptr(getProcAddr(\"glNormal3xvOES\"))\n\tgpNormalFormatNV = uintptr(getProcAddr(\"glNormalFormatNV\"))\n\tgpNormalPointer = uintptr(getProcAddr(\"glNormalPointer\"))\n\tif gpNormalPointer == 0 {\n\t\treturn errors.New(\"glNormalPointer\")\n\t}\n\tgpNormalPointerEXT = uintptr(getProcAddr(\"glNormalPointerEXT\"))\n\tgpNormalPointerListIBM = uintptr(getProcAddr(\"glNormalPointerListIBM\"))\n\tgpNormalPointervINTEL = uintptr(getProcAddr(\"glNormalPointervINTEL\"))\n\tgpNormalStream3bATI = uintptr(getProcAddr(\"glNormalStream3bATI\"))\n\tgpNormalStream3bvATI = uintptr(getProcAddr(\"glNormalStream3bvATI\"))\n\tgpNormalStream3dATI = uintptr(getProcAddr(\"glNormalStream3dATI\"))\n\tgpNormalStream3dvATI = uintptr(getProcAddr(\"glNormalStream3dvATI\"))\n\tgpNormalStream3fATI = uintptr(getProcAddr(\"glNormalStream3fATI\"))\n\tgpNormalStream3fvATI = uintptr(getProcAddr(\"glNormalStream3fvATI\"))\n\tgpNormalStream3iATI = uintptr(getProcAddr(\"glNormalStream3iATI\"))\n\tgpNormalStream3ivATI = uintptr(getProcAddr(\"glNormalStream3ivATI\"))\n\tgpNormalStream3sATI = uintptr(getProcAddr(\"glNormalStream3sATI\"))\n\tgpNormalStream3svATI = uintptr(getProcAddr(\"glNormalStream3svATI\"))\n\tgpObjectLabel = uintptr(getProcAddr(\"glObjectLabel\"))\n\tgpObjectLabelKHR = uintptr(getProcAddr(\"glObjectLabelKHR\"))\n\tgpObjectPtrLabel = uintptr(getProcAddr(\"glObjectPtrLabel\"))\n\tgpObjectPtrLabelKHR = uintptr(getProcAddr(\"glObjectPtrLabelKHR\"))\n\tgpObjectPurgeableAPPLE = uintptr(getProcAddr(\"glObjectPurgeableAPPLE\"))\n\tgpObjectUnpurgeableAPPLE = uintptr(getProcAddr(\"glObjectUnpurgeableAPPLE\"))\n\tgpOrtho = uintptr(getProcAddr(\"glOrtho\"))\n\tif gpOrtho == 0 {\n\t\treturn errors.New(\"glOrtho\")\n\t}\n\tgpOrthofOES = uintptr(getProcAddr(\"glOrthofOES\"))\n\tgpOrthoxOES = uintptr(getProcAddr(\"glOrthoxOES\"))\n\tgpPNTrianglesfATI = uintptr(getProcAddr(\"glPNTrianglesfATI\"))\n\tgpPNTrianglesiATI = uintptr(getProcAddr(\"glPNTrianglesiATI\"))\n\tgpPassTexCoordATI = uintptr(getProcAddr(\"glPassTexCoordATI\"))\n\tgpPassThrough = uintptr(getProcAddr(\"glPassThrough\"))\n\tif gpPassThrough == 0 {\n\t\treturn errors.New(\"glPassThrough\")\n\t}\n\tgpPassThroughxOES = uintptr(getProcAddr(\"glPassThroughxOES\"))\n\tgpPatchParameterfv = uintptr(getProcAddr(\"glPatchParameterfv\"))\n\tgpPatchParameteri = uintptr(getProcAddr(\"glPatchParameteri\"))\n\tgpPathCommandsNV = uintptr(getProcAddr(\"glPathCommandsNV\"))\n\tgpPathCoordsNV = uintptr(getProcAddr(\"glPathCoordsNV\"))\n\tgpPathCoverDepthFuncNV = uintptr(getProcAddr(\"glPathCoverDepthFuncNV\"))\n\tgpPathDashArrayNV = uintptr(getProcAddr(\"glPathDashArrayNV\"))\n\tgpPathGlyphIndexArrayNV = uintptr(getProcAddr(\"glPathGlyphIndexArrayNV\"))\n\tgpPathGlyphIndexRangeNV = uintptr(getProcAddr(\"glPathGlyphIndexRangeNV\"))\n\tgpPathGlyphRangeNV = uintptr(getProcAddr(\"glPathGlyphRangeNV\"))\n\tgpPathGlyphsNV = uintptr(getProcAddr(\"glPathGlyphsNV\"))\n\tgpPathMemoryGlyphIndexArrayNV = uintptr(getProcAddr(\"glPathMemoryGlyphIndexArrayNV\"))\n\tgpPathParameterfNV = uintptr(getProcAddr(\"glPathParameterfNV\"))\n\tgpPathParameterfvNV = uintptr(getProcAddr(\"glPathParameterfvNV\"))\n\tgpPathParameteriNV = uintptr(getProcAddr(\"glPathParameteriNV\"))\n\tgpPathParameterivNV = uintptr(getProcAddr(\"glPathParameterivNV\"))\n\tgpPathStencilDepthOffsetNV = uintptr(getProcAddr(\"glPathStencilDepthOffsetNV\"))\n\tgpPathStencilFuncNV = uintptr(getProcAddr(\"glPathStencilFuncNV\"))\n\tgpPathStringNV = uintptr(getProcAddr(\"glPathStringNV\"))\n\tgpPathSubCommandsNV = uintptr(getProcAddr(\"glPathSubCommandsNV\"))\n\tgpPathSubCoordsNV = uintptr(getProcAddr(\"glPathSubCoordsNV\"))\n\tgpPauseTransformFeedback = uintptr(getProcAddr(\"glPauseTransformFeedback\"))\n\tgpPauseTransformFeedbackNV = uintptr(getProcAddr(\"glPauseTransformFeedbackNV\"))\n\tgpPixelDataRangeNV = uintptr(getProcAddr(\"glPixelDataRangeNV\"))\n\tgpPixelMapfv = uintptr(getProcAddr(\"glPixelMapfv\"))\n\tif gpPixelMapfv == 0 {\n\t\treturn errors.New(\"glPixelMapfv\")\n\t}\n\tgpPixelMapuiv = uintptr(getProcAddr(\"glPixelMapuiv\"))\n\tif gpPixelMapuiv == 0 {\n\t\treturn errors.New(\"glPixelMapuiv\")\n\t}\n\tgpPixelMapusv = uintptr(getProcAddr(\"glPixelMapusv\"))\n\tif gpPixelMapusv == 0 {\n\t\treturn errors.New(\"glPixelMapusv\")\n\t}\n\tgpPixelMapx = uintptr(getProcAddr(\"glPixelMapx\"))\n\tgpPixelStoref = uintptr(getProcAddr(\"glPixelStoref\"))\n\tif gpPixelStoref == 0 {\n\t\treturn errors.New(\"glPixelStoref\")\n\t}\n\tgpPixelStorei = uintptr(getProcAddr(\"glPixelStorei\"))\n\tif gpPixelStorei == 0 {\n\t\treturn errors.New(\"glPixelStorei\")\n\t}\n\tgpPixelStorex = uintptr(getProcAddr(\"glPixelStorex\"))\n\tgpPixelTexGenParameterfSGIS = uintptr(getProcAddr(\"glPixelTexGenParameterfSGIS\"))\n\tgpPixelTexGenParameterfvSGIS = uintptr(getProcAddr(\"glPixelTexGenParameterfvSGIS\"))\n\tgpPixelTexGenParameteriSGIS = uintptr(getProcAddr(\"glPixelTexGenParameteriSGIS\"))\n\tgpPixelTexGenParameterivSGIS = uintptr(getProcAddr(\"glPixelTexGenParameterivSGIS\"))\n\tgpPixelTexGenSGIX = uintptr(getProcAddr(\"glPixelTexGenSGIX\"))\n\tgpPixelTransferf = uintptr(getProcAddr(\"glPixelTransferf\"))\n\tif gpPixelTransferf == 0 {\n\t\treturn errors.New(\"glPixelTransferf\")\n\t}\n\tgpPixelTransferi = uintptr(getProcAddr(\"glPixelTransferi\"))\n\tif gpPixelTransferi == 0 {\n\t\treturn errors.New(\"glPixelTransferi\")\n\t}\n\tgpPixelTransferxOES = uintptr(getProcAddr(\"glPixelTransferxOES\"))\n\tgpPixelTransformParameterfEXT = uintptr(getProcAddr(\"glPixelTransformParameterfEXT\"))\n\tgpPixelTransformParameterfvEXT = uintptr(getProcAddr(\"glPixelTransformParameterfvEXT\"))\n\tgpPixelTransformParameteriEXT = uintptr(getProcAddr(\"glPixelTransformParameteriEXT\"))\n\tgpPixelTransformParameterivEXT = uintptr(getProcAddr(\"glPixelTransformParameterivEXT\"))\n\tgpPixelZoom = uintptr(getProcAddr(\"glPixelZoom\"))\n\tif gpPixelZoom == 0 {\n\t\treturn errors.New(\"glPixelZoom\")\n\t}\n\tgpPixelZoomxOES = uintptr(getProcAddr(\"glPixelZoomxOES\"))\n\tgpPointAlongPathNV = uintptr(getProcAddr(\"glPointAlongPathNV\"))\n\tgpPointParameterf = uintptr(getProcAddr(\"glPointParameterf\"))\n\tif gpPointParameterf == 0 {\n\t\treturn errors.New(\"glPointParameterf\")\n\t}\n\tgpPointParameterfARB = uintptr(getProcAddr(\"glPointParameterfARB\"))\n\tgpPointParameterfEXT = uintptr(getProcAddr(\"glPointParameterfEXT\"))\n\tgpPointParameterfSGIS = uintptr(getProcAddr(\"glPointParameterfSGIS\"))\n\tgpPointParameterfv = uintptr(getProcAddr(\"glPointParameterfv\"))\n\tif gpPointParameterfv == 0 {\n\t\treturn errors.New(\"glPointParameterfv\")\n\t}\n\tgpPointParameterfvARB = uintptr(getProcAddr(\"glPointParameterfvARB\"))\n\tgpPointParameterfvEXT = uintptr(getProcAddr(\"glPointParameterfvEXT\"))\n\tgpPointParameterfvSGIS = uintptr(getProcAddr(\"glPointParameterfvSGIS\"))\n\tgpPointParameteri = uintptr(getProcAddr(\"glPointParameteri\"))\n\tif gpPointParameteri == 0 {\n\t\treturn errors.New(\"glPointParameteri\")\n\t}\n\tgpPointParameteriNV = uintptr(getProcAddr(\"glPointParameteriNV\"))\n\tgpPointParameteriv = uintptr(getProcAddr(\"glPointParameteriv\"))\n\tif gpPointParameteriv == 0 {\n\t\treturn errors.New(\"glPointParameteriv\")\n\t}\n\tgpPointParameterivNV = uintptr(getProcAddr(\"glPointParameterivNV\"))\n\tgpPointParameterxOES = uintptr(getProcAddr(\"glPointParameterxOES\"))\n\tgpPointParameterxvOES = uintptr(getProcAddr(\"glPointParameterxvOES\"))\n\tgpPointSize = uintptr(getProcAddr(\"glPointSize\"))\n\tif gpPointSize == 0 {\n\t\treturn errors.New(\"glPointSize\")\n\t}\n\tgpPointSizexOES = uintptr(getProcAddr(\"glPointSizexOES\"))\n\tgpPollAsyncSGIX = uintptr(getProcAddr(\"glPollAsyncSGIX\"))\n\tgpPollInstrumentsSGIX = uintptr(getProcAddr(\"glPollInstrumentsSGIX\"))\n\tgpPolygonMode = uintptr(getProcAddr(\"glPolygonMode\"))\n\tif gpPolygonMode == 0 {\n\t\treturn errors.New(\"glPolygonMode\")\n\t}\n\tgpPolygonOffset = uintptr(getProcAddr(\"glPolygonOffset\"))\n\tif gpPolygonOffset == 0 {\n\t\treturn errors.New(\"glPolygonOffset\")\n\t}\n\tgpPolygonOffsetClamp = uintptr(getProcAddr(\"glPolygonOffsetClamp\"))\n\tgpPolygonOffsetClampEXT = uintptr(getProcAddr(\"glPolygonOffsetClampEXT\"))\n\tgpPolygonOffsetEXT = uintptr(getProcAddr(\"glPolygonOffsetEXT\"))\n\tgpPolygonOffsetxOES = uintptr(getProcAddr(\"glPolygonOffsetxOES\"))\n\tgpPolygonStipple = uintptr(getProcAddr(\"glPolygonStipple\"))\n\tif gpPolygonStipple == 0 {\n\t\treturn errors.New(\"glPolygonStipple\")\n\t}\n\tgpPopAttrib = uintptr(getProcAddr(\"glPopAttrib\"))\n\tif gpPopAttrib == 0 {\n\t\treturn errors.New(\"glPopAttrib\")\n\t}\n\tgpPopClientAttrib = uintptr(getProcAddr(\"glPopClientAttrib\"))\n\tif gpPopClientAttrib == 0 {\n\t\treturn errors.New(\"glPopClientAttrib\")\n\t}\n\tgpPopDebugGroup = uintptr(getProcAddr(\"glPopDebugGroup\"))\n\tgpPopDebugGroupKHR = uintptr(getProcAddr(\"glPopDebugGroupKHR\"))\n\tgpPopGroupMarkerEXT = uintptr(getProcAddr(\"glPopGroupMarkerEXT\"))\n\tgpPopMatrix = uintptr(getProcAddr(\"glPopMatrix\"))\n\tif gpPopMatrix == 0 {\n\t\treturn errors.New(\"glPopMatrix\")\n\t}\n\tgpPopName = uintptr(getProcAddr(\"glPopName\"))\n\tif gpPopName == 0 {\n\t\treturn errors.New(\"glPopName\")\n\t}\n\tgpPresentFrameDualFillNV = uintptr(getProcAddr(\"glPresentFrameDualFillNV\"))\n\tgpPresentFrameKeyedNV = uintptr(getProcAddr(\"glPresentFrameKeyedNV\"))\n\tgpPrimitiveBoundingBoxARB = uintptr(getProcAddr(\"glPrimitiveBoundingBoxARB\"))\n\tgpPrimitiveRestartIndexNV = uintptr(getProcAddr(\"glPrimitiveRestartIndexNV\"))\n\tgpPrimitiveRestartNV = uintptr(getProcAddr(\"glPrimitiveRestartNV\"))\n\tgpPrioritizeTextures = uintptr(getProcAddr(\"glPrioritizeTextures\"))\n\tif gpPrioritizeTextures == 0 {\n\t\treturn errors.New(\"glPrioritizeTextures\")\n\t}\n\tgpPrioritizeTexturesEXT = uintptr(getProcAddr(\"glPrioritizeTexturesEXT\"))\n\tgpPrioritizeTexturesxOES = uintptr(getProcAddr(\"glPrioritizeTexturesxOES\"))\n\tgpProgramBinary = uintptr(getProcAddr(\"glProgramBinary\"))\n\tgpProgramBufferParametersIivNV = uintptr(getProcAddr(\"glProgramBufferParametersIivNV\"))\n\tgpProgramBufferParametersIuivNV = uintptr(getProcAddr(\"glProgramBufferParametersIuivNV\"))\n\tgpProgramBufferParametersfvNV = uintptr(getProcAddr(\"glProgramBufferParametersfvNV\"))\n\tgpProgramEnvParameter4dARB = uintptr(getProcAddr(\"glProgramEnvParameter4dARB\"))\n\tgpProgramEnvParameter4dvARB = uintptr(getProcAddr(\"glProgramEnvParameter4dvARB\"))\n\tgpProgramEnvParameter4fARB = uintptr(getProcAddr(\"glProgramEnvParameter4fARB\"))\n\tgpProgramEnvParameter4fvARB = uintptr(getProcAddr(\"glProgramEnvParameter4fvARB\"))\n\tgpProgramEnvParameterI4iNV = uintptr(getProcAddr(\"glProgramEnvParameterI4iNV\"))\n\tgpProgramEnvParameterI4ivNV = uintptr(getProcAddr(\"glProgramEnvParameterI4ivNV\"))\n\tgpProgramEnvParameterI4uiNV = uintptr(getProcAddr(\"glProgramEnvParameterI4uiNV\"))\n\tgpProgramEnvParameterI4uivNV = uintptr(getProcAddr(\"glProgramEnvParameterI4uivNV\"))\n\tgpProgramEnvParameters4fvEXT = uintptr(getProcAddr(\"glProgramEnvParameters4fvEXT\"))\n\tgpProgramEnvParametersI4ivNV = uintptr(getProcAddr(\"glProgramEnvParametersI4ivNV\"))\n\tgpProgramEnvParametersI4uivNV = uintptr(getProcAddr(\"glProgramEnvParametersI4uivNV\"))\n\tgpProgramLocalParameter4dARB = uintptr(getProcAddr(\"glProgramLocalParameter4dARB\"))\n\tgpProgramLocalParameter4dvARB = uintptr(getProcAddr(\"glProgramLocalParameter4dvARB\"))\n\tgpProgramLocalParameter4fARB = uintptr(getProcAddr(\"glProgramLocalParameter4fARB\"))\n\tgpProgramLocalParameter4fvARB = uintptr(getProcAddr(\"glProgramLocalParameter4fvARB\"))\n\tgpProgramLocalParameterI4iNV = uintptr(getProcAddr(\"glProgramLocalParameterI4iNV\"))\n\tgpProgramLocalParameterI4ivNV = uintptr(getProcAddr(\"glProgramLocalParameterI4ivNV\"))\n\tgpProgramLocalParameterI4uiNV = uintptr(getProcAddr(\"glProgramLocalParameterI4uiNV\"))\n\tgpProgramLocalParameterI4uivNV = uintptr(getProcAddr(\"glProgramLocalParameterI4uivNV\"))\n\tgpProgramLocalParameters4fvEXT = uintptr(getProcAddr(\"glProgramLocalParameters4fvEXT\"))\n\tgpProgramLocalParametersI4ivNV = uintptr(getProcAddr(\"glProgramLocalParametersI4ivNV\"))\n\tgpProgramLocalParametersI4uivNV = uintptr(getProcAddr(\"glProgramLocalParametersI4uivNV\"))\n\tgpProgramNamedParameter4dNV = uintptr(getProcAddr(\"glProgramNamedParameter4dNV\"))\n\tgpProgramNamedParameter4dvNV = uintptr(getProcAddr(\"glProgramNamedParameter4dvNV\"))\n\tgpProgramNamedParameter4fNV = uintptr(getProcAddr(\"glProgramNamedParameter4fNV\"))\n\tgpProgramNamedParameter4fvNV = uintptr(getProcAddr(\"glProgramNamedParameter4fvNV\"))\n\tgpProgramParameter4dNV = uintptr(getProcAddr(\"glProgramParameter4dNV\"))\n\tgpProgramParameter4dvNV = uintptr(getProcAddr(\"glProgramParameter4dvNV\"))\n\tgpProgramParameter4fNV = uintptr(getProcAddr(\"glProgramParameter4fNV\"))\n\tgpProgramParameter4fvNV = uintptr(getProcAddr(\"glProgramParameter4fvNV\"))\n\tgpProgramParameteri = uintptr(getProcAddr(\"glProgramParameteri\"))\n\tgpProgramParameteriARB = uintptr(getProcAddr(\"glProgramParameteriARB\"))\n\tgpProgramParameteriEXT = uintptr(getProcAddr(\"glProgramParameteriEXT\"))\n\tgpProgramParameters4dvNV = uintptr(getProcAddr(\"glProgramParameters4dvNV\"))\n\tgpProgramParameters4fvNV = uintptr(getProcAddr(\"glProgramParameters4fvNV\"))\n\tgpProgramPathFragmentInputGenNV = uintptr(getProcAddr(\"glProgramPathFragmentInputGenNV\"))\n\tgpProgramStringARB = uintptr(getProcAddr(\"glProgramStringARB\"))\n\tgpProgramSubroutineParametersuivNV = uintptr(getProcAddr(\"glProgramSubroutineParametersuivNV\"))\n\tgpProgramUniform1d = uintptr(getProcAddr(\"glProgramUniform1d\"))\n\tgpProgramUniform1dEXT = uintptr(getProcAddr(\"glProgramUniform1dEXT\"))\n\tgpProgramUniform1dv = uintptr(getProcAddr(\"glProgramUniform1dv\"))\n\tgpProgramUniform1dvEXT = uintptr(getProcAddr(\"glProgramUniform1dvEXT\"))\n\tgpProgramUniform1f = uintptr(getProcAddr(\"glProgramUniform1f\"))\n\tgpProgramUniform1fEXT = uintptr(getProcAddr(\"glProgramUniform1fEXT\"))\n\tgpProgramUniform1fv = uintptr(getProcAddr(\"glProgramUniform1fv\"))\n\tgpProgramUniform1fvEXT = uintptr(getProcAddr(\"glProgramUniform1fvEXT\"))\n\tgpProgramUniform1i = uintptr(getProcAddr(\"glProgramUniform1i\"))\n\tgpProgramUniform1i64ARB = uintptr(getProcAddr(\"glProgramUniform1i64ARB\"))\n\tgpProgramUniform1i64NV = uintptr(getProcAddr(\"glProgramUniform1i64NV\"))\n\tgpProgramUniform1i64vARB = uintptr(getProcAddr(\"glProgramUniform1i64vARB\"))\n\tgpProgramUniform1i64vNV = uintptr(getProcAddr(\"glProgramUniform1i64vNV\"))\n\tgpProgramUniform1iEXT = uintptr(getProcAddr(\"glProgramUniform1iEXT\"))\n\tgpProgramUniform1iv = uintptr(getProcAddr(\"glProgramUniform1iv\"))\n\tgpProgramUniform1ivEXT = uintptr(getProcAddr(\"glProgramUniform1ivEXT\"))\n\tgpProgramUniform1ui = uintptr(getProcAddr(\"glProgramUniform1ui\"))\n\tgpProgramUniform1ui64ARB = uintptr(getProcAddr(\"glProgramUniform1ui64ARB\"))\n\tgpProgramUniform1ui64NV = uintptr(getProcAddr(\"glProgramUniform1ui64NV\"))\n\tgpProgramUniform1ui64vARB = uintptr(getProcAddr(\"glProgramUniform1ui64vARB\"))\n\tgpProgramUniform1ui64vNV = uintptr(getProcAddr(\"glProgramUniform1ui64vNV\"))\n\tgpProgramUniform1uiEXT = uintptr(getProcAddr(\"glProgramUniform1uiEXT\"))\n\tgpProgramUniform1uiv = uintptr(getProcAddr(\"glProgramUniform1uiv\"))\n\tgpProgramUniform1uivEXT = uintptr(getProcAddr(\"glProgramUniform1uivEXT\"))\n\tgpProgramUniform2d = uintptr(getProcAddr(\"glProgramUniform2d\"))\n\tgpProgramUniform2dEXT = uintptr(getProcAddr(\"glProgramUniform2dEXT\"))\n\tgpProgramUniform2dv = uintptr(getProcAddr(\"glProgramUniform2dv\"))\n\tgpProgramUniform2dvEXT = uintptr(getProcAddr(\"glProgramUniform2dvEXT\"))\n\tgpProgramUniform2f = uintptr(getProcAddr(\"glProgramUniform2f\"))\n\tgpProgramUniform2fEXT = uintptr(getProcAddr(\"glProgramUniform2fEXT\"))\n\tgpProgramUniform2fv = uintptr(getProcAddr(\"glProgramUniform2fv\"))\n\tgpProgramUniform2fvEXT = uintptr(getProcAddr(\"glProgramUniform2fvEXT\"))\n\tgpProgramUniform2i = uintptr(getProcAddr(\"glProgramUniform2i\"))\n\tgpProgramUniform2i64ARB = uintptr(getProcAddr(\"glProgramUniform2i64ARB\"))\n\tgpProgramUniform2i64NV = uintptr(getProcAddr(\"glProgramUniform2i64NV\"))\n\tgpProgramUniform2i64vARB = uintptr(getProcAddr(\"glProgramUniform2i64vARB\"))\n\tgpProgramUniform2i64vNV = uintptr(getProcAddr(\"glProgramUniform2i64vNV\"))\n\tgpProgramUniform2iEXT = uintptr(getProcAddr(\"glProgramUniform2iEXT\"))\n\tgpProgramUniform2iv = uintptr(getProcAddr(\"glProgramUniform2iv\"))\n\tgpProgramUniform2ivEXT = uintptr(getProcAddr(\"glProgramUniform2ivEXT\"))\n\tgpProgramUniform2ui = uintptr(getProcAddr(\"glProgramUniform2ui\"))\n\tgpProgramUniform2ui64ARB = uintptr(getProcAddr(\"glProgramUniform2ui64ARB\"))\n\tgpProgramUniform2ui64NV = uintptr(getProcAddr(\"glProgramUniform2ui64NV\"))\n\tgpProgramUniform2ui64vARB = uintptr(getProcAddr(\"glProgramUniform2ui64vARB\"))\n\tgpProgramUniform2ui64vNV = uintptr(getProcAddr(\"glProgramUniform2ui64vNV\"))\n\tgpProgramUniform2uiEXT = uintptr(getProcAddr(\"glProgramUniform2uiEXT\"))\n\tgpProgramUniform2uiv = uintptr(getProcAddr(\"glProgramUniform2uiv\"))\n\tgpProgramUniform2uivEXT = uintptr(getProcAddr(\"glProgramUniform2uivEXT\"))\n\tgpProgramUniform3d = uintptr(getProcAddr(\"glProgramUniform3d\"))\n\tgpProgramUniform3dEXT = uintptr(getProcAddr(\"glProgramUniform3dEXT\"))\n\tgpProgramUniform3dv = uintptr(getProcAddr(\"glProgramUniform3dv\"))\n\tgpProgramUniform3dvEXT = uintptr(getProcAddr(\"glProgramUniform3dvEXT\"))\n\tgpProgramUniform3f = uintptr(getProcAddr(\"glProgramUniform3f\"))\n\tgpProgramUniform3fEXT = uintptr(getProcAddr(\"glProgramUniform3fEXT\"))\n\tgpProgramUniform3fv = uintptr(getProcAddr(\"glProgramUniform3fv\"))\n\tgpProgramUniform3fvEXT = uintptr(getProcAddr(\"glProgramUniform3fvEXT\"))\n\tgpProgramUniform3i = uintptr(getProcAddr(\"glProgramUniform3i\"))\n\tgpProgramUniform3i64ARB = uintptr(getProcAddr(\"glProgramUniform3i64ARB\"))\n\tgpProgramUniform3i64NV = uintptr(getProcAddr(\"glProgramUniform3i64NV\"))\n\tgpProgramUniform3i64vARB = uintptr(getProcAddr(\"glProgramUniform3i64vARB\"))\n\tgpProgramUniform3i64vNV = uintptr(getProcAddr(\"glProgramUniform3i64vNV\"))\n\tgpProgramUniform3iEXT = uintptr(getProcAddr(\"glProgramUniform3iEXT\"))\n\tgpProgramUniform3iv = uintptr(getProcAddr(\"glProgramUniform3iv\"))\n\tgpProgramUniform3ivEXT = uintptr(getProcAddr(\"glProgramUniform3ivEXT\"))\n\tgpProgramUniform3ui = uintptr(getProcAddr(\"glProgramUniform3ui\"))\n\tgpProgramUniform3ui64ARB = uintptr(getProcAddr(\"glProgramUniform3ui64ARB\"))\n\tgpProgramUniform3ui64NV = uintptr(getProcAddr(\"glProgramUniform3ui64NV\"))\n\tgpProgramUniform3ui64vARB = uintptr(getProcAddr(\"glProgramUniform3ui64vARB\"))\n\tgpProgramUniform3ui64vNV = uintptr(getProcAddr(\"glProgramUniform3ui64vNV\"))\n\tgpProgramUniform3uiEXT = uintptr(getProcAddr(\"glProgramUniform3uiEXT\"))\n\tgpProgramUniform3uiv = uintptr(getProcAddr(\"glProgramUniform3uiv\"))\n\tgpProgramUniform3uivEXT = uintptr(getProcAddr(\"glProgramUniform3uivEXT\"))\n\tgpProgramUniform4d = uintptr(getProcAddr(\"glProgramUniform4d\"))\n\tgpProgramUniform4dEXT = uintptr(getProcAddr(\"glProgramUniform4dEXT\"))\n\tgpProgramUniform4dv = uintptr(getProcAddr(\"glProgramUniform4dv\"))\n\tgpProgramUniform4dvEXT = uintptr(getProcAddr(\"glProgramUniform4dvEXT\"))\n\tgpProgramUniform4f = uintptr(getProcAddr(\"glProgramUniform4f\"))\n\tgpProgramUniform4fEXT = uintptr(getProcAddr(\"glProgramUniform4fEXT\"))\n\tgpProgramUniform4fv = uintptr(getProcAddr(\"glProgramUniform4fv\"))\n\tgpProgramUniform4fvEXT = uintptr(getProcAddr(\"glProgramUniform4fvEXT\"))\n\tgpProgramUniform4i = uintptr(getProcAddr(\"glProgramUniform4i\"))\n\tgpProgramUniform4i64ARB = uintptr(getProcAddr(\"glProgramUniform4i64ARB\"))\n\tgpProgramUniform4i64NV = uintptr(getProcAddr(\"glProgramUniform4i64NV\"))\n\tgpProgramUniform4i64vARB = uintptr(getProcAddr(\"glProgramUniform4i64vARB\"))\n\tgpProgramUniform4i64vNV = uintptr(getProcAddr(\"glProgramUniform4i64vNV\"))\n\tgpProgramUniform4iEXT = uintptr(getProcAddr(\"glProgramUniform4iEXT\"))\n\tgpProgramUniform4iv = uintptr(getProcAddr(\"glProgramUniform4iv\"))\n\tgpProgramUniform4ivEXT = uintptr(getProcAddr(\"glProgramUniform4ivEXT\"))\n\tgpProgramUniform4ui = uintptr(getProcAddr(\"glProgramUniform4ui\"))\n\tgpProgramUniform4ui64ARB = uintptr(getProcAddr(\"glProgramUniform4ui64ARB\"))\n\tgpProgramUniform4ui64NV = uintptr(getProcAddr(\"glProgramUniform4ui64NV\"))\n\tgpProgramUniform4ui64vARB = uintptr(getProcAddr(\"glProgramUniform4ui64vARB\"))\n\tgpProgramUniform4ui64vNV = uintptr(getProcAddr(\"glProgramUniform4ui64vNV\"))\n\tgpProgramUniform4uiEXT = uintptr(getProcAddr(\"glProgramUniform4uiEXT\"))\n\tgpProgramUniform4uiv = uintptr(getProcAddr(\"glProgramUniform4uiv\"))\n\tgpProgramUniform4uivEXT = uintptr(getProcAddr(\"glProgramUniform4uivEXT\"))\n\tgpProgramUniformHandleui64ARB = uintptr(getProcAddr(\"glProgramUniformHandleui64ARB\"))\n\tgpProgramUniformHandleui64NV = uintptr(getProcAddr(\"glProgramUniformHandleui64NV\"))\n\tgpProgramUniformHandleui64vARB = uintptr(getProcAddr(\"glProgramUniformHandleui64vARB\"))\n\tgpProgramUniformHandleui64vNV = uintptr(getProcAddr(\"glProgramUniformHandleui64vNV\"))\n\tgpProgramUniformMatrix2dv = uintptr(getProcAddr(\"glProgramUniformMatrix2dv\"))\n\tgpProgramUniformMatrix2dvEXT = uintptr(getProcAddr(\"glProgramUniformMatrix2dvEXT\"))\n\tgpProgramUniformMatrix2fv = uintptr(getProcAddr(\"glProgramUniformMatrix2fv\"))\n\tgpProgramUniformMatrix2fvEXT = uintptr(getProcAddr(\"glProgramUniformMatrix2fvEXT\"))\n\tgpProgramUniformMatrix2x3dv = uintptr(getProcAddr(\"glProgramUniformMatrix2x3dv\"))\n\tgpProgramUniformMatrix2x3dvEXT = uintptr(getProcAddr(\"glProgramUniformMatrix2x3dvEXT\"))\n\tgpProgramUniformMatrix2x3fv = uintptr(getProcAddr(\"glProgramUniformMatrix2x3fv\"))\n\tgpProgramUniformMatrix2x3fvEXT = uintptr(getProcAddr(\"glProgramUniformMatrix2x3fvEXT\"))\n\tgpProgramUniformMatrix2x4dv = uintptr(getProcAddr(\"glProgramUniformMatrix2x4dv\"))\n\tgpProgramUniformMatrix2x4dvEXT = uintptr(getProcAddr(\"glProgramUniformMatrix2x4dvEXT\"))\n\tgpProgramUniformMatrix2x4fv = uintptr(getProcAddr(\"glProgramUniformMatrix2x4fv\"))\n\tgpProgramUniformMatrix2x4fvEXT = uintptr(getProcAddr(\"glProgramUniformMatrix2x4fvEXT\"))\n\tgpProgramUniformMatrix3dv = uintptr(getProcAddr(\"glProgramUniformMatrix3dv\"))\n\tgpProgramUniformMatrix3dvEXT = uintptr(getProcAddr(\"glProgramUniformMatrix3dvEXT\"))\n\tgpProgramUniformMatrix3fv = uintptr(getProcAddr(\"glProgramUniformMatrix3fv\"))\n\tgpProgramUniformMatrix3fvEXT = uintptr(getProcAddr(\"glProgramUniformMatrix3fvEXT\"))\n\tgpProgramUniformMatrix3x2dv = uintptr(getProcAddr(\"glProgramUniformMatrix3x2dv\"))\n\tgpProgramUniformMatrix3x2dvEXT = uintptr(getProcAddr(\"glProgramUniformMatrix3x2dvEXT\"))\n\tgpProgramUniformMatrix3x2fv = uintptr(getProcAddr(\"glProgramUniformMatrix3x2fv\"))\n\tgpProgramUniformMatrix3x2fvEXT = uintptr(getProcAddr(\"glProgramUniformMatrix3x2fvEXT\"))\n\tgpProgramUniformMatrix3x4dv = uintptr(getProcAddr(\"glProgramUniformMatrix3x4dv\"))\n\tgpProgramUniformMatrix3x4dvEXT = uintptr(getProcAddr(\"glProgramUniformMatrix3x4dvEXT\"))\n\tgpProgramUniformMatrix3x4fv = uintptr(getProcAddr(\"glProgramUniformMatrix3x4fv\"))\n\tgpProgramUniformMatrix3x4fvEXT = uintptr(getProcAddr(\"glProgramUniformMatrix3x4fvEXT\"))\n\tgpProgramUniformMatrix4dv = uintptr(getProcAddr(\"glProgramUniformMatrix4dv\"))\n\tgpProgramUniformMatrix4dvEXT = uintptr(getProcAddr(\"glProgramUniformMatrix4dvEXT\"))\n\tgpProgramUniformMatrix4fv = uintptr(getProcAddr(\"glProgramUniformMatrix4fv\"))\n\tgpProgramUniformMatrix4fvEXT = uintptr(getProcAddr(\"glProgramUniformMatrix4fvEXT\"))\n\tgpProgramUniformMatrix4x2dv = uintptr(getProcAddr(\"glProgramUniformMatrix4x2dv\"))\n\tgpProgramUniformMatrix4x2dvEXT = uintptr(getProcAddr(\"glProgramUniformMatrix4x2dvEXT\"))\n\tgpProgramUniformMatrix4x2fv = uintptr(getProcAddr(\"glProgramUniformMatrix4x2fv\"))\n\tgpProgramUniformMatrix4x2fvEXT = uintptr(getProcAddr(\"glProgramUniformMatrix4x2fvEXT\"))\n\tgpProgramUniformMatrix4x3dv = uintptr(getProcAddr(\"glProgramUniformMatrix4x3dv\"))\n\tgpProgramUniformMatrix4x3dvEXT = uintptr(getProcAddr(\"glProgramUniformMatrix4x3dvEXT\"))\n\tgpProgramUniformMatrix4x3fv = uintptr(getProcAddr(\"glProgramUniformMatrix4x3fv\"))\n\tgpProgramUniformMatrix4x3fvEXT = uintptr(getProcAddr(\"glProgramUniformMatrix4x3fvEXT\"))\n\tgpProgramUniformui64NV = uintptr(getProcAddr(\"glProgramUniformui64NV\"))\n\tgpProgramUniformui64vNV = uintptr(getProcAddr(\"glProgramUniformui64vNV\"))\n\tgpProgramVertexLimitNV = uintptr(getProcAddr(\"glProgramVertexLimitNV\"))\n\tgpProvokingVertex = uintptr(getProcAddr(\"glProvokingVertex\"))\n\tgpProvokingVertexEXT = uintptr(getProcAddr(\"glProvokingVertexEXT\"))\n\tgpPushAttrib = uintptr(getProcAddr(\"glPushAttrib\"))\n\tif gpPushAttrib == 0 {\n\t\treturn errors.New(\"glPushAttrib\")\n\t}\n\tgpPushClientAttrib = uintptr(getProcAddr(\"glPushClientAttrib\"))\n\tif gpPushClientAttrib == 0 {\n\t\treturn errors.New(\"glPushClientAttrib\")\n\t}\n\tgpPushClientAttribDefaultEXT = uintptr(getProcAddr(\"glPushClientAttribDefaultEXT\"))\n\tgpPushDebugGroup = uintptr(getProcAddr(\"glPushDebugGroup\"))\n\tgpPushDebugGroupKHR = uintptr(getProcAddr(\"glPushDebugGroupKHR\"))\n\tgpPushGroupMarkerEXT = uintptr(getProcAddr(\"glPushGroupMarkerEXT\"))\n\tgpPushMatrix = uintptr(getProcAddr(\"glPushMatrix\"))\n\tif gpPushMatrix == 0 {\n\t\treturn errors.New(\"glPushMatrix\")\n\t}\n\tgpPushName = uintptr(getProcAddr(\"glPushName\"))\n\tif gpPushName == 0 {\n\t\treturn errors.New(\"glPushName\")\n\t}\n\tgpQueryCounter = uintptr(getProcAddr(\"glQueryCounter\"))\n\tgpQueryMatrixxOES = uintptr(getProcAddr(\"glQueryMatrixxOES\"))\n\tgpQueryObjectParameteruiAMD = uintptr(getProcAddr(\"glQueryObjectParameteruiAMD\"))\n\tgpQueryResourceNV = uintptr(getProcAddr(\"glQueryResourceNV\"))\n\tgpQueryResourceTagNV = uintptr(getProcAddr(\"glQueryResourceTagNV\"))\n\tgpRasterPos2d = uintptr(getProcAddr(\"glRasterPos2d\"))\n\tif gpRasterPos2d == 0 {\n\t\treturn errors.New(\"glRasterPos2d\")\n\t}\n\tgpRasterPos2dv = uintptr(getProcAddr(\"glRasterPos2dv\"))\n\tif gpRasterPos2dv == 0 {\n\t\treturn errors.New(\"glRasterPos2dv\")\n\t}\n\tgpRasterPos2f = uintptr(getProcAddr(\"glRasterPos2f\"))\n\tif gpRasterPos2f == 0 {\n\t\treturn errors.New(\"glRasterPos2f\")\n\t}\n\tgpRasterPos2fv = uintptr(getProcAddr(\"glRasterPos2fv\"))\n\tif gpRasterPos2fv == 0 {\n\t\treturn errors.New(\"glRasterPos2fv\")\n\t}\n\tgpRasterPos2i = uintptr(getProcAddr(\"glRasterPos2i\"))\n\tif gpRasterPos2i == 0 {\n\t\treturn errors.New(\"glRasterPos2i\")\n\t}\n\tgpRasterPos2iv = uintptr(getProcAddr(\"glRasterPos2iv\"))\n\tif gpRasterPos2iv == 0 {\n\t\treturn errors.New(\"glRasterPos2iv\")\n\t}\n\tgpRasterPos2s = uintptr(getProcAddr(\"glRasterPos2s\"))\n\tif gpRasterPos2s == 0 {\n\t\treturn errors.New(\"glRasterPos2s\")\n\t}\n\tgpRasterPos2sv = uintptr(getProcAddr(\"glRasterPos2sv\"))\n\tif gpRasterPos2sv == 0 {\n\t\treturn errors.New(\"glRasterPos2sv\")\n\t}\n\tgpRasterPos2xOES = uintptr(getProcAddr(\"glRasterPos2xOES\"))\n\tgpRasterPos2xvOES = uintptr(getProcAddr(\"glRasterPos2xvOES\"))\n\tgpRasterPos3d = uintptr(getProcAddr(\"glRasterPos3d\"))\n\tif gpRasterPos3d == 0 {\n\t\treturn errors.New(\"glRasterPos3d\")\n\t}\n\tgpRasterPos3dv = uintptr(getProcAddr(\"glRasterPos3dv\"))\n\tif gpRasterPos3dv == 0 {\n\t\treturn errors.New(\"glRasterPos3dv\")\n\t}\n\tgpRasterPos3f = uintptr(getProcAddr(\"glRasterPos3f\"))\n\tif gpRasterPos3f == 0 {\n\t\treturn errors.New(\"glRasterPos3f\")\n\t}\n\tgpRasterPos3fv = uintptr(getProcAddr(\"glRasterPos3fv\"))\n\tif gpRasterPos3fv == 0 {\n\t\treturn errors.New(\"glRasterPos3fv\")\n\t}\n\tgpRasterPos3i = uintptr(getProcAddr(\"glRasterPos3i\"))\n\tif gpRasterPos3i == 0 {\n\t\treturn errors.New(\"glRasterPos3i\")\n\t}\n\tgpRasterPos3iv = uintptr(getProcAddr(\"glRasterPos3iv\"))\n\tif gpRasterPos3iv == 0 {\n\t\treturn errors.New(\"glRasterPos3iv\")\n\t}\n\tgpRasterPos3s = uintptr(getProcAddr(\"glRasterPos3s\"))\n\tif gpRasterPos3s == 0 {\n\t\treturn errors.New(\"glRasterPos3s\")\n\t}\n\tgpRasterPos3sv = uintptr(getProcAddr(\"glRasterPos3sv\"))\n\tif gpRasterPos3sv == 0 {\n\t\treturn errors.New(\"glRasterPos3sv\")\n\t}\n\tgpRasterPos3xOES = uintptr(getProcAddr(\"glRasterPos3xOES\"))\n\tgpRasterPos3xvOES = uintptr(getProcAddr(\"glRasterPos3xvOES\"))\n\tgpRasterPos4d = uintptr(getProcAddr(\"glRasterPos4d\"))\n\tif gpRasterPos4d == 0 {\n\t\treturn errors.New(\"glRasterPos4d\")\n\t}\n\tgpRasterPos4dv = uintptr(getProcAddr(\"glRasterPos4dv\"))\n\tif gpRasterPos4dv == 0 {\n\t\treturn errors.New(\"glRasterPos4dv\")\n\t}\n\tgpRasterPos4f = uintptr(getProcAddr(\"glRasterPos4f\"))\n\tif gpRasterPos4f == 0 {\n\t\treturn errors.New(\"glRasterPos4f\")\n\t}\n\tgpRasterPos4fv = uintptr(getProcAddr(\"glRasterPos4fv\"))\n\tif gpRasterPos4fv == 0 {\n\t\treturn errors.New(\"glRasterPos4fv\")\n\t}\n\tgpRasterPos4i = uintptr(getProcAddr(\"glRasterPos4i\"))\n\tif gpRasterPos4i == 0 {\n\t\treturn errors.New(\"glRasterPos4i\")\n\t}\n\tgpRasterPos4iv = uintptr(getProcAddr(\"glRasterPos4iv\"))\n\tif gpRasterPos4iv == 0 {\n\t\treturn errors.New(\"glRasterPos4iv\")\n\t}\n\tgpRasterPos4s = uintptr(getProcAddr(\"glRasterPos4s\"))\n\tif gpRasterPos4s == 0 {\n\t\treturn errors.New(\"glRasterPos4s\")\n\t}\n\tgpRasterPos4sv = uintptr(getProcAddr(\"glRasterPos4sv\"))\n\tif gpRasterPos4sv == 0 {\n\t\treturn errors.New(\"glRasterPos4sv\")\n\t}\n\tgpRasterPos4xOES = uintptr(getProcAddr(\"glRasterPos4xOES\"))\n\tgpRasterPos4xvOES = uintptr(getProcAddr(\"glRasterPos4xvOES\"))\n\tgpRasterSamplesEXT = uintptr(getProcAddr(\"glRasterSamplesEXT\"))\n\tgpReadBuffer = uintptr(getProcAddr(\"glReadBuffer\"))\n\tif gpReadBuffer == 0 {\n\t\treturn errors.New(\"glReadBuffer\")\n\t}\n\tgpReadInstrumentsSGIX = uintptr(getProcAddr(\"glReadInstrumentsSGIX\"))\n\tgpReadPixels = uintptr(getProcAddr(\"glReadPixels\"))\n\tif gpReadPixels == 0 {\n\t\treturn errors.New(\"glReadPixels\")\n\t}\n\tgpReadnPixels = uintptr(getProcAddr(\"glReadnPixels\"))\n\tgpReadnPixelsARB = uintptr(getProcAddr(\"glReadnPixelsARB\"))\n\tgpReadnPixelsKHR = uintptr(getProcAddr(\"glReadnPixelsKHR\"))\n\tgpRectd = uintptr(getProcAddr(\"glRectd\"))\n\tif gpRectd == 0 {\n\t\treturn errors.New(\"glRectd\")\n\t}\n\tgpRectdv = uintptr(getProcAddr(\"glRectdv\"))\n\tif gpRectdv == 0 {\n\t\treturn errors.New(\"glRectdv\")\n\t}\n\tgpRectf = uintptr(getProcAddr(\"glRectf\"))\n\tif gpRectf == 0 {\n\t\treturn errors.New(\"glRectf\")\n\t}\n\tgpRectfv = uintptr(getProcAddr(\"glRectfv\"))\n\tif gpRectfv == 0 {\n\t\treturn errors.New(\"glRectfv\")\n\t}\n\tgpRecti = uintptr(getProcAddr(\"glRecti\"))\n\tif gpRecti == 0 {\n\t\treturn errors.New(\"glRecti\")\n\t}\n\tgpRectiv = uintptr(getProcAddr(\"glRectiv\"))\n\tif gpRectiv == 0 {\n\t\treturn errors.New(\"glRectiv\")\n\t}\n\tgpRects = uintptr(getProcAddr(\"glRects\"))\n\tif gpRects == 0 {\n\t\treturn errors.New(\"glRects\")\n\t}\n\tgpRectsv = uintptr(getProcAddr(\"glRectsv\"))\n\tif gpRectsv == 0 {\n\t\treturn errors.New(\"glRectsv\")\n\t}\n\tgpRectxOES = uintptr(getProcAddr(\"glRectxOES\"))\n\tgpRectxvOES = uintptr(getProcAddr(\"glRectxvOES\"))\n\tgpReferencePlaneSGIX = uintptr(getProcAddr(\"glReferencePlaneSGIX\"))\n\tgpReleaseKeyedMutexWin32EXT = uintptr(getProcAddr(\"glReleaseKeyedMutexWin32EXT\"))\n\tgpReleaseShaderCompiler = uintptr(getProcAddr(\"glReleaseShaderCompiler\"))\n\tgpRenderGpuMaskNV = uintptr(getProcAddr(\"glRenderGpuMaskNV\"))\n\tgpRenderMode = uintptr(getProcAddr(\"glRenderMode\"))\n\tif gpRenderMode == 0 {\n\t\treturn errors.New(\"glRenderMode\")\n\t}\n\tgpRenderbufferStorage = uintptr(getProcAddr(\"glRenderbufferStorage\"))\n\tgpRenderbufferStorageEXT = uintptr(getProcAddr(\"glRenderbufferStorageEXT\"))\n\tgpRenderbufferStorageMultisample = uintptr(getProcAddr(\"glRenderbufferStorageMultisample\"))\n\tgpRenderbufferStorageMultisampleCoverageNV = uintptr(getProcAddr(\"glRenderbufferStorageMultisampleCoverageNV\"))\n\tgpRenderbufferStorageMultisampleEXT = uintptr(getProcAddr(\"glRenderbufferStorageMultisampleEXT\"))\n\tgpReplacementCodePointerSUN = uintptr(getProcAddr(\"glReplacementCodePointerSUN\"))\n\tgpReplacementCodeubSUN = uintptr(getProcAddr(\"glReplacementCodeubSUN\"))\n\tgpReplacementCodeubvSUN = uintptr(getProcAddr(\"glReplacementCodeubvSUN\"))\n\tgpReplacementCodeuiColor3fVertex3fSUN = uintptr(getProcAddr(\"glReplacementCodeuiColor3fVertex3fSUN\"))\n\tgpReplacementCodeuiColor3fVertex3fvSUN = uintptr(getProcAddr(\"glReplacementCodeuiColor3fVertex3fvSUN\"))\n\tgpReplacementCodeuiColor4fNormal3fVertex3fSUN = uintptr(getProcAddr(\"glReplacementCodeuiColor4fNormal3fVertex3fSUN\"))\n\tgpReplacementCodeuiColor4fNormal3fVertex3fvSUN = uintptr(getProcAddr(\"glReplacementCodeuiColor4fNormal3fVertex3fvSUN\"))\n\tgpReplacementCodeuiColor4ubVertex3fSUN = uintptr(getProcAddr(\"glReplacementCodeuiColor4ubVertex3fSUN\"))\n\tgpReplacementCodeuiColor4ubVertex3fvSUN = uintptr(getProcAddr(\"glReplacementCodeuiColor4ubVertex3fvSUN\"))\n\tgpReplacementCodeuiNormal3fVertex3fSUN = uintptr(getProcAddr(\"glReplacementCodeuiNormal3fVertex3fSUN\"))\n\tgpReplacementCodeuiNormal3fVertex3fvSUN = uintptr(getProcAddr(\"glReplacementCodeuiNormal3fVertex3fvSUN\"))\n\tgpReplacementCodeuiSUN = uintptr(getProcAddr(\"glReplacementCodeuiSUN\"))\n\tgpReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN = uintptr(getProcAddr(\"glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN\"))\n\tgpReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN = uintptr(getProcAddr(\"glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN\"))\n\tgpReplacementCodeuiTexCoord2fNormal3fVertex3fSUN = uintptr(getProcAddr(\"glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN\"))\n\tgpReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN = uintptr(getProcAddr(\"glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN\"))\n\tgpReplacementCodeuiTexCoord2fVertex3fSUN = uintptr(getProcAddr(\"glReplacementCodeuiTexCoord2fVertex3fSUN\"))\n\tgpReplacementCodeuiTexCoord2fVertex3fvSUN = uintptr(getProcAddr(\"glReplacementCodeuiTexCoord2fVertex3fvSUN\"))\n\tgpReplacementCodeuiVertex3fSUN = uintptr(getProcAddr(\"glReplacementCodeuiVertex3fSUN\"))\n\tgpReplacementCodeuiVertex3fvSUN = uintptr(getProcAddr(\"glReplacementCodeuiVertex3fvSUN\"))\n\tgpReplacementCodeuivSUN = uintptr(getProcAddr(\"glReplacementCodeuivSUN\"))\n\tgpReplacementCodeusSUN = uintptr(getProcAddr(\"glReplacementCodeusSUN\"))\n\tgpReplacementCodeusvSUN = uintptr(getProcAddr(\"glReplacementCodeusvSUN\"))\n\tgpRequestResidentProgramsNV = uintptr(getProcAddr(\"glRequestResidentProgramsNV\"))\n\tgpResetHistogramEXT = uintptr(getProcAddr(\"glResetHistogramEXT\"))\n\tgpResetMinmaxEXT = uintptr(getProcAddr(\"glResetMinmaxEXT\"))\n\tgpResizeBuffersMESA = uintptr(getProcAddr(\"glResizeBuffersMESA\"))\n\tgpResolveDepthValuesNV = uintptr(getProcAddr(\"glResolveDepthValuesNV\"))\n\tgpResumeTransformFeedback = uintptr(getProcAddr(\"glResumeTransformFeedback\"))\n\tgpResumeTransformFeedbackNV = uintptr(getProcAddr(\"glResumeTransformFeedbackNV\"))\n\tgpRotated = uintptr(getProcAddr(\"glRotated\"))\n\tif gpRotated == 0 {\n\t\treturn errors.New(\"glRotated\")\n\t}\n\tgpRotatef = uintptr(getProcAddr(\"glRotatef\"))\n\tif gpRotatef == 0 {\n\t\treturn errors.New(\"glRotatef\")\n\t}\n\tgpRotatexOES = uintptr(getProcAddr(\"glRotatexOES\"))\n\tgpSampleCoverage = uintptr(getProcAddr(\"glSampleCoverage\"))\n\tif gpSampleCoverage == 0 {\n\t\treturn errors.New(\"glSampleCoverage\")\n\t}\n\tgpSampleCoverageARB = uintptr(getProcAddr(\"glSampleCoverageARB\"))\n\tgpSampleCoveragexOES = uintptr(getProcAddr(\"glSampleCoveragexOES\"))\n\tgpSampleMapATI = uintptr(getProcAddr(\"glSampleMapATI\"))\n\tgpSampleMaskEXT = uintptr(getProcAddr(\"glSampleMaskEXT\"))\n\tgpSampleMaskIndexedNV = uintptr(getProcAddr(\"glSampleMaskIndexedNV\"))\n\tgpSampleMaskSGIS = uintptr(getProcAddr(\"glSampleMaskSGIS\"))\n\tgpSampleMaski = uintptr(getProcAddr(\"glSampleMaski\"))\n\tgpSamplePatternEXT = uintptr(getProcAddr(\"glSamplePatternEXT\"))\n\tgpSamplePatternSGIS = uintptr(getProcAddr(\"glSamplePatternSGIS\"))\n\tgpSamplerParameterIiv = uintptr(getProcAddr(\"glSamplerParameterIiv\"))\n\tgpSamplerParameterIuiv = uintptr(getProcAddr(\"glSamplerParameterIuiv\"))\n\tgpSamplerParameterf = uintptr(getProcAddr(\"glSamplerParameterf\"))\n\tgpSamplerParameterfv = uintptr(getProcAddr(\"glSamplerParameterfv\"))\n\tgpSamplerParameteri = uintptr(getProcAddr(\"glSamplerParameteri\"))\n\tgpSamplerParameteriv = uintptr(getProcAddr(\"glSamplerParameteriv\"))\n\tgpScaled = uintptr(getProcAddr(\"glScaled\"))\n\tif gpScaled == 0 {\n\t\treturn errors.New(\"glScaled\")\n\t}\n\tgpScalef = uintptr(getProcAddr(\"glScalef\"))\n\tif gpScalef == 0 {\n\t\treturn errors.New(\"glScalef\")\n\t}\n\tgpScalexOES = uintptr(getProcAddr(\"glScalexOES\"))\n\tgpScissor = uintptr(getProcAddr(\"glScissor\"))\n\tif gpScissor == 0 {\n\t\treturn errors.New(\"glScissor\")\n\t}\n\tgpScissorArrayv = uintptr(getProcAddr(\"glScissorArrayv\"))\n\tgpScissorIndexed = uintptr(getProcAddr(\"glScissorIndexed\"))\n\tgpScissorIndexedv = uintptr(getProcAddr(\"glScissorIndexedv\"))\n\tgpSecondaryColor3b = uintptr(getProcAddr(\"glSecondaryColor3b\"))\n\tif gpSecondaryColor3b == 0 {\n\t\treturn errors.New(\"glSecondaryColor3b\")\n\t}\n\tgpSecondaryColor3bEXT = uintptr(getProcAddr(\"glSecondaryColor3bEXT\"))\n\tgpSecondaryColor3bv = uintptr(getProcAddr(\"glSecondaryColor3bv\"))\n\tif gpSecondaryColor3bv == 0 {\n\t\treturn errors.New(\"glSecondaryColor3bv\")\n\t}\n\tgpSecondaryColor3bvEXT = uintptr(getProcAddr(\"glSecondaryColor3bvEXT\"))\n\tgpSecondaryColor3d = uintptr(getProcAddr(\"glSecondaryColor3d\"))\n\tif gpSecondaryColor3d == 0 {\n\t\treturn errors.New(\"glSecondaryColor3d\")\n\t}\n\tgpSecondaryColor3dEXT = uintptr(getProcAddr(\"glSecondaryColor3dEXT\"))\n\tgpSecondaryColor3dv = uintptr(getProcAddr(\"glSecondaryColor3dv\"))\n\tif gpSecondaryColor3dv == 0 {\n\t\treturn errors.New(\"glSecondaryColor3dv\")\n\t}\n\tgpSecondaryColor3dvEXT = uintptr(getProcAddr(\"glSecondaryColor3dvEXT\"))\n\tgpSecondaryColor3f = uintptr(getProcAddr(\"glSecondaryColor3f\"))\n\tif gpSecondaryColor3f == 0 {\n\t\treturn errors.New(\"glSecondaryColor3f\")\n\t}\n\tgpSecondaryColor3fEXT = uintptr(getProcAddr(\"glSecondaryColor3fEXT\"))\n\tgpSecondaryColor3fv = uintptr(getProcAddr(\"glSecondaryColor3fv\"))\n\tif gpSecondaryColor3fv == 0 {\n\t\treturn errors.New(\"glSecondaryColor3fv\")\n\t}\n\tgpSecondaryColor3fvEXT = uintptr(getProcAddr(\"glSecondaryColor3fvEXT\"))\n\tgpSecondaryColor3hNV = uintptr(getProcAddr(\"glSecondaryColor3hNV\"))\n\tgpSecondaryColor3hvNV = uintptr(getProcAddr(\"glSecondaryColor3hvNV\"))\n\tgpSecondaryColor3i = uintptr(getProcAddr(\"glSecondaryColor3i\"))\n\tif gpSecondaryColor3i == 0 {\n\t\treturn errors.New(\"glSecondaryColor3i\")\n\t}\n\tgpSecondaryColor3iEXT = uintptr(getProcAddr(\"glSecondaryColor3iEXT\"))\n\tgpSecondaryColor3iv = uintptr(getProcAddr(\"glSecondaryColor3iv\"))\n\tif gpSecondaryColor3iv == 0 {\n\t\treturn errors.New(\"glSecondaryColor3iv\")\n\t}\n\tgpSecondaryColor3ivEXT = uintptr(getProcAddr(\"glSecondaryColor3ivEXT\"))\n\tgpSecondaryColor3s = uintptr(getProcAddr(\"glSecondaryColor3s\"))\n\tif gpSecondaryColor3s == 0 {\n\t\treturn errors.New(\"glSecondaryColor3s\")\n\t}\n\tgpSecondaryColor3sEXT = uintptr(getProcAddr(\"glSecondaryColor3sEXT\"))\n\tgpSecondaryColor3sv = uintptr(getProcAddr(\"glSecondaryColor3sv\"))\n\tif gpSecondaryColor3sv == 0 {\n\t\treturn errors.New(\"glSecondaryColor3sv\")\n\t}\n\tgpSecondaryColor3svEXT = uintptr(getProcAddr(\"glSecondaryColor3svEXT\"))\n\tgpSecondaryColor3ub = uintptr(getProcAddr(\"glSecondaryColor3ub\"))\n\tif gpSecondaryColor3ub == 0 {\n\t\treturn errors.New(\"glSecondaryColor3ub\")\n\t}\n\tgpSecondaryColor3ubEXT = uintptr(getProcAddr(\"glSecondaryColor3ubEXT\"))\n\tgpSecondaryColor3ubv = uintptr(getProcAddr(\"glSecondaryColor3ubv\"))\n\tif gpSecondaryColor3ubv == 0 {\n\t\treturn errors.New(\"glSecondaryColor3ubv\")\n\t}\n\tgpSecondaryColor3ubvEXT = uintptr(getProcAddr(\"glSecondaryColor3ubvEXT\"))\n\tgpSecondaryColor3ui = uintptr(getProcAddr(\"glSecondaryColor3ui\"))\n\tif gpSecondaryColor3ui == 0 {\n\t\treturn errors.New(\"glSecondaryColor3ui\")\n\t}\n\tgpSecondaryColor3uiEXT = uintptr(getProcAddr(\"glSecondaryColor3uiEXT\"))\n\tgpSecondaryColor3uiv = uintptr(getProcAddr(\"glSecondaryColor3uiv\"))\n\tif gpSecondaryColor3uiv == 0 {\n\t\treturn errors.New(\"glSecondaryColor3uiv\")\n\t}\n\tgpSecondaryColor3uivEXT = uintptr(getProcAddr(\"glSecondaryColor3uivEXT\"))\n\tgpSecondaryColor3us = uintptr(getProcAddr(\"glSecondaryColor3us\"))\n\tif gpSecondaryColor3us == 0 {\n\t\treturn errors.New(\"glSecondaryColor3us\")\n\t}\n\tgpSecondaryColor3usEXT = uintptr(getProcAddr(\"glSecondaryColor3usEXT\"))\n\tgpSecondaryColor3usv = uintptr(getProcAddr(\"glSecondaryColor3usv\"))\n\tif gpSecondaryColor3usv == 0 {\n\t\treturn errors.New(\"glSecondaryColor3usv\")\n\t}\n\tgpSecondaryColor3usvEXT = uintptr(getProcAddr(\"glSecondaryColor3usvEXT\"))\n\tgpSecondaryColorFormatNV = uintptr(getProcAddr(\"glSecondaryColorFormatNV\"))\n\tgpSecondaryColorPointer = uintptr(getProcAddr(\"glSecondaryColorPointer\"))\n\tif gpSecondaryColorPointer == 0 {\n\t\treturn errors.New(\"glSecondaryColorPointer\")\n\t}\n\tgpSecondaryColorPointerEXT = uintptr(getProcAddr(\"glSecondaryColorPointerEXT\"))\n\tgpSecondaryColorPointerListIBM = uintptr(getProcAddr(\"glSecondaryColorPointerListIBM\"))\n\tgpSelectBuffer = uintptr(getProcAddr(\"glSelectBuffer\"))\n\tif gpSelectBuffer == 0 {\n\t\treturn errors.New(\"glSelectBuffer\")\n\t}\n\tgpSelectPerfMonitorCountersAMD = uintptr(getProcAddr(\"glSelectPerfMonitorCountersAMD\"))\n\tgpSemaphoreParameterui64vEXT = uintptr(getProcAddr(\"glSemaphoreParameterui64vEXT\"))\n\tgpSeparableFilter2DEXT = uintptr(getProcAddr(\"glSeparableFilter2DEXT\"))\n\tgpSetFenceAPPLE = uintptr(getProcAddr(\"glSetFenceAPPLE\"))\n\tgpSetFenceNV = uintptr(getProcAddr(\"glSetFenceNV\"))\n\tgpSetFragmentShaderConstantATI = uintptr(getProcAddr(\"glSetFragmentShaderConstantATI\"))\n\tgpSetInvariantEXT = uintptr(getProcAddr(\"glSetInvariantEXT\"))\n\tgpSetLocalConstantEXT = uintptr(getProcAddr(\"glSetLocalConstantEXT\"))\n\tgpSetMultisamplefvAMD = uintptr(getProcAddr(\"glSetMultisamplefvAMD\"))\n\tgpShadeModel = uintptr(getProcAddr(\"glShadeModel\"))\n\tif gpShadeModel == 0 {\n\t\treturn errors.New(\"glShadeModel\")\n\t}\n\tgpShaderBinary = uintptr(getProcAddr(\"glShaderBinary\"))\n\tgpShaderOp1EXT = uintptr(getProcAddr(\"glShaderOp1EXT\"))\n\tgpShaderOp2EXT = uintptr(getProcAddr(\"glShaderOp2EXT\"))\n\tgpShaderOp3EXT = uintptr(getProcAddr(\"glShaderOp3EXT\"))\n\tgpShaderSource = uintptr(getProcAddr(\"glShaderSource\"))\n\tif gpShaderSource == 0 {\n\t\treturn errors.New(\"glShaderSource\")\n\t}\n\tgpShaderSourceARB = uintptr(getProcAddr(\"glShaderSourceARB\"))\n\tgpShaderStorageBlockBinding = uintptr(getProcAddr(\"glShaderStorageBlockBinding\"))\n\tgpSharpenTexFuncSGIS = uintptr(getProcAddr(\"glSharpenTexFuncSGIS\"))\n\tgpSignalSemaphoreEXT = uintptr(getProcAddr(\"glSignalSemaphoreEXT\"))\n\tgpSignalVkFenceNV = uintptr(getProcAddr(\"glSignalVkFenceNV\"))\n\tgpSignalVkSemaphoreNV = uintptr(getProcAddr(\"glSignalVkSemaphoreNV\"))\n\tgpSpecializeShaderARB = uintptr(getProcAddr(\"glSpecializeShaderARB\"))\n\tgpSpriteParameterfSGIX = uintptr(getProcAddr(\"glSpriteParameterfSGIX\"))\n\tgpSpriteParameterfvSGIX = uintptr(getProcAddr(\"glSpriteParameterfvSGIX\"))\n\tgpSpriteParameteriSGIX = uintptr(getProcAddr(\"glSpriteParameteriSGIX\"))\n\tgpSpriteParameterivSGIX = uintptr(getProcAddr(\"glSpriteParameterivSGIX\"))\n\tgpStartInstrumentsSGIX = uintptr(getProcAddr(\"glStartInstrumentsSGIX\"))\n\tgpStateCaptureNV = uintptr(getProcAddr(\"glStateCaptureNV\"))\n\tgpStencilClearTagEXT = uintptr(getProcAddr(\"glStencilClearTagEXT\"))\n\tgpStencilFillPathInstancedNV = uintptr(getProcAddr(\"glStencilFillPathInstancedNV\"))\n\tgpStencilFillPathNV = uintptr(getProcAddr(\"glStencilFillPathNV\"))\n\tgpStencilFunc = uintptr(getProcAddr(\"glStencilFunc\"))\n\tif gpStencilFunc == 0 {\n\t\treturn errors.New(\"glStencilFunc\")\n\t}\n\tgpStencilFuncSeparate = uintptr(getProcAddr(\"glStencilFuncSeparate\"))\n\tif gpStencilFuncSeparate == 0 {\n\t\treturn errors.New(\"glStencilFuncSeparate\")\n\t}\n\tgpStencilFuncSeparateATI = uintptr(getProcAddr(\"glStencilFuncSeparateATI\"))\n\tgpStencilMask = uintptr(getProcAddr(\"glStencilMask\"))\n\tif gpStencilMask == 0 {\n\t\treturn errors.New(\"glStencilMask\")\n\t}\n\tgpStencilMaskSeparate = uintptr(getProcAddr(\"glStencilMaskSeparate\"))\n\tif gpStencilMaskSeparate == 0 {\n\t\treturn errors.New(\"glStencilMaskSeparate\")\n\t}\n\tgpStencilOp = uintptr(getProcAddr(\"glStencilOp\"))\n\tif gpStencilOp == 0 {\n\t\treturn errors.New(\"glStencilOp\")\n\t}\n\tgpStencilOpSeparate = uintptr(getProcAddr(\"glStencilOpSeparate\"))\n\tif gpStencilOpSeparate == 0 {\n\t\treturn errors.New(\"glStencilOpSeparate\")\n\t}\n\tgpStencilOpSeparateATI = uintptr(getProcAddr(\"glStencilOpSeparateATI\"))\n\tgpStencilOpValueAMD = uintptr(getProcAddr(\"glStencilOpValueAMD\"))\n\tgpStencilStrokePathInstancedNV = uintptr(getProcAddr(\"glStencilStrokePathInstancedNV\"))\n\tgpStencilStrokePathNV = uintptr(getProcAddr(\"glStencilStrokePathNV\"))\n\tgpStencilThenCoverFillPathInstancedNV = uintptr(getProcAddr(\"glStencilThenCoverFillPathInstancedNV\"))\n\tgpStencilThenCoverFillPathNV = uintptr(getProcAddr(\"glStencilThenCoverFillPathNV\"))\n\tgpStencilThenCoverStrokePathInstancedNV = uintptr(getProcAddr(\"glStencilThenCoverStrokePathInstancedNV\"))\n\tgpStencilThenCoverStrokePathNV = uintptr(getProcAddr(\"glStencilThenCoverStrokePathNV\"))\n\tgpStopInstrumentsSGIX = uintptr(getProcAddr(\"glStopInstrumentsSGIX\"))\n\tgpStringMarkerGREMEDY = uintptr(getProcAddr(\"glStringMarkerGREMEDY\"))\n\tgpSubpixelPrecisionBiasNV = uintptr(getProcAddr(\"glSubpixelPrecisionBiasNV\"))\n\tgpSwizzleEXT = uintptr(getProcAddr(\"glSwizzleEXT\"))\n\tgpSyncTextureINTEL = uintptr(getProcAddr(\"glSyncTextureINTEL\"))\n\tgpTagSampleBufferSGIX = uintptr(getProcAddr(\"glTagSampleBufferSGIX\"))\n\tgpTangent3bEXT = uintptr(getProcAddr(\"glTangent3bEXT\"))\n\tgpTangent3bvEXT = uintptr(getProcAddr(\"glTangent3bvEXT\"))\n\tgpTangent3dEXT = uintptr(getProcAddr(\"glTangent3dEXT\"))\n\tgpTangent3dvEXT = uintptr(getProcAddr(\"glTangent3dvEXT\"))\n\tgpTangent3fEXT = uintptr(getProcAddr(\"glTangent3fEXT\"))\n\tgpTangent3fvEXT = uintptr(getProcAddr(\"glTangent3fvEXT\"))\n\tgpTangent3iEXT = uintptr(getProcAddr(\"glTangent3iEXT\"))\n\tgpTangent3ivEXT = uintptr(getProcAddr(\"glTangent3ivEXT\"))\n\tgpTangent3sEXT = uintptr(getProcAddr(\"glTangent3sEXT\"))\n\tgpTangent3svEXT = uintptr(getProcAddr(\"glTangent3svEXT\"))\n\tgpTangentPointerEXT = uintptr(getProcAddr(\"glTangentPointerEXT\"))\n\tgpTbufferMask3DFX = uintptr(getProcAddr(\"glTbufferMask3DFX\"))\n\tgpTessellationFactorAMD = uintptr(getProcAddr(\"glTessellationFactorAMD\"))\n\tgpTessellationModeAMD = uintptr(getProcAddr(\"glTessellationModeAMD\"))\n\tgpTestFenceAPPLE = uintptr(getProcAddr(\"glTestFenceAPPLE\"))\n\tgpTestFenceNV = uintptr(getProcAddr(\"glTestFenceNV\"))\n\tgpTestObjectAPPLE = uintptr(getProcAddr(\"glTestObjectAPPLE\"))\n\tgpTexBufferARB = uintptr(getProcAddr(\"glTexBufferARB\"))\n\tgpTexBufferEXT = uintptr(getProcAddr(\"glTexBufferEXT\"))\n\tgpTexBufferRange = uintptr(getProcAddr(\"glTexBufferRange\"))\n\tgpTexBumpParameterfvATI = uintptr(getProcAddr(\"glTexBumpParameterfvATI\"))\n\tgpTexBumpParameterivATI = uintptr(getProcAddr(\"glTexBumpParameterivATI\"))\n\tgpTexCoord1bOES = uintptr(getProcAddr(\"glTexCoord1bOES\"))\n\tgpTexCoord1bvOES = uintptr(getProcAddr(\"glTexCoord1bvOES\"))\n\tgpTexCoord1d = uintptr(getProcAddr(\"glTexCoord1d\"))\n\tif gpTexCoord1d == 0 {\n\t\treturn errors.New(\"glTexCoord1d\")\n\t}\n\tgpTexCoord1dv = uintptr(getProcAddr(\"glTexCoord1dv\"))\n\tif gpTexCoord1dv == 0 {\n\t\treturn errors.New(\"glTexCoord1dv\")\n\t}\n\tgpTexCoord1f = uintptr(getProcAddr(\"glTexCoord1f\"))\n\tif gpTexCoord1f == 0 {\n\t\treturn errors.New(\"glTexCoord1f\")\n\t}\n\tgpTexCoord1fv = uintptr(getProcAddr(\"glTexCoord1fv\"))\n\tif gpTexCoord1fv == 0 {\n\t\treturn errors.New(\"glTexCoord1fv\")\n\t}\n\tgpTexCoord1hNV = uintptr(getProcAddr(\"glTexCoord1hNV\"))\n\tgpTexCoord1hvNV = uintptr(getProcAddr(\"glTexCoord1hvNV\"))\n\tgpTexCoord1i = uintptr(getProcAddr(\"glTexCoord1i\"))\n\tif gpTexCoord1i == 0 {\n\t\treturn errors.New(\"glTexCoord1i\")\n\t}\n\tgpTexCoord1iv = uintptr(getProcAddr(\"glTexCoord1iv\"))\n\tif gpTexCoord1iv == 0 {\n\t\treturn errors.New(\"glTexCoord1iv\")\n\t}\n\tgpTexCoord1s = uintptr(getProcAddr(\"glTexCoord1s\"))\n\tif gpTexCoord1s == 0 {\n\t\treturn errors.New(\"glTexCoord1s\")\n\t}\n\tgpTexCoord1sv = uintptr(getProcAddr(\"glTexCoord1sv\"))\n\tif gpTexCoord1sv == 0 {\n\t\treturn errors.New(\"glTexCoord1sv\")\n\t}\n\tgpTexCoord1xOES = uintptr(getProcAddr(\"glTexCoord1xOES\"))\n\tgpTexCoord1xvOES = uintptr(getProcAddr(\"glTexCoord1xvOES\"))\n\tgpTexCoord2bOES = uintptr(getProcAddr(\"glTexCoord2bOES\"))\n\tgpTexCoord2bvOES = uintptr(getProcAddr(\"glTexCoord2bvOES\"))\n\tgpTexCoord2d = uintptr(getProcAddr(\"glTexCoord2d\"))\n\tif gpTexCoord2d == 0 {\n\t\treturn errors.New(\"glTexCoord2d\")\n\t}\n\tgpTexCoord2dv = uintptr(getProcAddr(\"glTexCoord2dv\"))\n\tif gpTexCoord2dv == 0 {\n\t\treturn errors.New(\"glTexCoord2dv\")\n\t}\n\tgpTexCoord2f = uintptr(getProcAddr(\"glTexCoord2f\"))\n\tif gpTexCoord2f == 0 {\n\t\treturn errors.New(\"glTexCoord2f\")\n\t}\n\tgpTexCoord2fColor3fVertex3fSUN = uintptr(getProcAddr(\"glTexCoord2fColor3fVertex3fSUN\"))\n\tgpTexCoord2fColor3fVertex3fvSUN = uintptr(getProcAddr(\"glTexCoord2fColor3fVertex3fvSUN\"))\n\tgpTexCoord2fColor4fNormal3fVertex3fSUN = uintptr(getProcAddr(\"glTexCoord2fColor4fNormal3fVertex3fSUN\"))\n\tgpTexCoord2fColor4fNormal3fVertex3fvSUN = uintptr(getProcAddr(\"glTexCoord2fColor4fNormal3fVertex3fvSUN\"))\n\tgpTexCoord2fColor4ubVertex3fSUN = uintptr(getProcAddr(\"glTexCoord2fColor4ubVertex3fSUN\"))\n\tgpTexCoord2fColor4ubVertex3fvSUN = uintptr(getProcAddr(\"glTexCoord2fColor4ubVertex3fvSUN\"))\n\tgpTexCoord2fNormal3fVertex3fSUN = uintptr(getProcAddr(\"glTexCoord2fNormal3fVertex3fSUN\"))\n\tgpTexCoord2fNormal3fVertex3fvSUN = uintptr(getProcAddr(\"glTexCoord2fNormal3fVertex3fvSUN\"))\n\tgpTexCoord2fVertex3fSUN = uintptr(getProcAddr(\"glTexCoord2fVertex3fSUN\"))\n\tgpTexCoord2fVertex3fvSUN = uintptr(getProcAddr(\"glTexCoord2fVertex3fvSUN\"))\n\tgpTexCoord2fv = uintptr(getProcAddr(\"glTexCoord2fv\"))\n\tif gpTexCoord2fv == 0 {\n\t\treturn errors.New(\"glTexCoord2fv\")\n\t}\n\tgpTexCoord2hNV = uintptr(getProcAddr(\"glTexCoord2hNV\"))\n\tgpTexCoord2hvNV = uintptr(getProcAddr(\"glTexCoord2hvNV\"))\n\tgpTexCoord2i = uintptr(getProcAddr(\"glTexCoord2i\"))\n\tif gpTexCoord2i == 0 {\n\t\treturn errors.New(\"glTexCoord2i\")\n\t}\n\tgpTexCoord2iv = uintptr(getProcAddr(\"glTexCoord2iv\"))\n\tif gpTexCoord2iv == 0 {\n\t\treturn errors.New(\"glTexCoord2iv\")\n\t}\n\tgpTexCoord2s = uintptr(getProcAddr(\"glTexCoord2s\"))\n\tif gpTexCoord2s == 0 {\n\t\treturn errors.New(\"glTexCoord2s\")\n\t}\n\tgpTexCoord2sv = uintptr(getProcAddr(\"glTexCoord2sv\"))\n\tif gpTexCoord2sv == 0 {\n\t\treturn errors.New(\"glTexCoord2sv\")\n\t}\n\tgpTexCoord2xOES = uintptr(getProcAddr(\"glTexCoord2xOES\"))\n\tgpTexCoord2xvOES = uintptr(getProcAddr(\"glTexCoord2xvOES\"))\n\tgpTexCoord3bOES = uintptr(getProcAddr(\"glTexCoord3bOES\"))\n\tgpTexCoord3bvOES = uintptr(getProcAddr(\"glTexCoord3bvOES\"))\n\tgpTexCoord3d = uintptr(getProcAddr(\"glTexCoord3d\"))\n\tif gpTexCoord3d == 0 {\n\t\treturn errors.New(\"glTexCoord3d\")\n\t}\n\tgpTexCoord3dv = uintptr(getProcAddr(\"glTexCoord3dv\"))\n\tif gpTexCoord3dv == 0 {\n\t\treturn errors.New(\"glTexCoord3dv\")\n\t}\n\tgpTexCoord3f = uintptr(getProcAddr(\"glTexCoord3f\"))\n\tif gpTexCoord3f == 0 {\n\t\treturn errors.New(\"glTexCoord3f\")\n\t}\n\tgpTexCoord3fv = uintptr(getProcAddr(\"glTexCoord3fv\"))\n\tif gpTexCoord3fv == 0 {\n\t\treturn errors.New(\"glTexCoord3fv\")\n\t}\n\tgpTexCoord3hNV = uintptr(getProcAddr(\"glTexCoord3hNV\"))\n\tgpTexCoord3hvNV = uintptr(getProcAddr(\"glTexCoord3hvNV\"))\n\tgpTexCoord3i = uintptr(getProcAddr(\"glTexCoord3i\"))\n\tif gpTexCoord3i == 0 {\n\t\treturn errors.New(\"glTexCoord3i\")\n\t}\n\tgpTexCoord3iv = uintptr(getProcAddr(\"glTexCoord3iv\"))\n\tif gpTexCoord3iv == 0 {\n\t\treturn errors.New(\"glTexCoord3iv\")\n\t}\n\tgpTexCoord3s = uintptr(getProcAddr(\"glTexCoord3s\"))\n\tif gpTexCoord3s == 0 {\n\t\treturn errors.New(\"glTexCoord3s\")\n\t}\n\tgpTexCoord3sv = uintptr(getProcAddr(\"glTexCoord3sv\"))\n\tif gpTexCoord3sv == 0 {\n\t\treturn errors.New(\"glTexCoord3sv\")\n\t}\n\tgpTexCoord3xOES = uintptr(getProcAddr(\"glTexCoord3xOES\"))\n\tgpTexCoord3xvOES = uintptr(getProcAddr(\"glTexCoord3xvOES\"))\n\tgpTexCoord4bOES = uintptr(getProcAddr(\"glTexCoord4bOES\"))\n\tgpTexCoord4bvOES = uintptr(getProcAddr(\"glTexCoord4bvOES\"))\n\tgpTexCoord4d = uintptr(getProcAddr(\"glTexCoord4d\"))\n\tif gpTexCoord4d == 0 {\n\t\treturn errors.New(\"glTexCoord4d\")\n\t}\n\tgpTexCoord4dv = uintptr(getProcAddr(\"glTexCoord4dv\"))\n\tif gpTexCoord4dv == 0 {\n\t\treturn errors.New(\"glTexCoord4dv\")\n\t}\n\tgpTexCoord4f = uintptr(getProcAddr(\"glTexCoord4f\"))\n\tif gpTexCoord4f == 0 {\n\t\treturn errors.New(\"glTexCoord4f\")\n\t}\n\tgpTexCoord4fColor4fNormal3fVertex4fSUN = uintptr(getProcAddr(\"glTexCoord4fColor4fNormal3fVertex4fSUN\"))\n\tgpTexCoord4fColor4fNormal3fVertex4fvSUN = uintptr(getProcAddr(\"glTexCoord4fColor4fNormal3fVertex4fvSUN\"))\n\tgpTexCoord4fVertex4fSUN = uintptr(getProcAddr(\"glTexCoord4fVertex4fSUN\"))\n\tgpTexCoord4fVertex4fvSUN = uintptr(getProcAddr(\"glTexCoord4fVertex4fvSUN\"))\n\tgpTexCoord4fv = uintptr(getProcAddr(\"glTexCoord4fv\"))\n\tif gpTexCoord4fv == 0 {\n\t\treturn errors.New(\"glTexCoord4fv\")\n\t}\n\tgpTexCoord4hNV = uintptr(getProcAddr(\"glTexCoord4hNV\"))\n\tgpTexCoord4hvNV = uintptr(getProcAddr(\"glTexCoord4hvNV\"))\n\tgpTexCoord4i = uintptr(getProcAddr(\"glTexCoord4i\"))\n\tif gpTexCoord4i == 0 {\n\t\treturn errors.New(\"glTexCoord4i\")\n\t}\n\tgpTexCoord4iv = uintptr(getProcAddr(\"glTexCoord4iv\"))\n\tif gpTexCoord4iv == 0 {\n\t\treturn errors.New(\"glTexCoord4iv\")\n\t}\n\tgpTexCoord4s = uintptr(getProcAddr(\"glTexCoord4s\"))\n\tif gpTexCoord4s == 0 {\n\t\treturn errors.New(\"glTexCoord4s\")\n\t}\n\tgpTexCoord4sv = uintptr(getProcAddr(\"glTexCoord4sv\"))\n\tif gpTexCoord4sv == 0 {\n\t\treturn errors.New(\"glTexCoord4sv\")\n\t}\n\tgpTexCoord4xOES = uintptr(getProcAddr(\"glTexCoord4xOES\"))\n\tgpTexCoord4xvOES = uintptr(getProcAddr(\"glTexCoord4xvOES\"))\n\tgpTexCoordFormatNV = uintptr(getProcAddr(\"glTexCoordFormatNV\"))\n\tgpTexCoordPointer = uintptr(getProcAddr(\"glTexCoordPointer\"))\n\tif gpTexCoordPointer == 0 {\n\t\treturn errors.New(\"glTexCoordPointer\")\n\t}\n\tgpTexCoordPointerEXT = uintptr(getProcAddr(\"glTexCoordPointerEXT\"))\n\tgpTexCoordPointerListIBM = uintptr(getProcAddr(\"glTexCoordPointerListIBM\"))\n\tgpTexCoordPointervINTEL = uintptr(getProcAddr(\"glTexCoordPointervINTEL\"))\n\tgpTexEnvf = uintptr(getProcAddr(\"glTexEnvf\"))\n\tif gpTexEnvf == 0 {\n\t\treturn errors.New(\"glTexEnvf\")\n\t}\n\tgpTexEnvfv = uintptr(getProcAddr(\"glTexEnvfv\"))\n\tif gpTexEnvfv == 0 {\n\t\treturn errors.New(\"glTexEnvfv\")\n\t}\n\tgpTexEnvi = uintptr(getProcAddr(\"glTexEnvi\"))\n\tif gpTexEnvi == 0 {\n\t\treturn errors.New(\"glTexEnvi\")\n\t}\n\tgpTexEnviv = uintptr(getProcAddr(\"glTexEnviv\"))\n\tif gpTexEnviv == 0 {\n\t\treturn errors.New(\"glTexEnviv\")\n\t}\n\tgpTexEnvxOES = uintptr(getProcAddr(\"glTexEnvxOES\"))\n\tgpTexEnvxvOES = uintptr(getProcAddr(\"glTexEnvxvOES\"))\n\tgpTexFilterFuncSGIS = uintptr(getProcAddr(\"glTexFilterFuncSGIS\"))\n\tgpTexGend = uintptr(getProcAddr(\"glTexGend\"))\n\tif gpTexGend == 0 {\n\t\treturn errors.New(\"glTexGend\")\n\t}\n\tgpTexGendv = uintptr(getProcAddr(\"glTexGendv\"))\n\tif gpTexGendv == 0 {\n\t\treturn errors.New(\"glTexGendv\")\n\t}\n\tgpTexGenf = uintptr(getProcAddr(\"glTexGenf\"))\n\tif gpTexGenf == 0 {\n\t\treturn errors.New(\"glTexGenf\")\n\t}\n\tgpTexGenfv = uintptr(getProcAddr(\"glTexGenfv\"))\n\tif gpTexGenfv == 0 {\n\t\treturn errors.New(\"glTexGenfv\")\n\t}\n\tgpTexGeni = uintptr(getProcAddr(\"glTexGeni\"))\n\tif gpTexGeni == 0 {\n\t\treturn errors.New(\"glTexGeni\")\n\t}\n\tgpTexGeniv = uintptr(getProcAddr(\"glTexGeniv\"))\n\tif gpTexGeniv == 0 {\n\t\treturn errors.New(\"glTexGeniv\")\n\t}\n\tgpTexGenxOES = uintptr(getProcAddr(\"glTexGenxOES\"))\n\tgpTexGenxvOES = uintptr(getProcAddr(\"glTexGenxvOES\"))\n\tgpTexImage1D = uintptr(getProcAddr(\"glTexImage1D\"))\n\tif gpTexImage1D == 0 {\n\t\treturn errors.New(\"glTexImage1D\")\n\t}\n\tgpTexImage2D = uintptr(getProcAddr(\"glTexImage2D\"))\n\tif gpTexImage2D == 0 {\n\t\treturn errors.New(\"glTexImage2D\")\n\t}\n\tgpTexImage2DMultisample = uintptr(getProcAddr(\"glTexImage2DMultisample\"))\n\tgpTexImage2DMultisampleCoverageNV = uintptr(getProcAddr(\"glTexImage2DMultisampleCoverageNV\"))\n\tgpTexImage3D = uintptr(getProcAddr(\"glTexImage3D\"))\n\tif gpTexImage3D == 0 {\n\t\treturn errors.New(\"glTexImage3D\")\n\t}\n\tgpTexImage3DEXT = uintptr(getProcAddr(\"glTexImage3DEXT\"))\n\tgpTexImage3DMultisample = uintptr(getProcAddr(\"glTexImage3DMultisample\"))\n\tgpTexImage3DMultisampleCoverageNV = uintptr(getProcAddr(\"glTexImage3DMultisampleCoverageNV\"))\n\tgpTexImage4DSGIS = uintptr(getProcAddr(\"glTexImage4DSGIS\"))\n\tgpTexPageCommitmentARB = uintptr(getProcAddr(\"glTexPageCommitmentARB\"))\n\tgpTexParameterIivEXT = uintptr(getProcAddr(\"glTexParameterIivEXT\"))\n\tgpTexParameterIuivEXT = uintptr(getProcAddr(\"glTexParameterIuivEXT\"))\n\tgpTexParameterf = uintptr(getProcAddr(\"glTexParameterf\"))\n\tif gpTexParameterf == 0 {\n\t\treturn errors.New(\"glTexParameterf\")\n\t}\n\tgpTexParameterfv = uintptr(getProcAddr(\"glTexParameterfv\"))\n\tif gpTexParameterfv == 0 {\n\t\treturn errors.New(\"glTexParameterfv\")\n\t}\n\tgpTexParameteri = uintptr(getProcAddr(\"glTexParameteri\"))\n\tif gpTexParameteri == 0 {\n\t\treturn errors.New(\"glTexParameteri\")\n\t}\n\tgpTexParameteriv = uintptr(getProcAddr(\"glTexParameteriv\"))\n\tif gpTexParameteriv == 0 {\n\t\treturn errors.New(\"glTexParameteriv\")\n\t}\n\tgpTexParameterxOES = uintptr(getProcAddr(\"glTexParameterxOES\"))\n\tgpTexParameterxvOES = uintptr(getProcAddr(\"glTexParameterxvOES\"))\n\tgpTexRenderbufferNV = uintptr(getProcAddr(\"glTexRenderbufferNV\"))\n\tgpTexStorage1D = uintptr(getProcAddr(\"glTexStorage1D\"))\n\tgpTexStorage2D = uintptr(getProcAddr(\"glTexStorage2D\"))\n\tgpTexStorage2DMultisample = uintptr(getProcAddr(\"glTexStorage2DMultisample\"))\n\tgpTexStorage3D = uintptr(getProcAddr(\"glTexStorage3D\"))\n\tgpTexStorage3DMultisample = uintptr(getProcAddr(\"glTexStorage3DMultisample\"))\n\tgpTexStorageMem1DEXT = uintptr(getProcAddr(\"glTexStorageMem1DEXT\"))\n\tgpTexStorageMem2DEXT = uintptr(getProcAddr(\"glTexStorageMem2DEXT\"))\n\tgpTexStorageMem2DMultisampleEXT = uintptr(getProcAddr(\"glTexStorageMem2DMultisampleEXT\"))\n\tgpTexStorageMem3DEXT = uintptr(getProcAddr(\"glTexStorageMem3DEXT\"))\n\tgpTexStorageMem3DMultisampleEXT = uintptr(getProcAddr(\"glTexStorageMem3DMultisampleEXT\"))\n\tgpTexStorageSparseAMD = uintptr(getProcAddr(\"glTexStorageSparseAMD\"))\n\tgpTexSubImage1D = uintptr(getProcAddr(\"glTexSubImage1D\"))\n\tif gpTexSubImage1D == 0 {\n\t\treturn errors.New(\"glTexSubImage1D\")\n\t}\n\tgpTexSubImage1DEXT = uintptr(getProcAddr(\"glTexSubImage1DEXT\"))\n\tgpTexSubImage2D = uintptr(getProcAddr(\"glTexSubImage2D\"))\n\tif gpTexSubImage2D == 0 {\n\t\treturn errors.New(\"glTexSubImage2D\")\n\t}\n\tgpTexSubImage2DEXT = uintptr(getProcAddr(\"glTexSubImage2DEXT\"))\n\tgpTexSubImage3D = uintptr(getProcAddr(\"glTexSubImage3D\"))\n\tif gpTexSubImage3D == 0 {\n\t\treturn errors.New(\"glTexSubImage3D\")\n\t}\n\tgpTexSubImage3DEXT = uintptr(getProcAddr(\"glTexSubImage3DEXT\"))\n\tgpTexSubImage4DSGIS = uintptr(getProcAddr(\"glTexSubImage4DSGIS\"))\n\tgpTextureBarrier = uintptr(getProcAddr(\"glTextureBarrier\"))\n\tgpTextureBarrierNV = uintptr(getProcAddr(\"glTextureBarrierNV\"))\n\tgpTextureBuffer = uintptr(getProcAddr(\"glTextureBuffer\"))\n\tgpTextureBufferEXT = uintptr(getProcAddr(\"glTextureBufferEXT\"))\n\tgpTextureBufferRange = uintptr(getProcAddr(\"glTextureBufferRange\"))\n\tgpTextureBufferRangeEXT = uintptr(getProcAddr(\"glTextureBufferRangeEXT\"))\n\tgpTextureColorMaskSGIS = uintptr(getProcAddr(\"glTextureColorMaskSGIS\"))\n\tgpTextureImage1DEXT = uintptr(getProcAddr(\"glTextureImage1DEXT\"))\n\tgpTextureImage2DEXT = uintptr(getProcAddr(\"glTextureImage2DEXT\"))\n\tgpTextureImage2DMultisampleCoverageNV = uintptr(getProcAddr(\"glTextureImage2DMultisampleCoverageNV\"))\n\tgpTextureImage2DMultisampleNV = uintptr(getProcAddr(\"glTextureImage2DMultisampleNV\"))\n\tgpTextureImage3DEXT = uintptr(getProcAddr(\"glTextureImage3DEXT\"))\n\tgpTextureImage3DMultisampleCoverageNV = uintptr(getProcAddr(\"glTextureImage3DMultisampleCoverageNV\"))\n\tgpTextureImage3DMultisampleNV = uintptr(getProcAddr(\"glTextureImage3DMultisampleNV\"))\n\tgpTextureLightEXT = uintptr(getProcAddr(\"glTextureLightEXT\"))\n\tgpTextureMaterialEXT = uintptr(getProcAddr(\"glTextureMaterialEXT\"))\n\tgpTextureNormalEXT = uintptr(getProcAddr(\"glTextureNormalEXT\"))\n\tgpTexturePageCommitmentEXT = uintptr(getProcAddr(\"glTexturePageCommitmentEXT\"))\n\tgpTextureParameterIiv = uintptr(getProcAddr(\"glTextureParameterIiv\"))\n\tgpTextureParameterIivEXT = uintptr(getProcAddr(\"glTextureParameterIivEXT\"))\n\tgpTextureParameterIuiv = uintptr(getProcAddr(\"glTextureParameterIuiv\"))\n\tgpTextureParameterIuivEXT = uintptr(getProcAddr(\"glTextureParameterIuivEXT\"))\n\tgpTextureParameterf = uintptr(getProcAddr(\"glTextureParameterf\"))\n\tgpTextureParameterfEXT = uintptr(getProcAddr(\"glTextureParameterfEXT\"))\n\tgpTextureParameterfv = uintptr(getProcAddr(\"glTextureParameterfv\"))\n\tgpTextureParameterfvEXT = uintptr(getProcAddr(\"glTextureParameterfvEXT\"))\n\tgpTextureParameteri = uintptr(getProcAddr(\"glTextureParameteri\"))\n\tgpTextureParameteriEXT = uintptr(getProcAddr(\"glTextureParameteriEXT\"))\n\tgpTextureParameteriv = uintptr(getProcAddr(\"glTextureParameteriv\"))\n\tgpTextureParameterivEXT = uintptr(getProcAddr(\"glTextureParameterivEXT\"))\n\tgpTextureRangeAPPLE = uintptr(getProcAddr(\"glTextureRangeAPPLE\"))\n\tgpTextureRenderbufferEXT = uintptr(getProcAddr(\"glTextureRenderbufferEXT\"))\n\tgpTextureStorage1D = uintptr(getProcAddr(\"glTextureStorage1D\"))\n\tgpTextureStorage1DEXT = uintptr(getProcAddr(\"glTextureStorage1DEXT\"))\n\tgpTextureStorage2D = uintptr(getProcAddr(\"glTextureStorage2D\"))\n\tgpTextureStorage2DEXT = uintptr(getProcAddr(\"glTextureStorage2DEXT\"))\n\tgpTextureStorage2DMultisample = uintptr(getProcAddr(\"glTextureStorage2DMultisample\"))\n\tgpTextureStorage2DMultisampleEXT = uintptr(getProcAddr(\"glTextureStorage2DMultisampleEXT\"))\n\tgpTextureStorage3D = uintptr(getProcAddr(\"glTextureStorage3D\"))\n\tgpTextureStorage3DEXT = uintptr(getProcAddr(\"glTextureStorage3DEXT\"))\n\tgpTextureStorage3DMultisample = uintptr(getProcAddr(\"glTextureStorage3DMultisample\"))\n\tgpTextureStorage3DMultisampleEXT = uintptr(getProcAddr(\"glTextureStorage3DMultisampleEXT\"))\n\tgpTextureStorageMem1DEXT = uintptr(getProcAddr(\"glTextureStorageMem1DEXT\"))\n\tgpTextureStorageMem2DEXT = uintptr(getProcAddr(\"glTextureStorageMem2DEXT\"))\n\tgpTextureStorageMem2DMultisampleEXT = uintptr(getProcAddr(\"glTextureStorageMem2DMultisampleEXT\"))\n\tgpTextureStorageMem3DEXT = uintptr(getProcAddr(\"glTextureStorageMem3DEXT\"))\n\tgpTextureStorageMem3DMultisampleEXT = uintptr(getProcAddr(\"glTextureStorageMem3DMultisampleEXT\"))\n\tgpTextureStorageSparseAMD = uintptr(getProcAddr(\"glTextureStorageSparseAMD\"))\n\tgpTextureSubImage1D = uintptr(getProcAddr(\"glTextureSubImage1D\"))\n\tgpTextureSubImage1DEXT = uintptr(getProcAddr(\"glTextureSubImage1DEXT\"))\n\tgpTextureSubImage2D = uintptr(getProcAddr(\"glTextureSubImage2D\"))\n\tgpTextureSubImage2DEXT = uintptr(getProcAddr(\"glTextureSubImage2DEXT\"))\n\tgpTextureSubImage3D = uintptr(getProcAddr(\"glTextureSubImage3D\"))\n\tgpTextureSubImage3DEXT = uintptr(getProcAddr(\"glTextureSubImage3DEXT\"))\n\tgpTextureView = uintptr(getProcAddr(\"glTextureView\"))\n\tgpTrackMatrixNV = uintptr(getProcAddr(\"glTrackMatrixNV\"))\n\tgpTransformFeedbackAttribsNV = uintptr(getProcAddr(\"glTransformFeedbackAttribsNV\"))\n\tgpTransformFeedbackBufferBase = uintptr(getProcAddr(\"glTransformFeedbackBufferBase\"))\n\tgpTransformFeedbackBufferRange = uintptr(getProcAddr(\"glTransformFeedbackBufferRange\"))\n\tgpTransformFeedbackStreamAttribsNV = uintptr(getProcAddr(\"glTransformFeedbackStreamAttribsNV\"))\n\tgpTransformFeedbackVaryingsEXT = uintptr(getProcAddr(\"glTransformFeedbackVaryingsEXT\"))\n\tgpTransformFeedbackVaryingsNV = uintptr(getProcAddr(\"glTransformFeedbackVaryingsNV\"))\n\tgpTransformPathNV = uintptr(getProcAddr(\"glTransformPathNV\"))\n\tgpTranslated = uintptr(getProcAddr(\"glTranslated\"))\n\tif gpTranslated == 0 {\n\t\treturn errors.New(\"glTranslated\")\n\t}\n\tgpTranslatef = uintptr(getProcAddr(\"glTranslatef\"))\n\tif gpTranslatef == 0 {\n\t\treturn errors.New(\"glTranslatef\")\n\t}\n\tgpTranslatexOES = uintptr(getProcAddr(\"glTranslatexOES\"))\n\tgpUniform1d = uintptr(getProcAddr(\"glUniform1d\"))\n\tgpUniform1dv = uintptr(getProcAddr(\"glUniform1dv\"))\n\tgpUniform1f = uintptr(getProcAddr(\"glUniform1f\"))\n\tif gpUniform1f == 0 {\n\t\treturn errors.New(\"glUniform1f\")\n\t}\n\tgpUniform1fARB = uintptr(getProcAddr(\"glUniform1fARB\"))\n\tgpUniform1fv = uintptr(getProcAddr(\"glUniform1fv\"))\n\tif gpUniform1fv == 0 {\n\t\treturn errors.New(\"glUniform1fv\")\n\t}\n\tgpUniform1fvARB = uintptr(getProcAddr(\"glUniform1fvARB\"))\n\tgpUniform1i = uintptr(getProcAddr(\"glUniform1i\"))\n\tif gpUniform1i == 0 {\n\t\treturn errors.New(\"glUniform1i\")\n\t}\n\tgpUniform1i64ARB = uintptr(getProcAddr(\"glUniform1i64ARB\"))\n\tgpUniform1i64NV = uintptr(getProcAddr(\"glUniform1i64NV\"))\n\tgpUniform1i64vARB = uintptr(getProcAddr(\"glUniform1i64vARB\"))\n\tgpUniform1i64vNV = uintptr(getProcAddr(\"glUniform1i64vNV\"))\n\tgpUniform1iARB = uintptr(getProcAddr(\"glUniform1iARB\"))\n\tgpUniform1iv = uintptr(getProcAddr(\"glUniform1iv\"))\n\tif gpUniform1iv == 0 {\n\t\treturn errors.New(\"glUniform1iv\")\n\t}\n\tgpUniform1ivARB = uintptr(getProcAddr(\"glUniform1ivARB\"))\n\tgpUniform1ui64ARB = uintptr(getProcAddr(\"glUniform1ui64ARB\"))\n\tgpUniform1ui64NV = uintptr(getProcAddr(\"glUniform1ui64NV\"))\n\tgpUniform1ui64vARB = uintptr(getProcAddr(\"glUniform1ui64vARB\"))\n\tgpUniform1ui64vNV = uintptr(getProcAddr(\"glUniform1ui64vNV\"))\n\tgpUniform1uiEXT = uintptr(getProcAddr(\"glUniform1uiEXT\"))\n\tgpUniform1uivEXT = uintptr(getProcAddr(\"glUniform1uivEXT\"))\n\tgpUniform2d = uintptr(getProcAddr(\"glUniform2d\"))\n\tgpUniform2dv = uintptr(getProcAddr(\"glUniform2dv\"))\n\tgpUniform2f = uintptr(getProcAddr(\"glUniform2f\"))\n\tif gpUniform2f == 0 {\n\t\treturn errors.New(\"glUniform2f\")\n\t}\n\tgpUniform2fARB = uintptr(getProcAddr(\"glUniform2fARB\"))\n\tgpUniform2fv = uintptr(getProcAddr(\"glUniform2fv\"))\n\tif gpUniform2fv == 0 {\n\t\treturn errors.New(\"glUniform2fv\")\n\t}\n\tgpUniform2fvARB = uintptr(getProcAddr(\"glUniform2fvARB\"))\n\tgpUniform2i = uintptr(getProcAddr(\"glUniform2i\"))\n\tif gpUniform2i == 0 {\n\t\treturn errors.New(\"glUniform2i\")\n\t}\n\tgpUniform2i64ARB = uintptr(getProcAddr(\"glUniform2i64ARB\"))\n\tgpUniform2i64NV = uintptr(getProcAddr(\"glUniform2i64NV\"))\n\tgpUniform2i64vARB = uintptr(getProcAddr(\"glUniform2i64vARB\"))\n\tgpUniform2i64vNV = uintptr(getProcAddr(\"glUniform2i64vNV\"))\n\tgpUniform2iARB = uintptr(getProcAddr(\"glUniform2iARB\"))\n\tgpUniform2iv = uintptr(getProcAddr(\"glUniform2iv\"))\n\tif gpUniform2iv == 0 {\n\t\treturn errors.New(\"glUniform2iv\")\n\t}\n\tgpUniform2ivARB = uintptr(getProcAddr(\"glUniform2ivARB\"))\n\tgpUniform2ui64ARB = uintptr(getProcAddr(\"glUniform2ui64ARB\"))\n\tgpUniform2ui64NV = uintptr(getProcAddr(\"glUniform2ui64NV\"))\n\tgpUniform2ui64vARB = uintptr(getProcAddr(\"glUniform2ui64vARB\"))\n\tgpUniform2ui64vNV = uintptr(getProcAddr(\"glUniform2ui64vNV\"))\n\tgpUniform2uiEXT = uintptr(getProcAddr(\"glUniform2uiEXT\"))\n\tgpUniform2uivEXT = uintptr(getProcAddr(\"glUniform2uivEXT\"))\n\tgpUniform3d = uintptr(getProcAddr(\"glUniform3d\"))\n\tgpUniform3dv = uintptr(getProcAddr(\"glUniform3dv\"))\n\tgpUniform3f = uintptr(getProcAddr(\"glUniform3f\"))\n\tif gpUniform3f == 0 {\n\t\treturn errors.New(\"glUniform3f\")\n\t}\n\tgpUniform3fARB = uintptr(getProcAddr(\"glUniform3fARB\"))\n\tgpUniform3fv = uintptr(getProcAddr(\"glUniform3fv\"))\n\tif gpUniform3fv == 0 {\n\t\treturn errors.New(\"glUniform3fv\")\n\t}\n\tgpUniform3fvARB = uintptr(getProcAddr(\"glUniform3fvARB\"))\n\tgpUniform3i = uintptr(getProcAddr(\"glUniform3i\"))\n\tif gpUniform3i == 0 {\n\t\treturn errors.New(\"glUniform3i\")\n\t}\n\tgpUniform3i64ARB = uintptr(getProcAddr(\"glUniform3i64ARB\"))\n\tgpUniform3i64NV = uintptr(getProcAddr(\"glUniform3i64NV\"))\n\tgpUniform3i64vARB = uintptr(getProcAddr(\"glUniform3i64vARB\"))\n\tgpUniform3i64vNV = uintptr(getProcAddr(\"glUniform3i64vNV\"))\n\tgpUniform3iARB = uintptr(getProcAddr(\"glUniform3iARB\"))\n\tgpUniform3iv = uintptr(getProcAddr(\"glUniform3iv\"))\n\tif gpUniform3iv == 0 {\n\t\treturn errors.New(\"glUniform3iv\")\n\t}\n\tgpUniform3ivARB = uintptr(getProcAddr(\"glUniform3ivARB\"))\n\tgpUniform3ui64ARB = uintptr(getProcAddr(\"glUniform3ui64ARB\"))\n\tgpUniform3ui64NV = uintptr(getProcAddr(\"glUniform3ui64NV\"))\n\tgpUniform3ui64vARB = uintptr(getProcAddr(\"glUniform3ui64vARB\"))\n\tgpUniform3ui64vNV = uintptr(getProcAddr(\"glUniform3ui64vNV\"))\n\tgpUniform3uiEXT = uintptr(getProcAddr(\"glUniform3uiEXT\"))\n\tgpUniform3uivEXT = uintptr(getProcAddr(\"glUniform3uivEXT\"))\n\tgpUniform4d = uintptr(getProcAddr(\"glUniform4d\"))\n\tgpUniform4dv = uintptr(getProcAddr(\"glUniform4dv\"))\n\tgpUniform4f = uintptr(getProcAddr(\"glUniform4f\"))\n\tif gpUniform4f == 0 {\n\t\treturn errors.New(\"glUniform4f\")\n\t}\n\tgpUniform4fARB = uintptr(getProcAddr(\"glUniform4fARB\"))\n\tgpUniform4fv = uintptr(getProcAddr(\"glUniform4fv\"))\n\tif gpUniform4fv == 0 {\n\t\treturn errors.New(\"glUniform4fv\")\n\t}\n\tgpUniform4fvARB = uintptr(getProcAddr(\"glUniform4fvARB\"))\n\tgpUniform4i = uintptr(getProcAddr(\"glUniform4i\"))\n\tif gpUniform4i == 0 {\n\t\treturn errors.New(\"glUniform4i\")\n\t}\n\tgpUniform4i64ARB = uintptr(getProcAddr(\"glUniform4i64ARB\"))\n\tgpUniform4i64NV = uintptr(getProcAddr(\"glUniform4i64NV\"))\n\tgpUniform4i64vARB = uintptr(getProcAddr(\"glUniform4i64vARB\"))\n\tgpUniform4i64vNV = uintptr(getProcAddr(\"glUniform4i64vNV\"))\n\tgpUniform4iARB = uintptr(getProcAddr(\"glUniform4iARB\"))\n\tgpUniform4iv = uintptr(getProcAddr(\"glUniform4iv\"))\n\tif gpUniform4iv == 0 {\n\t\treturn errors.New(\"glUniform4iv\")\n\t}\n\tgpUniform4ivARB = uintptr(getProcAddr(\"glUniform4ivARB\"))\n\tgpUniform4ui64ARB = uintptr(getProcAddr(\"glUniform4ui64ARB\"))\n\tgpUniform4ui64NV = uintptr(getProcAddr(\"glUniform4ui64NV\"))\n\tgpUniform4ui64vARB = uintptr(getProcAddr(\"glUniform4ui64vARB\"))\n\tgpUniform4ui64vNV = uintptr(getProcAddr(\"glUniform4ui64vNV\"))\n\tgpUniform4uiEXT = uintptr(getProcAddr(\"glUniform4uiEXT\"))\n\tgpUniform4uivEXT = uintptr(getProcAddr(\"glUniform4uivEXT\"))\n\tgpUniformBlockBinding = uintptr(getProcAddr(\"glUniformBlockBinding\"))\n\tgpUniformBufferEXT = uintptr(getProcAddr(\"glUniformBufferEXT\"))\n\tgpUniformHandleui64ARB = uintptr(getProcAddr(\"glUniformHandleui64ARB\"))\n\tgpUniformHandleui64NV = uintptr(getProcAddr(\"glUniformHandleui64NV\"))\n\tgpUniformHandleui64vARB = uintptr(getProcAddr(\"glUniformHandleui64vARB\"))\n\tgpUniformHandleui64vNV = uintptr(getProcAddr(\"glUniformHandleui64vNV\"))\n\tgpUniformMatrix2dv = uintptr(getProcAddr(\"glUniformMatrix2dv\"))\n\tgpUniformMatrix2fv = uintptr(getProcAddr(\"glUniformMatrix2fv\"))\n\tif gpUniformMatrix2fv == 0 {\n\t\treturn errors.New(\"glUniformMatrix2fv\")\n\t}\n\tgpUniformMatrix2fvARB = uintptr(getProcAddr(\"glUniformMatrix2fvARB\"))\n\tgpUniformMatrix2x3dv = uintptr(getProcAddr(\"glUniformMatrix2x3dv\"))\n\tgpUniformMatrix2x3fv = uintptr(getProcAddr(\"glUniformMatrix2x3fv\"))\n\tif gpUniformMatrix2x3fv == 0 {\n\t\treturn errors.New(\"glUniformMatrix2x3fv\")\n\t}\n\tgpUniformMatrix2x4dv = uintptr(getProcAddr(\"glUniformMatrix2x4dv\"))\n\tgpUniformMatrix2x4fv = uintptr(getProcAddr(\"glUniformMatrix2x4fv\"))\n\tif gpUniformMatrix2x4fv == 0 {\n\t\treturn errors.New(\"glUniformMatrix2x4fv\")\n\t}\n\tgpUniformMatrix3dv = uintptr(getProcAddr(\"glUniformMatrix3dv\"))\n\tgpUniformMatrix3fv = uintptr(getProcAddr(\"glUniformMatrix3fv\"))\n\tif gpUniformMatrix3fv == 0 {\n\t\treturn errors.New(\"glUniformMatrix3fv\")\n\t}\n\tgpUniformMatrix3fvARB = uintptr(getProcAddr(\"glUniformMatrix3fvARB\"))\n\tgpUniformMatrix3x2dv = uintptr(getProcAddr(\"glUniformMatrix3x2dv\"))\n\tgpUniformMatrix3x2fv = uintptr(getProcAddr(\"glUniformMatrix3x2fv\"))\n\tif gpUniformMatrix3x2fv == 0 {\n\t\treturn errors.New(\"glUniformMatrix3x2fv\")\n\t}\n\tgpUniformMatrix3x4dv = uintptr(getProcAddr(\"glUniformMatrix3x4dv\"))\n\tgpUniformMatrix3x4fv = uintptr(getProcAddr(\"glUniformMatrix3x4fv\"))\n\tif gpUniformMatrix3x4fv == 0 {\n\t\treturn errors.New(\"glUniformMatrix3x4fv\")\n\t}\n\tgpUniformMatrix4dv = uintptr(getProcAddr(\"glUniformMatrix4dv\"))\n\tgpUniformMatrix4fv = uintptr(getProcAddr(\"glUniformMatrix4fv\"))\n\tif gpUniformMatrix4fv == 0 {\n\t\treturn errors.New(\"glUniformMatrix4fv\")\n\t}\n\tgpUniformMatrix4fvARB = uintptr(getProcAddr(\"glUniformMatrix4fvARB\"))\n\tgpUniformMatrix4x2dv = uintptr(getProcAddr(\"glUniformMatrix4x2dv\"))\n\tgpUniformMatrix4x2fv = uintptr(getProcAddr(\"glUniformMatrix4x2fv\"))\n\tif gpUniformMatrix4x2fv == 0 {\n\t\treturn errors.New(\"glUniformMatrix4x2fv\")\n\t}\n\tgpUniformMatrix4x3dv = uintptr(getProcAddr(\"glUniformMatrix4x3dv\"))\n\tgpUniformMatrix4x3fv = uintptr(getProcAddr(\"glUniformMatrix4x3fv\"))\n\tif gpUniformMatrix4x3fv == 0 {\n\t\treturn errors.New(\"glUniformMatrix4x3fv\")\n\t}\n\tgpUniformSubroutinesuiv = uintptr(getProcAddr(\"glUniformSubroutinesuiv\"))\n\tgpUniformui64NV = uintptr(getProcAddr(\"glUniformui64NV\"))\n\tgpUniformui64vNV = uintptr(getProcAddr(\"glUniformui64vNV\"))\n\tgpUnlockArraysEXT = uintptr(getProcAddr(\"glUnlockArraysEXT\"))\n\tgpUnmapBuffer = uintptr(getProcAddr(\"glUnmapBuffer\"))\n\tif gpUnmapBuffer == 0 {\n\t\treturn errors.New(\"glUnmapBuffer\")\n\t}\n\tgpUnmapBufferARB = uintptr(getProcAddr(\"glUnmapBufferARB\"))\n\tgpUnmapNamedBuffer = uintptr(getProcAddr(\"glUnmapNamedBuffer\"))\n\tgpUnmapNamedBufferEXT = uintptr(getProcAddr(\"glUnmapNamedBufferEXT\"))\n\tgpUnmapObjectBufferATI = uintptr(getProcAddr(\"glUnmapObjectBufferATI\"))\n\tgpUnmapTexture2DINTEL = uintptr(getProcAddr(\"glUnmapTexture2DINTEL\"))\n\tgpUpdateObjectBufferATI = uintptr(getProcAddr(\"glUpdateObjectBufferATI\"))\n\tgpUseProgram = uintptr(getProcAddr(\"glUseProgram\"))\n\tif gpUseProgram == 0 {\n\t\treturn errors.New(\"glUseProgram\")\n\t}\n\tgpUseProgramObjectARB = uintptr(getProcAddr(\"glUseProgramObjectARB\"))\n\tgpUseProgramStages = uintptr(getProcAddr(\"glUseProgramStages\"))\n\tgpUseProgramStagesEXT = uintptr(getProcAddr(\"glUseProgramStagesEXT\"))\n\tgpUseShaderProgramEXT = uintptr(getProcAddr(\"glUseShaderProgramEXT\"))\n\tgpVDPAUFiniNV = uintptr(getProcAddr(\"glVDPAUFiniNV\"))\n\tgpVDPAUGetSurfaceivNV = uintptr(getProcAddr(\"glVDPAUGetSurfaceivNV\"))\n\tgpVDPAUInitNV = uintptr(getProcAddr(\"glVDPAUInitNV\"))\n\tgpVDPAUIsSurfaceNV = uintptr(getProcAddr(\"glVDPAUIsSurfaceNV\"))\n\tgpVDPAUMapSurfacesNV = uintptr(getProcAddr(\"glVDPAUMapSurfacesNV\"))\n\tgpVDPAURegisterOutputSurfaceNV = uintptr(getProcAddr(\"glVDPAURegisterOutputSurfaceNV\"))\n\tgpVDPAURegisterVideoSurfaceNV = uintptr(getProcAddr(\"glVDPAURegisterVideoSurfaceNV\"))\n\tgpVDPAUSurfaceAccessNV = uintptr(getProcAddr(\"glVDPAUSurfaceAccessNV\"))\n\tgpVDPAUUnmapSurfacesNV = uintptr(getProcAddr(\"glVDPAUUnmapSurfacesNV\"))\n\tgpVDPAUUnregisterSurfaceNV = uintptr(getProcAddr(\"glVDPAUUnregisterSurfaceNV\"))\n\tgpValidateProgram = uintptr(getProcAddr(\"glValidateProgram\"))\n\tif gpValidateProgram == 0 {\n\t\treturn errors.New(\"glValidateProgram\")\n\t}\n\tgpValidateProgramARB = uintptr(getProcAddr(\"glValidateProgramARB\"))\n\tgpValidateProgramPipeline = uintptr(getProcAddr(\"glValidateProgramPipeline\"))\n\tgpValidateProgramPipelineEXT = uintptr(getProcAddr(\"glValidateProgramPipelineEXT\"))\n\tgpVariantArrayObjectATI = uintptr(getProcAddr(\"glVariantArrayObjectATI\"))\n\tgpVariantPointerEXT = uintptr(getProcAddr(\"glVariantPointerEXT\"))\n\tgpVariantbvEXT = uintptr(getProcAddr(\"glVariantbvEXT\"))\n\tgpVariantdvEXT = uintptr(getProcAddr(\"glVariantdvEXT\"))\n\tgpVariantfvEXT = uintptr(getProcAddr(\"glVariantfvEXT\"))\n\tgpVariantivEXT = uintptr(getProcAddr(\"glVariantivEXT\"))\n\tgpVariantsvEXT = uintptr(getProcAddr(\"glVariantsvEXT\"))\n\tgpVariantubvEXT = uintptr(getProcAddr(\"glVariantubvEXT\"))\n\tgpVariantuivEXT = uintptr(getProcAddr(\"glVariantuivEXT\"))\n\tgpVariantusvEXT = uintptr(getProcAddr(\"glVariantusvEXT\"))\n\tgpVertex2bOES = uintptr(getProcAddr(\"glVertex2bOES\"))\n\tgpVertex2bvOES = uintptr(getProcAddr(\"glVertex2bvOES\"))\n\tgpVertex2d = uintptr(getProcAddr(\"glVertex2d\"))\n\tif gpVertex2d == 0 {\n\t\treturn errors.New(\"glVertex2d\")\n\t}\n\tgpVertex2dv = uintptr(getProcAddr(\"glVertex2dv\"))\n\tif gpVertex2dv == 0 {\n\t\treturn errors.New(\"glVertex2dv\")\n\t}\n\tgpVertex2f = uintptr(getProcAddr(\"glVertex2f\"))\n\tif gpVertex2f == 0 {\n\t\treturn errors.New(\"glVertex2f\")\n\t}\n\tgpVertex2fv = uintptr(getProcAddr(\"glVertex2fv\"))\n\tif gpVertex2fv == 0 {\n\t\treturn errors.New(\"glVertex2fv\")\n\t}\n\tgpVertex2hNV = uintptr(getProcAddr(\"glVertex2hNV\"))\n\tgpVertex2hvNV = uintptr(getProcAddr(\"glVertex2hvNV\"))\n\tgpVertex2i = uintptr(getProcAddr(\"glVertex2i\"))\n\tif gpVertex2i == 0 {\n\t\treturn errors.New(\"glVertex2i\")\n\t}\n\tgpVertex2iv = uintptr(getProcAddr(\"glVertex2iv\"))\n\tif gpVertex2iv == 0 {\n\t\treturn errors.New(\"glVertex2iv\")\n\t}\n\tgpVertex2s = uintptr(getProcAddr(\"glVertex2s\"))\n\tif gpVertex2s == 0 {\n\t\treturn errors.New(\"glVertex2s\")\n\t}\n\tgpVertex2sv = uintptr(getProcAddr(\"glVertex2sv\"))\n\tif gpVertex2sv == 0 {\n\t\treturn errors.New(\"glVertex2sv\")\n\t}\n\tgpVertex2xOES = uintptr(getProcAddr(\"glVertex2xOES\"))\n\tgpVertex2xvOES = uintptr(getProcAddr(\"glVertex2xvOES\"))\n\tgpVertex3bOES = uintptr(getProcAddr(\"glVertex3bOES\"))\n\tgpVertex3bvOES = uintptr(getProcAddr(\"glVertex3bvOES\"))\n\tgpVertex3d = uintptr(getProcAddr(\"glVertex3d\"))\n\tif gpVertex3d == 0 {\n\t\treturn errors.New(\"glVertex3d\")\n\t}\n\tgpVertex3dv = uintptr(getProcAddr(\"glVertex3dv\"))\n\tif gpVertex3dv == 0 {\n\t\treturn errors.New(\"glVertex3dv\")\n\t}\n\tgpVertex3f = uintptr(getProcAddr(\"glVertex3f\"))\n\tif gpVertex3f == 0 {\n\t\treturn errors.New(\"glVertex3f\")\n\t}\n\tgpVertex3fv = uintptr(getProcAddr(\"glVertex3fv\"))\n\tif gpVertex3fv == 0 {\n\t\treturn errors.New(\"glVertex3fv\")\n\t}\n\tgpVertex3hNV = uintptr(getProcAddr(\"glVertex3hNV\"))\n\tgpVertex3hvNV = uintptr(getProcAddr(\"glVertex3hvNV\"))\n\tgpVertex3i = uintptr(getProcAddr(\"glVertex3i\"))\n\tif gpVertex3i == 0 {\n\t\treturn errors.New(\"glVertex3i\")\n\t}\n\tgpVertex3iv = uintptr(getProcAddr(\"glVertex3iv\"))\n\tif gpVertex3iv == 0 {\n\t\treturn errors.New(\"glVertex3iv\")\n\t}\n\tgpVertex3s = uintptr(getProcAddr(\"glVertex3s\"))\n\tif gpVertex3s == 0 {\n\t\treturn errors.New(\"glVertex3s\")\n\t}\n\tgpVertex3sv = uintptr(getProcAddr(\"glVertex3sv\"))\n\tif gpVertex3sv == 0 {\n\t\treturn errors.New(\"glVertex3sv\")\n\t}\n\tgpVertex3xOES = uintptr(getProcAddr(\"glVertex3xOES\"))\n\tgpVertex3xvOES = uintptr(getProcAddr(\"glVertex3xvOES\"))\n\tgpVertex4bOES = uintptr(getProcAddr(\"glVertex4bOES\"))\n\tgpVertex4bvOES = uintptr(getProcAddr(\"glVertex4bvOES\"))\n\tgpVertex4d = uintptr(getProcAddr(\"glVertex4d\"))\n\tif gpVertex4d == 0 {\n\t\treturn errors.New(\"glVertex4d\")\n\t}\n\tgpVertex4dv = uintptr(getProcAddr(\"glVertex4dv\"))\n\tif gpVertex4dv == 0 {\n\t\treturn errors.New(\"glVertex4dv\")\n\t}\n\tgpVertex4f = uintptr(getProcAddr(\"glVertex4f\"))\n\tif gpVertex4f == 0 {\n\t\treturn errors.New(\"glVertex4f\")\n\t}\n\tgpVertex4fv = uintptr(getProcAddr(\"glVertex4fv\"))\n\tif gpVertex4fv == 0 {\n\t\treturn errors.New(\"glVertex4fv\")\n\t}\n\tgpVertex4hNV = uintptr(getProcAddr(\"glVertex4hNV\"))\n\tgpVertex4hvNV = uintptr(getProcAddr(\"glVertex4hvNV\"))\n\tgpVertex4i = uintptr(getProcAddr(\"glVertex4i\"))\n\tif gpVertex4i == 0 {\n\t\treturn errors.New(\"glVertex4i\")\n\t}\n\tgpVertex4iv = uintptr(getProcAddr(\"glVertex4iv\"))\n\tif gpVertex4iv == 0 {\n\t\treturn errors.New(\"glVertex4iv\")\n\t}\n\tgpVertex4s = uintptr(getProcAddr(\"glVertex4s\"))\n\tif gpVertex4s == 0 {\n\t\treturn errors.New(\"glVertex4s\")\n\t}\n\tgpVertex4sv = uintptr(getProcAddr(\"glVertex4sv\"))\n\tif gpVertex4sv == 0 {\n\t\treturn errors.New(\"glVertex4sv\")\n\t}\n\tgpVertex4xOES = uintptr(getProcAddr(\"glVertex4xOES\"))\n\tgpVertex4xvOES = uintptr(getProcAddr(\"glVertex4xvOES\"))\n\tgpVertexArrayAttribBinding = uintptr(getProcAddr(\"glVertexArrayAttribBinding\"))\n\tgpVertexArrayAttribFormat = uintptr(getProcAddr(\"glVertexArrayAttribFormat\"))\n\tgpVertexArrayAttribIFormat = uintptr(getProcAddr(\"glVertexArrayAttribIFormat\"))\n\tgpVertexArrayAttribLFormat = uintptr(getProcAddr(\"glVertexArrayAttribLFormat\"))\n\tgpVertexArrayBindVertexBufferEXT = uintptr(getProcAddr(\"glVertexArrayBindVertexBufferEXT\"))\n\tgpVertexArrayBindingDivisor = uintptr(getProcAddr(\"glVertexArrayBindingDivisor\"))\n\tgpVertexArrayColorOffsetEXT = uintptr(getProcAddr(\"glVertexArrayColorOffsetEXT\"))\n\tgpVertexArrayEdgeFlagOffsetEXT = uintptr(getProcAddr(\"glVertexArrayEdgeFlagOffsetEXT\"))\n\tgpVertexArrayElementBuffer = uintptr(getProcAddr(\"glVertexArrayElementBuffer\"))\n\tgpVertexArrayFogCoordOffsetEXT = uintptr(getProcAddr(\"glVertexArrayFogCoordOffsetEXT\"))\n\tgpVertexArrayIndexOffsetEXT = uintptr(getProcAddr(\"glVertexArrayIndexOffsetEXT\"))\n\tgpVertexArrayMultiTexCoordOffsetEXT = uintptr(getProcAddr(\"glVertexArrayMultiTexCoordOffsetEXT\"))\n\tgpVertexArrayNormalOffsetEXT = uintptr(getProcAddr(\"glVertexArrayNormalOffsetEXT\"))\n\tgpVertexArrayParameteriAPPLE = uintptr(getProcAddr(\"glVertexArrayParameteriAPPLE\"))\n\tgpVertexArrayRangeAPPLE = uintptr(getProcAddr(\"glVertexArrayRangeAPPLE\"))\n\tgpVertexArrayRangeNV = uintptr(getProcAddr(\"glVertexArrayRangeNV\"))\n\tgpVertexArraySecondaryColorOffsetEXT = uintptr(getProcAddr(\"glVertexArraySecondaryColorOffsetEXT\"))\n\tgpVertexArrayTexCoordOffsetEXT = uintptr(getProcAddr(\"glVertexArrayTexCoordOffsetEXT\"))\n\tgpVertexArrayVertexAttribBindingEXT = uintptr(getProcAddr(\"glVertexArrayVertexAttribBindingEXT\"))\n\tgpVertexArrayVertexAttribDivisorEXT = uintptr(getProcAddr(\"glVertexArrayVertexAttribDivisorEXT\"))\n\tgpVertexArrayVertexAttribFormatEXT = uintptr(getProcAddr(\"glVertexArrayVertexAttribFormatEXT\"))\n\tgpVertexArrayVertexAttribIFormatEXT = uintptr(getProcAddr(\"glVertexArrayVertexAttribIFormatEXT\"))\n\tgpVertexArrayVertexAttribIOffsetEXT = uintptr(getProcAddr(\"glVertexArrayVertexAttribIOffsetEXT\"))\n\tgpVertexArrayVertexAttribLFormatEXT = uintptr(getProcAddr(\"glVertexArrayVertexAttribLFormatEXT\"))\n\tgpVertexArrayVertexAttribLOffsetEXT = uintptr(getProcAddr(\"glVertexArrayVertexAttribLOffsetEXT\"))\n\tgpVertexArrayVertexAttribOffsetEXT = uintptr(getProcAddr(\"glVertexArrayVertexAttribOffsetEXT\"))\n\tgpVertexArrayVertexBindingDivisorEXT = uintptr(getProcAddr(\"glVertexArrayVertexBindingDivisorEXT\"))\n\tgpVertexArrayVertexBuffer = uintptr(getProcAddr(\"glVertexArrayVertexBuffer\"))\n\tgpVertexArrayVertexBuffers = uintptr(getProcAddr(\"glVertexArrayVertexBuffers\"))\n\tgpVertexArrayVertexOffsetEXT = uintptr(getProcAddr(\"glVertexArrayVertexOffsetEXT\"))\n\tgpVertexAttrib1d = uintptr(getProcAddr(\"glVertexAttrib1d\"))\n\tif gpVertexAttrib1d == 0 {\n\t\treturn errors.New(\"glVertexAttrib1d\")\n\t}\n\tgpVertexAttrib1dARB = uintptr(getProcAddr(\"glVertexAttrib1dARB\"))\n\tgpVertexAttrib1dNV = uintptr(getProcAddr(\"glVertexAttrib1dNV\"))\n\tgpVertexAttrib1dv = uintptr(getProcAddr(\"glVertexAttrib1dv\"))\n\tif gpVertexAttrib1dv == 0 {\n\t\treturn errors.New(\"glVertexAttrib1dv\")\n\t}\n\tgpVertexAttrib1dvARB = uintptr(getProcAddr(\"glVertexAttrib1dvARB\"))\n\tgpVertexAttrib1dvNV = uintptr(getProcAddr(\"glVertexAttrib1dvNV\"))\n\tgpVertexAttrib1f = uintptr(getProcAddr(\"glVertexAttrib1f\"))\n\tif gpVertexAttrib1f == 0 {\n\t\treturn errors.New(\"glVertexAttrib1f\")\n\t}\n\tgpVertexAttrib1fARB = uintptr(getProcAddr(\"glVertexAttrib1fARB\"))\n\tgpVertexAttrib1fNV = uintptr(getProcAddr(\"glVertexAttrib1fNV\"))\n\tgpVertexAttrib1fv = uintptr(getProcAddr(\"glVertexAttrib1fv\"))\n\tif gpVertexAttrib1fv == 0 {\n\t\treturn errors.New(\"glVertexAttrib1fv\")\n\t}\n\tgpVertexAttrib1fvARB = uintptr(getProcAddr(\"glVertexAttrib1fvARB\"))\n\tgpVertexAttrib1fvNV = uintptr(getProcAddr(\"glVertexAttrib1fvNV\"))\n\tgpVertexAttrib1hNV = uintptr(getProcAddr(\"glVertexAttrib1hNV\"))\n\tgpVertexAttrib1hvNV = uintptr(getProcAddr(\"glVertexAttrib1hvNV\"))\n\tgpVertexAttrib1s = uintptr(getProcAddr(\"glVertexAttrib1s\"))\n\tif gpVertexAttrib1s == 0 {\n\t\treturn errors.New(\"glVertexAttrib1s\")\n\t}\n\tgpVertexAttrib1sARB = uintptr(getProcAddr(\"glVertexAttrib1sARB\"))\n\tgpVertexAttrib1sNV = uintptr(getProcAddr(\"glVertexAttrib1sNV\"))\n\tgpVertexAttrib1sv = uintptr(getProcAddr(\"glVertexAttrib1sv\"))\n\tif gpVertexAttrib1sv == 0 {\n\t\treturn errors.New(\"glVertexAttrib1sv\")\n\t}\n\tgpVertexAttrib1svARB = uintptr(getProcAddr(\"glVertexAttrib1svARB\"))\n\tgpVertexAttrib1svNV = uintptr(getProcAddr(\"glVertexAttrib1svNV\"))\n\tgpVertexAttrib2d = uintptr(getProcAddr(\"glVertexAttrib2d\"))\n\tif gpVertexAttrib2d == 0 {\n\t\treturn errors.New(\"glVertexAttrib2d\")\n\t}\n\tgpVertexAttrib2dARB = uintptr(getProcAddr(\"glVertexAttrib2dARB\"))\n\tgpVertexAttrib2dNV = uintptr(getProcAddr(\"glVertexAttrib2dNV\"))\n\tgpVertexAttrib2dv = uintptr(getProcAddr(\"glVertexAttrib2dv\"))\n\tif gpVertexAttrib2dv == 0 {\n\t\treturn errors.New(\"glVertexAttrib2dv\")\n\t}\n\tgpVertexAttrib2dvARB = uintptr(getProcAddr(\"glVertexAttrib2dvARB\"))\n\tgpVertexAttrib2dvNV = uintptr(getProcAddr(\"glVertexAttrib2dvNV\"))\n\tgpVertexAttrib2f = uintptr(getProcAddr(\"glVertexAttrib2f\"))\n\tif gpVertexAttrib2f == 0 {\n\t\treturn errors.New(\"glVertexAttrib2f\")\n\t}\n\tgpVertexAttrib2fARB = uintptr(getProcAddr(\"glVertexAttrib2fARB\"))\n\tgpVertexAttrib2fNV = uintptr(getProcAddr(\"glVertexAttrib2fNV\"))\n\tgpVertexAttrib2fv = uintptr(getProcAddr(\"glVertexAttrib2fv\"))\n\tif gpVertexAttrib2fv == 0 {\n\t\treturn errors.New(\"glVertexAttrib2fv\")\n\t}\n\tgpVertexAttrib2fvARB = uintptr(getProcAddr(\"glVertexAttrib2fvARB\"))\n\tgpVertexAttrib2fvNV = uintptr(getProcAddr(\"glVertexAttrib2fvNV\"))\n\tgpVertexAttrib2hNV = uintptr(getProcAddr(\"glVertexAttrib2hNV\"))\n\tgpVertexAttrib2hvNV = uintptr(getProcAddr(\"glVertexAttrib2hvNV\"))\n\tgpVertexAttrib2s = uintptr(getProcAddr(\"glVertexAttrib2s\"))\n\tif gpVertexAttrib2s == 0 {\n\t\treturn errors.New(\"glVertexAttrib2s\")\n\t}\n\tgpVertexAttrib2sARB = uintptr(getProcAddr(\"glVertexAttrib2sARB\"))\n\tgpVertexAttrib2sNV = uintptr(getProcAddr(\"glVertexAttrib2sNV\"))\n\tgpVertexAttrib2sv = uintptr(getProcAddr(\"glVertexAttrib2sv\"))\n\tif gpVertexAttrib2sv == 0 {\n\t\treturn errors.New(\"glVertexAttrib2sv\")\n\t}\n\tgpVertexAttrib2svARB = uintptr(getProcAddr(\"glVertexAttrib2svARB\"))\n\tgpVertexAttrib2svNV = uintptr(getProcAddr(\"glVertexAttrib2svNV\"))\n\tgpVertexAttrib3d = uintptr(getProcAddr(\"glVertexAttrib3d\"))\n\tif gpVertexAttrib3d == 0 {\n\t\treturn errors.New(\"glVertexAttrib3d\")\n\t}\n\tgpVertexAttrib3dARB = uintptr(getProcAddr(\"glVertexAttrib3dARB\"))\n\tgpVertexAttrib3dNV = uintptr(getProcAddr(\"glVertexAttrib3dNV\"))\n\tgpVertexAttrib3dv = uintptr(getProcAddr(\"glVertexAttrib3dv\"))\n\tif gpVertexAttrib3dv == 0 {\n\t\treturn errors.New(\"glVertexAttrib3dv\")\n\t}\n\tgpVertexAttrib3dvARB = uintptr(getProcAddr(\"glVertexAttrib3dvARB\"))\n\tgpVertexAttrib3dvNV = uintptr(getProcAddr(\"glVertexAttrib3dvNV\"))\n\tgpVertexAttrib3f = uintptr(getProcAddr(\"glVertexAttrib3f\"))\n\tif gpVertexAttrib3f == 0 {\n\t\treturn errors.New(\"glVertexAttrib3f\")\n\t}\n\tgpVertexAttrib3fARB = uintptr(getProcAddr(\"glVertexAttrib3fARB\"))\n\tgpVertexAttrib3fNV = uintptr(getProcAddr(\"glVertexAttrib3fNV\"))\n\tgpVertexAttrib3fv = uintptr(getProcAddr(\"glVertexAttrib3fv\"))\n\tif gpVertexAttrib3fv == 0 {\n\t\treturn errors.New(\"glVertexAttrib3fv\")\n\t}\n\tgpVertexAttrib3fvARB = uintptr(getProcAddr(\"glVertexAttrib3fvARB\"))\n\tgpVertexAttrib3fvNV = uintptr(getProcAddr(\"glVertexAttrib3fvNV\"))\n\tgpVertexAttrib3hNV = uintptr(getProcAddr(\"glVertexAttrib3hNV\"))\n\tgpVertexAttrib3hvNV = uintptr(getProcAddr(\"glVertexAttrib3hvNV\"))\n\tgpVertexAttrib3s = uintptr(getProcAddr(\"glVertexAttrib3s\"))\n\tif gpVertexAttrib3s == 0 {\n\t\treturn errors.New(\"glVertexAttrib3s\")\n\t}\n\tgpVertexAttrib3sARB = uintptr(getProcAddr(\"glVertexAttrib3sARB\"))\n\tgpVertexAttrib3sNV = uintptr(getProcAddr(\"glVertexAttrib3sNV\"))\n\tgpVertexAttrib3sv = uintptr(getProcAddr(\"glVertexAttrib3sv\"))\n\tif gpVertexAttrib3sv == 0 {\n\t\treturn errors.New(\"glVertexAttrib3sv\")\n\t}\n\tgpVertexAttrib3svARB = uintptr(getProcAddr(\"glVertexAttrib3svARB\"))\n\tgpVertexAttrib3svNV = uintptr(getProcAddr(\"glVertexAttrib3svNV\"))\n\tgpVertexAttrib4Nbv = uintptr(getProcAddr(\"glVertexAttrib4Nbv\"))\n\tif gpVertexAttrib4Nbv == 0 {\n\t\treturn errors.New(\"glVertexAttrib4Nbv\")\n\t}\n\tgpVertexAttrib4NbvARB = uintptr(getProcAddr(\"glVertexAttrib4NbvARB\"))\n\tgpVertexAttrib4Niv = uintptr(getProcAddr(\"glVertexAttrib4Niv\"))\n\tif gpVertexAttrib4Niv == 0 {\n\t\treturn errors.New(\"glVertexAttrib4Niv\")\n\t}\n\tgpVertexAttrib4NivARB = uintptr(getProcAddr(\"glVertexAttrib4NivARB\"))\n\tgpVertexAttrib4Nsv = uintptr(getProcAddr(\"glVertexAttrib4Nsv\"))\n\tif gpVertexAttrib4Nsv == 0 {\n\t\treturn errors.New(\"glVertexAttrib4Nsv\")\n\t}\n\tgpVertexAttrib4NsvARB = uintptr(getProcAddr(\"glVertexAttrib4NsvARB\"))\n\tgpVertexAttrib4Nub = uintptr(getProcAddr(\"glVertexAttrib4Nub\"))\n\tif gpVertexAttrib4Nub == 0 {\n\t\treturn errors.New(\"glVertexAttrib4Nub\")\n\t}\n\tgpVertexAttrib4NubARB = uintptr(getProcAddr(\"glVertexAttrib4NubARB\"))\n\tgpVertexAttrib4Nubv = uintptr(getProcAddr(\"glVertexAttrib4Nubv\"))\n\tif gpVertexAttrib4Nubv == 0 {\n\t\treturn errors.New(\"glVertexAttrib4Nubv\")\n\t}\n\tgpVertexAttrib4NubvARB = uintptr(getProcAddr(\"glVertexAttrib4NubvARB\"))\n\tgpVertexAttrib4Nuiv = uintptr(getProcAddr(\"glVertexAttrib4Nuiv\"))\n\tif gpVertexAttrib4Nuiv == 0 {\n\t\treturn errors.New(\"glVertexAttrib4Nuiv\")\n\t}\n\tgpVertexAttrib4NuivARB = uintptr(getProcAddr(\"glVertexAttrib4NuivARB\"))\n\tgpVertexAttrib4Nusv = uintptr(getProcAddr(\"glVertexAttrib4Nusv\"))\n\tif gpVertexAttrib4Nusv == 0 {\n\t\treturn errors.New(\"glVertexAttrib4Nusv\")\n\t}\n\tgpVertexAttrib4NusvARB = uintptr(getProcAddr(\"glVertexAttrib4NusvARB\"))\n\tgpVertexAttrib4bv = uintptr(getProcAddr(\"glVertexAttrib4bv\"))\n\tif gpVertexAttrib4bv == 0 {\n\t\treturn errors.New(\"glVertexAttrib4bv\")\n\t}\n\tgpVertexAttrib4bvARB = uintptr(getProcAddr(\"glVertexAttrib4bvARB\"))\n\tgpVertexAttrib4d = uintptr(getProcAddr(\"glVertexAttrib4d\"))\n\tif gpVertexAttrib4d == 0 {\n\t\treturn errors.New(\"glVertexAttrib4d\")\n\t}\n\tgpVertexAttrib4dARB = uintptr(getProcAddr(\"glVertexAttrib4dARB\"))\n\tgpVertexAttrib4dNV = uintptr(getProcAddr(\"glVertexAttrib4dNV\"))\n\tgpVertexAttrib4dv = uintptr(getProcAddr(\"glVertexAttrib4dv\"))\n\tif gpVertexAttrib4dv == 0 {\n\t\treturn errors.New(\"glVertexAttrib4dv\")\n\t}\n\tgpVertexAttrib4dvARB = uintptr(getProcAddr(\"glVertexAttrib4dvARB\"))\n\tgpVertexAttrib4dvNV = uintptr(getProcAddr(\"glVertexAttrib4dvNV\"))\n\tgpVertexAttrib4f = uintptr(getProcAddr(\"glVertexAttrib4f\"))\n\tif gpVertexAttrib4f == 0 {\n\t\treturn errors.New(\"glVertexAttrib4f\")\n\t}\n\tgpVertexAttrib4fARB = uintptr(getProcAddr(\"glVertexAttrib4fARB\"))\n\tgpVertexAttrib4fNV = uintptr(getProcAddr(\"glVertexAttrib4fNV\"))\n\tgpVertexAttrib4fv = uintptr(getProcAddr(\"glVertexAttrib4fv\"))\n\tif gpVertexAttrib4fv == 0 {\n\t\treturn errors.New(\"glVertexAttrib4fv\")\n\t}\n\tgpVertexAttrib4fvARB = uintptr(getProcAddr(\"glVertexAttrib4fvARB\"))\n\tgpVertexAttrib4fvNV = uintptr(getProcAddr(\"glVertexAttrib4fvNV\"))\n\tgpVertexAttrib4hNV = uintptr(getProcAddr(\"glVertexAttrib4hNV\"))\n\tgpVertexAttrib4hvNV = uintptr(getProcAddr(\"glVertexAttrib4hvNV\"))\n\tgpVertexAttrib4iv = uintptr(getProcAddr(\"glVertexAttrib4iv\"))\n\tif gpVertexAttrib4iv == 0 {\n\t\treturn errors.New(\"glVertexAttrib4iv\")\n\t}\n\tgpVertexAttrib4ivARB = uintptr(getProcAddr(\"glVertexAttrib4ivARB\"))\n\tgpVertexAttrib4s = uintptr(getProcAddr(\"glVertexAttrib4s\"))\n\tif gpVertexAttrib4s == 0 {\n\t\treturn errors.New(\"glVertexAttrib4s\")\n\t}\n\tgpVertexAttrib4sARB = uintptr(getProcAddr(\"glVertexAttrib4sARB\"))\n\tgpVertexAttrib4sNV = uintptr(getProcAddr(\"glVertexAttrib4sNV\"))\n\tgpVertexAttrib4sv = uintptr(getProcAddr(\"glVertexAttrib4sv\"))\n\tif gpVertexAttrib4sv == 0 {\n\t\treturn errors.New(\"glVertexAttrib4sv\")\n\t}\n\tgpVertexAttrib4svARB = uintptr(getProcAddr(\"glVertexAttrib4svARB\"))\n\tgpVertexAttrib4svNV = uintptr(getProcAddr(\"glVertexAttrib4svNV\"))\n\tgpVertexAttrib4ubNV = uintptr(getProcAddr(\"glVertexAttrib4ubNV\"))\n\tgpVertexAttrib4ubv = uintptr(getProcAddr(\"glVertexAttrib4ubv\"))\n\tif gpVertexAttrib4ubv == 0 {\n\t\treturn errors.New(\"glVertexAttrib4ubv\")\n\t}\n\tgpVertexAttrib4ubvARB = uintptr(getProcAddr(\"glVertexAttrib4ubvARB\"))\n\tgpVertexAttrib4ubvNV = uintptr(getProcAddr(\"glVertexAttrib4ubvNV\"))\n\tgpVertexAttrib4uiv = uintptr(getProcAddr(\"glVertexAttrib4uiv\"))\n\tif gpVertexAttrib4uiv == 0 {\n\t\treturn errors.New(\"glVertexAttrib4uiv\")\n\t}\n\tgpVertexAttrib4uivARB = uintptr(getProcAddr(\"glVertexAttrib4uivARB\"))\n\tgpVertexAttrib4usv = uintptr(getProcAddr(\"glVertexAttrib4usv\"))\n\tif gpVertexAttrib4usv == 0 {\n\t\treturn errors.New(\"glVertexAttrib4usv\")\n\t}\n\tgpVertexAttrib4usvARB = uintptr(getProcAddr(\"glVertexAttrib4usvARB\"))\n\tgpVertexAttribArrayObjectATI = uintptr(getProcAddr(\"glVertexAttribArrayObjectATI\"))\n\tgpVertexAttribBinding = uintptr(getProcAddr(\"glVertexAttribBinding\"))\n\tgpVertexAttribDivisorARB = uintptr(getProcAddr(\"glVertexAttribDivisorARB\"))\n\tgpVertexAttribFormat = uintptr(getProcAddr(\"glVertexAttribFormat\"))\n\tgpVertexAttribFormatNV = uintptr(getProcAddr(\"glVertexAttribFormatNV\"))\n\tgpVertexAttribI1iEXT = uintptr(getProcAddr(\"glVertexAttribI1iEXT\"))\n\tgpVertexAttribI1ivEXT = uintptr(getProcAddr(\"glVertexAttribI1ivEXT\"))\n\tgpVertexAttribI1uiEXT = uintptr(getProcAddr(\"glVertexAttribI1uiEXT\"))\n\tgpVertexAttribI1uivEXT = uintptr(getProcAddr(\"glVertexAttribI1uivEXT\"))\n\tgpVertexAttribI2iEXT = uintptr(getProcAddr(\"glVertexAttribI2iEXT\"))\n\tgpVertexAttribI2ivEXT = uintptr(getProcAddr(\"glVertexAttribI2ivEXT\"))\n\tgpVertexAttribI2uiEXT = uintptr(getProcAddr(\"glVertexAttribI2uiEXT\"))\n\tgpVertexAttribI2uivEXT = uintptr(getProcAddr(\"glVertexAttribI2uivEXT\"))\n\tgpVertexAttribI3iEXT = uintptr(getProcAddr(\"glVertexAttribI3iEXT\"))\n\tgpVertexAttribI3ivEXT = uintptr(getProcAddr(\"glVertexAttribI3ivEXT\"))\n\tgpVertexAttribI3uiEXT = uintptr(getProcAddr(\"glVertexAttribI3uiEXT\"))\n\tgpVertexAttribI3uivEXT = uintptr(getProcAddr(\"glVertexAttribI3uivEXT\"))\n\tgpVertexAttribI4bvEXT = uintptr(getProcAddr(\"glVertexAttribI4bvEXT\"))\n\tgpVertexAttribI4iEXT = uintptr(getProcAddr(\"glVertexAttribI4iEXT\"))\n\tgpVertexAttribI4ivEXT = uintptr(getProcAddr(\"glVertexAttribI4ivEXT\"))\n\tgpVertexAttribI4svEXT = uintptr(getProcAddr(\"glVertexAttribI4svEXT\"))\n\tgpVertexAttribI4ubvEXT = uintptr(getProcAddr(\"glVertexAttribI4ubvEXT\"))\n\tgpVertexAttribI4uiEXT = uintptr(getProcAddr(\"glVertexAttribI4uiEXT\"))\n\tgpVertexAttribI4uivEXT = uintptr(getProcAddr(\"glVertexAttribI4uivEXT\"))\n\tgpVertexAttribI4usvEXT = uintptr(getProcAddr(\"glVertexAttribI4usvEXT\"))\n\tgpVertexAttribIFormat = uintptr(getProcAddr(\"glVertexAttribIFormat\"))\n\tgpVertexAttribIFormatNV = uintptr(getProcAddr(\"glVertexAttribIFormatNV\"))\n\tgpVertexAttribIPointerEXT = uintptr(getProcAddr(\"glVertexAttribIPointerEXT\"))\n\tgpVertexAttribL1d = uintptr(getProcAddr(\"glVertexAttribL1d\"))\n\tgpVertexAttribL1dEXT = uintptr(getProcAddr(\"glVertexAttribL1dEXT\"))\n\tgpVertexAttribL1dv = uintptr(getProcAddr(\"glVertexAttribL1dv\"))\n\tgpVertexAttribL1dvEXT = uintptr(getProcAddr(\"glVertexAttribL1dvEXT\"))\n\tgpVertexAttribL1i64NV = uintptr(getProcAddr(\"glVertexAttribL1i64NV\"))\n\tgpVertexAttribL1i64vNV = uintptr(getProcAddr(\"glVertexAttribL1i64vNV\"))\n\tgpVertexAttribL1ui64ARB = uintptr(getProcAddr(\"glVertexAttribL1ui64ARB\"))\n\tgpVertexAttribL1ui64NV = uintptr(getProcAddr(\"glVertexAttribL1ui64NV\"))\n\tgpVertexAttribL1ui64vARB = uintptr(getProcAddr(\"glVertexAttribL1ui64vARB\"))\n\tgpVertexAttribL1ui64vNV = uintptr(getProcAddr(\"glVertexAttribL1ui64vNV\"))\n\tgpVertexAttribL2d = uintptr(getProcAddr(\"glVertexAttribL2d\"))\n\tgpVertexAttribL2dEXT = uintptr(getProcAddr(\"glVertexAttribL2dEXT\"))\n\tgpVertexAttribL2dv = uintptr(getProcAddr(\"glVertexAttribL2dv\"))\n\tgpVertexAttribL2dvEXT = uintptr(getProcAddr(\"glVertexAttribL2dvEXT\"))\n\tgpVertexAttribL2i64NV = uintptr(getProcAddr(\"glVertexAttribL2i64NV\"))\n\tgpVertexAttribL2i64vNV = uintptr(getProcAddr(\"glVertexAttribL2i64vNV\"))\n\tgpVertexAttribL2ui64NV = uintptr(getProcAddr(\"glVertexAttribL2ui64NV\"))\n\tgpVertexAttribL2ui64vNV = uintptr(getProcAddr(\"glVertexAttribL2ui64vNV\"))\n\tgpVertexAttribL3d = uintptr(getProcAddr(\"glVertexAttribL3d\"))\n\tgpVertexAttribL3dEXT = uintptr(getProcAddr(\"glVertexAttribL3dEXT\"))\n\tgpVertexAttribL3dv = uintptr(getProcAddr(\"glVertexAttribL3dv\"))\n\tgpVertexAttribL3dvEXT = uintptr(getProcAddr(\"glVertexAttribL3dvEXT\"))\n\tgpVertexAttribL3i64NV = uintptr(getProcAddr(\"glVertexAttribL3i64NV\"))\n\tgpVertexAttribL3i64vNV = uintptr(getProcAddr(\"glVertexAttribL3i64vNV\"))\n\tgpVertexAttribL3ui64NV = uintptr(getProcAddr(\"glVertexAttribL3ui64NV\"))\n\tgpVertexAttribL3ui64vNV = uintptr(getProcAddr(\"glVertexAttribL3ui64vNV\"))\n\tgpVertexAttribL4d = uintptr(getProcAddr(\"glVertexAttribL4d\"))\n\tgpVertexAttribL4dEXT = uintptr(getProcAddr(\"glVertexAttribL4dEXT\"))\n\tgpVertexAttribL4dv = uintptr(getProcAddr(\"glVertexAttribL4dv\"))\n\tgpVertexAttribL4dvEXT = uintptr(getProcAddr(\"glVertexAttribL4dvEXT\"))\n\tgpVertexAttribL4i64NV = uintptr(getProcAddr(\"glVertexAttribL4i64NV\"))\n\tgpVertexAttribL4i64vNV = uintptr(getProcAddr(\"glVertexAttribL4i64vNV\"))\n\tgpVertexAttribL4ui64NV = uintptr(getProcAddr(\"glVertexAttribL4ui64NV\"))\n\tgpVertexAttribL4ui64vNV = uintptr(getProcAddr(\"glVertexAttribL4ui64vNV\"))\n\tgpVertexAttribLFormat = uintptr(getProcAddr(\"glVertexAttribLFormat\"))\n\tgpVertexAttribLFormatNV = uintptr(getProcAddr(\"glVertexAttribLFormatNV\"))\n\tgpVertexAttribLPointer = uintptr(getProcAddr(\"glVertexAttribLPointer\"))\n\tgpVertexAttribLPointerEXT = uintptr(getProcAddr(\"glVertexAttribLPointerEXT\"))\n\tgpVertexAttribP1ui = uintptr(getProcAddr(\"glVertexAttribP1ui\"))\n\tgpVertexAttribP1uiv = uintptr(getProcAddr(\"glVertexAttribP1uiv\"))\n\tgpVertexAttribP2ui = uintptr(getProcAddr(\"glVertexAttribP2ui\"))\n\tgpVertexAttribP2uiv = uintptr(getProcAddr(\"glVertexAttribP2uiv\"))\n\tgpVertexAttribP3ui = uintptr(getProcAddr(\"glVertexAttribP3ui\"))\n\tgpVertexAttribP3uiv = uintptr(getProcAddr(\"glVertexAttribP3uiv\"))\n\tgpVertexAttribP4ui = uintptr(getProcAddr(\"glVertexAttribP4ui\"))\n\tgpVertexAttribP4uiv = uintptr(getProcAddr(\"glVertexAttribP4uiv\"))\n\tgpVertexAttribParameteriAMD = uintptr(getProcAddr(\"glVertexAttribParameteriAMD\"))\n\tgpVertexAttribPointer = uintptr(getProcAddr(\"glVertexAttribPointer\"))\n\tif gpVertexAttribPointer == 0 {\n\t\treturn errors.New(\"glVertexAttribPointer\")\n\t}\n\tgpVertexAttribPointerARB = uintptr(getProcAddr(\"glVertexAttribPointerARB\"))\n\tgpVertexAttribPointerNV = uintptr(getProcAddr(\"glVertexAttribPointerNV\"))\n\tgpVertexAttribs1dvNV = uintptr(getProcAddr(\"glVertexAttribs1dvNV\"))\n\tgpVertexAttribs1fvNV = uintptr(getProcAddr(\"glVertexAttribs1fvNV\"))\n\tgpVertexAttribs1hvNV = uintptr(getProcAddr(\"glVertexAttribs1hvNV\"))\n\tgpVertexAttribs1svNV = uintptr(getProcAddr(\"glVertexAttribs1svNV\"))\n\tgpVertexAttribs2dvNV = uintptr(getProcAddr(\"glVertexAttribs2dvNV\"))\n\tgpVertexAttribs2fvNV = uintptr(getProcAddr(\"glVertexAttribs2fvNV\"))\n\tgpVertexAttribs2hvNV = uintptr(getProcAddr(\"glVertexAttribs2hvNV\"))\n\tgpVertexAttribs2svNV = uintptr(getProcAddr(\"glVertexAttribs2svNV\"))\n\tgpVertexAttribs3dvNV = uintptr(getProcAddr(\"glVertexAttribs3dvNV\"))\n\tgpVertexAttribs3fvNV = uintptr(getProcAddr(\"glVertexAttribs3fvNV\"))\n\tgpVertexAttribs3hvNV = uintptr(getProcAddr(\"glVertexAttribs3hvNV\"))\n\tgpVertexAttribs3svNV = uintptr(getProcAddr(\"glVertexAttribs3svNV\"))\n\tgpVertexAttribs4dvNV = uintptr(getProcAddr(\"glVertexAttribs4dvNV\"))\n\tgpVertexAttribs4fvNV = uintptr(getProcAddr(\"glVertexAttribs4fvNV\"))\n\tgpVertexAttribs4hvNV = uintptr(getProcAddr(\"glVertexAttribs4hvNV\"))\n\tgpVertexAttribs4svNV = uintptr(getProcAddr(\"glVertexAttribs4svNV\"))\n\tgpVertexAttribs4ubvNV = uintptr(getProcAddr(\"glVertexAttribs4ubvNV\"))\n\tgpVertexBindingDivisor = uintptr(getProcAddr(\"glVertexBindingDivisor\"))\n\tgpVertexBlendARB = uintptr(getProcAddr(\"glVertexBlendARB\"))\n\tgpVertexBlendEnvfATI = uintptr(getProcAddr(\"glVertexBlendEnvfATI\"))\n\tgpVertexBlendEnviATI = uintptr(getProcAddr(\"glVertexBlendEnviATI\"))\n\tgpVertexFormatNV = uintptr(getProcAddr(\"glVertexFormatNV\"))\n\tgpVertexPointer = uintptr(getProcAddr(\"glVertexPointer\"))\n\tif gpVertexPointer == 0 {\n\t\treturn errors.New(\"glVertexPointer\")\n\t}\n\tgpVertexPointerEXT = uintptr(getProcAddr(\"glVertexPointerEXT\"))\n\tgpVertexPointerListIBM = uintptr(getProcAddr(\"glVertexPointerListIBM\"))\n\tgpVertexPointervINTEL = uintptr(getProcAddr(\"glVertexPointervINTEL\"))\n\tgpVertexStream1dATI = uintptr(getProcAddr(\"glVertexStream1dATI\"))\n\tgpVertexStream1dvATI = uintptr(getProcAddr(\"glVertexStream1dvATI\"))\n\tgpVertexStream1fATI = uintptr(getProcAddr(\"glVertexStream1fATI\"))\n\tgpVertexStream1fvATI = uintptr(getProcAddr(\"glVertexStream1fvATI\"))\n\tgpVertexStream1iATI = uintptr(getProcAddr(\"glVertexStream1iATI\"))\n\tgpVertexStream1ivATI = uintptr(getProcAddr(\"glVertexStream1ivATI\"))\n\tgpVertexStream1sATI = uintptr(getProcAddr(\"glVertexStream1sATI\"))\n\tgpVertexStream1svATI = uintptr(getProcAddr(\"glVertexStream1svATI\"))\n\tgpVertexStream2dATI = uintptr(getProcAddr(\"glVertexStream2dATI\"))\n\tgpVertexStream2dvATI = uintptr(getProcAddr(\"glVertexStream2dvATI\"))\n\tgpVertexStream2fATI = uintptr(getProcAddr(\"glVertexStream2fATI\"))\n\tgpVertexStream2fvATI = uintptr(getProcAddr(\"glVertexStream2fvATI\"))\n\tgpVertexStream2iATI = uintptr(getProcAddr(\"glVertexStream2iATI\"))\n\tgpVertexStream2ivATI = uintptr(getProcAddr(\"glVertexStream2ivATI\"))\n\tgpVertexStream2sATI = uintptr(getProcAddr(\"glVertexStream2sATI\"))\n\tgpVertexStream2svATI = uintptr(getProcAddr(\"glVertexStream2svATI\"))\n\tgpVertexStream3dATI = uintptr(getProcAddr(\"glVertexStream3dATI\"))\n\tgpVertexStream3dvATI = uintptr(getProcAddr(\"glVertexStream3dvATI\"))\n\tgpVertexStream3fATI = uintptr(getProcAddr(\"glVertexStream3fATI\"))\n\tgpVertexStream3fvATI = uintptr(getProcAddr(\"glVertexStream3fvATI\"))\n\tgpVertexStream3iATI = uintptr(getProcAddr(\"glVertexStream3iATI\"))\n\tgpVertexStream3ivATI = uintptr(getProcAddr(\"glVertexStream3ivATI\"))\n\tgpVertexStream3sATI = uintptr(getProcAddr(\"glVertexStream3sATI\"))\n\tgpVertexStream3svATI = uintptr(getProcAddr(\"glVertexStream3svATI\"))\n\tgpVertexStream4dATI = uintptr(getProcAddr(\"glVertexStream4dATI\"))\n\tgpVertexStream4dvATI = uintptr(getProcAddr(\"glVertexStream4dvATI\"))\n\tgpVertexStream4fATI = uintptr(getProcAddr(\"glVertexStream4fATI\"))\n\tgpVertexStream4fvATI = uintptr(getProcAddr(\"glVertexStream4fvATI\"))\n\tgpVertexStream4iATI = uintptr(getProcAddr(\"glVertexStream4iATI\"))\n\tgpVertexStream4ivATI = uintptr(getProcAddr(\"glVertexStream4ivATI\"))\n\tgpVertexStream4sATI = uintptr(getProcAddr(\"glVertexStream4sATI\"))\n\tgpVertexStream4svATI = uintptr(getProcAddr(\"glVertexStream4svATI\"))\n\tgpVertexWeightPointerEXT = uintptr(getProcAddr(\"glVertexWeightPointerEXT\"))\n\tgpVertexWeightfEXT = uintptr(getProcAddr(\"glVertexWeightfEXT\"))\n\tgpVertexWeightfvEXT = uintptr(getProcAddr(\"glVertexWeightfvEXT\"))\n\tgpVertexWeighthNV = uintptr(getProcAddr(\"glVertexWeighthNV\"))\n\tgpVertexWeighthvNV = uintptr(getProcAddr(\"glVertexWeighthvNV\"))\n\tgpVideoCaptureNV = uintptr(getProcAddr(\"glVideoCaptureNV\"))\n\tgpVideoCaptureStreamParameterdvNV = uintptr(getProcAddr(\"glVideoCaptureStreamParameterdvNV\"))\n\tgpVideoCaptureStreamParameterfvNV = uintptr(getProcAddr(\"glVideoCaptureStreamParameterfvNV\"))\n\tgpVideoCaptureStreamParameterivNV = uintptr(getProcAddr(\"glVideoCaptureStreamParameterivNV\"))\n\tgpViewport = uintptr(getProcAddr(\"glViewport\"))\n\tif gpViewport == 0 {\n\t\treturn errors.New(\"glViewport\")\n\t}\n\tgpViewportArrayv = uintptr(getProcAddr(\"glViewportArrayv\"))\n\tgpViewportIndexedf = uintptr(getProcAddr(\"glViewportIndexedf\"))\n\tgpViewportIndexedfv = uintptr(getProcAddr(\"glViewportIndexedfv\"))\n\tgpViewportPositionWScaleNV = uintptr(getProcAddr(\"glViewportPositionWScaleNV\"))\n\tgpViewportSwizzleNV = uintptr(getProcAddr(\"glViewportSwizzleNV\"))\n\tgpWaitSemaphoreEXT = uintptr(getProcAddr(\"glWaitSemaphoreEXT\"))\n\tgpWaitSync = uintptr(getProcAddr(\"glWaitSync\"))\n\tgpWaitVkSemaphoreNV = uintptr(getProcAddr(\"glWaitVkSemaphoreNV\"))\n\tgpWeightPathsNV = uintptr(getProcAddr(\"glWeightPathsNV\"))\n\tgpWeightPointerARB = uintptr(getProcAddr(\"glWeightPointerARB\"))\n\tgpWeightbvARB = uintptr(getProcAddr(\"glWeightbvARB\"))\n\tgpWeightdvARB = uintptr(getProcAddr(\"glWeightdvARB\"))\n\tgpWeightfvARB = uintptr(getProcAddr(\"glWeightfvARB\"))\n\tgpWeightivARB = uintptr(getProcAddr(\"glWeightivARB\"))\n\tgpWeightsvARB = uintptr(getProcAddr(\"glWeightsvARB\"))\n\tgpWeightubvARB = uintptr(getProcAddr(\"glWeightubvARB\"))\n\tgpWeightuivARB = uintptr(getProcAddr(\"glWeightuivARB\"))\n\tgpWeightusvARB = uintptr(getProcAddr(\"glWeightusvARB\"))\n\tgpWindowPos2d = uintptr(getProcAddr(\"glWindowPos2d\"))\n\tif gpWindowPos2d == 0 {\n\t\treturn errors.New(\"glWindowPos2d\")\n\t}\n\tgpWindowPos2dARB = uintptr(getProcAddr(\"glWindowPos2dARB\"))\n\tgpWindowPos2dMESA = uintptr(getProcAddr(\"glWindowPos2dMESA\"))\n\tgpWindowPos2dv = uintptr(getProcAddr(\"glWindowPos2dv\"))\n\tif gpWindowPos2dv == 0 {\n\t\treturn errors.New(\"glWindowPos2dv\")\n\t}\n\tgpWindowPos2dvARB = uintptr(getProcAddr(\"glWindowPos2dvARB\"))\n\tgpWindowPos2dvMESA = uintptr(getProcAddr(\"glWindowPos2dvMESA\"))\n\tgpWindowPos2f = uintptr(getProcAddr(\"glWindowPos2f\"))\n\tif gpWindowPos2f == 0 {\n\t\treturn errors.New(\"glWindowPos2f\")\n\t}\n\tgpWindowPos2fARB = uintptr(getProcAddr(\"glWindowPos2fARB\"))\n\tgpWindowPos2fMESA = uintptr(getProcAddr(\"glWindowPos2fMESA\"))\n\tgpWindowPos2fv = uintptr(getProcAddr(\"glWindowPos2fv\"))\n\tif gpWindowPos2fv == 0 {\n\t\treturn errors.New(\"glWindowPos2fv\")\n\t}\n\tgpWindowPos2fvARB = uintptr(getProcAddr(\"glWindowPos2fvARB\"))\n\tgpWindowPos2fvMESA = uintptr(getProcAddr(\"glWindowPos2fvMESA\"))\n\tgpWindowPos2i = uintptr(getProcAddr(\"glWindowPos2i\"))\n\tif gpWindowPos2i == 0 {\n\t\treturn errors.New(\"glWindowPos2i\")\n\t}\n\tgpWindowPos2iARB = uintptr(getProcAddr(\"glWindowPos2iARB\"))\n\tgpWindowPos2iMESA = uintptr(getProcAddr(\"glWindowPos2iMESA\"))\n\tgpWindowPos2iv = uintptr(getProcAddr(\"glWindowPos2iv\"))\n\tif gpWindowPos2iv == 0 {\n\t\treturn errors.New(\"glWindowPos2iv\")\n\t}\n\tgpWindowPos2ivARB = uintptr(getProcAddr(\"glWindowPos2ivARB\"))\n\tgpWindowPos2ivMESA = uintptr(getProcAddr(\"glWindowPos2ivMESA\"))\n\tgpWindowPos2s = uintptr(getProcAddr(\"glWindowPos2s\"))\n\tif gpWindowPos2s == 0 {\n\t\treturn errors.New(\"glWindowPos2s\")\n\t}\n\tgpWindowPos2sARB = uintptr(getProcAddr(\"glWindowPos2sARB\"))\n\tgpWindowPos2sMESA = uintptr(getProcAddr(\"glWindowPos2sMESA\"))\n\tgpWindowPos2sv = uintptr(getProcAddr(\"glWindowPos2sv\"))\n\tif gpWindowPos2sv == 0 {\n\t\treturn errors.New(\"glWindowPos2sv\")\n\t}\n\tgpWindowPos2svARB = uintptr(getProcAddr(\"glWindowPos2svARB\"))\n\tgpWindowPos2svMESA = uintptr(getProcAddr(\"glWindowPos2svMESA\"))\n\tgpWindowPos3d = uintptr(getProcAddr(\"glWindowPos3d\"))\n\tif gpWindowPos3d == 0 {\n\t\treturn errors.New(\"glWindowPos3d\")\n\t}\n\tgpWindowPos3dARB = uintptr(getProcAddr(\"glWindowPos3dARB\"))\n\tgpWindowPos3dMESA = uintptr(getProcAddr(\"glWindowPos3dMESA\"))\n\tgpWindowPos3dv = uintptr(getProcAddr(\"glWindowPos3dv\"))\n\tif gpWindowPos3dv == 0 {\n\t\treturn errors.New(\"glWindowPos3dv\")\n\t}\n\tgpWindowPos3dvARB = uintptr(getProcAddr(\"glWindowPos3dvARB\"))\n\tgpWindowPos3dvMESA = uintptr(getProcAddr(\"glWindowPos3dvMESA\"))\n\tgpWindowPos3f = uintptr(getProcAddr(\"glWindowPos3f\"))\n\tif gpWindowPos3f == 0 {\n\t\treturn errors.New(\"glWindowPos3f\")\n\t}\n\tgpWindowPos3fARB = uintptr(getProcAddr(\"glWindowPos3fARB\"))\n\tgpWindowPos3fMESA = uintptr(getProcAddr(\"glWindowPos3fMESA\"))\n\tgpWindowPos3fv = uintptr(getProcAddr(\"glWindowPos3fv\"))\n\tif gpWindowPos3fv == 0 {\n\t\treturn errors.New(\"glWindowPos3fv\")\n\t}\n\tgpWindowPos3fvARB = uintptr(getProcAddr(\"glWindowPos3fvARB\"))\n\tgpWindowPos3fvMESA = uintptr(getProcAddr(\"glWindowPos3fvMESA\"))\n\tgpWindowPos3i = uintptr(getProcAddr(\"glWindowPos3i\"))\n\tif gpWindowPos3i == 0 {\n\t\treturn errors.New(\"glWindowPos3i\")\n\t}\n\tgpWindowPos3iARB = uintptr(getProcAddr(\"glWindowPos3iARB\"))\n\tgpWindowPos3iMESA = uintptr(getProcAddr(\"glWindowPos3iMESA\"))\n\tgpWindowPos3iv = uintptr(getProcAddr(\"glWindowPos3iv\"))\n\tif gpWindowPos3iv == 0 {\n\t\treturn errors.New(\"glWindowPos3iv\")\n\t}\n\tgpWindowPos3ivARB = uintptr(getProcAddr(\"glWindowPos3ivARB\"))\n\tgpWindowPos3ivMESA = uintptr(getProcAddr(\"glWindowPos3ivMESA\"))\n\tgpWindowPos3s = uintptr(getProcAddr(\"glWindowPos3s\"))\n\tif gpWindowPos3s == 0 {\n\t\treturn errors.New(\"glWindowPos3s\")\n\t}\n\tgpWindowPos3sARB = uintptr(getProcAddr(\"glWindowPos3sARB\"))\n\tgpWindowPos3sMESA = uintptr(getProcAddr(\"glWindowPos3sMESA\"))\n\tgpWindowPos3sv = uintptr(getProcAddr(\"glWindowPos3sv\"))\n\tif gpWindowPos3sv == 0 {\n\t\treturn errors.New(\"glWindowPos3sv\")\n\t}\n\tgpWindowPos3svARB = uintptr(getProcAddr(\"glWindowPos3svARB\"))\n\tgpWindowPos3svMESA = uintptr(getProcAddr(\"glWindowPos3svMESA\"))\n\tgpWindowPos4dMESA = uintptr(getProcAddr(\"glWindowPos4dMESA\"))\n\tgpWindowPos4dvMESA = uintptr(getProcAddr(\"glWindowPos4dvMESA\"))\n\tgpWindowPos4fMESA = uintptr(getProcAddr(\"glWindowPos4fMESA\"))\n\tgpWindowPos4fvMESA = uintptr(getProcAddr(\"glWindowPos4fvMESA\"))\n\tgpWindowPos4iMESA = uintptr(getProcAddr(\"glWindowPos4iMESA\"))\n\tgpWindowPos4ivMESA = uintptr(getProcAddr(\"glWindowPos4ivMESA\"))\n\tgpWindowPos4sMESA = uintptr(getProcAddr(\"glWindowPos4sMESA\"))\n\tgpWindowPos4svMESA = uintptr(getProcAddr(\"glWindowPos4svMESA\"))\n\tgpWindowRectanglesEXT = uintptr(getProcAddr(\"glWindowRectanglesEXT\"))\n\tgpWriteMaskEXT = uintptr(getProcAddr(\"glWriteMaskEXT\"))\n\treturn nil\n}", "func (self *TileSprite) _renderWebGLI(args ...interface{}) {\n self.Object.Call(\"_renderWebGL\", args)\n}", "func SetMode(value string) {\n\trgin.SetMode(value)\n}", "func updateCipherMode(seed, key, iv, nonce, prim, rng bool, s *Config) {\n\t// set everything to false\n\t// for k, _ := range s.widgets {\n\t//\t\t s.widgets[k].SetSensitive(false)\n\t// }\n s.widgets[\"modeCombo\"].SetSensitive(true)\n\n\tif seed {\n\t\ts.widgets[\"seedBox\"].SetSensitive(true)\n\t\ts.widgets[\"seedLabel\"].SetSensitive(true)\n\t}\n\n\tif key {\n\t\ts.widgets[\"keyBox\"].SetSensitive(true)\n\t\ts.widgets[\"keyLabel\"].SetSensitive(true)\n\t}\n\n\tif iv {\n\t\ts.widgets[\"ivBox\"].SetSensitive(true)\n\t\ts.widgets[\"ivLabel\"].SetSensitive(true)\n\t}\n\n\tif prim {\n\t\ts.widgets[\"primCombo\"].SetSensitive(true)\n\t\ts.widgets[\"primLabel\"].SetSensitive(true)\n\t}\n\n\treturn\n}", "func (adm *admin) enableBackendHandler(w http.ResponseWriter, r *http.Request) {\n\tif adm.backendAdmin == nil {\n\t\tadm.sendNotImplementedResponse(w)\n\t\treturn\n\t}\n\tif !adm.isHTTPPost(w, r) {\n\t\treturn\n\t}\n\tprocessBkActionRequest(w, r, adm.backendAdmin.EnableBackend)\n}", "func (native *OpenGL) EndConditionalRender() {\n\tgl.EndConditionalRender()\n}", "func PushClientAttrib(mask uint32) {\n C.glowPushClientAttrib(gpPushClientAttrib, (C.GLbitfield)(mask))\n}" ]
[ "0.6468122", "0.61833155", "0.590033", "0.5824449", "0.5807892", "0.5777913", "0.57632947", "0.57278407", "0.57182866", "0.5706954", "0.5523867", "0.5437685", "0.5250957", "0.5167954", "0.5126784", "0.50464684", "0.5010526", "0.4960154", "0.49447033", "0.48928162", "0.4879862", "0.4837894", "0.4836762", "0.48287827", "0.48277113", "0.48277113", "0.48136163", "0.48072383", "0.480638", "0.48052314", "0.48008078", "0.47996774", "0.47961375", "0.4792825", "0.47754985", "0.47740704", "0.47437254", "0.47421104", "0.4738518", "0.4735662", "0.47350752", "0.47195858", "0.47170585", "0.46831816", "0.46801755", "0.4669839", "0.4667159", "0.46555322", "0.46475032", "0.463949", "0.46302184", "0.46238977", "0.4609987", "0.46097147", "0.46029788", "0.46006876", "0.4598086", "0.45825967", "0.45702967", "0.45658726", "0.45545012", "0.45521513", "0.4540179", "0.4537943", "0.45311347", "0.45220575", "0.45180285", "0.4513022", "0.4511593", "0.44994816", "0.4492584", "0.44842425", "0.4475216", "0.4457116", "0.44463068", "0.44463068", "0.44395167", "0.44295245", "0.44217724", "0.44214514", "0.44195116", "0.44105473", "0.44101623", "0.44067875", "0.440599", "0.44057703", "0.44008684", "0.43971786", "0.43957835", "0.43951076", "0.43896744", "0.43864155", "0.43863422", "0.4378649", "0.43723604", "0.43632683", "0.4360293", "0.43599865", "0.43458486" ]
0.46455085
50
enable or disable clientside capability
func EnableClientState(array uint32) { C.glowEnableClientState(gpEnableClientState, (C.GLenum)(array)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Enable(cap uint32) {\n\tsyscall.Syscall(gpEnable, 1, uintptr(cap), 0, 0)\n}", "func (client ConsoleClient) EnableConsoleResponder(resp *http.Response) (result SetDisabledResult, err error) {\n\terr = autorest.Respond(\n\t\tresp,\n\t\tclient.ByInspecting(),\n\t\tazure.WithErrorUnlessStatusCode(http.StatusOK),\n\t\tautorest.ByUnmarshallingJSON(&result),\n\t\tautorest.ByClosing())\n\tresult.Response = autorest.Response{Response: resp}\n\treturn\n}", "func (client *Client) CapEnabled(cap string) bool {\n\tclient.mutex.RLock()\n\tdefer client.mutex.RUnlock()\n\n\treturn client.capEnabled[cap]\n}", "func Enable(cap GLenum) {\n\tC.glEnable(C.GLenum(cap))\n}", "func Enable(cap Enum) {\n\tgl.Enable(uint32(cap))\n}", "func (c *WebAuthn) Enable() (*gcdmessage.ChromeResponse, error) {\n\treturn gcdmessage.SendDefaultRequest(c.target, c.target.GetSendCh(), &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: \"WebAuthn.enable\"})\n}", "func Disable(cap Enum) {\n\tgl.Disable(uint32(cap))\n}", "func enableFrontend(w http.ResponseWriter, url string) {\n\tw.Header().Set(\"Access-Control-Allow-Origin\", url)\n\tw.Header().Set(\"Access-Control-Request-Method\", \"POST,GET,OPTIONS\")\n}", "func enableDisable(status, device int, name string) {\n\tvar request RpcRequest\n\n\tswitch status {\n\tcase 0:\n\t\trequest = RpcRequest{fmt.Sprintf(\"{\\\"command\\\":\\\"gpudisable\\\",\\\"parameter\\\":\\\"%v\\\"}\", device), make(chan []byte), name}\n\tcase 1:\n\t\trequest = RpcRequest{fmt.Sprintf(\"{\\\"command\\\":\\\"gpuenable\\\",\\\"parameter\\\":\\\"%v\\\"}\", device), make(chan []byte), name}\n\t}\n\n\trequest.Send()\n}", "func (client BaseClient) EnableConsoleResponder(resp *http.Response) (result SetObject, err error) {\n\terr = autorest.Respond(\n\t\tresp,\n\t\tazure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound),\n\t\tautorest.ByUnmarshallingJSON(&result.Value),\n\t\tautorest.ByClosing())\n\tresult.Response = autorest.Response{Response: resp}\n\treturn\n}", "func (ba *basicAuth) ToggleGuestAccess(allow bool) {\n\tba.allowGuests = allow\n}", "func (c *DOM) Enable() (*gcdmessage.ChromeResponse, error) {\n\treturn gcdmessage.SendDefaultRequest(c.target, c.target.GetSendCh(), &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: \"DOM.enable\"})\n}", "func (vr *VirtualResource) Enable(id string) error {\n\titem := VirtualServerConfig{Enabled: true}\n\tresp, err := vr.doRequest(\"PATCH\", id, item)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer resp.Body.Close()\n\tif err := vr.readError(resp); err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}", "func Enable(cap uint32) {\n C.glowEnable(gpEnable, (C.GLenum)(cap))\n}", "func (this *Hmd) SetEnabledCaps(hmdCaps HmdCaps) {\n\tC.ovrHmd_SetEnabledCaps(this.cptr(), C.uint(hmdCaps))\n}", "func (c *ChromeConsole) Enable() (*ChromeResponse, error) {\n\treturn sendDefaultRequest(c.target.sendCh, &ParamRequest{Id: c.target.getId(), Method: \"Console.enable\"})\n}", "func (c *DeviceAccess) Enable(ctx context.Context) (*gcdmessage.ChromeResponse, error) {\n\treturn c.target.SendDefaultRequest(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: \"DeviceAccess.enable\"})\n}", "func Disable(cap GLenum) {\n\tC.glDisable(C.GLenum(cap))\n}", "func Enable(cap Enum) {\n\tccap, _ := (C.GLenum)(cap), cgoAllocsUnknown\n\tC.glEnable(ccap)\n}", "func (m *IosiPadOSWebClip) SetUseManagedBrowser(value *bool)() {\n err := m.GetBackingStore().Set(\"useManagedBrowser\", value)\n if err != nil {\n panic(err)\n }\n}", "func (client BaseClient) DisableFeatureInstanceResponder(resp *http.Response) (result FeatureInstance, err error) {\n\terr = autorest.Respond(\n\t\tresp,\n\t\tclient.ByInspecting(),\n\t\tazure.WithErrorUnlessStatusCode(http.StatusOK),\n\t\tautorest.ByUnmarshallingJSON(&result),\n\t\tautorest.ByClosing())\n\tresult.Response = autorest.Response{Response: resp}\n\treturn\n}", "func (client ConsoleClient) DisableConsoleResponder(resp *http.Response) (result SetDisabledResult, err error) {\n\terr = autorest.Respond(\n\t\tresp,\n\t\tclient.ByInspecting(),\n\t\tazure.WithErrorUnlessStatusCode(http.StatusOK),\n\t\tautorest.ByUnmarshallingJSON(&result),\n\t\tautorest.ByClosing())\n\tresult.Response = autorest.Response{Response: resp}\n\treturn\n}", "func (c *Jrpc) EnablePrivacy(in *pty.ReqEnablePrivacy, result *json.RawMessage) error {\n\treply, err := c.cli.EnablePrivacy(context.Background(), in)\n\tif err != nil {\n\t\treturn err\n\t}\n\t*result, err = types.PBToJSON(reply)\n\treturn err\n}", "func (vr *VirtualResource) Disable(id string) error {\n\titem := VirtualServerConfig{Disabled: true}\n\tresp, err := vr.doRequest(\"PATCH\", id, item)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer resp.Body.Close()\n\tif err := vr.readError(resp); err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}", "func EnableSecurityInversion() {\n\treg.Set(TZASC_SEC_INV_EN, 0)\n}", "func (c *Media) Enable() (*gcdmessage.ChromeResponse, error) {\n\treturn gcdmessage.SendDefaultRequest(c.target, c.target.GetSendCh(), &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: \"Media.enable\"})\n}", "func (c *ChromeIndexedDB) Enable() (*ChromeResponse, error) {\n return sendDefaultRequest(c.target.sendCh, &ParamRequest{Id: c.target.getId(), Method: \"IndexedDB.enable\"})\n}", "func (m *TelecomExpenseManagementPartner) SetEnabled(value *bool)() {\n err := m.GetBackingStore().Set(\"enabled\", value)\n if err != nil {\n panic(err)\n }\n}", "func (native *OpenGL) Enable(capability uint32) {\n\tgl.Enable(capability)\n}", "func enableDisableHandler(w http.ResponseWriter, user datastore.User, apiCall bool, enabled bool, keypairID int) {\n\terr := auth.CheckUserPermissions(user, datastore.Admin, apiCall)\n\tif err != nil {\n\t\tresponse.FormatStandardResponse(false, response.ErrorAuth.Code, \"\", err.Error(), w)\n\t\treturn\n\t}\n\n\t// Update the keypair in the local database\n\terr = datastore.Environ.DB.UpdateAllowedKeypairActive(keypairID, enabled, user)\n\tif err != nil {\n\t\tresponse.FormatStandardResponse(false, response.ErrorStoreKeypair.Code, \"\", err.Error(), w)\n\t\treturn\n\t}\n\n\t// Return success response\n\tw.WriteHeader(http.StatusOK)\n\tresponse.FormatStandardResponse(true, \"\", \"\", \"\", w)\n}", "func Disable(cap Enum) {\n\tccap, _ := (C.GLenum)(cap), cgoAllocsUnknown\n\tC.glDisable(ccap)\n}", "func Enable(cap uint32) {\n\tC.glowEnable(gpEnable, (C.GLenum)(cap))\n}", "func Enable(cap uint32) {\n\tC.glowEnable(gpEnable, (C.GLenum)(cap))\n}", "func (s *Settings) DisableToggleableSettings() {\n\tC.webkit_settings_set_auto_load_images(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_frame_flattening(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_html5_database(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_html5_local_storage(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_hyperlink_auditing(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_java(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_javascript(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_offline_web_application_cache(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_plugins(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_xss_auditor(s.settings, gboolean(false))\n\tC.webkit_settings_set_javascript_can_open_windows_automatically(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_private_browsing(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_developer_extras(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_resizable_text_areas(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_tabs_to_links(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_dns_prefetching(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_caret_browsing(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_fullscreen(s.settings, gboolean(false))\n\tC.webkit_settings_set_print_backgrounds(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_webaudio(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_webgl(s.settings, gboolean(false))\n\tC.webkit_settings_set_allow_modal_dialogs(s.settings, gboolean(false))\n\tC.webkit_settings_set_javascript_can_access_clipboard(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_page_cache(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_smooth_scrolling(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_accelerated_2d_canvas(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_media_stream(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_spatial_navigation(s.settings, gboolean(false))\n\tC.webkit_settings_set_enable_mediasource(s.settings, gboolean(false))\n}", "func EnableAction(c *gcli.Context) {\n\tval, _ := getVal(\"type\", c)\n\tswitch val {\n\tcase \"policy\":\n\t\tcli, err := NewPolicyClient(c)\n\t\tif err != nil {\n\t\t\tos.Exit(1)\n\t\t}\n\n\t\treq := policy.EnablePolicyRequest{}\n\t\tif val, success := getVal(\"id\", c); success {\n\t\t\treq.Id = val\n\t\t}\n\t\tif val, success := getVal(\"teamId\", c); success {\n\t\t\treq.TeamId = val\n\t\t}\n\t\tif val, success := getVal(\"policyType\", c); success {\n\t\t\treq.Type = policy.PolicyType(val)\n\t\t}\n\t\tprintMessage(DEBUG,\"Enable policy request prepared from flags, sending request to Opsgenie..\")\n\t\t_, err = cli.EnablePolicy(nil, &req)\n\t\tif err != nil {\n\t\t\tprintMessage(ERROR, err.Error())\n\t\t\tos.Exit(1)\n\t\t}\n\t\tprintMessage(INFO,\"Policy enabled successfuly\")\n\n\tcase \"integration\":\n\t\tcli, err := NewIntegrationClient(c)\n\t\tif err != nil {\n\t\t\tos.Exit(1)\n\t\t}\n\n\t\treq := integration.EnableIntegrationRequest{}\n\t\tif val, success := getVal(\"id\", c); success {\n\t\t\treq.Id = val\n\t\t}\n\t\tprintMessage(DEBUG,\"Enable integration request prepared from flags, sending request to Opsgenie..\")\n\t\t_, err = cli.Enable(nil, &req)\n\t\tif err != nil {\n\t\t\tprintMessage(ERROR, err.Error())\n\t\t\tos.Exit(1)\n\t\t}\n\t\tprintMessage(INFO,\"Integration enabled successfuly\")\n\tdefault:\n\t\tprintMessage(INFO,\"Invalid type option \" + val + \", specify either integration or policy\")\n\t\tgcli.ShowCommandHelp(c, \"enable\")\n\t\tos.Exit(1)\n\t}\n}", "func (client BaseClient) EnableConsoleSender(req *http.Request) (*http.Response, error) {\n\treturn client.Send(req, azure.DoRetryWithRegistration(client.Client))\n}", "func (native *OpenGL) Disable(capability uint32) {\n\tgl.Disable(capability)\n}", "func (c *controllerCommon) Enabled() bool {\n\treturn true\n}", "func (client *Client) EnableControlPolicy() (_result *EnableControlPolicyResponse, _err error) {\n\truntime := &util.RuntimeOptions{}\n\t_result = &EnableControlPolicyResponse{}\n\t_body, _err := client.EnableControlPolicyWithOptions(runtime)\n\tif _err != nil {\n\t\treturn _result, _err\n\t}\n\t_result = _body\n\treturn _result, _err\n}", "func (handler *ConsoleLogHandler) Enable() {\r\n atomic.StoreUint32(&handler.disabled, falseUint32)\r\n}", "func (session *Session) PerformanceEnable() error {\n\t_, err := session.blockingSend(\"Performance.enable\", &Params{})\n\treturn err\n}", "func GuiEnable() {\n\tC.GuiEnable()\n}", "func (agent *SecurityAgent) SetEnableHandler(handler func(EnableCommand)) {\n agent.commandHandlers.Enable.Store(handler)\n}", "func (m *AndroidCompliancePolicy) SetDeviceThreatProtectionEnabled(value *bool)() {\n err := m.GetBackingStore().Set(\"deviceThreatProtectionEnabled\", value)\n if err != nil {\n panic(err)\n }\n}", "func (client BaseClient) DisableFeatureInstanceSender(req *http.Request) (*http.Response, error) {\n\treturn autorest.SendWithSender(client, req,\n\t\tautorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))\n}", "func GuiEnable() {\n\tC.GuiEnable()\n\tguiEnabled = true\n}", "func capabilityLoop(s *etcdserver.EtcdServer) {\n\tstopped := s.StopNotify()\n\n\tvar pv *semver.Version\n\tfor {\n\t\tif v := s.ClusterVersion(); v != pv {\n\t\t\tif pv == nil {\n\t\t\t\tpv = v\n\t\t\t} else if v != nil && pv.LessThan(*v) {\n\t\t\t\tpv = v\n\t\t\t}\n\t\t\tenableMapMu.Lock()\n\t\t\tenabledMap = capabilityMaps[pv.String()]\n\t\t\tenableMapMu.Unlock()\n\t\t}\n\n\t\tselect {\n\t\tcase <-stopped:\n\t\t\treturn\n\t\tcase <-time.After(500 * time.Millisecond):\n\t\t}\n\t}\n}", "func (c *WebAuthn) Disable() (*gcdmessage.ChromeResponse, error) {\n\treturn gcdmessage.SendDefaultRequest(c.target, c.target.GetSendCh(), &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: \"WebAuthn.disable\"})\n}", "func isSwitchEnabled(hr *appv1.HelmRequest, annoKey string) bool {\n\tif hr == nil || len(hr.Annotations) == 0 {\n\t\treturn false\n\t}\n\n\tif hr.Annotations[annoKey] == \"true\" {\n\t\treturn true\n\t}\n\n\treturn false\n}", "func (adm *admin) enableBackendHandler(w http.ResponseWriter, r *http.Request) {\n\tif adm.backendAdmin == nil {\n\t\tadm.sendNotImplementedResponse(w)\n\t\treturn\n\t}\n\tif !adm.isHTTPPost(w, r) {\n\t\treturn\n\t}\n\tprocessBkActionRequest(w, r, adm.backendAdmin.EnableBackend)\n}", "func (m *AospDeviceOwnerDeviceConfiguration) SetSecurityAllowDebuggingFeatures(value *bool)() {\n err := m.GetBackingStore().Set(\"securityAllowDebuggingFeatures\", value)\n if err != nil {\n panic(err)\n }\n}", "func (wss *WssClientContext) Enable() bool {\n\treturn true\n}", "func (h *AutoscalersController) enableWPA(wpaInformerFactory dynamic_informer.DynamicSharedInformerFactory) error {\n\tlog.Info(\"Enabling WPA controller\")\n\n\tgenericInformer := wpaInformerFactory.ForResource(gvrWPA)\n\n\th.WPAqueue = workqueue.NewNamedRateLimitingQueue(workqueue.DefaultItemBasedRateLimiter(), \"wpa-autoscalers\")\n\th.wpaLister = genericInformer.Lister()\n\th.wpaListerSynced = genericInformer.Informer().HasSynced\n\tif _, err := genericInformer.Informer().AddEventHandler(\n\t\tcache.ResourceEventHandlerFuncs{\n\t\t\tAddFunc: h.addWPAutoscaler,\n\t\t\tUpdateFunc: h.updateWPAutoscaler,\n\t\t\tDeleteFunc: h.deleteWPAutoscaler,\n\t\t},\n\t); err != nil {\n\t\treturn err\n\t}\n\th.mu.Lock()\n\tdefer h.mu.Unlock()\n\th.wpaEnabled = true\n\treturn nil\n}", "func (debugging *debuggingOpenGL) Disable(capability uint32) {\n\tdebugging.recordEntry(\"Disable\", capability)\n\tdebugging.gl.Disable(capability)\n\tdebugging.recordExit(\"Disable\")\n}", "func Enabled() ChangeOption {\n\treturn changeOption{\n\t\tapplier: applierFunc(\n\t\t\tfunc(caller caller, co interface{}) {\n\t\t\t\tco.(*secret.UpdateSetRequest).Attributes.Enabled = true\n\t\t\t},\n\t\t),\n\t}\n}", "func (client BaseClient) DisableConsoleResponder(resp *http.Response) (result SetObject, err error) {\n\terr = autorest.Respond(\n\t\tresp,\n\t\tazure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound),\n\t\tautorest.ByUnmarshallingJSON(&result.Value),\n\t\tautorest.ByClosing())\n\tresult.Response = autorest.Response{Response: resp}\n\treturn\n}", "func setEnabledCapabilities(capabilitiesSpec *configv1.ClusterVersionCapabilitiesSpec,\n\tpriorEnabled map[configv1.ClusterVersionCapability]struct{}) (map[configv1.ClusterVersionCapability]struct{},\n\t[]configv1.ClusterVersionCapability) {\n\n\tcapSet := DefaultCapabilitySet\n\n\tif capabilitiesSpec != nil && len(capabilitiesSpec.BaselineCapabilitySet) > 0 {\n\t\tcapSet = capabilitiesSpec.BaselineCapabilitySet\n\t}\n\tenabled := GetCapabilitiesAsMap(configv1.ClusterVersionCapabilitySets[capSet])\n\n\tif capabilitiesSpec != nil {\n\t\tfor _, v := range capabilitiesSpec.AdditionalEnabledCapabilities {\n\t\t\tif _, ok := enabled[v]; ok {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tenabled[v] = struct{}{}\n\t\t}\n\t}\n\tvar implicitlyEnabled []configv1.ClusterVersionCapability\n\tfor k := range priorEnabled {\n\t\tif _, ok := enabled[k]; !ok {\n\t\t\timplicitlyEnabled = append(implicitlyEnabled, k)\n\t\t\tenabled[k] = struct{}{}\n\t\t}\n\t}\n\tsort.Sort(capabilitiesSort(implicitlyEnabled))\n\treturn enabled, implicitlyEnabled\n}", "func (c *ChromeInspector) Enable() (*ChromeResponse, error) {\n\treturn sendDefaultRequest(c.target.sendCh, &ParamRequest{Id: c.target.getId(), Method: \"Inspector.enable\"})\n}", "func (s Session) AddCapability(\n\tname string,\n\tlimitAccess bool,\n\tsourcePaths string,\n\tsourcePathsCount uint32,\n\tcancelEvent *windows.Handle,\n\tprogressCallback unsafe.Pointer,\n) error {\n\tvar sp **uint16\n\tif p := helpers.StringToPtrOrNil(sourcePaths); p != nil {\n\t\tsp = &p\n\t}\n\treturn s.checkError(DismAddCapability(*s.Handle, helpers.StringToPtrOrNil(name), limitAccess, sp, sourcePathsCount, cancelEvent, progressCallback, nil))\n}", "func AllowClientCommand(command string) {\n\tCommandHandlers[command] = nil\n}", "func windowsShowSettingsUI(_ *cagent.Cagent, _ bool) {\n\n}", "func Enabled() bool {\n\treturn false\n}", "func Enabled() bool {\n\treturn false\n}", "func Enabled(ctx context.Context, a *arc.ARC) (bool, error) {\n\tres, err := a.Command(ctx, \"settings\", \"--user\", \"0\", \"get\", \"secure\", \"accessibility_enabled\").Output(testexec.DumpLogOnError)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\treturn strings.TrimSpace(string(res)) == \"1\", nil\n}", "func Disable() {\n\tEnable = false\n}", "func (debugging *debuggingOpenGL) Enable(capability uint32) {\n\tdebugging.recordEntry(\"Enable\", capability)\n\tdebugging.gl.Enable(capability)\n\tdebugging.recordExit(\"Enable\")\n}", "func (r *experimentalRoute) Enable() {\n\tr.handler = r.local.Handler()\n}", "func EnableAll(frame *cdp.Frame, timeout time.Duration) error {\n\t// Order is important. Dom should come first.\n\terr := cdp.NewAction(\n\t\t[]cdp.Event{},\n\t\t[]cdp.Command{\n\t\t\tcdp.Command{ID: frame.RequestID.GetNext(), Method: dom.CommandDOMEnable, Params: &dom.EnableArgs{}, Reply: &dom.EnableReply{}, Timeout: timeout},\n\t\t\tcdp.Command{ID: frame.RequestID.GetNext(), Method: css.CommandCSSEnable, Params: &css.EnableArgs{}, Reply: &css.EnableReply{}, Timeout: timeout},\n\t\t\tcdp.Command{ID: frame.RequestID.GetNext(), Method: indexeddb.CommandIndexedDBEnable, Params: &indexeddb.EnableArgs{}, Reply: &indexeddb.EnableReply{}, Timeout: timeout},\n\t\t\tcdp.Command{ID: frame.RequestID.GetNext(), Method: inspector.CommandInspectorEnable, Params: &inspector.EnableArgs{}, Reply: &inspector.EnableReply{}, Timeout: timeout},\n\t\t\tcdp.Command{ID: frame.RequestID.GetNext(), Method: log.CommandLogEnable, Params: &log.EnableArgs{}, Reply: &log.EnableReply{}, Timeout: timeout},\n\t\t\tcdp.Command{ID: frame.RequestID.GetNext(), Method: network.CommandNetworkEnable, Params: &network.EnableArgs{}, Reply: &network.EnableReply{}, Timeout: timeout},\n\t\t\tcdp.Command{ID: frame.RequestID.GetNext(), Method: page.CommandPageEnable, Params: &page.EnableArgs{}, Reply: &page.EnableReply{}, Timeout: timeout},\n\t\t\tcdp.Command{ID: frame.RequestID.GetNext(), Method: runtime.CommandRuntimeEnable, Params: &runtime.EnableArgs{}, Reply: &runtime.EnableReply{}, Timeout: timeout},\n\t\t}).Run(frame)\n\tif err != nil {\n\t\tframe.Browser.Log.Print(err)\n\t}\n\treturn err\n}", "func (m *Mode) Enable() {\n\tm.enabled = true\n}", "func (agent *DOMAgent) SetEnableHandler(handler func(EnableCommand)) {\n agent.commandHandlers.Enable.Store(handler)\n}", "func (c *ChromeNetwork) Enable() (*ChromeResponse, error) {\n\treturn sendDefaultRequest(c.target.sendCh, &ParamRequest{Id: c.target.getId(), Method: \"Network.enable\"})\n}", "func (dk *DynaKube) FeatureDisableReadOnlyOneAgent() bool {\n\treturn dk.getDisableFlagWithDeprecatedAnnotation(AnnotationFeatureReadOnlyOneAgent, AnnotationFeatureDisableReadOnlyOneAgent)\n}", "func (v *DefaultVersion) SetCapability(cap *Capability, b bool) {\n\tv.capabilities[cap] = b\n}", "func (sp *Properties) enableWhiteList() {\n\tsp.set(\"enforce-whitelist\", \"true\")\n\tsp.set(\"white-list\", \"true\")\n}", "func (r Virtual_Guest_Network_Component) Enable() (resp bool, err error) {\n\terr = r.Session.DoRequest(\"SoftLayer_Virtual_Guest_Network_Component\", \"enable\", nil, &r.Options, &resp)\n\treturn\n}", "func (m *DeviceManagementSettings) SetIsScheduledActionEnabled(value *bool)() {\n err := m.GetBackingStore().Set(\"isScheduledActionEnabled\", value)\n if err != nil {\n panic(err)\n }\n}", "func (client *Client) DisableControlPolicy() (_result *DisableControlPolicyResponse, _err error) {\n\truntime := &util.RuntimeOptions{}\n\t_result = &DisableControlPolicyResponse{}\n\t_body, _err := client.DisableControlPolicyWithOptions(runtime)\n\tif _err != nil {\n\t\treturn _result, _err\n\t}\n\t_result = _body\n\treturn _result, _err\n}", "func (client DeploymentsClient) EnableRemoteDebuggingResponder(resp *http.Response) (result RemoteDebugging, err error) {\n\terr = autorest.Respond(\n\t\tresp,\n\t\tazure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),\n\t\tautorest.ByUnmarshallingJSON(&result),\n\t\tautorest.ByClosing())\n\tresult.Response = autorest.Response{Response: resp}\n\treturn\n}", "func (e *Engine) enablePluginGET(w http.ResponseWriter, req *http.Request, param httprouter.Params) {\n\tvar (\n\t\tresp = new(enablePlgResp)\n\t\tform = new(enablePlgForm)\n\t)\n\n\tif err := api.Bind(form, req); err != nil {\n\t\tapi.ResponseWithError(w, resp, err)\n\t\treturn\n\t}\n\n\tif err := api.Valid(form); err != nil {\n\t\tapi.ResponseWithError(w, resp, err)\n\t\treturn\n\t}\n\n\te.enablePlugin(form.Enabled, form.Idx)\n\n\tcode.FillCodeInfo(resp, code.GetCodeInfo(code.CodeOk))\n\tutils.ResponseJSON(w, resp)\n}", "func (s defaultServer) enableCors(h http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\t\tw.Header().Set(\"Access-Control-Allow-Origin\", \"http://localhost:8085\")\n\t\t\tw.Header().Set(\"Access-Control-Allow-Credentials\", \"true\")\n\t\t\tw.Header().Set(\"Access-Control-Allow-Headers\", \"Content-Type, X-Csrf-Token\")\n\t\t\th.ServeHTTP(w, r)\n\t\t})\n}", "func (s *HelloSystem) Enabled() bool {\n return s.enabled\n}", "func EnableCORSDecorator() Decorator {\n\treturn func(h http.Handler) http.Handler {\n\t\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\t\tw.Header().Set(\"Access-Control-Allow-Origin\", \"*\")\n\t\t\tw.Header().Set(\"Access-Control-Allow-Methods\", \"GET,POST,PUT,PATCH,DELETE,HEAD,OPTIONS\")\n\t\t\tw.Header().Set(\"Access-Control-Allow-Headers\", \"Origin,Accept,Content-Type,Authorization\")\n\n\t\t\t// Stop here if its Preflighted OPTIONS request\n\t\t\tif r.Method == \"OPTIONS\" {\n\t\t\t\tw.WriteHeader(http.StatusOK)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\th.ServeHTTP(w, r)\n\t\t})\n\t}\n}", "func DisableAction(c *gcli.Context) {\n\tval, _ := getVal(\"type\", c)\n\tswitch val {\n\tcase \"policy\":\n\t\tcli, err := NewPolicyClient(c)\n\t\tif err != nil {\n\t\t\tos.Exit(1)\n\t\t}\n\n\t\treq := policy.DisablePolicyRequest{}\n\t\tif val, success := getVal(\"id\", c); success {\n\t\t\treq.Id = val\n\t\t}\n\t\tif val, success := getVal(\"teamId\", c); success {\n\t\t\treq.TeamId = val\n\t\t}\n\t\tif val, success := getVal(\"policyType\", c); success {\n\t\t\treq.Type = policy.PolicyType(val)\n\t\t}\n\t\tprintMessage(DEBUG,\"Disable policy request prepared from flags, sending request to Opsgenie..\")\n\t\t_, err = cli.DisablePolicy(nil, &req)\n\t\tif err != nil {\n\t\t\tprintMessage(ERROR, err.Error())\n\t\t\tos.Exit(1)\n\t\t}\n\t\tprintMessage(INFO, \"Policy disabled successfuly\")\n\n\tcase \"integration\":\n\t\tcli, err := NewIntegrationClient(c)\n\t\tif err != nil {\n\t\t\tos.Exit(1)\n\t\t}\n\n\t\treq := integration.DisableIntegrationRequest{}\n\t\tif val, success := getVal(\"id\", c); success {\n\t\t\treq.Id = val\n\t\t}\n\t\tprintMessage(DEBUG,\"Disable integration request prepared from flags, sending request to Opsgenie..\")\n\t\t_, err = cli.Disable(nil, &req)\n\t\tif err != nil {\n\t\t\tprintMessage(ERROR,err.Error())\n\t\t\tos.Exit(1)\n\t\t}\n\t\tprintMessage(INFO,\"Integration disabled successfuly\")\n\tdefault:\n\t\tprintMessage(ERROR,\"Invalid type option \" + val + \", specify either integration or policy\")\n\t\tgcli.ShowCommandHelp(c, \"disable\")\n\t\tos.Exit(1)\n\t}\n}", "func (doWebAuthn WebAuthn) Enable() (err error) {\n\tb := webauthn.Enable()\n\treturn b.Do(doWebAuthn.ctxWithExecutor)\n}", "func (r *ProvisioningReconciler) isEnabled() (bool, error) {\n\tctx := context.Background()\n\n\tinfra, err := r.OSClient.ConfigV1().Infrastructures().Get(ctx, \"cluster\", metav1.GetOptions{})\n\tif err != nil {\n\t\treturn false, errors.Wrap(err, \"unable to determine Platform\")\n\t}\n\n\t// Disable ourselves on platforms other than bare metal\n\tif infra.Status.Platform != osconfigv1.BareMetalPlatformType {\n\t\treturn false, nil\n\t}\n\n\treturn true, nil\n}", "func SvcEnableConsole(w http.ResponseWriter, r *http.Request, d *ServiceData) {\n\trlib.EnableConsole()\n\tSvcWriteSuccessResponse(d.BID, w)\n}", "func (client *Client) DisableControlPolicyWithOptions(runtime *util.RuntimeOptions) (_result *DisableControlPolicyResponse, _err error) {\n\treq := &openapi.OpenApiRequest{}\n\tparams := &openapi.Params{\n\t\tAction: tea.String(\"DisableControlPolicy\"),\n\t\tVersion: tea.String(\"2020-03-31\"),\n\t\tProtocol: tea.String(\"HTTPS\"),\n\t\tPathname: tea.String(\"/\"),\n\t\tMethod: tea.String(\"POST\"),\n\t\tAuthType: tea.String(\"AK\"),\n\t\tStyle: tea.String(\"RPC\"),\n\t\tReqBodyType: tea.String(\"formData\"),\n\t\tBodyType: tea.String(\"json\"),\n\t}\n\t_result = &DisableControlPolicyResponse{}\n\t_body, _err := client.CallApi(params, req, runtime)\n\tif _err != nil {\n\t\treturn _result, _err\n\t}\n\t_err = tea.Convert(_body, &_result)\n\treturn _result, _err\n}", "func (client ConsoleClient) EnableConsoleSender(req *http.Request) (*http.Response, error) {\n\tsd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))\n\treturn autorest.SendWithSender(client, req, sd...)\n}", "func (handler *ConsoleLogHandler) Disable() {\r\n atomic.StoreUint32(&handler.disabled, trueUint32)\r\n}", "func (c *DeviceAccess) Disable(ctx context.Context) (*gcdmessage.ChromeResponse, error) {\n\treturn c.target.SendDefaultRequest(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: \"DeviceAccess.disable\"})\n}", "func enableAutofocus() {\n\tmyCommand := fmt.Sprintf(\"v4l2-ctl --set-ctrl=focus_auto=1\")\n\terr := exec.Command(\"/bin/sh\", \"-c\", myCommand).Run()\n\tif err != nil {\n\t\tlog.Println(err)\n\t}\n}", "func (s Session) EnableFeature(\n\tfeature string,\n\toptIdentifier string,\n\toptPackageIdentifier *DismPackageIdentifier,\n\tenableAll bool,\n\tcancelEvent *windows.Handle,\n\tprogressCallback unsafe.Pointer,\n) error {\n\treturn s.checkError(DismEnableFeature(*s.Handle, helpers.StringToPtrOrNil(feature), helpers.StringToPtrOrNil(optIdentifier), optPackageIdentifier, false, nil, 0, enableAll, cancelEvent, progressCallback, nil))\n}", "func IsEnabled(cap Enum) bool {\n\treturn gl.IsEnabled(uint32(cap))\n}", "func (adm *admin) disableBackendHandler(w http.ResponseWriter, r *http.Request) {\n\tif adm.backendAdmin == nil {\n\t\tadm.sendNotImplementedResponse(w)\n\t\treturn\n\t}\n\tif !adm.isHTTPPost(w, r) {\n\t\treturn\n\t}\n\tprocessBkActionRequest(w, r, adm.backendAdmin.DisableBackend)\n}", "func (c *MyPlugin) Enable() error {\n\treturn nil\n}", "func (srv *CentralSessionController) Enable(\n\tctx context.Context,\n\tvoid *orcprotos.Void,\n) (*orcprotos.Void, error) {\n\terrs := &multierror.Error{}\n\tif !srv.cfg.DisableGx {\n\t\terr := srv.policyClient.EnableConnections()\n\t\tif err != nil {\n\t\t\terrs = multierror.Append(errs, fmt.Errorf(\"An error occurred while enabling connections; policyClient err: %s\", err))\n\t\t}\n\t}\n\tif !srv.cfg.DisableGy {\n\t\terr := srv.creditClient.EnableConnections()\n\t\tif err != nil {\n\t\t\terrs = multierror.Append(errs, fmt.Errorf(\"An error occurred while enabling connections; creditClient err: %s\", err))\n\t\t}\n\t}\n\treturn &orcprotos.Void{}, errs.ErrorOrNil()\n}", "func (g *Grid) Enable() {\n\tC.uiControlEnable(g.c)\n}", "func init() {\n\taddCheck(CheckCapabilitiesRestricted)\n}", "func (client InfraRoleInstancesClient) PowerOnResponder(resp *http.Response) (result OperationStatus, err error) {\n\terr = autorest.Respond(\n\t\tresp,\n\t\tclient.ByInspecting(),\n\t\tazure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusInternalServerError),\n\t\tautorest.ByUnmarshallingJSON(&result),\n\t\tautorest.ByClosing())\n\tresult.Response = autorest.Response{Response: resp}\n\treturn\n}", "func AllowEmbed(ctx *aero.Context, response string) string {\n\t// This is a bit of a hack.\n\t// ctx.SetResponseHeader(\"X-Frame-Options\", \"ALLOW-FROM chrome-extension://hjfcooigdelogjmniiahfiilcefdlpha/options.html\")\n\treturn response\n}", "func (c *Client) setCaps(caps []Field) {\n\tfor v := range c.Caps {\n\t\tdelete(c.Caps, v)\n\t}\n\tfor _, f := range caps {\n\t\tif v := toUpper(AsAtom(f)); v != \"\" {\n\t\t\tc.Caps[v] = true\n\t\t} else {\n\t\t\tc.Logln(LogState, \"Invalid capability:\", f)\n\t\t}\n\t}\n\tif c.debugLog.mask&LogState != 0 {\n\t\tcaps := strings.Join(c.getCaps(\"\"), \" \")\n\t\tif caps == \"\" {\n\t\t\tcaps = \"(none)\"\n\t\t}\n\t\tc.Logln(LogState, \"Capabilities:\", caps)\n\t}\n}" ]
[ "0.6125523", "0.5817828", "0.5752881", "0.5581509", "0.54917", "0.5474488", "0.5467083", "0.54660404", "0.5397472", "0.5386843", "0.5357025", "0.5352737", "0.533552", "0.5305572", "0.5243636", "0.52306384", "0.51893723", "0.5186992", "0.5177265", "0.51600677", "0.512068", "0.50904745", "0.50789255", "0.5064427", "0.50595754", "0.50541323", "0.50466424", "0.50355387", "0.5027444", "0.5023907", "0.5022239", "0.50171673", "0.50171673", "0.5009952", "0.5007608", "0.5005743", "0.50018156", "0.5001744", "0.50003123", "0.49910995", "0.4983482", "0.49801224", "0.4969034", "0.49653924", "0.4946972", "0.49430105", "0.4938967", "0.49317744", "0.49288353", "0.49162498", "0.49162182", "0.49046385", "0.48991832", "0.48991656", "0.48966974", "0.48924863", "0.48913184", "0.4886087", "0.48755014", "0.48729455", "0.4864391", "0.48518792", "0.48518792", "0.4836819", "0.48297662", "0.48213086", "0.48057655", "0.47909123", "0.4773472", "0.47729528", "0.4769362", "0.47682992", "0.4765488", "0.47626388", "0.47603214", "0.4740607", "0.47400406", "0.47387594", "0.47360092", "0.47358274", "0.4735222", "0.4733838", "0.47273695", "0.47214702", "0.47024515", "0.46903598", "0.4685796", "0.46825758", "0.4678701", "0.4675101", "0.46738338", "0.46727473", "0.46596652", "0.46526963", "0.46466157", "0.4646178", "0.46449548", "0.4643683", "0.46406916", "0.46372786", "0.4626237" ]
0.0
-1
Enable or disable a generic vertex attribute array
func EnableVertexArrayAttrib(vaobj uint32, index uint32) { C.glowEnableVertexArrayAttrib(gpEnableVertexArrayAttrib, (C.GLuint)(vaobj), (C.GLuint)(index)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func EnableVertexArrayAttrib(vaobj uint32, index uint32) {\n\tsyscall.Syscall(gpEnableVertexArrayAttrib, 2, uintptr(vaobj), uintptr(index), 0)\n}", "func DisableVertexArrayAttrib(vaobj uint32, index uint32) {\n\tsyscall.Syscall(gpDisableVertexArrayAttrib, 2, uintptr(vaobj), uintptr(index), 0)\n}", "func DisableVertexArrayAttrib(vaobj uint32, index uint32) {\n\tC.glowDisableVertexArrayAttrib(gpDisableVertexArrayAttrib, (C.GLuint)(vaobj), (C.GLuint)(index))\n}", "func DisableVertexArrayAttrib(vaobj uint32, index uint32) {\n\tC.glowDisableVertexArrayAttrib(gpDisableVertexArrayAttrib, (C.GLuint)(vaobj), (C.GLuint)(index))\n}", "func EnableVertexAttribArray(index uint32) {\n C.glowEnableVertexAttribArray(gpEnableVertexAttribArray, (C.GLuint)(index))\n}", "func DisableVertexAttribArray(index uint32) {\n C.glowDisableVertexAttribArray(gpDisableVertexAttribArray, (C.GLuint)(index))\n}", "func (h *handlerImpl) disableVertex(adjMatrix adjacencyMatrix, vertex int) {\n\tfor to := range adjMatrix[vertex] {\n\t\tadjMatrix[vertex][to].disabled = true\n\t}\n}", "func EnableVertexAttribArray(index uint32) {\n\tsyscall.Syscall(gpEnableVertexAttribArray, 1, uintptr(index), 0, 0)\n}", "func VertexArrayAttribFormat(vaobj uint32, attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n\tC.glowVertexArrayAttribFormat(gpVertexArrayAttribFormat, (C.GLuint)(vaobj), (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(relativeoffset))\n}", "func VertexArrayAttribFormat(vaobj uint32, attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n\tC.glowVertexArrayAttribFormat(gpVertexArrayAttribFormat, (C.GLuint)(vaobj), (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(relativeoffset))\n}", "func DisableVertexAttribArray(index uint32) {\n\tsyscall.Syscall(gpDisableVertexAttribArray, 1, uintptr(index), 0, 0)\n}", "func VertexArrayAttribFormat(vaobj uint32, attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n\tsyscall.Syscall6(gpVertexArrayAttribFormat, 6, uintptr(vaobj), uintptr(attribindex), uintptr(size), uintptr(xtype), boolToUintptr(normalized), uintptr(relativeoffset))\n}", "func EnableVertexAttribArray(index Uint) {\n\tcindex, _ := (C.GLuint)(index), cgoAllocsUnknown\n\tC.glEnableVertexAttribArray(cindex)\n}", "func EnableVertexAttribArray(index uint32) {\n\tC.glowEnableVertexAttribArray(gpEnableVertexAttribArray, (C.GLuint)(index))\n}", "func EnableVertexAttribArray(index uint32) {\n\tC.glowEnableVertexAttribArray(gpEnableVertexAttribArray, (C.GLuint)(index))\n}", "func EnableVertexAttribArray(a Attrib) {\n\tgl.EnableVertexAttribArray(uint32(a.Value))\n}", "func EnableVertexAttribArray(index uint32) {\n\tgl.EnableVertexAttribArray(index)\n}", "func DisableVertexAttribArray(index uint32) {\n\tC.glowDisableVertexAttribArray(gpDisableVertexAttribArray, (C.GLuint)(index))\n}", "func DisableVertexAttribArray(index uint32) {\n\tC.glowDisableVertexAttribArray(gpDisableVertexAttribArray, (C.GLuint)(index))\n}", "func DisableVertexAttribArray(a Attrib) {\n\tgl.DisableVertexAttribArray(uint32(a.Value))\n}", "func DisableVertexAttribArray(index uint32) {\n\tgl.DisableVertexAttribArray(index)\n}", "func (native *OpenGL) EnableVertexAttribArray(index uint32) {\n\tgl.EnableVertexAttribArray(index)\n}", "func (c *Context) EnableVertexAttribArray(l gfx.AttribLocation) gfx.ContextStateValue {\n\treturn s.CSV{\n\t\tValue: l,\n\t\tDefaultValue: 0, // TODO(slimsag): default enable VAA values!\n\t\tKey: csEnableVertexAttribArray,\n\t\tGLCall: c.glEnableVertexAttribArray,\n\t}\n}", "func PushAttrib(mask uint32) {\n C.glowPushAttrib(gpPushAttrib, (C.GLbitfield)(mask))\n}", "func DisableVertexAttribArray(index Uint) {\n\tcindex, _ := (C.GLuint)(index), cgoAllocsUnknown\n\tC.glDisableVertexAttribArray(cindex)\n}", "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n C.glowVertexAttribFormat(gpVertexAttribFormat, (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(relativeoffset))\n}", "func EnableClientState(array uint32) {\n C.glowEnableClientState(gpEnableClientState, (C.GLenum)(array))\n}", "func (g *GLTF) loadAttributes(geom *geometry.Geometry, attributes map[string]int, indices math32.ArrayU32) error {\n\n\t// Indices of buffer views\n\tinterleavedVBOs := make(map[int]*gls.VBO, 0)\n\n\t// Load primitive attributes\n\tfor name, aci := range attributes {\n\t\taccessor := g.Accessors[aci]\n\n\t\t// Validate that accessor is compatible with attribute\n\t\terr := g.validateAccessorAttribute(accessor, name)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\t// Load data and add it to geometry's VBO\n\t\tif g.isInterleaved(accessor) {\n\t\t\tbvIdx := *accessor.BufferView\n\t\t\t// Check if we already loaded this buffer view\n\t\t\tvbo, ok := interleavedVBOs[bvIdx]\n\t\t\tif ok {\n\t\t\t\t// Already created VBO for this buffer view\n\t\t\t\t// Add attribute with correct byteOffset\n\t\t\t\tg.addAttributeToVBO(vbo, name, uint32(*accessor.ByteOffset))\n\t\t\t} else {\n\t\t\t\t// Load data and create vbo\n\t\t\t\tbuf, err := g.loadBufferView(bvIdx)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\t//\n\t\t\t\t// TODO: BUG HERE\n\t\t\t\t// If buffer view has accessors with different component type then this will have a read alignment problem!\n\t\t\t\t//\n\t\t\t\tdata, err := g.bytesToArrayF32(buf, accessor.ComponentType, accessor.Count*TypeSizes[accessor.Type])\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tvbo := gls.NewVBO(data)\n\t\t\t\tg.addAttributeToVBO(vbo, name, 0)\n\t\t\t\t// Save reference to VBO keyed by index of the buffer view\n\t\t\t\tinterleavedVBOs[bvIdx] = vbo\n\t\t\t\t// Add VBO to geometry\n\t\t\t\tgeom.AddVBO(vbo)\n\t\t\t}\n\t\t} else {\n\t\t\tbuf, err := g.loadAccessorBytes(accessor)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tdata, err := g.bytesToArrayF32(buf, accessor.ComponentType, accessor.Count*TypeSizes[accessor.Type])\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tvbo := gls.NewVBO(data)\n\t\t\tg.addAttributeToVBO(vbo, name, 0)\n\t\t\t// Add VBO to geometry\n\t\t\tgeom.AddVBO(vbo)\n\t\t}\n\t}\n\n\t// Set indices\n\tif len(indices) > 0 {\n\t\tgeom.SetIndices(indices)\n\t}\n\n\treturn nil\n}", "func PushAttrib(mask uint32) {\n\tsyscall.Syscall(gpPushAttrib, 1, uintptr(mask), 0, 0)\n}", "func PushAttrib(mask uint32) {\n\tC.glowPushAttrib(gpPushAttrib, (C.GLbitfield)(mask))\n}", "func (self *Graphics) SetInputEnabledA(member bool) {\n self.Object.Set(\"inputEnabled\", member)\n}", "func PushClientAttrib(mask uint32) {\n C.glowPushClientAttrib(gpPushClientAttrib, (C.GLbitfield)(mask))\n}", "func (debugging *debuggingOpenGL) EnableVertexAttribArray(index uint32) {\n\tdebugging.recordEntry(\"EnableVertexAttribArray\", index)\n\tdebugging.gl.EnableVertexAttribArray(index)\n\tdebugging.recordExit(\"EnableVertexAttribArray\")\n}", "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n\tsyscall.Syscall6(gpVertexAttribFormat, 5, uintptr(attribindex), uintptr(size), uintptr(xtype), boolToUintptr(normalized), uintptr(relativeoffset), 0)\n}", "func VertexAttribPointer(index uint32, size int32, xtype uint32, normalized bool, stride int32, pointer unsafe.Pointer) {\n C.glowVertexAttribPointer(gpVertexAttribPointer, (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLsizei)(stride), pointer)\n}", "func PushClientAttrib(mask uint32) {\n\tC.glowPushClientAttrib(gpPushClientAttrib, (C.GLbitfield)(mask))\n}", "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n\tC.glowVertexAttribFormat(gpVertexAttribFormat, (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(relativeoffset))\n}", "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n\tC.glowVertexAttribFormat(gpVertexAttribFormat, (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(relativeoffset))\n}", "func (self *TileSprite) SetInputEnabledA(member bool) {\n self.Object.Set(\"inputEnabled\", member)\n}", "func (l *Loader) SetAttrSpecial(i Sym, v bool) {\n\tif v {\n\t\tl.attrSpecial[i] = struct{}{}\n\t} else {\n\t\tdelete(l.attrSpecial, i)\n\t}\n}", "func VertexAttribPointer(index uint32, size int32, xtype uint32, normalized bool, stride int32, pointer unsafe.Pointer) {\n\tsyscall.Syscall6(gpVertexAttribPointer, 6, uintptr(index), uintptr(size), uintptr(xtype), boolToUintptr(normalized), uintptr(stride), uintptr(pointer))\n}", "func BindVertexArray(array uint32) {\n C.glowBindVertexArray(gpBindVertexArray, (C.GLuint)(array))\n}", "func (l *Loader) SetAttrReadOnly(i Sym, v bool) {\n\tl.attrReadOnly[i] = v\n}", "func enableForceDestroyAttributes(state cty.Value) cty.Value {\n\tstateWithDestroyAttrs := map[string]cty.Value{}\n\n\tif state.CanIterateElements() {\n\t\tfor k, v := range state.AsValueMap() {\n\t\t\tif k == \"force_detach_policies\" || k == \"force_destroy\" {\n\t\t\t\tif v.Type().Equals(cty.Bool) {\n\t\t\t\t\tstateWithDestroyAttrs[k] = cty.True\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tstateWithDestroyAttrs[k] = v\n\t\t\t}\n\t\t}\n\t}\n\n\treturn cty.ObjectVal(stateWithDestroyAttrs)\n}", "func Enable(cap GLenum) {\n\tC.glEnable(C.GLenum(cap))\n}", "func enableDisable(status, device int, name string) {\n\tvar request RpcRequest\n\n\tswitch status {\n\tcase 0:\n\t\trequest = RpcRequest{fmt.Sprintf(\"{\\\"command\\\":\\\"gpudisable\\\",\\\"parameter\\\":\\\"%v\\\"}\", device), make(chan []byte), name}\n\tcase 1:\n\t\trequest = RpcRequest{fmt.Sprintf(\"{\\\"command\\\":\\\"gpuenable\\\",\\\"parameter\\\":\\\"%v\\\"}\", device), make(chan []byte), name}\n\t}\n\n\trequest.Send()\n}", "func (va *VertexArray) SetLayout(layout VertexLayout) {\n\tif len(va.layout.layout) != 0 {\n\t\treturn\n\t}\n\n\tva.layout = layout\n\n\t// generate and bind the vertex array\n\tgl.GenVertexArrays(1, &va.vao) // generates the vertex array (or multiple)\n\tgl.BindVertexArray(va.vao) // binds the vertex array\n\n\t// make vertex array pointer attributes\n\t// offset is the offset in bytes to the first attribute\n\toffset := 0\n\n\t// calculate vertex stride\n\tstride := 0\n\tfor _, elem := range va.layout.layout {\n\t\tstride += elem.getByteSize()\n\n\t}\n\n\t// Vertex Buffer Object\n\tgl.GenBuffers(1, &va.vbo) // generates the buffer (or multiple)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, va.vbo)\n\n\tfor i, elem := range va.layout.layout {\n\n\t\t// define an array of generic vertex attribute data\n\t\t// index, size, type, normalized, stride of vertex (in bytes), pointer (offset)\n\t\t// point positions\n\t\tgl.VertexAttribPointer(uint32(i), int32(elem.getSize()),\n\t\t\telem.getGLType(), false, int32(stride), gl.PtrOffset(offset))\n\t\tgl.EnableVertexAttribArray(uint32(i))\n\t\toffset += elem.getByteSize()\n\t}\n\n}", "func GetVertexAttribfv(index uint32, pname uint32, params *float32) {\n C.glowGetVertexAttribfv(gpGetVertexAttribfv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func PushClientAttrib(mask uint32) {\n\tsyscall.Syscall(gpPushClientAttrib, 1, uintptr(mask), 0, 0)\n}", "func (gl *WebGL) EnableVertexAttribArray(position WebGLAttributeLocation) {\n\tgl.context.Call(\"enableVertexAttribArray\", position)\n}", "func VertexAttribPointer(index uint32, size int32, xtype uint32, normalized bool, stride int32, pointer unsafe.Pointer) {\n\tC.glowVertexAttribPointer(gpVertexAttribPointer, (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLsizei)(stride), pointer)\n}", "func VertexAttribPointer(index uint32, size int32, xtype uint32, normalized bool, stride int32, pointer unsafe.Pointer) {\n\tC.glowVertexAttribPointer(gpVertexAttribPointer, (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLsizei)(stride), pointer)\n}", "func GetVertexAttribiv(index uint32, pname uint32, params *int32) {\n C.glowGetVertexAttribiv(gpGetVertexAttribiv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func VertexAttribBinding(attribindex uint32, bindingindex uint32) {\n\tsyscall.Syscall(gpVertexAttribBinding, 2, uintptr(attribindex), uintptr(bindingindex), 0)\n}", "func EnableClientState(array uint32) {\n\tsyscall.Syscall(gpEnableClientState, 1, uintptr(array), 0, 0)\n}", "func VertexAttribBinding(attribindex uint32, bindingindex uint32) {\n C.glowVertexAttribBinding(gpVertexAttribBinding, (C.GLuint)(attribindex), (C.GLuint)(bindingindex))\n}", "func (h *handlerImpl) disablePath(adjMatrix adjacencyMatrix, path []int) {\n\tfor _, vertex := range path {\n\t\th.disableVertex(adjMatrix, vertex)\n\t}\n}", "func (vao VertexArrayObject) VertexAttribPointer(attrIndex int, attrType Type, normalized bool, byteStride int, byteOffset int) {\n\tglx := vao.glx\n\tbufferType, bufferItemsPerVertex, err := attrType.asAttribute()\n\tif err != nil {\n\t\tpanic(fmt.Errorf(\"converting attribute type %s to attribute: %w\", attrType, err))\n\t}\n\tglx.constants.VertexAttribPointer(\n\t\tglx.factory.Number(float64(attrIndex)),\n\t\tglx.factory.Number(float64(bufferItemsPerVertex)),\n\t\tglx.typeConverter.ToJs(bufferType),\n\t\tglx.factory.Boolean(normalized),\n\t\tglx.factory.Number(float64(byteStride)),\n\t\tglx.factory.Number(float64(byteOffset)),\n\t)\n}", "func Disable(cap Enum) {\n\tgl.Disable(uint32(cap))\n}", "func VertexAttrib1fv(index uint32, value []float32) {\n\tgl.VertexAttrib1fv(index, &value[0])\n}", "func MultiDrawElementsBaseVertex(mode uint32, count *int32, xtype uint32, indices *unsafe.Pointer, drawcount int32, basevertex *int32) {\n\tsyscall.Syscall6(gpMultiDrawElementsBaseVertex, 6, uintptr(mode), uintptr(unsafe.Pointer(count)), uintptr(xtype), uintptr(unsafe.Pointer(indices)), uintptr(drawcount), uintptr(unsafe.Pointer(basevertex)))\n}", "func GetVertexAttribdv(index uint32, pname uint32, params *float64) {\n C.glowGetVertexAttribdv(gpGetVertexAttribdv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params)))\n}", "func Disable(cap GLenum) {\n\tC.glDisable(C.GLenum(cap))\n}", "func EnableClientState(array uint32) {\n\tC.glowEnableClientState(gpEnableClientState, (C.GLenum)(array))\n}", "func (o *object) SetAttr(i uint8, val bool) {\n\tmask := byte(1 << (7 - i%8))\n\tif val {\n\t\to.Attributes[i/8] |= mask\n\t} else {\n\t\to.Attributes[i/8] &^= mask\n\t}\n}", "func MultiDrawElementsBaseVertex(mode uint32, count *int32, xtype uint32, indices *unsafe.Pointer, drawcount int32, basevertex *int32) {\n C.glowMultiDrawElementsBaseVertex(gpMultiDrawElementsBaseVertex, (C.GLenum)(mode), (*C.GLsizei)(unsafe.Pointer(count)), (C.GLenum)(xtype), indices, (C.GLsizei)(drawcount), (*C.GLint)(unsafe.Pointer(basevertex)))\n}", "func GetVertexAttribLdv(index uint32, pname uint32, params *float64) {\n C.glowGetVertexAttribLdv(gpGetVertexAttribLdv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params)))\n}", "func GetVertexAttribIiv(index uint32, pname uint32, params *int32) {\n C.glowGetVertexAttribIiv(gpGetVertexAttribIiv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetVertexAttribfv(index uint32, pname uint32, params *float32) {\n\tC.glowGetVertexAttribfv(gpGetVertexAttribfv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetVertexAttribfv(index uint32, pname uint32, params *float32) {\n\tC.glowGetVertexAttribfv(gpGetVertexAttribfv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func Enable(cap Enum) {\n\tgl.Enable(uint32(cap))\n}", "func GetVertexAttribiv(index uint32, pname uint32, params *int32) {\n\tC.glowGetVertexAttribiv(gpGetVertexAttribiv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetVertexAttribiv(index uint32, pname uint32, params *int32) {\n\tC.glowGetVertexAttribiv(gpGetVertexAttribiv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func BindVertexArray(array uint32) {\n\tC.glowBindVertexArray(gpBindVertexArray, (C.GLuint)(array))\n}", "func BindVertexArray(array uint32) {\n\tC.glowBindVertexArray(gpBindVertexArray, (C.GLuint)(array))\n}", "func GetVertexAttribIuiv(index uint32, pname uint32, params *uint32) {\n C.glowGetVertexAttribIuiv(gpGetVertexAttribIuiv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params)))\n}", "func (native *OpenGL) VertexAttribPointer(index uint32, size int32, xtype uint32, normalized bool, stride int32, pointer unsafe.Pointer) {\n\tgl.VertexAttribPointer(index, size, xtype, normalized, stride, pointer)\n}", "func GenVertexArrays(n int32, arrays *uint32) {\n\tsyscall.Syscall(gpGenVertexArrays, 2, uintptr(n), uintptr(unsafe.Pointer(arrays)), 0)\n}", "func BindVertexArray(array uint32) {\n\tsyscall.Syscall(gpBindVertexArray, 1, uintptr(array), 0, 0)\n}", "func VertexArrayElementBuffer(vaobj uint32, buffer uint32) {\n\tsyscall.Syscall(gpVertexArrayElementBuffer, 2, uintptr(vaobj), uintptr(buffer), 0)\n}", "func Enable(cap Enum) {\n\tccap, _ := (C.GLenum)(cap), cgoAllocsUnknown\n\tC.glEnable(ccap)\n}", "func (f Features) attrNormal() *spotify.TrackAttributes {\n\tx := spotify.NewTrackAttributes()\n\tx.TargetAcousticness(float64(f.Acousticness))\n\tx.TargetDanceability(float64(f.Danceability))\n\tx.TargetDuration(f.Duration)\n\tx.TargetEnergy(float64(f.Energy))\n\tx.TargetInstrumentalness(float64(f.Instrumentalness))\n\tx.TargetLiveness(float64(f.Liveness))\n\tx.TargetLoudness(float64(f.Loudness))\n\tx.TargetSpeechiness(float64(f.Speechiness))\n\tx.TargetValence(float64(f.Valence))\n\treturn x\n}", "func (graph *Graph) SetAttr(x, y int, attr byte) {\n\tgraph.Tiles[y][x].Attr = attr\n}", "func DrawElementsBaseVertex(mode uint32, count int32, xtype uint32, indices unsafe.Pointer, basevertex int32) {\n C.glowDrawElementsBaseVertex(gpDrawElementsBaseVertex, (C.GLenum)(mode), (C.GLsizei)(count), (C.GLenum)(xtype), indices, (C.GLint)(basevertex))\n}", "func (native *OpenGL) Disable(capability uint32) {\n\tgl.Disable(capability)\n}", "func enableWeights(tags []Tag) []Tag {\n\tvar dst []Tag\n\tfor _, v := range tags {\n\t\tdst = append(dst, Tag{v.Word, 1})\n\t\tfor i := 0; i < v.Weight-1; i++ {\n\t\t\tdst = append(dst, Tag{v.Word, 1})\n\t\t}\n\t}\n\treturn dst\n}", "func VertexAttrib4fv(index uint32, value []float32) {\n\tgl.VertexAttrib4fv(index, &value[0])\n}", "func (self *TileSprite) SetShaderA(member *AbstractFilter) {\n self.Object.Set(\"shader\", member)\n}", "func Disable(cap Enum) {\n\tccap, _ := (C.GLenum)(cap), cgoAllocsUnknown\n\tC.glDisable(ccap)\n}", "func ArrayElement(i int32) {\n C.glowArrayElement(gpArrayElement, (C.GLint)(i))\n}", "func GetVertexAttribfv(index uint32, pname uint32, params *float32) {\n\tsyscall.Syscall(gpGetVertexAttribfv, 3, uintptr(index), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func GetVertexAttribdv(index uint32, pname uint32, params *float64) {\n\tC.glowGetVertexAttribdv(gpGetVertexAttribdv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params)))\n}", "func GetVertexAttribdv(index uint32, pname uint32, params *float64) {\n\tC.glowGetVertexAttribdv(gpGetVertexAttribdv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params)))\n}", "func (self *TileSprite) SetSmoothedA(member bool) {\n self.Object.Set(\"smoothed\", member)\n}", "func (h *handlerImpl) reset(adjMatrix adjacencyMatrix) {\n\tfor from := range adjMatrix {\n\t\tfor to := range adjMatrix[from] {\n\t\t\tadjMatrix[from][to].disabled = false\n\t\t}\n\t}\n}", "func (gl *WebGL) VertexAttribPointer(position WebGLAttributeLocation, size int, valueType GLEnum, normalized bool, stride int, offset int) {\n\tgl.context.Call(\"vertexAttribPointer\", position, size, valueType, normalized, stride, offset)\n}", "func VertexAttribPointer(index Uint, size Int, kind Enum, normalized Boolean, stride Sizei, pointer unsafe.Pointer) {\n\tcindex, _ := (C.GLuint)(index), cgoAllocsUnknown\n\tcsize, _ := (C.GLint)(size), cgoAllocsUnknown\n\tckind, _ := (C.GLenum)(kind), cgoAllocsUnknown\n\tcnormalized, _ := (C.GLboolean)(normalized), cgoAllocsUnknown\n\tcstride, _ := (C.GLsizei)(stride), cgoAllocsUnknown\n\tcpointer, _ := (unsafe.Pointer)(unsafe.Pointer(pointer)), cgoAllocsUnknown\n\tC.glVertexAttribPointer(cindex, csize, ckind, cnormalized, cstride, cpointer)\n}", "func (g *GLTF) addAttributeToVBO(vbo *gls.VBO, attribName string, byteOffset uint32) {\n\n\taType, ok := AttributeName[attribName]\n\tif !ok {\n\t\tlog.Warn(fmt.Sprintf(\"Attribute %v is not supported!\", attribName))\n\t\treturn\n\t}\n\tvbo.AddAttribOffset(aType, byteOffset)\n}", "func ArrayElement(i int32) {\n\tC.glowArrayElement(gpArrayElement, (C.GLint)(i))\n}" ]
[ "0.7055345", "0.6763308", "0.66961026", "0.66961026", "0.636282", "0.62692064", "0.6207204", "0.6129912", "0.60076565", "0.60076565", "0.5986675", "0.59745425", "0.59459025", "0.59237194", "0.59237194", "0.5883715", "0.58829445", "0.5729264", "0.5729264", "0.57163274", "0.5661837", "0.5528807", "0.5417643", "0.54030985", "0.53803897", "0.5376542", "0.5366338", "0.5316413", "0.528323", "0.52389705", "0.52362454", "0.5222233", "0.52097905", "0.51933604", "0.51874095", "0.50903016", "0.50826436", "0.50826436", "0.5054548", "0.5011064", "0.50056535", "0.49877772", "0.4978986", "0.4951765", "0.49414793", "0.49153906", "0.49149558", "0.49075484", "0.4905164", "0.4903222", "0.48807967", "0.48807967", "0.48748618", "0.48361167", "0.48323894", "0.47917745", "0.47743273", "0.47387168", "0.47334224", "0.4730245", "0.4728253", "0.47167465", "0.4705734", "0.47050753", "0.47008803", "0.46991977", "0.4692541", "0.4689361", "0.468658", "0.468658", "0.4677714", "0.46523362", "0.46523362", "0.46369705", "0.46369705", "0.46116647", "0.46027154", "0.4597795", "0.45944467", "0.45941335", "0.4592401", "0.45766008", "0.45678076", "0.45673418", "0.45571554", "0.4554323", "0.4536005", "0.45273304", "0.45254928", "0.45081738", "0.45072755", "0.4495387", "0.4495387", "0.44936094", "0.44925097", "0.44903523", "0.44893196", "0.44885656", "0.4478893" ]
0.6961801
2
Enable or disable a generic vertex attribute array
func EnableVertexAttribArray(index uint32) { C.glowEnableVertexAttribArray(gpEnableVertexAttribArray, (C.GLuint)(index)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func EnableVertexArrayAttrib(vaobj uint32, index uint32) {\n\tsyscall.Syscall(gpEnableVertexArrayAttrib, 2, uintptr(vaobj), uintptr(index), 0)\n}", "func EnableVertexArrayAttrib(vaobj uint32, index uint32) {\n\tC.glowEnableVertexArrayAttrib(gpEnableVertexArrayAttrib, (C.GLuint)(vaobj), (C.GLuint)(index))\n}", "func EnableVertexArrayAttrib(vaobj uint32, index uint32) {\n\tC.glowEnableVertexArrayAttrib(gpEnableVertexArrayAttrib, (C.GLuint)(vaobj), (C.GLuint)(index))\n}", "func DisableVertexArrayAttrib(vaobj uint32, index uint32) {\n\tsyscall.Syscall(gpDisableVertexArrayAttrib, 2, uintptr(vaobj), uintptr(index), 0)\n}", "func DisableVertexArrayAttrib(vaobj uint32, index uint32) {\n\tC.glowDisableVertexArrayAttrib(gpDisableVertexArrayAttrib, (C.GLuint)(vaobj), (C.GLuint)(index))\n}", "func DisableVertexArrayAttrib(vaobj uint32, index uint32) {\n\tC.glowDisableVertexArrayAttrib(gpDisableVertexArrayAttrib, (C.GLuint)(vaobj), (C.GLuint)(index))\n}", "func EnableVertexAttribArray(index uint32) {\n C.glowEnableVertexAttribArray(gpEnableVertexAttribArray, (C.GLuint)(index))\n}", "func DisableVertexAttribArray(index uint32) {\n C.glowDisableVertexAttribArray(gpDisableVertexAttribArray, (C.GLuint)(index))\n}", "func (h *handlerImpl) disableVertex(adjMatrix adjacencyMatrix, vertex int) {\n\tfor to := range adjMatrix[vertex] {\n\t\tadjMatrix[vertex][to].disabled = true\n\t}\n}", "func EnableVertexAttribArray(index uint32) {\n\tsyscall.Syscall(gpEnableVertexAttribArray, 1, uintptr(index), 0, 0)\n}", "func VertexArrayAttribFormat(vaobj uint32, attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n\tC.glowVertexArrayAttribFormat(gpVertexArrayAttribFormat, (C.GLuint)(vaobj), (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(relativeoffset))\n}", "func VertexArrayAttribFormat(vaobj uint32, attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n\tC.glowVertexArrayAttribFormat(gpVertexArrayAttribFormat, (C.GLuint)(vaobj), (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(relativeoffset))\n}", "func DisableVertexAttribArray(index uint32) {\n\tsyscall.Syscall(gpDisableVertexAttribArray, 1, uintptr(index), 0, 0)\n}", "func VertexArrayAttribFormat(vaobj uint32, attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n\tsyscall.Syscall6(gpVertexArrayAttribFormat, 6, uintptr(vaobj), uintptr(attribindex), uintptr(size), uintptr(xtype), boolToUintptr(normalized), uintptr(relativeoffset))\n}", "func EnableVertexAttribArray(index Uint) {\n\tcindex, _ := (C.GLuint)(index), cgoAllocsUnknown\n\tC.glEnableVertexAttribArray(cindex)\n}", "func EnableVertexAttribArray(a Attrib) {\n\tgl.EnableVertexAttribArray(uint32(a.Value))\n}", "func EnableVertexAttribArray(index uint32) {\n\tgl.EnableVertexAttribArray(index)\n}", "func DisableVertexAttribArray(index uint32) {\n\tC.glowDisableVertexAttribArray(gpDisableVertexAttribArray, (C.GLuint)(index))\n}", "func DisableVertexAttribArray(index uint32) {\n\tC.glowDisableVertexAttribArray(gpDisableVertexAttribArray, (C.GLuint)(index))\n}", "func DisableVertexAttribArray(a Attrib) {\n\tgl.DisableVertexAttribArray(uint32(a.Value))\n}", "func DisableVertexAttribArray(index uint32) {\n\tgl.DisableVertexAttribArray(index)\n}", "func (native *OpenGL) EnableVertexAttribArray(index uint32) {\n\tgl.EnableVertexAttribArray(index)\n}", "func (c *Context) EnableVertexAttribArray(l gfx.AttribLocation) gfx.ContextStateValue {\n\treturn s.CSV{\n\t\tValue: l,\n\t\tDefaultValue: 0, // TODO(slimsag): default enable VAA values!\n\t\tKey: csEnableVertexAttribArray,\n\t\tGLCall: c.glEnableVertexAttribArray,\n\t}\n}", "func PushAttrib(mask uint32) {\n C.glowPushAttrib(gpPushAttrib, (C.GLbitfield)(mask))\n}", "func DisableVertexAttribArray(index Uint) {\n\tcindex, _ := (C.GLuint)(index), cgoAllocsUnknown\n\tC.glDisableVertexAttribArray(cindex)\n}", "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n C.glowVertexAttribFormat(gpVertexAttribFormat, (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(relativeoffset))\n}", "func EnableClientState(array uint32) {\n C.glowEnableClientState(gpEnableClientState, (C.GLenum)(array))\n}", "func (g *GLTF) loadAttributes(geom *geometry.Geometry, attributes map[string]int, indices math32.ArrayU32) error {\n\n\t// Indices of buffer views\n\tinterleavedVBOs := make(map[int]*gls.VBO, 0)\n\n\t// Load primitive attributes\n\tfor name, aci := range attributes {\n\t\taccessor := g.Accessors[aci]\n\n\t\t// Validate that accessor is compatible with attribute\n\t\terr := g.validateAccessorAttribute(accessor, name)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\t// Load data and add it to geometry's VBO\n\t\tif g.isInterleaved(accessor) {\n\t\t\tbvIdx := *accessor.BufferView\n\t\t\t// Check if we already loaded this buffer view\n\t\t\tvbo, ok := interleavedVBOs[bvIdx]\n\t\t\tif ok {\n\t\t\t\t// Already created VBO for this buffer view\n\t\t\t\t// Add attribute with correct byteOffset\n\t\t\t\tg.addAttributeToVBO(vbo, name, uint32(*accessor.ByteOffset))\n\t\t\t} else {\n\t\t\t\t// Load data and create vbo\n\t\t\t\tbuf, err := g.loadBufferView(bvIdx)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\t//\n\t\t\t\t// TODO: BUG HERE\n\t\t\t\t// If buffer view has accessors with different component type then this will have a read alignment problem!\n\t\t\t\t//\n\t\t\t\tdata, err := g.bytesToArrayF32(buf, accessor.ComponentType, accessor.Count*TypeSizes[accessor.Type])\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tvbo := gls.NewVBO(data)\n\t\t\t\tg.addAttributeToVBO(vbo, name, 0)\n\t\t\t\t// Save reference to VBO keyed by index of the buffer view\n\t\t\t\tinterleavedVBOs[bvIdx] = vbo\n\t\t\t\t// Add VBO to geometry\n\t\t\t\tgeom.AddVBO(vbo)\n\t\t\t}\n\t\t} else {\n\t\t\tbuf, err := g.loadAccessorBytes(accessor)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tdata, err := g.bytesToArrayF32(buf, accessor.ComponentType, accessor.Count*TypeSizes[accessor.Type])\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tvbo := gls.NewVBO(data)\n\t\t\tg.addAttributeToVBO(vbo, name, 0)\n\t\t\t// Add VBO to geometry\n\t\t\tgeom.AddVBO(vbo)\n\t\t}\n\t}\n\n\t// Set indices\n\tif len(indices) > 0 {\n\t\tgeom.SetIndices(indices)\n\t}\n\n\treturn nil\n}", "func PushAttrib(mask uint32) {\n\tsyscall.Syscall(gpPushAttrib, 1, uintptr(mask), 0, 0)\n}", "func PushAttrib(mask uint32) {\n\tC.glowPushAttrib(gpPushAttrib, (C.GLbitfield)(mask))\n}", "func (self *Graphics) SetInputEnabledA(member bool) {\n self.Object.Set(\"inputEnabled\", member)\n}", "func PushClientAttrib(mask uint32) {\n C.glowPushClientAttrib(gpPushClientAttrib, (C.GLbitfield)(mask))\n}", "func (debugging *debuggingOpenGL) EnableVertexAttribArray(index uint32) {\n\tdebugging.recordEntry(\"EnableVertexAttribArray\", index)\n\tdebugging.gl.EnableVertexAttribArray(index)\n\tdebugging.recordExit(\"EnableVertexAttribArray\")\n}", "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n\tsyscall.Syscall6(gpVertexAttribFormat, 5, uintptr(attribindex), uintptr(size), uintptr(xtype), boolToUintptr(normalized), uintptr(relativeoffset), 0)\n}", "func VertexAttribPointer(index uint32, size int32, xtype uint32, normalized bool, stride int32, pointer unsafe.Pointer) {\n C.glowVertexAttribPointer(gpVertexAttribPointer, (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLsizei)(stride), pointer)\n}", "func PushClientAttrib(mask uint32) {\n\tC.glowPushClientAttrib(gpPushClientAttrib, (C.GLbitfield)(mask))\n}", "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n\tC.glowVertexAttribFormat(gpVertexAttribFormat, (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(relativeoffset))\n}", "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n\tC.glowVertexAttribFormat(gpVertexAttribFormat, (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(relativeoffset))\n}", "func (self *TileSprite) SetInputEnabledA(member bool) {\n self.Object.Set(\"inputEnabled\", member)\n}", "func (l *Loader) SetAttrSpecial(i Sym, v bool) {\n\tif v {\n\t\tl.attrSpecial[i] = struct{}{}\n\t} else {\n\t\tdelete(l.attrSpecial, i)\n\t}\n}", "func VertexAttribPointer(index uint32, size int32, xtype uint32, normalized bool, stride int32, pointer unsafe.Pointer) {\n\tsyscall.Syscall6(gpVertexAttribPointer, 6, uintptr(index), uintptr(size), uintptr(xtype), boolToUintptr(normalized), uintptr(stride), uintptr(pointer))\n}", "func BindVertexArray(array uint32) {\n C.glowBindVertexArray(gpBindVertexArray, (C.GLuint)(array))\n}", "func (l *Loader) SetAttrReadOnly(i Sym, v bool) {\n\tl.attrReadOnly[i] = v\n}", "func enableForceDestroyAttributes(state cty.Value) cty.Value {\n\tstateWithDestroyAttrs := map[string]cty.Value{}\n\n\tif state.CanIterateElements() {\n\t\tfor k, v := range state.AsValueMap() {\n\t\t\tif k == \"force_detach_policies\" || k == \"force_destroy\" {\n\t\t\t\tif v.Type().Equals(cty.Bool) {\n\t\t\t\t\tstateWithDestroyAttrs[k] = cty.True\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tstateWithDestroyAttrs[k] = v\n\t\t\t}\n\t\t}\n\t}\n\n\treturn cty.ObjectVal(stateWithDestroyAttrs)\n}", "func Enable(cap GLenum) {\n\tC.glEnable(C.GLenum(cap))\n}", "func enableDisable(status, device int, name string) {\n\tvar request RpcRequest\n\n\tswitch status {\n\tcase 0:\n\t\trequest = RpcRequest{fmt.Sprintf(\"{\\\"command\\\":\\\"gpudisable\\\",\\\"parameter\\\":\\\"%v\\\"}\", device), make(chan []byte), name}\n\tcase 1:\n\t\trequest = RpcRequest{fmt.Sprintf(\"{\\\"command\\\":\\\"gpuenable\\\",\\\"parameter\\\":\\\"%v\\\"}\", device), make(chan []byte), name}\n\t}\n\n\trequest.Send()\n}", "func (va *VertexArray) SetLayout(layout VertexLayout) {\n\tif len(va.layout.layout) != 0 {\n\t\treturn\n\t}\n\n\tva.layout = layout\n\n\t// generate and bind the vertex array\n\tgl.GenVertexArrays(1, &va.vao) // generates the vertex array (or multiple)\n\tgl.BindVertexArray(va.vao) // binds the vertex array\n\n\t// make vertex array pointer attributes\n\t// offset is the offset in bytes to the first attribute\n\toffset := 0\n\n\t// calculate vertex stride\n\tstride := 0\n\tfor _, elem := range va.layout.layout {\n\t\tstride += elem.getByteSize()\n\n\t}\n\n\t// Vertex Buffer Object\n\tgl.GenBuffers(1, &va.vbo) // generates the buffer (or multiple)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, va.vbo)\n\n\tfor i, elem := range va.layout.layout {\n\n\t\t// define an array of generic vertex attribute data\n\t\t// index, size, type, normalized, stride of vertex (in bytes), pointer (offset)\n\t\t// point positions\n\t\tgl.VertexAttribPointer(uint32(i), int32(elem.getSize()),\n\t\t\telem.getGLType(), false, int32(stride), gl.PtrOffset(offset))\n\t\tgl.EnableVertexAttribArray(uint32(i))\n\t\toffset += elem.getByteSize()\n\t}\n\n}", "func GetVertexAttribfv(index uint32, pname uint32, params *float32) {\n C.glowGetVertexAttribfv(gpGetVertexAttribfv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func PushClientAttrib(mask uint32) {\n\tsyscall.Syscall(gpPushClientAttrib, 1, uintptr(mask), 0, 0)\n}", "func (gl *WebGL) EnableVertexAttribArray(position WebGLAttributeLocation) {\n\tgl.context.Call(\"enableVertexAttribArray\", position)\n}", "func VertexAttribPointer(index uint32, size int32, xtype uint32, normalized bool, stride int32, pointer unsafe.Pointer) {\n\tC.glowVertexAttribPointer(gpVertexAttribPointer, (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLsizei)(stride), pointer)\n}", "func VertexAttribPointer(index uint32, size int32, xtype uint32, normalized bool, stride int32, pointer unsafe.Pointer) {\n\tC.glowVertexAttribPointer(gpVertexAttribPointer, (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLsizei)(stride), pointer)\n}", "func GetVertexAttribiv(index uint32, pname uint32, params *int32) {\n C.glowGetVertexAttribiv(gpGetVertexAttribiv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func VertexAttribBinding(attribindex uint32, bindingindex uint32) {\n\tsyscall.Syscall(gpVertexAttribBinding, 2, uintptr(attribindex), uintptr(bindingindex), 0)\n}", "func EnableClientState(array uint32) {\n\tsyscall.Syscall(gpEnableClientState, 1, uintptr(array), 0, 0)\n}", "func VertexAttribBinding(attribindex uint32, bindingindex uint32) {\n C.glowVertexAttribBinding(gpVertexAttribBinding, (C.GLuint)(attribindex), (C.GLuint)(bindingindex))\n}", "func (h *handlerImpl) disablePath(adjMatrix adjacencyMatrix, path []int) {\n\tfor _, vertex := range path {\n\t\th.disableVertex(adjMatrix, vertex)\n\t}\n}", "func (vao VertexArrayObject) VertexAttribPointer(attrIndex int, attrType Type, normalized bool, byteStride int, byteOffset int) {\n\tglx := vao.glx\n\tbufferType, bufferItemsPerVertex, err := attrType.asAttribute()\n\tif err != nil {\n\t\tpanic(fmt.Errorf(\"converting attribute type %s to attribute: %w\", attrType, err))\n\t}\n\tglx.constants.VertexAttribPointer(\n\t\tglx.factory.Number(float64(attrIndex)),\n\t\tglx.factory.Number(float64(bufferItemsPerVertex)),\n\t\tglx.typeConverter.ToJs(bufferType),\n\t\tglx.factory.Boolean(normalized),\n\t\tglx.factory.Number(float64(byteStride)),\n\t\tglx.factory.Number(float64(byteOffset)),\n\t)\n}", "func Disable(cap Enum) {\n\tgl.Disable(uint32(cap))\n}", "func VertexAttrib1fv(index uint32, value []float32) {\n\tgl.VertexAttrib1fv(index, &value[0])\n}", "func MultiDrawElementsBaseVertex(mode uint32, count *int32, xtype uint32, indices *unsafe.Pointer, drawcount int32, basevertex *int32) {\n\tsyscall.Syscall6(gpMultiDrawElementsBaseVertex, 6, uintptr(mode), uintptr(unsafe.Pointer(count)), uintptr(xtype), uintptr(unsafe.Pointer(indices)), uintptr(drawcount), uintptr(unsafe.Pointer(basevertex)))\n}", "func GetVertexAttribdv(index uint32, pname uint32, params *float64) {\n C.glowGetVertexAttribdv(gpGetVertexAttribdv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params)))\n}", "func Disable(cap GLenum) {\n\tC.glDisable(C.GLenum(cap))\n}", "func EnableClientState(array uint32) {\n\tC.glowEnableClientState(gpEnableClientState, (C.GLenum)(array))\n}", "func (o *object) SetAttr(i uint8, val bool) {\n\tmask := byte(1 << (7 - i%8))\n\tif val {\n\t\to.Attributes[i/8] |= mask\n\t} else {\n\t\to.Attributes[i/8] &^= mask\n\t}\n}", "func MultiDrawElementsBaseVertex(mode uint32, count *int32, xtype uint32, indices *unsafe.Pointer, drawcount int32, basevertex *int32) {\n C.glowMultiDrawElementsBaseVertex(gpMultiDrawElementsBaseVertex, (C.GLenum)(mode), (*C.GLsizei)(unsafe.Pointer(count)), (C.GLenum)(xtype), indices, (C.GLsizei)(drawcount), (*C.GLint)(unsafe.Pointer(basevertex)))\n}", "func GetVertexAttribLdv(index uint32, pname uint32, params *float64) {\n C.glowGetVertexAttribLdv(gpGetVertexAttribLdv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params)))\n}", "func GetVertexAttribIiv(index uint32, pname uint32, params *int32) {\n C.glowGetVertexAttribIiv(gpGetVertexAttribIiv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetVertexAttribfv(index uint32, pname uint32, params *float32) {\n\tC.glowGetVertexAttribfv(gpGetVertexAttribfv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetVertexAttribfv(index uint32, pname uint32, params *float32) {\n\tC.glowGetVertexAttribfv(gpGetVertexAttribfv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func Enable(cap Enum) {\n\tgl.Enable(uint32(cap))\n}", "func GetVertexAttribiv(index uint32, pname uint32, params *int32) {\n\tC.glowGetVertexAttribiv(gpGetVertexAttribiv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetVertexAttribiv(index uint32, pname uint32, params *int32) {\n\tC.glowGetVertexAttribiv(gpGetVertexAttribiv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func BindVertexArray(array uint32) {\n\tC.glowBindVertexArray(gpBindVertexArray, (C.GLuint)(array))\n}", "func BindVertexArray(array uint32) {\n\tC.glowBindVertexArray(gpBindVertexArray, (C.GLuint)(array))\n}", "func GetVertexAttribIuiv(index uint32, pname uint32, params *uint32) {\n C.glowGetVertexAttribIuiv(gpGetVertexAttribIuiv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params)))\n}", "func (native *OpenGL) VertexAttribPointer(index uint32, size int32, xtype uint32, normalized bool, stride int32, pointer unsafe.Pointer) {\n\tgl.VertexAttribPointer(index, size, xtype, normalized, stride, pointer)\n}", "func GenVertexArrays(n int32, arrays *uint32) {\n\tsyscall.Syscall(gpGenVertexArrays, 2, uintptr(n), uintptr(unsafe.Pointer(arrays)), 0)\n}", "func BindVertexArray(array uint32) {\n\tsyscall.Syscall(gpBindVertexArray, 1, uintptr(array), 0, 0)\n}", "func VertexArrayElementBuffer(vaobj uint32, buffer uint32) {\n\tsyscall.Syscall(gpVertexArrayElementBuffer, 2, uintptr(vaobj), uintptr(buffer), 0)\n}", "func Enable(cap Enum) {\n\tccap, _ := (C.GLenum)(cap), cgoAllocsUnknown\n\tC.glEnable(ccap)\n}", "func (f Features) attrNormal() *spotify.TrackAttributes {\n\tx := spotify.NewTrackAttributes()\n\tx.TargetAcousticness(float64(f.Acousticness))\n\tx.TargetDanceability(float64(f.Danceability))\n\tx.TargetDuration(f.Duration)\n\tx.TargetEnergy(float64(f.Energy))\n\tx.TargetInstrumentalness(float64(f.Instrumentalness))\n\tx.TargetLiveness(float64(f.Liveness))\n\tx.TargetLoudness(float64(f.Loudness))\n\tx.TargetSpeechiness(float64(f.Speechiness))\n\tx.TargetValence(float64(f.Valence))\n\treturn x\n}", "func (graph *Graph) SetAttr(x, y int, attr byte) {\n\tgraph.Tiles[y][x].Attr = attr\n}", "func DrawElementsBaseVertex(mode uint32, count int32, xtype uint32, indices unsafe.Pointer, basevertex int32) {\n C.glowDrawElementsBaseVertex(gpDrawElementsBaseVertex, (C.GLenum)(mode), (C.GLsizei)(count), (C.GLenum)(xtype), indices, (C.GLint)(basevertex))\n}", "func (native *OpenGL) Disable(capability uint32) {\n\tgl.Disable(capability)\n}", "func enableWeights(tags []Tag) []Tag {\n\tvar dst []Tag\n\tfor _, v := range tags {\n\t\tdst = append(dst, Tag{v.Word, 1})\n\t\tfor i := 0; i < v.Weight-1; i++ {\n\t\t\tdst = append(dst, Tag{v.Word, 1})\n\t\t}\n\t}\n\treturn dst\n}", "func VertexAttrib4fv(index uint32, value []float32) {\n\tgl.VertexAttrib4fv(index, &value[0])\n}", "func (self *TileSprite) SetShaderA(member *AbstractFilter) {\n self.Object.Set(\"shader\", member)\n}", "func Disable(cap Enum) {\n\tccap, _ := (C.GLenum)(cap), cgoAllocsUnknown\n\tC.glDisable(ccap)\n}", "func ArrayElement(i int32) {\n C.glowArrayElement(gpArrayElement, (C.GLint)(i))\n}", "func GetVertexAttribfv(index uint32, pname uint32, params *float32) {\n\tsyscall.Syscall(gpGetVertexAttribfv, 3, uintptr(index), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func GetVertexAttribdv(index uint32, pname uint32, params *float64) {\n\tC.glowGetVertexAttribdv(gpGetVertexAttribdv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params)))\n}", "func GetVertexAttribdv(index uint32, pname uint32, params *float64) {\n\tC.glowGetVertexAttribdv(gpGetVertexAttribdv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params)))\n}", "func (self *TileSprite) SetSmoothedA(member bool) {\n self.Object.Set(\"smoothed\", member)\n}", "func (h *handlerImpl) reset(adjMatrix adjacencyMatrix) {\n\tfor from := range adjMatrix {\n\t\tfor to := range adjMatrix[from] {\n\t\t\tadjMatrix[from][to].disabled = false\n\t\t}\n\t}\n}", "func (gl *WebGL) VertexAttribPointer(position WebGLAttributeLocation, size int, valueType GLEnum, normalized bool, stride int, offset int) {\n\tgl.context.Call(\"vertexAttribPointer\", position, size, valueType, normalized, stride, offset)\n}", "func VertexAttribPointer(index Uint, size Int, kind Enum, normalized Boolean, stride Sizei, pointer unsafe.Pointer) {\n\tcindex, _ := (C.GLuint)(index), cgoAllocsUnknown\n\tcsize, _ := (C.GLint)(size), cgoAllocsUnknown\n\tckind, _ := (C.GLenum)(kind), cgoAllocsUnknown\n\tcnormalized, _ := (C.GLboolean)(normalized), cgoAllocsUnknown\n\tcstride, _ := (C.GLsizei)(stride), cgoAllocsUnknown\n\tcpointer, _ := (unsafe.Pointer)(unsafe.Pointer(pointer)), cgoAllocsUnknown\n\tC.glVertexAttribPointer(cindex, csize, ckind, cnormalized, cstride, cpointer)\n}", "func (g *GLTF) addAttributeToVBO(vbo *gls.VBO, attribName string, byteOffset uint32) {\n\n\taType, ok := AttributeName[attribName]\n\tif !ok {\n\t\tlog.Warn(fmt.Sprintf(\"Attribute %v is not supported!\", attribName))\n\t\treturn\n\t}\n\tvbo.AddAttribOffset(aType, byteOffset)\n}", "func ArrayElement(i int32) {\n\tC.glowArrayElement(gpArrayElement, (C.GLint)(i))\n}" ]
[ "0.7055345", "0.6961801", "0.6961801", "0.6763308", "0.66961026", "0.66961026", "0.636282", "0.62692064", "0.6207204", "0.6129912", "0.60076565", "0.60076565", "0.5986675", "0.59745425", "0.59459025", "0.5883715", "0.58829445", "0.5729264", "0.5729264", "0.57163274", "0.5661837", "0.5528807", "0.5417643", "0.54030985", "0.53803897", "0.5376542", "0.5366338", "0.5316413", "0.528323", "0.52389705", "0.52362454", "0.5222233", "0.52097905", "0.51933604", "0.51874095", "0.50903016", "0.50826436", "0.50826436", "0.5054548", "0.5011064", "0.50056535", "0.49877772", "0.4978986", "0.4951765", "0.49414793", "0.49153906", "0.49149558", "0.49075484", "0.4905164", "0.4903222", "0.48807967", "0.48807967", "0.48748618", "0.48361167", "0.48323894", "0.47917745", "0.47743273", "0.47387168", "0.47334224", "0.4730245", "0.4728253", "0.47167465", "0.4705734", "0.47050753", "0.47008803", "0.46991977", "0.4692541", "0.4689361", "0.468658", "0.468658", "0.4677714", "0.46523362", "0.46523362", "0.46369705", "0.46369705", "0.46116647", "0.46027154", "0.4597795", "0.45944467", "0.45941335", "0.4592401", "0.45766008", "0.45678076", "0.45673418", "0.45571554", "0.4554323", "0.4536005", "0.45273304", "0.45254928", "0.45081738", "0.45072755", "0.4495387", "0.4495387", "0.44936094", "0.44925097", "0.44903523", "0.44893196", "0.44885656", "0.4478893" ]
0.59237194
16
create a new sync object and insert it into the GL command stream
func FenceSync(condition uint32, flags uint32) uintptr { ret := C.glowFenceSync(gpFenceSync, (C.GLenum)(condition), (C.GLbitfield)(flags)) return (uintptr)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewSynchronization()(*Synchronization) {\n m := &Synchronization{\n Entity: *NewEntity(),\n }\n return m\n}", "func NewSync(c *cli.Context) Sync {\n\treturn Sync{\n\t\tsrc: c.Args().Get(0),\n\t\tdst: c.Args().Get(1),\n\t\top: c.Command.Name,\n\t\tfullCommand: commandFromContext(c),\n\n\t\t// flags\n\t\tdelete: c.Bool(\"delete\"),\n\t\tsizeOnly: c.Bool(\"size-only\"),\n\t\texitOnError: c.Bool(\"exit-on-error\"),\n\n\t\t// flags\n\t\tfollowSymlinks: !c.Bool(\"no-follow-symlinks\"),\n\t\tstorageClass: storage.StorageClass(c.String(\"storage-class\")),\n\t\traw: c.Bool(\"raw\"),\n\t\t// region settings\n\t\tsrcRegion: c.String(\"source-region\"),\n\t\tdstRegion: c.String(\"destination-region\"),\n\t\tstorageOpts: NewStorageOpts(c),\n\t}\n}", "func NewSync(mountID mount.ID, m mount.Mount, opts SyncOpts) (*Sync, error) {\n\tif err := opts.Valid(); err != nil {\n\t\treturn nil, err\n\t}\n\n\ts := &Sync{\n\t\topts: opts,\n\t\tmountID: mountID,\n\t\tm: m,\n\t}\n\n\tif opts.Log != nil {\n\t\ts.log = opts.Log.New(\"sync\")\n\t} else {\n\t\ts.log = machine.DefaultLogger.New(\"sync\")\n\t}\n\n\t// Create directory structure if it doesn't exist.\n\tif err := os.MkdirAll(filepath.Join(s.opts.WorkDir, \"data\"), 0755); err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Fetch or load remote index.\n\tvar err error\n\tif s.ridx, err = s.loadIdx(RemoteIndexName, s.fetchRemoteIdx); err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Create or load local index.\n\tif s.lidx, err = s.loadIdx(LocalIndexName, s.fetchLocalIdx); err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Update local index if needed.\n\tif err := s.updateLocal(); err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Create FS event consumer queue.\n\ts.a = NewAnteroom()\n\n\t// Create file system notification object.\n\ts.n, err = opts.NotifyBuilder.Build(&notify.BuildOpts{\n\t\tMountID: mountID,\n\t\tMount: m,\n\t\tCache: s.a,\n\t\tCacheDir: filepath.Join(s.opts.WorkDir, \"data\"),\n\t\tRemoteIdx: s.ridx,\n\t\tLocalIdx: s.lidx,\n\t})\n\tif err != nil {\n\t\ts.a.Close()\n\t\treturn nil, err\n\t}\n\n\t// Create file synchronization object.\n\ts.s, err = opts.SyncBuilder.Build(&BuildOpts{\n\t\tRemoteIdx: s.ridx,\n\t\tLocalIdx: s.lidx,\n\t})\n\tif err != nil {\n\t\ts.n.Close()\n\t\ts.a.Close()\n\t\treturn nil, err\n\t}\n\n\treturn s, nil\n}", "func NewSync(opts ...Option) Sync {\n\toptions := Options{}\n\tfor _, o := range opts {\n\t\to(&options)\n\t}\n\n\treturn &memorySync{\n\t\toptions: options,\n\t\tlocks: make(map[string]*memoryLock),\n\t}\n}", "func New(dst, src string) *Sync {\n\treturn &Sync{\n\t\tVerbose: true,\n\t\tDst: dst,\n\t\tSrc: src,\n\t}\n}", "func newSharedSync(channel *Channel) sharedSync {\n\tshared := sharedSync{\n\t\ttransportCtx: channel.ctx,\n\t\ttransportLock: channel.transportLock,\n\t\tlegComplete: new(sync.WaitGroup),\n\t\trunSetup: new(sync.WaitGroup),\n\t\tsetupComplete: new(sync.WaitGroup),\n\t\trunLeg: new(sync.WaitGroup),\n\t}\n\n\tshared.runSetup.Add(1)\n\treturn shared\n}", "func NewSync() (Sync, error) {\n\tlogStore, err := datastore.NewEventLogStore()\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"Unable to Sync events, cannot connect to log store\")\n\t}\n\tlinkedCustomerStore, err := datastore.NewLinkedCustomerStore()\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"Unable to Sync events, cannot connect to linked customer store\")\n\t}\n\treturn &sync{\n\t\tstop: make(chan bool),\n\t\tsubscriber: messaging.NewRedisStreamSubscriber(),\n\t\tlogStore: logStore,\n\t\tlinkedCustomerStore: linkedCustomerStore,\n\t}, nil\n}", "func (builder *RoomBuilder) BuildSync(s *synced.SyncI) {\n\t*s = builder.sync\n}", "func newSyncState(startBlock, syncedTo *BlockStamp) *syncState {\n\n\treturn &syncState{\n\t\tstartBlock: *startBlock,\n\t\tsyncedTo: *syncedTo,\n\t}\n}", "func (api *objectAPI) SyncCreate(obj *objstore.Object) error {\n\tnewObj := obj\n\tevtType := kvstore.Created\n\tvar writeErr error\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\tnewObj, writeErr = apicl.ObjstoreV1().Object().Create(context.Background(), obj)\n\t\tif writeErr != nil && strings.Contains(writeErr.Error(), \"AlreadyExists\") {\n\t\t\tnewObj, writeErr = apicl.ObjstoreV1().Object().Update(context.Background(), obj)\n\t\t\tevtType = kvstore.Updated\n\t\t}\n\t}\n\n\tif writeErr == nil {\n\t\tapi.ct.handleObjectEvent(&kvstore.WatchEvent{Object: newObj, Type: evtType})\n\t}\n\treturn writeErr\n}", "func (o *WlDisplay) Sync(callback *WlCallback) error {\n\tmsg, err := wire.NewMessage(o.ID(), 0)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif err = msg.Write(callback.ID()); err != nil {\n\t\treturn err\n\t}\n\n\tif err = o.Base.Conn.Write(msg); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}", "func newSyncCommand() cli.Command {\n\treturn new(syncCommand).getCommand()\n}", "func (d *specialDevice) sync() error {\n\tif d.toLimb != nil {\n\t\tif err := d.toLimb(d.instance); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\tif d.mqttClient != nil {\n\t\tif err := d.mqttClient.Publish(mqtt.PublishMessage{Payload: d.instance.Status}); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\td.log.V(1).Info(\"Synced\")\n\treturn nil\n}", "func newTimeSyncCommand(\n\tdata []byte,\n\tthreshold time.Duration,\n\treceivedAt time.Time,\n\tfPort uint32,\n) (*TimeSyncCommand, []byte, error) {\n\t// DeviceTime - bytes [0, 3].\n\t// Param - byte 4 (bits: RFU [7:5]; AnsRequired 4; TokenReq [3:0]).\n\n\tlenBytes := 5\n\tif len(data) < lenBytes {\n\t\treturn nil, data, errInsufficientLength.WithAttributes(\n\t\t\t\"expected_length\", lenBytes,\n\t\t\t\"actual_length\", len(data),\n\t\t).New()\n\t}\n\n\tcPayload, rest := data[:lenBytes], data[lenBytes:]\n\tdeviceTimeGPSSeconds := binary.LittleEndian.Uint32(cPayload[:4])\n\tdurationGPS := time.Duration(deviceTimeGPSSeconds) * time.Second\n\tdeviceTime := gpstime.Parse(durationGPS)\n\ttokenReq := cPayload[4] & 0x0F\n\tansRequired := (cPayload[4] & 0x10) != 0\n\n\tcmd := &TimeSyncCommand{\n\t\treq: &ttnpb.ALCSyncCommand_AppTimeReq{\n\t\t\tDeviceTime: timestamppb.New(deviceTime),\n\t\t\tTokenReq: uint32(tokenReq),\n\t\t\tAnsRequired: ansRequired,\n\t\t},\n\t\treceivedAt: receivedAt,\n\t\tthreshold: threshold,\n\t\tfPort: fPort,\n\t}\n\treturn cmd, rest, nil\n}", "func (client *Client) Sync() {\n\t/*go func() {*/\n\tstart := time.Now()\n\t// Fetch\n\tconn, err := net.Dial(\"tcp\", client.address)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\t_, _ = fmt.Fprintf(conn, \"fetch \"+strconv.Itoa(client.id))\n\tresponse := make([]byte, 1024)\n\t_, err = conn.Read(response)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tbody := string(response)\n\tif !strings.Contains(body, \"<empty>\") {\n\t\tclient.syncs = body\n\t}\n\t_ = conn.Close()\n\n\t// Then sync\n\tconn, err = net.Dial(\"tcp\", client.address)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// Build sync object\n\tdata := \"\"\n\tif len(client.actions) != 0 {\n\t\tfor _, action := range client.actions {\n\t\t\tswitch action.(type) {\n\t\t\tcase *CameraMovementAction:\n\t\t\t\tsync := action.(*CameraMovementAction)\n\t\t\t\tdata += fmt.Sprintf(\"skin %d %f %f %f %f %f %f\",\n\t\t\t\t\tclient.id,\n\t\t\t\t\tsync.position.X(),\n\t\t\t\t\tsync.position.Y(),\n\t\t\t\t\tsync.position.Z(),\n\t\t\t\t\tsync.rotation.X(),\n\t\t\t\t\tsync.rotation.Y(),\n\t\t\t\t\tsync.rotation.Z())\n\t\t\tdefault:\n\t\t\t\tpanic(\"unknown INetworkAction type\")\n\t\t\t}\n\t\t}\n\t} else {\n\t\tdata = \"<empty>\"\n\t}\n\n\t_, _ = fmt.Fprintf(conn, fmt.Sprintf(\"sync %d\\n\", client.id)+data)\n\tresponse = make([]byte, 256)\n\t_, err = conn.Read(response)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tif !strings.Contains(string(response), \"good\") {\n\t\tpanic(\"The server is a fucking liar!\")\n\t}\n\t_ = conn.Close()\n\n\t// All modification send\n\t// Clean modifications\n\tclient.actions = []INetworkAction{}\n\t/*}()*/\n\tfmt.Printf(\"ping :%d\\r\", time.Now().Sub(start).Milliseconds())\n}", "func synchronize(kvsync kvs.Sync) {\n\tc := context.Background()\n\n\t// This is the object to be synchronized\n\tdb := Data{}\n\n\t// Creating a sync object from the provided lower-level kv sync.\n\ts := sync.Sync{\n\t\tSync: kvsync,\n\t}\n\n\t// Registering callback for given object with given format\n\ts.SyncObject(sync.SyncObject{\n\t\tCallback: SyncCallback,\n\t\tObject: &db,\n\t\tFormat: \"/db/stored/here/\",\n\t})\n\n\t// Time wheel to trigger callback notification for successive events\n\tfor {\n\t\te := s.Next(c)\n\t\tif e != nil {\n\t\t\tpanic(e)\n\t\t}\n\t\tif stopTimeWheel {\n\t\t\tbreak\n\t\t}\n\t}\n\n\tfmt.Printf(\"Final DB state %v\\n\\n\", &db)\n}", "func initalSync(ctx context.Context, syncContext factory.SyncContext) error {\n\tsyncContext.Queue().Add(factory.DefaultQueueKey)\n\treturn nil\n}", "func (proto *Protocol) CREATE(command *Command) {\n\n}", "func (b *Buffer) Sync() {\n\tb.SetArea(b.Bounds())\n}", "func NewSyncCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command {\n\tcmd := &SyncCmd{GlobalFlags: globalFlags}\n\n\tsyncCmd := &cobra.Command{\n\t\tUse: \"sync\",\n\t\tShort: \"Starts a bi-directional sync between the target container and the local path\",\n\t\tLong: `\n#############################################################################\n################### devspace sync ###########################################\n#############################################################################\nStarts a bi-directional(default) sync between the target container path\nand local path:\n\ndevspace sync --path=.:/app # localPath is current dir and remotePath is /app\ndevspace sync --path=.:/app --image-selector nginx:latest\ndevspace sync --path=.:/app --exclude=node_modules,test\ndevspace sync --path=.:/app --pod=my-pod --container=my-container\n#############################################################################`,\n\t\tRunE: func(cobraCmd *cobra.Command, args []string) error {\n\t\t\t// Print upgrade message if new version available\n\t\t\tupgrade.PrintUpgradeMessage(f.GetLog())\n\t\t\tplugin.SetPluginCommand(cobraCmd, args)\n\t\t\treturn cmd.Run(f)\n\t\t},\n\t}\n\n\tsyncCmd.Flags().StringVarP(&cmd.Container, \"container\", \"c\", \"\", \"Container name within pod where to sync to\")\n\tsyncCmd.Flags().StringVar(&cmd.Pod, \"pod\", \"\", \"Pod to sync to\")\n\tsyncCmd.Flags().StringVarP(&cmd.LabelSelector, \"label-selector\", \"l\", \"\", \"Comma separated key=value selector list (e.g. release=test)\")\n\tsyncCmd.Flags().StringVar(&cmd.ImageSelector, \"image-selector\", \"\", \"The image to search a pod for (e.g. nginx, nginx:latest, ${runtime.images.app}, nginx:${runtime.images.app.tag})\")\n\tsyncCmd.Flags().BoolVar(&cmd.Pick, \"pick\", true, \"Select a pod\")\n\n\tsyncCmd.Flags().StringSliceVarP(&cmd.Exclude, \"exclude\", \"e\", []string{}, \"Exclude directory from sync\")\n\tsyncCmd.Flags().StringVar(&cmd.Path, \"path\", \"\", \"Path to use (Default is current directory). Example: ./local-path:/remote-path or local-path:.\")\n\n\tsyncCmd.Flags().BoolVar(&cmd.DownloadOnInitialSync, \"download-on-initial-sync\", true, \"DEPRECATED: Downloads all locally non existing remote files in the beginning\")\n\tsyncCmd.Flags().StringVar(&cmd.InitialSync, \"initial-sync\", \"\", \"The initial sync strategy to use (mirrorLocal, mirrorRemote, preferLocal, preferRemote, preferNewest, keepAll)\")\n\n\tsyncCmd.Flags().BoolVar(&cmd.NoWatch, \"no-watch\", false, \"Synchronizes local and remote and then stops\")\n\n\tsyncCmd.Flags().BoolVar(&cmd.UploadOnly, \"upload-only\", false, \"If set DevSpace will only upload files\")\n\tsyncCmd.Flags().BoolVar(&cmd.DownloadOnly, \"download-only\", false, \"If set DevSpace will only download files\")\n\n\tsyncCmd.Flags().BoolVar(&cmd.Wait, \"wait\", true, \"Wait for the pod(s) to start if they are not running\")\n\tsyncCmd.Flags().BoolVar(&cmd.Polling, \"polling\", false, \"If polling should be used to detect file changes in the container\")\n\n\treturn syncCmd\n}", "func GetAppSyncObj() *Sync{\n appSync.InitSyncParams()\n return appSync\n}", "func (c *VCClient) CreateSync(vc *v1alpha1.VirtualCluster) *v1alpha1.VirtualCluster {\n\tv, err := c.Create(vc)\n\tExpectNoError(err, \"failed to create vc\")\n\tExpectNoError(c.f.WaitForVCRunning(vc.Name))\n\tv, err = c.Get(v.Name, metav1.GetOptions{})\n\tExpectNoError(err)\n\treturn v\n}", "func (api *versionAPI) SyncCreate(obj *cluster.Version) error {\n\tnewObj := obj\n\tevtType := kvstore.Created\n\tvar writeErr error\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\tnewObj, writeErr = apicl.ClusterV1().Version().Create(context.Background(), obj)\n\t\tif writeErr != nil && strings.Contains(writeErr.Error(), \"AlreadyExists\") {\n\t\t\tnewObj, writeErr = apicl.ClusterV1().Version().Update(context.Background(), obj)\n\t\t\tevtType = kvstore.Updated\n\t\t}\n\t}\n\n\tif writeErr == nil {\n\t\tapi.ct.handleVersionEvent(&kvstore.WatchEvent{Object: newObj, Type: evtType})\n\t}\n\treturn writeErr\n}", "func CmdSync(c *cli.Context) {\n\t// Enable multi core setting\n\tSetupMultiCore()\n\n\t// Load tomlConfig\n\ttmlconf := LoadTomlConf(c.String(\"config\"))\n\n\t// Create DB Fetcher\n\tfetcher, err := database.CreateFetcher(tmlconf.Database[c.String(\"from\")], tmlconf.SSH[c.String(\"from\")])\n\tif err != nil {\n\t\tpanic(\"Failed to create fetcher instance: \" + err.Error())\n\t}\n\n\tdefer DeleteTmpDir(TMP_DIR_PATH)\n\n\t// Fetch\n\terr = fetcher.Fetch()\n\tif err != nil {\n\t\tpanic(\"Failed to fetch: \" + err.Error())\n\t}\n\n\t// Create DB Inserter\n\tinserter, err := database.CreateInserter(tmlconf.Database[c.String(\"to\")], tmlconf.SSH[c.String(\"to\")])\n\tif err != nil {\n\t\tpanic(\"Failed to create inserter instance: \" + err.Error())\n\t}\n\n\t// Clean up\n\terr = inserter.Clean()\n\tif err != nil {\n\t\tpanic(\"Failed to clean: \" + err.Error())\n\t}\n\n\t// INSERT\n\terr = inserter.Insert()\n\tif err != nil {\n\t\tpanic(\"Failed to insert: \" + err.Error())\n\t}\n}", "func New(dev *model.Dev) (*Syncthing, error) {\n\tfullPath := getInstallPath()\n\tremotePort, err := model.GetAvailablePort(dev.Interface)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tremoteGUIPort, err := model.GetAvailablePort(dev.Interface)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tguiPort, err := model.GetAvailablePort(dev.Interface)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tlistenPort, err := model.GetAvailablePort(dev.Interface)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tpwd := uuid.New().String()\n\thash, err := bcrypt.GenerateFromPassword([]byte(pwd), 10)\n\tif err != nil {\n\t\toktetoLog.Infof(\"couldn't hash the password %s\", err)\n\t\thash = []byte(\"\")\n\t}\n\n\tcompression := \"metadata\"\n\tif dev.Sync.Compression {\n\t\tcompression = \"always\"\n\t}\n\ts := &Syncthing{\n\t\tAPIKey: \"cnd\",\n\t\tGUIPassword: pwd,\n\t\tGUIPasswordHash: string(hash),\n\t\tbinPath: fullPath,\n\t\tClient: NewAPIClient(),\n\t\tFileWatcherDelay: DefaultFileWatcherDelay,\n\t\tGUIAddress: net.JoinHostPort(dev.Interface, strconv.Itoa(guiPort)),\n\t\tHome: config.GetAppHome(dev.Namespace, dev.Name),\n\t\tLogPath: GetLogFile(dev.Namespace, dev.Name),\n\t\tListenAddress: net.JoinHostPort(dev.Interface, strconv.Itoa(listenPort)),\n\t\tRemoteAddress: fmt.Sprintf(\"tcp://%s:%d\", dev.Interface, remotePort),\n\t\tRemoteDeviceID: DefaultRemoteDeviceID,\n\t\tRemoteGUIAddress: net.JoinHostPort(dev.Interface, strconv.Itoa(remoteGUIPort)),\n\t\tLocalGUIPort: guiPort,\n\t\tLocalPort: listenPort,\n\t\tRemoteGUIPort: remoteGUIPort,\n\t\tRemotePort: remotePort,\n\t\tType: \"sendonly\",\n\t\tIgnoreDelete: true,\n\t\tVerbose: dev.Sync.Verbose,\n\t\tFolders: []*Folder{},\n\t\tRescanInterval: strconv.Itoa(dev.Sync.RescanInterval),\n\t\tCompression: compression,\n\t\ttimeout: time.Duration(dev.Timeout.Default),\n\t}\n\tindex := 1\n\tfor _, sync := range dev.Sync.Folders {\n\t\tresult, err := dev.IsSubPathFolder(sync.LocalPath)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tif !result {\n\t\t\ts.Folders = append(\n\t\t\t\ts.Folders,\n\t\t\t\t&Folder{\n\t\t\t\t\tName: strconv.Itoa(index),\n\t\t\t\t\tLocalPath: sync.LocalPath,\n\t\t\t\t\tRemotePath: sync.RemotePath,\n\t\t\t\t},\n\t\t\t)\n\t\t\tindex++\n\t\t}\n\t}\n\n\treturn s, nil\n}", "func newRelaySync(shared sharedSync) *relaySync {\n\treturn &relaySync{\n\t\tdone: false,\n\t\tshared: shared,\n\t\tfirstSetupDone: false,\n\t\tfirstSetupWait: make(chan struct{}),\n\t\tsetupCompleteHeld: false,\n\t\tlegCompleteHeld: false,\n\t}\n}", "func (o ApplicationOperationOutput) Sync() ApplicationOperationSyncPtrOutput {\n\treturn o.ApplyT(func(v ApplicationOperation) *ApplicationOperationSync { return v.Sync }).(ApplicationOperationSyncPtrOutput)\n}", "func (db *DB) Sync() error {\n\tvar dbb, err = New(db.supportedSymbols)\n\tif err != nil {\n\t\terr = errors.Wrap(err, \"New\")\n\t\tlog.Printf(\"Error: %+v\\n\", err)\n\t\treturn err\n\t}\n\n\tdb.Lock()\n\tdb.store = dbb.store\n\tdb.Unlock()\n\n\treturn nil\n}", "func NewSynchronizationJob()(*SynchronizationJob) {\n m := &SynchronizationJob{\n Entity: *NewEntity(),\n }\n return m\n}", "func (api *snapshotrestoreAPI) SyncCreate(obj *cluster.SnapshotRestore) error {\n\tnewObj := obj\n\tevtType := kvstore.Created\n\tvar writeErr error\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\tnewObj, writeErr = apicl.ClusterV1().SnapshotRestore().Create(context.Background(), obj)\n\t\tif writeErr != nil && strings.Contains(writeErr.Error(), \"AlreadyExists\") {\n\t\t\tnewObj, writeErr = apicl.ClusterV1().SnapshotRestore().Update(context.Background(), obj)\n\t\t\tevtType = kvstore.Updated\n\t\t}\n\t}\n\n\tif writeErr == nil {\n\t\tapi.ct.handleSnapshotRestoreEvent(&kvstore.WatchEvent{Object: newObj, Type: evtType})\n\t}\n\treturn writeErr\n}", "func (gc *GelfCore) Sync() error {\n\treturn nil\n}", "func NewSyncBackend(w io.Writer) Backend {\n\thandler, ok := w.(Handler)\n\treturn &SyncLog{\n\t\tout: w,\n\t\thandler: handler,\n\t\tistty: ok && isatty(handler.Fd()),\n\t}\n}", "func (api *distributedservicecardAPI) SyncCreate(obj *cluster.DistributedServiceCard) error {\n\tnewObj := obj\n\tevtType := kvstore.Created\n\tvar writeErr error\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\tnewObj, writeErr = apicl.ClusterV1().DistributedServiceCard().Create(context.Background(), obj)\n\t\tif writeErr != nil && strings.Contains(writeErr.Error(), \"AlreadyExists\") {\n\t\t\tnewObj, writeErr = apicl.ClusterV1().DistributedServiceCard().Update(context.Background(), obj)\n\t\t\tevtType = kvstore.Updated\n\t\t}\n\t}\n\n\tif writeErr == nil {\n\t\tapi.ct.handleDistributedServiceCardEvent(&kvstore.WatchEvent{Object: newObj, Type: evtType})\n\t}\n\treturn writeErr\n}", "func (l *RemoteProvider) RecordMeshSyncData(obj model.Object) error {\n\tresult := l.GenericPersister.Create(&obj)\n\tif result.Error != nil {\n\t\treturn result.Error\n\t}\n\treturn nil\n}", "func NewBindSync(ctx context.Context) *BindSync {\n\twait, fire := task.NewSignal()\n\ts := &BindSync{wait: wait}\n\ts.Handler = func(methods map[string]*Method, err error) {\n\t\ts.methods = methods\n\t\ts.err = err\n\t\tfire(ctx)\n\t}\n\treturn s\n}", "func BeginSync(st o.SyncType) {\n\n\tdbName := c.DBConfig.DBName.StockD1\n\tnames, _ := h.GetCollectionNames(dbName)\n\tcCount := len(names)\n\tvar start, end time.Time\n\tstart = time.Now()\n\tfmt.Println(\"Sync stock base information from database StockD1. SyncType is \", st.ToString())\n\tfmt.Println(\"Begin time: \", start.Format(\"2006-01-02 15:04:05\"))\n\tfor i, name := range names {\n\t\tIncrementSync(name, st)\n\t\tfmt.Printf(\"Stock code: %s (%d/%d) \\r\", name, i+1, cCount)\n\t}\n\tend = time.Now()\n\tfmt.Println(\"Synchronization Completed at \", end.Format(\"2006-01-02 15:04:05\"))\n\tfmt.Println(\"Duration: \", end.Sub(start).String())\n\tfmt.Println()\n}", "func (lb *Elb) Sync() {\n\tlb.syncCh <- 1\n}", "func AppendCoreSync(level zapcore.Level, stream io.Writer) {\n\n\tpriority := zap.LevelEnablerFunc(func(lvl zapcore.Level) bool {\n\t\treturn lvl >= level\n\t})\n\tconsoleStdout := zapcore.AddSync(stream)\n\tvar consoleEncoder zapcore.Encoder\n\tif level == zapcore.DebugLevel {\n\t\tconsoleEncoder = zapcore.NewConsoleEncoder(zap.NewDevelopmentEncoderConfig())\n\t} else {\n\t\tconsoleEncoder = zapcore.NewJSONEncoder(zap.NewProductionEncoderConfig())\n\t}\n\tcorelist = append(corelist, zapcore.NewCore(consoleEncoder, consoleStdout, priority))\n\n}", "func (server *Server) Sync() {\n\n}", "func CreateSyncData() (*syncmsg.ProtoSyncEntityMessageRequest, error) {\n\tcreator := syncmsg.NewCreator()\n\trecord1 := &syncmsg.ProtoRecord{\n\t\tFields: []*syncmsg.ProtoField{\n\t\t\t//Important: these field names need to be in alphabetical order\n\t\t\t//contactIdField, dateOfBirthField, firstNameField, heightFtField, heightInchField, lastNameField,\n\t\t\t//preferredHeightField,\n\t\t\tcreator.CreateStringProtoField(\"contactId\", \"C441B7F6-D3E8-4E7F-9A3B-1BD4BAB6FA48\"),\n\t\t\tcreator.CreateTimeProtoField(\"dateOfBirth\", creator.FormatTimeFromString(\"1990-04-29 00:00:00.000\")),\n\t\t\tcreator.CreateStringProtoField(\"firstName\", \"John\"),\n\t\t\tcreator.CreateInt64ProtoField(\"heightFt\", 6),\n\t\t\tcreator.CreateDoubleProtoField(\"heightInch\", 2.5),\n\t\t\tcreator.CreateStringProtoField(\"lastName\", \"Doe\"),\n\t\t\tcreator.CreateInt64ProtoField(\"preferredHeight\", 1),\n\t\t},\n\t}\n\tif len(creator.Errors) != 0 {\n\t\trequest := &syncmsg.ProtoSyncEntityMessageRequest{}\n\t\treturn request, syncmsg.NewCreatorError(creator.Errors)\n\t}\n\trecord2LastKnown := &syncmsg.ProtoRecord{\n\t\tFields: []*syncmsg.ProtoField{\n\t\t\t//Important: these field names need to be in alphabetical order\n\t\t\tcreator.CreateStringProtoField(\"contactId\", \"911DD745-8916-41C4-9973-F8B38A501602\"),\n\t\t\tcreator.CreateTimeProtoField(\"dateOfBirth\", creator.FormatTimeFromString(\"1994-07-10 00:00:00.000\")),\n\t\t\tcreator.CreateStringProtoField(\"firstName\", \"Henry\"),\n\t\t\tcreator.CreateInt64ProtoField(\"heightFt\", 5),\n\t\t\tcreator.CreateDoubleProtoField(\"heightInch\", 5.5),\n\t\t\tcreator.CreateStringProtoField(\"lastName\", \"Adins\"),\n\t\t\tcreator.CreateInt64ProtoField(\"preferredHeight\", 1),\n\t\t},\n\t}\n\tif len(creator.Errors) != 0 {\n\t\trequest := &syncmsg.ProtoSyncEntityMessageRequest{}\n\t\treturn request, syncmsg.NewCreatorError(creator.Errors)\n\t}\n\trecord2 := &syncmsg.ProtoRecord{\n\t\tFields: []*syncmsg.ProtoField{\n\t\t\t//Important: these field names need to be in alphabetical order\n\t\t\tcreator.CreateStringProtoField(\"contactId\", \"911DD745-8916-41C4-9973-F8B38A501602\"),\n\t\t\tcreator.CreateTimeProtoField(\"dateOfBirth\", creator.FormatTimeFromString(\"1994-07-10 00:00:00.000\")),\n\t\t\tcreator.CreateStringProtoField(\"firstName\", \"Henry\"),\n\t\t\tcreator.CreateInt64ProtoField(\"heightFt\", 5),\n\t\t\tcreator.CreateDoubleProtoField(\"heightInch\", 5.5),\n\t\t\tcreator.CreateStringProtoField(\"lastName\", \"Adkins\"),\n\t\t\tcreator.CreateInt64ProtoField(\"preferredHeight\", 1),\n\t\t},\n\t}\n\tif len(creator.Errors) != 0 {\n\t\trequest := &syncmsg.ProtoSyncEntityMessageRequest{}\n\t\treturn request, syncmsg.NewCreatorError(creator.Errors)\n\t}\n\n\t/*\n\t\trecord3 := &syncmsg.ProtoRecord{\n\t\t\tFields: []*syncmsg.ProtoField{\n\t\t\t\t//Important: these field names need to be in alphabetical order\n\t\t\t\tcreateStringProtoField(\"contactId\", \"42FC5EBC-088D-4DC2-BDBD-D89FA170E5C6\"),\n\t\t\t\tcreateTimeProtoField(\"dateOfBirth\", createDateFromString(\"1992-01-23 00:00:00.000\")),\n\t\t\t\tcreateStringProtoField(\"firstName\", \"John\"),\n\t\t\t\tcreateInt64ProtoField(\"heightFt\", 5),\n\t\t\t\tcreateDoubleProtoField(\"heightInch\", 9),\n\t\t\t\tcreateStringProtoField(\"lastName\", \"Doe\"),\n\t\t\t\tcreateInt64ProtoField(\"preferredHeight\", 1),\n\t\t\t},\n\t\t}\n\t*/\n\trecord1Bytes, err := proto.Marshal(record1)\n\tif err != nil {\n\t\tsyncutil.Error(\"marshaling error: \", err)\n\t\treturn &syncmsg.ProtoSyncEntityMessageRequest{}, err\n\t}\n\trecord2Bytes, err := proto.Marshal(record2)\n\tif err != nil {\n\t\tsyncutil.Error(\"marshaling error: \", err)\n\t\treturn &syncmsg.ProtoSyncEntityMessageRequest{}, err\n\t}\n\trecord2LastKnownBytes, err := proto.Marshal(record2LastKnown)\n\tif err != nil {\n\t\tsyncutil.Error(\"marshaling error: \", err)\n\t\treturn &syncmsg.ProtoSyncEntityMessageRequest{}, err\n\t}\n\trequestData := &syncmsg.ProtoSyncEntityMessageRequest{\n\t\tIsDelete: proto.Bool(false),\n\t\tTransactionBindId: proto.String(\"0F16AEED-E4B4-483E-A7A3-CCABA831FE6E\"),\n\t\tItems: []*syncmsg.ProtoSyncDataMessagesRequest{\n\t\t\t&syncmsg.ProtoSyncDataMessagesRequest{\n\t\t\t\tEntityPluralName: proto.String(\"Contacts\"),\n\t\t\t\tMsgs: []*syncmsg.ProtoSyncDataMessageRequest{\n\t\t\t\t\t&syncmsg.ProtoSyncDataMessageRequest{\n\t\t\t\t\t\tRecordId: proto.String(\"B6581A36-804D-45AC-B2E2-F6DA265AF7DE\"),\n\t\t\t\t\t\tRecordHash: proto.String(Hash256Bytes(record1Bytes)),\n\t\t\t\t\t\tLastKnownPeerHash: nil,\n\t\t\t\t\t\tSentSyncState: syncmsg.SentSyncStateEnum(syncmsg.SentSyncStateEnum_PersistedFirstTimeSentToPeer).Enum(),\n\t\t\t\t\t\tRecordBytesSize: proto.Uint32(uint32(len(record1Bytes))),\n\t\t\t\t\t\tRecordData: record1Bytes,\n\t\t\t\t\t},\n\t\t\t\t\t&syncmsg.ProtoSyncDataMessageRequest{\n\t\t\t\t\t\tRecordId: proto.String(\"911DD745-8916-41C4-9973-F8B38A501602\"),\n\t\t\t\t\t\tRecordHash: proto.String(Hash256Bytes(record2Bytes)),\n\t\t\t\t\t\tLastKnownPeerHash: proto.String(Hash256Bytes(record2LastKnownBytes)),\n\t\t\t\t\t\tSentSyncState: syncmsg.SentSyncStateEnum(syncmsg.SentSyncStateEnum_PersistedStandardSentToPeer).Enum(),\n\t\t\t\t\t\tRecordBytesSize: proto.Uint32(uint32(len(record2Bytes))),\n\t\t\t\t\t\tRecordData: record2Bytes,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t/*\n\t\t\t\t&ProtoSyncDataMessagesRequest{\n\t\t\t\t\tSyncEntityName: proto.String(\"Contact\"),\n\t\t\t\t\tMsgs: []*ProtoSyncDataMessageRequest{\n\t\t\t\t\t\t&ProtoSyncDataMessageRequest{\n\t\t\t\t\t\t\tRecordId: proto.String(\"RecordId2\"),\n\t\t\t\t\t\t\tRecordHash: proto.String(\"RecordHash2\"),\n\t\t\t\t\t\t\tLastKnownPeerHash: nil,\n\t\t\t\t\t\t\tSentSyncState: SentSyncStateEnum(SentSyncStateEnum_FirstTimeSentToPeer).Enum(),\n\t\t\t\t\t\t\tRecordBytesSize: proto.Uint32(uint32(len(record2Bytes))),\n\t\t\t\t\t\t\tRecordData: record2Bytes,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t*/\n\t\t},\n\t}\n\treturn requestData, nil\n}", "func (api *licenseAPI) SyncCreate(obj *cluster.License) error {\n\tnewObj := obj\n\tevtType := kvstore.Created\n\tvar writeErr error\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\tnewObj, writeErr = apicl.ClusterV1().License().Create(context.Background(), obj)\n\t\tif writeErr != nil && strings.Contains(writeErr.Error(), \"AlreadyExists\") {\n\t\t\tnewObj, writeErr = apicl.ClusterV1().License().Update(context.Background(), obj)\n\t\t\tevtType = kvstore.Updated\n\t\t}\n\t}\n\n\tif writeErr == nil {\n\t\tapi.ct.handleLicenseEvent(&kvstore.WatchEvent{Object: newObj, Type: evtType})\n\t}\n\treturn writeErr\n}", "func NewDistributedObjectWithData() {}", "func (gameCommunication *GameCommunication) Sync() {\n\tgameCommunication.Client.SendSyncRequest()\n}", "func NewSynchronizationSchema()(*SynchronizationSchema) {\n m := &SynchronizationSchema{\n Entity: *NewEntity(),\n }\n return m\n}", "func newSyncable(sqlConfig *sqlConfig, databases map[string]syncable.Database) (syncable.Syncable, error) {\n\tdatabase := databases[sqlConfig.sqlDB]\n\tif database == nil {\n\t\treturn &syncable.ZeroSyncable{}, fmt.Errorf(\"Database %s is not setup\", sqlConfig.sqlDB)\n\t}\n\tif database.Type() != \"sql\" {\n\t\treturn &syncable.ZeroSyncable{}, fmt.Errorf(\"Database %s is not a sql database\", sqlConfig.sqlDB)\n\t}\n\tsqlDB := database.(*DB)\n\n\treturn &Syncable{config: sqlConfig, database: sqlDB}, nil\n}", "func (db *DB) newSyncID() string {\n\treturn fmt.Sprintf(\"%s-%x-%d\", db.ClientID(), db.sessionID, atomic.AddUint32(&db.numSyncs, 1))\n}", "func (api *clusterAPI) SyncCreate(obj *cluster.Cluster) error {\n\tnewObj := obj\n\tevtType := kvstore.Created\n\tvar writeErr error\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\tnewObj, writeErr = apicl.ClusterV1().Cluster().Create(context.Background(), obj)\n\t\tif writeErr != nil && strings.Contains(writeErr.Error(), \"AlreadyExists\") {\n\t\t\tnewObj, writeErr = apicl.ClusterV1().Cluster().Update(context.Background(), obj)\n\t\t\tevtType = kvstore.Updated\n\t\t}\n\t}\n\n\tif writeErr == nil {\n\t\tapi.ct.handleClusterEvent(&kvstore.WatchEvent{Object: newObj, Type: evtType})\n\t}\n\treturn writeErr\n}", "func NewSyncCollector() *SyncCollector {\n\tso := SyncCollector{c: make(Collector)}\n\treturn &so\n}", "func startSync(conn *client.Conn, serverID uint32, name string, pos uint32) error {\n\tconn.ResetSequence()\n\tpacket := dumpCommand(serverID, name, pos)\n\terr := conn.WritePacket(packet)\n\treturn errors.Annotatef(err, \"write COM_BINLOG_DUMP %v\", packet)\n}", "func (o ApplicationOperationPtrOutput) Sync() ApplicationOperationSyncPtrOutput {\n\treturn o.ApplyT(func(v *ApplicationOperation) *ApplicationOperationSync {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.Sync\n\t}).(ApplicationOperationSyncPtrOutput)\n}", "func NewSyncService(netService *QlcService, ledger *ledger.Ledger) *ServiceSync {\n\tss := &ServiceSync{\n\t\tnetService: netService,\n\t\tqlcLedger: ledger,\n\t\tquitCh: make(chan bool, 1),\n\t\tlogger: log.NewLogger(\"sync\"),\n\t}\n\treturn ss\n}", "func (api *nodeAPI) SyncCreate(obj *cluster.Node) error {\n\tnewObj := obj\n\tevtType := kvstore.Created\n\tvar writeErr error\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\tnewObj, writeErr = apicl.ClusterV1().Node().Create(context.Background(), obj)\n\t\tif writeErr != nil && strings.Contains(writeErr.Error(), \"AlreadyExists\") {\n\t\t\tnewObj, writeErr = apicl.ClusterV1().Node().Update(context.Background(), obj)\n\t\t\tevtType = kvstore.Updated\n\t\t}\n\t}\n\n\tif writeErr == nil {\n\t\tapi.ct.handleNodeEvent(&kvstore.WatchEvent{Object: newObj, Type: evtType})\n\t}\n\treturn writeErr\n}", "func (s *fakeState) Sync(_ context.Context, _ interface{}, _ InfoCatalog) (SyncState, error) {\n\treturn s.syncState, nil\n}", "func (s *Syncer) Sync() error {\n\treturn nil\n}", "func syncNewPeer(nodeMessage NodeMessage) NodeMessage {\n\tlog.Printf(\"Received new peer %v:%v\", nodeMessage.IpAddress, nodeMessage.Port)\n\tnewPeer := repository.Peer {\n\t\tIpAddress: nodeMessage.IpAddress,\n\t\tPort: nodeMessage.Port,\n\t}\n\tsavePeer(newPeer)\n\treturn nodeMessage\n}", "func (mio *Mio) Create(id string, sz uint64, anyPool ...string) error {\n if mio.obj != nil {\n return errors.New(\"object is already opened\")\n }\n if err := mio.objNew(id); err != nil {\n return err\n }\n pool, err := checkPool(anyPool)\n if err != nil {\n return err\n }\n\n lid := C.m0_layout_find_by_objsz(C.instance, pool, C.ulong(sz))\n if lid <= 0 {\n return fmt.Errorf(\"could not find layout: rc=%v\", lid)\n }\n C.m0_obj_init(mio.obj, &C.container.co_realm, &mio.objID, C.ulong(lid))\n\n var op *C.struct_m0_op\n rc := C.m0_entity_create(pool, &mio.obj.ob_entity, &op)\n if rc != 0 {\n return fmt.Errorf(\"failed to create object: %d\", rc)\n }\n C.m0_op_launch(&op, 1)\n rc = C.m0_op_wait(op, bits(C.M0_OS_FAILED,\n C.M0_OS_STABLE), C.M0_TIME_NEVER)\n if rc == 0 {\n rc = C.m0_rc(op)\n }\n C.m0_op_fini(op)\n C.m0_op_free(op)\n\n if rc != 0 {\n return fmt.Errorf(\"create op failed: %d\", rc)\n }\n\n return mio.open(sz)\n}", "func (o ApplicationStatusOperationStateOperationOutput) Sync() ApplicationStatusOperationStateOperationSyncPtrOutput {\n\treturn o.ApplyT(func(v ApplicationStatusOperationStateOperation) *ApplicationStatusOperationStateOperationSync {\n\t\treturn v.Sync\n\t}).(ApplicationStatusOperationStateOperationSyncPtrOutput)\n}", "func NewSyncService(netService *QlcService, ledger ledger.Store) *ServiceSync {\n\tss := &ServiceSync{\n\t\tnetService: netService,\n\t\tqlcLedger: ledger,\n\t\tquitCh: make(chan bool, 1),\n\t\tlogger: log.NewLogger(\"sync\"),\n\t\tpullTimer: time.NewTimer(pullReqTimeOut),\n\t\tpullRequestStartCh: make(chan bool, 1),\n\t\tquitChanForSync: make(chan bool, 1),\n\t\tmu: &sync.Mutex{},\n\t}\n\treturn ss\n}", "func DeleteSync(sync unsafe.Pointer) {\n C.glowDeleteSync(gpDeleteSync, (C.GLsync)(sync))\n}", "func allocateNewCmdBufFromExistingOneAndBegin(\n\tctx context.Context,\n\tcb CommandBuilder,\n\tmodelCmdBuf VkCommandBuffer,\n\ts *api.GlobalState) (VkCommandBuffer, []api.Cmd, []func()) {\n\n\tx := make([]api.Cmd, 0)\n\tcleanup := make([]func(), 0)\n\t// DestroyResourcesAtEndOfFrame will handle this actually removing the\n\t// command buffer. We have no way to handle WHEN this will be done\n\n\tmodelCmdBufObj := GetState(s).CommandBuffers.Get(modelCmdBuf)\n\n\tnewCmdBufId := VkCommandBuffer(\n\t\tnewUnusedID(true,\n\t\t\tfunc(x uint64) bool {\n\t\t\t\treturn GetState(s).CommandBuffers.Contains(VkCommandBuffer(x))\n\t\t\t}))\n\tallocate := VkCommandBufferAllocateInfo{\n\t\tVkStructureType_VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO,\n\t\tNewVoidᶜᵖ(memory.Nullptr),\n\t\tmodelCmdBufObj.Pool,\n\t\tmodelCmdBufObj.Level,\n\t\tuint32(1),\n\t}\n\tallocateData := s.AllocDataOrPanic(ctx, allocate)\n\tcleanup = append(cleanup, func() { allocateData.Free() })\n\n\tnewCmdBufData := s.AllocDataOrPanic(ctx, newCmdBufId)\n\tcleanup = append(cleanup, func() { newCmdBufData.Free() })\n\n\tx = append(x,\n\t\tcb.VkAllocateCommandBuffers(modelCmdBufObj.Device,\n\t\t\tallocateData.Ptr(), newCmdBufData.Ptr(), VkResult_VK_SUCCESS,\n\t\t).AddRead(allocateData.Data()).AddWrite(newCmdBufData.Data()))\n\n\tbeginInfo := VkCommandBufferBeginInfo{\n\t\tVkStructureType_VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO,\n\t\tNewVoidᶜᵖ(memory.Nullptr),\n\t\tVkCommandBufferUsageFlags(VkCommandBufferUsageFlagBits_VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT),\n\t\tNewVkCommandBufferInheritanceInfoᶜᵖ(memory.Nullptr),\n\t}\n\tif modelCmdBufObj.BeginInfo.Inherited {\n\t\tinheritanceInfo := VkCommandBufferInheritanceInfo{\n\t\t\tVkStructureType_VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO,\n\t\t\tNewVoidᶜᵖ(memory.Nullptr),\n\t\t\tmodelCmdBufObj.BeginInfo.InheritedRenderPass,\n\t\t\tmodelCmdBufObj.BeginInfo.InheritedSubpass,\n\t\t\tmodelCmdBufObj.BeginInfo.InheritedFramebuffer,\n\t\t\tmodelCmdBufObj.BeginInfo.InheritedOcclusionQuery,\n\t\t\tmodelCmdBufObj.BeginInfo.InheritedQueryFlags,\n\t\t\tmodelCmdBufObj.BeginInfo.InheritedPipelineStatsFlags,\n\t\t}\n\t\tinheritanceInfoData := s.AllocDataOrPanic(ctx, inheritanceInfo)\n\t\tcleanup = append(cleanup, func() { inheritanceInfoData.Free() })\n\t\tbeginInfo.PInheritanceInfo = NewVkCommandBufferInheritanceInfoᶜᵖ(inheritanceInfoData.Ptr())\n\t}\n\tbeginInfoData := s.AllocDataOrPanic(ctx, beginInfo)\n\tcleanup = append(cleanup, func() { beginInfoData.Free() })\n\tx = append(x,\n\t\tcb.VkBeginCommandBuffer(newCmdBufId, beginInfoData.Ptr(), VkResult_VK_SUCCESS).AddRead(beginInfoData.Data()))\n\treturn newCmdBufId, x, cleanup\n}", "func (nopBroadcaster) SendSync(Message) error { return nil }", "func (d *Device) Sync() {\n\td.SyncToScanLine(0)\n}", "func New(kubeconfig *rest.Config, opa opa_client.Data, ns types.ResourceType) *GenericSync {\n\topaPrefix := ns.Resource\n\tif ns.Namespace != \"\" {\n\t\topaPrefix = fmt.Sprintf(\"%s/%s\", ns.Resource, ns.Namespace)\n\t}\n\n\treturn &GenericSync{\n\t\tkubeconfig: kubeconfig,\n\t\tns: ns,\n\t\topa: opa.Prefix(opaPrefix),\n\t}\n}", "func pushSync(t *testing.T, r *RingStore, e *model.ProcessEvent) {\n\tdone := make(chan bool)\n\terr := r.Push(e, done)\n\trequire.NoError(t, err)\n\tok := <-done\n\trequire.True(t, ok)\n}", "func (sb *syncBuffer) Sync() error {\n\treturn sb.file.Sync()\n}", "func (in *ActionExportCreateInput) SetSync(value bool) *ActionExportCreateInput {\n\tin.Sync = value\n\n\tif in._selectedParameters == nil {\n\t\tin._selectedParameters = make(map[string]interface{})\n\t}\n\n\tin._selectedParameters[\"Sync\"] = nil\n\treturn in\n}", "func (api *hostAPI) SyncCreate(obj *cluster.Host) error {\n\tnewObj := obj\n\tevtType := kvstore.Created\n\tvar writeErr error\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\tnewObj, writeErr = apicl.ClusterV1().Host().Create(context.Background(), obj)\n\t\tif writeErr != nil && strings.Contains(writeErr.Error(), \"AlreadyExists\") {\n\t\t\tnewObj, writeErr = apicl.ClusterV1().Host().Update(context.Background(), obj)\n\t\t\tevtType = kvstore.Updated\n\t\t}\n\t}\n\n\tif writeErr == nil {\n\t\tapi.ct.handleHostEvent(&kvstore.WatchEvent{Object: newObj, Type: evtType})\n\t}\n\treturn writeErr\n}", "func (api *bucketAPI) SyncCreate(obj *objstore.Bucket) error {\n\tnewObj := obj\n\tevtType := kvstore.Created\n\tvar writeErr error\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\tnewObj, writeErr = apicl.ObjstoreV1().Bucket().Create(context.Background(), obj)\n\t\tif writeErr != nil && strings.Contains(writeErr.Error(), \"AlreadyExists\") {\n\t\t\tnewObj, writeErr = apicl.ObjstoreV1().Bucket().Update(context.Background(), obj)\n\t\t\tevtType = kvstore.Updated\n\t\t}\n\t}\n\n\tif writeErr == nil {\n\t\tapi.ct.handleBucketEvent(&kvstore.WatchEvent{Object: newObj, Type: evtType})\n\t}\n\treturn writeErr\n}", "func Sync(syncName string) {\n\ts := SyncServiceStatus(syncName)\n\tif s == \"running\" {\n\t\tfmt.Println(syncRunningErr)\n\t\treturn\n\t}\n\n\tfmt.Println()\n\tconsole.Println(\"⚡ Syncing files between your system and the Tokaido environment\", \"\")\n\tutils.StdoutStreamCmdDebug(\"unison\", syncName, \"-watch=false\")\n}", "func (a *Agent) StartSync() {\n\tgo a.sync.Run()\n\ta.logger.Printf(\"[INFO] agent: started state syncer\")\n}", "func (f *Factory) Sync(syncFn SyncFunc) *Factory {\n\tf.sync = syncFn\n\treturn f\n}", "func (api *configurationsnapshotAPI) SyncCreate(obj *cluster.ConfigurationSnapshot) error {\n\tnewObj := obj\n\tevtType := kvstore.Created\n\tvar writeErr error\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\tnewObj, writeErr = apicl.ClusterV1().ConfigurationSnapshot().Create(context.Background(), obj)\n\t\tif writeErr != nil && strings.Contains(writeErr.Error(), \"AlreadyExists\") {\n\t\t\tnewObj, writeErr = apicl.ClusterV1().ConfigurationSnapshot().Update(context.Background(), obj)\n\t\t\tevtType = kvstore.Updated\n\t\t}\n\t}\n\n\tif writeErr == nil {\n\t\tapi.ct.handleConfigurationSnapshotEvent(&kvstore.WatchEvent{Object: newObj, Type: evtType})\n\t}\n\treturn writeErr\n}", "func (s *stream) Sync() error {\n\tx := C.hipStreamSynchronize((s.s))\n\tif x == 0 {\n\t\treturn nil\n\t}\n\treturn errors.New(\"Error with HIP stream \")\n}", "func newStation() {\n\tdisp.Clear()\n\tlogger.Trace(\"New station: %s\", stations[stationIdx].name)\n\tprintLine(0, \"-> \"+stations[stationIdx].name, false)\n\tprintLine(1, \"\", false)\n\tprintLine(2, \"\", false)\n\tif stationIdx == 0 {\n\t\tprintLine(3, ipAddress, false)\n\t} else {\n\t\tprintLine(3, time.Now().Format(\"15:04:05 02.01.06\"), false)\n\t}\n\tif inPipe != nil {\n\t\t_, _ = inPipe.Write([]byte(\"q\"))\n\t\t_ = inPipe.Close()\n\t\t_ = outPipe.Close()\n\t\t_ = command.Wait()\n\t}\n\tfor {\n\t\tif readyForMplayer {\n\t\t\tbreak\n\t\t}\n\t\tlogger.Trace(\"Waiting for 'readyForMplayer'...\")\n\t\ttime.Sleep(time.Second)\n\t}\n\tif bluetoothConnected {\n\t\tlogger.Trace(\"Using BT volume \" + volumeBluetooth)\n\t\tvolume = vol2VolString(volumeBluetooth)\n\t\tcommand = exec.Command(\"mplayer\", \"-quiet\", \"-volume\", volumeBluetooth, stations[stationIdx].url)\n\t} else {\n\t\tlogger.Trace(\"Using Analog volume \" + volumeAnalog)\n\t\tvolume = vol2VolString(volumeAnalog)\n\t\tcommand = exec.Command(\"mplayer\", \"-quiet\", \"-volume\", volumeAnalog, stations[stationIdx].url)\n\t}\n\tvar err error\n\tinPipe, err = command.StdinPipe()\n\tcheck(err)\n\toutPipe, err = command.StdoutPipe()\n\tcheck(err)\n\terr = command.Start()\n\tcheck(err)\n\tgo func() {\n\t\tpipeChan <- outPipe\n\t}()\n\tdebounceWrite(saveStationAndVolumes)\n}", "func IsSync(sync unsafe.Pointer) bool {\n ret := C.glowIsSync(gpIsSync, (C.GLsync)(sync))\n return ret == TRUE\n}", "func (s *Server) objectCreate(\n\tsess *pb.Session,\n\tobj *pb.Object,\n) error {\n\treq := &pb.ObjectCreateRequest{\n\t\tSession: sess,\n\t\tObject: obj,\n\t}\n\tmc, err := s.metaClient()\n\tif err != nil {\n\t\treturn err\n\t}\n\tresp, err := mc.ObjectCreate(context.Background(), req)\n\tif err != nil {\n\t\treturn err\n\t}\n\t// Make sure that our object's UUID is set to the (possibly auto-created)\n\t// UUID returned by the metadata service\n\tobj.Uuid = resp.Object.Uuid\n\treturn nil\n}", "func (o ApplicationStatusOperationStateOperationPtrOutput) Sync() ApplicationStatusOperationStateOperationSyncPtrOutput {\n\treturn o.ApplyT(func(v *ApplicationStatusOperationStateOperation) *ApplicationStatusOperationStateOperationSync {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.Sync\n\t}).(ApplicationStatusOperationStateOperationSyncPtrOutput)\n}", "func NewTeamsAsyncOperation()(*TeamsAsyncOperation) {\n m := &TeamsAsyncOperation{\n Entity: *NewEntity(),\n }\n return m\n}", "func (z *zpoolctl) Sync(ctx context.Context, names ...string) *execute {\n\targs := []string{\"sync\"}\n\tif names != nil {\n\t\tfor _, name := range names {\n\t\t\targs = append(args, name)\n\t\t}\n\t}\n\treturn &execute{ctx: ctx, name: z.cmd, args: args}\n}", "func (api *credentialsAPI) SyncCreate(obj *cluster.Credentials) error {\n\tnewObj := obj\n\tevtType := kvstore.Created\n\tvar writeErr error\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\tnewObj, writeErr = apicl.ClusterV1().Credentials().Create(context.Background(), obj)\n\t\tif writeErr != nil && strings.Contains(writeErr.Error(), \"AlreadyExists\") {\n\t\t\tnewObj, writeErr = apicl.ClusterV1().Credentials().Update(context.Background(), obj)\n\t\t\tevtType = kvstore.Updated\n\t\t}\n\t}\n\n\tif writeErr == nil {\n\t\tapi.ct.handleCredentialsEvent(&kvstore.WatchEvent{Object: newObj, Type: evtType})\n\t}\n\treturn writeErr\n}", "func (c Client) Create(input *CreateSyncStreamInput) (*CreateSyncStreamResponse, error) {\n\treturn c.CreateWithContext(context.Background(), input)\n}", "func MakeVertexBufferObject(sizeBytes int, data unsafe.Pointer) VertexBufferObject {\n\tvar vbo uint32\n\tgl.GenBuffers(1, &vbo)\n\tif sizeBytes > 0 {\n\t\tgl.NamedBufferData(vbo, sizeBytes, data, gl.DYNAMIC_DRAW)\n\t}\n\treturn VertexBufferObject(vbo)\n}", "func Sync(cmd *cobra.Command, args []string) {\n\n\tfdbURL, err := cmd.Flags().GetString(\"doclayer-url\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfDB, err := cmd.Flags().GetString(\"doclayer-database\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdebug, err := cmd.Flags().GetBool(\"debug\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tif debug {\n\t\tlog.SetLevel(log.DebugLevel)\n\t}\n\n\tlog.Debugf(\"Creating client for FDB: %v, %v, %v\", fdbURL, fDB, debug)\n\tclientOptions := options.Client().ApplyURI(fdbURL).SetMinPoolSize(10).SetMaxPoolSize(100)\n\tctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)\n\tdefer cancel()\n\tclient, err := NewDocLayerClient(ctx, clientOptions)\n\tif err != nil {\n\t\tlog.Fatalf(\"Can't create client for FoundationDB document layer: %v. URL provided was: %v\", err, fdbURL)\n\t\treturn\n\t}\n\n\tlog.Debugf(\"Client created.\")\n\n\tstartTime := time.Now()\n\t//Close db client after serving request\n\tvar clientKeepAlive = false\n\tauthorizationHeader := os.Getenv(\"AUTHORIZATION_HEADER\")\n\tif err = SyncRepo(client, fDB, args[0], args[1], authorizationHeader, clientKeepAlive); err != nil {\n\t\tlog.Fatalf(\"Can't add chart repository to database: %v\", err)\n\t\treturn\n\t}\n\ttimeTaken := time.Since(startTime).Seconds()\n\tlog.Infof(\"Successfully added the chart repository %s to database in %v seconds\", args[0], timeTaken)\n}", "func (ch *Channel) Open() {\n ch.Clients = new(sync.Map)\n}", "func (o ApplicationStatusOutput) Sync() ApplicationStatusSyncPtrOutput {\n\treturn o.ApplyT(func(v ApplicationStatus) *ApplicationStatusSync { return v.Sync }).(ApplicationStatusSyncPtrOutput)\n}", "func NewSyncServer(bufferSize int64, statusStore storage.JobStatusStore) *SyncServer {\n\treturn &SyncServer{bufferSize: bufferSize, statusStore: statusStore,}\n}", "func SyncDevice(scope *Scope) (o *tf.Operation) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"SyncDevice\",\n\t}\n\treturn scope.AddOperation(opspec)\n}", "func (b *Buffer) AttachNew() {\n b.data = make([]byte, 0)\n b.size = 0\n b.offset = 0\n}", "func (c *Command) Sync(ctx context.Context) (*storagetransfer.TransferJob, error) {\n\tfound, err := c.find(ctx)\n\tif err != errNotFound && err != nil {\n\t\treturn nil, err\n\t}\n\tif found != nil {\n\t\tlogx.Debug.Println(\"Found job!\")\n\t\tlogx.Debug.Print(pretty.Sprint(found))\n\t\tif c.specMatches(found) {\n\t\t\t// We found a matching job, do nothing, return success.\n\t\t\tlogx.Debug.Println(\"Specs match!\")\n\t\t\treturn found, nil\n\t\t}\n\t\t// We found a managed job and it does not match the new spec, so disable it.\n\t\t_, err := c.Disable(ctx, found.Name)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\t// Create new job matching the preferred spec.\n\tlogx.Debug.Println(\"Creating new job!\")\n\treturn c.Create(ctx)\n}", "func (api *dscprofileAPI) SyncCreate(obj *cluster.DSCProfile) error {\n\tnewObj := obj\n\tevtType := kvstore.Created\n\tvar writeErr error\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\tnewObj, writeErr = apicl.ClusterV1().DSCProfile().Create(context.Background(), obj)\n\t\tif writeErr != nil && strings.Contains(writeErr.Error(), \"AlreadyExists\") {\n\t\t\tnewObj, writeErr = apicl.ClusterV1().DSCProfile().Update(context.Background(), obj)\n\t\t\tevtType = kvstore.Updated\n\t\t}\n\t}\n\n\tif writeErr == nil {\n\t\tapi.ct.handleDSCProfileEvent(&kvstore.WatchEvent{Object: newObj, Type: evtType})\n\t}\n\treturn writeErr\n}", "func GenerateObjects(c chan *engine.Object) {\n var o *engine.Object\n amt := 0\n for amt < insert {\n amt += 1\n x := rand.Intn(magic)\n y := rand.Intn(magic)\n if rand.Intn(100) > 98 {\n x = 1\n }\n if rand.Intn(100) > 98 {\n y = 1\n }\n o = &engine.Object{\n Pos: engine.Vertex{rand.Intn(w - magic), rand.Intn(h - magic)},\n Size: engine.Vertex{x, y}}\n\n c <- o\n }\n\n close(c)\n}", "func (e EncryptedChatWaiting) construct() EncryptedChatClass { return &e }", "func main() {\n\tfmt.Println(\"sync operation started\")\n\n\tfmt.Printf(\"initialize output file: %s\\n\", OutFile)\n\tif err := initialize(); err != nil {\n\t\tfmt.Printf(\"error occured when initializing: %+v\\n\", err)\n\t\tos.Exit(1)\n\t}\n\n\tfmt.Printf(\"collect functions from %s\\n\", STLDir)\n\tfunctions, err := collectFunctions()\n\tif err != nil {\n\t\tfmt.Printf(\"error occured when collecting functions: %+v\\n\", err)\n\t\tos.Exit(1)\n\t}\n\n\tfmt.Printf(\"write functions to %s\\n\", OutFile)\n\tif err = writeFunctions(functions); err != nil {\n\t\tfmt.Printf(\"error occured when writing functions: %+v\\n\", err)\n\t\tos.Exit(1)\n\t}\n\n\tfmt.Println(\"copy generated file to atcoder-cli template directory\")\n\tif err = copyToAtcoderCliDir(); err != nil {\n\t\tfmt.Printf(\"error occured when copying to atcoder-cli directory: %+v\", err)\n\t\tos.Exit(1)\n\t}\n\n\tfmt.Println(\"sync operation completed\")\n}", "func (b *Buffer) Flush() error {\n\t// upload vertice + meta to opengl\n\tGlBindBuffer(ARRAY_BUFFER, b.GlBuffer)\n\tErrPanic()\n\tif len(b.Buf) == 0 {\n\t\treturn nil\n\t}\n\tGlBufferData(ARRAY_BUFFER, b.Buf, STATIC_DRAW)\n\tErrPanic()\n\t// FIXME: rebind shader attrs\n\tb.BufLen = len(b.Buf)\n\tb.Buf = b.Buf[:0]\n\treturn nil\n}", "func CommandSync(repoPath string) error {\n\t// TODO(dontlaugh) return error\n\tSync(repoPath)\n\treturn nil\n}", "func (server *Server) Start() {\n\t// Here we create the local player\n\tserver.syncsDelay = append(server.syncsDelay, []int{})\n\tserver.player = fake.FullName()\n\tserver.players = append(server.players, server.player)\n\tserver.id = 0\n\tserver.syncs = append(server.syncs, fmt.Sprintf(\"new %s %d\", server.player, server.id))\n\n\t// For ever loop on another thread\n\tgo func() {\n\t\tfor {\n\t\t\t// Handle incoming request\n\t\t\tconn, err := server.ln.Accept()\n\t\t\tif err != nil {\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t\tdata := make([]byte, 256)\n\t\t\t_, err = conn.Read(data)\n\t\t\tif err != nil {\n\t\t\t\tprint(err.Error())\n\t\t\t}\n\t\t\tbody := string(data)\n\n\t\t\tif strings.Contains(body, \"new\") {\n\t\t\t\t// New player can only join if the game isn't started\n\t\t\t\tif !server.started {\n\t\t\t\t\t// Clean given command\n\t\t\t\t\t// Something from \"new Sarah Montgomery\\x00\" to \"Sarah Montgomery\"\n\t\t\t\t\tname := strings.Replace(body, \"new \", \"\", 1)\n\t\t\t\t\tname = strings.Replace(name, \"\\x00\", \"\", 1)\n\n\t\t\t\t\t// Send id for new player\n\t\t\t\t\t_, _ = fmt.Fprintf(conn, strconv.Itoa(len(server.players)))\n\n\t\t\t\t\tsync := fmt.Sprintf(\"new %s %d\", name, len(server.players))\n\t\t\t\t\tprintln(sync)\n\n\t\t\t\t\t// Register this new player\n\t\t\t\t\tserver.players = append(server.players, name) // new name\n\t\t\t\t\tfirstSyncs := make([]int, len(server.syncs)) // all modification before creation has to be sync\n\t\t\t\t\tfor i, _ := range server.syncs {\n\t\t\t\t\t\tfirstSyncs[i] = i\n\t\t\t\t\t}\n\t\t\t\t\tserver.syncsDelay = append(server.syncsDelay, firstSyncs) // new array of not sent sync\n\t\t\t\t\tserver.NewSync(sync, len(server.players)-1) // other should be warned about this creation\n\t\t\t\t} else {\n\t\t\t\t\t_, _ = fmt.Fprintf(conn, \"kick them all\")\n\t\t\t\t}\n\t\t\t} else if strings.Contains(body, \"fetch\") {\n\t\t\t\t// Get player id first\n\t\t\t\tid := getPlayerID(body, 6)\n\n\t\t\t\t// Return syncs that hasn't be sent yet\n\t\t\t\tdata := \"\"\n\t\t\t\tfor _, syncID := range server.syncsDelay[id] {\n\t\t\t\t\tdata += server.syncs[syncID] + \"\\n\"\n\t\t\t\t}\n\t\t\t\tif data == \"\" {\n\t\t\t\t\t_, _ = fmt.Fprintf(conn, \"<empty>\")\n\t\t\t\t} else {\n\t\t\t\t\t_, _ = fmt.Fprintf(conn, data)\n\n\t\t\t\t\t// Player was warned\n\t\t\t\t\t// So he won't be warned again\n\t\t\t\t\tserver.syncsDelay[id] = []int{}\n\t\t\t\t}\n\t\t\t} else if strings.Contains(body, \"sync\") {\n\t\t\t\t// Don't bother me with modification if you can't do modification\n\t\t\t\t// No useless job\n\t\t\t\tif !strings.Contains(body, \"<empty>\") {\n\t\t\t\t\t// Get player id first\n\t\t\t\t\tid := getPlayerID(body, 5)\n\n\t\t\t\t\t// Remove \"sync %d\" from received sync\n\t\t\t\t\tbody = body[7 : len(body)-1]\n\n\t\t\t\t\t// Register sync\n\t\t\t\t\tserver.NewSync(body, id)\n\t\t\t\t\t// println(id)\n\t\t\t\t}\n\t\t\t\t_, _ = fmt.Fprintf(conn, \"good\")\n\t\t\t} else {\n\t\t\t\t_, _ = fmt.Fprintf(conn, \"what?\")\n\t\t\t}\n\t\t\t_ = conn.Close()\n\t\t}\n\t}()\n}", "func (m *Synchronization) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {\n err := m.Entity.Serialize(writer)\n if err != nil {\n return err\n }\n if m.GetJobs() != nil {\n cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetJobs()))\n for i, v := range m.GetJobs() {\n if v != nil {\n cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)\n }\n }\n err = writer.WriteCollectionOfObjectValues(\"jobs\", cast)\n if err != nil {\n return err\n }\n }\n if m.GetSecrets() != nil {\n cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSecrets()))\n for i, v := range m.GetSecrets() {\n if v != nil {\n cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)\n }\n }\n err = writer.WriteCollectionOfObjectValues(\"secrets\", cast)\n if err != nil {\n return err\n }\n }\n if m.GetTemplates() != nil {\n cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTemplates()))\n for i, v := range m.GetTemplates() {\n if v != nil {\n cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)\n }\n }\n err = writer.WriteCollectionOfObjectValues(\"templates\", cast)\n if err != nil {\n return err\n }\n }\n return nil\n}", "func (client *TcpBridgeClient) SyncStatistic(meta *SyncStatisticMeta) (*SyncStatisticResponseMeta, error) {\n frame, e := client.sendReceive(FRAME_OPERATION_SYNC_STATISTIC, STATE_VALIDATED, meta, 0, nil)\n if e != nil {\n return nil, e\n }\n var res = &SyncStatisticResponseMeta{}\n e1 := json.Unmarshal(frame.FrameMeta, res)\n if e1 != nil {\n return nil, e1\n }\n return res, nil\n}", "func newSQLSyncable(sqlConfig sqlConfig) *sqlSyncable {\n\tif sqlConfig.driver == \"ql\" {\n\t\tql.RegisterDriver()\n\t}\n\n\tdb, err := sql.Open(sqlConfig.driver, sqlConfig.connectionString)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tinserts := unwrapMappings(db, sqlConfig.mappings)\n\n\treturn &sqlSyncable{sqlConfig, inserts, db}\n}", "func New(sync *contract.Sync) Service {\n\treturn &service{\n\t\tSync: sync,\n\t\tsource: &dbResource{Resource: sync.Source},\n\t\tdest: &dbResource{Resource: sync.Dest},\n\t}\n}", "func NewStateSync(root common.Hash, database trie.DatabaseReader) *trie.Sync {\n\tvar syncer *trie.Sync\n\tcallback := func(leaf []byte, parent common.Hash) error {\n\t\treturn nil\n\t}\n\tsyncer = trie.NewSync(root, database, callback)\n\treturn syncer\n}" ]
[ "0.60239357", "0.5855572", "0.5668855", "0.5661526", "0.55634767", "0.5534644", "0.53730494", "0.5364802", "0.5363811", "0.53435385", "0.53191304", "0.5318778", "0.52644527", "0.5260147", "0.52400994", "0.52348626", "0.52263224", "0.522422", "0.51944906", "0.5178173", "0.5159047", "0.5158014", "0.51388144", "0.5132046", "0.51194316", "0.5093648", "0.5067824", "0.5059809", "0.5044173", "0.5026849", "0.5022614", "0.50166106", "0.499951", "0.49991795", "0.49382877", "0.49257866", "0.49082056", "0.48951825", "0.48839563", "0.48794946", "0.48586184", "0.48505628", "0.48457745", "0.48208088", "0.4807594", "0.4806392", "0.4804004", "0.48012713", "0.48002887", "0.47987017", "0.47976503", "0.47965688", "0.47915715", "0.4764831", "0.476309", "0.47557732", "0.4753065", "0.47512293", "0.47276774", "0.472735", "0.47271946", "0.472372", "0.4720449", "0.4712211", "0.4709515", "0.47006118", "0.46810424", "0.4672845", "0.46633136", "0.46584025", "0.46576014", "0.46572974", "0.4653242", "0.46466115", "0.46387553", "0.46298286", "0.46220592", "0.45995665", "0.459237", "0.4585329", "0.45763388", "0.45757478", "0.45743883", "0.4568182", "0.4562562", "0.45562994", "0.45439214", "0.4532636", "0.45322996", "0.45311907", "0.4506475", "0.44973144", "0.44949514", "0.44893128", "0.44828433", "0.4480377", "0.44686022", "0.44639382", "0.44626167", "0.44590798", "0.44587356" ]
0.0
-1
block until all GL execution is complete
func Finish() { C.glowFinish(gpFinish) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Finish() {\n\tC.glFinish()\n}", "func Finish() {\n\tgl.Finish()\n}", "func (w *windowImpl) drawLoop() {\n\truntime.LockOSThread()\nouter:\n\tfor {\n\t\tselect {\n\t\tcase <-w.winClose:\n\t\t\tbreak outer\n\t\tcase <-w.publish:\n\t\t\tw.app.RunOnMain(func() {\n\t\t\t\ttheGPU.UseContext(w)\n\t\t\t\tgl.Flush()\n\t\t\t\tw.glw.SwapBuffers()\n\t\t\t\t// gl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\t\t\t\ttheGPU.ClearContext(w)\n\t\t\t})\n\t\t\tw.publishDone <- oswin.PublishResult{}\n\t\t}\n\t}\n}", "func (w *Window) refreshWait() {\n\tC.glfwSwapBuffers(w.glfwWin)\n}", "func init() {\n\t// Locks the Execution in the main Thread as OpenGL is not thread Safe\n\truntime.LockOSThread()\n}", "func drawLoop(glw *wrapper.Glw) {\n\t// Sets the Clear Color (Background Color)\n\tgl.ClearColor(0.0, 0.0, 0.0, 1.0)\n\n\t// Clears the Window\n\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\n\t// Enables Depth\n\tgl.Enable(gl.DEPTH_TEST)\n\n\t// Sets the Shader program to Use\n\tgl.UseProgram(shaderProgram)\n\n\t// Define the model transformations for the cube\n\tcube.ResetModel()\n\tcube.Translate(x + 0.5, y, z)\n\tcube.Scale(scale, scale, scale) //scale equally in all axis\n\tcube.Rotate(-angle_x, mgl32.Vec3{1, 0, 0}) //rotating in clockwise direction around x-axis\n\tcube.Rotate(-angle_y, mgl32.Vec3{0, 1, 0}) //rotating in clockwise direction around y-axis\n\tcube.Rotate(-angle_z, mgl32.Vec3{0, 0, 1}) //rotating in clockwise direction around z-axis\n\n\t// Define the model transformations for our sphere\n\tsphere.ResetModel()\n\tsphere.Translate(-x - 0.5, 0, 0)\n\tsphere.Scale(scale / 3.0, scale / 3.0, scale / 3.0) //scale equally in all axis\n\tsphere.Rotate(-angle_x, mgl32.Vec3{1, 0, 0}) //rotating in clockwise direction around x-axis\n\tsphere.Rotate(-angle_y, mgl32.Vec3{0, 1, 0}) //rotating in clockwise direction around y-axis\n\tsphere.Rotate(-angle_z, mgl32.Vec3{0, 0, 1}) //rotating in clockwise direction around z-axis\n\n\t// Projection matrix : 45° Field of View, 4:3 ratio, display range : 0.1 unit <-> 100 units\n\tvar Projection mgl32.Mat4 = mgl32.Perspective(30.0, aspect_ratio, 0.1, 100.0)\n\n\t// Camera matrix\n\tvar View mgl32.Mat4 = mgl32.LookAtV(\n\t\tmgl32.Vec3{0, 0, 4}, // Camera is at (0,0,4), in World Space\n\t\tmgl32.Vec3{0, 0, 0}, // and looks at the origin\n\t\tmgl32.Vec3{0, 1, 0}, // Head is up (set to 0,-1,0 to look upside-down)\n\t);\n\n\t// Send our uniforms variables to the currently bound shader,\n\tgl.Uniform1ui(colourmodeUniform, uint32(colourmode))\n\tgl.UniformMatrix4fv(viewUniform, 1, false, &View[0])\n\tgl.UniformMatrix4fv(projectionUniform, 1, false, &Projection[0])\n\n\t// Draws the Cube\n\tgl.UniformMatrix4fv(modelUniform, 1, false, &cube.Model[0])\n\tcube.Draw()\n\n\t// Draw our sphere\n\tgl.UniformMatrix4fv(modelUniform, 1, false, &sphere.Model[0])\n\tsphere.DrawSphere()\n\n\tgl.DisableVertexAttribArray(0);\n\tgl.UseProgram(0);\n\n\t/* Modify our animation variables */\n\tangle_x += angle_inc_x;\n\tangle_y += angle_inc_y;\n\tangle_z += angle_inc_z;\n}", "func Flush() {\n\tgl.Flush()\n}", "func (c *Compute) waitGlobal(operation *compute.Operation) error {\n\tfor {\n\t\top, err := c.GlobalOperations.Get(c.Project, operation.Name).Do()\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"failed to get operation: %v\", operation.Name, err)\n\t\t}\n\t\tlog.Printf(\"operation %q status: %s\", operation.Name, op.Status)\n\t\tif op.Status == \"DONE\" {\n\t\t\tif op.Error != nil {\n\t\t\t\treturn fmt.Errorf(\"operation error: %v\", *op.Error.Errors[0])\n\t\t\t}\n\t\t\tbreak\n\t\t}\n\t\ttime.Sleep(1 * time.Second)\n\t}\n\treturn nil\n}", "func (m *Manager) waitForFinish() {\n\tm.state.wg.Wait()\n}", "func Flush() {\n\tC.glFlush()\n}", "func WaitSync(sync unsafe.Pointer, flags uint32, timeout uint64) {\n C.glowWaitSync(gpWaitSync, (C.GLsync)(sync), (C.GLbitfield)(flags), (C.GLuint64)(timeout))\n}", "func (mgr *l3Manager) waitBackend() {\n\tlog.Printf(\"L3: Waiting backend to terminate\")\n\t<-mgr.done\n\tlog.Printf(\"L3: Backend terminated\")\n}", "func pollEvents() {\n\tC.glfwPollEvents()\n}", "func wait() {\n\twaitImpl()\n}", "func Finish() {\n C.glowFinish(gpFinish)\n}", "func (w *GlfwWindow) PollEvents() {\n\n\tglfw.PollEvents()\n}", "func (p *buffersPool) wait() {\n\tp.rs.Wait()\n}", "func Wait() {\n\tdefaultManager.Wait()\n}", "func MWAIT() { ctx.MWAIT() }", "func (async *async) wait() {\n\t<-async.done\n}", "func (t *Indie) waitModules() {\n for _, m := range t.modules {\n\tim := reflect.ValueOf(m).FieldByName(\"Module\").Interface()\n\tt.moduleWgs[im.(Module).Name].Wait()\n }\n}", "func main() {\n\t// Initialize the library.\n\tctx := glfw.Init()\n\tif ctx == nil {\n\t\tpanic(\"failed to initialize GLFW\")\n\t}\n\tdefer ctx.Terminate()\n\n\t// Create a windowed mode window and its OpenGL context.\n\twin := ctx.CreateWindow(640, 480, \"Hello World\", nil, nil)\n\tif win == nil {\n\t\tpanic(\"failed to create window\")\n\t}\n\tdefer win.Destroy()\n\n\t// Make the window's context current.\n\tctx.MakeContextCurrent(win)\n\n\t// Loop until the user closes the window.\n\tfor !win.ShouldClose() {\n\t\t// Render here.\n\n\t\t// Swap front and back buffers.\n\t\twin.SwapBuffers()\n\n\t\t// Poll for and process events.\n\t\tctx.PollEvents()\n\t}\n}", "func (b *Builder) loop(ctx context.Context) {\n\terr := b.loadChallenge()\n\tif err != nil {\n\t\tlog.Info(\"challenge not loaded: %s\", err)\n\t}\n\tif err := b.waitOrStop(ctx, b.initDone); err != nil {\n\t\treturn\n\t}\n\t// ensure layer 1 has arrived\n\tif err := b.waitOrStop(ctx, b.layerClock.AwaitLayer(1)); err != nil {\n\t\treturn\n\t}\n\tb.run(ctx)\n}", "func (e *Eval) wait(ctx context.Context) (err error) {\n\tdefer func() {\n\t\tif err != nil {\n\t\t\treturn\n\t\t}\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase f := <-e.returnch:\n\t\t\t\te.returnFlow(f)\n\t\t\tdefault:\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\t}()\n\n\tfor {\n\t\tfor _, f := range e.needLog {\n\t\t\te.LogFlow(ctx, f)\n\t\t}\n\t\te.needLog = nil\n\t\tselect {\n\t\tcase <-ctx.Done():\n\t\t\treturn ctx.Err()\n\t\tcase f := <-e.returnch:\n\t\t\te.returnFlow(f)\n\t\t\treturn nil\n\t\tcase err := <-e.errors:\n\t\t\treturn err\n\t\tcase <-e.ticker.C:\n\t\t\te.reportStatus()\n\t\t}\n\t}\n}", "func (c *Compute) wait(operation *compute.Operation) error {\n\tfor {\n\t\top, err := c.ZoneOperations.Get(c.Project, c.Zone, operation.Name).Do()\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"failed to get operation: %v\", operation.Name, err)\n\t\t}\n\t\tlog.Printf(\"operation %q status: %s\", operation.Name, op.Status)\n\t\tif op.Status == \"DONE\" {\n\t\t\tif op.Error != nil {\n\t\t\t\treturn fmt.Errorf(\"operation error: %v\", *op.Error.Errors[0])\n\t\t\t}\n\t\t\tbreak\n\t\t}\n\t\ttime.Sleep(1 * time.Second)\n\t}\n\treturn nil\n}", "func (se *StateEngine) Wait() {\n\tse.mgrLock.Lock()\n\tdefer se.mgrLock.Unlock()\n\tif se.stopped {\n\t\treturn\n\t}\n\tfor _, m := range se.managers {\n\t\tif waiter, ok := m.(StateWaiter); ok {\n\t\t\twaiter.Wait()\n\t\t}\n\t}\n}", "func (f *fragment) awaitSnapshot() {\n\tf.mu.Lock()\n\tdefer f.mu.Unlock()\n\tfor f.snapshotting {\n\t\tf.snapshotCond.Wait()\n\t}\n}", "func Draw(width, height int, delta float64) {\n\ttickAnimatedTextures(delta)\n\tframeID++\nsync:\n\tfor {\n\t\tselect {\n\t\tcase f := <-syncChan:\n\t\t\tf()\n\t\tdefault:\n\t\t\tbreak sync\n\t\t}\n\t}\n\n\t// Only update the viewport if the window was resized\n\tif lastHeight != height || lastWidth != width || lastFOV != FOV.Value() {\n\t\tlastWidth = width\n\t\tlastHeight = height\n\t\tlastFOV = FOV.Value()\n\n\t\tperspectiveMatrix = mgl32.Perspective(\n\t\t\t(math.Pi/180)*float32(lastFOV),\n\t\t\tfloat32(width)/float32(height),\n\t\t\t0.1,\n\t\t\t500.0,\n\t\t)\n\t\tgl.Viewport(0, 0, width, height)\n\t\tfrustum.SetPerspective(\n\t\t\t(math.Pi/180)*float32(lastFOV),\n\t\t\tfloat32(width)/float32(height),\n\t\t\t0.1,\n\t\t\t500.0,\n\t\t)\n\t\tinitTrans()\n\t}\n\n\tmainFramebuffer.Bind()\n\tgl.Enable(gl.Multisample)\n\n\tgl.ActiveTexture(0)\n\tglTexture.Bind(gl.Texture2DArray)\n\n\tgl.ClearColor(ClearColour.R, ClearColour.G, ClearColour.B, 1.0)\n\tgl.Clear(gl.ColorBufferBit | gl.DepthBufferBit)\n\n\tchunkProgram.Use()\n\n\tviewVector = mgl32.Vec3{\n\t\tfloat32(math.Cos(Camera.Yaw-math.Pi/2) * -math.Cos(Camera.Pitch)),\n\t\tfloat32(-math.Sin(Camera.Pitch)),\n\t\tfloat32(-math.Sin(Camera.Yaw-math.Pi/2) * -math.Cos(Camera.Pitch)),\n\t}\n\tcam := mgl32.Vec3{-float32(Camera.X), -float32(Camera.Y), float32(Camera.Z)}\n\tcameraMatrix = mgl32.LookAtV(\n\t\tcam,\n\t\tcam.Add(mgl32.Vec3{-viewVector.X(), -viewVector.Y(), viewVector.Z()}),\n\t\tmgl32.Vec3{0, -1, 0},\n\t)\n\tcameraMatrix = cameraMatrix.Mul4(mgl32.Scale3D(-1.0, 1.0, 1.0))\n\n\tfrustum.SetCamera(\n\t\tcam,\n\t\tcam.Add(mgl32.Vec3{-viewVector.X(), -viewVector.Y(), viewVector.Z()}),\n\t\tmgl32.Vec3{0, -1, 0},\n\t)\n\n\tshaderChunk.PerspectiveMatrix.Matrix4(&perspectiveMatrix)\n\tshaderChunk.CameraMatrix.Matrix4(&cameraMatrix)\n\tshaderChunk.Texture.Int(0)\n\tshaderChunk.LightLevel.Float(LightLevel)\n\tshaderChunk.SkyOffset.Float(SkyOffset)\n\n\tchunkPos := position{\n\t\tX: int(Camera.X) >> 4,\n\t\tY: int(Camera.Y) >> 4,\n\t\tZ: int(Camera.Z) >> 4,\n\t}\n\tnearestBuffer = buffers[chunkPos]\n\n\tfor _, dir := range direction.Values {\n\t\tvalidDirs[dir] = viewVector.Dot(dir.AsVec()) > -0.8\n\t}\n\n\trenderOrder = renderOrder[:0]\n\trenderBuffer(nearestBuffer, chunkPos, direction.Invalid)\n\n\tdrawLines()\n\tdrawStatic()\n\tclouds.tick(delta)\n\n\tchunkProgramT.Use()\n\tshaderChunkT.PerspectiveMatrix.Matrix4(&perspectiveMatrix)\n\tshaderChunkT.CameraMatrix.Matrix4(&cameraMatrix)\n\tshaderChunkT.Texture.Int(0)\n\tshaderChunkT.LightLevel.Float(LightLevel)\n\tshaderChunkT.SkyOffset.Float(SkyOffset)\n\n\t// Copy the depth buffer\n\tmainFramebuffer.BindRead()\n\ttransFramebuffer.BindDraw()\n\tgl.BlitFramebuffer(\n\t\t0, 0, lastWidth, lastHeight,\n\t\t0, 0, lastWidth, lastHeight,\n\t\tgl.DepthBufferBit, gl.Nearest,\n\t)\n\n\tgl.Enable(gl.Blend)\n\tgl.DepthMask(false)\n\ttransFramebuffer.Bind()\n\tgl.ClearColor(0, 0, 0, 1)\n\tgl.Clear(gl.ColorBufferBit)\n\tgl.ClearBuffer(gl.Color, 0, []float32{0, 0, 0, 1})\n\tgl.ClearBuffer(gl.Color, 1, []float32{0, 0, 0, 0})\n\tgl.BlendFuncSeparate(gl.OneFactor, gl.OneFactor, gl.ZeroFactor, gl.OneMinusSrcAlpha)\n\tfor _, chunk := range renderOrder {\n\t\tif chunk.countT > 0 && chunk.bufferT.IsValid() {\n\t\t\tshaderChunkT.Offset.Int3(chunk.X, chunk.Y, chunk.Z)\n\n\t\t\tchunk.arrayT.Bind()\n\t\t\tgl.DrawElements(gl.Triangles, chunk.countT, elementBufferType, 0)\n\t\t}\n\t}\n\n\tgl.UnbindFramebuffer()\n\tgl.Disable(gl.DepthTest)\n\tgl.Clear(gl.ColorBufferBit)\n\tgl.Disable(gl.Blend)\n\n\ttransDraw()\n\n\tgl.Enable(gl.DepthTest)\n\tgl.DepthMask(true)\n\tgl.BlendFunc(gl.SrcAlpha, gl.OneMinusSrcAlpha)\n\tgl.Disable(gl.Multisample)\n\n\tdrawUI()\n\n\tif debugFramebuffers.Value() {\n\t\tgl.Enable(gl.Multisample)\n\t\tblitBuffers()\n\t\tgl.Disable(gl.Multisample)\n\t}\n}", "func (s *scene) run(ctx context.Context, r *sdl.Renderer) chan error {\n\terrc := make(chan error)\n\tgo func() {\n\t\tdefer close(errc)\n\t\tfor range time.Tick(10 * time.Millisecond) {\n\t\t\tselect {\n\t\t\tcase <-ctx.Done():\n\t\t\t\treturn\n\t\t\tdefault:\n\t\t\t\tif err := s.paint(r); err != nil {\n\t\t\t\t\terrc <- err\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}()\n\treturn errc\n}", "func (r *result) Wait() {\n\t<-r.done\n}", "func (g *game) Run() {\r\n\tpixelgl.Run(func() {\r\n\t\tg.RunLazyInit()\r\n\t\tg.RunEventLoop()\r\n\t})\r\n}", "func (tx *Tx) wait() {\n\tglobalCond.L.Lock()\n\tfor tx.verify() {\n\t\tglobalCond.Wait()\n\t}\n\tglobalCond.L.Unlock()\n}", "func (render *Render) MainLoop() {\n\tdefer glfw.Terminate()\n\n\t// texture setup\n\tvar texture uint32\n\tgl.GenTextures(1, &texture)\n\tgl.BindTexture(gl.TEXTURE_2D, texture)\n\tsetTextureParams()\n\tgl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGB, Width, Height, 0, gl.RGBA, gl.UNSIGNED_BYTE, nil)\n\n\t// bind to shader\n\tgl.UseProgram(render.Program)\n\t// gl.Uniform1i(gl.GetUniformLocation(render.Program, gl.Str(\"ourTexture\\x00\")), 0)\n\n\ttexUniform := gl.GetUniformLocation(render.Program, gl.Str(\"ourTexture\\x00\"))\n\tflipXUniform := gl.GetUniformLocation(render.Program, gl.Str(\"flipX\\x00\"))\n\tflipYUniform := gl.GetUniformLocation(render.Program, gl.Str(\"flipY\\x00\"))\n\tmodelUniform := gl.GetUniformLocation(render.Program, gl.Str(\"model\\x00\"))\n\tidentity := mgl32.Ident4()\n\n\tgl.UseProgram(render.Program)\n\n\tvar lastTime float64\n\n\tvar delta, lastUpdate float64\n\tvar nbFrames int\n\tfor !render.Window.ShouldClose() {\n\n\t\t// block to reduce fan noise (if fps limited)\n\t\t// this limits the speed of the opengl rendering thread\n\t\tlastTime = render.Sleep(lastTime)\n\n\t\tcurrentTime := glfw.GetTime()\n\t\tdelta = currentTime - lastUpdate\n\t\tnbFrames++\n\t\tif delta >= 1.0 { // If last cout was more than 1 sec ago\n\t\t\trender.Window.SetTitle(fmt.Sprintf(\"FPS: %.2f / %.2f\", float64(nbFrames)/delta, render.Fps))\n\t\t\tnbFrames = 0\n\t\t\tlastUpdate = currentTime\n\t\t}\n\n\t\t// are we in capture input mode?\n\t\tselect {\n\t\tcase n := <-render.StartInput:\n\t\t\trender.InputMode = n\n\t\tcase spriteCommand := <-render.SpriteChannel:\n\t\t\trender.runSpriteCommand(spriteCommand)\n\t\tdefault:\n\t\t\t// don't block\n\t\t}\n\n\t\tglfw.PollEvents()\n\n\t\tswapBuffers := false\n\t\trender.Lock.Lock()\n\t\tif render.UpdateScreen {\n\t\t\tgl.ActiveTexture(gl.TEXTURE0)\n\t\t\tgl.BindTexture(gl.TEXTURE_2D, texture)\n\n\t\t\t// need to do this so go.Ptr() works. This could be a bug in go: https://github.com/golang/go/issues/14210\n\t\t\tpixels := render.PixelMemory\n\t\t\tgl.TexSubImage2D(gl.TEXTURE_2D, 0, 0, 0, Width, Height, gl.RGB, gl.UNSIGNED_BYTE, gl.Ptr(&pixels[0]))\n\n\t\t\t// gl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\t\t\tgl.UniformMatrix4fv(modelUniform, 1, false, &identity[0])\n\t\t\tgl.Uniform1i(texUniform, 0)\n\t\t\tgl.Uniform1i(flipXUniform, 0)\n\t\t\tgl.Uniform1i(flipYUniform, 0)\n\t\t\tgl.BindVertexArray(render.Vao)\n\t\t\tgl.DrawArrays(gl.TRIANGLES, 0, int32(len(screen)/8))\n\n\t\t\trender.UpdateScreen = false\n\t\t\tswapBuffers = true\n\t\t}\n\t\trender.Lock.Unlock()\n\n\t\trender.SpriteLock.Lock()\n\t\tif swapBuffers || render.UpdateSprites {\n\t\t\tgl.Enable(gl.BLEND)\n\t\t\t// gl.BlendEquation(gl.MAX)\n\t\t\tgl.BlendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA)\n\t\t\tfor _, sprite := range render.Sprites {\n\t\t\t\tif sprite.Show {\n\t\t\t\t\tgl.BindTexture(gl.TEXTURE_2D, sprite.Textures[sprite.ImageIndex])\n\t\t\t\t\tgl.Uniform1i(texUniform, 0)\n\t\t\t\t\tgl.Uniform1i(flipXUniform, sprite.FlipX)\n\t\t\t\t\tgl.Uniform1i(flipYUniform, sprite.FlipY)\n\n\t\t\t\t\tsprite.Model = mgl32.Ident4().\n\t\t\t\t\t\tMul4(mgl32.Translate3D(float32(sprite.X-Width/2)/float32(Width/2), -float32(sprite.Y-Height/2)/float32(Height/2), 0)).\n\t\t\t\t\t\tMul4(mgl32.Scale3D(float32(sprite.W)/float32(Width), float32(sprite.H)/float32(Height), 1))\n\n\t\t\t\t\tgl.UniformMatrix4fv(modelUniform, 1, false, &sprite.Model[0])\n\t\t\t\t\tgl.DrawArrays(gl.TRIANGLES, 0, int32(len(screen)/8))\n\t\t\t\t}\n\t\t\t}\n\t\t\tgl.Disable(gl.BLEND)\n\n\t\t\trender.UpdateSprites = false\n\t\t\tswapBuffers = true\n\t\t}\n\t\trender.SpriteLock.Unlock()\n\n\t\tif swapBuffers {\n\t\t\trender.Window.SwapBuffers()\n\t\t}\n\t}\n}", "func (e *Engine) AwaitFinish() {\n\tvar finishCommand onFinishFn = func (_ Handler) {\n\t\te.stopRequest = true\n\t}\n\te.Post(finishCommand)\n\t<-e.onFinishChan\n}", "func (g *Group) wait() {\n\t<-g.ctx.Done()\n\n\tg.wgM.Lock()\n\tdefer g.wgM.Unlock()\n\n\tg.wg.Wait()\n\tclose(g.done)\n}", "func loop() {\n\n\tcfg := pixelgl.WindowConfig{\n\t\tTitle: \"Life...finds a way.\",\n\t\tBounds: winBounds,\n\t\tVSync: true,\n\t}\n\twin, err := pixelgl.NewWindow(cfg)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// sprite creation\n\tredPic := p.MakePictureData(p.R(0, 0, 1, 1))\n\tredPic.Pix[0] = colornames.Red\n\tred := p.NewSprite(redPic, redPic.Bounds())\n\n\tbatch := p.NewBatch(&p.TrianglesData{}, redPic)\n\n\t// game state\n\tboard := g.Patterns[initPattern]\n\tpaused := false\n\titerations := 0\n\n\t// update the game state (board) every iterWait duration\n\t// independently of the graphical draw loop\n\tgo func() {\n\t\twait := time.NewTicker(iterWait)\n\t\tfor !win.Closed() {\n\t\t\tselect {\n\t\t\tcase <-wait.C:\n\t\t\t\tif !paused {\n\t\t\t\t\tboard = g.Advance(board)\n\t\t\t\t\titerations++\n\t\t\t\t}\n\t\t\tdefault:\n\t\t\t}\n\t\t}\n\t\twait.Stop()\n\t}()\n\n\t// various state for drawing\n\tcam := camera{Position: p.ZV, Speed: 250.0, Zoom: 1.0, ZSpeed: 1.1}\n\tframes := 0\n\tsecond := time.Tick(time.Second)\n\tlast := time.Now()\n\n\tfor !win.Closed() {\n\t\tdt := time.Since(last).Seconds()\n\t\tlast = time.Now()\n\n\t\tcamMatrix := p.IM.\n\t\t\tScaled(cam.Position, cam.Zoom).\n\t\t\tMoved(win.Bounds().Center().Sub(cam.Position))\n\t\twin.SetMatrix(camMatrix)\n\n\t\t// update user controlled things\n\t\tif win.Pressed(pixelgl.KeyLeft) {\n\t\t\tcam.Position.X -= cam.Speed * dt\n\t\t}\n\t\tif win.Pressed(pixelgl.KeyRight) {\n\t\t\tcam.Position.X += cam.Speed * dt\n\t\t}\n\t\tif win.Pressed(pixelgl.KeyDown) {\n\t\t\tcam.Position.Y -= cam.Speed * dt\n\t\t}\n\t\tif win.Pressed(pixelgl.KeyUp) {\n\t\t\tcam.Position.Y += cam.Speed * dt\n\t\t}\n\t\tif win.JustPressed(pixelgl.KeySpace) {\n\t\t\tpaused = !paused\n\t\t}\n\t\t// win.SetTitle(fmt.Sprintf(\"Mouse (%.2f, %.2f)\", mouse.X, mouse.Y))\n\t\tif win.JustPressed(pixelgl.MouseButtonLeft) && paused {\n\t\t\t// toggle a point's existence.\n\t\t\t// use Round to change mouse floats to ints. Simple\n\t\t\t// truncation will often place dot in wrong spot since\n\t\t\t// Pixel uses the sprite's center as it's position.\n\t\t\tmouse := camMatrix.Unproject(win.MousePosition())\n\t\t\tpoint := g.Point{round(mouse.X), round(mouse.Y)}\n\t\t\tif board[point] {\n\t\t\t\tdelete(board, point)\n\t\t\t} else {\n\t\t\t\tboard[point] = true\n\t\t\t}\n\t\t}\n\t\tif win.JustPressed(pixelgl.MouseButtonRight) && paused {\n\t\t\t// allow user to increment the board state 1 iteration\n\t\t\tboard = g.Advance(board)\n\t\t\titerations++\n\t\t}\n\t\tcam.Zoom *= math.Pow(cam.ZSpeed, win.MouseScroll().Y)\n\n\t\t// render game state\n\t\tbatch.Clear()\n\t\tfor point := range board {\n\t\t\tred.Draw(batch, p.IM.Moved(pToV(point)))\n\t\t}\n\n\t\t// draw\n\t\tif paused {\n\t\t\twin.Clear(colornames.Lightgray)\n\t\t} else {\n\t\t\twin.Clear(colornames.White)\n\t\t}\n\t\tbatch.Draw(win)\n\t\twin.Update()\n\n\t\t// various metrics in titlebar\n\t\tframes++\n\t\tselect {\n\t\tcase <-second:\n\t\t\twin.SetTitle(fmt.Sprintf(\n\t\t\t\t\"%s | FPS: %d | Paused: %v | %d cells %d iterations\",\n\t\t\t\tcfg.Title, frames, paused, len(board), iterations))\n\t\t\tframes = 0\n\t\tdefault:\n\t\t}\n\t}\n}", "func (site *Site) loopLoadpoints(next chan<- Updater) {\n\tfor {\n\t\tfor _, lp := range site.loadpoints {\n\t\t\tnext <- lp\n\t\t}\n\t}\n}", "func (aio *AsyncIO) waitAll() {\n\taio.trigger <- struct{}{}\n\t<-aio.trigger\n}", "func (t *tracer) loop() {\n\tfor {\n\t\tselect {\n\t\tcase <-t.done:\n\t\t\treturn\n\t\tdefault:\n\t\t\tif t.ready() {\n\t\t\t\tt.flush()\n\t\t\t}\n\t\t\ttime.Sleep(time.Second)\n\t\t}\n\t}\n}", "func (async *async) complete() {\n\tif atomic.CompareAndSwapUint32(&async.state, pending, completed) {\n\t\tclose(async.done)\n\t\tasync.RLock()\n\t\tdefer async.RUnlock()\n\t\tfor _, comp := range async.completions {\n\t\t\tcomp()\n\t\t}\n\t}\n\tasync.completions = nil\n}", "func (g *Group) Wait() error", "func (p *Init) Wait() {\n\t<-p.waitBlock\n}", "func gfxLoop(w window.Window, d gfx.Device) {\n\n\tgame.Init(w, d)\n\n\tfor {\n\t\tgame.Update(w, d)\n\t}\n}", "func (g *grid) Wait() {\n\tif g.cond != nil {\n\t\tg.cond.L.Lock()\n\t\tg.cond.Wait()\n\t\tg.cond.L.Unlock()\n\t}\n}", "func main() {\n\tr := NewRenderer()\n\n\t// We draw the background canvas just once.\n\tr.GetBackgroundCanvasReady()\n\n\t// Everything else happens in response to mouse movements.\n\tr.RealCanvas.Set(\"onmousemove\", js.FuncOf(r.OnMoveHandler))\n\twait := make(chan bool)\n\t<-wait\n}", "func (ws *WindowSurface) Run() {\n\t// log.Println(\"Starting viewer polling\")\n\tws.running = true\n\t// var simStatus = \"\"\n\tvar frameStart time.Time\n\tvar elapsedTime float64\n\tvar loopTime float64\n\n\tsleepDelay := 0.0\n\n\t// Get a reference to SDL's internal keyboard state. It is updated\n\t// during sdl.PollEvent()\n\tkeyState := sdl.GetKeyboardState()\n\n\trasterizer := renderer.NewBresenHamRasterizer()\n\n\tsdl.SetEventFilterFunc(ws.filterEvent, nil)\n\n\tfor ws.running {\n\t\tframeStart = time.Now()\n\n\t\tsdl.PumpEvents()\n\n\t\tif keyState[sdl.SCANCODE_Z] != 0 {\n\t\t\tws.mod--\n\t\t}\n\t\tif keyState[sdl.SCANCODE_X] != 0 {\n\t\t\tws.mod++\n\t\t}\n\n\t\tws.clearDisplay()\n\n\t\tws.render(rasterizer)\n\n\t\t// This takes on average 5-7ms\n\t\t// ws.texture.Update(nil, ws.pixels.Pix, ws.pixels.Stride)\n\t\tws.texture.Update(nil, ws.rasterBuffer.Pixels().Pix, ws.rasterBuffer.Pixels().Stride)\n\t\tws.renderer.Copy(ws.texture, nil, nil)\n\n\t\tws.txtFPSLabel.DrawAt(10, 10)\n\t\tf := fmt.Sprintf(\"%2.2f\", 1.0/elapsedTime*1000.0)\n\t\tws.dynaTxt.DrawAt(ws.txtFPSLabel.Bounds.W+10, 10, f)\n\n\t\t// ws.mx, ws.my, _ = sdl.GetMouseState()\n\t\tws.txtMousePos.DrawAt(10, 25)\n\t\tf = fmt.Sprintf(\"<%d, %d>\", ws.mx, ws.my)\n\t\tws.dynaTxt.DrawAt(ws.txtMousePos.Bounds.W+10, 25, f)\n\n\t\tws.txtLoopLabel.DrawAt(10, 40)\n\t\tf = fmt.Sprintf(\"%2.2f\", loopTime)\n\t\tws.dynaTxt.DrawAt(ws.txtLoopLabel.Bounds.W+10, 40, f)\n\n\t\tws.renderer.Present()\n\n\t\t// time.Sleep(time.Millisecond * 5)\n\t\tloopTime = float64(time.Since(frameStart).Nanoseconds() / 1000000.0)\n\t\t// elapsedTime = float64(time.Since(frameStart).Seconds())\n\n\t\tsleepDelay = math.Floor(framePeriod - loopTime)\n\t\t// fmt.Printf(\"%3.5f ,%3.5f, %3.5f \\n\", framePeriod, elapsedTime, sleepDelay)\n\t\tif sleepDelay > 0 {\n\t\t\tsdl.Delay(uint32(sleepDelay))\n\t\t\telapsedTime = framePeriod\n\t\t} else {\n\t\t\telapsedTime = loopTime\n\t\t}\n\t}\n}", "func (b *buildandrun) Wait() {\n\t<-b.done\n}", "func Wait() {\n\tselect {}\n}", "func gameLoop() {\n\tlast := time.Now()\n\tfor !global.gWin.Closed() {\n\t\tdt := time.Since(last).Seconds()\n\t\tlast = time.Now()\n\n\t\tglobal.gWin.Clear(global.gClearColor)\n\n\t\t// Update systems\n\n\t\tglobal.gController.Update(dt)\n\t\tglobal.gCamera.Update(dt)\n\t\tglobal.gWorld.Draw(dt)\n\n\t\tglobal.gWin.Update()\n\t}\n}", "func InitGo(loader func(string) unsafe.Pointer) {\n ver := Version{OpenGL, -1, -1}\n\n\tC.pfn_glGetString = C.PFNGLGETSTRING(loader(\"glGetString\"))\n\tvs := C.GoString((*C.char)(unsafe.Pointer(C.gogl_glGetString(GL_VERSION))))\n i := strings.IndexFunc(vs, func(r rune) bool {\n return r >= '0' && r <= '9'\n })\n if i >= 0 {\n fmt.Sscanf(vs[i:], \"%d.%d\", &ver.Major, &ver.Minor)\n }\n if !ver.GE(OpenGL, 1, 0) {\n panic(\"failed to identify OpenGL version\")\n }\n C.GLVersion.major = C.int(ver.Major)\n C.GLVersion.minor = C.int(ver.Minor)\n\n C.pfn_glAccum = C.PFNGLACCUM(loader(\"glAccum\"))\n C.pfn_glAlphaFunc = C.PFNGLALPHAFUNC(loader(\"glAlphaFunc\"))\n C.pfn_glBegin = C.PFNGLBEGIN(loader(\"glBegin\"))\n C.pfn_glBitmap = C.PFNGLBITMAP(loader(\"glBitmap\"))\n C.pfn_glBlendFunc = C.PFNGLBLENDFUNC(loader(\"glBlendFunc\"))\n C.pfn_glCallList = C.PFNGLCALLLIST(loader(\"glCallList\"))\n C.pfn_glCallLists = C.PFNGLCALLLISTS(loader(\"glCallLists\"))\n C.pfn_glClear = C.PFNGLCLEAR(loader(\"glClear\"))\n C.pfn_glClearAccum = C.PFNGLCLEARACCUM(loader(\"glClearAccum\"))\n C.pfn_glClearColor = C.PFNGLCLEARCOLOR(loader(\"glClearColor\"))\n C.pfn_glClearDepth = C.PFNGLCLEARDEPTH(loader(\"glClearDepth\"))\n C.pfn_glClearIndex = C.PFNGLCLEARINDEX(loader(\"glClearIndex\"))\n C.pfn_glClearStencil = C.PFNGLCLEARSTENCIL(loader(\"glClearStencil\"))\n C.pfn_glClipPlane = C.PFNGLCLIPPLANE(loader(\"glClipPlane\"))\n C.pfn_glColor3b = C.PFNGLCOLOR3B(loader(\"glColor3b\"))\n C.pfn_glColor3bv = C.PFNGLCOLOR3BV(loader(\"glColor3bv\"))\n C.pfn_glColor3d = C.PFNGLCOLOR3D(loader(\"glColor3d\"))\n C.pfn_glColor3dv = C.PFNGLCOLOR3DV(loader(\"glColor3dv\"))\n C.pfn_glColor3f = C.PFNGLCOLOR3F(loader(\"glColor3f\"))\n C.pfn_glColor3fv = C.PFNGLCOLOR3FV(loader(\"glColor3fv\"))\n C.pfn_glColor3i = C.PFNGLCOLOR3I(loader(\"glColor3i\"))\n C.pfn_glColor3iv = C.PFNGLCOLOR3IV(loader(\"glColor3iv\"))\n C.pfn_glColor3s = C.PFNGLCOLOR3S(loader(\"glColor3s\"))\n C.pfn_glColor3sv = C.PFNGLCOLOR3SV(loader(\"glColor3sv\"))\n C.pfn_glColor3ub = C.PFNGLCOLOR3UB(loader(\"glColor3ub\"))\n C.pfn_glColor3ubv = C.PFNGLCOLOR3UBV(loader(\"glColor3ubv\"))\n C.pfn_glColor3ui = C.PFNGLCOLOR3UI(loader(\"glColor3ui\"))\n C.pfn_glColor3uiv = C.PFNGLCOLOR3UIV(loader(\"glColor3uiv\"))\n C.pfn_glColor3us = C.PFNGLCOLOR3US(loader(\"glColor3us\"))\n C.pfn_glColor3usv = C.PFNGLCOLOR3USV(loader(\"glColor3usv\"))\n C.pfn_glColor4b = C.PFNGLCOLOR4B(loader(\"glColor4b\"))\n C.pfn_glColor4bv = C.PFNGLCOLOR4BV(loader(\"glColor4bv\"))\n C.pfn_glColor4d = C.PFNGLCOLOR4D(loader(\"glColor4d\"))\n C.pfn_glColor4dv = C.PFNGLCOLOR4DV(loader(\"glColor4dv\"))\n C.pfn_glColor4f = C.PFNGLCOLOR4F(loader(\"glColor4f\"))\n C.pfn_glColor4fv = C.PFNGLCOLOR4FV(loader(\"glColor4fv\"))\n C.pfn_glColor4i = C.PFNGLCOLOR4I(loader(\"glColor4i\"))\n C.pfn_glColor4iv = C.PFNGLCOLOR4IV(loader(\"glColor4iv\"))\n C.pfn_glColor4s = C.PFNGLCOLOR4S(loader(\"glColor4s\"))\n C.pfn_glColor4sv = C.PFNGLCOLOR4SV(loader(\"glColor4sv\"))\n C.pfn_glColor4ub = C.PFNGLCOLOR4UB(loader(\"glColor4ub\"))\n C.pfn_glColor4ubv = C.PFNGLCOLOR4UBV(loader(\"glColor4ubv\"))\n C.pfn_glColor4ui = C.PFNGLCOLOR4UI(loader(\"glColor4ui\"))\n C.pfn_glColor4uiv = C.PFNGLCOLOR4UIV(loader(\"glColor4uiv\"))\n C.pfn_glColor4us = C.PFNGLCOLOR4US(loader(\"glColor4us\"))\n C.pfn_glColor4usv = C.PFNGLCOLOR4USV(loader(\"glColor4usv\"))\n C.pfn_glColorMask = C.PFNGLCOLORMASK(loader(\"glColorMask\"))\n C.pfn_glColorMaterial = C.PFNGLCOLORMATERIAL(loader(\"glColorMaterial\"))\n C.pfn_glCopyPixels = C.PFNGLCOPYPIXELS(loader(\"glCopyPixels\"))\n C.pfn_glCullFace = C.PFNGLCULLFACE(loader(\"glCullFace\"))\n C.pfn_glDeleteLists = C.PFNGLDELETELISTS(loader(\"glDeleteLists\"))\n C.pfn_glDepthFunc = C.PFNGLDEPTHFUNC(loader(\"glDepthFunc\"))\n C.pfn_glDepthMask = C.PFNGLDEPTHMASK(loader(\"glDepthMask\"))\n C.pfn_glDepthRange = C.PFNGLDEPTHRANGE(loader(\"glDepthRange\"))\n C.pfn_glDisable = C.PFNGLDISABLE(loader(\"glDisable\"))\n C.pfn_glDrawBuffer = C.PFNGLDRAWBUFFER(loader(\"glDrawBuffer\"))\n C.pfn_glDrawPixels = C.PFNGLDRAWPIXELS(loader(\"glDrawPixels\"))\n C.pfn_glEdgeFlag = C.PFNGLEDGEFLAG(loader(\"glEdgeFlag\"))\n C.pfn_glEdgeFlagv = C.PFNGLEDGEFLAGV(loader(\"glEdgeFlagv\"))\n C.pfn_glEnable = C.PFNGLENABLE(loader(\"glEnable\"))\n C.pfn_glEnd = C.PFNGLEND(loader(\"glEnd\"))\n C.pfn_glEndList = C.PFNGLENDLIST(loader(\"glEndList\"))\n C.pfn_glEvalCoord1d = C.PFNGLEVALCOORD1D(loader(\"glEvalCoord1d\"))\n C.pfn_glEvalCoord1dv = C.PFNGLEVALCOORD1DV(loader(\"glEvalCoord1dv\"))\n C.pfn_glEvalCoord1f = C.PFNGLEVALCOORD1F(loader(\"glEvalCoord1f\"))\n C.pfn_glEvalCoord1fv = C.PFNGLEVALCOORD1FV(loader(\"glEvalCoord1fv\"))\n C.pfn_glEvalCoord2d = C.PFNGLEVALCOORD2D(loader(\"glEvalCoord2d\"))\n C.pfn_glEvalCoord2dv = C.PFNGLEVALCOORD2DV(loader(\"glEvalCoord2dv\"))\n C.pfn_glEvalCoord2f = C.PFNGLEVALCOORD2F(loader(\"glEvalCoord2f\"))\n C.pfn_glEvalCoord2fv = C.PFNGLEVALCOORD2FV(loader(\"glEvalCoord2fv\"))\n C.pfn_glEvalMesh1 = C.PFNGLEVALMESH1(loader(\"glEvalMesh1\"))\n C.pfn_glEvalMesh2 = C.PFNGLEVALMESH2(loader(\"glEvalMesh2\"))\n C.pfn_glEvalPoint1 = C.PFNGLEVALPOINT1(loader(\"glEvalPoint1\"))\n C.pfn_glEvalPoint2 = C.PFNGLEVALPOINT2(loader(\"glEvalPoint2\"))\n C.pfn_glFeedbackBuffer = C.PFNGLFEEDBACKBUFFER(loader(\"glFeedbackBuffer\"))\n C.pfn_glFinish = C.PFNGLFINISH(loader(\"glFinish\"))\n C.pfn_glFlush = C.PFNGLFLUSH(loader(\"glFlush\"))\n C.pfn_glFogf = C.PFNGLFOGF(loader(\"glFogf\"))\n C.pfn_glFogfv = C.PFNGLFOGFV(loader(\"glFogfv\"))\n C.pfn_glFogi = C.PFNGLFOGI(loader(\"glFogi\"))\n C.pfn_glFogiv = C.PFNGLFOGIV(loader(\"glFogiv\"))\n C.pfn_glFrontFace = C.PFNGLFRONTFACE(loader(\"glFrontFace\"))\n C.pfn_glFrustum = C.PFNGLFRUSTUM(loader(\"glFrustum\"))\n C.pfn_glGenLists = C.PFNGLGENLISTS(loader(\"glGenLists\"))\n C.pfn_glGetBooleanv = C.PFNGLGETBOOLEANV(loader(\"glGetBooleanv\"))\n C.pfn_glGetClipPlane = C.PFNGLGETCLIPPLANE(loader(\"glGetClipPlane\"))\n C.pfn_glGetDoublev = C.PFNGLGETDOUBLEV(loader(\"glGetDoublev\"))\n C.pfn_glGetError = C.PFNGLGETERROR(loader(\"glGetError\"))\n C.pfn_glGetFloatv = C.PFNGLGETFLOATV(loader(\"glGetFloatv\"))\n C.pfn_glGetIntegerv = C.PFNGLGETINTEGERV(loader(\"glGetIntegerv\"))\n C.pfn_glGetLightfv = C.PFNGLGETLIGHTFV(loader(\"glGetLightfv\"))\n C.pfn_glGetLightiv = C.PFNGLGETLIGHTIV(loader(\"glGetLightiv\"))\n C.pfn_glGetMapdv = C.PFNGLGETMAPDV(loader(\"glGetMapdv\"))\n C.pfn_glGetMapfv = C.PFNGLGETMAPFV(loader(\"glGetMapfv\"))\n C.pfn_glGetMapiv = C.PFNGLGETMAPIV(loader(\"glGetMapiv\"))\n C.pfn_glGetMaterialfv = C.PFNGLGETMATERIALFV(loader(\"glGetMaterialfv\"))\n C.pfn_glGetMaterialiv = C.PFNGLGETMATERIALIV(loader(\"glGetMaterialiv\"))\n C.pfn_glGetPixelMapfv = C.PFNGLGETPIXELMAPFV(loader(\"glGetPixelMapfv\"))\n C.pfn_glGetPixelMapuiv = C.PFNGLGETPIXELMAPUIV(loader(\"glGetPixelMapuiv\"))\n C.pfn_glGetPixelMapusv = C.PFNGLGETPIXELMAPUSV(loader(\"glGetPixelMapusv\"))\n C.pfn_glGetPolygonStipple = C.PFNGLGETPOLYGONSTIPPLE(loader(\"glGetPolygonStipple\"))\n C.pfn_glGetString = C.PFNGLGETSTRING(loader(\"glGetString\"))\n C.pfn_glGetTexEnvfv = C.PFNGLGETTEXENVFV(loader(\"glGetTexEnvfv\"))\n C.pfn_glGetTexEnviv = C.PFNGLGETTEXENVIV(loader(\"glGetTexEnviv\"))\n C.pfn_glGetTexGendv = C.PFNGLGETTEXGENDV(loader(\"glGetTexGendv\"))\n C.pfn_glGetTexGenfv = C.PFNGLGETTEXGENFV(loader(\"glGetTexGenfv\"))\n C.pfn_glGetTexGeniv = C.PFNGLGETTEXGENIV(loader(\"glGetTexGeniv\"))\n C.pfn_glGetTexImage = C.PFNGLGETTEXIMAGE(loader(\"glGetTexImage\"))\n C.pfn_glGetTexLevelParameterfv = C.PFNGLGETTEXLEVELPARAMETERFV(loader(\"glGetTexLevelParameterfv\"))\n C.pfn_glGetTexLevelParameteriv = C.PFNGLGETTEXLEVELPARAMETERIV(loader(\"glGetTexLevelParameteriv\"))\n C.pfn_glGetTexParameterfv = C.PFNGLGETTEXPARAMETERFV(loader(\"glGetTexParameterfv\"))\n C.pfn_glGetTexParameteriv = C.PFNGLGETTEXPARAMETERIV(loader(\"glGetTexParameteriv\"))\n C.pfn_glHint = C.PFNGLHINT(loader(\"glHint\"))\n C.pfn_glIndexMask = C.PFNGLINDEXMASK(loader(\"glIndexMask\"))\n C.pfn_glIndexd = C.PFNGLINDEXD(loader(\"glIndexd\"))\n C.pfn_glIndexdv = C.PFNGLINDEXDV(loader(\"glIndexdv\"))\n C.pfn_glIndexf = C.PFNGLINDEXF(loader(\"glIndexf\"))\n C.pfn_glIndexfv = C.PFNGLINDEXFV(loader(\"glIndexfv\"))\n C.pfn_glIndexi = C.PFNGLINDEXI(loader(\"glIndexi\"))\n C.pfn_glIndexiv = C.PFNGLINDEXIV(loader(\"glIndexiv\"))\n C.pfn_glIndexs = C.PFNGLINDEXS(loader(\"glIndexs\"))\n C.pfn_glIndexsv = C.PFNGLINDEXSV(loader(\"glIndexsv\"))\n C.pfn_glInitNames = C.PFNGLINITNAMES(loader(\"glInitNames\"))\n C.pfn_glIsEnabled = C.PFNGLISENABLED(loader(\"glIsEnabled\"))\n C.pfn_glIsList = C.PFNGLISLIST(loader(\"glIsList\"))\n C.pfn_glLightModelf = C.PFNGLLIGHTMODELF(loader(\"glLightModelf\"))\n C.pfn_glLightModelfv = C.PFNGLLIGHTMODELFV(loader(\"glLightModelfv\"))\n C.pfn_glLightModeli = C.PFNGLLIGHTMODELI(loader(\"glLightModeli\"))\n C.pfn_glLightModeliv = C.PFNGLLIGHTMODELIV(loader(\"glLightModeliv\"))\n C.pfn_glLightf = C.PFNGLLIGHTF(loader(\"glLightf\"))\n C.pfn_glLightfv = C.PFNGLLIGHTFV(loader(\"glLightfv\"))\n C.pfn_glLighti = C.PFNGLLIGHTI(loader(\"glLighti\"))\n C.pfn_glLightiv = C.PFNGLLIGHTIV(loader(\"glLightiv\"))\n C.pfn_glLineStipple = C.PFNGLLINESTIPPLE(loader(\"glLineStipple\"))\n C.pfn_glLineWidth = C.PFNGLLINEWIDTH(loader(\"glLineWidth\"))\n C.pfn_glListBase = C.PFNGLLISTBASE(loader(\"glListBase\"))\n C.pfn_glLoadIdentity = C.PFNGLLOADIDENTITY(loader(\"glLoadIdentity\"))\n C.pfn_glLoadMatrixd = C.PFNGLLOADMATRIXD(loader(\"glLoadMatrixd\"))\n C.pfn_glLoadMatrixf = C.PFNGLLOADMATRIXF(loader(\"glLoadMatrixf\"))\n C.pfn_glLoadName = C.PFNGLLOADNAME(loader(\"glLoadName\"))\n C.pfn_glLogicOp = C.PFNGLLOGICOP(loader(\"glLogicOp\"))\n C.pfn_glMap1d = C.PFNGLMAP1D(loader(\"glMap1d\"))\n C.pfn_glMap1f = C.PFNGLMAP1F(loader(\"glMap1f\"))\n C.pfn_glMap2d = C.PFNGLMAP2D(loader(\"glMap2d\"))\n C.pfn_glMap2f = C.PFNGLMAP2F(loader(\"glMap2f\"))\n C.pfn_glMapGrid1d = C.PFNGLMAPGRID1D(loader(\"glMapGrid1d\"))\n C.pfn_glMapGrid1f = C.PFNGLMAPGRID1F(loader(\"glMapGrid1f\"))\n C.pfn_glMapGrid2d = C.PFNGLMAPGRID2D(loader(\"glMapGrid2d\"))\n C.pfn_glMapGrid2f = C.PFNGLMAPGRID2F(loader(\"glMapGrid2f\"))\n C.pfn_glMaterialf = C.PFNGLMATERIALF(loader(\"glMaterialf\"))\n C.pfn_glMaterialfv = C.PFNGLMATERIALFV(loader(\"glMaterialfv\"))\n C.pfn_glMateriali = C.PFNGLMATERIALI(loader(\"glMateriali\"))\n C.pfn_glMaterialiv = C.PFNGLMATERIALIV(loader(\"glMaterialiv\"))\n C.pfn_glMatrixMode = C.PFNGLMATRIXMODE(loader(\"glMatrixMode\"))\n C.pfn_glMultMatrixd = C.PFNGLMULTMATRIXD(loader(\"glMultMatrixd\"))\n C.pfn_glMultMatrixf = C.PFNGLMULTMATRIXF(loader(\"glMultMatrixf\"))\n C.pfn_glNewList = C.PFNGLNEWLIST(loader(\"glNewList\"))\n C.pfn_glNormal3b = C.PFNGLNORMAL3B(loader(\"glNormal3b\"))\n C.pfn_glNormal3bv = C.PFNGLNORMAL3BV(loader(\"glNormal3bv\"))\n C.pfn_glNormal3d = C.PFNGLNORMAL3D(loader(\"glNormal3d\"))\n C.pfn_glNormal3dv = C.PFNGLNORMAL3DV(loader(\"glNormal3dv\"))\n C.pfn_glNormal3f = C.PFNGLNORMAL3F(loader(\"glNormal3f\"))\n C.pfn_glNormal3fv = C.PFNGLNORMAL3FV(loader(\"glNormal3fv\"))\n C.pfn_glNormal3i = C.PFNGLNORMAL3I(loader(\"glNormal3i\"))\n C.pfn_glNormal3iv = C.PFNGLNORMAL3IV(loader(\"glNormal3iv\"))\n C.pfn_glNormal3s = C.PFNGLNORMAL3S(loader(\"glNormal3s\"))\n C.pfn_glNormal3sv = C.PFNGLNORMAL3SV(loader(\"glNormal3sv\"))\n C.pfn_glOrtho = C.PFNGLORTHO(loader(\"glOrtho\"))\n C.pfn_glPassThrough = C.PFNGLPASSTHROUGH(loader(\"glPassThrough\"))\n C.pfn_glPixelMapfv = C.PFNGLPIXELMAPFV(loader(\"glPixelMapfv\"))\n C.pfn_glPixelMapuiv = C.PFNGLPIXELMAPUIV(loader(\"glPixelMapuiv\"))\n C.pfn_glPixelMapusv = C.PFNGLPIXELMAPUSV(loader(\"glPixelMapusv\"))\n C.pfn_glPixelStoref = C.PFNGLPIXELSTOREF(loader(\"glPixelStoref\"))\n C.pfn_glPixelStorei = C.PFNGLPIXELSTOREI(loader(\"glPixelStorei\"))\n C.pfn_glPixelTransferf = C.PFNGLPIXELTRANSFERF(loader(\"glPixelTransferf\"))\n C.pfn_glPixelTransferi = C.PFNGLPIXELTRANSFERI(loader(\"glPixelTransferi\"))\n C.pfn_glPixelZoom = C.PFNGLPIXELZOOM(loader(\"glPixelZoom\"))\n C.pfn_glPointSize = C.PFNGLPOINTSIZE(loader(\"glPointSize\"))\n C.pfn_glPolygonMode = C.PFNGLPOLYGONMODE(loader(\"glPolygonMode\"))\n C.pfn_glPolygonStipple = C.PFNGLPOLYGONSTIPPLE(loader(\"glPolygonStipple\"))\n C.pfn_glPopAttrib = C.PFNGLPOPATTRIB(loader(\"glPopAttrib\"))\n C.pfn_glPopMatrix = C.PFNGLPOPMATRIX(loader(\"glPopMatrix\"))\n C.pfn_glPopName = C.PFNGLPOPNAME(loader(\"glPopName\"))\n C.pfn_glPushAttrib = C.PFNGLPUSHATTRIB(loader(\"glPushAttrib\"))\n C.pfn_glPushMatrix = C.PFNGLPUSHMATRIX(loader(\"glPushMatrix\"))\n C.pfn_glPushName = C.PFNGLPUSHNAME(loader(\"glPushName\"))\n C.pfn_glRasterPos2d = C.PFNGLRASTERPOS2D(loader(\"glRasterPos2d\"))\n C.pfn_glRasterPos2dv = C.PFNGLRASTERPOS2DV(loader(\"glRasterPos2dv\"))\n C.pfn_glRasterPos2f = C.PFNGLRASTERPOS2F(loader(\"glRasterPos2f\"))\n C.pfn_glRasterPos2fv = C.PFNGLRASTERPOS2FV(loader(\"glRasterPos2fv\"))\n C.pfn_glRasterPos2i = C.PFNGLRASTERPOS2I(loader(\"glRasterPos2i\"))\n C.pfn_glRasterPos2iv = C.PFNGLRASTERPOS2IV(loader(\"glRasterPos2iv\"))\n C.pfn_glRasterPos2s = C.PFNGLRASTERPOS2S(loader(\"glRasterPos2s\"))\n C.pfn_glRasterPos2sv = C.PFNGLRASTERPOS2SV(loader(\"glRasterPos2sv\"))\n C.pfn_glRasterPos3d = C.PFNGLRASTERPOS3D(loader(\"glRasterPos3d\"))\n C.pfn_glRasterPos3dv = C.PFNGLRASTERPOS3DV(loader(\"glRasterPos3dv\"))\n C.pfn_glRasterPos3f = C.PFNGLRASTERPOS3F(loader(\"glRasterPos3f\"))\n C.pfn_glRasterPos3fv = C.PFNGLRASTERPOS3FV(loader(\"glRasterPos3fv\"))\n C.pfn_glRasterPos3i = C.PFNGLRASTERPOS3I(loader(\"glRasterPos3i\"))\n C.pfn_glRasterPos3iv = C.PFNGLRASTERPOS3IV(loader(\"glRasterPos3iv\"))\n C.pfn_glRasterPos3s = C.PFNGLRASTERPOS3S(loader(\"glRasterPos3s\"))\n C.pfn_glRasterPos3sv = C.PFNGLRASTERPOS3SV(loader(\"glRasterPos3sv\"))\n C.pfn_glRasterPos4d = C.PFNGLRASTERPOS4D(loader(\"glRasterPos4d\"))\n C.pfn_glRasterPos4dv = C.PFNGLRASTERPOS4DV(loader(\"glRasterPos4dv\"))\n C.pfn_glRasterPos4f = C.PFNGLRASTERPOS4F(loader(\"glRasterPos4f\"))\n C.pfn_glRasterPos4fv = C.PFNGLRASTERPOS4FV(loader(\"glRasterPos4fv\"))\n C.pfn_glRasterPos4i = C.PFNGLRASTERPOS4I(loader(\"glRasterPos4i\"))\n C.pfn_glRasterPos4iv = C.PFNGLRASTERPOS4IV(loader(\"glRasterPos4iv\"))\n C.pfn_glRasterPos4s = C.PFNGLRASTERPOS4S(loader(\"glRasterPos4s\"))\n C.pfn_glRasterPos4sv = C.PFNGLRASTERPOS4SV(loader(\"glRasterPos4sv\"))\n C.pfn_glReadBuffer = C.PFNGLREADBUFFER(loader(\"glReadBuffer\"))\n C.pfn_glReadPixels = C.PFNGLREADPIXELS(loader(\"glReadPixels\"))\n C.pfn_glRectd = C.PFNGLRECTD(loader(\"glRectd\"))\n C.pfn_glRectdv = C.PFNGLRECTDV(loader(\"glRectdv\"))\n C.pfn_glRectf = C.PFNGLRECTF(loader(\"glRectf\"))\n C.pfn_glRectfv = C.PFNGLRECTFV(loader(\"glRectfv\"))\n C.pfn_glRecti = C.PFNGLRECTI(loader(\"glRecti\"))\n C.pfn_glRectiv = C.PFNGLRECTIV(loader(\"glRectiv\"))\n C.pfn_glRects = C.PFNGLRECTS(loader(\"glRects\"))\n C.pfn_glRectsv = C.PFNGLRECTSV(loader(\"glRectsv\"))\n C.pfn_glRenderMode = C.PFNGLRENDERMODE(loader(\"glRenderMode\"))\n C.pfn_glRotated = C.PFNGLROTATED(loader(\"glRotated\"))\n C.pfn_glRotatef = C.PFNGLROTATEF(loader(\"glRotatef\"))\n C.pfn_glScaled = C.PFNGLSCALED(loader(\"glScaled\"))\n C.pfn_glScalef = C.PFNGLSCALEF(loader(\"glScalef\"))\n C.pfn_glScissor = C.PFNGLSCISSOR(loader(\"glScissor\"))\n C.pfn_glSelectBuffer = C.PFNGLSELECTBUFFER(loader(\"glSelectBuffer\"))\n C.pfn_glShadeModel = C.PFNGLSHADEMODEL(loader(\"glShadeModel\"))\n C.pfn_glStencilFunc = C.PFNGLSTENCILFUNC(loader(\"glStencilFunc\"))\n C.pfn_glStencilMask = C.PFNGLSTENCILMASK(loader(\"glStencilMask\"))\n C.pfn_glStencilOp = C.PFNGLSTENCILOP(loader(\"glStencilOp\"))\n C.pfn_glTexCoord1d = C.PFNGLTEXCOORD1D(loader(\"glTexCoord1d\"))\n C.pfn_glTexCoord1dv = C.PFNGLTEXCOORD1DV(loader(\"glTexCoord1dv\"))\n C.pfn_glTexCoord1f = C.PFNGLTEXCOORD1F(loader(\"glTexCoord1f\"))\n C.pfn_glTexCoord1fv = C.PFNGLTEXCOORD1FV(loader(\"glTexCoord1fv\"))\n C.pfn_glTexCoord1i = C.PFNGLTEXCOORD1I(loader(\"glTexCoord1i\"))\n C.pfn_glTexCoord1iv = C.PFNGLTEXCOORD1IV(loader(\"glTexCoord1iv\"))\n C.pfn_glTexCoord1s = C.PFNGLTEXCOORD1S(loader(\"glTexCoord1s\"))\n C.pfn_glTexCoord1sv = C.PFNGLTEXCOORD1SV(loader(\"glTexCoord1sv\"))\n C.pfn_glTexCoord2d = C.PFNGLTEXCOORD2D(loader(\"glTexCoord2d\"))\n C.pfn_glTexCoord2dv = C.PFNGLTEXCOORD2DV(loader(\"glTexCoord2dv\"))\n C.pfn_glTexCoord2f = C.PFNGLTEXCOORD2F(loader(\"glTexCoord2f\"))\n C.pfn_glTexCoord2fv = C.PFNGLTEXCOORD2FV(loader(\"glTexCoord2fv\"))\n C.pfn_glTexCoord2i = C.PFNGLTEXCOORD2I(loader(\"glTexCoord2i\"))\n C.pfn_glTexCoord2iv = C.PFNGLTEXCOORD2IV(loader(\"glTexCoord2iv\"))\n C.pfn_glTexCoord2s = C.PFNGLTEXCOORD2S(loader(\"glTexCoord2s\"))\n C.pfn_glTexCoord2sv = C.PFNGLTEXCOORD2SV(loader(\"glTexCoord2sv\"))\n C.pfn_glTexCoord3d = C.PFNGLTEXCOORD3D(loader(\"glTexCoord3d\"))\n C.pfn_glTexCoord3dv = C.PFNGLTEXCOORD3DV(loader(\"glTexCoord3dv\"))\n C.pfn_glTexCoord3f = C.PFNGLTEXCOORD3F(loader(\"glTexCoord3f\"))\n C.pfn_glTexCoord3fv = C.PFNGLTEXCOORD3FV(loader(\"glTexCoord3fv\"))\n C.pfn_glTexCoord3i = C.PFNGLTEXCOORD3I(loader(\"glTexCoord3i\"))\n C.pfn_glTexCoord3iv = C.PFNGLTEXCOORD3IV(loader(\"glTexCoord3iv\"))\n C.pfn_glTexCoord3s = C.PFNGLTEXCOORD3S(loader(\"glTexCoord3s\"))\n C.pfn_glTexCoord3sv = C.PFNGLTEXCOORD3SV(loader(\"glTexCoord3sv\"))\n C.pfn_glTexCoord4d = C.PFNGLTEXCOORD4D(loader(\"glTexCoord4d\"))\n C.pfn_glTexCoord4dv = C.PFNGLTEXCOORD4DV(loader(\"glTexCoord4dv\"))\n C.pfn_glTexCoord4f = C.PFNGLTEXCOORD4F(loader(\"glTexCoord4f\"))\n C.pfn_glTexCoord4fv = C.PFNGLTEXCOORD4FV(loader(\"glTexCoord4fv\"))\n C.pfn_glTexCoord4i = C.PFNGLTEXCOORD4I(loader(\"glTexCoord4i\"))\n C.pfn_glTexCoord4iv = C.PFNGLTEXCOORD4IV(loader(\"glTexCoord4iv\"))\n C.pfn_glTexCoord4s = C.PFNGLTEXCOORD4S(loader(\"glTexCoord4s\"))\n C.pfn_glTexCoord4sv = C.PFNGLTEXCOORD4SV(loader(\"glTexCoord4sv\"))\n C.pfn_glTexEnvf = C.PFNGLTEXENVF(loader(\"glTexEnvf\"))\n C.pfn_glTexEnvfv = C.PFNGLTEXENVFV(loader(\"glTexEnvfv\"))\n C.pfn_glTexEnvi = C.PFNGLTEXENVI(loader(\"glTexEnvi\"))\n C.pfn_glTexEnviv = C.PFNGLTEXENVIV(loader(\"glTexEnviv\"))\n C.pfn_glTexGend = C.PFNGLTEXGEND(loader(\"glTexGend\"))\n C.pfn_glTexGendv = C.PFNGLTEXGENDV(loader(\"glTexGendv\"))\n C.pfn_glTexGenf = C.PFNGLTEXGENF(loader(\"glTexGenf\"))\n C.pfn_glTexGenfv = C.PFNGLTEXGENFV(loader(\"glTexGenfv\"))\n C.pfn_glTexGeni = C.PFNGLTEXGENI(loader(\"glTexGeni\"))\n C.pfn_glTexGeniv = C.PFNGLTEXGENIV(loader(\"glTexGeniv\"))\n C.pfn_glTexImage1D = C.PFNGLTEXIMAGE1D(loader(\"glTexImage1D\"))\n C.pfn_glTexImage2D = C.PFNGLTEXIMAGE2D(loader(\"glTexImage2D\"))\n C.pfn_glTexParameterf = C.PFNGLTEXPARAMETERF(loader(\"glTexParameterf\"))\n C.pfn_glTexParameterfv = C.PFNGLTEXPARAMETERFV(loader(\"glTexParameterfv\"))\n C.pfn_glTexParameteri = C.PFNGLTEXPARAMETERI(loader(\"glTexParameteri\"))\n C.pfn_glTexParameteriv = C.PFNGLTEXPARAMETERIV(loader(\"glTexParameteriv\"))\n C.pfn_glTranslated = C.PFNGLTRANSLATED(loader(\"glTranslated\"))\n C.pfn_glTranslatef = C.PFNGLTRANSLATEF(loader(\"glTranslatef\"))\n C.pfn_glVertex2d = C.PFNGLVERTEX2D(loader(\"glVertex2d\"))\n C.pfn_glVertex2dv = C.PFNGLVERTEX2DV(loader(\"glVertex2dv\"))\n C.pfn_glVertex2f = C.PFNGLVERTEX2F(loader(\"glVertex2f\"))\n C.pfn_glVertex2fv = C.PFNGLVERTEX2FV(loader(\"glVertex2fv\"))\n C.pfn_glVertex2i = C.PFNGLVERTEX2I(loader(\"glVertex2i\"))\n C.pfn_glVertex2iv = C.PFNGLVERTEX2IV(loader(\"glVertex2iv\"))\n C.pfn_glVertex2s = C.PFNGLVERTEX2S(loader(\"glVertex2s\"))\n C.pfn_glVertex2sv = C.PFNGLVERTEX2SV(loader(\"glVertex2sv\"))\n C.pfn_glVertex3d = C.PFNGLVERTEX3D(loader(\"glVertex3d\"))\n C.pfn_glVertex3dv = C.PFNGLVERTEX3DV(loader(\"glVertex3dv\"))\n C.pfn_glVertex3f = C.PFNGLVERTEX3F(loader(\"glVertex3f\"))\n C.pfn_glVertex3fv = C.PFNGLVERTEX3FV(loader(\"glVertex3fv\"))\n C.pfn_glVertex3i = C.PFNGLVERTEX3I(loader(\"glVertex3i\"))\n C.pfn_glVertex3iv = C.PFNGLVERTEX3IV(loader(\"glVertex3iv\"))\n C.pfn_glVertex3s = C.PFNGLVERTEX3S(loader(\"glVertex3s\"))\n C.pfn_glVertex3sv = C.PFNGLVERTEX3SV(loader(\"glVertex3sv\"))\n C.pfn_glVertex4d = C.PFNGLVERTEX4D(loader(\"glVertex4d\"))\n C.pfn_glVertex4dv = C.PFNGLVERTEX4DV(loader(\"glVertex4dv\"))\n C.pfn_glVertex4f = C.PFNGLVERTEX4F(loader(\"glVertex4f\"))\n C.pfn_glVertex4fv = C.PFNGLVERTEX4FV(loader(\"glVertex4fv\"))\n C.pfn_glVertex4i = C.PFNGLVERTEX4I(loader(\"glVertex4i\"))\n C.pfn_glVertex4iv = C.PFNGLVERTEX4IV(loader(\"glVertex4iv\"))\n C.pfn_glVertex4s = C.PFNGLVERTEX4S(loader(\"glVertex4s\"))\n C.pfn_glVertex4sv = C.PFNGLVERTEX4SV(loader(\"glVertex4sv\"))\n C.pfn_glViewport = C.PFNGLVIEWPORT(loader(\"glViewport\"))\n\n // OpenGL 1.1\n if !ver.GE(OpenGL, 1, 1) {\n return\n }\n C.pfn_glAreTexturesResident = C.PFNGLARETEXTURESRESIDENT(loader(\"glAreTexturesResident\"))\n C.pfn_glArrayElement = C.PFNGLARRAYELEMENT(loader(\"glArrayElement\"))\n C.pfn_glBindTexture = C.PFNGLBINDTEXTURE(loader(\"glBindTexture\"))\n C.pfn_glColorPointer = C.PFNGLCOLORPOINTER(loader(\"glColorPointer\"))\n C.pfn_glCopyTexImage1D = C.PFNGLCOPYTEXIMAGE1D(loader(\"glCopyTexImage1D\"))\n C.pfn_glCopyTexImage2D = C.PFNGLCOPYTEXIMAGE2D(loader(\"glCopyTexImage2D\"))\n C.pfn_glCopyTexSubImage1D = C.PFNGLCOPYTEXSUBIMAGE1D(loader(\"glCopyTexSubImage1D\"))\n C.pfn_glCopyTexSubImage2D = C.PFNGLCOPYTEXSUBIMAGE2D(loader(\"glCopyTexSubImage2D\"))\n C.pfn_glDeleteTextures = C.PFNGLDELETETEXTURES(loader(\"glDeleteTextures\"))\n C.pfn_glDisableClientState = C.PFNGLDISABLECLIENTSTATE(loader(\"glDisableClientState\"))\n C.pfn_glDrawArrays = C.PFNGLDRAWARRAYS(loader(\"glDrawArrays\"))\n C.pfn_glDrawElements = C.PFNGLDRAWELEMENTS(loader(\"glDrawElements\"))\n C.pfn_glEdgeFlagPointer = C.PFNGLEDGEFLAGPOINTER(loader(\"glEdgeFlagPointer\"))\n C.pfn_glEnableClientState = C.PFNGLENABLECLIENTSTATE(loader(\"glEnableClientState\"))\n C.pfn_glGenTextures = C.PFNGLGENTEXTURES(loader(\"glGenTextures\"))\n C.pfn_glGetPointerv = C.PFNGLGETPOINTERV(loader(\"glGetPointerv\"))\n C.pfn_glIndexPointer = C.PFNGLINDEXPOINTER(loader(\"glIndexPointer\"))\n C.pfn_glIndexub = C.PFNGLINDEXUB(loader(\"glIndexub\"))\n C.pfn_glIndexubv = C.PFNGLINDEXUBV(loader(\"glIndexubv\"))\n C.pfn_glInterleavedArrays = C.PFNGLINTERLEAVEDARRAYS(loader(\"glInterleavedArrays\"))\n C.pfn_glIsTexture = C.PFNGLISTEXTURE(loader(\"glIsTexture\"))\n C.pfn_glNormalPointer = C.PFNGLNORMALPOINTER(loader(\"glNormalPointer\"))\n C.pfn_glPolygonOffset = C.PFNGLPOLYGONOFFSET(loader(\"glPolygonOffset\"))\n C.pfn_glPopClientAttrib = C.PFNGLPOPCLIENTATTRIB(loader(\"glPopClientAttrib\"))\n C.pfn_glPrioritizeTextures = C.PFNGLPRIORITIZETEXTURES(loader(\"glPrioritizeTextures\"))\n C.pfn_glPushClientAttrib = C.PFNGLPUSHCLIENTATTRIB(loader(\"glPushClientAttrib\"))\n C.pfn_glTexCoordPointer = C.PFNGLTEXCOORDPOINTER(loader(\"glTexCoordPointer\"))\n C.pfn_glTexSubImage1D = C.PFNGLTEXSUBIMAGE1D(loader(\"glTexSubImage1D\"))\n C.pfn_glTexSubImage2D = C.PFNGLTEXSUBIMAGE2D(loader(\"glTexSubImage2D\"))\n C.pfn_glVertexPointer = C.PFNGLVERTEXPOINTER(loader(\"glVertexPointer\"))\n\n // OpenGL 1.2\n if !ver.GE(OpenGL, 1, 2) {\n return\n }\n C.pfn_glCopyTexSubImage3D = C.PFNGLCOPYTEXSUBIMAGE3D(loader(\"glCopyTexSubImage3D\"))\n C.pfn_glDrawRangeElements = C.PFNGLDRAWRANGEELEMENTS(loader(\"glDrawRangeElements\"))\n C.pfn_glTexImage3D = C.PFNGLTEXIMAGE3D(loader(\"glTexImage3D\"))\n C.pfn_glTexSubImage3D = C.PFNGLTEXSUBIMAGE3D(loader(\"glTexSubImage3D\"))\n\n // OpenGL 1.3\n if !ver.GE(OpenGL, 1, 3) {\n return\n }\n C.pfn_glActiveTexture = C.PFNGLACTIVETEXTURE(loader(\"glActiveTexture\"))\n C.pfn_glClientActiveTexture = C.PFNGLCLIENTACTIVETEXTURE(loader(\"glClientActiveTexture\"))\n C.pfn_glCompressedTexImage1D = C.PFNGLCOMPRESSEDTEXIMAGE1D(loader(\"glCompressedTexImage1D\"))\n C.pfn_glCompressedTexImage2D = C.PFNGLCOMPRESSEDTEXIMAGE2D(loader(\"glCompressedTexImage2D\"))\n C.pfn_glCompressedTexImage3D = C.PFNGLCOMPRESSEDTEXIMAGE3D(loader(\"glCompressedTexImage3D\"))\n C.pfn_glCompressedTexSubImage1D = C.PFNGLCOMPRESSEDTEXSUBIMAGE1D(loader(\"glCompressedTexSubImage1D\"))\n C.pfn_glCompressedTexSubImage2D = C.PFNGLCOMPRESSEDTEXSUBIMAGE2D(loader(\"glCompressedTexSubImage2D\"))\n C.pfn_glCompressedTexSubImage3D = C.PFNGLCOMPRESSEDTEXSUBIMAGE3D(loader(\"glCompressedTexSubImage3D\"))\n C.pfn_glGetCompressedTexImage = C.PFNGLGETCOMPRESSEDTEXIMAGE(loader(\"glGetCompressedTexImage\"))\n C.pfn_glLoadTransposeMatrixd = C.PFNGLLOADTRANSPOSEMATRIXD(loader(\"glLoadTransposeMatrixd\"))\n C.pfn_glLoadTransposeMatrixf = C.PFNGLLOADTRANSPOSEMATRIXF(loader(\"glLoadTransposeMatrixf\"))\n C.pfn_glMultTransposeMatrixd = C.PFNGLMULTTRANSPOSEMATRIXD(loader(\"glMultTransposeMatrixd\"))\n C.pfn_glMultTransposeMatrixf = C.PFNGLMULTTRANSPOSEMATRIXF(loader(\"glMultTransposeMatrixf\"))\n C.pfn_glMultiTexCoord1d = C.PFNGLMULTITEXCOORD1D(loader(\"glMultiTexCoord1d\"))\n C.pfn_glMultiTexCoord1dv = C.PFNGLMULTITEXCOORD1DV(loader(\"glMultiTexCoord1dv\"))\n C.pfn_glMultiTexCoord1f = C.PFNGLMULTITEXCOORD1F(loader(\"glMultiTexCoord1f\"))\n C.pfn_glMultiTexCoord1fv = C.PFNGLMULTITEXCOORD1FV(loader(\"glMultiTexCoord1fv\"))\n C.pfn_glMultiTexCoord1i = C.PFNGLMULTITEXCOORD1I(loader(\"glMultiTexCoord1i\"))\n C.pfn_glMultiTexCoord1iv = C.PFNGLMULTITEXCOORD1IV(loader(\"glMultiTexCoord1iv\"))\n C.pfn_glMultiTexCoord1s = C.PFNGLMULTITEXCOORD1S(loader(\"glMultiTexCoord1s\"))\n C.pfn_glMultiTexCoord1sv = C.PFNGLMULTITEXCOORD1SV(loader(\"glMultiTexCoord1sv\"))\n C.pfn_glMultiTexCoord2d = C.PFNGLMULTITEXCOORD2D(loader(\"glMultiTexCoord2d\"))\n C.pfn_glMultiTexCoord2dv = C.PFNGLMULTITEXCOORD2DV(loader(\"glMultiTexCoord2dv\"))\n C.pfn_glMultiTexCoord2f = C.PFNGLMULTITEXCOORD2F(loader(\"glMultiTexCoord2f\"))\n C.pfn_glMultiTexCoord2fv = C.PFNGLMULTITEXCOORD2FV(loader(\"glMultiTexCoord2fv\"))\n C.pfn_glMultiTexCoord2i = C.PFNGLMULTITEXCOORD2I(loader(\"glMultiTexCoord2i\"))\n C.pfn_glMultiTexCoord2iv = C.PFNGLMULTITEXCOORD2IV(loader(\"glMultiTexCoord2iv\"))\n C.pfn_glMultiTexCoord2s = C.PFNGLMULTITEXCOORD2S(loader(\"glMultiTexCoord2s\"))\n C.pfn_glMultiTexCoord2sv = C.PFNGLMULTITEXCOORD2SV(loader(\"glMultiTexCoord2sv\"))\n C.pfn_glMultiTexCoord3d = C.PFNGLMULTITEXCOORD3D(loader(\"glMultiTexCoord3d\"))\n C.pfn_glMultiTexCoord3dv = C.PFNGLMULTITEXCOORD3DV(loader(\"glMultiTexCoord3dv\"))\n C.pfn_glMultiTexCoord3f = C.PFNGLMULTITEXCOORD3F(loader(\"glMultiTexCoord3f\"))\n C.pfn_glMultiTexCoord3fv = C.PFNGLMULTITEXCOORD3FV(loader(\"glMultiTexCoord3fv\"))\n C.pfn_glMultiTexCoord3i = C.PFNGLMULTITEXCOORD3I(loader(\"glMultiTexCoord3i\"))\n C.pfn_glMultiTexCoord3iv = C.PFNGLMULTITEXCOORD3IV(loader(\"glMultiTexCoord3iv\"))\n C.pfn_glMultiTexCoord3s = C.PFNGLMULTITEXCOORD3S(loader(\"glMultiTexCoord3s\"))\n C.pfn_glMultiTexCoord3sv = C.PFNGLMULTITEXCOORD3SV(loader(\"glMultiTexCoord3sv\"))\n C.pfn_glMultiTexCoord4d = C.PFNGLMULTITEXCOORD4D(loader(\"glMultiTexCoord4d\"))\n C.pfn_glMultiTexCoord4dv = C.PFNGLMULTITEXCOORD4DV(loader(\"glMultiTexCoord4dv\"))\n C.pfn_glMultiTexCoord4f = C.PFNGLMULTITEXCOORD4F(loader(\"glMultiTexCoord4f\"))\n C.pfn_glMultiTexCoord4fv = C.PFNGLMULTITEXCOORD4FV(loader(\"glMultiTexCoord4fv\"))\n C.pfn_glMultiTexCoord4i = C.PFNGLMULTITEXCOORD4I(loader(\"glMultiTexCoord4i\"))\n C.pfn_glMultiTexCoord4iv = C.PFNGLMULTITEXCOORD4IV(loader(\"glMultiTexCoord4iv\"))\n C.pfn_glMultiTexCoord4s = C.PFNGLMULTITEXCOORD4S(loader(\"glMultiTexCoord4s\"))\n C.pfn_glMultiTexCoord4sv = C.PFNGLMULTITEXCOORD4SV(loader(\"glMultiTexCoord4sv\"))\n C.pfn_glSampleCoverage = C.PFNGLSAMPLECOVERAGE(loader(\"glSampleCoverage\"))\n\n // OpenGL 1.4\n if !ver.GE(OpenGL, 1, 4) {\n return\n }\n C.pfn_glBlendColor = C.PFNGLBLENDCOLOR(loader(\"glBlendColor\"))\n C.pfn_glBlendEquation = C.PFNGLBLENDEQUATION(loader(\"glBlendEquation\"))\n C.pfn_glBlendFuncSeparate = C.PFNGLBLENDFUNCSEPARATE(loader(\"glBlendFuncSeparate\"))\n C.pfn_glFogCoordPointer = C.PFNGLFOGCOORDPOINTER(loader(\"glFogCoordPointer\"))\n C.pfn_glFogCoordd = C.PFNGLFOGCOORDD(loader(\"glFogCoordd\"))\n C.pfn_glFogCoorddv = C.PFNGLFOGCOORDDV(loader(\"glFogCoorddv\"))\n C.pfn_glFogCoordf = C.PFNGLFOGCOORDF(loader(\"glFogCoordf\"))\n C.pfn_glFogCoordfv = C.PFNGLFOGCOORDFV(loader(\"glFogCoordfv\"))\n C.pfn_glMultiDrawArrays = C.PFNGLMULTIDRAWARRAYS(loader(\"glMultiDrawArrays\"))\n C.pfn_glMultiDrawElements = C.PFNGLMULTIDRAWELEMENTS(loader(\"glMultiDrawElements\"))\n C.pfn_glPointParameterf = C.PFNGLPOINTPARAMETERF(loader(\"glPointParameterf\"))\n C.pfn_glPointParameterfv = C.PFNGLPOINTPARAMETERFV(loader(\"glPointParameterfv\"))\n C.pfn_glPointParameteri = C.PFNGLPOINTPARAMETERI(loader(\"glPointParameteri\"))\n C.pfn_glPointParameteriv = C.PFNGLPOINTPARAMETERIV(loader(\"glPointParameteriv\"))\n C.pfn_glSecondaryColor3b = C.PFNGLSECONDARYCOLOR3B(loader(\"glSecondaryColor3b\"))\n C.pfn_glSecondaryColor3bv = C.PFNGLSECONDARYCOLOR3BV(loader(\"glSecondaryColor3bv\"))\n C.pfn_glSecondaryColor3d = C.PFNGLSECONDARYCOLOR3D(loader(\"glSecondaryColor3d\"))\n C.pfn_glSecondaryColor3dv = C.PFNGLSECONDARYCOLOR3DV(loader(\"glSecondaryColor3dv\"))\n C.pfn_glSecondaryColor3f = C.PFNGLSECONDARYCOLOR3F(loader(\"glSecondaryColor3f\"))\n C.pfn_glSecondaryColor3fv = C.PFNGLSECONDARYCOLOR3FV(loader(\"glSecondaryColor3fv\"))\n C.pfn_glSecondaryColor3i = C.PFNGLSECONDARYCOLOR3I(loader(\"glSecondaryColor3i\"))\n C.pfn_glSecondaryColor3iv = C.PFNGLSECONDARYCOLOR3IV(loader(\"glSecondaryColor3iv\"))\n C.pfn_glSecondaryColor3s = C.PFNGLSECONDARYCOLOR3S(loader(\"glSecondaryColor3s\"))\n C.pfn_glSecondaryColor3sv = C.PFNGLSECONDARYCOLOR3SV(loader(\"glSecondaryColor3sv\"))\n C.pfn_glSecondaryColor3ub = C.PFNGLSECONDARYCOLOR3UB(loader(\"glSecondaryColor3ub\"))\n C.pfn_glSecondaryColor3ubv = C.PFNGLSECONDARYCOLOR3UBV(loader(\"glSecondaryColor3ubv\"))\n C.pfn_glSecondaryColor3ui = C.PFNGLSECONDARYCOLOR3UI(loader(\"glSecondaryColor3ui\"))\n C.pfn_glSecondaryColor3uiv = C.PFNGLSECONDARYCOLOR3UIV(loader(\"glSecondaryColor3uiv\"))\n C.pfn_glSecondaryColor3us = C.PFNGLSECONDARYCOLOR3US(loader(\"glSecondaryColor3us\"))\n C.pfn_glSecondaryColor3usv = C.PFNGLSECONDARYCOLOR3USV(loader(\"glSecondaryColor3usv\"))\n C.pfn_glSecondaryColorPointer = C.PFNGLSECONDARYCOLORPOINTER(loader(\"glSecondaryColorPointer\"))\n C.pfn_glWindowPos2d = C.PFNGLWINDOWPOS2D(loader(\"glWindowPos2d\"))\n C.pfn_glWindowPos2dv = C.PFNGLWINDOWPOS2DV(loader(\"glWindowPos2dv\"))\n C.pfn_glWindowPos2f = C.PFNGLWINDOWPOS2F(loader(\"glWindowPos2f\"))\n C.pfn_glWindowPos2fv = C.PFNGLWINDOWPOS2FV(loader(\"glWindowPos2fv\"))\n C.pfn_glWindowPos2i = C.PFNGLWINDOWPOS2I(loader(\"glWindowPos2i\"))\n C.pfn_glWindowPos2iv = C.PFNGLWINDOWPOS2IV(loader(\"glWindowPos2iv\"))\n C.pfn_glWindowPos2s = C.PFNGLWINDOWPOS2S(loader(\"glWindowPos2s\"))\n C.pfn_glWindowPos2sv = C.PFNGLWINDOWPOS2SV(loader(\"glWindowPos2sv\"))\n C.pfn_glWindowPos3d = C.PFNGLWINDOWPOS3D(loader(\"glWindowPos3d\"))\n C.pfn_glWindowPos3dv = C.PFNGLWINDOWPOS3DV(loader(\"glWindowPos3dv\"))\n C.pfn_glWindowPos3f = C.PFNGLWINDOWPOS3F(loader(\"glWindowPos3f\"))\n C.pfn_glWindowPos3fv = C.PFNGLWINDOWPOS3FV(loader(\"glWindowPos3fv\"))\n C.pfn_glWindowPos3i = C.PFNGLWINDOWPOS3I(loader(\"glWindowPos3i\"))\n C.pfn_glWindowPos3iv = C.PFNGLWINDOWPOS3IV(loader(\"glWindowPos3iv\"))\n C.pfn_glWindowPos3s = C.PFNGLWINDOWPOS3S(loader(\"glWindowPos3s\"))\n C.pfn_glWindowPos3sv = C.PFNGLWINDOWPOS3SV(loader(\"glWindowPos3sv\"))\n\n // OpenGL 1.5\n if !ver.GE(OpenGL, 1, 5) {\n return\n }\n C.pfn_glBeginQuery = C.PFNGLBEGINQUERY(loader(\"glBeginQuery\"))\n C.pfn_glBindBuffer = C.PFNGLBINDBUFFER(loader(\"glBindBuffer\"))\n C.pfn_glBufferData = C.PFNGLBUFFERDATA(loader(\"glBufferData\"))\n C.pfn_glBufferSubData = C.PFNGLBUFFERSUBDATA(loader(\"glBufferSubData\"))\n C.pfn_glDeleteBuffers = C.PFNGLDELETEBUFFERS(loader(\"glDeleteBuffers\"))\n C.pfn_glDeleteQueries = C.PFNGLDELETEQUERIES(loader(\"glDeleteQueries\"))\n C.pfn_glEndQuery = C.PFNGLENDQUERY(loader(\"glEndQuery\"))\n C.pfn_glGenBuffers = C.PFNGLGENBUFFERS(loader(\"glGenBuffers\"))\n C.pfn_glGenQueries = C.PFNGLGENQUERIES(loader(\"glGenQueries\"))\n C.pfn_glGetBufferParameteriv = C.PFNGLGETBUFFERPARAMETERIV(loader(\"glGetBufferParameteriv\"))\n C.pfn_glGetBufferPointerv = C.PFNGLGETBUFFERPOINTERV(loader(\"glGetBufferPointerv\"))\n C.pfn_glGetBufferSubData = C.PFNGLGETBUFFERSUBDATA(loader(\"glGetBufferSubData\"))\n C.pfn_glGetQueryObjectiv = C.PFNGLGETQUERYOBJECTIV(loader(\"glGetQueryObjectiv\"))\n C.pfn_glGetQueryObjectuiv = C.PFNGLGETQUERYOBJECTUIV(loader(\"glGetQueryObjectuiv\"))\n C.pfn_glGetQueryiv = C.PFNGLGETQUERYIV(loader(\"glGetQueryiv\"))\n C.pfn_glIsBuffer = C.PFNGLISBUFFER(loader(\"glIsBuffer\"))\n C.pfn_glIsQuery = C.PFNGLISQUERY(loader(\"glIsQuery\"))\n C.pfn_glMapBuffer = C.PFNGLMAPBUFFER(loader(\"glMapBuffer\"))\n C.pfn_glUnmapBuffer = C.PFNGLUNMAPBUFFER(loader(\"glUnmapBuffer\"))\n\n // OpenGL 2.0\n if !ver.GE(OpenGL, 2, 0) {\n return\n }\n C.pfn_glAttachShader = C.PFNGLATTACHSHADER(loader(\"glAttachShader\"))\n C.pfn_glBindAttribLocation = C.PFNGLBINDATTRIBLOCATION(loader(\"glBindAttribLocation\"))\n C.pfn_glBlendEquationSeparate = C.PFNGLBLENDEQUATIONSEPARATE(loader(\"glBlendEquationSeparate\"))\n C.pfn_glCompileShader = C.PFNGLCOMPILESHADER(loader(\"glCompileShader\"))\n C.pfn_glCreateProgram = C.PFNGLCREATEPROGRAM(loader(\"glCreateProgram\"))\n C.pfn_glCreateShader = C.PFNGLCREATESHADER(loader(\"glCreateShader\"))\n C.pfn_glDeleteProgram = C.PFNGLDELETEPROGRAM(loader(\"glDeleteProgram\"))\n C.pfn_glDeleteShader = C.PFNGLDELETESHADER(loader(\"glDeleteShader\"))\n C.pfn_glDetachShader = C.PFNGLDETACHSHADER(loader(\"glDetachShader\"))\n C.pfn_glDisableVertexAttribArray = C.PFNGLDISABLEVERTEXATTRIBARRAY(loader(\"glDisableVertexAttribArray\"))\n C.pfn_glDrawBuffers = C.PFNGLDRAWBUFFERS(loader(\"glDrawBuffers\"))\n C.pfn_glEnableVertexAttribArray = C.PFNGLENABLEVERTEXATTRIBARRAY(loader(\"glEnableVertexAttribArray\"))\n C.pfn_glGetActiveAttrib = C.PFNGLGETACTIVEATTRIB(loader(\"glGetActiveAttrib\"))\n C.pfn_glGetActiveUniform = C.PFNGLGETACTIVEUNIFORM(loader(\"glGetActiveUniform\"))\n C.pfn_glGetAttachedShaders = C.PFNGLGETATTACHEDSHADERS(loader(\"glGetAttachedShaders\"))\n C.pfn_glGetAttribLocation = C.PFNGLGETATTRIBLOCATION(loader(\"glGetAttribLocation\"))\n C.pfn_glGetProgramInfoLog = C.PFNGLGETPROGRAMINFOLOG(loader(\"glGetProgramInfoLog\"))\n C.pfn_glGetProgramiv = C.PFNGLGETPROGRAMIV(loader(\"glGetProgramiv\"))\n C.pfn_glGetShaderInfoLog = C.PFNGLGETSHADERINFOLOG(loader(\"glGetShaderInfoLog\"))\n C.pfn_glGetShaderSource = C.PFNGLGETSHADERSOURCE(loader(\"glGetShaderSource\"))\n C.pfn_glGetShaderiv = C.PFNGLGETSHADERIV(loader(\"glGetShaderiv\"))\n C.pfn_glGetUniformLocation = C.PFNGLGETUNIFORMLOCATION(loader(\"glGetUniformLocation\"))\n C.pfn_glGetUniformfv = C.PFNGLGETUNIFORMFV(loader(\"glGetUniformfv\"))\n C.pfn_glGetUniformiv = C.PFNGLGETUNIFORMIV(loader(\"glGetUniformiv\"))\n C.pfn_glGetVertexAttribPointerv = C.PFNGLGETVERTEXATTRIBPOINTERV(loader(\"glGetVertexAttribPointerv\"))\n C.pfn_glGetVertexAttribdv = C.PFNGLGETVERTEXATTRIBDV(loader(\"glGetVertexAttribdv\"))\n C.pfn_glGetVertexAttribfv = C.PFNGLGETVERTEXATTRIBFV(loader(\"glGetVertexAttribfv\"))\n C.pfn_glGetVertexAttribiv = C.PFNGLGETVERTEXATTRIBIV(loader(\"glGetVertexAttribiv\"))\n C.pfn_glIsProgram = C.PFNGLISPROGRAM(loader(\"glIsProgram\"))\n C.pfn_glIsShader = C.PFNGLISSHADER(loader(\"glIsShader\"))\n C.pfn_glLinkProgram = C.PFNGLLINKPROGRAM(loader(\"glLinkProgram\"))\n C.pfn_glShaderSource = C.PFNGLSHADERSOURCE(loader(\"glShaderSource\"))\n C.pfn_glStencilFuncSeparate = C.PFNGLSTENCILFUNCSEPARATE(loader(\"glStencilFuncSeparate\"))\n C.pfn_glStencilMaskSeparate = C.PFNGLSTENCILMASKSEPARATE(loader(\"glStencilMaskSeparate\"))\n C.pfn_glStencilOpSeparate = C.PFNGLSTENCILOPSEPARATE(loader(\"glStencilOpSeparate\"))\n C.pfn_glUniform1f = C.PFNGLUNIFORM1F(loader(\"glUniform1f\"))\n C.pfn_glUniform1fv = C.PFNGLUNIFORM1FV(loader(\"glUniform1fv\"))\n C.pfn_glUniform1i = C.PFNGLUNIFORM1I(loader(\"glUniform1i\"))\n C.pfn_glUniform1iv = C.PFNGLUNIFORM1IV(loader(\"glUniform1iv\"))\n C.pfn_glUniform2f = C.PFNGLUNIFORM2F(loader(\"glUniform2f\"))\n C.pfn_glUniform2fv = C.PFNGLUNIFORM2FV(loader(\"glUniform2fv\"))\n C.pfn_glUniform2i = C.PFNGLUNIFORM2I(loader(\"glUniform2i\"))\n C.pfn_glUniform2iv = C.PFNGLUNIFORM2IV(loader(\"glUniform2iv\"))\n C.pfn_glUniform3f = C.PFNGLUNIFORM3F(loader(\"glUniform3f\"))\n C.pfn_glUniform3fv = C.PFNGLUNIFORM3FV(loader(\"glUniform3fv\"))\n C.pfn_glUniform3i = C.PFNGLUNIFORM3I(loader(\"glUniform3i\"))\n C.pfn_glUniform3iv = C.PFNGLUNIFORM3IV(loader(\"glUniform3iv\"))\n C.pfn_glUniform4f = C.PFNGLUNIFORM4F(loader(\"glUniform4f\"))\n C.pfn_glUniform4fv = C.PFNGLUNIFORM4FV(loader(\"glUniform4fv\"))\n C.pfn_glUniform4i = C.PFNGLUNIFORM4I(loader(\"glUniform4i\"))\n C.pfn_glUniform4iv = C.PFNGLUNIFORM4IV(loader(\"glUniform4iv\"))\n C.pfn_glUniformMatrix2fv = C.PFNGLUNIFORMMATRIX2FV(loader(\"glUniformMatrix2fv\"))\n C.pfn_glUniformMatrix3fv = C.PFNGLUNIFORMMATRIX3FV(loader(\"glUniformMatrix3fv\"))\n C.pfn_glUniformMatrix4fv = C.PFNGLUNIFORMMATRIX4FV(loader(\"glUniformMatrix4fv\"))\n C.pfn_glUseProgram = C.PFNGLUSEPROGRAM(loader(\"glUseProgram\"))\n C.pfn_glValidateProgram = C.PFNGLVALIDATEPROGRAM(loader(\"glValidateProgram\"))\n C.pfn_glVertexAttrib1d = C.PFNGLVERTEXATTRIB1D(loader(\"glVertexAttrib1d\"))\n C.pfn_glVertexAttrib1dv = C.PFNGLVERTEXATTRIB1DV(loader(\"glVertexAttrib1dv\"))\n C.pfn_glVertexAttrib1f = C.PFNGLVERTEXATTRIB1F(loader(\"glVertexAttrib1f\"))\n C.pfn_glVertexAttrib1fv = C.PFNGLVERTEXATTRIB1FV(loader(\"glVertexAttrib1fv\"))\n C.pfn_glVertexAttrib1s = C.PFNGLVERTEXATTRIB1S(loader(\"glVertexAttrib1s\"))\n C.pfn_glVertexAttrib1sv = C.PFNGLVERTEXATTRIB1SV(loader(\"glVertexAttrib1sv\"))\n C.pfn_glVertexAttrib2d = C.PFNGLVERTEXATTRIB2D(loader(\"glVertexAttrib2d\"))\n C.pfn_glVertexAttrib2dv = C.PFNGLVERTEXATTRIB2DV(loader(\"glVertexAttrib2dv\"))\n C.pfn_glVertexAttrib2f = C.PFNGLVERTEXATTRIB2F(loader(\"glVertexAttrib2f\"))\n C.pfn_glVertexAttrib2fv = C.PFNGLVERTEXATTRIB2FV(loader(\"glVertexAttrib2fv\"))\n C.pfn_glVertexAttrib2s = C.PFNGLVERTEXATTRIB2S(loader(\"glVertexAttrib2s\"))\n C.pfn_glVertexAttrib2sv = C.PFNGLVERTEXATTRIB2SV(loader(\"glVertexAttrib2sv\"))\n C.pfn_glVertexAttrib3d = C.PFNGLVERTEXATTRIB3D(loader(\"glVertexAttrib3d\"))\n C.pfn_glVertexAttrib3dv = C.PFNGLVERTEXATTRIB3DV(loader(\"glVertexAttrib3dv\"))\n C.pfn_glVertexAttrib3f = C.PFNGLVERTEXATTRIB3F(loader(\"glVertexAttrib3f\"))\n C.pfn_glVertexAttrib3fv = C.PFNGLVERTEXATTRIB3FV(loader(\"glVertexAttrib3fv\"))\n C.pfn_glVertexAttrib3s = C.PFNGLVERTEXATTRIB3S(loader(\"glVertexAttrib3s\"))\n C.pfn_glVertexAttrib3sv = C.PFNGLVERTEXATTRIB3SV(loader(\"glVertexAttrib3sv\"))\n C.pfn_glVertexAttrib4Nbv = C.PFNGLVERTEXATTRIB4NBV(loader(\"glVertexAttrib4Nbv\"))\n C.pfn_glVertexAttrib4Niv = C.PFNGLVERTEXATTRIB4NIV(loader(\"glVertexAttrib4Niv\"))\n C.pfn_glVertexAttrib4Nsv = C.PFNGLVERTEXATTRIB4NSV(loader(\"glVertexAttrib4Nsv\"))\n C.pfn_glVertexAttrib4Nub = C.PFNGLVERTEXATTRIB4NUB(loader(\"glVertexAttrib4Nub\"))\n C.pfn_glVertexAttrib4Nubv = C.PFNGLVERTEXATTRIB4NUBV(loader(\"glVertexAttrib4Nubv\"))\n C.pfn_glVertexAttrib4Nuiv = C.PFNGLVERTEXATTRIB4NUIV(loader(\"glVertexAttrib4Nuiv\"))\n C.pfn_glVertexAttrib4Nusv = C.PFNGLVERTEXATTRIB4NUSV(loader(\"glVertexAttrib4Nusv\"))\n C.pfn_glVertexAttrib4bv = C.PFNGLVERTEXATTRIB4BV(loader(\"glVertexAttrib4bv\"))\n C.pfn_glVertexAttrib4d = C.PFNGLVERTEXATTRIB4D(loader(\"glVertexAttrib4d\"))\n C.pfn_glVertexAttrib4dv = C.PFNGLVERTEXATTRIB4DV(loader(\"glVertexAttrib4dv\"))\n C.pfn_glVertexAttrib4f = C.PFNGLVERTEXATTRIB4F(loader(\"glVertexAttrib4f\"))\n C.pfn_glVertexAttrib4fv = C.PFNGLVERTEXATTRIB4FV(loader(\"glVertexAttrib4fv\"))\n C.pfn_glVertexAttrib4iv = C.PFNGLVERTEXATTRIB4IV(loader(\"glVertexAttrib4iv\"))\n C.pfn_glVertexAttrib4s = C.PFNGLVERTEXATTRIB4S(loader(\"glVertexAttrib4s\"))\n C.pfn_glVertexAttrib4sv = C.PFNGLVERTEXATTRIB4SV(loader(\"glVertexAttrib4sv\"))\n C.pfn_glVertexAttrib4ubv = C.PFNGLVERTEXATTRIB4UBV(loader(\"glVertexAttrib4ubv\"))\n C.pfn_glVertexAttrib4uiv = C.PFNGLVERTEXATTRIB4UIV(loader(\"glVertexAttrib4uiv\"))\n C.pfn_glVertexAttrib4usv = C.PFNGLVERTEXATTRIB4USV(loader(\"glVertexAttrib4usv\"))\n C.pfn_glVertexAttribPointer = C.PFNGLVERTEXATTRIBPOINTER(loader(\"glVertexAttribPointer\"))\n\n // OpenGL 2.1\n if !ver.GE(OpenGL, 2, 1) {\n return\n }\n C.pfn_glUniformMatrix2x3fv = C.PFNGLUNIFORMMATRIX2X3FV(loader(\"glUniformMatrix2x3fv\"))\n C.pfn_glUniformMatrix2x4fv = C.PFNGLUNIFORMMATRIX2X4FV(loader(\"glUniformMatrix2x4fv\"))\n C.pfn_glUniformMatrix3x2fv = C.PFNGLUNIFORMMATRIX3X2FV(loader(\"glUniformMatrix3x2fv\"))\n C.pfn_glUniformMatrix3x4fv = C.PFNGLUNIFORMMATRIX3X4FV(loader(\"glUniformMatrix3x4fv\"))\n C.pfn_glUniformMatrix4x2fv = C.PFNGLUNIFORMMATRIX4X2FV(loader(\"glUniformMatrix4x2fv\"))\n C.pfn_glUniformMatrix4x3fv = C.PFNGLUNIFORMMATRIX4X3FV(loader(\"glUniformMatrix4x3fv\"))\n}", "func WaitSync(sync uintptr, flags uint32, timeout uint64) {\n\tC.glowWaitSync(gpWaitSync, (C.GLsync)(sync), (C.GLbitfield)(flags), (C.GLuint64)(timeout))\n}", "func WaitSync(sync uintptr, flags uint32, timeout uint64) {\n\tC.glowWaitSync(gpWaitSync, (C.GLsync)(sync), (C.GLbitfield)(flags), (C.GLuint64)(timeout))\n}", "func (s *Store) WaitForInit() {\n\ts.initComplete.Wait()\n}", "func (gs *GameState) waitForPlayers() {\n\t// add any players who were not playing in the last round to the game\n\tfor _, c := range gs.clients {\n\t\tif !c.isPlaying {\n\t\t\tc.isPlaying = true\n\t\t\tgs.mx.Lock()\n\t\t\tgs.playerCount++\n\t\t\tgs.mx.Unlock()\n\t\t}\n\t}\n\tif gs.playerCount >= minplayers {\n\t\treturn\n\t}\n\t// using a select loop because it blocks the current routine\n\t// this avoids 100% cpu consumtion from a for {}\n\tselect {\n\tcase <-gs.start:\n\t\treturn\n\t}\n}", "func ClientWaitSync(sync unsafe.Pointer, flags uint32, timeout uint64) uint32 {\n ret := C.glowClientWaitSync(gpClientWaitSync, (C.GLsync)(sync), (C.GLbitfield)(flags), (C.GLuint64)(timeout))\n return (uint32)(ret)\n}", "func main() {\n\tpixelgl.Run(run)\n}", "func main() {\n\tpixelgl.Run(run)\n}", "func (chanSync *channelRelaySync) WaitOnLegComplete() {\n\tdefer chanSync.shared.legComplete.Wait()\n}", "func (c *thickClient) Run() {\n\tpixelgl.Run(c.run)\n}", "func WaitScatterRegionFinish(ctx context.Context, store kv.SplittableStore, regionIDs ...uint64) {\n\tfor _, regionID := range regionIDs {\n\t\terr := store.WaitScatterRegionFinish(ctx, regionID, 0)\n\t\tif err != nil {\n\t\t\tlogutil.BgLogger().Warn(\"wait scatter region failed\", zap.String(\"category\", \"ddl\"), zap.Uint64(\"regionID\", regionID), zap.Error(err))\n\t\t\t// We don't break for PDError because it may caused by ScatterRegion request failed.\n\t\t\tif _, ok := errors.Cause(err).(*tikverr.PDError); !ok {\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n}", "func run() {\n\tcfg := pixelgl.WindowConfig{\n\t\tTitle: \"Giri's Gravity Simulations!\",\n\t\tBounds: pixel.R(0, 0, winHeight, winWidth),\n\t\t//VSync: true,\n\t}\n\n\twin, err := pixelgl.NewWindow(cfg)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\twin.SetSmooth(true)\n\tpic, err := loadPicture(\"hiking.png\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tvar bodyFrames [N]*pixel.Sprite\n\tfor i:=0;i<N;i++{\n\t\tbodyFrames[i] = pixel.NewSprite(pic, pic.Bounds())\n\t}\n\n\t// Camera Setup\n\tvar(\n\t\tcamPos = Vector{0,0}\n\t\tcamSpeed float64 = 600\n\t\tcamZoomSpeed = 1.2\n\t\tcamZoom = 1.0\n\t)\n\n\t// Body Initialisation\n\tvar Bodies [N]Body\n\n\tBodies[0] = Body{40, Vector{rand.Float64()*metric-metric/2, rand.Float64()*metric-metric/2}, Vector{rand.Float64()*2,rand.Float64()*2}, Vector{0,0}, 0}\n\tBodies[1] = Body{40, Vector{rand.Float64()*metric-metric/2, rand.Float64()*metric-metric/2}, Vector{rand.Float64()*2,rand.Float64()*2}, Vector{0,0}, 0}\n\tBodies[2] = Body{10, Vector{rand.Float64()*metric-metric/2, rand.Float64()*metric-metric/2}, Vector{rand.Float64()*2,rand.Float64()*2}, Vector{0,0}, 1.0}\n\tfmt.Println(Bodies[0].pos, Bodies[1].pos, Bodies[2].pos,)\n\n\t// Fps Setup\n\tvar (\n\t\tframes = 0\n\t\tsecond = time.Tick(time.Second)\n\t)\n\n\t// Computing of Trajectories\n\tlast := time.Now()\n\tfor !win.Closed() {\n\t\twin.Clear(colornames.Midnightblue)\n\n\t\tdt := time.Since(last).Seconds()\n\t\tlast = time.Now()\n\n\t\t// Keypress Activities\n\t\tif win.Pressed(pixelgl.KeyLeft) {\n\t\t\tcamPos.x += camSpeed * dt\n\t\t}\n\t\tif win.Pressed(pixelgl.KeyRight) {\n\t\t\tcamPos.x -= camSpeed * dt\n\t\t}\n\t\tif win.Pressed(pixelgl.KeyUp) {\n\t\t\tcamPos.y -= camSpeed * dt\n\t\t}\n\t\tif win.Pressed(pixelgl.KeyDown) {\n\t\t\tcamPos.y += camSpeed * dt\n\t\t}\n\t\tcamZoom *= math.Pow(camZoomSpeed, win.MouseScroll().Y)\n\n\t\t// Computation of Trajectories\n\t\tfor i:=0;i<N;i++{\n\t\t\tBodies[i].acc = Bodies[i].getGravity(Bodies)\n\t\t}\n\t\tfor i:=0;i<N;i++{\n\t\t\tBodies[i].vel = Bodies[i].getVel()\n\t\t\tBodies[i].pos = Bodies[i].getPos()\n\t\t\tvar x, y = Bodies[i].pos.x+winWidth/2, Bodies[i].pos.y+winHeight/2\n\t\t\tmat := pixel.IM\n\t\t\tmat = mat.Moved(pixel.V(x,y)).Scaled(pixel.V(x,y),zoom).Scaled(pixel.V(x,y),Bodies[i].mass/5).Moved(pixel.V(camPos.x,camPos.y)).Scaled(pixel.V(winWidth/2,winHeight/2),camZoom)\n\t\t\tbodyFrames[i].Draw(win, mat)\n\t\t}\n\t\twin.Update()\n\t\tframes++\n\t\tselect {\n\t\tcase <-second:\n\t\t\twin.SetTitle(fmt.Sprintf(\"%s | FPS: %d\", cfg.Title, frames))\n\t\t\tframes = 0\n\t\tdefault:\n\t\t}\n\t}\n}", "func Loop(args []string, onReady func(*App)) error {\n\tlog.Println(\"=== gallium.Loop ===\")\n\tcerr := newCerr()\n\tdefer cerr.free()\n\n\tapp := App{\n\t\tready: make(chan struct{}),\n\t}\n\n\tgo func() {\n\t\tselect {\n\t\tcase <-app.ready:\n\t\t\tonReady(&app)\n\t\tcase <-time.After(3 * time.Second):\n\t\t\tlog.Fatal(\"Waited for 3 seconds without ready signal\")\n\t\t}\n\t}()\n\n\tappId := apps.add(&app)\n\tC.helper_GalliumLoop(C.int(appId), C.CString(args[0]), &cerr.c)\n\treturn cerr.err()\n}", "func (s *System) Wait() {\n\tif !s.spawning {\n\t\tpanic(\"spawner is asleep, call RunSpawner to wake him up\")\n\t}\n\t<-s.spawner.out\n\ts.allocate() // so we can draw meanwhile spawning particles\n\ts.spawning = false\n}", "func (s *TupleIncrementalEmitterSource) WaitForEmission() {\n\ts.m.Lock()\n\tdefer s.m.Unlock()\n\tfor s.cnt > 0 {\n\t\ts.state.cond.Wait()\n\t}\n}", "func gfxLoop(w window.Window, r gfx.Renderer) {\n\tfor {\n\t\t// Clear the entire area (empty rectangle means \"the whole area\").\n\t\tr.Clear(image.Rect(0, 0, 0, 0), gfx.Color{1, 1, 1, 1})\n\n\t\t// Clear a few rectangles on the window using different background\n\t\t// colors.\n\t\tr.Clear(image.Rect(0, 50, 800, 400), gfx.Color{0, 1, 0, 1})\n\t\tr.Clear(image.Rect(50, 50, 750, 400), gfx.Color{1, 0, 0, 1})\n\t\tr.Clear(image.Rect(50, 100, 750, 350), gfx.Color{0, 0.5, 0.5, 1})\n\t\tr.Clear(image.Rect(100, 150, 700, 300), gfx.Color{1, 1, 0, 1})\n\n\t\t// Render the whole frame.\n\t\tr.Render()\n\t}\n}", "func initOpenGL() (uint32, uint32) {\n\tif err := gl.Init(); err != nil {\n\t\tpanic(err)\n\t}\n\tversion := gl.GoStr(gl.GetString(gl.VERSION))\n\tlog.Println(\"OpenGL version\", version)\n\n\tgl.Enable(gl.CULL_FACE)\n\tgl.CullFace(gl.BACK)\n\tgl.FrontFace(gl.CW)\n\n\tvar reactProg, landProg uint32\n\treactProg, landProg = setupShaders()\n\n\t//---------------------------\n\n\tgl.GenVertexArrays(1, &VAO)\n\tgl.GenBuffers(1, &VBO)\n\tgl.GenBuffers(1, &EBO)\n\n\tgl.BindVertexArray(VAO)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, VBO)\n\tgl.BufferData(gl.ARRAY_BUFFER, 4*len(vertices), gl.Ptr(vertices), gl.STATIC_DRAW)\n\tgl.BindBuffer(gl.ELEMENT_ARRAY_BUFFER, EBO)\n\tgl.BufferData(gl.ELEMENT_ARRAY_BUFFER, 4*len(indices), gl.Ptr(indices), gl.STATIC_DRAW)\n\n\t// position attribute\n\tvar vOffset int = 0\n\tgl.EnableVertexAttribArray(0)\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(vOffset))\n\t// color attribute\n\tvar cOffset int = 3 * 4\n\tgl.EnableVertexAttribArray(1)\n\tgl.VertexAttribPointer(1, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(cOffset))\n\t// texture coord attribute\n\tvar tOffset int = 6 * 4\n\tgl.EnableVertexAttribArray(2)\n\tgl.VertexAttribPointer(2, 2, gl.FLOAT, false, 8*4, gl.PtrOffset(tOffset))\n\n\tgl.BindVertexArray(0) // Unbind\n\n\tgl.GenVertexArrays(1, &sqVAO)\n\tgl.GenBuffers(1, &sqVBO)\n\tgl.GenBuffers(1, &sqEBO)\n\n\tgl.BindVertexArray(sqVAO)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, sqVBO)\n\tgl.BufferData(gl.ARRAY_BUFFER, 4*len(vertices2), gl.Ptr(vertices2), gl.STATIC_DRAW)\n\tgl.BindBuffer(gl.ELEMENT_ARRAY_BUFFER, sqEBO)\n\tgl.BufferData(gl.ELEMENT_ARRAY_BUFFER, 4*len(indices2), gl.Ptr(indices2), gl.STATIC_DRAW)\n\n\t// position attribute\n\tvOffset = 0\n\tgl.EnableVertexAttribArray(0)\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(vOffset))\n\t// color attribute\n\tcOffset = 3 * 4\n\tgl.EnableVertexAttribArray(1)\n\tgl.VertexAttribPointer(1, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(cOffset))\n\t// texture coord attribute\n\ttOffset = 6 * 4\n\tgl.EnableVertexAttribArray(2)\n\tgl.VertexAttribPointer(2, 2, gl.FLOAT, false, 8*4, gl.PtrOffset(tOffset))\n\n\tgl.BindVertexArray(0) // Unbind\n\n\t// Both FBO created here\n\tcreateFrameBuffers()\n\tif CheckGLErrors() {\n\t\tInfo.Println(\"InitGL Problems\")\n\t}\n\n\t// -==- Texture data -==-\n\tgl.GenTextures(1, &initTexture)\n\tgl.BindTexture(gl.TEXTURE_2D, initTexture)\n\t// set the texture wrapping/filtering options (on the currently bound texture object)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.REPEAT)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.REPEAT)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST)\n\n\tloadImage(1, data)\n\tgl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, cols, rows, 0, gl.RGBA, gl.UNSIGNED_BYTE, gl.Ptr(data))\n\tgl.GenerateMipmap(gl.TEXTURE_2D)\n\n\tif CheckGLErrors() {\n\t\tInfo.Println(\"InitGL Problems\")\n\t}\n\n\treturn reactProg, landProg\n}", "func (s *SplitStore) waitForSync() {\n\tif atomic.LoadInt32(&s.outOfSync) == 0 {\n\t\treturn\n\t}\n\ts.chainSyncMx.Lock()\n\tdefer s.chainSyncMx.Unlock()\n\n\tfor !s.chainSyncFinished {\n\t\ts.chainSyncCond.Wait()\n\t}\n}", "func Wait() {\n\twg.Wait()\n}", "func draw(window *glfw.Window, reactProg, landProg uint32) {\n\n\tvar renderLoops = 4\n\tfor i := 0; i < renderLoops; i++ {\n\t\t// -- DRAW TO BUFFER --\n\t\t// define destination of pixels\n\t\t//gl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\t\tgl.BindFramebuffer(gl.FRAMEBUFFER, FBO[1])\n\n\t\tgl.Viewport(0, 0, width, height) // Retina display doubles the framebuffer !?!\n\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\t\tgl.UseProgram(reactProg)\n\n\t\t// bind Texture\n\t\tgl.ActiveTexture(gl.TEXTURE0)\n\t\tgl.BindTexture(gl.TEXTURE_2D, renderedTexture)\n\t\tgl.Uniform1i(uniTex, 0)\n\n\t\tgl.BindVertexArray(VAO)\n\t\tgl.DrawElements(gl.TRIANGLE_STRIP, int32(len(indices)), gl.UNSIGNED_INT, nil)\n\n\t\tgl.BindVertexArray(0)\n\n\t\t// -- copy back textures --\n\t\tgl.BindFramebuffer(gl.READ_FRAMEBUFFER, FBO[1]) // source is high res array\n\t\tgl.ReadBuffer(gl.COLOR_ATTACHMENT0)\n\t\tgl.BindFramebuffer(gl.DRAW_FRAMEBUFFER, FBO[0]) // destination is cells array\n\t\tgl.DrawBuffer(gl.COLOR_ATTACHMENT0)\n\t\tgl.BlitFramebuffer(0, 0, width, height,\n\t\t\t0, 0, cols, rows,\n\t\t\tgl.COLOR_BUFFER_BIT, gl.NEAREST) // downsample\n\t\tgl.BindFramebuffer(gl.READ_FRAMEBUFFER, FBO[0]) // source is low res array - put in texture\n\t\t// read pixels saves data read as unsigned bytes and then loads them in TexImage same way\n\t\tgl.ReadPixels(0, 0, cols, rows, gl.RGBA, gl.FLOAT, gl.Ptr(fData))\n\t\tgl.BindTexture(gl.TEXTURE_2D, renderedTexture)\n\t\tgl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, cols, rows, 0, gl.RGBA, gl.FLOAT, gl.Ptr(fData))\n\t\tCheckGLErrors()\n\t}\n\t// -- DRAW TO SCREEN --\n\tvar model glm.Mat4\n\n\t// destination 0 means screen\n\tgl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\tgl.Viewport(0, 0, width*2, height*2) // Retina display doubles the framebuffer !?!\n\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\tgl.UseProgram(landProg)\n\t// bind Texture\n\tgl.ActiveTexture(gl.TEXTURE0)\n\tgl.BindTexture(gl.TEXTURE_2D, drawTexture)\n\n\tvar view glm.Mat4\n\tvar brakeFactor = float64(20000.0)\n\tvar xCoord, yCoord float32\n\txCoord = float32(-3.0 * math.Sin(float64(myClock)))\n\tyCoord = float32(-3.0 * math.Cos(float64(myClock)))\n\t//xCoord = 0.0\n\t//yCoord = float32(-2.5)\n\tmyClock = math.Mod((myClock + float64(deltaTime)/brakeFactor), (math.Pi * 2))\n\tview = glm.LookAt(xCoord, yCoord, 2.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0)\n\tgl.UniformMatrix4fv(uniView, 1, false, &view[0])\n\tmodel = glm.HomogRotate3DX(glm.DegToRad(00.0))\n\tgl.UniformMatrix4fv(uniModel, 1, false, &model[0])\n\tgl.Uniform1i(uniTex2, 0)\n\n\t// render container\n\t//gl.PolygonMode(gl.FRONT_AND_BACK, gl.FILL)\n\t//gl.PolygonMode(gl.FRONT_AND_BACK, gl.LINE)\n\n\tgl.BindVertexArray(VAO)\n\tgl.DrawElements(gl.TRIANGLE_STRIP, int32(len(indices)), gl.UNSIGNED_INT, nil)\n\tgl.BindVertexArray(0)\n\n\tCheckGLErrors()\n\n\tglfw.PollEvents()\n\twindow.SwapBuffers()\n\n\t//time.Sleep(100 * 1000 * 1000)\n}", "func (b *Bot) WaitUntilCompletion() {\n\tb.server.Wait()\n}", "func (w *windowImpl) winLoop() {\nouter:\n\tfor {\n\t\tselect {\n\t\tcase <-w.winClose:\n\t\t\tbreak outer\n\t\tcase f := <-w.runQueue:\n\t\t\tif w.glw == nil {\n\t\t\t\tbreak outer\n\t\t\t}\n\t\t\tf.f()\n\t\t\tif f.done != nil {\n\t\t\t\tf.done <- true\n\t\t\t}\n\t\tcase <-w.publish:\n\t\t\tif w.glw == nil {\n\t\t\t\tbreak outer\n\t\t\t}\n\t\t\tif !theApp.noScreens {\n\t\t\t\ttheApp.RunOnMain(func() {\n\t\t\t\t\tif !w.Activate() {\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\t\t\t\t\tw.glw.SwapBuffers() // note: implicitly does a flush\n\t\t\t\t\t// note: generally don't need this:\n\t\t\t\t\t// gpu.Draw.Clear(true, true)\n\t\t\t\t})\n\t\t\t\tw.publishDone <- struct{}{}\n\t\t\t}\n\t\t}\n\t}\n}", "func Wait() {\n\t<-wait\n}", "func displayRoutine () {\n for range displayChan {\n displayMaze()\n }\n}", "func (w *Worker) WaitForFinish() {\n\t<-w.done\n}", "func (manager *Manager) Wait() {\n\tlogger.FromCtx(manager.ctx, logger.Flow).WithField(\"flow\", manager.Name).Info(\"Awaiting till all processes are completed\")\n\tmanager.wg.Wait()\n}", "func renderLoop(ch <-chan request, m *govecamole.VecMap) {\n\t// see note in startRenderer about this.\n\tdefer m.Close()\n\n\tfor req := range ch {\n\t\tvar r response\n\t\tr.tile, r.err = renderTile(req.z, req.x, req.y, m)\n\t\treq.reply<- r\n\t}\n}", "func (dv *DomVisit) WaitLoad() {\n\tdv.wg.Wait()\n}", "func main() {\n\t// We have more than 1 CPU, so let's use them\n\truntime.GOMAXPROCS(runtime.NumCPU())\n\ti := true\n\tvar prev, current pudding\n\tgo gl43.Init()\n\t//go gles2.Init()\n\tgo xfixes.Init(prev.dpy)\n\tgo composite.Init(prev.dpy)\n\tgo shape.Init(prev.dpy)\n\tgo egl.BindAPI(egl.OPENGL_API)\n\tfor i {\n\t\t// get ingredients for pudding\n\t\tcurrent = pudding_init(&prev)\n\t\t// panic if we're out of eggs\n\t\tif !current.created {\n\t\t\tpanic(\"error on custard initialization\")\n\t\t}\n\t\tpudding_stir(&current)\n\t\t// if we get tired of stirring, go back to initial setup and go again\n\t\tprev = current\n\t\t// throw out the bad ingredients\n\t\tpudding_eat(&current)\n\t}\n}", "func Finish() {\n\tsyscall.Syscall(gpFinish, 0, 0, 0, 0)\n}", "func wait() {\n\t// 1000 - 2000 millisecond\n\tn := 1000 + CryptoRandNonNegInt(1000)\n\ttime.Sleep(time.Millisecond * time.Duration(n))\n}", "func (t *Indie) Wait() {\n t.waitModules()\n}", "func (om *outputManager) loader() {\n\ttime.Sleep(150 * time.Millisecond)\n\tfor {\n\t\tfmt.Printf(\"\\r\\\\\")\n\t\ttime.Sleep(om.speed * time.Millisecond)\n\t\tfmt.Printf(\"\\r/\")\n\t\ttime.Sleep(om.speed * time.Millisecond)\n\t}\n}", "func (e *Executor) Wait() {\n\tfor {\n\t\tnjob, ndone := e.Count()\n\t\tif ndone == njob {\n\t\t\tbreak\n\t\t}\n\t\ttime.Sleep(100 * time.Millisecond)\n\t}\n}", "func (relaySync *relaySync) Complete() {\n\tdefer func() {\n\t\trelaySync.setupCompleteHeld = false\n\t\trelaySync.legCompleteHeld = false\n\t}()\n\n\tif relaySync.setupCompleteHeld {\n\t\tdefer relaySync.shared.setupComplete.Done()\n\t}\n\n\tif relaySync.legCompleteHeld {\n\t\tdefer relaySync.shared.legComplete.Done()\n\t}\n}", "func wait() {\n\ttime.Sleep(3 * time.Second)\n}", "func (win *winInfo) displayLoading() {\n\ttexture, _ := win.renderText(\"Loading...\")\n\tww, wh := win.window.GetSize()\n\twin.renderer.Copy(texture, nil, &sdl.Rect{X: int32(ww/2 - 50), Y: int32(wh/2 - 1), W: 65, H: 20})\n\ttexture.Destroy()\n\twin.renderer.Present()\n}", "func (b Build) Wait() {\n\t<-make(chan struct{})\n}", "func mainLoop(ch chan int) {\n\tfmt.Println(\"Looping\")\n\n\tfor {\n\t\tfmt.Println(\"Updating world...\")\n\t\tupdate()\n\t\ttime.Sleep(updateInterval)\n\t}\n\tch <- 0\n}", "func (ini *Init) wait() {\n\tvar counter time.Duration\n\tfor !ini.init.Done() {\n\t\tcounter += 10\n\t\tif counter > 600000000 {\n\t\t\tpanic(\"BUG: timed out in lazy init\")\n\t\t}\n\t\ttime.Sleep(counter * time.Microsecond)\n\t}\n}", "func DispatchCompute(num_groups_x uint32, num_groups_y uint32, num_groups_z uint32) {\n C.glowDispatchCompute(gpDispatchCompute, (C.GLuint)(num_groups_x), (C.GLuint)(num_groups_y), (C.GLuint)(num_groups_z))\n}", "func SceneLoop() bool {\n\treturn true\n}", "func Main() {\n\tfor f := range gfxfunc {\n\t\tf()\n\t}\n\tgfx.Trace(\"gfx shutting down.\")\n\tsdl.GL_DeleteContext(glctx)\n\twindow.Destroy()\n}", "func (elm *etcdLeaseManager) Wait() {\n\telm.wg.Wait()\n}", "func WaitUntilSwingStoreExportDone() error {\n\toperationDetails := activeOperation\n\tif operationDetails == nil {\n\t\treturn nil\n\t}\n\t// Block until the active export has completed.\n\t// The export operation's goroutine only produces a value in case of an error,\n\t// and closes the channel once the export has completed or failed.\n\t// Only the first call after an export was initiated will report an error.\n\texportErr := <-operationDetails.exportDone\n\tactiveOperation = nil\n\n\treturn exportErr\n}", "func (s *NaïveStaller) WaitForStallBlockOp(stalledOp StallableBlockOp) {\n\t<-s.getNaïveStallInfoForBlockOpOrBust(stalledOp).onStalled\n}", "func (localOptimizer) finish(operation chan<- Task, result <-chan Task) {\n\t// Guarantee that result is closed before operation is closed.\n\tfor range result {\n\t}\n}", "func (display smallEpd) waitUntilIdle() (err error) {\n\tlog.Debug(\"EPD42 WaitUntilIdle\")\n\tfor {\n\t\tbusy, err := display.driver.DigitalRead(display.BUSY)\n\t\tif !busy {\n\t\t\tbreak\n\t\t}\n\t\tif err != nil {\n\t\t\tfmt.Printf(\"Error checking bust %s\\n\", err.Error())\n\t\t}\n\t\tfmt.Printf(\".\")\n\t\ttime.Sleep(200 * time.Millisecond)\n\t}\n\tlog.Debug(\"EPD42 WaitUntilIdle End\")\n\treturn\n}", "func waitForResult() {\n\twork := make(chan string)\n\n\tgo func() {\n\t\ttime.Sleep(time.Duration(rand.Intn(1000)) * time.Millisecond)\n\t\twork <- \"Done\"\n\t}()\n\n\ttime.Sleep(time.Second)\n\tmanager := <-work\n\n\tfmt.Printf(\"%+v\\n\", manager)\n}", "func waitTransProcessed(gid string) {\n\tdtmimp.Logf(\"waiting for gid %s\", gid)\n\tselect {\n\tcase id := <-dtmsvr.TransProcessedTestChan:\n\t\tfor id != gid {\n\t\t\tdtmimp.LogRedf(\"-------id %s not match gid %s\", id, gid)\n\t\t\tid = <-dtmsvr.TransProcessedTestChan\n\t\t}\n\t\tdtmimp.Logf(\"finish for gid %s\", gid)\n\tcase <-time.After(time.Duration(time.Second * 3)):\n\t\tdtmimp.LogFatalf(\"Wait Trans timeout\")\n\t}\n}" ]
[ "0.6748293", "0.6580549", "0.5751512", "0.5665948", "0.56139517", "0.55800843", "0.5576034", "0.5544397", "0.55151343", "0.54702073", "0.5448769", "0.5341443", "0.5336991", "0.5335382", "0.53130394", "0.53106815", "0.5298889", "0.5234722", "0.52048284", "0.51613706", "0.51273215", "0.5107483", "0.50514907", "0.5013947", "0.50127083", "0.50005716", "0.49960086", "0.49844557", "0.49827385", "0.4973234", "0.49637887", "0.49567312", "0.49521634", "0.49495173", "0.49336267", "0.49138752", "0.49059325", "0.49046314", "0.4897303", "0.48941898", "0.4894115", "0.4884088", "0.48789483", "0.48767784", "0.4859976", "0.48470643", "0.4838681", "0.4837765", "0.48328385", "0.4823169", "0.48166263", "0.48166263", "0.48117244", "0.48072508", "0.48056352", "0.48032522", "0.48032522", "0.48029697", "0.4794002", "0.47876602", "0.47846428", "0.47844207", "0.47700772", "0.47681373", "0.4755256", "0.4752233", "0.4751289", "0.47474343", "0.4738964", "0.4724877", "0.47248602", "0.47237575", "0.47204962", "0.4718558", "0.4710911", "0.47024745", "0.4701141", "0.4699165", "0.4696588", "0.46884117", "0.46876794", "0.4687669", "0.46856374", "0.4681341", "0.4665498", "0.46620813", "0.46619236", "0.46586758", "0.46548516", "0.46538192", "0.4649642", "0.46409246", "0.4630584", "0.46294236", "0.4623819", "0.4615275", "0.46084076", "0.46070084", "0.4597836" ]
0.52390337
18
force execution of GL commands in finite time
func Flush() { C.glowFlush(gpFlush) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func init() {\n\t// Locks the Execution in the main Thread as OpenGL is not thread Safe\n\truntime.LockOSThread()\n}", "func Flush() {\n\tgl.Flush()\n}", "func Flush() {\n\tC.glFlush()\n}", "func System(g gl.Context3, m *ecs.Manager) {\n\tg.ClearColor(1, 1, 1, 1)\n\tg.LineWidth(4)\n\tg.Enable(gl.CULL_FACE)\n\tg.CullFace(gl.BACK)\n\n\trs := glRenderer{\n\t\tg: g,\n\t\tinstances: []*renderableInstance{},\n\t}\n\trs.setupMaterial()\n\tm.ReflAuto(&rs)\n\n}", "func PassThrough(token float32) {\n C.glowPassThrough(gpPassThrough, (C.GLfloat)(token))\n}", "func drawLoop(glw *wrapper.Glw) {\n\t// Sets the Clear Color (Background Color)\n\tgl.ClearColor(0.0, 0.0, 0.0, 1.0)\n\n\t// Clears the Window\n\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\n\t// Enables Depth\n\tgl.Enable(gl.DEPTH_TEST)\n\n\t// Sets the Shader program to Use\n\tgl.UseProgram(shaderProgram)\n\n\t// Define the model transformations for the cube\n\tcube.ResetModel()\n\tcube.Translate(x + 0.5, y, z)\n\tcube.Scale(scale, scale, scale) //scale equally in all axis\n\tcube.Rotate(-angle_x, mgl32.Vec3{1, 0, 0}) //rotating in clockwise direction around x-axis\n\tcube.Rotate(-angle_y, mgl32.Vec3{0, 1, 0}) //rotating in clockwise direction around y-axis\n\tcube.Rotate(-angle_z, mgl32.Vec3{0, 0, 1}) //rotating in clockwise direction around z-axis\n\n\t// Define the model transformations for our sphere\n\tsphere.ResetModel()\n\tsphere.Translate(-x - 0.5, 0, 0)\n\tsphere.Scale(scale / 3.0, scale / 3.0, scale / 3.0) //scale equally in all axis\n\tsphere.Rotate(-angle_x, mgl32.Vec3{1, 0, 0}) //rotating in clockwise direction around x-axis\n\tsphere.Rotate(-angle_y, mgl32.Vec3{0, 1, 0}) //rotating in clockwise direction around y-axis\n\tsphere.Rotate(-angle_z, mgl32.Vec3{0, 0, 1}) //rotating in clockwise direction around z-axis\n\n\t// Projection matrix : 45° Field of View, 4:3 ratio, display range : 0.1 unit <-> 100 units\n\tvar Projection mgl32.Mat4 = mgl32.Perspective(30.0, aspect_ratio, 0.1, 100.0)\n\n\t// Camera matrix\n\tvar View mgl32.Mat4 = mgl32.LookAtV(\n\t\tmgl32.Vec3{0, 0, 4}, // Camera is at (0,0,4), in World Space\n\t\tmgl32.Vec3{0, 0, 0}, // and looks at the origin\n\t\tmgl32.Vec3{0, 1, 0}, // Head is up (set to 0,-1,0 to look upside-down)\n\t);\n\n\t// Send our uniforms variables to the currently bound shader,\n\tgl.Uniform1ui(colourmodeUniform, uint32(colourmode))\n\tgl.UniformMatrix4fv(viewUniform, 1, false, &View[0])\n\tgl.UniformMatrix4fv(projectionUniform, 1, false, &Projection[0])\n\n\t// Draws the Cube\n\tgl.UniformMatrix4fv(modelUniform, 1, false, &cube.Model[0])\n\tcube.Draw()\n\n\t// Draw our sphere\n\tgl.UniformMatrix4fv(modelUniform, 1, false, &sphere.Model[0])\n\tsphere.DrawSphere()\n\n\tgl.DisableVertexAttribArray(0);\n\tgl.UseProgram(0);\n\n\t/* Modify our animation variables */\n\tangle_x += angle_inc_x;\n\tangle_y += angle_inc_y;\n\tangle_z += angle_inc_z;\n}", "func Draw(width, height int, delta float64) {\n\ttickAnimatedTextures(delta)\n\tframeID++\nsync:\n\tfor {\n\t\tselect {\n\t\tcase f := <-syncChan:\n\t\t\tf()\n\t\tdefault:\n\t\t\tbreak sync\n\t\t}\n\t}\n\n\t// Only update the viewport if the window was resized\n\tif lastHeight != height || lastWidth != width || lastFOV != FOV.Value() {\n\t\tlastWidth = width\n\t\tlastHeight = height\n\t\tlastFOV = FOV.Value()\n\n\t\tperspectiveMatrix = mgl32.Perspective(\n\t\t\t(math.Pi/180)*float32(lastFOV),\n\t\t\tfloat32(width)/float32(height),\n\t\t\t0.1,\n\t\t\t500.0,\n\t\t)\n\t\tgl.Viewport(0, 0, width, height)\n\t\tfrustum.SetPerspective(\n\t\t\t(math.Pi/180)*float32(lastFOV),\n\t\t\tfloat32(width)/float32(height),\n\t\t\t0.1,\n\t\t\t500.0,\n\t\t)\n\t\tinitTrans()\n\t}\n\n\tmainFramebuffer.Bind()\n\tgl.Enable(gl.Multisample)\n\n\tgl.ActiveTexture(0)\n\tglTexture.Bind(gl.Texture2DArray)\n\n\tgl.ClearColor(ClearColour.R, ClearColour.G, ClearColour.B, 1.0)\n\tgl.Clear(gl.ColorBufferBit | gl.DepthBufferBit)\n\n\tchunkProgram.Use()\n\n\tviewVector = mgl32.Vec3{\n\t\tfloat32(math.Cos(Camera.Yaw-math.Pi/2) * -math.Cos(Camera.Pitch)),\n\t\tfloat32(-math.Sin(Camera.Pitch)),\n\t\tfloat32(-math.Sin(Camera.Yaw-math.Pi/2) * -math.Cos(Camera.Pitch)),\n\t}\n\tcam := mgl32.Vec3{-float32(Camera.X), -float32(Camera.Y), float32(Camera.Z)}\n\tcameraMatrix = mgl32.LookAtV(\n\t\tcam,\n\t\tcam.Add(mgl32.Vec3{-viewVector.X(), -viewVector.Y(), viewVector.Z()}),\n\t\tmgl32.Vec3{0, -1, 0},\n\t)\n\tcameraMatrix = cameraMatrix.Mul4(mgl32.Scale3D(-1.0, 1.0, 1.0))\n\n\tfrustum.SetCamera(\n\t\tcam,\n\t\tcam.Add(mgl32.Vec3{-viewVector.X(), -viewVector.Y(), viewVector.Z()}),\n\t\tmgl32.Vec3{0, -1, 0},\n\t)\n\n\tshaderChunk.PerspectiveMatrix.Matrix4(&perspectiveMatrix)\n\tshaderChunk.CameraMatrix.Matrix4(&cameraMatrix)\n\tshaderChunk.Texture.Int(0)\n\tshaderChunk.LightLevel.Float(LightLevel)\n\tshaderChunk.SkyOffset.Float(SkyOffset)\n\n\tchunkPos := position{\n\t\tX: int(Camera.X) >> 4,\n\t\tY: int(Camera.Y) >> 4,\n\t\tZ: int(Camera.Z) >> 4,\n\t}\n\tnearestBuffer = buffers[chunkPos]\n\n\tfor _, dir := range direction.Values {\n\t\tvalidDirs[dir] = viewVector.Dot(dir.AsVec()) > -0.8\n\t}\n\n\trenderOrder = renderOrder[:0]\n\trenderBuffer(nearestBuffer, chunkPos, direction.Invalid)\n\n\tdrawLines()\n\tdrawStatic()\n\tclouds.tick(delta)\n\n\tchunkProgramT.Use()\n\tshaderChunkT.PerspectiveMatrix.Matrix4(&perspectiveMatrix)\n\tshaderChunkT.CameraMatrix.Matrix4(&cameraMatrix)\n\tshaderChunkT.Texture.Int(0)\n\tshaderChunkT.LightLevel.Float(LightLevel)\n\tshaderChunkT.SkyOffset.Float(SkyOffset)\n\n\t// Copy the depth buffer\n\tmainFramebuffer.BindRead()\n\ttransFramebuffer.BindDraw()\n\tgl.BlitFramebuffer(\n\t\t0, 0, lastWidth, lastHeight,\n\t\t0, 0, lastWidth, lastHeight,\n\t\tgl.DepthBufferBit, gl.Nearest,\n\t)\n\n\tgl.Enable(gl.Blend)\n\tgl.DepthMask(false)\n\ttransFramebuffer.Bind()\n\tgl.ClearColor(0, 0, 0, 1)\n\tgl.Clear(gl.ColorBufferBit)\n\tgl.ClearBuffer(gl.Color, 0, []float32{0, 0, 0, 1})\n\tgl.ClearBuffer(gl.Color, 1, []float32{0, 0, 0, 0})\n\tgl.BlendFuncSeparate(gl.OneFactor, gl.OneFactor, gl.ZeroFactor, gl.OneMinusSrcAlpha)\n\tfor _, chunk := range renderOrder {\n\t\tif chunk.countT > 0 && chunk.bufferT.IsValid() {\n\t\t\tshaderChunkT.Offset.Int3(chunk.X, chunk.Y, chunk.Z)\n\n\t\t\tchunk.arrayT.Bind()\n\t\t\tgl.DrawElements(gl.Triangles, chunk.countT, elementBufferType, 0)\n\t\t}\n\t}\n\n\tgl.UnbindFramebuffer()\n\tgl.Disable(gl.DepthTest)\n\tgl.Clear(gl.ColorBufferBit)\n\tgl.Disable(gl.Blend)\n\n\ttransDraw()\n\n\tgl.Enable(gl.DepthTest)\n\tgl.DepthMask(true)\n\tgl.BlendFunc(gl.SrcAlpha, gl.OneMinusSrcAlpha)\n\tgl.Disable(gl.Multisample)\n\n\tdrawUI()\n\n\tif debugFramebuffers.Value() {\n\t\tgl.Enable(gl.Multisample)\n\t\tblitBuffers()\n\t\tgl.Disable(gl.Multisample)\n\t}\n}", "func Finish() {\n\tC.glFinish()\n}", "func MWAIT() { ctx.MWAIT() }", "func (w *windowImpl) drawLoop() {\n\truntime.LockOSThread()\nouter:\n\tfor {\n\t\tselect {\n\t\tcase <-w.winClose:\n\t\t\tbreak outer\n\t\tcase <-w.publish:\n\t\t\tw.app.RunOnMain(func() {\n\t\t\t\ttheGPU.UseContext(w)\n\t\t\t\tgl.Flush()\n\t\t\t\tw.glw.SwapBuffers()\n\t\t\t\t// gl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\t\t\t\ttheGPU.ClearContext(w)\n\t\t\t})\n\t\t\tw.publishDone <- oswin.PublishResult{}\n\t\t}\n\t}\n}", "func run() {\n\tcfg := pixelgl.WindowConfig{\n\t\tTitle: \"Giri's Gravity Simulations!\",\n\t\tBounds: pixel.R(0, 0, winHeight, winWidth),\n\t\t//VSync: true,\n\t}\n\n\twin, err := pixelgl.NewWindow(cfg)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\twin.SetSmooth(true)\n\tpic, err := loadPicture(\"hiking.png\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tvar bodyFrames [N]*pixel.Sprite\n\tfor i:=0;i<N;i++{\n\t\tbodyFrames[i] = pixel.NewSprite(pic, pic.Bounds())\n\t}\n\n\t// Camera Setup\n\tvar(\n\t\tcamPos = Vector{0,0}\n\t\tcamSpeed float64 = 600\n\t\tcamZoomSpeed = 1.2\n\t\tcamZoom = 1.0\n\t)\n\n\t// Body Initialisation\n\tvar Bodies [N]Body\n\n\tBodies[0] = Body{40, Vector{rand.Float64()*metric-metric/2, rand.Float64()*metric-metric/2}, Vector{rand.Float64()*2,rand.Float64()*2}, Vector{0,0}, 0}\n\tBodies[1] = Body{40, Vector{rand.Float64()*metric-metric/2, rand.Float64()*metric-metric/2}, Vector{rand.Float64()*2,rand.Float64()*2}, Vector{0,0}, 0}\n\tBodies[2] = Body{10, Vector{rand.Float64()*metric-metric/2, rand.Float64()*metric-metric/2}, Vector{rand.Float64()*2,rand.Float64()*2}, Vector{0,0}, 1.0}\n\tfmt.Println(Bodies[0].pos, Bodies[1].pos, Bodies[2].pos,)\n\n\t// Fps Setup\n\tvar (\n\t\tframes = 0\n\t\tsecond = time.Tick(time.Second)\n\t)\n\n\t// Computing of Trajectories\n\tlast := time.Now()\n\tfor !win.Closed() {\n\t\twin.Clear(colornames.Midnightblue)\n\n\t\tdt := time.Since(last).Seconds()\n\t\tlast = time.Now()\n\n\t\t// Keypress Activities\n\t\tif win.Pressed(pixelgl.KeyLeft) {\n\t\t\tcamPos.x += camSpeed * dt\n\t\t}\n\t\tif win.Pressed(pixelgl.KeyRight) {\n\t\t\tcamPos.x -= camSpeed * dt\n\t\t}\n\t\tif win.Pressed(pixelgl.KeyUp) {\n\t\t\tcamPos.y -= camSpeed * dt\n\t\t}\n\t\tif win.Pressed(pixelgl.KeyDown) {\n\t\t\tcamPos.y += camSpeed * dt\n\t\t}\n\t\tcamZoom *= math.Pow(camZoomSpeed, win.MouseScroll().Y)\n\n\t\t// Computation of Trajectories\n\t\tfor i:=0;i<N;i++{\n\t\t\tBodies[i].acc = Bodies[i].getGravity(Bodies)\n\t\t}\n\t\tfor i:=0;i<N;i++{\n\t\t\tBodies[i].vel = Bodies[i].getVel()\n\t\t\tBodies[i].pos = Bodies[i].getPos()\n\t\t\tvar x, y = Bodies[i].pos.x+winWidth/2, Bodies[i].pos.y+winHeight/2\n\t\t\tmat := pixel.IM\n\t\t\tmat = mat.Moved(pixel.V(x,y)).Scaled(pixel.V(x,y),zoom).Scaled(pixel.V(x,y),Bodies[i].mass/5).Moved(pixel.V(camPos.x,camPos.y)).Scaled(pixel.V(winWidth/2,winHeight/2),camZoom)\n\t\t\tbodyFrames[i].Draw(win, mat)\n\t\t}\n\t\twin.Update()\n\t\tframes++\n\t\tselect {\n\t\tcase <-second:\n\t\t\twin.SetTitle(fmt.Sprintf(\"%s | FPS: %d\", cfg.Title, frames))\n\t\t\tframes = 0\n\t\tdefault:\n\t\t}\n\t}\n}", "func (self *Graphics) _renderWebGL(renderSession *RenderSession) {\n self.Object.Call(\"_renderWebGL\", renderSession)\n}", "func XCHGL(emr, emr1 operand.Op) { ctx.XCHGL(emr, emr1) }", "func loop() {\n\n\tcfg := pixelgl.WindowConfig{\n\t\tTitle: \"Life...finds a way.\",\n\t\tBounds: winBounds,\n\t\tVSync: true,\n\t}\n\twin, err := pixelgl.NewWindow(cfg)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// sprite creation\n\tredPic := p.MakePictureData(p.R(0, 0, 1, 1))\n\tredPic.Pix[0] = colornames.Red\n\tred := p.NewSprite(redPic, redPic.Bounds())\n\n\tbatch := p.NewBatch(&p.TrianglesData{}, redPic)\n\n\t// game state\n\tboard := g.Patterns[initPattern]\n\tpaused := false\n\titerations := 0\n\n\t// update the game state (board) every iterWait duration\n\t// independently of the graphical draw loop\n\tgo func() {\n\t\twait := time.NewTicker(iterWait)\n\t\tfor !win.Closed() {\n\t\t\tselect {\n\t\t\tcase <-wait.C:\n\t\t\t\tif !paused {\n\t\t\t\t\tboard = g.Advance(board)\n\t\t\t\t\titerations++\n\t\t\t\t}\n\t\t\tdefault:\n\t\t\t}\n\t\t}\n\t\twait.Stop()\n\t}()\n\n\t// various state for drawing\n\tcam := camera{Position: p.ZV, Speed: 250.0, Zoom: 1.0, ZSpeed: 1.1}\n\tframes := 0\n\tsecond := time.Tick(time.Second)\n\tlast := time.Now()\n\n\tfor !win.Closed() {\n\t\tdt := time.Since(last).Seconds()\n\t\tlast = time.Now()\n\n\t\tcamMatrix := p.IM.\n\t\t\tScaled(cam.Position, cam.Zoom).\n\t\t\tMoved(win.Bounds().Center().Sub(cam.Position))\n\t\twin.SetMatrix(camMatrix)\n\n\t\t// update user controlled things\n\t\tif win.Pressed(pixelgl.KeyLeft) {\n\t\t\tcam.Position.X -= cam.Speed * dt\n\t\t}\n\t\tif win.Pressed(pixelgl.KeyRight) {\n\t\t\tcam.Position.X += cam.Speed * dt\n\t\t}\n\t\tif win.Pressed(pixelgl.KeyDown) {\n\t\t\tcam.Position.Y -= cam.Speed * dt\n\t\t}\n\t\tif win.Pressed(pixelgl.KeyUp) {\n\t\t\tcam.Position.Y += cam.Speed * dt\n\t\t}\n\t\tif win.JustPressed(pixelgl.KeySpace) {\n\t\t\tpaused = !paused\n\t\t}\n\t\t// win.SetTitle(fmt.Sprintf(\"Mouse (%.2f, %.2f)\", mouse.X, mouse.Y))\n\t\tif win.JustPressed(pixelgl.MouseButtonLeft) && paused {\n\t\t\t// toggle a point's existence.\n\t\t\t// use Round to change mouse floats to ints. Simple\n\t\t\t// truncation will often place dot in wrong spot since\n\t\t\t// Pixel uses the sprite's center as it's position.\n\t\t\tmouse := camMatrix.Unproject(win.MousePosition())\n\t\t\tpoint := g.Point{round(mouse.X), round(mouse.Y)}\n\t\t\tif board[point] {\n\t\t\t\tdelete(board, point)\n\t\t\t} else {\n\t\t\t\tboard[point] = true\n\t\t\t}\n\t\t}\n\t\tif win.JustPressed(pixelgl.MouseButtonRight) && paused {\n\t\t\t// allow user to increment the board state 1 iteration\n\t\t\tboard = g.Advance(board)\n\t\t\titerations++\n\t\t}\n\t\tcam.Zoom *= math.Pow(cam.ZSpeed, win.MouseScroll().Y)\n\n\t\t// render game state\n\t\tbatch.Clear()\n\t\tfor point := range board {\n\t\t\tred.Draw(batch, p.IM.Moved(pToV(point)))\n\t\t}\n\n\t\t// draw\n\t\tif paused {\n\t\t\twin.Clear(colornames.Lightgray)\n\t\t} else {\n\t\t\twin.Clear(colornames.White)\n\t\t}\n\t\tbatch.Draw(win)\n\t\twin.Update()\n\n\t\t// various metrics in titlebar\n\t\tframes++\n\t\tselect {\n\t\tcase <-second:\n\t\t\twin.SetTitle(fmt.Sprintf(\n\t\t\t\t\"%s | FPS: %d | Paused: %v | %d cells %d iterations\",\n\t\t\t\tcfg.Title, frames, paused, len(board), iterations))\n\t\t\tframes = 0\n\t\tdefault:\n\t\t}\n\t}\n}", "func Finish() {\n\tgl.Finish()\n}", "func (s *scene) run(ctx context.Context, r *sdl.Renderer) chan error {\n\terrc := make(chan error)\n\tgo func() {\n\t\tdefer close(errc)\n\t\tfor range time.Tick(10 * time.Millisecond) {\n\t\t\tselect {\n\t\t\tcase <-ctx.Done():\n\t\t\t\treturn\n\t\t\tdefault:\n\t\t\t\tif err := s.paint(r); err != nil {\n\t\t\t\t\terrc <- err\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}()\n\treturn errc\n}", "func InitGo(loader func(string) unsafe.Pointer) {\n ver := Version{OpenGL, -1, -1}\n\n\tC.pfn_glGetString = C.PFNGLGETSTRING(loader(\"glGetString\"))\n\tvs := C.GoString((*C.char)(unsafe.Pointer(C.gogl_glGetString(GL_VERSION))))\n i := strings.IndexFunc(vs, func(r rune) bool {\n return r >= '0' && r <= '9'\n })\n if i >= 0 {\n fmt.Sscanf(vs[i:], \"%d.%d\", &ver.Major, &ver.Minor)\n }\n if !ver.GE(OpenGL, 1, 0) {\n panic(\"failed to identify OpenGL version\")\n }\n C.GLVersion.major = C.int(ver.Major)\n C.GLVersion.minor = C.int(ver.Minor)\n\n C.pfn_glAccum = C.PFNGLACCUM(loader(\"glAccum\"))\n C.pfn_glAlphaFunc = C.PFNGLALPHAFUNC(loader(\"glAlphaFunc\"))\n C.pfn_glBegin = C.PFNGLBEGIN(loader(\"glBegin\"))\n C.pfn_glBitmap = C.PFNGLBITMAP(loader(\"glBitmap\"))\n C.pfn_glBlendFunc = C.PFNGLBLENDFUNC(loader(\"glBlendFunc\"))\n C.pfn_glCallList = C.PFNGLCALLLIST(loader(\"glCallList\"))\n C.pfn_glCallLists = C.PFNGLCALLLISTS(loader(\"glCallLists\"))\n C.pfn_glClear = C.PFNGLCLEAR(loader(\"glClear\"))\n C.pfn_glClearAccum = C.PFNGLCLEARACCUM(loader(\"glClearAccum\"))\n C.pfn_glClearColor = C.PFNGLCLEARCOLOR(loader(\"glClearColor\"))\n C.pfn_glClearDepth = C.PFNGLCLEARDEPTH(loader(\"glClearDepth\"))\n C.pfn_glClearIndex = C.PFNGLCLEARINDEX(loader(\"glClearIndex\"))\n C.pfn_glClearStencil = C.PFNGLCLEARSTENCIL(loader(\"glClearStencil\"))\n C.pfn_glClipPlane = C.PFNGLCLIPPLANE(loader(\"glClipPlane\"))\n C.pfn_glColor3b = C.PFNGLCOLOR3B(loader(\"glColor3b\"))\n C.pfn_glColor3bv = C.PFNGLCOLOR3BV(loader(\"glColor3bv\"))\n C.pfn_glColor3d = C.PFNGLCOLOR3D(loader(\"glColor3d\"))\n C.pfn_glColor3dv = C.PFNGLCOLOR3DV(loader(\"glColor3dv\"))\n C.pfn_glColor3f = C.PFNGLCOLOR3F(loader(\"glColor3f\"))\n C.pfn_glColor3fv = C.PFNGLCOLOR3FV(loader(\"glColor3fv\"))\n C.pfn_glColor3i = C.PFNGLCOLOR3I(loader(\"glColor3i\"))\n C.pfn_glColor3iv = C.PFNGLCOLOR3IV(loader(\"glColor3iv\"))\n C.pfn_glColor3s = C.PFNGLCOLOR3S(loader(\"glColor3s\"))\n C.pfn_glColor3sv = C.PFNGLCOLOR3SV(loader(\"glColor3sv\"))\n C.pfn_glColor3ub = C.PFNGLCOLOR3UB(loader(\"glColor3ub\"))\n C.pfn_glColor3ubv = C.PFNGLCOLOR3UBV(loader(\"glColor3ubv\"))\n C.pfn_glColor3ui = C.PFNGLCOLOR3UI(loader(\"glColor3ui\"))\n C.pfn_glColor3uiv = C.PFNGLCOLOR3UIV(loader(\"glColor3uiv\"))\n C.pfn_glColor3us = C.PFNGLCOLOR3US(loader(\"glColor3us\"))\n C.pfn_glColor3usv = C.PFNGLCOLOR3USV(loader(\"glColor3usv\"))\n C.pfn_glColor4b = C.PFNGLCOLOR4B(loader(\"glColor4b\"))\n C.pfn_glColor4bv = C.PFNGLCOLOR4BV(loader(\"glColor4bv\"))\n C.pfn_glColor4d = C.PFNGLCOLOR4D(loader(\"glColor4d\"))\n C.pfn_glColor4dv = C.PFNGLCOLOR4DV(loader(\"glColor4dv\"))\n C.pfn_glColor4f = C.PFNGLCOLOR4F(loader(\"glColor4f\"))\n C.pfn_glColor4fv = C.PFNGLCOLOR4FV(loader(\"glColor4fv\"))\n C.pfn_glColor4i = C.PFNGLCOLOR4I(loader(\"glColor4i\"))\n C.pfn_glColor4iv = C.PFNGLCOLOR4IV(loader(\"glColor4iv\"))\n C.pfn_glColor4s = C.PFNGLCOLOR4S(loader(\"glColor4s\"))\n C.pfn_glColor4sv = C.PFNGLCOLOR4SV(loader(\"glColor4sv\"))\n C.pfn_glColor4ub = C.PFNGLCOLOR4UB(loader(\"glColor4ub\"))\n C.pfn_glColor4ubv = C.PFNGLCOLOR4UBV(loader(\"glColor4ubv\"))\n C.pfn_glColor4ui = C.PFNGLCOLOR4UI(loader(\"glColor4ui\"))\n C.pfn_glColor4uiv = C.PFNGLCOLOR4UIV(loader(\"glColor4uiv\"))\n C.pfn_glColor4us = C.PFNGLCOLOR4US(loader(\"glColor4us\"))\n C.pfn_glColor4usv = C.PFNGLCOLOR4USV(loader(\"glColor4usv\"))\n C.pfn_glColorMask = C.PFNGLCOLORMASK(loader(\"glColorMask\"))\n C.pfn_glColorMaterial = C.PFNGLCOLORMATERIAL(loader(\"glColorMaterial\"))\n C.pfn_glCopyPixels = C.PFNGLCOPYPIXELS(loader(\"glCopyPixels\"))\n C.pfn_glCullFace = C.PFNGLCULLFACE(loader(\"glCullFace\"))\n C.pfn_glDeleteLists = C.PFNGLDELETELISTS(loader(\"glDeleteLists\"))\n C.pfn_glDepthFunc = C.PFNGLDEPTHFUNC(loader(\"glDepthFunc\"))\n C.pfn_glDepthMask = C.PFNGLDEPTHMASK(loader(\"glDepthMask\"))\n C.pfn_glDepthRange = C.PFNGLDEPTHRANGE(loader(\"glDepthRange\"))\n C.pfn_glDisable = C.PFNGLDISABLE(loader(\"glDisable\"))\n C.pfn_glDrawBuffer = C.PFNGLDRAWBUFFER(loader(\"glDrawBuffer\"))\n C.pfn_glDrawPixels = C.PFNGLDRAWPIXELS(loader(\"glDrawPixels\"))\n C.pfn_glEdgeFlag = C.PFNGLEDGEFLAG(loader(\"glEdgeFlag\"))\n C.pfn_glEdgeFlagv = C.PFNGLEDGEFLAGV(loader(\"glEdgeFlagv\"))\n C.pfn_glEnable = C.PFNGLENABLE(loader(\"glEnable\"))\n C.pfn_glEnd = C.PFNGLEND(loader(\"glEnd\"))\n C.pfn_glEndList = C.PFNGLENDLIST(loader(\"glEndList\"))\n C.pfn_glEvalCoord1d = C.PFNGLEVALCOORD1D(loader(\"glEvalCoord1d\"))\n C.pfn_glEvalCoord1dv = C.PFNGLEVALCOORD1DV(loader(\"glEvalCoord1dv\"))\n C.pfn_glEvalCoord1f = C.PFNGLEVALCOORD1F(loader(\"glEvalCoord1f\"))\n C.pfn_glEvalCoord1fv = C.PFNGLEVALCOORD1FV(loader(\"glEvalCoord1fv\"))\n C.pfn_glEvalCoord2d = C.PFNGLEVALCOORD2D(loader(\"glEvalCoord2d\"))\n C.pfn_glEvalCoord2dv = C.PFNGLEVALCOORD2DV(loader(\"glEvalCoord2dv\"))\n C.pfn_glEvalCoord2f = C.PFNGLEVALCOORD2F(loader(\"glEvalCoord2f\"))\n C.pfn_glEvalCoord2fv = C.PFNGLEVALCOORD2FV(loader(\"glEvalCoord2fv\"))\n C.pfn_glEvalMesh1 = C.PFNGLEVALMESH1(loader(\"glEvalMesh1\"))\n C.pfn_glEvalMesh2 = C.PFNGLEVALMESH2(loader(\"glEvalMesh2\"))\n C.pfn_glEvalPoint1 = C.PFNGLEVALPOINT1(loader(\"glEvalPoint1\"))\n C.pfn_glEvalPoint2 = C.PFNGLEVALPOINT2(loader(\"glEvalPoint2\"))\n C.pfn_glFeedbackBuffer = C.PFNGLFEEDBACKBUFFER(loader(\"glFeedbackBuffer\"))\n C.pfn_glFinish = C.PFNGLFINISH(loader(\"glFinish\"))\n C.pfn_glFlush = C.PFNGLFLUSH(loader(\"glFlush\"))\n C.pfn_glFogf = C.PFNGLFOGF(loader(\"glFogf\"))\n C.pfn_glFogfv = C.PFNGLFOGFV(loader(\"glFogfv\"))\n C.pfn_glFogi = C.PFNGLFOGI(loader(\"glFogi\"))\n C.pfn_glFogiv = C.PFNGLFOGIV(loader(\"glFogiv\"))\n C.pfn_glFrontFace = C.PFNGLFRONTFACE(loader(\"glFrontFace\"))\n C.pfn_glFrustum = C.PFNGLFRUSTUM(loader(\"glFrustum\"))\n C.pfn_glGenLists = C.PFNGLGENLISTS(loader(\"glGenLists\"))\n C.pfn_glGetBooleanv = C.PFNGLGETBOOLEANV(loader(\"glGetBooleanv\"))\n C.pfn_glGetClipPlane = C.PFNGLGETCLIPPLANE(loader(\"glGetClipPlane\"))\n C.pfn_glGetDoublev = C.PFNGLGETDOUBLEV(loader(\"glGetDoublev\"))\n C.pfn_glGetError = C.PFNGLGETERROR(loader(\"glGetError\"))\n C.pfn_glGetFloatv = C.PFNGLGETFLOATV(loader(\"glGetFloatv\"))\n C.pfn_glGetIntegerv = C.PFNGLGETINTEGERV(loader(\"glGetIntegerv\"))\n C.pfn_glGetLightfv = C.PFNGLGETLIGHTFV(loader(\"glGetLightfv\"))\n C.pfn_glGetLightiv = C.PFNGLGETLIGHTIV(loader(\"glGetLightiv\"))\n C.pfn_glGetMapdv = C.PFNGLGETMAPDV(loader(\"glGetMapdv\"))\n C.pfn_glGetMapfv = C.PFNGLGETMAPFV(loader(\"glGetMapfv\"))\n C.pfn_glGetMapiv = C.PFNGLGETMAPIV(loader(\"glGetMapiv\"))\n C.pfn_glGetMaterialfv = C.PFNGLGETMATERIALFV(loader(\"glGetMaterialfv\"))\n C.pfn_glGetMaterialiv = C.PFNGLGETMATERIALIV(loader(\"glGetMaterialiv\"))\n C.pfn_glGetPixelMapfv = C.PFNGLGETPIXELMAPFV(loader(\"glGetPixelMapfv\"))\n C.pfn_glGetPixelMapuiv = C.PFNGLGETPIXELMAPUIV(loader(\"glGetPixelMapuiv\"))\n C.pfn_glGetPixelMapusv = C.PFNGLGETPIXELMAPUSV(loader(\"glGetPixelMapusv\"))\n C.pfn_glGetPolygonStipple = C.PFNGLGETPOLYGONSTIPPLE(loader(\"glGetPolygonStipple\"))\n C.pfn_glGetString = C.PFNGLGETSTRING(loader(\"glGetString\"))\n C.pfn_glGetTexEnvfv = C.PFNGLGETTEXENVFV(loader(\"glGetTexEnvfv\"))\n C.pfn_glGetTexEnviv = C.PFNGLGETTEXENVIV(loader(\"glGetTexEnviv\"))\n C.pfn_glGetTexGendv = C.PFNGLGETTEXGENDV(loader(\"glGetTexGendv\"))\n C.pfn_glGetTexGenfv = C.PFNGLGETTEXGENFV(loader(\"glGetTexGenfv\"))\n C.pfn_glGetTexGeniv = C.PFNGLGETTEXGENIV(loader(\"glGetTexGeniv\"))\n C.pfn_glGetTexImage = C.PFNGLGETTEXIMAGE(loader(\"glGetTexImage\"))\n C.pfn_glGetTexLevelParameterfv = C.PFNGLGETTEXLEVELPARAMETERFV(loader(\"glGetTexLevelParameterfv\"))\n C.pfn_glGetTexLevelParameteriv = C.PFNGLGETTEXLEVELPARAMETERIV(loader(\"glGetTexLevelParameteriv\"))\n C.pfn_glGetTexParameterfv = C.PFNGLGETTEXPARAMETERFV(loader(\"glGetTexParameterfv\"))\n C.pfn_glGetTexParameteriv = C.PFNGLGETTEXPARAMETERIV(loader(\"glGetTexParameteriv\"))\n C.pfn_glHint = C.PFNGLHINT(loader(\"glHint\"))\n C.pfn_glIndexMask = C.PFNGLINDEXMASK(loader(\"glIndexMask\"))\n C.pfn_glIndexd = C.PFNGLINDEXD(loader(\"glIndexd\"))\n C.pfn_glIndexdv = C.PFNGLINDEXDV(loader(\"glIndexdv\"))\n C.pfn_glIndexf = C.PFNGLINDEXF(loader(\"glIndexf\"))\n C.pfn_glIndexfv = C.PFNGLINDEXFV(loader(\"glIndexfv\"))\n C.pfn_glIndexi = C.PFNGLINDEXI(loader(\"glIndexi\"))\n C.pfn_glIndexiv = C.PFNGLINDEXIV(loader(\"glIndexiv\"))\n C.pfn_glIndexs = C.PFNGLINDEXS(loader(\"glIndexs\"))\n C.pfn_glIndexsv = C.PFNGLINDEXSV(loader(\"glIndexsv\"))\n C.pfn_glInitNames = C.PFNGLINITNAMES(loader(\"glInitNames\"))\n C.pfn_glIsEnabled = C.PFNGLISENABLED(loader(\"glIsEnabled\"))\n C.pfn_glIsList = C.PFNGLISLIST(loader(\"glIsList\"))\n C.pfn_glLightModelf = C.PFNGLLIGHTMODELF(loader(\"glLightModelf\"))\n C.pfn_glLightModelfv = C.PFNGLLIGHTMODELFV(loader(\"glLightModelfv\"))\n C.pfn_glLightModeli = C.PFNGLLIGHTMODELI(loader(\"glLightModeli\"))\n C.pfn_glLightModeliv = C.PFNGLLIGHTMODELIV(loader(\"glLightModeliv\"))\n C.pfn_glLightf = C.PFNGLLIGHTF(loader(\"glLightf\"))\n C.pfn_glLightfv = C.PFNGLLIGHTFV(loader(\"glLightfv\"))\n C.pfn_glLighti = C.PFNGLLIGHTI(loader(\"glLighti\"))\n C.pfn_glLightiv = C.PFNGLLIGHTIV(loader(\"glLightiv\"))\n C.pfn_glLineStipple = C.PFNGLLINESTIPPLE(loader(\"glLineStipple\"))\n C.pfn_glLineWidth = C.PFNGLLINEWIDTH(loader(\"glLineWidth\"))\n C.pfn_glListBase = C.PFNGLLISTBASE(loader(\"glListBase\"))\n C.pfn_glLoadIdentity = C.PFNGLLOADIDENTITY(loader(\"glLoadIdentity\"))\n C.pfn_glLoadMatrixd = C.PFNGLLOADMATRIXD(loader(\"glLoadMatrixd\"))\n C.pfn_glLoadMatrixf = C.PFNGLLOADMATRIXF(loader(\"glLoadMatrixf\"))\n C.pfn_glLoadName = C.PFNGLLOADNAME(loader(\"glLoadName\"))\n C.pfn_glLogicOp = C.PFNGLLOGICOP(loader(\"glLogicOp\"))\n C.pfn_glMap1d = C.PFNGLMAP1D(loader(\"glMap1d\"))\n C.pfn_glMap1f = C.PFNGLMAP1F(loader(\"glMap1f\"))\n C.pfn_glMap2d = C.PFNGLMAP2D(loader(\"glMap2d\"))\n C.pfn_glMap2f = C.PFNGLMAP2F(loader(\"glMap2f\"))\n C.pfn_glMapGrid1d = C.PFNGLMAPGRID1D(loader(\"glMapGrid1d\"))\n C.pfn_glMapGrid1f = C.PFNGLMAPGRID1F(loader(\"glMapGrid1f\"))\n C.pfn_glMapGrid2d = C.PFNGLMAPGRID2D(loader(\"glMapGrid2d\"))\n C.pfn_glMapGrid2f = C.PFNGLMAPGRID2F(loader(\"glMapGrid2f\"))\n C.pfn_glMaterialf = C.PFNGLMATERIALF(loader(\"glMaterialf\"))\n C.pfn_glMaterialfv = C.PFNGLMATERIALFV(loader(\"glMaterialfv\"))\n C.pfn_glMateriali = C.PFNGLMATERIALI(loader(\"glMateriali\"))\n C.pfn_glMaterialiv = C.PFNGLMATERIALIV(loader(\"glMaterialiv\"))\n C.pfn_glMatrixMode = C.PFNGLMATRIXMODE(loader(\"glMatrixMode\"))\n C.pfn_glMultMatrixd = C.PFNGLMULTMATRIXD(loader(\"glMultMatrixd\"))\n C.pfn_glMultMatrixf = C.PFNGLMULTMATRIXF(loader(\"glMultMatrixf\"))\n C.pfn_glNewList = C.PFNGLNEWLIST(loader(\"glNewList\"))\n C.pfn_glNormal3b = C.PFNGLNORMAL3B(loader(\"glNormal3b\"))\n C.pfn_glNormal3bv = C.PFNGLNORMAL3BV(loader(\"glNormal3bv\"))\n C.pfn_glNormal3d = C.PFNGLNORMAL3D(loader(\"glNormal3d\"))\n C.pfn_glNormal3dv = C.PFNGLNORMAL3DV(loader(\"glNormal3dv\"))\n C.pfn_glNormal3f = C.PFNGLNORMAL3F(loader(\"glNormal3f\"))\n C.pfn_glNormal3fv = C.PFNGLNORMAL3FV(loader(\"glNormal3fv\"))\n C.pfn_glNormal3i = C.PFNGLNORMAL3I(loader(\"glNormal3i\"))\n C.pfn_glNormal3iv = C.PFNGLNORMAL3IV(loader(\"glNormal3iv\"))\n C.pfn_glNormal3s = C.PFNGLNORMAL3S(loader(\"glNormal3s\"))\n C.pfn_glNormal3sv = C.PFNGLNORMAL3SV(loader(\"glNormal3sv\"))\n C.pfn_glOrtho = C.PFNGLORTHO(loader(\"glOrtho\"))\n C.pfn_glPassThrough = C.PFNGLPASSTHROUGH(loader(\"glPassThrough\"))\n C.pfn_glPixelMapfv = C.PFNGLPIXELMAPFV(loader(\"glPixelMapfv\"))\n C.pfn_glPixelMapuiv = C.PFNGLPIXELMAPUIV(loader(\"glPixelMapuiv\"))\n C.pfn_glPixelMapusv = C.PFNGLPIXELMAPUSV(loader(\"glPixelMapusv\"))\n C.pfn_glPixelStoref = C.PFNGLPIXELSTOREF(loader(\"glPixelStoref\"))\n C.pfn_glPixelStorei = C.PFNGLPIXELSTOREI(loader(\"glPixelStorei\"))\n C.pfn_glPixelTransferf = C.PFNGLPIXELTRANSFERF(loader(\"glPixelTransferf\"))\n C.pfn_glPixelTransferi = C.PFNGLPIXELTRANSFERI(loader(\"glPixelTransferi\"))\n C.pfn_glPixelZoom = C.PFNGLPIXELZOOM(loader(\"glPixelZoom\"))\n C.pfn_glPointSize = C.PFNGLPOINTSIZE(loader(\"glPointSize\"))\n C.pfn_glPolygonMode = C.PFNGLPOLYGONMODE(loader(\"glPolygonMode\"))\n C.pfn_glPolygonStipple = C.PFNGLPOLYGONSTIPPLE(loader(\"glPolygonStipple\"))\n C.pfn_glPopAttrib = C.PFNGLPOPATTRIB(loader(\"glPopAttrib\"))\n C.pfn_glPopMatrix = C.PFNGLPOPMATRIX(loader(\"glPopMatrix\"))\n C.pfn_glPopName = C.PFNGLPOPNAME(loader(\"glPopName\"))\n C.pfn_glPushAttrib = C.PFNGLPUSHATTRIB(loader(\"glPushAttrib\"))\n C.pfn_glPushMatrix = C.PFNGLPUSHMATRIX(loader(\"glPushMatrix\"))\n C.pfn_glPushName = C.PFNGLPUSHNAME(loader(\"glPushName\"))\n C.pfn_glRasterPos2d = C.PFNGLRASTERPOS2D(loader(\"glRasterPos2d\"))\n C.pfn_glRasterPos2dv = C.PFNGLRASTERPOS2DV(loader(\"glRasterPos2dv\"))\n C.pfn_glRasterPos2f = C.PFNGLRASTERPOS2F(loader(\"glRasterPos2f\"))\n C.pfn_glRasterPos2fv = C.PFNGLRASTERPOS2FV(loader(\"glRasterPos2fv\"))\n C.pfn_glRasterPos2i = C.PFNGLRASTERPOS2I(loader(\"glRasterPos2i\"))\n C.pfn_glRasterPos2iv = C.PFNGLRASTERPOS2IV(loader(\"glRasterPos2iv\"))\n C.pfn_glRasterPos2s = C.PFNGLRASTERPOS2S(loader(\"glRasterPos2s\"))\n C.pfn_glRasterPos2sv = C.PFNGLRASTERPOS2SV(loader(\"glRasterPos2sv\"))\n C.pfn_glRasterPos3d = C.PFNGLRASTERPOS3D(loader(\"glRasterPos3d\"))\n C.pfn_glRasterPos3dv = C.PFNGLRASTERPOS3DV(loader(\"glRasterPos3dv\"))\n C.pfn_glRasterPos3f = C.PFNGLRASTERPOS3F(loader(\"glRasterPos3f\"))\n C.pfn_glRasterPos3fv = C.PFNGLRASTERPOS3FV(loader(\"glRasterPos3fv\"))\n C.pfn_glRasterPos3i = C.PFNGLRASTERPOS3I(loader(\"glRasterPos3i\"))\n C.pfn_glRasterPos3iv = C.PFNGLRASTERPOS3IV(loader(\"glRasterPos3iv\"))\n C.pfn_glRasterPos3s = C.PFNGLRASTERPOS3S(loader(\"glRasterPos3s\"))\n C.pfn_glRasterPos3sv = C.PFNGLRASTERPOS3SV(loader(\"glRasterPos3sv\"))\n C.pfn_glRasterPos4d = C.PFNGLRASTERPOS4D(loader(\"glRasterPos4d\"))\n C.pfn_glRasterPos4dv = C.PFNGLRASTERPOS4DV(loader(\"glRasterPos4dv\"))\n C.pfn_glRasterPos4f = C.PFNGLRASTERPOS4F(loader(\"glRasterPos4f\"))\n C.pfn_glRasterPos4fv = C.PFNGLRASTERPOS4FV(loader(\"glRasterPos4fv\"))\n C.pfn_glRasterPos4i = C.PFNGLRASTERPOS4I(loader(\"glRasterPos4i\"))\n C.pfn_glRasterPos4iv = C.PFNGLRASTERPOS4IV(loader(\"glRasterPos4iv\"))\n C.pfn_glRasterPos4s = C.PFNGLRASTERPOS4S(loader(\"glRasterPos4s\"))\n C.pfn_glRasterPos4sv = C.PFNGLRASTERPOS4SV(loader(\"glRasterPos4sv\"))\n C.pfn_glReadBuffer = C.PFNGLREADBUFFER(loader(\"glReadBuffer\"))\n C.pfn_glReadPixels = C.PFNGLREADPIXELS(loader(\"glReadPixels\"))\n C.pfn_glRectd = C.PFNGLRECTD(loader(\"glRectd\"))\n C.pfn_glRectdv = C.PFNGLRECTDV(loader(\"glRectdv\"))\n C.pfn_glRectf = C.PFNGLRECTF(loader(\"glRectf\"))\n C.pfn_glRectfv = C.PFNGLRECTFV(loader(\"glRectfv\"))\n C.pfn_glRecti = C.PFNGLRECTI(loader(\"glRecti\"))\n C.pfn_glRectiv = C.PFNGLRECTIV(loader(\"glRectiv\"))\n C.pfn_glRects = C.PFNGLRECTS(loader(\"glRects\"))\n C.pfn_glRectsv = C.PFNGLRECTSV(loader(\"glRectsv\"))\n C.pfn_glRenderMode = C.PFNGLRENDERMODE(loader(\"glRenderMode\"))\n C.pfn_glRotated = C.PFNGLROTATED(loader(\"glRotated\"))\n C.pfn_glRotatef = C.PFNGLROTATEF(loader(\"glRotatef\"))\n C.pfn_glScaled = C.PFNGLSCALED(loader(\"glScaled\"))\n C.pfn_glScalef = C.PFNGLSCALEF(loader(\"glScalef\"))\n C.pfn_glScissor = C.PFNGLSCISSOR(loader(\"glScissor\"))\n C.pfn_glSelectBuffer = C.PFNGLSELECTBUFFER(loader(\"glSelectBuffer\"))\n C.pfn_glShadeModel = C.PFNGLSHADEMODEL(loader(\"glShadeModel\"))\n C.pfn_glStencilFunc = C.PFNGLSTENCILFUNC(loader(\"glStencilFunc\"))\n C.pfn_glStencilMask = C.PFNGLSTENCILMASK(loader(\"glStencilMask\"))\n C.pfn_glStencilOp = C.PFNGLSTENCILOP(loader(\"glStencilOp\"))\n C.pfn_glTexCoord1d = C.PFNGLTEXCOORD1D(loader(\"glTexCoord1d\"))\n C.pfn_glTexCoord1dv = C.PFNGLTEXCOORD1DV(loader(\"glTexCoord1dv\"))\n C.pfn_glTexCoord1f = C.PFNGLTEXCOORD1F(loader(\"glTexCoord1f\"))\n C.pfn_glTexCoord1fv = C.PFNGLTEXCOORD1FV(loader(\"glTexCoord1fv\"))\n C.pfn_glTexCoord1i = C.PFNGLTEXCOORD1I(loader(\"glTexCoord1i\"))\n C.pfn_glTexCoord1iv = C.PFNGLTEXCOORD1IV(loader(\"glTexCoord1iv\"))\n C.pfn_glTexCoord1s = C.PFNGLTEXCOORD1S(loader(\"glTexCoord1s\"))\n C.pfn_glTexCoord1sv = C.PFNGLTEXCOORD1SV(loader(\"glTexCoord1sv\"))\n C.pfn_glTexCoord2d = C.PFNGLTEXCOORD2D(loader(\"glTexCoord2d\"))\n C.pfn_glTexCoord2dv = C.PFNGLTEXCOORD2DV(loader(\"glTexCoord2dv\"))\n C.pfn_glTexCoord2f = C.PFNGLTEXCOORD2F(loader(\"glTexCoord2f\"))\n C.pfn_glTexCoord2fv = C.PFNGLTEXCOORD2FV(loader(\"glTexCoord2fv\"))\n C.pfn_glTexCoord2i = C.PFNGLTEXCOORD2I(loader(\"glTexCoord2i\"))\n C.pfn_glTexCoord2iv = C.PFNGLTEXCOORD2IV(loader(\"glTexCoord2iv\"))\n C.pfn_glTexCoord2s = C.PFNGLTEXCOORD2S(loader(\"glTexCoord2s\"))\n C.pfn_glTexCoord2sv = C.PFNGLTEXCOORD2SV(loader(\"glTexCoord2sv\"))\n C.pfn_glTexCoord3d = C.PFNGLTEXCOORD3D(loader(\"glTexCoord3d\"))\n C.pfn_glTexCoord3dv = C.PFNGLTEXCOORD3DV(loader(\"glTexCoord3dv\"))\n C.pfn_glTexCoord3f = C.PFNGLTEXCOORD3F(loader(\"glTexCoord3f\"))\n C.pfn_glTexCoord3fv = C.PFNGLTEXCOORD3FV(loader(\"glTexCoord3fv\"))\n C.pfn_glTexCoord3i = C.PFNGLTEXCOORD3I(loader(\"glTexCoord3i\"))\n C.pfn_glTexCoord3iv = C.PFNGLTEXCOORD3IV(loader(\"glTexCoord3iv\"))\n C.pfn_glTexCoord3s = C.PFNGLTEXCOORD3S(loader(\"glTexCoord3s\"))\n C.pfn_glTexCoord3sv = C.PFNGLTEXCOORD3SV(loader(\"glTexCoord3sv\"))\n C.pfn_glTexCoord4d = C.PFNGLTEXCOORD4D(loader(\"glTexCoord4d\"))\n C.pfn_glTexCoord4dv = C.PFNGLTEXCOORD4DV(loader(\"glTexCoord4dv\"))\n C.pfn_glTexCoord4f = C.PFNGLTEXCOORD4F(loader(\"glTexCoord4f\"))\n C.pfn_glTexCoord4fv = C.PFNGLTEXCOORD4FV(loader(\"glTexCoord4fv\"))\n C.pfn_glTexCoord4i = C.PFNGLTEXCOORD4I(loader(\"glTexCoord4i\"))\n C.pfn_glTexCoord4iv = C.PFNGLTEXCOORD4IV(loader(\"glTexCoord4iv\"))\n C.pfn_glTexCoord4s = C.PFNGLTEXCOORD4S(loader(\"glTexCoord4s\"))\n C.pfn_glTexCoord4sv = C.PFNGLTEXCOORD4SV(loader(\"glTexCoord4sv\"))\n C.pfn_glTexEnvf = C.PFNGLTEXENVF(loader(\"glTexEnvf\"))\n C.pfn_glTexEnvfv = C.PFNGLTEXENVFV(loader(\"glTexEnvfv\"))\n C.pfn_glTexEnvi = C.PFNGLTEXENVI(loader(\"glTexEnvi\"))\n C.pfn_glTexEnviv = C.PFNGLTEXENVIV(loader(\"glTexEnviv\"))\n C.pfn_glTexGend = C.PFNGLTEXGEND(loader(\"glTexGend\"))\n C.pfn_glTexGendv = C.PFNGLTEXGENDV(loader(\"glTexGendv\"))\n C.pfn_glTexGenf = C.PFNGLTEXGENF(loader(\"glTexGenf\"))\n C.pfn_glTexGenfv = C.PFNGLTEXGENFV(loader(\"glTexGenfv\"))\n C.pfn_glTexGeni = C.PFNGLTEXGENI(loader(\"glTexGeni\"))\n C.pfn_glTexGeniv = C.PFNGLTEXGENIV(loader(\"glTexGeniv\"))\n C.pfn_glTexImage1D = C.PFNGLTEXIMAGE1D(loader(\"glTexImage1D\"))\n C.pfn_glTexImage2D = C.PFNGLTEXIMAGE2D(loader(\"glTexImage2D\"))\n C.pfn_glTexParameterf = C.PFNGLTEXPARAMETERF(loader(\"glTexParameterf\"))\n C.pfn_glTexParameterfv = C.PFNGLTEXPARAMETERFV(loader(\"glTexParameterfv\"))\n C.pfn_glTexParameteri = C.PFNGLTEXPARAMETERI(loader(\"glTexParameteri\"))\n C.pfn_glTexParameteriv = C.PFNGLTEXPARAMETERIV(loader(\"glTexParameteriv\"))\n C.pfn_glTranslated = C.PFNGLTRANSLATED(loader(\"glTranslated\"))\n C.pfn_glTranslatef = C.PFNGLTRANSLATEF(loader(\"glTranslatef\"))\n C.pfn_glVertex2d = C.PFNGLVERTEX2D(loader(\"glVertex2d\"))\n C.pfn_glVertex2dv = C.PFNGLVERTEX2DV(loader(\"glVertex2dv\"))\n C.pfn_glVertex2f = C.PFNGLVERTEX2F(loader(\"glVertex2f\"))\n C.pfn_glVertex2fv = C.PFNGLVERTEX2FV(loader(\"glVertex2fv\"))\n C.pfn_glVertex2i = C.PFNGLVERTEX2I(loader(\"glVertex2i\"))\n C.pfn_glVertex2iv = C.PFNGLVERTEX2IV(loader(\"glVertex2iv\"))\n C.pfn_glVertex2s = C.PFNGLVERTEX2S(loader(\"glVertex2s\"))\n C.pfn_glVertex2sv = C.PFNGLVERTEX2SV(loader(\"glVertex2sv\"))\n C.pfn_glVertex3d = C.PFNGLVERTEX3D(loader(\"glVertex3d\"))\n C.pfn_glVertex3dv = C.PFNGLVERTEX3DV(loader(\"glVertex3dv\"))\n C.pfn_glVertex3f = C.PFNGLVERTEX3F(loader(\"glVertex3f\"))\n C.pfn_glVertex3fv = C.PFNGLVERTEX3FV(loader(\"glVertex3fv\"))\n C.pfn_glVertex3i = C.PFNGLVERTEX3I(loader(\"glVertex3i\"))\n C.pfn_glVertex3iv = C.PFNGLVERTEX3IV(loader(\"glVertex3iv\"))\n C.pfn_glVertex3s = C.PFNGLVERTEX3S(loader(\"glVertex3s\"))\n C.pfn_glVertex3sv = C.PFNGLVERTEX3SV(loader(\"glVertex3sv\"))\n C.pfn_glVertex4d = C.PFNGLVERTEX4D(loader(\"glVertex4d\"))\n C.pfn_glVertex4dv = C.PFNGLVERTEX4DV(loader(\"glVertex4dv\"))\n C.pfn_glVertex4f = C.PFNGLVERTEX4F(loader(\"glVertex4f\"))\n C.pfn_glVertex4fv = C.PFNGLVERTEX4FV(loader(\"glVertex4fv\"))\n C.pfn_glVertex4i = C.PFNGLVERTEX4I(loader(\"glVertex4i\"))\n C.pfn_glVertex4iv = C.PFNGLVERTEX4IV(loader(\"glVertex4iv\"))\n C.pfn_glVertex4s = C.PFNGLVERTEX4S(loader(\"glVertex4s\"))\n C.pfn_glVertex4sv = C.PFNGLVERTEX4SV(loader(\"glVertex4sv\"))\n C.pfn_glViewport = C.PFNGLVIEWPORT(loader(\"glViewport\"))\n\n // OpenGL 1.1\n if !ver.GE(OpenGL, 1, 1) {\n return\n }\n C.pfn_glAreTexturesResident = C.PFNGLARETEXTURESRESIDENT(loader(\"glAreTexturesResident\"))\n C.pfn_glArrayElement = C.PFNGLARRAYELEMENT(loader(\"glArrayElement\"))\n C.pfn_glBindTexture = C.PFNGLBINDTEXTURE(loader(\"glBindTexture\"))\n C.pfn_glColorPointer = C.PFNGLCOLORPOINTER(loader(\"glColorPointer\"))\n C.pfn_glCopyTexImage1D = C.PFNGLCOPYTEXIMAGE1D(loader(\"glCopyTexImage1D\"))\n C.pfn_glCopyTexImage2D = C.PFNGLCOPYTEXIMAGE2D(loader(\"glCopyTexImage2D\"))\n C.pfn_glCopyTexSubImage1D = C.PFNGLCOPYTEXSUBIMAGE1D(loader(\"glCopyTexSubImage1D\"))\n C.pfn_glCopyTexSubImage2D = C.PFNGLCOPYTEXSUBIMAGE2D(loader(\"glCopyTexSubImage2D\"))\n C.pfn_glDeleteTextures = C.PFNGLDELETETEXTURES(loader(\"glDeleteTextures\"))\n C.pfn_glDisableClientState = C.PFNGLDISABLECLIENTSTATE(loader(\"glDisableClientState\"))\n C.pfn_glDrawArrays = C.PFNGLDRAWARRAYS(loader(\"glDrawArrays\"))\n C.pfn_glDrawElements = C.PFNGLDRAWELEMENTS(loader(\"glDrawElements\"))\n C.pfn_glEdgeFlagPointer = C.PFNGLEDGEFLAGPOINTER(loader(\"glEdgeFlagPointer\"))\n C.pfn_glEnableClientState = C.PFNGLENABLECLIENTSTATE(loader(\"glEnableClientState\"))\n C.pfn_glGenTextures = C.PFNGLGENTEXTURES(loader(\"glGenTextures\"))\n C.pfn_glGetPointerv = C.PFNGLGETPOINTERV(loader(\"glGetPointerv\"))\n C.pfn_glIndexPointer = C.PFNGLINDEXPOINTER(loader(\"glIndexPointer\"))\n C.pfn_glIndexub = C.PFNGLINDEXUB(loader(\"glIndexub\"))\n C.pfn_glIndexubv = C.PFNGLINDEXUBV(loader(\"glIndexubv\"))\n C.pfn_glInterleavedArrays = C.PFNGLINTERLEAVEDARRAYS(loader(\"glInterleavedArrays\"))\n C.pfn_glIsTexture = C.PFNGLISTEXTURE(loader(\"glIsTexture\"))\n C.pfn_glNormalPointer = C.PFNGLNORMALPOINTER(loader(\"glNormalPointer\"))\n C.pfn_glPolygonOffset = C.PFNGLPOLYGONOFFSET(loader(\"glPolygonOffset\"))\n C.pfn_glPopClientAttrib = C.PFNGLPOPCLIENTATTRIB(loader(\"glPopClientAttrib\"))\n C.pfn_glPrioritizeTextures = C.PFNGLPRIORITIZETEXTURES(loader(\"glPrioritizeTextures\"))\n C.pfn_glPushClientAttrib = C.PFNGLPUSHCLIENTATTRIB(loader(\"glPushClientAttrib\"))\n C.pfn_glTexCoordPointer = C.PFNGLTEXCOORDPOINTER(loader(\"glTexCoordPointer\"))\n C.pfn_glTexSubImage1D = C.PFNGLTEXSUBIMAGE1D(loader(\"glTexSubImage1D\"))\n C.pfn_glTexSubImage2D = C.PFNGLTEXSUBIMAGE2D(loader(\"glTexSubImage2D\"))\n C.pfn_glVertexPointer = C.PFNGLVERTEXPOINTER(loader(\"glVertexPointer\"))\n\n // OpenGL 1.2\n if !ver.GE(OpenGL, 1, 2) {\n return\n }\n C.pfn_glCopyTexSubImage3D = C.PFNGLCOPYTEXSUBIMAGE3D(loader(\"glCopyTexSubImage3D\"))\n C.pfn_glDrawRangeElements = C.PFNGLDRAWRANGEELEMENTS(loader(\"glDrawRangeElements\"))\n C.pfn_glTexImage3D = C.PFNGLTEXIMAGE3D(loader(\"glTexImage3D\"))\n C.pfn_glTexSubImage3D = C.PFNGLTEXSUBIMAGE3D(loader(\"glTexSubImage3D\"))\n\n // OpenGL 1.3\n if !ver.GE(OpenGL, 1, 3) {\n return\n }\n C.pfn_glActiveTexture = C.PFNGLACTIVETEXTURE(loader(\"glActiveTexture\"))\n C.pfn_glClientActiveTexture = C.PFNGLCLIENTACTIVETEXTURE(loader(\"glClientActiveTexture\"))\n C.pfn_glCompressedTexImage1D = C.PFNGLCOMPRESSEDTEXIMAGE1D(loader(\"glCompressedTexImage1D\"))\n C.pfn_glCompressedTexImage2D = C.PFNGLCOMPRESSEDTEXIMAGE2D(loader(\"glCompressedTexImage2D\"))\n C.pfn_glCompressedTexImage3D = C.PFNGLCOMPRESSEDTEXIMAGE3D(loader(\"glCompressedTexImage3D\"))\n C.pfn_glCompressedTexSubImage1D = C.PFNGLCOMPRESSEDTEXSUBIMAGE1D(loader(\"glCompressedTexSubImage1D\"))\n C.pfn_glCompressedTexSubImage2D = C.PFNGLCOMPRESSEDTEXSUBIMAGE2D(loader(\"glCompressedTexSubImage2D\"))\n C.pfn_glCompressedTexSubImage3D = C.PFNGLCOMPRESSEDTEXSUBIMAGE3D(loader(\"glCompressedTexSubImage3D\"))\n C.pfn_glGetCompressedTexImage = C.PFNGLGETCOMPRESSEDTEXIMAGE(loader(\"glGetCompressedTexImage\"))\n C.pfn_glLoadTransposeMatrixd = C.PFNGLLOADTRANSPOSEMATRIXD(loader(\"glLoadTransposeMatrixd\"))\n C.pfn_glLoadTransposeMatrixf = C.PFNGLLOADTRANSPOSEMATRIXF(loader(\"glLoadTransposeMatrixf\"))\n C.pfn_glMultTransposeMatrixd = C.PFNGLMULTTRANSPOSEMATRIXD(loader(\"glMultTransposeMatrixd\"))\n C.pfn_glMultTransposeMatrixf = C.PFNGLMULTTRANSPOSEMATRIXF(loader(\"glMultTransposeMatrixf\"))\n C.pfn_glMultiTexCoord1d = C.PFNGLMULTITEXCOORD1D(loader(\"glMultiTexCoord1d\"))\n C.pfn_glMultiTexCoord1dv = C.PFNGLMULTITEXCOORD1DV(loader(\"glMultiTexCoord1dv\"))\n C.pfn_glMultiTexCoord1f = C.PFNGLMULTITEXCOORD1F(loader(\"glMultiTexCoord1f\"))\n C.pfn_glMultiTexCoord1fv = C.PFNGLMULTITEXCOORD1FV(loader(\"glMultiTexCoord1fv\"))\n C.pfn_glMultiTexCoord1i = C.PFNGLMULTITEXCOORD1I(loader(\"glMultiTexCoord1i\"))\n C.pfn_glMultiTexCoord1iv = C.PFNGLMULTITEXCOORD1IV(loader(\"glMultiTexCoord1iv\"))\n C.pfn_glMultiTexCoord1s = C.PFNGLMULTITEXCOORD1S(loader(\"glMultiTexCoord1s\"))\n C.pfn_glMultiTexCoord1sv = C.PFNGLMULTITEXCOORD1SV(loader(\"glMultiTexCoord1sv\"))\n C.pfn_glMultiTexCoord2d = C.PFNGLMULTITEXCOORD2D(loader(\"glMultiTexCoord2d\"))\n C.pfn_glMultiTexCoord2dv = C.PFNGLMULTITEXCOORD2DV(loader(\"glMultiTexCoord2dv\"))\n C.pfn_glMultiTexCoord2f = C.PFNGLMULTITEXCOORD2F(loader(\"glMultiTexCoord2f\"))\n C.pfn_glMultiTexCoord2fv = C.PFNGLMULTITEXCOORD2FV(loader(\"glMultiTexCoord2fv\"))\n C.pfn_glMultiTexCoord2i = C.PFNGLMULTITEXCOORD2I(loader(\"glMultiTexCoord2i\"))\n C.pfn_glMultiTexCoord2iv = C.PFNGLMULTITEXCOORD2IV(loader(\"glMultiTexCoord2iv\"))\n C.pfn_glMultiTexCoord2s = C.PFNGLMULTITEXCOORD2S(loader(\"glMultiTexCoord2s\"))\n C.pfn_glMultiTexCoord2sv = C.PFNGLMULTITEXCOORD2SV(loader(\"glMultiTexCoord2sv\"))\n C.pfn_glMultiTexCoord3d = C.PFNGLMULTITEXCOORD3D(loader(\"glMultiTexCoord3d\"))\n C.pfn_glMultiTexCoord3dv = C.PFNGLMULTITEXCOORD3DV(loader(\"glMultiTexCoord3dv\"))\n C.pfn_glMultiTexCoord3f = C.PFNGLMULTITEXCOORD3F(loader(\"glMultiTexCoord3f\"))\n C.pfn_glMultiTexCoord3fv = C.PFNGLMULTITEXCOORD3FV(loader(\"glMultiTexCoord3fv\"))\n C.pfn_glMultiTexCoord3i = C.PFNGLMULTITEXCOORD3I(loader(\"glMultiTexCoord3i\"))\n C.pfn_glMultiTexCoord3iv = C.PFNGLMULTITEXCOORD3IV(loader(\"glMultiTexCoord3iv\"))\n C.pfn_glMultiTexCoord3s = C.PFNGLMULTITEXCOORD3S(loader(\"glMultiTexCoord3s\"))\n C.pfn_glMultiTexCoord3sv = C.PFNGLMULTITEXCOORD3SV(loader(\"glMultiTexCoord3sv\"))\n C.pfn_glMultiTexCoord4d = C.PFNGLMULTITEXCOORD4D(loader(\"glMultiTexCoord4d\"))\n C.pfn_glMultiTexCoord4dv = C.PFNGLMULTITEXCOORD4DV(loader(\"glMultiTexCoord4dv\"))\n C.pfn_glMultiTexCoord4f = C.PFNGLMULTITEXCOORD4F(loader(\"glMultiTexCoord4f\"))\n C.pfn_glMultiTexCoord4fv = C.PFNGLMULTITEXCOORD4FV(loader(\"glMultiTexCoord4fv\"))\n C.pfn_glMultiTexCoord4i = C.PFNGLMULTITEXCOORD4I(loader(\"glMultiTexCoord4i\"))\n C.pfn_glMultiTexCoord4iv = C.PFNGLMULTITEXCOORD4IV(loader(\"glMultiTexCoord4iv\"))\n C.pfn_glMultiTexCoord4s = C.PFNGLMULTITEXCOORD4S(loader(\"glMultiTexCoord4s\"))\n C.pfn_glMultiTexCoord4sv = C.PFNGLMULTITEXCOORD4SV(loader(\"glMultiTexCoord4sv\"))\n C.pfn_glSampleCoverage = C.PFNGLSAMPLECOVERAGE(loader(\"glSampleCoverage\"))\n\n // OpenGL 1.4\n if !ver.GE(OpenGL, 1, 4) {\n return\n }\n C.pfn_glBlendColor = C.PFNGLBLENDCOLOR(loader(\"glBlendColor\"))\n C.pfn_glBlendEquation = C.PFNGLBLENDEQUATION(loader(\"glBlendEquation\"))\n C.pfn_glBlendFuncSeparate = C.PFNGLBLENDFUNCSEPARATE(loader(\"glBlendFuncSeparate\"))\n C.pfn_glFogCoordPointer = C.PFNGLFOGCOORDPOINTER(loader(\"glFogCoordPointer\"))\n C.pfn_glFogCoordd = C.PFNGLFOGCOORDD(loader(\"glFogCoordd\"))\n C.pfn_glFogCoorddv = C.PFNGLFOGCOORDDV(loader(\"glFogCoorddv\"))\n C.pfn_glFogCoordf = C.PFNGLFOGCOORDF(loader(\"glFogCoordf\"))\n C.pfn_glFogCoordfv = C.PFNGLFOGCOORDFV(loader(\"glFogCoordfv\"))\n C.pfn_glMultiDrawArrays = C.PFNGLMULTIDRAWARRAYS(loader(\"glMultiDrawArrays\"))\n C.pfn_glMultiDrawElements = C.PFNGLMULTIDRAWELEMENTS(loader(\"glMultiDrawElements\"))\n C.pfn_glPointParameterf = C.PFNGLPOINTPARAMETERF(loader(\"glPointParameterf\"))\n C.pfn_glPointParameterfv = C.PFNGLPOINTPARAMETERFV(loader(\"glPointParameterfv\"))\n C.pfn_glPointParameteri = C.PFNGLPOINTPARAMETERI(loader(\"glPointParameteri\"))\n C.pfn_glPointParameteriv = C.PFNGLPOINTPARAMETERIV(loader(\"glPointParameteriv\"))\n C.pfn_glSecondaryColor3b = C.PFNGLSECONDARYCOLOR3B(loader(\"glSecondaryColor3b\"))\n C.pfn_glSecondaryColor3bv = C.PFNGLSECONDARYCOLOR3BV(loader(\"glSecondaryColor3bv\"))\n C.pfn_glSecondaryColor3d = C.PFNGLSECONDARYCOLOR3D(loader(\"glSecondaryColor3d\"))\n C.pfn_glSecondaryColor3dv = C.PFNGLSECONDARYCOLOR3DV(loader(\"glSecondaryColor3dv\"))\n C.pfn_glSecondaryColor3f = C.PFNGLSECONDARYCOLOR3F(loader(\"glSecondaryColor3f\"))\n C.pfn_glSecondaryColor3fv = C.PFNGLSECONDARYCOLOR3FV(loader(\"glSecondaryColor3fv\"))\n C.pfn_glSecondaryColor3i = C.PFNGLSECONDARYCOLOR3I(loader(\"glSecondaryColor3i\"))\n C.pfn_glSecondaryColor3iv = C.PFNGLSECONDARYCOLOR3IV(loader(\"glSecondaryColor3iv\"))\n C.pfn_glSecondaryColor3s = C.PFNGLSECONDARYCOLOR3S(loader(\"glSecondaryColor3s\"))\n C.pfn_glSecondaryColor3sv = C.PFNGLSECONDARYCOLOR3SV(loader(\"glSecondaryColor3sv\"))\n C.pfn_glSecondaryColor3ub = C.PFNGLSECONDARYCOLOR3UB(loader(\"glSecondaryColor3ub\"))\n C.pfn_glSecondaryColor3ubv = C.PFNGLSECONDARYCOLOR3UBV(loader(\"glSecondaryColor3ubv\"))\n C.pfn_glSecondaryColor3ui = C.PFNGLSECONDARYCOLOR3UI(loader(\"glSecondaryColor3ui\"))\n C.pfn_glSecondaryColor3uiv = C.PFNGLSECONDARYCOLOR3UIV(loader(\"glSecondaryColor3uiv\"))\n C.pfn_glSecondaryColor3us = C.PFNGLSECONDARYCOLOR3US(loader(\"glSecondaryColor3us\"))\n C.pfn_glSecondaryColor3usv = C.PFNGLSECONDARYCOLOR3USV(loader(\"glSecondaryColor3usv\"))\n C.pfn_glSecondaryColorPointer = C.PFNGLSECONDARYCOLORPOINTER(loader(\"glSecondaryColorPointer\"))\n C.pfn_glWindowPos2d = C.PFNGLWINDOWPOS2D(loader(\"glWindowPos2d\"))\n C.pfn_glWindowPos2dv = C.PFNGLWINDOWPOS2DV(loader(\"glWindowPos2dv\"))\n C.pfn_glWindowPos2f = C.PFNGLWINDOWPOS2F(loader(\"glWindowPos2f\"))\n C.pfn_glWindowPos2fv = C.PFNGLWINDOWPOS2FV(loader(\"glWindowPos2fv\"))\n C.pfn_glWindowPos2i = C.PFNGLWINDOWPOS2I(loader(\"glWindowPos2i\"))\n C.pfn_glWindowPos2iv = C.PFNGLWINDOWPOS2IV(loader(\"glWindowPos2iv\"))\n C.pfn_glWindowPos2s = C.PFNGLWINDOWPOS2S(loader(\"glWindowPos2s\"))\n C.pfn_glWindowPos2sv = C.PFNGLWINDOWPOS2SV(loader(\"glWindowPos2sv\"))\n C.pfn_glWindowPos3d = C.PFNGLWINDOWPOS3D(loader(\"glWindowPos3d\"))\n C.pfn_glWindowPos3dv = C.PFNGLWINDOWPOS3DV(loader(\"glWindowPos3dv\"))\n C.pfn_glWindowPos3f = C.PFNGLWINDOWPOS3F(loader(\"glWindowPos3f\"))\n C.pfn_glWindowPos3fv = C.PFNGLWINDOWPOS3FV(loader(\"glWindowPos3fv\"))\n C.pfn_glWindowPos3i = C.PFNGLWINDOWPOS3I(loader(\"glWindowPos3i\"))\n C.pfn_glWindowPos3iv = C.PFNGLWINDOWPOS3IV(loader(\"glWindowPos3iv\"))\n C.pfn_glWindowPos3s = C.PFNGLWINDOWPOS3S(loader(\"glWindowPos3s\"))\n C.pfn_glWindowPos3sv = C.PFNGLWINDOWPOS3SV(loader(\"glWindowPos3sv\"))\n\n // OpenGL 1.5\n if !ver.GE(OpenGL, 1, 5) {\n return\n }\n C.pfn_glBeginQuery = C.PFNGLBEGINQUERY(loader(\"glBeginQuery\"))\n C.pfn_glBindBuffer = C.PFNGLBINDBUFFER(loader(\"glBindBuffer\"))\n C.pfn_glBufferData = C.PFNGLBUFFERDATA(loader(\"glBufferData\"))\n C.pfn_glBufferSubData = C.PFNGLBUFFERSUBDATA(loader(\"glBufferSubData\"))\n C.pfn_glDeleteBuffers = C.PFNGLDELETEBUFFERS(loader(\"glDeleteBuffers\"))\n C.pfn_glDeleteQueries = C.PFNGLDELETEQUERIES(loader(\"glDeleteQueries\"))\n C.pfn_glEndQuery = C.PFNGLENDQUERY(loader(\"glEndQuery\"))\n C.pfn_glGenBuffers = C.PFNGLGENBUFFERS(loader(\"glGenBuffers\"))\n C.pfn_glGenQueries = C.PFNGLGENQUERIES(loader(\"glGenQueries\"))\n C.pfn_glGetBufferParameteriv = C.PFNGLGETBUFFERPARAMETERIV(loader(\"glGetBufferParameteriv\"))\n C.pfn_glGetBufferPointerv = C.PFNGLGETBUFFERPOINTERV(loader(\"glGetBufferPointerv\"))\n C.pfn_glGetBufferSubData = C.PFNGLGETBUFFERSUBDATA(loader(\"glGetBufferSubData\"))\n C.pfn_glGetQueryObjectiv = C.PFNGLGETQUERYOBJECTIV(loader(\"glGetQueryObjectiv\"))\n C.pfn_glGetQueryObjectuiv = C.PFNGLGETQUERYOBJECTUIV(loader(\"glGetQueryObjectuiv\"))\n C.pfn_glGetQueryiv = C.PFNGLGETQUERYIV(loader(\"glGetQueryiv\"))\n C.pfn_glIsBuffer = C.PFNGLISBUFFER(loader(\"glIsBuffer\"))\n C.pfn_glIsQuery = C.PFNGLISQUERY(loader(\"glIsQuery\"))\n C.pfn_glMapBuffer = C.PFNGLMAPBUFFER(loader(\"glMapBuffer\"))\n C.pfn_glUnmapBuffer = C.PFNGLUNMAPBUFFER(loader(\"glUnmapBuffer\"))\n\n // OpenGL 2.0\n if !ver.GE(OpenGL, 2, 0) {\n return\n }\n C.pfn_glAttachShader = C.PFNGLATTACHSHADER(loader(\"glAttachShader\"))\n C.pfn_glBindAttribLocation = C.PFNGLBINDATTRIBLOCATION(loader(\"glBindAttribLocation\"))\n C.pfn_glBlendEquationSeparate = C.PFNGLBLENDEQUATIONSEPARATE(loader(\"glBlendEquationSeparate\"))\n C.pfn_glCompileShader = C.PFNGLCOMPILESHADER(loader(\"glCompileShader\"))\n C.pfn_glCreateProgram = C.PFNGLCREATEPROGRAM(loader(\"glCreateProgram\"))\n C.pfn_glCreateShader = C.PFNGLCREATESHADER(loader(\"glCreateShader\"))\n C.pfn_glDeleteProgram = C.PFNGLDELETEPROGRAM(loader(\"glDeleteProgram\"))\n C.pfn_glDeleteShader = C.PFNGLDELETESHADER(loader(\"glDeleteShader\"))\n C.pfn_glDetachShader = C.PFNGLDETACHSHADER(loader(\"glDetachShader\"))\n C.pfn_glDisableVertexAttribArray = C.PFNGLDISABLEVERTEXATTRIBARRAY(loader(\"glDisableVertexAttribArray\"))\n C.pfn_glDrawBuffers = C.PFNGLDRAWBUFFERS(loader(\"glDrawBuffers\"))\n C.pfn_glEnableVertexAttribArray = C.PFNGLENABLEVERTEXATTRIBARRAY(loader(\"glEnableVertexAttribArray\"))\n C.pfn_glGetActiveAttrib = C.PFNGLGETACTIVEATTRIB(loader(\"glGetActiveAttrib\"))\n C.pfn_glGetActiveUniform = C.PFNGLGETACTIVEUNIFORM(loader(\"glGetActiveUniform\"))\n C.pfn_glGetAttachedShaders = C.PFNGLGETATTACHEDSHADERS(loader(\"glGetAttachedShaders\"))\n C.pfn_glGetAttribLocation = C.PFNGLGETATTRIBLOCATION(loader(\"glGetAttribLocation\"))\n C.pfn_glGetProgramInfoLog = C.PFNGLGETPROGRAMINFOLOG(loader(\"glGetProgramInfoLog\"))\n C.pfn_glGetProgramiv = C.PFNGLGETPROGRAMIV(loader(\"glGetProgramiv\"))\n C.pfn_glGetShaderInfoLog = C.PFNGLGETSHADERINFOLOG(loader(\"glGetShaderInfoLog\"))\n C.pfn_glGetShaderSource = C.PFNGLGETSHADERSOURCE(loader(\"glGetShaderSource\"))\n C.pfn_glGetShaderiv = C.PFNGLGETSHADERIV(loader(\"glGetShaderiv\"))\n C.pfn_glGetUniformLocation = C.PFNGLGETUNIFORMLOCATION(loader(\"glGetUniformLocation\"))\n C.pfn_glGetUniformfv = C.PFNGLGETUNIFORMFV(loader(\"glGetUniformfv\"))\n C.pfn_glGetUniformiv = C.PFNGLGETUNIFORMIV(loader(\"glGetUniformiv\"))\n C.pfn_glGetVertexAttribPointerv = C.PFNGLGETVERTEXATTRIBPOINTERV(loader(\"glGetVertexAttribPointerv\"))\n C.pfn_glGetVertexAttribdv = C.PFNGLGETVERTEXATTRIBDV(loader(\"glGetVertexAttribdv\"))\n C.pfn_glGetVertexAttribfv = C.PFNGLGETVERTEXATTRIBFV(loader(\"glGetVertexAttribfv\"))\n C.pfn_glGetVertexAttribiv = C.PFNGLGETVERTEXATTRIBIV(loader(\"glGetVertexAttribiv\"))\n C.pfn_glIsProgram = C.PFNGLISPROGRAM(loader(\"glIsProgram\"))\n C.pfn_glIsShader = C.PFNGLISSHADER(loader(\"glIsShader\"))\n C.pfn_glLinkProgram = C.PFNGLLINKPROGRAM(loader(\"glLinkProgram\"))\n C.pfn_glShaderSource = C.PFNGLSHADERSOURCE(loader(\"glShaderSource\"))\n C.pfn_glStencilFuncSeparate = C.PFNGLSTENCILFUNCSEPARATE(loader(\"glStencilFuncSeparate\"))\n C.pfn_glStencilMaskSeparate = C.PFNGLSTENCILMASKSEPARATE(loader(\"glStencilMaskSeparate\"))\n C.pfn_glStencilOpSeparate = C.PFNGLSTENCILOPSEPARATE(loader(\"glStencilOpSeparate\"))\n C.pfn_glUniform1f = C.PFNGLUNIFORM1F(loader(\"glUniform1f\"))\n C.pfn_glUniform1fv = C.PFNGLUNIFORM1FV(loader(\"glUniform1fv\"))\n C.pfn_glUniform1i = C.PFNGLUNIFORM1I(loader(\"glUniform1i\"))\n C.pfn_glUniform1iv = C.PFNGLUNIFORM1IV(loader(\"glUniform1iv\"))\n C.pfn_glUniform2f = C.PFNGLUNIFORM2F(loader(\"glUniform2f\"))\n C.pfn_glUniform2fv = C.PFNGLUNIFORM2FV(loader(\"glUniform2fv\"))\n C.pfn_glUniform2i = C.PFNGLUNIFORM2I(loader(\"glUniform2i\"))\n C.pfn_glUniform2iv = C.PFNGLUNIFORM2IV(loader(\"glUniform2iv\"))\n C.pfn_glUniform3f = C.PFNGLUNIFORM3F(loader(\"glUniform3f\"))\n C.pfn_glUniform3fv = C.PFNGLUNIFORM3FV(loader(\"glUniform3fv\"))\n C.pfn_glUniform3i = C.PFNGLUNIFORM3I(loader(\"glUniform3i\"))\n C.pfn_glUniform3iv = C.PFNGLUNIFORM3IV(loader(\"glUniform3iv\"))\n C.pfn_glUniform4f = C.PFNGLUNIFORM4F(loader(\"glUniform4f\"))\n C.pfn_glUniform4fv = C.PFNGLUNIFORM4FV(loader(\"glUniform4fv\"))\n C.pfn_glUniform4i = C.PFNGLUNIFORM4I(loader(\"glUniform4i\"))\n C.pfn_glUniform4iv = C.PFNGLUNIFORM4IV(loader(\"glUniform4iv\"))\n C.pfn_glUniformMatrix2fv = C.PFNGLUNIFORMMATRIX2FV(loader(\"glUniformMatrix2fv\"))\n C.pfn_glUniformMatrix3fv = C.PFNGLUNIFORMMATRIX3FV(loader(\"glUniformMatrix3fv\"))\n C.pfn_glUniformMatrix4fv = C.PFNGLUNIFORMMATRIX4FV(loader(\"glUniformMatrix4fv\"))\n C.pfn_glUseProgram = C.PFNGLUSEPROGRAM(loader(\"glUseProgram\"))\n C.pfn_glValidateProgram = C.PFNGLVALIDATEPROGRAM(loader(\"glValidateProgram\"))\n C.pfn_glVertexAttrib1d = C.PFNGLVERTEXATTRIB1D(loader(\"glVertexAttrib1d\"))\n C.pfn_glVertexAttrib1dv = C.PFNGLVERTEXATTRIB1DV(loader(\"glVertexAttrib1dv\"))\n C.pfn_glVertexAttrib1f = C.PFNGLVERTEXATTRIB1F(loader(\"glVertexAttrib1f\"))\n C.pfn_glVertexAttrib1fv = C.PFNGLVERTEXATTRIB1FV(loader(\"glVertexAttrib1fv\"))\n C.pfn_glVertexAttrib1s = C.PFNGLVERTEXATTRIB1S(loader(\"glVertexAttrib1s\"))\n C.pfn_glVertexAttrib1sv = C.PFNGLVERTEXATTRIB1SV(loader(\"glVertexAttrib1sv\"))\n C.pfn_glVertexAttrib2d = C.PFNGLVERTEXATTRIB2D(loader(\"glVertexAttrib2d\"))\n C.pfn_glVertexAttrib2dv = C.PFNGLVERTEXATTRIB2DV(loader(\"glVertexAttrib2dv\"))\n C.pfn_glVertexAttrib2f = C.PFNGLVERTEXATTRIB2F(loader(\"glVertexAttrib2f\"))\n C.pfn_glVertexAttrib2fv = C.PFNGLVERTEXATTRIB2FV(loader(\"glVertexAttrib2fv\"))\n C.pfn_glVertexAttrib2s = C.PFNGLVERTEXATTRIB2S(loader(\"glVertexAttrib2s\"))\n C.pfn_glVertexAttrib2sv = C.PFNGLVERTEXATTRIB2SV(loader(\"glVertexAttrib2sv\"))\n C.pfn_glVertexAttrib3d = C.PFNGLVERTEXATTRIB3D(loader(\"glVertexAttrib3d\"))\n C.pfn_glVertexAttrib3dv = C.PFNGLVERTEXATTRIB3DV(loader(\"glVertexAttrib3dv\"))\n C.pfn_glVertexAttrib3f = C.PFNGLVERTEXATTRIB3F(loader(\"glVertexAttrib3f\"))\n C.pfn_glVertexAttrib3fv = C.PFNGLVERTEXATTRIB3FV(loader(\"glVertexAttrib3fv\"))\n C.pfn_glVertexAttrib3s = C.PFNGLVERTEXATTRIB3S(loader(\"glVertexAttrib3s\"))\n C.pfn_glVertexAttrib3sv = C.PFNGLVERTEXATTRIB3SV(loader(\"glVertexAttrib3sv\"))\n C.pfn_glVertexAttrib4Nbv = C.PFNGLVERTEXATTRIB4NBV(loader(\"glVertexAttrib4Nbv\"))\n C.pfn_glVertexAttrib4Niv = C.PFNGLVERTEXATTRIB4NIV(loader(\"glVertexAttrib4Niv\"))\n C.pfn_glVertexAttrib4Nsv = C.PFNGLVERTEXATTRIB4NSV(loader(\"glVertexAttrib4Nsv\"))\n C.pfn_glVertexAttrib4Nub = C.PFNGLVERTEXATTRIB4NUB(loader(\"glVertexAttrib4Nub\"))\n C.pfn_glVertexAttrib4Nubv = C.PFNGLVERTEXATTRIB4NUBV(loader(\"glVertexAttrib4Nubv\"))\n C.pfn_glVertexAttrib4Nuiv = C.PFNGLVERTEXATTRIB4NUIV(loader(\"glVertexAttrib4Nuiv\"))\n C.pfn_glVertexAttrib4Nusv = C.PFNGLVERTEXATTRIB4NUSV(loader(\"glVertexAttrib4Nusv\"))\n C.pfn_glVertexAttrib4bv = C.PFNGLVERTEXATTRIB4BV(loader(\"glVertexAttrib4bv\"))\n C.pfn_glVertexAttrib4d = C.PFNGLVERTEXATTRIB4D(loader(\"glVertexAttrib4d\"))\n C.pfn_glVertexAttrib4dv = C.PFNGLVERTEXATTRIB4DV(loader(\"glVertexAttrib4dv\"))\n C.pfn_glVertexAttrib4f = C.PFNGLVERTEXATTRIB4F(loader(\"glVertexAttrib4f\"))\n C.pfn_glVertexAttrib4fv = C.PFNGLVERTEXATTRIB4FV(loader(\"glVertexAttrib4fv\"))\n C.pfn_glVertexAttrib4iv = C.PFNGLVERTEXATTRIB4IV(loader(\"glVertexAttrib4iv\"))\n C.pfn_glVertexAttrib4s = C.PFNGLVERTEXATTRIB4S(loader(\"glVertexAttrib4s\"))\n C.pfn_glVertexAttrib4sv = C.PFNGLVERTEXATTRIB4SV(loader(\"glVertexAttrib4sv\"))\n C.pfn_glVertexAttrib4ubv = C.PFNGLVERTEXATTRIB4UBV(loader(\"glVertexAttrib4ubv\"))\n C.pfn_glVertexAttrib4uiv = C.PFNGLVERTEXATTRIB4UIV(loader(\"glVertexAttrib4uiv\"))\n C.pfn_glVertexAttrib4usv = C.PFNGLVERTEXATTRIB4USV(loader(\"glVertexAttrib4usv\"))\n C.pfn_glVertexAttribPointer = C.PFNGLVERTEXATTRIBPOINTER(loader(\"glVertexAttribPointer\"))\n\n // OpenGL 2.1\n if !ver.GE(OpenGL, 2, 1) {\n return\n }\n C.pfn_glUniformMatrix2x3fv = C.PFNGLUNIFORMMATRIX2X3FV(loader(\"glUniformMatrix2x3fv\"))\n C.pfn_glUniformMatrix2x4fv = C.PFNGLUNIFORMMATRIX2X4FV(loader(\"glUniformMatrix2x4fv\"))\n C.pfn_glUniformMatrix3x2fv = C.PFNGLUNIFORMMATRIX3X2FV(loader(\"glUniformMatrix3x2fv\"))\n C.pfn_glUniformMatrix3x4fv = C.PFNGLUNIFORMMATRIX3X4FV(loader(\"glUniformMatrix3x4fv\"))\n C.pfn_glUniformMatrix4x2fv = C.PFNGLUNIFORMMATRIX4X2FV(loader(\"glUniformMatrix4x2fv\"))\n C.pfn_glUniformMatrix4x3fv = C.PFNGLUNIFORMMATRIX4X3FV(loader(\"glUniformMatrix4x3fv\"))\n}", "func initOpenGL() uint32 {\n\tif err := gl.Init(); err != nil {\n\t\tpanic(err)\n\t}\n\tversion := gl.GoStr(gl.GetString(gl.VERSION))\n\tlog.Println(\"OpenGL version\", version)\n\n\tvar vertexShaderSource string\n\tvar fragmentShaderSource string\n\n\tvertexShaderSource = `\n\t#version 410\n\tlayout (location=0) in vec3 position;\n\tlayout (location=1) in vec2 texcoord;\n\tout vec2 tCoord;\n\tuniform mat4 projection;\n\tuniform mat4 world;\n\tuniform mat4 view;\n\tuniform vec2 texScale;\n\tuniform vec2 texOffset;\n\tvoid main() {\n\t\tgl_Position = projection * world * vec4(position, 1.0);\n\t\ttCoord = (texcoord+texOffset) * texScale;\n\t}\n\t` + \"\\x00\"\n\t//gl_Position = vec4(position, 10.0, 1.0) * camera * projection;\n\n\tfragmentShaderSource = `\n\t#version 410\n\tin vec2 tCoord;\n\tout vec4 frag_colour;\n\tuniform sampler2D ourTexture;\n\tuniform vec4 color;\n\tvoid main() {\n\t\t\tfrag_colour = texture(ourTexture, tCoord) * color;\n\t}\n\t` + \"\\x00\"\n\n\tprog := CreateProgram(vertexShaderSource, fragmentShaderSource)\n\n\tgl.UseProgram(prog)\n\tgl.Uniform2f(\n\t\tgl.GetUniformLocation(prog, gl.Str(\"texScale\\x00\")),\n\t\t1.0, 1.0,\n\t)\n\tgl.Uniform4f(\n\t\tgl.GetUniformLocation(prog, gl.Str(\"color\\x00\")),\n\t\t1, 1, 1, 1,\n\t)\n\n\t// line opengl program\n\tvertexShaderSource = `\n\t#version 330 core\n\tlayout (location = 0) in vec3 aPos;\n\tuniform mat4 uProjection;\n\tuniform mat4 uWorld;\n\n\tvoid main()\n\t{\n\t gl_Position = uProjection * vec4(aPos, 1.0);\n\t}` + \"\\x00\"\n\n\tfragmentShaderSource = `\n\t#version 330 core\n\tout vec4 FragColor;\n\tuniform vec3 uColor;\n\n\tvoid main()\n\t{\n\t FragColor = vec4(uColor, 1.0f);\n\t}` + \"\\x00\"\n\n\tlineProgram = CreateProgram(vertexShaderSource, fragmentShaderSource)\n\n\treturn prog\n}", "func Draw(bp *BoundProgram) {\n\t// TODO might still need the buffer contents to be pushed:\n\t/*\n\t\tgl.BufferData(gl.ARRAY_BUFFER, len(cube_vertices)*4, gl.Ptr(cube_vertices), gl.STATIC_DRAW)\n\t*/\n\t// TODO might still need textures to be bound for the call:\n\t/*\n\t\tgl.ActiveTexture(gl.TEXTURE0)\n\t\tgl.BindTexture(gl.TEXTURE_2D, tCache.Get(\"placeholder\"))\n\t*/\n\t// TODO draw calls are themselves still specialized and param'd:\n\t/*\n\t\tgl.DrawArrays(gl.TRIANGLES, 0, 6*2*3)\n\t*/\n}", "func WaitSync(sync unsafe.Pointer, flags uint32, timeout uint64) {\n C.glowWaitSync(gpWaitSync, (C.GLsync)(sync), (C.GLbitfield)(flags), (C.GLuint64)(timeout))\n}", "func Begin(mode uint32) {\n C.glowBegin(gpBegin, (C.GLenum)(mode))\n}", "func (gl *WebGL) Enable(option GLEnum) {\n\tgl.context.Call(\"enable\", option)\n}", "func draw(window *glfw.Window, reactProg, landProg uint32) {\n\n\tvar renderLoops = 4\n\tfor i := 0; i < renderLoops; i++ {\n\t\t// -- DRAW TO BUFFER --\n\t\t// define destination of pixels\n\t\t//gl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\t\tgl.BindFramebuffer(gl.FRAMEBUFFER, FBO[1])\n\n\t\tgl.Viewport(0, 0, width, height) // Retina display doubles the framebuffer !?!\n\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\t\tgl.UseProgram(reactProg)\n\n\t\t// bind Texture\n\t\tgl.ActiveTexture(gl.TEXTURE0)\n\t\tgl.BindTexture(gl.TEXTURE_2D, renderedTexture)\n\t\tgl.Uniform1i(uniTex, 0)\n\n\t\tgl.BindVertexArray(VAO)\n\t\tgl.DrawElements(gl.TRIANGLE_STRIP, int32(len(indices)), gl.UNSIGNED_INT, nil)\n\n\t\tgl.BindVertexArray(0)\n\n\t\t// -- copy back textures --\n\t\tgl.BindFramebuffer(gl.READ_FRAMEBUFFER, FBO[1]) // source is high res array\n\t\tgl.ReadBuffer(gl.COLOR_ATTACHMENT0)\n\t\tgl.BindFramebuffer(gl.DRAW_FRAMEBUFFER, FBO[0]) // destination is cells array\n\t\tgl.DrawBuffer(gl.COLOR_ATTACHMENT0)\n\t\tgl.BlitFramebuffer(0, 0, width, height,\n\t\t\t0, 0, cols, rows,\n\t\t\tgl.COLOR_BUFFER_BIT, gl.NEAREST) // downsample\n\t\tgl.BindFramebuffer(gl.READ_FRAMEBUFFER, FBO[0]) // source is low res array - put in texture\n\t\t// read pixels saves data read as unsigned bytes and then loads them in TexImage same way\n\t\tgl.ReadPixels(0, 0, cols, rows, gl.RGBA, gl.FLOAT, gl.Ptr(fData))\n\t\tgl.BindTexture(gl.TEXTURE_2D, renderedTexture)\n\t\tgl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, cols, rows, 0, gl.RGBA, gl.FLOAT, gl.Ptr(fData))\n\t\tCheckGLErrors()\n\t}\n\t// -- DRAW TO SCREEN --\n\tvar model glm.Mat4\n\n\t// destination 0 means screen\n\tgl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\tgl.Viewport(0, 0, width*2, height*2) // Retina display doubles the framebuffer !?!\n\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\tgl.UseProgram(landProg)\n\t// bind Texture\n\tgl.ActiveTexture(gl.TEXTURE0)\n\tgl.BindTexture(gl.TEXTURE_2D, drawTexture)\n\n\tvar view glm.Mat4\n\tvar brakeFactor = float64(20000.0)\n\tvar xCoord, yCoord float32\n\txCoord = float32(-3.0 * math.Sin(float64(myClock)))\n\tyCoord = float32(-3.0 * math.Cos(float64(myClock)))\n\t//xCoord = 0.0\n\t//yCoord = float32(-2.5)\n\tmyClock = math.Mod((myClock + float64(deltaTime)/brakeFactor), (math.Pi * 2))\n\tview = glm.LookAt(xCoord, yCoord, 2.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0)\n\tgl.UniformMatrix4fv(uniView, 1, false, &view[0])\n\tmodel = glm.HomogRotate3DX(glm.DegToRad(00.0))\n\tgl.UniformMatrix4fv(uniModel, 1, false, &model[0])\n\tgl.Uniform1i(uniTex2, 0)\n\n\t// render container\n\t//gl.PolygonMode(gl.FRONT_AND_BACK, gl.FILL)\n\t//gl.PolygonMode(gl.FRONT_AND_BACK, gl.LINE)\n\n\tgl.BindVertexArray(VAO)\n\tgl.DrawElements(gl.TRIANGLE_STRIP, int32(len(indices)), gl.UNSIGNED_INT, nil)\n\tgl.BindVertexArray(0)\n\n\tCheckGLErrors()\n\n\tglfw.PollEvents()\n\twindow.SwapBuffers()\n\n\t//time.Sleep(100 * 1000 * 1000)\n}", "func main() {\n\tpixelgl.Run(run)\n}", "func main() {\n\tpixelgl.Run(run)\n}", "func initOpenGL() (uint32, uint32) {\n\tif err := gl.Init(); err != nil {\n\t\tpanic(err)\n\t}\n\tversion := gl.GoStr(gl.GetString(gl.VERSION))\n\tlog.Println(\"OpenGL version\", version)\n\n\tgl.Enable(gl.CULL_FACE)\n\tgl.CullFace(gl.BACK)\n\tgl.FrontFace(gl.CW)\n\n\tvar reactProg, landProg uint32\n\treactProg, landProg = setupShaders()\n\n\t//---------------------------\n\n\tgl.GenVertexArrays(1, &VAO)\n\tgl.GenBuffers(1, &VBO)\n\tgl.GenBuffers(1, &EBO)\n\n\tgl.BindVertexArray(VAO)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, VBO)\n\tgl.BufferData(gl.ARRAY_BUFFER, 4*len(vertices), gl.Ptr(vertices), gl.STATIC_DRAW)\n\tgl.BindBuffer(gl.ELEMENT_ARRAY_BUFFER, EBO)\n\tgl.BufferData(gl.ELEMENT_ARRAY_BUFFER, 4*len(indices), gl.Ptr(indices), gl.STATIC_DRAW)\n\n\t// position attribute\n\tvar vOffset int = 0\n\tgl.EnableVertexAttribArray(0)\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(vOffset))\n\t// color attribute\n\tvar cOffset int = 3 * 4\n\tgl.EnableVertexAttribArray(1)\n\tgl.VertexAttribPointer(1, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(cOffset))\n\t// texture coord attribute\n\tvar tOffset int = 6 * 4\n\tgl.EnableVertexAttribArray(2)\n\tgl.VertexAttribPointer(2, 2, gl.FLOAT, false, 8*4, gl.PtrOffset(tOffset))\n\n\tgl.BindVertexArray(0) // Unbind\n\n\tgl.GenVertexArrays(1, &sqVAO)\n\tgl.GenBuffers(1, &sqVBO)\n\tgl.GenBuffers(1, &sqEBO)\n\n\tgl.BindVertexArray(sqVAO)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, sqVBO)\n\tgl.BufferData(gl.ARRAY_BUFFER, 4*len(vertices2), gl.Ptr(vertices2), gl.STATIC_DRAW)\n\tgl.BindBuffer(gl.ELEMENT_ARRAY_BUFFER, sqEBO)\n\tgl.BufferData(gl.ELEMENT_ARRAY_BUFFER, 4*len(indices2), gl.Ptr(indices2), gl.STATIC_DRAW)\n\n\t// position attribute\n\tvOffset = 0\n\tgl.EnableVertexAttribArray(0)\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(vOffset))\n\t// color attribute\n\tcOffset = 3 * 4\n\tgl.EnableVertexAttribArray(1)\n\tgl.VertexAttribPointer(1, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(cOffset))\n\t// texture coord attribute\n\ttOffset = 6 * 4\n\tgl.EnableVertexAttribArray(2)\n\tgl.VertexAttribPointer(2, 2, gl.FLOAT, false, 8*4, gl.PtrOffset(tOffset))\n\n\tgl.BindVertexArray(0) // Unbind\n\n\t// Both FBO created here\n\tcreateFrameBuffers()\n\tif CheckGLErrors() {\n\t\tInfo.Println(\"InitGL Problems\")\n\t}\n\n\t// -==- Texture data -==-\n\tgl.GenTextures(1, &initTexture)\n\tgl.BindTexture(gl.TEXTURE_2D, initTexture)\n\t// set the texture wrapping/filtering options (on the currently bound texture object)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.REPEAT)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.REPEAT)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST)\n\n\tloadImage(1, data)\n\tgl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, cols, rows, 0, gl.RGBA, gl.UNSIGNED_BYTE, gl.Ptr(data))\n\tgl.GenerateMipmap(gl.TEXTURE_2D)\n\n\tif CheckGLErrors() {\n\t\tInfo.Println(\"InitGL Problems\")\n\t}\n\n\treturn reactProg, landProg\n}", "func (self *Graphics) _renderWebGLI(args ...interface{}) {\n self.Object.Call(\"_renderWebGL\", args)\n}", "func DrawBuffer(mode uint32) {\n C.glowDrawBuffer(gpDrawBuffer, (C.GLenum)(mode))\n}", "func PassThrough(token float32) {\n\tC.glowPassThrough(gpPassThrough, (C.GLfloat)(token))\n}", "func Flush() {\n C.glowFlush(gpFlush)\n}", "func (b *GoGLBackend) Activate() {\n\tb.activate()\n}", "func main() {\n\t// Initialize the library.\n\tctx := glfw.Init()\n\tif ctx == nil {\n\t\tpanic(\"failed to initialize GLFW\")\n\t}\n\tdefer ctx.Terminate()\n\n\t// Create a windowed mode window and its OpenGL context.\n\twin := ctx.CreateWindow(640, 480, \"Hello World\", nil, nil)\n\tif win == nil {\n\t\tpanic(\"failed to create window\")\n\t}\n\tdefer win.Destroy()\n\n\t// Make the window's context current.\n\tctx.MakeContextCurrent(win)\n\n\t// Loop until the user closes the window.\n\tfor !win.ShouldClose() {\n\t\t// Render here.\n\n\t\t// Swap front and back buffers.\n\t\twin.SwapBuffers()\n\n\t\t// Poll for and process events.\n\t\tctx.PollEvents()\n\t}\n}", "func NOP() { ctx.NOP() }", "func (gl *WebGL) Clear(option GLEnum) {\n\tgl.context.Call(\"clear\", option)\n}", "func STC() { ctx.STC() }", "func main() {\n\tr := NewRenderer()\n\n\t// We draw the background canvas just once.\n\tr.GetBackgroundCanvasReady()\n\n\t// Everything else happens in response to mouse movements.\n\tr.RealCanvas.Set(\"onmousemove\", js.FuncOf(r.OnMoveHandler))\n\twait := make(chan bool)\n\t<-wait\n}", "func dg() {\n\tgl.Dump() // doesn't need context.\n\n\t// Also print the opengl version which does need a context.\n\tapp := device.New(\"Dump\", 400, 100, 600, 600)\n\tfmt.Printf(\"%s %s\", gl.GetString(gl.RENDERER), gl.GetString(gl.VERSION))\n\tfmt.Printf(\" GLSL %s\\n\", gl.GetString(gl.SHADING_LANGUAGE_VERSION))\n\tapp.Dispose()\n}", "func UseProgram(program uint32) {\n C.glowUseProgram(gpUseProgram, (C.GLuint)(program))\n}", "func (self *TileSprite) _renderWebGL(renderSession *RenderSession) {\n self.Object.Call(\"_renderWebGL\", renderSession)\n}", "func (self *SimulationEngine) fireEnabledTransitions(aiLocalClock TypeClock) {\n\tfor self.il_mislefs.hay_sensibilizadas() { //while\n\t\tliCodTrans := self.il_mislefs.get_sensibilizada()\n\t\t// fmt.Println(\"obtuve sensibilizada:\", liCodTrans)\n\t\tself.il_mislefs.disparar(liCodTrans)\n\n\t\t// Anotar el Resultado que disparo la liCodTrans en tiempoaiLocalClock\n\t\tself.iv_results = append(self.iv_results,\n\t\t\tResultadoTransition{liCodTrans, aiLocalClock})\n\t}\n}", "func SyncRuntimeDoSpin()", "func (g *game) Run() {\r\n\tpixelgl.Run(func() {\r\n\t\tg.RunLazyInit()\r\n\t\tg.RunEventLoop()\r\n\t})\r\n}", "func (s *BaselimboListener) EnterReal_(ctx *Real_Context) {}", "func pollEvents() {\n\tC.glfwPollEvents()\n}", "func (w *Window) refreshWait() {\n\tC.glfwSwapBuffers(w.glfwWin)\n}", "func main() {\n\tif err := glfw.Init(); err != nil {\n\t\tlog.Fatalln(\"failed to initialize glfw:\", err)\n\t}\n\tdefer glfw.Terminate()\n\n\tglfw.WindowHint(glfw.Resizable, glfw.False)\n\tglfw.WindowHint(glfw.ContextVersionMajor, 2)\n\tglfw.WindowHint(glfw.ContextVersionMinor, 1)\n\twindow, err := glfw.CreateWindow(windowWidth, windowHeight, \"CUBE\", nil, nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\twindow.MakeContextCurrent()\n\n\t// Set mouse tracking callback\n\twindow.SetCursorPosCallback(cursorPosCallback)\n\n\t// Initialize Gl\n\tif err := gl.Init(); err != nil {\n\t\tpanic(err)\n\t}\n\n\tversion := gl.GoStr(gl.GetString(gl.VERSION))\n\tfmt.Println(\"OpenGL version\", version)\n\n\t// Configure the vertex and fragment shaders\n\tprogram, err := newProgram(vertexShader, fragmentShader)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tgl.UseProgram(program)\n\n\tprojection = mgl32.Perspective(mgl32.DegToRad(45.0), float32(windowWidth)/windowHeight, 0.1, 10.0)\n\tprojectionUniform := gl.GetUniformLocation(program, gl.Str(\"projection\\x00\"))\n\tgl.UniformMatrix4fv(projectionUniform, 1, false, &projection[0])\n\n\tview = mgl32.LookAtV(mgl32.Vec3{3, 3, 3}, mgl32.Vec3{0, 0, 0}, mgl32.Vec3{0, 1, 0})\n\tmodel = mgl32.Ident4()\n\n\tmodelView := view.Mul4(model)\n\tmodelViewUniform := gl.GetUniformLocation(program, gl.Str(\"modelView\\x00\"))\n\tgl.UniformMatrix4fv(modelViewUniform, 1, false, &modelView[0])\n\n\tnormal := (modelView.Inv()).Transpose()\n\tnormalUniform := gl.GetUniformLocation(program, gl.Str(\"normal\\x00\"))\n\tgl.UniformMatrix4fv(normalUniform, 1, false, &normal[0])\n\n\ttextureUniform := gl.GetUniformLocation(program, gl.Str(\"texture\\x00\"))\n\tgl.Uniform1i(textureUniform, 0)\n\n\tselectedTriangle = mgl32.Ident3()\n\tselectedTriangle.SetCol(0, mgl32.Vec3{1, 1, 1})\n\tselectedTriangle.SetCol(1, mgl32.Vec3{-1, 1, 1})\n\tselectedTriangle.SetCol(2, mgl32.Vec3{-1, -1, 1})\n\tselectedTriangleUniform := gl.GetUniformLocation(program, gl.Str(\"selectedTriangle\\x00\"))\n\tgl.UniformMatrix3fv(selectedTriangleUniform, 1, false, &selectedTriangle[0])\n\n\t// Load the texture\n\ttexture, err := newTexture(\"./res/square.png\")\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\n\t// Configure the vertex data\n\tvar vao uint32\n\tgl.GenVertexArrays(1, &vao)\n\tgl.BindVertexArray(vao)\n\n\tvar vbo uint32\n\tgl.GenBuffers(1, &vbo)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.BufferData(gl.ARRAY_BUFFER, len(cubeVertices)*floatSize, gl.Ptr(cubeVertices), gl.STATIC_DRAW)\n\n\tvar ibo uint32\n\tgl.GenBuffers(1, &ibo)\n\tgl.BindBuffer(gl.ELEMENT_ARRAY_BUFFER, ibo)\n\tgl.BufferData(gl.ELEMENT_ARRAY_BUFFER, len(cubeIndices)*floatSize, gl.Ptr(cubeIndices), gl.STATIC_DRAW)\n\n\tvertAttrib := uint32(gl.GetAttribLocation(program, gl.Str(\"vertPosition\\x00\")))\n\tgl.EnableVertexAttribArray(vertAttrib)\n\tgl.VertexAttribPointer(vertAttrib, 3, gl.FLOAT, false, 11*floatSize, gl.PtrOffset(0))\n\n\tnormalAttrib := uint32(gl.GetAttribLocation(program, gl.Str(\"vertNormal\\x00\")))\n\tgl.EnableVertexAttribArray(normalAttrib)\n\tgl.VertexAttribPointer(normalAttrib, 3, gl.FLOAT, false, 11*floatSize, gl.PtrOffset(3))\n\n\ttexCoordAttrib := uint32(gl.GetAttribLocation(program, gl.Str(\"vertTexCoord\\x00\")))\n\tgl.EnableVertexAttribArray(texCoordAttrib)\n\tgl.VertexAttribPointer(texCoordAttrib, 2, gl.FLOAT, false, 11*floatSize, gl.PtrOffset(6*floatSize))\n\n\tcolorAttrib := uint32(gl.GetAttribLocation(program, gl.Str(\"vertColor\\x00\")))\n\tgl.EnableVertexAttribArray(colorAttrib)\n\tgl.VertexAttribPointer(colorAttrib, 3, gl.FLOAT, false, 11*floatSize, gl.PtrOffset(8*floatSize))\n\n\tgl.BindVertexArray(0)\n\tgl.UseProgram(0)\n\n\t// Configure global settings\n\tgl.Enable(gl.DEPTH_TEST)\n\tgl.DepthFunc(gl.LEQUAL)\n\tgl.ClearColor(0.7, 0.7, 0.7, 1.0)\n\tgl.ClearStencil(0)\n\tgl.ClearDepth(1.0)\n\n\tangle := 0.0\n\tpreviousTime := glfw.GetTime()\n\n\tfor !window.ShouldClose() {\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT | gl.STENCIL_BUFFER_BIT)\n\n\t\t// Update\n\t\ttime := glfw.GetTime()\n\t\telapsed := time - previousTime\n\t\tpreviousTime = time\n\t\tangle -= elapsed\n\n\t\tmodel = mgl32.HomogRotate3D(float32(angle), mgl32.Vec3{0, 1, 0})\n\t\tmodelView = view.Mul4(model)\n\t\tnormal = (modelView.Inv()).Transpose()\n\n\t\t// Ray-triangle intersection (with mouse coordinates)\n\t\tif (mouseX >= -1 && mouseX <= 1) && (mouseY >= -1 && mouseY <= 1) {\n\t\t\t// log.Printf(\"[Debug] Mouse position (x y): %v %v\\n\", mouseX, mouseY)\n\n\t\t\tinvProjection := projection.Inv()\n\t\t\tinvView := view.Inv()\n\t\t\tinvModel := model.Inv()\n\n\t\t\tviewP1 := mgl32.TransformCoordinate(mgl32.Vec3{mouseX, mouseY, -1.0}, invProjection)\n\n\t\t\tR0 := mgl32.TransformCoordinate(mgl32.TransformCoordinate(mgl32.Vec3{0, 0, 0}, invView), invModel)\n\t\t\tR1 := mgl32.TransformCoordinate(mgl32.TransformCoordinate(viewP1, invView), invModel)\n\t\t\tD := mgl32.Vec3{R1[0] - R0[0], R1[1] - R0[1], R1[2] - R0[2]}.Normalize()\n\n\t\t\ttriangleIsectIndex := -1\n\t\t\tminDist := float32(100000)\n\t\t\tfor it := 0; it < len(cubeIndices); it += 3 {\n\t\t\t\ttriangle := []int32{cubeIndices[it+0], cubeIndices[it+1], cubeIndices[it+2]}\n\t\t\t\tA := mgl32.Vec3{cubeVertices[triangle[0]*11+0], cubeVertices[triangle[0]*11+1], cubeVertices[triangle[0]*11+2]}\n\t\t\t\tB := mgl32.Vec3{cubeVertices[triangle[1]*11+0], cubeVertices[triangle[1]*11+1], cubeVertices[triangle[1]*11+2]}\n\t\t\t\tC := mgl32.Vec3{cubeVertices[triangle[2]*11+0], cubeVertices[triangle[2]*11+1], cubeVertices[triangle[2]*11+2]}\n\n\t\t\t\tP0 := A\n\t\t\t\tNV := mgl32.Vec3{B[0] - A[0], B[1] - A[1], B[2] - A[2]}.Cross(mgl32.Vec3{C[0] - A[0], C[1] - A[1], C[2] - A[2]}).Normalize()\n\n\t\t\t\tdistIsect := mgl32.Vec3{P0[0] - R0[0], P0[1] - R0[1], P0[2] - R0[2]}.Dot(NV) / D.Dot(NV)\n\t\t\t\tif distIsect < 0.0 {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\tPIsect := mgl32.Vec3{R0[0] + D[0]*distIsect, R0[1] + D[1]*distIsect, R0[2] + D[2]*distIsect}\n\n\t\t\t\tif PointInOrOnTriangle(PIsect, A, B, C) {\n\t\t\t\t\tif distIsect < minDist {\n\t\t\t\t\t\tminDist = distIsect\n\t\t\t\t\t\ttriangleIsectIndex = it / 3\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif triangleIsectIndex >= 0 {\n\t\t\t\t// log.Printf(\"[Debug] Mouse is ON Triangle with Index: %v\\n\", triangleIsectIndex)\n\n\t\t\t\ttriangle := []int32{cubeIndices[triangleIsectIndex*3+0], cubeIndices[triangleIsectIndex*3+1], cubeIndices[triangleIsectIndex*3+2]}\n\t\t\t\tselectedTriangle.SetCol(0, mgl32.Vec3{cubeVertices[triangle[0]*11+0], cubeVertices[triangle[0]*11+1], cubeVertices[triangle[0]*11+2]})\n\t\t\t\tselectedTriangle.SetCol(1, mgl32.Vec3{cubeVertices[triangle[1]*11+0], cubeVertices[triangle[1]*11+1], cubeVertices[triangle[1]*11+2]})\n\t\t\t\tselectedTriangle.SetCol(2, mgl32.Vec3{cubeVertices[triangle[2]*11+0], cubeVertices[triangle[2]*11+1], cubeVertices[triangle[2]*11+2]})\n\t\t\t} else {\n\t\t\t\tselectedTriangle = mgl32.Ident3()\n\t\t\t}\n\t\t}\n\n\t\t// Render\n\t\tgl.UseProgram(program)\n\t\tgl.UniformMatrix4fv(modelViewUniform, 1, false, &modelView[0])\n\t\tgl.UniformMatrix4fv(normalUniform, 1, false, &normal[0])\n\t\tgl.UniformMatrix3fv(selectedTriangleUniform, 1, false, &selectedTriangle[0])\n\n\t\tgl.BindVertexArray(vao)\n\n\t\tgl.ActiveTexture(gl.TEXTURE0)\n\t\tgl.BindTexture(gl.TEXTURE_2D, texture)\n\n\t\t// Draw cube\n\t\tgl.DrawElements(gl.TRIANGLES, int32(len(cubeIndices)), gl.UNSIGNED_INT, gl.PtrOffset(0))\n\n\t\t// Draw additional cube\n\t\t//\n\t\t// modelAdditional := model.Mul4(mgl32.Translate3D(2, 0, 0))\n\t\t// modelView = view.Mul4(modelAdditional)\n\t\t// normal = (modelView.Inv()).Transpose()\n\t\t// gl.UniformMatrix4fv(modelViewUniform, 1, false, &modelView[0])\n\t\t// gl.UniformMatrix4fv(normalUniform, 1, false, &normal[0])\n\t\t// gl.DrawElements(gl.TRIANGLES, int32(len(cubeIndices)), gl.UNSIGNED_INT, gl.PtrOffset(0))\n\n\t\tgl.BindVertexArray(0)\n\t\tgl.UseProgram(0)\n\n\t\t// Maintenance\n\t\twindow.SwapBuffers()\n\t\tglfw.PollEvents()\n\t}\n}", "func ClientWaitSync(sync unsafe.Pointer, flags uint32, timeout uint64) uint32 {\n ret := C.glowClientWaitSync(gpClientWaitSync, (C.GLsync)(sync), (C.GLbitfield)(flags), (C.GLuint64)(timeout))\n return (uint32)(ret)\n}", "func NEGL(mr operand.Op) { ctx.NEGL(mr) }", "func PauseTransformFeedback() {\n C.glowPauseTransformFeedback(gpPauseTransformFeedback)\n}", "func LFENCE() { ctx.LFENCE() }", "func (s *System) spawn() {\n\tfor i := range s.threads {\n\t\tt := &s.threads[i]\n\t\tfor _, sr := range t.requests {\n\t\t\tstr := len(s.particles)\n\t\t\ts.particles.Resize(str + sr.Amount)\n\t\t\tfor i := 0; i < sr.Amount; i++ {\n\t\t\t\tr := sr.Rotation.Gen()\n\t\t\t\tvel := mat.Rad(sr.Spread.Gen()+sr.Dir, sr.Velocity.Gen())\n\t\t\t\tif sr.RotationRelativeToVelocity {\n\t\t\t\t\tr += vel.Angle()\n\t\t\t\t}\n\n\t\t\t\tp := &s.particles[i+str]\n\n\t\t\t\tp.Type = sr.Type\n\n\t\t\t\tp.vel = vel\n\t\t\t\tp.orig = sr.Pos\n\t\t\t\tp.pos = sr.Pos.Add(sr.Gen(sr.Dir))\n\n\t\t\t\tp.mask = sr.Mask.Mul(sr.Type.Mask.Gen())\n\n\t\t\t\tp.scl.X = sr.ScaleX.Gen()\n\t\t\t\tp.scl.Y = sr.ScaleY.Gen()\n\t\t\t\tp.livetime = 1 / sr.Livetime.Gen()\n\t\t\t\tp.twerk = sr.Twerk.Gen()\n\t\t\t\tp.rot = r\n\t\t\t\tp.progress = 0\n\n\t\t\t\tp.vertex = s.vertex\n\t\t\t\tp.indice = s.indice\n\n\t\t\t\ts.vertex += p.vertexes\n\t\t\t\ts.indice += p.indices\n\t\t\t}\n\t\t}\n\t\tt.requests = t.requests[:0]\n\t}\n}", "func Disable(cap GLenum) {\n\tC.glDisable(C.GLenum(cap))\n}", "func (self *Graphics) Update() {\n self.Object.Call(\"update\")\n}", "func (render *Render) MainLoop() {\n\tdefer glfw.Terminate()\n\n\t// texture setup\n\tvar texture uint32\n\tgl.GenTextures(1, &texture)\n\tgl.BindTexture(gl.TEXTURE_2D, texture)\n\tsetTextureParams()\n\tgl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGB, Width, Height, 0, gl.RGBA, gl.UNSIGNED_BYTE, nil)\n\n\t// bind to shader\n\tgl.UseProgram(render.Program)\n\t// gl.Uniform1i(gl.GetUniformLocation(render.Program, gl.Str(\"ourTexture\\x00\")), 0)\n\n\ttexUniform := gl.GetUniformLocation(render.Program, gl.Str(\"ourTexture\\x00\"))\n\tflipXUniform := gl.GetUniformLocation(render.Program, gl.Str(\"flipX\\x00\"))\n\tflipYUniform := gl.GetUniformLocation(render.Program, gl.Str(\"flipY\\x00\"))\n\tmodelUniform := gl.GetUniformLocation(render.Program, gl.Str(\"model\\x00\"))\n\tidentity := mgl32.Ident4()\n\n\tgl.UseProgram(render.Program)\n\n\tvar lastTime float64\n\n\tvar delta, lastUpdate float64\n\tvar nbFrames int\n\tfor !render.Window.ShouldClose() {\n\n\t\t// block to reduce fan noise (if fps limited)\n\t\t// this limits the speed of the opengl rendering thread\n\t\tlastTime = render.Sleep(lastTime)\n\n\t\tcurrentTime := glfw.GetTime()\n\t\tdelta = currentTime - lastUpdate\n\t\tnbFrames++\n\t\tif delta >= 1.0 { // If last cout was more than 1 sec ago\n\t\t\trender.Window.SetTitle(fmt.Sprintf(\"FPS: %.2f / %.2f\", float64(nbFrames)/delta, render.Fps))\n\t\t\tnbFrames = 0\n\t\t\tlastUpdate = currentTime\n\t\t}\n\n\t\t// are we in capture input mode?\n\t\tselect {\n\t\tcase n := <-render.StartInput:\n\t\t\trender.InputMode = n\n\t\tcase spriteCommand := <-render.SpriteChannel:\n\t\t\trender.runSpriteCommand(spriteCommand)\n\t\tdefault:\n\t\t\t// don't block\n\t\t}\n\n\t\tglfw.PollEvents()\n\n\t\tswapBuffers := false\n\t\trender.Lock.Lock()\n\t\tif render.UpdateScreen {\n\t\t\tgl.ActiveTexture(gl.TEXTURE0)\n\t\t\tgl.BindTexture(gl.TEXTURE_2D, texture)\n\n\t\t\t// need to do this so go.Ptr() works. This could be a bug in go: https://github.com/golang/go/issues/14210\n\t\t\tpixels := render.PixelMemory\n\t\t\tgl.TexSubImage2D(gl.TEXTURE_2D, 0, 0, 0, Width, Height, gl.RGB, gl.UNSIGNED_BYTE, gl.Ptr(&pixels[0]))\n\n\t\t\t// gl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\t\t\tgl.UniformMatrix4fv(modelUniform, 1, false, &identity[0])\n\t\t\tgl.Uniform1i(texUniform, 0)\n\t\t\tgl.Uniform1i(flipXUniform, 0)\n\t\t\tgl.Uniform1i(flipYUniform, 0)\n\t\t\tgl.BindVertexArray(render.Vao)\n\t\t\tgl.DrawArrays(gl.TRIANGLES, 0, int32(len(screen)/8))\n\n\t\t\trender.UpdateScreen = false\n\t\t\tswapBuffers = true\n\t\t}\n\t\trender.Lock.Unlock()\n\n\t\trender.SpriteLock.Lock()\n\t\tif swapBuffers || render.UpdateSprites {\n\t\t\tgl.Enable(gl.BLEND)\n\t\t\t// gl.BlendEquation(gl.MAX)\n\t\t\tgl.BlendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA)\n\t\t\tfor _, sprite := range render.Sprites {\n\t\t\t\tif sprite.Show {\n\t\t\t\t\tgl.BindTexture(gl.TEXTURE_2D, sprite.Textures[sprite.ImageIndex])\n\t\t\t\t\tgl.Uniform1i(texUniform, 0)\n\t\t\t\t\tgl.Uniform1i(flipXUniform, sprite.FlipX)\n\t\t\t\t\tgl.Uniform1i(flipYUniform, sprite.FlipY)\n\n\t\t\t\t\tsprite.Model = mgl32.Ident4().\n\t\t\t\t\t\tMul4(mgl32.Translate3D(float32(sprite.X-Width/2)/float32(Width/2), -float32(sprite.Y-Height/2)/float32(Height/2), 0)).\n\t\t\t\t\t\tMul4(mgl32.Scale3D(float32(sprite.W)/float32(Width), float32(sprite.H)/float32(Height), 1))\n\n\t\t\t\t\tgl.UniformMatrix4fv(modelUniform, 1, false, &sprite.Model[0])\n\t\t\t\t\tgl.DrawArrays(gl.TRIANGLES, 0, int32(len(screen)/8))\n\t\t\t\t}\n\t\t\t}\n\t\t\tgl.Disable(gl.BLEND)\n\n\t\t\trender.UpdateSprites = false\n\t\t\tswapBuffers = true\n\t\t}\n\t\trender.SpriteLock.Unlock()\n\n\t\tif swapBuffers {\n\t\t\trender.Window.SwapBuffers()\n\t\t}\n\t}\n}", "func (gm *GraphicsManager) Tick(delta float64, sm component.SceneManager) {\n\tgm.sm = sm\n\n\tif gm.justForcedARender {\n\t\tgm.justForcedARender = false\n\t\treturn\n\t}\n\n\tcompsToSend, errs := gm.RenderAll(sm)\n\tif errs != nil {\n\t\terrArray := errs.Array()\n\t\tif errArray != nil && len(errArray) > 0 {\n\t\t\tfor i := range errArray {\n\t\t\t\tcommon.LogErr.Print(errArray[i].(error))\n\t\t\t}\n\t\t}\n\t}\n\tgm.Render(compsToSend)\n}", "func (self *TileSprite) _renderWebGLI(args ...interface{}) {\n self.Object.Call(\"_renderWebGL\", args)\n}", "func (c *thickClient) Run() {\n\tpixelgl.Run(c.run)\n}", "func (c *Context) XCHGL(emr, emr1 operand.Op) {\n\tc.addinstruction(x86.XCHGL(emr, emr1))\n}", "func DispatchCompute(num_groups_x uint32, num_groups_y uint32, num_groups_z uint32) {\n C.glowDispatchCompute(gpDispatchCompute, (C.GLuint)(num_groups_x), (C.GLuint)(num_groups_y), (C.GLuint)(num_groups_z))\n}", "func BeginTransformFeedback(primitiveMode uint32) {\n C.glowBeginTransformFeedback(gpBeginTransformFeedback, (C.GLenum)(primitiveMode))\n}", "func ProvokingVertex(mode uint32) {\n C.glowProvokingVertex(gpProvokingVertex, (C.GLenum)(mode))\n}", "func (self *AbstractFilter) SyncUniforms() {\n self.Object.Call(\"syncUniforms\")\n}", "func Start() {\n\tif os.Getenv(\"STEVEN_DEBUG\") == \"true\" {\n\t\tgl.DebugLog()\n\t}\n\n\tgl.Enable(gl.DepthTest)\n\tgl.Enable(gl.CullFaceFlag)\n\tgl.CullFace(gl.Back)\n\tgl.FrontFace(gl.ClockWise)\n\n\tchunkProgram = CreateProgram(\n\t\tglsl.Get(\"chunk_vertex\"),\n\t\tglsl.Get(\"chunk_frag\"),\n\t)\n\tshaderChunk = &chunkShader{}\n\tInitStruct(shaderChunk, chunkProgram)\n\n\tchunkProgramT = CreateProgram(\n\t\tglsl.Get(\"chunk_vertex\"),\n\t\tglsl.Get(\"chunk_frag\", \"alpha\"),\n\t)\n\tshaderChunkT = &chunkShader{}\n\tInitStruct(shaderChunkT, chunkProgramT)\n\n\tinitUI()\n\tinitLineDraw()\n\tinitStatic()\n\tclouds.init()\n\n\tgl.BlendFunc(gl.SrcAlpha, gl.OneMinusSrcAlpha)\n\n\telementBuffer = gl.CreateBuffer()\n}", "func (ly *ModLayer) GateSend(ltime *leabra.Time) {\n}", "func (c *common) refresh() error {\n\tif len(c.flags.refresh) == 0 {\n\t\treturn nil\n\t}\n\n\tif c.hooks.preRefresh != nil {\n\t\terr := c.hooks.preRefresh()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\targs := append(c.flags.global, c.flags.refresh...)\n\n\treturn shared.RunCommand(c.ctx, nil, nil, c.commands.refresh, args...)\n}", "func gameLoop() {\n\tlast := time.Now()\n\tfor !global.gWin.Closed() {\n\t\tdt := time.Since(last).Seconds()\n\t\tlast = time.Now()\n\n\t\tglobal.gWin.Clear(global.gClearColor)\n\n\t\t// Update systems\n\n\t\tglobal.gController.Update(dt)\n\t\tglobal.gCamera.Update(dt)\n\t\tglobal.gWorld.Draw(dt)\n\n\t\tglobal.gWin.Update()\n\t}\n}", "func (f *Framebuffer) useState() {\n\t// Bind the framebuffer now.\n\tif f.ctx.fastBindFramebuffer(f.o) {\n\t\tf.GLCall(nil)\n\t}\n\tf.GLCall(f.Loaded)\n}", "func (sh *ShaderStd) PostRender() error { return nil }", "func (ws *WindowSurface) Run() {\n\t// log.Println(\"Starting viewer polling\")\n\tws.running = true\n\t// var simStatus = \"\"\n\tvar frameStart time.Time\n\tvar elapsedTime float64\n\tvar loopTime float64\n\n\tsleepDelay := 0.0\n\n\t// Get a reference to SDL's internal keyboard state. It is updated\n\t// during sdl.PollEvent()\n\tkeyState := sdl.GetKeyboardState()\n\n\trasterizer := renderer.NewBresenHamRasterizer()\n\n\tsdl.SetEventFilterFunc(ws.filterEvent, nil)\n\n\tfor ws.running {\n\t\tframeStart = time.Now()\n\n\t\tsdl.PumpEvents()\n\n\t\tif keyState[sdl.SCANCODE_Z] != 0 {\n\t\t\tws.mod--\n\t\t}\n\t\tif keyState[sdl.SCANCODE_X] != 0 {\n\t\t\tws.mod++\n\t\t}\n\n\t\tws.clearDisplay()\n\n\t\tws.render(rasterizer)\n\n\t\t// This takes on average 5-7ms\n\t\t// ws.texture.Update(nil, ws.pixels.Pix, ws.pixels.Stride)\n\t\tws.texture.Update(nil, ws.rasterBuffer.Pixels().Pix, ws.rasterBuffer.Pixels().Stride)\n\t\tws.renderer.Copy(ws.texture, nil, nil)\n\n\t\tws.txtFPSLabel.DrawAt(10, 10)\n\t\tf := fmt.Sprintf(\"%2.2f\", 1.0/elapsedTime*1000.0)\n\t\tws.dynaTxt.DrawAt(ws.txtFPSLabel.Bounds.W+10, 10, f)\n\n\t\t// ws.mx, ws.my, _ = sdl.GetMouseState()\n\t\tws.txtMousePos.DrawAt(10, 25)\n\t\tf = fmt.Sprintf(\"<%d, %d>\", ws.mx, ws.my)\n\t\tws.dynaTxt.DrawAt(ws.txtMousePos.Bounds.W+10, 25, f)\n\n\t\tws.txtLoopLabel.DrawAt(10, 40)\n\t\tf = fmt.Sprintf(\"%2.2f\", loopTime)\n\t\tws.dynaTxt.DrawAt(ws.txtLoopLabel.Bounds.W+10, 40, f)\n\n\t\tws.renderer.Present()\n\n\t\t// time.Sleep(time.Millisecond * 5)\n\t\tloopTime = float64(time.Since(frameStart).Nanoseconds() / 1000000.0)\n\t\t// elapsedTime = float64(time.Since(frameStart).Seconds())\n\n\t\tsleepDelay = math.Floor(framePeriod - loopTime)\n\t\t// fmt.Printf(\"%3.5f ,%3.5f, %3.5f \\n\", framePeriod, elapsedTime, sleepDelay)\n\t\tif sleepDelay > 0 {\n\t\t\tsdl.Delay(uint32(sleepDelay))\n\t\t\telapsedTime = framePeriod\n\t\t} else {\n\t\t\telapsedTime = loopTime\n\t\t}\n\t}\n}", "func (debugging *debuggingOpenGL) Enable(capability uint32) {\n\tdebugging.recordEntry(\"Enable\", capability)\n\tdebugging.gl.Enable(capability)\n\tdebugging.recordExit(\"Enable\")\n}", "func gameLoop(grid *game.Grid, controls *panel.Controls, status *panel.Status) {\n\tfor {\n\t\tif !paused {\n\t\t\tgrid.NextGeneration()\n\t\t}\n\n\t\t// Clear terminal window before rendering if needed.\n\t\tif clearUI {\n\t\t\tui.Clear()\n\t\t\tclearUI = false\n\t\t}\n\t\tui.Render(grid, controls, status)\n\n\t\t// Limit framerate if needed.\n\t\tif speed != game.Unlimited && !paused {\n\t\t\ttime.Sleep(time.Duration(speed) * time.Millisecond)\n\t\t}\n\t}\n}", "func (native *OpenGL) GenQueries(n int32) []uint32 {\n\tids := make([]uint32, n)\n\tgl.GenQueries(n, &ids[0])\n\treturn ids\n}", "func initOpenGL() uint32 {\n\tif err := gl.Init(); err != nil {\n\t\tpanic(err)\n\t}\n\tversion := gl.GoStr(gl.GetString(gl.VERSION))\n\tlog.Println(\"OpenGL version\", version)\n\n\tvertexShaderSource, err := files.ReadTextFile(vertexShaderFile)\n\tmust(err)\n\n\tvertexShaderSource += \"\\x00\"\n\n\tfragmentShaderSource, err := files.ReadTextFile(fragmentShaderFile)\n\tmust(err)\n\n\tfragmentShaderSource += \"\\x00\"\n\n\tvertexShader, err := compileShader(vertexShaderSource, gl.VERTEX_SHADER)\n\tmust(err)\n\n\tfragmentShader, err := compileShader(fragmentShaderSource, gl.FRAGMENT_SHADER)\n\tmust(err)\n\n\tprogram := gl.CreateProgram()\n\tgl.AttachShader(program, vertexShader)\n\tgl.AttachShader(program, fragmentShader)\n\tgl.LinkProgram(program)\n\n\tvar status int32\n\tgl.GetProgramiv(program, gl.LINK_STATUS, &status)\n\tif status == gl.FALSE {\n\t\tvar logLength int32\n\t\tgl.GetProgramiv(program, gl.INFO_LOG_LENGTH, &logLength)\n\n\t\tlog := strings.Repeat(\"\\x00\", int(logLength+1))\n\t\tgl.GetProgramInfoLog(program, logLength, nil, gl.Str(log))\n\n\t\terr := fmt.Errorf(\"failed to link program: %v\", log)\n\t\tpanic(err)\n\t}\n\n\tgl.DeleteShader(vertexShader)\n\tgl.DeleteShader(fragmentShader)\n\n\treturn program\n}", "func main() {\n\tl := NewLife(50, 20)\n\tfor i := 0; i < 200; i++ {\n\t\tl.Step()\n\t\tfmt.Print(\"\\033[1;1H\") // positions the cursor at row 1, column 1\n\t\tfmt.Print(\"\\033[2J\") // clears the entire screen\n\t\tfmt.Println(l)\n\t\tfmt.Print(\"Generation: \", 200-i)\n\t\tfmt.Print(\"\\n\")\n\t\ttime.Sleep(time.Second / 20)\n\t}\n}", "func (gl *WebGL) Disable(option GLEnum) {\n\tgl.context.Call(\"disable\", option)\n}", "func (native *OpenGL) Enable(capability uint32) {\n\tgl.Enable(capability)\n}", "func CLD() { ctx.CLD() }", "func (*ModuleBase) Update(*ggl.Window, float64) {}", "func (self *Graphics) PreUpdate() {\n self.Object.Call(\"preUpdate\")\n}", "func InitWithProcAddrFunc(getProcAddr func(name string) unsafe.Pointer) error {\n\tgpActiveProgramEXT = (C.GPACTIVEPROGRAMEXT)(getProcAddr(\"glActiveProgramEXT\"))\n\tgpActiveShaderProgram = (C.GPACTIVESHADERPROGRAM)(getProcAddr(\"glActiveShaderProgram\"))\n\tif gpActiveShaderProgram == nil {\n\t\treturn errors.New(\"glActiveShaderProgram\")\n\t}\n\tgpActiveShaderProgramEXT = (C.GPACTIVESHADERPROGRAMEXT)(getProcAddr(\"glActiveShaderProgramEXT\"))\n\tgpActiveTexture = (C.GPACTIVETEXTURE)(getProcAddr(\"glActiveTexture\"))\n\tif gpActiveTexture == nil {\n\t\treturn errors.New(\"glActiveTexture\")\n\t}\n\tgpApplyFramebufferAttachmentCMAAINTEL = (C.GPAPPLYFRAMEBUFFERATTACHMENTCMAAINTEL)(getProcAddr(\"glApplyFramebufferAttachmentCMAAINTEL\"))\n\tgpAttachShader = (C.GPATTACHSHADER)(getProcAddr(\"glAttachShader\"))\n\tif gpAttachShader == nil {\n\t\treturn errors.New(\"glAttachShader\")\n\t}\n\tgpBeginConditionalRender = (C.GPBEGINCONDITIONALRENDER)(getProcAddr(\"glBeginConditionalRender\"))\n\tif gpBeginConditionalRender == nil {\n\t\treturn errors.New(\"glBeginConditionalRender\")\n\t}\n\tgpBeginConditionalRenderNV = (C.GPBEGINCONDITIONALRENDERNV)(getProcAddr(\"glBeginConditionalRenderNV\"))\n\tgpBeginPerfMonitorAMD = (C.GPBEGINPERFMONITORAMD)(getProcAddr(\"glBeginPerfMonitorAMD\"))\n\tgpBeginPerfQueryINTEL = (C.GPBEGINPERFQUERYINTEL)(getProcAddr(\"glBeginPerfQueryINTEL\"))\n\tgpBeginQuery = (C.GPBEGINQUERY)(getProcAddr(\"glBeginQuery\"))\n\tif gpBeginQuery == nil {\n\t\treturn errors.New(\"glBeginQuery\")\n\t}\n\tgpBeginQueryIndexed = (C.GPBEGINQUERYINDEXED)(getProcAddr(\"glBeginQueryIndexed\"))\n\tif gpBeginQueryIndexed == nil {\n\t\treturn errors.New(\"glBeginQueryIndexed\")\n\t}\n\tgpBeginTransformFeedback = (C.GPBEGINTRANSFORMFEEDBACK)(getProcAddr(\"glBeginTransformFeedback\"))\n\tif gpBeginTransformFeedback == nil {\n\t\treturn errors.New(\"glBeginTransformFeedback\")\n\t}\n\tgpBindAttribLocation = (C.GPBINDATTRIBLOCATION)(getProcAddr(\"glBindAttribLocation\"))\n\tif gpBindAttribLocation == nil {\n\t\treturn errors.New(\"glBindAttribLocation\")\n\t}\n\tgpBindBuffer = (C.GPBINDBUFFER)(getProcAddr(\"glBindBuffer\"))\n\tif gpBindBuffer == nil {\n\t\treturn errors.New(\"glBindBuffer\")\n\t}\n\tgpBindBufferBase = (C.GPBINDBUFFERBASE)(getProcAddr(\"glBindBufferBase\"))\n\tif gpBindBufferBase == nil {\n\t\treturn errors.New(\"glBindBufferBase\")\n\t}\n\tgpBindBufferRange = (C.GPBINDBUFFERRANGE)(getProcAddr(\"glBindBufferRange\"))\n\tif gpBindBufferRange == nil {\n\t\treturn errors.New(\"glBindBufferRange\")\n\t}\n\tgpBindBuffersBase = (C.GPBINDBUFFERSBASE)(getProcAddr(\"glBindBuffersBase\"))\n\tgpBindBuffersRange = (C.GPBINDBUFFERSRANGE)(getProcAddr(\"glBindBuffersRange\"))\n\tgpBindFragDataLocation = (C.GPBINDFRAGDATALOCATION)(getProcAddr(\"glBindFragDataLocation\"))\n\tif gpBindFragDataLocation == nil {\n\t\treturn errors.New(\"glBindFragDataLocation\")\n\t}\n\tgpBindFragDataLocationIndexed = (C.GPBINDFRAGDATALOCATIONINDEXED)(getProcAddr(\"glBindFragDataLocationIndexed\"))\n\tif gpBindFragDataLocationIndexed == nil {\n\t\treturn errors.New(\"glBindFragDataLocationIndexed\")\n\t}\n\tgpBindFramebuffer = (C.GPBINDFRAMEBUFFER)(getProcAddr(\"glBindFramebuffer\"))\n\tif gpBindFramebuffer == nil {\n\t\treturn errors.New(\"glBindFramebuffer\")\n\t}\n\tgpBindImageTexture = (C.GPBINDIMAGETEXTURE)(getProcAddr(\"glBindImageTexture\"))\n\tif gpBindImageTexture == nil {\n\t\treturn errors.New(\"glBindImageTexture\")\n\t}\n\tgpBindImageTextures = (C.GPBINDIMAGETEXTURES)(getProcAddr(\"glBindImageTextures\"))\n\tgpBindMultiTextureEXT = (C.GPBINDMULTITEXTUREEXT)(getProcAddr(\"glBindMultiTextureEXT\"))\n\tgpBindProgramPipeline = (C.GPBINDPROGRAMPIPELINE)(getProcAddr(\"glBindProgramPipeline\"))\n\tif gpBindProgramPipeline == nil {\n\t\treturn errors.New(\"glBindProgramPipeline\")\n\t}\n\tgpBindProgramPipelineEXT = (C.GPBINDPROGRAMPIPELINEEXT)(getProcAddr(\"glBindProgramPipelineEXT\"))\n\tgpBindRenderbuffer = (C.GPBINDRENDERBUFFER)(getProcAddr(\"glBindRenderbuffer\"))\n\tif gpBindRenderbuffer == nil {\n\t\treturn errors.New(\"glBindRenderbuffer\")\n\t}\n\tgpBindSampler = (C.GPBINDSAMPLER)(getProcAddr(\"glBindSampler\"))\n\tif gpBindSampler == nil {\n\t\treturn errors.New(\"glBindSampler\")\n\t}\n\tgpBindSamplers = (C.GPBINDSAMPLERS)(getProcAddr(\"glBindSamplers\"))\n\tgpBindShadingRateImageNV = (C.GPBINDSHADINGRATEIMAGENV)(getProcAddr(\"glBindShadingRateImageNV\"))\n\tgpBindTexture = (C.GPBINDTEXTURE)(getProcAddr(\"glBindTexture\"))\n\tif gpBindTexture == nil {\n\t\treturn errors.New(\"glBindTexture\")\n\t}\n\tgpBindTextureUnit = (C.GPBINDTEXTUREUNIT)(getProcAddr(\"glBindTextureUnit\"))\n\tgpBindTextures = (C.GPBINDTEXTURES)(getProcAddr(\"glBindTextures\"))\n\tgpBindTransformFeedback = (C.GPBINDTRANSFORMFEEDBACK)(getProcAddr(\"glBindTransformFeedback\"))\n\tif gpBindTransformFeedback == nil {\n\t\treturn errors.New(\"glBindTransformFeedback\")\n\t}\n\tgpBindVertexArray = (C.GPBINDVERTEXARRAY)(getProcAddr(\"glBindVertexArray\"))\n\tif gpBindVertexArray == nil {\n\t\treturn errors.New(\"glBindVertexArray\")\n\t}\n\tgpBindVertexBuffer = (C.GPBINDVERTEXBUFFER)(getProcAddr(\"glBindVertexBuffer\"))\n\tgpBindVertexBuffers = (C.GPBINDVERTEXBUFFERS)(getProcAddr(\"glBindVertexBuffers\"))\n\tgpBlendBarrierKHR = (C.GPBLENDBARRIERKHR)(getProcAddr(\"glBlendBarrierKHR\"))\n\tgpBlendBarrierNV = (C.GPBLENDBARRIERNV)(getProcAddr(\"glBlendBarrierNV\"))\n\tgpBlendColor = (C.GPBLENDCOLOR)(getProcAddr(\"glBlendColor\"))\n\tif gpBlendColor == nil {\n\t\treturn errors.New(\"glBlendColor\")\n\t}\n\tgpBlendEquation = (C.GPBLENDEQUATION)(getProcAddr(\"glBlendEquation\"))\n\tif gpBlendEquation == nil {\n\t\treturn errors.New(\"glBlendEquation\")\n\t}\n\tgpBlendEquationSeparate = (C.GPBLENDEQUATIONSEPARATE)(getProcAddr(\"glBlendEquationSeparate\"))\n\tif gpBlendEquationSeparate == nil {\n\t\treturn errors.New(\"glBlendEquationSeparate\")\n\t}\n\tgpBlendEquationSeparatei = (C.GPBLENDEQUATIONSEPARATEI)(getProcAddr(\"glBlendEquationSeparatei\"))\n\tif gpBlendEquationSeparatei == nil {\n\t\treturn errors.New(\"glBlendEquationSeparatei\")\n\t}\n\tgpBlendEquationSeparateiARB = (C.GPBLENDEQUATIONSEPARATEIARB)(getProcAddr(\"glBlendEquationSeparateiARB\"))\n\tgpBlendEquationi = (C.GPBLENDEQUATIONI)(getProcAddr(\"glBlendEquationi\"))\n\tif gpBlendEquationi == nil {\n\t\treturn errors.New(\"glBlendEquationi\")\n\t}\n\tgpBlendEquationiARB = (C.GPBLENDEQUATIONIARB)(getProcAddr(\"glBlendEquationiARB\"))\n\tgpBlendFunc = (C.GPBLENDFUNC)(getProcAddr(\"glBlendFunc\"))\n\tif gpBlendFunc == nil {\n\t\treturn errors.New(\"glBlendFunc\")\n\t}\n\tgpBlendFuncSeparate = (C.GPBLENDFUNCSEPARATE)(getProcAddr(\"glBlendFuncSeparate\"))\n\tif gpBlendFuncSeparate == nil {\n\t\treturn errors.New(\"glBlendFuncSeparate\")\n\t}\n\tgpBlendFuncSeparatei = (C.GPBLENDFUNCSEPARATEI)(getProcAddr(\"glBlendFuncSeparatei\"))\n\tif gpBlendFuncSeparatei == nil {\n\t\treturn errors.New(\"glBlendFuncSeparatei\")\n\t}\n\tgpBlendFuncSeparateiARB = (C.GPBLENDFUNCSEPARATEIARB)(getProcAddr(\"glBlendFuncSeparateiARB\"))\n\tgpBlendFunci = (C.GPBLENDFUNCI)(getProcAddr(\"glBlendFunci\"))\n\tif gpBlendFunci == nil {\n\t\treturn errors.New(\"glBlendFunci\")\n\t}\n\tgpBlendFunciARB = (C.GPBLENDFUNCIARB)(getProcAddr(\"glBlendFunciARB\"))\n\tgpBlendParameteriNV = (C.GPBLENDPARAMETERINV)(getProcAddr(\"glBlendParameteriNV\"))\n\tgpBlitFramebuffer = (C.GPBLITFRAMEBUFFER)(getProcAddr(\"glBlitFramebuffer\"))\n\tif gpBlitFramebuffer == nil {\n\t\treturn errors.New(\"glBlitFramebuffer\")\n\t}\n\tgpBlitNamedFramebuffer = (C.GPBLITNAMEDFRAMEBUFFER)(getProcAddr(\"glBlitNamedFramebuffer\"))\n\tgpBufferAddressRangeNV = (C.GPBUFFERADDRESSRANGENV)(getProcAddr(\"glBufferAddressRangeNV\"))\n\tgpBufferAttachMemoryNV = (C.GPBUFFERATTACHMEMORYNV)(getProcAddr(\"glBufferAttachMemoryNV\"))\n\tgpBufferData = (C.GPBUFFERDATA)(getProcAddr(\"glBufferData\"))\n\tif gpBufferData == nil {\n\t\treturn errors.New(\"glBufferData\")\n\t}\n\tgpBufferPageCommitmentARB = (C.GPBUFFERPAGECOMMITMENTARB)(getProcAddr(\"glBufferPageCommitmentARB\"))\n\tgpBufferPageCommitmentMemNV = (C.GPBUFFERPAGECOMMITMENTMEMNV)(getProcAddr(\"glBufferPageCommitmentMemNV\"))\n\tgpBufferStorage = (C.GPBUFFERSTORAGE)(getProcAddr(\"glBufferStorage\"))\n\tgpBufferSubData = (C.GPBUFFERSUBDATA)(getProcAddr(\"glBufferSubData\"))\n\tif gpBufferSubData == nil {\n\t\treturn errors.New(\"glBufferSubData\")\n\t}\n\tgpCallCommandListNV = (C.GPCALLCOMMANDLISTNV)(getProcAddr(\"glCallCommandListNV\"))\n\tgpCheckFramebufferStatus = (C.GPCHECKFRAMEBUFFERSTATUS)(getProcAddr(\"glCheckFramebufferStatus\"))\n\tif gpCheckFramebufferStatus == nil {\n\t\treturn errors.New(\"glCheckFramebufferStatus\")\n\t}\n\tgpCheckNamedFramebufferStatus = (C.GPCHECKNAMEDFRAMEBUFFERSTATUS)(getProcAddr(\"glCheckNamedFramebufferStatus\"))\n\tgpCheckNamedFramebufferStatusEXT = (C.GPCHECKNAMEDFRAMEBUFFERSTATUSEXT)(getProcAddr(\"glCheckNamedFramebufferStatusEXT\"))\n\tgpClampColor = (C.GPCLAMPCOLOR)(getProcAddr(\"glClampColor\"))\n\tif gpClampColor == nil {\n\t\treturn errors.New(\"glClampColor\")\n\t}\n\tgpClear = (C.GPCLEAR)(getProcAddr(\"glClear\"))\n\tif gpClear == nil {\n\t\treturn errors.New(\"glClear\")\n\t}\n\tgpClearBufferData = (C.GPCLEARBUFFERDATA)(getProcAddr(\"glClearBufferData\"))\n\tgpClearBufferSubData = (C.GPCLEARBUFFERSUBDATA)(getProcAddr(\"glClearBufferSubData\"))\n\tgpClearBufferfi = (C.GPCLEARBUFFERFI)(getProcAddr(\"glClearBufferfi\"))\n\tif gpClearBufferfi == nil {\n\t\treturn errors.New(\"glClearBufferfi\")\n\t}\n\tgpClearBufferfv = (C.GPCLEARBUFFERFV)(getProcAddr(\"glClearBufferfv\"))\n\tif gpClearBufferfv == nil {\n\t\treturn errors.New(\"glClearBufferfv\")\n\t}\n\tgpClearBufferiv = (C.GPCLEARBUFFERIV)(getProcAddr(\"glClearBufferiv\"))\n\tif gpClearBufferiv == nil {\n\t\treturn errors.New(\"glClearBufferiv\")\n\t}\n\tgpClearBufferuiv = (C.GPCLEARBUFFERUIV)(getProcAddr(\"glClearBufferuiv\"))\n\tif gpClearBufferuiv == nil {\n\t\treturn errors.New(\"glClearBufferuiv\")\n\t}\n\tgpClearColor = (C.GPCLEARCOLOR)(getProcAddr(\"glClearColor\"))\n\tif gpClearColor == nil {\n\t\treturn errors.New(\"glClearColor\")\n\t}\n\tgpClearDepth = (C.GPCLEARDEPTH)(getProcAddr(\"glClearDepth\"))\n\tif gpClearDepth == nil {\n\t\treturn errors.New(\"glClearDepth\")\n\t}\n\tgpClearDepthdNV = (C.GPCLEARDEPTHDNV)(getProcAddr(\"glClearDepthdNV\"))\n\tgpClearDepthf = (C.GPCLEARDEPTHF)(getProcAddr(\"glClearDepthf\"))\n\tif gpClearDepthf == nil {\n\t\treturn errors.New(\"glClearDepthf\")\n\t}\n\tgpClearNamedBufferData = (C.GPCLEARNAMEDBUFFERDATA)(getProcAddr(\"glClearNamedBufferData\"))\n\tgpClearNamedBufferDataEXT = (C.GPCLEARNAMEDBUFFERDATAEXT)(getProcAddr(\"glClearNamedBufferDataEXT\"))\n\tgpClearNamedBufferSubData = (C.GPCLEARNAMEDBUFFERSUBDATA)(getProcAddr(\"glClearNamedBufferSubData\"))\n\tgpClearNamedBufferSubDataEXT = (C.GPCLEARNAMEDBUFFERSUBDATAEXT)(getProcAddr(\"glClearNamedBufferSubDataEXT\"))\n\tgpClearNamedFramebufferfi = (C.GPCLEARNAMEDFRAMEBUFFERFI)(getProcAddr(\"glClearNamedFramebufferfi\"))\n\tgpClearNamedFramebufferfv = (C.GPCLEARNAMEDFRAMEBUFFERFV)(getProcAddr(\"glClearNamedFramebufferfv\"))\n\tgpClearNamedFramebufferiv = (C.GPCLEARNAMEDFRAMEBUFFERIV)(getProcAddr(\"glClearNamedFramebufferiv\"))\n\tgpClearNamedFramebufferuiv = (C.GPCLEARNAMEDFRAMEBUFFERUIV)(getProcAddr(\"glClearNamedFramebufferuiv\"))\n\tgpClearStencil = (C.GPCLEARSTENCIL)(getProcAddr(\"glClearStencil\"))\n\tif gpClearStencil == nil {\n\t\treturn errors.New(\"glClearStencil\")\n\t}\n\tgpClearTexImage = (C.GPCLEARTEXIMAGE)(getProcAddr(\"glClearTexImage\"))\n\tgpClearTexSubImage = (C.GPCLEARTEXSUBIMAGE)(getProcAddr(\"glClearTexSubImage\"))\n\tgpClientAttribDefaultEXT = (C.GPCLIENTATTRIBDEFAULTEXT)(getProcAddr(\"glClientAttribDefaultEXT\"))\n\tgpClientWaitSync = (C.GPCLIENTWAITSYNC)(getProcAddr(\"glClientWaitSync\"))\n\tif gpClientWaitSync == nil {\n\t\treturn errors.New(\"glClientWaitSync\")\n\t}\n\tgpClipControl = (C.GPCLIPCONTROL)(getProcAddr(\"glClipControl\"))\n\tgpColorFormatNV = (C.GPCOLORFORMATNV)(getProcAddr(\"glColorFormatNV\"))\n\tgpColorMask = (C.GPCOLORMASK)(getProcAddr(\"glColorMask\"))\n\tif gpColorMask == nil {\n\t\treturn errors.New(\"glColorMask\")\n\t}\n\tgpColorMaski = (C.GPCOLORMASKI)(getProcAddr(\"glColorMaski\"))\n\tif gpColorMaski == nil {\n\t\treturn errors.New(\"glColorMaski\")\n\t}\n\tgpCommandListSegmentsNV = (C.GPCOMMANDLISTSEGMENTSNV)(getProcAddr(\"glCommandListSegmentsNV\"))\n\tgpCompileCommandListNV = (C.GPCOMPILECOMMANDLISTNV)(getProcAddr(\"glCompileCommandListNV\"))\n\tgpCompileShader = (C.GPCOMPILESHADER)(getProcAddr(\"glCompileShader\"))\n\tif gpCompileShader == nil {\n\t\treturn errors.New(\"glCompileShader\")\n\t}\n\tgpCompileShaderIncludeARB = (C.GPCOMPILESHADERINCLUDEARB)(getProcAddr(\"glCompileShaderIncludeARB\"))\n\tgpCompressedMultiTexImage1DEXT = (C.GPCOMPRESSEDMULTITEXIMAGE1DEXT)(getProcAddr(\"glCompressedMultiTexImage1DEXT\"))\n\tgpCompressedMultiTexImage2DEXT = (C.GPCOMPRESSEDMULTITEXIMAGE2DEXT)(getProcAddr(\"glCompressedMultiTexImage2DEXT\"))\n\tgpCompressedMultiTexImage3DEXT = (C.GPCOMPRESSEDMULTITEXIMAGE3DEXT)(getProcAddr(\"glCompressedMultiTexImage3DEXT\"))\n\tgpCompressedMultiTexSubImage1DEXT = (C.GPCOMPRESSEDMULTITEXSUBIMAGE1DEXT)(getProcAddr(\"glCompressedMultiTexSubImage1DEXT\"))\n\tgpCompressedMultiTexSubImage2DEXT = (C.GPCOMPRESSEDMULTITEXSUBIMAGE2DEXT)(getProcAddr(\"glCompressedMultiTexSubImage2DEXT\"))\n\tgpCompressedMultiTexSubImage3DEXT = (C.GPCOMPRESSEDMULTITEXSUBIMAGE3DEXT)(getProcAddr(\"glCompressedMultiTexSubImage3DEXT\"))\n\tgpCompressedTexImage1D = (C.GPCOMPRESSEDTEXIMAGE1D)(getProcAddr(\"glCompressedTexImage1D\"))\n\tif gpCompressedTexImage1D == nil {\n\t\treturn errors.New(\"glCompressedTexImage1D\")\n\t}\n\tgpCompressedTexImage2D = (C.GPCOMPRESSEDTEXIMAGE2D)(getProcAddr(\"glCompressedTexImage2D\"))\n\tif gpCompressedTexImage2D == nil {\n\t\treturn errors.New(\"glCompressedTexImage2D\")\n\t}\n\tgpCompressedTexImage3D = (C.GPCOMPRESSEDTEXIMAGE3D)(getProcAddr(\"glCompressedTexImage3D\"))\n\tif gpCompressedTexImage3D == nil {\n\t\treturn errors.New(\"glCompressedTexImage3D\")\n\t}\n\tgpCompressedTexSubImage1D = (C.GPCOMPRESSEDTEXSUBIMAGE1D)(getProcAddr(\"glCompressedTexSubImage1D\"))\n\tif gpCompressedTexSubImage1D == nil {\n\t\treturn errors.New(\"glCompressedTexSubImage1D\")\n\t}\n\tgpCompressedTexSubImage2D = (C.GPCOMPRESSEDTEXSUBIMAGE2D)(getProcAddr(\"glCompressedTexSubImage2D\"))\n\tif gpCompressedTexSubImage2D == nil {\n\t\treturn errors.New(\"glCompressedTexSubImage2D\")\n\t}\n\tgpCompressedTexSubImage3D = (C.GPCOMPRESSEDTEXSUBIMAGE3D)(getProcAddr(\"glCompressedTexSubImage3D\"))\n\tif gpCompressedTexSubImage3D == nil {\n\t\treturn errors.New(\"glCompressedTexSubImage3D\")\n\t}\n\tgpCompressedTextureImage1DEXT = (C.GPCOMPRESSEDTEXTUREIMAGE1DEXT)(getProcAddr(\"glCompressedTextureImage1DEXT\"))\n\tgpCompressedTextureImage2DEXT = (C.GPCOMPRESSEDTEXTUREIMAGE2DEXT)(getProcAddr(\"glCompressedTextureImage2DEXT\"))\n\tgpCompressedTextureImage3DEXT = (C.GPCOMPRESSEDTEXTUREIMAGE3DEXT)(getProcAddr(\"glCompressedTextureImage3DEXT\"))\n\tgpCompressedTextureSubImage1D = (C.GPCOMPRESSEDTEXTURESUBIMAGE1D)(getProcAddr(\"glCompressedTextureSubImage1D\"))\n\tgpCompressedTextureSubImage1DEXT = (C.GPCOMPRESSEDTEXTURESUBIMAGE1DEXT)(getProcAddr(\"glCompressedTextureSubImage1DEXT\"))\n\tgpCompressedTextureSubImage2D = (C.GPCOMPRESSEDTEXTURESUBIMAGE2D)(getProcAddr(\"glCompressedTextureSubImage2D\"))\n\tgpCompressedTextureSubImage2DEXT = (C.GPCOMPRESSEDTEXTURESUBIMAGE2DEXT)(getProcAddr(\"glCompressedTextureSubImage2DEXT\"))\n\tgpCompressedTextureSubImage3D = (C.GPCOMPRESSEDTEXTURESUBIMAGE3D)(getProcAddr(\"glCompressedTextureSubImage3D\"))\n\tgpCompressedTextureSubImage3DEXT = (C.GPCOMPRESSEDTEXTURESUBIMAGE3DEXT)(getProcAddr(\"glCompressedTextureSubImage3DEXT\"))\n\tgpConservativeRasterParameterfNV = (C.GPCONSERVATIVERASTERPARAMETERFNV)(getProcAddr(\"glConservativeRasterParameterfNV\"))\n\tgpConservativeRasterParameteriNV = (C.GPCONSERVATIVERASTERPARAMETERINV)(getProcAddr(\"glConservativeRasterParameteriNV\"))\n\tgpCopyBufferSubData = (C.GPCOPYBUFFERSUBDATA)(getProcAddr(\"glCopyBufferSubData\"))\n\tif gpCopyBufferSubData == nil {\n\t\treturn errors.New(\"glCopyBufferSubData\")\n\t}\n\tgpCopyImageSubData = (C.GPCOPYIMAGESUBDATA)(getProcAddr(\"glCopyImageSubData\"))\n\tgpCopyMultiTexImage1DEXT = (C.GPCOPYMULTITEXIMAGE1DEXT)(getProcAddr(\"glCopyMultiTexImage1DEXT\"))\n\tgpCopyMultiTexImage2DEXT = (C.GPCOPYMULTITEXIMAGE2DEXT)(getProcAddr(\"glCopyMultiTexImage2DEXT\"))\n\tgpCopyMultiTexSubImage1DEXT = (C.GPCOPYMULTITEXSUBIMAGE1DEXT)(getProcAddr(\"glCopyMultiTexSubImage1DEXT\"))\n\tgpCopyMultiTexSubImage2DEXT = (C.GPCOPYMULTITEXSUBIMAGE2DEXT)(getProcAddr(\"glCopyMultiTexSubImage2DEXT\"))\n\tgpCopyMultiTexSubImage3DEXT = (C.GPCOPYMULTITEXSUBIMAGE3DEXT)(getProcAddr(\"glCopyMultiTexSubImage3DEXT\"))\n\tgpCopyNamedBufferSubData = (C.GPCOPYNAMEDBUFFERSUBDATA)(getProcAddr(\"glCopyNamedBufferSubData\"))\n\tgpCopyPathNV = (C.GPCOPYPATHNV)(getProcAddr(\"glCopyPathNV\"))\n\tgpCopyTexImage1D = (C.GPCOPYTEXIMAGE1D)(getProcAddr(\"glCopyTexImage1D\"))\n\tif gpCopyTexImage1D == nil {\n\t\treturn errors.New(\"glCopyTexImage1D\")\n\t}\n\tgpCopyTexImage2D = (C.GPCOPYTEXIMAGE2D)(getProcAddr(\"glCopyTexImage2D\"))\n\tif gpCopyTexImage2D == nil {\n\t\treturn errors.New(\"glCopyTexImage2D\")\n\t}\n\tgpCopyTexSubImage1D = (C.GPCOPYTEXSUBIMAGE1D)(getProcAddr(\"glCopyTexSubImage1D\"))\n\tif gpCopyTexSubImage1D == nil {\n\t\treturn errors.New(\"glCopyTexSubImage1D\")\n\t}\n\tgpCopyTexSubImage2D = (C.GPCOPYTEXSUBIMAGE2D)(getProcAddr(\"glCopyTexSubImage2D\"))\n\tif gpCopyTexSubImage2D == nil {\n\t\treturn errors.New(\"glCopyTexSubImage2D\")\n\t}\n\tgpCopyTexSubImage3D = (C.GPCOPYTEXSUBIMAGE3D)(getProcAddr(\"glCopyTexSubImage3D\"))\n\tif gpCopyTexSubImage3D == nil {\n\t\treturn errors.New(\"glCopyTexSubImage3D\")\n\t}\n\tgpCopyTextureImage1DEXT = (C.GPCOPYTEXTUREIMAGE1DEXT)(getProcAddr(\"glCopyTextureImage1DEXT\"))\n\tgpCopyTextureImage2DEXT = (C.GPCOPYTEXTUREIMAGE2DEXT)(getProcAddr(\"glCopyTextureImage2DEXT\"))\n\tgpCopyTextureSubImage1D = (C.GPCOPYTEXTURESUBIMAGE1D)(getProcAddr(\"glCopyTextureSubImage1D\"))\n\tgpCopyTextureSubImage1DEXT = (C.GPCOPYTEXTURESUBIMAGE1DEXT)(getProcAddr(\"glCopyTextureSubImage1DEXT\"))\n\tgpCopyTextureSubImage2D = (C.GPCOPYTEXTURESUBIMAGE2D)(getProcAddr(\"glCopyTextureSubImage2D\"))\n\tgpCopyTextureSubImage2DEXT = (C.GPCOPYTEXTURESUBIMAGE2DEXT)(getProcAddr(\"glCopyTextureSubImage2DEXT\"))\n\tgpCopyTextureSubImage3D = (C.GPCOPYTEXTURESUBIMAGE3D)(getProcAddr(\"glCopyTextureSubImage3D\"))\n\tgpCopyTextureSubImage3DEXT = (C.GPCOPYTEXTURESUBIMAGE3DEXT)(getProcAddr(\"glCopyTextureSubImage3DEXT\"))\n\tgpCoverFillPathInstancedNV = (C.GPCOVERFILLPATHINSTANCEDNV)(getProcAddr(\"glCoverFillPathInstancedNV\"))\n\tgpCoverFillPathNV = (C.GPCOVERFILLPATHNV)(getProcAddr(\"glCoverFillPathNV\"))\n\tgpCoverStrokePathInstancedNV = (C.GPCOVERSTROKEPATHINSTANCEDNV)(getProcAddr(\"glCoverStrokePathInstancedNV\"))\n\tgpCoverStrokePathNV = (C.GPCOVERSTROKEPATHNV)(getProcAddr(\"glCoverStrokePathNV\"))\n\tgpCoverageModulationNV = (C.GPCOVERAGEMODULATIONNV)(getProcAddr(\"glCoverageModulationNV\"))\n\tgpCoverageModulationTableNV = (C.GPCOVERAGEMODULATIONTABLENV)(getProcAddr(\"glCoverageModulationTableNV\"))\n\tgpCreateBuffers = (C.GPCREATEBUFFERS)(getProcAddr(\"glCreateBuffers\"))\n\tgpCreateCommandListsNV = (C.GPCREATECOMMANDLISTSNV)(getProcAddr(\"glCreateCommandListsNV\"))\n\tgpCreateFramebuffers = (C.GPCREATEFRAMEBUFFERS)(getProcAddr(\"glCreateFramebuffers\"))\n\tgpCreatePerfQueryINTEL = (C.GPCREATEPERFQUERYINTEL)(getProcAddr(\"glCreatePerfQueryINTEL\"))\n\tgpCreateProgram = (C.GPCREATEPROGRAM)(getProcAddr(\"glCreateProgram\"))\n\tif gpCreateProgram == nil {\n\t\treturn errors.New(\"glCreateProgram\")\n\t}\n\tgpCreateProgramPipelines = (C.GPCREATEPROGRAMPIPELINES)(getProcAddr(\"glCreateProgramPipelines\"))\n\tgpCreateQueries = (C.GPCREATEQUERIES)(getProcAddr(\"glCreateQueries\"))\n\tgpCreateRenderbuffers = (C.GPCREATERENDERBUFFERS)(getProcAddr(\"glCreateRenderbuffers\"))\n\tgpCreateSamplers = (C.GPCREATESAMPLERS)(getProcAddr(\"glCreateSamplers\"))\n\tgpCreateShader = (C.GPCREATESHADER)(getProcAddr(\"glCreateShader\"))\n\tif gpCreateShader == nil {\n\t\treturn errors.New(\"glCreateShader\")\n\t}\n\tgpCreateShaderProgramEXT = (C.GPCREATESHADERPROGRAMEXT)(getProcAddr(\"glCreateShaderProgramEXT\"))\n\tgpCreateShaderProgramv = (C.GPCREATESHADERPROGRAMV)(getProcAddr(\"glCreateShaderProgramv\"))\n\tif gpCreateShaderProgramv == nil {\n\t\treturn errors.New(\"glCreateShaderProgramv\")\n\t}\n\tgpCreateShaderProgramvEXT = (C.GPCREATESHADERPROGRAMVEXT)(getProcAddr(\"glCreateShaderProgramvEXT\"))\n\tgpCreateStatesNV = (C.GPCREATESTATESNV)(getProcAddr(\"glCreateStatesNV\"))\n\tgpCreateSyncFromCLeventARB = (C.GPCREATESYNCFROMCLEVENTARB)(getProcAddr(\"glCreateSyncFromCLeventARB\"))\n\tgpCreateTextures = (C.GPCREATETEXTURES)(getProcAddr(\"glCreateTextures\"))\n\tgpCreateTransformFeedbacks = (C.GPCREATETRANSFORMFEEDBACKS)(getProcAddr(\"glCreateTransformFeedbacks\"))\n\tgpCreateVertexArrays = (C.GPCREATEVERTEXARRAYS)(getProcAddr(\"glCreateVertexArrays\"))\n\tgpCullFace = (C.GPCULLFACE)(getProcAddr(\"glCullFace\"))\n\tif gpCullFace == nil {\n\t\treturn errors.New(\"glCullFace\")\n\t}\n\tgpDebugMessageCallback = (C.GPDEBUGMESSAGECALLBACK)(getProcAddr(\"glDebugMessageCallback\"))\n\tgpDebugMessageCallbackARB = (C.GPDEBUGMESSAGECALLBACKARB)(getProcAddr(\"glDebugMessageCallbackARB\"))\n\tgpDebugMessageCallbackKHR = (C.GPDEBUGMESSAGECALLBACKKHR)(getProcAddr(\"glDebugMessageCallbackKHR\"))\n\tgpDebugMessageControl = (C.GPDEBUGMESSAGECONTROL)(getProcAddr(\"glDebugMessageControl\"))\n\tgpDebugMessageControlARB = (C.GPDEBUGMESSAGECONTROLARB)(getProcAddr(\"glDebugMessageControlARB\"))\n\tgpDebugMessageControlKHR = (C.GPDEBUGMESSAGECONTROLKHR)(getProcAddr(\"glDebugMessageControlKHR\"))\n\tgpDebugMessageInsert = (C.GPDEBUGMESSAGEINSERT)(getProcAddr(\"glDebugMessageInsert\"))\n\tgpDebugMessageInsertARB = (C.GPDEBUGMESSAGEINSERTARB)(getProcAddr(\"glDebugMessageInsertARB\"))\n\tgpDebugMessageInsertKHR = (C.GPDEBUGMESSAGEINSERTKHR)(getProcAddr(\"glDebugMessageInsertKHR\"))\n\tgpDeleteBuffers = (C.GPDELETEBUFFERS)(getProcAddr(\"glDeleteBuffers\"))\n\tif gpDeleteBuffers == nil {\n\t\treturn errors.New(\"glDeleteBuffers\")\n\t}\n\tgpDeleteCommandListsNV = (C.GPDELETECOMMANDLISTSNV)(getProcAddr(\"glDeleteCommandListsNV\"))\n\tgpDeleteFramebuffers = (C.GPDELETEFRAMEBUFFERS)(getProcAddr(\"glDeleteFramebuffers\"))\n\tif gpDeleteFramebuffers == nil {\n\t\treturn errors.New(\"glDeleteFramebuffers\")\n\t}\n\tgpDeleteNamedStringARB = (C.GPDELETENAMEDSTRINGARB)(getProcAddr(\"glDeleteNamedStringARB\"))\n\tgpDeletePathsNV = (C.GPDELETEPATHSNV)(getProcAddr(\"glDeletePathsNV\"))\n\tgpDeletePerfMonitorsAMD = (C.GPDELETEPERFMONITORSAMD)(getProcAddr(\"glDeletePerfMonitorsAMD\"))\n\tgpDeletePerfQueryINTEL = (C.GPDELETEPERFQUERYINTEL)(getProcAddr(\"glDeletePerfQueryINTEL\"))\n\tgpDeleteProgram = (C.GPDELETEPROGRAM)(getProcAddr(\"glDeleteProgram\"))\n\tif gpDeleteProgram == nil {\n\t\treturn errors.New(\"glDeleteProgram\")\n\t}\n\tgpDeleteProgramPipelines = (C.GPDELETEPROGRAMPIPELINES)(getProcAddr(\"glDeleteProgramPipelines\"))\n\tif gpDeleteProgramPipelines == nil {\n\t\treturn errors.New(\"glDeleteProgramPipelines\")\n\t}\n\tgpDeleteProgramPipelinesEXT = (C.GPDELETEPROGRAMPIPELINESEXT)(getProcAddr(\"glDeleteProgramPipelinesEXT\"))\n\tgpDeleteQueries = (C.GPDELETEQUERIES)(getProcAddr(\"glDeleteQueries\"))\n\tif gpDeleteQueries == nil {\n\t\treturn errors.New(\"glDeleteQueries\")\n\t}\n\tgpDeleteRenderbuffers = (C.GPDELETERENDERBUFFERS)(getProcAddr(\"glDeleteRenderbuffers\"))\n\tif gpDeleteRenderbuffers == nil {\n\t\treturn errors.New(\"glDeleteRenderbuffers\")\n\t}\n\tgpDeleteSamplers = (C.GPDELETESAMPLERS)(getProcAddr(\"glDeleteSamplers\"))\n\tif gpDeleteSamplers == nil {\n\t\treturn errors.New(\"glDeleteSamplers\")\n\t}\n\tgpDeleteShader = (C.GPDELETESHADER)(getProcAddr(\"glDeleteShader\"))\n\tif gpDeleteShader == nil {\n\t\treturn errors.New(\"glDeleteShader\")\n\t}\n\tgpDeleteStatesNV = (C.GPDELETESTATESNV)(getProcAddr(\"glDeleteStatesNV\"))\n\tgpDeleteSync = (C.GPDELETESYNC)(getProcAddr(\"glDeleteSync\"))\n\tif gpDeleteSync == nil {\n\t\treturn errors.New(\"glDeleteSync\")\n\t}\n\tgpDeleteTextures = (C.GPDELETETEXTURES)(getProcAddr(\"glDeleteTextures\"))\n\tif gpDeleteTextures == nil {\n\t\treturn errors.New(\"glDeleteTextures\")\n\t}\n\tgpDeleteTransformFeedbacks = (C.GPDELETETRANSFORMFEEDBACKS)(getProcAddr(\"glDeleteTransformFeedbacks\"))\n\tif gpDeleteTransformFeedbacks == nil {\n\t\treturn errors.New(\"glDeleteTransformFeedbacks\")\n\t}\n\tgpDeleteVertexArrays = (C.GPDELETEVERTEXARRAYS)(getProcAddr(\"glDeleteVertexArrays\"))\n\tif gpDeleteVertexArrays == nil {\n\t\treturn errors.New(\"glDeleteVertexArrays\")\n\t}\n\tgpDepthBoundsdNV = (C.GPDEPTHBOUNDSDNV)(getProcAddr(\"glDepthBoundsdNV\"))\n\tgpDepthFunc = (C.GPDEPTHFUNC)(getProcAddr(\"glDepthFunc\"))\n\tif gpDepthFunc == nil {\n\t\treturn errors.New(\"glDepthFunc\")\n\t}\n\tgpDepthMask = (C.GPDEPTHMASK)(getProcAddr(\"glDepthMask\"))\n\tif gpDepthMask == nil {\n\t\treturn errors.New(\"glDepthMask\")\n\t}\n\tgpDepthRange = (C.GPDEPTHRANGE)(getProcAddr(\"glDepthRange\"))\n\tif gpDepthRange == nil {\n\t\treturn errors.New(\"glDepthRange\")\n\t}\n\tgpDepthRangeArraydvNV = (C.GPDEPTHRANGEARRAYDVNV)(getProcAddr(\"glDepthRangeArraydvNV\"))\n\tgpDepthRangeArrayv = (C.GPDEPTHRANGEARRAYV)(getProcAddr(\"glDepthRangeArrayv\"))\n\tif gpDepthRangeArrayv == nil {\n\t\treturn errors.New(\"glDepthRangeArrayv\")\n\t}\n\tgpDepthRangeIndexed = (C.GPDEPTHRANGEINDEXED)(getProcAddr(\"glDepthRangeIndexed\"))\n\tif gpDepthRangeIndexed == nil {\n\t\treturn errors.New(\"glDepthRangeIndexed\")\n\t}\n\tgpDepthRangeIndexeddNV = (C.GPDEPTHRANGEINDEXEDDNV)(getProcAddr(\"glDepthRangeIndexeddNV\"))\n\tgpDepthRangedNV = (C.GPDEPTHRANGEDNV)(getProcAddr(\"glDepthRangedNV\"))\n\tgpDepthRangef = (C.GPDEPTHRANGEF)(getProcAddr(\"glDepthRangef\"))\n\tif gpDepthRangef == nil {\n\t\treturn errors.New(\"glDepthRangef\")\n\t}\n\tgpDetachShader = (C.GPDETACHSHADER)(getProcAddr(\"glDetachShader\"))\n\tif gpDetachShader == nil {\n\t\treturn errors.New(\"glDetachShader\")\n\t}\n\tgpDisable = (C.GPDISABLE)(getProcAddr(\"glDisable\"))\n\tif gpDisable == nil {\n\t\treturn errors.New(\"glDisable\")\n\t}\n\tgpDisableClientStateIndexedEXT = (C.GPDISABLECLIENTSTATEINDEXEDEXT)(getProcAddr(\"glDisableClientStateIndexedEXT\"))\n\tgpDisableClientStateiEXT = (C.GPDISABLECLIENTSTATEIEXT)(getProcAddr(\"glDisableClientStateiEXT\"))\n\tgpDisableIndexedEXT = (C.GPDISABLEINDEXEDEXT)(getProcAddr(\"glDisableIndexedEXT\"))\n\tgpDisableVertexArrayAttrib = (C.GPDISABLEVERTEXARRAYATTRIB)(getProcAddr(\"glDisableVertexArrayAttrib\"))\n\tgpDisableVertexArrayAttribEXT = (C.GPDISABLEVERTEXARRAYATTRIBEXT)(getProcAddr(\"glDisableVertexArrayAttribEXT\"))\n\tgpDisableVertexArrayEXT = (C.GPDISABLEVERTEXARRAYEXT)(getProcAddr(\"glDisableVertexArrayEXT\"))\n\tgpDisableVertexAttribArray = (C.GPDISABLEVERTEXATTRIBARRAY)(getProcAddr(\"glDisableVertexAttribArray\"))\n\tif gpDisableVertexAttribArray == nil {\n\t\treturn errors.New(\"glDisableVertexAttribArray\")\n\t}\n\tgpDisablei = (C.GPDISABLEI)(getProcAddr(\"glDisablei\"))\n\tif gpDisablei == nil {\n\t\treturn errors.New(\"glDisablei\")\n\t}\n\tgpDispatchCompute = (C.GPDISPATCHCOMPUTE)(getProcAddr(\"glDispatchCompute\"))\n\tgpDispatchComputeGroupSizeARB = (C.GPDISPATCHCOMPUTEGROUPSIZEARB)(getProcAddr(\"glDispatchComputeGroupSizeARB\"))\n\tgpDispatchComputeIndirect = (C.GPDISPATCHCOMPUTEINDIRECT)(getProcAddr(\"glDispatchComputeIndirect\"))\n\tgpDrawArrays = (C.GPDRAWARRAYS)(getProcAddr(\"glDrawArrays\"))\n\tif gpDrawArrays == nil {\n\t\treturn errors.New(\"glDrawArrays\")\n\t}\n\tgpDrawArraysIndirect = (C.GPDRAWARRAYSINDIRECT)(getProcAddr(\"glDrawArraysIndirect\"))\n\tif gpDrawArraysIndirect == nil {\n\t\treturn errors.New(\"glDrawArraysIndirect\")\n\t}\n\tgpDrawArraysInstanced = (C.GPDRAWARRAYSINSTANCED)(getProcAddr(\"glDrawArraysInstanced\"))\n\tif gpDrawArraysInstanced == nil {\n\t\treturn errors.New(\"glDrawArraysInstanced\")\n\t}\n\tgpDrawArraysInstancedARB = (C.GPDRAWARRAYSINSTANCEDARB)(getProcAddr(\"glDrawArraysInstancedARB\"))\n\tgpDrawArraysInstancedBaseInstance = (C.GPDRAWARRAYSINSTANCEDBASEINSTANCE)(getProcAddr(\"glDrawArraysInstancedBaseInstance\"))\n\tif gpDrawArraysInstancedBaseInstance == nil {\n\t\treturn errors.New(\"glDrawArraysInstancedBaseInstance\")\n\t}\n\tgpDrawArraysInstancedEXT = (C.GPDRAWARRAYSINSTANCEDEXT)(getProcAddr(\"glDrawArraysInstancedEXT\"))\n\tgpDrawBuffer = (C.GPDRAWBUFFER)(getProcAddr(\"glDrawBuffer\"))\n\tif gpDrawBuffer == nil {\n\t\treturn errors.New(\"glDrawBuffer\")\n\t}\n\tgpDrawBuffers = (C.GPDRAWBUFFERS)(getProcAddr(\"glDrawBuffers\"))\n\tif gpDrawBuffers == nil {\n\t\treturn errors.New(\"glDrawBuffers\")\n\t}\n\tgpDrawCommandsAddressNV = (C.GPDRAWCOMMANDSADDRESSNV)(getProcAddr(\"glDrawCommandsAddressNV\"))\n\tgpDrawCommandsNV = (C.GPDRAWCOMMANDSNV)(getProcAddr(\"glDrawCommandsNV\"))\n\tgpDrawCommandsStatesAddressNV = (C.GPDRAWCOMMANDSSTATESADDRESSNV)(getProcAddr(\"glDrawCommandsStatesAddressNV\"))\n\tgpDrawCommandsStatesNV = (C.GPDRAWCOMMANDSSTATESNV)(getProcAddr(\"glDrawCommandsStatesNV\"))\n\tgpDrawElements = (C.GPDRAWELEMENTS)(getProcAddr(\"glDrawElements\"))\n\tif gpDrawElements == nil {\n\t\treturn errors.New(\"glDrawElements\")\n\t}\n\tgpDrawElementsBaseVertex = (C.GPDRAWELEMENTSBASEVERTEX)(getProcAddr(\"glDrawElementsBaseVertex\"))\n\tif gpDrawElementsBaseVertex == nil {\n\t\treturn errors.New(\"glDrawElementsBaseVertex\")\n\t}\n\tgpDrawElementsIndirect = (C.GPDRAWELEMENTSINDIRECT)(getProcAddr(\"glDrawElementsIndirect\"))\n\tif gpDrawElementsIndirect == nil {\n\t\treturn errors.New(\"glDrawElementsIndirect\")\n\t}\n\tgpDrawElementsInstanced = (C.GPDRAWELEMENTSINSTANCED)(getProcAddr(\"glDrawElementsInstanced\"))\n\tif gpDrawElementsInstanced == nil {\n\t\treturn errors.New(\"glDrawElementsInstanced\")\n\t}\n\tgpDrawElementsInstancedARB = (C.GPDRAWELEMENTSINSTANCEDARB)(getProcAddr(\"glDrawElementsInstancedARB\"))\n\tgpDrawElementsInstancedBaseInstance = (C.GPDRAWELEMENTSINSTANCEDBASEINSTANCE)(getProcAddr(\"glDrawElementsInstancedBaseInstance\"))\n\tif gpDrawElementsInstancedBaseInstance == nil {\n\t\treturn errors.New(\"glDrawElementsInstancedBaseInstance\")\n\t}\n\tgpDrawElementsInstancedBaseVertex = (C.GPDRAWELEMENTSINSTANCEDBASEVERTEX)(getProcAddr(\"glDrawElementsInstancedBaseVertex\"))\n\tif gpDrawElementsInstancedBaseVertex == nil {\n\t\treturn errors.New(\"glDrawElementsInstancedBaseVertex\")\n\t}\n\tgpDrawElementsInstancedBaseVertexBaseInstance = (C.GPDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCE)(getProcAddr(\"glDrawElementsInstancedBaseVertexBaseInstance\"))\n\tif gpDrawElementsInstancedBaseVertexBaseInstance == nil {\n\t\treturn errors.New(\"glDrawElementsInstancedBaseVertexBaseInstance\")\n\t}\n\tgpDrawElementsInstancedEXT = (C.GPDRAWELEMENTSINSTANCEDEXT)(getProcAddr(\"glDrawElementsInstancedEXT\"))\n\tgpDrawMeshTasksIndirectNV = (C.GPDRAWMESHTASKSINDIRECTNV)(getProcAddr(\"glDrawMeshTasksIndirectNV\"))\n\tgpDrawMeshTasksNV = (C.GPDRAWMESHTASKSNV)(getProcAddr(\"glDrawMeshTasksNV\"))\n\tgpDrawRangeElements = (C.GPDRAWRANGEELEMENTS)(getProcAddr(\"glDrawRangeElements\"))\n\tif gpDrawRangeElements == nil {\n\t\treturn errors.New(\"glDrawRangeElements\")\n\t}\n\tgpDrawRangeElementsBaseVertex = (C.GPDRAWRANGEELEMENTSBASEVERTEX)(getProcAddr(\"glDrawRangeElementsBaseVertex\"))\n\tif gpDrawRangeElementsBaseVertex == nil {\n\t\treturn errors.New(\"glDrawRangeElementsBaseVertex\")\n\t}\n\tgpDrawTransformFeedback = (C.GPDRAWTRANSFORMFEEDBACK)(getProcAddr(\"glDrawTransformFeedback\"))\n\tif gpDrawTransformFeedback == nil {\n\t\treturn errors.New(\"glDrawTransformFeedback\")\n\t}\n\tgpDrawTransformFeedbackInstanced = (C.GPDRAWTRANSFORMFEEDBACKINSTANCED)(getProcAddr(\"glDrawTransformFeedbackInstanced\"))\n\tif gpDrawTransformFeedbackInstanced == nil {\n\t\treturn errors.New(\"glDrawTransformFeedbackInstanced\")\n\t}\n\tgpDrawTransformFeedbackStream = (C.GPDRAWTRANSFORMFEEDBACKSTREAM)(getProcAddr(\"glDrawTransformFeedbackStream\"))\n\tif gpDrawTransformFeedbackStream == nil {\n\t\treturn errors.New(\"glDrawTransformFeedbackStream\")\n\t}\n\tgpDrawTransformFeedbackStreamInstanced = (C.GPDRAWTRANSFORMFEEDBACKSTREAMINSTANCED)(getProcAddr(\"glDrawTransformFeedbackStreamInstanced\"))\n\tif gpDrawTransformFeedbackStreamInstanced == nil {\n\t\treturn errors.New(\"glDrawTransformFeedbackStreamInstanced\")\n\t}\n\tgpDrawVkImageNV = (C.GPDRAWVKIMAGENV)(getProcAddr(\"glDrawVkImageNV\"))\n\tgpEGLImageTargetTexStorageEXT = (C.GPEGLIMAGETARGETTEXSTORAGEEXT)(getProcAddr(\"glEGLImageTargetTexStorageEXT\"))\n\tgpEGLImageTargetTextureStorageEXT = (C.GPEGLIMAGETARGETTEXTURESTORAGEEXT)(getProcAddr(\"glEGLImageTargetTextureStorageEXT\"))\n\tgpEdgeFlagFormatNV = (C.GPEDGEFLAGFORMATNV)(getProcAddr(\"glEdgeFlagFormatNV\"))\n\tgpEnable = (C.GPENABLE)(getProcAddr(\"glEnable\"))\n\tif gpEnable == nil {\n\t\treturn errors.New(\"glEnable\")\n\t}\n\tgpEnableClientStateIndexedEXT = (C.GPENABLECLIENTSTATEINDEXEDEXT)(getProcAddr(\"glEnableClientStateIndexedEXT\"))\n\tgpEnableClientStateiEXT = (C.GPENABLECLIENTSTATEIEXT)(getProcAddr(\"glEnableClientStateiEXT\"))\n\tgpEnableIndexedEXT = (C.GPENABLEINDEXEDEXT)(getProcAddr(\"glEnableIndexedEXT\"))\n\tgpEnableVertexArrayAttrib = (C.GPENABLEVERTEXARRAYATTRIB)(getProcAddr(\"glEnableVertexArrayAttrib\"))\n\tgpEnableVertexArrayAttribEXT = (C.GPENABLEVERTEXARRAYATTRIBEXT)(getProcAddr(\"glEnableVertexArrayAttribEXT\"))\n\tgpEnableVertexArrayEXT = (C.GPENABLEVERTEXARRAYEXT)(getProcAddr(\"glEnableVertexArrayEXT\"))\n\tgpEnableVertexAttribArray = (C.GPENABLEVERTEXATTRIBARRAY)(getProcAddr(\"glEnableVertexAttribArray\"))\n\tif gpEnableVertexAttribArray == nil {\n\t\treturn errors.New(\"glEnableVertexAttribArray\")\n\t}\n\tgpEnablei = (C.GPENABLEI)(getProcAddr(\"glEnablei\"))\n\tif gpEnablei == nil {\n\t\treturn errors.New(\"glEnablei\")\n\t}\n\tgpEndConditionalRender = (C.GPENDCONDITIONALRENDER)(getProcAddr(\"glEndConditionalRender\"))\n\tif gpEndConditionalRender == nil {\n\t\treturn errors.New(\"glEndConditionalRender\")\n\t}\n\tgpEndConditionalRenderNV = (C.GPENDCONDITIONALRENDERNV)(getProcAddr(\"glEndConditionalRenderNV\"))\n\tgpEndPerfMonitorAMD = (C.GPENDPERFMONITORAMD)(getProcAddr(\"glEndPerfMonitorAMD\"))\n\tgpEndPerfQueryINTEL = (C.GPENDPERFQUERYINTEL)(getProcAddr(\"glEndPerfQueryINTEL\"))\n\tgpEndQuery = (C.GPENDQUERY)(getProcAddr(\"glEndQuery\"))\n\tif gpEndQuery == nil {\n\t\treturn errors.New(\"glEndQuery\")\n\t}\n\tgpEndQueryIndexed = (C.GPENDQUERYINDEXED)(getProcAddr(\"glEndQueryIndexed\"))\n\tif gpEndQueryIndexed == nil {\n\t\treturn errors.New(\"glEndQueryIndexed\")\n\t}\n\tgpEndTransformFeedback = (C.GPENDTRANSFORMFEEDBACK)(getProcAddr(\"glEndTransformFeedback\"))\n\tif gpEndTransformFeedback == nil {\n\t\treturn errors.New(\"glEndTransformFeedback\")\n\t}\n\tgpEvaluateDepthValuesARB = (C.GPEVALUATEDEPTHVALUESARB)(getProcAddr(\"glEvaluateDepthValuesARB\"))\n\tgpFenceSync = (C.GPFENCESYNC)(getProcAddr(\"glFenceSync\"))\n\tif gpFenceSync == nil {\n\t\treturn errors.New(\"glFenceSync\")\n\t}\n\tgpFinish = (C.GPFINISH)(getProcAddr(\"glFinish\"))\n\tif gpFinish == nil {\n\t\treturn errors.New(\"glFinish\")\n\t}\n\tgpFlush = (C.GPFLUSH)(getProcAddr(\"glFlush\"))\n\tif gpFlush == nil {\n\t\treturn errors.New(\"glFlush\")\n\t}\n\tgpFlushMappedBufferRange = (C.GPFLUSHMAPPEDBUFFERRANGE)(getProcAddr(\"glFlushMappedBufferRange\"))\n\tif gpFlushMappedBufferRange == nil {\n\t\treturn errors.New(\"glFlushMappedBufferRange\")\n\t}\n\tgpFlushMappedNamedBufferRange = (C.GPFLUSHMAPPEDNAMEDBUFFERRANGE)(getProcAddr(\"glFlushMappedNamedBufferRange\"))\n\tgpFlushMappedNamedBufferRangeEXT = (C.GPFLUSHMAPPEDNAMEDBUFFERRANGEEXT)(getProcAddr(\"glFlushMappedNamedBufferRangeEXT\"))\n\tgpFogCoordFormatNV = (C.GPFOGCOORDFORMATNV)(getProcAddr(\"glFogCoordFormatNV\"))\n\tgpFragmentCoverageColorNV = (C.GPFRAGMENTCOVERAGECOLORNV)(getProcAddr(\"glFragmentCoverageColorNV\"))\n\tgpFramebufferDrawBufferEXT = (C.GPFRAMEBUFFERDRAWBUFFEREXT)(getProcAddr(\"glFramebufferDrawBufferEXT\"))\n\tgpFramebufferDrawBuffersEXT = (C.GPFRAMEBUFFERDRAWBUFFERSEXT)(getProcAddr(\"glFramebufferDrawBuffersEXT\"))\n\tgpFramebufferFetchBarrierEXT = (C.GPFRAMEBUFFERFETCHBARRIEREXT)(getProcAddr(\"glFramebufferFetchBarrierEXT\"))\n\tgpFramebufferParameteri = (C.GPFRAMEBUFFERPARAMETERI)(getProcAddr(\"glFramebufferParameteri\"))\n\tgpFramebufferParameteriMESA = (C.GPFRAMEBUFFERPARAMETERIMESA)(getProcAddr(\"glFramebufferParameteriMESA\"))\n\tgpFramebufferReadBufferEXT = (C.GPFRAMEBUFFERREADBUFFEREXT)(getProcAddr(\"glFramebufferReadBufferEXT\"))\n\tgpFramebufferRenderbuffer = (C.GPFRAMEBUFFERRENDERBUFFER)(getProcAddr(\"glFramebufferRenderbuffer\"))\n\tif gpFramebufferRenderbuffer == nil {\n\t\treturn errors.New(\"glFramebufferRenderbuffer\")\n\t}\n\tgpFramebufferSampleLocationsfvARB = (C.GPFRAMEBUFFERSAMPLELOCATIONSFVARB)(getProcAddr(\"glFramebufferSampleLocationsfvARB\"))\n\tgpFramebufferSampleLocationsfvNV = (C.GPFRAMEBUFFERSAMPLELOCATIONSFVNV)(getProcAddr(\"glFramebufferSampleLocationsfvNV\"))\n\tgpFramebufferTexture = (C.GPFRAMEBUFFERTEXTURE)(getProcAddr(\"glFramebufferTexture\"))\n\tif gpFramebufferTexture == nil {\n\t\treturn errors.New(\"glFramebufferTexture\")\n\t}\n\tgpFramebufferTexture1D = (C.GPFRAMEBUFFERTEXTURE1D)(getProcAddr(\"glFramebufferTexture1D\"))\n\tif gpFramebufferTexture1D == nil {\n\t\treturn errors.New(\"glFramebufferTexture1D\")\n\t}\n\tgpFramebufferTexture2D = (C.GPFRAMEBUFFERTEXTURE2D)(getProcAddr(\"glFramebufferTexture2D\"))\n\tif gpFramebufferTexture2D == nil {\n\t\treturn errors.New(\"glFramebufferTexture2D\")\n\t}\n\tgpFramebufferTexture3D = (C.GPFRAMEBUFFERTEXTURE3D)(getProcAddr(\"glFramebufferTexture3D\"))\n\tif gpFramebufferTexture3D == nil {\n\t\treturn errors.New(\"glFramebufferTexture3D\")\n\t}\n\tgpFramebufferTextureARB = (C.GPFRAMEBUFFERTEXTUREARB)(getProcAddr(\"glFramebufferTextureARB\"))\n\tgpFramebufferTextureFaceARB = (C.GPFRAMEBUFFERTEXTUREFACEARB)(getProcAddr(\"glFramebufferTextureFaceARB\"))\n\tgpFramebufferTextureLayer = (C.GPFRAMEBUFFERTEXTURELAYER)(getProcAddr(\"glFramebufferTextureLayer\"))\n\tif gpFramebufferTextureLayer == nil {\n\t\treturn errors.New(\"glFramebufferTextureLayer\")\n\t}\n\tgpFramebufferTextureLayerARB = (C.GPFRAMEBUFFERTEXTURELAYERARB)(getProcAddr(\"glFramebufferTextureLayerARB\"))\n\tgpFramebufferTextureMultiviewOVR = (C.GPFRAMEBUFFERTEXTUREMULTIVIEWOVR)(getProcAddr(\"glFramebufferTextureMultiviewOVR\"))\n\tgpFrontFace = (C.GPFRONTFACE)(getProcAddr(\"glFrontFace\"))\n\tif gpFrontFace == nil {\n\t\treturn errors.New(\"glFrontFace\")\n\t}\n\tgpGenBuffers = (C.GPGENBUFFERS)(getProcAddr(\"glGenBuffers\"))\n\tif gpGenBuffers == nil {\n\t\treturn errors.New(\"glGenBuffers\")\n\t}\n\tgpGenFramebuffers = (C.GPGENFRAMEBUFFERS)(getProcAddr(\"glGenFramebuffers\"))\n\tif gpGenFramebuffers == nil {\n\t\treturn errors.New(\"glGenFramebuffers\")\n\t}\n\tgpGenPathsNV = (C.GPGENPATHSNV)(getProcAddr(\"glGenPathsNV\"))\n\tgpGenPerfMonitorsAMD = (C.GPGENPERFMONITORSAMD)(getProcAddr(\"glGenPerfMonitorsAMD\"))\n\tgpGenProgramPipelines = (C.GPGENPROGRAMPIPELINES)(getProcAddr(\"glGenProgramPipelines\"))\n\tif gpGenProgramPipelines == nil {\n\t\treturn errors.New(\"glGenProgramPipelines\")\n\t}\n\tgpGenProgramPipelinesEXT = (C.GPGENPROGRAMPIPELINESEXT)(getProcAddr(\"glGenProgramPipelinesEXT\"))\n\tgpGenQueries = (C.GPGENQUERIES)(getProcAddr(\"glGenQueries\"))\n\tif gpGenQueries == nil {\n\t\treturn errors.New(\"glGenQueries\")\n\t}\n\tgpGenRenderbuffers = (C.GPGENRENDERBUFFERS)(getProcAddr(\"glGenRenderbuffers\"))\n\tif gpGenRenderbuffers == nil {\n\t\treturn errors.New(\"glGenRenderbuffers\")\n\t}\n\tgpGenSamplers = (C.GPGENSAMPLERS)(getProcAddr(\"glGenSamplers\"))\n\tif gpGenSamplers == nil {\n\t\treturn errors.New(\"glGenSamplers\")\n\t}\n\tgpGenTextures = (C.GPGENTEXTURES)(getProcAddr(\"glGenTextures\"))\n\tif gpGenTextures == nil {\n\t\treturn errors.New(\"glGenTextures\")\n\t}\n\tgpGenTransformFeedbacks = (C.GPGENTRANSFORMFEEDBACKS)(getProcAddr(\"glGenTransformFeedbacks\"))\n\tif gpGenTransformFeedbacks == nil {\n\t\treturn errors.New(\"glGenTransformFeedbacks\")\n\t}\n\tgpGenVertexArrays = (C.GPGENVERTEXARRAYS)(getProcAddr(\"glGenVertexArrays\"))\n\tif gpGenVertexArrays == nil {\n\t\treturn errors.New(\"glGenVertexArrays\")\n\t}\n\tgpGenerateMipmap = (C.GPGENERATEMIPMAP)(getProcAddr(\"glGenerateMipmap\"))\n\tif gpGenerateMipmap == nil {\n\t\treturn errors.New(\"glGenerateMipmap\")\n\t}\n\tgpGenerateMultiTexMipmapEXT = (C.GPGENERATEMULTITEXMIPMAPEXT)(getProcAddr(\"glGenerateMultiTexMipmapEXT\"))\n\tgpGenerateTextureMipmap = (C.GPGENERATETEXTUREMIPMAP)(getProcAddr(\"glGenerateTextureMipmap\"))\n\tgpGenerateTextureMipmapEXT = (C.GPGENERATETEXTUREMIPMAPEXT)(getProcAddr(\"glGenerateTextureMipmapEXT\"))\n\tgpGetActiveAtomicCounterBufferiv = (C.GPGETACTIVEATOMICCOUNTERBUFFERIV)(getProcAddr(\"glGetActiveAtomicCounterBufferiv\"))\n\tif gpGetActiveAtomicCounterBufferiv == nil {\n\t\treturn errors.New(\"glGetActiveAtomicCounterBufferiv\")\n\t}\n\tgpGetActiveAttrib = (C.GPGETACTIVEATTRIB)(getProcAddr(\"glGetActiveAttrib\"))\n\tif gpGetActiveAttrib == nil {\n\t\treturn errors.New(\"glGetActiveAttrib\")\n\t}\n\tgpGetActiveSubroutineName = (C.GPGETACTIVESUBROUTINENAME)(getProcAddr(\"glGetActiveSubroutineName\"))\n\tif gpGetActiveSubroutineName == nil {\n\t\treturn errors.New(\"glGetActiveSubroutineName\")\n\t}\n\tgpGetActiveSubroutineUniformName = (C.GPGETACTIVESUBROUTINEUNIFORMNAME)(getProcAddr(\"glGetActiveSubroutineUniformName\"))\n\tif gpGetActiveSubroutineUniformName == nil {\n\t\treturn errors.New(\"glGetActiveSubroutineUniformName\")\n\t}\n\tgpGetActiveSubroutineUniformiv = (C.GPGETACTIVESUBROUTINEUNIFORMIV)(getProcAddr(\"glGetActiveSubroutineUniformiv\"))\n\tif gpGetActiveSubroutineUniformiv == nil {\n\t\treturn errors.New(\"glGetActiveSubroutineUniformiv\")\n\t}\n\tgpGetActiveUniform = (C.GPGETACTIVEUNIFORM)(getProcAddr(\"glGetActiveUniform\"))\n\tif gpGetActiveUniform == nil {\n\t\treturn errors.New(\"glGetActiveUniform\")\n\t}\n\tgpGetActiveUniformBlockName = (C.GPGETACTIVEUNIFORMBLOCKNAME)(getProcAddr(\"glGetActiveUniformBlockName\"))\n\tif gpGetActiveUniformBlockName == nil {\n\t\treturn errors.New(\"glGetActiveUniformBlockName\")\n\t}\n\tgpGetActiveUniformBlockiv = (C.GPGETACTIVEUNIFORMBLOCKIV)(getProcAddr(\"glGetActiveUniformBlockiv\"))\n\tif gpGetActiveUniformBlockiv == nil {\n\t\treturn errors.New(\"glGetActiveUniformBlockiv\")\n\t}\n\tgpGetActiveUniformName = (C.GPGETACTIVEUNIFORMNAME)(getProcAddr(\"glGetActiveUniformName\"))\n\tif gpGetActiveUniformName == nil {\n\t\treturn errors.New(\"glGetActiveUniformName\")\n\t}\n\tgpGetActiveUniformsiv = (C.GPGETACTIVEUNIFORMSIV)(getProcAddr(\"glGetActiveUniformsiv\"))\n\tif gpGetActiveUniformsiv == nil {\n\t\treturn errors.New(\"glGetActiveUniformsiv\")\n\t}\n\tgpGetAttachedShaders = (C.GPGETATTACHEDSHADERS)(getProcAddr(\"glGetAttachedShaders\"))\n\tif gpGetAttachedShaders == nil {\n\t\treturn errors.New(\"glGetAttachedShaders\")\n\t}\n\tgpGetAttribLocation = (C.GPGETATTRIBLOCATION)(getProcAddr(\"glGetAttribLocation\"))\n\tif gpGetAttribLocation == nil {\n\t\treturn errors.New(\"glGetAttribLocation\")\n\t}\n\tgpGetBooleanIndexedvEXT = (C.GPGETBOOLEANINDEXEDVEXT)(getProcAddr(\"glGetBooleanIndexedvEXT\"))\n\tgpGetBooleani_v = (C.GPGETBOOLEANI_V)(getProcAddr(\"glGetBooleani_v\"))\n\tif gpGetBooleani_v == nil {\n\t\treturn errors.New(\"glGetBooleani_v\")\n\t}\n\tgpGetBooleanv = (C.GPGETBOOLEANV)(getProcAddr(\"glGetBooleanv\"))\n\tif gpGetBooleanv == nil {\n\t\treturn errors.New(\"glGetBooleanv\")\n\t}\n\tgpGetBufferParameteri64v = (C.GPGETBUFFERPARAMETERI64V)(getProcAddr(\"glGetBufferParameteri64v\"))\n\tif gpGetBufferParameteri64v == nil {\n\t\treturn errors.New(\"glGetBufferParameteri64v\")\n\t}\n\tgpGetBufferParameteriv = (C.GPGETBUFFERPARAMETERIV)(getProcAddr(\"glGetBufferParameteriv\"))\n\tif gpGetBufferParameteriv == nil {\n\t\treturn errors.New(\"glGetBufferParameteriv\")\n\t}\n\tgpGetBufferParameterui64vNV = (C.GPGETBUFFERPARAMETERUI64VNV)(getProcAddr(\"glGetBufferParameterui64vNV\"))\n\tgpGetBufferPointerv = (C.GPGETBUFFERPOINTERV)(getProcAddr(\"glGetBufferPointerv\"))\n\tif gpGetBufferPointerv == nil {\n\t\treturn errors.New(\"glGetBufferPointerv\")\n\t}\n\tgpGetBufferSubData = (C.GPGETBUFFERSUBDATA)(getProcAddr(\"glGetBufferSubData\"))\n\tif gpGetBufferSubData == nil {\n\t\treturn errors.New(\"glGetBufferSubData\")\n\t}\n\tgpGetCommandHeaderNV = (C.GPGETCOMMANDHEADERNV)(getProcAddr(\"glGetCommandHeaderNV\"))\n\tgpGetCompressedMultiTexImageEXT = (C.GPGETCOMPRESSEDMULTITEXIMAGEEXT)(getProcAddr(\"glGetCompressedMultiTexImageEXT\"))\n\tgpGetCompressedTexImage = (C.GPGETCOMPRESSEDTEXIMAGE)(getProcAddr(\"glGetCompressedTexImage\"))\n\tif gpGetCompressedTexImage == nil {\n\t\treturn errors.New(\"glGetCompressedTexImage\")\n\t}\n\tgpGetCompressedTextureImage = (C.GPGETCOMPRESSEDTEXTUREIMAGE)(getProcAddr(\"glGetCompressedTextureImage\"))\n\tgpGetCompressedTextureImageEXT = (C.GPGETCOMPRESSEDTEXTUREIMAGEEXT)(getProcAddr(\"glGetCompressedTextureImageEXT\"))\n\tgpGetCompressedTextureSubImage = (C.GPGETCOMPRESSEDTEXTURESUBIMAGE)(getProcAddr(\"glGetCompressedTextureSubImage\"))\n\tgpGetCoverageModulationTableNV = (C.GPGETCOVERAGEMODULATIONTABLENV)(getProcAddr(\"glGetCoverageModulationTableNV\"))\n\tgpGetDebugMessageLog = (C.GPGETDEBUGMESSAGELOG)(getProcAddr(\"glGetDebugMessageLog\"))\n\tgpGetDebugMessageLogARB = (C.GPGETDEBUGMESSAGELOGARB)(getProcAddr(\"glGetDebugMessageLogARB\"))\n\tgpGetDebugMessageLogKHR = (C.GPGETDEBUGMESSAGELOGKHR)(getProcAddr(\"glGetDebugMessageLogKHR\"))\n\tgpGetDoubleIndexedvEXT = (C.GPGETDOUBLEINDEXEDVEXT)(getProcAddr(\"glGetDoubleIndexedvEXT\"))\n\tgpGetDoublei_v = (C.GPGETDOUBLEI_V)(getProcAddr(\"glGetDoublei_v\"))\n\tif gpGetDoublei_v == nil {\n\t\treturn errors.New(\"glGetDoublei_v\")\n\t}\n\tgpGetDoublei_vEXT = (C.GPGETDOUBLEI_VEXT)(getProcAddr(\"glGetDoublei_vEXT\"))\n\tgpGetDoublev = (C.GPGETDOUBLEV)(getProcAddr(\"glGetDoublev\"))\n\tif gpGetDoublev == nil {\n\t\treturn errors.New(\"glGetDoublev\")\n\t}\n\tgpGetError = (C.GPGETERROR)(getProcAddr(\"glGetError\"))\n\tif gpGetError == nil {\n\t\treturn errors.New(\"glGetError\")\n\t}\n\tgpGetFirstPerfQueryIdINTEL = (C.GPGETFIRSTPERFQUERYIDINTEL)(getProcAddr(\"glGetFirstPerfQueryIdINTEL\"))\n\tgpGetFloatIndexedvEXT = (C.GPGETFLOATINDEXEDVEXT)(getProcAddr(\"glGetFloatIndexedvEXT\"))\n\tgpGetFloati_v = (C.GPGETFLOATI_V)(getProcAddr(\"glGetFloati_v\"))\n\tif gpGetFloati_v == nil {\n\t\treturn errors.New(\"glGetFloati_v\")\n\t}\n\tgpGetFloati_vEXT = (C.GPGETFLOATI_VEXT)(getProcAddr(\"glGetFloati_vEXT\"))\n\tgpGetFloatv = (C.GPGETFLOATV)(getProcAddr(\"glGetFloatv\"))\n\tif gpGetFloatv == nil {\n\t\treturn errors.New(\"glGetFloatv\")\n\t}\n\tgpGetFragDataIndex = (C.GPGETFRAGDATAINDEX)(getProcAddr(\"glGetFragDataIndex\"))\n\tif gpGetFragDataIndex == nil {\n\t\treturn errors.New(\"glGetFragDataIndex\")\n\t}\n\tgpGetFragDataLocation = (C.GPGETFRAGDATALOCATION)(getProcAddr(\"glGetFragDataLocation\"))\n\tif gpGetFragDataLocation == nil {\n\t\treturn errors.New(\"glGetFragDataLocation\")\n\t}\n\tgpGetFramebufferAttachmentParameteriv = (C.GPGETFRAMEBUFFERATTACHMENTPARAMETERIV)(getProcAddr(\"glGetFramebufferAttachmentParameteriv\"))\n\tif gpGetFramebufferAttachmentParameteriv == nil {\n\t\treturn errors.New(\"glGetFramebufferAttachmentParameteriv\")\n\t}\n\tgpGetFramebufferParameteriv = (C.GPGETFRAMEBUFFERPARAMETERIV)(getProcAddr(\"glGetFramebufferParameteriv\"))\n\tgpGetFramebufferParameterivEXT = (C.GPGETFRAMEBUFFERPARAMETERIVEXT)(getProcAddr(\"glGetFramebufferParameterivEXT\"))\n\tgpGetFramebufferParameterivMESA = (C.GPGETFRAMEBUFFERPARAMETERIVMESA)(getProcAddr(\"glGetFramebufferParameterivMESA\"))\n\tgpGetGraphicsResetStatus = (C.GPGETGRAPHICSRESETSTATUS)(getProcAddr(\"glGetGraphicsResetStatus\"))\n\tgpGetGraphicsResetStatusARB = (C.GPGETGRAPHICSRESETSTATUSARB)(getProcAddr(\"glGetGraphicsResetStatusARB\"))\n\tgpGetGraphicsResetStatusKHR = (C.GPGETGRAPHICSRESETSTATUSKHR)(getProcAddr(\"glGetGraphicsResetStatusKHR\"))\n\tgpGetImageHandleARB = (C.GPGETIMAGEHANDLEARB)(getProcAddr(\"glGetImageHandleARB\"))\n\tgpGetImageHandleNV = (C.GPGETIMAGEHANDLENV)(getProcAddr(\"glGetImageHandleNV\"))\n\tgpGetInteger64i_v = (C.GPGETINTEGER64I_V)(getProcAddr(\"glGetInteger64i_v\"))\n\tif gpGetInteger64i_v == nil {\n\t\treturn errors.New(\"glGetInteger64i_v\")\n\t}\n\tgpGetInteger64v = (C.GPGETINTEGER64V)(getProcAddr(\"glGetInteger64v\"))\n\tif gpGetInteger64v == nil {\n\t\treturn errors.New(\"glGetInteger64v\")\n\t}\n\tgpGetIntegerIndexedvEXT = (C.GPGETINTEGERINDEXEDVEXT)(getProcAddr(\"glGetIntegerIndexedvEXT\"))\n\tgpGetIntegeri_v = (C.GPGETINTEGERI_V)(getProcAddr(\"glGetIntegeri_v\"))\n\tif gpGetIntegeri_v == nil {\n\t\treturn errors.New(\"glGetIntegeri_v\")\n\t}\n\tgpGetIntegerui64i_vNV = (C.GPGETINTEGERUI64I_VNV)(getProcAddr(\"glGetIntegerui64i_vNV\"))\n\tgpGetIntegerui64vNV = (C.GPGETINTEGERUI64VNV)(getProcAddr(\"glGetIntegerui64vNV\"))\n\tgpGetIntegerv = (C.GPGETINTEGERV)(getProcAddr(\"glGetIntegerv\"))\n\tif gpGetIntegerv == nil {\n\t\treturn errors.New(\"glGetIntegerv\")\n\t}\n\tgpGetInternalformatSampleivNV = (C.GPGETINTERNALFORMATSAMPLEIVNV)(getProcAddr(\"glGetInternalformatSampleivNV\"))\n\tgpGetInternalformati64v = (C.GPGETINTERNALFORMATI64V)(getProcAddr(\"glGetInternalformati64v\"))\n\tgpGetInternalformativ = (C.GPGETINTERNALFORMATIV)(getProcAddr(\"glGetInternalformativ\"))\n\tif gpGetInternalformativ == nil {\n\t\treturn errors.New(\"glGetInternalformativ\")\n\t}\n\tgpGetMemoryObjectDetachedResourcesuivNV = (C.GPGETMEMORYOBJECTDETACHEDRESOURCESUIVNV)(getProcAddr(\"glGetMemoryObjectDetachedResourcesuivNV\"))\n\tgpGetMultiTexEnvfvEXT = (C.GPGETMULTITEXENVFVEXT)(getProcAddr(\"glGetMultiTexEnvfvEXT\"))\n\tgpGetMultiTexEnvivEXT = (C.GPGETMULTITEXENVIVEXT)(getProcAddr(\"glGetMultiTexEnvivEXT\"))\n\tgpGetMultiTexGendvEXT = (C.GPGETMULTITEXGENDVEXT)(getProcAddr(\"glGetMultiTexGendvEXT\"))\n\tgpGetMultiTexGenfvEXT = (C.GPGETMULTITEXGENFVEXT)(getProcAddr(\"glGetMultiTexGenfvEXT\"))\n\tgpGetMultiTexGenivEXT = (C.GPGETMULTITEXGENIVEXT)(getProcAddr(\"glGetMultiTexGenivEXT\"))\n\tgpGetMultiTexImageEXT = (C.GPGETMULTITEXIMAGEEXT)(getProcAddr(\"glGetMultiTexImageEXT\"))\n\tgpGetMultiTexLevelParameterfvEXT = (C.GPGETMULTITEXLEVELPARAMETERFVEXT)(getProcAddr(\"glGetMultiTexLevelParameterfvEXT\"))\n\tgpGetMultiTexLevelParameterivEXT = (C.GPGETMULTITEXLEVELPARAMETERIVEXT)(getProcAddr(\"glGetMultiTexLevelParameterivEXT\"))\n\tgpGetMultiTexParameterIivEXT = (C.GPGETMULTITEXPARAMETERIIVEXT)(getProcAddr(\"glGetMultiTexParameterIivEXT\"))\n\tgpGetMultiTexParameterIuivEXT = (C.GPGETMULTITEXPARAMETERIUIVEXT)(getProcAddr(\"glGetMultiTexParameterIuivEXT\"))\n\tgpGetMultiTexParameterfvEXT = (C.GPGETMULTITEXPARAMETERFVEXT)(getProcAddr(\"glGetMultiTexParameterfvEXT\"))\n\tgpGetMultiTexParameterivEXT = (C.GPGETMULTITEXPARAMETERIVEXT)(getProcAddr(\"glGetMultiTexParameterivEXT\"))\n\tgpGetMultisamplefv = (C.GPGETMULTISAMPLEFV)(getProcAddr(\"glGetMultisamplefv\"))\n\tif gpGetMultisamplefv == nil {\n\t\treturn errors.New(\"glGetMultisamplefv\")\n\t}\n\tgpGetNamedBufferParameteri64v = (C.GPGETNAMEDBUFFERPARAMETERI64V)(getProcAddr(\"glGetNamedBufferParameteri64v\"))\n\tgpGetNamedBufferParameteriv = (C.GPGETNAMEDBUFFERPARAMETERIV)(getProcAddr(\"glGetNamedBufferParameteriv\"))\n\tgpGetNamedBufferParameterivEXT = (C.GPGETNAMEDBUFFERPARAMETERIVEXT)(getProcAddr(\"glGetNamedBufferParameterivEXT\"))\n\tgpGetNamedBufferParameterui64vNV = (C.GPGETNAMEDBUFFERPARAMETERUI64VNV)(getProcAddr(\"glGetNamedBufferParameterui64vNV\"))\n\tgpGetNamedBufferPointerv = (C.GPGETNAMEDBUFFERPOINTERV)(getProcAddr(\"glGetNamedBufferPointerv\"))\n\tgpGetNamedBufferPointervEXT = (C.GPGETNAMEDBUFFERPOINTERVEXT)(getProcAddr(\"glGetNamedBufferPointervEXT\"))\n\tgpGetNamedBufferSubData = (C.GPGETNAMEDBUFFERSUBDATA)(getProcAddr(\"glGetNamedBufferSubData\"))\n\tgpGetNamedBufferSubDataEXT = (C.GPGETNAMEDBUFFERSUBDATAEXT)(getProcAddr(\"glGetNamedBufferSubDataEXT\"))\n\tgpGetNamedFramebufferAttachmentParameteriv = (C.GPGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIV)(getProcAddr(\"glGetNamedFramebufferAttachmentParameteriv\"))\n\tgpGetNamedFramebufferAttachmentParameterivEXT = (C.GPGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXT)(getProcAddr(\"glGetNamedFramebufferAttachmentParameterivEXT\"))\n\tgpGetNamedFramebufferParameteriv = (C.GPGETNAMEDFRAMEBUFFERPARAMETERIV)(getProcAddr(\"glGetNamedFramebufferParameteriv\"))\n\tgpGetNamedFramebufferParameterivEXT = (C.GPGETNAMEDFRAMEBUFFERPARAMETERIVEXT)(getProcAddr(\"glGetNamedFramebufferParameterivEXT\"))\n\tgpGetNamedProgramLocalParameterIivEXT = (C.GPGETNAMEDPROGRAMLOCALPARAMETERIIVEXT)(getProcAddr(\"glGetNamedProgramLocalParameterIivEXT\"))\n\tgpGetNamedProgramLocalParameterIuivEXT = (C.GPGETNAMEDPROGRAMLOCALPARAMETERIUIVEXT)(getProcAddr(\"glGetNamedProgramLocalParameterIuivEXT\"))\n\tgpGetNamedProgramLocalParameterdvEXT = (C.GPGETNAMEDPROGRAMLOCALPARAMETERDVEXT)(getProcAddr(\"glGetNamedProgramLocalParameterdvEXT\"))\n\tgpGetNamedProgramLocalParameterfvEXT = (C.GPGETNAMEDPROGRAMLOCALPARAMETERFVEXT)(getProcAddr(\"glGetNamedProgramLocalParameterfvEXT\"))\n\tgpGetNamedProgramStringEXT = (C.GPGETNAMEDPROGRAMSTRINGEXT)(getProcAddr(\"glGetNamedProgramStringEXT\"))\n\tgpGetNamedProgramivEXT = (C.GPGETNAMEDPROGRAMIVEXT)(getProcAddr(\"glGetNamedProgramivEXT\"))\n\tgpGetNamedRenderbufferParameteriv = (C.GPGETNAMEDRENDERBUFFERPARAMETERIV)(getProcAddr(\"glGetNamedRenderbufferParameteriv\"))\n\tgpGetNamedRenderbufferParameterivEXT = (C.GPGETNAMEDRENDERBUFFERPARAMETERIVEXT)(getProcAddr(\"glGetNamedRenderbufferParameterivEXT\"))\n\tgpGetNamedStringARB = (C.GPGETNAMEDSTRINGARB)(getProcAddr(\"glGetNamedStringARB\"))\n\tgpGetNamedStringivARB = (C.GPGETNAMEDSTRINGIVARB)(getProcAddr(\"glGetNamedStringivARB\"))\n\tgpGetNextPerfQueryIdINTEL = (C.GPGETNEXTPERFQUERYIDINTEL)(getProcAddr(\"glGetNextPerfQueryIdINTEL\"))\n\tgpGetObjectLabel = (C.GPGETOBJECTLABEL)(getProcAddr(\"glGetObjectLabel\"))\n\tgpGetObjectLabelEXT = (C.GPGETOBJECTLABELEXT)(getProcAddr(\"glGetObjectLabelEXT\"))\n\tgpGetObjectLabelKHR = (C.GPGETOBJECTLABELKHR)(getProcAddr(\"glGetObjectLabelKHR\"))\n\tgpGetObjectPtrLabel = (C.GPGETOBJECTPTRLABEL)(getProcAddr(\"glGetObjectPtrLabel\"))\n\tgpGetObjectPtrLabelKHR = (C.GPGETOBJECTPTRLABELKHR)(getProcAddr(\"glGetObjectPtrLabelKHR\"))\n\tgpGetPathCommandsNV = (C.GPGETPATHCOMMANDSNV)(getProcAddr(\"glGetPathCommandsNV\"))\n\tgpGetPathCoordsNV = (C.GPGETPATHCOORDSNV)(getProcAddr(\"glGetPathCoordsNV\"))\n\tgpGetPathDashArrayNV = (C.GPGETPATHDASHARRAYNV)(getProcAddr(\"glGetPathDashArrayNV\"))\n\tgpGetPathLengthNV = (C.GPGETPATHLENGTHNV)(getProcAddr(\"glGetPathLengthNV\"))\n\tgpGetPathMetricRangeNV = (C.GPGETPATHMETRICRANGENV)(getProcAddr(\"glGetPathMetricRangeNV\"))\n\tgpGetPathMetricsNV = (C.GPGETPATHMETRICSNV)(getProcAddr(\"glGetPathMetricsNV\"))\n\tgpGetPathParameterfvNV = (C.GPGETPATHPARAMETERFVNV)(getProcAddr(\"glGetPathParameterfvNV\"))\n\tgpGetPathParameterivNV = (C.GPGETPATHPARAMETERIVNV)(getProcAddr(\"glGetPathParameterivNV\"))\n\tgpGetPathSpacingNV = (C.GPGETPATHSPACINGNV)(getProcAddr(\"glGetPathSpacingNV\"))\n\tgpGetPerfCounterInfoINTEL = (C.GPGETPERFCOUNTERINFOINTEL)(getProcAddr(\"glGetPerfCounterInfoINTEL\"))\n\tgpGetPerfMonitorCounterDataAMD = (C.GPGETPERFMONITORCOUNTERDATAAMD)(getProcAddr(\"glGetPerfMonitorCounterDataAMD\"))\n\tgpGetPerfMonitorCounterInfoAMD = (C.GPGETPERFMONITORCOUNTERINFOAMD)(getProcAddr(\"glGetPerfMonitorCounterInfoAMD\"))\n\tgpGetPerfMonitorCounterStringAMD = (C.GPGETPERFMONITORCOUNTERSTRINGAMD)(getProcAddr(\"glGetPerfMonitorCounterStringAMD\"))\n\tgpGetPerfMonitorCountersAMD = (C.GPGETPERFMONITORCOUNTERSAMD)(getProcAddr(\"glGetPerfMonitorCountersAMD\"))\n\tgpGetPerfMonitorGroupStringAMD = (C.GPGETPERFMONITORGROUPSTRINGAMD)(getProcAddr(\"glGetPerfMonitorGroupStringAMD\"))\n\tgpGetPerfMonitorGroupsAMD = (C.GPGETPERFMONITORGROUPSAMD)(getProcAddr(\"glGetPerfMonitorGroupsAMD\"))\n\tgpGetPerfQueryDataINTEL = (C.GPGETPERFQUERYDATAINTEL)(getProcAddr(\"glGetPerfQueryDataINTEL\"))\n\tgpGetPerfQueryIdByNameINTEL = (C.GPGETPERFQUERYIDBYNAMEINTEL)(getProcAddr(\"glGetPerfQueryIdByNameINTEL\"))\n\tgpGetPerfQueryInfoINTEL = (C.GPGETPERFQUERYINFOINTEL)(getProcAddr(\"glGetPerfQueryInfoINTEL\"))\n\tgpGetPointerIndexedvEXT = (C.GPGETPOINTERINDEXEDVEXT)(getProcAddr(\"glGetPointerIndexedvEXT\"))\n\tgpGetPointeri_vEXT = (C.GPGETPOINTERI_VEXT)(getProcAddr(\"glGetPointeri_vEXT\"))\n\tgpGetPointerv = (C.GPGETPOINTERV)(getProcAddr(\"glGetPointerv\"))\n\tgpGetPointervKHR = (C.GPGETPOINTERVKHR)(getProcAddr(\"glGetPointervKHR\"))\n\tgpGetProgramBinary = (C.GPGETPROGRAMBINARY)(getProcAddr(\"glGetProgramBinary\"))\n\tif gpGetProgramBinary == nil {\n\t\treturn errors.New(\"glGetProgramBinary\")\n\t}\n\tgpGetProgramInfoLog = (C.GPGETPROGRAMINFOLOG)(getProcAddr(\"glGetProgramInfoLog\"))\n\tif gpGetProgramInfoLog == nil {\n\t\treturn errors.New(\"glGetProgramInfoLog\")\n\t}\n\tgpGetProgramInterfaceiv = (C.GPGETPROGRAMINTERFACEIV)(getProcAddr(\"glGetProgramInterfaceiv\"))\n\tgpGetProgramPipelineInfoLog = (C.GPGETPROGRAMPIPELINEINFOLOG)(getProcAddr(\"glGetProgramPipelineInfoLog\"))\n\tif gpGetProgramPipelineInfoLog == nil {\n\t\treturn errors.New(\"glGetProgramPipelineInfoLog\")\n\t}\n\tgpGetProgramPipelineInfoLogEXT = (C.GPGETPROGRAMPIPELINEINFOLOGEXT)(getProcAddr(\"glGetProgramPipelineInfoLogEXT\"))\n\tgpGetProgramPipelineiv = (C.GPGETPROGRAMPIPELINEIV)(getProcAddr(\"glGetProgramPipelineiv\"))\n\tif gpGetProgramPipelineiv == nil {\n\t\treturn errors.New(\"glGetProgramPipelineiv\")\n\t}\n\tgpGetProgramPipelineivEXT = (C.GPGETPROGRAMPIPELINEIVEXT)(getProcAddr(\"glGetProgramPipelineivEXT\"))\n\tgpGetProgramResourceIndex = (C.GPGETPROGRAMRESOURCEINDEX)(getProcAddr(\"glGetProgramResourceIndex\"))\n\tgpGetProgramResourceLocation = (C.GPGETPROGRAMRESOURCELOCATION)(getProcAddr(\"glGetProgramResourceLocation\"))\n\tgpGetProgramResourceLocationIndex = (C.GPGETPROGRAMRESOURCELOCATIONINDEX)(getProcAddr(\"glGetProgramResourceLocationIndex\"))\n\tgpGetProgramResourceName = (C.GPGETPROGRAMRESOURCENAME)(getProcAddr(\"glGetProgramResourceName\"))\n\tgpGetProgramResourcefvNV = (C.GPGETPROGRAMRESOURCEFVNV)(getProcAddr(\"glGetProgramResourcefvNV\"))\n\tgpGetProgramResourceiv = (C.GPGETPROGRAMRESOURCEIV)(getProcAddr(\"glGetProgramResourceiv\"))\n\tgpGetProgramStageiv = (C.GPGETPROGRAMSTAGEIV)(getProcAddr(\"glGetProgramStageiv\"))\n\tif gpGetProgramStageiv == nil {\n\t\treturn errors.New(\"glGetProgramStageiv\")\n\t}\n\tgpGetProgramiv = (C.GPGETPROGRAMIV)(getProcAddr(\"glGetProgramiv\"))\n\tif gpGetProgramiv == nil {\n\t\treturn errors.New(\"glGetProgramiv\")\n\t}\n\tgpGetQueryBufferObjecti64v = (C.GPGETQUERYBUFFEROBJECTI64V)(getProcAddr(\"glGetQueryBufferObjecti64v\"))\n\tgpGetQueryBufferObjectiv = (C.GPGETQUERYBUFFEROBJECTIV)(getProcAddr(\"glGetQueryBufferObjectiv\"))\n\tgpGetQueryBufferObjectui64v = (C.GPGETQUERYBUFFEROBJECTUI64V)(getProcAddr(\"glGetQueryBufferObjectui64v\"))\n\tgpGetQueryBufferObjectuiv = (C.GPGETQUERYBUFFEROBJECTUIV)(getProcAddr(\"glGetQueryBufferObjectuiv\"))\n\tgpGetQueryIndexediv = (C.GPGETQUERYINDEXEDIV)(getProcAddr(\"glGetQueryIndexediv\"))\n\tif gpGetQueryIndexediv == nil {\n\t\treturn errors.New(\"glGetQueryIndexediv\")\n\t}\n\tgpGetQueryObjecti64v = (C.GPGETQUERYOBJECTI64V)(getProcAddr(\"glGetQueryObjecti64v\"))\n\tif gpGetQueryObjecti64v == nil {\n\t\treturn errors.New(\"glGetQueryObjecti64v\")\n\t}\n\tgpGetQueryObjectiv = (C.GPGETQUERYOBJECTIV)(getProcAddr(\"glGetQueryObjectiv\"))\n\tif gpGetQueryObjectiv == nil {\n\t\treturn errors.New(\"glGetQueryObjectiv\")\n\t}\n\tgpGetQueryObjectui64v = (C.GPGETQUERYOBJECTUI64V)(getProcAddr(\"glGetQueryObjectui64v\"))\n\tif gpGetQueryObjectui64v == nil {\n\t\treturn errors.New(\"glGetQueryObjectui64v\")\n\t}\n\tgpGetQueryObjectuiv = (C.GPGETQUERYOBJECTUIV)(getProcAddr(\"glGetQueryObjectuiv\"))\n\tif gpGetQueryObjectuiv == nil {\n\t\treturn errors.New(\"glGetQueryObjectuiv\")\n\t}\n\tgpGetQueryiv = (C.GPGETQUERYIV)(getProcAddr(\"glGetQueryiv\"))\n\tif gpGetQueryiv == nil {\n\t\treturn errors.New(\"glGetQueryiv\")\n\t}\n\tgpGetRenderbufferParameteriv = (C.GPGETRENDERBUFFERPARAMETERIV)(getProcAddr(\"glGetRenderbufferParameteriv\"))\n\tif gpGetRenderbufferParameteriv == nil {\n\t\treturn errors.New(\"glGetRenderbufferParameteriv\")\n\t}\n\tgpGetSamplerParameterIiv = (C.GPGETSAMPLERPARAMETERIIV)(getProcAddr(\"glGetSamplerParameterIiv\"))\n\tif gpGetSamplerParameterIiv == nil {\n\t\treturn errors.New(\"glGetSamplerParameterIiv\")\n\t}\n\tgpGetSamplerParameterIuiv = (C.GPGETSAMPLERPARAMETERIUIV)(getProcAddr(\"glGetSamplerParameterIuiv\"))\n\tif gpGetSamplerParameterIuiv == nil {\n\t\treturn errors.New(\"glGetSamplerParameterIuiv\")\n\t}\n\tgpGetSamplerParameterfv = (C.GPGETSAMPLERPARAMETERFV)(getProcAddr(\"glGetSamplerParameterfv\"))\n\tif gpGetSamplerParameterfv == nil {\n\t\treturn errors.New(\"glGetSamplerParameterfv\")\n\t}\n\tgpGetSamplerParameteriv = (C.GPGETSAMPLERPARAMETERIV)(getProcAddr(\"glGetSamplerParameteriv\"))\n\tif gpGetSamplerParameteriv == nil {\n\t\treturn errors.New(\"glGetSamplerParameteriv\")\n\t}\n\tgpGetShaderInfoLog = (C.GPGETSHADERINFOLOG)(getProcAddr(\"glGetShaderInfoLog\"))\n\tif gpGetShaderInfoLog == nil {\n\t\treturn errors.New(\"glGetShaderInfoLog\")\n\t}\n\tgpGetShaderPrecisionFormat = (C.GPGETSHADERPRECISIONFORMAT)(getProcAddr(\"glGetShaderPrecisionFormat\"))\n\tif gpGetShaderPrecisionFormat == nil {\n\t\treturn errors.New(\"glGetShaderPrecisionFormat\")\n\t}\n\tgpGetShaderSource = (C.GPGETSHADERSOURCE)(getProcAddr(\"glGetShaderSource\"))\n\tif gpGetShaderSource == nil {\n\t\treturn errors.New(\"glGetShaderSource\")\n\t}\n\tgpGetShaderiv = (C.GPGETSHADERIV)(getProcAddr(\"glGetShaderiv\"))\n\tif gpGetShaderiv == nil {\n\t\treturn errors.New(\"glGetShaderiv\")\n\t}\n\tgpGetShadingRateImagePaletteNV = (C.GPGETSHADINGRATEIMAGEPALETTENV)(getProcAddr(\"glGetShadingRateImagePaletteNV\"))\n\tgpGetShadingRateSampleLocationivNV = (C.GPGETSHADINGRATESAMPLELOCATIONIVNV)(getProcAddr(\"glGetShadingRateSampleLocationivNV\"))\n\tgpGetStageIndexNV = (C.GPGETSTAGEINDEXNV)(getProcAddr(\"glGetStageIndexNV\"))\n\tgpGetString = (C.GPGETSTRING)(getProcAddr(\"glGetString\"))\n\tif gpGetString == nil {\n\t\treturn errors.New(\"glGetString\")\n\t}\n\tgpGetStringi = (C.GPGETSTRINGI)(getProcAddr(\"glGetStringi\"))\n\tif gpGetStringi == nil {\n\t\treturn errors.New(\"glGetStringi\")\n\t}\n\tgpGetSubroutineIndex = (C.GPGETSUBROUTINEINDEX)(getProcAddr(\"glGetSubroutineIndex\"))\n\tif gpGetSubroutineIndex == nil {\n\t\treturn errors.New(\"glGetSubroutineIndex\")\n\t}\n\tgpGetSubroutineUniformLocation = (C.GPGETSUBROUTINEUNIFORMLOCATION)(getProcAddr(\"glGetSubroutineUniformLocation\"))\n\tif gpGetSubroutineUniformLocation == nil {\n\t\treturn errors.New(\"glGetSubroutineUniformLocation\")\n\t}\n\tgpGetSynciv = (C.GPGETSYNCIV)(getProcAddr(\"glGetSynciv\"))\n\tif gpGetSynciv == nil {\n\t\treturn errors.New(\"glGetSynciv\")\n\t}\n\tgpGetTexImage = (C.GPGETTEXIMAGE)(getProcAddr(\"glGetTexImage\"))\n\tif gpGetTexImage == nil {\n\t\treturn errors.New(\"glGetTexImage\")\n\t}\n\tgpGetTexLevelParameterfv = (C.GPGETTEXLEVELPARAMETERFV)(getProcAddr(\"glGetTexLevelParameterfv\"))\n\tif gpGetTexLevelParameterfv == nil {\n\t\treturn errors.New(\"glGetTexLevelParameterfv\")\n\t}\n\tgpGetTexLevelParameteriv = (C.GPGETTEXLEVELPARAMETERIV)(getProcAddr(\"glGetTexLevelParameteriv\"))\n\tif gpGetTexLevelParameteriv == nil {\n\t\treturn errors.New(\"glGetTexLevelParameteriv\")\n\t}\n\tgpGetTexParameterIiv = (C.GPGETTEXPARAMETERIIV)(getProcAddr(\"glGetTexParameterIiv\"))\n\tif gpGetTexParameterIiv == nil {\n\t\treturn errors.New(\"glGetTexParameterIiv\")\n\t}\n\tgpGetTexParameterIuiv = (C.GPGETTEXPARAMETERIUIV)(getProcAddr(\"glGetTexParameterIuiv\"))\n\tif gpGetTexParameterIuiv == nil {\n\t\treturn errors.New(\"glGetTexParameterIuiv\")\n\t}\n\tgpGetTexParameterfv = (C.GPGETTEXPARAMETERFV)(getProcAddr(\"glGetTexParameterfv\"))\n\tif gpGetTexParameterfv == nil {\n\t\treturn errors.New(\"glGetTexParameterfv\")\n\t}\n\tgpGetTexParameteriv = (C.GPGETTEXPARAMETERIV)(getProcAddr(\"glGetTexParameteriv\"))\n\tif gpGetTexParameteriv == nil {\n\t\treturn errors.New(\"glGetTexParameteriv\")\n\t}\n\tgpGetTextureHandleARB = (C.GPGETTEXTUREHANDLEARB)(getProcAddr(\"glGetTextureHandleARB\"))\n\tgpGetTextureHandleNV = (C.GPGETTEXTUREHANDLENV)(getProcAddr(\"glGetTextureHandleNV\"))\n\tgpGetTextureImage = (C.GPGETTEXTUREIMAGE)(getProcAddr(\"glGetTextureImage\"))\n\tgpGetTextureImageEXT = (C.GPGETTEXTUREIMAGEEXT)(getProcAddr(\"glGetTextureImageEXT\"))\n\tgpGetTextureLevelParameterfv = (C.GPGETTEXTURELEVELPARAMETERFV)(getProcAddr(\"glGetTextureLevelParameterfv\"))\n\tgpGetTextureLevelParameterfvEXT = (C.GPGETTEXTURELEVELPARAMETERFVEXT)(getProcAddr(\"glGetTextureLevelParameterfvEXT\"))\n\tgpGetTextureLevelParameteriv = (C.GPGETTEXTURELEVELPARAMETERIV)(getProcAddr(\"glGetTextureLevelParameteriv\"))\n\tgpGetTextureLevelParameterivEXT = (C.GPGETTEXTURELEVELPARAMETERIVEXT)(getProcAddr(\"glGetTextureLevelParameterivEXT\"))\n\tgpGetTextureParameterIiv = (C.GPGETTEXTUREPARAMETERIIV)(getProcAddr(\"glGetTextureParameterIiv\"))\n\tgpGetTextureParameterIivEXT = (C.GPGETTEXTUREPARAMETERIIVEXT)(getProcAddr(\"glGetTextureParameterIivEXT\"))\n\tgpGetTextureParameterIuiv = (C.GPGETTEXTUREPARAMETERIUIV)(getProcAddr(\"glGetTextureParameterIuiv\"))\n\tgpGetTextureParameterIuivEXT = (C.GPGETTEXTUREPARAMETERIUIVEXT)(getProcAddr(\"glGetTextureParameterIuivEXT\"))\n\tgpGetTextureParameterfv = (C.GPGETTEXTUREPARAMETERFV)(getProcAddr(\"glGetTextureParameterfv\"))\n\tgpGetTextureParameterfvEXT = (C.GPGETTEXTUREPARAMETERFVEXT)(getProcAddr(\"glGetTextureParameterfvEXT\"))\n\tgpGetTextureParameteriv = (C.GPGETTEXTUREPARAMETERIV)(getProcAddr(\"glGetTextureParameteriv\"))\n\tgpGetTextureParameterivEXT = (C.GPGETTEXTUREPARAMETERIVEXT)(getProcAddr(\"glGetTextureParameterivEXT\"))\n\tgpGetTextureSamplerHandleARB = (C.GPGETTEXTURESAMPLERHANDLEARB)(getProcAddr(\"glGetTextureSamplerHandleARB\"))\n\tgpGetTextureSamplerHandleNV = (C.GPGETTEXTURESAMPLERHANDLENV)(getProcAddr(\"glGetTextureSamplerHandleNV\"))\n\tgpGetTextureSubImage = (C.GPGETTEXTURESUBIMAGE)(getProcAddr(\"glGetTextureSubImage\"))\n\tgpGetTransformFeedbackVarying = (C.GPGETTRANSFORMFEEDBACKVARYING)(getProcAddr(\"glGetTransformFeedbackVarying\"))\n\tif gpGetTransformFeedbackVarying == nil {\n\t\treturn errors.New(\"glGetTransformFeedbackVarying\")\n\t}\n\tgpGetTransformFeedbacki64_v = (C.GPGETTRANSFORMFEEDBACKI64_V)(getProcAddr(\"glGetTransformFeedbacki64_v\"))\n\tgpGetTransformFeedbacki_v = (C.GPGETTRANSFORMFEEDBACKI_V)(getProcAddr(\"glGetTransformFeedbacki_v\"))\n\tgpGetTransformFeedbackiv = (C.GPGETTRANSFORMFEEDBACKIV)(getProcAddr(\"glGetTransformFeedbackiv\"))\n\tgpGetUniformBlockIndex = (C.GPGETUNIFORMBLOCKINDEX)(getProcAddr(\"glGetUniformBlockIndex\"))\n\tif gpGetUniformBlockIndex == nil {\n\t\treturn errors.New(\"glGetUniformBlockIndex\")\n\t}\n\tgpGetUniformIndices = (C.GPGETUNIFORMINDICES)(getProcAddr(\"glGetUniformIndices\"))\n\tif gpGetUniformIndices == nil {\n\t\treturn errors.New(\"glGetUniformIndices\")\n\t}\n\tgpGetUniformLocation = (C.GPGETUNIFORMLOCATION)(getProcAddr(\"glGetUniformLocation\"))\n\tif gpGetUniformLocation == nil {\n\t\treturn errors.New(\"glGetUniformLocation\")\n\t}\n\tgpGetUniformSubroutineuiv = (C.GPGETUNIFORMSUBROUTINEUIV)(getProcAddr(\"glGetUniformSubroutineuiv\"))\n\tif gpGetUniformSubroutineuiv == nil {\n\t\treturn errors.New(\"glGetUniformSubroutineuiv\")\n\t}\n\tgpGetUniformdv = (C.GPGETUNIFORMDV)(getProcAddr(\"glGetUniformdv\"))\n\tif gpGetUniformdv == nil {\n\t\treturn errors.New(\"glGetUniformdv\")\n\t}\n\tgpGetUniformfv = (C.GPGETUNIFORMFV)(getProcAddr(\"glGetUniformfv\"))\n\tif gpGetUniformfv == nil {\n\t\treturn errors.New(\"glGetUniformfv\")\n\t}\n\tgpGetUniformi64vARB = (C.GPGETUNIFORMI64VARB)(getProcAddr(\"glGetUniformi64vARB\"))\n\tgpGetUniformi64vNV = (C.GPGETUNIFORMI64VNV)(getProcAddr(\"glGetUniformi64vNV\"))\n\tgpGetUniformiv = (C.GPGETUNIFORMIV)(getProcAddr(\"glGetUniformiv\"))\n\tif gpGetUniformiv == nil {\n\t\treturn errors.New(\"glGetUniformiv\")\n\t}\n\tgpGetUniformui64vARB = (C.GPGETUNIFORMUI64VARB)(getProcAddr(\"glGetUniformui64vARB\"))\n\tgpGetUniformui64vNV = (C.GPGETUNIFORMUI64VNV)(getProcAddr(\"glGetUniformui64vNV\"))\n\tgpGetUniformuiv = (C.GPGETUNIFORMUIV)(getProcAddr(\"glGetUniformuiv\"))\n\tif gpGetUniformuiv == nil {\n\t\treturn errors.New(\"glGetUniformuiv\")\n\t}\n\tgpGetVertexArrayIndexed64iv = (C.GPGETVERTEXARRAYINDEXED64IV)(getProcAddr(\"glGetVertexArrayIndexed64iv\"))\n\tgpGetVertexArrayIndexediv = (C.GPGETVERTEXARRAYINDEXEDIV)(getProcAddr(\"glGetVertexArrayIndexediv\"))\n\tgpGetVertexArrayIntegeri_vEXT = (C.GPGETVERTEXARRAYINTEGERI_VEXT)(getProcAddr(\"glGetVertexArrayIntegeri_vEXT\"))\n\tgpGetVertexArrayIntegervEXT = (C.GPGETVERTEXARRAYINTEGERVEXT)(getProcAddr(\"glGetVertexArrayIntegervEXT\"))\n\tgpGetVertexArrayPointeri_vEXT = (C.GPGETVERTEXARRAYPOINTERI_VEXT)(getProcAddr(\"glGetVertexArrayPointeri_vEXT\"))\n\tgpGetVertexArrayPointervEXT = (C.GPGETVERTEXARRAYPOINTERVEXT)(getProcAddr(\"glGetVertexArrayPointervEXT\"))\n\tgpGetVertexArrayiv = (C.GPGETVERTEXARRAYIV)(getProcAddr(\"glGetVertexArrayiv\"))\n\tgpGetVertexAttribIiv = (C.GPGETVERTEXATTRIBIIV)(getProcAddr(\"glGetVertexAttribIiv\"))\n\tif gpGetVertexAttribIiv == nil {\n\t\treturn errors.New(\"glGetVertexAttribIiv\")\n\t}\n\tgpGetVertexAttribIuiv = (C.GPGETVERTEXATTRIBIUIV)(getProcAddr(\"glGetVertexAttribIuiv\"))\n\tif gpGetVertexAttribIuiv == nil {\n\t\treturn errors.New(\"glGetVertexAttribIuiv\")\n\t}\n\tgpGetVertexAttribLdv = (C.GPGETVERTEXATTRIBLDV)(getProcAddr(\"glGetVertexAttribLdv\"))\n\tif gpGetVertexAttribLdv == nil {\n\t\treturn errors.New(\"glGetVertexAttribLdv\")\n\t}\n\tgpGetVertexAttribLi64vNV = (C.GPGETVERTEXATTRIBLI64VNV)(getProcAddr(\"glGetVertexAttribLi64vNV\"))\n\tgpGetVertexAttribLui64vARB = (C.GPGETVERTEXATTRIBLUI64VARB)(getProcAddr(\"glGetVertexAttribLui64vARB\"))\n\tgpGetVertexAttribLui64vNV = (C.GPGETVERTEXATTRIBLUI64VNV)(getProcAddr(\"glGetVertexAttribLui64vNV\"))\n\tgpGetVertexAttribPointerv = (C.GPGETVERTEXATTRIBPOINTERV)(getProcAddr(\"glGetVertexAttribPointerv\"))\n\tif gpGetVertexAttribPointerv == nil {\n\t\treturn errors.New(\"glGetVertexAttribPointerv\")\n\t}\n\tgpGetVertexAttribdv = (C.GPGETVERTEXATTRIBDV)(getProcAddr(\"glGetVertexAttribdv\"))\n\tif gpGetVertexAttribdv == nil {\n\t\treturn errors.New(\"glGetVertexAttribdv\")\n\t}\n\tgpGetVertexAttribfv = (C.GPGETVERTEXATTRIBFV)(getProcAddr(\"glGetVertexAttribfv\"))\n\tif gpGetVertexAttribfv == nil {\n\t\treturn errors.New(\"glGetVertexAttribfv\")\n\t}\n\tgpGetVertexAttribiv = (C.GPGETVERTEXATTRIBIV)(getProcAddr(\"glGetVertexAttribiv\"))\n\tif gpGetVertexAttribiv == nil {\n\t\treturn errors.New(\"glGetVertexAttribiv\")\n\t}\n\tgpGetVkProcAddrNV = (C.GPGETVKPROCADDRNV)(getProcAddr(\"glGetVkProcAddrNV\"))\n\tgpGetnCompressedTexImageARB = (C.GPGETNCOMPRESSEDTEXIMAGEARB)(getProcAddr(\"glGetnCompressedTexImageARB\"))\n\tgpGetnTexImageARB = (C.GPGETNTEXIMAGEARB)(getProcAddr(\"glGetnTexImageARB\"))\n\tgpGetnUniformdvARB = (C.GPGETNUNIFORMDVARB)(getProcAddr(\"glGetnUniformdvARB\"))\n\tgpGetnUniformfv = (C.GPGETNUNIFORMFV)(getProcAddr(\"glGetnUniformfv\"))\n\tgpGetnUniformfvARB = (C.GPGETNUNIFORMFVARB)(getProcAddr(\"glGetnUniformfvARB\"))\n\tgpGetnUniformfvKHR = (C.GPGETNUNIFORMFVKHR)(getProcAddr(\"glGetnUniformfvKHR\"))\n\tgpGetnUniformi64vARB = (C.GPGETNUNIFORMI64VARB)(getProcAddr(\"glGetnUniformi64vARB\"))\n\tgpGetnUniformiv = (C.GPGETNUNIFORMIV)(getProcAddr(\"glGetnUniformiv\"))\n\tgpGetnUniformivARB = (C.GPGETNUNIFORMIVARB)(getProcAddr(\"glGetnUniformivARB\"))\n\tgpGetnUniformivKHR = (C.GPGETNUNIFORMIVKHR)(getProcAddr(\"glGetnUniformivKHR\"))\n\tgpGetnUniformui64vARB = (C.GPGETNUNIFORMUI64VARB)(getProcAddr(\"glGetnUniformui64vARB\"))\n\tgpGetnUniformuiv = (C.GPGETNUNIFORMUIV)(getProcAddr(\"glGetnUniformuiv\"))\n\tgpGetnUniformuivARB = (C.GPGETNUNIFORMUIVARB)(getProcAddr(\"glGetnUniformuivARB\"))\n\tgpGetnUniformuivKHR = (C.GPGETNUNIFORMUIVKHR)(getProcAddr(\"glGetnUniformuivKHR\"))\n\tgpHint = (C.GPHINT)(getProcAddr(\"glHint\"))\n\tif gpHint == nil {\n\t\treturn errors.New(\"glHint\")\n\t}\n\tgpIndexFormatNV = (C.GPINDEXFORMATNV)(getProcAddr(\"glIndexFormatNV\"))\n\tgpInsertEventMarkerEXT = (C.GPINSERTEVENTMARKEREXT)(getProcAddr(\"glInsertEventMarkerEXT\"))\n\tgpInterpolatePathsNV = (C.GPINTERPOLATEPATHSNV)(getProcAddr(\"glInterpolatePathsNV\"))\n\tgpInvalidateBufferData = (C.GPINVALIDATEBUFFERDATA)(getProcAddr(\"glInvalidateBufferData\"))\n\tgpInvalidateBufferSubData = (C.GPINVALIDATEBUFFERSUBDATA)(getProcAddr(\"glInvalidateBufferSubData\"))\n\tgpInvalidateFramebuffer = (C.GPINVALIDATEFRAMEBUFFER)(getProcAddr(\"glInvalidateFramebuffer\"))\n\tgpInvalidateNamedFramebufferData = (C.GPINVALIDATENAMEDFRAMEBUFFERDATA)(getProcAddr(\"glInvalidateNamedFramebufferData\"))\n\tgpInvalidateNamedFramebufferSubData = (C.GPINVALIDATENAMEDFRAMEBUFFERSUBDATA)(getProcAddr(\"glInvalidateNamedFramebufferSubData\"))\n\tgpInvalidateSubFramebuffer = (C.GPINVALIDATESUBFRAMEBUFFER)(getProcAddr(\"glInvalidateSubFramebuffer\"))\n\tgpInvalidateTexImage = (C.GPINVALIDATETEXIMAGE)(getProcAddr(\"glInvalidateTexImage\"))\n\tgpInvalidateTexSubImage = (C.GPINVALIDATETEXSUBIMAGE)(getProcAddr(\"glInvalidateTexSubImage\"))\n\tgpIsBuffer = (C.GPISBUFFER)(getProcAddr(\"glIsBuffer\"))\n\tif gpIsBuffer == nil {\n\t\treturn errors.New(\"glIsBuffer\")\n\t}\n\tgpIsBufferResidentNV = (C.GPISBUFFERRESIDENTNV)(getProcAddr(\"glIsBufferResidentNV\"))\n\tgpIsCommandListNV = (C.GPISCOMMANDLISTNV)(getProcAddr(\"glIsCommandListNV\"))\n\tgpIsEnabled = (C.GPISENABLED)(getProcAddr(\"glIsEnabled\"))\n\tif gpIsEnabled == nil {\n\t\treturn errors.New(\"glIsEnabled\")\n\t}\n\tgpIsEnabledIndexedEXT = (C.GPISENABLEDINDEXEDEXT)(getProcAddr(\"glIsEnabledIndexedEXT\"))\n\tgpIsEnabledi = (C.GPISENABLEDI)(getProcAddr(\"glIsEnabledi\"))\n\tif gpIsEnabledi == nil {\n\t\treturn errors.New(\"glIsEnabledi\")\n\t}\n\tgpIsFramebuffer = (C.GPISFRAMEBUFFER)(getProcAddr(\"glIsFramebuffer\"))\n\tif gpIsFramebuffer == nil {\n\t\treturn errors.New(\"glIsFramebuffer\")\n\t}\n\tgpIsImageHandleResidentARB = (C.GPISIMAGEHANDLERESIDENTARB)(getProcAddr(\"glIsImageHandleResidentARB\"))\n\tgpIsImageHandleResidentNV = (C.GPISIMAGEHANDLERESIDENTNV)(getProcAddr(\"glIsImageHandleResidentNV\"))\n\tgpIsNamedBufferResidentNV = (C.GPISNAMEDBUFFERRESIDENTNV)(getProcAddr(\"glIsNamedBufferResidentNV\"))\n\tgpIsNamedStringARB = (C.GPISNAMEDSTRINGARB)(getProcAddr(\"glIsNamedStringARB\"))\n\tgpIsPathNV = (C.GPISPATHNV)(getProcAddr(\"glIsPathNV\"))\n\tgpIsPointInFillPathNV = (C.GPISPOINTINFILLPATHNV)(getProcAddr(\"glIsPointInFillPathNV\"))\n\tgpIsPointInStrokePathNV = (C.GPISPOINTINSTROKEPATHNV)(getProcAddr(\"glIsPointInStrokePathNV\"))\n\tgpIsProgram = (C.GPISPROGRAM)(getProcAddr(\"glIsProgram\"))\n\tif gpIsProgram == nil {\n\t\treturn errors.New(\"glIsProgram\")\n\t}\n\tgpIsProgramPipeline = (C.GPISPROGRAMPIPELINE)(getProcAddr(\"glIsProgramPipeline\"))\n\tif gpIsProgramPipeline == nil {\n\t\treturn errors.New(\"glIsProgramPipeline\")\n\t}\n\tgpIsProgramPipelineEXT = (C.GPISPROGRAMPIPELINEEXT)(getProcAddr(\"glIsProgramPipelineEXT\"))\n\tgpIsQuery = (C.GPISQUERY)(getProcAddr(\"glIsQuery\"))\n\tif gpIsQuery == nil {\n\t\treturn errors.New(\"glIsQuery\")\n\t}\n\tgpIsRenderbuffer = (C.GPISRENDERBUFFER)(getProcAddr(\"glIsRenderbuffer\"))\n\tif gpIsRenderbuffer == nil {\n\t\treturn errors.New(\"glIsRenderbuffer\")\n\t}\n\tgpIsSampler = (C.GPISSAMPLER)(getProcAddr(\"glIsSampler\"))\n\tif gpIsSampler == nil {\n\t\treturn errors.New(\"glIsSampler\")\n\t}\n\tgpIsShader = (C.GPISSHADER)(getProcAddr(\"glIsShader\"))\n\tif gpIsShader == nil {\n\t\treturn errors.New(\"glIsShader\")\n\t}\n\tgpIsStateNV = (C.GPISSTATENV)(getProcAddr(\"glIsStateNV\"))\n\tgpIsSync = (C.GPISSYNC)(getProcAddr(\"glIsSync\"))\n\tif gpIsSync == nil {\n\t\treturn errors.New(\"glIsSync\")\n\t}\n\tgpIsTexture = (C.GPISTEXTURE)(getProcAddr(\"glIsTexture\"))\n\tif gpIsTexture == nil {\n\t\treturn errors.New(\"glIsTexture\")\n\t}\n\tgpIsTextureHandleResidentARB = (C.GPISTEXTUREHANDLERESIDENTARB)(getProcAddr(\"glIsTextureHandleResidentARB\"))\n\tgpIsTextureHandleResidentNV = (C.GPISTEXTUREHANDLERESIDENTNV)(getProcAddr(\"glIsTextureHandleResidentNV\"))\n\tgpIsTransformFeedback = (C.GPISTRANSFORMFEEDBACK)(getProcAddr(\"glIsTransformFeedback\"))\n\tif gpIsTransformFeedback == nil {\n\t\treturn errors.New(\"glIsTransformFeedback\")\n\t}\n\tgpIsVertexArray = (C.GPISVERTEXARRAY)(getProcAddr(\"glIsVertexArray\"))\n\tif gpIsVertexArray == nil {\n\t\treturn errors.New(\"glIsVertexArray\")\n\t}\n\tgpLabelObjectEXT = (C.GPLABELOBJECTEXT)(getProcAddr(\"glLabelObjectEXT\"))\n\tgpLineWidth = (C.GPLINEWIDTH)(getProcAddr(\"glLineWidth\"))\n\tif gpLineWidth == nil {\n\t\treturn errors.New(\"glLineWidth\")\n\t}\n\tgpLinkProgram = (C.GPLINKPROGRAM)(getProcAddr(\"glLinkProgram\"))\n\tif gpLinkProgram == nil {\n\t\treturn errors.New(\"glLinkProgram\")\n\t}\n\tgpListDrawCommandsStatesClientNV = (C.GPLISTDRAWCOMMANDSSTATESCLIENTNV)(getProcAddr(\"glListDrawCommandsStatesClientNV\"))\n\tgpLogicOp = (C.GPLOGICOP)(getProcAddr(\"glLogicOp\"))\n\tif gpLogicOp == nil {\n\t\treturn errors.New(\"glLogicOp\")\n\t}\n\tgpMakeBufferNonResidentNV = (C.GPMAKEBUFFERNONRESIDENTNV)(getProcAddr(\"glMakeBufferNonResidentNV\"))\n\tgpMakeBufferResidentNV = (C.GPMAKEBUFFERRESIDENTNV)(getProcAddr(\"glMakeBufferResidentNV\"))\n\tgpMakeImageHandleNonResidentARB = (C.GPMAKEIMAGEHANDLENONRESIDENTARB)(getProcAddr(\"glMakeImageHandleNonResidentARB\"))\n\tgpMakeImageHandleNonResidentNV = (C.GPMAKEIMAGEHANDLENONRESIDENTNV)(getProcAddr(\"glMakeImageHandleNonResidentNV\"))\n\tgpMakeImageHandleResidentARB = (C.GPMAKEIMAGEHANDLERESIDENTARB)(getProcAddr(\"glMakeImageHandleResidentARB\"))\n\tgpMakeImageHandleResidentNV = (C.GPMAKEIMAGEHANDLERESIDENTNV)(getProcAddr(\"glMakeImageHandleResidentNV\"))\n\tgpMakeNamedBufferNonResidentNV = (C.GPMAKENAMEDBUFFERNONRESIDENTNV)(getProcAddr(\"glMakeNamedBufferNonResidentNV\"))\n\tgpMakeNamedBufferResidentNV = (C.GPMAKENAMEDBUFFERRESIDENTNV)(getProcAddr(\"glMakeNamedBufferResidentNV\"))\n\tgpMakeTextureHandleNonResidentARB = (C.GPMAKETEXTUREHANDLENONRESIDENTARB)(getProcAddr(\"glMakeTextureHandleNonResidentARB\"))\n\tgpMakeTextureHandleNonResidentNV = (C.GPMAKETEXTUREHANDLENONRESIDENTNV)(getProcAddr(\"glMakeTextureHandleNonResidentNV\"))\n\tgpMakeTextureHandleResidentARB = (C.GPMAKETEXTUREHANDLERESIDENTARB)(getProcAddr(\"glMakeTextureHandleResidentARB\"))\n\tgpMakeTextureHandleResidentNV = (C.GPMAKETEXTUREHANDLERESIDENTNV)(getProcAddr(\"glMakeTextureHandleResidentNV\"))\n\tgpMapBuffer = (C.GPMAPBUFFER)(getProcAddr(\"glMapBuffer\"))\n\tif gpMapBuffer == nil {\n\t\treturn errors.New(\"glMapBuffer\")\n\t}\n\tgpMapBufferRange = (C.GPMAPBUFFERRANGE)(getProcAddr(\"glMapBufferRange\"))\n\tif gpMapBufferRange == nil {\n\t\treturn errors.New(\"glMapBufferRange\")\n\t}\n\tgpMapNamedBuffer = (C.GPMAPNAMEDBUFFER)(getProcAddr(\"glMapNamedBuffer\"))\n\tgpMapNamedBufferEXT = (C.GPMAPNAMEDBUFFEREXT)(getProcAddr(\"glMapNamedBufferEXT\"))\n\tgpMapNamedBufferRange = (C.GPMAPNAMEDBUFFERRANGE)(getProcAddr(\"glMapNamedBufferRange\"))\n\tgpMapNamedBufferRangeEXT = (C.GPMAPNAMEDBUFFERRANGEEXT)(getProcAddr(\"glMapNamedBufferRangeEXT\"))\n\tgpMatrixFrustumEXT = (C.GPMATRIXFRUSTUMEXT)(getProcAddr(\"glMatrixFrustumEXT\"))\n\tgpMatrixLoad3x2fNV = (C.GPMATRIXLOAD3X2FNV)(getProcAddr(\"glMatrixLoad3x2fNV\"))\n\tgpMatrixLoad3x3fNV = (C.GPMATRIXLOAD3X3FNV)(getProcAddr(\"glMatrixLoad3x3fNV\"))\n\tgpMatrixLoadIdentityEXT = (C.GPMATRIXLOADIDENTITYEXT)(getProcAddr(\"glMatrixLoadIdentityEXT\"))\n\tgpMatrixLoadTranspose3x3fNV = (C.GPMATRIXLOADTRANSPOSE3X3FNV)(getProcAddr(\"glMatrixLoadTranspose3x3fNV\"))\n\tgpMatrixLoadTransposedEXT = (C.GPMATRIXLOADTRANSPOSEDEXT)(getProcAddr(\"glMatrixLoadTransposedEXT\"))\n\tgpMatrixLoadTransposefEXT = (C.GPMATRIXLOADTRANSPOSEFEXT)(getProcAddr(\"glMatrixLoadTransposefEXT\"))\n\tgpMatrixLoaddEXT = (C.GPMATRIXLOADDEXT)(getProcAddr(\"glMatrixLoaddEXT\"))\n\tgpMatrixLoadfEXT = (C.GPMATRIXLOADFEXT)(getProcAddr(\"glMatrixLoadfEXT\"))\n\tgpMatrixMult3x2fNV = (C.GPMATRIXMULT3X2FNV)(getProcAddr(\"glMatrixMult3x2fNV\"))\n\tgpMatrixMult3x3fNV = (C.GPMATRIXMULT3X3FNV)(getProcAddr(\"glMatrixMult3x3fNV\"))\n\tgpMatrixMultTranspose3x3fNV = (C.GPMATRIXMULTTRANSPOSE3X3FNV)(getProcAddr(\"glMatrixMultTranspose3x3fNV\"))\n\tgpMatrixMultTransposedEXT = (C.GPMATRIXMULTTRANSPOSEDEXT)(getProcAddr(\"glMatrixMultTransposedEXT\"))\n\tgpMatrixMultTransposefEXT = (C.GPMATRIXMULTTRANSPOSEFEXT)(getProcAddr(\"glMatrixMultTransposefEXT\"))\n\tgpMatrixMultdEXT = (C.GPMATRIXMULTDEXT)(getProcAddr(\"glMatrixMultdEXT\"))\n\tgpMatrixMultfEXT = (C.GPMATRIXMULTFEXT)(getProcAddr(\"glMatrixMultfEXT\"))\n\tgpMatrixOrthoEXT = (C.GPMATRIXORTHOEXT)(getProcAddr(\"glMatrixOrthoEXT\"))\n\tgpMatrixPopEXT = (C.GPMATRIXPOPEXT)(getProcAddr(\"glMatrixPopEXT\"))\n\tgpMatrixPushEXT = (C.GPMATRIXPUSHEXT)(getProcAddr(\"glMatrixPushEXT\"))\n\tgpMatrixRotatedEXT = (C.GPMATRIXROTATEDEXT)(getProcAddr(\"glMatrixRotatedEXT\"))\n\tgpMatrixRotatefEXT = (C.GPMATRIXROTATEFEXT)(getProcAddr(\"glMatrixRotatefEXT\"))\n\tgpMatrixScaledEXT = (C.GPMATRIXSCALEDEXT)(getProcAddr(\"glMatrixScaledEXT\"))\n\tgpMatrixScalefEXT = (C.GPMATRIXSCALEFEXT)(getProcAddr(\"glMatrixScalefEXT\"))\n\tgpMatrixTranslatedEXT = (C.GPMATRIXTRANSLATEDEXT)(getProcAddr(\"glMatrixTranslatedEXT\"))\n\tgpMatrixTranslatefEXT = (C.GPMATRIXTRANSLATEFEXT)(getProcAddr(\"glMatrixTranslatefEXT\"))\n\tgpMaxShaderCompilerThreadsARB = (C.GPMAXSHADERCOMPILERTHREADSARB)(getProcAddr(\"glMaxShaderCompilerThreadsARB\"))\n\tgpMaxShaderCompilerThreadsKHR = (C.GPMAXSHADERCOMPILERTHREADSKHR)(getProcAddr(\"glMaxShaderCompilerThreadsKHR\"))\n\tgpMemoryBarrier = (C.GPMEMORYBARRIER)(getProcAddr(\"glMemoryBarrier\"))\n\tif gpMemoryBarrier == nil {\n\t\treturn errors.New(\"glMemoryBarrier\")\n\t}\n\tgpMemoryBarrierByRegion = (C.GPMEMORYBARRIERBYREGION)(getProcAddr(\"glMemoryBarrierByRegion\"))\n\tgpMinSampleShading = (C.GPMINSAMPLESHADING)(getProcAddr(\"glMinSampleShading\"))\n\tif gpMinSampleShading == nil {\n\t\treturn errors.New(\"glMinSampleShading\")\n\t}\n\tgpMinSampleShadingARB = (C.GPMINSAMPLESHADINGARB)(getProcAddr(\"glMinSampleShadingARB\"))\n\tgpMultiDrawArrays = (C.GPMULTIDRAWARRAYS)(getProcAddr(\"glMultiDrawArrays\"))\n\tif gpMultiDrawArrays == nil {\n\t\treturn errors.New(\"glMultiDrawArrays\")\n\t}\n\tgpMultiDrawArraysIndirect = (C.GPMULTIDRAWARRAYSINDIRECT)(getProcAddr(\"glMultiDrawArraysIndirect\"))\n\tgpMultiDrawArraysIndirectBindlessCountNV = (C.GPMULTIDRAWARRAYSINDIRECTBINDLESSCOUNTNV)(getProcAddr(\"glMultiDrawArraysIndirectBindlessCountNV\"))\n\tgpMultiDrawArraysIndirectBindlessNV = (C.GPMULTIDRAWARRAYSINDIRECTBINDLESSNV)(getProcAddr(\"glMultiDrawArraysIndirectBindlessNV\"))\n\tgpMultiDrawArraysIndirectCountARB = (C.GPMULTIDRAWARRAYSINDIRECTCOUNTARB)(getProcAddr(\"glMultiDrawArraysIndirectCountARB\"))\n\tgpMultiDrawElements = (C.GPMULTIDRAWELEMENTS)(getProcAddr(\"glMultiDrawElements\"))\n\tif gpMultiDrawElements == nil {\n\t\treturn errors.New(\"glMultiDrawElements\")\n\t}\n\tgpMultiDrawElementsBaseVertex = (C.GPMULTIDRAWELEMENTSBASEVERTEX)(getProcAddr(\"glMultiDrawElementsBaseVertex\"))\n\tif gpMultiDrawElementsBaseVertex == nil {\n\t\treturn errors.New(\"glMultiDrawElementsBaseVertex\")\n\t}\n\tgpMultiDrawElementsIndirect = (C.GPMULTIDRAWELEMENTSINDIRECT)(getProcAddr(\"glMultiDrawElementsIndirect\"))\n\tgpMultiDrawElementsIndirectBindlessCountNV = (C.GPMULTIDRAWELEMENTSINDIRECTBINDLESSCOUNTNV)(getProcAddr(\"glMultiDrawElementsIndirectBindlessCountNV\"))\n\tgpMultiDrawElementsIndirectBindlessNV = (C.GPMULTIDRAWELEMENTSINDIRECTBINDLESSNV)(getProcAddr(\"glMultiDrawElementsIndirectBindlessNV\"))\n\tgpMultiDrawElementsIndirectCountARB = (C.GPMULTIDRAWELEMENTSINDIRECTCOUNTARB)(getProcAddr(\"glMultiDrawElementsIndirectCountARB\"))\n\tgpMultiDrawMeshTasksIndirectCountNV = (C.GPMULTIDRAWMESHTASKSINDIRECTCOUNTNV)(getProcAddr(\"glMultiDrawMeshTasksIndirectCountNV\"))\n\tgpMultiDrawMeshTasksIndirectNV = (C.GPMULTIDRAWMESHTASKSINDIRECTNV)(getProcAddr(\"glMultiDrawMeshTasksIndirectNV\"))\n\tgpMultiTexBufferEXT = (C.GPMULTITEXBUFFEREXT)(getProcAddr(\"glMultiTexBufferEXT\"))\n\tgpMultiTexCoordPointerEXT = (C.GPMULTITEXCOORDPOINTEREXT)(getProcAddr(\"glMultiTexCoordPointerEXT\"))\n\tgpMultiTexEnvfEXT = (C.GPMULTITEXENVFEXT)(getProcAddr(\"glMultiTexEnvfEXT\"))\n\tgpMultiTexEnvfvEXT = (C.GPMULTITEXENVFVEXT)(getProcAddr(\"glMultiTexEnvfvEXT\"))\n\tgpMultiTexEnviEXT = (C.GPMULTITEXENVIEXT)(getProcAddr(\"glMultiTexEnviEXT\"))\n\tgpMultiTexEnvivEXT = (C.GPMULTITEXENVIVEXT)(getProcAddr(\"glMultiTexEnvivEXT\"))\n\tgpMultiTexGendEXT = (C.GPMULTITEXGENDEXT)(getProcAddr(\"glMultiTexGendEXT\"))\n\tgpMultiTexGendvEXT = (C.GPMULTITEXGENDVEXT)(getProcAddr(\"glMultiTexGendvEXT\"))\n\tgpMultiTexGenfEXT = (C.GPMULTITEXGENFEXT)(getProcAddr(\"glMultiTexGenfEXT\"))\n\tgpMultiTexGenfvEXT = (C.GPMULTITEXGENFVEXT)(getProcAddr(\"glMultiTexGenfvEXT\"))\n\tgpMultiTexGeniEXT = (C.GPMULTITEXGENIEXT)(getProcAddr(\"glMultiTexGeniEXT\"))\n\tgpMultiTexGenivEXT = (C.GPMULTITEXGENIVEXT)(getProcAddr(\"glMultiTexGenivEXT\"))\n\tgpMultiTexImage1DEXT = (C.GPMULTITEXIMAGE1DEXT)(getProcAddr(\"glMultiTexImage1DEXT\"))\n\tgpMultiTexImage2DEXT = (C.GPMULTITEXIMAGE2DEXT)(getProcAddr(\"glMultiTexImage2DEXT\"))\n\tgpMultiTexImage3DEXT = (C.GPMULTITEXIMAGE3DEXT)(getProcAddr(\"glMultiTexImage3DEXT\"))\n\tgpMultiTexParameterIivEXT = (C.GPMULTITEXPARAMETERIIVEXT)(getProcAddr(\"glMultiTexParameterIivEXT\"))\n\tgpMultiTexParameterIuivEXT = (C.GPMULTITEXPARAMETERIUIVEXT)(getProcAddr(\"glMultiTexParameterIuivEXT\"))\n\tgpMultiTexParameterfEXT = (C.GPMULTITEXPARAMETERFEXT)(getProcAddr(\"glMultiTexParameterfEXT\"))\n\tgpMultiTexParameterfvEXT = (C.GPMULTITEXPARAMETERFVEXT)(getProcAddr(\"glMultiTexParameterfvEXT\"))\n\tgpMultiTexParameteriEXT = (C.GPMULTITEXPARAMETERIEXT)(getProcAddr(\"glMultiTexParameteriEXT\"))\n\tgpMultiTexParameterivEXT = (C.GPMULTITEXPARAMETERIVEXT)(getProcAddr(\"glMultiTexParameterivEXT\"))\n\tgpMultiTexRenderbufferEXT = (C.GPMULTITEXRENDERBUFFEREXT)(getProcAddr(\"glMultiTexRenderbufferEXT\"))\n\tgpMultiTexSubImage1DEXT = (C.GPMULTITEXSUBIMAGE1DEXT)(getProcAddr(\"glMultiTexSubImage1DEXT\"))\n\tgpMultiTexSubImage2DEXT = (C.GPMULTITEXSUBIMAGE2DEXT)(getProcAddr(\"glMultiTexSubImage2DEXT\"))\n\tgpMultiTexSubImage3DEXT = (C.GPMULTITEXSUBIMAGE3DEXT)(getProcAddr(\"glMultiTexSubImage3DEXT\"))\n\tgpNamedBufferAttachMemoryNV = (C.GPNAMEDBUFFERATTACHMEMORYNV)(getProcAddr(\"glNamedBufferAttachMemoryNV\"))\n\tgpNamedBufferData = (C.GPNAMEDBUFFERDATA)(getProcAddr(\"glNamedBufferData\"))\n\tgpNamedBufferDataEXT = (C.GPNAMEDBUFFERDATAEXT)(getProcAddr(\"glNamedBufferDataEXT\"))\n\tgpNamedBufferPageCommitmentARB = (C.GPNAMEDBUFFERPAGECOMMITMENTARB)(getProcAddr(\"glNamedBufferPageCommitmentARB\"))\n\tgpNamedBufferPageCommitmentEXT = (C.GPNAMEDBUFFERPAGECOMMITMENTEXT)(getProcAddr(\"glNamedBufferPageCommitmentEXT\"))\n\tgpNamedBufferPageCommitmentMemNV = (C.GPNAMEDBUFFERPAGECOMMITMENTMEMNV)(getProcAddr(\"glNamedBufferPageCommitmentMemNV\"))\n\tgpNamedBufferStorage = (C.GPNAMEDBUFFERSTORAGE)(getProcAddr(\"glNamedBufferStorage\"))\n\tgpNamedBufferStorageEXT = (C.GPNAMEDBUFFERSTORAGEEXT)(getProcAddr(\"glNamedBufferStorageEXT\"))\n\tgpNamedBufferSubData = (C.GPNAMEDBUFFERSUBDATA)(getProcAddr(\"glNamedBufferSubData\"))\n\tgpNamedBufferSubDataEXT = (C.GPNAMEDBUFFERSUBDATAEXT)(getProcAddr(\"glNamedBufferSubDataEXT\"))\n\tgpNamedCopyBufferSubDataEXT = (C.GPNAMEDCOPYBUFFERSUBDATAEXT)(getProcAddr(\"glNamedCopyBufferSubDataEXT\"))\n\tgpNamedFramebufferDrawBuffer = (C.GPNAMEDFRAMEBUFFERDRAWBUFFER)(getProcAddr(\"glNamedFramebufferDrawBuffer\"))\n\tgpNamedFramebufferDrawBuffers = (C.GPNAMEDFRAMEBUFFERDRAWBUFFERS)(getProcAddr(\"glNamedFramebufferDrawBuffers\"))\n\tgpNamedFramebufferParameteri = (C.GPNAMEDFRAMEBUFFERPARAMETERI)(getProcAddr(\"glNamedFramebufferParameteri\"))\n\tgpNamedFramebufferParameteriEXT = (C.GPNAMEDFRAMEBUFFERPARAMETERIEXT)(getProcAddr(\"glNamedFramebufferParameteriEXT\"))\n\tgpNamedFramebufferReadBuffer = (C.GPNAMEDFRAMEBUFFERREADBUFFER)(getProcAddr(\"glNamedFramebufferReadBuffer\"))\n\tgpNamedFramebufferRenderbuffer = (C.GPNAMEDFRAMEBUFFERRENDERBUFFER)(getProcAddr(\"glNamedFramebufferRenderbuffer\"))\n\tgpNamedFramebufferRenderbufferEXT = (C.GPNAMEDFRAMEBUFFERRENDERBUFFEREXT)(getProcAddr(\"glNamedFramebufferRenderbufferEXT\"))\n\tgpNamedFramebufferSampleLocationsfvARB = (C.GPNAMEDFRAMEBUFFERSAMPLELOCATIONSFVARB)(getProcAddr(\"glNamedFramebufferSampleLocationsfvARB\"))\n\tgpNamedFramebufferSampleLocationsfvNV = (C.GPNAMEDFRAMEBUFFERSAMPLELOCATIONSFVNV)(getProcAddr(\"glNamedFramebufferSampleLocationsfvNV\"))\n\tgpNamedFramebufferTexture = (C.GPNAMEDFRAMEBUFFERTEXTURE)(getProcAddr(\"glNamedFramebufferTexture\"))\n\tgpNamedFramebufferTexture1DEXT = (C.GPNAMEDFRAMEBUFFERTEXTURE1DEXT)(getProcAddr(\"glNamedFramebufferTexture1DEXT\"))\n\tgpNamedFramebufferTexture2DEXT = (C.GPNAMEDFRAMEBUFFERTEXTURE2DEXT)(getProcAddr(\"glNamedFramebufferTexture2DEXT\"))\n\tgpNamedFramebufferTexture3DEXT = (C.GPNAMEDFRAMEBUFFERTEXTURE3DEXT)(getProcAddr(\"glNamedFramebufferTexture3DEXT\"))\n\tgpNamedFramebufferTextureEXT = (C.GPNAMEDFRAMEBUFFERTEXTUREEXT)(getProcAddr(\"glNamedFramebufferTextureEXT\"))\n\tgpNamedFramebufferTextureFaceEXT = (C.GPNAMEDFRAMEBUFFERTEXTUREFACEEXT)(getProcAddr(\"glNamedFramebufferTextureFaceEXT\"))\n\tgpNamedFramebufferTextureLayer = (C.GPNAMEDFRAMEBUFFERTEXTURELAYER)(getProcAddr(\"glNamedFramebufferTextureLayer\"))\n\tgpNamedFramebufferTextureLayerEXT = (C.GPNAMEDFRAMEBUFFERTEXTURELAYEREXT)(getProcAddr(\"glNamedFramebufferTextureLayerEXT\"))\n\tgpNamedProgramLocalParameter4dEXT = (C.GPNAMEDPROGRAMLOCALPARAMETER4DEXT)(getProcAddr(\"glNamedProgramLocalParameter4dEXT\"))\n\tgpNamedProgramLocalParameter4dvEXT = (C.GPNAMEDPROGRAMLOCALPARAMETER4DVEXT)(getProcAddr(\"glNamedProgramLocalParameter4dvEXT\"))\n\tgpNamedProgramLocalParameter4fEXT = (C.GPNAMEDPROGRAMLOCALPARAMETER4FEXT)(getProcAddr(\"glNamedProgramLocalParameter4fEXT\"))\n\tgpNamedProgramLocalParameter4fvEXT = (C.GPNAMEDPROGRAMLOCALPARAMETER4FVEXT)(getProcAddr(\"glNamedProgramLocalParameter4fvEXT\"))\n\tgpNamedProgramLocalParameterI4iEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERI4IEXT)(getProcAddr(\"glNamedProgramLocalParameterI4iEXT\"))\n\tgpNamedProgramLocalParameterI4ivEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERI4IVEXT)(getProcAddr(\"glNamedProgramLocalParameterI4ivEXT\"))\n\tgpNamedProgramLocalParameterI4uiEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERI4UIEXT)(getProcAddr(\"glNamedProgramLocalParameterI4uiEXT\"))\n\tgpNamedProgramLocalParameterI4uivEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERI4UIVEXT)(getProcAddr(\"glNamedProgramLocalParameterI4uivEXT\"))\n\tgpNamedProgramLocalParameters4fvEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERS4FVEXT)(getProcAddr(\"glNamedProgramLocalParameters4fvEXT\"))\n\tgpNamedProgramLocalParametersI4ivEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERSI4IVEXT)(getProcAddr(\"glNamedProgramLocalParametersI4ivEXT\"))\n\tgpNamedProgramLocalParametersI4uivEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERSI4UIVEXT)(getProcAddr(\"glNamedProgramLocalParametersI4uivEXT\"))\n\tgpNamedProgramStringEXT = (C.GPNAMEDPROGRAMSTRINGEXT)(getProcAddr(\"glNamedProgramStringEXT\"))\n\tgpNamedRenderbufferStorage = (C.GPNAMEDRENDERBUFFERSTORAGE)(getProcAddr(\"glNamedRenderbufferStorage\"))\n\tgpNamedRenderbufferStorageEXT = (C.GPNAMEDRENDERBUFFERSTORAGEEXT)(getProcAddr(\"glNamedRenderbufferStorageEXT\"))\n\tgpNamedRenderbufferStorageMultisample = (C.GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLE)(getProcAddr(\"glNamedRenderbufferStorageMultisample\"))\n\tgpNamedRenderbufferStorageMultisampleAdvancedAMD = (C.GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMD)(getProcAddr(\"glNamedRenderbufferStorageMultisampleAdvancedAMD\"))\n\tgpNamedRenderbufferStorageMultisampleCoverageEXT = (C.GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXT)(getProcAddr(\"glNamedRenderbufferStorageMultisampleCoverageEXT\"))\n\tgpNamedRenderbufferStorageMultisampleEXT = (C.GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXT)(getProcAddr(\"glNamedRenderbufferStorageMultisampleEXT\"))\n\tgpNamedStringARB = (C.GPNAMEDSTRINGARB)(getProcAddr(\"glNamedStringARB\"))\n\tgpNormalFormatNV = (C.GPNORMALFORMATNV)(getProcAddr(\"glNormalFormatNV\"))\n\tgpObjectLabel = (C.GPOBJECTLABEL)(getProcAddr(\"glObjectLabel\"))\n\tgpObjectLabelKHR = (C.GPOBJECTLABELKHR)(getProcAddr(\"glObjectLabelKHR\"))\n\tgpObjectPtrLabel = (C.GPOBJECTPTRLABEL)(getProcAddr(\"glObjectPtrLabel\"))\n\tgpObjectPtrLabelKHR = (C.GPOBJECTPTRLABELKHR)(getProcAddr(\"glObjectPtrLabelKHR\"))\n\tgpPatchParameterfv = (C.GPPATCHPARAMETERFV)(getProcAddr(\"glPatchParameterfv\"))\n\tif gpPatchParameterfv == nil {\n\t\treturn errors.New(\"glPatchParameterfv\")\n\t}\n\tgpPatchParameteri = (C.GPPATCHPARAMETERI)(getProcAddr(\"glPatchParameteri\"))\n\tif gpPatchParameteri == nil {\n\t\treturn errors.New(\"glPatchParameteri\")\n\t}\n\tgpPathCommandsNV = (C.GPPATHCOMMANDSNV)(getProcAddr(\"glPathCommandsNV\"))\n\tgpPathCoordsNV = (C.GPPATHCOORDSNV)(getProcAddr(\"glPathCoordsNV\"))\n\tgpPathCoverDepthFuncNV = (C.GPPATHCOVERDEPTHFUNCNV)(getProcAddr(\"glPathCoverDepthFuncNV\"))\n\tgpPathDashArrayNV = (C.GPPATHDASHARRAYNV)(getProcAddr(\"glPathDashArrayNV\"))\n\tgpPathGlyphIndexArrayNV = (C.GPPATHGLYPHINDEXARRAYNV)(getProcAddr(\"glPathGlyphIndexArrayNV\"))\n\tgpPathGlyphIndexRangeNV = (C.GPPATHGLYPHINDEXRANGENV)(getProcAddr(\"glPathGlyphIndexRangeNV\"))\n\tgpPathGlyphRangeNV = (C.GPPATHGLYPHRANGENV)(getProcAddr(\"glPathGlyphRangeNV\"))\n\tgpPathGlyphsNV = (C.GPPATHGLYPHSNV)(getProcAddr(\"glPathGlyphsNV\"))\n\tgpPathMemoryGlyphIndexArrayNV = (C.GPPATHMEMORYGLYPHINDEXARRAYNV)(getProcAddr(\"glPathMemoryGlyphIndexArrayNV\"))\n\tgpPathParameterfNV = (C.GPPATHPARAMETERFNV)(getProcAddr(\"glPathParameterfNV\"))\n\tgpPathParameterfvNV = (C.GPPATHPARAMETERFVNV)(getProcAddr(\"glPathParameterfvNV\"))\n\tgpPathParameteriNV = (C.GPPATHPARAMETERINV)(getProcAddr(\"glPathParameteriNV\"))\n\tgpPathParameterivNV = (C.GPPATHPARAMETERIVNV)(getProcAddr(\"glPathParameterivNV\"))\n\tgpPathStencilDepthOffsetNV = (C.GPPATHSTENCILDEPTHOFFSETNV)(getProcAddr(\"glPathStencilDepthOffsetNV\"))\n\tgpPathStencilFuncNV = (C.GPPATHSTENCILFUNCNV)(getProcAddr(\"glPathStencilFuncNV\"))\n\tgpPathStringNV = (C.GPPATHSTRINGNV)(getProcAddr(\"glPathStringNV\"))\n\tgpPathSubCommandsNV = (C.GPPATHSUBCOMMANDSNV)(getProcAddr(\"glPathSubCommandsNV\"))\n\tgpPathSubCoordsNV = (C.GPPATHSUBCOORDSNV)(getProcAddr(\"glPathSubCoordsNV\"))\n\tgpPauseTransformFeedback = (C.GPPAUSETRANSFORMFEEDBACK)(getProcAddr(\"glPauseTransformFeedback\"))\n\tif gpPauseTransformFeedback == nil {\n\t\treturn errors.New(\"glPauseTransformFeedback\")\n\t}\n\tgpPixelStoref = (C.GPPIXELSTOREF)(getProcAddr(\"glPixelStoref\"))\n\tif gpPixelStoref == nil {\n\t\treturn errors.New(\"glPixelStoref\")\n\t}\n\tgpPixelStorei = (C.GPPIXELSTOREI)(getProcAddr(\"glPixelStorei\"))\n\tif gpPixelStorei == nil {\n\t\treturn errors.New(\"glPixelStorei\")\n\t}\n\tgpPointAlongPathNV = (C.GPPOINTALONGPATHNV)(getProcAddr(\"glPointAlongPathNV\"))\n\tgpPointParameterf = (C.GPPOINTPARAMETERF)(getProcAddr(\"glPointParameterf\"))\n\tif gpPointParameterf == nil {\n\t\treturn errors.New(\"glPointParameterf\")\n\t}\n\tgpPointParameterfv = (C.GPPOINTPARAMETERFV)(getProcAddr(\"glPointParameterfv\"))\n\tif gpPointParameterfv == nil {\n\t\treturn errors.New(\"glPointParameterfv\")\n\t}\n\tgpPointParameteri = (C.GPPOINTPARAMETERI)(getProcAddr(\"glPointParameteri\"))\n\tif gpPointParameteri == nil {\n\t\treturn errors.New(\"glPointParameteri\")\n\t}\n\tgpPointParameteriv = (C.GPPOINTPARAMETERIV)(getProcAddr(\"glPointParameteriv\"))\n\tif gpPointParameteriv == nil {\n\t\treturn errors.New(\"glPointParameteriv\")\n\t}\n\tgpPointSize = (C.GPPOINTSIZE)(getProcAddr(\"glPointSize\"))\n\tif gpPointSize == nil {\n\t\treturn errors.New(\"glPointSize\")\n\t}\n\tgpPolygonMode = (C.GPPOLYGONMODE)(getProcAddr(\"glPolygonMode\"))\n\tif gpPolygonMode == nil {\n\t\treturn errors.New(\"glPolygonMode\")\n\t}\n\tgpPolygonOffset = (C.GPPOLYGONOFFSET)(getProcAddr(\"glPolygonOffset\"))\n\tif gpPolygonOffset == nil {\n\t\treturn errors.New(\"glPolygonOffset\")\n\t}\n\tgpPolygonOffsetClamp = (C.GPPOLYGONOFFSETCLAMP)(getProcAddr(\"glPolygonOffsetClamp\"))\n\tgpPolygonOffsetClampEXT = (C.GPPOLYGONOFFSETCLAMPEXT)(getProcAddr(\"glPolygonOffsetClampEXT\"))\n\tgpPopDebugGroup = (C.GPPOPDEBUGGROUP)(getProcAddr(\"glPopDebugGroup\"))\n\tgpPopDebugGroupKHR = (C.GPPOPDEBUGGROUPKHR)(getProcAddr(\"glPopDebugGroupKHR\"))\n\tgpPopGroupMarkerEXT = (C.GPPOPGROUPMARKEREXT)(getProcAddr(\"glPopGroupMarkerEXT\"))\n\tgpPrimitiveBoundingBoxARB = (C.GPPRIMITIVEBOUNDINGBOXARB)(getProcAddr(\"glPrimitiveBoundingBoxARB\"))\n\tgpPrimitiveRestartIndex = (C.GPPRIMITIVERESTARTINDEX)(getProcAddr(\"glPrimitiveRestartIndex\"))\n\tif gpPrimitiveRestartIndex == nil {\n\t\treturn errors.New(\"glPrimitiveRestartIndex\")\n\t}\n\tgpProgramBinary = (C.GPPROGRAMBINARY)(getProcAddr(\"glProgramBinary\"))\n\tif gpProgramBinary == nil {\n\t\treturn errors.New(\"glProgramBinary\")\n\t}\n\tgpProgramParameteri = (C.GPPROGRAMPARAMETERI)(getProcAddr(\"glProgramParameteri\"))\n\tif gpProgramParameteri == nil {\n\t\treturn errors.New(\"glProgramParameteri\")\n\t}\n\tgpProgramParameteriARB = (C.GPPROGRAMPARAMETERIARB)(getProcAddr(\"glProgramParameteriARB\"))\n\tgpProgramParameteriEXT = (C.GPPROGRAMPARAMETERIEXT)(getProcAddr(\"glProgramParameteriEXT\"))\n\tgpProgramPathFragmentInputGenNV = (C.GPPROGRAMPATHFRAGMENTINPUTGENNV)(getProcAddr(\"glProgramPathFragmentInputGenNV\"))\n\tgpProgramUniform1d = (C.GPPROGRAMUNIFORM1D)(getProcAddr(\"glProgramUniform1d\"))\n\tif gpProgramUniform1d == nil {\n\t\treturn errors.New(\"glProgramUniform1d\")\n\t}\n\tgpProgramUniform1dEXT = (C.GPPROGRAMUNIFORM1DEXT)(getProcAddr(\"glProgramUniform1dEXT\"))\n\tgpProgramUniform1dv = (C.GPPROGRAMUNIFORM1DV)(getProcAddr(\"glProgramUniform1dv\"))\n\tif gpProgramUniform1dv == nil {\n\t\treturn errors.New(\"glProgramUniform1dv\")\n\t}\n\tgpProgramUniform1dvEXT = (C.GPPROGRAMUNIFORM1DVEXT)(getProcAddr(\"glProgramUniform1dvEXT\"))\n\tgpProgramUniform1f = (C.GPPROGRAMUNIFORM1F)(getProcAddr(\"glProgramUniform1f\"))\n\tif gpProgramUniform1f == nil {\n\t\treturn errors.New(\"glProgramUniform1f\")\n\t}\n\tgpProgramUniform1fEXT = (C.GPPROGRAMUNIFORM1FEXT)(getProcAddr(\"glProgramUniform1fEXT\"))\n\tgpProgramUniform1fv = (C.GPPROGRAMUNIFORM1FV)(getProcAddr(\"glProgramUniform1fv\"))\n\tif gpProgramUniform1fv == nil {\n\t\treturn errors.New(\"glProgramUniform1fv\")\n\t}\n\tgpProgramUniform1fvEXT = (C.GPPROGRAMUNIFORM1FVEXT)(getProcAddr(\"glProgramUniform1fvEXT\"))\n\tgpProgramUniform1i = (C.GPPROGRAMUNIFORM1I)(getProcAddr(\"glProgramUniform1i\"))\n\tif gpProgramUniform1i == nil {\n\t\treturn errors.New(\"glProgramUniform1i\")\n\t}\n\tgpProgramUniform1i64ARB = (C.GPPROGRAMUNIFORM1I64ARB)(getProcAddr(\"glProgramUniform1i64ARB\"))\n\tgpProgramUniform1i64NV = (C.GPPROGRAMUNIFORM1I64NV)(getProcAddr(\"glProgramUniform1i64NV\"))\n\tgpProgramUniform1i64vARB = (C.GPPROGRAMUNIFORM1I64VARB)(getProcAddr(\"glProgramUniform1i64vARB\"))\n\tgpProgramUniform1i64vNV = (C.GPPROGRAMUNIFORM1I64VNV)(getProcAddr(\"glProgramUniform1i64vNV\"))\n\tgpProgramUniform1iEXT = (C.GPPROGRAMUNIFORM1IEXT)(getProcAddr(\"glProgramUniform1iEXT\"))\n\tgpProgramUniform1iv = (C.GPPROGRAMUNIFORM1IV)(getProcAddr(\"glProgramUniform1iv\"))\n\tif gpProgramUniform1iv == nil {\n\t\treturn errors.New(\"glProgramUniform1iv\")\n\t}\n\tgpProgramUniform1ivEXT = (C.GPPROGRAMUNIFORM1IVEXT)(getProcAddr(\"glProgramUniform1ivEXT\"))\n\tgpProgramUniform1ui = (C.GPPROGRAMUNIFORM1UI)(getProcAddr(\"glProgramUniform1ui\"))\n\tif gpProgramUniform1ui == nil {\n\t\treturn errors.New(\"glProgramUniform1ui\")\n\t}\n\tgpProgramUniform1ui64ARB = (C.GPPROGRAMUNIFORM1UI64ARB)(getProcAddr(\"glProgramUniform1ui64ARB\"))\n\tgpProgramUniform1ui64NV = (C.GPPROGRAMUNIFORM1UI64NV)(getProcAddr(\"glProgramUniform1ui64NV\"))\n\tgpProgramUniform1ui64vARB = (C.GPPROGRAMUNIFORM1UI64VARB)(getProcAddr(\"glProgramUniform1ui64vARB\"))\n\tgpProgramUniform1ui64vNV = (C.GPPROGRAMUNIFORM1UI64VNV)(getProcAddr(\"glProgramUniform1ui64vNV\"))\n\tgpProgramUniform1uiEXT = (C.GPPROGRAMUNIFORM1UIEXT)(getProcAddr(\"glProgramUniform1uiEXT\"))\n\tgpProgramUniform1uiv = (C.GPPROGRAMUNIFORM1UIV)(getProcAddr(\"glProgramUniform1uiv\"))\n\tif gpProgramUniform1uiv == nil {\n\t\treturn errors.New(\"glProgramUniform1uiv\")\n\t}\n\tgpProgramUniform1uivEXT = (C.GPPROGRAMUNIFORM1UIVEXT)(getProcAddr(\"glProgramUniform1uivEXT\"))\n\tgpProgramUniform2d = (C.GPPROGRAMUNIFORM2D)(getProcAddr(\"glProgramUniform2d\"))\n\tif gpProgramUniform2d == nil {\n\t\treturn errors.New(\"glProgramUniform2d\")\n\t}\n\tgpProgramUniform2dEXT = (C.GPPROGRAMUNIFORM2DEXT)(getProcAddr(\"glProgramUniform2dEXT\"))\n\tgpProgramUniform2dv = (C.GPPROGRAMUNIFORM2DV)(getProcAddr(\"glProgramUniform2dv\"))\n\tif gpProgramUniform2dv == nil {\n\t\treturn errors.New(\"glProgramUniform2dv\")\n\t}\n\tgpProgramUniform2dvEXT = (C.GPPROGRAMUNIFORM2DVEXT)(getProcAddr(\"glProgramUniform2dvEXT\"))\n\tgpProgramUniform2f = (C.GPPROGRAMUNIFORM2F)(getProcAddr(\"glProgramUniform2f\"))\n\tif gpProgramUniform2f == nil {\n\t\treturn errors.New(\"glProgramUniform2f\")\n\t}\n\tgpProgramUniform2fEXT = (C.GPPROGRAMUNIFORM2FEXT)(getProcAddr(\"glProgramUniform2fEXT\"))\n\tgpProgramUniform2fv = (C.GPPROGRAMUNIFORM2FV)(getProcAddr(\"glProgramUniform2fv\"))\n\tif gpProgramUniform2fv == nil {\n\t\treturn errors.New(\"glProgramUniform2fv\")\n\t}\n\tgpProgramUniform2fvEXT = (C.GPPROGRAMUNIFORM2FVEXT)(getProcAddr(\"glProgramUniform2fvEXT\"))\n\tgpProgramUniform2i = (C.GPPROGRAMUNIFORM2I)(getProcAddr(\"glProgramUniform2i\"))\n\tif gpProgramUniform2i == nil {\n\t\treturn errors.New(\"glProgramUniform2i\")\n\t}\n\tgpProgramUniform2i64ARB = (C.GPPROGRAMUNIFORM2I64ARB)(getProcAddr(\"glProgramUniform2i64ARB\"))\n\tgpProgramUniform2i64NV = (C.GPPROGRAMUNIFORM2I64NV)(getProcAddr(\"glProgramUniform2i64NV\"))\n\tgpProgramUniform2i64vARB = (C.GPPROGRAMUNIFORM2I64VARB)(getProcAddr(\"glProgramUniform2i64vARB\"))\n\tgpProgramUniform2i64vNV = (C.GPPROGRAMUNIFORM2I64VNV)(getProcAddr(\"glProgramUniform2i64vNV\"))\n\tgpProgramUniform2iEXT = (C.GPPROGRAMUNIFORM2IEXT)(getProcAddr(\"glProgramUniform2iEXT\"))\n\tgpProgramUniform2iv = (C.GPPROGRAMUNIFORM2IV)(getProcAddr(\"glProgramUniform2iv\"))\n\tif gpProgramUniform2iv == nil {\n\t\treturn errors.New(\"glProgramUniform2iv\")\n\t}\n\tgpProgramUniform2ivEXT = (C.GPPROGRAMUNIFORM2IVEXT)(getProcAddr(\"glProgramUniform2ivEXT\"))\n\tgpProgramUniform2ui = (C.GPPROGRAMUNIFORM2UI)(getProcAddr(\"glProgramUniform2ui\"))\n\tif gpProgramUniform2ui == nil {\n\t\treturn errors.New(\"glProgramUniform2ui\")\n\t}\n\tgpProgramUniform2ui64ARB = (C.GPPROGRAMUNIFORM2UI64ARB)(getProcAddr(\"glProgramUniform2ui64ARB\"))\n\tgpProgramUniform2ui64NV = (C.GPPROGRAMUNIFORM2UI64NV)(getProcAddr(\"glProgramUniform2ui64NV\"))\n\tgpProgramUniform2ui64vARB = (C.GPPROGRAMUNIFORM2UI64VARB)(getProcAddr(\"glProgramUniform2ui64vARB\"))\n\tgpProgramUniform2ui64vNV = (C.GPPROGRAMUNIFORM2UI64VNV)(getProcAddr(\"glProgramUniform2ui64vNV\"))\n\tgpProgramUniform2uiEXT = (C.GPPROGRAMUNIFORM2UIEXT)(getProcAddr(\"glProgramUniform2uiEXT\"))\n\tgpProgramUniform2uiv = (C.GPPROGRAMUNIFORM2UIV)(getProcAddr(\"glProgramUniform2uiv\"))\n\tif gpProgramUniform2uiv == nil {\n\t\treturn errors.New(\"glProgramUniform2uiv\")\n\t}\n\tgpProgramUniform2uivEXT = (C.GPPROGRAMUNIFORM2UIVEXT)(getProcAddr(\"glProgramUniform2uivEXT\"))\n\tgpProgramUniform3d = (C.GPPROGRAMUNIFORM3D)(getProcAddr(\"glProgramUniform3d\"))\n\tif gpProgramUniform3d == nil {\n\t\treturn errors.New(\"glProgramUniform3d\")\n\t}\n\tgpProgramUniform3dEXT = (C.GPPROGRAMUNIFORM3DEXT)(getProcAddr(\"glProgramUniform3dEXT\"))\n\tgpProgramUniform3dv = (C.GPPROGRAMUNIFORM3DV)(getProcAddr(\"glProgramUniform3dv\"))\n\tif gpProgramUniform3dv == nil {\n\t\treturn errors.New(\"glProgramUniform3dv\")\n\t}\n\tgpProgramUniform3dvEXT = (C.GPPROGRAMUNIFORM3DVEXT)(getProcAddr(\"glProgramUniform3dvEXT\"))\n\tgpProgramUniform3f = (C.GPPROGRAMUNIFORM3F)(getProcAddr(\"glProgramUniform3f\"))\n\tif gpProgramUniform3f == nil {\n\t\treturn errors.New(\"glProgramUniform3f\")\n\t}\n\tgpProgramUniform3fEXT = (C.GPPROGRAMUNIFORM3FEXT)(getProcAddr(\"glProgramUniform3fEXT\"))\n\tgpProgramUniform3fv = (C.GPPROGRAMUNIFORM3FV)(getProcAddr(\"glProgramUniform3fv\"))\n\tif gpProgramUniform3fv == nil {\n\t\treturn errors.New(\"glProgramUniform3fv\")\n\t}\n\tgpProgramUniform3fvEXT = (C.GPPROGRAMUNIFORM3FVEXT)(getProcAddr(\"glProgramUniform3fvEXT\"))\n\tgpProgramUniform3i = (C.GPPROGRAMUNIFORM3I)(getProcAddr(\"glProgramUniform3i\"))\n\tif gpProgramUniform3i == nil {\n\t\treturn errors.New(\"glProgramUniform3i\")\n\t}\n\tgpProgramUniform3i64ARB = (C.GPPROGRAMUNIFORM3I64ARB)(getProcAddr(\"glProgramUniform3i64ARB\"))\n\tgpProgramUniform3i64NV = (C.GPPROGRAMUNIFORM3I64NV)(getProcAddr(\"glProgramUniform3i64NV\"))\n\tgpProgramUniform3i64vARB = (C.GPPROGRAMUNIFORM3I64VARB)(getProcAddr(\"glProgramUniform3i64vARB\"))\n\tgpProgramUniform3i64vNV = (C.GPPROGRAMUNIFORM3I64VNV)(getProcAddr(\"glProgramUniform3i64vNV\"))\n\tgpProgramUniform3iEXT = (C.GPPROGRAMUNIFORM3IEXT)(getProcAddr(\"glProgramUniform3iEXT\"))\n\tgpProgramUniform3iv = (C.GPPROGRAMUNIFORM3IV)(getProcAddr(\"glProgramUniform3iv\"))\n\tif gpProgramUniform3iv == nil {\n\t\treturn errors.New(\"glProgramUniform3iv\")\n\t}\n\tgpProgramUniform3ivEXT = (C.GPPROGRAMUNIFORM3IVEXT)(getProcAddr(\"glProgramUniform3ivEXT\"))\n\tgpProgramUniform3ui = (C.GPPROGRAMUNIFORM3UI)(getProcAddr(\"glProgramUniform3ui\"))\n\tif gpProgramUniform3ui == nil {\n\t\treturn errors.New(\"glProgramUniform3ui\")\n\t}\n\tgpProgramUniform3ui64ARB = (C.GPPROGRAMUNIFORM3UI64ARB)(getProcAddr(\"glProgramUniform3ui64ARB\"))\n\tgpProgramUniform3ui64NV = (C.GPPROGRAMUNIFORM3UI64NV)(getProcAddr(\"glProgramUniform3ui64NV\"))\n\tgpProgramUniform3ui64vARB = (C.GPPROGRAMUNIFORM3UI64VARB)(getProcAddr(\"glProgramUniform3ui64vARB\"))\n\tgpProgramUniform3ui64vNV = (C.GPPROGRAMUNIFORM3UI64VNV)(getProcAddr(\"glProgramUniform3ui64vNV\"))\n\tgpProgramUniform3uiEXT = (C.GPPROGRAMUNIFORM3UIEXT)(getProcAddr(\"glProgramUniform3uiEXT\"))\n\tgpProgramUniform3uiv = (C.GPPROGRAMUNIFORM3UIV)(getProcAddr(\"glProgramUniform3uiv\"))\n\tif gpProgramUniform3uiv == nil {\n\t\treturn errors.New(\"glProgramUniform3uiv\")\n\t}\n\tgpProgramUniform3uivEXT = (C.GPPROGRAMUNIFORM3UIVEXT)(getProcAddr(\"glProgramUniform3uivEXT\"))\n\tgpProgramUniform4d = (C.GPPROGRAMUNIFORM4D)(getProcAddr(\"glProgramUniform4d\"))\n\tif gpProgramUniform4d == nil {\n\t\treturn errors.New(\"glProgramUniform4d\")\n\t}\n\tgpProgramUniform4dEXT = (C.GPPROGRAMUNIFORM4DEXT)(getProcAddr(\"glProgramUniform4dEXT\"))\n\tgpProgramUniform4dv = (C.GPPROGRAMUNIFORM4DV)(getProcAddr(\"glProgramUniform4dv\"))\n\tif gpProgramUniform4dv == nil {\n\t\treturn errors.New(\"glProgramUniform4dv\")\n\t}\n\tgpProgramUniform4dvEXT = (C.GPPROGRAMUNIFORM4DVEXT)(getProcAddr(\"glProgramUniform4dvEXT\"))\n\tgpProgramUniform4f = (C.GPPROGRAMUNIFORM4F)(getProcAddr(\"glProgramUniform4f\"))\n\tif gpProgramUniform4f == nil {\n\t\treturn errors.New(\"glProgramUniform4f\")\n\t}\n\tgpProgramUniform4fEXT = (C.GPPROGRAMUNIFORM4FEXT)(getProcAddr(\"glProgramUniform4fEXT\"))\n\tgpProgramUniform4fv = (C.GPPROGRAMUNIFORM4FV)(getProcAddr(\"glProgramUniform4fv\"))\n\tif gpProgramUniform4fv == nil {\n\t\treturn errors.New(\"glProgramUniform4fv\")\n\t}\n\tgpProgramUniform4fvEXT = (C.GPPROGRAMUNIFORM4FVEXT)(getProcAddr(\"glProgramUniform4fvEXT\"))\n\tgpProgramUniform4i = (C.GPPROGRAMUNIFORM4I)(getProcAddr(\"glProgramUniform4i\"))\n\tif gpProgramUniform4i == nil {\n\t\treturn errors.New(\"glProgramUniform4i\")\n\t}\n\tgpProgramUniform4i64ARB = (C.GPPROGRAMUNIFORM4I64ARB)(getProcAddr(\"glProgramUniform4i64ARB\"))\n\tgpProgramUniform4i64NV = (C.GPPROGRAMUNIFORM4I64NV)(getProcAddr(\"glProgramUniform4i64NV\"))\n\tgpProgramUniform4i64vARB = (C.GPPROGRAMUNIFORM4I64VARB)(getProcAddr(\"glProgramUniform4i64vARB\"))\n\tgpProgramUniform4i64vNV = (C.GPPROGRAMUNIFORM4I64VNV)(getProcAddr(\"glProgramUniform4i64vNV\"))\n\tgpProgramUniform4iEXT = (C.GPPROGRAMUNIFORM4IEXT)(getProcAddr(\"glProgramUniform4iEXT\"))\n\tgpProgramUniform4iv = (C.GPPROGRAMUNIFORM4IV)(getProcAddr(\"glProgramUniform4iv\"))\n\tif gpProgramUniform4iv == nil {\n\t\treturn errors.New(\"glProgramUniform4iv\")\n\t}\n\tgpProgramUniform4ivEXT = (C.GPPROGRAMUNIFORM4IVEXT)(getProcAddr(\"glProgramUniform4ivEXT\"))\n\tgpProgramUniform4ui = (C.GPPROGRAMUNIFORM4UI)(getProcAddr(\"glProgramUniform4ui\"))\n\tif gpProgramUniform4ui == nil {\n\t\treturn errors.New(\"glProgramUniform4ui\")\n\t}\n\tgpProgramUniform4ui64ARB = (C.GPPROGRAMUNIFORM4UI64ARB)(getProcAddr(\"glProgramUniform4ui64ARB\"))\n\tgpProgramUniform4ui64NV = (C.GPPROGRAMUNIFORM4UI64NV)(getProcAddr(\"glProgramUniform4ui64NV\"))\n\tgpProgramUniform4ui64vARB = (C.GPPROGRAMUNIFORM4UI64VARB)(getProcAddr(\"glProgramUniform4ui64vARB\"))\n\tgpProgramUniform4ui64vNV = (C.GPPROGRAMUNIFORM4UI64VNV)(getProcAddr(\"glProgramUniform4ui64vNV\"))\n\tgpProgramUniform4uiEXT = (C.GPPROGRAMUNIFORM4UIEXT)(getProcAddr(\"glProgramUniform4uiEXT\"))\n\tgpProgramUniform4uiv = (C.GPPROGRAMUNIFORM4UIV)(getProcAddr(\"glProgramUniform4uiv\"))\n\tif gpProgramUniform4uiv == nil {\n\t\treturn errors.New(\"glProgramUniform4uiv\")\n\t}\n\tgpProgramUniform4uivEXT = (C.GPPROGRAMUNIFORM4UIVEXT)(getProcAddr(\"glProgramUniform4uivEXT\"))\n\tgpProgramUniformHandleui64ARB = (C.GPPROGRAMUNIFORMHANDLEUI64ARB)(getProcAddr(\"glProgramUniformHandleui64ARB\"))\n\tgpProgramUniformHandleui64NV = (C.GPPROGRAMUNIFORMHANDLEUI64NV)(getProcAddr(\"glProgramUniformHandleui64NV\"))\n\tgpProgramUniformHandleui64vARB = (C.GPPROGRAMUNIFORMHANDLEUI64VARB)(getProcAddr(\"glProgramUniformHandleui64vARB\"))\n\tgpProgramUniformHandleui64vNV = (C.GPPROGRAMUNIFORMHANDLEUI64VNV)(getProcAddr(\"glProgramUniformHandleui64vNV\"))\n\tgpProgramUniformMatrix2dv = (C.GPPROGRAMUNIFORMMATRIX2DV)(getProcAddr(\"glProgramUniformMatrix2dv\"))\n\tif gpProgramUniformMatrix2dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix2dv\")\n\t}\n\tgpProgramUniformMatrix2dvEXT = (C.GPPROGRAMUNIFORMMATRIX2DVEXT)(getProcAddr(\"glProgramUniformMatrix2dvEXT\"))\n\tgpProgramUniformMatrix2fv = (C.GPPROGRAMUNIFORMMATRIX2FV)(getProcAddr(\"glProgramUniformMatrix2fv\"))\n\tif gpProgramUniformMatrix2fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix2fv\")\n\t}\n\tgpProgramUniformMatrix2fvEXT = (C.GPPROGRAMUNIFORMMATRIX2FVEXT)(getProcAddr(\"glProgramUniformMatrix2fvEXT\"))\n\tgpProgramUniformMatrix2x3dv = (C.GPPROGRAMUNIFORMMATRIX2X3DV)(getProcAddr(\"glProgramUniformMatrix2x3dv\"))\n\tif gpProgramUniformMatrix2x3dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix2x3dv\")\n\t}\n\tgpProgramUniformMatrix2x3dvEXT = (C.GPPROGRAMUNIFORMMATRIX2X3DVEXT)(getProcAddr(\"glProgramUniformMatrix2x3dvEXT\"))\n\tgpProgramUniformMatrix2x3fv = (C.GPPROGRAMUNIFORMMATRIX2X3FV)(getProcAddr(\"glProgramUniformMatrix2x3fv\"))\n\tif gpProgramUniformMatrix2x3fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix2x3fv\")\n\t}\n\tgpProgramUniformMatrix2x3fvEXT = (C.GPPROGRAMUNIFORMMATRIX2X3FVEXT)(getProcAddr(\"glProgramUniformMatrix2x3fvEXT\"))\n\tgpProgramUniformMatrix2x4dv = (C.GPPROGRAMUNIFORMMATRIX2X4DV)(getProcAddr(\"glProgramUniformMatrix2x4dv\"))\n\tif gpProgramUniformMatrix2x4dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix2x4dv\")\n\t}\n\tgpProgramUniformMatrix2x4dvEXT = (C.GPPROGRAMUNIFORMMATRIX2X4DVEXT)(getProcAddr(\"glProgramUniformMatrix2x4dvEXT\"))\n\tgpProgramUniformMatrix2x4fv = (C.GPPROGRAMUNIFORMMATRIX2X4FV)(getProcAddr(\"glProgramUniformMatrix2x4fv\"))\n\tif gpProgramUniformMatrix2x4fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix2x4fv\")\n\t}\n\tgpProgramUniformMatrix2x4fvEXT = (C.GPPROGRAMUNIFORMMATRIX2X4FVEXT)(getProcAddr(\"glProgramUniformMatrix2x4fvEXT\"))\n\tgpProgramUniformMatrix3dv = (C.GPPROGRAMUNIFORMMATRIX3DV)(getProcAddr(\"glProgramUniformMatrix3dv\"))\n\tif gpProgramUniformMatrix3dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix3dv\")\n\t}\n\tgpProgramUniformMatrix3dvEXT = (C.GPPROGRAMUNIFORMMATRIX3DVEXT)(getProcAddr(\"glProgramUniformMatrix3dvEXT\"))\n\tgpProgramUniformMatrix3fv = (C.GPPROGRAMUNIFORMMATRIX3FV)(getProcAddr(\"glProgramUniformMatrix3fv\"))\n\tif gpProgramUniformMatrix3fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix3fv\")\n\t}\n\tgpProgramUniformMatrix3fvEXT = (C.GPPROGRAMUNIFORMMATRIX3FVEXT)(getProcAddr(\"glProgramUniformMatrix3fvEXT\"))\n\tgpProgramUniformMatrix3x2dv = (C.GPPROGRAMUNIFORMMATRIX3X2DV)(getProcAddr(\"glProgramUniformMatrix3x2dv\"))\n\tif gpProgramUniformMatrix3x2dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix3x2dv\")\n\t}\n\tgpProgramUniformMatrix3x2dvEXT = (C.GPPROGRAMUNIFORMMATRIX3X2DVEXT)(getProcAddr(\"glProgramUniformMatrix3x2dvEXT\"))\n\tgpProgramUniformMatrix3x2fv = (C.GPPROGRAMUNIFORMMATRIX3X2FV)(getProcAddr(\"glProgramUniformMatrix3x2fv\"))\n\tif gpProgramUniformMatrix3x2fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix3x2fv\")\n\t}\n\tgpProgramUniformMatrix3x2fvEXT = (C.GPPROGRAMUNIFORMMATRIX3X2FVEXT)(getProcAddr(\"glProgramUniformMatrix3x2fvEXT\"))\n\tgpProgramUniformMatrix3x4dv = (C.GPPROGRAMUNIFORMMATRIX3X4DV)(getProcAddr(\"glProgramUniformMatrix3x4dv\"))\n\tif gpProgramUniformMatrix3x4dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix3x4dv\")\n\t}\n\tgpProgramUniformMatrix3x4dvEXT = (C.GPPROGRAMUNIFORMMATRIX3X4DVEXT)(getProcAddr(\"glProgramUniformMatrix3x4dvEXT\"))\n\tgpProgramUniformMatrix3x4fv = (C.GPPROGRAMUNIFORMMATRIX3X4FV)(getProcAddr(\"glProgramUniformMatrix3x4fv\"))\n\tif gpProgramUniformMatrix3x4fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix3x4fv\")\n\t}\n\tgpProgramUniformMatrix3x4fvEXT = (C.GPPROGRAMUNIFORMMATRIX3X4FVEXT)(getProcAddr(\"glProgramUniformMatrix3x4fvEXT\"))\n\tgpProgramUniformMatrix4dv = (C.GPPROGRAMUNIFORMMATRIX4DV)(getProcAddr(\"glProgramUniformMatrix4dv\"))\n\tif gpProgramUniformMatrix4dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix4dv\")\n\t}\n\tgpProgramUniformMatrix4dvEXT = (C.GPPROGRAMUNIFORMMATRIX4DVEXT)(getProcAddr(\"glProgramUniformMatrix4dvEXT\"))\n\tgpProgramUniformMatrix4fv = (C.GPPROGRAMUNIFORMMATRIX4FV)(getProcAddr(\"glProgramUniformMatrix4fv\"))\n\tif gpProgramUniformMatrix4fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix4fv\")\n\t}\n\tgpProgramUniformMatrix4fvEXT = (C.GPPROGRAMUNIFORMMATRIX4FVEXT)(getProcAddr(\"glProgramUniformMatrix4fvEXT\"))\n\tgpProgramUniformMatrix4x2dv = (C.GPPROGRAMUNIFORMMATRIX4X2DV)(getProcAddr(\"glProgramUniformMatrix4x2dv\"))\n\tif gpProgramUniformMatrix4x2dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix4x2dv\")\n\t}\n\tgpProgramUniformMatrix4x2dvEXT = (C.GPPROGRAMUNIFORMMATRIX4X2DVEXT)(getProcAddr(\"glProgramUniformMatrix4x2dvEXT\"))\n\tgpProgramUniformMatrix4x2fv = (C.GPPROGRAMUNIFORMMATRIX4X2FV)(getProcAddr(\"glProgramUniformMatrix4x2fv\"))\n\tif gpProgramUniformMatrix4x2fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix4x2fv\")\n\t}\n\tgpProgramUniformMatrix4x2fvEXT = (C.GPPROGRAMUNIFORMMATRIX4X2FVEXT)(getProcAddr(\"glProgramUniformMatrix4x2fvEXT\"))\n\tgpProgramUniformMatrix4x3dv = (C.GPPROGRAMUNIFORMMATRIX4X3DV)(getProcAddr(\"glProgramUniformMatrix4x3dv\"))\n\tif gpProgramUniformMatrix4x3dv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix4x3dv\")\n\t}\n\tgpProgramUniformMatrix4x3dvEXT = (C.GPPROGRAMUNIFORMMATRIX4X3DVEXT)(getProcAddr(\"glProgramUniformMatrix4x3dvEXT\"))\n\tgpProgramUniformMatrix4x3fv = (C.GPPROGRAMUNIFORMMATRIX4X3FV)(getProcAddr(\"glProgramUniformMatrix4x3fv\"))\n\tif gpProgramUniformMatrix4x3fv == nil {\n\t\treturn errors.New(\"glProgramUniformMatrix4x3fv\")\n\t}\n\tgpProgramUniformMatrix4x3fvEXT = (C.GPPROGRAMUNIFORMMATRIX4X3FVEXT)(getProcAddr(\"glProgramUniformMatrix4x3fvEXT\"))\n\tgpProgramUniformui64NV = (C.GPPROGRAMUNIFORMUI64NV)(getProcAddr(\"glProgramUniformui64NV\"))\n\tgpProgramUniformui64vNV = (C.GPPROGRAMUNIFORMUI64VNV)(getProcAddr(\"glProgramUniformui64vNV\"))\n\tgpProvokingVertex = (C.GPPROVOKINGVERTEX)(getProcAddr(\"glProvokingVertex\"))\n\tif gpProvokingVertex == nil {\n\t\treturn errors.New(\"glProvokingVertex\")\n\t}\n\tgpPushClientAttribDefaultEXT = (C.GPPUSHCLIENTATTRIBDEFAULTEXT)(getProcAddr(\"glPushClientAttribDefaultEXT\"))\n\tgpPushDebugGroup = (C.GPPUSHDEBUGGROUP)(getProcAddr(\"glPushDebugGroup\"))\n\tgpPushDebugGroupKHR = (C.GPPUSHDEBUGGROUPKHR)(getProcAddr(\"glPushDebugGroupKHR\"))\n\tgpPushGroupMarkerEXT = (C.GPPUSHGROUPMARKEREXT)(getProcAddr(\"glPushGroupMarkerEXT\"))\n\tgpQueryCounter = (C.GPQUERYCOUNTER)(getProcAddr(\"glQueryCounter\"))\n\tif gpQueryCounter == nil {\n\t\treturn errors.New(\"glQueryCounter\")\n\t}\n\tgpRasterSamplesEXT = (C.GPRASTERSAMPLESEXT)(getProcAddr(\"glRasterSamplesEXT\"))\n\tgpReadBuffer = (C.GPREADBUFFER)(getProcAddr(\"glReadBuffer\"))\n\tif gpReadBuffer == nil {\n\t\treturn errors.New(\"glReadBuffer\")\n\t}\n\tgpReadPixels = (C.GPREADPIXELS)(getProcAddr(\"glReadPixels\"))\n\tif gpReadPixels == nil {\n\t\treturn errors.New(\"glReadPixels\")\n\t}\n\tgpReadnPixels = (C.GPREADNPIXELS)(getProcAddr(\"glReadnPixels\"))\n\tgpReadnPixelsARB = (C.GPREADNPIXELSARB)(getProcAddr(\"glReadnPixelsARB\"))\n\tgpReadnPixelsKHR = (C.GPREADNPIXELSKHR)(getProcAddr(\"glReadnPixelsKHR\"))\n\tgpReleaseShaderCompiler = (C.GPRELEASESHADERCOMPILER)(getProcAddr(\"glReleaseShaderCompiler\"))\n\tif gpReleaseShaderCompiler == nil {\n\t\treturn errors.New(\"glReleaseShaderCompiler\")\n\t}\n\tgpRenderbufferStorage = (C.GPRENDERBUFFERSTORAGE)(getProcAddr(\"glRenderbufferStorage\"))\n\tif gpRenderbufferStorage == nil {\n\t\treturn errors.New(\"glRenderbufferStorage\")\n\t}\n\tgpRenderbufferStorageMultisample = (C.GPRENDERBUFFERSTORAGEMULTISAMPLE)(getProcAddr(\"glRenderbufferStorageMultisample\"))\n\tif gpRenderbufferStorageMultisample == nil {\n\t\treturn errors.New(\"glRenderbufferStorageMultisample\")\n\t}\n\tgpRenderbufferStorageMultisampleAdvancedAMD = (C.GPRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMD)(getProcAddr(\"glRenderbufferStorageMultisampleAdvancedAMD\"))\n\tgpRenderbufferStorageMultisampleCoverageNV = (C.GPRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENV)(getProcAddr(\"glRenderbufferStorageMultisampleCoverageNV\"))\n\tgpResetMemoryObjectParameterNV = (C.GPRESETMEMORYOBJECTPARAMETERNV)(getProcAddr(\"glResetMemoryObjectParameterNV\"))\n\tgpResolveDepthValuesNV = (C.GPRESOLVEDEPTHVALUESNV)(getProcAddr(\"glResolveDepthValuesNV\"))\n\tgpResumeTransformFeedback = (C.GPRESUMETRANSFORMFEEDBACK)(getProcAddr(\"glResumeTransformFeedback\"))\n\tif gpResumeTransformFeedback == nil {\n\t\treturn errors.New(\"glResumeTransformFeedback\")\n\t}\n\tgpSampleCoverage = (C.GPSAMPLECOVERAGE)(getProcAddr(\"glSampleCoverage\"))\n\tif gpSampleCoverage == nil {\n\t\treturn errors.New(\"glSampleCoverage\")\n\t}\n\tgpSampleMaski = (C.GPSAMPLEMASKI)(getProcAddr(\"glSampleMaski\"))\n\tif gpSampleMaski == nil {\n\t\treturn errors.New(\"glSampleMaski\")\n\t}\n\tgpSamplerParameterIiv = (C.GPSAMPLERPARAMETERIIV)(getProcAddr(\"glSamplerParameterIiv\"))\n\tif gpSamplerParameterIiv == nil {\n\t\treturn errors.New(\"glSamplerParameterIiv\")\n\t}\n\tgpSamplerParameterIuiv = (C.GPSAMPLERPARAMETERIUIV)(getProcAddr(\"glSamplerParameterIuiv\"))\n\tif gpSamplerParameterIuiv == nil {\n\t\treturn errors.New(\"glSamplerParameterIuiv\")\n\t}\n\tgpSamplerParameterf = (C.GPSAMPLERPARAMETERF)(getProcAddr(\"glSamplerParameterf\"))\n\tif gpSamplerParameterf == nil {\n\t\treturn errors.New(\"glSamplerParameterf\")\n\t}\n\tgpSamplerParameterfv = (C.GPSAMPLERPARAMETERFV)(getProcAddr(\"glSamplerParameterfv\"))\n\tif gpSamplerParameterfv == nil {\n\t\treturn errors.New(\"glSamplerParameterfv\")\n\t}\n\tgpSamplerParameteri = (C.GPSAMPLERPARAMETERI)(getProcAddr(\"glSamplerParameteri\"))\n\tif gpSamplerParameteri == nil {\n\t\treturn errors.New(\"glSamplerParameteri\")\n\t}\n\tgpSamplerParameteriv = (C.GPSAMPLERPARAMETERIV)(getProcAddr(\"glSamplerParameteriv\"))\n\tif gpSamplerParameteriv == nil {\n\t\treturn errors.New(\"glSamplerParameteriv\")\n\t}\n\tgpScissor = (C.GPSCISSOR)(getProcAddr(\"glScissor\"))\n\tif gpScissor == nil {\n\t\treturn errors.New(\"glScissor\")\n\t}\n\tgpScissorArrayv = (C.GPSCISSORARRAYV)(getProcAddr(\"glScissorArrayv\"))\n\tif gpScissorArrayv == nil {\n\t\treturn errors.New(\"glScissorArrayv\")\n\t}\n\tgpScissorExclusiveArrayvNV = (C.GPSCISSOREXCLUSIVEARRAYVNV)(getProcAddr(\"glScissorExclusiveArrayvNV\"))\n\tgpScissorExclusiveNV = (C.GPSCISSOREXCLUSIVENV)(getProcAddr(\"glScissorExclusiveNV\"))\n\tgpScissorIndexed = (C.GPSCISSORINDEXED)(getProcAddr(\"glScissorIndexed\"))\n\tif gpScissorIndexed == nil {\n\t\treturn errors.New(\"glScissorIndexed\")\n\t}\n\tgpScissorIndexedv = (C.GPSCISSORINDEXEDV)(getProcAddr(\"glScissorIndexedv\"))\n\tif gpScissorIndexedv == nil {\n\t\treturn errors.New(\"glScissorIndexedv\")\n\t}\n\tgpSecondaryColorFormatNV = (C.GPSECONDARYCOLORFORMATNV)(getProcAddr(\"glSecondaryColorFormatNV\"))\n\tgpSelectPerfMonitorCountersAMD = (C.GPSELECTPERFMONITORCOUNTERSAMD)(getProcAddr(\"glSelectPerfMonitorCountersAMD\"))\n\tgpShaderBinary = (C.GPSHADERBINARY)(getProcAddr(\"glShaderBinary\"))\n\tif gpShaderBinary == nil {\n\t\treturn errors.New(\"glShaderBinary\")\n\t}\n\tgpShaderSource = (C.GPSHADERSOURCE)(getProcAddr(\"glShaderSource\"))\n\tif gpShaderSource == nil {\n\t\treturn errors.New(\"glShaderSource\")\n\t}\n\tgpShaderStorageBlockBinding = (C.GPSHADERSTORAGEBLOCKBINDING)(getProcAddr(\"glShaderStorageBlockBinding\"))\n\tgpShadingRateImageBarrierNV = (C.GPSHADINGRATEIMAGEBARRIERNV)(getProcAddr(\"glShadingRateImageBarrierNV\"))\n\tgpShadingRateImagePaletteNV = (C.GPSHADINGRATEIMAGEPALETTENV)(getProcAddr(\"glShadingRateImagePaletteNV\"))\n\tgpShadingRateSampleOrderCustomNV = (C.GPSHADINGRATESAMPLEORDERCUSTOMNV)(getProcAddr(\"glShadingRateSampleOrderCustomNV\"))\n\tgpShadingRateSampleOrderNV = (C.GPSHADINGRATESAMPLEORDERNV)(getProcAddr(\"glShadingRateSampleOrderNV\"))\n\tgpSignalVkFenceNV = (C.GPSIGNALVKFENCENV)(getProcAddr(\"glSignalVkFenceNV\"))\n\tgpSignalVkSemaphoreNV = (C.GPSIGNALVKSEMAPHORENV)(getProcAddr(\"glSignalVkSemaphoreNV\"))\n\tgpSpecializeShaderARB = (C.GPSPECIALIZESHADERARB)(getProcAddr(\"glSpecializeShaderARB\"))\n\tgpStateCaptureNV = (C.GPSTATECAPTURENV)(getProcAddr(\"glStateCaptureNV\"))\n\tgpStencilFillPathInstancedNV = (C.GPSTENCILFILLPATHINSTANCEDNV)(getProcAddr(\"glStencilFillPathInstancedNV\"))\n\tgpStencilFillPathNV = (C.GPSTENCILFILLPATHNV)(getProcAddr(\"glStencilFillPathNV\"))\n\tgpStencilFunc = (C.GPSTENCILFUNC)(getProcAddr(\"glStencilFunc\"))\n\tif gpStencilFunc == nil {\n\t\treturn errors.New(\"glStencilFunc\")\n\t}\n\tgpStencilFuncSeparate = (C.GPSTENCILFUNCSEPARATE)(getProcAddr(\"glStencilFuncSeparate\"))\n\tif gpStencilFuncSeparate == nil {\n\t\treturn errors.New(\"glStencilFuncSeparate\")\n\t}\n\tgpStencilMask = (C.GPSTENCILMASK)(getProcAddr(\"glStencilMask\"))\n\tif gpStencilMask == nil {\n\t\treturn errors.New(\"glStencilMask\")\n\t}\n\tgpStencilMaskSeparate = (C.GPSTENCILMASKSEPARATE)(getProcAddr(\"glStencilMaskSeparate\"))\n\tif gpStencilMaskSeparate == nil {\n\t\treturn errors.New(\"glStencilMaskSeparate\")\n\t}\n\tgpStencilOp = (C.GPSTENCILOP)(getProcAddr(\"glStencilOp\"))\n\tif gpStencilOp == nil {\n\t\treturn errors.New(\"glStencilOp\")\n\t}\n\tgpStencilOpSeparate = (C.GPSTENCILOPSEPARATE)(getProcAddr(\"glStencilOpSeparate\"))\n\tif gpStencilOpSeparate == nil {\n\t\treturn errors.New(\"glStencilOpSeparate\")\n\t}\n\tgpStencilStrokePathInstancedNV = (C.GPSTENCILSTROKEPATHINSTANCEDNV)(getProcAddr(\"glStencilStrokePathInstancedNV\"))\n\tgpStencilStrokePathNV = (C.GPSTENCILSTROKEPATHNV)(getProcAddr(\"glStencilStrokePathNV\"))\n\tgpStencilThenCoverFillPathInstancedNV = (C.GPSTENCILTHENCOVERFILLPATHINSTANCEDNV)(getProcAddr(\"glStencilThenCoverFillPathInstancedNV\"))\n\tgpStencilThenCoverFillPathNV = (C.GPSTENCILTHENCOVERFILLPATHNV)(getProcAddr(\"glStencilThenCoverFillPathNV\"))\n\tgpStencilThenCoverStrokePathInstancedNV = (C.GPSTENCILTHENCOVERSTROKEPATHINSTANCEDNV)(getProcAddr(\"glStencilThenCoverStrokePathInstancedNV\"))\n\tgpStencilThenCoverStrokePathNV = (C.GPSTENCILTHENCOVERSTROKEPATHNV)(getProcAddr(\"glStencilThenCoverStrokePathNV\"))\n\tgpSubpixelPrecisionBiasNV = (C.GPSUBPIXELPRECISIONBIASNV)(getProcAddr(\"glSubpixelPrecisionBiasNV\"))\n\tgpTexAttachMemoryNV = (C.GPTEXATTACHMEMORYNV)(getProcAddr(\"glTexAttachMemoryNV\"))\n\tgpTexBuffer = (C.GPTEXBUFFER)(getProcAddr(\"glTexBuffer\"))\n\tif gpTexBuffer == nil {\n\t\treturn errors.New(\"glTexBuffer\")\n\t}\n\tgpTexBufferARB = (C.GPTEXBUFFERARB)(getProcAddr(\"glTexBufferARB\"))\n\tgpTexBufferRange = (C.GPTEXBUFFERRANGE)(getProcAddr(\"glTexBufferRange\"))\n\tgpTexCoordFormatNV = (C.GPTEXCOORDFORMATNV)(getProcAddr(\"glTexCoordFormatNV\"))\n\tgpTexImage1D = (C.GPTEXIMAGE1D)(getProcAddr(\"glTexImage1D\"))\n\tif gpTexImage1D == nil {\n\t\treturn errors.New(\"glTexImage1D\")\n\t}\n\tgpTexImage2D = (C.GPTEXIMAGE2D)(getProcAddr(\"glTexImage2D\"))\n\tif gpTexImage2D == nil {\n\t\treturn errors.New(\"glTexImage2D\")\n\t}\n\tgpTexImage2DMultisample = (C.GPTEXIMAGE2DMULTISAMPLE)(getProcAddr(\"glTexImage2DMultisample\"))\n\tif gpTexImage2DMultisample == nil {\n\t\treturn errors.New(\"glTexImage2DMultisample\")\n\t}\n\tgpTexImage3D = (C.GPTEXIMAGE3D)(getProcAddr(\"glTexImage3D\"))\n\tif gpTexImage3D == nil {\n\t\treturn errors.New(\"glTexImage3D\")\n\t}\n\tgpTexImage3DMultisample = (C.GPTEXIMAGE3DMULTISAMPLE)(getProcAddr(\"glTexImage3DMultisample\"))\n\tif gpTexImage3DMultisample == nil {\n\t\treturn errors.New(\"glTexImage3DMultisample\")\n\t}\n\tgpTexPageCommitmentARB = (C.GPTEXPAGECOMMITMENTARB)(getProcAddr(\"glTexPageCommitmentARB\"))\n\tgpTexPageCommitmentMemNV = (C.GPTEXPAGECOMMITMENTMEMNV)(getProcAddr(\"glTexPageCommitmentMemNV\"))\n\tgpTexParameterIiv = (C.GPTEXPARAMETERIIV)(getProcAddr(\"glTexParameterIiv\"))\n\tif gpTexParameterIiv == nil {\n\t\treturn errors.New(\"glTexParameterIiv\")\n\t}\n\tgpTexParameterIuiv = (C.GPTEXPARAMETERIUIV)(getProcAddr(\"glTexParameterIuiv\"))\n\tif gpTexParameterIuiv == nil {\n\t\treturn errors.New(\"glTexParameterIuiv\")\n\t}\n\tgpTexParameterf = (C.GPTEXPARAMETERF)(getProcAddr(\"glTexParameterf\"))\n\tif gpTexParameterf == nil {\n\t\treturn errors.New(\"glTexParameterf\")\n\t}\n\tgpTexParameterfv = (C.GPTEXPARAMETERFV)(getProcAddr(\"glTexParameterfv\"))\n\tif gpTexParameterfv == nil {\n\t\treturn errors.New(\"glTexParameterfv\")\n\t}\n\tgpTexParameteri = (C.GPTEXPARAMETERI)(getProcAddr(\"glTexParameteri\"))\n\tif gpTexParameteri == nil {\n\t\treturn errors.New(\"glTexParameteri\")\n\t}\n\tgpTexParameteriv = (C.GPTEXPARAMETERIV)(getProcAddr(\"glTexParameteriv\"))\n\tif gpTexParameteriv == nil {\n\t\treturn errors.New(\"glTexParameteriv\")\n\t}\n\tgpTexStorage1D = (C.GPTEXSTORAGE1D)(getProcAddr(\"glTexStorage1D\"))\n\tif gpTexStorage1D == nil {\n\t\treturn errors.New(\"glTexStorage1D\")\n\t}\n\tgpTexStorage2D = (C.GPTEXSTORAGE2D)(getProcAddr(\"glTexStorage2D\"))\n\tif gpTexStorage2D == nil {\n\t\treturn errors.New(\"glTexStorage2D\")\n\t}\n\tgpTexStorage2DMultisample = (C.GPTEXSTORAGE2DMULTISAMPLE)(getProcAddr(\"glTexStorage2DMultisample\"))\n\tgpTexStorage3D = (C.GPTEXSTORAGE3D)(getProcAddr(\"glTexStorage3D\"))\n\tif gpTexStorage3D == nil {\n\t\treturn errors.New(\"glTexStorage3D\")\n\t}\n\tgpTexStorage3DMultisample = (C.GPTEXSTORAGE3DMULTISAMPLE)(getProcAddr(\"glTexStorage3DMultisample\"))\n\tgpTexSubImage1D = (C.GPTEXSUBIMAGE1D)(getProcAddr(\"glTexSubImage1D\"))\n\tif gpTexSubImage1D == nil {\n\t\treturn errors.New(\"glTexSubImage1D\")\n\t}\n\tgpTexSubImage2D = (C.GPTEXSUBIMAGE2D)(getProcAddr(\"glTexSubImage2D\"))\n\tif gpTexSubImage2D == nil {\n\t\treturn errors.New(\"glTexSubImage2D\")\n\t}\n\tgpTexSubImage3D = (C.GPTEXSUBIMAGE3D)(getProcAddr(\"glTexSubImage3D\"))\n\tif gpTexSubImage3D == nil {\n\t\treturn errors.New(\"glTexSubImage3D\")\n\t}\n\tgpTextureAttachMemoryNV = (C.GPTEXTUREATTACHMEMORYNV)(getProcAddr(\"glTextureAttachMemoryNV\"))\n\tgpTextureBarrier = (C.GPTEXTUREBARRIER)(getProcAddr(\"glTextureBarrier\"))\n\tgpTextureBarrierNV = (C.GPTEXTUREBARRIERNV)(getProcAddr(\"glTextureBarrierNV\"))\n\tgpTextureBuffer = (C.GPTEXTUREBUFFER)(getProcAddr(\"glTextureBuffer\"))\n\tgpTextureBufferEXT = (C.GPTEXTUREBUFFEREXT)(getProcAddr(\"glTextureBufferEXT\"))\n\tgpTextureBufferRange = (C.GPTEXTUREBUFFERRANGE)(getProcAddr(\"glTextureBufferRange\"))\n\tgpTextureBufferRangeEXT = (C.GPTEXTUREBUFFERRANGEEXT)(getProcAddr(\"glTextureBufferRangeEXT\"))\n\tgpTextureImage1DEXT = (C.GPTEXTUREIMAGE1DEXT)(getProcAddr(\"glTextureImage1DEXT\"))\n\tgpTextureImage2DEXT = (C.GPTEXTUREIMAGE2DEXT)(getProcAddr(\"glTextureImage2DEXT\"))\n\tgpTextureImage3DEXT = (C.GPTEXTUREIMAGE3DEXT)(getProcAddr(\"glTextureImage3DEXT\"))\n\tgpTexturePageCommitmentEXT = (C.GPTEXTUREPAGECOMMITMENTEXT)(getProcAddr(\"glTexturePageCommitmentEXT\"))\n\tgpTexturePageCommitmentMemNV = (C.GPTEXTUREPAGECOMMITMENTMEMNV)(getProcAddr(\"glTexturePageCommitmentMemNV\"))\n\tgpTextureParameterIiv = (C.GPTEXTUREPARAMETERIIV)(getProcAddr(\"glTextureParameterIiv\"))\n\tgpTextureParameterIivEXT = (C.GPTEXTUREPARAMETERIIVEXT)(getProcAddr(\"glTextureParameterIivEXT\"))\n\tgpTextureParameterIuiv = (C.GPTEXTUREPARAMETERIUIV)(getProcAddr(\"glTextureParameterIuiv\"))\n\tgpTextureParameterIuivEXT = (C.GPTEXTUREPARAMETERIUIVEXT)(getProcAddr(\"glTextureParameterIuivEXT\"))\n\tgpTextureParameterf = (C.GPTEXTUREPARAMETERF)(getProcAddr(\"glTextureParameterf\"))\n\tgpTextureParameterfEXT = (C.GPTEXTUREPARAMETERFEXT)(getProcAddr(\"glTextureParameterfEXT\"))\n\tgpTextureParameterfv = (C.GPTEXTUREPARAMETERFV)(getProcAddr(\"glTextureParameterfv\"))\n\tgpTextureParameterfvEXT = (C.GPTEXTUREPARAMETERFVEXT)(getProcAddr(\"glTextureParameterfvEXT\"))\n\tgpTextureParameteri = (C.GPTEXTUREPARAMETERI)(getProcAddr(\"glTextureParameteri\"))\n\tgpTextureParameteriEXT = (C.GPTEXTUREPARAMETERIEXT)(getProcAddr(\"glTextureParameteriEXT\"))\n\tgpTextureParameteriv = (C.GPTEXTUREPARAMETERIV)(getProcAddr(\"glTextureParameteriv\"))\n\tgpTextureParameterivEXT = (C.GPTEXTUREPARAMETERIVEXT)(getProcAddr(\"glTextureParameterivEXT\"))\n\tgpTextureRenderbufferEXT = (C.GPTEXTURERENDERBUFFEREXT)(getProcAddr(\"glTextureRenderbufferEXT\"))\n\tgpTextureStorage1D = (C.GPTEXTURESTORAGE1D)(getProcAddr(\"glTextureStorage1D\"))\n\tgpTextureStorage1DEXT = (C.GPTEXTURESTORAGE1DEXT)(getProcAddr(\"glTextureStorage1DEXT\"))\n\tgpTextureStorage2D = (C.GPTEXTURESTORAGE2D)(getProcAddr(\"glTextureStorage2D\"))\n\tgpTextureStorage2DEXT = (C.GPTEXTURESTORAGE2DEXT)(getProcAddr(\"glTextureStorage2DEXT\"))\n\tgpTextureStorage2DMultisample = (C.GPTEXTURESTORAGE2DMULTISAMPLE)(getProcAddr(\"glTextureStorage2DMultisample\"))\n\tgpTextureStorage2DMultisampleEXT = (C.GPTEXTURESTORAGE2DMULTISAMPLEEXT)(getProcAddr(\"glTextureStorage2DMultisampleEXT\"))\n\tgpTextureStorage3D = (C.GPTEXTURESTORAGE3D)(getProcAddr(\"glTextureStorage3D\"))\n\tgpTextureStorage3DEXT = (C.GPTEXTURESTORAGE3DEXT)(getProcAddr(\"glTextureStorage3DEXT\"))\n\tgpTextureStorage3DMultisample = (C.GPTEXTURESTORAGE3DMULTISAMPLE)(getProcAddr(\"glTextureStorage3DMultisample\"))\n\tgpTextureStorage3DMultisampleEXT = (C.GPTEXTURESTORAGE3DMULTISAMPLEEXT)(getProcAddr(\"glTextureStorage3DMultisampleEXT\"))\n\tgpTextureSubImage1D = (C.GPTEXTURESUBIMAGE1D)(getProcAddr(\"glTextureSubImage1D\"))\n\tgpTextureSubImage1DEXT = (C.GPTEXTURESUBIMAGE1DEXT)(getProcAddr(\"glTextureSubImage1DEXT\"))\n\tgpTextureSubImage2D = (C.GPTEXTURESUBIMAGE2D)(getProcAddr(\"glTextureSubImage2D\"))\n\tgpTextureSubImage2DEXT = (C.GPTEXTURESUBIMAGE2DEXT)(getProcAddr(\"glTextureSubImage2DEXT\"))\n\tgpTextureSubImage3D = (C.GPTEXTURESUBIMAGE3D)(getProcAddr(\"glTextureSubImage3D\"))\n\tgpTextureSubImage3DEXT = (C.GPTEXTURESUBIMAGE3DEXT)(getProcAddr(\"glTextureSubImage3DEXT\"))\n\tgpTextureView = (C.GPTEXTUREVIEW)(getProcAddr(\"glTextureView\"))\n\tgpTransformFeedbackBufferBase = (C.GPTRANSFORMFEEDBACKBUFFERBASE)(getProcAddr(\"glTransformFeedbackBufferBase\"))\n\tgpTransformFeedbackBufferRange = (C.GPTRANSFORMFEEDBACKBUFFERRANGE)(getProcAddr(\"glTransformFeedbackBufferRange\"))\n\tgpTransformFeedbackVaryings = (C.GPTRANSFORMFEEDBACKVARYINGS)(getProcAddr(\"glTransformFeedbackVaryings\"))\n\tif gpTransformFeedbackVaryings == nil {\n\t\treturn errors.New(\"glTransformFeedbackVaryings\")\n\t}\n\tgpTransformPathNV = (C.GPTRANSFORMPATHNV)(getProcAddr(\"glTransformPathNV\"))\n\tgpUniform1d = (C.GPUNIFORM1D)(getProcAddr(\"glUniform1d\"))\n\tif gpUniform1d == nil {\n\t\treturn errors.New(\"glUniform1d\")\n\t}\n\tgpUniform1dv = (C.GPUNIFORM1DV)(getProcAddr(\"glUniform1dv\"))\n\tif gpUniform1dv == nil {\n\t\treturn errors.New(\"glUniform1dv\")\n\t}\n\tgpUniform1f = (C.GPUNIFORM1F)(getProcAddr(\"glUniform1f\"))\n\tif gpUniform1f == nil {\n\t\treturn errors.New(\"glUniform1f\")\n\t}\n\tgpUniform1fv = (C.GPUNIFORM1FV)(getProcAddr(\"glUniform1fv\"))\n\tif gpUniform1fv == nil {\n\t\treturn errors.New(\"glUniform1fv\")\n\t}\n\tgpUniform1i = (C.GPUNIFORM1I)(getProcAddr(\"glUniform1i\"))\n\tif gpUniform1i == nil {\n\t\treturn errors.New(\"glUniform1i\")\n\t}\n\tgpUniform1i64ARB = (C.GPUNIFORM1I64ARB)(getProcAddr(\"glUniform1i64ARB\"))\n\tgpUniform1i64NV = (C.GPUNIFORM1I64NV)(getProcAddr(\"glUniform1i64NV\"))\n\tgpUniform1i64vARB = (C.GPUNIFORM1I64VARB)(getProcAddr(\"glUniform1i64vARB\"))\n\tgpUniform1i64vNV = (C.GPUNIFORM1I64VNV)(getProcAddr(\"glUniform1i64vNV\"))\n\tgpUniform1iv = (C.GPUNIFORM1IV)(getProcAddr(\"glUniform1iv\"))\n\tif gpUniform1iv == nil {\n\t\treturn errors.New(\"glUniform1iv\")\n\t}\n\tgpUniform1ui = (C.GPUNIFORM1UI)(getProcAddr(\"glUniform1ui\"))\n\tif gpUniform1ui == nil {\n\t\treturn errors.New(\"glUniform1ui\")\n\t}\n\tgpUniform1ui64ARB = (C.GPUNIFORM1UI64ARB)(getProcAddr(\"glUniform1ui64ARB\"))\n\tgpUniform1ui64NV = (C.GPUNIFORM1UI64NV)(getProcAddr(\"glUniform1ui64NV\"))\n\tgpUniform1ui64vARB = (C.GPUNIFORM1UI64VARB)(getProcAddr(\"glUniform1ui64vARB\"))\n\tgpUniform1ui64vNV = (C.GPUNIFORM1UI64VNV)(getProcAddr(\"glUniform1ui64vNV\"))\n\tgpUniform1uiv = (C.GPUNIFORM1UIV)(getProcAddr(\"glUniform1uiv\"))\n\tif gpUniform1uiv == nil {\n\t\treturn errors.New(\"glUniform1uiv\")\n\t}\n\tgpUniform2d = (C.GPUNIFORM2D)(getProcAddr(\"glUniform2d\"))\n\tif gpUniform2d == nil {\n\t\treturn errors.New(\"glUniform2d\")\n\t}\n\tgpUniform2dv = (C.GPUNIFORM2DV)(getProcAddr(\"glUniform2dv\"))\n\tif gpUniform2dv == nil {\n\t\treturn errors.New(\"glUniform2dv\")\n\t}\n\tgpUniform2f = (C.GPUNIFORM2F)(getProcAddr(\"glUniform2f\"))\n\tif gpUniform2f == nil {\n\t\treturn errors.New(\"glUniform2f\")\n\t}\n\tgpUniform2fv = (C.GPUNIFORM2FV)(getProcAddr(\"glUniform2fv\"))\n\tif gpUniform2fv == nil {\n\t\treturn errors.New(\"glUniform2fv\")\n\t}\n\tgpUniform2i = (C.GPUNIFORM2I)(getProcAddr(\"glUniform2i\"))\n\tif gpUniform2i == nil {\n\t\treturn errors.New(\"glUniform2i\")\n\t}\n\tgpUniform2i64ARB = (C.GPUNIFORM2I64ARB)(getProcAddr(\"glUniform2i64ARB\"))\n\tgpUniform2i64NV = (C.GPUNIFORM2I64NV)(getProcAddr(\"glUniform2i64NV\"))\n\tgpUniform2i64vARB = (C.GPUNIFORM2I64VARB)(getProcAddr(\"glUniform2i64vARB\"))\n\tgpUniform2i64vNV = (C.GPUNIFORM2I64VNV)(getProcAddr(\"glUniform2i64vNV\"))\n\tgpUniform2iv = (C.GPUNIFORM2IV)(getProcAddr(\"glUniform2iv\"))\n\tif gpUniform2iv == nil {\n\t\treturn errors.New(\"glUniform2iv\")\n\t}\n\tgpUniform2ui = (C.GPUNIFORM2UI)(getProcAddr(\"glUniform2ui\"))\n\tif gpUniform2ui == nil {\n\t\treturn errors.New(\"glUniform2ui\")\n\t}\n\tgpUniform2ui64ARB = (C.GPUNIFORM2UI64ARB)(getProcAddr(\"glUniform2ui64ARB\"))\n\tgpUniform2ui64NV = (C.GPUNIFORM2UI64NV)(getProcAddr(\"glUniform2ui64NV\"))\n\tgpUniform2ui64vARB = (C.GPUNIFORM2UI64VARB)(getProcAddr(\"glUniform2ui64vARB\"))\n\tgpUniform2ui64vNV = (C.GPUNIFORM2UI64VNV)(getProcAddr(\"glUniform2ui64vNV\"))\n\tgpUniform2uiv = (C.GPUNIFORM2UIV)(getProcAddr(\"glUniform2uiv\"))\n\tif gpUniform2uiv == nil {\n\t\treturn errors.New(\"glUniform2uiv\")\n\t}\n\tgpUniform3d = (C.GPUNIFORM3D)(getProcAddr(\"glUniform3d\"))\n\tif gpUniform3d == nil {\n\t\treturn errors.New(\"glUniform3d\")\n\t}\n\tgpUniform3dv = (C.GPUNIFORM3DV)(getProcAddr(\"glUniform3dv\"))\n\tif gpUniform3dv == nil {\n\t\treturn errors.New(\"glUniform3dv\")\n\t}\n\tgpUniform3f = (C.GPUNIFORM3F)(getProcAddr(\"glUniform3f\"))\n\tif gpUniform3f == nil {\n\t\treturn errors.New(\"glUniform3f\")\n\t}\n\tgpUniform3fv = (C.GPUNIFORM3FV)(getProcAddr(\"glUniform3fv\"))\n\tif gpUniform3fv == nil {\n\t\treturn errors.New(\"glUniform3fv\")\n\t}\n\tgpUniform3i = (C.GPUNIFORM3I)(getProcAddr(\"glUniform3i\"))\n\tif gpUniform3i == nil {\n\t\treturn errors.New(\"glUniform3i\")\n\t}\n\tgpUniform3i64ARB = (C.GPUNIFORM3I64ARB)(getProcAddr(\"glUniform3i64ARB\"))\n\tgpUniform3i64NV = (C.GPUNIFORM3I64NV)(getProcAddr(\"glUniform3i64NV\"))\n\tgpUniform3i64vARB = (C.GPUNIFORM3I64VARB)(getProcAddr(\"glUniform3i64vARB\"))\n\tgpUniform3i64vNV = (C.GPUNIFORM3I64VNV)(getProcAddr(\"glUniform3i64vNV\"))\n\tgpUniform3iv = (C.GPUNIFORM3IV)(getProcAddr(\"glUniform3iv\"))\n\tif gpUniform3iv == nil {\n\t\treturn errors.New(\"glUniform3iv\")\n\t}\n\tgpUniform3ui = (C.GPUNIFORM3UI)(getProcAddr(\"glUniform3ui\"))\n\tif gpUniform3ui == nil {\n\t\treturn errors.New(\"glUniform3ui\")\n\t}\n\tgpUniform3ui64ARB = (C.GPUNIFORM3UI64ARB)(getProcAddr(\"glUniform3ui64ARB\"))\n\tgpUniform3ui64NV = (C.GPUNIFORM3UI64NV)(getProcAddr(\"glUniform3ui64NV\"))\n\tgpUniform3ui64vARB = (C.GPUNIFORM3UI64VARB)(getProcAddr(\"glUniform3ui64vARB\"))\n\tgpUniform3ui64vNV = (C.GPUNIFORM3UI64VNV)(getProcAddr(\"glUniform3ui64vNV\"))\n\tgpUniform3uiv = (C.GPUNIFORM3UIV)(getProcAddr(\"glUniform3uiv\"))\n\tif gpUniform3uiv == nil {\n\t\treturn errors.New(\"glUniform3uiv\")\n\t}\n\tgpUniform4d = (C.GPUNIFORM4D)(getProcAddr(\"glUniform4d\"))\n\tif gpUniform4d == nil {\n\t\treturn errors.New(\"glUniform4d\")\n\t}\n\tgpUniform4dv = (C.GPUNIFORM4DV)(getProcAddr(\"glUniform4dv\"))\n\tif gpUniform4dv == nil {\n\t\treturn errors.New(\"glUniform4dv\")\n\t}\n\tgpUniform4f = (C.GPUNIFORM4F)(getProcAddr(\"glUniform4f\"))\n\tif gpUniform4f == nil {\n\t\treturn errors.New(\"glUniform4f\")\n\t}\n\tgpUniform4fv = (C.GPUNIFORM4FV)(getProcAddr(\"glUniform4fv\"))\n\tif gpUniform4fv == nil {\n\t\treturn errors.New(\"glUniform4fv\")\n\t}\n\tgpUniform4i = (C.GPUNIFORM4I)(getProcAddr(\"glUniform4i\"))\n\tif gpUniform4i == nil {\n\t\treturn errors.New(\"glUniform4i\")\n\t}\n\tgpUniform4i64ARB = (C.GPUNIFORM4I64ARB)(getProcAddr(\"glUniform4i64ARB\"))\n\tgpUniform4i64NV = (C.GPUNIFORM4I64NV)(getProcAddr(\"glUniform4i64NV\"))\n\tgpUniform4i64vARB = (C.GPUNIFORM4I64VARB)(getProcAddr(\"glUniform4i64vARB\"))\n\tgpUniform4i64vNV = (C.GPUNIFORM4I64VNV)(getProcAddr(\"glUniform4i64vNV\"))\n\tgpUniform4iv = (C.GPUNIFORM4IV)(getProcAddr(\"glUniform4iv\"))\n\tif gpUniform4iv == nil {\n\t\treturn errors.New(\"glUniform4iv\")\n\t}\n\tgpUniform4ui = (C.GPUNIFORM4UI)(getProcAddr(\"glUniform4ui\"))\n\tif gpUniform4ui == nil {\n\t\treturn errors.New(\"glUniform4ui\")\n\t}\n\tgpUniform4ui64ARB = (C.GPUNIFORM4UI64ARB)(getProcAddr(\"glUniform4ui64ARB\"))\n\tgpUniform4ui64NV = (C.GPUNIFORM4UI64NV)(getProcAddr(\"glUniform4ui64NV\"))\n\tgpUniform4ui64vARB = (C.GPUNIFORM4UI64VARB)(getProcAddr(\"glUniform4ui64vARB\"))\n\tgpUniform4ui64vNV = (C.GPUNIFORM4UI64VNV)(getProcAddr(\"glUniform4ui64vNV\"))\n\tgpUniform4uiv = (C.GPUNIFORM4UIV)(getProcAddr(\"glUniform4uiv\"))\n\tif gpUniform4uiv == nil {\n\t\treturn errors.New(\"glUniform4uiv\")\n\t}\n\tgpUniformBlockBinding = (C.GPUNIFORMBLOCKBINDING)(getProcAddr(\"glUniformBlockBinding\"))\n\tif gpUniformBlockBinding == nil {\n\t\treturn errors.New(\"glUniformBlockBinding\")\n\t}\n\tgpUniformHandleui64ARB = (C.GPUNIFORMHANDLEUI64ARB)(getProcAddr(\"glUniformHandleui64ARB\"))\n\tgpUniformHandleui64NV = (C.GPUNIFORMHANDLEUI64NV)(getProcAddr(\"glUniformHandleui64NV\"))\n\tgpUniformHandleui64vARB = (C.GPUNIFORMHANDLEUI64VARB)(getProcAddr(\"glUniformHandleui64vARB\"))\n\tgpUniformHandleui64vNV = (C.GPUNIFORMHANDLEUI64VNV)(getProcAddr(\"glUniformHandleui64vNV\"))\n\tgpUniformMatrix2dv = (C.GPUNIFORMMATRIX2DV)(getProcAddr(\"glUniformMatrix2dv\"))\n\tif gpUniformMatrix2dv == nil {\n\t\treturn errors.New(\"glUniformMatrix2dv\")\n\t}\n\tgpUniformMatrix2fv = (C.GPUNIFORMMATRIX2FV)(getProcAddr(\"glUniformMatrix2fv\"))\n\tif gpUniformMatrix2fv == nil {\n\t\treturn errors.New(\"glUniformMatrix2fv\")\n\t}\n\tgpUniformMatrix2x3dv = (C.GPUNIFORMMATRIX2X3DV)(getProcAddr(\"glUniformMatrix2x3dv\"))\n\tif gpUniformMatrix2x3dv == nil {\n\t\treturn errors.New(\"glUniformMatrix2x3dv\")\n\t}\n\tgpUniformMatrix2x3fv = (C.GPUNIFORMMATRIX2X3FV)(getProcAddr(\"glUniformMatrix2x3fv\"))\n\tif gpUniformMatrix2x3fv == nil {\n\t\treturn errors.New(\"glUniformMatrix2x3fv\")\n\t}\n\tgpUniformMatrix2x4dv = (C.GPUNIFORMMATRIX2X4DV)(getProcAddr(\"glUniformMatrix2x4dv\"))\n\tif gpUniformMatrix2x4dv == nil {\n\t\treturn errors.New(\"glUniformMatrix2x4dv\")\n\t}\n\tgpUniformMatrix2x4fv = (C.GPUNIFORMMATRIX2X4FV)(getProcAddr(\"glUniformMatrix2x4fv\"))\n\tif gpUniformMatrix2x4fv == nil {\n\t\treturn errors.New(\"glUniformMatrix2x4fv\")\n\t}\n\tgpUniformMatrix3dv = (C.GPUNIFORMMATRIX3DV)(getProcAddr(\"glUniformMatrix3dv\"))\n\tif gpUniformMatrix3dv == nil {\n\t\treturn errors.New(\"glUniformMatrix3dv\")\n\t}\n\tgpUniformMatrix3fv = (C.GPUNIFORMMATRIX3FV)(getProcAddr(\"glUniformMatrix3fv\"))\n\tif gpUniformMatrix3fv == nil {\n\t\treturn errors.New(\"glUniformMatrix3fv\")\n\t}\n\tgpUniformMatrix3x2dv = (C.GPUNIFORMMATRIX3X2DV)(getProcAddr(\"glUniformMatrix3x2dv\"))\n\tif gpUniformMatrix3x2dv == nil {\n\t\treturn errors.New(\"glUniformMatrix3x2dv\")\n\t}\n\tgpUniformMatrix3x2fv = (C.GPUNIFORMMATRIX3X2FV)(getProcAddr(\"glUniformMatrix3x2fv\"))\n\tif gpUniformMatrix3x2fv == nil {\n\t\treturn errors.New(\"glUniformMatrix3x2fv\")\n\t}\n\tgpUniformMatrix3x4dv = (C.GPUNIFORMMATRIX3X4DV)(getProcAddr(\"glUniformMatrix3x4dv\"))\n\tif gpUniformMatrix3x4dv == nil {\n\t\treturn errors.New(\"glUniformMatrix3x4dv\")\n\t}\n\tgpUniformMatrix3x4fv = (C.GPUNIFORMMATRIX3X4FV)(getProcAddr(\"glUniformMatrix3x4fv\"))\n\tif gpUniformMatrix3x4fv == nil {\n\t\treturn errors.New(\"glUniformMatrix3x4fv\")\n\t}\n\tgpUniformMatrix4dv = (C.GPUNIFORMMATRIX4DV)(getProcAddr(\"glUniformMatrix4dv\"))\n\tif gpUniformMatrix4dv == nil {\n\t\treturn errors.New(\"glUniformMatrix4dv\")\n\t}\n\tgpUniformMatrix4fv = (C.GPUNIFORMMATRIX4FV)(getProcAddr(\"glUniformMatrix4fv\"))\n\tif gpUniformMatrix4fv == nil {\n\t\treturn errors.New(\"glUniformMatrix4fv\")\n\t}\n\tgpUniformMatrix4x2dv = (C.GPUNIFORMMATRIX4X2DV)(getProcAddr(\"glUniformMatrix4x2dv\"))\n\tif gpUniformMatrix4x2dv == nil {\n\t\treturn errors.New(\"glUniformMatrix4x2dv\")\n\t}\n\tgpUniformMatrix4x2fv = (C.GPUNIFORMMATRIX4X2FV)(getProcAddr(\"glUniformMatrix4x2fv\"))\n\tif gpUniformMatrix4x2fv == nil {\n\t\treturn errors.New(\"glUniformMatrix4x2fv\")\n\t}\n\tgpUniformMatrix4x3dv = (C.GPUNIFORMMATRIX4X3DV)(getProcAddr(\"glUniformMatrix4x3dv\"))\n\tif gpUniformMatrix4x3dv == nil {\n\t\treturn errors.New(\"glUniformMatrix4x3dv\")\n\t}\n\tgpUniformMatrix4x3fv = (C.GPUNIFORMMATRIX4X3FV)(getProcAddr(\"glUniformMatrix4x3fv\"))\n\tif gpUniformMatrix4x3fv == nil {\n\t\treturn errors.New(\"glUniformMatrix4x3fv\")\n\t}\n\tgpUniformSubroutinesuiv = (C.GPUNIFORMSUBROUTINESUIV)(getProcAddr(\"glUniformSubroutinesuiv\"))\n\tif gpUniformSubroutinesuiv == nil {\n\t\treturn errors.New(\"glUniformSubroutinesuiv\")\n\t}\n\tgpUniformui64NV = (C.GPUNIFORMUI64NV)(getProcAddr(\"glUniformui64NV\"))\n\tgpUniformui64vNV = (C.GPUNIFORMUI64VNV)(getProcAddr(\"glUniformui64vNV\"))\n\tgpUnmapBuffer = (C.GPUNMAPBUFFER)(getProcAddr(\"glUnmapBuffer\"))\n\tif gpUnmapBuffer == nil {\n\t\treturn errors.New(\"glUnmapBuffer\")\n\t}\n\tgpUnmapNamedBuffer = (C.GPUNMAPNAMEDBUFFER)(getProcAddr(\"glUnmapNamedBuffer\"))\n\tgpUnmapNamedBufferEXT = (C.GPUNMAPNAMEDBUFFEREXT)(getProcAddr(\"glUnmapNamedBufferEXT\"))\n\tgpUseProgram = (C.GPUSEPROGRAM)(getProcAddr(\"glUseProgram\"))\n\tif gpUseProgram == nil {\n\t\treturn errors.New(\"glUseProgram\")\n\t}\n\tgpUseProgramStages = (C.GPUSEPROGRAMSTAGES)(getProcAddr(\"glUseProgramStages\"))\n\tif gpUseProgramStages == nil {\n\t\treturn errors.New(\"glUseProgramStages\")\n\t}\n\tgpUseProgramStagesEXT = (C.GPUSEPROGRAMSTAGESEXT)(getProcAddr(\"glUseProgramStagesEXT\"))\n\tgpUseShaderProgramEXT = (C.GPUSESHADERPROGRAMEXT)(getProcAddr(\"glUseShaderProgramEXT\"))\n\tgpValidateProgram = (C.GPVALIDATEPROGRAM)(getProcAddr(\"glValidateProgram\"))\n\tif gpValidateProgram == nil {\n\t\treturn errors.New(\"glValidateProgram\")\n\t}\n\tgpValidateProgramPipeline = (C.GPVALIDATEPROGRAMPIPELINE)(getProcAddr(\"glValidateProgramPipeline\"))\n\tif gpValidateProgramPipeline == nil {\n\t\treturn errors.New(\"glValidateProgramPipeline\")\n\t}\n\tgpValidateProgramPipelineEXT = (C.GPVALIDATEPROGRAMPIPELINEEXT)(getProcAddr(\"glValidateProgramPipelineEXT\"))\n\tgpVertexArrayAttribBinding = (C.GPVERTEXARRAYATTRIBBINDING)(getProcAddr(\"glVertexArrayAttribBinding\"))\n\tgpVertexArrayAttribFormat = (C.GPVERTEXARRAYATTRIBFORMAT)(getProcAddr(\"glVertexArrayAttribFormat\"))\n\tgpVertexArrayAttribIFormat = (C.GPVERTEXARRAYATTRIBIFORMAT)(getProcAddr(\"glVertexArrayAttribIFormat\"))\n\tgpVertexArrayAttribLFormat = (C.GPVERTEXARRAYATTRIBLFORMAT)(getProcAddr(\"glVertexArrayAttribLFormat\"))\n\tgpVertexArrayBindVertexBufferEXT = (C.GPVERTEXARRAYBINDVERTEXBUFFEREXT)(getProcAddr(\"glVertexArrayBindVertexBufferEXT\"))\n\tgpVertexArrayBindingDivisor = (C.GPVERTEXARRAYBINDINGDIVISOR)(getProcAddr(\"glVertexArrayBindingDivisor\"))\n\tgpVertexArrayColorOffsetEXT = (C.GPVERTEXARRAYCOLOROFFSETEXT)(getProcAddr(\"glVertexArrayColorOffsetEXT\"))\n\tgpVertexArrayEdgeFlagOffsetEXT = (C.GPVERTEXARRAYEDGEFLAGOFFSETEXT)(getProcAddr(\"glVertexArrayEdgeFlagOffsetEXT\"))\n\tgpVertexArrayElementBuffer = (C.GPVERTEXARRAYELEMENTBUFFER)(getProcAddr(\"glVertexArrayElementBuffer\"))\n\tgpVertexArrayFogCoordOffsetEXT = (C.GPVERTEXARRAYFOGCOORDOFFSETEXT)(getProcAddr(\"glVertexArrayFogCoordOffsetEXT\"))\n\tgpVertexArrayIndexOffsetEXT = (C.GPVERTEXARRAYINDEXOFFSETEXT)(getProcAddr(\"glVertexArrayIndexOffsetEXT\"))\n\tgpVertexArrayMultiTexCoordOffsetEXT = (C.GPVERTEXARRAYMULTITEXCOORDOFFSETEXT)(getProcAddr(\"glVertexArrayMultiTexCoordOffsetEXT\"))\n\tgpVertexArrayNormalOffsetEXT = (C.GPVERTEXARRAYNORMALOFFSETEXT)(getProcAddr(\"glVertexArrayNormalOffsetEXT\"))\n\tgpVertexArraySecondaryColorOffsetEXT = (C.GPVERTEXARRAYSECONDARYCOLOROFFSETEXT)(getProcAddr(\"glVertexArraySecondaryColorOffsetEXT\"))\n\tgpVertexArrayTexCoordOffsetEXT = (C.GPVERTEXARRAYTEXCOORDOFFSETEXT)(getProcAddr(\"glVertexArrayTexCoordOffsetEXT\"))\n\tgpVertexArrayVertexAttribBindingEXT = (C.GPVERTEXARRAYVERTEXATTRIBBINDINGEXT)(getProcAddr(\"glVertexArrayVertexAttribBindingEXT\"))\n\tgpVertexArrayVertexAttribDivisorEXT = (C.GPVERTEXARRAYVERTEXATTRIBDIVISOREXT)(getProcAddr(\"glVertexArrayVertexAttribDivisorEXT\"))\n\tgpVertexArrayVertexAttribFormatEXT = (C.GPVERTEXARRAYVERTEXATTRIBFORMATEXT)(getProcAddr(\"glVertexArrayVertexAttribFormatEXT\"))\n\tgpVertexArrayVertexAttribIFormatEXT = (C.GPVERTEXARRAYVERTEXATTRIBIFORMATEXT)(getProcAddr(\"glVertexArrayVertexAttribIFormatEXT\"))\n\tgpVertexArrayVertexAttribIOffsetEXT = (C.GPVERTEXARRAYVERTEXATTRIBIOFFSETEXT)(getProcAddr(\"glVertexArrayVertexAttribIOffsetEXT\"))\n\tgpVertexArrayVertexAttribLFormatEXT = (C.GPVERTEXARRAYVERTEXATTRIBLFORMATEXT)(getProcAddr(\"glVertexArrayVertexAttribLFormatEXT\"))\n\tgpVertexArrayVertexAttribLOffsetEXT = (C.GPVERTEXARRAYVERTEXATTRIBLOFFSETEXT)(getProcAddr(\"glVertexArrayVertexAttribLOffsetEXT\"))\n\tgpVertexArrayVertexAttribOffsetEXT = (C.GPVERTEXARRAYVERTEXATTRIBOFFSETEXT)(getProcAddr(\"glVertexArrayVertexAttribOffsetEXT\"))\n\tgpVertexArrayVertexBindingDivisorEXT = (C.GPVERTEXARRAYVERTEXBINDINGDIVISOREXT)(getProcAddr(\"glVertexArrayVertexBindingDivisorEXT\"))\n\tgpVertexArrayVertexBuffer = (C.GPVERTEXARRAYVERTEXBUFFER)(getProcAddr(\"glVertexArrayVertexBuffer\"))\n\tgpVertexArrayVertexBuffers = (C.GPVERTEXARRAYVERTEXBUFFERS)(getProcAddr(\"glVertexArrayVertexBuffers\"))\n\tgpVertexArrayVertexOffsetEXT = (C.GPVERTEXARRAYVERTEXOFFSETEXT)(getProcAddr(\"glVertexArrayVertexOffsetEXT\"))\n\tgpVertexAttrib1d = (C.GPVERTEXATTRIB1D)(getProcAddr(\"glVertexAttrib1d\"))\n\tif gpVertexAttrib1d == nil {\n\t\treturn errors.New(\"glVertexAttrib1d\")\n\t}\n\tgpVertexAttrib1dv = (C.GPVERTEXATTRIB1DV)(getProcAddr(\"glVertexAttrib1dv\"))\n\tif gpVertexAttrib1dv == nil {\n\t\treturn errors.New(\"glVertexAttrib1dv\")\n\t}\n\tgpVertexAttrib1f = (C.GPVERTEXATTRIB1F)(getProcAddr(\"glVertexAttrib1f\"))\n\tif gpVertexAttrib1f == nil {\n\t\treturn errors.New(\"glVertexAttrib1f\")\n\t}\n\tgpVertexAttrib1fv = (C.GPVERTEXATTRIB1FV)(getProcAddr(\"glVertexAttrib1fv\"))\n\tif gpVertexAttrib1fv == nil {\n\t\treturn errors.New(\"glVertexAttrib1fv\")\n\t}\n\tgpVertexAttrib1s = (C.GPVERTEXATTRIB1S)(getProcAddr(\"glVertexAttrib1s\"))\n\tif gpVertexAttrib1s == nil {\n\t\treturn errors.New(\"glVertexAttrib1s\")\n\t}\n\tgpVertexAttrib1sv = (C.GPVERTEXATTRIB1SV)(getProcAddr(\"glVertexAttrib1sv\"))\n\tif gpVertexAttrib1sv == nil {\n\t\treturn errors.New(\"glVertexAttrib1sv\")\n\t}\n\tgpVertexAttrib2d = (C.GPVERTEXATTRIB2D)(getProcAddr(\"glVertexAttrib2d\"))\n\tif gpVertexAttrib2d == nil {\n\t\treturn errors.New(\"glVertexAttrib2d\")\n\t}\n\tgpVertexAttrib2dv = (C.GPVERTEXATTRIB2DV)(getProcAddr(\"glVertexAttrib2dv\"))\n\tif gpVertexAttrib2dv == nil {\n\t\treturn errors.New(\"glVertexAttrib2dv\")\n\t}\n\tgpVertexAttrib2f = (C.GPVERTEXATTRIB2F)(getProcAddr(\"glVertexAttrib2f\"))\n\tif gpVertexAttrib2f == nil {\n\t\treturn errors.New(\"glVertexAttrib2f\")\n\t}\n\tgpVertexAttrib2fv = (C.GPVERTEXATTRIB2FV)(getProcAddr(\"glVertexAttrib2fv\"))\n\tif gpVertexAttrib2fv == nil {\n\t\treturn errors.New(\"glVertexAttrib2fv\")\n\t}\n\tgpVertexAttrib2s = (C.GPVERTEXATTRIB2S)(getProcAddr(\"glVertexAttrib2s\"))\n\tif gpVertexAttrib2s == nil {\n\t\treturn errors.New(\"glVertexAttrib2s\")\n\t}\n\tgpVertexAttrib2sv = (C.GPVERTEXATTRIB2SV)(getProcAddr(\"glVertexAttrib2sv\"))\n\tif gpVertexAttrib2sv == nil {\n\t\treturn errors.New(\"glVertexAttrib2sv\")\n\t}\n\tgpVertexAttrib3d = (C.GPVERTEXATTRIB3D)(getProcAddr(\"glVertexAttrib3d\"))\n\tif gpVertexAttrib3d == nil {\n\t\treturn errors.New(\"glVertexAttrib3d\")\n\t}\n\tgpVertexAttrib3dv = (C.GPVERTEXATTRIB3DV)(getProcAddr(\"glVertexAttrib3dv\"))\n\tif gpVertexAttrib3dv == nil {\n\t\treturn errors.New(\"glVertexAttrib3dv\")\n\t}\n\tgpVertexAttrib3f = (C.GPVERTEXATTRIB3F)(getProcAddr(\"glVertexAttrib3f\"))\n\tif gpVertexAttrib3f == nil {\n\t\treturn errors.New(\"glVertexAttrib3f\")\n\t}\n\tgpVertexAttrib3fv = (C.GPVERTEXATTRIB3FV)(getProcAddr(\"glVertexAttrib3fv\"))\n\tif gpVertexAttrib3fv == nil {\n\t\treturn errors.New(\"glVertexAttrib3fv\")\n\t}\n\tgpVertexAttrib3s = (C.GPVERTEXATTRIB3S)(getProcAddr(\"glVertexAttrib3s\"))\n\tif gpVertexAttrib3s == nil {\n\t\treturn errors.New(\"glVertexAttrib3s\")\n\t}\n\tgpVertexAttrib3sv = (C.GPVERTEXATTRIB3SV)(getProcAddr(\"glVertexAttrib3sv\"))\n\tif gpVertexAttrib3sv == nil {\n\t\treturn errors.New(\"glVertexAttrib3sv\")\n\t}\n\tgpVertexAttrib4Nbv = (C.GPVERTEXATTRIB4NBV)(getProcAddr(\"glVertexAttrib4Nbv\"))\n\tif gpVertexAttrib4Nbv == nil {\n\t\treturn errors.New(\"glVertexAttrib4Nbv\")\n\t}\n\tgpVertexAttrib4Niv = (C.GPVERTEXATTRIB4NIV)(getProcAddr(\"glVertexAttrib4Niv\"))\n\tif gpVertexAttrib4Niv == nil {\n\t\treturn errors.New(\"glVertexAttrib4Niv\")\n\t}\n\tgpVertexAttrib4Nsv = (C.GPVERTEXATTRIB4NSV)(getProcAddr(\"glVertexAttrib4Nsv\"))\n\tif gpVertexAttrib4Nsv == nil {\n\t\treturn errors.New(\"glVertexAttrib4Nsv\")\n\t}\n\tgpVertexAttrib4Nub = (C.GPVERTEXATTRIB4NUB)(getProcAddr(\"glVertexAttrib4Nub\"))\n\tif gpVertexAttrib4Nub == nil {\n\t\treturn errors.New(\"glVertexAttrib4Nub\")\n\t}\n\tgpVertexAttrib4Nubv = (C.GPVERTEXATTRIB4NUBV)(getProcAddr(\"glVertexAttrib4Nubv\"))\n\tif gpVertexAttrib4Nubv == nil {\n\t\treturn errors.New(\"glVertexAttrib4Nubv\")\n\t}\n\tgpVertexAttrib4Nuiv = (C.GPVERTEXATTRIB4NUIV)(getProcAddr(\"glVertexAttrib4Nuiv\"))\n\tif gpVertexAttrib4Nuiv == nil {\n\t\treturn errors.New(\"glVertexAttrib4Nuiv\")\n\t}\n\tgpVertexAttrib4Nusv = (C.GPVERTEXATTRIB4NUSV)(getProcAddr(\"glVertexAttrib4Nusv\"))\n\tif gpVertexAttrib4Nusv == nil {\n\t\treturn errors.New(\"glVertexAttrib4Nusv\")\n\t}\n\tgpVertexAttrib4bv = (C.GPVERTEXATTRIB4BV)(getProcAddr(\"glVertexAttrib4bv\"))\n\tif gpVertexAttrib4bv == nil {\n\t\treturn errors.New(\"glVertexAttrib4bv\")\n\t}\n\tgpVertexAttrib4d = (C.GPVERTEXATTRIB4D)(getProcAddr(\"glVertexAttrib4d\"))\n\tif gpVertexAttrib4d == nil {\n\t\treturn errors.New(\"glVertexAttrib4d\")\n\t}\n\tgpVertexAttrib4dv = (C.GPVERTEXATTRIB4DV)(getProcAddr(\"glVertexAttrib4dv\"))\n\tif gpVertexAttrib4dv == nil {\n\t\treturn errors.New(\"glVertexAttrib4dv\")\n\t}\n\tgpVertexAttrib4f = (C.GPVERTEXATTRIB4F)(getProcAddr(\"glVertexAttrib4f\"))\n\tif gpVertexAttrib4f == nil {\n\t\treturn errors.New(\"glVertexAttrib4f\")\n\t}\n\tgpVertexAttrib4fv = (C.GPVERTEXATTRIB4FV)(getProcAddr(\"glVertexAttrib4fv\"))\n\tif gpVertexAttrib4fv == nil {\n\t\treturn errors.New(\"glVertexAttrib4fv\")\n\t}\n\tgpVertexAttrib4iv = (C.GPVERTEXATTRIB4IV)(getProcAddr(\"glVertexAttrib4iv\"))\n\tif gpVertexAttrib4iv == nil {\n\t\treturn errors.New(\"glVertexAttrib4iv\")\n\t}\n\tgpVertexAttrib4s = (C.GPVERTEXATTRIB4S)(getProcAddr(\"glVertexAttrib4s\"))\n\tif gpVertexAttrib4s == nil {\n\t\treturn errors.New(\"glVertexAttrib4s\")\n\t}\n\tgpVertexAttrib4sv = (C.GPVERTEXATTRIB4SV)(getProcAddr(\"glVertexAttrib4sv\"))\n\tif gpVertexAttrib4sv == nil {\n\t\treturn errors.New(\"glVertexAttrib4sv\")\n\t}\n\tgpVertexAttrib4ubv = (C.GPVERTEXATTRIB4UBV)(getProcAddr(\"glVertexAttrib4ubv\"))\n\tif gpVertexAttrib4ubv == nil {\n\t\treturn errors.New(\"glVertexAttrib4ubv\")\n\t}\n\tgpVertexAttrib4uiv = (C.GPVERTEXATTRIB4UIV)(getProcAddr(\"glVertexAttrib4uiv\"))\n\tif gpVertexAttrib4uiv == nil {\n\t\treturn errors.New(\"glVertexAttrib4uiv\")\n\t}\n\tgpVertexAttrib4usv = (C.GPVERTEXATTRIB4USV)(getProcAddr(\"glVertexAttrib4usv\"))\n\tif gpVertexAttrib4usv == nil {\n\t\treturn errors.New(\"glVertexAttrib4usv\")\n\t}\n\tgpVertexAttribBinding = (C.GPVERTEXATTRIBBINDING)(getProcAddr(\"glVertexAttribBinding\"))\n\tgpVertexAttribDivisor = (C.GPVERTEXATTRIBDIVISOR)(getProcAddr(\"glVertexAttribDivisor\"))\n\tif gpVertexAttribDivisor == nil {\n\t\treturn errors.New(\"glVertexAttribDivisor\")\n\t}\n\tgpVertexAttribDivisorARB = (C.GPVERTEXATTRIBDIVISORARB)(getProcAddr(\"glVertexAttribDivisorARB\"))\n\tgpVertexAttribFormat = (C.GPVERTEXATTRIBFORMAT)(getProcAddr(\"glVertexAttribFormat\"))\n\tgpVertexAttribFormatNV = (C.GPVERTEXATTRIBFORMATNV)(getProcAddr(\"glVertexAttribFormatNV\"))\n\tgpVertexAttribI1i = (C.GPVERTEXATTRIBI1I)(getProcAddr(\"glVertexAttribI1i\"))\n\tif gpVertexAttribI1i == nil {\n\t\treturn errors.New(\"glVertexAttribI1i\")\n\t}\n\tgpVertexAttribI1iv = (C.GPVERTEXATTRIBI1IV)(getProcAddr(\"glVertexAttribI1iv\"))\n\tif gpVertexAttribI1iv == nil {\n\t\treturn errors.New(\"glVertexAttribI1iv\")\n\t}\n\tgpVertexAttribI1ui = (C.GPVERTEXATTRIBI1UI)(getProcAddr(\"glVertexAttribI1ui\"))\n\tif gpVertexAttribI1ui == nil {\n\t\treturn errors.New(\"glVertexAttribI1ui\")\n\t}\n\tgpVertexAttribI1uiv = (C.GPVERTEXATTRIBI1UIV)(getProcAddr(\"glVertexAttribI1uiv\"))\n\tif gpVertexAttribI1uiv == nil {\n\t\treturn errors.New(\"glVertexAttribI1uiv\")\n\t}\n\tgpVertexAttribI2i = (C.GPVERTEXATTRIBI2I)(getProcAddr(\"glVertexAttribI2i\"))\n\tif gpVertexAttribI2i == nil {\n\t\treturn errors.New(\"glVertexAttribI2i\")\n\t}\n\tgpVertexAttribI2iv = (C.GPVERTEXATTRIBI2IV)(getProcAddr(\"glVertexAttribI2iv\"))\n\tif gpVertexAttribI2iv == nil {\n\t\treturn errors.New(\"glVertexAttribI2iv\")\n\t}\n\tgpVertexAttribI2ui = (C.GPVERTEXATTRIBI2UI)(getProcAddr(\"glVertexAttribI2ui\"))\n\tif gpVertexAttribI2ui == nil {\n\t\treturn errors.New(\"glVertexAttribI2ui\")\n\t}\n\tgpVertexAttribI2uiv = (C.GPVERTEXATTRIBI2UIV)(getProcAddr(\"glVertexAttribI2uiv\"))\n\tif gpVertexAttribI2uiv == nil {\n\t\treturn errors.New(\"glVertexAttribI2uiv\")\n\t}\n\tgpVertexAttribI3i = (C.GPVERTEXATTRIBI3I)(getProcAddr(\"glVertexAttribI3i\"))\n\tif gpVertexAttribI3i == nil {\n\t\treturn errors.New(\"glVertexAttribI3i\")\n\t}\n\tgpVertexAttribI3iv = (C.GPVERTEXATTRIBI3IV)(getProcAddr(\"glVertexAttribI3iv\"))\n\tif gpVertexAttribI3iv == nil {\n\t\treturn errors.New(\"glVertexAttribI3iv\")\n\t}\n\tgpVertexAttribI3ui = (C.GPVERTEXATTRIBI3UI)(getProcAddr(\"glVertexAttribI3ui\"))\n\tif gpVertexAttribI3ui == nil {\n\t\treturn errors.New(\"glVertexAttribI3ui\")\n\t}\n\tgpVertexAttribI3uiv = (C.GPVERTEXATTRIBI3UIV)(getProcAddr(\"glVertexAttribI3uiv\"))\n\tif gpVertexAttribI3uiv == nil {\n\t\treturn errors.New(\"glVertexAttribI3uiv\")\n\t}\n\tgpVertexAttribI4bv = (C.GPVERTEXATTRIBI4BV)(getProcAddr(\"glVertexAttribI4bv\"))\n\tif gpVertexAttribI4bv == nil {\n\t\treturn errors.New(\"glVertexAttribI4bv\")\n\t}\n\tgpVertexAttribI4i = (C.GPVERTEXATTRIBI4I)(getProcAddr(\"glVertexAttribI4i\"))\n\tif gpVertexAttribI4i == nil {\n\t\treturn errors.New(\"glVertexAttribI4i\")\n\t}\n\tgpVertexAttribI4iv = (C.GPVERTEXATTRIBI4IV)(getProcAddr(\"glVertexAttribI4iv\"))\n\tif gpVertexAttribI4iv == nil {\n\t\treturn errors.New(\"glVertexAttribI4iv\")\n\t}\n\tgpVertexAttribI4sv = (C.GPVERTEXATTRIBI4SV)(getProcAddr(\"glVertexAttribI4sv\"))\n\tif gpVertexAttribI4sv == nil {\n\t\treturn errors.New(\"glVertexAttribI4sv\")\n\t}\n\tgpVertexAttribI4ubv = (C.GPVERTEXATTRIBI4UBV)(getProcAddr(\"glVertexAttribI4ubv\"))\n\tif gpVertexAttribI4ubv == nil {\n\t\treturn errors.New(\"glVertexAttribI4ubv\")\n\t}\n\tgpVertexAttribI4ui = (C.GPVERTEXATTRIBI4UI)(getProcAddr(\"glVertexAttribI4ui\"))\n\tif gpVertexAttribI4ui == nil {\n\t\treturn errors.New(\"glVertexAttribI4ui\")\n\t}\n\tgpVertexAttribI4uiv = (C.GPVERTEXATTRIBI4UIV)(getProcAddr(\"glVertexAttribI4uiv\"))\n\tif gpVertexAttribI4uiv == nil {\n\t\treturn errors.New(\"glVertexAttribI4uiv\")\n\t}\n\tgpVertexAttribI4usv = (C.GPVERTEXATTRIBI4USV)(getProcAddr(\"glVertexAttribI4usv\"))\n\tif gpVertexAttribI4usv == nil {\n\t\treturn errors.New(\"glVertexAttribI4usv\")\n\t}\n\tgpVertexAttribIFormat = (C.GPVERTEXATTRIBIFORMAT)(getProcAddr(\"glVertexAttribIFormat\"))\n\tgpVertexAttribIFormatNV = (C.GPVERTEXATTRIBIFORMATNV)(getProcAddr(\"glVertexAttribIFormatNV\"))\n\tgpVertexAttribIPointer = (C.GPVERTEXATTRIBIPOINTER)(getProcAddr(\"glVertexAttribIPointer\"))\n\tif gpVertexAttribIPointer == nil {\n\t\treturn errors.New(\"glVertexAttribIPointer\")\n\t}\n\tgpVertexAttribL1d = (C.GPVERTEXATTRIBL1D)(getProcAddr(\"glVertexAttribL1d\"))\n\tif gpVertexAttribL1d == nil {\n\t\treturn errors.New(\"glVertexAttribL1d\")\n\t}\n\tgpVertexAttribL1dv = (C.GPVERTEXATTRIBL1DV)(getProcAddr(\"glVertexAttribL1dv\"))\n\tif gpVertexAttribL1dv == nil {\n\t\treturn errors.New(\"glVertexAttribL1dv\")\n\t}\n\tgpVertexAttribL1i64NV = (C.GPVERTEXATTRIBL1I64NV)(getProcAddr(\"glVertexAttribL1i64NV\"))\n\tgpVertexAttribL1i64vNV = (C.GPVERTEXATTRIBL1I64VNV)(getProcAddr(\"glVertexAttribL1i64vNV\"))\n\tgpVertexAttribL1ui64ARB = (C.GPVERTEXATTRIBL1UI64ARB)(getProcAddr(\"glVertexAttribL1ui64ARB\"))\n\tgpVertexAttribL1ui64NV = (C.GPVERTEXATTRIBL1UI64NV)(getProcAddr(\"glVertexAttribL1ui64NV\"))\n\tgpVertexAttribL1ui64vARB = (C.GPVERTEXATTRIBL1UI64VARB)(getProcAddr(\"glVertexAttribL1ui64vARB\"))\n\tgpVertexAttribL1ui64vNV = (C.GPVERTEXATTRIBL1UI64VNV)(getProcAddr(\"glVertexAttribL1ui64vNV\"))\n\tgpVertexAttribL2d = (C.GPVERTEXATTRIBL2D)(getProcAddr(\"glVertexAttribL2d\"))\n\tif gpVertexAttribL2d == nil {\n\t\treturn errors.New(\"glVertexAttribL2d\")\n\t}\n\tgpVertexAttribL2dv = (C.GPVERTEXATTRIBL2DV)(getProcAddr(\"glVertexAttribL2dv\"))\n\tif gpVertexAttribL2dv == nil {\n\t\treturn errors.New(\"glVertexAttribL2dv\")\n\t}\n\tgpVertexAttribL2i64NV = (C.GPVERTEXATTRIBL2I64NV)(getProcAddr(\"glVertexAttribL2i64NV\"))\n\tgpVertexAttribL2i64vNV = (C.GPVERTEXATTRIBL2I64VNV)(getProcAddr(\"glVertexAttribL2i64vNV\"))\n\tgpVertexAttribL2ui64NV = (C.GPVERTEXATTRIBL2UI64NV)(getProcAddr(\"glVertexAttribL2ui64NV\"))\n\tgpVertexAttribL2ui64vNV = (C.GPVERTEXATTRIBL2UI64VNV)(getProcAddr(\"glVertexAttribL2ui64vNV\"))\n\tgpVertexAttribL3d = (C.GPVERTEXATTRIBL3D)(getProcAddr(\"glVertexAttribL3d\"))\n\tif gpVertexAttribL3d == nil {\n\t\treturn errors.New(\"glVertexAttribL3d\")\n\t}\n\tgpVertexAttribL3dv = (C.GPVERTEXATTRIBL3DV)(getProcAddr(\"glVertexAttribL3dv\"))\n\tif gpVertexAttribL3dv == nil {\n\t\treturn errors.New(\"glVertexAttribL3dv\")\n\t}\n\tgpVertexAttribL3i64NV = (C.GPVERTEXATTRIBL3I64NV)(getProcAddr(\"glVertexAttribL3i64NV\"))\n\tgpVertexAttribL3i64vNV = (C.GPVERTEXATTRIBL3I64VNV)(getProcAddr(\"glVertexAttribL3i64vNV\"))\n\tgpVertexAttribL3ui64NV = (C.GPVERTEXATTRIBL3UI64NV)(getProcAddr(\"glVertexAttribL3ui64NV\"))\n\tgpVertexAttribL3ui64vNV = (C.GPVERTEXATTRIBL3UI64VNV)(getProcAddr(\"glVertexAttribL3ui64vNV\"))\n\tgpVertexAttribL4d = (C.GPVERTEXATTRIBL4D)(getProcAddr(\"glVertexAttribL4d\"))\n\tif gpVertexAttribL4d == nil {\n\t\treturn errors.New(\"glVertexAttribL4d\")\n\t}\n\tgpVertexAttribL4dv = (C.GPVERTEXATTRIBL4DV)(getProcAddr(\"glVertexAttribL4dv\"))\n\tif gpVertexAttribL4dv == nil {\n\t\treturn errors.New(\"glVertexAttribL4dv\")\n\t}\n\tgpVertexAttribL4i64NV = (C.GPVERTEXATTRIBL4I64NV)(getProcAddr(\"glVertexAttribL4i64NV\"))\n\tgpVertexAttribL4i64vNV = (C.GPVERTEXATTRIBL4I64VNV)(getProcAddr(\"glVertexAttribL4i64vNV\"))\n\tgpVertexAttribL4ui64NV = (C.GPVERTEXATTRIBL4UI64NV)(getProcAddr(\"glVertexAttribL4ui64NV\"))\n\tgpVertexAttribL4ui64vNV = (C.GPVERTEXATTRIBL4UI64VNV)(getProcAddr(\"glVertexAttribL4ui64vNV\"))\n\tgpVertexAttribLFormat = (C.GPVERTEXATTRIBLFORMAT)(getProcAddr(\"glVertexAttribLFormat\"))\n\tgpVertexAttribLFormatNV = (C.GPVERTEXATTRIBLFORMATNV)(getProcAddr(\"glVertexAttribLFormatNV\"))\n\tgpVertexAttribLPointer = (C.GPVERTEXATTRIBLPOINTER)(getProcAddr(\"glVertexAttribLPointer\"))\n\tif gpVertexAttribLPointer == nil {\n\t\treturn errors.New(\"glVertexAttribLPointer\")\n\t}\n\tgpVertexAttribP1ui = (C.GPVERTEXATTRIBP1UI)(getProcAddr(\"glVertexAttribP1ui\"))\n\tif gpVertexAttribP1ui == nil {\n\t\treturn errors.New(\"glVertexAttribP1ui\")\n\t}\n\tgpVertexAttribP1uiv = (C.GPVERTEXATTRIBP1UIV)(getProcAddr(\"glVertexAttribP1uiv\"))\n\tif gpVertexAttribP1uiv == nil {\n\t\treturn errors.New(\"glVertexAttribP1uiv\")\n\t}\n\tgpVertexAttribP2ui = (C.GPVERTEXATTRIBP2UI)(getProcAddr(\"glVertexAttribP2ui\"))\n\tif gpVertexAttribP2ui == nil {\n\t\treturn errors.New(\"glVertexAttribP2ui\")\n\t}\n\tgpVertexAttribP2uiv = (C.GPVERTEXATTRIBP2UIV)(getProcAddr(\"glVertexAttribP2uiv\"))\n\tif gpVertexAttribP2uiv == nil {\n\t\treturn errors.New(\"glVertexAttribP2uiv\")\n\t}\n\tgpVertexAttribP3ui = (C.GPVERTEXATTRIBP3UI)(getProcAddr(\"glVertexAttribP3ui\"))\n\tif gpVertexAttribP3ui == nil {\n\t\treturn errors.New(\"glVertexAttribP3ui\")\n\t}\n\tgpVertexAttribP3uiv = (C.GPVERTEXATTRIBP3UIV)(getProcAddr(\"glVertexAttribP3uiv\"))\n\tif gpVertexAttribP3uiv == nil {\n\t\treturn errors.New(\"glVertexAttribP3uiv\")\n\t}\n\tgpVertexAttribP4ui = (C.GPVERTEXATTRIBP4UI)(getProcAddr(\"glVertexAttribP4ui\"))\n\tif gpVertexAttribP4ui == nil {\n\t\treturn errors.New(\"glVertexAttribP4ui\")\n\t}\n\tgpVertexAttribP4uiv = (C.GPVERTEXATTRIBP4UIV)(getProcAddr(\"glVertexAttribP4uiv\"))\n\tif gpVertexAttribP4uiv == nil {\n\t\treturn errors.New(\"glVertexAttribP4uiv\")\n\t}\n\tgpVertexAttribPointer = (C.GPVERTEXATTRIBPOINTER)(getProcAddr(\"glVertexAttribPointer\"))\n\tif gpVertexAttribPointer == nil {\n\t\treturn errors.New(\"glVertexAttribPointer\")\n\t}\n\tgpVertexBindingDivisor = (C.GPVERTEXBINDINGDIVISOR)(getProcAddr(\"glVertexBindingDivisor\"))\n\tgpVertexFormatNV = (C.GPVERTEXFORMATNV)(getProcAddr(\"glVertexFormatNV\"))\n\tgpViewport = (C.GPVIEWPORT)(getProcAddr(\"glViewport\"))\n\tif gpViewport == nil {\n\t\treturn errors.New(\"glViewport\")\n\t}\n\tgpViewportArrayv = (C.GPVIEWPORTARRAYV)(getProcAddr(\"glViewportArrayv\"))\n\tif gpViewportArrayv == nil {\n\t\treturn errors.New(\"glViewportArrayv\")\n\t}\n\tgpViewportIndexedf = (C.GPVIEWPORTINDEXEDF)(getProcAddr(\"glViewportIndexedf\"))\n\tif gpViewportIndexedf == nil {\n\t\treturn errors.New(\"glViewportIndexedf\")\n\t}\n\tgpViewportIndexedfv = (C.GPVIEWPORTINDEXEDFV)(getProcAddr(\"glViewportIndexedfv\"))\n\tif gpViewportIndexedfv == nil {\n\t\treturn errors.New(\"glViewportIndexedfv\")\n\t}\n\tgpViewportPositionWScaleNV = (C.GPVIEWPORTPOSITIONWSCALENV)(getProcAddr(\"glViewportPositionWScaleNV\"))\n\tgpViewportSwizzleNV = (C.GPVIEWPORTSWIZZLENV)(getProcAddr(\"glViewportSwizzleNV\"))\n\tgpWaitSync = (C.GPWAITSYNC)(getProcAddr(\"glWaitSync\"))\n\tif gpWaitSync == nil {\n\t\treturn errors.New(\"glWaitSync\")\n\t}\n\tgpWaitVkSemaphoreNV = (C.GPWAITVKSEMAPHORENV)(getProcAddr(\"glWaitVkSemaphoreNV\"))\n\tgpWeightPathsNV = (C.GPWEIGHTPATHSNV)(getProcAddr(\"glWeightPathsNV\"))\n\tgpWindowRectanglesEXT = (C.GPWINDOWRECTANGLESEXT)(getProcAddr(\"glWindowRectanglesEXT\"))\n\treturn nil\n}", "func Begin(mode uint32) {\n\tC.glowBegin(gpBegin, (C.GLenum)(mode))\n}", "func (la Launch) execute(l *Lobby) {\n\tl.started = true\n\tla.Event = \"launch\"\n\tl.send <- la\n}", "func DrawTransformFeedback(mode uint32, id uint32) {\n C.glowDrawTransformFeedback(gpDrawTransformFeedback, (C.GLenum)(mode), (C.GLuint)(id))\n}", "func (self *Graphics) PostUpdate() {\n self.Object.Call(\"postUpdate\")\n}", "func startTheWorld() {\n\tsystemstack(func() { startTheWorldWithSema(false) })\n\t// worldsema must be held over startTheWorldWithSema to ensure\n\t// gomaxprocs cannot change while worldsema is held.\n\tsemrelease(&worldsema)\n\tgetg().m.preemptoff = \"\"\n}", "func CLFLUSH(m operand.Op) { ctx.CLFLUSH(m) }", "func Main() {\n\tfor f := range gfxfunc {\n\t\tf()\n\t}\n\tgfx.Trace(\"gfx shutting down.\")\n\tsdl.GL_DeleteContext(glctx)\n\twindow.Destroy()\n}", "func BeginQuery(target uint32, id uint32) {\n C.glowBeginQuery(gpBeginQuery, (C.GLenum)(target), (C.GLuint)(id))\n}", "func CallList(list uint32) {\n C.glowCallList(gpCallList, (C.GLuint)(list))\n}", "func (gm *GraphicsManager) ForceRender(compsToSend *common.Vector) {\n\thandlerIndex := 0\n\tdefer gm.handleClosedGraphicsHandler(handlerIndex)\n\n\tgm.Render(compsToSend)\n\tfor handlerIndex = range gm.resizelink {\n\t\tif gm.resizelink[handlerIndex] == nil {\n\t\t\tcontinue\n\t\t}\n\t\tgm.resizelink[handlerIndex] <- true\n\t}\n\n\tgm.justForcedARender = true\n\n}", "func ldk(context *Context) {\n x := context.opcode & 0x0F00 >> 8\n before := time.Now()\n key := context.window.WaitForKeyPress()\n // Don't count blocking time against delay\n context.cpu.delay -= time.Since(before).Nanoseconds() / 1000000\n context.cpu.v[x] = byte(key)\n}", "func ModGL(a, b gl.Float) gl.Float {\n\treturn (gl.Float)(math.Mod((float64)(a), (float64)(b)))\n}", "func main() {\n\n\tif err := glfw.Init(); err != nil {\n\t\tpanic(\"Failed to initialize GLFW\")\n\t}\n\n\tdefer glfw.Terminate()\n\n\tglfw.WindowHint(glfw.Samples, 4)\n\n\t// Drawing the triangle threw an error with OpenGL 3.3, downgrading to 2.1 seemed to solve it\n\tglfw.WindowHint(glfw.ContextVersionMajor, 3)\n\tglfw.WindowHint(glfw.ContextVersionMinor, 3)\n\n\t// Open a window and create its OpenGL context\n\twindow, err := glfw.CreateWindow(1024, 768, \"Tutorial 02\", nil, nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer window.Destroy()\n\n\twindow.MakeContextCurrent()\n\n\t// Initialize OpenGL - Go bindings use Glow and now Glew\n\tif err := gl.Init(); err != nil {\n\t\tpanic(err)\n\t}\n\n\t// Ensure we can capture the escape key being pressed below\n\twindow.SetInputMode(glfw.StickyKeysMode, gl.TRUE)\n\n\t// Dark blue background\n\tgl.ClearColor(0.0, 0.0, 0.4, 0.0)\n\n\t// Create and compile our GLSL program from the shaders\n\tprogramId := loadShaders(\"SimpleVertexShader.vertexshader\", \"SimpleFragmentShader.fragmentshader\")\n\tdefer gl.DeleteProgram(programId)\n\n\t// Get a handle for our buffers\n\tvertexPositionModelspaceId := uint32(gl.GetAttribLocation(programId, gl.Str(\"vertexPosition_modelspace\\x00\")))\n\n\tvertexBufferData := []float32{\n\t\t-1.0, -1.0, 0.0,\n\t\t1.0, -1.0, 0.0,\n\t\t0.0, 1.0, 0.0,\n\t}\n\n\tvar triangleVertexArray uint32\n\tgl.GenVertexArrays(1, &triangleVertexArray)\n\tgl.BindVertexArray(triangleVertexArray)\n\n\tvar vertexBuffer uint32\n\tgl.GenBuffers(1, &vertexBuffer)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vertexBuffer)\n\tgl.BufferData(gl.ARRAY_BUFFER, len(vertexBufferData)*4, gl.Ptr(vertexBufferData), gl.STATIC_DRAW)\n\tdefer gl.DeleteBuffers(1, &vertexBuffer)\n\n\tfor window.GetKey(glfw.KeyEscape) != glfw.Press && !window.ShouldClose() {\n\n\t\t// Clear the screen\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT)\n\n\t\t// Use our shader\n\t\tgl.UseProgram(programId)\n\n\t\t// 1st attribute buffer : vertices\n\t\tgl.EnableVertexAttribArray(vertexPositionModelspaceId)\n\n\t\tgl.BindBuffer(gl.ARRAY_BUFFER, vertexBuffer)\n\n\t\tgl.VertexAttribPointer(\n\t\t\tvertexPositionModelspaceId, // The attribute we want to configure\n\t\t\t3, // size\n\t\t\tgl.FLOAT, // type\n\t\t\tfalse, // normalized?\n\t\t\t0, // stride\n\t\t\tgl.PtrOffset(0)) // array buffer offset\n\n\t\t// Draw the triangle !\n\t\tgl.DrawArrays(gl.TRIANGLES, 0, 3) // 3 indices starting at 0 -> 1 triangle\n\t\tgl.DisableVertexAttribArray(vertexPositionModelspaceId)\n\n\t\t// Swap buffers\n\t\twindow.SwapBuffers()\n\t\tglfw.PollEvents()\n\n\t}\n\n}", "func TextureBarrier() {\n\tsyscall.Syscall(gpTextureBarrier, 0, 0, 0, 0)\n}", "func ProgramUniform1fv(program uint32, location int32, count int32, value *float32) {\n C.glowProgramUniform1fv(gpProgramUniform1fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func (om *outputManager) loader() {\n\ttime.Sleep(150 * time.Millisecond)\n\tfor {\n\t\tfmt.Printf(\"\\r\\\\\")\n\t\ttime.Sleep(om.speed * time.Millisecond)\n\t\tfmt.Printf(\"\\r/\")\n\t\ttime.Sleep(om.speed * time.Millisecond)\n\t}\n}", "func startThermalCam() {\n\tfor {\n\t\tgrid = amg.ReadPixels()\n\t\ttime.Sleep(time.Duration(*refresh) * time.Millisecond)\n\t}\n}", "func main() {\n\t// We have more than 1 CPU, so let's use them\n\truntime.GOMAXPROCS(runtime.NumCPU())\n\ti := true\n\tvar prev, current pudding\n\tgo gl43.Init()\n\t//go gles2.Init()\n\tgo xfixes.Init(prev.dpy)\n\tgo composite.Init(prev.dpy)\n\tgo shape.Init(prev.dpy)\n\tgo egl.BindAPI(egl.OPENGL_API)\n\tfor i {\n\t\t// get ingredients for pudding\n\t\tcurrent = pudding_init(&prev)\n\t\t// panic if we're out of eggs\n\t\tif !current.created {\n\t\t\tpanic(\"error on custard initialization\")\n\t\t}\n\t\tpudding_stir(&current)\n\t\t// if we get tired of stirring, go back to initial setup and go again\n\t\tprev = current\n\t\t// throw out the bad ingredients\n\t\tpudding_eat(&current)\n\t}\n}", "func (u *Universe) Draw(w *glfw.Window, time float64) {\n\tplayer := u.Player\n\tloc := player.Location()\n\tplanetRen := u.PlanetMap[player.Planet.Spec.Id]\n\tplanetRotation := time / planetRen.Planet.Spec.RotationSeconds\n\tplanetRotation *= 2 * math.Pi\n\torbitPosition := time / planetRen.Planet.Spec.OrbitSeconds\n\torbitPosition *= 2 * math.Pi\n\tplanetLoc := planetRen.location(time, u.PlanetMap)\n\tplanetRotateNeg := mgl32.Rotate3DZ(-float32(planetRotation))\n\n\trotated := planetRotateNeg.Mul3x1(loc)\n\tsunDir := planetLoc.Add(rotated).Normalize()\n\n\tvpnDotSun := float64(rotated.Normalize().Dot(sunDir))\n\tlight1Color := mgl32.Vec3{0.5, 0.7, 1.0}\n\tlight1 := math.Max(math.Sqrt(vpnDotSun), 0)\n\tif math.IsNaN(light1) {\n\t\tlight1 = 0\n\t}\n\tlight2Color := mgl32.Vec3{0, 0, 0}\n\tlight2 := math.Max(math.Sqrt(1-vpnDotSun), 0)\n\tif math.IsNaN(light2) {\n\t\tlight2 = 0\n\t}\n\tlight3Color := mgl32.Vec3{0.7, 0.5, 0.4}\n\tlight3 := math.Max(0.6-math.Sqrt(math.Abs(vpnDotSun)), 0)\n\tif math.IsNaN(light3) {\n\t\tlight3 = 0\n\t}\n\tlight := light1Color.Mul(float32(light1)).Add(light2Color.Mul(float32(light2))).Add(light3Color.Mul(float32(light3)))\n\n\tgl.ClearColor(light.X(), light.Y(), light.Z(), 1)\n\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\n\tfor _, planetRen := range u.PlanetMap {\n\t\tplanetRen.Draw(u.Player, u.PlanetMap, w, time)\n\t}\n}", "func System(engine *gosge.Engine, gs geometry.Scale) error {\n\tms := movementSystem{\n\t\tgs: gs,\n\t}\n\n\tengine.World().AddSystem(ms.system)\n\n\treturn nil\n}", "func (vs *ViewServer) tick(){\n\t// Your code here.\n\tvs.mu.Lock()\n\tnow := time.Now()\n\ttimeWindow := DeadPings * PingInterval\n\n\t// check if we can get the primary server\n\tif now.Sub(vs.pingTime[vs.currentView.Primary]) >= timeWindow && vs.primaryACK == true{\n\t\t// primary already ACK currentView -> update view using backup\n\t\tupdate(vs, vs.currentView.Backup, vs.idleServer)\n\t}\n\n\t// check recent pings from backup server\n\tif now.Sub(vs.pingTime[vs.currentView.Backup]) >= timeWindow && vs.backupACK == true{\n\t\t// check if there's an idle server\n\t\tif vs.idleServer != \"\"{\n\t\t\t// use idle server as backup\n\t\t\tupdate(vs, vs.currentView.Primary, vs.idleServer)\n\t\t}\n\t}\n\n\t// check pings from idle server\n\tif now.Sub(vs.pingTime[vs.idleServer]) >= timeWindow{\n\t\tvs.idleServer = \"\"\n\t} else {\n\t\tif vs.primaryACK == true && vs.idleServer != \"\" && vs.currentView.Backup == \"\"{\n\t\t\t// no backup -> use idle server\n\t\t\tupdate(vs, vs.currentView.Primary, vs.idleServer)\n\t\t}\n\t}\n\n\tvs.mu.Unlock()\n}" ]
[ "0.5767527", "0.55359477", "0.54727024", "0.5452484", "0.5451158", "0.54179674", "0.538449", "0.52706987", "0.52585995", "0.521503", "0.5182942", "0.51372504", "0.51308936", "0.50198334", "0.5010248", "0.50090015", "0.50075775", "0.50046235", "0.4973266", "0.49707347", "0.4958839", "0.49405217", "0.493302", "0.4931137", "0.4931137", "0.49297833", "0.4912568", "0.4911632", "0.49012", "0.48554793", "0.48518565", "0.48514137", "0.48494664", "0.48398113", "0.48322275", "0.4818041", "0.48166287", "0.48162392", "0.47866488", "0.47855625", "0.47820047", "0.47524497", "0.4747543", "0.47435847", "0.47357833", "0.47334504", "0.47205853", "0.47202978", "0.4718913", "0.47122878", "0.46915585", "0.46913028", "0.46902987", "0.46848515", "0.46578875", "0.4654821", "0.46529612", "0.4640938", "0.46385425", "0.4636771", "0.46275225", "0.46065113", "0.46056712", "0.46034107", "0.45998803", "0.45995948", "0.45811743", "0.45791894", "0.4571518", "0.45693737", "0.4568399", "0.45664555", "0.45636538", "0.45594946", "0.4555039", "0.45528352", "0.45520934", "0.45467564", "0.45461136", "0.45421532", "0.4541993", "0.45304546", "0.45272943", "0.45242393", "0.45183387", "0.45131636", "0.45112985", "0.45073113", "0.45044068", "0.45000938", "0.4496445", "0.44962695", "0.44938612", "0.44899353", "0.44857517", "0.4484466", "0.4483044", "0.44754612", "0.44723207", "0.44691664", "0.44683084" ]
0.0
-1
indicate modifications to a range of a mapped buffer
func FlushMappedBufferRange(target uint32, offset int, length int) { C.glowFlushMappedBufferRange(gpFlushMappedBufferRange, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(length)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func MapBufferRange(target uint32, offset int, length int, access uint32) unsafe.Pointer {\n ret := C.glowMapBufferRange(gpMapBufferRange, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(length), (C.GLbitfield)(access))\n return (unsafe.Pointer)(ret)\n}", "func MapBufferRange(target uint32, offset int, length int, access uint32) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall6(gpMapBufferRange, 4, uintptr(target), uintptr(offset), uintptr(length), uintptr(access), 0, 0)\n\treturn (unsafe.Pointer)(ret)\n}", "func MapBufferRange(target uint32, offset int, length int, access uint32) unsafe.Pointer {\n\tret := C.glowMapBufferRange(gpMapBufferRange, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(length), (C.GLbitfield)(access))\n\treturn (unsafe.Pointer)(ret)\n}", "func MapBufferRange(target uint32, offset int, length int, access uint32) unsafe.Pointer {\n\tret := C.glowMapBufferRange(gpMapBufferRange, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(length), (C.GLbitfield)(access))\n\treturn (unsafe.Pointer)(ret)\n}", "func MapNamedBufferRange(buffer uint32, offset int, length int, access uint32) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall6(gpMapNamedBufferRange, 4, uintptr(buffer), uintptr(offset), uintptr(length), uintptr(access), 0, 0)\n\treturn (unsafe.Pointer)(ret)\n}", "func FlushMappedBufferRange(target uint32, offset int, length int) {\n\tsyscall.Syscall(gpFlushMappedBufferRange, 3, uintptr(target), uintptr(offset), uintptr(length))\n}", "func FlushMappedBufferRange(target uint32, offset int, length int) {\n C.glowFlushMappedBufferRange(gpFlushMappedBufferRange, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(length))\n}", "func BindBufferRange(target uint32, index uint32, buffer uint32, offset int, size int) {\n\tsyscall.Syscall6(gpBindBufferRange, 5, uintptr(target), uintptr(index), uintptr(buffer), uintptr(offset), uintptr(size), 0)\n}", "func (c *Computer) MapRange(from, to int, rfn data.SoftRead, wfn data.SoftWrite) {\n\tfor addr := from; addr < to; addr++ {\n\t\tc.smap.SetRead(addr, rfn)\n\t\tc.smap.SetWrite(addr, wfn)\n\t}\n}", "func BindBufferRange(target uint32, index uint32, buffer uint32, offset int, size int) {\n C.glowBindBufferRange(gpBindBufferRange, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func MapNamedBufferRange(buffer uint32, offset int, length int, access uint32) unsafe.Pointer {\n\tret := C.glowMapNamedBufferRange(gpMapNamedBufferRange, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(length), (C.GLbitfield)(access))\n\treturn (unsafe.Pointer)(ret)\n}", "func MapNamedBufferRange(buffer uint32, offset int, length int, access uint32) unsafe.Pointer {\n\tret := C.glowMapNamedBufferRange(gpMapNamedBufferRange, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(length), (C.GLbitfield)(access))\n\treturn (unsafe.Pointer)(ret)\n}", "func (c *Computer) MapRange(from, to int, rfn ReadMapFn, wfn WriteMapFn) {\n\tfor addr := from; addr < to; addr++ {\n\t\tc.RMap[addr] = rfn\n\t\tc.WMap[addr] = wfn\n\t}\n}", "func FlushMappedNamedBufferRange(buffer uint32, offset int, length int) {\n\tsyscall.Syscall(gpFlushMappedNamedBufferRange, 3, uintptr(buffer), uintptr(offset), uintptr(length))\n}", "func BindBufferRange(target uint32, index uint32, buffer uint32, offset int, size int) {\n\tC.glowBindBufferRange(gpBindBufferRange, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func BindBufferRange(target uint32, index uint32, buffer uint32, offset int, size int) {\n\tC.glowBindBufferRange(gpBindBufferRange, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func (buffer Buffer) BindBufferRange(target gl.Enum, index uint, offset int, size uint) {\n\tgl.BindBufferRange(gl.Enum(target), gl.Uint(index), gl.Uint(buffer), gl.Intptr(offset), gl.Sizeiptr(size))\n}", "func modifyRanges(b []byte, ranges [][]int, f modifier) []byte {\n\tidx := 0\n\tresult := make([]byte, 0, len(b)) // Heuristic\n\tfor _, interval := range ranges {\n\t\tlow, high := interval[0], interval[1]\n\t\tresult = append(result, b[idx:low]...)\n\t\tresult = append(result, f(b[low:high])...)\n\t\tidx = high\n\t}\n\treturn append(result, b[idx:]...)\n}", "func (b *logEventBuffer) normalRange(start, end int) (int, int) {\n\tif end < start || end == 0 {\n\t\t// invalid range\n\t\treturn -1, -1\n\t}\n\tsize := b.bufferSize()\n\tif start == 0 {\n\t\t// we reduce start by 1 to make it easier to calculate the index,\n\t\t// but we need to ensure we don't go below 0.\n\t\tstart++\n\t}\n\tif start == end {\n\t\t// ensure we have at least one block in range\n\t\tend++\n\t}\n\tif end-start > size {\n\t\t// ensure we don't have more than the buffer size\n\t\tstart = (end - size) + 1\n\t}\n\tstart = (start - 1) % size\n\tend = end % size\n\n\treturn start, end\n}", "func (x *fastReflection_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {\n}", "func TexBufferRange(target uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tsyscall.Syscall6(gpTexBufferRange, 5, uintptr(target), uintptr(internalformat), uintptr(buffer), uintptr(offset), uintptr(size), 0)\n}", "func (ba *FilterBitArray) SetRange(begin uint, end uint) {\n\t// Location of i in the array index is floor(i/byte_size) + 1. If it exceeds the\n\t// current byte array, we'll make a new one large enough to include the\n\t// specified bit-index\n\tstartByteIndex := ba.byteIndex(begin)\n\tendByteIndex := ba.byteIndex(end)\n\n\tif end >= ba.Capacity() {\n\t\tba.expand(endByteIndex + 1)\n\t}\n\n\tfirstByteMask := byteMask << (begin % byteSize)\n\tlastByteMask := byteMask >> ((byteSize - end - 1) % byteSize)\n\n\tif startByteIndex == endByteIndex {\n\t\t(*ba)[startByteIndex] |= (firstByteMask & lastByteMask)\n\t} else {\n\t\t(*ba)[startByteIndex] |= firstByteMask\n\t\tfor i := startByteIndex + 1; i < endByteIndex; i++ {\n\t\t\t(*ba)[i] = byteMask\n\t\t}\n\t\t(*ba)[endByteIndex] |= lastByteMask\n\t}\n}", "func (wt HWT) AccessRange(from, to uint) (s []string, err error) {\n\tif to >= wt.Maps[0].Length() {\n\t\treturn s, errors.New(\"Position out of range \")\n\t}\n\ts = make([]string, int(to-from+1))\n\tvar wg sync.WaitGroup\n\tfor i := uint(0); i <= to-from; i++ {\n\t\twg.Add(1)\n\t\tgo func(i uint) {\n\t\t\ts[i] = wt.Dict.Get(wt.HWTArray.Access(from + i))\n\t\t\twg.Done()\n\t\t}(i)\n\t}\n\twg.Wait()\n\treturn s, nil\n}", "func BindBuffersRange(target uint32, first uint32, count int32, buffers *uint32, offsets *int, sizes *int) {\n\tsyscall.Syscall6(gpBindBuffersRange, 6, uintptr(target), uintptr(first), uintptr(count), uintptr(unsafe.Pointer(buffers)), uintptr(unsafe.Pointer(offsets)), uintptr(unsafe.Pointer(sizes)))\n}", "func TexBufferRange(target uint32, internalformat uint32, buffer uint32, offset int, size int) {\n C.glowTexBufferRange(gpTexBufferRange, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func (h *MapInt16ToInt8) Modify(k int16, fn func(v *int8)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func FlushMappedNamedBufferRange(buffer uint32, offset int, length int) {\n\tC.glowFlushMappedNamedBufferRange(gpFlushMappedNamedBufferRange, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(length))\n}", "func FlushMappedNamedBufferRange(buffer uint32, offset int, length int) {\n\tC.glowFlushMappedNamedBufferRange(gpFlushMappedNamedBufferRange, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(length))\n}", "func (h *MapInt16ToUint) Modify(k int16, fn func(v *uint)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func (m *HashMap) Range(fn func(k txHash, t TxDesc) error) error {\n\tm.lock.RLock()\n\tdefer m.lock.RUnlock()\n\n\tfor k, v := range m.data {\n\t\terr := fn(k, v)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\treturn nil\n}", "func (h *MapInt16ToInt) Modify(k int16, fn func(v *int)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func updateRangeDescriptor(\n\tctx context.Context,\n\tb *kv.Batch,\n\tdescKey roachpb.Key,\n\toldValue []byte,\n\tnewDesc *roachpb.RangeDescriptor,\n) error {\n\t// This is subtle: []byte(nil) != interface{}(nil). A []byte(nil) refers to\n\t// an empty value. An interface{}(nil) refers to a non-existent value. So\n\t// we're careful to construct interface{}(nil)s when newDesc/oldDesc are nil.\n\tvar newValue interface{}\n\tif newDesc != nil {\n\t\tif err := newDesc.Validate(); err != nil {\n\t\t\treturn errors.Wrapf(err, \"validating new descriptor %+v (old descriptor is %+v)\",\n\t\t\t\tnewDesc, oldValue)\n\t\t}\n\t\tnewBytes, err := protoutil.Marshal(newDesc)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tnewValue = newBytes\n\t}\n\tb.CPut(descKey, newValue, oldValue)\n\treturn nil\n}", "func (r Range) iterate(fn func(*buffer.View)) {\n\tr.pk.buf.SubApply(r.offset, r.length, fn)\n}", "func (h *MapInt16ToInt64) Modify(k int16, fn func(v *int64)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall(gpMapBuffer, 2, uintptr(target), uintptr(access), 0)\n\treturn (unsafe.Pointer)(ret)\n}", "func (h *MapInt16ToUint8) Modify(k int16, fn func(v *uint8)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func (r *Ring) set(p int, v interface{}) {\n\tr.buff[r.mod(p)] = v\n}", "func modifyUsingSlice(sls []int){\n\tsls[0] = 500\n}", "func (h *MapInt16ToInt16) Modify(k int16, fn func(v *int16)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func (h *MapInt16ToUint32) Modify(k int16, fn func(v *uint32)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func (g *mapGen) genRange() {\n\tg.P(\"func (x *\", g.typeName, \") Range(f func(\", protoreflectPkg.Ident(\"MapKey\"), \", \", protoreflectPkg.Ident(\"Value\"), \") bool) {\")\n\t// invalid map\n\tg.P(\"if x.m == nil {\")\n\tg.P(\"return\")\n\tg.P(\"}\")\n\t// valid map\n\tg.P(\"for k, v := range *x.m {\")\n\tg.P(\"mapKey := (\", protoreflectPkg.Ident(\"MapKey\"), \")(\", kindToValueConstructor(g.field.Message.Fields[0].Desc.Kind()), \"(k))\")\n\tswitch g.field.Message.Fields[1].Desc.Kind() {\n\tcase protoreflect.MessageKind:\n\t\tg.P(\"mapValue := \", kindToValueConstructor(g.field.Message.Fields[1].Desc.Kind()), \"(v.ProtoReflect())\")\n\tdefault:\n\t\tg.P(\"mapValue := \", kindToValueConstructor(g.field.Message.Fields[1].Desc.Kind()), \"(v)\")\n\t}\n\tg.P(\"if !f(mapKey, mapValue) {\")\n\tg.P(\"break\")\n\tg.P(\"}\")\n\tg.P(\"}\")\n\tg.P(\"}\")\n\tg.P()\n}", "func (h *MapInt16ToInt32) Modify(k int16, fn func(v *int32)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func (h *MapInt16ToUint16) Modify(k int16, fn func(v *uint16)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func (b *ChangeBuffer) Range() <-chan *list.Element {\n\tch := make(chan *list.Element)\n\tgo func() {\n\t\tdefer close(ch)\n\t\tfor c := b.Front(); c != nil; c = c.Next() {\n\t\t\tch <- c\n\t\t}\n\t}()\n\treturn ch\n}", "func BindBuffersRange(target uint32, first uint32, count int32, buffers *uint32, offsets *int, sizes *int) {\n C.glowBindBuffersRange(gpBindBuffersRange, (C.GLenum)(target), (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(buffers)), (*C.GLintptr)(unsafe.Pointer(offsets)), (*C.GLsizeiptr)(unsafe.Pointer(sizes)))\n}", "func dumpmemrange(data unsafe.Pointer, len uintptr) {\n\tdumpint(uint64(len))\n\tdwrite(data, len)\n}", "func (f *volatileFile) ShmMap(region int, size int, extend int) (unsafe.Pointer, C.int) {\n\tf.mu.Lock()\n\tdefer f.mu.Unlock()\n\n\tif region < len(f.shm) {\n\t\t// The region was already allocated.\n\t\tf.shmRefCount++\n\t\treturn f.shm[region], C.SQLITE_OK\n\t}\n\tif extend == 0 {\n\t\treturn nil, C.SQLITE_OK\n\t}\n\n\tdata := C.sqlite3_malloc(C.int(size))\n\tif data == nil {\n\t\treturn nil, C.SQLITE_NOMEM\n\t}\n\tC.memset(data, C.int(0), C.size_t(size))\n\n\tf.shm = append(f.shm, data)\n\tf.shmRefCount++\n\n\treturn data, C.SQLITE_OK\n}", "func (h *MapInt16ToUint64) Modify(k int16, fn func(v *uint64)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func (r *baseNsRange) Set(start, end int) { r.start, r.end = start, end }", "func TextureBufferRange(texture uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tsyscall.Syscall6(gpTextureBufferRange, 5, uintptr(texture), uintptr(internalformat), uintptr(buffer), uintptr(offset), uintptr(size), 0)\n}", "func (c *changeCache) processUnusedSequenceRange(docID string) {\n\t// _sync:unusedSequences:fromSeq:toSeq\n\tsequencesStr := strings.TrimPrefix(docID, c.metaKeys.UnusedSeqRangePrefix())\n\tsequences := strings.Split(sequencesStr, \":\")\n\tif len(sequences) != 2 {\n\t\treturn\n\t}\n\n\tfromSequence, err := strconv.ParseUint(sequences[0], 10, 64)\n\tif err != nil {\n\t\tbase.WarnfCtx(c.logCtx, \"Unable to identify from sequence number for unused sequences notification with key: %s, error:\", base.UD(docID), err)\n\t\treturn\n\t}\n\ttoSequence, err := strconv.ParseUint(sequences[1], 10, 64)\n\tif err != nil {\n\t\tbase.WarnfCtx(c.logCtx, \"Unable to identify to sequence number for unused sequence notification with key: %s, error:\", base.UD(docID), err)\n\t\treturn\n\t}\n\n\t// TODO: There should be a more efficient way to do this\n\tfor seq := fromSequence; seq <= toSequence; seq++ {\n\t\tc.releaseUnusedSequence(seq, time.Now())\n\t}\n}", "func (d *Device) FlushMappedRanges(r ...MappedMemoryRange) error {\n\n\td.PhysicalDevice.VKPhysicalDeviceProperties.Limits.Deref()\n\n\tatomSize := d.PhysicalDevice.VKPhysicalDeviceProperties.Limits.NonCoherentAtomSize\n\n\tranges := make([]vk.MappedMemoryRange, len(r))\n\tfor i := range r {\n\t\tranges[i] = r[i].VKMappedMemoryRange()\n\n\t\t// we need to make sure the range is a mltiple of atomSize\n\t\tm := (ranges[i].Size % atomSize)\n\t\tranges[i].Size = ranges[i].Size - m + atomSize\n\n\t}\n\n\treturn vk.Error(vk.FlushMappedMemoryRanges(d.VKDevice, uint32(len(ranges)), ranges))\n}", "func (buf *requestBuffer) modSlot(pos uint16, modFunc func(req *bufferedMCRequest, p uint16) (bool, error)) (bool, error) {\n\tvar err error = nil\n\terr = buf.validatePos(pos)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\treq := buf.slots[pos]\n\n\tvar modified bool\n\n\tif req != nil && req.req != nil {\n\t\tmodified, err = modFunc(req, pos)\n\t} else {\n\t\tmodified = false\n\t}\n\treturn modified, err\n}", "func (r *ShardReader) seek(requestedRange biopb.CoordRange) {\n\t// For each field (except coord; more on that below), find the subset of index\n\t// blocks that contain requestedRange.\n\tcoordRange := requestedRange\n\tfor f := int(gbam.FieldCoord + 1); f < gbam.NumFields; f++ {\n\t\tfr := r.fieldReaders[f]\n\t\tif fr == nil {\n\t\t\tcontinue\n\t\t}\n\t\tfor _, b := range fr.index.Blocks {\n\t\t\tif blockIntersectsRange(b.StartAddr, b.EndAddr, requestedRange) {\n\t\t\t\tfr.blocks = append(fr.blocks, b)\n\t\t\t}\n\t\t}\n\t\tif len(fr.blocks) == 0 {\n\t\t\t// There's no record to be read in the range. We'll report EOF when\n\t\t\t// reading later. Usually, if fr.blocks is empty for one field, it's\n\t\t\t// empty for any other field too.\n\t\t\treturn\n\t\t}\n\t\tcoordRange.Start = coordRange.Start.Min(fr.blocks[0].StartAddr)\n\t}\n\n\t// We need to advance the read pointer of each field to the first record at or\n\t// after requestedRange.Start. We do the following:\n\t//\n\t// 1. Assume that (say) FieldSeq has three recordio blocks {b0, b1, b2}, that\n\t// intersect with requestedRange.\n\t//\n\t// 2. Read the recordio blocks for FieldCoord so that they cover (b0,b1,b2).\n\t// Then sequentially scan these blocks and find b0.StartAddr.\n\t//\n\t// 3. Sequentially scan both FieldCoord and FieldSeq simultaneously, until the\n\t// the read pointer for FieldCoord is at requestedRange.Start.\n\t//\n\t// The below code does this for all the fields in parallel.\n\t// Read FieldCoord so that it covers all the recordioblocks read by other\n\t// fields.\n\tfr := r.fieldReaders[gbam.FieldCoord]\n\tfor _, b := range fr.index.Blocks {\n\t\tif blockIntersectsRange(b.StartAddr, b.EndAddr, coordRange) {\n\t\t\tfr.blocks = append(fr.blocks, b)\n\t\t}\n\t}\n\tif len(fr.blocks) == 0 {\n\t\t// This shouldn't happen, unless is the file is corrupt\n\t\terr := errors.Errorf(\"%v: Cannot find blocks for coords in range %+v, index: %+v\", fr.label, coordRange, fr.index)\n\t\tvlog.Error(err)\n\t\tr.err.Set(err)\n\t\treturn\n\t}\n\n\t// readingField is for eliding calls to addr.GE() below in the fast path.\n\tvar readingField [gbam.NumFields]bool\n\n\t// getReader() returns a fieldReader for the given reader, or nil if the field\n\t// is dropped by the user, or all its data blocks are after \"addr\"\n\tgetReader := func(f gbam.FieldType, addr biopb.Coord) *fieldReader {\n\t\tfr = r.fieldReaders[f]\n\t\tif fr != nil {\n\t\t\tif !fr.maybeReadNextBlock() {\n\t\t\t\tvlog.Fatalf(\"%v: EOF while reading %+v\", fr.label, addr)\n\t\t\t}\n\t\t\tif readingField[f] {\n\t\t\t\treturn fr\n\t\t\t}\n\t\t\tif addr.GE(fr.fb.index.StartAddr) {\n\t\t\t\treadingField[f] = true\n\t\t\t\treturn fr\n\t\t\t}\n\t\t}\n\t\treturn nil\n\t}\n\n\t// Seek the field pointers to requestedRange.Start\n\tfor {\n\t\tif !r.maybeReadNextCoordBlock() {\n\t\t\t// No data to read\n\t\t\tvlog.VI(1).Infof(\"Reached end of data, %+v\", r.addrGenerator)\n\t\t\treturn\n\t\t}\n\t\tfr := r.fieldReaders[gbam.FieldCoord]\n\t\trefID, pos := fr.fb.peekCoordField()\n\t\tsave := r.addrGenerator\n\t\taddr := r.addrGenerator.Generate(refID, pos)\n\t\tif addr.GE(requestedRange.Start) {\n\t\t\tr.addrGenerator = save\n\t\t\treturn\n\t\t}\n\t\tfr.fb.readCoordField()\n\t\tif fr := getReader(gbam.FieldFlags, addr); fr != nil {\n\t\t\tfr.fb.readFlagsField()\n\t\t}\n\t\tif fr := getReader(gbam.FieldMapq, addr); fr != nil {\n\t\t\tfr.fb.readMapqField()\n\t\t}\n\t\tif fr := getReader(gbam.FieldMateRefID, addr); fr != nil {\n\t\t\tfr.fb.readVarintDeltaField()\n\t\t}\n\t\tif fr := getReader(gbam.FieldMatePos, addr); fr != nil {\n\t\t\tfr.fb.readVarintDeltaField()\n\t\t}\n\t\tif fr := getReader(gbam.FieldTempLen, addr); fr != nil {\n\t\t\tfr.fb.readVarintField()\n\t\t}\n\t\tif fr := getReader(gbam.FieldCigar, addr); fr != nil {\n\t\t\tfr.fb.skipCigarField()\n\t\t}\n\t\tif fr := getReader(gbam.FieldName, addr); fr != nil {\n\t\t\tfr.fb.skipStringDeltaField()\n\t\t}\n\t\tif fr := getReader(gbam.FieldSeq, addr); fr != nil {\n\t\t\tfr.fb.skipSeqField()\n\t\t}\n\t\tif fr := getReader(gbam.FieldQual, addr); fr != nil {\n\t\t\tfr.fb.skipQualField()\n\t\t}\n\t\tif fr := getReader(gbam.FieldAux, addr); fr != nil {\n\t\t\tfr.fb.skipAuxField()\n\t\t}\n\t}\n}", "func (m *Map) Map(seqno uint16, pid uint16) (bool, uint16, uint16) {\n\tm.mu.Lock()\n\tdefer m.mu.Unlock()\n\n\tif m.delta == 0 && m.entries == nil {\n\t\tif compare(m.next, seqno) <= 0 ||\n\t\t\tuint16(m.next - seqno) > 8 * 1024 {\n\t\t\tm.next = seqno + 1\n\t\t\tm.nextPid = pid\n\t\t}\n\t\treturn true, seqno, 0\n\t}\n\n\tif compare(m.next, seqno) <= 0 {\n\t\tif uint16(seqno-m.next) > 8*1024 {\n\t\t\tm.reset()\n\t\t\tm.next = seqno + 1\n\t\t\tm.nextPid = pid\n\t\t\treturn true, seqno, 0\n\t\t}\n\t\taddMapping(m, seqno, m.delta, m.pidDelta)\n\t\tm.next = seqno + 1\n\t\tm.nextPid = pid\n\t\treturn true, seqno + m.delta, m.pidDelta\n\t}\n\n\tif uint16(m.next-seqno) > 8*1024 {\n\t\tm.reset()\n\t\tm.next = seqno + 1\n\t\tm.nextPid = pid\n\t\treturn true, seqno, 0\n\t}\n\n\treturn m.direct(seqno)\n}", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n ret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access))\n return (unsafe.Pointer)(ret)\n}", "func (ot *T) correctOffset(offset int64) {\n\tdrop := 0\n\tfor i, ar := range ot.ackedRanges {\n\t\tif offset < ar.from {\n\t\t\tbreak\n\t\t}\n\t\tdrop = i + 1\n\t\tif offset < ar.to {\n\t\t\toffset = ar.to\n\t\t\tbreak\n\t\t}\n\t}\n\tif drop > 0 {\n\t\tot.ackedRanges = ot.ackedRanges[drop:]\n\t}\n\tot.offset.Val = offset\n\tot.offset.Meta = encodeAckedRanges(offset, ot.ackedRanges)\n}", "func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {\n\tif x.Authority != \"\" {\n\t\tvalue := protoreflect.ValueOfString(x.Authority)\n\t\tif !f(fd_MsgUpdateParams_authority, value) {\n\t\t\treturn\n\t\t}\n\t}\n\tif x.Params != nil {\n\t\tvalue := protoreflect.ValueOfMessage(x.Params.ProtoReflect())\n\t\tif !f(fd_MsgUpdateParams_params, value) {\n\t\t\treturn\n\t\t}\n\t}\n}", "func (pm *Map) Range(f func(key, value interface{})) {\n\tpm.root.forEach(f)\n}", "func TexBufferRange(target uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tC.glowTexBufferRange(gpTexBufferRange, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func TexBufferRange(target uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tC.glowTexBufferRange(gpTexBufferRange, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func (m ConcurrentMap[T]) Range(fn RangeFunc[T]) {\n\tfor idx := range m.shards {\n\t\tshard := m.shards[idx]\n\t\tshard.RLock()\n\t\tfor key, value := range shard.items {\n\t\t\tfn(key, value)\n\t\t}\n\t\tshard.RUnlock()\n\t}\n}", "func MapBuffer(target gl.Enum, access gl.Enum) {\n\tgl.MapBuffer(gl.Enum(target), gl.Enum(access))\n}", "func (s *BasejossListener) EnterRange_(ctx *Range_Context) {}", "func (render *Renderer_impl)Mmap( m *Mapped_resource, buf *Buffer, mm Map_mode) fundations.Result{\n\n}", "func (fr *FileRing) UpdateRange(start, end int64) []File {\n\tfr.lock.Lock()\n\tdefer fr.lock.Unlock()\n\n\tvar deleted []File\n\n\tfor k, v := range fr.hashMap {\n\t\tif !InRange(k, start, end, M) {\n\t\t\tdeleted = append(deleted, v.SortedFiles()...)\n\t\t\tdelete(fr.hashMap, k)\n\t\t}\n\t}\n\tfr.start = start\n\tfr.end = end\n\n\treturn deleted\n}", "func (x *fastReflection_Bech32PrefixRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {\n}", "func (i *inflight) CommitRange(minIndex, maxIndex uint64) {\n\ti.Lock()\n\tdefer i.Unlock()\n\n\t// Update the minimum index\n\tminIndex = max(i.minCommit, minIndex)\n\n\t// Commit each index\n\tfor idx := minIndex; idx <= maxIndex; idx++ {\n\t\ti.commit(idx)\n\t}\n}", "func (m *Map) Range(f func(key, value interface{}) bool) {\n\tsplits := m.splits\n\tfor i := 0; i < len(splits); i++ {\n\t\tif !splits[i].srange(f) {\n\t\t\treturn\n\t\t}\n\t}\n}", "func (s SyscallCounter) AddRange(m map[string]int) {\n\tfor k, v := range m {\n\t\ts[k] = v\n\t}\n}", "func ExampleBucket_MapRange() {\n\tbx, _ := buckets.Open(tempfile())\n\tdefer os.Remove(bx.Path())\n\tdefer bx.Close()\n\n\t// Delete any existing bucket named \"years\".\n\tbx.Delete([]byte(\"years\"))\n\n\t// Create a new bucket named \"years\".\n\tyears, _ := bx.New([]byte(\"years\"))\n\n\t// Setup items to insert in `years` bucket\n\titems := []struct {\n\t\tKey, Value []byte\n\t}{\n\t\t{[]byte(\"1970\"), []byte(\"70\")},\n\t\t{[]byte(\"1975\"), []byte(\"75\")},\n\t\t{[]byte(\"1980\"), []byte(\"80\")},\n\t\t{[]byte(\"1985\"), []byte(\"85\")},\n\t\t{[]byte(\"1990\"), []byte(\"90\")}, // min = 1990\n\t\t{[]byte(\"1995\"), []byte(\"95\")}, // min < 1995 < max\n\t\t{[]byte(\"2000\"), []byte(\"00\")}, // max = 2000\n\t\t{[]byte(\"2005\"), []byte(\"05\")},\n\t\t{[]byte(\"2010\"), []byte(\"10\")},\n\t}\n\n\t// Insert 'em.\n\tif err := years.Insert(items); err != nil {\n\t\tfmt.Printf(\"could not insert items in `years` bucket: %v\\n\", err)\n\t}\n\n\t// Time range to map over: 1990 <= key <= 2000.\n\tmin := []byte(\"1990\")\n\tmax := []byte(\"2000\")\n\n\t// Setup slice of items to collect results.\n\ttype item struct {\n\t\tKey, Value []byte\n\t}\n\tresults := []item{}\n\n\t// Anon func to map over matched keys.\n\tdo := func(k, v []byte) error {\n\t\tresults = append(results, item{k, v})\n\t\treturn nil\n\t}\n\n\tif err := years.MapRange(do, min, max); err != nil {\n\t\tfmt.Printf(\"could not map items within range: %v\\n\", err)\n\t}\n\n\tfor _, item := range results {\n\t\tfmt.Printf(\"%s -> %s\\n\", item.Key, item.Value)\n\t}\n\t// Output:\n\t// 1990 -> 90\n\t// 1995 -> 95\n\t// 2000 -> 00\n}", "func Bcm2835_pwm_set_range(Channel byte, _range uint32) {\n\tcChannel, _ := (C.uint8_t)(Channel), cgoAllocsUnknown\n\tc_range, _ := (C.uint32_t)(_range), cgoAllocsUnknown\n\tC.bcm2835_pwm_set_range(cChannel, c_range)\n}", "func BindBuffersRange(target uint32, first uint32, count int32, buffers *uint32, offsets *int, sizes *int) {\n\tC.glowBindBuffersRange(gpBindBuffersRange, (C.GLenum)(target), (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(buffers)), (*C.GLintptr)(unsafe.Pointer(offsets)), (*C.GLsizeiptr)(unsafe.Pointer(sizes)))\n}", "func BindBuffersRange(target uint32, first uint32, count int32, buffers *uint32, offsets *int, sizes *int) {\n\tC.glowBindBuffersRange(gpBindBuffersRange, (C.GLenum)(target), (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(buffers)), (*C.GLintptr)(unsafe.Pointer(offsets)), (*C.GLsizeiptr)(unsafe.Pointer(sizes)))\n}", "func (s *Int64Map) Range(f func(key int64, value interface{}) bool) {\n\tx := s.header.loadNext(0)\n\tfor x != nil {\n\t\tif !x.flags.MGet(fullyLinked|marked, fullyLinked) {\n\t\t\tx = x.loadNext(0)\n\t\t\tcontinue\n\t\t}\n\t\tif !f(x.key, x.loadVal()) {\n\t\t\tbreak\n\t\t}\n\t\tx = x.loadNext(0)\n\t}\n}", "func MapRange(value, low1, high1, low2, high2 float64) float64 {\n\treturn low2 + (high2-low2)*(value-low1)/(high1-low1)\n}", "func (s *sliding) memWrite(bufs []Update) {\n\t// pos is only for debugging\n\tvar pos = s.end()\n\tfor _, buf := range bufs {\n\t\t// remember most recent position for Blkno\n\t\toldpos, ok := s.posForAddr(buf.Addr)\n\t\tif ok && oldpos >= s.mutable {\n\t\t\tutil.DPrintf(5, \"memWrite: absorb %d pos %d old %d\\n\",\n\t\t\t\tbuf.Addr, pos, oldpos)\n\t\t\ts.update(oldpos, buf)\n\t\t} else {\n\t\t\tif ok {\n\t\t\t\tutil.DPrintf(5, \"memLogMap: replace %d pos %d old %d\\n\",\n\t\t\t\t\tbuf.Addr, pos, oldpos)\n\t\t\t} else {\n\t\t\t\tutil.DPrintf(5, \"memLogMap: add %d pos %d\\n\",\n\t\t\t\t\tbuf.Addr, pos)\n\t\t\t}\n\t\t\ts.append(buf)\n\t\t\tpos += 1\n\t\t}\n\t}\n}", "func (this *ViewScanner) MergeRange(newRange *ViewRange) {\n\tlog.Printf(\"considering new range %v\", newRange)\n\tfor _, r := range this.ranges {\n\t\t// if the new range is a subset of an existing range\n\t\t// this new ragne replaces it\n\t\tif newRange.IsSubsetOf(r) {\n\t\t\tlog.Printf(\"new is subset, shrinking\")\n\t\t\tr.Start = newRange.Start\n\t\t\tr.End = newRange.End\n\t\t\treturn\n\t\t}\n\n\t\tif r.IsSubsetOf(newRange) {\n\t\t\tlog.Printf(\"old subset, dropping\")\n\t\t\t// drop this factor\n\t\t\t// we already have a stricter range that contains it\n\t\t\treturn\n\t\t}\n\t}\n\n\tlog.Printf(\"couldn't merge, so add\")\n\t// if we got here, we add it as a new range\n\tthis.ranges = append(this.ranges, newRange)\n}", "func TransformFeedbackBufferRange(xfb uint32, index uint32, buffer uint32, offset int, size int) {\n\tsyscall.Syscall6(gpTransformFeedbackBufferRange, 5, uintptr(xfb), uintptr(index), uintptr(buffer), uintptr(offset), uintptr(size), 0)\n}", "func (x *fastReflection_MsgDepositValidatorRewardsPoolResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {\n}", "func (md *SyncMetadata) Range(fn func(key string, value interface{}) bool) {\n\tmd.lock.RLock()\n\tdefer md.lock.RUnlock()\n\n\tmd.meta.Range(fn)\n}", "func mapassign(t, m, k unsafe.Pointer) unsafe.Pointer", "func (n *Node) SetSliceBounds(low, high, max *Node)", "func (m *Map) Range(f func(Value, Value) bool) {\n\tm.backingVector.Range(func(bucket privateMapItemBucket) bool {\n\t\tfor _, item := range bucket {\n\t\t\tif !f(item.Key, item.Value) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t}\n\t\treturn true\n\t})\n}", "func (b *buffer) pin(loc Location, ptr unsafe.Pointer) {\n\tif !atomic.CompareAndSwapPointer(b.index(loc.index()), nil, ptr) {\n\t\tpanic(\"double pin\")\n\t}\n\t// atomic.StorePointer(b.index(loc.index()), ptr)\n\tatomic.AddUint32(&b.free, ^uint32(0))\n}", "func (bitmap *bitmap) set(seqno uint16) {\n\tif !bitmap.valid || seqnoInvalid(seqno, bitmap.first) {\n\t\tbitmap.first = seqno\n\t\tbitmap.bitmap = 1\n\t\tbitmap.valid = true\n\t\treturn\n\t}\n\n\tif compare(bitmap.first, seqno) > 0 {\n\t\treturn\n\t}\n\n\tif seqno-bitmap.first >= 32 {\n\t\tshift := seqno - bitmap.first - 31\n\t\tbitmap.bitmap >>= shift\n\t\tbitmap.first += shift\n\t}\n\n\tif (bitmap.bitmap & 1) == 1 {\n\t\tones := bits.TrailingZeros32(^bitmap.bitmap)\n\t\tbitmap.bitmap >>= ones\n\t\tbitmap.first += uint16(ones)\n\t}\n\n\tbitmap.bitmap |= (1 << uint16(seqno-bitmap.first))\n}", "func (r sUintRangeIterator) Range(handlers ...UintHandler) error {\n\treturn UintRange(r.iter, handlers...)\n}", "func (m *Cmap) Range(f func(key, value interface{}) bool) {\n\tn := m.getInode()\n\tfor i := 0; i < len(n.buckets); i++ {\n\t\tb := &(n.buckets[i])\n\t\tif !b.inited() {\n\t\t\tn.initBucket(uintptr(i))\n\t\t}\n\t\tfor _, e := range b.clone() {\n\t\t\tif !f(e.key, e.value) {\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\t}\n}", "func (l *RandomAccessGroupLookup) Range(f func(key flux.GroupKey, value interface{})) {\n\tfor _, e := range l.elements {\n\t\tif e.Deleted {\n\t\t\tcontinue\n\t\t}\n\t\tf(e.Key, e.Value)\n\t}\n}", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n\tret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access))\n\treturn (unsafe.Pointer)(ret)\n}", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n\tret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access))\n\treturn (unsafe.Pointer)(ret)\n}", "func (r *Ring) MarkComplete(offset int) {\n\trel := offset - r.lowestPending\n\tif rel < 0 {\n\t\treturn // already committed\n\t}\n\tvar pos uint\n\tif uint(rel) < r.bitCapacity() {\n\t\tpos = r.wrapForward(r.tailBit + uint(rel))\n\t\tif getBit(r.bitmap, pos) {\n\t\t\treturn // already marked\n\t\t}\n\t} else {\n\t\tr.resize(rel+1, r.CompleteRangeSize())\n\t\tpos = uint(rel)\n\t}\n\tsetBit(r.bitmap, pos)\n\tr.numCommittable++\n\t// lowestPending is adjusted below, if the lowest pending offset is being marked complete.\n\tr.highestPending = -1 // unset cached offset\n\tr.lowestComplete = -1 // unset cached offset\n\tif r.highestComplete < offset {\n\t\tr.highestComplete = offset\n\t}\n\tif pos != r.tailBit {\n\t\treturn\n\t}\n\t// When the lowest pending offset is being marked complete, coalesce with subsequent offsets\n\t// which are already marked complete:\n\tfor tryClearBit(r.bitmap, r.tailBit) {\n\t\tr.tailBit = r.wrapForward(r.tailBit + 1)\n\t\tr.numCommittable--\n\t\tr.lowestPending++\n\t}\n\t// Reset internal state if all offsets are committable:\n\tif r.lowestPending > r.highestMarked {\n\t\tr.lowestPending = -1\n\t\tr.tailBit = 0\n\t\tr.resetBitmap(minCapacity)\n\t\treturn\n\t}\n\trangeSize := r.CompleteRangeSize()\n\t// If the bitmap is less than 25% full, resize it to be approximately 50% full:\n\tif uint(rangeSize*4) < r.bitCapacity() {\n\t\tr.resize(rangeSize*2, rangeSize)\n\t}\n}", "func (d *Debugger) Map(toMap MemRegion) error {\n\tvar prot int\n\n\tif toMap.size == 0 {\n\t\treturn errors.New(\"Zero-length mappings are not permitted.\")\n\t}\n\n\tif d.mapped.Contains(toMap.name) {\n\t\treturn fmt.Errorf(\"A mapping named \\\"%s\\\" already exists.\", toMap.name)\n\t}\n\n\tprot = 0\n\tif toMap.perms.Read {\n\t\tprot |= uc.PROT_READ\n\t}\n\tif toMap.perms.Write {\n\t\tprot |= uc.PROT_WRITE\n\t}\n\tif toMap.perms.Exec {\n\t\tprot |= uc.PROT_EXEC\n\t}\n\n\tif err := d.mu.MemMapProt(toMap.base, toMap.size, prot); err != nil {\n\t\treturn err\n\t}\n\n\tif data, err := toMap.LoadInputData(); err == nil {\n\t\tif err := d.WriteMem(toMap.base, data); err != nil {\n\t\t\treturn err\n\t\t}\n\t} else {\n\t\treturn err\n\t}\n\n\td.mapped.Add(toMap)\n\treturn nil\n}", "func (b *BitMap) Set(offset uint64) {\n\n\tb.checkOffset(offset)\n\tindex, bit := indexAndOverbit(offset)\n\tcount := uint64(1 << bit)\n\n\tb.store[index] = b.store[index] | count\n}", "func (h *HamtFunctional) Range(fn func(KeyI, interface{}) bool) {\n\th.hamtBase.Range(fn)\n}", "func (m *Uint64) Range(f func(key interface{}, val *atomics.Uint64) bool) {\n\tm.m.Range(func(key, val interface{}) bool {\n\t\treturn f(key, val.(*atomics.Uint64))\n\t})\n}", "func (m *privateSetMap) Range(f func(Value, struct{}) bool) {\n\tm.backingVector.Range(func(bucket privateprivateSetMapItemBucket) bool {\n\t\tfor _, item := range bucket {\n\t\t\tif !f(item.Key, item.Value) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t}\n\t\treturn true\n\t})\n}", "func (s *Set) Range(f func(Value) bool) {\n\ts.backingMap.Range(func(k Value, _ struct{}) bool {\n\t\treturn f(k)\n\t})\n}", "func (x *fastReflection_MsgSetWithdrawAddressResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {\n}" ]
[ "0.70530194", "0.6992119", "0.6708913", "0.6708913", "0.6444576", "0.6429811", "0.6411439", "0.6302163", "0.6264214", "0.6229601", "0.60607624", "0.60607624", "0.59751076", "0.5904164", "0.58489573", "0.58489573", "0.57737243", "0.575936", "0.5747891", "0.5641713", "0.56220686", "0.5611718", "0.5581905", "0.5554104", "0.5523242", "0.55157477", "0.5495456", "0.5495456", "0.54801196", "0.54801077", "0.5472734", "0.5464363", "0.545993", "0.5442295", "0.5439147", "0.5435914", "0.54342777", "0.54304475", "0.54143715", "0.53986025", "0.53972244", "0.5391067", "0.5388969", "0.5386529", "0.53743845", "0.53560954", "0.53140527", "0.5305976", "0.5291565", "0.52903455", "0.5267389", "0.52622", "0.52534", "0.52355903", "0.52231485", "0.52193993", "0.5210174", "0.51991636", "0.5199153", "0.51969147", "0.51969147", "0.51961696", "0.51529515", "0.5150705", "0.5138064", "0.513715", "0.5119581", "0.51117533", "0.51031834", "0.51022947", "0.5077373", "0.50770473", "0.5076421", "0.5076421", "0.5069045", "0.506404", "0.5058636", "0.50342166", "0.5007008", "0.50034857", "0.49954158", "0.49951085", "0.49910164", "0.4990229", "0.49702704", "0.4956554", "0.49485433", "0.49376166", "0.49295", "0.49289268", "0.49289268", "0.49279943", "0.49265748", "0.49264255", "0.4924922", "0.4923548", "0.49051234", "0.49048442", "0.490272" ]
0.6038323
13
indicate modifications to a range of a mapped buffer
func FlushMappedNamedBufferRange(buffer uint32, offset int, length int) { C.glowFlushMappedNamedBufferRange(gpFlushMappedNamedBufferRange, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(length)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func MapBufferRange(target uint32, offset int, length int, access uint32) unsafe.Pointer {\n ret := C.glowMapBufferRange(gpMapBufferRange, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(length), (C.GLbitfield)(access))\n return (unsafe.Pointer)(ret)\n}", "func MapBufferRange(target uint32, offset int, length int, access uint32) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall6(gpMapBufferRange, 4, uintptr(target), uintptr(offset), uintptr(length), uintptr(access), 0, 0)\n\treturn (unsafe.Pointer)(ret)\n}", "func MapBufferRange(target uint32, offset int, length int, access uint32) unsafe.Pointer {\n\tret := C.glowMapBufferRange(gpMapBufferRange, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(length), (C.GLbitfield)(access))\n\treturn (unsafe.Pointer)(ret)\n}", "func MapBufferRange(target uint32, offset int, length int, access uint32) unsafe.Pointer {\n\tret := C.glowMapBufferRange(gpMapBufferRange, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(length), (C.GLbitfield)(access))\n\treturn (unsafe.Pointer)(ret)\n}", "func MapNamedBufferRange(buffer uint32, offset int, length int, access uint32) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall6(gpMapNamedBufferRange, 4, uintptr(buffer), uintptr(offset), uintptr(length), uintptr(access), 0, 0)\n\treturn (unsafe.Pointer)(ret)\n}", "func FlushMappedBufferRange(target uint32, offset int, length int) {\n\tsyscall.Syscall(gpFlushMappedBufferRange, 3, uintptr(target), uintptr(offset), uintptr(length))\n}", "func FlushMappedBufferRange(target uint32, offset int, length int) {\n C.glowFlushMappedBufferRange(gpFlushMappedBufferRange, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(length))\n}", "func BindBufferRange(target uint32, index uint32, buffer uint32, offset int, size int) {\n\tsyscall.Syscall6(gpBindBufferRange, 5, uintptr(target), uintptr(index), uintptr(buffer), uintptr(offset), uintptr(size), 0)\n}", "func (c *Computer) MapRange(from, to int, rfn data.SoftRead, wfn data.SoftWrite) {\n\tfor addr := from; addr < to; addr++ {\n\t\tc.smap.SetRead(addr, rfn)\n\t\tc.smap.SetWrite(addr, wfn)\n\t}\n}", "func BindBufferRange(target uint32, index uint32, buffer uint32, offset int, size int) {\n C.glowBindBufferRange(gpBindBufferRange, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func MapNamedBufferRange(buffer uint32, offset int, length int, access uint32) unsafe.Pointer {\n\tret := C.glowMapNamedBufferRange(gpMapNamedBufferRange, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(length), (C.GLbitfield)(access))\n\treturn (unsafe.Pointer)(ret)\n}", "func MapNamedBufferRange(buffer uint32, offset int, length int, access uint32) unsafe.Pointer {\n\tret := C.glowMapNamedBufferRange(gpMapNamedBufferRange, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(length), (C.GLbitfield)(access))\n\treturn (unsafe.Pointer)(ret)\n}", "func FlushMappedBufferRange(target uint32, offset int, length int) {\n\tC.glowFlushMappedBufferRange(gpFlushMappedBufferRange, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(length))\n}", "func FlushMappedBufferRange(target uint32, offset int, length int) {\n\tC.glowFlushMappedBufferRange(gpFlushMappedBufferRange, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(length))\n}", "func (c *Computer) MapRange(from, to int, rfn ReadMapFn, wfn WriteMapFn) {\n\tfor addr := from; addr < to; addr++ {\n\t\tc.RMap[addr] = rfn\n\t\tc.WMap[addr] = wfn\n\t}\n}", "func FlushMappedNamedBufferRange(buffer uint32, offset int, length int) {\n\tsyscall.Syscall(gpFlushMappedNamedBufferRange, 3, uintptr(buffer), uintptr(offset), uintptr(length))\n}", "func BindBufferRange(target uint32, index uint32, buffer uint32, offset int, size int) {\n\tC.glowBindBufferRange(gpBindBufferRange, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func BindBufferRange(target uint32, index uint32, buffer uint32, offset int, size int) {\n\tC.glowBindBufferRange(gpBindBufferRange, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func (buffer Buffer) BindBufferRange(target gl.Enum, index uint, offset int, size uint) {\n\tgl.BindBufferRange(gl.Enum(target), gl.Uint(index), gl.Uint(buffer), gl.Intptr(offset), gl.Sizeiptr(size))\n}", "func modifyRanges(b []byte, ranges [][]int, f modifier) []byte {\n\tidx := 0\n\tresult := make([]byte, 0, len(b)) // Heuristic\n\tfor _, interval := range ranges {\n\t\tlow, high := interval[0], interval[1]\n\t\tresult = append(result, b[idx:low]...)\n\t\tresult = append(result, f(b[low:high])...)\n\t\tidx = high\n\t}\n\treturn append(result, b[idx:]...)\n}", "func (b *logEventBuffer) normalRange(start, end int) (int, int) {\n\tif end < start || end == 0 {\n\t\t// invalid range\n\t\treturn -1, -1\n\t}\n\tsize := b.bufferSize()\n\tif start == 0 {\n\t\t// we reduce start by 1 to make it easier to calculate the index,\n\t\t// but we need to ensure we don't go below 0.\n\t\tstart++\n\t}\n\tif start == end {\n\t\t// ensure we have at least one block in range\n\t\tend++\n\t}\n\tif end-start > size {\n\t\t// ensure we don't have more than the buffer size\n\t\tstart = (end - size) + 1\n\t}\n\tstart = (start - 1) % size\n\tend = end % size\n\n\treturn start, end\n}", "func (x *fastReflection_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {\n}", "func TexBufferRange(target uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tsyscall.Syscall6(gpTexBufferRange, 5, uintptr(target), uintptr(internalformat), uintptr(buffer), uintptr(offset), uintptr(size), 0)\n}", "func (ba *FilterBitArray) SetRange(begin uint, end uint) {\n\t// Location of i in the array index is floor(i/byte_size) + 1. If it exceeds the\n\t// current byte array, we'll make a new one large enough to include the\n\t// specified bit-index\n\tstartByteIndex := ba.byteIndex(begin)\n\tendByteIndex := ba.byteIndex(end)\n\n\tif end >= ba.Capacity() {\n\t\tba.expand(endByteIndex + 1)\n\t}\n\n\tfirstByteMask := byteMask << (begin % byteSize)\n\tlastByteMask := byteMask >> ((byteSize - end - 1) % byteSize)\n\n\tif startByteIndex == endByteIndex {\n\t\t(*ba)[startByteIndex] |= (firstByteMask & lastByteMask)\n\t} else {\n\t\t(*ba)[startByteIndex] |= firstByteMask\n\t\tfor i := startByteIndex + 1; i < endByteIndex; i++ {\n\t\t\t(*ba)[i] = byteMask\n\t\t}\n\t\t(*ba)[endByteIndex] |= lastByteMask\n\t}\n}", "func (wt HWT) AccessRange(from, to uint) (s []string, err error) {\n\tif to >= wt.Maps[0].Length() {\n\t\treturn s, errors.New(\"Position out of range \")\n\t}\n\ts = make([]string, int(to-from+1))\n\tvar wg sync.WaitGroup\n\tfor i := uint(0); i <= to-from; i++ {\n\t\twg.Add(1)\n\t\tgo func(i uint) {\n\t\t\ts[i] = wt.Dict.Get(wt.HWTArray.Access(from + i))\n\t\t\twg.Done()\n\t\t}(i)\n\t}\n\twg.Wait()\n\treturn s, nil\n}", "func BindBuffersRange(target uint32, first uint32, count int32, buffers *uint32, offsets *int, sizes *int) {\n\tsyscall.Syscall6(gpBindBuffersRange, 6, uintptr(target), uintptr(first), uintptr(count), uintptr(unsafe.Pointer(buffers)), uintptr(unsafe.Pointer(offsets)), uintptr(unsafe.Pointer(sizes)))\n}", "func TexBufferRange(target uint32, internalformat uint32, buffer uint32, offset int, size int) {\n C.glowTexBufferRange(gpTexBufferRange, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func (h *MapInt16ToInt8) Modify(k int16, fn func(v *int8)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func (h *MapInt16ToUint) Modify(k int16, fn func(v *uint)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func (m *HashMap) Range(fn func(k txHash, t TxDesc) error) error {\n\tm.lock.RLock()\n\tdefer m.lock.RUnlock()\n\n\tfor k, v := range m.data {\n\t\terr := fn(k, v)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\treturn nil\n}", "func (h *MapInt16ToInt) Modify(k int16, fn func(v *int)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func updateRangeDescriptor(\n\tctx context.Context,\n\tb *kv.Batch,\n\tdescKey roachpb.Key,\n\toldValue []byte,\n\tnewDesc *roachpb.RangeDescriptor,\n) error {\n\t// This is subtle: []byte(nil) != interface{}(nil). A []byte(nil) refers to\n\t// an empty value. An interface{}(nil) refers to a non-existent value. So\n\t// we're careful to construct interface{}(nil)s when newDesc/oldDesc are nil.\n\tvar newValue interface{}\n\tif newDesc != nil {\n\t\tif err := newDesc.Validate(); err != nil {\n\t\t\treturn errors.Wrapf(err, \"validating new descriptor %+v (old descriptor is %+v)\",\n\t\t\t\tnewDesc, oldValue)\n\t\t}\n\t\tnewBytes, err := protoutil.Marshal(newDesc)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tnewValue = newBytes\n\t}\n\tb.CPut(descKey, newValue, oldValue)\n\treturn nil\n}", "func (r Range) iterate(fn func(*buffer.View)) {\n\tr.pk.buf.SubApply(r.offset, r.length, fn)\n}", "func (h *MapInt16ToInt64) Modify(k int16, fn func(v *int64)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall(gpMapBuffer, 2, uintptr(target), uintptr(access), 0)\n\treturn (unsafe.Pointer)(ret)\n}", "func (h *MapInt16ToUint8) Modify(k int16, fn func(v *uint8)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func (r *Ring) set(p int, v interface{}) {\n\tr.buff[r.mod(p)] = v\n}", "func modifyUsingSlice(sls []int){\n\tsls[0] = 500\n}", "func (h *MapInt16ToInt16) Modify(k int16, fn func(v *int16)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func (h *MapInt16ToUint32) Modify(k int16, fn func(v *uint32)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func (g *mapGen) genRange() {\n\tg.P(\"func (x *\", g.typeName, \") Range(f func(\", protoreflectPkg.Ident(\"MapKey\"), \", \", protoreflectPkg.Ident(\"Value\"), \") bool) {\")\n\t// invalid map\n\tg.P(\"if x.m == nil {\")\n\tg.P(\"return\")\n\tg.P(\"}\")\n\t// valid map\n\tg.P(\"for k, v := range *x.m {\")\n\tg.P(\"mapKey := (\", protoreflectPkg.Ident(\"MapKey\"), \")(\", kindToValueConstructor(g.field.Message.Fields[0].Desc.Kind()), \"(k))\")\n\tswitch g.field.Message.Fields[1].Desc.Kind() {\n\tcase protoreflect.MessageKind:\n\t\tg.P(\"mapValue := \", kindToValueConstructor(g.field.Message.Fields[1].Desc.Kind()), \"(v.ProtoReflect())\")\n\tdefault:\n\t\tg.P(\"mapValue := \", kindToValueConstructor(g.field.Message.Fields[1].Desc.Kind()), \"(v)\")\n\t}\n\tg.P(\"if !f(mapKey, mapValue) {\")\n\tg.P(\"break\")\n\tg.P(\"}\")\n\tg.P(\"}\")\n\tg.P(\"}\")\n\tg.P()\n}", "func (h *MapInt16ToInt32) Modify(k int16, fn func(v *int32)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func (h *MapInt16ToUint16) Modify(k int16, fn func(v *uint16)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func (b *ChangeBuffer) Range() <-chan *list.Element {\n\tch := make(chan *list.Element)\n\tgo func() {\n\t\tdefer close(ch)\n\t\tfor c := b.Front(); c != nil; c = c.Next() {\n\t\t\tch <- c\n\t\t}\n\t}()\n\treturn ch\n}", "func BindBuffersRange(target uint32, first uint32, count int32, buffers *uint32, offsets *int, sizes *int) {\n C.glowBindBuffersRange(gpBindBuffersRange, (C.GLenum)(target), (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(buffers)), (*C.GLintptr)(unsafe.Pointer(offsets)), (*C.GLsizeiptr)(unsafe.Pointer(sizes)))\n}", "func dumpmemrange(data unsafe.Pointer, len uintptr) {\n\tdumpint(uint64(len))\n\tdwrite(data, len)\n}", "func (f *volatileFile) ShmMap(region int, size int, extend int) (unsafe.Pointer, C.int) {\n\tf.mu.Lock()\n\tdefer f.mu.Unlock()\n\n\tif region < len(f.shm) {\n\t\t// The region was already allocated.\n\t\tf.shmRefCount++\n\t\treturn f.shm[region], C.SQLITE_OK\n\t}\n\tif extend == 0 {\n\t\treturn nil, C.SQLITE_OK\n\t}\n\n\tdata := C.sqlite3_malloc(C.int(size))\n\tif data == nil {\n\t\treturn nil, C.SQLITE_NOMEM\n\t}\n\tC.memset(data, C.int(0), C.size_t(size))\n\n\tf.shm = append(f.shm, data)\n\tf.shmRefCount++\n\n\treturn data, C.SQLITE_OK\n}", "func (h *MapInt16ToUint64) Modify(k int16, fn func(v *uint64)) {\n\tfor e := h.slots[int(k)&h.mask]; e != nil; e = e.next {\n\t\tif e.k == k {\n\t\t\tfn(&e.v)\n\t\t\treturn\n\t\t}\n\t}\n}", "func (r *baseNsRange) Set(start, end int) { r.start, r.end = start, end }", "func TextureBufferRange(texture uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tsyscall.Syscall6(gpTextureBufferRange, 5, uintptr(texture), uintptr(internalformat), uintptr(buffer), uintptr(offset), uintptr(size), 0)\n}", "func (c *changeCache) processUnusedSequenceRange(docID string) {\n\t// _sync:unusedSequences:fromSeq:toSeq\n\tsequencesStr := strings.TrimPrefix(docID, c.metaKeys.UnusedSeqRangePrefix())\n\tsequences := strings.Split(sequencesStr, \":\")\n\tif len(sequences) != 2 {\n\t\treturn\n\t}\n\n\tfromSequence, err := strconv.ParseUint(sequences[0], 10, 64)\n\tif err != nil {\n\t\tbase.WarnfCtx(c.logCtx, \"Unable to identify from sequence number for unused sequences notification with key: %s, error:\", base.UD(docID), err)\n\t\treturn\n\t}\n\ttoSequence, err := strconv.ParseUint(sequences[1], 10, 64)\n\tif err != nil {\n\t\tbase.WarnfCtx(c.logCtx, \"Unable to identify to sequence number for unused sequence notification with key: %s, error:\", base.UD(docID), err)\n\t\treturn\n\t}\n\n\t// TODO: There should be a more efficient way to do this\n\tfor seq := fromSequence; seq <= toSequence; seq++ {\n\t\tc.releaseUnusedSequence(seq, time.Now())\n\t}\n}", "func (d *Device) FlushMappedRanges(r ...MappedMemoryRange) error {\n\n\td.PhysicalDevice.VKPhysicalDeviceProperties.Limits.Deref()\n\n\tatomSize := d.PhysicalDevice.VKPhysicalDeviceProperties.Limits.NonCoherentAtomSize\n\n\tranges := make([]vk.MappedMemoryRange, len(r))\n\tfor i := range r {\n\t\tranges[i] = r[i].VKMappedMemoryRange()\n\n\t\t// we need to make sure the range is a mltiple of atomSize\n\t\tm := (ranges[i].Size % atomSize)\n\t\tranges[i].Size = ranges[i].Size - m + atomSize\n\n\t}\n\n\treturn vk.Error(vk.FlushMappedMemoryRanges(d.VKDevice, uint32(len(ranges)), ranges))\n}", "func (buf *requestBuffer) modSlot(pos uint16, modFunc func(req *bufferedMCRequest, p uint16) (bool, error)) (bool, error) {\n\tvar err error = nil\n\terr = buf.validatePos(pos)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\treq := buf.slots[pos]\n\n\tvar modified bool\n\n\tif req != nil && req.req != nil {\n\t\tmodified, err = modFunc(req, pos)\n\t} else {\n\t\tmodified = false\n\t}\n\treturn modified, err\n}", "func (r *ShardReader) seek(requestedRange biopb.CoordRange) {\n\t// For each field (except coord; more on that below), find the subset of index\n\t// blocks that contain requestedRange.\n\tcoordRange := requestedRange\n\tfor f := int(gbam.FieldCoord + 1); f < gbam.NumFields; f++ {\n\t\tfr := r.fieldReaders[f]\n\t\tif fr == nil {\n\t\t\tcontinue\n\t\t}\n\t\tfor _, b := range fr.index.Blocks {\n\t\t\tif blockIntersectsRange(b.StartAddr, b.EndAddr, requestedRange) {\n\t\t\t\tfr.blocks = append(fr.blocks, b)\n\t\t\t}\n\t\t}\n\t\tif len(fr.blocks) == 0 {\n\t\t\t// There's no record to be read in the range. We'll report EOF when\n\t\t\t// reading later. Usually, if fr.blocks is empty for one field, it's\n\t\t\t// empty for any other field too.\n\t\t\treturn\n\t\t}\n\t\tcoordRange.Start = coordRange.Start.Min(fr.blocks[0].StartAddr)\n\t}\n\n\t// We need to advance the read pointer of each field to the first record at or\n\t// after requestedRange.Start. We do the following:\n\t//\n\t// 1. Assume that (say) FieldSeq has three recordio blocks {b0, b1, b2}, that\n\t// intersect with requestedRange.\n\t//\n\t// 2. Read the recordio blocks for FieldCoord so that they cover (b0,b1,b2).\n\t// Then sequentially scan these blocks and find b0.StartAddr.\n\t//\n\t// 3. Sequentially scan both FieldCoord and FieldSeq simultaneously, until the\n\t// the read pointer for FieldCoord is at requestedRange.Start.\n\t//\n\t// The below code does this for all the fields in parallel.\n\t// Read FieldCoord so that it covers all the recordioblocks read by other\n\t// fields.\n\tfr := r.fieldReaders[gbam.FieldCoord]\n\tfor _, b := range fr.index.Blocks {\n\t\tif blockIntersectsRange(b.StartAddr, b.EndAddr, coordRange) {\n\t\t\tfr.blocks = append(fr.blocks, b)\n\t\t}\n\t}\n\tif len(fr.blocks) == 0 {\n\t\t// This shouldn't happen, unless is the file is corrupt\n\t\terr := errors.Errorf(\"%v: Cannot find blocks for coords in range %+v, index: %+v\", fr.label, coordRange, fr.index)\n\t\tvlog.Error(err)\n\t\tr.err.Set(err)\n\t\treturn\n\t}\n\n\t// readingField is for eliding calls to addr.GE() below in the fast path.\n\tvar readingField [gbam.NumFields]bool\n\n\t// getReader() returns a fieldReader for the given reader, or nil if the field\n\t// is dropped by the user, or all its data blocks are after \"addr\"\n\tgetReader := func(f gbam.FieldType, addr biopb.Coord) *fieldReader {\n\t\tfr = r.fieldReaders[f]\n\t\tif fr != nil {\n\t\t\tif !fr.maybeReadNextBlock() {\n\t\t\t\tvlog.Fatalf(\"%v: EOF while reading %+v\", fr.label, addr)\n\t\t\t}\n\t\t\tif readingField[f] {\n\t\t\t\treturn fr\n\t\t\t}\n\t\t\tif addr.GE(fr.fb.index.StartAddr) {\n\t\t\t\treadingField[f] = true\n\t\t\t\treturn fr\n\t\t\t}\n\t\t}\n\t\treturn nil\n\t}\n\n\t// Seek the field pointers to requestedRange.Start\n\tfor {\n\t\tif !r.maybeReadNextCoordBlock() {\n\t\t\t// No data to read\n\t\t\tvlog.VI(1).Infof(\"Reached end of data, %+v\", r.addrGenerator)\n\t\t\treturn\n\t\t}\n\t\tfr := r.fieldReaders[gbam.FieldCoord]\n\t\trefID, pos := fr.fb.peekCoordField()\n\t\tsave := r.addrGenerator\n\t\taddr := r.addrGenerator.Generate(refID, pos)\n\t\tif addr.GE(requestedRange.Start) {\n\t\t\tr.addrGenerator = save\n\t\t\treturn\n\t\t}\n\t\tfr.fb.readCoordField()\n\t\tif fr := getReader(gbam.FieldFlags, addr); fr != nil {\n\t\t\tfr.fb.readFlagsField()\n\t\t}\n\t\tif fr := getReader(gbam.FieldMapq, addr); fr != nil {\n\t\t\tfr.fb.readMapqField()\n\t\t}\n\t\tif fr := getReader(gbam.FieldMateRefID, addr); fr != nil {\n\t\t\tfr.fb.readVarintDeltaField()\n\t\t}\n\t\tif fr := getReader(gbam.FieldMatePos, addr); fr != nil {\n\t\t\tfr.fb.readVarintDeltaField()\n\t\t}\n\t\tif fr := getReader(gbam.FieldTempLen, addr); fr != nil {\n\t\t\tfr.fb.readVarintField()\n\t\t}\n\t\tif fr := getReader(gbam.FieldCigar, addr); fr != nil {\n\t\t\tfr.fb.skipCigarField()\n\t\t}\n\t\tif fr := getReader(gbam.FieldName, addr); fr != nil {\n\t\t\tfr.fb.skipStringDeltaField()\n\t\t}\n\t\tif fr := getReader(gbam.FieldSeq, addr); fr != nil {\n\t\t\tfr.fb.skipSeqField()\n\t\t}\n\t\tif fr := getReader(gbam.FieldQual, addr); fr != nil {\n\t\t\tfr.fb.skipQualField()\n\t\t}\n\t\tif fr := getReader(gbam.FieldAux, addr); fr != nil {\n\t\t\tfr.fb.skipAuxField()\n\t\t}\n\t}\n}", "func (m *Map) Map(seqno uint16, pid uint16) (bool, uint16, uint16) {\n\tm.mu.Lock()\n\tdefer m.mu.Unlock()\n\n\tif m.delta == 0 && m.entries == nil {\n\t\tif compare(m.next, seqno) <= 0 ||\n\t\t\tuint16(m.next - seqno) > 8 * 1024 {\n\t\t\tm.next = seqno + 1\n\t\t\tm.nextPid = pid\n\t\t}\n\t\treturn true, seqno, 0\n\t}\n\n\tif compare(m.next, seqno) <= 0 {\n\t\tif uint16(seqno-m.next) > 8*1024 {\n\t\t\tm.reset()\n\t\t\tm.next = seqno + 1\n\t\t\tm.nextPid = pid\n\t\t\treturn true, seqno, 0\n\t\t}\n\t\taddMapping(m, seqno, m.delta, m.pidDelta)\n\t\tm.next = seqno + 1\n\t\tm.nextPid = pid\n\t\treturn true, seqno + m.delta, m.pidDelta\n\t}\n\n\tif uint16(m.next-seqno) > 8*1024 {\n\t\tm.reset()\n\t\tm.next = seqno + 1\n\t\tm.nextPid = pid\n\t\treturn true, seqno, 0\n\t}\n\n\treturn m.direct(seqno)\n}", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n ret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access))\n return (unsafe.Pointer)(ret)\n}", "func (ot *T) correctOffset(offset int64) {\n\tdrop := 0\n\tfor i, ar := range ot.ackedRanges {\n\t\tif offset < ar.from {\n\t\t\tbreak\n\t\t}\n\t\tdrop = i + 1\n\t\tif offset < ar.to {\n\t\t\toffset = ar.to\n\t\t\tbreak\n\t\t}\n\t}\n\tif drop > 0 {\n\t\tot.ackedRanges = ot.ackedRanges[drop:]\n\t}\n\tot.offset.Val = offset\n\tot.offset.Meta = encodeAckedRanges(offset, ot.ackedRanges)\n}", "func (pm *Map) Range(f func(key, value interface{})) {\n\tpm.root.forEach(f)\n}", "func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {\n\tif x.Authority != \"\" {\n\t\tvalue := protoreflect.ValueOfString(x.Authority)\n\t\tif !f(fd_MsgUpdateParams_authority, value) {\n\t\t\treturn\n\t\t}\n\t}\n\tif x.Params != nil {\n\t\tvalue := protoreflect.ValueOfMessage(x.Params.ProtoReflect())\n\t\tif !f(fd_MsgUpdateParams_params, value) {\n\t\t\treturn\n\t\t}\n\t}\n}", "func TexBufferRange(target uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tC.glowTexBufferRange(gpTexBufferRange, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func TexBufferRange(target uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tC.glowTexBufferRange(gpTexBufferRange, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func (m ConcurrentMap[T]) Range(fn RangeFunc[T]) {\n\tfor idx := range m.shards {\n\t\tshard := m.shards[idx]\n\t\tshard.RLock()\n\t\tfor key, value := range shard.items {\n\t\t\tfn(key, value)\n\t\t}\n\t\tshard.RUnlock()\n\t}\n}", "func MapBuffer(target gl.Enum, access gl.Enum) {\n\tgl.MapBuffer(gl.Enum(target), gl.Enum(access))\n}", "func (s *BasejossListener) EnterRange_(ctx *Range_Context) {}", "func (fr *FileRing) UpdateRange(start, end int64) []File {\n\tfr.lock.Lock()\n\tdefer fr.lock.Unlock()\n\n\tvar deleted []File\n\n\tfor k, v := range fr.hashMap {\n\t\tif !InRange(k, start, end, M) {\n\t\t\tdeleted = append(deleted, v.SortedFiles()...)\n\t\t\tdelete(fr.hashMap, k)\n\t\t}\n\t}\n\tfr.start = start\n\tfr.end = end\n\n\treturn deleted\n}", "func (render *Renderer_impl)Mmap( m *Mapped_resource, buf *Buffer, mm Map_mode) fundations.Result{\n\n}", "func (x *fastReflection_Bech32PrefixRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {\n}", "func (i *inflight) CommitRange(minIndex, maxIndex uint64) {\n\ti.Lock()\n\tdefer i.Unlock()\n\n\t// Update the minimum index\n\tminIndex = max(i.minCommit, minIndex)\n\n\t// Commit each index\n\tfor idx := minIndex; idx <= maxIndex; idx++ {\n\t\ti.commit(idx)\n\t}\n}", "func (m *Map) Range(f func(key, value interface{}) bool) {\n\tsplits := m.splits\n\tfor i := 0; i < len(splits); i++ {\n\t\tif !splits[i].srange(f) {\n\t\t\treturn\n\t\t}\n\t}\n}", "func (s SyscallCounter) AddRange(m map[string]int) {\n\tfor k, v := range m {\n\t\ts[k] = v\n\t}\n}", "func ExampleBucket_MapRange() {\n\tbx, _ := buckets.Open(tempfile())\n\tdefer os.Remove(bx.Path())\n\tdefer bx.Close()\n\n\t// Delete any existing bucket named \"years\".\n\tbx.Delete([]byte(\"years\"))\n\n\t// Create a new bucket named \"years\".\n\tyears, _ := bx.New([]byte(\"years\"))\n\n\t// Setup items to insert in `years` bucket\n\titems := []struct {\n\t\tKey, Value []byte\n\t}{\n\t\t{[]byte(\"1970\"), []byte(\"70\")},\n\t\t{[]byte(\"1975\"), []byte(\"75\")},\n\t\t{[]byte(\"1980\"), []byte(\"80\")},\n\t\t{[]byte(\"1985\"), []byte(\"85\")},\n\t\t{[]byte(\"1990\"), []byte(\"90\")}, // min = 1990\n\t\t{[]byte(\"1995\"), []byte(\"95\")}, // min < 1995 < max\n\t\t{[]byte(\"2000\"), []byte(\"00\")}, // max = 2000\n\t\t{[]byte(\"2005\"), []byte(\"05\")},\n\t\t{[]byte(\"2010\"), []byte(\"10\")},\n\t}\n\n\t// Insert 'em.\n\tif err := years.Insert(items); err != nil {\n\t\tfmt.Printf(\"could not insert items in `years` bucket: %v\\n\", err)\n\t}\n\n\t// Time range to map over: 1990 <= key <= 2000.\n\tmin := []byte(\"1990\")\n\tmax := []byte(\"2000\")\n\n\t// Setup slice of items to collect results.\n\ttype item struct {\n\t\tKey, Value []byte\n\t}\n\tresults := []item{}\n\n\t// Anon func to map over matched keys.\n\tdo := func(k, v []byte) error {\n\t\tresults = append(results, item{k, v})\n\t\treturn nil\n\t}\n\n\tif err := years.MapRange(do, min, max); err != nil {\n\t\tfmt.Printf(\"could not map items within range: %v\\n\", err)\n\t}\n\n\tfor _, item := range results {\n\t\tfmt.Printf(\"%s -> %s\\n\", item.Key, item.Value)\n\t}\n\t// Output:\n\t// 1990 -> 90\n\t// 1995 -> 95\n\t// 2000 -> 00\n}", "func Bcm2835_pwm_set_range(Channel byte, _range uint32) {\n\tcChannel, _ := (C.uint8_t)(Channel), cgoAllocsUnknown\n\tc_range, _ := (C.uint32_t)(_range), cgoAllocsUnknown\n\tC.bcm2835_pwm_set_range(cChannel, c_range)\n}", "func BindBuffersRange(target uint32, first uint32, count int32, buffers *uint32, offsets *int, sizes *int) {\n\tC.glowBindBuffersRange(gpBindBuffersRange, (C.GLenum)(target), (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(buffers)), (*C.GLintptr)(unsafe.Pointer(offsets)), (*C.GLsizeiptr)(unsafe.Pointer(sizes)))\n}", "func BindBuffersRange(target uint32, first uint32, count int32, buffers *uint32, offsets *int, sizes *int) {\n\tC.glowBindBuffersRange(gpBindBuffersRange, (C.GLenum)(target), (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(buffers)), (*C.GLintptr)(unsafe.Pointer(offsets)), (*C.GLsizeiptr)(unsafe.Pointer(sizes)))\n}", "func (s *Int64Map) Range(f func(key int64, value interface{}) bool) {\n\tx := s.header.loadNext(0)\n\tfor x != nil {\n\t\tif !x.flags.MGet(fullyLinked|marked, fullyLinked) {\n\t\t\tx = x.loadNext(0)\n\t\t\tcontinue\n\t\t}\n\t\tif !f(x.key, x.loadVal()) {\n\t\t\tbreak\n\t\t}\n\t\tx = x.loadNext(0)\n\t}\n}", "func MapRange(value, low1, high1, low2, high2 float64) float64 {\n\treturn low2 + (high2-low2)*(value-low1)/(high1-low1)\n}", "func (s *sliding) memWrite(bufs []Update) {\n\t// pos is only for debugging\n\tvar pos = s.end()\n\tfor _, buf := range bufs {\n\t\t// remember most recent position for Blkno\n\t\toldpos, ok := s.posForAddr(buf.Addr)\n\t\tif ok && oldpos >= s.mutable {\n\t\t\tutil.DPrintf(5, \"memWrite: absorb %d pos %d old %d\\n\",\n\t\t\t\tbuf.Addr, pos, oldpos)\n\t\t\ts.update(oldpos, buf)\n\t\t} else {\n\t\t\tif ok {\n\t\t\t\tutil.DPrintf(5, \"memLogMap: replace %d pos %d old %d\\n\",\n\t\t\t\t\tbuf.Addr, pos, oldpos)\n\t\t\t} else {\n\t\t\t\tutil.DPrintf(5, \"memLogMap: add %d pos %d\\n\",\n\t\t\t\t\tbuf.Addr, pos)\n\t\t\t}\n\t\t\ts.append(buf)\n\t\t\tpos += 1\n\t\t}\n\t}\n}", "func (this *ViewScanner) MergeRange(newRange *ViewRange) {\n\tlog.Printf(\"considering new range %v\", newRange)\n\tfor _, r := range this.ranges {\n\t\t// if the new range is a subset of an existing range\n\t\t// this new ragne replaces it\n\t\tif newRange.IsSubsetOf(r) {\n\t\t\tlog.Printf(\"new is subset, shrinking\")\n\t\t\tr.Start = newRange.Start\n\t\t\tr.End = newRange.End\n\t\t\treturn\n\t\t}\n\n\t\tif r.IsSubsetOf(newRange) {\n\t\t\tlog.Printf(\"old subset, dropping\")\n\t\t\t// drop this factor\n\t\t\t// we already have a stricter range that contains it\n\t\t\treturn\n\t\t}\n\t}\n\n\tlog.Printf(\"couldn't merge, so add\")\n\t// if we got here, we add it as a new range\n\tthis.ranges = append(this.ranges, newRange)\n}", "func TransformFeedbackBufferRange(xfb uint32, index uint32, buffer uint32, offset int, size int) {\n\tsyscall.Syscall6(gpTransformFeedbackBufferRange, 5, uintptr(xfb), uintptr(index), uintptr(buffer), uintptr(offset), uintptr(size), 0)\n}", "func (x *fastReflection_MsgDepositValidatorRewardsPoolResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {\n}", "func mapassign(t, m, k unsafe.Pointer) unsafe.Pointer", "func (md *SyncMetadata) Range(fn func(key string, value interface{}) bool) {\n\tmd.lock.RLock()\n\tdefer md.lock.RUnlock()\n\n\tmd.meta.Range(fn)\n}", "func (n *Node) SetSliceBounds(low, high, max *Node)", "func (m *Map) Range(f func(Value, Value) bool) {\n\tm.backingVector.Range(func(bucket privateMapItemBucket) bool {\n\t\tfor _, item := range bucket {\n\t\t\tif !f(item.Key, item.Value) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t}\n\t\treturn true\n\t})\n}", "func (b *buffer) pin(loc Location, ptr unsafe.Pointer) {\n\tif !atomic.CompareAndSwapPointer(b.index(loc.index()), nil, ptr) {\n\t\tpanic(\"double pin\")\n\t}\n\t// atomic.StorePointer(b.index(loc.index()), ptr)\n\tatomic.AddUint32(&b.free, ^uint32(0))\n}", "func (bitmap *bitmap) set(seqno uint16) {\n\tif !bitmap.valid || seqnoInvalid(seqno, bitmap.first) {\n\t\tbitmap.first = seqno\n\t\tbitmap.bitmap = 1\n\t\tbitmap.valid = true\n\t\treturn\n\t}\n\n\tif compare(bitmap.first, seqno) > 0 {\n\t\treturn\n\t}\n\n\tif seqno-bitmap.first >= 32 {\n\t\tshift := seqno - bitmap.first - 31\n\t\tbitmap.bitmap >>= shift\n\t\tbitmap.first += shift\n\t}\n\n\tif (bitmap.bitmap & 1) == 1 {\n\t\tones := bits.TrailingZeros32(^bitmap.bitmap)\n\t\tbitmap.bitmap >>= ones\n\t\tbitmap.first += uint16(ones)\n\t}\n\n\tbitmap.bitmap |= (1 << uint16(seqno-bitmap.first))\n}", "func (r sUintRangeIterator) Range(handlers ...UintHandler) error {\n\treturn UintRange(r.iter, handlers...)\n}", "func (m *Cmap) Range(f func(key, value interface{}) bool) {\n\tn := m.getInode()\n\tfor i := 0; i < len(n.buckets); i++ {\n\t\tb := &(n.buckets[i])\n\t\tif !b.inited() {\n\t\t\tn.initBucket(uintptr(i))\n\t\t}\n\t\tfor _, e := range b.clone() {\n\t\t\tif !f(e.key, e.value) {\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\t}\n}", "func (l *RandomAccessGroupLookup) Range(f func(key flux.GroupKey, value interface{})) {\n\tfor _, e := range l.elements {\n\t\tif e.Deleted {\n\t\t\tcontinue\n\t\t}\n\t\tf(e.Key, e.Value)\n\t}\n}", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n\tret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access))\n\treturn (unsafe.Pointer)(ret)\n}", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n\tret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access))\n\treturn (unsafe.Pointer)(ret)\n}", "func (d *Debugger) Map(toMap MemRegion) error {\n\tvar prot int\n\n\tif toMap.size == 0 {\n\t\treturn errors.New(\"Zero-length mappings are not permitted.\")\n\t}\n\n\tif d.mapped.Contains(toMap.name) {\n\t\treturn fmt.Errorf(\"A mapping named \\\"%s\\\" already exists.\", toMap.name)\n\t}\n\n\tprot = 0\n\tif toMap.perms.Read {\n\t\tprot |= uc.PROT_READ\n\t}\n\tif toMap.perms.Write {\n\t\tprot |= uc.PROT_WRITE\n\t}\n\tif toMap.perms.Exec {\n\t\tprot |= uc.PROT_EXEC\n\t}\n\n\tif err := d.mu.MemMapProt(toMap.base, toMap.size, prot); err != nil {\n\t\treturn err\n\t}\n\n\tif data, err := toMap.LoadInputData(); err == nil {\n\t\tif err := d.WriteMem(toMap.base, data); err != nil {\n\t\t\treturn err\n\t\t}\n\t} else {\n\t\treturn err\n\t}\n\n\td.mapped.Add(toMap)\n\treturn nil\n}", "func (r *Ring) MarkComplete(offset int) {\n\trel := offset - r.lowestPending\n\tif rel < 0 {\n\t\treturn // already committed\n\t}\n\tvar pos uint\n\tif uint(rel) < r.bitCapacity() {\n\t\tpos = r.wrapForward(r.tailBit + uint(rel))\n\t\tif getBit(r.bitmap, pos) {\n\t\t\treturn // already marked\n\t\t}\n\t} else {\n\t\tr.resize(rel+1, r.CompleteRangeSize())\n\t\tpos = uint(rel)\n\t}\n\tsetBit(r.bitmap, pos)\n\tr.numCommittable++\n\t// lowestPending is adjusted below, if the lowest pending offset is being marked complete.\n\tr.highestPending = -1 // unset cached offset\n\tr.lowestComplete = -1 // unset cached offset\n\tif r.highestComplete < offset {\n\t\tr.highestComplete = offset\n\t}\n\tif pos != r.tailBit {\n\t\treturn\n\t}\n\t// When the lowest pending offset is being marked complete, coalesce with subsequent offsets\n\t// which are already marked complete:\n\tfor tryClearBit(r.bitmap, r.tailBit) {\n\t\tr.tailBit = r.wrapForward(r.tailBit + 1)\n\t\tr.numCommittable--\n\t\tr.lowestPending++\n\t}\n\t// Reset internal state if all offsets are committable:\n\tif r.lowestPending > r.highestMarked {\n\t\tr.lowestPending = -1\n\t\tr.tailBit = 0\n\t\tr.resetBitmap(minCapacity)\n\t\treturn\n\t}\n\trangeSize := r.CompleteRangeSize()\n\t// If the bitmap is less than 25% full, resize it to be approximately 50% full:\n\tif uint(rangeSize*4) < r.bitCapacity() {\n\t\tr.resize(rangeSize*2, rangeSize)\n\t}\n}", "func (b *BitMap) Set(offset uint64) {\n\n\tb.checkOffset(offset)\n\tindex, bit := indexAndOverbit(offset)\n\tcount := uint64(1 << bit)\n\n\tb.store[index] = b.store[index] | count\n}", "func (h *HamtFunctional) Range(fn func(KeyI, interface{}) bool) {\n\th.hamtBase.Range(fn)\n}", "func (m *Uint64) Range(f func(key interface{}, val *atomics.Uint64) bool) {\n\tm.m.Range(func(key, val interface{}) bool {\n\t\treturn f(key, val.(*atomics.Uint64))\n\t})\n}", "func (m *privateSetMap) Range(f func(Value, struct{}) bool) {\n\tm.backingVector.Range(func(bucket privateprivateSetMapItemBucket) bool {\n\t\tfor _, item := range bucket {\n\t\t\tif !f(item.Key, item.Value) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t}\n\t\treturn true\n\t})\n}", "func (s *Set) Range(f func(Value) bool) {\n\ts.backingMap.Range(func(k Value, _ struct{}) bool {\n\t\treturn f(k)\n\t})\n}", "func (x *fastReflection_MsgSetWithdrawAddressResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {\n}" ]
[ "0.7053556", "0.6992756", "0.67098945", "0.67098945", "0.6444555", "0.6430987", "0.6412343", "0.63017654", "0.62653726", "0.6228872", "0.6060882", "0.6060882", "0.6039474", "0.6039474", "0.59762096", "0.5904477", "0.5848679", "0.5848679", "0.5773223", "0.5760936", "0.57468927", "0.5640594", "0.56215835", "0.5613123", "0.558108", "0.5553054", "0.55226886", "0.5517067", "0.54811805", "0.5479825", "0.5473681", "0.54643875", "0.5459162", "0.5443615", "0.5439269", "0.5437195", "0.54338855", "0.543114", "0.54154235", "0.53999394", "0.53969806", "0.5392381", "0.5390078", "0.5385229", "0.5373134", "0.5356379", "0.5315763", "0.530733", "0.5290733", "0.52898294", "0.5267584", "0.5263374", "0.5253878", "0.52348757", "0.5222615", "0.5219464", "0.52108437", "0.51987463", "0.51984835", "0.51967865", "0.51967865", "0.5196311", "0.5152733", "0.514888", "0.5138441", "0.51370525", "0.5117953", "0.5112218", "0.51031274", "0.51008683", "0.50780773", "0.50775546", "0.50755614", "0.50755614", "0.5068484", "0.5064789", "0.50593626", "0.5033833", "0.5007456", "0.5001906", "0.49960414", "0.49945676", "0.49921793", "0.49903944", "0.49694312", "0.49562064", "0.49473146", "0.49375144", "0.4929273", "0.49291858", "0.49291858", "0.49273768", "0.4927076", "0.49268085", "0.49239936", "0.49230817", "0.49051496", "0.49044088", "0.4900988" ]
0.54957175
29
define an array of fog coordinates
func FogCoordPointer(xtype uint32, stride int32, pointer unsafe.Pointer) { C.glowFogCoordPointer(gpFogCoordPointer, (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func getcoordinates(quakes Quakes) [][]float64 {\n\tvar geomplaces [][]float64\n\tfor _, quake := range quakes.Features {\n\t\tpoint := []float64{quake.Geometry.Coordinates[1], quake.Geometry.Coordinates[0]}\n\t\tgeomplaces = append(geomplaces, point)\n\t}\n\treturn geomplaces\n}", "func genLocs(l int) []float64 {\n\tret := make([]float64, l)\n\tfor i := range ret {\n\t\tret[i] = float64(i)\n\t}\n\treturn ret\n}", "func CoordinatesArray(value ...[]float64) *CoordinatesArrayElement {\n\treturn &CoordinatesArrayElement{coordinates: value}\n}", "func fog(x, y, w, h openvg.VGfloat, color string) {\n\tradius := w / 3\n\tr2 := radius * 1.8\n\topenvg.FillColor(color, 0.5)\n\topenvg.Circle(x+w*0.25, y+h*0.25, radius)\n\topenvg.Circle(x+w*0.30, y+h*0.45, radius)\n\topenvg.Circle(x+w*0.60, y+h*0.40, r2)\n}", "func init() {\r\n\tfor y := 0; y < Height; y++ {\r\n\t\tfor x := 0; x < Width; x++ {\r\n\t\t\tfx, fy := float64(x), float64(y)\r\n\t\t\ti := y*Width + x\r\n\t\t\tvalue := math.Sin(fx / 16.0)\r\n\t\t\tvalue += math.Sin(fy / 8.0)\r\n\t\t\tvalue += math.Sin((fx + fy) / 16.0)\r\n\t\t\tvalue += math.Sin(math.Sqrt(fx*fx+fy*fy) / 8.0)\r\n\t\t\tvalue += 4 // shift range from -4 .. 4 to 0 .. 8\r\n\t\t\tvalue /= 8 // bring range down to 0 .. 1\r\n\t\t\tplasma[i] = value\r\n\t\t}\r\n\t}\r\n}", "func FogCoordPointer(xtype uint32, stride int32, pointer unsafe.Pointer) {\n C.glowFogCoordPointer(gpFogCoordPointer, (C.GLenum)(xtype), (C.GLsizei)(stride), pointer)\n}", "func SetFloatArrayRegion(env *C.JNIEnv, array C.jfloatArray, start, _len C.jsize, buf *C.jfloat) {\n\tC._GoJniSetFloatArrayRegion(env, array, start, _len, buf)\n}", "func ArrayElement(i int32) {\n C.glowArrayElement(gpArrayElement, (C.GLint)(i))\n}", "func makeVao(points []float32) uint32 {\n\tvar vbo uint32\n\tvar vao uint32\n\tvar stride int32\n\n\t//points only 9\n\t//points and colors 18\n\tstride = int32(4 * len(points) / 3)\n\tprintln(\"stride: \", stride)\n\n\tgl.GenVertexArrays(1, &vao)\n\tgl.GenBuffers(1, &vbo)\n\tgl.BindVertexArray(vao)\n\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.BufferData(gl.ARRAY_BUFFER, 4*len(points), gl.Ptr(points), gl.STATIC_DRAW)\n\n\tgl.EnableVertexAttribArray(0)\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, stride, gl.PtrOffset(0))\n\tprintln(\"triangle length: \", len(points))\n\tif len(points) >= 18 {\n\t\tlog.Println(\"In if\")\n\t\tgl.EnableVertexAttribArray(1)\n\t\tgl.VertexAttribPointer(1, 3, gl.FLOAT, false, stride, gl.PtrOffset(3*4))\n\t}\n\treturn vao\n}", "func Uniform4FloatArray(location UniformLocation, value []float32) {\n\tgl.Uniform4fv(int32(location), 1, &value[0])\n}", "func FogCoordPointer(xtype uint32, stride int32, pointer unsafe.Pointer) {\n\tsyscall.Syscall(gpFogCoordPointer, 3, uintptr(xtype), uintptr(stride), uintptr(pointer))\n}", "func NewPosition(x, y, z float64) Position {\n\treturn [3]float64{x, y, z}\n}", "func (c *Coord) Z() float64 { return c[2] }", "func (o *Grid) boundaries() {\n\tn0 := o.npts[0]\n\tn1 := o.npts[1]\n\tif o.ndim == 2 {\n\t\to.edge = make([][]int, 4) // xmin,xmax,ymin,ymax\n\t\to.edge[0] = make([]int, n1) // xmin\n\t\to.edge[1] = make([]int, n1) // xmax\n\t\to.edge[2] = make([]int, n0) // ymin\n\t\to.edge[3] = make([]int, n0) // ymax\n\t\tfor n := 0; n < n1; n++ {\n\t\t\to.edge[0][n] = n * n0 // xmin\n\t\t\to.edge[1][n] = n*n0 + n0 - 1 // xmax\n\t\t}\n\t\tfor m := 0; m < n0; m++ {\n\t\t\to.edge[2][m] = m // ymin\n\t\t\to.edge[3][m] = m + n0*(n1-1) // ymax\n\t\t}\n\t\treturn\n\t}\n\tn2 := o.npts[2]\n\to.face = make([][]int, 6) // xmin,xmax,ymin,ymax,zmin,zmax\n\to.face[0] = make([]int, n1*n2) // xmin\n\to.face[1] = make([]int, n1*n2) // xmax\n\to.face[2] = make([]int, n0*n2) // ymin\n\to.face[3] = make([]int, n0*n2) // ymax\n\to.face[4] = make([]int, n0*n1) // zmin\n\to.face[5] = make([]int, n0*n1) // zmax\n\tt := 0\n\tfor p := 0; p < n2; p++ { // loop over z\n\t\tfor n := 0; n < n1; n++ { // loop over y\n\t\t\to.face[0][t] = n*n0 + (n0*n1)*p // xmin\n\t\t\to.face[1][t] = n*n0 + (n0*n1)*p + (n0 - 1) // xmax\n\t\t\tt++\n\t\t}\n\t}\n\tt = 0\n\tfor p := 0; p < n2; p++ { // loop over z\n\t\tfor m := 0; m < n0; m++ { // loop over x\n\t\t\to.face[2][t] = m + (n0*n1)*p // ymin\n\t\t\to.face[3][t] = m + (n0*n1)*p + n0*(n1-1) // ymax\n\t\t\tt++\n\t\t}\n\t}\n\tt = 0\n\tfor n := 0; n < n1; n++ { // loop over y\n\t\tfor m := 0; m < n0; m++ { // loop over x\n\t\t\to.face[4][t] = m + n0*n // zmin\n\t\t\to.face[5][t] = m + n0*n + (n0*n1)*(n2-1) // zmax\n\t\t\tt++\n\t\t}\n\t}\n}", "func Uniform2FloatArray(location UniformLocation, value []float32) {\n\tgl.Uniform2fv(int32(location), 1, &value[0])\n}", "func (z *Zzz) FromArray(a A.X) *Zzz { //nolint:dupl false positive\n\tz.Id = X.ToU(a[0])\n\tz.CreatedAt = X.ToI(a[1])\n\tz.Coords = X.ToArr(a[2])\n\tz.Name = X.ToS(a[3])\n\tz.HeightMeter = X.ToF(a[4])\n\treturn z\n}", "func Uniform3FloatArray(location UniformLocation, value []float32) {\n\tgl.Uniform3fv(int32(location), 1, &value[0])\n}", "func makeVao(points []float32) uint32 {\n\tvar vbo uint32\n\tgl.GenBuffers(1, &vbo)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.BufferData(gl.ARRAY_BUFFER, 4*len(points), gl.Ptr(points), gl.STATIC_DRAW)\n\n\tvar vao uint32\n\tgl.GenVertexArrays(1, &vao)\n\tgl.BindVertexArray(vao)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tvar offset int = 6 * 4\n\tgl.VertexAttribPointer(0, 2, gl.FLOAT, false, 8*4, gl.PtrOffset(offset))\n\tgl.EnableVertexAttribArray(0)\n\t//gl.VertexAttribPointer(0, 3, gl.FLOAT, false, 0, nil)\n\n\treturn vao\n}", "func GetFloatArrayRegion(env *C.JNIEnv, array C.jfloatArray, start, _len C.jsize, buf *C.jfloat) {\n\tC._GoJniGetFloatArrayRegion(env, array, start, _len, buf)\n}", "func CreateVector(i int, fill float64) []float64 {\n\tv := make([]float64, i)\n\tfor i := 0; i < i; i++ {\n\t\tv[i] = fill\n\t}\n\treturn v\n}", "func SGFCoords(n ah.NodeLoc, isFF4 bool) (ret []byte) {\n\tret = make([]byte, 2)\n\tif n != ah.PassNodeLoc {\n\t\tc, r := ah.GetColRow(n)\n\t\tret[0] = sgf_coords[c]\n\t\tret[1] = sgf_coords[r]\n\t} else if isFF4 {\n\t\tret = make([]byte, 0)\n\t} else {\n\t\tret[0] = 't'\n\t\tret[1] = 't'\n\t}\n\treturn ret\n}", "func (s *Asteroid) getPoints() {\n\ts.points = s.init\n\ts.drawable = makeVertexArrayObj(s.points)\n}", "func flattenCoordinates(destinationBounds image.Rectangle) []complex128 {\n\tflattenedCoordinates := []complex128{}\n\tfor destinationY := destinationBounds.Min.Y; destinationY < destinationBounds.Max.Y; destinationY++ {\n\t\tfor destinationX := destinationBounds.Min.X; destinationX < destinationBounds.Max.X; destinationX++ {\n\t\t\tflattenedCoordinates = append(flattenedCoordinates, complex(float64(destinationX), float64(destinationY)))\n\t\t}\n\t}\n\treturn flattenedCoordinates\n}", "func ArrayElement(i int32) {\n\tC.glowArrayElement(gpArrayElement, (C.GLint)(i))\n}", "func makePoints(arr d.Points) plotter.XYs {\n\tpts := make(plotter.XYs, len(arr))\n\tfor i := range pts {\n\t\tpts[i].X = util.AssertFloat64(arr[i].X(), 0)\n\t\tpts[i].Y = util.AssertFloat64(arr[i].Y(), 0)\n\t}\n\treturn pts\n}", "func Coordinates(value ...Coordinate) *CoordinatesElement {\n\treturn &CoordinatesElement{coordinates: value}\n}", "func Coords(x, y, r uint32) ([]uint8, bool) {\n\tif r >= uint32(len(CoordOffset)) {\n\t\t// log.Printf(\"Coord radius too large: %d\\n\", r)\n\t\treturn []uint8{0, 0, 0}, false\n\t}\n\tdx := CoordOffset[r][0]\n\tdy := CoordOffset[r][1]\n\tif int(x)+dx < 0 || int(x)+dx >= WindowImage.Rect.Max.X || int(y)+dy < 0 || int(y)+dy >= WindowImage.Rect.Max.Y {\n\t\treturn []uint8{0, 0, 0}, false\n\t}\n\ti := (int(x)+dx)*4 + (int(y)+dy)*WindowImage.Stride\n\treturn WindowImage.Pix[i : i+3], true\n}", "func (this *Grid) aabb() [6]float64 {\n\tretval := [6]float64{\n\t\tthis.MinX,\n\t\tthis.MinY,\n\t\tthis.MinZ,\n\t\tthis.MinX + float64(this.NumX)*this.SizX,\n\t\tthis.MinY + float64(this.NumY)*this.SizY,\n\t\tthis.MinZ + float64(this.NumZ)*this.SizZ,\n\t}\n\treturn retval\n}", "func createPointArray(array [][]bool) (points []Point) {\n\theight := len(array)\n\twidth := len(array[0])\n\n\tfor y := 0; y < height; y++ {\n\t\tfor x := 0; x < width; x++ {\n\t\t\tif array[y][x] {\n\t\t\t\tpoints = append(points, Point{x % width, y})\n\t\t\t}\n\t\t}\n\t}\n\treturn points[0:]\n}", "func coordinatesFromIndex(index int, edge int) (x int, y int, z int) {\n x = index/(edge*edge)\n dummy := (index - x*edge*edge)\n y = dummy/edge\n z = dummy - y*edge\n return\n}", "func (d *ImageDoc) GetVector() []float64 { return d.Vector }", "func (t *Triangle) Coords() [3]Coord {\n\treturn t.coords\n}", "func (m *FloatArray) Set(first *float32, numberOfFloats int32) {\n\tgl.ProgramUniform1fv(m.program, m.uniform, numberOfFloats, first)\n}", "func getPizzaSlice(a, b Coordinate) stl.Triangle {\n\treturn stl.Triangle {\n\t\tNormal: stl.Vec3{ 0,0,1 },\n\t\tVertices: [3]stl.Vec3{\n\t\t\tstl.Vec3{ 0,0,0 },\n\t\t\tstl.Vec3{ float32(a.X), float32(a.Y), 0 },\n\t\t\tstl.Vec3{ float32(b.X), float32(b.Y), 0 },\n\t\t},\n\t}\n}", "func Uniform4fv(location int32, count int32, value *float32) {\n C.glowUniform4fv(gpUniform4fv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func DirtoArr(direction string) []float64 {\n\tswitch direction {\n\tcase \"north\":\n\t\treturn []float64{1, 0}\n\tcase \"east\":\n\t\treturn []float64{0, 1}\n\tcase \"west\":\n\t\treturn []float64{-1, 0}\n\tcase \"south\":\n\t\treturn []float64{-1, 0}\n\tdefault:\n\t\treturn []float64{1, 0}\n\t}\n}", "func (l *Location) ArrayPositions() []uint64 {\n\treturn l.ap\n}", "func makeVao(data []float32) uint32 {\n\tvar vbo uint32\n\tgl.GenBuffers(1, &vbo)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.BufferData(gl.ARRAY_BUFFER, 4*len(data), gl.Ptr(data), gl.STATIC_DRAW)\n\n\tvar vao uint32\n\tgl.GenVertexArrays(1, &vao)\n\tgl.BindVertexArray(vao)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tvar offset int\n\n\t// position attribute\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(offset))\n\tgl.EnableVertexAttribArray(0)\n\toffset += 3 * 4\n\n\t// color attribute\n\tgl.VertexAttribPointer(1, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(offset))\n\tgl.EnableVertexAttribArray(1)\n\toffset += 3 * 4\n\n\t// texture coord attribute\n\tgl.VertexAttribPointer(2, 2, gl.FLOAT, false, 8*4, gl.PtrOffset(offset))\n\tgl.EnableVertexAttribArray(2)\n\toffset += 2 * 4\n\n\treturn vao\n}", "func (p *point) GetCoordinates() []float64 {\n\treturn p.Coordinates\n}", "func Uniform3fv(location int32, count int32, value *float32) {\n C.glowUniform3fv(gpUniform3fv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func DrawArrays(mode uint32, first int32, count int32) {\n C.glowDrawArrays(gpDrawArrays, (C.GLenum)(mode), (C.GLint)(first), (C.GLsizei)(count))\n}", "func _geoToVec3d(geo *GeoCoord, v *Vec3d) {\n\tr := math.Cos(geo.lat)\n\n\tv.z = math.Sin(geo.lat)\n\tv.x = math.Cos(geo.lon) * r\n\tv.y = math.Sin(geo.lon) * r\n}", "func cloud(x, y, w, h openvg.VGfloat, color string) {\n\tradius := w / 3\n\tr2 := radius * 1.8\n\topenvg.FillColor(color)\n\topenvg.Circle(x+w*0.25, y+h*0.25, radius)\n\topenvg.Circle(x+w*0.30, y+h*0.45, radius)\n\topenvg.Circle(x+w*0.60, y+h*0.40, r2)\n}", "func Uniform2fv(location int32, count int32, value *float32) {\n C.glowUniform2fv(gpUniform2fv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func parseVertex(t []string) []float32 {\n\tx, _ := strconv.ParseFloat(t[0], 32)\n\ty, _ := strconv.ParseFloat(t[1], 32)\n\tz, _ := strconv.ParseFloat(t[2], 32)\n\n\treturn []float32{float32(x), float32(y), float32(z)}\n}", "func BindVertexArray(array uint32) {\n C.glowBindVertexArray(gpBindVertexArray, (C.GLuint)(array))\n}", "func (s *Asteroid) generatePoints() {\n\tvar points []float32\n\tvar numV int = (rand.Intn(5) + 10)\n\t//For each vertex\n\tfor i := 0; i < numV*3; i += 3 {\n\t\t//Calculate angles\n\t\tvar angle float64 = (2 * math.Pi) / float64(numV*3) * float64(i)\n\t\t//Add coordinate with random radius\n\t\tpoints = append(points, float32((rand.Float64()-0.3)*30+float64(s.r)*math.Cos(angle))/Width)\n\t\tpoints = append(points, float32((rand.Float64()-0.3)*30+float64(s.r)*math.Sin(angle))/Height)\n\t\tpoints = append(points, 0)\n\t}\n\ts.points = points\n\ts.init = points\n}", "func CoordinatesFlat(flatCoords []float64, offset, end, stride, dim int) *CoordinatesFlatElement {\n\treturn &CoordinatesFlatElement{\n\t\tflatCoords: flatCoords,\n\t\toffset: offset,\n\t\tend: end,\n\t\tstride: stride,\n\t\tdim: dim,\n\t}\n}", "func makeVao(points []float32) uint32 {\n\tvar vbo uint32\n\tgl.GenBuffers(1, &vbo)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.BufferData(gl.ARRAY_BUFFER, 4*len(points), gl.Ptr(points), gl.STATIC_DRAW)\n\n\tvar vao uint32\n\tgl.GenVertexArrays(1, &vao)\n\tgl.BindVertexArray(vao)\n\tgl.EnableVertexAttribArray(0)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, 0, nil)\n\n\treturn vao\n}", "func initPxMap() [][]bool {\n\tmaze, err := os.Open(mazeFile)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer maze.Close()\n\n\tcolorMap, err := png.Decode(maze)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tsizeX = colorMap.Bounds().Max.X\n\tsizeY = colorMap.Bounds().Max.Y\n\tvar pxMap [][]bool\n\n\tfor x := 0; x < sizeX; x++ {\n\t\tvar temp []bool\n\t\tfor y := 0; y < sizeY; y++ {\n\t\t\ttemp = append(temp, false)\n\t\t}\n\t\tpxMap = append(pxMap, temp)\n\t}\n\n\tfor x := 0; x < sizeX; x++ {\n\t\tfor y := 0; y < sizeY; y++ {\n\t\t\tif color.GrayModel.Convert(colorMap.At(x, y)).(color.Gray).Y == 255 {\n\t\t\t\tpxMap[x][y] = true\n\t\t\t} else {\n\t\t\t\tpxMap[x][y] = false\n\t\t\t}\n\t\t}\n\t}\n\treturn pxMap\n}", "func getPoint(x, y []byte) plotter.XYZs {\n\tpts := make(plotter.XYZs, len(x))\n\tfor i := range x {\n\t\tpts[i].X = float64(x[i])\n\t\tpts[i].Y = float64(y[i])\n\t\tpts[i].Z = 0.1\n\n\t}\n\treturn pts\n}", "func (self *Tween) GenerateData() []interface{}{\n\tarray00 := self.Object.Call(\"generateData\")\n\tlength00 := array00.Length()\n\tout00 := make([]interface{}, length00, length00)\n\tfor i00 := 0; i00 < length00; i00++ {\n\t\tout00[i00] = array00.Index(i00)\n\t}\n\treturn out00\n}", "func packSFzVertex(v []FzVertex, ptr0 *C.fz_vertex) {\n\tconst m = 0x7fffffff\n\tfor i0 := range v {\n\t\tptr1 := (*(*[m / sizeOfFzVertexValue]C.fz_vertex)(unsafe.Pointer(ptr0)))[i0]\n\t\tv[i0] = *NewFzVertexRef(unsafe.Pointer(&ptr1))\n\t}\n}", "func Uniform1FloatArray(location UniformLocation, value []float32) {\n\tgl.Uniform1fv(int32(location), 1, &value[0])\n}", "func assignCoordinates(layers [][]*vertex, ro *renderConfig) {\n\tmaxWidth := rowWidth(layers, ro)\n\tfor _, l := range layers {\n\t\tboxCenterOffset := maxWidth / (len(l) + 1)\n\t\tfor j := 0; j < len(l); j++ {\n\t\t\tl[j].rowOffset = (j + 1) * boxCenterOffset\n\t\t}\n\t}\n}", "func main() {\n // Number of coords\n var n int\n fmt.Scan(&n)\n\n // Doubled as we store x and y individually\n n *= 2\n\n // Coords as a flat list x1,y1, x2,y2, etc\n coords := make([]int64, n)\n for i:=0; i<n; i++ {\n var c int64\n fmt.Scan(&c)\n coords[i] = c\n }\n\n // Test01 - Expected 4\n //coords = []int64{0,0,1,1,2,2}\n\n // Test02 - Expected 4\n //coords = []int64{1,2,0,0,2,2}\n\n // Test05 - Expected 18\n //coords = []int64{-5,-3,-9,2,3,-4}\n\n run(coords)\n}", "func (g *F) Call(p ...float64) []float64 {\n\tcoords := make([]float64, len(p))\n\tfor i := 0; i < len(p); i++ {\n\t\tcoords[i] = g.f[i](p...)\n\t}\n\treturn coords\n}", "func Float64Vector(min, max float64, size int) []float64 {\n\top := make([]float64, size)\n\tfor i := 0; i < size; i++ {\n\t\top[i] = Float64(min, max)\n\t}\n\treturn op\n}", "func (grid *SquareGrid) Vertices(c, r int) (verts []mgl64.Vec2) {\n\tverts = make([]mgl64.Vec2, 4, 4)\n\toffset := grid.Orientation + math.Pi/4 // rotation + 45 deg\n\n\tx, y := grid.ToWorld(float64(c), float64(r))\n\tfor i := 0.0; i < 4; i++ {\n\t\ttheta := i*math.Pi/2 + offset\n\t\tsin, cos := math.Sincos(theta)\n\t\tverts[int(i)][0] = grid.Circumradius*cos + x\n\t\tverts[int(i)][1] = grid.Circumradius*sin + y\n\t}\n\n\treturn\n}", "func MakeVertexArray(points []float32) uint32 {\n\tvar vbo uint32\n\tgl.GenBuffers(1, &vbo)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.BufferData(gl.ARRAY_BUFFER, 4*len(points), gl.Ptr(points), gl.STATIC_DRAW)\n\n\tvar vao uint32\n\tgl.GenVertexArrays(1, &vao)\n\tgl.BindVertexArray(vao)\n\tgl.EnableVertexAttribArray(0)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, 0, nil)\n\n\treturn vao\n}", "func (s *vSite) Vertices() []image.Point {\n\tif s.points == nil {\n\t\ts.build()\n\t}\n\treturn s.points\n}", "func (v Vec3i) ToArray(array []int32, offset int) {\n\tarray[offset] = v.X\n\tarray[offset+1] = v.Y\n\tarray[offset+2] = v.Z\n}", "func OfPoints(pts ...[2]float64) Winding { return Order{}.OfPoints(pts...) }", "func XYZ(width, height int) (*ImageRef, error) {\n\tvipsImage, err := vipsXYZ(width, height)\n\treturn newImageRef(vipsImage, ImageTypeUnknown, ImageTypeUnknown, nil), err\n}", "func normal2imageCoordinate(x, y int) (int, int) {\n\tx = x + maxX/3\n\ty = y + maxY/2\n\treturn x, y\n}", "func (s *vSite) Edges() [][2]image.Point {\n\tif s.points == nil {\n\t\ts.build()\n\t}\n\treturn s.edges\n}", "func (hmd *Hmd) GetFloatArray(propertyName string) []float32 {\n\t_propertyName := C.CString(propertyName)\n\tdefer C.free(unsafe.Pointer(_propertyName))\n\tarraySize := C.ovrHmd_GetArraySize(hmd.cptr(), _propertyName)\n\tvalues := make([]float32, arraySize)\n\tarrayPtr := (*C.float)(&values[0])\n\tC.ovrHmd_GetFloatArray(hmd.cptr(), _propertyName, arrayPtr, arraySize)\n\treturn values\n}", "func pcloud(x, y, w, h openvg.VGfloat, color string) {\n\tsun(x+w*.2, y+h*.33, w*.7, h*.7, \"orange\")\n\tcloud(x, y, w, h, color)\n}", "func initVector(n int, value float64) []float64 {\n\tx := make([]float64, n)\n\tfor i := 0; i < n; i++ {\n\t\tx[i] = value\n\t}\n\treturn x\n}", "func (arr *FloatArray) Map(exec func(el float64) float64) []float64 {\n\treturn arr.Collect(exec)\n}", "func setGeoDegs(p *GeoCoord, latDegs float64, lonDegs float64) {\n\t_setGeoRads(p, degsToRads(latDegs), degsToRads(lonDegs))\n}", "func Uniform4f(location int32, v0 float32, v1 float32, v2 float32, v3 float32) {\n C.glowUniform4f(gpUniform4f, (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1), (C.GLfloat)(v2), (C.GLfloat)(v3))\n}", "func (c Cube) Set(x, y, z int, val []float64) {\n\tc.Data[x][y][z] = val\n}", "func GenerateShapes() {\r\n\t// Square\r\n\tShapes[0].vertices = []gl.GLfloat{-1, -1, 1, -1, -1, 1, 1, 1}\r\n\tShapes[0].elements = []gl.GLushort{0, 1, 2, 2, 3, 1}\r\n\r\n\t// ___|\r\n\tShapes[1].vertices = []gl.GLfloat{-2, 0, -2, -1, 2, -1, 2, 0, 2, 1, 1, 1, 1, 0}\r\n\tShapes[1].elements = []gl.GLushort{0, 1, 2, 2, 3, 0, 3, 4, 5, 5, 6, 3}\r\n\r\n\t// _|_\r\n\tShapes[2].vertices = []gl.GLfloat{-1.5, 0, -0.5, 0, -0.5, 1, 0.5, 1, 0.5, 0, 1.5, 0, 1.5, -1, -1.5, -1}\r\n\tShapes[2].elements = []gl.GLushort{1, 2, 3, 3, 4, 1, 0, 7, 6, 6, 0, 5}\r\n\r\n\t// Snake\r\n\tShapes[3].vertices = []gl.GLfloat{-1.5, -1, -1.5, 0, -0.5, 0, -0.5, 1, 1.5, 1, 1.5, 0, 0.5, 0, 0.5, -1}\r\n\tShapes[3].elements = []gl.GLushort{0, 1, 6, 6, 7, 0, 2, 3, 4, 4, 5, 2}\r\n\r\n\t// Now fill out the rest automatically.\r\n\t// FIXME why doesn't using _, shape in this loop work ?\r\n\tfor i := range Shapes {\r\n\t\tShapes[i].vao = gl.GenVertexArray()\r\n\t\tShapes[i].vao.Bind()\r\n\t\tShapes[i].vbo = gl.GenBuffer()\r\n\t\tShapes[i].vbo.Bind(gl.ARRAY_BUFFER)\r\n\t\tgl.BufferData(gl.ARRAY_BUFFER, len(Shapes[i].vertices)*4, Shapes[i].vertices, gl.STATIC_DRAW)\r\n\t\tShapes[i].elementBuffer = gl.GenBuffer()\r\n\t\tShapes[i].elementBuffer.Bind(gl.ELEMENT_ARRAY_BUFFER)\r\n\t\tgl.BufferData(gl.ELEMENT_ARRAY_BUFFER, len(Shapes[i].elements)*2, Shapes[i].elements, gl.STATIC_DRAW)\r\n\t\tShapes[i].numElements = len(Shapes[i].elements)\r\n\r\n\t\tvertexAttribArray := shaderProgram.GetAttribLocation(\"position\")\r\n\t\tvertexAttribArray.AttribPointer(2, gl.FLOAT, false, 0, uintptr(0))\r\n\t\tvertexAttribArray.EnableArray()\r\n\t}\r\n}", "func makeSlice(offset dvid.Point3d, size dvid.Point2d) []byte {\n\tnumBytes := size[0] * size[1] * 8\n\tslice := make([]byte, numBytes, numBytes)\n\ti := 0\n\tmodz := offset[2] % int32(len(zdata))\n\tfor y := int32(0); y < size[1]; y++ {\n\t\tsy := y + offset[1]\n\t\tmody := sy % int32(len(ydata))\n\t\tsx := offset[0]\n\t\tfor x := int32(0); x < size[0]; x++ {\n\t\t\tmodx := sx % int32(len(xdata))\n\t\t\tbinary.BigEndian.PutUint64(slice[i:i+8], xdata[modx]+ydata[mody]+zdata[modz])\n\t\t\ti += 8\n\t\t\tsx++\n\t\t}\n\t}\n\treturn slice\n}", "func (elems Elements) positions() []dvid.Point3d {\n\tpts := make([]dvid.Point3d, len(elems))\n\tfor i, elem := range elems {\n\t\tpts[i] = elem.Pos\n\t}\n\treturn pts\n}", "func (c *Config) coordinates(coords []string) ([]*geometry.Point, error) {\n\n\tpoints := []*geometry.Point{}\n\tfor _, coord := range coords {\n\t\tpoint := geometry.NewPoint(0, 0)\n\t\tcmpnts := strings.Split(strings.TrimSpace(coord), \", \")\n\n\t\tvar err error\n\t\tif len(cmpnts) != 2 {\n\t\t\ttext := \"Expected coordinates to be in two-dimensional space\"\n\t\t\treturn nil, errors.New(text)\n\t\t}\n\n\t\tpoint.X, err = strconv.Atoi(cmpnts[0])\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tpoint.Y, err = strconv.Atoi(strings.Trim(cmpnts[1], \")\"))\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tpoints = append(points, point)\n\t}\n\n\treturn points, nil\n}", "func (fe FullEdge) Set(i int, d Dimensional) Spanning {\n\tfe[i] = d.(Point)\n\treturn fe\n}", "func (m *Mat4) ToArray() []gl.Float {\n\tarr := make([]gl.Float, 16)\n\tfor i, vec := range m {\n\t\tarr[i*4] = vec.X\n\t\tarr[i*4+1] = vec.Y\n\t\tarr[i*4+2] = vec.Z\n\t\tarr[i*4+3] = vec.W\n\t}\n\treturn arr\n}", "func Float64Slice(a ...float64) []*float64 {\n\tp := make([]*float64, len(a))\n\tfor i, v := range a {\n\t\tv := v\n\t\tp[i] = &v\n\t}\n\treturn p\n}", "func (outer outer) Shape() []pos.Rel {\r\n\tl := make([]pos.Rel, 2*(outer.Xlen+outer.Ylen))\r\n\tfor i := 0; i < outer.Xlen; i++ {\r\n\t\tl[i] = pos.Rel{Z: i, W: -1}\r\n\t\tl[outer.Xlen+i] = pos.Rel{Z: i, W: outer.Ylen}\r\n\t}\r\n\tfor j := 0; j < outer.Ylen; j++ {\r\n\t\tl[2*outer.Xlen+j] = pos.Rel{Z: -1, W: j}\r\n\t\tl[2*outer.Xlen+outer.Ylen+j] = pos.Rel{Z: outer.Xlen, W: j}\r\n\t}\r\n\treturn l\r\n}", "func Uniform4IntArray(location UniformLocation, value []int32) {\n\tgl.Uniform4iv(int32(location), 1, &value[0])\n}", "func Create(rows, cols int) (grid Grid) {\n\tgrid = make([][]*Point, rows)\n\tfor i := range grid {\n\t\tgrid[i] = make([]*Point, cols)\n\t}\n\tfor row := 0; row < rows; row++ {\n\t\tfor col := 0; col < cols; col++ {\n\t\t\tpoint := Point{row, col}\n\t\t\tgrid[row][col] = &point\n\t\t}\n\t}\n\treturn\n}", "func Uniform1fv(location int32, count int32, value *float32) {\n C.glowUniform1fv(gpUniform1fv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func ProgramUniform4fv(program uint32, location int32, count int32, value *float32) {\n C.glowProgramUniform4fv(gpProgramUniform4fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func geoCoordsToC(coords []GeoCoord) *C.GeoCoord {\n\tif len(coords) == 0 {\n\t\treturn nil\n\t}\n\n\t// Use malloc to construct a C-style struct array for the output\n\tcverts := C.malloc(C.size_t(C.sizeof_GeoCoord * len(coords)))\n\tpv := cverts\n\tfor _, gc := range coords {\n\t\t*((*C.GeoCoord)(pv)) = gc.toC()\n\t\tpv = unsafe.Pointer(uintptr(pv) + C.sizeof_GeoCoord)\n\t}\n\n\treturn (*C.GeoCoord)(cverts)\n}", "func (z *Zzz) ToArray() A.X { //nolint:dupl false positive\n\tvar id any = nil\n\tif z.Id != 0 {\n\t\tid = z.Id\n\t}\n\treturn A.X{\n\t\tid,\n\t\tz.CreatedAt, // 1\n\t\tz.Coords, // 2\n\t\tz.Name, // 3\n\t\tz.HeightMeter, // 4\n\t}\n}", "func GenVertexArrays(n int32, arrays *uint32) {\n C.glowGenVertexArrays(gpGenVertexArrays, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(arrays)))\n}", "func (geom Geometry) Z(index int) float64 {\n\tz := C.OGR_G_GetZ(geom.cval, C.int(index))\n\treturn float64(z)\n}", "func absSlice(out, a []float64)", "func Vec(s ...float64) Vector {\n\tv := make([]float64, len(s))\n\tfor i := range s {\n\t\tv[i] = s[i]\n\t}\n\treturn v\n}", "func (tr *trooper) loc() (x, y, z float64) { return tr.part.At() }", "func SliceFloat(i interface{}) []float64 {\n\treturn Floats(i)\n}", "func ProgramUniform2fv(program uint32, location int32, count int32, value *float32) {\n C.glowProgramUniform2fv(gpProgramUniform2fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func range1D(start int, end int) *fftw.Array {\n\ta := fftw.NewArray(end - start + 1)\n\tfor i := 0; i <= end-start; i++ {\n\t\ta.Set(i, complex(float64(i+start), 0.0))\n\t}\n\n\treturn a\n}", "func Uniform3f(location int32, v0 float32, v1 float32, v2 float32) {\n C.glowUniform3f(gpUniform3f, (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1), (C.GLfloat)(v2))\n}", "func packSFzIrect(v []FzIrect, ptr0 *C.fz_irect) {\n\tconst m = 0x7fffffff\n\tfor i0 := range v {\n\t\tptr1 := (*(*[m / sizeOfFzIrectValue]C.fz_irect)(unsafe.Pointer(ptr0)))[i0]\n\t\tv[i0] = *NewFzIrectRef(unsafe.Pointer(&ptr1))\n\t}\n}", "func fixCoordSystem(p vertexType) vertexType {\n\treturn vertexType{\n\t\tp[0],\n\t\t-1.0 * p[2],\n\t\tp[1],\n\t}\n}", "func makeFloatSlice(c int) []float64 {\n\tlf := []float64{}\n\tfor i := 0; i < c; i++ {\n\t\tf := float64(i * 100)\n\t\tlf = append(lf, f)\n\t}\n\treturn lf\n}", "func (a *PixelSubArray) set(x, y int) {\n\txByte := x/8 - a.xStartByte\n\txBit := uint(x % 8)\n\tyRow := y - a.yStart\n\n\tif yRow > len(a.bytes) {\n\t\tfmt.Println(\"Y OOB:\", len(a.bytes), yRow)\n\t}\n\n\tif xByte > len(a.bytes[0]) {\n\t\tfmt.Println(\"X OOB:\", len(a.bytes[0]), xByte)\n\t}\n\n\ta.bytes[yRow][xByte] |= (1 << xBit)\n}" ]
[ "0.5978854", "0.5606312", "0.55919766", "0.54744315", "0.5289683", "0.51993346", "0.4823338", "0.48125443", "0.47996283", "0.47277954", "0.47242686", "0.47241172", "0.46961117", "0.46889135", "0.46714833", "0.46628296", "0.462726", "0.46083412", "0.45947847", "0.45873848", "0.45835286", "0.45811665", "0.45755696", "0.45647818", "0.4558873", "0.4544594", "0.45439786", "0.45367914", "0.45330903", "0.45271465", "0.45129886", "0.45101488", "0.45005774", "0.44940603", "0.44823328", "0.44711244", "0.44460863", "0.44412398", "0.44340074", "0.4432898", "0.44231847", "0.442142", "0.4417849", "0.44121104", "0.44114652", "0.4406204", "0.44045585", "0.4401062", "0.4397564", "0.43953934", "0.43944132", "0.4386121", "0.4380192", "0.43780643", "0.4376677", "0.43692032", "0.43522316", "0.43473446", "0.4341619", "0.43414357", "0.43304798", "0.4328475", "0.43264848", "0.43241557", "0.4317249", "0.43113232", "0.4307172", "0.4302562", "0.430177", "0.42943007", "0.42874634", "0.42853972", "0.4278773", "0.42710948", "0.42702255", "0.42591238", "0.42523605", "0.42508075", "0.42331904", "0.42320684", "0.42124957", "0.42099017", "0.420856", "0.42010868", "0.41945964", "0.4186881", "0.41866037", "0.41863704", "0.41775626", "0.41739848", "0.41733173", "0.41655505", "0.41612586", "0.41606185", "0.41605112", "0.4157665", "0.4151557", "0.41506973", "0.41448194", "0.41407895" ]
0.49031332
6
set a named parameter of a framebuffer object
func FramebufferParameteri(target uint32, pname uint32, param int32) { C.glowFramebufferParameteri(gpFramebufferParameteri, (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NamedFramebufferParameteri(framebuffer uint32, pname uint32, param int32) {\n\tsyscall.Syscall(gpNamedFramebufferParameteri, 3, uintptr(framebuffer), uintptr(pname), uintptr(param))\n}", "func (t Texture3D) SetParameter(paramName uint32, param int32) {\n\tt.Bind()\n\tgl.TexParameteri(gl.TEXTURE_3D, paramName, param)\n\tt.Unbind()\n}", "func NamedFramebufferParameteri(framebuffer uint32, pname uint32, param int32) {\n\tC.glowNamedFramebufferParameteri(gpNamedFramebufferParameteri, (C.GLuint)(framebuffer), (C.GLenum)(pname), (C.GLint)(param))\n}", "func NamedFramebufferParameteri(framebuffer uint32, pname uint32, param int32) {\n\tC.glowNamedFramebufferParameteri(gpNamedFramebufferParameteri, (C.GLuint)(framebuffer), (C.GLenum)(pname), (C.GLint)(param))\n}", "func FramebufferParameteri(target uint32, pname uint32, param int32) {\n C.glowFramebufferParameteri(gpFramebufferParameteri, (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param))\n}", "func FramebufferParameteri(target uint32, pname uint32, param int32) {\n\tsyscall.Syscall(gpFramebufferParameteri, 3, uintptr(target), uintptr(pname), uintptr(param))\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tsyscall.Syscall(gpNamedFramebufferDrawBuffer, 2, uintptr(framebuffer), uintptr(buf), 0)\n}", "func (b *Binding) Set(buf uint32) {\n\tgl.BindBufferBase(gl.SHADER_STORAGE_BUFFER, b.uint32, buf)\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tC.glowNamedFramebufferDrawBuffer(gpNamedFramebufferDrawBuffer, (C.GLuint)(framebuffer), (C.GLenum)(buf))\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tC.glowNamedFramebufferDrawBuffer(gpNamedFramebufferDrawBuffer, (C.GLuint)(framebuffer), (C.GLenum)(buf))\n}", "func (self *TileSprite) SetFrameNameA(member string) {\n self.Object.Set(\"frameName\", member)\n}", "func (self *Graphics) SetNameA(member string) {\n self.Object.Set(\"name\", member)\n}", "func TexParameterf(target, pname Enum, param float32) {\n\tgl.TexParameterf(uint32(target), uint32(pname), param)\n}", "func (self *TileSprite) SetFrameA(member int) {\n self.Object.Set(\"frame\", member)\n}", "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func BlitNamedFramebuffer(readFramebuffer uint32, drawFramebuffer uint32, srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tsyscall.Syscall12(gpBlitNamedFramebuffer, 12, uintptr(readFramebuffer), uintptr(drawFramebuffer), uintptr(srcX0), uintptr(srcY0), uintptr(srcX1), uintptr(srcY1), uintptr(dstX0), uintptr(dstY0), uintptr(dstX1), uintptr(dstY1), uintptr(mask), uintptr(filter))\n}", "func (native *OpenGL) TexParameterf(target uint32, pname uint32, param float32) {\n\tgl.TexParameterf(target, pname, param)\n}", "func TexParameterf(target, pname GLEnum, param float32) {\n\tgl.TexParameterf(uint32(target), uint32(pname), param)\n}", "func BindFramebuffer(target uint32, framebuffer uint32) {\n C.glowBindFramebuffer(gpBindFramebuffer, (C.GLenum)(target), (C.GLuint)(framebuffer))\n}", "func BlitNamedFramebuffer(readFramebuffer uint32, drawFramebuffer uint32, srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tC.glowBlitNamedFramebuffer(gpBlitNamedFramebuffer, (C.GLuint)(readFramebuffer), (C.GLuint)(drawFramebuffer), (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func BlitNamedFramebuffer(readFramebuffer uint32, drawFramebuffer uint32, srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tC.glowBlitNamedFramebuffer(gpBlitNamedFramebuffer, (C.GLuint)(readFramebuffer), (C.GLuint)(drawFramebuffer), (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func (j *Jsonnet) SetParam(path []string, value interface{}) error {\n\t// TODO: make this work at the env level too\n\tparamsData, err := j.readParams(\"\")\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tupdatedParams, err := params.SetInObject(path, paramsData, j.Name(false), value, paramsComponentRoot)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif err = j.writeParams(updatedParams); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}", "func (s *Shader) SetUniformBlock(name string, value interface{}, size int) {\n\t// check if the uniform buffer object already exists\n\tubo, ok := s.uniformBOs[name]\n\tif !ok {\n\t\t// if not, generate one\n\t\tgl.GenBuffers(1, &ubo)\n\t\ts.uniformBOs[name] = ubo\n\t}\n\n\tgl.BindBuffer(gl.UNIFORM_BUFFER, ubo)\n\n\t// set the new data\n\tgl.BufferData(gl.UNIFORM_BUFFER, size, nil, gl.DYNAMIC_DRAW)\n\tgl.BindBufferBase(gl.UNIFORM_BUFFER, s.getUniformBlockLocation(name), ubo)\n}", "func (self *Graphics) SetInCameraA(member bool) {\n self.Object.Set(\"inCamera\", member)\n}", "func TexParameterf(target Enum, pname Enum, param Float) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcpname, _ := (C.GLenum)(pname), cgoAllocsUnknown\n\tcparam, _ := (C.GLfloat)(param), cgoAllocsUnknown\n\tC.glTexParameterf(ctarget, cpname, cparam)\n}", "func (self *TileSprite) SetCanvasBufferA(member *PIXICanvasBuffer) {\n self.Object.Set(\"canvasBuffer\", member)\n}", "func (self *Tween) SetFrameBasedA(member bool) {\n self.Object.Set(\"frameBased\", member)\n}", "func (self *Graphics) SetYA(member int) {\n self.Object.Set(\"y\", member)\n}", "func (dev *Device) SetVideobuffer(buf unsafe.Pointer) int {\n\treturn int(C.freenect_set_video_buffer(dev.ptr(), buf))\n}", "func (self *TileSprite) SetFrame(frame *Frame) {\n self.Object.Call(\"setFrame\", frame)\n}", "func NamedFramebufferDrawBuffers(framebuffer uint32, n int32, bufs *uint32) {\n\tsyscall.Syscall(gpNamedFramebufferDrawBuffers, 3, uintptr(framebuffer), uintptr(n), uintptr(unsafe.Pointer(bufs)))\n}", "func NamedFramebufferRenderbuffer(framebuffer uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tsyscall.Syscall6(gpNamedFramebufferRenderbuffer, 4, uintptr(framebuffer), uintptr(attachment), uintptr(renderbuffertarget), uintptr(renderbuffer), 0, 0)\n}", "func (self *PhysicsP2) SetFrameRateA(member int) {\n self.Object.Set(\"frameRate\", member)\n}", "func (a *AdditionalGUTI) SetAMFPointer(aMFPointer uint8) {}", "func BindFramebuffer(target Enum, fb Framebuffer) {\n\tgl.BindFramebuffer(uint32(target), fb.Value)\n}", "func (s *Shader) setUniformMatrix(name string, value *mgl32.Mat4) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n\n bb := new([16]float32) // Creamos un buffer de floats\n for i:=0; i<4; i++{\n for j:=0; j<4; j++ {\n bb[j+i*4] = float32(value.At(i,j))\n }\n }\n gl.UniformMatrix4fv(location, 1, false, &bb[0]) // Enviar a shader matriz PROJECTION * SCALE\n }\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tsyscall.Syscall(gpNamedFramebufferReadBuffer, 2, uintptr(framebuffer), uintptr(src), 0)\n}", "func (pix *Pixel) Set(keyName string, val int) Pixel {\n\tswitch keyName {\n\tcase \"R\":\n\t\tpix.R = val\n\tcase \"G\":\n\t\tpix.G = val\n\tcase \"B\":\n\t\tpix.B = val\n\tcase \"A\":\n\t\tpix.A = val\n\t}\n\treturn *pix\n}", "func (self *Graphics) SetFixedToCameraA(member bool) {\n self.Object.Set(\"fixedToCamera\", member)\n}", "func BindFramebuffer(target uint32, framebuffer uint32) {\n\tsyscall.Syscall(gpBindFramebuffer, 2, uintptr(target), uintptr(framebuffer), 0)\n}", "func TexParameteri(target, pname Enum, param int) {\n\tgl.TexParameteri(uint32(target), uint32(pname), int32(param))\n}", "func (gl *WebGL) TexParameterf(target GLEnum, param GLEnum, value float64) {\n\tgl.context.Call(\"texParameterf\", target, param, value)\n}", "func (self *Graphics) SetXA(member int) {\n self.Object.Set(\"x\", member)\n}", "func (dev *Device) SetDepthBuffer(buf unsafe.Pointer) int {\n\treturn int(C.freenect_set_depth_buffer(dev.ptr(), buf))\n}", "func BindFragDataLocation(program uint32, color uint32, name *int8) {\n C.glowBindFragDataLocation(gpBindFragDataLocation, (C.GLuint)(program), (C.GLuint)(color), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (self *Graphics) SetZA(member int) {\n self.Object.Set(\"z\", member)\n}", "func (frame *AvFrame) SetInfo(width int, height int, pixFmt int) (err error) {\n\tframe.width = C.int(width)\n\tframe.height = C.int(height)\n\tframe.format = C.int(pixFmt)\n\tif ret := C.av_frame_get_buffer((*C.struct_AVFrame)(unsafe.Pointer(frame)), 32 /*alignment*/); ret < 0 {\n\t\terr = fmt.Errorf(\"Error allocating avframe buffer. Err: %v\", ret)\n\t\treturn\n\t}\n\treturn\n}", "func setIntensity(intensity, device int, name string) {\n\trequest := RpcRequest{(fmt.Sprintf(\"{\\\"command\\\":\\\"gpuintensity\\\",\\\"parameter\\\":\\\"%v,%v\\\"}\", device, intensity)), make(chan []byte), name}\n\trequest.Send()\n}", "func TexParameterfv(target, pname Enum, params []float32) {\n\tgl.TexParameterfv(uint32(target), uint32(pname), &params[0])\n}", "func (self *Rectangle) SetYA(member int) {\n self.Object.Set(\"y\", member)\n}", "func (self *Graphics) SetInputA(member interface{}) {\n self.Object.Set(\"input\", member)\n}", "func (self *TileSprite) SetNameA(member string) {\n self.Object.Set(\"name\", member)\n}", "func (t *Texture) Set(x uint16, y uint16, value rgb565.Rgb565Color) {\n\tt.pixels[y*t.width+x] = value\n}", "func (self *Graphics) SetDebugA(member bool) {\n self.Object.Set(\"debug\", member)\n}", "func (input *BeegoInput) SetParam(key, val string) {\n\t// check if already exists\n\tfor i, v := range input.pnames {\n\t\tif v == key && i <= len(input.pvalues) {\n\t\t\tinput.pvalues[i] = val\n\t\t\treturn\n\t\t}\n\t}\n\tinput.pvalues = append(input.pvalues, val)\n\tinput.pnames = append(input.pnames, key)\n}", "func BindAttribLocation(program uint32, index uint32, name *int8) {\n C.glowBindAttribLocation(gpBindAttribLocation, (C.GLuint)(program), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tC.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tC.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src))\n}", "func NamedFramebufferDrawBuffers(framebuffer uint32, n int32, bufs *uint32) {\n\tC.glowNamedFramebufferDrawBuffers(gpNamedFramebufferDrawBuffers, (C.GLuint)(framebuffer), (C.GLsizei)(n), (*C.GLenum)(unsafe.Pointer(bufs)))\n}", "func NamedFramebufferDrawBuffers(framebuffer uint32, n int32, bufs *uint32) {\n\tC.glowNamedFramebufferDrawBuffers(gpNamedFramebufferDrawBuffers, (C.GLuint)(framebuffer), (C.GLsizei)(n), (*C.GLenum)(unsafe.Pointer(bufs)))\n}", "func TexParameteri(target, pname GLEnum, param int32) {\n\tgl.TexParameteri(uint32(target), uint32(pname), param)\n}", "func (self *Graphics) SetDataA(member interface{}) {\n self.Object.Set(\"data\", member)\n}", "func setGPUMemory(clock, device int, name string) {\n\trequest := RpcRequest{(fmt.Sprintf(\"{\\\"command\\\":\\\"gpumem\\\",\\\"parameter\\\":\\\"%v,%v\\\"}\", device, clock)), make(chan []byte), name}\n\trequest.Send()\n}", "func (self *TileSprite) SetShaderA(member *AbstractFilter) {\n self.Object.Set(\"shader\", member)\n}", "func Set(name, value string) bool {\n\tf, ok := flags.formal[name];\n\tif !ok {\n\t\treturn false\n\t}\n\tok = f.Value.set(value);\n\tif !ok {\n\t\treturn false\n\t}\n\tflags.actual[name] = f;\n\treturn true;\n}", "func BindFramebuffer(target Enum, framebuffer Uint) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcframebuffer, _ := (C.GLuint)(framebuffer), cgoAllocsUnknown\n\tC.glBindFramebuffer(ctarget, cframebuffer)\n}", "func (debugging *debuggingOpenGL) TexParameteri(target uint32, pname uint32, param int32) {\n\tdebugging.recordEntry(\"TexParameteri\", target, pname, param)\n\tdebugging.gl.TexParameteri(target, pname, param)\n\tdebugging.recordExit(\"TexParameteri\")\n}", "func BindBuffer(target Enum, b Buffer) {\n\tgl.BindBuffer(uint32(target), b.Value)\n}", "func (m *Win32LobAppRegistryDetection) SetValueName(value *string)() {\n err := m.GetBackingStore().Set(\"valueName\", value)\n if err != nil {\n panic(err)\n }\n}", "func (debugging *debuggingOpenGL) BindFramebuffer(target uint32, buffer uint32) {\n\tdebugging.recordEntry(\"BindFramebuffer\", target, buffer)\n\tdebugging.gl.BindFramebuffer(target, buffer)\n\tdebugging.recordExit(\"BindFramebuffer\")\n}", "func (self *Graphics) SetBlendModeA(member int) {\n self.Object.Set(\"blendMode\", member)\n}", "func (skeleton *Skeleton) SetSmoothingFactor(value float32) {\n\n\tC.setObjParamFloat((C.gpointer)(skeleton.skeleton), C.CString(\"smoothing-factor\"), C.float(value))\n}", "func (self *Graphics) SetTypeA(member int) {\n self.Object.Set(\"type\", member)\n}", "func (native *OpenGL) TexParameteri(target uint32, pname uint32, param int32) {\n\tgl.TexParameteri(target, pname, param)\n}", "func SetPixelFormat(hdc unsafe.Pointer, ipfd unsafe.Pointer, ppfd unsafe.Pointer) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall(gpSetPixelFormat, 3, uintptr(hdc), uintptr(ipfd), uintptr(ppfd))\n\treturn (unsafe.Pointer)(ret)\n}", "func NamedFramebufferTextureLayer(framebuffer uint32, attachment uint32, texture uint32, level int32, layer int32) {\n\tsyscall.Syscall6(gpNamedFramebufferTextureLayer, 5, uintptr(framebuffer), uintptr(attachment), uintptr(texture), uintptr(level), uintptr(layer), 0)\n}", "func TexParameterfv(target Enum, pname Enum, params []Float) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcpname, _ := (C.GLenum)(pname), cgoAllocsUnknown\n\tcparams, _ := (*C.GLfloat)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&params)).Data)), cgoAllocsUnknown\n\tC.glTexParameterfv(ctarget, cpname, cparams)\n}", "func NamedFramebufferRenderbuffer(framebuffer uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tC.glowNamedFramebufferRenderbuffer(gpNamedFramebufferRenderbuffer, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func NamedFramebufferRenderbuffer(framebuffer uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tC.glowNamedFramebufferRenderbuffer(gpNamedFramebufferRenderbuffer, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func (d *ModeDiff) setArg(mode rune, arg string) {\n\td.pos.setArg(mode, arg)\n\td.neg.unsetArg(mode, arg)\n}", "func (self *Graphics) SetKeyA(member interface{}) {\n self.Object.Set(\"key\", member)\n}", "func GetNamedFramebufferParameteriv(framebuffer uint32, pname uint32, param *int32) {\n\tsyscall.Syscall(gpGetNamedFramebufferParameteriv, 3, uintptr(framebuffer), uintptr(pname), uintptr(unsafe.Pointer(param)))\n}", "func SetParam(params ParamT, pname string, value string) int32 {\n\tcpname := C.CString(pname)\n\tdefer C.free(unsafe.Pointer(cpname))\n\tcvalue := C.CString(value)\n\tdefer C.free(unsafe.Pointer(cvalue))\n\treturn int32(C.yices_set_param(yparam(params), cpname, cvalue))\n}", "func InvalidateNamedFramebufferData(framebuffer uint32, numAttachments int32, attachments *uint32) {\n\tsyscall.Syscall(gpInvalidateNamedFramebufferData, 3, uintptr(framebuffer), uintptr(numAttachments), uintptr(unsafe.Pointer(attachments)))\n}", "func (self *TileSprite) SetTextureDebugA(member bool) {\n self.Object.Set(\"textureDebug\", member)\n}", "func (m *ChatMessageAttachment) SetName(value *string)() {\n err := m.GetBackingStore().Set(\"name\", value)\n if err != nil {\n panic(err)\n }\n}", "func (self *Graphics) SetFreshA(member bool) {\n self.Object.Set(\"fresh\", member)\n}", "func (self *Graphics) SetGameA(member *Game) {\n self.Object.Set(\"game\", member)\n}", "func InvalidateNamedFramebufferSubData(framebuffer uint32, numAttachments int32, attachments *uint32, x int32, y int32, width int32, height int32) {\n\tsyscall.Syscall9(gpInvalidateNamedFramebufferSubData, 7, uintptr(framebuffer), uintptr(numAttachments), uintptr(unsafe.Pointer(attachments)), uintptr(x), uintptr(y), uintptr(width), uintptr(height), 0, 0)\n}", "func (native *OpenGL) BindFramebuffer(target, buffer uint32) {\n\tgl.BindFramebuffer(target, buffer)\n}", "func (f v4l2Format) setPixFormat(newPix PixFormat) {\n\t*(*PixFormat)(unsafe.Pointer(&f.fmt[0])) = newPix\n}", "func BindFragDataLocationIndexed(program uint32, colorNumber uint32, index uint32, name *int8) {\n C.glowBindFragDataLocationIndexed(gpBindFragDataLocationIndexed, (C.GLuint)(program), (C.GLuint)(colorNumber), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func BindBuffer(target uint32, buffer uint32) {\n C.glowBindBuffer(gpBindBuffer, (C.GLenum)(target), (C.GLuint)(buffer))\n}", "func BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n C.glowBlitFramebuffer(gpBlitFramebuffer, (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func (self *Graphics) SetHeightA(member int) {\n self.Object.Set(\"height\", member)\n}", "func NamedBufferData(buffer uint32, size int, data unsafe.Pointer, usage uint32) {\n\tC.glowNamedBufferData(gpNamedBufferData, (C.GLuint)(buffer), (C.GLsizeiptr)(size), data, (C.GLenum)(usage))\n}", "func NamedBufferData(buffer uint32, size int, data unsafe.Pointer, usage uint32) {\n\tC.glowNamedBufferData(gpNamedBufferData, (C.GLuint)(buffer), (C.GLsizeiptr)(size), data, (C.GLenum)(usage))\n}", "func BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tsyscall.Syscall12(gpBlitFramebuffer, 10, uintptr(srcX0), uintptr(srcY0), uintptr(srcX1), uintptr(srcY1), uintptr(dstX0), uintptr(dstY0), uintptr(dstX1), uintptr(dstY1), uintptr(mask), uintptr(filter), 0, 0)\n}", "func (self *Graphics) SetWorldA(member *Point) {\n self.Object.Set(\"world\", member)\n}" ]
[ "0.6607994", "0.6322477", "0.6318116", "0.6318116", "0.62866694", "0.62609506", "0.61261916", "0.59485966", "0.5854527", "0.5854527", "0.5809548", "0.5750729", "0.5721515", "0.5720505", "0.5703115", "0.5621067", "0.56060416", "0.5551461", "0.5527168", "0.5496869", "0.5496869", "0.54811317", "0.547598", "0.546166", "0.54603404", "0.54412824", "0.5418363", "0.5391593", "0.53708446", "0.5342425", "0.5333473", "0.53135544", "0.5311344", "0.5297348", "0.5295057", "0.5291401", "0.52738607", "0.52705973", "0.5257424", "0.52375525", "0.5234736", "0.5232614", "0.5214384", "0.5205178", "0.5198552", "0.5186266", "0.51813686", "0.51521504", "0.5152146", "0.51508725", "0.5150243", "0.51493067", "0.5146511", "0.5146204", "0.51419365", "0.5122745", "0.512253", "0.512253", "0.51206976", "0.51206976", "0.5118593", "0.51156694", "0.5106945", "0.51049304", "0.50984865", "0.50951785", "0.50926363", "0.50808597", "0.5061589", "0.5059382", "0.5051542", "0.5038162", "0.5035023", "0.50329655", "0.5030838", "0.5022363", "0.50206465", "0.50167793", "0.50167793", "0.5014382", "0.50126505", "0.50122565", "0.49971685", "0.4991168", "0.49885914", "0.49881136", "0.4985098", "0.498243", "0.49788126", "0.49738222", "0.49679643", "0.4965953", "0.4956131", "0.49530244", "0.49467474", "0.49388036", "0.49388036", "0.49371445", "0.49369758" ]
0.572978
13
attach a renderbuffer as a logical buffer of a framebuffer object
func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) { C.glowFramebufferRenderbuffer(gpFramebufferRenderbuffer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (f *Framebuffer) Renderbuffer(attachment gfx.FramebufferAttachment, buf gfx.Renderbuffer) {\n\tf.useState()\n\tf.ctx.O.Call(\n\t\t\"framebufferTexture2D\",\n\t\tf.ctx.FRAMEBUFFER,\n\t\tf.ctx.Enums[int(attachment)],\n\t\tf.ctx.RENDERBUFFER,\n\t\tbuf.Object().(*js.Object),\n\t\t0,\n\t)\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tsyscall.Syscall6(gpFramebufferRenderbuffer, 4, uintptr(target), uintptr(attachment), uintptr(renderbuffertarget), uintptr(renderbuffer), 0, 0)\n}", "func (native *OpenGL) FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tgl.FramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n C.glowFramebufferRenderbuffer(gpFramebufferRenderbuffer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func (debugging *debuggingOpenGL) FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tdebugging.recordEntry(\"FramebufferRenderbuffer\", target, attachment, renderbuffertarget, renderbuffer)\n\tdebugging.gl.FramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)\n\tdebugging.recordExit(\"FramebufferRenderbuffer\")\n}", "func FramebufferRenderbuffer(target, attachment, rbTarget Enum, rb Renderbuffer) {\n\tgl.FramebufferRenderbuffer(uint32(target), uint32(attachment), uint32(rbTarget), rb.Value)\n}", "func (native *OpenGL) BindFramebuffer(target, buffer uint32) {\n\tgl.BindFramebuffer(target, buffer)\n}", "func FramebufferRenderbuffer(target Enum, attachment Enum, renderbuffertarget Enum, renderbuffer Uint) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcattachment, _ := (C.GLenum)(attachment), cgoAllocsUnknown\n\tcrenderbuffertarget, _ := (C.GLenum)(renderbuffertarget), cgoAllocsUnknown\n\tcrenderbuffer, _ := (C.GLuint)(renderbuffer), cgoAllocsUnknown\n\tC.glFramebufferRenderbuffer(ctarget, cattachment, crenderbuffertarget, crenderbuffer)\n}", "func (debugging *debuggingOpenGL) BindFramebuffer(target uint32, buffer uint32) {\n\tdebugging.recordEntry(\"BindFramebuffer\", target, buffer)\n\tdebugging.gl.BindFramebuffer(target, buffer)\n\tdebugging.recordExit(\"BindFramebuffer\")\n}", "func FrameBuffer(m rv.RenderModel) {\n\tframebuffer(m)\n}", "func (native *OpenGL) BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tgl.BlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter)\n}", "func (w *windowImpl) bindBackBuffer() {\n\t// w.mu.Lock()\n\t// size := w.Sz\n\t// w.mu.Unlock()\n\t//\n\tw.backBufferBound = true\n\t// gl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\t// gl.Viewport(0, 0, int32(size.X), int32(size.Y))\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tsyscall.Syscall(gpNamedFramebufferDrawBuffer, 2, uintptr(framebuffer), uintptr(buf), 0)\n}", "func initFramebuffer(width, height int) {\n\tlog.Printf(\"[Video]: Initializing HW render (%v x %v).\\n\", width, height)\n\n\tgl.GenFramebuffers(1, &fboID)\n\tgl.BindFramebuffer(gl.FRAMEBUFFER, fboID)\n\n\t//gl.GenTextures(1, &video.texID)\n\tgl.BindTexture(gl.TEXTURE_2D, texID)\n\tgl.TexStorage2D(gl.TEXTURE_2D, 1, gl.RGBA8, int32(width), int32(height))\n\n\tgl.FramebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, texID, 0)\n\n\thw := state.Global.Core.HWRenderCallback\n\n\tgl.BindRenderbuffer(gl.RENDERBUFFER, 0)\n\n\tif gl.CheckFramebufferStatus(gl.FRAMEBUFFER) != gl.FRAMEBUFFER_COMPLETE {\n\t\tlog.Fatalln(\"[Video] Framebuffer is not complete.\")\n\t}\n\n\tgl.ClearColor(0, 0, 0, 1)\n\tif hw.Depth && hw.Stencil {\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT | gl.STENCIL_BUFFER_BIT)\n\t} else if hw.Depth {\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\t} else {\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT)\n\t}\n\n\tgl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n}", "func BindRenderbuffer(target uint32, renderbuffer uint32) {\n C.glowBindRenderbuffer(gpBindRenderbuffer, (C.GLenum)(target), (C.GLuint)(renderbuffer))\n}", "func NewAttachedBuffer(buffer *Buffer) *Buffer {\n result := NewEmptyBuffer()\n result.AttachBuffer(buffer)\n return result\n}", "func (debugging *debuggingOpenGL) BindBuffer(target uint32, buffer uint32) {\n\tdebugging.recordEntry(\"BindBuffer\", target, buffer)\n\tdebugging.gl.BindBuffer(target, buffer)\n\tdebugging.recordExit(\"BindBuffer\")\n}", "func (native *OpenGL) BindBuffer(target uint32, buffer uint32) {\n\tgl.BindBuffer(target, buffer)\n}", "func BindBuffer(target Enum, b Buffer) {\n\tgl.BindBuffer(uint32(target), b.Value)\n}", "func BindRenderbuffer(target uint32, renderbuffer uint32) {\n\tsyscall.Syscall(gpBindRenderbuffer, 2, uintptr(target), uintptr(renderbuffer), 0)\n}", "func BindFramebuffer(target uint32, framebuffer uint32) {\n C.glowBindFramebuffer(gpBindFramebuffer, (C.GLenum)(target), (C.GLuint)(framebuffer))\n}", "func (gl *WebGL) BindBuffer(target GLEnum, buffer WebGLBuffer) {\n\tgl.context.Call(\"bindBuffer\", target, buffer)\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tC.glowNamedFramebufferDrawBuffer(gpNamedFramebufferDrawBuffer, (C.GLuint)(framebuffer), (C.GLenum)(buf))\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tC.glowNamedFramebufferDrawBuffer(gpNamedFramebufferDrawBuffer, (C.GLuint)(framebuffer), (C.GLenum)(buf))\n}", "func (debugging *debuggingOpenGL) BindRenderbuffer(target uint32, buffer uint32) {\n\tdebugging.recordEntry(\"BindRenderbuffer\", target, buffer)\n\tdebugging.gl.BindRenderbuffer(target, buffer)\n\tdebugging.recordExit(\"BindRenderbuffer\")\n}", "func BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tsyscall.Syscall12(gpBlitFramebuffer, 10, uintptr(srcX0), uintptr(srcY0), uintptr(srcX1), uintptr(srcY1), uintptr(dstX0), uintptr(dstY0), uintptr(dstX1), uintptr(dstY1), uintptr(mask), uintptr(filter), 0, 0)\n}", "func BindBuffer(target uint32, buffer uint32) {\n C.glowBindBuffer(gpBindBuffer, (C.GLenum)(target), (C.GLuint)(buffer))\n}", "func (native *OpenGL) BindRenderbuffer(target uint32, renderbuffer uint32) {\n\tgl.BindRenderbuffer(target, renderbuffer)\n}", "func BindRenderbuffer(target GLEnum, renderbuffer Renderbuffer) {\n\tgl.BindRenderbuffer(uint32(target), uint32(renderbuffer))\n}", "func BindFramebuffer(target uint32, framebuffer uint32) {\n\tsyscall.Syscall(gpBindFramebuffer, 2, uintptr(target), uintptr(framebuffer), 0)\n}", "func (b *Buffer) Attach(buffer []byte) {\n b.AttachBytes(buffer, 0, len(buffer))\n}", "func BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n C.glowBlitFramebuffer(gpBlitFramebuffer, (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func BindFramebuffer(target Enum, framebuffer Uint) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcframebuffer, _ := (C.GLuint)(framebuffer), cgoAllocsUnknown\n\tC.glBindFramebuffer(ctarget, cframebuffer)\n}", "func (debugging *debuggingOpenGL) FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n\tdebugging.recordEntry(\"FramebufferTexture\", target, attachment, texture, level)\n\tdebugging.gl.FramebufferTexture(target, attachment, texture, level)\n\tdebugging.recordExit(\"FramebufferTexture\")\n}", "func BindFramebuffer(target Enum, fb Framebuffer) {\n\tgl.BindFramebuffer(uint32(target), fb.Value)\n}", "func (dev *Device) SetDepthBuffer(buf unsafe.Pointer) int {\n\treturn int(C.freenect_set_depth_buffer(dev.ptr(), buf))\n}", "func BindRenderbuffer(target Enum, renderbuffer Uint) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcrenderbuffer, _ := (C.GLuint)(renderbuffer), cgoAllocsUnknown\n\tC.glBindRenderbuffer(ctarget, crenderbuffer)\n}", "func BindRenderbuffer(target Enum, rb Renderbuffer) {\n\tgl.BindRenderbuffer(uint32(target), rb.Value)\n}", "func BindBuffer(target uint32, buffer uint32) {\n\tsyscall.Syscall(gpBindBuffer, 2, uintptr(target), uintptr(buffer), 0)\n}", "func BindRenderbuffer(target uint32, renderbuffer uint32) {\n\tC.glowBindRenderbuffer(gpBindRenderbuffer, (C.GLenum)(target), (C.GLuint)(renderbuffer))\n}", "func BindRenderbuffer(target uint32, renderbuffer uint32) {\n\tC.glowBindRenderbuffer(gpBindRenderbuffer, (C.GLenum)(target), (C.GLuint)(renderbuffer))\n}", "func BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tC.glowBlitFramebuffer(gpBlitFramebuffer, (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tC.glowBlitFramebuffer(gpBlitFramebuffer, (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func (g *Gaffer) AddBuffer(u *Update) {\n\n\tfor _, v := range u.entities {\n\t\tg.AddEntity(v)\n\t}\n\n\tfor _, v := range u.edges {\n\t\tg.AddEdge(v)\n\t}\n\n}", "func DrawBuffer(mode uint32) {\n C.glowDrawBuffer(gpDrawBuffer, (C.GLenum)(mode))\n}", "func BindFramebuffer(target uint32, framebuffer uint32) {\n\tC.glowBindFramebuffer(gpBindFramebuffer, (C.GLenum)(target), (C.GLuint)(framebuffer))\n}", "func BindFramebuffer(target uint32, framebuffer uint32) {\n\tC.glowBindFramebuffer(gpBindFramebuffer, (C.GLenum)(target), (C.GLuint)(framebuffer))\n}", "func BindBuffer(target uint32, buffer uint32) {\n\tC.glowBindBuffer(gpBindBuffer, (C.GLenum)(target), (C.GLuint)(buffer))\n}", "func BindBuffer(target uint32, buffer uint32) {\n\tC.glowBindBuffer(gpBindBuffer, (C.GLenum)(target), (C.GLuint)(buffer))\n}", "func draw(window *glfw.Window, reactProg, landProg uint32) {\n\n\tvar renderLoops = 4\n\tfor i := 0; i < renderLoops; i++ {\n\t\t// -- DRAW TO BUFFER --\n\t\t// define destination of pixels\n\t\t//gl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\t\tgl.BindFramebuffer(gl.FRAMEBUFFER, FBO[1])\n\n\t\tgl.Viewport(0, 0, width, height) // Retina display doubles the framebuffer !?!\n\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\t\tgl.UseProgram(reactProg)\n\n\t\t// bind Texture\n\t\tgl.ActiveTexture(gl.TEXTURE0)\n\t\tgl.BindTexture(gl.TEXTURE_2D, renderedTexture)\n\t\tgl.Uniform1i(uniTex, 0)\n\n\t\tgl.BindVertexArray(VAO)\n\t\tgl.DrawElements(gl.TRIANGLE_STRIP, int32(len(indices)), gl.UNSIGNED_INT, nil)\n\n\t\tgl.BindVertexArray(0)\n\n\t\t// -- copy back textures --\n\t\tgl.BindFramebuffer(gl.READ_FRAMEBUFFER, FBO[1]) // source is high res array\n\t\tgl.ReadBuffer(gl.COLOR_ATTACHMENT0)\n\t\tgl.BindFramebuffer(gl.DRAW_FRAMEBUFFER, FBO[0]) // destination is cells array\n\t\tgl.DrawBuffer(gl.COLOR_ATTACHMENT0)\n\t\tgl.BlitFramebuffer(0, 0, width, height,\n\t\t\t0, 0, cols, rows,\n\t\t\tgl.COLOR_BUFFER_BIT, gl.NEAREST) // downsample\n\t\tgl.BindFramebuffer(gl.READ_FRAMEBUFFER, FBO[0]) // source is low res array - put in texture\n\t\t// read pixels saves data read as unsigned bytes and then loads them in TexImage same way\n\t\tgl.ReadPixels(0, 0, cols, rows, gl.RGBA, gl.FLOAT, gl.Ptr(fData))\n\t\tgl.BindTexture(gl.TEXTURE_2D, renderedTexture)\n\t\tgl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, cols, rows, 0, gl.RGBA, gl.FLOAT, gl.Ptr(fData))\n\t\tCheckGLErrors()\n\t}\n\t// -- DRAW TO SCREEN --\n\tvar model glm.Mat4\n\n\t// destination 0 means screen\n\tgl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\tgl.Viewport(0, 0, width*2, height*2) // Retina display doubles the framebuffer !?!\n\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\tgl.UseProgram(landProg)\n\t// bind Texture\n\tgl.ActiveTexture(gl.TEXTURE0)\n\tgl.BindTexture(gl.TEXTURE_2D, drawTexture)\n\n\tvar view glm.Mat4\n\tvar brakeFactor = float64(20000.0)\n\tvar xCoord, yCoord float32\n\txCoord = float32(-3.0 * math.Sin(float64(myClock)))\n\tyCoord = float32(-3.0 * math.Cos(float64(myClock)))\n\t//xCoord = 0.0\n\t//yCoord = float32(-2.5)\n\tmyClock = math.Mod((myClock + float64(deltaTime)/brakeFactor), (math.Pi * 2))\n\tview = glm.LookAt(xCoord, yCoord, 2.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0)\n\tgl.UniformMatrix4fv(uniView, 1, false, &view[0])\n\tmodel = glm.HomogRotate3DX(glm.DegToRad(00.0))\n\tgl.UniformMatrix4fv(uniModel, 1, false, &model[0])\n\tgl.Uniform1i(uniTex2, 0)\n\n\t// render container\n\t//gl.PolygonMode(gl.FRONT_AND_BACK, gl.FILL)\n\t//gl.PolygonMode(gl.FRONT_AND_BACK, gl.LINE)\n\n\tgl.BindVertexArray(VAO)\n\tgl.DrawElements(gl.TRIANGLE_STRIP, int32(len(indices)), gl.UNSIGNED_INT, nil)\n\tgl.BindVertexArray(0)\n\n\tCheckGLErrors()\n\n\tglfw.PollEvents()\n\twindow.SwapBuffers()\n\n\t//time.Sleep(100 * 1000 * 1000)\n}", "func DrawBuffer(buf uint32) {\n\tsyscall.Syscall(gpDrawBuffer, 1, uintptr(buf), 0, 0)\n}", "func BindBufferBase(target uint32, index uint32, buffer uint32) {\n C.glowBindBufferBase(gpBindBufferBase, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer))\n}", "func NewAttached(buffer []byte) *Buffer {\n result := NewEmptyBuffer()\n result.Attach(buffer)\n return result\n}", "func BufferInit(target Enum, size int, usage Enum) {\n\tgl.BufferData(uint32(target), size, nil, uint32(usage))\n}", "func (du *DescriptorSet) AddBuffer(dstBinding int, dtype vk.DescriptorType, b *Buffer, offset int) {\n\tvar descriptorBufferInfo = vk.DescriptorBufferInfo{}\n\tdescriptorBufferInfo.Buffer = b.VKBuffer\n\tdescriptorBufferInfo.Offset = vk.DeviceSize(offset)\n\tdescriptorBufferInfo.Range = vk.DeviceSize(b.Size)\n\n\tvar writeDescriptorSet = vk.WriteDescriptorSet{}\n\twriteDescriptorSet.SType = vk.StructureTypeWriteDescriptorSet\n\twriteDescriptorSet.DstBinding = uint32(dstBinding) // write to the first, and only binding.\n\twriteDescriptorSet.DescriptorCount = 1 // update a single descriptor.\n\twriteDescriptorSet.DescriptorType = dtype\n\twriteDescriptorSet.PBufferInfo = []vk.DescriptorBufferInfo{descriptorBufferInfo}\n\n\tif du.VKWriteDiscriptorSet == nil {\n\t\tdu.VKWriteDiscriptorSet = make([]vk.WriteDescriptorSet, 0)\n\t}\n\tdu.VKWriteDiscriptorSet = append(du.VKWriteDiscriptorSet, writeDescriptorSet)\n}", "func NamedFramebufferRenderbuffer(framebuffer uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tsyscall.Syscall6(gpNamedFramebufferRenderbuffer, 4, uintptr(framebuffer), uintptr(attachment), uintptr(renderbuffertarget), uintptr(renderbuffer), 0, 0)\n}", "func (dev *Device) SetVideobuffer(buf unsafe.Pointer) int {\n\treturn int(C.freenect_set_video_buffer(dev.ptr(), buf))\n}", "func (self *TileSprite) SetCanvasBufferA(member *PIXICanvasBuffer) {\n self.Object.Set(\"canvasBuffer\", member)\n}", "func TextureBuffer(texture uint32, internalformat uint32, buffer uint32) {\n\tsyscall.Syscall(gpTextureBuffer, 3, uintptr(texture), uintptr(internalformat), uintptr(buffer))\n}", "func (buffer Buffer) Bind(target gl.Enum) {\n\tgl.BindBuffer(gl.Enum(target), gl.Uint(buffer))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tsyscall.Syscall(gpNamedFramebufferReadBuffer, 2, uintptr(framebuffer), uintptr(src), 0)\n}", "func NamedFramebufferDrawBuffers(framebuffer uint32, n int32, bufs *uint32) {\n\tsyscall.Syscall(gpNamedFramebufferDrawBuffers, 3, uintptr(framebuffer), uintptr(n), uintptr(unsafe.Pointer(bufs)))\n}", "func (buffer Buffer) BindBufferBase(target gl.Enum, index uint) {\n\tgl.BindBufferBase(gl.Enum(target), gl.Uint(index), gl.Uint(buffer))\n}", "func Framebuffer() *framebuffer.Device {\n\treturn fb\n}", "func newScreenFramebuffer(context *context, width, height int) *framebuffer {\n\treturn &framebuffer{\n\t\tnative: context.getScreenFramebuffer(),\n\t\twidth: width,\n\t\theight: height,\n\t}\n}", "func BindBuffer(target Enum, buffer Uint) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcbuffer, _ := (C.GLuint)(buffer), cgoAllocsUnknown\n\tC.glBindBuffer(ctarget, cbuffer)\n}", "func NewFramebuffer(w, h int) *Framebuffer {\n\treturn &Framebuffer{\n\t\tfb: image.NewRGBA(image.Rectangle{image.Point{0, 0}, image.Point{w, h}}),\n\t}\n}", "func BindBufferBase(target uint32, index uint32, buffer uint32) {\n\tC.glowBindBufferBase(gpBindBufferBase, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer))\n}", "func BindBufferBase(target uint32, index uint32, buffer uint32) {\n\tC.glowBindBufferBase(gpBindBufferBase, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer))\n}", "func (native *OpenGL) FramebufferTexture2D(target uint32, attachment uint32, textarget uint32, texture uint32, level int32) {\n\tgl.FramebufferTexture2D(target, attachment, textarget, texture, level)\n}", "func newFramebufferFromTexture(context *context, texture textureNative, width, height int) (*framebuffer, error) {\n\tnative, err := context.newFramebuffer(texture)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &framebuffer{\n\t\tnative: native,\n\t\twidth: width,\n\t\theight: height,\n\t}, nil\n}", "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n C.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func (g *GBufferPipeline) Render(graph SceneNode) {\n\tgl.Enable(gl.DEPTH_TEST)\n\tgl.DepthMask(true)\n\n\tgl.Enable(gl.CULL_FACE)\n\tgl.CullFace(gl.BACK)\n\tgl.BindFramebuffer(gl.FRAMEBUFFER, g.buffer.fbo)\n\tvar attachments = [2]uint32{gl.COLOR_ATTACHMENT0, gl.COLOR_ATTACHMENT1}\n\tgl.DrawBuffers(int32(len(attachments)), &attachments[0])\n\tgl.Clear(gl.DEPTH_BUFFER_BIT | gl.COLOR_BUFFER_BIT)\n\tgraph.Render(g.tShader, g.mShader)\n\n\tgl.UseProgram(0)\n\tgl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n}", "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n\tC.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n\tC.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func BlitContextFramebufferAMD(dstCtx unsafe.Pointer, srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall12(gpBlitContextFramebufferAMD, 11, uintptr(dstCtx), uintptr(srcX0), uintptr(srcY0), uintptr(srcX1), uintptr(srcY1), uintptr(dstX0), uintptr(dstY0), uintptr(dstX1), uintptr(dstY1), uintptr(mask), uintptr(filter), 0)\n\treturn (unsafe.Pointer)(ret)\n}", "func BlitNamedFramebuffer(readFramebuffer uint32, drawFramebuffer uint32, srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tsyscall.Syscall12(gpBlitNamedFramebuffer, 12, uintptr(readFramebuffer), uintptr(drawFramebuffer), uintptr(srcX0), uintptr(srcY0), uintptr(srcX1), uintptr(srcY1), uintptr(dstX0), uintptr(dstY0), uintptr(dstX1), uintptr(dstY1), uintptr(mask), uintptr(filter))\n}", "func createFB(tex wasm.WebGLTexture) wasm.WebGLFramebuffer {\n\tfb := gl.CreateFramebuffer()\n\tgl.BindFramebuffer(wasm.FRAMEBUFFER, fb)\n\tgl.FramebufferTexture2D(wasm.FRAMEBUFFER, wasm.COLOR_ATTACHMENT0, wasm.TEXTURE_2D, tex, 0)\n\treturn fb\n}", "func (debugging *debuggingOpenGL) BufferData(target uint32, size int, data interface{}, usage uint32) {\n\tdebugging.recordEntry(\"BufferData\", target, size, data, usage)\n\tdebugging.gl.BufferData(target, size, data, usage)\n\tdebugging.recordExit(\"BufferData\")\n}", "func FramebufferTextureLayer(target uint32, attachment uint32, texture uint32, level int32, layer int32) {\n\tsyscall.Syscall6(gpFramebufferTextureLayer, 5, uintptr(target), uintptr(attachment), uintptr(texture), uintptr(level), uintptr(layer), 0)\n}", "func NamedFramebufferDrawBuffers(framebuffer uint32, n int32, bufs *uint32) {\n\tC.glowNamedFramebufferDrawBuffers(gpNamedFramebufferDrawBuffers, (C.GLuint)(framebuffer), (C.GLsizei)(n), (*C.GLenum)(unsafe.Pointer(bufs)))\n}", "func NamedFramebufferDrawBuffers(framebuffer uint32, n int32, bufs *uint32) {\n\tC.glowNamedFramebufferDrawBuffers(gpNamedFramebufferDrawBuffers, (C.GLuint)(framebuffer), (C.GLsizei)(n), (*C.GLenum)(unsafe.Pointer(bufs)))\n}", "func BindVertexBuffer(bindingindex uint32, buffer uint32, offset int, stride int32) {\n C.glowBindVertexBuffer(gpBindVertexBuffer, (C.GLuint)(bindingindex), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizei)(stride))\n}", "func (n *BufferView) AddBuffer() *Buffer {\n\tn.UnfocusBuffers()\n\n\tconf := n.conf\n\tc := NewBuffer(conf, BufferConfig{\n\t\tconf.Theme.Background,\n\t\tconf.Theme.Foreground,\n\t\tconf.Theme.Cursor,\n\t\tconf.Theme.CursorInvert,\n\t\tconf.Theme.HighlightLineBackground,\n\t\tconf.Theme.GutterBackground,\n\t\tconf.Theme.GutterForeground,\n\t\tgui.GetDefaultFont(),\n\t}, n, len(n.buffers))\n\n\tc.SetFocus(true)\n\n\tw, h := n.GetSize()\n\n\tn.focusedBuff = c.index\n\tn.buffers = append(n.buffers, NewBufferPane(c))\n\tn.Resize(w, h)\n\n\treturn c\n}", "func BindBufferBase(target uint32, index uint32, buffer uint32) {\n\tsyscall.Syscall(gpBindBufferBase, 3, uintptr(target), uintptr(index), uintptr(buffer))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tC.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tC.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src))\n}", "func NamedFramebufferRenderbuffer(framebuffer uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tC.glowNamedFramebufferRenderbuffer(gpNamedFramebufferRenderbuffer, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func NamedFramebufferRenderbuffer(framebuffer uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tC.glowNamedFramebufferRenderbuffer(gpNamedFramebufferRenderbuffer, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func FramebufferTexture2D(target, attachment, texTarget Enum, t Texture, level int) {\n\tgl.FramebufferTexture2D(uint32(target), uint32(attachment), uint32(texTarget), t.Value, int32(level))\n}", "func (emu *emuState) Framebuffer() []byte {\n\treturn emu.framebuffer()\n}", "func BlitNamedFramebuffer(readFramebuffer uint32, drawFramebuffer uint32, srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tC.glowBlitNamedFramebuffer(gpBlitNamedFramebuffer, (C.GLuint)(readFramebuffer), (C.GLuint)(drawFramebuffer), (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func BlitNamedFramebuffer(readFramebuffer uint32, drawFramebuffer uint32, srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tC.glowBlitNamedFramebuffer(gpBlitNamedFramebuffer, (C.GLuint)(readFramebuffer), (C.GLuint)(drawFramebuffer), (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func CreateFramebuffer() Framebuffer {\n\tvar b Framebuffer\n\tgl.GenFramebuffers(1, &b.Value)\n\treturn b\n}", "func (gl *WebGL) NewBuffer(target GLEnum, data interface{}, usage GLEnum) WebGLBuffer {\n\tbuffer := gl.CreateBuffer()\n\tgl.BindBuffer(target, buffer)\n\tgl.BufferData(target, data, usage)\n\treturn buffer\n}", "func DrawBuffer(buf uint32) {\n\tC.glowDrawBuffer(gpDrawBuffer, (C.GLenum)(buf))\n}", "func DrawBuffer(buf uint32) {\n\tC.glowDrawBuffer(gpDrawBuffer, (C.GLenum)(buf))\n}", "func RenderbufferStorage(target uint32, internalformat uint32, width int32, height int32) {\n\tsyscall.Syscall6(gpRenderbufferStorage, 4, uintptr(target), uintptr(internalformat), uintptr(width), uintptr(height), 0, 0)\n}", "func CreateBuffer() Buffer {\n\tvar b Buffer\n\tgl.GenBuffers(1, &b.Value)\n\treturn b\n}" ]
[ "0.77140707", "0.727492", "0.7183856", "0.7163278", "0.70613325", "0.7029213", "0.69460857", "0.6916873", "0.68896997", "0.6797278", "0.6751622", "0.6735318", "0.6734214", "0.6733123", "0.6629343", "0.6621128", "0.66165966", "0.66085124", "0.65327", "0.65182394", "0.65044194", "0.6484164", "0.64684075", "0.64684075", "0.64355177", "0.6423317", "0.6347452", "0.6339661", "0.6316486", "0.6311535", "0.6291794", "0.6246031", "0.62383676", "0.615794", "0.6121588", "0.6117472", "0.6111064", "0.6099627", "0.60892785", "0.6086297", "0.6086297", "0.60681397", "0.60681397", "0.6066447", "0.60538155", "0.60532856", "0.60532856", "0.60518575", "0.60518575", "0.6022738", "0.6000089", "0.5990294", "0.5967483", "0.5965905", "0.59522325", "0.5951045", "0.5926498", "0.5923117", "0.5905659", "0.5903862", "0.58944064", "0.58936834", "0.5877427", "0.5853189", "0.58515096", "0.58400697", "0.583633", "0.58301336", "0.58301336", "0.5826917", "0.58095914", "0.5801105", "0.57918835", "0.5756872", "0.5756872", "0.575657", "0.5753997", "0.5739763", "0.5733747", "0.5717602", "0.5716577", "0.5716577", "0.5695226", "0.56672674", "0.56614166", "0.5656356", "0.5656356", "0.56367624", "0.56367624", "0.5632551", "0.5632361", "0.5631613", "0.5631613", "0.5620025", "0.5613544", "0.56104773", "0.56104773", "0.55903655", "0.5587763" ]
0.69198567
8
attach a level of a texture object as a logical buffer of a framebuffer object
func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) { C.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n C.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func FramebufferTextureLayer(target uint32, attachment uint32, texture uint32, level int32, layer int32) {\n C.glowFramebufferTextureLayer(gpFramebufferTextureLayer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer))\n}", "func (debugging *debuggingOpenGL) FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n\tdebugging.recordEntry(\"FramebufferTexture\", target, attachment, texture, level)\n\tdebugging.gl.FramebufferTexture(target, attachment, texture, level)\n\tdebugging.recordExit(\"FramebufferTexture\")\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n C.glowFramebufferRenderbuffer(gpFramebufferRenderbuffer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func (f *Framebuffer) Renderbuffer(attachment gfx.FramebufferAttachment, buf gfx.Renderbuffer) {\n\tf.useState()\n\tf.ctx.O.Call(\n\t\t\"framebufferTexture2D\",\n\t\tf.ctx.FRAMEBUFFER,\n\t\tf.ctx.Enums[int(attachment)],\n\t\tf.ctx.RENDERBUFFER,\n\t\tbuf.Object().(*js.Object),\n\t\t0,\n\t)\n}", "func FramebufferTextureLayer(target uint32, attachment uint32, texture uint32, level int32, layer int32) {\n\tsyscall.Syscall6(gpFramebufferTextureLayer, 5, uintptr(target), uintptr(attachment), uintptr(texture), uintptr(level), uintptr(layer), 0)\n}", "func FramebufferTextureLayer(target uint32, attachment uint32, texture uint32, level int32, layer int32) {\n\tC.glowFramebufferTextureLayer(gpFramebufferTextureLayer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer))\n}", "func FramebufferTextureLayer(target uint32, attachment uint32, texture uint32, level int32, layer int32) {\n\tC.glowFramebufferTextureLayer(gpFramebufferTextureLayer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer))\n}", "func TextureBuffer(texture uint32, internalformat uint32, buffer uint32) {\n\tsyscall.Syscall(gpTextureBuffer, 3, uintptr(texture), uintptr(internalformat), uintptr(buffer))\n}", "func BindRenderbuffer(target uint32, renderbuffer uint32) {\n C.glowBindRenderbuffer(gpBindRenderbuffer, (C.GLenum)(target), (C.GLuint)(renderbuffer))\n}", "func (native *OpenGL) FramebufferTexture2D(target uint32, attachment uint32, textarget uint32, texture uint32, level int32) {\n\tgl.FramebufferTexture2D(target, attachment, textarget, texture, level)\n}", "func TextureBuffer(texture uint32, internalformat uint32, buffer uint32) {\n\tC.glowTextureBuffer(gpTextureBuffer, (C.GLuint)(texture), (C.GLenum)(internalformat), (C.GLuint)(buffer))\n}", "func TextureBuffer(texture uint32, internalformat uint32, buffer uint32) {\n\tC.glowTextureBuffer(gpTextureBuffer, (C.GLuint)(texture), (C.GLenum)(internalformat), (C.GLuint)(buffer))\n}", "func TexBuffer(target uint32, internalformat uint32, buffer uint32) {\n C.glowTexBuffer(gpTexBuffer, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer))\n}", "func BindFramebuffer(target uint32, framebuffer uint32) {\n C.glowBindFramebuffer(gpBindFramebuffer, (C.GLenum)(target), (C.GLuint)(framebuffer))\n}", "func BindBuffer(target uint32, buffer uint32) {\n C.glowBindBuffer(gpBindBuffer, (C.GLenum)(target), (C.GLuint)(buffer))\n}", "func initFramebuffer(width, height int) {\n\tlog.Printf(\"[Video]: Initializing HW render (%v x %v).\\n\", width, height)\n\n\tgl.GenFramebuffers(1, &fboID)\n\tgl.BindFramebuffer(gl.FRAMEBUFFER, fboID)\n\n\t//gl.GenTextures(1, &video.texID)\n\tgl.BindTexture(gl.TEXTURE_2D, texID)\n\tgl.TexStorage2D(gl.TEXTURE_2D, 1, gl.RGBA8, int32(width), int32(height))\n\n\tgl.FramebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, texID, 0)\n\n\thw := state.Global.Core.HWRenderCallback\n\n\tgl.BindRenderbuffer(gl.RENDERBUFFER, 0)\n\n\tif gl.CheckFramebufferStatus(gl.FRAMEBUFFER) != gl.FRAMEBUFFER_COMPLETE {\n\t\tlog.Fatalln(\"[Video] Framebuffer is not complete.\")\n\t}\n\n\tgl.ClearColor(0, 0, 0, 1)\n\tif hw.Depth && hw.Stencil {\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT | gl.STENCIL_BUFFER_BIT)\n\t} else if hw.Depth {\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\t} else {\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT)\n\t}\n\n\tgl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n}", "func FramebufferTexture2D(target uint32, attachment uint32, textarget uint32, texture uint32, level int32) {\n\tsyscall.Syscall6(gpFramebufferTexture2D, 5, uintptr(target), uintptr(attachment), uintptr(textarget), uintptr(texture), uintptr(level), 0)\n}", "func FramebufferTexture2D(target, attachment, texTarget Enum, t Texture, level int) {\n\tgl.FramebufferTexture2D(uint32(target), uint32(attachment), uint32(texTarget), t.Value, int32(level))\n}", "func FramebufferTexture2D(target uint32, attachment uint32, textarget uint32, texture uint32, level int32) {\n\tC.glowFramebufferTexture2D(gpFramebufferTexture2D, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(textarget), (C.GLuint)(texture), (C.GLint)(level))\n}", "func FramebufferTexture2D(target uint32, attachment uint32, textarget uint32, texture uint32, level int32) {\n\tC.glowFramebufferTexture2D(gpFramebufferTexture2D, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(textarget), (C.GLuint)(texture), (C.GLint)(level))\n}", "func updateTextureVbo(data []float32, vbo uint32) {\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.BufferSubData(gl.ARRAY_BUFFER, 0, len(data)*4, gl.Ptr(data))\n\tgl.BindBuffer(gl.ARRAY_BUFFER, 0)\n}", "func BindImageTexture(unit uint32, texture uint32, level int32, layered bool, layer int32, access uint32, format uint32) {\n C.glowBindImageTexture(gpBindImageTexture, (C.GLuint)(unit), (C.GLuint)(texture), (C.GLint)(level), (C.GLboolean)(boolToInt(layered)), (C.GLint)(layer), (C.GLenum)(access), (C.GLenum)(format))\n}", "func (debugging *debuggingOpenGL) BindFramebuffer(target uint32, buffer uint32) {\n\tdebugging.recordEntry(\"BindFramebuffer\", target, buffer)\n\tdebugging.gl.BindFramebuffer(target, buffer)\n\tdebugging.recordExit(\"BindFramebuffer\")\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tC.glowFramebufferRenderbuffer(gpFramebufferRenderbuffer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tC.glowFramebufferRenderbuffer(gpFramebufferRenderbuffer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func draw(window *glfw.Window, reactProg, landProg uint32) {\n\n\tvar renderLoops = 4\n\tfor i := 0; i < renderLoops; i++ {\n\t\t// -- DRAW TO BUFFER --\n\t\t// define destination of pixels\n\t\t//gl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\t\tgl.BindFramebuffer(gl.FRAMEBUFFER, FBO[1])\n\n\t\tgl.Viewport(0, 0, width, height) // Retina display doubles the framebuffer !?!\n\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\t\tgl.UseProgram(reactProg)\n\n\t\t// bind Texture\n\t\tgl.ActiveTexture(gl.TEXTURE0)\n\t\tgl.BindTexture(gl.TEXTURE_2D, renderedTexture)\n\t\tgl.Uniform1i(uniTex, 0)\n\n\t\tgl.BindVertexArray(VAO)\n\t\tgl.DrawElements(gl.TRIANGLE_STRIP, int32(len(indices)), gl.UNSIGNED_INT, nil)\n\n\t\tgl.BindVertexArray(0)\n\n\t\t// -- copy back textures --\n\t\tgl.BindFramebuffer(gl.READ_FRAMEBUFFER, FBO[1]) // source is high res array\n\t\tgl.ReadBuffer(gl.COLOR_ATTACHMENT0)\n\t\tgl.BindFramebuffer(gl.DRAW_FRAMEBUFFER, FBO[0]) // destination is cells array\n\t\tgl.DrawBuffer(gl.COLOR_ATTACHMENT0)\n\t\tgl.BlitFramebuffer(0, 0, width, height,\n\t\t\t0, 0, cols, rows,\n\t\t\tgl.COLOR_BUFFER_BIT, gl.NEAREST) // downsample\n\t\tgl.BindFramebuffer(gl.READ_FRAMEBUFFER, FBO[0]) // source is low res array - put in texture\n\t\t// read pixels saves data read as unsigned bytes and then loads them in TexImage same way\n\t\tgl.ReadPixels(0, 0, cols, rows, gl.RGBA, gl.FLOAT, gl.Ptr(fData))\n\t\tgl.BindTexture(gl.TEXTURE_2D, renderedTexture)\n\t\tgl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, cols, rows, 0, gl.RGBA, gl.FLOAT, gl.Ptr(fData))\n\t\tCheckGLErrors()\n\t}\n\t// -- DRAW TO SCREEN --\n\tvar model glm.Mat4\n\n\t// destination 0 means screen\n\tgl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\tgl.Viewport(0, 0, width*2, height*2) // Retina display doubles the framebuffer !?!\n\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\tgl.UseProgram(landProg)\n\t// bind Texture\n\tgl.ActiveTexture(gl.TEXTURE0)\n\tgl.BindTexture(gl.TEXTURE_2D, drawTexture)\n\n\tvar view glm.Mat4\n\tvar brakeFactor = float64(20000.0)\n\tvar xCoord, yCoord float32\n\txCoord = float32(-3.0 * math.Sin(float64(myClock)))\n\tyCoord = float32(-3.0 * math.Cos(float64(myClock)))\n\t//xCoord = 0.0\n\t//yCoord = float32(-2.5)\n\tmyClock = math.Mod((myClock + float64(deltaTime)/brakeFactor), (math.Pi * 2))\n\tview = glm.LookAt(xCoord, yCoord, 2.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0)\n\tgl.UniformMatrix4fv(uniView, 1, false, &view[0])\n\tmodel = glm.HomogRotate3DX(glm.DegToRad(00.0))\n\tgl.UniformMatrix4fv(uniModel, 1, false, &model[0])\n\tgl.Uniform1i(uniTex2, 0)\n\n\t// render container\n\t//gl.PolygonMode(gl.FRONT_AND_BACK, gl.FILL)\n\t//gl.PolygonMode(gl.FRONT_AND_BACK, gl.LINE)\n\n\tgl.BindVertexArray(VAO)\n\tgl.DrawElements(gl.TRIANGLE_STRIP, int32(len(indices)), gl.UNSIGNED_INT, nil)\n\tgl.BindVertexArray(0)\n\n\tCheckGLErrors()\n\n\tglfw.PollEvents()\n\twindow.SwapBuffers()\n\n\t//time.Sleep(100 * 1000 * 1000)\n}", "func (c *Context) AddTextureObject(cfg *TextureConfig) (*TextureObject, error) {\n\n\t// var pbo uint32\n\t// gl.GenBuffers(1, &pbo)\n\t// gl.BindBuffer(gl.PIXEL_UNPACK_BUFFER, pbo)\n\t// // Write PBO with nil to initialize the space\n\t// gl.BufferData(gl.PIXEL_UNPACK_BUFFER, len(cfg.Image.Pix), nil, gl.STREAM_DRAW)\n\n\tmode := int32(gl.LINEAR)\n\tif cfg.Mode != 0 {\n\t\tmode = cfg.Mode\n\t}\n\n\tvar texID uint32\n\tgl.GenTextures(1, &texID)\n\tgl.ActiveTexture(gl.TEXTURE0)\n\tgl.BindTexture(gl.TEXTURE_2D, texID)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, mode)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, mode)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE)\n\n\t// write texture with nil pointer to initialize the space\n\tgl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA,\n\t\tint32(cfg.Image.Rect.Size().X), int32(cfg.Image.Rect.Size().Y),\n\t\t0, gl.RGBA, gl.UNSIGNED_BYTE, gl.Ptr(cfg.Image.Pix))\n\n\ttexLoc := c.GetUniformLocation(cfg.UniformName)\n\tgl.Uniform1i(texLoc, 0)\n\n\ttex := &TextureObject{\n\t\ttexID: texID,\n\t\ttexLoc: texLoc,\n\t\t//pbo: pbo,\n\t\timage: cfg.Image,\n\t}\n\tc.textures = append(c.textures, tex)\n\treturn tex, nil\n}", "func DrawBuffer(mode uint32) {\n C.glowDrawBuffer(gpDrawBuffer, (C.GLenum)(mode))\n}", "func BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n C.glowBlitFramebuffer(gpBlitFramebuffer, (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func (native *OpenGL) FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tgl.FramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)\n}", "func FramebufferTexture2D(target Enum, attachment Enum, textarget Enum, texture Uint, level Int) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcattachment, _ := (C.GLenum)(attachment), cgoAllocsUnknown\n\tctextarget, _ := (C.GLenum)(textarget), cgoAllocsUnknown\n\tctexture, _ := (C.GLuint)(texture), cgoAllocsUnknown\n\tclevel, _ := (C.GLint)(level), cgoAllocsUnknown\n\tC.glFramebufferTexture2D(ctarget, cattachment, ctextarget, ctexture, clevel)\n}", "func BindBufferBase(target uint32, index uint32, buffer uint32) {\n C.glowBindBufferBase(gpBindBufferBase, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer))\n}", "func (native *OpenGL) BindFramebuffer(target, buffer uint32) {\n\tgl.BindFramebuffer(target, buffer)\n}", "func (w *windowImpl) bindBackBuffer() {\n\t// w.mu.Lock()\n\t// size := w.Sz\n\t// w.mu.Unlock()\n\t//\n\tw.backBufferBound = true\n\t// gl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\t// gl.Viewport(0, 0, int32(size.X), int32(size.Y))\n}", "func (debugging *debuggingOpenGL) FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tdebugging.recordEntry(\"FramebufferRenderbuffer\", target, attachment, renderbuffertarget, renderbuffer)\n\tdebugging.gl.FramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)\n\tdebugging.recordExit(\"FramebufferRenderbuffer\")\n}", "func TexBuffer(target uint32, internalformat uint32, buffer uint32) {\n\tC.glowTexBuffer(gpTexBuffer, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer))\n}", "func TexBuffer(target uint32, internalformat uint32, buffer uint32) {\n\tC.glowTexBuffer(gpTexBuffer, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer))\n}", "func BindBuffer(target Enum, b Buffer) {\n\tgl.BindBuffer(uint32(target), b.Value)\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tsyscall.Syscall6(gpFramebufferRenderbuffer, 4, uintptr(target), uintptr(attachment), uintptr(renderbuffertarget), uintptr(renderbuffer), 0, 0)\n}", "func TextureBufferRange(texture uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tsyscall.Syscall6(gpTextureBufferRange, 5, uintptr(texture), uintptr(internalformat), uintptr(buffer), uintptr(offset), uintptr(size), 0)\n}", "func FramebufferRenderbuffer(target, attachment, rbTarget Enum, rb Renderbuffer) {\n\tgl.FramebufferRenderbuffer(uint32(target), uint32(attachment), uint32(rbTarget), rb.Value)\n}", "func (self *TileSprite) SetCanvasBufferA(member *PIXICanvasBuffer) {\n self.Object.Set(\"canvasBuffer\", member)\n}", "func (native *OpenGL) BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tgl.BlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter)\n}", "func TextureBufferRange(texture uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tC.glowTextureBufferRange(gpTextureBufferRange, (C.GLuint)(texture), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func TextureBufferRange(texture uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tC.glowTextureBufferRange(gpTextureBufferRange, (C.GLuint)(texture), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func (debugging *debuggingOpenGL) BindBuffer(target uint32, buffer uint32) {\n\tdebugging.recordEntry(\"BindBuffer\", target, buffer)\n\tdebugging.gl.BindBuffer(target, buffer)\n\tdebugging.recordExit(\"BindBuffer\")\n}", "func newFramebufferFromTexture(context *context, texture textureNative, width, height int) (*framebuffer, error) {\n\tnative, err := context.newFramebuffer(texture)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &framebuffer{\n\t\tnative: native,\n\t\twidth: width,\n\t\theight: height,\n\t}, nil\n}", "func BufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n C.glowBufferSubData(gpBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func (gl *WebGL) BindBuffer(target GLEnum, buffer WebGLBuffer) {\n\tgl.context.Call(\"bindBuffer\", target, buffer)\n}", "func BindBuffer(target uint32, buffer uint32) {\n\tC.glowBindBuffer(gpBindBuffer, (C.GLenum)(target), (C.GLuint)(buffer))\n}", "func BindBuffer(target uint32, buffer uint32) {\n\tC.glowBindBuffer(gpBindBuffer, (C.GLenum)(target), (C.GLuint)(buffer))\n}", "func FramebufferRenderbuffer(target Enum, attachment Enum, renderbuffertarget Enum, renderbuffer Uint) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcattachment, _ := (C.GLenum)(attachment), cgoAllocsUnknown\n\tcrenderbuffertarget, _ := (C.GLenum)(renderbuffertarget), cgoAllocsUnknown\n\tcrenderbuffer, _ := (C.GLuint)(renderbuffer), cgoAllocsUnknown\n\tC.glFramebufferRenderbuffer(ctarget, cattachment, crenderbuffertarget, crenderbuffer)\n}", "func (native *OpenGL) BindBuffer(target uint32, buffer uint32) {\n\tgl.BindBuffer(target, buffer)\n}", "func BindTexture(target uint32, texture uint32) {\n C.glowBindTexture(gpBindTexture, (C.GLenum)(target), (C.GLuint)(texture))\n}", "func BindRenderbuffer(target uint32, renderbuffer uint32) {\n\tC.glowBindRenderbuffer(gpBindRenderbuffer, (C.GLenum)(target), (C.GLuint)(renderbuffer))\n}", "func BindRenderbuffer(target uint32, renderbuffer uint32) {\n\tC.glowBindRenderbuffer(gpBindRenderbuffer, (C.GLenum)(target), (C.GLuint)(renderbuffer))\n}", "func BindBufferRange(target uint32, index uint32, buffer uint32, offset int, size int) {\n C.glowBindBufferRange(gpBindBufferRange, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func BufferData(target uint32, size int, data unsafe.Pointer, usage uint32) {\n C.glowBufferData(gpBufferData, (C.GLenum)(target), (C.GLsizeiptr)(size), data, (C.GLenum)(usage))\n}", "func (g *Gaffer) AddBuffer(u *Update) {\n\n\tfor _, v := range u.entities {\n\t\tg.AddEntity(v)\n\t}\n\n\tfor _, v := range u.edges {\n\t\tg.AddEdge(v)\n\t}\n\n}", "func TextureView(texture uint32, target uint32, origtexture uint32, internalformat uint32, minlevel uint32, numlevels uint32, minlayer uint32, numlayers uint32) {\n C.glowTextureView(gpTextureView, (C.GLuint)(texture), (C.GLenum)(target), (C.GLuint)(origtexture), (C.GLenum)(internalformat), (C.GLuint)(minlevel), (C.GLuint)(numlevels), (C.GLuint)(minlayer), (C.GLuint)(numlayers))\n}", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n ret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access))\n return (unsafe.Pointer)(ret)\n}", "func BufferInit(target Enum, size int, usage Enum) {\n\tgl.BufferData(uint32(target), size, nil, uint32(usage))\n}", "func (debugging *debuggingOpenGL) BindTexture(target uint32, texture uint32) {\n\tdebugging.recordEntry(\"BindTexture\", target, texture)\n\tdebugging.gl.BindTexture(target, texture)\n\tdebugging.recordExit(\"BindTexture\")\n}", "func TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexImage2D(gpTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (debugging *debuggingOpenGL) BindRenderbuffer(target uint32, buffer uint32) {\n\tdebugging.recordEntry(\"BindRenderbuffer\", target, buffer)\n\tdebugging.gl.BindRenderbuffer(target, buffer)\n\tdebugging.recordExit(\"BindRenderbuffer\")\n}", "func BindFramebuffer(target uint32, framebuffer uint32) {\n\tC.glowBindFramebuffer(gpBindFramebuffer, (C.GLenum)(target), (C.GLuint)(framebuffer))\n}", "func BindFramebuffer(target uint32, framebuffer uint32) {\n\tC.glowBindFramebuffer(gpBindFramebuffer, (C.GLenum)(target), (C.GLuint)(framebuffer))\n}", "func RenderbufferStorage(target uint32, internalformat uint32, width int32, height int32) {\n C.glowRenderbufferStorage(gpRenderbufferStorage, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func InvalidateSubFramebuffer(target uint32, numAttachments int32, attachments *uint32, x int32, y int32, width int32, height int32) {\n C.glowInvalidateSubFramebuffer(gpInvalidateSubFramebuffer, (C.GLenum)(target), (C.GLsizei)(numAttachments), (*C.GLenum)(unsafe.Pointer(attachments)), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func BindBuffersBase(target uint32, first uint32, count int32, buffers *uint32) {\n C.glowBindBuffersBase(gpBindBuffersBase, (C.GLenum)(target), (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(buffers)))\n}", "func BindBufferBase(target uint32, index uint32, buffer uint32) {\n\tC.glowBindBufferBase(gpBindBufferBase, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer))\n}", "func BindBufferBase(target uint32, index uint32, buffer uint32) {\n\tC.glowBindBufferBase(gpBindBufferBase, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer))\n}", "func NamedFramebufferTextureLayer(framebuffer uint32, attachment uint32, texture uint32, level int32, layer int32) {\n\tC.glowNamedFramebufferTextureLayer(gpNamedFramebufferTextureLayer, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer))\n}", "func NamedFramebufferTextureLayer(framebuffer uint32, attachment uint32, texture uint32, level int32, layer int32) {\n\tC.glowNamedFramebufferTextureLayer(gpNamedFramebufferTextureLayer, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer))\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tC.glowNamedFramebufferDrawBuffer(gpNamedFramebufferDrawBuffer, (C.GLuint)(framebuffer), (C.GLenum)(buf))\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tC.glowNamedFramebufferDrawBuffer(gpNamedFramebufferDrawBuffer, (C.GLuint)(framebuffer), (C.GLenum)(buf))\n}", "func TexImage2D(target Enum, level int, width, height int, format Enum, ty Enum, data []byte) {\n\tp := unsafe.Pointer(nil)\n\tif len(data) > 0 {\n\t\tp = gl.Ptr(&data[0])\n\t}\n\tgl.TexImage2D(uint32(target), int32(level), int32(format), int32(width), int32(height), 0, uint32(format), uint32(ty), p)\n}", "func createFB(tex wasm.WebGLTexture) wasm.WebGLFramebuffer {\n\tfb := gl.CreateFramebuffer()\n\tgl.BindFramebuffer(wasm.FRAMEBUFFER, fb)\n\tgl.FramebufferTexture2D(wasm.FRAMEBUFFER, wasm.COLOR_ATTACHMENT0, wasm.TEXTURE_2D, tex, 0)\n\treturn fb\n}", "func (debugging *debuggingOpenGL) BufferData(target uint32, size int, data interface{}, usage uint32) {\n\tdebugging.recordEntry(\"BufferData\", target, size, data, usage)\n\tdebugging.gl.BufferData(target, size, data, usage)\n\tdebugging.recordExit(\"BufferData\")\n}", "func TexBufferRange(target uint32, internalformat uint32, buffer uint32, offset int, size int) {\n C.glowTexBufferRange(gpTexBufferRange, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func NamedFramebufferTextureLayer(framebuffer uint32, attachment uint32, texture uint32, level int32, layer int32) {\n\tsyscall.Syscall6(gpNamedFramebufferTextureLayer, 5, uintptr(framebuffer), uintptr(attachment), uintptr(texture), uintptr(level), uintptr(layer), 0)\n}", "func FrameBuffer(m rv.RenderModel) {\n\tframebuffer(m)\n}", "func (buffer Buffer) Bind(target gl.Enum) {\n\tgl.BindBuffer(gl.Enum(target), gl.Uint(buffer))\n}", "func BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tC.glowBlitFramebuffer(gpBlitFramebuffer, (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tC.glowBlitFramebuffer(gpBlitFramebuffer, (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func (f *Framebuffer) Texture2D(attachment gfx.FramebufferAttachment, target gfx.TextureTarget, tex gfx.Texture) {\n\tf.useState()\n\tf.ctx.O.Call(\n\t\t\"framebufferTexture2D\",\n\t\tf.ctx.FRAMEBUFFER,\n\t\tf.ctx.Enums[int(attachment)],\n\t\tf.ctx.Enums[int(target)],\n\t\ttex.Object().(*js.Object),\n\t\t0,\n\t)\n}", "func BindRenderbuffer(target GLEnum, renderbuffer Renderbuffer) {\n\tgl.BindRenderbuffer(uint32(target), uint32(renderbuffer))\n}", "func BufferStorage(target uint32, size int, data unsafe.Pointer, flags uint32) {\n C.glowBufferStorage(gpBufferStorage, (C.GLenum)(target), (C.GLsizeiptr)(size), data, (C.GLbitfield)(flags))\n}", "func BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tsyscall.Syscall12(gpBlitFramebuffer, 10, uintptr(srcX0), uintptr(srcY0), uintptr(srcX1), uintptr(srcY1), uintptr(dstX0), uintptr(dstY0), uintptr(dstX1), uintptr(dstY1), uintptr(mask), uintptr(filter), 0, 0)\n}", "func BufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n\tC.glowBufferSubData(gpBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func BufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n\tC.glowBufferSubData(gpBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func BindRenderbuffer(target uint32, renderbuffer uint32) {\n\tsyscall.Syscall(gpBindRenderbuffer, 2, uintptr(target), uintptr(renderbuffer), 0)\n}", "func (tex Texture) Sub(ctx gl.Context, lvl int, width int, height int, data []byte) {\n\tctx.TexSubImage2D(gl.TEXTURE_2D, lvl, 0, 0, width, height, gl.RGBA, gl.UNSIGNED_BYTE, data)\n\tif lvl > 0 {\n\t\tctx.GenerateMipmap(gl.TEXTURE_2D)\n\t}\n}", "func BindFramebuffer(target Enum, fb Framebuffer) {\n\tgl.BindFramebuffer(uint32(target), fb.Value)\n}", "func BindRenderbuffer(target Enum, rb Renderbuffer) {\n\tgl.BindRenderbuffer(uint32(target), rb.Value)\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tsyscall.Syscall(gpNamedFramebufferDrawBuffer, 2, uintptr(framebuffer), uintptr(buf), 0)\n}", "func BindTexture(target Enum, t Texture) {\n\tgl.BindTexture(uint32(target), t.Value)\n}", "func (gl *WebGL) BindTexture(target GLEnum, texture WebGLTexture) {\n\tgl.context.Call(\"bindTexture\", target, texture)\n}" ]
[ "0.722107", "0.6991932", "0.6818233", "0.66495353", "0.65578204", "0.65317065", "0.6469703", "0.6469703", "0.64009106", "0.63043094", "0.6283796", "0.6269056", "0.6269056", "0.6259122", "0.6230083", "0.6216283", "0.61891496", "0.61787057", "0.61467904", "0.61189765", "0.61189765", "0.61186767", "0.6066727", "0.6065812", "0.60311186", "0.60311186", "0.60171306", "0.6013775", "0.600594", "0.59956175", "0.5976709", "0.5952438", "0.59443665", "0.59377766", "0.5927312", "0.5925388", "0.59000975", "0.59000975", "0.58857846", "0.5877492", "0.586578", "0.5850082", "0.58442193", "0.58325684", "0.58062387", "0.58062387", "0.5790027", "0.5787053", "0.5740029", "0.57166594", "0.571345", "0.571345", "0.5710385", "0.5701431", "0.5684043", "0.56671363", "0.56671363", "0.56665206", "0.56451225", "0.56431687", "0.56353843", "0.5634091", "0.5614793", "0.56129956", "0.5608171", "0.5603922", "0.56001806", "0.56001806", "0.5595303", "0.5587039", "0.5583728", "0.55822283", "0.55822283", "0.5576127", "0.5576127", "0.5562667", "0.5562667", "0.55591404", "0.55537933", "0.5542354", "0.5528944", "0.5526178", "0.5520647", "0.55196935", "0.55171734", "0.55171734", "0.54913497", "0.5487501", "0.5482678", "0.544809", "0.54407585", "0.54407585", "0.544024", "0.54358566", "0.5427841", "0.54271704", "0.54169273", "0.5405241", "0.5403046" ]
0.66802365
4
attach a level of a texture object as a logical buffer to the currently bound framebuffer object
func FramebufferTexture2D(target uint32, attachment uint32, textarget uint32, texture uint32, level int32) { C.glowFramebufferTexture2D(gpFramebufferTexture2D, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(textarget), (C.GLuint)(texture), (C.GLint)(level)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n C.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func FramebufferTextureLayer(target uint32, attachment uint32, texture uint32, level int32, layer int32) {\n C.glowFramebufferTextureLayer(gpFramebufferTextureLayer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer))\n}", "func (debugging *debuggingOpenGL) FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n\tdebugging.recordEntry(\"FramebufferTexture\", target, attachment, texture, level)\n\tdebugging.gl.FramebufferTexture(target, attachment, texture, level)\n\tdebugging.recordExit(\"FramebufferTexture\")\n}", "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n\tC.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n\tC.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func BindRenderbuffer(target uint32, renderbuffer uint32) {\n C.glowBindRenderbuffer(gpBindRenderbuffer, (C.GLenum)(target), (C.GLuint)(renderbuffer))\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n C.glowFramebufferRenderbuffer(gpFramebufferRenderbuffer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func FramebufferTextureLayer(target uint32, attachment uint32, texture uint32, level int32, layer int32) {\n\tsyscall.Syscall6(gpFramebufferTextureLayer, 5, uintptr(target), uintptr(attachment), uintptr(texture), uintptr(level), uintptr(layer), 0)\n}", "func (f *Framebuffer) Renderbuffer(attachment gfx.FramebufferAttachment, buf gfx.Renderbuffer) {\n\tf.useState()\n\tf.ctx.O.Call(\n\t\t\"framebufferTexture2D\",\n\t\tf.ctx.FRAMEBUFFER,\n\t\tf.ctx.Enums[int(attachment)],\n\t\tf.ctx.RENDERBUFFER,\n\t\tbuf.Object().(*js.Object),\n\t\t0,\n\t)\n}", "func BindBuffer(target uint32, buffer uint32) {\n C.glowBindBuffer(gpBindBuffer, (C.GLenum)(target), (C.GLuint)(buffer))\n}", "func TextureBuffer(texture uint32, internalformat uint32, buffer uint32) {\n\tsyscall.Syscall(gpTextureBuffer, 3, uintptr(texture), uintptr(internalformat), uintptr(buffer))\n}", "func FramebufferTextureLayer(target uint32, attachment uint32, texture uint32, level int32, layer int32) {\n\tC.glowFramebufferTextureLayer(gpFramebufferTextureLayer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer))\n}", "func FramebufferTextureLayer(target uint32, attachment uint32, texture uint32, level int32, layer int32) {\n\tC.glowFramebufferTextureLayer(gpFramebufferTextureLayer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer))\n}", "func updateTextureVbo(data []float32, vbo uint32) {\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.BufferSubData(gl.ARRAY_BUFFER, 0, len(data)*4, gl.Ptr(data))\n\tgl.BindBuffer(gl.ARRAY_BUFFER, 0)\n}", "func TextureBuffer(texture uint32, internalformat uint32, buffer uint32) {\n\tC.glowTextureBuffer(gpTextureBuffer, (C.GLuint)(texture), (C.GLenum)(internalformat), (C.GLuint)(buffer))\n}", "func TextureBuffer(texture uint32, internalformat uint32, buffer uint32) {\n\tC.glowTextureBuffer(gpTextureBuffer, (C.GLuint)(texture), (C.GLenum)(internalformat), (C.GLuint)(buffer))\n}", "func BindBufferBase(target uint32, index uint32, buffer uint32) {\n C.glowBindBufferBase(gpBindBufferBase, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer))\n}", "func BindImageTexture(unit uint32, texture uint32, level int32, layered bool, layer int32, access uint32, format uint32) {\n C.glowBindImageTexture(gpBindImageTexture, (C.GLuint)(unit), (C.GLuint)(texture), (C.GLint)(level), (C.GLboolean)(boolToInt(layered)), (C.GLint)(layer), (C.GLenum)(access), (C.GLenum)(format))\n}", "func BindFramebuffer(target uint32, framebuffer uint32) {\n C.glowBindFramebuffer(gpBindFramebuffer, (C.GLenum)(target), (C.GLuint)(framebuffer))\n}", "func TexBuffer(target uint32, internalformat uint32, buffer uint32) {\n C.glowTexBuffer(gpTexBuffer, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer))\n}", "func (native *OpenGL) FramebufferTexture2D(target uint32, attachment uint32, textarget uint32, texture uint32, level int32) {\n\tgl.FramebufferTexture2D(target, attachment, textarget, texture, level)\n}", "func (c *Context) AddTextureObject(cfg *TextureConfig) (*TextureObject, error) {\n\n\t// var pbo uint32\n\t// gl.GenBuffers(1, &pbo)\n\t// gl.BindBuffer(gl.PIXEL_UNPACK_BUFFER, pbo)\n\t// // Write PBO with nil to initialize the space\n\t// gl.BufferData(gl.PIXEL_UNPACK_BUFFER, len(cfg.Image.Pix), nil, gl.STREAM_DRAW)\n\n\tmode := int32(gl.LINEAR)\n\tif cfg.Mode != 0 {\n\t\tmode = cfg.Mode\n\t}\n\n\tvar texID uint32\n\tgl.GenTextures(1, &texID)\n\tgl.ActiveTexture(gl.TEXTURE0)\n\tgl.BindTexture(gl.TEXTURE_2D, texID)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, mode)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, mode)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE)\n\n\t// write texture with nil pointer to initialize the space\n\tgl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA,\n\t\tint32(cfg.Image.Rect.Size().X), int32(cfg.Image.Rect.Size().Y),\n\t\t0, gl.RGBA, gl.UNSIGNED_BYTE, gl.Ptr(cfg.Image.Pix))\n\n\ttexLoc := c.GetUniformLocation(cfg.UniformName)\n\tgl.Uniform1i(texLoc, 0)\n\n\ttex := &TextureObject{\n\t\ttexID: texID,\n\t\ttexLoc: texLoc,\n\t\t//pbo: pbo,\n\t\timage: cfg.Image,\n\t}\n\tc.textures = append(c.textures, tex)\n\treturn tex, nil\n}", "func (debugging *debuggingOpenGL) BindFramebuffer(target uint32, buffer uint32) {\n\tdebugging.recordEntry(\"BindFramebuffer\", target, buffer)\n\tdebugging.gl.BindFramebuffer(target, buffer)\n\tdebugging.recordExit(\"BindFramebuffer\")\n}", "func BindBuffer(target Enum, b Buffer) {\n\tgl.BindBuffer(uint32(target), b.Value)\n}", "func (w *windowImpl) bindBackBuffer() {\n\t// w.mu.Lock()\n\t// size := w.Sz\n\t// w.mu.Unlock()\n\t//\n\tw.backBufferBound = true\n\t// gl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\t// gl.Viewport(0, 0, int32(size.X), int32(size.Y))\n}", "func (debugging *debuggingOpenGL) BindBuffer(target uint32, buffer uint32) {\n\tdebugging.recordEntry(\"BindBuffer\", target, buffer)\n\tdebugging.gl.BindBuffer(target, buffer)\n\tdebugging.recordExit(\"BindBuffer\")\n}", "func FramebufferTexture2D(target uint32, attachment uint32, textarget uint32, texture uint32, level int32) {\n\tsyscall.Syscall6(gpFramebufferTexture2D, 5, uintptr(target), uintptr(attachment), uintptr(textarget), uintptr(texture), uintptr(level), 0)\n}", "func DrawBuffer(mode uint32) {\n C.glowDrawBuffer(gpDrawBuffer, (C.GLenum)(mode))\n}", "func TextureBufferRange(texture uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tsyscall.Syscall6(gpTextureBufferRange, 5, uintptr(texture), uintptr(internalformat), uintptr(buffer), uintptr(offset), uintptr(size), 0)\n}", "func BindBufferRange(target uint32, index uint32, buffer uint32, offset int, size int) {\n C.glowBindBufferRange(gpBindBufferRange, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func FramebufferTexture2D(target, attachment, texTarget Enum, t Texture, level int) {\n\tgl.FramebufferTexture2D(uint32(target), uint32(attachment), uint32(texTarget), t.Value, int32(level))\n}", "func TextureBufferRange(texture uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tC.glowTextureBufferRange(gpTextureBufferRange, (C.GLuint)(texture), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func TextureBufferRange(texture uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tC.glowTextureBufferRange(gpTextureBufferRange, (C.GLuint)(texture), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func (native *OpenGL) BindFramebuffer(target, buffer uint32) {\n\tgl.BindFramebuffer(target, buffer)\n}", "func (native *OpenGL) BindBuffer(target uint32, buffer uint32) {\n\tgl.BindBuffer(target, buffer)\n}", "func (gl *WebGL) BindBuffer(target GLEnum, buffer WebGLBuffer) {\n\tgl.context.Call(\"bindBuffer\", target, buffer)\n}", "func initFramebuffer(width, height int) {\n\tlog.Printf(\"[Video]: Initializing HW render (%v x %v).\\n\", width, height)\n\n\tgl.GenFramebuffers(1, &fboID)\n\tgl.BindFramebuffer(gl.FRAMEBUFFER, fboID)\n\n\t//gl.GenTextures(1, &video.texID)\n\tgl.BindTexture(gl.TEXTURE_2D, texID)\n\tgl.TexStorage2D(gl.TEXTURE_2D, 1, gl.RGBA8, int32(width), int32(height))\n\n\tgl.FramebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, texID, 0)\n\n\thw := state.Global.Core.HWRenderCallback\n\n\tgl.BindRenderbuffer(gl.RENDERBUFFER, 0)\n\n\tif gl.CheckFramebufferStatus(gl.FRAMEBUFFER) != gl.FRAMEBUFFER_COMPLETE {\n\t\tlog.Fatalln(\"[Video] Framebuffer is not complete.\")\n\t}\n\n\tgl.ClearColor(0, 0, 0, 1)\n\tif hw.Depth && hw.Stencil {\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT | gl.STENCIL_BUFFER_BIT)\n\t} else if hw.Depth {\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\t} else {\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT)\n\t}\n\n\tgl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n}", "func draw(window *glfw.Window, reactProg, landProg uint32) {\n\n\tvar renderLoops = 4\n\tfor i := 0; i < renderLoops; i++ {\n\t\t// -- DRAW TO BUFFER --\n\t\t// define destination of pixels\n\t\t//gl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\t\tgl.BindFramebuffer(gl.FRAMEBUFFER, FBO[1])\n\n\t\tgl.Viewport(0, 0, width, height) // Retina display doubles the framebuffer !?!\n\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\t\tgl.UseProgram(reactProg)\n\n\t\t// bind Texture\n\t\tgl.ActiveTexture(gl.TEXTURE0)\n\t\tgl.BindTexture(gl.TEXTURE_2D, renderedTexture)\n\t\tgl.Uniform1i(uniTex, 0)\n\n\t\tgl.BindVertexArray(VAO)\n\t\tgl.DrawElements(gl.TRIANGLE_STRIP, int32(len(indices)), gl.UNSIGNED_INT, nil)\n\n\t\tgl.BindVertexArray(0)\n\n\t\t// -- copy back textures --\n\t\tgl.BindFramebuffer(gl.READ_FRAMEBUFFER, FBO[1]) // source is high res array\n\t\tgl.ReadBuffer(gl.COLOR_ATTACHMENT0)\n\t\tgl.BindFramebuffer(gl.DRAW_FRAMEBUFFER, FBO[0]) // destination is cells array\n\t\tgl.DrawBuffer(gl.COLOR_ATTACHMENT0)\n\t\tgl.BlitFramebuffer(0, 0, width, height,\n\t\t\t0, 0, cols, rows,\n\t\t\tgl.COLOR_BUFFER_BIT, gl.NEAREST) // downsample\n\t\tgl.BindFramebuffer(gl.READ_FRAMEBUFFER, FBO[0]) // source is low res array - put in texture\n\t\t// read pixels saves data read as unsigned bytes and then loads them in TexImage same way\n\t\tgl.ReadPixels(0, 0, cols, rows, gl.RGBA, gl.FLOAT, gl.Ptr(fData))\n\t\tgl.BindTexture(gl.TEXTURE_2D, renderedTexture)\n\t\tgl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, cols, rows, 0, gl.RGBA, gl.FLOAT, gl.Ptr(fData))\n\t\tCheckGLErrors()\n\t}\n\t// -- DRAW TO SCREEN --\n\tvar model glm.Mat4\n\n\t// destination 0 means screen\n\tgl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\tgl.Viewport(0, 0, width*2, height*2) // Retina display doubles the framebuffer !?!\n\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\tgl.UseProgram(landProg)\n\t// bind Texture\n\tgl.ActiveTexture(gl.TEXTURE0)\n\tgl.BindTexture(gl.TEXTURE_2D, drawTexture)\n\n\tvar view glm.Mat4\n\tvar brakeFactor = float64(20000.0)\n\tvar xCoord, yCoord float32\n\txCoord = float32(-3.0 * math.Sin(float64(myClock)))\n\tyCoord = float32(-3.0 * math.Cos(float64(myClock)))\n\t//xCoord = 0.0\n\t//yCoord = float32(-2.5)\n\tmyClock = math.Mod((myClock + float64(deltaTime)/brakeFactor), (math.Pi * 2))\n\tview = glm.LookAt(xCoord, yCoord, 2.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0)\n\tgl.UniformMatrix4fv(uniView, 1, false, &view[0])\n\tmodel = glm.HomogRotate3DX(glm.DegToRad(00.0))\n\tgl.UniformMatrix4fv(uniModel, 1, false, &model[0])\n\tgl.Uniform1i(uniTex2, 0)\n\n\t// render container\n\t//gl.PolygonMode(gl.FRONT_AND_BACK, gl.FILL)\n\t//gl.PolygonMode(gl.FRONT_AND_BACK, gl.LINE)\n\n\tgl.BindVertexArray(VAO)\n\tgl.DrawElements(gl.TRIANGLE_STRIP, int32(len(indices)), gl.UNSIGNED_INT, nil)\n\tgl.BindVertexArray(0)\n\n\tCheckGLErrors()\n\n\tglfw.PollEvents()\n\twindow.SwapBuffers()\n\n\t//time.Sleep(100 * 1000 * 1000)\n}", "func BindBuffer(target uint32, buffer uint32) {\n\tC.glowBindBuffer(gpBindBuffer, (C.GLenum)(target), (C.GLuint)(buffer))\n}", "func BindBuffer(target uint32, buffer uint32) {\n\tC.glowBindBuffer(gpBindBuffer, (C.GLenum)(target), (C.GLuint)(buffer))\n}", "func BindTexture(target uint32, texture uint32) {\n C.glowBindTexture(gpBindTexture, (C.GLenum)(target), (C.GLuint)(texture))\n}", "func BindBufferBase(target uint32, index uint32, buffer uint32) {\n\tC.glowBindBufferBase(gpBindBufferBase, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer))\n}", "func BindBufferBase(target uint32, index uint32, buffer uint32) {\n\tC.glowBindBufferBase(gpBindBufferBase, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer))\n}", "func TexBuffer(target uint32, internalformat uint32, buffer uint32) {\n\tC.glowTexBuffer(gpTexBuffer, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer))\n}", "func TexBuffer(target uint32, internalformat uint32, buffer uint32) {\n\tC.glowTexBuffer(gpTexBuffer, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer))\n}", "func (debugging *debuggingOpenGL) BindTexture(target uint32, texture uint32) {\n\tdebugging.recordEntry(\"BindTexture\", target, texture)\n\tdebugging.gl.BindTexture(target, texture)\n\tdebugging.recordExit(\"BindTexture\")\n}", "func BindRenderbuffer(target uint32, renderbuffer uint32) {\n\tC.glowBindRenderbuffer(gpBindRenderbuffer, (C.GLenum)(target), (C.GLuint)(renderbuffer))\n}", "func BindRenderbuffer(target uint32, renderbuffer uint32) {\n\tC.glowBindRenderbuffer(gpBindRenderbuffer, (C.GLenum)(target), (C.GLuint)(renderbuffer))\n}", "func BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n C.glowBlitFramebuffer(gpBlitFramebuffer, (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func (buffer Buffer) Bind(target gl.Enum) {\n\tgl.BindBuffer(gl.Enum(target), gl.Uint(buffer))\n}", "func (debugging *debuggingOpenGL) BindRenderbuffer(target uint32, buffer uint32) {\n\tdebugging.recordEntry(\"BindRenderbuffer\", target, buffer)\n\tdebugging.gl.BindRenderbuffer(target, buffer)\n\tdebugging.recordExit(\"BindRenderbuffer\")\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tC.glowFramebufferRenderbuffer(gpFramebufferRenderbuffer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tC.glowFramebufferRenderbuffer(gpFramebufferRenderbuffer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func (self *TileSprite) SetCanvasBufferA(member *PIXICanvasBuffer) {\n self.Object.Set(\"canvasBuffer\", member)\n}", "func FramebufferTexture2D(target Enum, attachment Enum, textarget Enum, texture Uint, level Int) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcattachment, _ := (C.GLenum)(attachment), cgoAllocsUnknown\n\tctextarget, _ := (C.GLenum)(textarget), cgoAllocsUnknown\n\tctexture, _ := (C.GLuint)(texture), cgoAllocsUnknown\n\tclevel, _ := (C.GLint)(level), cgoAllocsUnknown\n\tC.glFramebufferTexture2D(ctarget, cattachment, ctextarget, ctexture, clevel)\n}", "func (native *OpenGL) FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tgl.FramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)\n}", "func BindBuffersBase(target uint32, first uint32, count int32, buffers *uint32) {\n C.glowBindBuffersBase(gpBindBuffersBase, (C.GLenum)(target), (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(buffers)))\n}", "func (debugging *debuggingOpenGL) FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tdebugging.recordEntry(\"FramebufferRenderbuffer\", target, attachment, renderbuffertarget, renderbuffer)\n\tdebugging.gl.FramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)\n\tdebugging.recordExit(\"FramebufferRenderbuffer\")\n}", "func BindBufferRange(target uint32, index uint32, buffer uint32, offset int, size int) {\n\tC.glowBindBufferRange(gpBindBufferRange, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func BindBufferRange(target uint32, index uint32, buffer uint32, offset int, size int) {\n\tC.glowBindBufferRange(gpBindBufferRange, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func BufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n C.glowBufferSubData(gpBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func BindRenderbuffer(target GLEnum, renderbuffer Renderbuffer) {\n\tgl.BindRenderbuffer(uint32(target), uint32(renderbuffer))\n}", "func BindRenderbuffer(target uint32, renderbuffer uint32) {\n\tsyscall.Syscall(gpBindRenderbuffer, 2, uintptr(target), uintptr(renderbuffer), 0)\n}", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n ret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access))\n return (unsafe.Pointer)(ret)\n}", "func (t *Texture2D) Bind() {\n\tgl.BindTexture(gl.TEXTURE_2D, t.ID)\n}", "func (native *OpenGL) BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tgl.BlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter)\n}", "func BindRenderbuffer(target Enum, rb Renderbuffer) {\n\tgl.BindRenderbuffer(uint32(target), rb.Value)\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tsyscall.Syscall6(gpFramebufferRenderbuffer, 4, uintptr(target), uintptr(attachment), uintptr(renderbuffertarget), uintptr(renderbuffer), 0, 0)\n}", "func TexBufferRange(target uint32, internalformat uint32, buffer uint32, offset int, size int) {\n C.glowTexBufferRange(gpTexBufferRange, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func (gl *WebGL) BindTexture(target GLEnum, texture WebGLTexture) {\n\tgl.context.Call(\"bindTexture\", target, texture)\n}", "func TextureView(texture uint32, target uint32, origtexture uint32, internalformat uint32, minlevel uint32, numlevels uint32, minlayer uint32, numlayers uint32) {\n C.glowTextureView(gpTextureView, (C.GLuint)(texture), (C.GLenum)(target), (C.GLuint)(origtexture), (C.GLenum)(internalformat), (C.GLuint)(minlevel), (C.GLuint)(numlevels), (C.GLuint)(minlayer), (C.GLuint)(numlayers))\n}", "func (g *Gaffer) AddBuffer(u *Update) {\n\n\tfor _, v := range u.entities {\n\t\tg.AddEntity(v)\n\t}\n\n\tfor _, v := range u.edges {\n\t\tg.AddEdge(v)\n\t}\n\n}", "func FramebufferRenderbuffer(target, attachment, rbTarget Enum, rb Renderbuffer) {\n\tgl.FramebufferRenderbuffer(uint32(target), uint32(attachment), uint32(rbTarget), rb.Value)\n}", "func BufferInit(target Enum, size int, usage Enum) {\n\tgl.BufferData(uint32(target), size, nil, uint32(usage))\n}", "func (native *OpenGL) BindRenderbuffer(target uint32, renderbuffer uint32) {\n\tgl.BindRenderbuffer(target, renderbuffer)\n}", "func BindFramebuffer(target uint32, framebuffer uint32) {\n\tC.glowBindFramebuffer(gpBindFramebuffer, (C.GLenum)(target), (C.GLuint)(framebuffer))\n}", "func BindFramebuffer(target uint32, framebuffer uint32) {\n\tC.glowBindFramebuffer(gpBindFramebuffer, (C.GLenum)(target), (C.GLuint)(framebuffer))\n}", "func (buffer Buffer) BindBufferBase(target gl.Enum, index uint) {\n\tgl.BindBufferBase(gl.Enum(target), gl.Uint(index), gl.Uint(buffer))\n}", "func BufferData(target uint32, size int, data unsafe.Pointer, usage uint32) {\n C.glowBufferData(gpBufferData, (C.GLenum)(target), (C.GLsizeiptr)(size), data, (C.GLenum)(usage))\n}", "func InvalidateSubFramebuffer(target uint32, numAttachments int32, attachments *uint32, x int32, y int32, width int32, height int32) {\n C.glowInvalidateSubFramebuffer(gpInvalidateSubFramebuffer, (C.GLenum)(target), (C.GLsizei)(numAttachments), (*C.GLenum)(unsafe.Pointer(attachments)), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func (native *OpenGL) BindTexture(target uint32, texture uint32) {\n\tgl.BindTexture(target, texture)\n}", "func BindTexture(target Enum, t Texture) {\n\tgl.BindTexture(uint32(target), t.Value)\n}", "func (c *Context) BindTexture(texture *Texture) {\n\tif texture == nil {\n\t\treturn\n\t}\n\tif c.currentTexture == nil || texture.id != c.currentTexture.id {\n\t\tgl.BindTexture(gl.TEXTURE_2D, texture.id)\n\t\tc.currentTexture = texture\n\t}\n}", "func RenderbufferStorage(target uint32, internalformat uint32, width int32, height int32) {\n C.glowRenderbufferStorage(gpRenderbufferStorage, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func (buffer Buffer) BindBufferRange(target gl.Enum, index uint, offset int, size uint) {\n\tgl.BindBufferRange(gl.Enum(target), gl.Uint(index), gl.Uint(buffer), gl.Intptr(offset), gl.Sizeiptr(size))\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tC.glowNamedFramebufferDrawBuffer(gpNamedFramebufferDrawBuffer, (C.GLuint)(framebuffer), (C.GLenum)(buf))\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tC.glowNamedFramebufferDrawBuffer(gpNamedFramebufferDrawBuffer, (C.GLuint)(framebuffer), (C.GLenum)(buf))\n}", "func (debugging *debuggingOpenGL) BufferData(target uint32, size int, data interface{}, usage uint32) {\n\tdebugging.recordEntry(\"BufferData\", target, size, data, usage)\n\tdebugging.gl.BufferData(target, size, data, usage)\n\tdebugging.recordExit(\"BufferData\")\n}", "func BindVertexBuffer(bindingindex uint32, buffer uint32, offset int, stride int32) {\n C.glowBindVertexBuffer(gpBindVertexBuffer, (C.GLuint)(bindingindex), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizei)(stride))\n}", "func BindBuffersRange(target uint32, first uint32, count int32, buffers *uint32, offsets *int, sizes *int) {\n C.glowBindBuffersRange(gpBindBuffersRange, (C.GLenum)(target), (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(buffers)), (*C.GLintptr)(unsafe.Pointer(offsets)), (*C.GLsizeiptr)(unsafe.Pointer(sizes)))\n}", "func TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexImage2D(gpTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func BindTexture(target uint32, texture uint32) {\n\tsyscall.Syscall(gpBindTexture, 2, uintptr(target), uintptr(texture), 0)\n}", "func TexImage2D(target Enum, level int, width, height int, format Enum, ty Enum, data []byte) {\n\tp := unsafe.Pointer(nil)\n\tif len(data) > 0 {\n\t\tp = gl.Ptr(&data[0])\n\t}\n\tgl.TexImage2D(uint32(target), int32(level), int32(format), int32(width), int32(height), 0, uint32(format), uint32(ty), p)\n}", "func NamedFramebufferTextureLayer(framebuffer uint32, attachment uint32, texture uint32, level int32, layer int32) {\n\tC.glowNamedFramebufferTextureLayer(gpNamedFramebufferTextureLayer, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer))\n}", "func NamedFramebufferTextureLayer(framebuffer uint32, attachment uint32, texture uint32, level int32, layer int32) {\n\tC.glowNamedFramebufferTextureLayer(gpNamedFramebufferTextureLayer, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer))\n}", "func (tex Texture) Sub(ctx gl.Context, lvl int, width int, height int, data []byte) {\n\tctx.TexSubImage2D(gl.TEXTURE_2D, lvl, 0, 0, width, height, gl.RGBA, gl.UNSIGNED_BYTE, data)\n\tif lvl > 0 {\n\t\tctx.GenerateMipmap(gl.TEXTURE_2D)\n\t}\n}", "func BufferStorage(target uint32, size int, data unsafe.Pointer, flags uint32) {\n C.glowBufferStorage(gpBufferStorage, (C.GLenum)(target), (C.GLsizeiptr)(size), data, (C.GLbitfield)(flags))\n}", "func (dev *Device) SetDepthBuffer(buf unsafe.Pointer) int {\n\treturn int(C.freenect_set_depth_buffer(dev.ptr(), buf))\n}", "func newFramebufferFromTexture(context *context, texture textureNative, width, height int) (*framebuffer, error) {\n\tnative, err := context.newFramebuffer(texture)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &framebuffer{\n\t\tnative: native,\n\t\twidth: width,\n\t\theight: height,\n\t}, nil\n}" ]
[ "0.69883555", "0.68194735", "0.66449696", "0.6440821", "0.6440821", "0.6405265", "0.63819826", "0.63745326", "0.6362165", "0.6339609", "0.63065445", "0.62801546", "0.62801546", "0.6174655", "0.61722314", "0.61722314", "0.617196", "0.6166744", "0.61656374", "0.6151749", "0.61220986", "0.6081713", "0.6060115", "0.603004", "0.6023208", "0.60097283", "0.5981714", "0.59728837", "0.5964036", "0.5963201", "0.5934962", "0.5918107", "0.5918107", "0.5912807", "0.5897016", "0.5892806", "0.5882538", "0.5866273", "0.58650845", "0.58650845", "0.5842764", "0.58399117", "0.58399117", "0.58285177", "0.58285177", "0.5827957", "0.58092475", "0.58092475", "0.58017904", "0.5774652", "0.5772794", "0.57403654", "0.57403654", "0.5736983", "0.5733097", "0.57321686", "0.5711024", "0.56856364", "0.5684545", "0.5684545", "0.56780475", "0.56529534", "0.56524533", "0.564454", "0.5642547", "0.5639038", "0.56269276", "0.56239325", "0.56211185", "0.5616042", "0.56054294", "0.55923706", "0.5586369", "0.55803514", "0.5570636", "0.55672413", "0.55672413", "0.5561018", "0.5558353", "0.5549831", "0.5537564", "0.55371946", "0.55255425", "0.5510013", "0.5504004", "0.5495064", "0.5495064", "0.5493905", "0.54880685", "0.54830253", "0.54660845", "0.5461526", "0.5454642", "0.54393363", "0.54393363", "0.5424901", "0.54239863", "0.5423937", "0.5423325" ]
0.5911891
35
attach a single layer of a texture object as a logical buffer of a framebuffer object
func FramebufferTextureLayer(target uint32, attachment uint32, texture uint32, level int32, layer int32) { C.glowFramebufferTextureLayer(gpFramebufferTextureLayer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func FramebufferTextureLayer(target uint32, attachment uint32, texture uint32, level int32, layer int32) {\n C.glowFramebufferTextureLayer(gpFramebufferTextureLayer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer))\n}", "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n C.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func (debugging *debuggingOpenGL) FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n\tdebugging.recordEntry(\"FramebufferTexture\", target, attachment, texture, level)\n\tdebugging.gl.FramebufferTexture(target, attachment, texture, level)\n\tdebugging.recordExit(\"FramebufferTexture\")\n}", "func FramebufferTextureLayer(target uint32, attachment uint32, texture uint32, level int32, layer int32) {\n\tsyscall.Syscall6(gpFramebufferTextureLayer, 5, uintptr(target), uintptr(attachment), uintptr(texture), uintptr(level), uintptr(layer), 0)\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n C.glowFramebufferRenderbuffer(gpFramebufferRenderbuffer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func (f *Framebuffer) Renderbuffer(attachment gfx.FramebufferAttachment, buf gfx.Renderbuffer) {\n\tf.useState()\n\tf.ctx.O.Call(\n\t\t\"framebufferTexture2D\",\n\t\tf.ctx.FRAMEBUFFER,\n\t\tf.ctx.Enums[int(attachment)],\n\t\tf.ctx.RENDERBUFFER,\n\t\tbuf.Object().(*js.Object),\n\t\t0,\n\t)\n}", "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n\tC.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n\tC.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func TextureBuffer(texture uint32, internalformat uint32, buffer uint32) {\n\tsyscall.Syscall(gpTextureBuffer, 3, uintptr(texture), uintptr(internalformat), uintptr(buffer))\n}", "func BindRenderbuffer(target uint32, renderbuffer uint32) {\n C.glowBindRenderbuffer(gpBindRenderbuffer, (C.GLenum)(target), (C.GLuint)(renderbuffer))\n}", "func (c *Context) AddTextureObject(cfg *TextureConfig) (*TextureObject, error) {\n\n\t// var pbo uint32\n\t// gl.GenBuffers(1, &pbo)\n\t// gl.BindBuffer(gl.PIXEL_UNPACK_BUFFER, pbo)\n\t// // Write PBO with nil to initialize the space\n\t// gl.BufferData(gl.PIXEL_UNPACK_BUFFER, len(cfg.Image.Pix), nil, gl.STREAM_DRAW)\n\n\tmode := int32(gl.LINEAR)\n\tif cfg.Mode != 0 {\n\t\tmode = cfg.Mode\n\t}\n\n\tvar texID uint32\n\tgl.GenTextures(1, &texID)\n\tgl.ActiveTexture(gl.TEXTURE0)\n\tgl.BindTexture(gl.TEXTURE_2D, texID)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, mode)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, mode)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE)\n\n\t// write texture with nil pointer to initialize the space\n\tgl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA,\n\t\tint32(cfg.Image.Rect.Size().X), int32(cfg.Image.Rect.Size().Y),\n\t\t0, gl.RGBA, gl.UNSIGNED_BYTE, gl.Ptr(cfg.Image.Pix))\n\n\ttexLoc := c.GetUniformLocation(cfg.UniformName)\n\tgl.Uniform1i(texLoc, 0)\n\n\ttex := &TextureObject{\n\t\ttexID: texID,\n\t\ttexLoc: texLoc,\n\t\t//pbo: pbo,\n\t\timage: cfg.Image,\n\t}\n\tc.textures = append(c.textures, tex)\n\treturn tex, nil\n}", "func BindFramebuffer(target uint32, framebuffer uint32) {\n C.glowBindFramebuffer(gpBindFramebuffer, (C.GLenum)(target), (C.GLuint)(framebuffer))\n}", "func TextureBuffer(texture uint32, internalformat uint32, buffer uint32) {\n\tC.glowTextureBuffer(gpTextureBuffer, (C.GLuint)(texture), (C.GLenum)(internalformat), (C.GLuint)(buffer))\n}", "func TextureBuffer(texture uint32, internalformat uint32, buffer uint32) {\n\tC.glowTextureBuffer(gpTextureBuffer, (C.GLuint)(texture), (C.GLenum)(internalformat), (C.GLuint)(buffer))\n}", "func initFramebuffer(width, height int) {\n\tlog.Printf(\"[Video]: Initializing HW render (%v x %v).\\n\", width, height)\n\n\tgl.GenFramebuffers(1, &fboID)\n\tgl.BindFramebuffer(gl.FRAMEBUFFER, fboID)\n\n\t//gl.GenTextures(1, &video.texID)\n\tgl.BindTexture(gl.TEXTURE_2D, texID)\n\tgl.TexStorage2D(gl.TEXTURE_2D, 1, gl.RGBA8, int32(width), int32(height))\n\n\tgl.FramebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, texID, 0)\n\n\thw := state.Global.Core.HWRenderCallback\n\n\tgl.BindRenderbuffer(gl.RENDERBUFFER, 0)\n\n\tif gl.CheckFramebufferStatus(gl.FRAMEBUFFER) != gl.FRAMEBUFFER_COMPLETE {\n\t\tlog.Fatalln(\"[Video] Framebuffer is not complete.\")\n\t}\n\n\tgl.ClearColor(0, 0, 0, 1)\n\tif hw.Depth && hw.Stencil {\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT | gl.STENCIL_BUFFER_BIT)\n\t} else if hw.Depth {\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\t} else {\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT)\n\t}\n\n\tgl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n}", "func (debugging *debuggingOpenGL) BindFramebuffer(target uint32, buffer uint32) {\n\tdebugging.recordEntry(\"BindFramebuffer\", target, buffer)\n\tdebugging.gl.BindFramebuffer(target, buffer)\n\tdebugging.recordExit(\"BindFramebuffer\")\n}", "func BindBuffer(target uint32, buffer uint32) {\n C.glowBindBuffer(gpBindBuffer, (C.GLenum)(target), (C.GLuint)(buffer))\n}", "func (native *OpenGL) FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tgl.FramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)\n}", "func (native *OpenGL) FramebufferTexture2D(target uint32, attachment uint32, textarget uint32, texture uint32, level int32) {\n\tgl.FramebufferTexture2D(target, attachment, textarget, texture, level)\n}", "func (native *OpenGL) BindFramebuffer(target, buffer uint32) {\n\tgl.BindFramebuffer(target, buffer)\n}", "func TexBuffer(target uint32, internalformat uint32, buffer uint32) {\n C.glowTexBuffer(gpTexBuffer, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer))\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tC.glowFramebufferRenderbuffer(gpFramebufferRenderbuffer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tC.glowFramebufferRenderbuffer(gpFramebufferRenderbuffer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n C.glowBlitFramebuffer(gpBlitFramebuffer, (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func (native *OpenGL) BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tgl.BlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter)\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tsyscall.Syscall6(gpFramebufferRenderbuffer, 4, uintptr(target), uintptr(attachment), uintptr(renderbuffertarget), uintptr(renderbuffer), 0, 0)\n}", "func (debugging *debuggingOpenGL) FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tdebugging.recordEntry(\"FramebufferRenderbuffer\", target, attachment, renderbuffertarget, renderbuffer)\n\tdebugging.gl.FramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)\n\tdebugging.recordExit(\"FramebufferRenderbuffer\")\n}", "func (self *TileSprite) SetCanvasBufferA(member *PIXICanvasBuffer) {\n self.Object.Set(\"canvasBuffer\", member)\n}", "func FramebufferTexture2D(target uint32, attachment uint32, textarget uint32, texture uint32, level int32) {\n\tsyscall.Syscall6(gpFramebufferTexture2D, 5, uintptr(target), uintptr(attachment), uintptr(textarget), uintptr(texture), uintptr(level), 0)\n}", "func (w *windowImpl) bindBackBuffer() {\n\t// w.mu.Lock()\n\t// size := w.Sz\n\t// w.mu.Unlock()\n\t//\n\tw.backBufferBound = true\n\t// gl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\t// gl.Viewport(0, 0, int32(size.X), int32(size.Y))\n}", "func FramebufferTexture2D(target, attachment, texTarget Enum, t Texture, level int) {\n\tgl.FramebufferTexture2D(uint32(target), uint32(attachment), uint32(texTarget), t.Value, int32(level))\n}", "func BindImageTexture(unit uint32, texture uint32, level int32, layered bool, layer int32, access uint32, format uint32) {\n C.glowBindImageTexture(gpBindImageTexture, (C.GLuint)(unit), (C.GLuint)(texture), (C.GLint)(level), (C.GLboolean)(boolToInt(layered)), (C.GLint)(layer), (C.GLenum)(access), (C.GLenum)(format))\n}", "func updateTextureVbo(data []float32, vbo uint32) {\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.BufferSubData(gl.ARRAY_BUFFER, 0, len(data)*4, gl.Ptr(data))\n\tgl.BindBuffer(gl.ARRAY_BUFFER, 0)\n}", "func (debugging *debuggingOpenGL) BindBuffer(target uint32, buffer uint32) {\n\tdebugging.recordEntry(\"BindBuffer\", target, buffer)\n\tdebugging.gl.BindBuffer(target, buffer)\n\tdebugging.recordExit(\"BindBuffer\")\n}", "func FramebufferRenderbuffer(target, attachment, rbTarget Enum, rb Renderbuffer) {\n\tgl.FramebufferRenderbuffer(uint32(target), uint32(attachment), uint32(rbTarget), rb.Value)\n}", "func (b *Buffer) Attach(buffer []byte) {\n b.AttachBytes(buffer, 0, len(buffer))\n}", "func newFramebufferFromTexture(context *context, texture textureNative, width, height int) (*framebuffer, error) {\n\tnative, err := context.newFramebuffer(texture)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &framebuffer{\n\t\tnative: native,\n\t\twidth: width,\n\t\theight: height,\n\t}, nil\n}", "func BindBufferBase(target uint32, index uint32, buffer uint32) {\n C.glowBindBufferBase(gpBindBufferBase, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer))\n}", "func BindBuffer(target Enum, b Buffer) {\n\tgl.BindBuffer(uint32(target), b.Value)\n}", "func (g *Gaffer) AddBuffer(u *Update) {\n\n\tfor _, v := range u.entities {\n\t\tg.AddEntity(v)\n\t}\n\n\tfor _, v := range u.edges {\n\t\tg.AddEdge(v)\n\t}\n\n}", "func TexBuffer(target uint32, internalformat uint32, buffer uint32) {\n\tC.glowTexBuffer(gpTexBuffer, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer))\n}", "func TexBuffer(target uint32, internalformat uint32, buffer uint32) {\n\tC.glowTexBuffer(gpTexBuffer, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer))\n}", "func FramebufferTexture2D(target uint32, attachment uint32, textarget uint32, texture uint32, level int32) {\n\tC.glowFramebufferTexture2D(gpFramebufferTexture2D, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(textarget), (C.GLuint)(texture), (C.GLint)(level))\n}", "func FramebufferTexture2D(target uint32, attachment uint32, textarget uint32, texture uint32, level int32) {\n\tC.glowFramebufferTexture2D(gpFramebufferTexture2D, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(textarget), (C.GLuint)(texture), (C.GLint)(level))\n}", "func (native *OpenGL) BindBuffer(target uint32, buffer uint32) {\n\tgl.BindBuffer(target, buffer)\n}", "func (gl *WebGL) BindBuffer(target GLEnum, buffer WebGLBuffer) {\n\tgl.context.Call(\"bindBuffer\", target, buffer)\n}", "func draw(window *glfw.Window, reactProg, landProg uint32) {\n\n\tvar renderLoops = 4\n\tfor i := 0; i < renderLoops; i++ {\n\t\t// -- DRAW TO BUFFER --\n\t\t// define destination of pixels\n\t\t//gl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\t\tgl.BindFramebuffer(gl.FRAMEBUFFER, FBO[1])\n\n\t\tgl.Viewport(0, 0, width, height) // Retina display doubles the framebuffer !?!\n\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\t\tgl.UseProgram(reactProg)\n\n\t\t// bind Texture\n\t\tgl.ActiveTexture(gl.TEXTURE0)\n\t\tgl.BindTexture(gl.TEXTURE_2D, renderedTexture)\n\t\tgl.Uniform1i(uniTex, 0)\n\n\t\tgl.BindVertexArray(VAO)\n\t\tgl.DrawElements(gl.TRIANGLE_STRIP, int32(len(indices)), gl.UNSIGNED_INT, nil)\n\n\t\tgl.BindVertexArray(0)\n\n\t\t// -- copy back textures --\n\t\tgl.BindFramebuffer(gl.READ_FRAMEBUFFER, FBO[1]) // source is high res array\n\t\tgl.ReadBuffer(gl.COLOR_ATTACHMENT0)\n\t\tgl.BindFramebuffer(gl.DRAW_FRAMEBUFFER, FBO[0]) // destination is cells array\n\t\tgl.DrawBuffer(gl.COLOR_ATTACHMENT0)\n\t\tgl.BlitFramebuffer(0, 0, width, height,\n\t\t\t0, 0, cols, rows,\n\t\t\tgl.COLOR_BUFFER_BIT, gl.NEAREST) // downsample\n\t\tgl.BindFramebuffer(gl.READ_FRAMEBUFFER, FBO[0]) // source is low res array - put in texture\n\t\t// read pixels saves data read as unsigned bytes and then loads them in TexImage same way\n\t\tgl.ReadPixels(0, 0, cols, rows, gl.RGBA, gl.FLOAT, gl.Ptr(fData))\n\t\tgl.BindTexture(gl.TEXTURE_2D, renderedTexture)\n\t\tgl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, cols, rows, 0, gl.RGBA, gl.FLOAT, gl.Ptr(fData))\n\t\tCheckGLErrors()\n\t}\n\t// -- DRAW TO SCREEN --\n\tvar model glm.Mat4\n\n\t// destination 0 means screen\n\tgl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\tgl.Viewport(0, 0, width*2, height*2) // Retina display doubles the framebuffer !?!\n\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\tgl.UseProgram(landProg)\n\t// bind Texture\n\tgl.ActiveTexture(gl.TEXTURE0)\n\tgl.BindTexture(gl.TEXTURE_2D, drawTexture)\n\n\tvar view glm.Mat4\n\tvar brakeFactor = float64(20000.0)\n\tvar xCoord, yCoord float32\n\txCoord = float32(-3.0 * math.Sin(float64(myClock)))\n\tyCoord = float32(-3.0 * math.Cos(float64(myClock)))\n\t//xCoord = 0.0\n\t//yCoord = float32(-2.5)\n\tmyClock = math.Mod((myClock + float64(deltaTime)/brakeFactor), (math.Pi * 2))\n\tview = glm.LookAt(xCoord, yCoord, 2.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0)\n\tgl.UniformMatrix4fv(uniView, 1, false, &view[0])\n\tmodel = glm.HomogRotate3DX(glm.DegToRad(00.0))\n\tgl.UniformMatrix4fv(uniModel, 1, false, &model[0])\n\tgl.Uniform1i(uniTex2, 0)\n\n\t// render container\n\t//gl.PolygonMode(gl.FRONT_AND_BACK, gl.FILL)\n\t//gl.PolygonMode(gl.FRONT_AND_BACK, gl.LINE)\n\n\tgl.BindVertexArray(VAO)\n\tgl.DrawElements(gl.TRIANGLE_STRIP, int32(len(indices)), gl.UNSIGNED_INT, nil)\n\tgl.BindVertexArray(0)\n\n\tCheckGLErrors()\n\n\tglfw.PollEvents()\n\twindow.SwapBuffers()\n\n\t//time.Sleep(100 * 1000 * 1000)\n}", "func (debugging *debuggingOpenGL) BindRenderbuffer(target uint32, buffer uint32) {\n\tdebugging.recordEntry(\"BindRenderbuffer\", target, buffer)\n\tdebugging.gl.BindRenderbuffer(target, buffer)\n\tdebugging.recordExit(\"BindRenderbuffer\")\n}", "func FramebufferRenderbuffer(target Enum, attachment Enum, renderbuffertarget Enum, renderbuffer Uint) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcattachment, _ := (C.GLenum)(attachment), cgoAllocsUnknown\n\tcrenderbuffertarget, _ := (C.GLenum)(renderbuffertarget), cgoAllocsUnknown\n\tcrenderbuffer, _ := (C.GLuint)(renderbuffer), cgoAllocsUnknown\n\tC.glFramebufferRenderbuffer(ctarget, cattachment, crenderbuffertarget, crenderbuffer)\n}", "func NamedFramebufferTextureLayer(framebuffer uint32, attachment uint32, texture uint32, level int32, layer int32) {\n\tsyscall.Syscall6(gpNamedFramebufferTextureLayer, 5, uintptr(framebuffer), uintptr(attachment), uintptr(texture), uintptr(level), uintptr(layer), 0)\n}", "func (debugging *debuggingOpenGL) BindTexture(target uint32, texture uint32) {\n\tdebugging.recordEntry(\"BindTexture\", target, texture)\n\tdebugging.gl.BindTexture(target, texture)\n\tdebugging.recordExit(\"BindTexture\")\n}", "func NamedFramebufferTextureLayer(framebuffer uint32, attachment uint32, texture uint32, level int32, layer int32) {\n\tC.glowNamedFramebufferTextureLayer(gpNamedFramebufferTextureLayer, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer))\n}", "func NamedFramebufferTextureLayer(framebuffer uint32, attachment uint32, texture uint32, level int32, layer int32) {\n\tC.glowNamedFramebufferTextureLayer(gpNamedFramebufferTextureLayer, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer))\n}", "func BindRenderbuffer(target uint32, renderbuffer uint32) {\n\tC.glowBindRenderbuffer(gpBindRenderbuffer, (C.GLenum)(target), (C.GLuint)(renderbuffer))\n}", "func BindRenderbuffer(target uint32, renderbuffer uint32) {\n\tC.glowBindRenderbuffer(gpBindRenderbuffer, (C.GLenum)(target), (C.GLuint)(renderbuffer))\n}", "func BindBuffer(target uint32, buffer uint32) {\n\tC.glowBindBuffer(gpBindBuffer, (C.GLenum)(target), (C.GLuint)(buffer))\n}", "func BindBuffer(target uint32, buffer uint32) {\n\tC.glowBindBuffer(gpBindBuffer, (C.GLenum)(target), (C.GLuint)(buffer))\n}", "func NewAttachedBuffer(buffer *Buffer) *Buffer {\n result := NewEmptyBuffer()\n result.AttachBuffer(buffer)\n return result\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tC.glowNamedFramebufferDrawBuffer(gpNamedFramebufferDrawBuffer, (C.GLuint)(framebuffer), (C.GLenum)(buf))\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tC.glowNamedFramebufferDrawBuffer(gpNamedFramebufferDrawBuffer, (C.GLuint)(framebuffer), (C.GLenum)(buf))\n}", "func BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tsyscall.Syscall12(gpBlitFramebuffer, 10, uintptr(srcX0), uintptr(srcY0), uintptr(srcX1), uintptr(srcY1), uintptr(dstX0), uintptr(dstY0), uintptr(dstX1), uintptr(dstY1), uintptr(mask), uintptr(filter), 0, 0)\n}", "func BindTexture(target uint32, texture uint32) {\n C.glowBindTexture(gpBindTexture, (C.GLenum)(target), (C.GLuint)(texture))\n}", "func BindFramebuffer(target uint32, framebuffer uint32) {\n\tC.glowBindFramebuffer(gpBindFramebuffer, (C.GLenum)(target), (C.GLuint)(framebuffer))\n}", "func BindFramebuffer(target uint32, framebuffer uint32) {\n\tC.glowBindFramebuffer(gpBindFramebuffer, (C.GLenum)(target), (C.GLuint)(framebuffer))\n}", "func BindRenderbuffer(target uint32, renderbuffer uint32) {\n\tsyscall.Syscall(gpBindRenderbuffer, 2, uintptr(target), uintptr(renderbuffer), 0)\n}", "func BufferInit(target Enum, size int, usage Enum) {\n\tgl.BufferData(uint32(target), size, nil, uint32(usage))\n}", "func BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tC.glowBlitFramebuffer(gpBlitFramebuffer, (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tC.glowBlitFramebuffer(gpBlitFramebuffer, (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func FramebufferTexture2D(target Enum, attachment Enum, textarget Enum, texture Uint, level Int) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcattachment, _ := (C.GLenum)(attachment), cgoAllocsUnknown\n\tctextarget, _ := (C.GLenum)(textarget), cgoAllocsUnknown\n\tctexture, _ := (C.GLuint)(texture), cgoAllocsUnknown\n\tclevel, _ := (C.GLint)(level), cgoAllocsUnknown\n\tC.glFramebufferTexture2D(ctarget, cattachment, ctextarget, ctexture, clevel)\n}", "func BindRenderbuffer(target GLEnum, renderbuffer Renderbuffer) {\n\tgl.BindRenderbuffer(uint32(target), uint32(renderbuffer))\n}", "func FrameBuffer(m rv.RenderModel) {\n\tframebuffer(m)\n}", "func createFB(tex wasm.WebGLTexture) wasm.WebGLFramebuffer {\n\tfb := gl.CreateFramebuffer()\n\tgl.BindFramebuffer(wasm.FRAMEBUFFER, fb)\n\tgl.FramebufferTexture2D(wasm.FRAMEBUFFER, wasm.COLOR_ATTACHMENT0, wasm.TEXTURE_2D, tex, 0)\n\treturn fb\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tsyscall.Syscall(gpNamedFramebufferDrawBuffer, 2, uintptr(framebuffer), uintptr(buf), 0)\n}", "func (native *OpenGL) BindRenderbuffer(target uint32, renderbuffer uint32) {\n\tgl.BindRenderbuffer(target, renderbuffer)\n}", "func BindFramebuffer(target uint32, framebuffer uint32) {\n\tsyscall.Syscall(gpBindFramebuffer, 2, uintptr(target), uintptr(framebuffer), 0)\n}", "func (gl *WebGL) BindTexture(target GLEnum, texture WebGLTexture) {\n\tgl.context.Call(\"bindTexture\", target, texture)\n}", "func DrawBuffer(mode uint32) {\n C.glowDrawBuffer(gpDrawBuffer, (C.GLenum)(mode))\n}", "func (f *Framebuffer) Texture2D(attachment gfx.FramebufferAttachment, target gfx.TextureTarget, tex gfx.Texture) {\n\tf.useState()\n\tf.ctx.O.Call(\n\t\t\"framebufferTexture2D\",\n\t\tf.ctx.FRAMEBUFFER,\n\t\tf.ctx.Enums[int(attachment)],\n\t\tf.ctx.Enums[int(target)],\n\t\ttex.Object().(*js.Object),\n\t\t0,\n\t)\n}", "func BindBufferBase(target uint32, index uint32, buffer uint32) {\n\tC.glowBindBufferBase(gpBindBufferBase, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer))\n}", "func BindBufferBase(target uint32, index uint32, buffer uint32) {\n\tC.glowBindBufferBase(gpBindBufferBase, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer))\n}", "func (t *Texture2D) Bind() {\n\tgl.BindTexture(gl.TEXTURE_2D, t.ID)\n}", "func (b *XMobileBackend) PutImageData(img *image.RGBA, x, y int) {\n\tb.activate()\n\n\tb.glctx.ActiveTexture(gl.TEXTURE0)\n\tif b.imageBufTex.Value == 0 {\n\t\tb.imageBufTex = b.glctx.CreateTexture()\n\t\tb.glctx.BindTexture(gl.TEXTURE_2D, b.imageBufTex)\n\t\tb.glctx.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR)\n\t\tb.glctx.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR)\n\t\tb.glctx.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE)\n\t\tb.glctx.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE)\n\t} else {\n\t\tb.glctx.BindTexture(gl.TEXTURE_2D, b.imageBufTex)\n\t}\n\n\tw, h := img.Bounds().Dx(), img.Bounds().Dy()\n\n\tif img.Stride == img.Bounds().Dx()*4 {\n\t\tb.glctx.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, w, h, gl.RGBA, gl.UNSIGNED_BYTE, img.Pix[0:])\n\t} else {\n\t\tdata := make([]uint8, 0, w*h*4)\n\t\tfor cy := 0; cy < h; cy++ {\n\t\t\tstart := cy * img.Stride\n\t\t\tend := start + w*4\n\t\t\tdata = append(data, img.Pix[start:end]...)\n\t\t}\n\t\tb.glctx.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, w, h, gl.RGBA, gl.UNSIGNED_BYTE, data[0:])\n\t}\n\n\tdx, dy := float32(x), float32(y)\n\tdw, dh := float32(w), float32(h)\n\n\tb.glctx.BindBuffer(gl.ARRAY_BUFFER, b.buf)\n\tdata := [16]float32{dx, dy, dx + dw, dy, dx + dw, dy + dh, dx, dy + dh,\n\t\t0, 0, 1, 0, 1, 1, 0, 1}\n\tb.glctx.BufferData(gl.ARRAY_BUFFER, byteSlice(unsafe.Pointer(&data[0]), len(data)*4), gl.STREAM_DRAW)\n\n\tb.glctx.UseProgram(b.shd.ID)\n\tb.glctx.Uniform1i(b.shd.Image, 0)\n\tb.glctx.Uniform2f(b.shd.CanvasSize, float32(b.fw), float32(b.fh))\n\tb.glctx.UniformMatrix3fv(b.shd.Matrix, mat3identity[:])\n\tb.glctx.Uniform1f(b.shd.GlobalAlpha, 1)\n\tb.glctx.Uniform1i(b.shd.UseAlphaTex, 0)\n\tb.glctx.Uniform1i(b.shd.Func, shdFuncImage)\n\tb.glctx.VertexAttribPointer(b.shd.Vertex, 2, gl.FLOAT, false, 0, 0)\n\tb.glctx.VertexAttribPointer(b.shd.TexCoord, 2, gl.FLOAT, false, 0, 8*4)\n\tb.glctx.EnableVertexAttribArray(b.shd.Vertex)\n\tb.glctx.EnableVertexAttribArray(b.shd.TexCoord)\n\tb.glctx.DrawArrays(gl.TRIANGLE_FAN, 0, 4)\n\tb.glctx.DisableVertexAttribArray(b.shd.Vertex)\n\tb.glctx.DisableVertexAttribArray(b.shd.TexCoord)\n}", "func BindFramebuffer(target Enum, fb Framebuffer) {\n\tgl.BindFramebuffer(uint32(target), fb.Value)\n}", "func (buffer Buffer) Bind(target gl.Enum) {\n\tgl.BindBuffer(gl.Enum(target), gl.Uint(buffer))\n}", "func BindTexture(target uint32, texture uint32) {\n\tsyscall.Syscall(gpBindTexture, 2, uintptr(target), uintptr(texture), 0)\n}", "func BindFramebuffer(target Enum, framebuffer Uint) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcframebuffer, _ := (C.GLuint)(framebuffer), cgoAllocsUnknown\n\tC.glBindFramebuffer(ctarget, cframebuffer)\n}", "func (native *OpenGL) BindTexture(target uint32, texture uint32) {\n\tgl.BindTexture(target, texture)\n}", "func (t Texture3D) Bind() {\n\tgl.BindTexture(gl.TEXTURE_3D, t.id)\n}", "func TextureBufferRange(texture uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tsyscall.Syscall6(gpTextureBufferRange, 5, uintptr(texture), uintptr(internalformat), uintptr(buffer), uintptr(offset), uintptr(size), 0)\n}", "func (debugging *debuggingOpenGL) BufferData(target uint32, size int, data interface{}, usage uint32) {\n\tdebugging.recordEntry(\"BufferData\", target, size, data, usage)\n\tdebugging.gl.BufferData(target, size, data, usage)\n\tdebugging.recordExit(\"BufferData\")\n}", "func BindBuffersBase(target uint32, first uint32, count int32, buffers *uint32) {\n C.glowBindBuffersBase(gpBindBuffersBase, (C.GLenum)(target), (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(buffers)))\n}", "func BindTexture(target Enum, t Texture) {\n\tgl.BindTexture(uint32(target), t.Value)\n}", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n ret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access))\n return (unsafe.Pointer)(ret)\n}", "func BindRenderbuffer(target Enum, rb Renderbuffer) {\n\tgl.BindRenderbuffer(uint32(target), rb.Value)\n}", "func (self *TileSprite) CanvasBuffer() *PIXICanvasBuffer{\n return &PIXICanvasBuffer{self.Object.Get(\"canvasBuffer\")}\n}", "func TextureView(texture uint32, target uint32, origtexture uint32, internalformat uint32, minlevel uint32, numlevels uint32, minlayer uint32, numlayers uint32) {\n C.glowTextureView(gpTextureView, (C.GLuint)(texture), (C.GLenum)(target), (C.GLuint)(origtexture), (C.GLenum)(internalformat), (C.GLuint)(minlevel), (C.GLuint)(numlevels), (C.GLuint)(minlayer), (C.GLuint)(numlayers))\n}", "func (c *Context) BindTexture(texture *Texture) {\n\tif texture == nil {\n\t\treturn\n\t}\n\tif c.currentTexture == nil || texture.id != c.currentTexture.id {\n\t\tgl.BindTexture(gl.TEXTURE_2D, texture.id)\n\t\tc.currentTexture = texture\n\t}\n}", "func InvalidateSubFramebuffer(target uint32, numAttachments int32, attachments *uint32, x int32, y int32, width int32, height int32) {\n C.glowInvalidateSubFramebuffer(gpInvalidateSubFramebuffer, (C.GLenum)(target), (C.GLsizei)(numAttachments), (*C.GLenum)(unsafe.Pointer(attachments)), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func NewAttached(buffer []byte) *Buffer {\n result := NewEmptyBuffer()\n result.Attach(buffer)\n return result\n}" ]
[ "0.6999422", "0.69956523", "0.6836164", "0.67319816", "0.672857", "0.66928315", "0.66231644", "0.66231644", "0.65470356", "0.64222467", "0.63398826", "0.6331119", "0.63202375", "0.63202375", "0.6300761", "0.6292015", "0.62779385", "0.6229411", "0.62155825", "0.62018794", "0.6200421", "0.6195661", "0.6195661", "0.6136177", "0.61348253", "0.6133163", "0.61295", "0.6062783", "0.60611814", "0.6013428", "0.60019934", "0.5995808", "0.59697187", "0.5952906", "0.5948822", "0.5937816", "0.5929175", "0.5922639", "0.59209716", "0.59175587", "0.59087235", "0.59087235", "0.58901155", "0.58901155", "0.58875585", "0.58829653", "0.5871772", "0.58262926", "0.5824787", "0.58080596", "0.5804741", "0.5804017", "0.5804017", "0.57962114", "0.57962114", "0.57923746", "0.57923746", "0.5785434", "0.5758138", "0.5758138", "0.5752276", "0.5746633", "0.57390434", "0.57390434", "0.57332075", "0.5716515", "0.57134706", "0.57134706", "0.5712827", "0.57084", "0.57052106", "0.5704372", "0.5704048", "0.56421214", "0.56263083", "0.5606586", "0.56055224", "0.5579867", "0.5578951", "0.5578951", "0.5552747", "0.5546309", "0.55338234", "0.55201226", "0.5510604", "0.5504955", "0.549304", "0.5492266", "0.54918814", "0.54845333", "0.54803646", "0.5472297", "0.5464139", "0.54622066", "0.5462189", "0.5456751", "0.5441153", "0.54373735", "0.54322964" ]
0.6643474
7
define front and backfacing polygons
func FrontFace(mode uint32) { C.glowFrontFace(gpFrontFace, (C.GLenum)(mode)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (el *Fill) Polygon() {}", "func (p plane) splitPolygon(poly polygon, coplanarFront, coplanarBack, front, back *[]polygon) {\n\tconst (\n\t\tcoplanarType = 0\n\t\tfrontType = 1\n\t\tbackType = 2\n\t\tspanningType = 3\n\t)\n\tpolygonType := 0\n\tvar types []int\n\tfor _, v := range poly.vertices {\n\t\tt := p.normal.dot(v.pos) - p.w\n\t\tvar pType int\n\t\tif t < -planeEpsilon {\n\t\t\tpType = backType\n\t\t} else {\n\t\t\tif t > planeEpsilon {\n\t\t\t\tpType = frontType\n\t\t\t} else {\n\t\t\t\tpType = coplanarType\n\t\t\t}\n\t\t}\n\t\tpolygonType |= pType\n\t\ttypes = append(types, pType)\n\t}\n\tswitch polygonType {\n\tcase coplanarType:\n\t\tif p.normal.dot(poly.plane.normal) > 0 {\n\t\t\t*coplanarFront = append(*coplanarFront, poly)\n\t\t} else {\n\t\t\t*coplanarBack = append(*coplanarBack, poly)\n\t\t}\n\tcase frontType:\n\t\t*front = append(*front, poly)\n\tcase backType:\n\t\t*back = append(*back, poly)\n\tcase spanningType:\n\t\tvar f, b []vertex\n\t\tfor i, vi := range poly.vertices {\n\t\t\tj := (i + 1) % len(poly.vertices) // next vertex of polygon (wraps over)\n\t\t\tti := types[i]\n\t\t\ttj := types[j]\n\t\t\tvj := poly.vertices[j]\n\t\t\tif ti != backType {\n\t\t\t\tf = append(f, vi)\n\t\t\t}\n\t\t\tif ti != frontType {\n\t\t\t\tb = append(b, vi)\n\t\t\t}\n\t\t\tif (ti | tj) == spanningType {\n\t\t\t\tt := (p.w - p.normal.dot(vi.pos)) / p.normal.dot(vj.pos.minus(vi.pos))\n\t\t\t\tv := vi.interpolated(vj, t)\n\t\t\t\tf = append(f, v)\n\t\t\t\tb = append(b, v)\n\t\t\t}\n\t\t}\n\t\tif len(f) >= 3 {\n\t\t\t*front = append(*front, newPolygon(f, poly.shared))\n\t\t}\n\t\tif len(b) >= 3 {\n\t\t\t*back = append(*back, newPolygon(b, poly.shared))\n\t\t}\n\t}\n}", "func (rs *RenderSystem) TogglePolygons() {\n\trs.drawPolygon = !rs.drawPolygon\n}", "func PolygonMode(face uint32, mode uint32) {\n C.glowPolygonMode(gpPolygonMode, (C.GLenum)(face), (C.GLenum)(mode))\n}", "func (p *Polygon) Reverse() {\n\tp.reverse = true\n}", "func (win *window) Polygon(pt []image.Point, fill bool) {\n\tif len(pt) < 2 {\n\t\treturn\n\t}\n\tpts := make([]xgb.Point, len(pt))\n\tfor i, p := range pt {\n\t\tpts[i].X, pts[i].Y = int16(p.X), int16(p.Y)\n\t}\n\tif !fill {\n\t\tif !pt[0].Eq(pt[len(pt)-1]) {\n\t\t\tpts = append(pts, xgb.Point{int16(pt[0].X), int16(pt[0].Y)})\n\t\t}\n\t\txwin.PolyLine(xgb.CoordModeOrigin, win.id, win.gc, pts)\n\t\treturn\n\t}\n\txwin.FillPoly(win.id, win.gc, xgb.PolyShapeComplex, xgb.CoordModeOrigin, pts)\n}", "func (o *Grid) boundaries() {\n\tn0 := o.npts[0]\n\tn1 := o.npts[1]\n\tif o.ndim == 2 {\n\t\to.edge = make([][]int, 4) // xmin,xmax,ymin,ymax\n\t\to.edge[0] = make([]int, n1) // xmin\n\t\to.edge[1] = make([]int, n1) // xmax\n\t\to.edge[2] = make([]int, n0) // ymin\n\t\to.edge[3] = make([]int, n0) // ymax\n\t\tfor n := 0; n < n1; n++ {\n\t\t\to.edge[0][n] = n * n0 // xmin\n\t\t\to.edge[1][n] = n*n0 + n0 - 1 // xmax\n\t\t}\n\t\tfor m := 0; m < n0; m++ {\n\t\t\to.edge[2][m] = m // ymin\n\t\t\to.edge[3][m] = m + n0*(n1-1) // ymax\n\t\t}\n\t\treturn\n\t}\n\tn2 := o.npts[2]\n\to.face = make([][]int, 6) // xmin,xmax,ymin,ymax,zmin,zmax\n\to.face[0] = make([]int, n1*n2) // xmin\n\to.face[1] = make([]int, n1*n2) // xmax\n\to.face[2] = make([]int, n0*n2) // ymin\n\to.face[3] = make([]int, n0*n2) // ymax\n\to.face[4] = make([]int, n0*n1) // zmin\n\to.face[5] = make([]int, n0*n1) // zmax\n\tt := 0\n\tfor p := 0; p < n2; p++ { // loop over z\n\t\tfor n := 0; n < n1; n++ { // loop over y\n\t\t\to.face[0][t] = n*n0 + (n0*n1)*p // xmin\n\t\t\to.face[1][t] = n*n0 + (n0*n1)*p + (n0 - 1) // xmax\n\t\t\tt++\n\t\t}\n\t}\n\tt = 0\n\tfor p := 0; p < n2; p++ { // loop over z\n\t\tfor m := 0; m < n0; m++ { // loop over x\n\t\t\to.face[2][t] = m + (n0*n1)*p // ymin\n\t\t\to.face[3][t] = m + (n0*n1)*p + n0*(n1-1) // ymax\n\t\t\tt++\n\t\t}\n\t}\n\tt = 0\n\tfor n := 0; n < n1; n++ { // loop over y\n\t\tfor m := 0; m < n0; m++ { // loop over x\n\t\t\to.face[4][t] = m + n0*n // zmin\n\t\t\to.face[5][t] = m + n0*n + (n0*n1)*(n2-1) // zmax\n\t\t\tt++\n\t\t}\n\t}\n}", "func (dw *DrawingWand) Polygon(coordinates []PointInfo) {\n\tccoordinates := [1 << 16]C.PointInfo{}\n\tfor k, v := range coordinates {\n\t\tccoordinates[k] = C.PointInfo{C.double(v.X), C.double(v.Y)}\n\t}\n\tC.MagickDrawPolygon(dw.dw, C.ulong(len(coordinates)), (*C.PointInfo)(&ccoordinates[0]))\n}", "func PolygonMode(face uint32, mode uint32) {\n\tsyscall.Syscall(gpPolygonMode, 2, uintptr(face), uintptr(mode), 0)\n}", "func (p *PDF) Polygon(pts []gofpdf.PointType, opts ...PDFOption) {\n\n\tfor _, opt := range opts {\n\t\topt(p.fpdf)\n\t}\n\tp.fpdf.Polygon(pts, \"F\")\n}", "func (el *Fill) Polyline() {}", "func Polygon(children ...Element) *CompoundElement { return newCE(\"Polygon\", children) }", "func CreatePolygon(polygon [][][]float64, minp, maxp int) *Poly {\n\twest, south, east, north := 180.0, 90.0, -180.0, -90.0\n\tmaxpmap := map[string]string{}\n\tfor _, cont := range polygon {\n\t\tfor _, pt := range cont {\n\t\t\tx, y := pt[0], pt[1]\n\t\t\t// can only be one condition\n\t\t\t// using else if reduces one comparison\n\t\t\tif x < west {\n\t\t\t\twest = x\n\t\t\t} else if x > east {\n\t\t\t\teast = x\n\t\t\t}\n\n\t\t\tif y < south {\n\t\t\t\tsouth = y\n\t\t\t} else if y > north {\n\t\t\t\tnorth = y\n\t\t\t}\n\t\t\tghash := Geohash(pt, maxp)\n\t\t\tmaxpmap[ghash] = \"\"\n\t\t}\n\t}\n\n\t// logic for creating the smaller maps of each geohash\n\tcurrentmap := maxpmap\n\ttotalmap := map[int]map[string]string{}\n\ttotalmap[maxp] = maxpmap\n\tfor i := maxp - 1; i >= minp; i-- {\n\t\tnewmap := map[string]string{}\n\t\tfor k := range currentmap {\n\t\t\tnewmap[k[:len(k)-1]] = \"\"\n\t\t}\n\t\ttotalmap[i] = newmap\n\t\tcurrentmap = newmap\n\t}\n\n\treturn &Poly{\n\t\tPolygon: polygon,\n\t\tExtrema: Extrema{N: north, S: south, E: east, W: west},\n\t\tMap: totalmap,\n\t\tMin: minp,\n\t\tMax: maxp,\n\t}\n}", "func (mesh *PolyMesh) init() error {\n\n\tfor _, t := range mesh.Transform.Elems {\n\t\tmesh.transformSRT = append(mesh.transformSRT, m.TransformDecompMatrix4(t))\n\t}\n\n\tmesh.initTransformBounds()\n\n\tif mesh.PolyCount != nil {\n\t\tbasei := uint32(0)\n\t\tfor k := range mesh.PolyCount {\n\t\t\ti := uint32(0)\n\t\t\tfor j := 0; j < int(mesh.PolyCount[k]-2); j++ {\n\t\t\t\ti++\n\t\t\t\tmesh.idxp = append(mesh.idxp, uint32(mesh.FaceIdx[basei]))\n\t\t\t\tmesh.idxp = append(mesh.idxp, uint32(mesh.FaceIdx[basei+i]))\n\t\t\t\tmesh.idxp = append(mesh.idxp, uint32(mesh.FaceIdx[basei+i+1]))\n\n\t\t\t\tV0 := mesh.Verts.Elems[mesh.FaceIdx[basei]]\n\t\t\t\tV1 := mesh.Verts.Elems[mesh.FaceIdx[basei+i]]\n\t\t\t\tV2 := mesh.Verts.Elems[mesh.FaceIdx[basei+i+1]]\n\n\t\t\t\tif V0 == V1 && V0 == V2 {\n\t\t\t\t\t//log.Printf(\"nil triangle: %v %v %v %v %v\\n\", mesh.NodeName, mesh.FaceIdx[basei], V0, V1, V2)\n\t\t\t\t}\n\n\t\t\t\tif mesh.UV.Elems != nil {\n\t\t\t\t\tif mesh.UVIdx != nil { // if UVIdx doesn't exist assume same as FaceIdx\n\t\t\t\t\t\tmesh.uvtriidx = append(mesh.uvtriidx, uint32(mesh.UVIdx[basei]))\n\t\t\t\t\t\tmesh.uvtriidx = append(mesh.uvtriidx, uint32(mesh.UVIdx[basei+i]))\n\t\t\t\t\t\tmesh.uvtriidx = append(mesh.uvtriidx, uint32(mesh.UVIdx[basei+i+1]))\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmesh.uvtriidx = append(mesh.uvtriidx, uint32(mesh.FaceIdx[basei]))\n\t\t\t\t\t\tmesh.uvtriidx = append(mesh.uvtriidx, uint32(mesh.FaceIdx[basei+i]))\n\t\t\t\t\t\tmesh.uvtriidx = append(mesh.uvtriidx, uint32(mesh.FaceIdx[basei+i+1]))\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif mesh.Normals.Elems != nil {\n\t\t\t\t\tif mesh.NormalIdx != nil { // if NormalIdx doesn't exist assume same as FaceIdx\n\t\t\t\t\t\tmesh.normalidx = append(mesh.normalidx, uint32(mesh.NormalIdx[basei]))\n\t\t\t\t\t\tmesh.normalidx = append(mesh.normalidx, uint32(mesh.NormalIdx[basei+i]))\n\t\t\t\t\t\tmesh.normalidx = append(mesh.normalidx, uint32(mesh.NormalIdx[basei+i+1]))\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmesh.normalidx = append(mesh.normalidx, uint32(mesh.FaceIdx[basei]))\n\t\t\t\t\t\tmesh.normalidx = append(mesh.normalidx, uint32(mesh.FaceIdx[basei+i]))\n\t\t\t\t\t\tmesh.normalidx = append(mesh.normalidx, uint32(mesh.FaceIdx[basei+i+1]))\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif mesh.ShaderIdx != nil {\n\t\t\t\t\tmesh.shaderidx = append(mesh.shaderidx, uint8(mesh.ShaderIdx[k]))\n\t\t\t\t}\n\t\t\t}\n\t\t\tbasei += uint32(mesh.PolyCount[k])\n\t\t}\n\n\t} else {\n\t\t// Assume already a triangle mesh\n\t\tif mesh.FaceIdx != nil {\n\t\t\tfor j := range mesh.FaceIdx {\n\t\t\t\tmesh.idxp = append(mesh.idxp, uint32(mesh.FaceIdx[j]))\n\n\t\t\t\tif mesh.UV.Elems != nil {\n\t\t\t\t\tif mesh.UVIdx != nil {\n\t\t\t\t\t\tmesh.uvtriidx = append(mesh.uvtriidx, uint32(mesh.UVIdx[j]))\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmesh.uvtriidx = append(mesh.uvtriidx, uint32(mesh.FaceIdx[j]))\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif mesh.Normals.Elems != nil {\n\t\t\t\t\tif mesh.NormalIdx != nil {\n\t\t\t\t\t\tmesh.normalidx = append(mesh.normalidx, uint32(mesh.NormalIdx[j]))\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmesh.normalidx = append(mesh.normalidx, uint32(mesh.FaceIdx[j]))\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t} else {\n\t\t\t// No indexes so assume the vertex array is simply the triangle verts\n\t\t\tfor j := 0; j < mesh.Verts.ElemsPerKey; j++ {\n\t\t\t\tmesh.idxp = append(mesh.idxp, uint32(j))\n\n\t\t\t\tif mesh.UV.Elems != nil {\n\t\t\t\t\tif mesh.UVIdx != nil {\n\t\t\t\t\t\tmesh.uvtriidx = append(mesh.uvtriidx, uint32(mesh.UVIdx[j]))\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmesh.uvtriidx = append(mesh.uvtriidx, uint32(j))\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif mesh.Normals.Elems != nil {\n\t\t\t\t\tif mesh.NormalIdx != nil {\n\t\t\t\t\t\tmesh.normalidx = append(mesh.normalidx, uint32(mesh.NormalIdx[j]))\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmesh.normalidx = append(mesh.normalidx, uint32(j))\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tfor _, idx := range mesh.ShaderIdx {\n\t\t\tmesh.shaderidx = append(mesh.shaderidx, uint8(idx))\n\t\t}\n\n\t}\n\n\tmesh.FaceIdx = nil\n\tmesh.PolyCount = nil\n\tmesh.UVIdx = nil\n\tmesh.NormalIdx = nil\n\tmesh.ShaderIdx = nil\n\n\treturn nil\n}", "func ExampleFacettedPolygon() {\n\tf := FacettedNib{LineNib: LineNib{unitX, unitY}}\n\tPrintGraph(f.Polygon([][2]x{{0, 0}, {5 * unitX, 5 * unitX}, {5 * unitX, -5 * unitX}}...), -10*unitX, 10*unitX, -10*unitX, 10*unitX, unitX)\n\t// Output:\n\t/*\n\t\tGraph\n\t\t -10\t---------------------\n\t\t -9\t---------------------\n\t\t -8\t---------------------\n\t\t -7\t---------------------\n\t\t -6\t---------------------\n\t\t -5\t---------------X-----\n\t\t -4\t--------------XX-----\n\t\t -3\t-------------X-X-----\n\t\t -2\t------------X--X-----\n\t\t -1\t-----------X---X-----\n\t\t 0\t----------X----X-----\n\t\t 1\t-----------X---X-----\n\t\t 2\t------------X--X-----\n\t\t 3\t-------------X-X-----\n\t\t 4\t--------------XX-----\n\t\t 5\t---------------X-----\n\t\t 6\t---------------------\n\t\t 7\t---------------------\n\t\t 8\t---------------------\n\t\t 9\t---------------------\n\t\t 10\t---------------------\n\t*/\n}", "func (debugging *debuggingOpenGL) PolygonMode(face uint32, mode uint32) {\n\tdebugging.recordEntry(\"PolygonMode\", face, mode)\n\tdebugging.gl.PolygonMode(face, mode)\n\tdebugging.recordExit(\"PolygonMode\")\n}", "func PolygonMode(face uint32, mode uint32) {\n\tC.glowPolygonMode(gpPolygonMode, (C.GLenum)(face), (C.GLenum)(mode))\n}", "func PolygonMode(face uint32, mode uint32) {\n\tC.glowPolygonMode(gpPolygonMode, (C.GLenum)(face), (C.GLenum)(mode))\n}", "func (native *OpenGL) PolygonMode(face uint32, mode uint32) {\n\tgl.PolygonMode(face, mode)\n}", "func (w *Way) Polygon() bool {\n\tif len(w.Nodes) <= 3 {\n\t\t// need more than 3 nodes to be a polygon since first/last is repeated.\n\t\treturn false\n\t}\n\n\tif w.Nodes[0].ID != w.Nodes[len(w.Nodes)-1].ID {\n\t\t// must be closed\n\t\treturn false\n\t}\n\n\tif area := w.Tags.Find(\"area\"); area == \"no\" {\n\t\treturn false\n\t} else if area != \"\" {\n\t\treturn true\n\t}\n\n\tfor _, c := range polyConditions {\n\t\tv := w.Tags.Find(c.Key)\n\t\tif v == \"\" || v == \"no\" {\n\t\t\tcontinue\n\t\t}\n\n\t\tif c.Condition == conditionAll {\n\t\t\treturn true\n\t\t} else if c.Condition == conditionWhitelist {\n\t\t\tindex := sort.SearchStrings(c.Values, v)\n\t\t\tif index != len(c.Values) && c.Values[index] == v {\n\t\t\t\treturn true\n\t\t\t}\n\t\t} else if c.Condition == conditionBlacklist {\n\t\t\tindex := sort.SearchStrings(c.Values, v)\n\t\t\tif index == len(c.Values) || c.Values[index] != v {\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\t}\n\n\treturn false\n}", "func fillPolygon(c vg.Canvas, clr color.Color, pts []vg.Point) {\n\tif len(pts) == 0 {\n\t\treturn\n\t}\n\n\tc.SetColor(clr)\n\tp := make(vg.Path, 0, len(pts)+1)\n\tp.Move(pts[0])\n\tfor _, pt := range pts[1:] {\n\t\tp.Line(pt)\n\t}\n\tp.Close()\n\tc.Fill(p)\n}", "func (mp MultiPolygon) Polygons() []Polygon {\n\treturn mp\n}", "func make_plane(tWidth, tHeight uint32, vertices []float32, indices []uint32) {\n\t// width and height are the number of triangles across and down\n\t// plus one for the vertices to define them\n\ttWidth++\n\ttHeight++\n\n\tvar makeIsland = true\n\tvar heightMap = make([]float32, tWidth*tHeight)\n\tmake_height_map(tWidth, tHeight, heightMap, makeIsland)\n\tvar x, y uint32\n\tvar scale float32\n\tscale = 2.0 / float32(plane_rows)\n\thScale := scale * 2\n\t//var fbTexScale = float32(cols / width)\n\tvar fbTexScale = float32(1.0)\n\t// Set up vertices\n\tfor y = 0; y < tHeight; y++ {\n\t\tbase := y * tWidth\n\t\tfor x = 0; x < tWidth; x++ {\n\t\t\tindex := base + x\n\t\t\t// Position\n\t\t\tvertices[(8 * index)] = float32(x)*scale - 1.0\n\t\t\tvertices[(8*index)+1] = float32(y)*scale - 1.0\n\t\t\tvertices[(8*index)+2] = heightMap[index] * hScale\n\t\t\t// Colours\n\t\t\tvertices[(8*index)+3] = float32(1.0)\n\t\t\tvertices[(8*index)+4] = float32(1.0)\n\t\t\tvertices[(8*index)+5] = float32(1.0)\n\t\t\t// Texture\n\t\t\tvertices[(8*index)+6] = fbTexScale * float32(x) / float32(tWidth-1)\n\t\t\tvertices[(8*index)+7] = fbTexScale * float32(y) / float32(tHeight-1)\n\t\t\t/*fmt.Printf(\"%d: Ver ( %.2f, %.2f, %.2f ) / Col ( %.2f %.2f %.2f ) / Text ( %.2f, %.2f )\\n\",\n\t\t\tindex, vertices[(8*index)+0], vertices[(8*index)+1], vertices[(8*index)+2],\n\t\t\tvertices[(8*index)+3], vertices[(8*index)+4], vertices[(8*index)+5],\n\t\t\tvertices[(8*index)+6], vertices[(8*index)+7])*/\n\t\t}\n\t}\n\n\t// Set up indices\n\ti := 0\n\ttHeight--\n\tfor y = 0; y < tHeight; y++ {\n\t\tbase := y * tWidth\n\n\t\t//indices[i++] = (uint16)base;\n\t\tfor x = 0; x < tWidth; x++ {\n\t\t\tindices[i] = (uint32)(base + x)\n\t\t\ti += 1\n\t\t\tindices[i] = (uint32)(base + tWidth + x)\n\t\t\ti += 1\n\t\t}\n\t\t// add a degenerate triangle (except in a last row)\n\t\tif y < tHeight-1 {\n\t\t\tindices[i] = (uint32)((y+1)*tWidth + (tWidth - 1))\n\t\t\ti += 1\n\t\t\tindices[i] = (uint32)((y + 1) * tWidth)\n\t\t\ti += 1\n\t\t}\n\t}\n\n\t/*var ind int\n\tfor ind = 0; ind < i; ind++ {\n\t\tfmt.Printf(\"%d \", indices[ind])\n\t}\n\tfmt.Printf(\"\\nIn total %d indices\\n\", ind)*/\n}", "func (w *SVGWriter) Polygon(p *Polygon) {\n\tw.PolygonWithClass(p, \"\")\n}", "func (c *container) Polygon(pts ...Point) *Polygon {\n\tp := &Polygon{Points: pts}\n\tc.contents = append(c.contents, p)\n\n\treturn p\n}", "func (outer outer) Shape() []pos.Rel {\r\n\tl := make([]pos.Rel, 2*(outer.Xlen+outer.Ylen))\r\n\tfor i := 0; i < outer.Xlen; i++ {\r\n\t\tl[i] = pos.Rel{Z: i, W: -1}\r\n\t\tl[outer.Xlen+i] = pos.Rel{Z: i, W: outer.Ylen}\r\n\t}\r\n\tfor j := 0; j < outer.Ylen; j++ {\r\n\t\tl[2*outer.Xlen+j] = pos.Rel{Z: -1, W: j}\r\n\t\tl[2*outer.Xlen+outer.Ylen+j] = pos.Rel{Z: outer.Xlen, W: j}\r\n\t}\r\n\treturn l\r\n}", "func (self *Graphics) DrawPolygon(path interface{}) *Graphics{\n return &Graphics{self.Object.Call(\"drawPolygon\", path)}\n}", "func (e *Ellipsoid) PolygonInit(polyline bool) Polygon {\n\tvar p Polygon\n\tif polyline {\n\t\tC.geod_polygon_init(&p.p, 1)\n\t} else {\n\t\tC.geod_polygon_init(&p.p, 0)\n\t}\n\tp.e = e\n\treturn p\n}", "func (T triangle) rasterize( C canvas) {\n\tmask:=make([][]bool,C.yres,C.yres)\n\tfor i := 0; i < C.yres; i++ {\n\t\tmaskpre:=make([]bool,C.xres,C.xres )\n\t\tmask[i]=maskpre\n\t}\n\tp0:=[2]float64{T.p0.x/T.p0.z*C.res,T.p0.y/T.p0.z*C.res}\n\tp1:=[2]float64{T.p1.x/T.p1.z*C.res,T.p1.y/T.p1.z*C.res}\n\tp2:=[2]float64{T.p2.x/T.p2.z*C.res,T.p2.y/T.p2.z*C.res}\n\tedges:=[3][2][2]float64{[2][2]float64{p0,p1},[2][2]float64{p1,p2},[2][2]float64{p2,p0}}\n\n\tminy,maxy:=2147483647,0\n\tfor _,edge := range edges {\n\t\tif edge[0][1]>edge[1][1] {\n\t\t\tedge[0],edge[1]=edge[1],edge[0]\n\t\t}\n\t\ty0:=int( edge[0][1]-0.5)-C.y0\n\t\ty1:=int( edge[1][1]-0.5)-C.y0\n\t\tif y0 < 0 {\n\t\t\ty0=0\n\t\t} else if y0 >= C.yres {\n\t\t\ty0=C.yres-1\n\t\t}\n\t\tif y1 <0 {\n\t\t\ty1=0\n\t\t} else if y1 >= C.yres {\n\t\t\ty1=C.yres-1\n\t\t}\n\t\tif y0<miny {\n\t\t\tminy=y0\n\t\t}\n\t\tif y1>maxy {\n\t\t\tmaxy=y1\n\t\t}\n\t\tfor i := y0; i <= y1; i++ {\n\t\t\tfloati:=float64(i+C.y0)+0.5\n\t \t\tslopeinv:= (edge[0][0]-edge[1][0])/(edge[0][1]-edge[1][1])\n\t\t\tcrosx:=edge[0][0]+slopeinv*(floati-edge[0][1])\n\t\t\txindex:=int(crosx+0.5)-C.x0\n\t\t\tif xindex<C.xres {\n\t\t\t\tif xindex>=0 {\n\t\t\t\t\tmask[i][xindex]= !mask[i][xindex]\n\t\t\t\t} else{\n\t\t\t\t\tmask[i][0]= !mask[i][0]\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor i :=miny ; i < maxy ; i++ {\n\t\tinside:=false\n\t\tfor j := 0; j < C.xres; j++ {\n\t\t\tif mask[i][j]{\n\t\t\t\tinside= !inside\n\t\t\t\tif !inside{\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\tif inside {\n\t\t\t\tz:=T.p0dotn/T.n.dot(vec3{float64(j+C.x0)/C.res,float64(i+C.y0)/C.res,1.})\n\t\t\t\tif z<C.z[i][j] {\n\t\t\t\t\tC.z[i][j]=z\n\t\t\t\t\tC.pic[i][j]=T.color\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "func Decode_Polygon(geom []uint32) [][][][]int {\n\tpos := 0\n\tcurrentpt := []int{0, 0}\n\tnewline := [][]int{}\n\tpolygons := [][][][]int{}\n\tfor pos < len(geom) {\n\t\tgeomval := geom[pos]\n\n\t\tcmd, length := Get_Command_Length(geomval)\n\n\t\t// conde for a move to cmd\n\t\tif cmd == 1 {\n\t\t\txdelta := DecodeDelta(geom[pos+1])\n\t\t\tydelta := DecodeDelta(geom[pos+2])\n\t\t\tcurrentpt = []int{currentpt[0] + xdelta, currentpt[1] + ydelta}\n\t\t\t//fmt.Println(firstpt)\n\t\t\tpos += 2\n\n\t\t} else if cmd == 2 {\n\t\t\tnewline = [][]int{currentpt}\n\t\t\tcurrentpos := pos + 1\n\t\t\tendpos := currentpos + int(length*2)\n\t\t\tfor currentpos < endpos {\n\t\t\t\txdelta := DecodeDelta(geom[currentpos])\n\t\t\t\tydelta := DecodeDelta(geom[currentpos+1])\n\t\t\t\tcurrentpt = []int{currentpt[0] + xdelta, currentpt[1] + ydelta}\n\t\t\t\tnewline = append(newline, currentpt)\n\t\t\t\tcurrentpos += 2\n\t\t\t}\n\n\t\t\tpos = currentpos - 1\n\n\t\t} else if cmd == 7 {\n\t\t\t//newline = append(newline,newline[0])\n\t\t\tif Exterior_Ring(newline) == false {\n\t\t\t\tpolygons = append(polygons, [][][]int{newline})\n\t\t\t\tnewline = [][]int{}\n\t\t\t} else {\n\t\t\t\tif len(polygons) == 0 {\n\t\t\t\t\tpolygons = append(polygons, [][][]int{newline})\n\n\t\t\t\t} else {\n\t\t\t\t\tpolygons[len(polygons)-1] = append(polygons[len(polygons)-1], newline)\n\n\t\t\t\t}\n\t\t\t\tnewline = [][]int{}\n\t\t\t}\n\n\t\t}\n\n\t\t//fmt.Println(cmd,length)\n\t\tpos += 1\n\t}\n\n\treturn polygons\n}", "func splitPolygon(a, b *node) *node {\n\ta2 := newNode(a.i, a.x, a.y)\n\tb2 := newNode(b.i, b.x, b.y)\n\tan := a.next\n\tbp := b.prev\n\n\ta.next = b\n\tb.prev = a\n\n\ta2.next = an\n\tan.prev = a2\n\n\tb2.next = a2\n\ta2.prev = b2\n\n\tbp.next = b2\n\tb2.prev = bp\n\n\treturn b2\n}", "func (pp *privPath) bestpolygon() {\n\t//int i, j, m, k;\n\tn := len(pp.Pt)\n\tvar (\n\t\tpen = make([]float64, n+1) // penalty vector\n\t\tprev = make([]int, n+1) // best path pointer vector\n\t\tclip0 = make([]int, n) // longest segment pointer, non-cyclic\n\t\tclip1 = make([]int, n+1) // backwards segment pointer, non-cyclic\n\t\tseg0 = make([]int, n+1) // forward segment bounds, m<=n\n\t\tseg1 = make([]int, n+1) // backward segment bounds, m<=n\n\t\tthispen float64\n\t\tbest float64\n\t\tc int\n\t)\n\n\t// calculate clipped paths\n\tfor i := 0; i < n; i++ {\n\t\tc = mod(pp.Lon[mod(i-1, n)]-1, n)\n\t\tif c == i {\n\t\t\tc = mod(i+1, n)\n\t\t}\n\t\tif c < i {\n\t\t\tclip0[i] = n\n\t\t} else {\n\t\t\tclip0[i] = c\n\t\t}\n\t}\n\n\t// calculate backwards path clipping, non-cyclic. j <= clip0[i] iff clip1[j] <= i, for i,j=0..n.\n\tj := 1\n\tfor i := 0; i < n; i++ {\n\t\tfor j <= clip0[i] {\n\t\t\tclip1[j] = i\n\t\t\tj++\n\t\t}\n\t}\n\n\t// calculate seg0[j] = longest path from 0 with j segments\n\ti := 0\n\tfor j = 0; i < n; j++ {\n\t\tseg0[j] = i\n\t\ti = clip0[i]\n\t}\n\tseg0[j] = n\n\tm := j\n\n\t// calculate seg1[j] = longest path to n with m-j segments\n\ti = n\n\tfor j = m; j > 0; j-- {\n\t\tseg1[j] = i\n\t\ti = clip1[i]\n\t}\n\tseg1[0] = 0\n\n\t// now find the shortest path with m segments, based on penalty3\n\t// note: the outer 2 loops jointly have at most n iterations, thus\n\t// the worst-case behavior here is quadratic. In practice, it is\n\t// close to linear since the inner loop tends to be short.\n\tpen[0] = 0\n\tfor j = 1; j <= m; j++ {\n\t\tfor i = seg1[j]; i <= seg0[j]; i++ {\n\t\t\tbest = -1\n\t\t\tfor k := seg0[j-1]; k >= clip1[i]; k-- {\n\t\t\t\tthispen = penalty3(pp, k, i) + pen[k]\n\t\t\t\tif best < 0 || thispen < best {\n\t\t\t\t\tprev[i] = k\n\t\t\t\t\tbest = thispen\n\t\t\t\t}\n\t\t\t}\n\t\t\tpen[i] = best\n\t\t}\n\t}\n\n\tpp.Po = make([]int, m)\n\n\t// read off shortest path\n\tfor i, j = n, m-1; i > 0; j-- {\n\t\ti = prev[i]\n\t\tpp.Po[j] = i\n\t}\n}", "func (shape *Shape) PolyShapeSetVerts(verts []Vect, transform Transform) {\n\tC.cpPolyShapeSetVerts(\n\t\t(*C.cpShape)(unsafe.Pointer(shape)),\n\t\tC.int(len(verts)),\n\t\t(*C.cpVect)(unsafe.Pointer(&verts[0])),\n\t\ttransform.c(),\n\t)\n}", "func NewPolygon(points ...Point) Polygon {\n\tvar poly Polygon\n\tfor _, p := range points {\n\t\tpoly.corners = append(poly.corners, p)\n\t}\n\treturn poly\n}", "func Make_Layer_Rect_Xmap(tile m.TileID, finds []l.Polygon) Tile_Xmap {\n\tnewlist := []l.Polygon{}\n\n\t// getting rectangle\n\tfirst := l.Polygon{Polygon: Make_Tile_Poly(tile)}\n\t//first.Polygon.Add(val)\n\tval := first.Polygon[0]\n\tval = pc.Contour{val[0], val[1], val[2], val[3], val[2], val[1], val[0]}\n\tfirst.Polygon.Add(val)\n\t// iterating through each found area\n\tfor _, i := range finds {\n\t\ti.Polygon.Add(val)\n\t\t//if IsReachable(first, i, \"INTERSECTION\") == true {\n\t\tresult := first.Polygon.Construct(pc.INTERSECTION, i.Polygon)\n\t\t//}\n\n\t\t// adding the the result to newlist if possible\n\t\tif len(result) != 0 {\n\t\t\tamap := map[string]string{}\n\t\t\tamap[i.Layer] = i.Area\n\t\t\tamap[\"tile\"] = m.Tilestr(tile)\n\n\t\t\t//fmt.Print(amap, \"\\n\")\n\t\t\ti.Polygon = result\n\t\t\ti.Layers = amap\n\t\t\tnewlist = append(newlist, i)\n\t\t} else {\n\t\t\t//\tfmt.Print(\"here\\n\", first.Polystring, \"\\n\", i.Polystring, \"\\n\")\n\t\t\t//fmt.Print(\"here\\n\")\n\t\t}\n\n\t}\n\t// linting the output polygons\n\tstringlist := Lint_Layer_Polygons(newlist)\n\n\t// iterating through each value in newlist\n\txmaptotal := map[string][]Yrow{}\n\tfor _, i := range stringlist {\n\t\txmap := Make_Xmap_Total(get_coords_json(i[1]), i[0], tile)\n\t\tfor k, v := range xmap {\n\t\t\txmaptotal[k] = append(xmaptotal[k], v...)\n\t\t}\n\t}\n\tvalbool := false\n\n\tif valbool == true {\n\t\tstringlist2 := []string{\"LONG,LAT,AREA\"}\n\t\tfor k, v := range xmaptotal {\n\t\t\tx := Get_Middle(k)[0]\n\t\t\tfor _, vv := range v {\n\t\t\t\tarea := strings.Replace(vv.Area, \",\", \"\", -1)\n\t\t\t\tstringlist2 = append(stringlist2, fmt.Sprintf(\"%f,%f,%s\", x, vv.Range[0], area))\n\t\t\t\tstringlist2 = append(stringlist2, fmt.Sprintf(\"%f,%f,%s\", x, vv.Range[1], area))\n\t\t\t}\n\n\t\t}\n\t\t//fmt.Print(xmap, \"\\n\")\n\t\tbds := m.Bounds(tile)\n\t\tcount := 0\n\t\tlatconst := bds.N\n\n\t\tfor count < 100000 {\n\t\t\tcount += 1\n\t\t\tpt := RandomPt(bds)\n\t\t\tareat := strings.Replace(Pip_Simple(pt, xmaptotal, latconst), \",\", \"\", -1)\n\t\t\tfmt.Print(areat)\n\t\t\tif areat != \"\" {\n\t\t\t\tfmt.Print(\"Here\\n\")\n\t\t\t\tstringlist2 = append(stringlist2, fmt.Sprintf(\"%f,%f,%s\", pt[0], pt[1], areat))\n\t\t\t}\n\t\t}\n\n\t\ta := strings.Join(stringlist2, \"\\n\")\n\t\tff, _ := os.Create(\"d.csv\")\n\t\tff.WriteString(a)\n\t\tfmt.Print(a, \"\\n\")\n\t}\n\t//ff, _ := os.Create(\"d.csv\")\n\t//ff.WriteString(a)\n\treturn Tile_Xmap{Tile: tile, Xmap: xmaptotal}\n}", "func (b *Blueprint) MultiPolygonZ(column string) *ColumnDefinition {\n\treturn b.addColumn(\"multipolygonz\", column, nil)\n}", "func (geom Geometry) Polygonize() Geometry {\n\tnewGeom := C.OGR_G_Polygonize(geom.cval)\n\treturn Geometry{newGeom}\n}", "func (s *VisvalingamSimplifier) Polygon(p orb.Polygon) orb.Polygon {\n\treturn polygon(s, p)\n}", "func NewPoly(prefix, name string, fields map[string]interface{}, tags map[string]string) *Poly {\n\tp := &Poly{\n\t\tPrefix: prefix,\n\t\tName: name,\n\t\tFields: make(map[string]interface{}),\n\t\tTags: make(map[string]string),\n\t}\n\tp.AddTags(tags)\n\tp.AddFields(fields)\n\treturn p\n}", "func (g *Circle) Polygon() Object {\n\treturn g.getObject()\n}", "func (r *Relation) Polygon() bool {\n\tt := r.Tags.Find(\"type\")\n\treturn t == \"multipolygon\" || t == \"boundary\"\n}", "func PolyStyle(children ...Element) *CompoundElement { return newCE(\"PolyStyle\", children) }", "func (this *Poly) setArea(a int) {\n\tthis.areaAndtype = (this.areaAndtype & 0xc0) | (a & 0x3f)\n}", "func (self *Graphics) DrawPolygonI(args ...interface{}) *Graphics{\n return &Graphics{self.Object.Call(\"drawPolygon\", args)}\n}", "func (w *Walker) MultiPolygon(ctx context.Context) (mplyg geom.MultiPolygon) {\n\tif w == nil {\n\t\tif debug {\n\t\t\tlog.Printf(\"walker is nil.\")\n\t\t}\n\t\treturn mplyg\n\t}\n\tif w.edgeMap == nil {\n\t\tw.edgeMap = edgeMapFromTriangles(w.Triangles...)\n\t}\n\tseen := make(map[int]bool, len(w.Triangles))\n\tfor i := range w.Triangles {\n\t\tif ctx.Err() != nil {\n\t\t\treturn nil\n\t\t}\n\t\tif seen[i] {\n\t\t\tcontinue\n\t\t}\n\t\tseen[i] = true\n\t\tplyg := w.PolygonForTriangle(ctx, i, seen)\n\t\tif debug {\n\t\t\tlog.Printf(\" %v : got the following plyg\\n%v\\n\", i, wkt.MustEncode(geom.Polygon(plyg)))\n\t\t}\n\t\tif len(plyg) > 0 {\n\t\t\tmplyg = append(mplyg, plyg)\n\t\t}\n\t}\n\treturn geom.MultiPolygon(mplyg)\n}", "func (b *Blueprint) MultiPolygon(column string) *ColumnDefinition {\n\treturn b.addColumn(\"multipolygon\", column, nil)\n}", "func Poly(p *sdf.Polygon, path string) error {\n\n\tvlist := p.Vertices()\n\tif vlist == nil {\n\t\treturn errors.New(\"no vertices\")\n\t}\n\n\tfmt.Printf(\"rendering %s\\n\", path)\n\td := NewDXF(path)\n\n\tfor i := 0; i < len(vlist)-1; i++ {\n\t\tp0 := vlist[i]\n\t\tp1 := vlist[i+1]\n\t\td.Line(p0, p1)\n\t}\n\n\tif p.Closed() {\n\t\tp0 := vlist[len(vlist)-1]\n\t\tp1 := vlist[0]\n\t\tif !p0.Equals(p1, tolerance) {\n\t\t\td.Line(p0, p1)\n\t\t}\n\t}\n\n\treturn d.Save()\n}", "func (s *WeatherData) listAllPolygons(APIstub shim.ChaincodeStubInterface) sc.Response {\n\tfmt.Println(\"============= START : Fetching all polygons =============\")\n\tvar datasource = \"URL\" // Setting the Oraclize datasource\n\tvar query = \"json(http://api.agromonitoring.com/agro/1.0/polygons?appid=\" + API_KEY + \")\" // Setting the query\n\tresult, proof := oraclizeapi.OraclizeQuery_sync(APIstub, datasource, query, oraclizeapi.TLSNOTARY)\n\tfmt.Printf(\"proof: %s\", proof)\n\tfmt.Printf(\"\\nresult: %s\\n\", result)\n\tvar response = {\n\t\t\"result\": result,\n\t\t\"proof\": proof\n\t}", "func (t *Table) Polygon(colNm string) *Table {\n\tt.columns = append(t.columns, &column{Name: colNm, ColumnType: TypePolygon})\n\treturn t\n}", "func FrontFace(mode Enum) {\n\tgl.FrontFace(uint32(mode))\n}", "func (p *Polygon) Clear() {\n\tC.geod_polygon_clear(&p.p)\n}", "func GenerateShapes() {\r\n\t// Square\r\n\tShapes[0].vertices = []gl.GLfloat{-1, -1, 1, -1, -1, 1, 1, 1}\r\n\tShapes[0].elements = []gl.GLushort{0, 1, 2, 2, 3, 1}\r\n\r\n\t// ___|\r\n\tShapes[1].vertices = []gl.GLfloat{-2, 0, -2, -1, 2, -1, 2, 0, 2, 1, 1, 1, 1, 0}\r\n\tShapes[1].elements = []gl.GLushort{0, 1, 2, 2, 3, 0, 3, 4, 5, 5, 6, 3}\r\n\r\n\t// _|_\r\n\tShapes[2].vertices = []gl.GLfloat{-1.5, 0, -0.5, 0, -0.5, 1, 0.5, 1, 0.5, 0, 1.5, 0, 1.5, -1, -1.5, -1}\r\n\tShapes[2].elements = []gl.GLushort{1, 2, 3, 3, 4, 1, 0, 7, 6, 6, 0, 5}\r\n\r\n\t// Snake\r\n\tShapes[3].vertices = []gl.GLfloat{-1.5, -1, -1.5, 0, -0.5, 0, -0.5, 1, 1.5, 1, 1.5, 0, 0.5, 0, 0.5, -1}\r\n\tShapes[3].elements = []gl.GLushort{0, 1, 6, 6, 7, 0, 2, 3, 4, 4, 5, 2}\r\n\r\n\t// Now fill out the rest automatically.\r\n\t// FIXME why doesn't using _, shape in this loop work ?\r\n\tfor i := range Shapes {\r\n\t\tShapes[i].vao = gl.GenVertexArray()\r\n\t\tShapes[i].vao.Bind()\r\n\t\tShapes[i].vbo = gl.GenBuffer()\r\n\t\tShapes[i].vbo.Bind(gl.ARRAY_BUFFER)\r\n\t\tgl.BufferData(gl.ARRAY_BUFFER, len(Shapes[i].vertices)*4, Shapes[i].vertices, gl.STATIC_DRAW)\r\n\t\tShapes[i].elementBuffer = gl.GenBuffer()\r\n\t\tShapes[i].elementBuffer.Bind(gl.ELEMENT_ARRAY_BUFFER)\r\n\t\tgl.BufferData(gl.ELEMENT_ARRAY_BUFFER, len(Shapes[i].elements)*2, Shapes[i].elements, gl.STATIC_DRAW)\r\n\t\tShapes[i].numElements = len(Shapes[i].elements)\r\n\r\n\t\tvertexAttribArray := shaderProgram.GetAttribLocation(\"position\")\r\n\t\tvertexAttribArray.AttribPointer(2, gl.FLOAT, false, 0, uintptr(0))\r\n\t\tvertexAttribArray.EnableArray()\r\n\t}\r\n}", "func NewStrictPolygon(bounds floatgeom.Rect2, points ...floatgeom.Point2) (*Polygon, error) {\n\tif len(points) < 3 {\n\t\treturn nil, oakerr.InsufficientInputs{AtLeast: 3, InputName: \"points\"}\n\t}\n\treturn &Polygon{\n\t\tSprite: NewSprite(bounds.Min.X(), bounds.Min.Y(),\n\t\t\timage.NewRGBA(image.Rect(0, 0, int(bounds.W()), int(bounds.H())))),\n\t\tRect2: bounds,\n\t\tpoints: points,\n\t}, nil\n}", "func NewPolygon(latlngs []*LatLng) *Polygon {\n\tInitialize()\n\treturn &Polygon{\n\t\tPolyline: Polyline{\n\t\t\tPath: Path{\n\t\t\t\tLayer: Layer{\n\t\t\t\t\tValue: L.Call(\"polygon\", latlngs),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t}\n}", "func (imd *IMDraw) Polygon(thickness float64) {\n\tif thickness == 0 {\n\t\timd.fillPolygon()\n\t} else {\n\t\timd.polyline(thickness, true)\n\t}\n}", "func (rs *RenderSystem) prepare() {\n\tgl.Enable(gl.CULL_FACE)\n\tgl.CullFace(gl.BACK)\n\tgl.Enable(gl.DEPTH_TEST)\n\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\tgl.ClearColor(rs.BaseColour.R, rs.BaseColour.G, rs.BaseColour.B, rs.BaseColour.A)\n\tif rs.drawPolygon {\n\t\tgl.PolygonMode(gl.FRONT_AND_BACK, gl.LINE)\n\t} else {\n\t\tgl.PolygonMode(gl.FRONT_AND_BACK, gl.FILL)\n\t}\n}", "func intersectsPolygon(a, b *node) bool {\n\tp := a\n\tfor {\n\t\tif p.i != a.i &&\n\t\t\tp.next.i != a.i &&\n\t\t\tp.i != b.i &&\n\t\t\tp.next.i != b.i &&\n\t\t\tintersects(p, p.next, a, b) {\n\t\t\treturn true\n\t\t}\n\t\tp = p.next\n\t\tif p == a {\n\t\t\tbreak\n\t\t}\n\t}\n\n\treturn false\n}", "func isPolygonIntersect(a, b polygon) bool {\n\tshapes := [2]polygon{a, b}\n\tfor _, polygon := range shapes {\n\t\tfor i1 := 0; i1 < len(polygon.Points()); i1++ {\n\n\t\t\ti2 := (i1 + 1) % len(polygon.Points())\n\t\t\tp1 := polygon.Points()[i1]\n\t\t\tp2 := polygon.Points()[i2]\n\n\t\t\tnormal := point{Y: p2.Y - p1.Y, X: p1.X - p2.X}\n\n\t\t\tminA := math.MaxFloat64\n\t\t\tmaxA := (math.MaxFloat64 * -1)\n\t\t\tfor _, p := range a.Points() {\n\t\t\t\tprojected := normal.X*p.X + normal.Y*p.Y\n\t\t\t\tif projected < minA {\n\t\t\t\t\tminA = projected\n\t\t\t\t}\n\t\t\t\tif projected > maxA {\n\t\t\t\t\tmaxA = projected\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tminB := math.MaxFloat64\n\t\t\tmaxB := (math.MaxFloat64 * -1)\n\t\t\tfor _, p := range b.Points() {\n\t\t\t\tprojected := normal.X*p.X + normal.Y*p.Y\n\t\t\t\tif projected < minB {\n\t\t\t\t\tminB = projected\n\t\t\t\t}\n\t\t\t\tif projected > maxB {\n\t\t\t\t\tmaxB = projected\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif maxA < minB || maxB < minA {\n\t\t\t\treturn false\n\t\t\t}\n\t\t}\n\t}\n\treturn true\n}", "func (g *GeoPolygon) Destroy() {\n\tg.destroy()\n}", "func (self *Graphics) AutoCull() bool{\n return self.Object.Get(\"autoCull\").Bool()\n}", "func Isogrids(w io.Writer, key string, colors []color.RGBA, size, lines int) {\n\tcanvas := svg.New(w)\n\tcanvas.Start(size, size)\n\n\tfringeSize := size / lines\n\tdistance := distanceTo3rdPoint(fringeSize)\n\tlines = size / fringeSize\n\toffset := ((fringeSize - distance) * lines) / 2\n\t// triangle grid here:\n\tfor xL := -1; xL < lines/2; xL++ {\n\t\tfor yL := -1; yL <= lines; yL++ {\n\t\t\tvar x1, x2, y1, y2, y3 int\n\t\t\tif (xL % 2) == 0 {\n\t\t\t\tx1, y1, x2, y2, _, y3 = right1stTriangle(xL, yL, fringeSize, distance)\n\t\t\t} else {\n\t\t\t\tx1, y1, x2, y2, _, y3 = left1stTriangle(xL, yL, fringeSize, distance)\n\t\t\t}\n\t\t\txs := []int{x2 + offset, x1 + offset, x2 + offset}\n\t\t\tys := []int{y1, y2, y3}\n\t\t\tfill1 := draw.FillFromRGBA(draw.PickColor(key, colors, (xL+3*yL+lines)%15))\n\t\t\tcanvas.Polygon(xs, ys, fill1)\n\n\t\t\txsMirror := mirrorCoordinates(xs, lines, distance, offset*2)\n\t\t\tcanvas.Polygon(xsMirror, ys, fill1)\n\n\t\t\tvar x11, x12, y11, y12, y13 int\n\t\t\tif (xL % 2) == 0 {\n\t\t\t\tx11, y11, x12, y12, _, y13 = left2ndTriangle(xL, yL, fringeSize, distance)\n\n\t\t\t\t// we make sure that the previous triangle and this one touch each other in this point.\n\t\t\t\ty12 = y3\n\t\t\t} else {\n\t\t\t\tx11, y11, x12, y12, _, y13 = right2ndTriangle(xL, yL, fringeSize, distance)\n\n\t\t\t\t// in order to have a perfect hexagon,\n\t\t\t\t// we make sure that the previous triangle and this one touch each other in this point.\n\t\t\t\ty12 = y1 + fringeSize\n\t\t\t}\n\t\t\txs1 := []int{x12 + offset, x11 + offset, x12 + offset}\n\t\t\tys1 := []int{y11, y12, y13}\n\t\t\tfill2 := draw.FillFromRGBA(draw.PickColor(key, colors, (xL+3*yL+1+lines)%15))\n\t\t\tcanvas.Polygon(xs1, ys1, fill2)\n\n\t\t\txs1 = mirrorCoordinates(xs1, lines, distance, offset*2)\n\t\t\tcanvas.Polygon(xs1, ys1, fill2)\n\t\t}\n\t}\n\tcanvas.End()\n}", "func (b *BasicShape) Refine() []Shape {\n\tpanic(\"Refine should only be called on shapes which cannot be intersected: Basic\")\n}", "func boxToPoly(b Box2d) polygon {\n\tcen_x, cen_y := b.Position()\n\twidth, height := b.Size()\n\tangle := b.AngleDegrees()\n\n\tpoints := [4]point{}\n\n\tpoints[0] = point{X: getX(-width/2, -height/2, angle) + cen_x,\n\t\tY: getY(-width/2, -height/2, angle) + cen_y}\n\n\tpoints[1] = point{X: getX(width/2, -height/2, angle) + cen_x,\n\t\tY: getY(width/2, -height/2, angle) + cen_y}\n\n\tpoints[2] = point{X: getX(-width/2, height/2, angle) + cen_x,\n\t\tY: getY(-width/2, height/2, angle) + cen_y}\n\n\tpoints[3] = point{X: getX(width/2, height/2, angle) + cen_x,\n\t\tY: getY(width/2, height/2, angle) + cen_y}\n\tz := boxPoly{points: points[:4]}\n\n\treturn z\n}", "func mainFace(rects []image.Rectangle) image.Rectangle {\n\tmaxArea := 0\n\tvar current *image.Rectangle\n\tfor _, rect := range rects {\n\t\tarea := (rect.Max.Y - rect.Min.Y) * (rect.Max.X - rect.Min.X)\n\t\tif area > maxArea {\n\t\t\tcurrent = &rect\n\t\t}\n\t}\n\treturn *current\n}", "func (b *Blueprint) Polygon(column string) *ColumnDefinition {\n\treturn b.addColumn(\"polygon\", column, nil)\n}", "func (this *DtNavMeshQuery) queryPolygonsInTile(tile *DtMeshTile, qmin, qmax []float32,\n\tfilter *DtQueryFilter, query DtPolyQuery) {\n\tDtAssert(this.m_nav != nil)\n\tconst batchSize int = 32\n\tvar polyRefs [batchSize]DtPolyRef\n\tvar polys [batchSize]*DtPoly\n\tn := 0\n\n\tif tile.BvTree != nil {\n\t\tnodeIndex := 0\n\t\tendIndex := int(tile.Header.BvNodeCount)\n\t\ttbmin := tile.Header.Bmin[:]\n\t\ttbmax := tile.Header.Bmax[:]\n\t\tqfac := tile.Header.BvQuantFactor\n\n\t\t// Calculate quantized box\n\t\tvar bmin, bmax [3]uint16\n\t\t// dtClamp query box to world box.\n\t\tminx := DtClampFloat32(qmin[0], tbmin[0], tbmax[0]) - tbmin[0]\n\t\tminy := DtClampFloat32(qmin[1], tbmin[1], tbmax[1]) - tbmin[1]\n\t\tminz := DtClampFloat32(qmin[2], tbmin[2], tbmax[2]) - tbmin[2]\n\t\tmaxx := DtClampFloat32(qmax[0], tbmin[0], tbmax[0]) - tbmin[0]\n\t\tmaxy := DtClampFloat32(qmax[1], tbmin[1], tbmax[1]) - tbmin[1]\n\t\tmaxz := DtClampFloat32(qmax[2], tbmin[2], tbmax[2]) - tbmin[2]\n\t\t// Quantize\n\t\tbmin[0] = (uint16)(qfac*minx) & 0xfffe\n\t\tbmin[1] = (uint16)(qfac*miny) & 0xfffe\n\t\tbmin[2] = (uint16)(qfac*minz) & 0xfffe\n\t\tbmax[0] = (uint16)(qfac*maxx+1) | 1\n\t\tbmax[1] = (uint16)(qfac*maxy+1) | 1\n\t\tbmax[2] = (uint16)(qfac*maxz+1) | 1\n\n\t\t// Traverse tree\n\t\tbase := this.m_nav.GetPolyRefBase(tile)\n\t\tfor nodeIndex < endIndex {\n\t\t\tnode := &tile.BvTree[nodeIndex]\n\t\t\toverlap := DtOverlapQuantBounds(bmin[:], bmax[:], node.Bmin[:], node.Bmax[:])\n\t\t\tisLeafNode := (node.I >= 0)\n\n\t\t\tif isLeafNode && overlap {\n\t\t\t\tref := base | (DtPolyRef)(node.I)\n\t\t\t\tif filter.PassFilter(ref, tile, &tile.Polys[node.I]) {\n\t\t\t\t\tpolyRefs[n] = ref\n\t\t\t\t\tpolys[n] = &tile.Polys[node.I]\n\n\t\t\t\t\tif n == batchSize-1 {\n\t\t\t\t\t\tquery.Process(tile, polys[:], polyRefs[:], batchSize)\n\t\t\t\t\t\tn = 0\n\t\t\t\t\t} else {\n\t\t\t\t\t\tn++\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif overlap || isLeafNode {\n\t\t\t\tnodeIndex++\n\t\t\t} else {\n\t\t\t\tescapeIndex := int(-node.I)\n\t\t\t\tnodeIndex += escapeIndex\n\t\t\t}\n\t\t}\n\t} else {\n\t\tvar bmin, bmax [3]float32\n\t\tbase := this.m_nav.GetPolyRefBase(tile)\n\t\tfor i := 0; i < int(tile.Header.PolyCount); i++ {\n\t\t\tp := &tile.Polys[i]\n\t\t\t// Do not return off-mesh connection polygons.\n\t\t\tif p.GetType() == DT_POLYTYPE_OFFMESH_CONNECTION {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\t// Must pass filter\n\t\t\tref := base | (DtPolyRef)(i)\n\t\t\tif !filter.PassFilter(ref, tile, p) {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\t// Calc polygon bounds.\n\t\t\tv := tile.Verts[p.Verts[0]*3:]\n\t\t\tDtVcopy(bmin[:], v)\n\t\t\tDtVcopy(bmax[:], v)\n\t\t\tfor j := 1; j < int(p.VertCount); j++ {\n\t\t\t\tv = tile.Verts[p.Verts[j]*3:]\n\t\t\t\tDtVmin(bmin[:], v)\n\t\t\t\tDtVmax(bmax[:], v)\n\t\t\t}\n\t\t\tif DtOverlapBounds(qmin, qmax, bmin[:], bmax[:]) {\n\t\t\t\tpolyRefs[n] = ref\n\t\t\t\tpolys[n] = p\n\n\t\t\t\tif n == batchSize-1 {\n\t\t\t\t\tquery.Process(tile, polys[:], polyRefs[:], batchSize)\n\t\t\t\t\tn = 0\n\t\t\t\t} else {\n\t\t\t\t\tn++\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Process the last polygons that didn't make a full batch.\n\tif n > 0 {\n\t\tquery.Process(tile, polys[:], polyRefs[:], n)\n\t}\n}", "func FrontFace(mode GLenum) {\n\tC.glFrontFace(C.GLenum(mode))\n}", "func (p *Polygon) Add(c Contour) {\n\t*p = append(*p, c)\n}", "func (poly Polygon) Intersect(poly2 Polygon) bool {\r\n\tvertices := poly.GetWorldVertices()\r\n\tvertices2 := poly2.GetWorldVertices()\r\n\tfor i := 1; i < len(vertices); i++ {\r\n\t\tedgeVec := linalg.Vector2f64{X: vertices[i].X - vertices[i-1].X, Y: vertices[i].Y - vertices[i-1].Y}\r\n\t\taxis := edgeVec.NormalVec()\r\n\t\tseg0 := poly2.ProjectOn(axis)\r\n\t\tseg1 := poly.ProjectOn(axis)\r\n\t\tif !overlap(seg0, seg1) {\r\n\t\t\treturn false\r\n\t\t}\r\n\t}\r\n\tfor i := 1; i < len(vertices2); i++ {\r\n\t\tedgeVec := linalg.Vector2f64{X: vertices2[i].X - vertices2[i-1].X, Y: vertices2[i].Y - vertices2[i-1].Y}\r\n\t\taxis := edgeVec.NormalVec()\r\n\t\tseg0 := poly2.ProjectOn(axis)\r\n\t\tseg1 := poly.ProjectOn(axis)\r\n\t\tif !overlap(seg0, seg1) {\r\n\t\t\treturn false\r\n\t\t}\r\n\t}\r\n\treturn true\r\n}", "func (p PolygonZMS) LinearRings() struct {\n\tSrid uint32\n\tPolzm PolygonZM\n} {\n\treturn p\n}", "func main() {\n\traster := bridge.RasterRenderer{}\n\tvector := bridge.VectorRenderer{}\n\n\tcircleR := bridge.NewCircle(&raster, 5)\n\tcircleR.Draw()\n\tcircleR.Resize(2)\n\tcircleR.Draw()\n\n\tcircleV := bridge.NewCircle(&vector, 5)\n\tcircleV.Draw()\n\tcircleV.Resize(2)\n\tcircleV.Draw()\n\n\ttriangleR := bridge.NewTriangle(&raster, 1,2,3.5)\n\ttriangleR.Draw()\n\ttriangleR.Resize(3)\n\ttriangleR.Draw()\n\n\ttriangleV := bridge.NewTriangle(&vector, 2,4,7)\n\ttriangleV.Draw()\n\ttriangleV.Resize(5)\n\ttriangleV.Draw()\n}", "func (s *CubicSplineSDF2) Polygonize(n int) *Polygon {\n\tp := NewPolygon()\n\tdt := float64(len(s.spline)) / float64(n-1)\n\tt := 0.0\n\tfor i := 0; i < n; i++ {\n\t\tp.AddV2(s.f0(t))\n\t\tt += dt\n\t}\n\treturn p\n}", "func (this *DtNavMesh) queryPolygonsInTile(tile *DtMeshTile, qmin, qmax []float32, polys []DtPolyRef, maxPolys int) int {\n\tif tile.BvTree != nil {\n\t\tnodeIndex := 0\n\t\tendIndex := int(tile.Header.BvNodeCount)\n\t\ttbmin := tile.Header.Bmin[:]\n\t\ttbmax := tile.Header.Bmax[:]\n\t\tqfac := tile.Header.BvQuantFactor\n\n\t\t// Calculate quantized box\n\t\tvar bmin, bmax [3]uint16\n\t\t// dtClamp query box to world box.\n\t\tminx := DtClampFloat32(qmin[0], tbmin[0], tbmax[0]) - tbmin[0]\n\t\tminy := DtClampFloat32(qmin[1], tbmin[1], tbmax[1]) - tbmin[1]\n\t\tminz := DtClampFloat32(qmin[2], tbmin[2], tbmax[2]) - tbmin[2]\n\t\tmaxx := DtClampFloat32(qmax[0], tbmin[0], tbmax[0]) - tbmin[0]\n\t\tmaxy := DtClampFloat32(qmax[1], tbmin[1], tbmax[1]) - tbmin[1]\n\t\tmaxz := DtClampFloat32(qmax[2], tbmin[2], tbmax[2]) - tbmin[2]\n\t\t// Quantize\n\t\tbmin[0] = uint16(qfac*minx) & 0xfffe\n\t\tbmin[1] = uint16(qfac*miny) & 0xfffe\n\t\tbmin[2] = uint16(qfac*minz) & 0xfffe\n\t\tbmax[0] = uint16(qfac*maxx+1) | 1\n\t\tbmax[1] = uint16(qfac*maxy+1) | 1\n\t\tbmax[2] = uint16(qfac*maxz+1) | 1\n\n\t\t// Traverse tree\n\t\tbase := this.GetPolyRefBase(tile)\n\t\tn := 0\n\t\tfor nodeIndex < endIndex {\n\t\t\tnode := &tile.BvTree[nodeIndex]\n\t\t\toverlap := DtOverlapQuantBounds(bmin[:], bmax[:], node.Bmin[:], node.Bmax[:])\n\t\t\tisLeafNode := (node.I >= 0)\n\n\t\t\tif isLeafNode && overlap {\n\t\t\t\tif n < maxPolys {\n\t\t\t\t\tpolys[n] = base | (DtPolyRef)(node.I)\n\t\t\t\t\tn = n + 1\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif overlap || isLeafNode {\n\t\t\t\tnodeIndex++\n\t\t\t} else {\n\t\t\t\tescapeIndex := int(-node.I)\n\t\t\t\tnodeIndex += escapeIndex\n\t\t\t}\n\t\t}\n\n\t\treturn n\n\t} else {\n\t\tvar bmin, bmax [3]float32\n\t\tn := 0\n\t\tbase := this.GetPolyRefBase(tile)\n\t\tfor i := 0; i < int(tile.Header.PolyCount); i++ {\n\t\t\tp := &tile.Polys[i]\n\t\t\t// Do not return off-mesh connection polygons.\n\t\t\tif p.GetType() == DT_POLYTYPE_OFFMESH_CONNECTION {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\t// Calc polygon bounds.\n\t\t\tv := tile.Verts[p.Verts[0]*3:]\n\t\t\tDtVcopy(bmin[:], v)\n\t\t\tDtVcopy(bmax[:], v)\n\t\t\tfor j := 1; j < int(p.VertCount); j++ {\n\t\t\t\tv = tile.Verts[p.Verts[j]*3:]\n\t\t\t\tDtVmin(bmin[:], v)\n\t\t\t\tDtVmax(bmax[:], v)\n\t\t\t}\n\t\t\tif DtOverlapBounds(qmin, qmax, bmin[:], bmax[:]) {\n\t\t\t\tif n < maxPolys {\n\t\t\t\t\tpolys[n] = base | (DtPolyRef)(i)\n\t\t\t\t\tn = n + 1\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn n\n\t}\n}", "func initFontVbo() {\n\tvar vertexAttributes = make([]float32, 5*6*len(charDatas))\n\ti := 0\n\tfor _, charData := range charDatas {\n\t\ttop := float32(charData.ty+charData.h) / 256\n\t\tbottom := float32(charData.ty) / 256\n\t\tright := float32(charData.tx+charData.w) / 256\n\t\tleft := float32(charData.tx) / 256\n\n\t\tw := float32(charData.w) / 256\n\t\th := float32(charData.h) / 256\n\n\t\t// tri 1\n\t\tvertexAttributes[i] = w\n\t\tvertexAttributes[i+1] = h\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = right\n\t\tvertexAttributes[i+4] = bottom\n\t\ti += 5\n\n\t\tvertexAttributes[i] = w\n\t\tvertexAttributes[i+1] = 0\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = right\n\t\tvertexAttributes[i+4] = top\n\t\ti += 5\n\n\t\tvertexAttributes[i] = 0\n\t\tvertexAttributes[i+1] = h\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = left\n\t\tvertexAttributes[i+4] = bottom\n\t\ti += 5\n\n\t\t// tri 2\n\t\tvertexAttributes[i] = w\n\t\tvertexAttributes[i+1] = 0\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = right\n\t\tvertexAttributes[i+4] = top\n\t\ti += 5\n\n\t\tvertexAttributes[i] = 0\n\t\tvertexAttributes[i+1] = 0\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = left\n\t\tvertexAttributes[i+4] = top\n\t\ti += 5\n\n\t\tvertexAttributes[i] = 0\n\t\tvertexAttributes[i+1] = h\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = left\n\t\tvertexAttributes[i+4] = bottom\n\t\ti += 5\n\t}\n\n\tgl.GenBuffers(1, &vbo)\n\tgl.GenVertexArrays(1, &vao)\n\tgl.BindVertexArray(vao)\n\tgl.EnableVertexAttribArray(0)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.BufferData(\n\t\tgl.ARRAY_BUFFER,\n\t\t4*len(vertexAttributes),\n\t\tgl.Ptr(vertexAttributes),\n\t\tgl.STATIC_DRAW,\n\t)\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, 5*4, gl.PtrOffset(0))\n\tgl.EnableVertexAttribArray(0)\n\tgl.VertexAttribPointer(1, 2, gl.FLOAT, false, 5*4, gl.PtrOffset(4*3))\n\tgl.EnableVertexAttribArray(1)\n\t//unbind\n\tgl.BindVertexArray(0)\n\n}", "func TestTorusInterior(t *testing.T) {\n p := []float64{0, 0, 0}\n v := []float64{0, 0, 1}\n var R, r float64 = 2, 1\n\n torus := NewTorus(p, v, R, r)\n\n if torus == nil {\n t.Error(\"torus error: torus should exist but is nil!!!!\") \n return \n }\n\n if surface.SurfaceInterior(torus, p) {\n t.Error(\"torus error: torus is inside-out 1! \", torus.F(p)) \n }\n\n if !surface.SurfaceInterior(torus, []float64{2, 0, 0}) {\n t.Error(\"torus error: torus is inside-out 2! \", torus.F([]float64{2, 0, 0})) \n }\n}", "func (p *Polygon) createArcs() {\n\tdone := false\n\tfor done == false {\n\t\tdone = true\n\t\tfor i := range p.vlist {\n\t\t\tif p.arcVertex(i) {\n\t\t\t\tdone = false\n\t\t\t}\n\t\t}\n\t}\n}", "func rcube(x, y, l int) {\n\ttx := []int{x, x + (l * 3), x, x - (l * 3), x}\n\tty := []int{y, y + (l * 2), y + (l * 4), y + (l * 2), y}\n\n\tlx := []int{x - (l * 3), x, x, x - (l * 3), x - (l * 3)}\n\tly := []int{y + (l * 2), y + (l * 4), y + (l * 8), y + (l * 6), y + (l * 2)}\n\n\trx := []int{x + (l * 3), x + (l * 3), x, x, x + (l * 3)}\n\try := []int{y + (l * 2), y + (l * 6), y + (l * 8), y + (l * 4), y + (l * 2)}\n\n\tcanvas.Polygon(tx, ty, randcolor())\n\tcanvas.Polygon(lx, ly, randcolor())\n\tcanvas.Polygon(rx, ry, randcolor())\n}", "func NewPolygon() *Polygon {\n\tthis := Polygon{}\n\treturn &this\n}", "func (el *Fill) Rect() {}", "func (drawShape DrawShape) drawshape(x[5] float32, y[5] float32) {\n\tfmt.Println(\"Drawing Shape\")\n}", "func PolygonForRing(ctx context.Context, rng [][2]float64) (plyg [][][2]float64) {\n\tif debug {\n\t\tlog.Printf(\"turn ring into polygon.\")\n\t\tlog.Printf(\"ring: %v\", wkt.MustEncode(rng))\n\t}\n\n\tif len(rng) <= 2 {\n\t\treturn nil\n\t}\n\n\t// normalize ring\n\tcmppkg.RotateToLeftMostPoint(rng)\n\n\tpIdx := func(i int) int {\n\t\tif i == 0 {\n\t\t\treturn len(rng) - 1\n\t\t}\n\t\treturn i - 1\n\t}\n\tnIdx := func(i int) int {\n\t\tif i == len(rng)-1 {\n\t\t\treturn 0\n\t\t}\n\t\treturn i + 1\n\t}\n\n\t// Allocate space for the initial ring.\n\tplyg = make([][][2]float64, 1)\n\n\t// Remove bubbles. There are two types of bubbles we have to look for.\n\t// 1. ab … bc, in which case we need to hold on to b.\n\t// It is possible that b is absolutely not necessary. It could lie on the line between a and c, in which case\n\t// we should remove the extra point.\n\t// 2. ab … ba, which case we do not need to have b in the ring.\n\n\t// let's build an index of where the points that we are walking are. That way when we encounter the same\n\t// point we are able to “jump” to that point.\n\tptIndex := map[[2]float64]int{}\n\tvar ok bool\n\tvar idx int\n\n\t// Let's walk the points\n\tfor i := 0; i < len(rng); i++ {\n\t\t// Context has been cancelled.\n\t\tif ctx.Err() != nil {\n\t\t\treturn nil\n\t\t}\n\n\t\t// check to see if we have already seen this point.\n\t\tif idx, ok = ptIndex[rng[i]]; !ok {\n\t\t\tptIndex[rng[i]] = i\n\t\t\tcontinue\n\t\t}\n\n\t\t// ➠ what type of bubble are we dealing with\n\t\tpidx, nidx := pIdx(idx), nIdx(i)\n\n\t\t// clear out ptIndex of the values we are going to cut.\n\t\tfor j := idx; j <= i; j++ {\n\t\t\tdelete(ptIndex, rng[j])\n\t\t}\n\n\t\t// ab…ba ring. So we need to remove all the way to a.\n\t\tif nidx != pidx && cmp.PointEqual(rng[pidx], rng[nidx]) {\n\t\t\tif debug {\n\t\t\t\tlog.Printf(\"bubble type ab…ba: (% 5v)(% 5v) … (% 5v)(% 5v)\", pidx, idx, i, nidx)\n\t\t\t}\n\n\t\t\t// delete the ʽaʼ point as well from point index\n\t\t\tdelete(ptIndex, rng[pidx])\n\n\t\t\tsliver := cut(&rng, pidx, nidx)\n\t\t\t// remove the start ab\n\t\t\tsliver = sliver[2:]\n\t\t\tif len(sliver) >= 3 { // make a copy to free up memory.\n\t\t\t\tps := make([][2]float64, len(sliver))\n\t\t\t\tcopy(ps, sliver)\n\t\t\t\tcmppkg.RotateToLeftMostPoint(ps)\n\t\t\t\tif debug {\n\t\t\t\t\tlog.Printf(\"ring: %v\", wkt.MustEncode(rng))\n\t\t\t\t\tlog.Printf(\"sliver: %v\", wkt.MustEncode(sliver))\n\t\t\t\t}\n\t\t\t\tplyg = append(plyg, ps)\n\t\t\t}\n\n\t\t\tif i = idx - 1; i < 0 {\n\t\t\t\ti = 0\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\n\t\t// do a quick check to see if b is on ac\n\t\tremoveB := planar.IsPointOnLine(cmp, rng[i], rng[pidx], rng[nidx])\n\n\t\t// ab … bc The sliver is going to be from b … just before b. So, the ring will be …abc… or …ac… depending on removeB\n\t\tif debug {\n\t\t\tlog.Printf(\"bubble type ab…bc: (% 5v)(% 5v) … (% 5v)(% 5v) == %t\", pidx, idx, i, nidx, removeB)\n\t\t\tlog.Printf(\"ab..bc: [%v][%v]..[%v][%v]\",\n\t\t\t\twkt.MustEncode(geom.Point(rng[pidx])),\n\t\t\t\twkt.MustEncode(geom.Point(rng[idx])),\n\t\t\t\twkt.MustEncode(geom.Point(rng[i])),\n\t\t\t\twkt.MustEncode(geom.Point(rng[nidx])),\n\t\t\t)\n\t\t\tlog.Printf(\"%v , %v\",\n\t\t\t\twkt.MustEncode(geom.Point(rng[i])),\n\t\t\t\twkt.MustEncode(geom.Line{rng[pidx], rng[nidx]}),\n\t\t\t)\n\t\t}\n\n\t\t// Quick hack to remove extra bridges that are geting left over.\n\t\tsliver := removeBridge(cut(&rng, idx, i))\n\n\t\tif len(sliver) >= 3 {\n\t\t\tcmppkg.RotateToLeftMostPoint(sliver)\n\t\t\tif debug {\n\t\t\t\tlog.Printf(\"ring: %v\", wkt.MustEncode(rng))\n\t\t\t\tlog.Printf(\"sliver: %v\", wkt.MustEncode(sliver))\n\t\t\t}\n\t\t\tplyg = append(plyg, sliver)\n\t\t}\n\n\t\ti = idx\n\t\tif removeB {\n\t\t\tcut(&rng, idx, idx+1)\n\t\t\tif idx == 0 {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\ti = idx - 1\n\t\t}\n\t} // for\n\n\tif len(rng) <= 2 {\n\t\tif debug {\n\t\t\tlog.Println(\"rng:\", rng)\n\t\t\tlog.Println(\"plyg:\", plyg)\n\t\t\tpanic(\"main ring is not correct!\")\n\t\t}\n\t\treturn nil\n\t}\n\n\tplyg[0] = make([][2]float64, len(rng))\n\tcopy(plyg[0], rng)\n\tcmppkg.RotateToLeftMostPoint(plyg[0])\n\treturn plyg\n}", "func PolygonStipple(mask *uint8) {\n\tsyscall.Syscall(gpPolygonStipple, 1, uintptr(unsafe.Pointer(mask)), 0, 0)\n}", "func (s *VisvalingamSimplifier) MultiPolygon(mp orb.MultiPolygon) orb.MultiPolygon {\n\treturn multiPolygon(s, mp)\n}", "func NewPolygon() *Polygon {\n\treturn &Polygon{}\n}", "func TestPointInPolygonWithHole(t *testing.T) {\n\tnsw := Contour{ { 150.703782730764544, -35.120441501962588 }, { 150.673521763018982, -35.124264010875365 }, { 150.636418085326397, -35.14446949567072 }, { 150.613055464931449, -35.187267234778744 }, { 150.61304772200009, -35.187269789999931 }, { 150.585948113000143, -35.196221612999878 }, { 150.55396569100003, -35.213555596999953 }, { 150.548106316000087, -35.221368096999939 }, { 150.543711785000028, -35.237969658999901 }, { 150.539724155000044, -35.247735283999944 }, { 150.534434441000087, -35.254978122999958 }, { 150.52312259200005, -35.26433684699991 }, { 150.49952233200014, -35.289727471999925 }, { 150.489105665000068, -35.305759372999916 }, { 150.484629754000082, -35.324314059999921 }, { 150.485036655000101, -35.350192966999927 }, { 150.488454623000109, -35.364515882999925 }, { 150.491872592000107, -35.369398695999891 }, { 150.492035352000073, -35.373142184999921 }, { 150.485036655000101, -35.384372653999918 }, { 150.455821160000028, -35.403985283999887 }, { 150.45093834700009, -35.408461195999863 }, { 150.445485873000052, -35.425469658999916 }, { 150.43295332100007, -35.440687757999896 }, { 150.41920006600003, -35.454522393999895 }, { 150.40992272200009, -35.466892184999921 }, { 150.406993035000028, -35.487399997999972 }, { 150.409353061000104, -35.538506768999952 }, { 150.406504754000082, -35.548760674999883 }, { 150.389659050000148, -35.557875257999882 }, { 150.372325066000087, -35.578871351999908 }, { 150.332530144000089, -35.639418226999908 }, { 150.306895379000025, -35.700290622999916 }, { 150.291677280000044, -35.722832940999893 }, { 150.273692254000025, -35.730645440999893 }, { 150.253428582000083, -35.726250908999901 }, { 150.231781446000014, -35.7133114559999 }, { 150.221934441000087, -35.717705987999892 }, { 150.19092858200014, -35.726820570999877 }, { 150.21810957100007, -35.751153252999941 }, { 150.225840691000087, -35.778903903999918 }, { 150.228688998000109, -35.785251559999949 }, { 150.238536004000025, -35.799493096999953 }, { 150.240977410000085, -35.809747002999885 }, { 150.238617384, -35.833103122999972 }, { 150.232432488000143, -35.843845309999978 }, { 150.21810957100007, -35.850192966999927 }, { 150.19092858200014, -35.857191664999903 }, { 150.189300977000016, -35.85955169099995 }, { 150.152598504000025, -35.893731377999941 }, { 150.149750196000014, -35.898207289999917 }, { 150.150238477000073, -35.9125302059999 }, { 150.160817905000044, -35.939711195999905 }, { 150.163422071000014, -35.956638278999975 }, { 150.156586134, -36.025079033999944 }, { 150.148692254000025, -36.062595309999963 }, { 150.129649285000028, -36.059502862999892 }, { 150.106781446000014, -36.048597914999903 }, { 150.087738477000016, -36.06267669099995 }, { 150.09115644600007, -36.070245049999897 }, { 150.090179884000065, -36.07529062299993 }, { 150.081553582000083, -36.083754164999874 }, { 150.087657097000033, -36.082777601999894 }, { 150.092539910000028, -36.08269622199991 }, { 150.097015821000014, -36.081312757999939 }, { 150.102061394000089, -36.076348565999893 }, { 150.119151238000086, -36.085056247999958 }, { 150.135752800000091, -36.097751559999935 }, { 150.143321160000085, -36.11443450299997 }, { 150.123057488000143, -36.152601820999934 }, { 150.121104363000086, -36.17376067499994 }, { 150.124196811000104, -36.195245049999969 }, { 150.144786004000025, -36.252862237999935 }, { 150.146494988000143, -36.273532809999949 }, { 150.132823113000086, -36.282403252999899 }, { 150.132823113000086, -36.286797783999887 }, { 150.140391472000033, -36.30974700299997 }, { 150.14234459700009, -36.320000908999901 }, { 150.13819420700014, -36.330010674999883 }, { 150.12842858200014, -36.338311455999957 }, { 150.108246290000011, -36.35133228999986 }, { 150.092295769000089, -36.367852471999925 }, { 150.079274936000104, -36.386000257999925 }, { 150.070485873000052, -36.406345309999921 }, { 150.067393425000148, -36.429294528999904 }, { 150.073008660000028, -36.453057549999912 }, { 150.074229363000143, -36.463311455999929 }, { 150.070974155000101, -36.470147393999952 }, { 150.056813998000109, -36.488946221999896 }, { 150.053558790000068, -36.500909112999935 }, { 150.063649936000104, -36.54314544099995 }, { 150.065765821000014, -36.566582940999936 }, { 150.056976759000065, -36.587172132999868 }, { 150.029063347000033, -36.624281507999882 }, { 149.99537194100003, -36.686455987999892 }, { 149.989105665000068, -36.704685153999961 }, { 149.986094597000033, -36.722914320999863 }, { 149.985362175000148, -36.744805596999896 }, { 149.979502800000091, -36.769952080999957 }, { 149.965098504000025, -36.794528903999975 }, { 149.94703209700009, -36.815687757999882 }, { 149.930023634000065, -36.830498955999957 }, { 149.939952019000145, -36.852959893999952 }, { 149.93482506600003, -36.870700778999947 }, { 149.90967858200014, -36.905531507999896 }, { 149.903819207000083, -36.928399346999896 }, { 149.91138756600003, -36.938571872999944 }, { 149.926524285000028, -36.944105726999865 }, { 149.943695509000065, -36.953383070999919 }, { 149.932139519000145, -36.96550872199991 }, { 149.92310631600003, -36.983493747999944 }, { 149.920176629000025, -37.002618096999925 }, { 149.926768425000091, -37.01824309699991 }, { 149.93482506600003, -37.026625257999868 }, { 149.939952019000145, -37.033868096999896 }, { 149.94288170700014, -37.04216887799997 }, { 149.943695509000065, -37.053399346999882 }, { 149.941579623000052, -37.06218840899993 }, { 149.93685957100007, -37.06894296699997 }, { 149.932302280000101, -37.07097747199991 }, { 149.930023634000065, -37.066338799999883 }, { 149.922536655000044, -37.061781507999925 }, { 149.90577233200014, -37.07097747199991 }, { 149.89031009200005, -37.084079684999963 }, { 149.885508660000028, -37.090508721999882 }, { 149.876149936000104, -37.095879815999936 }, { 149.88209069100003, -37.107598565999922 }, { 149.896657748000052, -37.119317315999922 }, { 149.913096550000148, -37.124688408999972 }, { 149.930186394000089, -37.122816664999903 }, { 149.938975457000083, -37.11980559699991 }, { 149.946055535000028, -37.119235934999935 }, { 149.95875084700009, -37.124688408999972 }, { 149.997569207000083, -37.150485934999907 }, { 150.005869988000086, -37.158868096999953 }, { 150.011403842000107, -37.173435153999989 }, { 150.014414910000028, -37.205336195999905 }, { 150.019541863000086, -37.220879815999908 }, { 150.053558790000068, -37.268731377999941 }, { 150.053558790000068, -37.276136976999922 }, { 150.030039910000085, -37.266045830999957 }, { 150.00733483200014, -37.259372653999904 }, { 149.985362175000148, -37.259047132999882 }, { 149.964366082000083, -37.268731377999941 }, { 149.951019727000073, -37.284274997999944 }, { 149.951345248000109, -37.299737237999963 }, { 149.971690300000091, -37.337579033999901 }, { 149.957286004000025, -37.377862237999892 }, { 149.956797722000033, -37.415459893999881 }, { 149.967133009000065, -37.453708591999927 }, { 149.985362175000148, -37.495863539999874 }, { 149.972097201, -37.51026783599994 }, { 149.972075076275758, -37.510291859955558 }, { 149.761070998227979, -37.425105483031643 }, { 149.544185012228468, -37.33756560546837 }, { 149.32729902622907, -37.249974053759516 }, { 149.110413039330297, -37.16238250115147 }, { 148.89357872927485, -37.074790947644061 }, { 148.676641067331389, -36.987199395036015 }, { 148.459806757275942, -36.899607842427969 }, { 148.242972447220609, -36.812016289819923 }, { 148.216824172197789, -36.801681003875245 }, { 148.160393507953927, -36.798373711977206 }, { 148.134658644980391, -36.792792656955527 }, { 148.123289830261456, -36.788245130708219 }, { 148.122979770999621, -36.784214369297715 }, { 148.195120070634744, -36.691196791298893 }, { 148.20617882699122, -36.672489923271286 }, { 148.21403364513651, -36.65130258564578 }, { 148.217030877772743, -36.628151544158442 }, { 148.214860468335928, -36.616886082226955 }, { 148.197962273639973, -36.585466810544887 }, { 148.185404901415097, -36.581591077865923 }, { 148.171400588366396, -36.57957569806004 }, { 148.161788771934198, -36.576630140468595 }, { 148.154812452932333, -36.569860527940989 }, { 148.150316604427644, -36.562470797789103 }, { 148.147836134829788, -36.554512627755557 }, { 148.146905958842979, -36.545830987310268 }, { 148.148766310816598, -36.504283136157866 }, { 148.146595901379669, -36.499632257122983 }, { 148.141893344602124, -36.494671318826292 }, { 148.13724246556734, -36.487798353511195 }, { 148.13403852825553, -36.46650766399749 }, { 148.13098961787648, -36.458859551427125 }, { 148.120809360663486, -36.446870619083782 }, { 148.085204298839244, -36.424856459158235 }, { 148.067582636429563, -36.409715264547771 }, { 148.05993452385917, -36.388217868559735 }, { 148.06303511018217, -36.377624200196664 }, { 148.076264275975575, -36.360364272093463 }, { 148.079261508611694, -36.354421481865899 }, { 148.077814568687359, -36.341915784685696 }, { 148.074352248057721, -36.332355645096925 }, { 148.065567254824941, -36.316542656918131 }, { 148.043398065268434, -36.258510024018349 }, { 148.042312859650735, -36.247657973236883 }, { 148.031925896862617, -36.237115980817876 }, { 148.034303012773762, -36.213344821706087 }, { 148.045465122817063, -36.172572116909677 }, { 148.035956659172427, -36.151746514490057 }, { 147.999473098204817, -36.130559176864452 }, { 147.991411573585253, -36.114177747904733 }, { 147.995752395156842, -36.087047620950941 }, { 148.001333449279173, -36.070304456785252 }, { 147.996889275819456, -36.059245700428733 }, { 147.970947707270852, -36.049013767271546 }, { 147.949346959394632, -36.045293064223486 }, { 147.94066531804998, -36.042605889949897 }, { 147.929296503330875, -36.035371188529552 }, { 147.921286655554752, -36.025345960947334 }, { 147.915963982951439, -36.014183851803338 }, { 147.909711135260636, -36.005037122465211 }, { 147.898600702060662, -36.001213066629674 }, { 147.871780634368804, -35.998370863624459 }, { 147.741297641672759, -35.945970960791229 }, { 147.731634149296497, -35.944575697710235 }, { 147.713805780412372, -35.939408053838662 }, { 147.703418816724934, -35.939769789044547 }, { 147.694737177178979, -35.94390390414182 }, { 147.677942336169849, -35.95687468751683 }, { 147.672361282047575, -35.959665215477273 }, { 147.556761102442977, -35.996355482919199 }, { 147.538932732659475, -35.990671075110029 }, { 147.533661736899603, -35.972429295075969 }, { 147.520122511844477, -35.958011569977984 }, { 147.502294142960352, -35.948813164695807 }, { 147.48369062682093, -35.945970960791229 }, { 147.475629104, -35.948399753545786 }, { 147.457490675853933, -35.957649834772013 }, { 147.446741977859972, -35.959665215477273 }, { 147.419560174962044, -35.957339775510192 }, { 147.408604771393016, -35.959665215477273 }, { 147.396615839049673, -35.966693210423372 }, { 147.382198113951802, -35.97961231875351 }, { 147.369175652834144, -35.994650159677121 }, { 147.360804070751215, -36.008086032844133 }, { 147.348246697626962, -36.062449639539196 }, { 147.340288527593486, -36.076350599800307 }, { 147.324010451421145, -36.061674493183304 }, { 147.306337112167967, -36.051959323963615 }, { 147.286751744097671, -36.049323825634005 }, { 147.272023960637171, -36.049013767271546 }, { 147.266701288033971, -36.0502540016209 }, { 147.215851678811873, -36.061519463552386 }, { 147.184329055241619, -36.064258314669488 }, { 147.165260451108963, -36.059245700428733 }, { 147.154046666020804, -36.047618504190567 }, { 147.144176467170212, -36.040487155557798 }, { 147.134719680368903, -36.039350273995922 }, { 147.124591099099916, -36.04560312258603 }, { 147.097719353665184, -36.07325001347732 }, { 147.093895297829704, -36.080071302848367 }, { 147.091879918023835, -36.086169121807558 }, { 147.082578159954096, -36.097899671732492 }, { 147.079632603261985, -36.103635755485726 }, { 147.079322544899469, -36.112110691255424 }, { 147.081647983967343, -36.118931979727094 }, { 147.084593540659341, -36.125133151473776 }, { 147.086453891733697, -36.131592705638838 }, { 147.090019566050103, -36.156242363893924 }, { 147.093791945941518, -36.168024590662384 }, { 147.100096469576386, -36.179393406280624 }, { 147.108933139652663, -36.189470309806907 }, { 147.11983686727757, -36.197428480739816 }, { 147.132859328395284, -36.203371270068018 }, { 147.147897170218187, -36.207298678691046 }, { 147.176835972302229, -36.206936943485161 }, { 147.18856652222712, -36.209469089926571 }, { 147.196317986685756, -36.22032113980876 }, { 147.106917758947418, -36.241198419071807 }, { 147.093895297829704, -36.23401539449489 }, { 147.05152062437736, -36.19536142319113 }, { 147.040978631958353, -36.173708997572177 }, { 147.038601516047038, -36.138413995009799 }, { 147.044906040581282, -36.107614840952095 }, { 147.01617394407225, -36.093042088021932 }, { 147.005321894190047, -36.090148207273927 }, { 146.990232374624384, -36.089993177643009 }, { 146.973799269720416, -36.09474740946537 }, { 146.966357863624467, -36.103015638760738 }, { 146.962327102213976, -36.111800631993518 }, { 146.956125929568032, -36.117898450952708 }, { 146.931114537006238, -36.115728040616631 }, { 146.906051466701797, -36.099604994075207 }, { 146.87876631101642, -36.087564385787829 }, { 146.84688195224021, -36.097434583739044 }, { 146.829311964875274, -36.080071302848367 }, { 146.82073367721739, -36.073611748683291 }, { 146.812723830340531, -36.06952931042936 }, { 146.785386997811656, -36.068909193704272 }, { 146.771124302344674, -36.066893812999112 }, { 146.75639651888423, -36.046326592997872 }, { 146.735829298883004, -36.04327768261895 }, { 146.710921259108829, -36.044052829874218 }, { 146.68921715664635, -36.042192477900514 }, { 146.670768671037308, -36.031495456749951 }, { 146.638005813117786, -36.000282891542227 }, { 146.624053176013263, -35.993771660533724 }, { 146.545194939794555, -35.993771660533724 }, { 146.535376417787404, -35.990154311172518 }, { 146.514550816267047, -35.976873467636409 }, { 146.504267206266491, -35.97392791094434 }, { 146.49656741775209, -35.97599496759365 }, { 146.484630162252074, -35.98540007845088 }, { 146.473209669790322, -35.987570488787057 }, { 146.464062942250962, -35.98509002008835 }, { 146.453314244256944, -35.980594170684384 }, { 146.442152134213586, -35.978682142766701 }, { 146.431920201056414, -35.983849785738997 }, { 146.385049677300685, -36.047463473660372 }, { 146.369495070640937, -36.052734469420244 }, { 146.301127150897287, -36.046068210579477 }, { 146.266607293791537, -36.035061131066385 }, { 146.243559605091605, -36.035371188529552 }, { 146.229245232781182, -36.037696628496633 }, { 146.222837356358809, -36.039505303626839 }, { 146.216222771663581, -36.055835055743216 }, { 146.198962843560366, -36.050409031251817 }, { 146.182736444231466, -36.042192477900514 }, { 146.15912031475068, -36.037644951653206 }, { 146.09685021396615, -36.033459160611784 }, { 146.076282993964981, -36.025139256271643 }, { 146.062330356860457, -36.017387790913801 }, { 146.03101443886527, -36.013873792541517 }, { 145.99225711477402, -36.01604420287768 }, { 145.98347212064175, -36.014287204590815 }, { 145.973550245847207, -36.006122328083023 }, { 145.96936445480577, -35.996200453288296 }, { 145.96631554622553, -35.985968520131095 }, { 145.959597609641946, -35.977028497267327 }, { 145.939753860052576, -35.96684824005419 }, { 145.918359816851989, -35.964057712993025 }, { 145.896138951351475, -35.967003268785817 }, { 145.829889765100575, -35.983488050533111 }, { 145.786946649068625, -35.979974053959396 }, { 145.744623650660856, -35.964936212136507 }, { 145.572592807711885, -35.843599948778603 }, { 145.536574334737679, -35.829130547736654 }, { 145.493786249235995, -35.828975519005013 }, { 145.450791457259925, -35.839569186468808 }, { 145.375963983351085, -35.872900486068559 }, { 145.334106072936891, -35.876001071492254 }, { 145.291421340222712, -35.869799899745573 }, { 145.250441928951773, -35.857242526621306 }, { 145.217937452551439, -35.851196383606265 }, { 145.120785761253899, -35.851196383606265 }, { 145.008441196703757, -35.867629490308687 }, { 144.993144973361723, -35.873985690786995 }, { 144.976401809196147, -35.88731821116653 }, { 144.971234166223837, -35.894811293206629 }, { 144.96244917209151, -35.953464043730591 }, { 144.939194777816795, -35.987673841574534 }, { 144.933923782056809, -36.005553888201376 }, { 144.945085891200847, -36.025139256271643 }, { 144.960485468229763, -36.039970391620287 }, { 144.977435337970405, -36.060175876415556 }, { 144.985858595997342, -36.081001478835176 }, { 144.975471633209338, -36.097434583739044 }, { 144.956248000344942, -36.099243258869336 }, { 144.910927769301111, -36.081311537197635 }, { 144.890153842825555, -36.076350599800307 }, { 144.872118768366363, -36.083636977164801 }, { 144.830984328364082, -36.118880303782944 }, { 144.810933873199644, -36.131592705638838 }, { 144.766905552449259, -36.136398614304625 }, { 144.740705600582999, -36.13500335122373 }, { 144.729078404344818, -36.127872002590877 }, { 144.728148228358009, -36.116554863815864 }, { 144.724479201254098, -36.111542249575123 }, { 144.717296176677166, -36.110302016125132 }, { 144.705513950808154, -36.110457044856759 }, { 144.705824009170726, -36.106581313077157 }, { 144.698020867868649, -36.097847995788356 }, { 144.681897821327311, -36.083792005896342 }, { 144.662519158832083, -36.078107598986449 }, { 144.620041131692801, -36.075162042294465 }, { 144.602781202690323, -36.066118665743829 }, { 144.49265872621919, -35.959665215477273 }, { 144.45255781499111, -35.947159519196433 }, { 144.435711298038029, -35.932173354216886 }, { 144.422585484132753, -35.913931573283449 }, { 144.37602501784022, -35.814351087432698 }, { 144.353287388402293, -35.777557468102657 }, { 144.324348586318195, -35.754199721040266 }, { 144.312669713236573, -35.751305841191623 }, { 144.288278435601285, -35.750479017992291 }, { 144.27659956341904, -35.747998549293669 }, { 144.268021274861951, -35.741797376647625 }, { 144.253293492300884, -35.724330742969371 }, { 144.238152296791043, -35.717096042448404 }, { 144.218928663926647, -35.700921319063639 }, { 144.215156284934551, -35.696477145603822 }, { 144.21107384668062, -35.689810885863693 }, { 144.201565383035984, -35.686090182815732 }, { 144.190093214630167, -35.683144627022855 }, { 144.180378046309841, -35.679113864713059 }, { 144.150974156232223, -35.650071709841498 }, { 144.100072870166741, -35.586768080282653 }, { 144.064932896336074, -35.569249769761058 }, { 144.020077753285648, -35.563720391582805 }, { 143.99842532766678, -35.55540048544411 }, { 143.980700310670727, -35.523361097936331 }, { 143.960753209193172, -35.513129163879768 }, { 143.899154901077736, -35.491735120679294 }, { 143.858433873124682, -35.470599460796407 }, { 143.835644565943937, -35.45132415108877 }, { 143.826342807874198, -35.445588066436173 }, { 143.816162550661147, -35.440833835513089 }, { 143.79476850835988, -35.436854750046635 }, { 143.788774042188265, -35.431893812649307 }, { 143.784639927090893, -35.425227552909277 }, { 143.776940138576549, -35.41840626353823 }, { 143.733790317868909, -35.401818129003459 }, { 143.65121137860217, -35.389312432722619 }, { 143.595504184770277, -35.360528660269452 }, { 143.585995722024904, -35.352932223643222 }, { 143.578864374291413, -35.342700290485951 }, { 143.576435582436147, -35.329006035799893 }, { 143.581241490202558, -35.32104786576636 }, { 143.587959425886822, -35.314536634757857 }, { 143.591370070572282, -35.305441583162533 }, { 143.591370070572282, -35.286372979029778 }, { 143.58919966023609, -35.267356051740435 }, { 143.581396518934184, -35.24942433006882 }, { 143.564601678824431, -35.233456313158314 }, { 143.547135045146206, -35.225911554274802 }, { 143.459905226844739, -35.209375094784789 }, { 143.437684361344225, -35.199556572777624 }, { 143.418357374793061, -35.188032728427658 }, { 143.406988560074012, -35.178834324044857 }, { 143.383837517687198, -35.14570973091935 }, { 143.363993768097885, -35.107210789246508 }, { 143.350196160624307, -35.066024671501424 }, { 143.34275475542762, -35.006648450565521 }, { 143.333452997357881, -34.979208266148561 }, { 143.331282587021803, -34.962826837188842 }, { 143.333194614939487, -34.955075371830986 }, { 143.342186313747334, -34.935283298185652 }, { 143.344925164864435, -34.924948012240975 }, { 143.343633253671726, -34.91859181086339 }, { 143.340274285829537, -34.911047051979878 }, { 143.337535434712436, -34.902003675429242 }, { 143.338052198649962, -34.890841567184523 }, { 143.341876255384875, -34.886965833606354 }, { 143.349110955905928, -34.882211602683284 }, { 143.35608727400853, -34.875752047618931 }, { 143.359187860331417, -34.866605320079458 }, { 143.358206008400543, -34.85911223714001 }, { 143.353400099734813, -34.845883070447314 }, { 143.351746454235467, -34.835599460446787 }, { 143.358412713975611, -34.81704762115082 }, { 143.360479770624806, -34.806247247212696 }, { 143.355467157283442, -34.801441338546908 }, { 143.328130323855362, -34.784388116018761 }, { 143.314074334862653, -34.782889500150304 }, { 143.296969436390384, -34.791106051702869 }, { 143.282706740024025, -34.792501315683211 }, { 143.276660597908176, -34.770693862231909 }, { 143.268754103818765, -34.75395069806622 }, { 143.251029086822939, -34.748007907838655 }, { 143.23221886600777, -34.743925469584809 }, { 143.221418492069688, -34.733176771590735 }, { 143.156719599429948, -34.702997735157311 }, { 143.142611932694535, -34.699018649690942 }, { 143.05011111863314, -34.692197361219272 }, { 143.012697381678834, -34.672870374668022 }, { 142.995747511938077, -34.668684583626685 }, { 142.988616164204586, -34.682275485525253 }, { 142.981381463683533, -34.690595391663948 }, { 142.96458662267446, -34.681241956750867 }, { 142.934045851934457, -34.658039238420102 }, { 142.921746861228598, -34.658039238420102 }, { 142.914925571857566, -34.66181161921088 }, { 142.909137811260962, -34.667082614970653 }, { 142.880354038807809, -34.679329928833184 }, { 142.878648715565816, -34.674834079429218 }, { 142.869191928764451, -34.66181161921088 }, { 142.864437697841538, -34.652458185197077 }, { 142.860045201225091, -34.629720553960397 }, { 142.855187615715863, -34.62083220794004 }, { 142.847074416051498, -34.614837741768412 }, { 142.817980585235773, -34.603468927049363 }, { 142.807231887241812, -34.591893405856055 }, { 142.799738804302365, -34.585433851690894 }, { 142.790023635082662, -34.582333266267185 }, { 142.779223261144637, -34.584193616442249 }, { 142.757157424375578, -34.593753756930312 }, { 142.745323520763861, -34.595975844109901 }, { 142.726099887899466, -34.603210544630969 }, { 142.716798129829726, -34.62088388388409 }, { 142.708116490283714, -34.665532322258841 }, { 142.705015903960827, -34.670544935600233 }, { 142.700158319350862, -34.675609225785124 }, { 142.695765822734586, -34.681396987281147 }, { 142.693853794816732, -34.689096774896299 }, { 142.696644321877898, -34.705219821437623 }, { 142.69886640815821, -34.712764581220412 }, { 142.700675084187765, -34.712661227533559 }, { 142.694680617116774, -34.730903008467095 }, { 142.687342563808215, -34.735657241188733 }, { 142.676438837082628, -34.733951917946641 }, { 142.659643996073612, -34.733176771590735 }, { 142.64005862890258, -34.734417005940088 }, { 142.630808546777018, -34.736329033857871 }, { 142.629206578121057, -34.743615411222265 }, { 142.632358840388065, -34.761082044900434 }, { 142.643727655107114, -34.778497002634538 }, { 142.642797479120304, -34.787643731073288 }, { 142.625537551017146, -34.795240166800312 }, { 142.608794386851457, -34.781442560225983 }, { 142.594531692283738, -34.777721856278632 }, { 142.578511997630585, -34.777411797916187 }, { 142.556601189593152, -34.774156182861489 }, { 142.547971225991205, -34.770900566907599 }, { 142.536654087216391, -34.764957777579312 }, { 142.526732212421678, -34.75767140111428 }, { 142.522494745436177, -34.750229994118882 }, { 142.52363162699794, -34.727440687837515 }, { 142.522494745436177, -34.719534193748032 }, { 142.494589472126393, -34.665532322258841 }, { 142.471645136214022, -34.643311455859049 }, { 142.467924433166047, -34.634164727420213 }, { 142.468647902678526, -34.62413949983808 }, { 142.470094842602862, -34.617783297561118 }, { 142.470404900965377, -34.611995537863748 }, { 142.467924433166047, -34.603468927049363 }, { 142.458570998252867, -34.591583346594135 }, { 142.394802280700674, -34.546934910018038 }, { 142.385758905049329, -34.533395684962898 }, { 142.371392856794841, -34.444718926737139 }, { 142.372323032781651, -34.42466847067341 }, { 142.378317498953379, -34.403171074685361 }, { 142.398057895755187, -34.373715508663778 }, { 142.40642947783806, -34.356403903717151 }, { 142.396455927099339, -34.338007094052173 }, { 142.38239993720731, -34.335681654984384 }, { 142.365036656316533, -34.340280857175827 }, { 142.344934524308769, -34.342761325874534 }, { 142.328191360143194, -34.334699802154134 }, { 142.305143671443318, -34.317129814789126 }, { 142.284886508905174, -34.297854505980666 }, { 142.272897576561832, -34.280439548246562 }, { 142.265869581615846, -34.277493991554493 }, { 142.258789910725852, -34.272843112519624 }, { 142.255637649357936, -34.263903089655841 }, { 142.253984002959328, -34.240493665750108 }, { 142.248816359987075, -34.218634534556102 }, { 142.238377720355459, -34.19625863942467 }, { 142.235122105300945, -34.191917819651707 }, { 142.224218377675925, -34.190367526939809 }, { 142.199775424995835, -34.192796318795089 }, { 142.190421990982031, -34.188197116603646 }, { 142.175952589940096, -34.171608982068861 }, { 142.164170364070969, -34.16246225363011 }, { 142.150114374178997, -34.158586520951147 }, { 142.128720330978524, -34.157811374595241 }, { 142.122932571281126, -34.159826756199863 }, { 142.105259231128628, -34.16881845500771 }, { 142.094252150716159, -34.170833835712955 }, { 142.077457309707029, -34.136675713813162 }, { 142.051257358740088, -34.115953464181018 }, { 142.025160760560652, -34.112232761133043 }, { 141.971210565015554, -34.123704928639498 }, { 141.960358515133294, -34.124635104626321 }, { 141.94940311066506, -34.124118340688895 }, { 141.938137648733459, -34.121637871990188 }, { 141.926665481226905, -34.116831964223778 }, { 141.905271438026375, -34.126598810286879 }, { 141.887391392298809, -34.13047454206648 }, { 141.840985955637279, -34.13047454206648 }, { 141.817008090950594, -34.126185398237496 }, { 141.770706007975832, -34.10742685246727 }, { 141.748536819318758, -34.103189385481784 }, { 141.706110468123597, -34.11001067485283 }, { 141.665906203208692, -34.127063896481602 }, { 141.630972934952979, -34.149078058205802 }, { 141.60451460156753, -34.170833835712955 }, { 141.581466912867654, -34.201943048133117 }, { 141.567927687812528, -34.213880303633104 }, { 141.546171910305361, -34.218634534556102 }, { 141.53733524022914, -34.215844007494937 }, { 141.529583774871298, -34.208660983817396 }, { 141.524054396693032, -34.198842461810131 }, { 141.518835076877338, -34.176569919466189 }, { 141.510670201268738, -34.172229098793849 }, { 141.459303827209908, -34.169180190213581 }, { 141.44628136609208, -34.164012547241285 }, { 141.415223829616082, -34.145770766307763 }, { 141.408970981925222, -34.140706476122958 }, { 141.391917759397131, -34.133678481176943 }, { 141.368663365122188, -34.13729583053815 }, { 141.345925734784885, -34.143652031915749 }, { 141.330784540174363, -34.144737236634185 }, { 141.321741163623813, -34.136210625819714 }, { 141.309545525705403, -34.114351494625794 }, { 141.299727003698251, -34.11001067485283 }, { 141.285774366593728, -34.105721531023832 }, { 141.274767287080635, -34.096316420166687 }, { 141.265827265116229, -34.086962986152884 }, { 141.258489210908408, -34.082673841424608 }, { 141.252753127155074, -34.081381931131205 }, { 141.241849400429544, -34.076007581684564 }, { 141.234614699009114, -34.07523243622795 }, { 141.228206821687479, -34.077557875295739 }, { 141.21415083179545, -34.086859632466115 }, { 141.206657749755379, -34.089495130795655 }, { 141.190121291164644, -34.089288425220687 }, { 141.181181268300861, -34.084379163767409 }, { 141.173016391792999, -34.077041110458865 }, { 141.158857050012784, -34.069031263581991 }, { 141.134104038970122, -34.063966974296378 }, { 141.045582310375266, -34.062209975110235 }, { 141.024084914387231, -34.051254570641916 }, { 141.000107049700546, -34.018543389565721 }, { 141.000107049700546, -33.711533704516853 }, { 141.000107049700546, -33.397444349477112 }, { 141.000107049700546, -33.083354993538094 }, { 141.000107049700546, -32.769213962554304 }, { 141.000107049700546, -32.455072930671236 }, { 141.000107049700546, -32.141035251575644 }, { 141.000107049700546, -31.826945895636626 }, { 141.000107049700546, -31.512804863753459 }, { 141.000107049700546, -31.198663831870377 }, { 141.000107049700546, -30.88457447683065 }, { 141.000107049700546, -30.570536797735059 }, { 141.000107049700546, -30.256344089008465 }, { 141.000107049700546, -29.942203058024674 }, { 141.000107049700546, -29.628165378929083 }, { 141.000107049700546, -29.314076022990065 }, { 141.000107049700546, -28.999934991106983 }, { 141.485865513382748, -28.999934991106983 }, { 141.971675653008901, -28.999934991106983 }, { 142.457434116691104, -28.999934991106983 }, { 142.943192580373193, -28.999934991106983 }, { 143.428899367212068, -28.999934991106983 }, { 143.914657830894157, -28.999934991106983 }, { 144.400519647363865, -28.999934991106983 }, { 144.886278111045954, -28.999934991106983 }, { 145.37203657382878, -28.999934991106983 }, { 145.857795038410245, -28.999934991106983 }, { 146.343553502092448, -28.999934991106983 }, { 146.829311964875274, -28.999934991106983 }, { 147.315070428557476, -28.999934991106983 }, { 147.800828892239565, -28.999934991106983 }, { 148.286587355921711, -28.999934991106983 }, { 148.772397496447297, -28.999934991106983 }, { 148.966339145635061, -28.999934991106983 }, { 148.971403435819866, -28.999728284632653 }, { 148.998171827567717, -28.977507420031401 }, { 149.024423456277475, -28.968050631431467 }, { 149.046489293046477, -28.954097996125583 }, { 149.063387485943679, -28.936321303185608 }, { 149.073877802418565, -28.915444023922547 }, { 149.083644646683069, -28.869193616891849 }, { 149.093566522377046, -28.848419692215018 }, { 149.11175662736639, -28.839738050870352 }, { 149.134597609591992, -28.836844171021625 }, { 149.157386915873474, -28.829196058451345 }, { 149.178625930342378, -28.818240654882302 }, { 149.196816034432402, -28.805579928970559 }, { 149.204670851678486, -28.795813083806721 }, { 149.210665317850101, -28.784547620975957 }, { 149.217589960008581, -28.775349215693694 }, { 149.237433709598008, -28.768114516072004 }, { 149.249939406778196, -28.760052991452326 }, { 149.260946487190665, -28.75002776476957 }, { 149.265649042169514, -28.740726006699816 }, { 149.275157504914944, -28.739330742719645 }, { 149.377166782620861, -28.691788424496167 }, { 149.399180943445742, -28.689514662271876 }, { 149.416337518761509, -28.68072966903901 }, { 149.432357213414662, -28.661040948181167 }, { 149.469357538319628, -28.594998467505221 }, { 149.484447056086765, -28.583939711148702 }, { 149.577878046134913, -28.572570895530447 }, { 149.595241327025576, -28.56538787185282 }, { 149.610175816060973, -28.577738538502743 }, { 149.614878371039993, -28.593861585943444 }, { 149.620872838110984, -28.607814223047967 }, { 149.639321323720139, -28.613808689219596 }, { 149.675339796694175, -28.610604750109133 }, { 149.690946080197364, -28.614015394794649 }, { 149.704485305252604, -28.627451267062298 }, { 149.730116815438635, -28.613808689219596 }, { 149.741744012576078, -28.609622898178174 }, { 149.759158970310182, -28.606987399848649 }, { 149.870573357974081, -28.604558607993368 }, { 149.907677036565929, -28.608899427766417 }, { 149.95087853411701, -28.600114434533552 }, { 149.971807489324135, -28.599184258546728 }, { 150.003278436050948, -28.602491549545405 }, { 150.019814894641684, -28.600114434533552 }, { 150.058468865945372, -28.583991387992128 }, { 150.1045642442445, -28.573914482667206 }, { 150.158514438890165, -28.554587497914696 }, { 150.173345575138171, -28.552107029215989 }, { 150.236132439860228, -28.556086113783152 }, { 150.258353306260062, -28.553140557990375 }, { 150.276801792768424, -28.542391859996386 }, { 150.298144159125684, -28.534950453000988 }, { 150.322432082174885, -28.543632093446377 }, { 150.361809523890315, -28.572829277948841 }, { 150.417826776084837, -28.625745944719583 }, { 150.449556106129364, -28.646468193452364 }, { 150.492137486056151, -28.654736422747717 }, { 150.62112186108493, -28.65892221378914 }, { 150.664116653061058, -28.654736422747717 }, { 150.752586704812586, -28.63597787877606 }, { 150.793514439239971, -28.635047702789251 }, { 150.834803907973878, -28.647915134276047 }, { 150.87133914578493, -28.670032646989085 }, { 150.890976189799346, -28.678662611490324 }, { 150.933557570625396, -28.687137547260022 }, { 150.948853794866693, -28.69891977312902 }, { 150.963013136646907, -28.712717379703278 }, { 150.979394565606697, -28.723672784171683 }, { 151.000530227288152, -28.727083428857114 }, { 151.02523156058794, -28.728323663206467 }, { 151.045902134276105, -28.73488657015902 }, { 151.054480421933818, -28.754368584542533 }, { 151.053550245947008, -28.788268324923209 }, { 151.055617304395071, -28.810644220054726 }, { 151.062128533604891, -28.828007500945418 }, { 151.07752811063375, -28.836947523809187 }, { 151.10078250490858, -28.840874932432214 }, { 151.140004917892668, -28.84165007878812 }, { 151.160520461050453, -28.846094252247937 }, { 151.181759474620037, -28.856946303029488 }, { 151.219121534731073, -28.883249606783949 }, { 151.287437779429865, -28.920818372469896 }, { 151.301855503628587, -28.984328708503071 }, { 151.309141880093705, -28.999934991106983 }, { 151.302113886047039, -29.010787041888449 }, { 151.302837355559461, -29.018331800771961 }, { 151.306816441025887, -29.024326266943675 }, { 151.309141880093705, -29.030682467421897 }, { 151.309141880093705, -29.06137826869211 }, { 151.315343051840273, -29.099257093639963 }, { 151.318753697425166, -29.105354912599168 }, { 151.335755243109986, -29.115018405874693 }, { 151.342628209324346, -29.122821547176699 }, { 151.344230177980307, -29.137445976950275 }, { 151.343455031624387, -29.153000583610037 }, { 151.350896437720451, -29.165454603946827 }, { 151.376114536756461, -29.170622246919109 }, { 151.384382766051829, -29.168555190269799 }, { 151.405156691628008, -29.159046725725801 }, { 151.422675002149674, -29.154550877221212 }, { 151.42536217732254, -29.148918144456815 }, { 151.426602410772603, -29.142148532828486 }, { 151.430788201814039, -29.136515801862743 }, { 151.45259565706391, -29.126335544649706 }, { 151.461845738290151, -29.120496108108895 }, { 151.467581822043371, -29.107887058141202 }, { 151.48261966386633, -29.085614515797261 }, { 151.492283157141969, -29.078121432857799 }, { 151.514038934649136, -29.066907646870376 }, { 151.520188429552377, -29.06137826869211 }, { 151.520963575908297, -29.05435027374611 }, { 151.520188429552377, -29.027271823635743 }, { 151.526544630929948, -29.008254897245678 }, { 151.549333938110806, -28.970014337091953 }, { 151.554294874608672, -28.955234876788182 }, { 151.55739546093173, -28.954563084119044 }, { 151.564423455877829, -28.950583997753299 }, { 151.572950066692215, -28.948103529953883 }, { 151.580856560781683, -28.946708265973697 }, { 151.587522821421032, -28.9461915020362 }, { 151.593052199599299, -28.944641208425026 }, { 151.610208774915066, -28.933737480800133 }, { 151.616720005024206, -28.931722100994151 }, { 151.623851352757697, -28.930636894477146 }, { 151.637493930600385, -28.930016777752073 }, { 151.643695103246444, -28.928879897089573 }, { 151.654392125296397, -28.925004163511318 }, { 151.664365676035175, -28.91993987422579 }, { 151.700435825852651, -28.896117039170036 }, { 151.715370314888162, -28.888778984962215 }, { 151.720382929128903, -28.88712533856355 }, { 151.725137160051872, -28.886660251469465 }, { 151.729167922361682, -28.888985690537183 }, { 151.762550897006292, -28.947586765117094 }, { 151.766271600953644, -28.951204116276941 }, { 151.770922479089108, -28.954149672069732 }, { 151.776090122960795, -28.956268405562469 }, { 151.782704705857498, -28.957508639911822 }, { 151.796088902181111, -28.957973727905184 }, { 151.802290073927679, -28.958955579836143 }, { 151.806785923331631, -28.961694430953244 }, { 151.81453738779021, -28.968670749955109 }, { 151.819033238093482, -28.971564629803837 }, { 151.824149205121671, -28.973580010509096 }, { 151.829626907355873, -28.971771336278181 }, { 151.833967727128936, -28.965621839576187 }, { 151.840789015600535, -28.938336683890853 }, { 151.847610304971568, -28.925314222773139 }, { 151.852726271999813, -28.919578139019919 }, { 151.858772414115663, -28.916322523965306 }, { 151.864508497868769, -28.914772231253494 }, { 151.870864700145773, -28.914307143260046 }, { 151.876910842261509, -28.914617200723214 }, { 151.897529739106119, -28.918337904670565 }, { 151.920060662969149, -28.9247457819923 }, { 151.924246454010586, -28.925469251504765 }, { 151.928742304313801, -28.925365898717203 }, { 151.933858270442784, -28.924280693998838 }, { 151.964399042082107, -28.910379733737742 }, { 151.975871209588604, -28.906917413108161 }, { 151.982744174903701, -28.906297295483796 }, { 151.99623172401482, -28.906297295483796 }, { 152.000469191899583, -28.905832207490349 }, { 152.004603306097749, -28.904643649984422 }, { 152.008944126769961, -28.902628269279163 }, { 152.013646681748924, -28.899217624593646 }, { 152.017832472790417, -28.894825127977256 }, { 152.021656528625897, -28.888055514550359 }, { 152.024343702899557, -28.882061049277937 }, { 152.025583938148202, -28.875704847900437 }, { 152.025583938148202, -28.850590101651818 }, { 152.026979201229096, -28.845215753104554 }, { 152.038606399265916, -28.820462742061892 }, { 152.042482131045404, -28.80961069128044 }, { 152.044032423757301, -28.795813083806721 }, { 152.043877395025675, -28.771628512645719 }, { 152.046202834093492, -28.746410413609709 }, { 152.04899336205392, -28.735455010940044 }, { 152.051163772390169, -28.73054574948678 }, { 152.054005976294661, -28.725894870451896 }, { 152.063927851089431, -28.713699232533514 }, { 152.066201614213071, -28.70904835349873 }, { 152.06702843561385, -28.703157241013869 }, { 152.064547967814406, -28.695819186806048 }, { 152.058450148855229, -28.686259047217277 }, { 152.030699905176505, -28.657940361858181 }, { 152.007703892420636, -28.639233493830673 }, { 152.003259718960805, -28.63365243880898 }, { 151.998402134350954, -28.625332532670285 }, { 151.99530154802801, -28.613963717951222 }, { 151.993131137691819, -28.598822524240134 }, { 151.985224643602351, -28.585490003860599 }, { 151.958404575910436, -28.560581964086396 }, { 151.959489780628815, -28.549264825311482 }, { 151.961040074240088, -28.544975680583207 }, { 151.963985630932086, -28.54006642002922 }, { 151.967551304349229, -28.536449069768736 }, { 151.973132359370879, -28.533503513076667 }, { 151.98041873583594, -28.531229749953013 }, { 151.991684197767427, -28.530454603597121 }, { 152.000882603049604, -28.528077487685891 }, { 152.010391066694297, -28.524098403118813 }, { 152.035195753681023, -28.507665296416292 }, { 152.040776808702788, -28.501825859875495 }, { 152.050388625134985, -28.489733574744676 }, { 152.163973423134962, -28.437075291291606 }, { 152.172345006117098, -28.43505990968707 }, { 152.187279494253175, -28.434233086487737 }, { 152.21828535388596, -28.437695408016694 }, { 152.225158319201057, -28.437230320023232 }, { 152.232703078084569, -28.434956556899593 }, { 152.24019616102396, -28.431080824220615 }, { 152.24980797835542, -28.423070976444464 }, { 152.267016228715931, -28.405914402028031 }, { 152.29171756381453, -28.38632903395775 }, { 152.300244174628972, -28.383073418903138 }, { 152.31311160701506, -28.380334567786036 }, { 152.357036574977883, -28.376148776744614 }, { 152.386957228992912, -28.365761813956524 }, { 152.403907098733669, -28.355736585475015 }, { 152.408557977768453, -28.351964206482904 }, { 152.412123651185595, -28.348191826591503 }, { 152.414914179145967, -28.343799329975113 }, { 152.429021844982117, -28.308504326513443 }, { 152.432587519298522, -28.304628594733842 }, { 152.447987095428118, -28.297548922944415 }, { 152.478217807805606, -28.269333591272272 }, { 152.487157830669275, -28.263390801943984 }, { 152.492170444910016, -28.261220391607722 }, { 152.500490351048825, -28.261685478701892 }, { 152.510825636993502, -28.265457858593294 }, { 152.528343948414488, -28.278221938191905 }, { 152.534855177624308, -28.287161961055673 }, { 152.537490675953904, -28.295171807932562 }, { 152.536767206441368, -28.307160740275975 }, { 152.537800735215683, -28.312690117554865 }, { 152.539971144652554, -28.31770273179562 }, { 152.543381789338071, -28.321578463575221 }, { 152.547412550748504, -28.324937433215965 }, { 152.552063429783459, -28.327986341796233 }, { 152.56415571491425, -28.332998956036988 }, { 152.574284296183237, -28.333774101493603 }, { 152.583275994991197, -28.331603692056717 }, { 152.594024692985158, -28.324472345222517 }, { 152.598313836814157, -28.318012791057441 }, { 152.600174187888513, -28.311501560048939 }, { 152.600949335143696, -28.305455417933175 }, { 152.603119744580454, -28.300649509267387 }, { 152.606323683691016, -28.296722100644445 }, { 152.610251093213435, -28.293363131902993 }, { 152.616658969635637, -28.293208103171452 }, { 152.622240024657401, -28.293569837477961 }, { 152.647044713442767, -28.316720879864661 }, { 152.655106236263691, -28.321836846892978 }, { 152.75101769411134, -28.358010348598754 }, { 152.757994013113205, -28.358630466223033 }, { 152.766934035077611, -28.358630466223033 }, { 152.781610141694614, -28.355064792805962 }, { 152.798198277128677, -28.353824557557246 }, { 152.825018344820705, -28.343954359606016 }, { 152.830909459104248, -28.339820244508658 }, { 152.84207156824823, -28.329123224257387 }, { 152.84630903523373, -28.32581593146007 }, { 152.854370558954088, -28.32364552202327 }, { 152.865687697729015, -28.322767021980511 }, { 152.887856887285466, -28.324472345222517 }, { 152.908217400812305, -28.328348077002119 }, { 152.934262323047733, -28.339820244508658 }, { 152.944184197842446, -28.341370538119833 }, { 153.000356479667744, -28.344109389236934 }, { 153.004387241977611, -28.345246269899434 }, { 153.010019972943439, -28.346331475517161 }, { 153.066140577925296, -28.34519459395537 }, { 153.075649041569989, -28.346486505148064 }, { 153.081385126222585, -28.348346856222506 }, { 153.091927117742216, -28.353204440832258 }, { 153.098748407113249, -28.354289645550693 }, { 153.10665490120266, -28.35387623529995 }, { 153.116886835259152, -28.350207208196039 }, { 153.131769646551902, -28.338890068521849 }, { 153.153525424958445, -28.307160740275975 }, { 153.162672154296388, -28.303853447478573 }, { 153.166496210132038, -28.301734713985837 }, { 153.170837029904988, -28.296463718225965 }, { 153.175694615414216, -28.288763929711635 }, { 153.180035435187165, -28.276930026999125 }, { 153.192489454624649, -28.259825127627551 }, { 153.217604200873097, -28.258584894177574 }, { 153.232331985232918, -28.260135185990094 }, { 153.312740513264032, -28.242875257886809 }, { 153.324987828025769, -28.241996758743426 }, { 153.354185011628942, -28.2500066056203 }, { 153.38250369698801, -28.237552586182886 }, { 153.472265659932248, -28.175282484499064 }, { 153.506524056145452, -28.149268634823883 }, { 153.531993035000028, -28.177911065999879 }, { 153.562510613000086, -28.174981377999941 }, { 153.570567254000025, -28.1937802059999 }, { 153.581228061000047, -28.246758721999939 }, { 153.591075066000087, -28.268487237999906 }, { 153.590830925000148, -28.318536065999922 }, { 153.563487175000148, -28.460870049999897 }, { 153.562510613000086, -28.504571221999882 }, { 153.576019727000073, -28.589613539999903 }, { 153.584239129000082, -28.608086846999925 }, { 153.620941602000073, -28.644463799999897 }, { 153.630625847000033, -28.661553643999937 }, { 153.629079623000109, -28.667250257999925 }, { 153.619883660000028, -28.686618747999944 }, { 153.61695397200009, -28.695733330999929 }, { 153.617523634000065, -28.705824476999908 }, { 153.619639519000089, -28.717543226999894 }, { 153.619639519000089, -28.729587497999901 }, { 153.601328972000033, -28.76140715899993 }, { 153.600108269000089, -28.78337981599995 }, { 153.610118035000085, -28.826104424999954 }, { 153.605967644000145, -28.867445570999905 }, { 153.582286004000025, -28.896091403999961 }, { 153.521332227000016, -28.943454684999907 }, { 153.475596550000091, -29.000176690999879 }, { 153.453786655000044, -29.035577080999886 }, { 153.438975457000083, -29.073011976999922 }, { 153.436208530000044, -29.085137627999913 }, { 153.435557488000086, -29.093845309999907 }, { 153.44507897200009, -29.140069268999909 }, { 153.445811394000089, -29.151625257999925 }, { 153.441416863000086, -29.155368747999958 }, { 153.422699415000068, -29.161065362999949 }, { 153.418304884000065, -29.164971612999935 }, { 153.415212436000104, -29.175957940999908 }, { 153.370860222000033, -29.241631768999909 }, { 153.350596550000148, -29.281019789999888 }, { 153.340342644000089, -29.322686455999943 }, { 153.349457227000016, -29.36109791499986 }, { 153.366709832000083, -29.38274505 }, { 153.369965040000068, -29.396661065999922 }, { 153.360118035000028, -29.412041924999954 }, { 153.356455925000091, -29.424004815999893 }, { 153.357595248000109, -29.443129164999874 }, { 153.36085045700014, -29.461521091999913 }, { 153.363780144000089, -29.470391533999958 }, { 153.352061394000089, -29.490004164999917 }, { 153.344004754000082, -29.535414320999919 }, { 153.32748457100007, -29.565036716999956 }, { 153.324473504000082, -29.575860283999944 }, { 153.322276238000086, -29.597588799999926 }, { 153.323252800000148, -29.602634372999958 }, { 153.32789147200009, -29.612074476999879 }, { 153.329112175000091, -29.618096612999878 }, { 153.326996290000011, -29.624444268999909 }, { 153.31771894600007, -29.635186455999929 }, { 153.315440300000148, -29.642266533999887 }, { 153.317881707000083, -29.666599216999956 }, { 153.323008660000028, -29.682305596999925 }, { 153.321625196000014, -29.697523695999905 }, { 153.296397332000083, -29.73503997199991 }, { 153.291188998000052, -29.75318775799991 }, { 153.288422071000014, -29.771254164999931 }, { 153.288096550000091, -29.78573984199997 }, { 153.294932488000086, -29.826592705999929 }, { 153.29078209700009, -29.835544528999947 }, { 153.276703321000014, -29.850762627999927 }, { 153.273773634, -29.857354424999912 }, { 153.271494988000143, -29.901625257999868 }, { 153.26734459700009, -29.924248955999929 }, { 153.260101759000065, -29.943291924999926 }, { 153.224457227000016, -29.986911716999927 }, { 153.219899936000104, -30.001397393999881 }, { 153.216563347000033, -30.007256768999923 }, { 153.20240319100003, -30.024672132999896 }, { 153.199229363000143, -30.03582122199991 }, { 153.200043165000068, -30.046563408999916 }, { 153.205577019000089, -30.073663018999952 }, { 153.203786655000101, -30.129164320999905 }, { 153.189626498000109, -30.174981377999899 }, { 153.137217644000089, -30.257989190999893 }, { 153.146494988000086, -30.286065362999892 }, { 153.132090691000087, -30.323825778999947 }, { 153.089366082000083, -30.388929945999891 }, { 153.082530144000089, -30.406426690999936 }, { 153.07545006600003, -30.438409112999935 }, { 153.05054772200009, -30.473321221999953 }, { 153.043142123000109, -30.493829033999916 }, { 153.023070386000143, -30.575506187999935 }, { 153.018077019000089, -30.633070570999891 }, { 153.007985873000109, -30.651625257999896 }, { 153.01099694100003, -30.65536874799993 }, { 152.987796365, -30.734633817999864 }, { 152.999859214000082, -30.751121505 }, { 153.005001433000075, -30.835814295999867 }, { 153.027517123000109, -30.875583591999956 }, { 153.034841342000107, -30.882500908999958 }, { 153.043142123000109, -30.88795338299991 }, { 153.054535352000073, -30.892998955999929 }, { 153.064626498000109, -30.893487237999921 }, { 153.068858269000145, -30.885511976999879 }, { 153.072113477000073, -30.881931247999901 }, { 153.079112175000148, -30.885918877999885 }, { 153.086273634, -30.894707940999936 }, { 153.089366082000083, -30.905694268999895 }, { 153.087901238000143, -30.926690362999935 }, { 153.085703972000033, -30.935153903999975 }, { 153.081879102000016, -30.943942966999941 }, { 153.063327253000068, -30.95959309 }, { 153.046599170000036, -30.992753975999861 }, { 153.039879977000112, -31.029965145999938 }, { 153.045923855000126, -31.046572868999888 }, { 153.057892177000156, -31.05163744799998 }, { 153.060919110000157, -31.06058328099995 }, { 153.05950072100012, -31.077209977999942 }, { 153.041631142000028, -31.0901026559999 }, { 153.008880172000147, -31.122248232999894 }, { 152.980615041000135, -31.16591475599995 }, { 152.97921828900013, -31.199245471999959 }, { 152.959894019000103, -31.24031530499991 }, { 152.970411879000039, -31.255676558999923 }, { 152.976735873000052, -31.320000908999916 }, { 152.93258908100006, -31.366007817999986 }, { 152.917828269000154, -31.395254330999933 }, { 152.916435393000029, -31.420656614999942 }, { 152.934354484000096, -31.438392126999929 }, { 152.93887444500001, -31.454869447999911 }, { 152.940381062000029, -31.46248367099993 }, { 152.934502086000066, -31.482810541999939 }, { 152.906297820000134, -31.505727677999928 }, { 152.876587434000101, -31.532446145999955 }, { 152.845380728000066, -31.569318604999907 }, { 152.849915115000044, -31.599780167999924 }, { 152.836561964, -31.625196178999914 }, { 152.848532646000081, -31.644220246999936 }, { 152.832146959000113, -31.655678984999909 }, { 152.812788211, -31.676031504999898 }, { 152.788948559, -31.704008613999875 }, { 152.803901470000028, -31.719226881999958 }, { 152.800929022000048, -31.733208108999918 }, { 152.77554759700007, -31.754852626999963 }, { 152.744185439000091, -31.793022631999889 }, { 152.736728193000147, -31.827349075999933 }, { 152.747215040000015, -31.842584729999956 }, { 152.715775884000095, -31.859170137999911 }, { 152.69288170700014, -31.88534921699997 }, { 152.664317254000082, -31.903497002999885 }, { 152.609255093, -31.945848262999917 }, { 152.546372674000054, -32.04367920499989 }, { 152.555345725000052, -32.071630892999892 }, { 152.528330925000091, -32.097100518999881 }, { 152.520274285000085, -32.115817966999941 }, { 152.51531009200005, -32.136488539999874 }, { 152.510082932000103, -32.161881366999893 }, { 152.51695268900005, -32.177392201999936 }, { 152.535678945000143, -32.183199517999938 }, { 152.545381547000034, -32.196888175999931 }, { 152.564787202000105, -32.20602140799987 }, { 152.569509311000104, -32.219333591999899 }, { 152.556651238000086, -32.232028903999947 }, { 152.546560092000107, -32.24627044099995 }, { 152.53998826600008, -32.259797076999874 }, { 152.533515488000091, -32.268907929999912 }, { 152.525957109000103, -32.281664572999972 }, { 152.524871412000039, -32.294425623999956 }, { 152.527042902000119, -32.312660829999913 }, { 152.539976734000049, -32.314488747999903 }, { 152.55445397200009, -32.321221612999906 }, { 152.55201256600003, -32.328057549999926 }, { 152.548350457000083, -32.332126559999978 }, { 152.54420006600003, -32.33570728999986 }, { 152.540782097000033, -32.341729424999954 }, { 152.536631707000083, -32.354587497999987 }, { 152.533946160000028, -32.369561455999929 }, { 152.524834943000144, -32.388305282999951 }, { 152.520499171000154, -32.410176412999903 }, { 152.521559969000066, -32.427494067999973 }, { 152.539886296000077, -32.442091940999973 }, { 152.402393537000137, -32.489428571999923 }, { 152.353559882000013, -32.514923347999868 }, { 152.294763900000021, -32.559588894999891 }, { 152.285929613000064, -32.588803960999968 }, { 152.264174174, -32.594256083999895 }, { 152.235861814000089, -32.60699906299989 }, { 152.210669949000078, -32.630738652999909 }, { 152.19198882, -32.652670384999908 }, { 152.187500835000094, -32.669135910999984 }, { 152.2037207300001, -32.686535898999935 }, { 152.219248894000145, -32.697198174999897 }, { 152.205577019000089, -32.697930596999925 }, { 152.202159050000091, -32.695896091999899 }, { 152.194102410000085, -32.687188408999916 }, { 152.190684441000087, -32.684258721999896 }, { 152.186045769000145, -32.683526299999954 }, { 152.17530358200014, -32.685153903999975 }, { 152.170746290000068, -32.684258721999896 }, { 152.145274285000085, -32.66659921699997 }, { 152.136729363000143, -32.663750908999944 }, { 152.135264519000089, -32.666680596999953 }, { 152.116709832000083, -32.680108330999957 }, { 152.109385613000086, -32.684258721999896 }, { 152.060883009, -32.697930596999925 }, { 152.086761915000011, -32.715915622999958 }, { 152.092295769000145, -32.718438408999887 }, { 152.16732832100007, -32.718438408999887 }, { 152.177989129000025, -32.720635674999883 }, { 152.190196160000085, -32.72527434699991 }, { 152.197764519000145, -32.729913018999923 }, { 152.194834832000083, -32.732110283999916 }, { 152.190928582000083, -32.736586195999891 }, { 152.189463738000143, -32.758558851999908 }, { 152.185069207000083, -32.766778252999899 }, { 152.174815300000148, -32.76921965899993 }, { 152.150157097000033, -32.766045830999957 }, { 152.14014733200014, -32.77019622199991 }, { 152.131195509, -32.780857028999932 }, { 152.127614780000044, -32.786553643999923 }, { 152.12256920700014, -32.790134372999901 }, { 152.109385613000086, -32.79412200299997 }, { 152.059428755000056, -32.785253865999934 }, { 151.984926879000056, -32.798745724999904 }, { 151.935188047, -32.815829072999946 }, { 151.875662482000052, -32.842087877999944 }, { 151.856219267000085, -32.855858949999927 }, { 151.834033071000079, -32.864967128999922 }, { 151.799237364000078, -32.893680377999956 }, { 151.803558790000068, -32.919366143999895 }, { 151.787852410000085, -32.931898695999891 }, { 151.772507057000155, -32.94560852899987 }, { 151.748863030000052, -32.957023378999935 }, { 151.737634974000059, -32.972001860999896 }, { 151.736035076, -32.993997022999906 }, { 151.734385613000143, -33.014825127999899 }, { 151.720535107000103, -33.019371191 }, { 151.703800128000012, -33.028521321999904 }, { 151.681488477000016, -33.049981377999956 }, { 151.670583530000044, -33.06113046699997 }, { 151.667002800000148, -33.073337497999944 }, { 151.665688671000055, -33.087343205999986 }, { 151.65291507500001, -33.110432838999955 }, { 151.646739129000025, -33.144707940999936 }, { 151.634938998000052, -33.158623955999914 }, { 151.629567905000044, -33.1742489559999 }, { 151.625987175000148, -33.191582940999893 }, { 151.61226343800007, -33.207550919999917 }, { 151.589994362000141, -33.218937254999943 }, { 151.568952752000087, -33.244224817999878 }, { 151.563181025000063, -33.265009942999953 }, { 151.576019727000016, -33.282484632999953 }, { 151.568957243, -33.292227829999902 }, { 151.53068564400013, -33.319118731999893 }, { 151.515341164000063, -33.327082411999953 }, { 151.515462610000156, -33.316666080999909 }, { 151.532258808000051, -33.302928752999961 }, { 151.540867400000025, -33.277541990999907 }, { 151.516109564000146, -33.261109454 }, { 151.491019552000012, -33.273611379999934 }, { 151.453795174, -33.304198934999903 }, { 151.452726539000139, -33.311514845999923 }, { 151.469737175000091, -33.328220309999963 }, { 151.456392368000024, -33.331088222999938 }, { 151.44270356200002, -33.33421552699987 }, { 151.444021030000044, -33.34563567499994 }, { 151.451228098000058, -33.355460507999894 }, { 151.459956624000085, -33.359611446999892 }, { 151.474545631000069, -33.363001254999872 }, { 151.488356783000143, -33.349290928999949 }, { 151.49529361000009, -33.339586503999911 }, { 151.50499521100005, -33.343743475999958 }, { 151.503829472000064, -33.360010111999927 }, { 151.489999895000096, -33.374534001999933 }, { 151.485846324000022, -33.394024524999921 }, { 151.457227378000141, -33.419805289999971 }, { 151.445300346000124, -33.435971567999985 }, { 151.451997768000069, -33.44498583499994 }, { 151.450910316000147, -33.453114441999972 }, { 151.439065499000094, -33.463584620999953 }, { 151.442760017000069, -33.478269724999876 }, { 151.447521446000053, -33.486453606999959 }, { 151.441595802000052, -33.491283239999888 }, { 151.427875703000097, -33.494413953999924 }, { 151.432465040000011, -33.509535414999903 }, { 151.430023634, -33.515069268999923 }, { 151.428884311000047, -33.521742445999891 }, { 151.424164259000065, -33.527764580999886 }, { 151.414317254000025, -33.532891533999901 }, { 151.406993035000028, -33.534600518999909 }, { 151.38648522200009, -33.533949476999865 }, { 151.380056186000047, -33.536797783999901 }, { 151.362681840000107, -33.532103319999877 }, { 151.353717429000085, -33.541796319999946 }, { 151.343109571000014, -33.548272393999937 }, { 151.320567254000025, -33.551364841999927 }, { 151.308767123000052, -33.547621351999894 }, { 151.28288821700005, -33.562107028999932 }, { 151.266449415000068, -33.561211846999939 }, { 151.25554446700005, -33.546807549999883 }, { 151.245941602000016, -33.521091403999932 }, { 151.230723504000025, -33.534926039999931 }, { 151.226817254000025, -33.554864190999922 }, { 151.23406009200005, -33.573337497999944 }, { 151.252777540000011, -33.582452080999929 }, { 151.248057488000086, -33.590101820999863 }, { 151.241953972000033, -33.595879815999922 }, { 151.234548373000052, -33.599867445999905 }, { 151.225596550000091, -33.602227471999953 }, { 151.225596550000091, -33.609063408999972 }, { 151.249522332000083, -33.606377862999892 }, { 151.28164068000001, -33.572901828999946 }, { 151.299338124000087, -33.570624204999973 }, { 151.309992612000144, -33.578874700999876 }, { 151.298736359000031, -33.606489340999886 }, { 151.291502, -33.636533019999959 }, { 151.295259821000059, -33.648780177999882 }, { 151.30909433000005, -33.637533463999958 }, { 151.317123143, -33.622147940999895 }, { 151.325471543000106, -33.592058408999932 }, { 151.340752909, -33.617465535999898 }, { 151.321341977000088, -33.66781743699994 }, { 151.309178674, -33.692972897999951 }, { 151.305674675000091, -33.720147393999966 }, { 151.304453972000033, -33.726169528999961 }, { 151.311778191000087, -33.736097914999874 }, { 151.31763756600003, -33.74675872199991 }, { 151.317149285000028, -33.757500908999916 }, { 151.308767123000052, -33.781019789999888 }, { 151.304698113000086, -33.825372002999913 }, { 151.291758660000085, -33.829847914999888 }, { 151.279144727000016, -33.827569268999909 }, { 151.266368035000085, -33.828383070999919 }, { 151.252777540000011, -33.842461846999953 }, { 151.246918165000068, -33.856377862999935 }, { 151.247325066000087, -33.867282809999921 }, { 151.254730665000068, -33.874200127999913 }, { 151.269867384000065, -33.876641533999944 }, { 151.280121290000011, -33.870700778999918 }, { 151.28467858200014, -33.860121351999879 }, { 151.287852410000028, -33.856377862999935 }, { 151.294444207000083, -33.870375257999896 }, { 151.29249108200014, -33.891778252999941 }, { 151.273692254000082, -33.937432549999883 }, { 151.281423373000109, -33.952325127999927 }, { 151.267425977000016, -33.981703382999939 }, { 151.260264519000089, -33.992608330999914 }, { 151.249359571000014, -34.003838799999912 }, { 151.241709832000083, -33.998630466999913 }, { 151.213145379000082, -33.966729424999897 }, { 151.201914910000085, -33.95916106599995 }, { 151.182302280000044, -33.963474216999956 }, { 151.177907748000052, -33.973809502999956 }, { 151.176036004000082, -33.987481377999899 }, { 151.164073113000143, -34.000746351999922 }, { 151.145355665000068, -34.00367603999986 }, { 151.12468509200005, -34.0004208309999 }, { 151.106293165000011, -34.000909112999892 }, { 151.095225457000083, -34.014418226999865 }, { 151.125498894000089, -34.020440362999878 }, { 151.132660352000016, -34.024102471999925 }, { 151.143565300000091, -34.032810153999904 }, { 151.149180535000085, -34.031996351999894 }, { 151.160329623000109, -34.01751067499994 }, { 151.221446160000085, -34.024997653999918 }, { 151.232269727000073, -34.024102471999925 }, { 151.231211785000028, -34.040459893999937 }, { 151.22584069100003, -34.047051690999908 }, { 151.179698113000143, -34.047946872999901 }, { 151.17554772200009, -34.046644789999903 }, { 151.172373894000145, -34.047946872999901 }, { 151.164073113000143, -34.054782809999921 }, { 151.158457879000025, -34.062595309999921 }, { 151.155039910000028, -34.070896091999899 }, { 151.149180535000085, -34.078301690999879 }, { 151.136078321000014, -34.082696221999953 }, { 151.146820509000065, -34.086032809999978 }, { 151.170420769000089, -34.086032809999978 }, { 151.17701256600003, -34.089532158999887 }, { 151.177093946000014, -34.100355726999879 }, { 151.168955925000091, -34.110121351999922 }, { 151.150401238000086, -34.124281507999939 }, { 151.112861003000035, -34.149470207999954 }, { 151.096117432000085, -34.162938379999915 }, { 151.068357135000099, -34.175111234999903 }, { 151.027957464, -34.200796095999934 }, { 151.009685907000062, -34.219916955999892 }, { 150.968952516000115, -34.262675193999925 }, { 150.940628388000107, -34.302159102999951 }, { 150.924918127000069, -34.330418880999957 }, { 150.928274759000089, -34.363486780999963 }, { 150.908050376000062, -34.407641400999907 }, { 150.903049563000081, -34.450860842999916 }, { 150.918867505000151, -34.486404115999932 }, { 150.897779177000075, -34.502081173999954 }, { 150.887217644000089, -34.530205987999906 }, { 150.873301629000025, -34.545505466999956 }, { 150.854991082000083, -34.5414364559999 }, { 150.867035352000016, -34.522556247999958 }, { 150.86085045700014, -34.513278903999918 }, { 150.848155144000145, -34.510511976999865 }, { 150.84131920700014, -34.510674737999921 }, { 150.835134311000047, -34.513767184999907 }, { 150.800954623000052, -34.548272393999923 }, { 150.805837436000047, -34.557224216999941 }, { 150.812185092000107, -34.561211846999925 }, { 150.820323113000086, -34.562107028999918 }, { 150.842051629000082, -34.561700127999913 }, { 150.854991082000083, -34.569919528999904 }, { 150.88233483200014, -34.592217705999943 }, { 150.897227410000028, -34.601169528999975 }, { 150.917002800000091, -34.60344817499994 }, { 150.883636915000068, -34.607028903999918 }, { 150.870453321000014, -34.626722914999874 }, { 150.847911004000025, -34.751722914999931 }, { 150.83375084700009, -34.782403252999927 }, { 150.810557488000143, -34.795179945999877 }, { 150.779307488000086, -34.806898695999877 }, { 150.753428582000083, -34.858086846999925 }, { 150.728688998000109, -34.86980559699991 }, { 150.727061394000089, -34.874118747999916 }, { 150.738780144000089, -34.883721612999892 }, { 150.754079623000052, -34.893324476999865 }, { 150.76319420700014, -34.897637627999956 }, { 150.778493686000104, -34.901625257999939 }, { 150.77686608200014, -34.910088799999883 }, { 150.764008009, -34.917413018999895 }, { 150.74577884200005, -34.918145440999922 }, { 150.754161004000025, -34.9281552059999 }, { 150.776133660000028, -34.935804945999934 }, { 150.787364129000025, -34.945489190999893 }, { 150.779795769000089, -34.952894789999888 }, { 150.787364129000025, -34.959730726999894 }, { 150.776215040000011, -34.986993096999896 }, { 150.796153191000087, -35.004001559999949 }, { 150.827647332000083, -35.012627862999949 }, { 150.851573113000086, -35.014906507999925 }, { 150.854991082000083, -35.021661065999965 }, { 150.843597852000016, -35.054131768999952 }, { 150.844737175000148, -35.077243747999901 }, { 150.832855665000011, -35.09091562299993 }, { 150.807139519000145, -35.110528252999899 }, { 150.798838738000086, -35.099379164999888 }, { 150.786143425000091, -35.089125257999953 }, { 150.778086785000085, -35.0785458309999 }, { 150.783539259, -35.066176039999874 }, { 150.792816602000073, -35.050469658999901 }, { 150.781260613000143, -35.028578382999868 }, { 150.787364129000025, -35.014906507999925 }, { 150.767588738000086, -35.007256768999895 }, { 150.748789910000028, -35.01034921699997 }, { 150.731455925000148, -35.017266533999887 }, { 150.695567254000082, -35.026136976999922 }, { 150.68702233200014, -35.038995049999954 }, { 150.677500847000033, -35.075778903999932 }, { 150.69695071700005, -35.079766533999916 }, { 150.701508009, -35.092868747999972 }, { 150.700938347000033, -35.109470309999935 }, { 150.703782730764544, -35.120441501962588 } } \n\tact := Contour{ { 148.848258498231132, -35.750479017992291 }, { 148.853529493990891, -35.749083754012034 }, { 148.857301873882307, -35.74567311022588 }, { 148.862572869642179, -35.736216322525223 }, { 148.865983515226958, -35.73208220742795 }, { 148.870324334999964, -35.728929946060106 }, { 148.876525506746702, -35.727586358023984 }, { 148.883036736855843, -35.727896417285805 }, { 148.887842644622367, -35.733167413045663 }, { 148.891408318938772, -35.742469171115332 }, { 148.892183466193956, -35.762261243861289 }, { 148.901020136270176, -35.818743584948464 }, { 148.907531366379487, -35.839775892943138 }, { 148.922724236933959, -35.867629490308687 }, { 148.92964887909244, -35.875794365917287 }, { 148.933627963659603, -35.879256686546867 }, { 148.93781375470104, -35.882357272869839 }, { 148.948149042444243, -35.887886651048106 }, { 149.006078322556561, -35.903699640126263 }, { 149.030314568762321, -35.917497246700592 }, { 149.035998976571477, -35.919357598674225 }, { 149.042406853893169, -35.919615981092619 }, { 149.04798790891482, -35.917962334693954 }, { 149.052483759218092, -35.914861749270258 }, { 149.055739374272662, -35.910624282284786 }, { 149.058529901333827, -35.905818372719722 }, { 149.065041132342344, -35.890832207740175 }, { 149.07108727355876, -35.881582126513933 }, { 149.074187859881818, -35.877551365103429 }, { 149.078063592560795, -35.873830662055369 }, { 149.082611118808074, -35.870575047000841 }, { 149.092222935240272, -35.864890639191586 }, { 149.096718784644167, -35.861479993606793 }, { 149.09950931170539, -35.856829115471285 }, { 149.101524693309955, -35.851558118812136 }, { 149.104625278733636, -35.839724216099711 }, { 149.106485629807992, -35.82742522629313 }, { 149.105968865870466, -35.815281263419607 }, { 149.096408726281709, -35.776678968959274 }, { 149.095168491932327, -35.765155124609294 }, { 149.095943638288247, -35.759470716800124 }, { 149.104005162008548, -35.731152031441042 }, { 149.104625278733636, -35.715028984899718 }, { 149.099664341336336, -35.684694919734739 }, { 149.087261997842973, -35.63038298898374 }, { 149.086435174643555, -35.610022474557567 }, { 149.090465936054159, -35.599790540501004 }, { 149.09780399026198, -35.591418958418245 }, { 149.126329380296625, -35.581962171616865 }, { 149.131393671380806, -35.571885268090597 }, { 149.130980259331409, -35.566200860281427 }, { 149.133254021555786, -35.557674248567665 }, { 149.14668989472284, -35.52873544648368 }, { 149.150255569039246, -35.518193454963949 }, { 149.151340773757624, -35.509976901612731 }, { 149.147930129072165, -35.498918145256212 }, { 149.146069777997809, -35.494990736633184 }, { 149.141212193388071, -35.488066094474661 }, { 149.137388136653158, -35.476128838974674 }, { 149.137801547803178, -35.473648370276052 }, { 149.139661899776797, -35.468532403247821 }, { 149.147930129072165, -35.456130059754457 }, { 149.146793248409608, -35.450445651945287 }, { 149.144932896436046, -35.445071302498576 }, { 149.141728957325427, -35.439128513170374 }, { 149.142659133312407, -35.434529310978931 }, { 149.14555301316102, -35.430343519937509 }, { 149.149583774571568, -35.427087904882896 }, { 149.154441360080682, -35.424142348190827 }, { 149.160332472565528, -35.418199557963263 }, { 149.166843702674669, -35.410086358298727 }, { 149.182346633390353, -35.386263523243059 }, { 149.186687453163415, -35.380682468221281 }, { 149.194955683357989, -35.374791354837143 }, { 149.200330031905423, -35.37262094450098 }, { 149.2064278508646, -35.371845798145074 }, { 149.212473992980392, -35.372724298187748 }, { 149.227356806071725, -35.380992526583825 }, { 149.23278283056311, -35.382542820194999 }, { 149.240430943133504, -35.380062350597015 }, { 149.244410027700667, -35.377116794804223 }, { 149.249112583578892, -35.366523125541789 }, { 149.263220250314248, -35.352002047656327 }, { 149.269163038743159, -35.350451755843793 }, { 149.277482944882024, -35.349056491863621 }, { 149.349933302879606, -35.359495130595775 }, { 149.359545119311804, -35.359030042602413 }, { 149.367038202251194, -35.357324721158889 }, { 149.381765984812318, -35.3487464326018 }, { 149.393083123587246, -35.340684909780776 }, { 149.404400263261437, -35.330194594205196 }, { 149.404400263261437, -35.327920831081457 }, { 149.403004999281279, -35.324045099301856 }, { 149.398509148978007, -35.321357924128904 }, { 149.349623243617771, -35.299912204984281 }, { 149.326988966967235, -35.292625827619872 }, { 149.318307325622584, -35.29148894605801 }, { 149.308643834145528, -35.289163506990207 }, { 149.258104283286002, -35.269268079658119 }, { 149.249422641941408, -35.263945407954196 }, { 149.244720086962388, -35.258364352932503 }, { 149.244720086962388, -35.252628269179283 }, { 149.245805291680767, -35.24694386226939 }, { 149.245805291680767, -35.241259453560943 }, { 149.242549676626311, -35.233766370621481 }, { 149.237123651235549, -35.230510755566868 }, { 149.229217157146081, -35.229167168430038 }, { 149.220380487069747, -35.228702080436676 }, { 149.2064278508646, -35.224619643082022 }, { 149.199296503131109, -35.220898940034047 }, { 149.194645624096268, -35.216041354524918 }, { 149.192888624910097, -35.211493829176902 }, { 149.192165155397618, -35.206429538992012 }, { 149.192165155397618, -35.203122247094058 }, { 149.193198684171932, -35.192166842625653 }, { 149.192268508185123, -35.185655612516442 }, { 149.189167921862065, -35.178524264782951 }, { 149.184982130820629, -35.174028416278347 }, { 149.180021194322649, -35.170514417906062 }, { 149.127104526652545, -35.139508559172683 }, { 149.102919957290226, -35.145864759650891 }, { 148.939519077943032, -35.248700859656978 }, { 148.82598595588712, -35.313348077252016 }, { 148.817717726591809, -35.320479424985507 }, { 148.809346145408199, -35.330866387773611 }, { 148.804178502435889, -35.339599705062341 }, { 148.801904739312249, -35.346162612014979 }, { 148.801284620788579, -35.352467135649775 }, { 148.802214796775388, -35.358099866615518 }, { 148.803765090386662, -35.363629245693147 }, { 148.805728795147786, -35.368848564609578 }, { 148.805728795147786, -35.376186618817414 }, { 148.803455032024146, -35.386263523243059 }, { 148.790225865331365, -35.414272148440872 }, { 148.7874353382702, -35.422592054579653 }, { 148.783869663953794, -35.447758477671613 }, { 148.770537143574302, -35.493285414290384 }, { 148.769451938855866, -35.506462905039015 }, { 148.772397496447297, -35.549457696115738 }, { 148.78262942870515, -35.581083672473483 }, { 148.782164340711688, -35.591987400098461 }, { 148.780148960905819, -35.606921889133858 }, { 148.773069289116449, -35.63741098392974 }, { 148.772552525178867, -35.651105238615884 }, { 148.774877964246571, -35.659786879061272 }, { 148.788365513357746, -35.669760430699341 }, { 148.791156041318231, -35.674307956946649 }, { 148.791879510830654, -35.679785659180851 }, { 148.790949334843845, -35.6922913545624 }, { 148.791156041318231, -35.699422703195182 }, { 148.792706334030072, -35.707277519541861 }, { 148.795600213878799, -35.712703545832014 }, { 148.799372592870839, -35.717096042448404 }, { 148.832445510052196, -35.744174492558756 }, { 148.837251417818607, -35.747275078881742 }, { 148.842522413578479, -35.749393813273855 }, { 148.848258498231132, -35.750479017992291 } } \n\t\n\t// Look at two contours\n\tcanberra := Point{149.128684300000030000, -35.2819998}\n\tisnsw := nsw.Contains(canberra)\n\tisact := act.Contains(canberra)\n\tif isnsw != true || isact != true {\n\t\tt.Error(\"Canberra should be in NSW and also in the sub-contour ACT state\")\n\t}\t\n\n\t// Using NSW as a multi-contour polygon\n\tnswmulti := Polygon{ Contour{ { 150.703782730764544, -35.120441501962588 }, { 150.673521763018982, -35.124264010875365 }, { 150.636418085326397, -35.14446949567072 }, { 150.613055464931449, -35.187267234778744 }, { 150.61304772200009, -35.187269789999931 }, { 150.585948113000143, -35.196221612999878 }, { 150.55396569100003, -35.213555596999953 }, { 150.548106316000087, -35.221368096999939 }, { 150.543711785000028, -35.237969658999901 }, { 150.539724155000044, -35.247735283999944 }, { 150.534434441000087, -35.254978122999958 }, { 150.52312259200005, -35.26433684699991 }, { 150.49952233200014, -35.289727471999925 }, { 150.489105665000068, -35.305759372999916 }, { 150.484629754000082, -35.324314059999921 }, { 150.485036655000101, -35.350192966999927 }, { 150.488454623000109, -35.364515882999925 }, { 150.491872592000107, -35.369398695999891 }, { 150.492035352000073, -35.373142184999921 }, { 150.485036655000101, -35.384372653999918 }, { 150.455821160000028, -35.403985283999887 }, { 150.45093834700009, -35.408461195999863 }, { 150.445485873000052, -35.425469658999916 }, { 150.43295332100007, -35.440687757999896 }, { 150.41920006600003, -35.454522393999895 }, { 150.40992272200009, -35.466892184999921 }, { 150.406993035000028, -35.487399997999972 }, { 150.409353061000104, -35.538506768999952 }, { 150.406504754000082, -35.548760674999883 }, { 150.389659050000148, -35.557875257999882 }, { 150.372325066000087, -35.578871351999908 }, { 150.332530144000089, -35.639418226999908 }, { 150.306895379000025, -35.700290622999916 }, { 150.291677280000044, -35.722832940999893 }, { 150.273692254000025, -35.730645440999893 }, { 150.253428582000083, -35.726250908999901 }, { 150.231781446000014, -35.7133114559999 }, { 150.221934441000087, -35.717705987999892 }, { 150.19092858200014, -35.726820570999877 }, { 150.21810957100007, -35.751153252999941 }, { 150.225840691000087, -35.778903903999918 }, { 150.228688998000109, -35.785251559999949 }, { 150.238536004000025, -35.799493096999953 }, { 150.240977410000085, -35.809747002999885 }, { 150.238617384, -35.833103122999972 }, { 150.232432488000143, -35.843845309999978 }, { 150.21810957100007, -35.850192966999927 }, { 150.19092858200014, -35.857191664999903 }, { 150.189300977000016, -35.85955169099995 }, { 150.152598504000025, -35.893731377999941 }, { 150.149750196000014, -35.898207289999917 }, { 150.150238477000073, -35.9125302059999 }, { 150.160817905000044, -35.939711195999905 }, { 150.163422071000014, -35.956638278999975 }, { 150.156586134, -36.025079033999944 }, { 150.148692254000025, -36.062595309999963 }, { 150.129649285000028, -36.059502862999892 }, { 150.106781446000014, -36.048597914999903 }, { 150.087738477000016, -36.06267669099995 }, { 150.09115644600007, -36.070245049999897 }, { 150.090179884000065, -36.07529062299993 }, { 150.081553582000083, -36.083754164999874 }, { 150.087657097000033, -36.082777601999894 }, { 150.092539910000028, -36.08269622199991 }, { 150.097015821000014, -36.081312757999939 }, { 150.102061394000089, -36.076348565999893 }, { 150.119151238000086, -36.085056247999958 }, { 150.135752800000091, -36.097751559999935 }, { 150.143321160000085, -36.11443450299997 }, { 150.123057488000143, -36.152601820999934 }, { 150.121104363000086, -36.17376067499994 }, { 150.124196811000104, -36.195245049999969 }, { 150.144786004000025, -36.252862237999935 }, { 150.146494988000143, -36.273532809999949 }, { 150.132823113000086, -36.282403252999899 }, { 150.132823113000086, -36.286797783999887 }, { 150.140391472000033, -36.30974700299997 }, { 150.14234459700009, -36.320000908999901 }, { 150.13819420700014, -36.330010674999883 }, { 150.12842858200014, -36.338311455999957 }, { 150.108246290000011, -36.35133228999986 }, { 150.092295769000089, -36.367852471999925 }, { 150.079274936000104, -36.386000257999925 }, { 150.070485873000052, -36.406345309999921 }, { 150.067393425000148, -36.429294528999904 }, { 150.073008660000028, -36.453057549999912 }, { 150.074229363000143, -36.463311455999929 }, { 150.070974155000101, -36.470147393999952 }, { 150.056813998000109, -36.488946221999896 }, { 150.053558790000068, -36.500909112999935 }, { 150.063649936000104, -36.54314544099995 }, { 150.065765821000014, -36.566582940999936 }, { 150.056976759000065, -36.587172132999868 }, { 150.029063347000033, -36.624281507999882 }, { 149.99537194100003, -36.686455987999892 }, { 149.989105665000068, -36.704685153999961 }, { 149.986094597000033, -36.722914320999863 }, { 149.985362175000148, -36.744805596999896 }, { 149.979502800000091, -36.769952080999957 }, { 149.965098504000025, -36.794528903999975 }, { 149.94703209700009, -36.815687757999882 }, { 149.930023634000065, -36.830498955999957 }, { 149.939952019000145, -36.852959893999952 }, { 149.93482506600003, -36.870700778999947 }, { 149.90967858200014, -36.905531507999896 }, { 149.903819207000083, -36.928399346999896 }, { 149.91138756600003, -36.938571872999944 }, { 149.926524285000028, -36.944105726999865 }, { 149.943695509000065, -36.953383070999919 }, { 149.932139519000145, -36.96550872199991 }, { 149.92310631600003, -36.983493747999944 }, { 149.920176629000025, -37.002618096999925 }, { 149.926768425000091, -37.01824309699991 }, { 149.93482506600003, -37.026625257999868 }, { 149.939952019000145, -37.033868096999896 }, { 149.94288170700014, -37.04216887799997 }, { 149.943695509000065, -37.053399346999882 }, { 149.941579623000052, -37.06218840899993 }, { 149.93685957100007, -37.06894296699997 }, { 149.932302280000101, -37.07097747199991 }, { 149.930023634000065, -37.066338799999883 }, { 149.922536655000044, -37.061781507999925 }, { 149.90577233200014, -37.07097747199991 }, { 149.89031009200005, -37.084079684999963 }, { 149.885508660000028, -37.090508721999882 }, { 149.876149936000104, -37.095879815999936 }, { 149.88209069100003, -37.107598565999922 }, { 149.896657748000052, -37.119317315999922 }, { 149.913096550000148, -37.124688408999972 }, { 149.930186394000089, -37.122816664999903 }, { 149.938975457000083, -37.11980559699991 }, { 149.946055535000028, -37.119235934999935 }, { 149.95875084700009, -37.124688408999972 }, { 149.997569207000083, -37.150485934999907 }, { 150.005869988000086, -37.158868096999953 }, { 150.011403842000107, -37.173435153999989 }, { 150.014414910000028, -37.205336195999905 }, { 150.019541863000086, -37.220879815999908 }, { 150.053558790000068, -37.268731377999941 }, { 150.053558790000068, -37.276136976999922 }, { 150.030039910000085, -37.266045830999957 }, { 150.00733483200014, -37.259372653999904 }, { 149.985362175000148, -37.259047132999882 }, { 149.964366082000083, -37.268731377999941 }, { 149.951019727000073, -37.284274997999944 }, { 149.951345248000109, -37.299737237999963 }, { 149.971690300000091, -37.337579033999901 }, { 149.957286004000025, -37.377862237999892 }, { 149.956797722000033, -37.415459893999881 }, { 149.967133009000065, -37.453708591999927 }, { 149.985362175000148, -37.495863539999874 }, { 149.972097201, -37.51026783599994 }, { 149.972075076275758, -37.510291859955558 }, { 149.761070998227979, -37.425105483031643 }, { 149.544185012228468, -37.33756560546837 }, { 149.32729902622907, -37.249974053759516 }, { 149.110413039330297, -37.16238250115147 }, { 148.89357872927485, -37.074790947644061 }, { 148.676641067331389, -36.987199395036015 }, { 148.459806757275942, -36.899607842427969 }, { 148.242972447220609, -36.812016289819923 }, { 148.216824172197789, -36.801681003875245 }, { 148.160393507953927, -36.798373711977206 }, { 148.134658644980391, -36.792792656955527 }, { 148.123289830261456, -36.788245130708219 }, { 148.122979770999621, -36.784214369297715 }, { 148.195120070634744, -36.691196791298893 }, { 148.20617882699122, -36.672489923271286 }, { 148.21403364513651, -36.65130258564578 }, { 148.217030877772743, -36.628151544158442 }, { 148.214860468335928, -36.616886082226955 }, { 148.197962273639973, -36.585466810544887 }, { 148.185404901415097, -36.581591077865923 }, { 148.171400588366396, -36.57957569806004 }, { 148.161788771934198, -36.576630140468595 }, { 148.154812452932333, -36.569860527940989 }, { 148.150316604427644, -36.562470797789103 }, { 148.147836134829788, -36.554512627755557 }, { 148.146905958842979, -36.545830987310268 }, { 148.148766310816598, -36.504283136157866 }, { 148.146595901379669, -36.499632257122983 }, { 148.141893344602124, -36.494671318826292 }, { 148.13724246556734, -36.487798353511195 }, { 148.13403852825553, -36.46650766399749 }, { 148.13098961787648, -36.458859551427125 }, { 148.120809360663486, -36.446870619083782 }, { 148.085204298839244, -36.424856459158235 }, { 148.067582636429563, -36.409715264547771 }, { 148.05993452385917, -36.388217868559735 }, { 148.06303511018217, -36.377624200196664 }, { 148.076264275975575, -36.360364272093463 }, { 148.079261508611694, -36.354421481865899 }, { 148.077814568687359, -36.341915784685696 }, { 148.074352248057721, -36.332355645096925 }, { 148.065567254824941, -36.316542656918131 }, { 148.043398065268434, -36.258510024018349 }, { 148.042312859650735, -36.247657973236883 }, { 148.031925896862617, -36.237115980817876 }, { 148.034303012773762, -36.213344821706087 }, { 148.045465122817063, -36.172572116909677 }, { 148.035956659172427, -36.151746514490057 }, { 147.999473098204817, -36.130559176864452 }, { 147.991411573585253, -36.114177747904733 }, { 147.995752395156842, -36.087047620950941 }, { 148.001333449279173, -36.070304456785252 }, { 147.996889275819456, -36.059245700428733 }, { 147.970947707270852, -36.049013767271546 }, { 147.949346959394632, -36.045293064223486 }, { 147.94066531804998, -36.042605889949897 }, { 147.929296503330875, -36.035371188529552 }, { 147.921286655554752, -36.025345960947334 }, { 147.915963982951439, -36.014183851803338 }, { 147.909711135260636, -36.005037122465211 }, { 147.898600702060662, -36.001213066629674 }, { 147.871780634368804, -35.998370863624459 }, { 147.741297641672759, -35.945970960791229 }, { 147.731634149296497, -35.944575697710235 }, { 147.713805780412372, -35.939408053838662 }, { 147.703418816724934, -35.939769789044547 }, { 147.694737177178979, -35.94390390414182 }, { 147.677942336169849, -35.95687468751683 }, { 147.672361282047575, -35.959665215477273 }, { 147.556761102442977, -35.996355482919199 }, { 147.538932732659475, -35.990671075110029 }, { 147.533661736899603, -35.972429295075969 }, { 147.520122511844477, -35.958011569977984 }, { 147.502294142960352, -35.948813164695807 }, { 147.48369062682093, -35.945970960791229 }, { 147.475629104, -35.948399753545786 }, { 147.457490675853933, -35.957649834772013 }, { 147.446741977859972, -35.959665215477273 }, { 147.419560174962044, -35.957339775510192 }, { 147.408604771393016, -35.959665215477273 }, { 147.396615839049673, -35.966693210423372 }, { 147.382198113951802, -35.97961231875351 }, { 147.369175652834144, -35.994650159677121 }, { 147.360804070751215, -36.008086032844133 }, { 147.348246697626962, -36.062449639539196 }, { 147.340288527593486, -36.076350599800307 }, { 147.324010451421145, -36.061674493183304 }, { 147.306337112167967, -36.051959323963615 }, { 147.286751744097671, -36.049323825634005 }, { 147.272023960637171, -36.049013767271546 }, { 147.266701288033971, -36.0502540016209 }, { 147.215851678811873, -36.061519463552386 }, { 147.184329055241619, -36.064258314669488 }, { 147.165260451108963, -36.059245700428733 }, { 147.154046666020804, -36.047618504190567 }, { 147.144176467170212, -36.040487155557798 }, { 147.134719680368903, -36.039350273995922 }, { 147.124591099099916, -36.04560312258603 }, { 147.097719353665184, -36.07325001347732 }, { 147.093895297829704, -36.080071302848367 }, { 147.091879918023835, -36.086169121807558 }, { 147.082578159954096, -36.097899671732492 }, { 147.079632603261985, -36.103635755485726 }, { 147.079322544899469, -36.112110691255424 }, { 147.081647983967343, -36.118931979727094 }, { 147.084593540659341, -36.125133151473776 }, { 147.086453891733697, -36.131592705638838 }, { 147.090019566050103, -36.156242363893924 }, { 147.093791945941518, -36.168024590662384 }, { 147.100096469576386, -36.179393406280624 }, { 147.108933139652663, -36.189470309806907 }, { 147.11983686727757, -36.197428480739816 }, { 147.132859328395284, -36.203371270068018 }, { 147.147897170218187, -36.207298678691046 }, { 147.176835972302229, -36.206936943485161 }, { 147.18856652222712, -36.209469089926571 }, { 147.196317986685756, -36.22032113980876 }, { 147.106917758947418, -36.241198419071807 }, { 147.093895297829704, -36.23401539449489 }, { 147.05152062437736, -36.19536142319113 }, { 147.040978631958353, -36.173708997572177 }, { 147.038601516047038, -36.138413995009799 }, { 147.044906040581282, -36.107614840952095 }, { 147.01617394407225, -36.093042088021932 }, { 147.005321894190047, -36.090148207273927 }, { 146.990232374624384, -36.089993177643009 }, { 146.973799269720416, -36.09474740946537 }, { 146.966357863624467, -36.103015638760738 }, { 146.962327102213976, -36.111800631993518 }, { 146.956125929568032, -36.117898450952708 }, { 146.931114537006238, -36.115728040616631 }, { 146.906051466701797, -36.099604994075207 }, { 146.87876631101642, -36.087564385787829 }, { 146.84688195224021, -36.097434583739044 }, { 146.829311964875274, -36.080071302848367 }, { 146.82073367721739, -36.073611748683291 }, { 146.812723830340531, -36.06952931042936 }, { 146.785386997811656, -36.068909193704272 }, { 146.771124302344674, -36.066893812999112 }, { 146.75639651888423, -36.046326592997872 }, { 146.735829298883004, -36.04327768261895 }, { 146.710921259108829, -36.044052829874218 }, { 146.68921715664635, -36.042192477900514 }, { 146.670768671037308, -36.031495456749951 }, { 146.638005813117786, -36.000282891542227 }, { 146.624053176013263, -35.993771660533724 }, { 146.545194939794555, -35.993771660533724 }, { 146.535376417787404, -35.990154311172518 }, { 146.514550816267047, -35.976873467636409 }, { 146.504267206266491, -35.97392791094434 }, { 146.49656741775209, -35.97599496759365 }, { 146.484630162252074, -35.98540007845088 }, { 146.473209669790322, -35.987570488787057 }, { 146.464062942250962, -35.98509002008835 }, { 146.453314244256944, -35.980594170684384 }, { 146.442152134213586, -35.978682142766701 }, { 146.431920201056414, -35.983849785738997 }, { 146.385049677300685, -36.047463473660372 }, { 146.369495070640937, -36.052734469420244 }, { 146.301127150897287, -36.046068210579477 }, { 146.266607293791537, -36.035061131066385 }, { 146.243559605091605, -36.035371188529552 }, { 146.229245232781182, -36.037696628496633 }, { 146.222837356358809, -36.039505303626839 }, { 146.216222771663581, -36.055835055743216 }, { 146.198962843560366, -36.050409031251817 }, { 146.182736444231466, -36.042192477900514 }, { 146.15912031475068, -36.037644951653206 }, { 146.09685021396615, -36.033459160611784 }, { 146.076282993964981, -36.025139256271643 }, { 146.062330356860457, -36.017387790913801 }, { 146.03101443886527, -36.013873792541517 }, { 145.99225711477402, -36.01604420287768 }, { 145.98347212064175, -36.014287204590815 }, { 145.973550245847207, -36.006122328083023 }, { 145.96936445480577, -35.996200453288296 }, { 145.96631554622553, -35.985968520131095 }, { 145.959597609641946, -35.977028497267327 }, { 145.939753860052576, -35.96684824005419 }, { 145.918359816851989, -35.964057712993025 }, { 145.896138951351475, -35.967003268785817 }, { 145.829889765100575, -35.983488050533111 }, { 145.786946649068625, -35.979974053959396 }, { 145.744623650660856, -35.964936212136507 }, { 145.572592807711885, -35.843599948778603 }, { 145.536574334737679, -35.829130547736654 }, { 145.493786249235995, -35.828975519005013 }, { 145.450791457259925, -35.839569186468808 }, { 145.375963983351085, -35.872900486068559 }, { 145.334106072936891, -35.876001071492254 }, { 145.291421340222712, -35.869799899745573 }, { 145.250441928951773, -35.857242526621306 }, { 145.217937452551439, -35.851196383606265 }, { 145.120785761253899, -35.851196383606265 }, { 145.008441196703757, -35.867629490308687 }, { 144.993144973361723, -35.873985690786995 }, { 144.976401809196147, -35.88731821116653 }, { 144.971234166223837, -35.894811293206629 }, { 144.96244917209151, -35.953464043730591 }, { 144.939194777816795, -35.987673841574534 }, { 144.933923782056809, -36.005553888201376 }, { 144.945085891200847, -36.025139256271643 }, { 144.960485468229763, -36.039970391620287 }, { 144.977435337970405, -36.060175876415556 }, { 144.985858595997342, -36.081001478835176 }, { 144.975471633209338, -36.097434583739044 }, { 144.956248000344942, -36.099243258869336 }, { 144.910927769301111, -36.081311537197635 }, { 144.890153842825555, -36.076350599800307 }, { 144.872118768366363, -36.083636977164801 }, { 144.830984328364082, -36.118880303782944 }, { 144.810933873199644, -36.131592705638838 }, { 144.766905552449259, -36.136398614304625 }, { 144.740705600582999, -36.13500335122373 }, { 144.729078404344818, -36.127872002590877 }, { 144.728148228358009, -36.116554863815864 }, { 144.724479201254098, -36.111542249575123 }, { 144.717296176677166, -36.110302016125132 }, { 144.705513950808154, -36.110457044856759 }, { 144.705824009170726, -36.106581313077157 }, { 144.698020867868649, -36.097847995788356 }, { 144.681897821327311, -36.083792005896342 }, { 144.662519158832083, -36.078107598986449 }, { 144.620041131692801, -36.075162042294465 }, { 144.602781202690323, -36.066118665743829 }, { 144.49265872621919, -35.959665215477273 }, { 144.45255781499111, -35.947159519196433 }, { 144.435711298038029, -35.932173354216886 }, { 144.422585484132753, -35.913931573283449 }, { 144.37602501784022, -35.814351087432698 }, { 144.353287388402293, -35.777557468102657 }, { 144.324348586318195, -35.754199721040266 }, { 144.312669713236573, -35.751305841191623 }, { 144.288278435601285, -35.750479017992291 }, { 144.27659956341904, -35.747998549293669 }, { 144.268021274861951, -35.741797376647625 }, { 144.253293492300884, -35.724330742969371 }, { 144.238152296791043, -35.717096042448404 }, { 144.218928663926647, -35.700921319063639 }, { 144.215156284934551, -35.696477145603822 }, { 144.21107384668062, -35.689810885863693 }, { 144.201565383035984, -35.686090182815732 }, { 144.190093214630167, -35.683144627022855 }, { 144.180378046309841, -35.679113864713059 }, { 144.150974156232223, -35.650071709841498 }, { 144.100072870166741, -35.586768080282653 }, { 144.064932896336074, -35.569249769761058 }, { 144.020077753285648, -35.563720391582805 }, { 143.99842532766678, -35.55540048544411 }, { 143.980700310670727, -35.523361097936331 }, { 143.960753209193172, -35.513129163879768 }, { 143.899154901077736, -35.491735120679294 }, { 143.858433873124682, -35.470599460796407 }, { 143.835644565943937, -35.45132415108877 }, { 143.826342807874198, -35.445588066436173 }, { 143.816162550661147, -35.440833835513089 }, { 143.79476850835988, -35.436854750046635 }, { 143.788774042188265, -35.431893812649307 }, { 143.784639927090893, -35.425227552909277 }, { 143.776940138576549, -35.41840626353823 }, { 143.733790317868909, -35.401818129003459 }, { 143.65121137860217, -35.389312432722619 }, { 143.595504184770277, -35.360528660269452 }, { 143.585995722024904, -35.352932223643222 }, { 143.578864374291413, -35.342700290485951 }, { 143.576435582436147, -35.329006035799893 }, { 143.581241490202558, -35.32104786576636 }, { 143.587959425886822, -35.314536634757857 }, { 143.591370070572282, -35.305441583162533 }, { 143.591370070572282, -35.286372979029778 }, { 143.58919966023609, -35.267356051740435 }, { 143.581396518934184, -35.24942433006882 }, { 143.564601678824431, -35.233456313158314 }, { 143.547135045146206, -35.225911554274802 }, { 143.459905226844739, -35.209375094784789 }, { 143.437684361344225, -35.199556572777624 }, { 143.418357374793061, -35.188032728427658 }, { 143.406988560074012, -35.178834324044857 }, { 143.383837517687198, -35.14570973091935 }, { 143.363993768097885, -35.107210789246508 }, { 143.350196160624307, -35.066024671501424 }, { 143.34275475542762, -35.006648450565521 }, { 143.333452997357881, -34.979208266148561 }, { 143.331282587021803, -34.962826837188842 }, { 143.333194614939487, -34.955075371830986 }, { 143.342186313747334, -34.935283298185652 }, { 143.344925164864435, -34.924948012240975 }, { 143.343633253671726, -34.91859181086339 }, { 143.340274285829537, -34.911047051979878 }, { 143.337535434712436, -34.902003675429242 }, { 143.338052198649962, -34.890841567184523 }, { 143.341876255384875, -34.886965833606354 }, { 143.349110955905928, -34.882211602683284 }, { 143.35608727400853, -34.875752047618931 }, { 143.359187860331417, -34.866605320079458 }, { 143.358206008400543, -34.85911223714001 }, { 143.353400099734813, -34.845883070447314 }, { 143.351746454235467, -34.835599460446787 }, { 143.358412713975611, -34.81704762115082 }, { 143.360479770624806, -34.806247247212696 }, { 143.355467157283442, -34.801441338546908 }, { 143.328130323855362, -34.784388116018761 }, { 143.314074334862653, -34.782889500150304 }, { 143.296969436390384, -34.791106051702869 }, { 143.282706740024025, -34.792501315683211 }, { 143.276660597908176, -34.770693862231909 }, { 143.268754103818765, -34.75395069806622 }, { 143.251029086822939, -34.748007907838655 }, { 143.23221886600777, -34.743925469584809 }, { 143.221418492069688, -34.733176771590735 }, { 143.156719599429948, -34.702997735157311 }, { 143.142611932694535, -34.699018649690942 }, { 143.05011111863314, -34.692197361219272 }, { 143.012697381678834, -34.672870374668022 }, { 142.995747511938077, -34.668684583626685 }, { 142.988616164204586, -34.682275485525253 }, { 142.981381463683533, -34.690595391663948 }, { 142.96458662267446, -34.681241956750867 }, { 142.934045851934457, -34.658039238420102 }, { 142.921746861228598, -34.658039238420102 }, { 142.914925571857566, -34.66181161921088 }, { 142.909137811260962, -34.667082614970653 }, { 142.880354038807809, -34.679329928833184 }, { 142.878648715565816, -34.674834079429218 }, { 142.869191928764451, -34.66181161921088 }, { 142.864437697841538, -34.652458185197077 }, { 142.860045201225091, -34.629720553960397 }, { 142.855187615715863, -34.62083220794004 }, { 142.847074416051498, -34.614837741768412 }, { 142.817980585235773, -34.603468927049363 }, { 142.807231887241812, -34.591893405856055 }, { 142.799738804302365, -34.585433851690894 }, { 142.790023635082662, -34.582333266267185 }, { 142.779223261144637, -34.584193616442249 }, { 142.757157424375578, -34.593753756930312 }, { 142.745323520763861, -34.595975844109901 }, { 142.726099887899466, -34.603210544630969 }, { 142.716798129829726, -34.62088388388409 }, { 142.708116490283714, -34.665532322258841 }, { 142.705015903960827, -34.670544935600233 }, { 142.700158319350862, -34.675609225785124 }, { 142.695765822734586, -34.681396987281147 }, { 142.693853794816732, -34.689096774896299 }, { 142.696644321877898, -34.705219821437623 }, { 142.69886640815821, -34.712764581220412 }, { 142.700675084187765, -34.712661227533559 }, { 142.694680617116774, -34.730903008467095 }, { 142.687342563808215, -34.735657241188733 }, { 142.676438837082628, -34.733951917946641 }, { 142.659643996073612, -34.733176771590735 }, { 142.64005862890258, -34.734417005940088 }, { 142.630808546777018, -34.736329033857871 }, { 142.629206578121057, -34.743615411222265 }, { 142.632358840388065, -34.761082044900434 }, { 142.643727655107114, -34.778497002634538 }, { 142.642797479120304, -34.787643731073288 }, { 142.625537551017146, -34.795240166800312 }, { 142.608794386851457, -34.781442560225983 }, { 142.594531692283738, -34.777721856278632 }, { 142.578511997630585, -34.777411797916187 }, { 142.556601189593152, -34.774156182861489 }, { 142.547971225991205, -34.770900566907599 }, { 142.536654087216391, -34.764957777579312 }, { 142.526732212421678, -34.75767140111428 }, { 142.522494745436177, -34.750229994118882 }, { 142.52363162699794, -34.727440687837515 }, { 142.522494745436177, -34.719534193748032 }, { 142.494589472126393, -34.665532322258841 }, { 142.471645136214022, -34.643311455859049 }, { 142.467924433166047, -34.634164727420213 }, { 142.468647902678526, -34.62413949983808 }, { 142.470094842602862, -34.617783297561118 }, { 142.470404900965377, -34.611995537863748 }, { 142.467924433166047, -34.603468927049363 }, { 142.458570998252867, -34.591583346594135 }, { 142.394802280700674, -34.546934910018038 }, { 142.385758905049329, -34.533395684962898 }, { 142.371392856794841, -34.444718926737139 }, { 142.372323032781651, -34.42466847067341 }, { 142.378317498953379, -34.403171074685361 }, { 142.398057895755187, -34.373715508663778 }, { 142.40642947783806, -34.356403903717151 }, { 142.396455927099339, -34.338007094052173 }, { 142.38239993720731, -34.335681654984384 }, { 142.365036656316533, -34.340280857175827 }, { 142.344934524308769, -34.342761325874534 }, { 142.328191360143194, -34.334699802154134 }, { 142.305143671443318, -34.317129814789126 }, { 142.284886508905174, -34.297854505980666 }, { 142.272897576561832, -34.280439548246562 }, { 142.265869581615846, -34.277493991554493 }, { 142.258789910725852, -34.272843112519624 }, { 142.255637649357936, -34.263903089655841 }, { 142.253984002959328, -34.240493665750108 }, { 142.248816359987075, -34.218634534556102 }, { 142.238377720355459, -34.19625863942467 }, { 142.235122105300945, -34.191917819651707 }, { 142.224218377675925, -34.190367526939809 }, { 142.199775424995835, -34.192796318795089 }, { 142.190421990982031, -34.188197116603646 }, { 142.175952589940096, -34.171608982068861 }, { 142.164170364070969, -34.16246225363011 }, { 142.150114374178997, -34.158586520951147 }, { 142.128720330978524, -34.157811374595241 }, { 142.122932571281126, -34.159826756199863 }, { 142.105259231128628, -34.16881845500771 }, { 142.094252150716159, -34.170833835712955 }, { 142.077457309707029, -34.136675713813162 }, { 142.051257358740088, -34.115953464181018 }, { 142.025160760560652, -34.112232761133043 }, { 141.971210565015554, -34.123704928639498 }, { 141.960358515133294, -34.124635104626321 }, { 141.94940311066506, -34.124118340688895 }, { 141.938137648733459, -34.121637871990188 }, { 141.926665481226905, -34.116831964223778 }, { 141.905271438026375, -34.126598810286879 }, { 141.887391392298809, -34.13047454206648 }, { 141.840985955637279, -34.13047454206648 }, { 141.817008090950594, -34.126185398237496 }, { 141.770706007975832, -34.10742685246727 }, { 141.748536819318758, -34.103189385481784 }, { 141.706110468123597, -34.11001067485283 }, { 141.665906203208692, -34.127063896481602 }, { 141.630972934952979, -34.149078058205802 }, { 141.60451460156753, -34.170833835712955 }, { 141.581466912867654, -34.201943048133117 }, { 141.567927687812528, -34.213880303633104 }, { 141.546171910305361, -34.218634534556102 }, { 141.53733524022914, -34.215844007494937 }, { 141.529583774871298, -34.208660983817396 }, { 141.524054396693032, -34.198842461810131 }, { 141.518835076877338, -34.176569919466189 }, { 141.510670201268738, -34.172229098793849 }, { 141.459303827209908, -34.169180190213581 }, { 141.44628136609208, -34.164012547241285 }, { 141.415223829616082, -34.145770766307763 }, { 141.408970981925222, -34.140706476122958 }, { 141.391917759397131, -34.133678481176943 }, { 141.368663365122188, -34.13729583053815 }, { 141.345925734784885, -34.143652031915749 }, { 141.330784540174363, -34.144737236634185 }, { 141.321741163623813, -34.136210625819714 }, { 141.309545525705403, -34.114351494625794 }, { 141.299727003698251, -34.11001067485283 }, { 141.285774366593728, -34.105721531023832 }, { 141.274767287080635, -34.096316420166687 }, { 141.265827265116229, -34.086962986152884 }, { 141.258489210908408, -34.082673841424608 }, { 141.252753127155074, -34.081381931131205 }, { 141.241849400429544, -34.076007581684564 }, { 141.234614699009114, -34.07523243622795 }, { 141.228206821687479, -34.077557875295739 }, { 141.21415083179545, -34.086859632466115 }, { 141.206657749755379, -34.089495130795655 }, { 141.190121291164644, -34.089288425220687 }, { 141.181181268300861, -34.084379163767409 }, { 141.173016391792999, -34.077041110458865 }, { 141.158857050012784, -34.069031263581991 }, { 141.134104038970122, -34.063966974296378 }, { 141.045582310375266, -34.062209975110235 }, { 141.024084914387231, -34.051254570641916 }, { 141.000107049700546, -34.018543389565721 }, { 141.000107049700546, -33.711533704516853 }, { 141.000107049700546, -33.397444349477112 }, { 141.000107049700546, -33.083354993538094 }, { 141.000107049700546, -32.769213962554304 }, { 141.000107049700546, -32.455072930671236 }, { 141.000107049700546, -32.141035251575644 }, { 141.000107049700546, -31.826945895636626 }, { 141.000107049700546, -31.512804863753459 }, { 141.000107049700546, -31.198663831870377 }, { 141.000107049700546, -30.88457447683065 }, { 141.000107049700546, -30.570536797735059 }, { 141.000107049700546, -30.256344089008465 }, { 141.000107049700546, -29.942203058024674 }, { 141.000107049700546, -29.628165378929083 }, { 141.000107049700546, -29.314076022990065 }, { 141.000107049700546, -28.999934991106983 }, { 141.485865513382748, -28.999934991106983 }, { 141.971675653008901, -28.999934991106983 }, { 142.457434116691104, -28.999934991106983 }, { 142.943192580373193, -28.999934991106983 }, { 143.428899367212068, -28.999934991106983 }, { 143.914657830894157, -28.999934991106983 }, { 144.400519647363865, -28.999934991106983 }, { 144.886278111045954, -28.999934991106983 }, { 145.37203657382878, -28.999934991106983 }, { 145.857795038410245, -28.999934991106983 }, { 146.343553502092448, -28.999934991106983 }, { 146.829311964875274, -28.999934991106983 }, { 147.315070428557476, -28.999934991106983 }, { 147.800828892239565, -28.999934991106983 }, { 148.286587355921711, -28.999934991106983 }, { 148.772397496447297, -28.999934991106983 }, { 148.966339145635061, -28.999934991106983 }, { 148.971403435819866, -28.999728284632653 }, { 148.998171827567717, -28.977507420031401 }, { 149.024423456277475, -28.968050631431467 }, { 149.046489293046477, -28.954097996125583 }, { 149.063387485943679, -28.936321303185608 }, { 149.073877802418565, -28.915444023922547 }, { 149.083644646683069, -28.869193616891849 }, { 149.093566522377046, -28.848419692215018 }, { 149.11175662736639, -28.839738050870352 }, { 149.134597609591992, -28.836844171021625 }, { 149.157386915873474, -28.829196058451345 }, { 149.178625930342378, -28.818240654882302 }, { 149.196816034432402, -28.805579928970559 }, { 149.204670851678486, -28.795813083806721 }, { 149.210665317850101, -28.784547620975957 }, { 149.217589960008581, -28.775349215693694 }, { 149.237433709598008, -28.768114516072004 }, { 149.249939406778196, -28.760052991452326 }, { 149.260946487190665, -28.75002776476957 }, { 149.265649042169514, -28.740726006699816 }, { 149.275157504914944, -28.739330742719645 }, { 149.377166782620861, -28.691788424496167 }, { 149.399180943445742, -28.689514662271876 }, { 149.416337518761509, -28.68072966903901 }, { 149.432357213414662, -28.661040948181167 }, { 149.469357538319628, -28.594998467505221 }, { 149.484447056086765, -28.583939711148702 }, { 149.577878046134913, -28.572570895530447 }, { 149.595241327025576, -28.56538787185282 }, { 149.610175816060973, -28.577738538502743 }, { 149.614878371039993, -28.593861585943444 }, { 149.620872838110984, -28.607814223047967 }, { 149.639321323720139, -28.613808689219596 }, { 149.675339796694175, -28.610604750109133 }, { 149.690946080197364, -28.614015394794649 }, { 149.704485305252604, -28.627451267062298 }, { 149.730116815438635, -28.613808689219596 }, { 149.741744012576078, -28.609622898178174 }, { 149.759158970310182, -28.606987399848649 }, { 149.870573357974081, -28.604558607993368 }, { 149.907677036565929, -28.608899427766417 }, { 149.95087853411701, -28.600114434533552 }, { 149.971807489324135, -28.599184258546728 }, { 150.003278436050948, -28.602491549545405 }, { 150.019814894641684, -28.600114434533552 }, { 150.058468865945372, -28.583991387992128 }, { 150.1045642442445, -28.573914482667206 }, { 150.158514438890165, -28.554587497914696 }, { 150.173345575138171, -28.552107029215989 }, { 150.236132439860228, -28.556086113783152 }, { 150.258353306260062, -28.553140557990375 }, { 150.276801792768424, -28.542391859996386 }, { 150.298144159125684, -28.534950453000988 }, { 150.322432082174885, -28.543632093446377 }, { 150.361809523890315, -28.572829277948841 }, { 150.417826776084837, -28.625745944719583 }, { 150.449556106129364, -28.646468193452364 }, { 150.492137486056151, -28.654736422747717 }, { 150.62112186108493, -28.65892221378914 }, { 150.664116653061058, -28.654736422747717 }, { 150.752586704812586, -28.63597787877606 }, { 150.793514439239971, -28.635047702789251 }, { 150.834803907973878, -28.647915134276047 }, { 150.87133914578493, -28.670032646989085 }, { 150.890976189799346, -28.678662611490324 }, { 150.933557570625396, -28.687137547260022 }, { 150.948853794866693, -28.69891977312902 }, { 150.963013136646907, -28.712717379703278 }, { 150.979394565606697, -28.723672784171683 }, { 151.000530227288152, -28.727083428857114 }, { 151.02523156058794, -28.728323663206467 }, { 151.045902134276105, -28.73488657015902 }, { 151.054480421933818, -28.754368584542533 }, { 151.053550245947008, -28.788268324923209 }, { 151.055617304395071, -28.810644220054726 }, { 151.062128533604891, -28.828007500945418 }, { 151.07752811063375, -28.836947523809187 }, { 151.10078250490858, -28.840874932432214 }, { 151.140004917892668, -28.84165007878812 }, { 151.160520461050453, -28.846094252247937 }, { 151.181759474620037, -28.856946303029488 }, { 151.219121534731073, -28.883249606783949 }, { 151.287437779429865, -28.920818372469896 }, { 151.301855503628587, -28.984328708503071 }, { 151.309141880093705, -28.999934991106983 }, { 151.302113886047039, -29.010787041888449 }, { 151.302837355559461, -29.018331800771961 }, { 151.306816441025887, -29.024326266943675 }, { 151.309141880093705, -29.030682467421897 }, { 151.309141880093705, -29.06137826869211 }, { 151.315343051840273, -29.099257093639963 }, { 151.318753697425166, -29.105354912599168 }, { 151.335755243109986, -29.115018405874693 }, { 151.342628209324346, -29.122821547176699 }, { 151.344230177980307, -29.137445976950275 }, { 151.343455031624387, -29.153000583610037 }, { 151.350896437720451, -29.165454603946827 }, { 151.376114536756461, -29.170622246919109 }, { 151.384382766051829, -29.168555190269799 }, { 151.405156691628008, -29.159046725725801 }, { 151.422675002149674, -29.154550877221212 }, { 151.42536217732254, -29.148918144456815 }, { 151.426602410772603, -29.142148532828486 }, { 151.430788201814039, -29.136515801862743 }, { 151.45259565706391, -29.126335544649706 }, { 151.461845738290151, -29.120496108108895 }, { 151.467581822043371, -29.107887058141202 }, { 151.48261966386633, -29.085614515797261 }, { 151.492283157141969, -29.078121432857799 }, { 151.514038934649136, -29.066907646870376 }, { 151.520188429552377, -29.06137826869211 }, { 151.520963575908297, -29.05435027374611 }, { 151.520188429552377, -29.027271823635743 }, { 151.526544630929948, -29.008254897245678 }, { 151.549333938110806, -28.970014337091953 }, { 151.554294874608672, -28.955234876788182 }, { 151.55739546093173, -28.954563084119044 }, { 151.564423455877829, -28.950583997753299 }, { 151.572950066692215, -28.948103529953883 }, { 151.580856560781683, -28.946708265973697 }, { 151.587522821421032, -28.9461915020362 }, { 151.593052199599299, -28.944641208425026 }, { 151.610208774915066, -28.933737480800133 }, { 151.616720005024206, -28.931722100994151 }, { 151.623851352757697, -28.930636894477146 }, { 151.637493930600385, -28.930016777752073 }, { 151.643695103246444, -28.928879897089573 }, { 151.654392125296397, -28.925004163511318 }, { 151.664365676035175, -28.91993987422579 }, { 151.700435825852651, -28.896117039170036 }, { 151.715370314888162, -28.888778984962215 }, { 151.720382929128903, -28.88712533856355 }, { 151.725137160051872, -28.886660251469465 }, { 151.729167922361682, -28.888985690537183 }, { 151.762550897006292, -28.947586765117094 }, { 151.766271600953644, -28.951204116276941 }, { 151.770922479089108, -28.954149672069732 }, { 151.776090122960795, -28.956268405562469 }, { 151.782704705857498, -28.957508639911822 }, { 151.796088902181111, -28.957973727905184 }, { 151.802290073927679, -28.958955579836143 }, { 151.806785923331631, -28.961694430953244 }, { 151.81453738779021, -28.968670749955109 }, { 151.819033238093482, -28.971564629803837 }, { 151.824149205121671, -28.973580010509096 }, { 151.829626907355873, -28.971771336278181 }, { 151.833967727128936, -28.965621839576187 }, { 151.840789015600535, -28.938336683890853 }, { 151.847610304971568, -28.925314222773139 }, { 151.852726271999813, -28.919578139019919 }, { 151.858772414115663, -28.916322523965306 }, { 151.864508497868769, -28.914772231253494 }, { 151.870864700145773, -28.914307143260046 }, { 151.876910842261509, -28.914617200723214 }, { 151.897529739106119, -28.918337904670565 }, { 151.920060662969149, -28.9247457819923 }, { 151.924246454010586, -28.925469251504765 }, { 151.928742304313801, -28.925365898717203 }, { 151.933858270442784, -28.924280693998838 }, { 151.964399042082107, -28.910379733737742 }, { 151.975871209588604, -28.906917413108161 }, { 151.982744174903701, -28.906297295483796 }, { 151.99623172401482, -28.906297295483796 }, { 152.000469191899583, -28.905832207490349 }, { 152.004603306097749, -28.904643649984422 }, { 152.008944126769961, -28.902628269279163 }, { 152.013646681748924, -28.899217624593646 }, { 152.017832472790417, -28.894825127977256 }, { 152.021656528625897, -28.888055514550359 }, { 152.024343702899557, -28.882061049277937 }, { 152.025583938148202, -28.875704847900437 }, { 152.025583938148202, -28.850590101651818 }, { 152.026979201229096, -28.845215753104554 }, { 152.038606399265916, -28.820462742061892 }, { 152.042482131045404, -28.80961069128044 }, { 152.044032423757301, -28.795813083806721 }, { 152.043877395025675, -28.771628512645719 }, { 152.046202834093492, -28.746410413609709 }, { 152.04899336205392, -28.735455010940044 }, { 152.051163772390169, -28.73054574948678 }, { 152.054005976294661, -28.725894870451896 }, { 152.063927851089431, -28.713699232533514 }, { 152.066201614213071, -28.70904835349873 }, { 152.06702843561385, -28.703157241013869 }, { 152.064547967814406, -28.695819186806048 }, { 152.058450148855229, -28.686259047217277 }, { 152.030699905176505, -28.657940361858181 }, { 152.007703892420636, -28.639233493830673 }, { 152.003259718960805, -28.63365243880898 }, { 151.998402134350954, -28.625332532670285 }, { 151.99530154802801, -28.613963717951222 }, { 151.993131137691819, -28.598822524240134 }, { 151.985224643602351, -28.585490003860599 }, { 151.958404575910436, -28.560581964086396 }, { 151.959489780628815, -28.549264825311482 }, { 151.961040074240088, -28.544975680583207 }, { 151.963985630932086, -28.54006642002922 }, { 151.967551304349229, -28.536449069768736 }, { 151.973132359370879, -28.533503513076667 }, { 151.98041873583594, -28.531229749953013 }, { 151.991684197767427, -28.530454603597121 }, { 152.000882603049604, -28.528077487685891 }, { 152.010391066694297, -28.524098403118813 }, { 152.035195753681023, -28.507665296416292 }, { 152.040776808702788, -28.501825859875495 }, { 152.050388625134985, -28.489733574744676 }, { 152.163973423134962, -28.437075291291606 }, { 152.172345006117098, -28.43505990968707 }, { 152.187279494253175, -28.434233086487737 }, { 152.21828535388596, -28.437695408016694 }, { 152.225158319201057, -28.437230320023232 }, { 152.232703078084569, -28.434956556899593 }, { 152.24019616102396, -28.431080824220615 }, { 152.24980797835542, -28.423070976444464 }, { 152.267016228715931, -28.405914402028031 }, { 152.29171756381453, -28.38632903395775 }, { 152.300244174628972, -28.383073418903138 }, { 152.31311160701506, -28.380334567786036 }, { 152.357036574977883, -28.376148776744614 }, { 152.386957228992912, -28.365761813956524 }, { 152.403907098733669, -28.355736585475015 }, { 152.408557977768453, -28.351964206482904 }, { 152.412123651185595, -28.348191826591503 }, { 152.414914179145967, -28.343799329975113 }, { 152.429021844982117, -28.308504326513443 }, { 152.432587519298522, -28.304628594733842 }, { 152.447987095428118, -28.297548922944415 }, { 152.478217807805606, -28.269333591272272 }, { 152.487157830669275, -28.263390801943984 }, { 152.492170444910016, -28.261220391607722 }, { 152.500490351048825, -28.261685478701892 }, { 152.510825636993502, -28.265457858593294 }, { 152.528343948414488, -28.278221938191905 }, { 152.534855177624308, -28.287161961055673 }, { 152.537490675953904, -28.295171807932562 }, { 152.536767206441368, -28.307160740275975 }, { 152.537800735215683, -28.312690117554865 }, { 152.539971144652554, -28.31770273179562 }, { 152.543381789338071, -28.321578463575221 }, { 152.547412550748504, -28.324937433215965 }, { 152.552063429783459, -28.327986341796233 }, { 152.56415571491425, -28.332998956036988 }, { 152.574284296183237, -28.333774101493603 }, { 152.583275994991197, -28.331603692056717 }, { 152.594024692985158, -28.324472345222517 }, { 152.598313836814157, -28.318012791057441 }, { 152.600174187888513, -28.311501560048939 }, { 152.600949335143696, -28.305455417933175 }, { 152.603119744580454, -28.300649509267387 }, { 152.606323683691016, -28.296722100644445 }, { 152.610251093213435, -28.293363131902993 }, { 152.616658969635637, -28.293208103171452 }, { 152.622240024657401, -28.293569837477961 }, { 152.647044713442767, -28.316720879864661 }, { 152.655106236263691, -28.321836846892978 }, { 152.75101769411134, -28.358010348598754 }, { 152.757994013113205, -28.358630466223033 }, { 152.766934035077611, -28.358630466223033 }, { 152.781610141694614, -28.355064792805962 }, { 152.798198277128677, -28.353824557557246 }, { 152.825018344820705, -28.343954359606016 }, { 152.830909459104248, -28.339820244508658 }, { 152.84207156824823, -28.329123224257387 }, { 152.84630903523373, -28.32581593146007 }, { 152.854370558954088, -28.32364552202327 }, { 152.865687697729015, -28.322767021980511 }, { 152.887856887285466, -28.324472345222517 }, { 152.908217400812305, -28.328348077002119 }, { 152.934262323047733, -28.339820244508658 }, { 152.944184197842446, -28.341370538119833 }, { 153.000356479667744, -28.344109389236934 }, { 153.004387241977611, -28.345246269899434 }, { 153.010019972943439, -28.346331475517161 }, { 153.066140577925296, -28.34519459395537 }, { 153.075649041569989, -28.346486505148064 }, { 153.081385126222585, -28.348346856222506 }, { 153.091927117742216, -28.353204440832258 }, { 153.098748407113249, -28.354289645550693 }, { 153.10665490120266, -28.35387623529995 }, { 153.116886835259152, -28.350207208196039 }, { 153.131769646551902, -28.338890068521849 }, { 153.153525424958445, -28.307160740275975 }, { 153.162672154296388, -28.303853447478573 }, { 153.166496210132038, -28.301734713985837 }, { 153.170837029904988, -28.296463718225965 }, { 153.175694615414216, -28.288763929711635 }, { 153.180035435187165, -28.276930026999125 }, { 153.192489454624649, -28.259825127627551 }, { 153.217604200873097, -28.258584894177574 }, { 153.232331985232918, -28.260135185990094 }, { 153.312740513264032, -28.242875257886809 }, { 153.324987828025769, -28.241996758743426 }, { 153.354185011628942, -28.2500066056203 }, { 153.38250369698801, -28.237552586182886 }, { 153.472265659932248, -28.175282484499064 }, { 153.506524056145452, -28.149268634823883 }, { 153.531993035000028, -28.177911065999879 }, { 153.562510613000086, -28.174981377999941 }, { 153.570567254000025, -28.1937802059999 }, { 153.581228061000047, -28.246758721999939 }, { 153.591075066000087, -28.268487237999906 }, { 153.590830925000148, -28.318536065999922 }, { 153.563487175000148, -28.460870049999897 }, { 153.562510613000086, -28.504571221999882 }, { 153.576019727000073, -28.589613539999903 }, { 153.584239129000082, -28.608086846999925 }, { 153.620941602000073, -28.644463799999897 }, { 153.630625847000033, -28.661553643999937 }, { 153.629079623000109, -28.667250257999925 }, { 153.619883660000028, -28.686618747999944 }, { 153.61695397200009, -28.695733330999929 }, { 153.617523634000065, -28.705824476999908 }, { 153.619639519000089, -28.717543226999894 }, { 153.619639519000089, -28.729587497999901 }, { 153.601328972000033, -28.76140715899993 }, { 153.600108269000089, -28.78337981599995 }, { 153.610118035000085, -28.826104424999954 }, { 153.605967644000145, -28.867445570999905 }, { 153.582286004000025, -28.896091403999961 }, { 153.521332227000016, -28.943454684999907 }, { 153.475596550000091, -29.000176690999879 }, { 153.453786655000044, -29.035577080999886 }, { 153.438975457000083, -29.073011976999922 }, { 153.436208530000044, -29.085137627999913 }, { 153.435557488000086, -29.093845309999907 }, { 153.44507897200009, -29.140069268999909 }, { 153.445811394000089, -29.151625257999925 }, { 153.441416863000086, -29.155368747999958 }, { 153.422699415000068, -29.161065362999949 }, { 153.418304884000065, -29.164971612999935 }, { 153.415212436000104, -29.175957940999908 }, { 153.370860222000033, -29.241631768999909 }, { 153.350596550000148, -29.281019789999888 }, { 153.340342644000089, -29.322686455999943 }, { 153.349457227000016, -29.36109791499986 }, { 153.366709832000083, -29.38274505 }, { 153.369965040000068, -29.396661065999922 }, { 153.360118035000028, -29.412041924999954 }, { 153.356455925000091, -29.424004815999893 }, { 153.357595248000109, -29.443129164999874 }, { 153.36085045700014, -29.461521091999913 }, { 153.363780144000089, -29.470391533999958 }, { 153.352061394000089, -29.490004164999917 }, { 153.344004754000082, -29.535414320999919 }, { 153.32748457100007, -29.565036716999956 }, { 153.324473504000082, -29.575860283999944 }, { 153.322276238000086, -29.597588799999926 }, { 153.323252800000148, -29.602634372999958 }, { 153.32789147200009, -29.612074476999879 }, { 153.329112175000091, -29.618096612999878 }, { 153.326996290000011, -29.624444268999909 }, { 153.31771894600007, -29.635186455999929 }, { 153.315440300000148, -29.642266533999887 }, { 153.317881707000083, -29.666599216999956 }, { 153.323008660000028, -29.682305596999925 }, { 153.321625196000014, -29.697523695999905 }, { 153.296397332000083, -29.73503997199991 }, { 153.291188998000052, -29.75318775799991 }, { 153.288422071000014, -29.771254164999931 }, { 153.288096550000091, -29.78573984199997 }, { 153.294932488000086, -29.826592705999929 }, { 153.29078209700009, -29.835544528999947 }, { 153.276703321000014, -29.850762627999927 }, { 153.273773634, -29.857354424999912 }, { 153.271494988000143, -29.901625257999868 }, { 153.26734459700009, -29.924248955999929 }, { 153.260101759000065, -29.943291924999926 }, { 153.224457227000016, -29.986911716999927 }, { 153.219899936000104, -30.001397393999881 }, { 153.216563347000033, -30.007256768999923 }, { 153.20240319100003, -30.024672132999896 }, { 153.199229363000143, -30.03582122199991 }, { 153.200043165000068, -30.046563408999916 }, { 153.205577019000089, -30.073663018999952 }, { 153.203786655000101, -30.129164320999905 }, { 153.189626498000109, -30.174981377999899 }, { 153.137217644000089, -30.257989190999893 }, { 153.146494988000086, -30.286065362999892 }, { 153.132090691000087, -30.323825778999947 }, { 153.089366082000083, -30.388929945999891 }, { 153.082530144000089, -30.406426690999936 }, { 153.07545006600003, -30.438409112999935 }, { 153.05054772200009, -30.473321221999953 }, { 153.043142123000109, -30.493829033999916 }, { 153.023070386000143, -30.575506187999935 }, { 153.018077019000089, -30.633070570999891 }, { 153.007985873000109, -30.651625257999896 }, { 153.01099694100003, -30.65536874799993 }, { 152.987796365, -30.734633817999864 }, { 152.999859214000082, -30.751121505 }, { 153.005001433000075, -30.835814295999867 }, { 153.027517123000109, -30.875583591999956 }, { 153.034841342000107, -30.882500908999958 }, { 153.043142123000109, -30.88795338299991 }, { 153.054535352000073, -30.892998955999929 }, { 153.064626498000109, -30.893487237999921 }, { 153.068858269000145, -30.885511976999879 }, { 153.072113477000073, -30.881931247999901 }, { 153.079112175000148, -30.885918877999885 }, { 153.086273634, -30.894707940999936 }, { 153.089366082000083, -30.905694268999895 }, { 153.087901238000143, -30.926690362999935 }, { 153.085703972000033, -30.935153903999975 }, { 153.081879102000016, -30.943942966999941 }, { 153.063327253000068, -30.95959309 }, { 153.046599170000036, -30.992753975999861 }, { 153.039879977000112, -31.029965145999938 }, { 153.045923855000126, -31.046572868999888 }, { 153.057892177000156, -31.05163744799998 }, { 153.060919110000157, -31.06058328099995 }, { 153.05950072100012, -31.077209977999942 }, { 153.041631142000028, -31.0901026559999 }, { 153.008880172000147, -31.122248232999894 }, { 152.980615041000135, -31.16591475599995 }, { 152.97921828900013, -31.199245471999959 }, { 152.959894019000103, -31.24031530499991 }, { 152.970411879000039, -31.255676558999923 }, { 152.976735873000052, -31.320000908999916 }, { 152.93258908100006, -31.366007817999986 }, { 152.917828269000154, -31.395254330999933 }, { 152.916435393000029, -31.420656614999942 }, { 152.934354484000096, -31.438392126999929 }, { 152.93887444500001, -31.454869447999911 }, { 152.940381062000029, -31.46248367099993 }, { 152.934502086000066, -31.482810541999939 }, { 152.906297820000134, -31.505727677999928 }, { 152.876587434000101, -31.532446145999955 }, { 152.845380728000066, -31.569318604999907 }, { 152.849915115000044, -31.599780167999924 }, { 152.836561964, -31.625196178999914 }, { 152.848532646000081, -31.644220246999936 }, { 152.832146959000113, -31.655678984999909 }, { 152.812788211, -31.676031504999898 }, { 152.788948559, -31.704008613999875 }, { 152.803901470000028, -31.719226881999958 }, { 152.800929022000048, -31.733208108999918 }, { 152.77554759700007, -31.754852626999963 }, { 152.744185439000091, -31.793022631999889 }, { 152.736728193000147, -31.827349075999933 }, { 152.747215040000015, -31.842584729999956 }, { 152.715775884000095, -31.859170137999911 }, { 152.69288170700014, -31.88534921699997 }, { 152.664317254000082, -31.903497002999885 }, { 152.609255093, -31.945848262999917 }, { 152.546372674000054, -32.04367920499989 }, { 152.555345725000052, -32.071630892999892 }, { 152.528330925000091, -32.097100518999881 }, { 152.520274285000085, -32.115817966999941 }, { 152.51531009200005, -32.136488539999874 }, { 152.510082932000103, -32.161881366999893 }, { 152.51695268900005, -32.177392201999936 }, { 152.535678945000143, -32.183199517999938 }, { 152.545381547000034, -32.196888175999931 }, { 152.564787202000105, -32.20602140799987 }, { 152.569509311000104, -32.219333591999899 }, { 152.556651238000086, -32.232028903999947 }, { 152.546560092000107, -32.24627044099995 }, { 152.53998826600008, -32.259797076999874 }, { 152.533515488000091, -32.268907929999912 }, { 152.525957109000103, -32.281664572999972 }, { 152.524871412000039, -32.294425623999956 }, { 152.527042902000119, -32.312660829999913 }, { 152.539976734000049, -32.314488747999903 }, { 152.55445397200009, -32.321221612999906 }, { 152.55201256600003, -32.328057549999926 }, { 152.548350457000083, -32.332126559999978 }, { 152.54420006600003, -32.33570728999986 }, { 152.540782097000033, -32.341729424999954 }, { 152.536631707000083, -32.354587497999987 }, { 152.533946160000028, -32.369561455999929 }, { 152.524834943000144, -32.388305282999951 }, { 152.520499171000154, -32.410176412999903 }, { 152.521559969000066, -32.427494067999973 }, { 152.539886296000077, -32.442091940999973 }, { 152.402393537000137, -32.489428571999923 }, { 152.353559882000013, -32.514923347999868 }, { 152.294763900000021, -32.559588894999891 }, { 152.285929613000064, -32.588803960999968 }, { 152.264174174, -32.594256083999895 }, { 152.235861814000089, -32.60699906299989 }, { 152.210669949000078, -32.630738652999909 }, { 152.19198882, -32.652670384999908 }, { 152.187500835000094, -32.669135910999984 }, { 152.2037207300001, -32.686535898999935 }, { 152.219248894000145, -32.697198174999897 }, { 152.205577019000089, -32.697930596999925 }, { 152.202159050000091, -32.695896091999899 }, { 152.194102410000085, -32.687188408999916 }, { 152.190684441000087, -32.684258721999896 }, { 152.186045769000145, -32.683526299999954 }, { 152.17530358200014, -32.685153903999975 }, { 152.170746290000068, -32.684258721999896 }, { 152.145274285000085, -32.66659921699997 }, { 152.136729363000143, -32.663750908999944 }, { 152.135264519000089, -32.666680596999953 }, { 152.116709832000083, -32.680108330999957 }, { 152.109385613000086, -32.684258721999896 }, { 152.060883009, -32.697930596999925 }, { 152.086761915000011, -32.715915622999958 }, { 152.092295769000145, -32.718438408999887 }, { 152.16732832100007, -32.718438408999887 }, { 152.177989129000025, -32.720635674999883 }, { 152.190196160000085, -32.72527434699991 }, { 152.197764519000145, -32.729913018999923 }, { 152.194834832000083, -32.732110283999916 }, { 152.190928582000083, -32.736586195999891 }, { 152.189463738000143, -32.758558851999908 }, { 152.185069207000083, -32.766778252999899 }, { 152.174815300000148, -32.76921965899993 }, { 152.150157097000033, -32.766045830999957 }, { 152.14014733200014, -32.77019622199991 }, { 152.131195509, -32.780857028999932 }, { 152.127614780000044, -32.786553643999923 }, { 152.12256920700014, -32.790134372999901 }, { 152.109385613000086, -32.79412200299997 }, { 152.059428755000056, -32.785253865999934 }, { 151.984926879000056, -32.798745724999904 }, { 151.935188047, -32.815829072999946 }, { 151.875662482000052, -32.842087877999944 }, { 151.856219267000085, -32.855858949999927 }, { 151.834033071000079, -32.864967128999922 }, { 151.799237364000078, -32.893680377999956 }, { 151.803558790000068, -32.919366143999895 }, { 151.787852410000085, -32.931898695999891 }, { 151.772507057000155, -32.94560852899987 }, { 151.748863030000052, -32.957023378999935 }, { 151.737634974000059, -32.972001860999896 }, { 151.736035076, -32.993997022999906 }, { 151.734385613000143, -33.014825127999899 }, { 151.720535107000103, -33.019371191 }, { 151.703800128000012, -33.028521321999904 }, { 151.681488477000016, -33.049981377999956 }, { 151.670583530000044, -33.06113046699997 }, { 151.667002800000148, -33.073337497999944 }, { 151.665688671000055, -33.087343205999986 }, { 151.65291507500001, -33.110432838999955 }, { 151.646739129000025, -33.144707940999936 }, { 151.634938998000052, -33.158623955999914 }, { 151.629567905000044, -33.1742489559999 }, { 151.625987175000148, -33.191582940999893 }, { 151.61226343800007, -33.207550919999917 }, { 151.589994362000141, -33.218937254999943 }, { 151.568952752000087, -33.244224817999878 }, { 151.563181025000063, -33.265009942999953 }, { 151.576019727000016, -33.282484632999953 }, { 151.568957243, -33.292227829999902 }, { 151.53068564400013, -33.319118731999893 }, { 151.515341164000063, -33.327082411999953 }, { 151.515462610000156, -33.316666080999909 }, { 151.532258808000051, -33.302928752999961 }, { 151.540867400000025, -33.277541990999907 }, { 151.516109564000146, -33.261109454 }, { 151.491019552000012, -33.273611379999934 }, { 151.453795174, -33.304198934999903 }, { 151.452726539000139, -33.311514845999923 }, { 151.469737175000091, -33.328220309999963 }, { 151.456392368000024, -33.331088222999938 }, { 151.44270356200002, -33.33421552699987 }, { 151.444021030000044, -33.34563567499994 }, { 151.451228098000058, -33.355460507999894 }, { 151.459956624000085, -33.359611446999892 }, { 151.474545631000069, -33.363001254999872 }, { 151.488356783000143, -33.349290928999949 }, { 151.49529361000009, -33.339586503999911 }, { 151.50499521100005, -33.343743475999958 }, { 151.503829472000064, -33.360010111999927 }, { 151.489999895000096, -33.374534001999933 }, { 151.485846324000022, -33.394024524999921 }, { 151.457227378000141, -33.419805289999971 }, { 151.445300346000124, -33.435971567999985 }, { 151.451997768000069, -33.44498583499994 }, { 151.450910316000147, -33.453114441999972 }, { 151.439065499000094, -33.463584620999953 }, { 151.442760017000069, -33.478269724999876 }, { 151.447521446000053, -33.486453606999959 }, { 151.441595802000052, -33.491283239999888 }, { 151.427875703000097, -33.494413953999924 }, { 151.432465040000011, -33.509535414999903 }, { 151.430023634, -33.515069268999923 }, { 151.428884311000047, -33.521742445999891 }, { 151.424164259000065, -33.527764580999886 }, { 151.414317254000025, -33.532891533999901 }, { 151.406993035000028, -33.534600518999909 }, { 151.38648522200009, -33.533949476999865 }, { 151.380056186000047, -33.536797783999901 }, { 151.362681840000107, -33.532103319999877 }, { 151.353717429000085, -33.541796319999946 }, { 151.343109571000014, -33.548272393999937 }, { 151.320567254000025, -33.551364841999927 }, { 151.308767123000052, -33.547621351999894 }, { 151.28288821700005, -33.562107028999932 }, { 151.266449415000068, -33.561211846999939 }, { 151.25554446700005, -33.546807549999883 }, { 151.245941602000016, -33.521091403999932 }, { 151.230723504000025, -33.534926039999931 }, { 151.226817254000025, -33.554864190999922 }, { 151.23406009200005, -33.573337497999944 }, { 151.252777540000011, -33.582452080999929 }, { 151.248057488000086, -33.590101820999863 }, { 151.241953972000033, -33.595879815999922 }, { 151.234548373000052, -33.599867445999905 }, { 151.225596550000091, -33.602227471999953 }, { 151.225596550000091, -33.609063408999972 }, { 151.249522332000083, -33.606377862999892 }, { 151.28164068000001, -33.572901828999946 }, { 151.299338124000087, -33.570624204999973 }, { 151.309992612000144, -33.578874700999876 }, { 151.298736359000031, -33.606489340999886 }, { 151.291502, -33.636533019999959 }, { 151.295259821000059, -33.648780177999882 }, { 151.30909433000005, -33.637533463999958 }, { 151.317123143, -33.622147940999895 }, { 151.325471543000106, -33.592058408999932 }, { 151.340752909, -33.617465535999898 }, { 151.321341977000088, -33.66781743699994 }, { 151.309178674, -33.692972897999951 }, { 151.305674675000091, -33.720147393999966 }, { 151.304453972000033, -33.726169528999961 }, { 151.311778191000087, -33.736097914999874 }, { 151.31763756600003, -33.74675872199991 }, { 151.317149285000028, -33.757500908999916 }, { 151.308767123000052, -33.781019789999888 }, { 151.304698113000086, -33.825372002999913 }, { 151.291758660000085, -33.829847914999888 }, { 151.279144727000016, -33.827569268999909 }, { 151.266368035000085, -33.828383070999919 }, { 151.252777540000011, -33.842461846999953 }, { 151.246918165000068, -33.856377862999935 }, { 151.247325066000087, -33.867282809999921 }, { 151.254730665000068, -33.874200127999913 }, { 151.269867384000065, -33.876641533999944 }, { 151.280121290000011, -33.870700778999918 }, { 151.28467858200014, -33.860121351999879 }, { 151.287852410000028, -33.856377862999935 }, { 151.294444207000083, -33.870375257999896 }, { 151.29249108200014, -33.891778252999941 }, { 151.273692254000082, -33.937432549999883 }, { 151.281423373000109, -33.952325127999927 }, { 151.267425977000016, -33.981703382999939 }, { 151.260264519000089, -33.992608330999914 }, { 151.249359571000014, -34.003838799999912 }, { 151.241709832000083, -33.998630466999913 }, { 151.213145379000082, -33.966729424999897 }, { 151.201914910000085, -33.95916106599995 }, { 151.182302280000044, -33.963474216999956 }, { 151.177907748000052, -33.973809502999956 }, { 151.176036004000082, -33.987481377999899 }, { 151.164073113000143, -34.000746351999922 }, { 151.145355665000068, -34.00367603999986 }, { 151.12468509200005, -34.0004208309999 }, { 151.106293165000011, -34.000909112999892 }, { 151.095225457000083, -34.014418226999865 }, { 151.125498894000089, -34.020440362999878 }, { 151.132660352000016, -34.024102471999925 }, { 151.143565300000091, -34.032810153999904 }, { 151.149180535000085, -34.031996351999894 }, { 151.160329623000109, -34.01751067499994 }, { 151.221446160000085, -34.024997653999918 }, { 151.232269727000073, -34.024102471999925 }, { 151.231211785000028, -34.040459893999937 }, { 151.22584069100003, -34.047051690999908 }, { 151.179698113000143, -34.047946872999901 }, { 151.17554772200009, -34.046644789999903 }, { 151.172373894000145, -34.047946872999901 }, { 151.164073113000143, -34.054782809999921 }, { 151.158457879000025, -34.062595309999921 }, { 151.155039910000028, -34.070896091999899 }, { 151.149180535000085, -34.078301690999879 }, { 151.136078321000014, -34.082696221999953 }, { 151.146820509000065, -34.086032809999978 }, { 151.170420769000089, -34.086032809999978 }, { 151.17701256600003, -34.089532158999887 }, { 151.177093946000014, -34.100355726999879 }, { 151.168955925000091, -34.110121351999922 }, { 151.150401238000086, -34.124281507999939 }, { 151.112861003000035, -34.149470207999954 }, { 151.096117432000085, -34.162938379999915 }, { 151.068357135000099, -34.175111234999903 }, { 151.027957464, -34.200796095999934 }, { 151.009685907000062, -34.219916955999892 }, { 150.968952516000115, -34.262675193999925 }, { 150.940628388000107, -34.302159102999951 }, { 150.924918127000069, -34.330418880999957 }, { 150.928274759000089, -34.363486780999963 }, { 150.908050376000062, -34.407641400999907 }, { 150.903049563000081, -34.450860842999916 }, { 150.918867505000151, -34.486404115999932 }, { 150.897779177000075, -34.502081173999954 }, { 150.887217644000089, -34.530205987999906 }, { 150.873301629000025, -34.545505466999956 }, { 150.854991082000083, -34.5414364559999 }, { 150.867035352000016, -34.522556247999958 }, { 150.86085045700014, -34.513278903999918 }, { 150.848155144000145, -34.510511976999865 }, { 150.84131920700014, -34.510674737999921 }, { 150.835134311000047, -34.513767184999907 }, { 150.800954623000052, -34.548272393999923 }, { 150.805837436000047, -34.557224216999941 }, { 150.812185092000107, -34.561211846999925 }, { 150.820323113000086, -34.562107028999918 }, { 150.842051629000082, -34.561700127999913 }, { 150.854991082000083, -34.569919528999904 }, { 150.88233483200014, -34.592217705999943 }, { 150.897227410000028, -34.601169528999975 }, { 150.917002800000091, -34.60344817499994 }, { 150.883636915000068, -34.607028903999918 }, { 150.870453321000014, -34.626722914999874 }, { 150.847911004000025, -34.751722914999931 }, { 150.83375084700009, -34.782403252999927 }, { 150.810557488000143, -34.795179945999877 }, { 150.779307488000086, -34.806898695999877 }, { 150.753428582000083, -34.858086846999925 }, { 150.728688998000109, -34.86980559699991 }, { 150.727061394000089, -34.874118747999916 }, { 150.738780144000089, -34.883721612999892 }, { 150.754079623000052, -34.893324476999865 }, { 150.76319420700014, -34.897637627999956 }, { 150.778493686000104, -34.901625257999939 }, { 150.77686608200014, -34.910088799999883 }, { 150.764008009, -34.917413018999895 }, { 150.74577884200005, -34.918145440999922 }, { 150.754161004000025, -34.9281552059999 }, { 150.776133660000028, -34.935804945999934 }, { 150.787364129000025, -34.945489190999893 }, { 150.779795769000089, -34.952894789999888 }, { 150.787364129000025, -34.959730726999894 }, { 150.776215040000011, -34.986993096999896 }, { 150.796153191000087, -35.004001559999949 }, { 150.827647332000083, -35.012627862999949 }, { 150.851573113000086, -35.014906507999925 }, { 150.854991082000083, -35.021661065999965 }, { 150.843597852000016, -35.054131768999952 }, { 150.844737175000148, -35.077243747999901 }, { 150.832855665000011, -35.09091562299993 }, { 150.807139519000145, -35.110528252999899 }, { 150.798838738000086, -35.099379164999888 }, { 150.786143425000091, -35.089125257999953 }, { 150.778086785000085, -35.0785458309999 }, { 150.783539259, -35.066176039999874 }, { 150.792816602000073, -35.050469658999901 }, { 150.781260613000143, -35.028578382999868 }, { 150.787364129000025, -35.014906507999925 }, { 150.767588738000086, -35.007256768999895 }, { 150.748789910000028, -35.01034921699997 }, { 150.731455925000148, -35.017266533999887 }, { 150.695567254000082, -35.026136976999922 }, { 150.68702233200014, -35.038995049999954 }, { 150.677500847000033, -35.075778903999932 }, { 150.69695071700005, -35.079766533999916 }, { 150.701508009, -35.092868747999972 }, { 150.700938347000033, -35.109470309999935 }, { 150.703782730764544, -35.120441501962588 } }, Contour{ { 148.848258498231132, -35.750479017992291 }, { 148.853529493990891, -35.749083754012034 }, { 148.857301873882307, -35.74567311022588 }, { 148.862572869642179, -35.736216322525223 }, { 148.865983515226958, -35.73208220742795 }, { 148.870324334999964, -35.728929946060106 }, { 148.876525506746702, -35.727586358023984 }, { 148.883036736855843, -35.727896417285805 }, { 148.887842644622367, -35.733167413045663 }, { 148.891408318938772, -35.742469171115332 }, { 148.892183466193956, -35.762261243861289 }, { 148.901020136270176, -35.818743584948464 }, { 148.907531366379487, -35.839775892943138 }, { 148.922724236933959, -35.867629490308687 }, { 148.92964887909244, -35.875794365917287 }, { 148.933627963659603, -35.879256686546867 }, { 148.93781375470104, -35.882357272869839 }, { 148.948149042444243, -35.887886651048106 }, { 149.006078322556561, -35.903699640126263 }, { 149.030314568762321, -35.917497246700592 }, { 149.035998976571477, -35.919357598674225 }, { 149.042406853893169, -35.919615981092619 }, { 149.04798790891482, -35.917962334693954 }, { 149.052483759218092, -35.914861749270258 }, { 149.055739374272662, -35.910624282284786 }, { 149.058529901333827, -35.905818372719722 }, { 149.065041132342344, -35.890832207740175 }, { 149.07108727355876, -35.881582126513933 }, { 149.074187859881818, -35.877551365103429 }, { 149.078063592560795, -35.873830662055369 }, { 149.082611118808074, -35.870575047000841 }, { 149.092222935240272, -35.864890639191586 }, { 149.096718784644167, -35.861479993606793 }, { 149.09950931170539, -35.856829115471285 }, { 149.101524693309955, -35.851558118812136 }, { 149.104625278733636, -35.839724216099711 }, { 149.106485629807992, -35.82742522629313 }, { 149.105968865870466, -35.815281263419607 }, { 149.096408726281709, -35.776678968959274 }, { 149.095168491932327, -35.765155124609294 }, { 149.095943638288247, -35.759470716800124 }, { 149.104005162008548, -35.731152031441042 }, { 149.104625278733636, -35.715028984899718 }, { 149.099664341336336, -35.684694919734739 }, { 149.087261997842973, -35.63038298898374 }, { 149.086435174643555, -35.610022474557567 }, { 149.090465936054159, -35.599790540501004 }, { 149.09780399026198, -35.591418958418245 }, { 149.126329380296625, -35.581962171616865 }, { 149.131393671380806, -35.571885268090597 }, { 149.130980259331409, -35.566200860281427 }, { 149.133254021555786, -35.557674248567665 }, { 149.14668989472284, -35.52873544648368 }, { 149.150255569039246, -35.518193454963949 }, { 149.151340773757624, -35.509976901612731 }, { 149.147930129072165, -35.498918145256212 }, { 149.146069777997809, -35.494990736633184 }, { 149.141212193388071, -35.488066094474661 }, { 149.137388136653158, -35.476128838974674 }, { 149.137801547803178, -35.473648370276052 }, { 149.139661899776797, -35.468532403247821 }, { 149.147930129072165, -35.456130059754457 }, { 149.146793248409608, -35.450445651945287 }, { 149.144932896436046, -35.445071302498576 }, { 149.141728957325427, -35.439128513170374 }, { 149.142659133312407, -35.434529310978931 }, { 149.14555301316102, -35.430343519937509 }, { 149.149583774571568, -35.427087904882896 }, { 149.154441360080682, -35.424142348190827 }, { 149.160332472565528, -35.418199557963263 }, { 149.166843702674669, -35.410086358298727 }, { 149.182346633390353, -35.386263523243059 }, { 149.186687453163415, -35.380682468221281 }, { 149.194955683357989, -35.374791354837143 }, { 149.200330031905423, -35.37262094450098 }, { 149.2064278508646, -35.371845798145074 }, { 149.212473992980392, -35.372724298187748 }, { 149.227356806071725, -35.380992526583825 }, { 149.23278283056311, -35.382542820194999 }, { 149.240430943133504, -35.380062350597015 }, { 149.244410027700667, -35.377116794804223 }, { 149.249112583578892, -35.366523125541789 }, { 149.263220250314248, -35.352002047656327 }, { 149.269163038743159, -35.350451755843793 }, { 149.277482944882024, -35.349056491863621 }, { 149.349933302879606, -35.359495130595775 }, { 149.359545119311804, -35.359030042602413 }, { 149.367038202251194, -35.357324721158889 }, { 149.381765984812318, -35.3487464326018 }, { 149.393083123587246, -35.340684909780776 }, { 149.404400263261437, -35.330194594205196 }, { 149.404400263261437, -35.327920831081457 }, { 149.403004999281279, -35.324045099301856 }, { 149.398509148978007, -35.321357924128904 }, { 149.349623243617771, -35.299912204984281 }, { 149.326988966967235, -35.292625827619872 }, { 149.318307325622584, -35.29148894605801 }, { 149.308643834145528, -35.289163506990207 }, { 149.258104283286002, -35.269268079658119 }, { 149.249422641941408, -35.263945407954196 }, { 149.244720086962388, -35.258364352932503 }, { 149.244720086962388, -35.252628269179283 }, { 149.245805291680767, -35.24694386226939 }, { 149.245805291680767, -35.241259453560943 }, { 149.242549676626311, -35.233766370621481 }, { 149.237123651235549, -35.230510755566868 }, { 149.229217157146081, -35.229167168430038 }, { 149.220380487069747, -35.228702080436676 }, { 149.2064278508646, -35.224619643082022 }, { 149.199296503131109, -35.220898940034047 }, { 149.194645624096268, -35.216041354524918 }, { 149.192888624910097, -35.211493829176902 }, { 149.192165155397618, -35.206429538992012 }, { 149.192165155397618, -35.203122247094058 }, { 149.193198684171932, -35.192166842625653 }, { 149.192268508185123, -35.185655612516442 }, { 149.189167921862065, -35.178524264782951 }, { 149.184982130820629, -35.174028416278347 }, { 149.180021194322649, -35.170514417906062 }, { 149.127104526652545, -35.139508559172683 }, { 149.102919957290226, -35.145864759650891 }, { 148.939519077943032, -35.248700859656978 }, { 148.82598595588712, -35.313348077252016 }, { 148.817717726591809, -35.320479424985507 }, { 148.809346145408199, -35.330866387773611 }, { 148.804178502435889, -35.339599705062341 }, { 148.801904739312249, -35.346162612014979 }, { 148.801284620788579, -35.352467135649775 }, { 148.802214796775388, -35.358099866615518 }, { 148.803765090386662, -35.363629245693147 }, { 148.805728795147786, -35.368848564609578 }, { 148.805728795147786, -35.376186618817414 }, { 148.803455032024146, -35.386263523243059 }, { 148.790225865331365, -35.414272148440872 }, { 148.7874353382702, -35.422592054579653 }, { 148.783869663953794, -35.447758477671613 }, { 148.770537143574302, -35.493285414290384 }, { 148.769451938855866, -35.506462905039015 }, { 148.772397496447297, -35.549457696115738 }, { 148.78262942870515, -35.581083672473483 }, { 148.782164340711688, -35.591987400098461 }, { 148.780148960905819, -35.606921889133858 }, { 148.773069289116449, -35.63741098392974 }, { 148.772552525178867, -35.651105238615884 }, { 148.774877964246571, -35.659786879061272 }, { 148.788365513357746, -35.669760430699341 }, { 148.791156041318231, -35.674307956946649 }, { 148.791879510830654, -35.679785659180851 }, { 148.790949334843845, -35.6922913545624 }, { 148.791156041318231, -35.699422703195182 }, { 148.792706334030072, -35.707277519541861 }, { 148.795600213878799, -35.712703545832014 }, { 148.799372592870839, -35.717096042448404 }, { 148.832445510052196, -35.744174492558756 }, { 148.837251417818607, -35.747275078881742 }, { 148.842522413578479, -35.749393813273855 }, { 148.848258498231132, -35.750479017992291 } } }\n\t\n\tisnsw = nswmulti.Contains(canberra)\n\tif isnsw == true {\n\t\tt.Error(\"Canberra should not be in NSW as it falls in the donut contour of the ACT\")\n\t}\n\n\tsydney := Point{151.209, -33.866}\n\tisnsw = nswmulti.Contains(sydney)\t\n\tif isnsw != true {\n\t\tt.Error(\"Sydney should be in NSW\")\n\t}\n\n\tlosangeles := Point{118.28333, 34.01667}\n\tisnsw = nswmulti.Contains(losangeles)\t\n\tif isnsw == true {\n\t\tt.Error(\"Los Angeles should not be in NSW\")\n\t} \n\n}", "func (b Bounds3) Corner(i int) Point3 {\n\tvar pX, pY, pZ float64\n\tif i&1 != 0 {\n\t\tpX = b.pMax.X\n\t} else {\n\t\tpX = b.pMin.X\n\t}\n\n\tif i&2 != 0 {\n\t\tpY = b.pMax.Y\n\t} else {\n\t\tpY = b.pMin.Y\n\t}\n\n\tif i&4 != 0 {\n\t\tpZ = b.pMax.Z\n\t} else {\n\t\tpZ = b.pMin.Z\n\t}\n\n\treturn Point3{X: pX, Y: pY, Z: pZ}\n}", "func (g *GeoPolygon) toCPtr() *C.GeoPolygon {\n\tif g.v != nil {\n\t\treturn g.v\n\t}\n\n\t// allocate memory for GeoPolygon\n\tpolyPtr := C.malloc(C.sizeof_GeoPolygon)\n\n\tg.v = (*C.GeoPolygon)(polyPtr)\n\n\t// if Exterior is not nil\n\tif g.Exterior != nil {\n\t\tif g.Exterior.GeoCoords != nil {\n\t\t\t// fmt.Printf(\"Before verts: %v\\n\", g.v.geofence.verts)\n\t\t\tg.v.geofence.verts = g.Exterior.GeoCoords.toCPtr()\n\t\t\t// fmt.Printf(\"After verts: %v\\n\", g.v.geofence.verts)\n\t\t\tg.v.geofence.numVerts = C.int(len(g.Exterior.GeoCoords.Coords))\n\t\t\t// fmt.Printf(\"NumHoles: %v\\n\", g.v.geofence.numVerts)\n\t\t}\n\t}\n\n\tif len(g.Holes) > 0 {\n\t\t// malloc the *GeoCoord for the provided coordinates\n\t\tptr := C.malloc(C.size_t(len(g.Holes)) * C.sizeof_Geofence)\n\n\t\tholesArr := (*[1 << 30]C.Geofence)(unsafe.Pointer(ptr))[:len(g.Holes):len(g.Holes)]\n\t\tfor i, hole := range g.Holes {\n\t\t\tholesArr[i].verts = hole.GeoCoords.toCPtr()\n\t\t\tholesArr[i].numVerts = C.int(len(hole.GeoCoords.Coords))\n\t\t}\n\t\tg.v.holes = (*C.Geofence)(ptr)\n\t} else {\n\t\tg.v.holes = nil\n\t}\n\n\tg.v.numHoles = C.int(len(g.Holes))\n\treturn g.v\n}", "func Polygon(p orb.Polygon, z maptile.Zoom) (maptile.Set, error) {\n\tset := make(maptile.Set)\n\n\terr := polygon(set, p, z)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn set, nil\n}", "func PolygonOffset(factor float32, units float32) {\n C.glowPolygonOffset(gpPolygonOffset, (C.GLfloat)(factor), (C.GLfloat)(units))\n}", "func PolygonStipple(mask *uint8) {\n C.glowPolygonStipple(gpPolygonStipple, (*C.GLubyte)(unsafe.Pointer(mask)))\n}", "func FrontFace(mode uint32) {\n C.glowFrontFace(gpFrontFace, (C.GLenum)(mode))\n}", "func Lint_Polygon_Layer_Map(layer []l.Polygon) []l.Polygon {\n\tvar newlayer []l.Polygon\n\tfor _, feat := range layer {\n\t\tif len(feat.Layers) == 0 {\n\t\t\tarea := feat.Area\n\t\t\tlayer := feat.Layer\n\t\t\tfeat.Area = fmt.Sprintf(\"{'%s':'%s'}\", area, layer)\n\t\t} else {\n\t\t\tnewlist := []string{}\n\t\t\tfor k, v := range feat.Layers {\n\t\t\t\tnewlist = append(newlist, fmt.Sprintf(\"'%s':'%s'\", k, v))\n\t\t\t}\n\t\t\tfeat.Area = fmt.Sprintf(\"{%s}\", strings.Join(newlist, \",\"))\n\t\t}\n\t\tnewlayer = append(newlayer, feat)\n\n\t}\n\treturn newlayer\n}", "func (s *WeatherData) fetchPolygon(APIstub shim.ChaincodeStubInterface, polyId string ) sc.Response {\n\tif len(polyId) == 0 {\n\t\tmessage := \"Required Polygon id to fetch polygon details\";\n\t\tfmt.Println(message);\n\t\treturn shim.Error(message);\n\t}\n\tfmt.Println(\"============= START : Fetching polygon details by the polygon id =============\")\n\tvar datasource = \"URL\" // Setting the Oraclize datasource\n\tvar query = \"json(http://api.agromonitoring.com/agro/1.0/polygons/\" + polyId + \"?appid=\" + API_KEY + \")\" // Setting the query\n\tresult, proof := oraclizeapi.OraclizeQuery_sync(APIstub, datasource, query, oraclizeapi.TLSNOTARY)\n\tfmt.Printf(\"proof: %s\", proof)\n\tfmt.Printf(\"\\nresult: %s\\n\", result)\n\tvar response = {\n\t\t\"result\": result,\n\t\t\"proof\": proof\n\t}", "func (t *TopLayer) InitializeTopLayerRightStartSwap() {\n\tt.corners = make([]Corner, 4, 4)\n\n\t// FrontRight cube\n\tt.corners[CUBE_FR].front = FACE_LEFT\n\tt.corners[CUBE_FR].right = FACE_TOP\n\tt.corners[CUBE_FR].top = FACE_BACK\n\n\t// FrontLeft cube\n\tt.corners[CUBE_FL].front = FACE_FRONT\n\tt.corners[CUBE_FL].left = FACE_LEFT\n\tt.corners[CUBE_FL].top = FACE_TOP\n\n\t// BackLeft cube\n\tt.corners[CUBE_BL].back = FACE_BACK\n\tt.corners[CUBE_BL].left = FACE_TOP\n\tt.corners[CUBE_BL].top = FACE_RIGHT\n\n\t// BackRight cube\n\tt.corners[CUBE_BR].back = FACE_TOP\n\tt.corners[CUBE_BR].right = FACE_RIGHT\n\tt.corners[CUBE_BR].top = FACE_FRONT\n\n}", "func (order Order) RectifyPolygon(plyg2r [][][2]float64) [][][2]float64 {\n\tplyg := make([][][2]float64, 0, len(plyg2r))\n\treverse := func(idx int) {\n\t\tfor i := len(plyg[idx])/2 - 1; i >= 0; i-- {\n\t\t\topp := len(plyg[idx]) - 1 - i\n\t\t\tplyg[idx][i], plyg[idx][opp] = plyg[idx][opp], plyg[idx][i]\n\t\t}\n\t}\n\n\t// Let's make sure each of the rings have the correct windingorder.\n\n\tfor i := range plyg2r {\n\n\t\two := order.OfPoints(plyg2r[i]...)\n\n\t\t// Drop collinear rings\n\t\tif wo.IsColinear() {\n\t\t\tif i == 0 {\n\t\t\t\treturn nil\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\n\t\tplyg = append(plyg, plyg2r[i])\n\n\t\tif (i == 0 && wo.IsCounterClockwise()) || (i != 0 && wo.IsClockwise()) {\n\t\t\t// 0 ring should be clockwise.\n\t\t\t// all others should be conterclockwise\n\t\t\t// reverse the ring.\n\t\t\treverse(len(plyg) - 1)\n\t\t}\n\t}\n\treturn plyg\n}", "func geoPolygonToC(gp GeoPolygon) C.GeoPolygon {\n\tcverts := geoCoordsToC(gp.Geofence)\n\tcholes := geofencesToC(gp.Holes)\n\n\treturn C.GeoPolygon{\n\t\tgeofence: C.Geofence{\n\t\t\tnumVerts: C.int(len(gp.Geofence)),\n\t\t\tverts: cverts,\n\t\t},\n\t\tnumHoles: C.int(len(gp.Holes)),\n\t\tholes: choles,\n\t}\n}", "func drawOverlappingRectangles(ops *op.Ops) {\n\t// Draw a red rectangle.\n\tcl := clip.Rect{Max: image.Pt(100, 50)}.Push(ops)\n\tpaint.ColorOp{Color: color.NRGBA{R: 0x80, A: 0xFF}}.Add(ops)\n\tpaint.PaintOp{}.Add(ops)\n\tcl.Pop()\n\n\t// Draw a green rectangle.\n\tcl = clip.Rect{Max: image.Pt(50, 100)}.Push(ops)\n\tpaint.ColorOp{Color: color.NRGBA{G: 0x80, A: 0xFF}}.Add(ops)\n\tpaint.PaintOp{}.Add(ops)\n\tcl.Pop()\n}", "func (contour DrawContour) drawContour(x[5] float32, y[5] float32) {\n\tfmt.Println(\"Drawing Contour\")\n\tcontour.shape.drawshape(contour.x, contour.y)\n}", "func (c *Camera) debugUpdate() {\n\tc.State = gfx.NewState()\n\tc.Shader = shader\n\tc.State.FaceCulling = gfx.BackFaceCulling\n\n\tm := gfx.NewMesh()\n\tm.Primitive = gfx.Lines\n\n\tm.Vertices = []gfx.Vec3{}\n\tm.Colors = []gfx.Color{}\n\n\tnear := float32(c.Near)\n\tfar := float32(c.Far)\n\n\tif c.Ortho {\n\t\twidth := float32(c.View.Dx())\n\t\theight := float32(c.View.Dy())\n\n\t\tm.Vertices = []gfx.Vec3{\n\t\t\t{width / 2, 0, height / 2},\n\n\t\t\t// Near\n\t\t\t{0, near, 0},\n\t\t\t{width, near, 0},\n\t\t\t{width, near, height},\n\t\t\t{0, near, height},\n\n\t\t\t// Far\n\t\t\t{0, far, 0},\n\t\t\t{width, far, 0},\n\t\t\t{width, far, height},\n\t\t\t{0, far, height},\n\n\t\t\t{width / 2, far, height / 2},\n\n\t\t\t// Up\n\t\t\t{0, near, height},\n\t\t\t{0, near, height},\n\t\t\t{width, near, height},\n\t\t}\n\t} else {\n\t\tratio := float32(c.View.Dx()) / float32(c.View.Dy())\n\t\tfovRad := c.FOV / 180 * math.Pi\n\n\t\thNear := float32(2 * math.Tan(fovRad/2) * c.Near)\n\t\twNear := hNear * ratio\n\n\t\thFar := float32(2 * math.Tan(fovRad/2) * c.Far)\n\t\twFar := hFar * ratio\n\n\t\tm.Vertices = []gfx.Vec3{\n\t\t\t{0, 0, 0},\n\n\t\t\t// Near\n\t\t\t{-wNear / 2, near, -hNear / 2},\n\t\t\t{wNear / 2, near, -hNear / 2},\n\t\t\t{wNear / 2, near, hNear / 2},\n\t\t\t{-wNear / 2, near, hNear / 2},\n\n\t\t\t// Far\n\t\t\t{-wFar / 2, far, -hFar / 2},\n\t\t\t{wFar / 2, far, -hFar / 2},\n\t\t\t{wFar / 2, far, hFar / 2},\n\t\t\t{-wFar / 2, far, hFar / 2},\n\n\t\t\t{0, far, 0},\n\n\t\t\t// Up\n\t\t\t{0, near, hNear},\n\t\t\t{-wNear / 2 * 0.7, near, hNear / 2 * 1.1},\n\t\t\t{wNear / 2 * 0.7, near, hNear / 2 * 1.1},\n\t\t}\n\t}\n\n\tm.Colors = []gfx.Color{\n\t\t{1, 1, 1, 1},\n\t\t{1, 0.67, 0, 1},\n\t\t{1, 0.67, 0, 1},\n\t\t{1, 0.67, 0, 1},\n\t\t{1, 0.67, 0, 1},\n\n\t\t{1, 0.67, 0, 1},\n\t\t{1, 0.67, 0, 1},\n\t\t{1, 0.67, 0, 1},\n\t\t{1, 0.67, 0, 1},\n\t\t{1, 1, 1, 1},\n\n\t\t{0, 0.67, 1, 1},\n\t\t{0, 0.67, 1, 1},\n\t\t{0, 0.67, 1, 1},\n\t}\n\n\tm.Indices = []uint32{\n\t\t// From 0 to near plane\n\t\t0, 1,\n\t\t0, 2,\n\t\t0, 3,\n\t\t0, 4,\n\n\t\t// Near plane\n\t\t1, 2,\n\t\t2, 3,\n\t\t3, 4,\n\t\t4, 1,\n\n\t\t// Far plane\n\t\t5, 6,\n\t\t6, 7,\n\t\t7, 8,\n\t\t8, 5,\n\n\t\t// Lines from near to far plane\n\t\t1, 5,\n\t\t2, 6,\n\t\t3, 7,\n\t\t4, 8,\n\n\t\t0, 9,\n\n\t\t// Up\n\t\t10, 11,\n\t\t11, 12,\n\t\t12, 10,\n\t}\n\n\tc.Meshes = []*gfx.Mesh{m}\n}", "func (c *Context) drawContour(ps []truetype.Point, dx, dy fixed.Int26_6) {\n\tif len(ps) == 0 {\n\t\treturn\n\t}\n\tstart := fixed.Point26_6{\n\t\tX: dx + ps[0].X,\n\t\tY: dy - ps[0].Y,\n\t}\n\tothers := []truetype.Point(nil)\n\tif ps[0].Flags&0x01 != 0 {\n\t\tothers = ps[1:]\n\t} else {\n\t\tlast := fixed.Point26_6{\n\t\t\tX: dx + ps[len(ps)-1].X,\n\t\t\tY: dy - ps[len(ps)-1].Y,\n\t\t}\n\t\tif ps[len(ps)-1].Flags&0x01 != 0 {\n\t\t\tstart = last\n\t\t\tothers = ps[:len(ps)-1]\n\t\t} else {\n\t\t\tstart = fixed.Point26_6{\n\t\t\t\tX: (start.X + last.X) / 2,\n\t\t\t\tY: (start.Y + last.Y) / 2,\n\t\t\t}\n\t\t\tothers = ps\n\t\t}\n\t}\n\tc.r.Start(start)\n\tq0, on0 := start, true\n\tfor _, p := range others {\n\t\tq := fixed.Point26_6{\n\t\t\tX: dx + p.X,\n\t\t\tY: dy - p.Y,\n\t\t}\n\t\ton := p.Flags&0x01 != 0\n\t\tif on {\n\t\t\tif on0 {\n\t\t\t\tc.r.Add1(q)\n\t\t\t} else {\n\t\t\t\tc.r.Add2(q0, q)\n\t\t\t}\n\t\t} else {\n\t\t\tif on0 {\n\t\t\t\t// No-op.\n\t\t\t} else {\n\t\t\t\tmid := fixed.Point26_6{\n\t\t\t\t\tX: (q0.X + q.X) / 2,\n\t\t\t\t\tY: (q0.Y + q.Y) / 2,\n\t\t\t\t}\n\t\t\t\tc.r.Add2(q0, mid)\n\t\t\t}\n\t\t}\n\t\tq0, on0 = q, on\n\t}\n\tif on0 {\n\t\tc.r.Add1(start)\n\t} else {\n\t\tc.r.Add2(q0, start)\n\t}\n}", "func (p *Projection) cross(wx float64, wy float64, col color.RGBA) {\n cx, cy := p.project(wx, wy)\n\n c := draw2d.NewGraphicContext(p.img)\n c.SetStrokeColor(col)\n c.SetLineWidth(1)\n size := 2.0\n\n // top left -> bottom right\n c.MoveTo(cx - size, cy - size)\n c.LineTo(cx + size, cy + size)\n c.Stroke()\n\n // top right -> bottom left\n c.MoveTo(cx + size, cy - size)\n c.LineTo(cx - size, cy + size)\n c.Stroke()\n}" ]
[ "0.6460714", "0.61536455", "0.6091873", "0.59583706", "0.5954489", "0.593945", "0.5918873", "0.57108665", "0.56997734", "0.5620925", "0.56127876", "0.55298877", "0.5517866", "0.5508579", "0.5484753", "0.5468861", "0.5390357", "0.5390357", "0.5381658", "0.5367365", "0.53381383", "0.5331544", "0.53181165", "0.53142875", "0.5228512", "0.51907957", "0.5160907", "0.51594406", "0.5126694", "0.50958264", "0.5064348", "0.49958286", "0.49924225", "0.4991085", "0.49851665", "0.49800912", "0.4973237", "0.49690533", "0.4965166", "0.49306753", "0.48933712", "0.48867843", "0.48603946", "0.48453698", "0.4839594", "0.48367697", "0.48340112", "0.48336005", "0.48306498", "0.482168", "0.48156548", "0.47994107", "0.4795946", "0.47948983", "0.4788264", "0.4784785", "0.47751343", "0.47534093", "0.47511607", "0.47451523", "0.47337523", "0.4727909", "0.47202355", "0.472002", "0.47102132", "0.4688308", "0.46511984", "0.46335638", "0.46292517", "0.46240234", "0.46236077", "0.46135828", "0.46067023", "0.459502", "0.4590986", "0.4574508", "0.4572176", "0.4562578", "0.45594674", "0.45577842", "0.45567217", "0.4555201", "0.455159", "0.45475388", "0.45467418", "0.45400918", "0.45288962", "0.45282283", "0.45278946", "0.45262775", "0.45248175", "0.45243132", "0.45182163", "0.4517788", "0.45130107", "0.45026055", "0.45002383", "0.4497712", "0.44937158", "0.44748652", "0.44733238" ]
0.0
-1
multiply the current matrix by a perspective matrix
func Frustum(left float64, right float64, bottom float64, top float64, zNear float64, zFar float64) { C.glowFrustum(gpFrustum, (C.GLdouble)(left), (C.GLdouble)(right), (C.GLdouble)(bottom), (C.GLdouble)(top), (C.GLdouble)(zNear), (C.GLdouble)(zFar)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (matrix Matrix4) Mult(other Matrix4) Matrix4 {\n\n\tnewMat := NewMatrix4()\n\n\tnewMat[0][0] = matrix[0][0]*other[0][0] + matrix[0][1]*other[1][0] + matrix[0][2]*other[2][0] + matrix[0][3]*other[3][0]\n\tnewMat[1][0] = matrix[1][0]*other[0][0] + matrix[1][1]*other[1][0] + matrix[1][2]*other[2][0] + matrix[1][3]*other[3][0]\n\tnewMat[2][0] = matrix[2][0]*other[0][0] + matrix[2][1]*other[1][0] + matrix[2][2]*other[2][0] + matrix[2][3]*other[3][0]\n\tnewMat[3][0] = matrix[3][0]*other[0][0] + matrix[3][1]*other[1][0] + matrix[3][2]*other[2][0] + matrix[3][3]*other[3][0]\n\n\tnewMat[0][1] = matrix[0][0]*other[0][1] + matrix[0][1]*other[1][1] + matrix[0][2]*other[2][1] + matrix[0][3]*other[3][1]\n\tnewMat[1][1] = matrix[1][0]*other[0][1] + matrix[1][1]*other[1][1] + matrix[1][2]*other[2][1] + matrix[1][3]*other[3][1]\n\tnewMat[2][1] = matrix[2][0]*other[0][1] + matrix[2][1]*other[1][1] + matrix[2][2]*other[2][1] + matrix[2][3]*other[3][1]\n\tnewMat[3][1] = matrix[3][0]*other[0][1] + matrix[3][1]*other[1][1] + matrix[3][2]*other[2][1] + matrix[3][3]*other[3][1]\n\n\tnewMat[0][2] = matrix[0][0]*other[0][2] + matrix[0][1]*other[1][2] + matrix[0][2]*other[2][2] + matrix[0][3]*other[3][2]\n\tnewMat[1][2] = matrix[1][0]*other[0][2] + matrix[1][1]*other[1][2] + matrix[1][2]*other[2][2] + matrix[1][3]*other[3][2]\n\tnewMat[2][2] = matrix[2][0]*other[0][2] + matrix[2][1]*other[1][2] + matrix[2][2]*other[2][2] + matrix[2][3]*other[3][2]\n\tnewMat[3][2] = matrix[3][0]*other[0][2] + matrix[3][1]*other[1][2] + matrix[3][2]*other[2][2] + matrix[3][3]*other[3][2]\n\n\tnewMat[0][3] = matrix[0][0]*other[0][3] + matrix[0][1]*other[1][3] + matrix[0][2]*other[2][3] + matrix[0][3]*other[3][3]\n\tnewMat[1][3] = matrix[1][0]*other[0][3] + matrix[1][1]*other[1][3] + matrix[1][2]*other[2][3] + matrix[1][3]*other[3][3]\n\tnewMat[2][3] = matrix[2][0]*other[0][3] + matrix[2][1]*other[1][3] + matrix[2][2]*other[2][3] + matrix[2][3]*other[3][3]\n\tnewMat[3][3] = matrix[3][0]*other[0][3] + matrix[3][1]*other[1][3] + matrix[3][2]*other[2][3] + matrix[3][3]*other[3][3]\n\n\treturn newMat\n\n}", "func MatrixPerspective(fovy, aspect, near, far float32) Matrix {\n\ttop := near * float32(math.Tan(float64(fovy*Pi)/360.0))\n\tright := top * aspect\n\n\treturn MatrixFrustum(-right, right, -top, top, near, far)\n}", "func (mat Mat) MultiplyMatrix(mat_2 Mat) (Mat,error) {\n if mat.Shape[1] != mat_2.Shape[0] {\n return mat,&MatrixError{(\"Miss-matched shape.\")}\n }\n Shape := []int{ mat.Shape[1], mat_2.Shape[0]}\n var temp [][]float32\n for i := 0 ; i < Shape[0]; i++ {\n temp_r := make([]float32, Shape[1])\n for j := 0 ; j < Shape[1]; j++ {\n var p_val float32 = 0\n for k := 0; k < Shape[0]; k++ {\n p_val += mat.Value[i][k] * mat_2.Value[k][j]\n }\n temp_r[j] = p_val\n }\n temp = append(temp, temp_r)\n }\n return Mat{temp, Shape},nil\n}", "func Perspective(fovy, aspect, zNear, zFar gl.Float) *Mat4 {\n\tf := 1 / (TanGL(fovy / 2.0))\n\tm := IdentMat4()\n\tm[0].X = f / aspect\n\tm[1].Y = f\n\tm[2].Z = (zFar + zNear) / (zNear - zFar)\n\tm[3].W = 0\n\tm[2].W = -1\n\tm[3].Z = (2 * zFar * zNear) / (zNear - zFar)\n\treturn m\n}", "func Perspective(fovy, aspect, near, far float64) Mat4 {\n\t// fovy = (fovy * math.Pi) / 180.0 // convert from degrees to radians\n\tnmf, f := near-far, float64(1./math.Tan(float64(fovy)/2.0))\n\n\treturn Mat4{float64(f / aspect), 0, 0, 0, 0, float64(f), 0, 0, 0, 0, float64((near + far) / nmf), -1, 0, 0, float64((2. * far * near) / nmf), 0}\n}", "func (eval *evaluator) MultiplyByDiagMatrix(ctIn *Ciphertext, matrix PtDiagMatrix, PoolDecompQP []rlwe.PolyQP, ctOut *Ciphertext) {\n\n\tringQ := eval.params.RingQ()\n\tringP := eval.params.RingP()\n\tringQP := rlwe.RingQP{RingQ: ringQ, RingP: ringP}\n\n\tlevelQ := utils.MinInt(ctOut.Level(), utils.MinInt(ctIn.Level(), matrix.Level))\n\tlevelP := len(ringP.Modulus) - 1\n\n\tQiOverF := eval.params.QiOverflowMargin(levelQ)\n\tPiOverF := eval.params.PiOverflowMargin(levelP)\n\n\tc0OutQP := rlwe.PolyQP{Q: ctOut.Value[0], P: eval.Pool[5].Q}\n\tc1OutQP := rlwe.PolyQP{Q: ctOut.Value[1], P: eval.Pool[5].P}\n\n\tct0TimesP := eval.Pool[0].Q // ct0 * P mod Q\n\ttmp0QP := eval.Pool[1]\n\ttmp1QP := eval.Pool[2]\n\tksRes0QP := eval.Pool[3]\n\tksRes1QP := eval.Pool[4]\n\n\tvar ctInTmp0, ctInTmp1 *ring.Poly\n\tif ctIn != ctOut {\n\t\tring.CopyValuesLvl(levelQ, ctIn.Value[0], eval.ctxpool.Value[0])\n\t\tring.CopyValuesLvl(levelQ, ctIn.Value[1], eval.ctxpool.Value[1])\n\t\tctInTmp0, ctInTmp1 = eval.ctxpool.Value[0], eval.ctxpool.Value[1]\n\t} else {\n\t\tctInTmp0, ctInTmp1 = ctIn.Value[0], ctIn.Value[1]\n\t}\n\n\tringQ.MulScalarBigintLvl(levelQ, ctInTmp0, ringP.ModulusBigint, ct0TimesP) // P*c0\n\n\tvar state bool\n\tvar cnt int\n\tfor k := range matrix.Vec {\n\n\t\tk &= int((ringQ.N >> 1) - 1)\n\n\t\tif k == 0 {\n\t\t\tstate = true\n\t\t} else {\n\n\t\t\tgalEl := eval.params.GaloisElementForColumnRotationBy(k)\n\n\t\t\trtk, generated := eval.rtks.Keys[galEl]\n\t\t\tif !generated {\n\t\t\t\tpanic(\"switching key not available\")\n\t\t\t}\n\n\t\t\tindex := eval.permuteNTTIndex[galEl]\n\n\t\t\teval.KeyswitchHoistedNoModDown(levelQ, PoolDecompQP, rtk, ksRes0QP.Q, ksRes1QP.Q, ksRes0QP.P, ksRes1QP.P)\n\t\t\tringQ.AddLvl(levelQ, ksRes0QP.Q, ct0TimesP, ksRes0QP.Q)\n\t\t\tringQP.PermuteNTTWithIndexLvl(levelQ, levelP, ksRes0QP, index, tmp0QP)\n\t\t\tringQP.PermuteNTTWithIndexLvl(levelQ, levelP, ksRes1QP, index, tmp1QP)\n\n\t\t\tif cnt == 0 {\n\t\t\t\t// keyswitch(c1_Q) = (d0_QP, d1_QP)\n\t\t\t\tringQP.MulCoeffsMontgomeryLvl(levelQ, levelP, matrix.Vec[k], tmp0QP, c0OutQP)\n\t\t\t\tringQP.MulCoeffsMontgomeryLvl(levelQ, levelP, matrix.Vec[k], tmp1QP, c1OutQP)\n\t\t\t} else {\n\t\t\t\t// keyswitch(c1_Q) = (d0_QP, d1_QP)\n\t\t\t\tringQP.MulCoeffsMontgomeryAndAddLvl(levelQ, levelP, matrix.Vec[k], tmp0QP, c0OutQP)\n\t\t\t\tringQP.MulCoeffsMontgomeryAndAddLvl(levelQ, levelP, matrix.Vec[k], tmp1QP, c1OutQP)\n\t\t\t}\n\n\t\t\tif cnt%QiOverF == QiOverF-1 {\n\t\t\t\tringQ.ReduceLvl(levelQ, c0OutQP.Q, c0OutQP.Q)\n\t\t\t\tringQ.ReduceLvl(levelQ, c1OutQP.Q, c1OutQP.Q)\n\t\t\t}\n\n\t\t\tif cnt%PiOverF == PiOverF-1 {\n\t\t\t\tringP.ReduceLvl(levelP, c0OutQP.P, c0OutQP.P)\n\t\t\t\tringP.ReduceLvl(levelP, c1OutQP.P, c1OutQP.P)\n\t\t\t}\n\n\t\t\tcnt++\n\t\t}\n\t}\n\n\tif cnt%QiOverF == 0 {\n\t\tringQ.ReduceLvl(levelQ, c0OutQP.Q, c0OutQP.Q)\n\t\tringQ.ReduceLvl(levelQ, c1OutQP.Q, c1OutQP.Q)\n\t}\n\n\tif cnt%PiOverF == 0 {\n\t\tringP.ReduceLvl(levelP, c0OutQP.P, c0OutQP.P)\n\t\tringP.ReduceLvl(levelP, c1OutQP.P, c1OutQP.P)\n\t}\n\n\teval.Baseconverter.ModDownQPtoQNTT(levelQ, levelP, c0OutQP.Q, c0OutQP.P, c0OutQP.Q) // sum(phi(c0 * P + d0_QP))/P\n\teval.Baseconverter.ModDownQPtoQNTT(levelQ, levelP, c1OutQP.Q, c1OutQP.P, c1OutQP.Q) // sum(phi(d1_QP))/P\n\n\tif state { // Rotation by zero\n\t\tringQ.MulCoeffsMontgomeryAndAddLvl(levelQ, matrix.Vec[0].Q, ctInTmp0, c0OutQP.Q) // ctOut += c0_Q * plaintext\n\t\tringQ.MulCoeffsMontgomeryAndAddLvl(levelQ, matrix.Vec[0].Q, ctInTmp1, c1OutQP.Q) // ctOut += c1_Q * plaintext\n\t}\n\n\tctOut.Scale = matrix.Scale * ctIn.Scale\n}", "func Multiply(matrix [][]float64, vector Vector) (product Vector) {\n\tproduct.X = matrix[0][0]*vector.X + matrix[0][1]*vector.Y + matrix[0][2]*vector.Z\n\tproduct.Y = matrix[1][0]*vector.X + matrix[1][1]*vector.Y + matrix[1][2]*vector.Z\n\tproduct.Z = matrix[2][0]*vector.X + matrix[2][1]*vector.Y + matrix[2][2]*vector.Z\n\treturn\n}", "func (a *Mtx) MultPoint(v Vec) (result Vec) {\n\tresult.X = v.X*a.el[0][0] + v.Y*a.el[1][0] + v.Z*a.el[2][0] + a.el[3][0]\n\tresult.Y = v.X*a.el[0][1] + v.Y*a.el[1][1] + v.Z*a.el[2][1] + a.el[3][1]\n\tresult.Z = v.X*a.el[0][2] + v.Y*a.el[1][2] + v.Z*a.el[2][2] + a.el[3][2]\n\t// final row assumed to be [0,0,0,1]\n\treturn\n}", "func (m1 *Mat4) MulM(m2 *Mat4) *Mat4 {\n\tvar rm = Mat4{\n\t\t{\n\t\t\tm1[0].X*m2[0].X + m1[1].X*m2[0].Y + m1[2].X*m2[0].Z + m1[3].X*m2[0].W,\n\t\t\tm1[0].Y*m2[0].X + m1[1].Y*m2[0].Y + m1[2].Y*m2[0].Z + m1[3].Y*m2[0].W,\n\t\t\tm1[0].Z*m2[0].X + m1[1].Z*m2[0].Y + m1[2].Z*m2[0].Z + m1[3].Z*m2[0].W,\n\t\t\tm1[0].W*m2[0].X + m1[1].W*m2[0].Y + m1[2].W*m2[0].Z + m1[3].W*m2[0].W,\n\t\t},\n\t\t{\n\t\t\tm1[0].X*m2[1].X + m1[1].X*m2[1].Y + m1[2].X*m2[1].Z + m1[3].X*m2[1].W,\n\t\t\tm1[0].Y*m2[1].X + m1[1].Y*m2[1].Y + m1[2].Y*m2[1].Z + m1[3].Y*m2[1].W,\n\t\t\tm1[0].Z*m2[1].X + m1[1].Z*m2[1].Y + m1[2].Z*m2[1].Z + m1[3].Z*m2[1].W,\n\t\t\tm1[0].W*m2[1].X + m1[1].W*m2[1].Y + m1[2].W*m2[1].Z + m1[3].W*m2[1].W,\n\t\t},\n\t\t{\n\t\t\tm1[0].X*m2[2].X + m1[1].X*m2[2].Y + m1[2].X*m2[2].Z + m1[3].X*m2[2].W,\n\t\t\tm1[0].Y*m2[2].X + m1[1].Y*m2[2].Y + m1[2].Y*m2[2].Z + m1[3].Y*m2[2].W,\n\t\t\tm1[0].Z*m2[2].X + m1[1].Z*m2[2].Y + m1[2].Z*m2[2].Z + m1[3].Z*m2[2].W,\n\t\t\tm1[0].W*m2[2].X + m1[1].W*m2[2].Y + m1[2].W*m2[2].Z + m1[3].W*m2[2].W,\n\t\t},\n\t\t{\n\t\t\tm1[0].X*m2[3].X + m1[1].X*m2[3].Y + m1[2].X*m2[3].Z + m1[3].X*m2[3].W,\n\t\t\tm1[0].Y*m2[3].X + m1[1].Y*m2[3].Y + m1[2].Y*m2[3].Z + m1[3].Y*m2[3].W,\n\t\t\tm1[0].Z*m2[3].X + m1[1].Z*m2[3].Y + m1[2].Z*m2[3].Z + m1[3].Z*m2[3].W,\n\t\t\tm1[0].W*m2[3].X + m1[1].W*m2[3].Y + m1[2].W*m2[3].Z + m1[3].W*m2[3].W,\n\t\t},\n\t}\n\treturn &rm\n}", "func MatrixLookAt(eye, target, up Vector3) Matrix {\n\tvar result Matrix\n\n\tz := Vector3Subtract(eye, target)\n\tz = Vector3Normalize(z)\n\tx := Vector3CrossProduct(up, z)\n\tx = Vector3Normalize(x)\n\ty := Vector3CrossProduct(z, x)\n\ty = Vector3Normalize(y)\n\n\tresult.M0 = x.X\n\tresult.M1 = x.Y\n\tresult.M2 = x.Z\n\tresult.M3 = -((x.X * eye.X) + (x.Y * eye.Y) + (x.Z * eye.Z))\n\tresult.M4 = y.X\n\tresult.M5 = y.Y\n\tresult.M6 = y.Z\n\tresult.M7 = -((y.X * eye.X) + (y.Y * eye.Y) + (y.Z * eye.Z))\n\tresult.M8 = z.X\n\tresult.M9 = z.Y\n\tresult.M10 = z.Z\n\tresult.M11 = -((z.X * eye.X) + (z.Y * eye.Y) + (z.Z * eye.Z))\n\tresult.M12 = 0.0\n\tresult.M13 = 0.0\n\tresult.M14 = 0.0\n\tresult.M15 = 1.0\n\n\treturn result\n}", "func NewMatrixPerspective(fovy, aspect, near, far float64) Matrix {\n\ttop := near * math.Tan(fovy*0.5)\n\tright := top * aspect\n\treturn NewMatrixFrustum(-right, right, -top, top, near, far)\n}", "func (a *Vec4) Multiply(s float32) {\n\ta.X *= s\n\ta.Y *= s\n\ta.Z *= s\n\ta.W *= s\n}", "func MatrixProjection(fov FovPort, znear, zfar float32, rightHanded bool) Matrix4f {\n\tif rightHanded {\n\t\treturn matrix4f(C.ovrMatrix4f_Projection(c_fovPort(fov), C.float(znear), C.float(zfar), 1))\n\t} else {\n\t\treturn matrix4f(C.ovrMatrix4f_Projection(c_fovPort(fov), C.float(znear), C.float(zfar), 0))\n\t}\n}", "func perspProj(a *vec3.T, cam *Camera) *vec2.T {\n\tm := mkExtrinsicCameraMtx(cam)\n\tprintM4(m)\n\tsp := vec3.From(a)\n\tm.TransformVec3(&sp)\n\treturn &vec2.T{sp[0], sp[1]}\n}", "func Mul(m1, m2 Matrix) Matrix {\n\tvar result Matrix\n\tm1 = m1.Transpose()\n\tfor i := 0; i < 4; i++ {\n\t\tfor j := 0; j < 4; j++ {\n\t\t\tresult[i][j] = vec32.Dot(m1[j], m2[i])\n\t\t}\n\t}\n\treturn result\n}", "func MatrixMultiply(left, right Matrix) Matrix {\n\tvar result Matrix\n\n\tresult.M0 = left.M0*right.M0 + left.M1*right.M4 + left.M2*right.M8 + left.M3*right.M12\n\tresult.M1 = left.M0*right.M1 + left.M1*right.M5 + left.M2*right.M9 + left.M3*right.M13\n\tresult.M2 = left.M0*right.M2 + left.M1*right.M6 + left.M2*right.M10 + left.M3*right.M14\n\tresult.M3 = left.M0*right.M3 + left.M1*right.M7 + left.M2*right.M11 + left.M3*right.M15\n\tresult.M4 = left.M4*right.M0 + left.M5*right.M4 + left.M6*right.M8 + left.M7*right.M12\n\tresult.M5 = left.M4*right.M1 + left.M5*right.M5 + left.M6*right.M9 + left.M7*right.M13\n\tresult.M6 = left.M4*right.M2 + left.M5*right.M6 + left.M6*right.M10 + left.M7*right.M14\n\tresult.M7 = left.M4*right.M3 + left.M5*right.M7 + left.M6*right.M11 + left.M7*right.M15\n\tresult.M8 = left.M8*right.M0 + left.M9*right.M4 + left.M10*right.M8 + left.M11*right.M12\n\tresult.M9 = left.M8*right.M1 + left.M9*right.M5 + left.M10*right.M9 + left.M11*right.M13\n\tresult.M10 = left.M8*right.M2 + left.M9*right.M6 + left.M10*right.M10 + left.M11*right.M14\n\tresult.M11 = left.M8*right.M3 + left.M9*right.M7 + left.M10*right.M11 + left.M11*right.M15\n\tresult.M12 = left.M12*right.M0 + left.M13*right.M4 + left.M14*right.M8 + left.M15*right.M12\n\tresult.M13 = left.M12*right.M1 + left.M13*right.M5 + left.M14*right.M9 + left.M15*right.M13\n\tresult.M14 = left.M12*right.M2 + left.M13*right.M6 + left.M14*right.M10 + left.M15*right.M14\n\tresult.M15 = left.M12*right.M3 + left.M13*right.M7 + left.M14*right.M11 + left.M15*right.M15\n\n\treturn result\n}", "func (obj *Device) MultiplyTransform(state TRANSFORMSTATETYPE, m MATRIX) Error {\n\tret, _, _ := syscall.Syscall(\n\t\tobj.vtbl.MultiplyTransform,\n\t\t3,\n\t\tuintptr(unsafe.Pointer(obj)),\n\t\tuintptr(state),\n\t\tuintptr(unsafe.Pointer(&m[0])),\n\t)\n\treturn toErr(ret)\n}", "func transMatrix(pState []Pair) ([]float64) {\n var x float64 = 0.0\n tMat := make([]float64, len(pState))\n for i := range pState {\n x = float64(pState[i].cnt) + x\n }\n for i := range pState {\n tMat[i] = float64(pState[i].cnt) / x\n if i >= 1 {\n var y float64 = 0.0\n for j := i; j >= 0; j-- {\n y = float64(pState[j].cnt) + y\n }\n tMat[i] = y / x\n }\n }\n return tMat\n}", "func (p *Proc) Matrix(a, b, c, d, e, f float64) {\n\tp.stk.matrix(f32.NewAffine2D(\n\t\tfloat32(a), float32(b), float32(c),\n\t\tfloat32(d), float32(e), float32(f),\n\t))\n}", "func multMatVect(substream []uint32, A [][]uint32, m1 uint32, B [][]uint32, m2 uint32) {\n\tvv := make([]uint32, 3)\n\tfor i := 0; i < 3; i++ {\n\t\tvv[i] = substream[i]\n\t}\n\tmatVecModM(A, vv, vv, m1)\n\tfor i := 0; i < 3; i++ {\n\t\tsubstream[i] = vv[i]\n\t}\n\n\tfor i := 0; i < 3; i++ {\n\t\tvv[i] = substream[i+3]\n\t}\n\tmatVecModM(B, vv, vv, m2)\n\tfor i := 0; i < 3; i++ {\n\t\tsubstream[i+3] = vv[i]\n\t}\n}", "func Pow(A Matrix, p int) Matrix {\n\tm, n := A.Dimensions()\n\tswitch {\n\tcase m != n:\n\t\tpanic(\"matrix must be square\")\n\tcase p < -1:\n\t\tpanic(\"power must be non-negative, except for -1\")\n\tcase p == -1:\n\t\treturn A.Inverse()\n\t}\n\n\t// Yacca's method\n\tB := Identity(m, n)\n\tC := A.Copy()\n\tfor ; 0 < p; p >>= 1 {\n\t\tif p&1 == 1 {\n\t\t\tB = Multiply(B, C)\n\t\t}\n\n\t\tC = Multiply(C, C)\n\t}\n\n\treturn B\n}", "func (c *Camera) Matrix() mgl32.Mat4 {\n\treturn mgl32.LookAtV(c.pos, c.pos.Add(c.front), c.up)\n}", "func (pc *perspectiveCameraImp) ProjectionMatrixInverse() *threejs.Matrix4 {\n\treturn &threejs.Matrix4{Value: pc.JSValue().Get(\"projectionMatrixInverse\")}\n}", "func MatrixFrustum(left, right, bottom, top, near, far float32) Matrix {\n\tvar result Matrix\n\n\trl := right - left\n\ttb := top - bottom\n\tfn := far - near\n\n\tresult.M0 = (near * 2.0) / rl\n\tresult.M1 = 0.0\n\tresult.M2 = 0.0\n\tresult.M3 = 0.0\n\n\tresult.M4 = 0.0\n\tresult.M5 = (near * 2.0) / tb\n\tresult.M6 = 0.0\n\tresult.M7 = 0.0\n\n\tresult.M8 = right + left/rl\n\tresult.M9 = top + bottom/tb\n\tresult.M10 = -(far + near) / fn\n\tresult.M11 = -1.0\n\n\tresult.M12 = 0.0\n\tresult.M13 = 0.0\n\tresult.M14 = -(far * near * 2.0) / fn\n\tresult.M15 = 0.0\n\n\treturn result\n}", "func MatInv(m u.Matrix) (u.Matrix, error) {\n\tvar (\n\t\terr = m.SetSize()\n\t\tresultMat u.Matrix\n\t\tmv = m.Value\n\t)\n\tif err != nil {\n\t\treturn u.Matrix{}, err\n\t}\n\n\tif m.ColsNum == 2 && m.RowsNum == 2 {\n\t\tnm := u.Matrix{\n\t\t\tRowsNum: 2,\n\t\t\tColsNum: 2,\n\t\t\tValue: u.MatVal{\n\t\t\t\t{mv[1][1], -mv[0][1]},\n\t\t\t\t{-mv[1][0], mv[0][0]},\n\t\t\t},\n\t\t}\n\n\t\tdetM := mv[0][0]*mv[1][1] - mv[0][1]*mv[1][0]\n\t\tif detM == 0 {\n\t\t\treturn u.Matrix{}, errors.New(\"matrix is singular, does not have an inverse\")\n\t\t}\n\n\t\treturn mult.ScalarMult(1/detM, nm), nil\n\t}\n\n\t// matrix of minors\n\tresultMat = u.PopulateNewMat(u.MatPopConfig{\n\t\tMainMat: m,\n\t\tNewRows: m.RowsNum,\n\t\tNewCols: m.ColsNum,\n\t\tAction: func(mv u.MatVal, r, c int, secMvs []u.MatVal) float64 {\n\t\t\tminor := u.GetMinor(m, r, c)\n\t\t\tdetMinor, _ := det.MatDet(minor) // add error handling in the future\n\n\t\t\treturn math.Pow(-1, float64(r+c)) * detMinor\n\t\t},\n\t})\n\n\tresultMat, err = trans.MatTrans(resultMat)\n\tif err != nil {\n\t\treturn u.Matrix{}, err\n\t}\n\n\tdetM, err := det.MatDet(m)\n\tif err != nil {\n\t\treturn u.Matrix{}, err\n\t} else if detM == 0 {\n\t\treturn u.Matrix{}, errors.New(\"matrix is singular, does not have an inverse\")\n\t}\n\n\tresultMat = mult.ScalarMult(1/detM, resultMat)\n\n\treturn resultMat, nil\n}", "func FourPointTransform(img gocv.Mat, pts []image.Point, dst *gocv.Mat) {\n\trect := OrderPoints(pts)\n\ttl := rect[0]\n\ttr := rect[1]\n\tbr := rect[2]\n\tbl := rect[3]\n\n\twidthA := math.Sqrt(math.Pow(float64(br.X)-float64(bl.X), 2) +\n\t\tmath.Pow(float64(br.Y)-float64(bl.Y), 2))\n\twidthB := math.Sqrt(math.Pow(float64(tr.X)-float64(tl.X), 2) +\n\t\tmath.Pow(float64(tr.Y)-float64(tl.Y), 2))\n\tmaxWidth := math.Max(widthA, widthB)\n\n\theightA := math.Sqrt(math.Pow(float64(tr.X)-float64(br.X), 2) +\n\t\tmath.Pow(float64(tr.Y)-float64(br.Y), 2))\n\theightB := math.Sqrt(math.Pow(float64(tl.X)-float64(bl.X), 2) +\n\t\tmath.Pow(float64(tl.Y)-float64(bl.Y), 2))\n\tmaxHeight := math.Max(heightA, heightB)\n\n\tdt := []image.Point{\n\t\timage.Pt(0, 0),\n\t\timage.Pt(int(maxWidth)-1, 0),\n\t\timage.Pt(int(maxWidth)-1, int(maxHeight)-1),\n\t\timage.Pt(0, int(maxHeight)-1)}\n\n\tm := gocv.GetPerspectiveTransform(rect, dt)\n\tgocv.WarpPerspective(img, dst, m, image.Pt(int(maxWidth), int(maxHeight)))\n\n}", "func (m *Mat4) MulV(v *Vec4) *Vec4 {\n\trv := Vec4{0.0, 0.0, 0.0, 0.0}\n\trv.X = m[0].X*v.X + m[1].X*v.Y + m[2].X*v.Z + m[3].X*v.W\n\trv.Y = m[0].Y*v.X + m[1].Y*v.Y + m[2].Y*v.Z + m[3].Y*v.W\n\trv.Z = m[0].Z*v.X + m[1].Z*v.Y + m[2].Z*v.Z + m[3].Z*v.W\n\trv.W = m[0].W*v.X + m[1].W*v.Y + m[2].W*v.Z + m[3].W*v.W\n\treturn &rv\n}", "func (matrix Matrix4) MultVec(vect vector.Vector) vector.Vector {\n\n\treturn vector.Vector{\n\n\t\tmatrix[0][0]*vect[0] + matrix[1][0]*vect[1] + matrix[2][0]*vect[2] + matrix[3][0],\n\t\tmatrix[0][1]*vect[0] + matrix[1][1]*vect[1] + matrix[2][1]*vect[2] + matrix[3][1],\n\t\tmatrix[0][2]*vect[0] + matrix[1][2]*vect[1] + matrix[2][2]*vect[2] + matrix[3][2],\n\t\t// matrix[3][0]*vect[0] + matrix[3][1]*vect[1] + matrix[3][2]*vect[2] + matrix[3][3],\n\t\t// 1 - vect[2] /\n\n\t}\n\n}", "func (m Matrix) Multiply(right Matrix) Matrix {\n\treturn Matrix{\n\t\tM0: m.M0*right.M0 + m.M1*right.M4 + m.M2*right.M8 + m.M3*right.M12,\n\t\tM1: m.M0*right.M1 + m.M1*right.M5 + m.M2*right.M9 + m.M3*right.M13,\n\t\tM2: m.M0*right.M2 + m.M1*right.M6 + m.M2*right.M10 + m.M3*right.M14,\n\t\tM3: m.M0*right.M3 + m.M1*right.M7 + m.M2*right.M11 + m.M3*right.M15,\n\t\tM4: m.M4*right.M0 + m.M5*right.M4 + m.M6*right.M8 + m.M7*right.M12,\n\t\tM5: m.M4*right.M1 + m.M5*right.M5 + m.M6*right.M9 + m.M7*right.M13,\n\t\tM6: m.M4*right.M2 + m.M5*right.M6 + m.M6*right.M10 + m.M7*right.M14,\n\t\tM7: m.M4*right.M3 + m.M5*right.M7 + m.M6*right.M11 + m.M7*right.M15,\n\t\tM8: m.M8*right.M0 + m.M9*right.M4 + m.M10*right.M8 + m.M11*right.M12,\n\t\tM9: m.M8*right.M1 + m.M9*right.M5 + m.M10*right.M9 + m.M11*right.M13,\n\t\tM10: m.M8*right.M2 + m.M9*right.M6 + m.M10*right.M10 + m.M11*right.M14,\n\t\tM11: m.M8*right.M3 + m.M9*right.M7 + m.M10*right.M11 + m.M11*right.M15,\n\t\tM12: m.M12*right.M0 + m.M13*right.M4 + m.M14*right.M8 + m.M15*right.M12,\n\t\tM13: m.M12*right.M1 + m.M13*right.M5 + m.M14*right.M9 + m.M15*right.M13,\n\t\tM14: m.M12*right.M2 + m.M13*right.M6 + m.M14*right.M10 + m.M15*right.M14,\n\t\tM15: m.M12*right.M3 + m.M13*right.M7 + m.M14*right.M11 + m.M15*right.M15,\n\t}\n}", "func (v *Vec4) Transform(m *Mat4) {\n\tvar t Vec4\n\tt.Assign(v)\n\n\tv.X = t.X*m[0] + t.Y*m[4] + t.Z*m[8] + t.W*m[12]\n\tv.Y = t.X*m[1] + t.Y*m[5] + t.Z*m[9] + t.W*m[13]\n\tv.Z = t.X*m[2] + t.Y*m[6] + t.Z*m[10] + t.W*m[14]\n\tv.W = t.X*m[3] + t.Y*m[7] + t.Z*m[11] + t.W*m[15]\n}", "func (mPointer *GF8Matrix) Inv() (*GF8Matrix, error) {\n\tm := NewMatrix(mPointer.numRow, mPointer.numCol)\n\tcopy(m.Matrix, mPointer.Matrix)\n\tif m.numCol != m.numRow {\n\t\tlog.Fatal(ErrNotSquareMatrix)\n\t}\n\t// extend identity matrix to right half\n\tfor r := 0; r < m.numRow; r++ {\n\t\tprepandArray := make([]byte, m.numCol)\n\t\tprepandArray[r] = 1\n\t\tm.Matrix[r] = append(m.Matrix[r], prepandArray...)\n\t}\n\toriginalNumCol := m.numCol\n\tm.numCol += originalNumCol\n\t// make left half identity\n\tfor r := 0; r < m.numRow; r++ {\n\t\t// find head\n\t\tsingularFlag := true\n\t\tfor iFindHead := r; iFindHead < m.numRow; iFindHead++ {\n\t\t\tif m.Matrix[iFindHead][r] != 0 {\n\t\t\t\tif iFindHead != r {\n\t\t\t\t\tm.swapRow(iFindHead, r)\n\t\t\t\t}\n\t\t\t\tsingularFlag = false\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t\tif singularFlag {\n\t\t\treturn nil, ErrSingularMatrix\n\t\t}\n\t\t// make this diagnal unit\n\t\thead := m.Matrix[r][r]\n\t\tm.multRow(r, inverseTbl[head])\n\t\t// erase other rows\n\t\tfor rFollow := 0; rFollow < m.numRow; rFollow++ {\n\t\t\tif rFollow == r || m.Matrix[rFollow][r] == 0 {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tm.mulAddToRow(r, m.Matrix[rFollow][r], rFollow)\n\t\t}\n\t}\n\t//remove left half\n\tfor r := 0; r < m.numRow; r++ {\n\t\tm.Matrix[r] = m.Matrix[r][originalNumCol:]\n\t}\n\tm.numCol = originalNumCol\n\n\tif SanityCheck {\n\t\tshouldBeIdentity := m.Mul(mPointer)\n\t\tshouldBeIdentity.ShowMatrix(SanityCheck)\n\t\tfor r := 0; r < m.numRow; r++ {\n\t\t\tfor c := 0; c < m.numCol; c++ {\n\t\t\t\tif r == c && shouldBeIdentity.Matrix[r][c] != 1 {\n\t\t\t\t\tlog.Fatalf(\"Fail the sanity check, %v != 1\", shouldBeIdentity.Matrix[r][c])\n\t\t\t\t} else if r != c && shouldBeIdentity.Matrix[r][c] != 0 {\n\t\t\t\t\tlog.Fatalf(\"Fail the sanity check, %v != 0\", shouldBeIdentity.Matrix[r][c])\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn m, nil\n}", "func Mat3Translate(out, a, v []float64) []float64 {\n\ta00 := a[0]\n\ta01 := a[1]\n\ta02 := a[2]\n\ta10 := a[3]\n\ta11 := a[4]\n\ta12 := a[5]\n\ta20 := a[6]\n\ta21 := a[7]\n\ta22 := a[8]\n\tx := v[0]\n\ty := v[1]\n\n\tout[0] = a00\n\tout[1] = a01\n\tout[2] = a02\n\n\tout[3] = a10\n\tout[4] = a11\n\tout[5] = a12\n\n\tout[6] = x*a00 + y*a10 + a20\n\tout[7] = x*a01 + y*a11 + a21\n\tout[8] = x*a02 + y*a12 + a22\n\treturn out\n}", "func (m Matrix) Transform(u vec32.Vector) (v vec32.Vector) {\n\tfor i := range v {\n\t\tfor j := range u {\n\t\t\tv[i] += m[i][j] * u[j]\n\t\t}\n\t}\n\treturn\n}", "func (m1 Matrix) Mul(m2 Matrix) Matrix {\n\treturn Matrix{\n\t\tm1[0]*m2[0] + m1[4]*m2[1] + m1[8]*m2[2] + m1[12]*m2[3],\n\t\tm1[1]*m2[0] + m1[5]*m2[1] + m1[9]*m2[2] + m1[13]*m2[3],\n\t\tm1[2]*m2[0] + m1[6]*m2[1] + m1[10]*m2[2] + m1[14]*m2[3],\n\t\tm1[3]*m2[0] + m1[7]*m2[1] + m1[11]*m2[2] + m1[15]*m2[3],\n\t\tm1[0]*m2[4] + m1[4]*m2[5] + m1[8]*m2[6] + m1[12]*m2[7],\n\t\tm1[1]*m2[4] + m1[5]*m2[5] + m1[9]*m2[6] + m1[13]*m2[7],\n\t\tm1[2]*m2[4] + m1[6]*m2[5] + m1[10]*m2[6] + m1[14]*m2[7],\n\t\tm1[3]*m2[4] + m1[7]*m2[5] + m1[11]*m2[6] + m1[15]*m2[7],\n\t\tm1[0]*m2[8] + m1[4]*m2[9] + m1[8]*m2[10] + m1[12]*m2[11],\n\t\tm1[1]*m2[8] + m1[5]*m2[9] + m1[9]*m2[10] + m1[13]*m2[11],\n\t\tm1[2]*m2[8] + m1[6]*m2[9] + m1[10]*m2[10] + m1[14]*m2[11],\n\t\tm1[3]*m2[8] + m1[7]*m2[9] + m1[11]*m2[10] + m1[15]*m2[11],\n\t\tm1[0]*m2[12] + m1[4]*m2[13] + m1[8]*m2[14] + m1[12]*m2[15],\n\t\tm1[1]*m2[12] + m1[5]*m2[13] + m1[9]*m2[14] + m1[13]*m2[15],\n\t\tm1[2]*m2[12] + m1[6]*m2[13] + m1[10]*m2[14] + m1[14]*m2[15],\n\t\tm1[3]*m2[12] + m1[7]*m2[13] + m1[11]*m2[14] + m1[15]*m2[15],\n\t}\n}", "func (mat Mat) TransposeMatrix() Mat {\n r := mat.Shape[0]\n c := mat.Shape[1]\n var temp [][]float32\n for i := 0; i < c; i++ {\n temp_r := make([]float32, r)\n for j := 0 ; j < r; j++ {\n temp_r[j] = mat.Value[j][i]\n }\n temp = append(temp, temp_r)\n }\n return Mat{temp,[]int{mat.Shape[1], mat.Shape[0]}}\n}", "func (mat Mat) MultiplyScalar(s float32) Mat {\n var temp [][]float32\n for i := 0 ; i < mat.Shape[0]; i++ {\n temp_r := make([]float32, mat.Shape[1])\n for j := 0 ; j < mat.Shape[1]; j++ {\n temp_r[j] = mat.Value[i][j] * s\n }\n temp = append(temp, temp_r)\n }\n return Mat{temp, mat.Shape}\n}", "func multiplyStuff(finalMatrix *[][][]int64, matrix1 [][]int64, matrix2 [][]int64, i int) {\n\t(*finalMatrix)[i] = multiply(matrix1, matrix2)\n}", "func (matrix Matrix4) MultVecW(vect vector.Vector) vector.Vector {\n\n\treturn vector.Vector{\n\t\tmatrix[0][0]*vect[0] + matrix[1][0]*vect[1] + matrix[2][0]*vect[2] + matrix[3][0],\n\t\tmatrix[0][1]*vect[0] + matrix[1][1]*vect[1] + matrix[2][1]*vect[2] + matrix[3][1],\n\t\tmatrix[0][2]*vect[0] + matrix[1][2]*vect[1] + matrix[2][2]*vect[2] + matrix[3][2],\n\t\tmatrix[0][3]*vect[0] + matrix[1][3]*vect[1] + matrix[2][3]*vect[2] + matrix[3][3],\n\t}\n\n}", "func Zlarfb(side mat.MatSide, trans mat.MatTrans, direct, storev byte, m, n, k int, v, t, c, work *mat.CMatrix) {\n\tvar transt mat.MatTrans\n\tvar one complex128\n\tvar i, j int\n\tvar err error\n\n\tone = (1.0 + 0.0*1i)\n\n\t// Quick return if possible\n\tif m <= 0 || n <= 0 {\n\t\treturn\n\t}\n\n\tif trans == NoTrans {\n\t\ttranst = ConjTrans\n\t} else {\n\t\ttranst = NoTrans\n\t}\n\n\tif storev == 'C' {\n\n\t\tif direct == 'F' {\n\t\t\t// Let V = ( V1 ) (first K rows)\n\t\t\t// ( V2 )\n\t\t\t// where V1 is unit lower triangular.\n\t\t\tif side == Left {\n\t\t\t\t// Form H * C or H**H * C where C = ( C1 )\n\t\t\t\t// ( C2 )\n\t\t\t\t//\n\t\t\t\t// W := C**H * V = (C1**H * V1 + C2**H * V2) (stored in WORK)\n\t\t\t\t//\n\t\t\t\t// W := C1**H\n\t\t\t\tfor j = 1; j <= k; j++ {\n\t\t\t\t\twork.Off(0, j-1).CVector().Copy(n, c.Off(j-1, 0).CVector(), c.Rows, 1)\n\t\t\t\t\tZlacgv(n, work.Off(0, j-1).CVector(), 1)\n\t\t\t\t}\n\n\t\t\t\t// W := W * V1\n\t\t\t\tif err = work.Trmm(Right, Lower, NoTrans, Unit, n, k, one, v); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\t\t\t\tif m > k {\n\t\t\t\t\t// W := W + C2**H * V2\n\t\t\t\t\tif err = work.Gemm(ConjTrans, NoTrans, n, k, m-k, one, c.Off(k, 0), v.Off(k, 0), one); err != nil {\n\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// W := W * T**H or W * T\n\t\t\t\tif err = work.Trmm(Right, Upper, transt, NonUnit, n, k, one, t); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\n\t\t\t\t// C := C - V * W**H\n\t\t\t\tif m > k {\n\t\t\t\t\t// C2 := C2 - V2 * W**H\n\t\t\t\t\tif err = c.Off(k, 0).Gemm(NoTrans, ConjTrans, m-k, n, k, -one, v.Off(k, 0), work, one); err != nil {\n\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// W := W * V1**H\n\t\t\t\tif err = work.Trmm(Right, Lower, ConjTrans, Unit, n, k, one, v); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\n\t\t\t\t// C1 := C1 - W**H\n\t\t\t\tfor j = 1; j <= k; j++ {\n\t\t\t\t\tfor i = 1; i <= n; i++ {\n\t\t\t\t\t\tc.Set(j-1, i-1, c.Get(j-1, i-1)-work.GetConj(i-1, j-1))\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else if side == Right {\n\t\t\t\t// Form C * H or C * H**H where C = ( C1 C2 )\n\t\t\t\t//\n\t\t\t\t// W := C * V = (C1*V1 + C2*V2) (stored in WORK)\n\t\t\t\t//\n\t\t\t\t// W := C1\n\t\t\t\tfor j = 1; j <= k; j++ {\n\t\t\t\t\twork.Off(0, j-1).CVector().Copy(m, c.Off(0, j-1).CVector(), 1, 1)\n\t\t\t\t}\n\n\t\t\t\t// W := W * V1\n\t\t\t\tif err = work.Trmm(Right, Lower, NoTrans, Unit, m, k, one, v); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\t\t\t\tif n > k {\n\t\t\t\t\t// W := W + C2 * V2\n\t\t\t\t\tif err = work.Gemm(NoTrans, NoTrans, m, k, n-k, one, c.Off(0, k), v.Off(k, 0), one); err != nil {\n\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// W := W * T or W * T**H\n\t\t\t\tif err = work.Trmm(Right, Upper, trans, NonUnit, m, k, one, t); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\n\t\t\t\t// C := C - W * V**H\n\t\t\t\tif n > k {\n\t\t\t\t\t// C2 := C2 - W * V2**H\n\t\t\t\t\tif err = c.Off(0, k).Gemm(NoTrans, ConjTrans, m, n-k, k, -one, work, v.Off(k, 0), one); err != nil {\n\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// W := W * V1**H\n\t\t\t\tif err = work.Trmm(Right, Lower, ConjTrans, Unit, m, k, one, v); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\n\t\t\t\t// C1 := C1 - W\n\t\t\t\tfor j = 1; j <= k; j++ {\n\t\t\t\t\tfor i = 1; i <= m; i++ {\n\t\t\t\t\t\tc.Set(i-1, j-1, c.Get(i-1, j-1)-work.Get(i-1, j-1))\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\t\t\t// Let V = ( V1 )\n\t\t\t// ( V2 ) (last K rows)\n\t\t\t// where V2 is unit upper triangular.\n\t\t\tif side == Left {\n\t\t\t\t// Form H * C or H**H * C where C = ( C1 )\n\t\t\t\t// ( C2 )\n\t\t\t\t//\n\t\t\t\t// W := C**H * V = (C1**H * V1 + C2**H * V2) (stored in WORK)\n\t\t\t\t//\n\t\t\t\t// W := C2**H\n\t\t\t\tfor j = 1; j <= k; j++ {\n\t\t\t\t\twork.Off(0, j-1).CVector().Copy(n, c.Off(m-k+j-1, 0).CVector(), c.Rows, 1)\n\t\t\t\t\tZlacgv(n, work.Off(0, j-1).CVector(), 1)\n\t\t\t\t}\n\n\t\t\t\t// W := W * V2\n\t\t\t\tif err = work.Trmm(Right, Upper, NoTrans, Unit, n, k, one, v.Off(m-k, 0)); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\t\t\t\tif m > k {\n\t\t\t\t\t// W := W + C1**H * V1\n\t\t\t\t\tif err = work.Gemm(ConjTrans, NoTrans, n, k, m-k, one, c, v, one); err != nil {\n\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// W := W * T**H or W * T\n\t\t\t\tif err = work.Trmm(Right, Lower, transt, NonUnit, n, k, one, t); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\n\t\t\t\t// C := C - V * W**H\n\t\t\t\tif m > k {\n\t\t\t\t\t// C1 := C1 - V1 * W**H\n\t\t\t\t\tif err = c.Gemm(NoTrans, ConjTrans, m-k, n, k, -one, v, work, one); err != nil {\n\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// W := W * V2**H\n\t\t\t\tif err = work.Trmm(Right, Upper, ConjTrans, Unit, n, k, one, v.Off(m-k, 0)); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\n\t\t\t\t// C2 := C2 - W**H\n\t\t\t\tfor j = 1; j <= k; j++ {\n\t\t\t\t\tfor i = 1; i <= n; i++ {\n\t\t\t\t\t\tc.Set(m-k+j-1, i-1, c.Get(m-k+j-1, i-1)-work.GetConj(i-1, j-1))\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else if side == Right {\n\t\t\t\t// Form C * H or C * H**H where C = ( C1 C2 )\n\t\t\t\t//\n\t\t\t\t// W := C * V = (C1*V1 + C2*V2) (stored in WORK)\n\t\t\t\t//\n\t\t\t\t// W := C2\n\t\t\t\tfor j = 1; j <= k; j++ {\n\t\t\t\t\twork.Off(0, j-1).CVector().Copy(m, c.Off(0, n-k+j-1).CVector(), 1, 1)\n\t\t\t\t}\n\n\t\t\t\t// W := W * V2\n\t\t\t\tif err = work.Trmm(Right, Upper, NoTrans, Unit, m, k, one, v.Off(n-k, 0)); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\t\t\t\tif n > k {\n\t\t\t\t\t// W := W + C1 * V1\n\t\t\t\t\tif err = work.Gemm(NoTrans, NoTrans, m, k, n-k, one, c, v, one); err != nil {\n\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// W := W * T or W * T**H\n\t\t\t\tif err = work.Trmm(Right, Lower, trans, NonUnit, m, k, one, t); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\n\t\t\t\t// C := C - W * V**H\n\t\t\t\tif n > k {\n\t\t\t\t\t// C1 := C1 - W * V1**H\n\t\t\t\t\tif err = c.Gemm(NoTrans, ConjTrans, m, n-k, k, -one, work, v, one); err != nil {\n\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// W := W * V2**H\n\t\t\t\tif err = work.Trmm(Right, Upper, ConjTrans, Unit, m, k, one, v.Off(n-k, 0)); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\n\t\t\t\t// C2 := C2 - W\n\t\t\t\tfor j = 1; j <= k; j++ {\n\t\t\t\t\tfor i = 1; i <= m; i++ {\n\t\t\t\t\t\tc.Set(i-1, n-k+j-1, c.Get(i-1, n-k+j-1)-work.Get(i-1, j-1))\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t} else if storev == 'R' {\n\n\t\tif direct == 'F' {\n\t\t\t// Let V = ( V1 V2 ) (V1: first K columns)\n\t\t\t// where V1 is unit upper triangular.\n\t\t\tif side == Left {\n\t\t\t\t// Form H * C or H**H * C where C = ( C1 )\n\t\t\t\t// ( C2 )\n\t\t\t\t//\n\t\t\t\t// W := C**H * V**H = (C1**H * V1**H + C2**H * V2**H) (stored in WORK)\n\t\t\t\t//\n\t\t\t\t// W := C1**H\n\t\t\t\tfor j = 1; j <= k; j++ {\n\t\t\t\t\twork.Off(0, j-1).CVector().Copy(n, c.Off(j-1, 0).CVector(), c.Rows, 1)\n\t\t\t\t\tZlacgv(n, work.Off(0, j-1).CVector(), 1)\n\t\t\t\t}\n\n\t\t\t\t// W := W * V1**H\n\t\t\t\tif err = work.Trmm(Right, Upper, ConjTrans, Unit, n, k, one, v); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\t\t\t\tif m > k {\n\t\t\t\t\t// W := W + C2**H * V2**H\n\t\t\t\t\tif err = work.Gemm(ConjTrans, ConjTrans, n, k, m-k, one, c.Off(k, 0), v.Off(0, k), one); err != nil {\n\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// W := W * T**H or W * T\n\t\t\t\tif err = work.Trmm(Right, Upper, transt, NonUnit, n, k, one, t); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\n\t\t\t\t// C := C - V**H * W**H\n\t\t\t\tif m > k {\n\t\t\t\t\t// C2 := C2 - V2**H * W**H\n\t\t\t\t\tif err = c.Off(k, 0).Gemm(ConjTrans, ConjTrans, m-k, n, k, -one, v.Off(0, k), work, one); err != nil {\n\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// W := W * V1\n\t\t\t\tif err = work.Trmm(Right, Upper, NoTrans, Unit, n, k, one, v); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\n\t\t\t\t// C1 := C1 - W**H\n\t\t\t\tfor j = 1; j <= k; j++ {\n\t\t\t\t\tfor i = 1; i <= n; i++ {\n\t\t\t\t\t\tc.Set(j-1, i-1, c.Get(j-1, i-1)-work.GetConj(i-1, j-1))\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else if side == Right {\n\t\t\t\t// Form C * H or C * H**H where C = ( C1 C2 )\n\t\t\t\t//\n\t\t\t\t// W := C * V**H = (C1*V1**H + C2*V2**H) (stored in WORK)\n\t\t\t\t//\n\t\t\t\t// W := C1\n\t\t\t\tfor j = 1; j <= k; j++ {\n\t\t\t\t\twork.Off(0, j-1).CVector().Copy(m, c.Off(0, j-1).CVector(), 1, 1)\n\t\t\t\t}\n\n\t\t\t\t// W := W * V1**H\n\t\t\t\tif err = work.Trmm(Right, Upper, ConjTrans, Unit, m, k, one, v); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\t\t\t\tif n > k {\n\t\t\t\t\t// W := W + C2 * V2**H\n\t\t\t\t\tif err = work.Gemm(NoTrans, ConjTrans, m, k, n-k, one, c.Off(0, k), v.Off(0, k), one); err != nil {\n\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// W := W * T or W * T**H\n\t\t\t\tif err = work.Trmm(Right, Upper, trans, NonUnit, m, k, one, t); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\n\t\t\t\t// C := C - W * V\n\t\t\t\tif n > k {\n\t\t\t\t\t// C2 := C2 - W * V2\n\t\t\t\t\tif err = c.Off(0, k).Gemm(NoTrans, NoTrans, m, n-k, k, -one, work, v.Off(0, k), one); err != nil {\n\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// W := W * V1\n\t\t\t\tif err = work.Trmm(Right, Upper, NoTrans, Unit, m, k, one, v); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\n\t\t\t\t// C1 := C1 - W\n\t\t\t\tfor j = 1; j <= k; j++ {\n\t\t\t\t\tfor i = 1; i <= m; i++ {\n\t\t\t\t\t\tc.Set(i-1, j-1, c.Get(i-1, j-1)-work.Get(i-1, j-1))\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} else {\n\t\t\t// Let V = ( V1 V2 ) (V2: last K columns)\n\t\t\t// where V2 is unit lower triangular.\n\t\t\tif side == Left {\n\t\t\t\t// Form H * C or H**H * C where C = ( C1 )\n\t\t\t\t// ( C2 )\n\t\t\t\t//\n\t\t\t\t// W := C**H * V**H = (C1**H * V1**H + C2**H * V2**H) (stored in WORK)\n\t\t\t\t//\n\t\t\t\t// W := C2**H\n\t\t\t\tfor j = 1; j <= k; j++ {\n\t\t\t\t\twork.Off(0, j-1).CVector().Copy(n, c.Off(m-k+j-1, 0).CVector(), c.Rows, 1)\n\t\t\t\t\tZlacgv(n, work.Off(0, j-1).CVector(), 1)\n\t\t\t\t}\n\n\t\t\t\t// W := W * V2**H\n\t\t\t\tif err = work.Trmm(Right, Lower, ConjTrans, Unit, n, k, one, v.Off(0, m-k)); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\t\t\t\tif m > k {\n\t\t\t\t\t// W := W + C1**H * V1**H\n\t\t\t\t\tif err = work.Gemm(ConjTrans, ConjTrans, n, k, m-k, one, c, v, one); err != nil {\n\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// W := W * T**H or W * T\n\t\t\t\tif err = work.Trmm(Right, Lower, transt, NonUnit, n, k, one, t); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\n\t\t\t\t// C := C - V**H * W**H\n\t\t\t\tif m > k {\n\t\t\t\t\t// C1 := C1 - V1**H * W**H\n\t\t\t\t\tif err = c.Gemm(ConjTrans, ConjTrans, m-k, n, k, -one, v, work, one); err != nil {\n\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// W := W * V2\n\t\t\t\tif err = work.Trmm(Right, Lower, NoTrans, Unit, n, k, one, v.Off(0, m-k)); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\n\t\t\t\t// C2 := C2 - W**H\n\t\t\t\tfor j = 1; j <= k; j++ {\n\t\t\t\t\tfor i = 1; i <= n; i++ {\n\t\t\t\t\t\tc.Set(m-k+j-1, i-1, c.Get(m-k+j-1, i-1)-work.GetConj(i-1, j-1))\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else if side == Right {\n\t\t\t\t// Form C * H or C * H**H where C = ( C1 C2 )\n\t\t\t\t//\n\t\t\t\t// W := C * V**H = (C1*V1**H + C2*V2**H) (stored in WORK)\n\t\t\t\t//\n\t\t\t\t// W := C2\n\t\t\t\tfor j = 1; j <= k; j++ {\n\t\t\t\t\twork.Off(0, j-1).CVector().Copy(m, c.Off(0, n-k+j-1).CVector(), 1, 1)\n\t\t\t\t}\n\n\t\t\t\t// W := W * V2**H\n\t\t\t\tif err = work.Trmm(Right, Lower, ConjTrans, Unit, m, k, one, v.Off(0, n-k)); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\t\t\t\tif n > k {\n\t\t\t\t\t// W := W + C1 * V1**H\n\t\t\t\t\tif err = work.Gemm(NoTrans, ConjTrans, m, k, n-k, one, c, v, one); err != nil {\n\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// W := W * T or W * T**H\n\t\t\t\tif err = work.Trmm(Right, Lower, trans, NonUnit, m, k, one, t); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\n\t\t\t\t// C := C - W * V\n\t\t\t\tif n > k {\n\t\t\t\t\t// C1 := C1 - W * V1\n\t\t\t\t\tif err = c.Gemm(NoTrans, NoTrans, m, n-k, k, -one, work, v, one); err != nil {\n\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// W := W * V2\n\t\t\t\tif err = work.Trmm(Right, Lower, NoTrans, Unit, m, k, one, v.Off(0, n-k)); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\n\t\t\t\t// C1 := C1 - W\n\t\t\t\tfor j = 1; j <= k; j++ {\n\t\t\t\t\tfor i = 1; i <= m; i++ {\n\t\t\t\t\t\tc.Set(i-1, n-k+j-1, c.Get(i-1, n-k+j-1)-work.Get(i-1, j-1))\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}\n}", "func (m *Mat4) MulS(s gl.Float) *Mat4 {\n\tvar rm = Mat4{\n\t\t{m[0].X * s, m[0].Y * s, m[0].Z * s, m[0].W * s},\n\t\t{m[1].X * s, m[1].Y * s, m[1].Z * s, m[1].W * s},\n\t\t{m[2].X * s, m[2].Y * s, m[2].Z * s, m[2].W * s},\n\t\t{m[3].X * s, m[3].Y * s, m[3].Z * s, m[3].W * s},\n\t}\n\treturn &rm\n}", "func (m Matrix3) MultiplyV(v Vector3) (r Vector3) {\n\tfor i := range r {\n\t\tr[i] = m.GetRow(i).Dot(v)\n\t}\n\treturn\n}", "func (mesh *Mesh) ApplyMatrix(matrix Matrix4) {\n\n\tfor _, tri := range mesh.Triangles {\n\t\tfor _, vert := range tri.Vertices {\n\t\t\tvert.Position = matrix.MultVec(vert.Position)\n\t\t}\n\t\ttri.RecalculateCenter()\n\t}\n\n\tmesh.UpdateBounds()\n\n}", "func (A Matrix) multiply(B Matrix) Matrix {\n\tma, na := A.Dimensions()\n\tmb, nb := B.Dimensions()\n\tif na != mb {\n\t\tpanic(\"A and B are of incompatible dimensions\")\n\t}\n\n\tf := func(i, j int) float64 {\n\t\tvar v float64\n\t\tfor k := 0; k < na; k++ {\n\t\t\tv += A[i][k] * B[k][j]\n\t\t}\n\n\t\treturn v\n\t}\n\n\treturn New(ma, nb, f)\n\n\t/*\n\t\t// Winograd's algorithm\n\t\t// Source: Analysis of Algorithms, 2nd Ed., by Jeffrey J.\n\t\t// McConnell, pg 139-140\n\t\tvar (\n\t\t\td = na >> 1\n\t\t\trfacts = make([]float64, 0, ma)\n\t\t\tcfacts = make([]float64, 0, nb)\n\t\t)\n\n\t\tfor i := 0; i < ma; i++ {\n\t\t\trfacts = append(rfacts, A[i][0]*A[i][1])\n\t\t\tfor j := 1; j < d; j++ {\n\t\t\t\trfacts[i] += A[i][j<<1] * A[i][j<<1+1]\n\t\t\t}\n\t\t}\n\n\t\tfor i := 0; i < nb; i++ {\n\t\t\tcfacts = append(cfacts, B[0][i]*B[1][i])\n\t\t\tfor j := 1; j < d; j++ {\n\t\t\t\tcfacts[i] += B[j<<1][i] * B[j<<1+1][i]\n\t\t\t}\n\t\t}\n\n\t\tC := Empty(ma, nb)\n\t\tfor i := 0; i < ma; i++ {\n\t\t\tfor j := 0; j < nb; j++ {\n\t\t\t\tC[i][j] = -rfacts[i] - cfacts[j]\n\t\t\t\tfor k := 0; k < d; k++ {\n\t\t\t\t\tC[i][j] += (A[i][k<<1] + B[k<<1+1][j]) * (A[i][k<<1+1] + B[2*k][j])\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif na%1 == 1 {\n\t\t\tfor i := 0; i < ma; i++ {\n\t\t\t\tfor j := 0; j < nb; j++ {\n\t\t\t\t\tC[i][j] += A[i][na-1] * B[na-1][j]\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn C\n\t*/\n}", "func MatrixTranslate(x, y, z float32) Matrix {\n\treturn NewMatrix(\n\t\t1.0, 0.0, 0.0, x,\n\t\t0.0, 1.0, 0.0, y,\n\t\t0.0, 0.0, 1.0, z,\n\t\t0, 0, 0, 1.0)\n}", "func calcMVP(widthPx, heightPx int, tlx, tly, trx, try, blx, bly float64) f64.Aff3 {\n\t// Convert from pixel coords to vertex shader coords.\n\tinvHalfWidth := +2 / float64(widthPx)\n\tinvHalfHeight := -2 / float64(heightPx)\n\ttlx = tlx*invHalfWidth - 1\n\ttly = tly*invHalfHeight + 1\n\ttrx = trx*invHalfWidth - 1\n\ttry = try*invHalfHeight + 1\n\tblx = blx*invHalfWidth - 1\n\tbly = bly*invHalfHeight + 1\n\n\t// The resultant affine matrix:\n\t//\t- maps (0, 0) to (tlx, tly).\n\t//\t- maps (1, 0) to (trx, try).\n\t//\t- maps (0, 1) to (blx, bly).\n\treturn f64.Aff3{\n\t\ttrx - tlx, blx - tlx, tlx,\n\t\ttry - tly, bly - tly, tly,\n\t}\n}", "func invertMatrix(matrix []byte, k int) error {\n\tpivot_searcher := newPivotSearcher(k)\n\tindxc := make([]int, k)\n\tindxr := make([]int, k)\n\tid_row := make([]byte, k)\n\n\tfor col := 0; col < k; col++ {\n\t\ticol, irow, err := pivot_searcher.search(col, matrix)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tif irow != icol {\n\t\t\tfor i := 0; i < k; i++ {\n\t\t\t\tswap(&matrix[irow*k+i], &matrix[icol*k+i])\n\t\t\t}\n\t\t}\n\n\t\tindxr[col] = irow\n\t\tindxc[col] = icol\n\t\tpivot_row := matrix[icol*k:][:k]\n\t\tc := pivot_row[icol]\n\n\t\tif c == 0 {\n\t\t\treturn Error.New(\"singular matrix\")\n\t\t}\n\n\t\tif c != 1 {\n\t\t\tc = gf_inverse[c]\n\t\t\tpivot_row[icol] = 1\n\t\t\tmul_c := gf_mul_table[c][:]\n\n\t\t\tfor i := 0; i < k; i++ {\n\t\t\t\tpivot_row[i] = mul_c[pivot_row[i]]\n\t\t\t}\n\t\t}\n\n\t\tid_row[icol] = 1\n\t\tif !bytes.Equal(pivot_row, id_row) {\n\t\t\tp := matrix\n\t\t\tfor i := 0; i < k; i++ {\n\t\t\t\tif i != icol {\n\t\t\t\t\tc = p[icol]\n\t\t\t\t\tp[icol] = 0\n\t\t\t\t\taddmul(p[:k], pivot_row, c)\n\t\t\t\t}\n\t\t\t\tp = p[k:]\n\t\t\t}\n\t\t}\n\n\t\tid_row[icol] = 0\n\t}\n\n\tfor i := 0; i < k; i++ {\n\t\tif indxr[i] != indxc[i] {\n\t\t\tfor row := 0; row < k; row++ {\n\t\t\t\tswap(&matrix[row*k+indxr[i]], &matrix[row*k+indxc[i]])\n\t\t\t}\n\t\t}\n\t}\n\treturn nil\n}", "func dppt01(uplo mat.MatUplo, n int, a, afac, rwork *mat.Vector) (resid float64) {\n\tvar anorm, eps, one, t, zero float64\n\tvar i, k, kc, npp int\n\tvar err error\n\n\tzero = 0.0\n\tone = 1.0\n\n\t// Quick exit if N = 0\n\tif n <= 0 {\n\t\tresid = zero\n\t\treturn\n\t}\n\n\t// Exit with RESID = 1/EPS if ANORM = 0.\n\teps = golapack.Dlamch(Epsilon)\n\tanorm = golapack.Dlansp('1', uplo, n, a, rwork)\n\tif anorm <= zero {\n\t\tresid = one / eps\n\t\treturn\n\t}\n\n\t// Compute the product U'*U, overwriting U.\n\tif uplo == Upper {\n\t\tkc = (n*(n-1))/2 + 1\n\t\tfor k = n; k >= 1; k-- {\n\t\t\t// Compute the (K,K) element of the result.\n\t\t\tt = afac.Off(kc-1).Dot(k, afac.Off(kc-1), 1, 1)\n\t\t\tafac.Set(kc+k-1-1, t)\n\n\t\t\t// Compute the rest of column K.\n\t\t\tif k > 1 {\n\t\t\t\tif err = afac.Off(kc-1).Tpmv(Upper, Trans, NonUnit, k-1, afac, 1); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\t\t\t\tkc = kc - (k - 1)\n\t\t\t}\n\t\t}\n\n\t\t// Compute the product L*L', overwriting L.\n\t} else {\n\t\tkc = (n * (n + 1)) / 2\n\t\tfor k = n; k >= 1; k-- {\n\t\t\t// Add a multiple of column K of the factor L to each of\n\t\t\t// columns K+1 through N.\n\t\t\tif k < n {\n\t\t\t\tif err = afac.Off(kc+n-k).Spr(Lower, n-k, one, afac.Off(kc), 1); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Scale column K by the diagonal element.\n\t\t\tt = afac.Get(kc - 1)\n\t\t\tafac.Off(kc-1).Scal(n-k+1, t, 1)\n\n\t\t\tkc = kc - (n - k + 2)\n\t\t}\n\t}\n\n\t// Compute the difference L*L' - A (or U'*U - A).\n\tnpp = n * (n + 1) / 2\n\tfor i = 1; i <= npp; i++ {\n\t\tafac.Set(i-1, afac.Get(i-1)-a.Get(i-1))\n\t}\n\n\t// Compute norm( L*U - A ) / ( N * norm(A) * EPS )\n\tresid = golapack.Dlansp('1', uplo, n, afac, rwork)\n\n\tresid = ((resid / float64(n)) / anorm) / eps\n\n\treturn\n}", "func MatrixInvert(mat Matrix) Matrix {\n\tvar result Matrix\n\n\ta00 := mat.M0\n\ta01 := mat.M1\n\ta02 := mat.M2\n\ta03 := mat.M3\n\ta10 := mat.M4\n\ta11 := mat.M5\n\ta12 := mat.M6\n\ta13 := mat.M7\n\ta20 := mat.M8\n\ta21 := mat.M9\n\ta22 := mat.M10\n\ta23 := mat.M11\n\ta30 := mat.M12\n\ta31 := mat.M13\n\ta32 := mat.M14\n\ta33 := mat.M15\n\n\tb00 := a00*a11 - a01*a10\n\tb01 := a00*a12 - a02*a10\n\tb02 := a00*a13 - a03*a10\n\tb03 := a01*a12 - a02*a11\n\tb04 := a01*a13 - a03*a11\n\tb05 := a02*a13 - a03*a12\n\tb06 := a20*a31 - a21*a30\n\tb07 := a20*a32 - a22*a30\n\tb08 := a20*a33 - a23*a30\n\tb09 := a21*a32 - a22*a31\n\tb10 := a21*a33 - a23*a31\n\tb11 := a22*a33 - a23*a32\n\n\t// Calculate the invert determinant (inlined to avoid double-caching)\n\tinvDet := 1.0 / (b00*b11 - b01*b10 + b02*b09 + b03*b08 - b04*b07 + b05*b06)\n\n\tresult.M0 = (a11*b11 - a12*b10 + a13*b09) * invDet\n\tresult.M1 = (-a01*b11 + a02*b10 - a03*b09) * invDet\n\tresult.M2 = (a31*b05 - a32*b04 + a33*b03) * invDet\n\tresult.M3 = (-a21*b05 + a22*b04 - a23*b03) * invDet\n\tresult.M4 = (-a10*b11 + a12*b08 - a13*b07) * invDet\n\tresult.M5 = (a00*b11 - a02*b08 + a03*b07) * invDet\n\tresult.M6 = (-a30*b05 + a32*b02 - a33*b01) * invDet\n\tresult.M7 = (a20*b05 - a22*b02 + a23*b01) * invDet\n\tresult.M8 = (a10*b10 - a11*b08 + a13*b06) * invDet\n\tresult.M9 = (-a00*b10 + a01*b08 - a03*b06) * invDet\n\tresult.M10 = (a30*b04 - a31*b02 + a33*b00) * invDet\n\tresult.M11 = (-a20*b04 + a21*b02 - a23*b00) * invDet\n\tresult.M12 = (-a10*b09 + a11*b07 - a12*b06) * invDet\n\tresult.M13 = (a00*b09 - a01*b07 + a02*b06) * invDet\n\tresult.M14 = (-a30*b03 + a31*b01 - a32*b00) * invDet\n\tresult.M15 = (a20*b03 - a21*b01 + a22*b00) * invDet\n\n\treturn result\n}", "func (pc *perspectiveCameraImp) MatrixWorldInverse() *threejs.Matrix4 {\n\treturn &threejs.Matrix4{Value: pc.JSValue().Get(\"matrixWorldInverse\")}\n}", "func newMat(p C.Mat) Mat {\n\tm := Mat{p: p}\n\tMatProfile.Add(p, 1)\n\treturn m\n}", "func NewMatrix4Perspective(left, right, top, bottom, near, far float32) *Matrix4 {\n\tx := 2 * near / (right - left)\n\ty := 2 * near / (top - bottom)\n\n\ta := (right + left) / (right - left)\n\tb := (top + bottom) / (top - bottom)\n\tc := -(far + near) / (far - near)\n\td := -2 * far * near / (far - near)\n\n\treturn &Matrix4{\n\t\telements: [16]float32{\n\t\t\tx, 0, 0, 0,\n\t\t\t0, y, 0, 0,\n\t\t\ta, b, c, -1,\n\t\t\t0, 0, d, 0,\n\t\t},\n\t}\n}", "func (v Vec3) MulMat(m Mat3) Vec3 {\n\treturn Vec3{\n\t\tv[0]*m[0] + v[1]*m[3] + v[2]*m[6],\n\t\tv[0]*m[1] + v[1]*m[4] + v[2]*m[7],\n\t\tv[0]*m[2] + v[1]*m[5] + v[2]*m[8],\n\t}\n}", "func (p *PointAffine) ScalarMul(p1 *PointAffine, scalar *big.Int) *PointAffine {\n\n\tvar p1Proj, resProj PointProj\n\tp1Proj.FromAffine(p1)\n\tresProj.ScalarMul(&p1Proj, scalar)\n\tp.FromProj(&resProj)\n\n\treturn p\n}", "func MatrixMode(mode uint32) {\n C.glowMatrixMode(gpMatrixMode, (C.GLenum)(mode))\n}", "func Mat3Multiply(out, a, b []float64) []float64 {\n\ta00 := a[0]\n\ta01 := a[1]\n\ta02 := a[2]\n\ta10 := a[3]\n\ta11 := a[4]\n\ta12 := a[5]\n\ta20 := a[6]\n\ta21 := a[7]\n\ta22 := a[8]\n\n\tb00 := b[0]\n\tb01 := b[1]\n\tb02 := b[2]\n\tb10 := b[3]\n\tb11 := b[4]\n\tb12 := b[5]\n\tb20 := b[6]\n\tb21 := b[7]\n\tb22 := b[8]\n\n\tout[0] = b00*a00 + b01*a10 + b02*a20\n\tout[1] = b00*a01 + b01*a11 + b02*a21\n\tout[2] = b00*a02 + b01*a12 + b02*a22\n\n\tout[3] = b10*a00 + b11*a10 + b12*a20\n\tout[4] = b10*a01 + b11*a11 + b12*a21\n\tout[5] = b10*a02 + b11*a12 + b12*a22\n\n\tout[6] = b20*a00 + b21*a10 + b22*a20\n\tout[7] = b20*a01 + b21*a11 + b22*a21\n\tout[8] = b20*a02 + b21*a12 + b22*a22\n\treturn out\n}", "func (r *Pow) Forward() mat.Matrix {\n\treturn r.x.Value().Pow(r.power)\n}", "func (mat Mat) InverseMatrix() (Mat,error) {\n if mat.Shape[0] != mat.Shape[1] {\n return mat,&MatrixError{\"Not a Square matrix.\"}\n }\n adj_mat,determinant := AdjointMatrix(mat)\n if determinant == 0 {\n return mat,&MatrixError{\"The determinant of the matrix is zero.\"}\n }\n adj_mat = adj_mat.MultiplyScalar(1/determinant)\n return adj_mat,nil\n}", "func Project(obj Vec3, modelview, projection Mat4, initialX, initialY, width, height int) (win Vec3) {\n\tobj4 := obj.Vec4(1)\n\n\tvpp := projection.Mul4(modelview).Mul4x1(obj4)\n\tvpp = vpp.Mul(1 / vpp.W())\n\twin[0] = float64(initialX) + (float64(width)*(vpp[0]+1))/2\n\twin[1] = float64(initialY) + (float64(height)*(vpp[1]+1))/2\n\twin[2] = (vpp[2] + 1) / 2\n\n\treturn win\n}", "func (m Matrix3) LeftMultiply(q Matrix3) (result Matrix3) {\n\tconst size = 3\n\tfor r := 0; r < size; r++ {\n\t\tfor c := 0; c < size; c++ {\n\t\t\tresult[r*size+c] = q.GetRow(r).Dot(m.GetCol(c))\n\t\t}\n\t}\n\treturn\n}", "func (m *Matrix3) TransposeThis() {\n\t*m = m.Transpose()\n}", "func NewProjectionPerspective(fovy, near, far, viewWidth, viewHeight float64) Matrix4 {\n\n\taspect := viewWidth / viewHeight\n\n\tt := math.Tan(fovy * math.Pi / 360)\n\tb := -t\n\tr := t * aspect\n\tl := -r\n\n\t// l := -viewWidth / 2\n\t// r := viewWidth / 2\n\t// t := -viewHeight / 2\n\t// b := viewHeight / 2\n\n\treturn Matrix4{\n\t\t{(2 * near) / (r - l), 0, (r + l) / (r - l), 0},\n\t\t{0, (2 * near) / (t - b), (t + b) / (t - b), 0},\n\t\t{0, 0, -((far + near) / (far - near)), -((2 * far * near) / (far - near))},\n\t\t{0, 0, -1, 0},\n\t}\n\n}", "func (m *Matrix3) Mul(m1 *Matrix3) *Matrix3 {\n\treturn &Matrix3{\n\t\tm[0]*m1[0] + m[1]*m1[3] + m[2]*m1[6],\n\t\tm[0]*m1[1] + m[1]*m1[4] + m[2]*m1[7],\n\t\tm[0]*m1[2] + m[1]*m1[5] + m[2]*m1[8],\n\n\t\tm[3]*m1[0] + m[4]*m1[3] + m[5]*m1[6],\n\t\tm[3]*m1[1] + m[4]*m1[4] + m[5]*m1[7],\n\t\tm[3]*m1[2] + m[4]*m1[5] + m[5]*m1[8],\n\n\t\tm[6]*m1[0] + m[7]*m1[3] + m[8]*m1[6],\n\t\tm[6]*m1[1] + m[7]*m1[4] + m[8]*m1[7],\n\t\tm[6]*m1[2] + m[7]*m1[5] + m[8]*m1[8],\n\t}\n}", "func VPMOVSQW_Z(xyz, k, mx operand.Op) { ctx.VPMOVSQW_Z(xyz, k, mx) }", "func (c *Camera) SetPerspective(angle, ratio, zNear, zFar float32) {\n\tglm.PerspectiveIn(angle, ratio, zNear, zFar, &c.Projection)\n}", "func MatrixMultiply(a [][]float64, b [][]float64) ([][]float64, error) {\n\n\tvar err error\n\n\tarows := len(a)\n\tacols := len(a[0])\n\tbrows := len(b)\n\tbcols := len(b[0])\n\n\terr = nil\n\tif acols != brows {\n\t\terr = fmt.Errorf(\"Number of Columns in the Matrix a must equal number rows in b\")\n\t\treturn nil, err\n\t}\n\n\t// creat a new target matrix\n\tnewarray := make([][]float64, arows)\n\tfrow := make([]float64, arows*(bcols))\n\tfor i := range newarray {\n\t\tnewarray[i], frow = frow[:bcols], frow[bcols:]\n\t}\n\n\tfor i := range newarray {\n\t\tfor j := range newarray[i] {\n\t\t\tfor k := 0; k < brows; k++ {\n\t\t\t\tnewarray[i][j] += a[i][k] * b[k][j]\n\t\t\t}\n\t\t}\n\t}\n\n\treturn newarray, err\n}", "func (a *Mtx) Mult(b *Mtx) *Mtx {\n\tm := Mtx{}\n\tfor i := 0; i < 4; i++ {\n\t\tfor j := 0; j < 4; j++ {\n\t\t\tfor k := 0; k < 4; k++ {\n\t\t\t\tm.el[j][i] += a.el[k][i] * b.el[j][k]\n\t\t\t}\n\t\t}\n\t}\n\treturn &m\n}", "func (t *Transform) Matrix(a, b, c, d, e, f float64) {\n\tout := fmt.Sprintf(\"matrix(%g,%g,%g,%g,%g,%g)\", a, b, c, d, e, f)\n\n\tt.transforms = append(t.transforms, out)\n}", "func (m Matrix) Mul(n Matrix) Matrix {\n\treturn Matrix{\n\t\tm[0]*n[0] + m[1]*n[2],\n\t\tm[1]*n[3] + m[0]*n[1],\n\t\tm[2]*n[0] + m[3]*n[2],\n\t\tm[3]*n[3] + m[2]*n[1],\n\t\tm[4]*n[0] + m[5]*n[2] + n[4],\n\t\tm[5]*n[3] + m[4]*n[1] + n[5],\n\t}\n}", "func MatrixTranspose(mat Matrix) Matrix {\n\tvar result Matrix\n\n\tresult.M0 = mat.M0\n\tresult.M1 = mat.M4\n\tresult.M2 = mat.M8\n\tresult.M3 = mat.M12\n\tresult.M4 = mat.M1\n\tresult.M5 = mat.M5\n\tresult.M6 = mat.M9\n\tresult.M7 = mat.M13\n\tresult.M8 = mat.M2\n\tresult.M9 = mat.M6\n\tresult.M10 = mat.M10\n\tresult.M11 = mat.M14\n\tresult.M12 = mat.M3\n\tresult.M13 = mat.M7\n\tresult.M14 = mat.M11\n\tresult.M15 = mat.M15\n\n\treturn result\n}", "func (poly *PolynomialFeatures) InverseTransform(X, Y *mat.Dense) (Xout, Yout *mat.Dense) {\n\tif X == nil {\n\t\treturn X, Y\n\t}\n\ttype jt struct{ jorig, jpoly int }\n\tvar jts []jt\n\tnSamples, _ := X.Dims()\n\tXoutCols := 0\n\n\tintsum := func(a []int) int {\n\t\tvar s int\n\t\tfor _, v := range a {\n\t\t\ts += v\n\t\t}\n\t\treturn s\n\t}\n\tintmaxidx := func(a []int) int {\n\t\ti := 0\n\t\tfor j, v := range a {\n\t\t\tif v > a[i] {\n\t\t\t\ti = j\n\t\t\t}\n\t\t}\n\t\treturn i\n\t}\n\tfor ioutput, p := range poly.Powers {\n\t\tvar jMax = intmaxidx(p)\n\t\tvar sumpj = intsum(p)\n\t\tif sumpj == 1 {\n\t\t\t//fmt.Println(ioutput, \"p\", p, \"sumpj\", sumpj, \"jWith1\", jMax)\n\t\t\tjts = append(jts, jt{jMax, ioutput})\n\t\t\tif jMax >= XoutCols {\n\t\t\t\tXoutCols = jMax + 1\n\t\t\t}\n\t\t}\n\t}\n\tXout = mat.NewDense(nSamples, XoutCols, nil)\n\n\tfor _, pair := range jts {\n\t\t//fmt.Println(jts)\n\t\tfor i := 0; i < nSamples; i++ {\n\t\t\tXout.Set(i, pair.jorig, X.At(i, pair.jpoly))\n\t\t}\n\t}\n\treturn\n}", "func (a *Mtx) Inverse() *Mtx {\n\tif a.inv != nil {\n\t\treturn a.inv\n\t}\n\ti := Identity()\n\te := a.el\n\ti.el[0][0] = e[1][1]*e[2][2]*e[3][3] - e[1][1]*e[2][3]*e[3][2] - e[2][1]*e[1][2]*e[3][3] + e[2][1]*e[1][3]*e[3][2] + e[3][1]*e[1][2]*e[2][3] - e[3][1]*e[1][3]*e[2][2]\n\ti.el[1][0] = e[1][0]*e[2][3]*e[3][2] - e[1][0]*e[2][2]*e[3][3] + e[2][0]*e[1][2]*e[3][3] - e[2][0]*e[1][3]*e[3][2] - e[3][0]*e[1][2]*e[2][3] + e[3][0]*e[1][3]*e[2][2]\n\ti.el[2][0] = e[1][0]*e[2][1]*e[3][3] - e[1][0]*e[2][3]*e[3][1] - e[2][0]*e[1][1]*e[3][3] + e[2][0]*e[1][3]*e[3][1] + e[3][0]*e[1][1]*e[2][3] - e[3][0]*e[1][3]*e[2][1]\n\ti.el[3][0] = e[1][0]*e[2][2]*e[3][1] - e[1][0]*e[2][1]*e[3][2] + e[2][0]*e[1][1]*e[3][2] - e[2][0]*e[1][2]*e[3][1] - e[3][0]*e[1][1]*e[2][2] + e[3][0]*e[1][2]*e[2][1]\n\ti.el[0][1] = e[0][1]*e[2][3]*e[3][2] - e[0][1]*e[2][2]*e[3][3] + e[2][1]*e[0][2]*e[3][3] - e[2][1]*e[0][3]*e[3][2] - e[3][1]*e[0][2]*e[2][3] + e[3][1]*e[0][3]*e[2][2]\n\ti.el[1][1] = e[0][0]*e[2][2]*e[3][3] - e[0][0]*e[2][3]*e[3][2] - e[2][0]*e[0][2]*e[3][3] + e[2][0]*e[0][3]*e[3][2] + e[3][0]*e[0][2]*e[2][3] - e[3][0]*e[0][3]*e[2][2]\n\ti.el[2][1] = e[0][0]*e[2][3]*e[3][1] - e[0][0]*e[2][1]*e[3][3] + e[2][0]*e[0][1]*e[3][3] - e[2][0]*e[0][3]*e[3][1] - e[3][0]*e[0][1]*e[2][3] + e[3][0]*e[0][3]*e[2][1]\n\ti.el[3][1] = e[0][0]*e[2][1]*e[3][2] - e[0][0]*e[2][2]*e[3][1] - e[2][0]*e[0][1]*e[3][2] + e[2][0]*e[0][2]*e[3][1] + e[3][0]*e[0][1]*e[2][2] - e[3][0]*e[0][2]*e[2][1]\n\ti.el[0][2] = e[0][1]*e[1][2]*e[3][3] - e[0][1]*e[1][3]*e[3][2] - e[1][1]*e[0][2]*e[3][3] + e[1][1]*e[0][3]*e[3][2] + e[3][1]*e[0][2]*e[1][3] - e[3][1]*e[0][3]*e[1][2]\n\ti.el[1][2] = e[0][0]*e[1][3]*e[3][2] - e[0][0]*e[1][2]*e[3][3] + e[1][0]*e[0][2]*e[3][3] - e[1][0]*e[0][3]*e[3][2] - e[3][0]*e[0][2]*e[1][3] + e[3][0]*e[0][3]*e[1][2]\n\ti.el[2][2] = e[0][0]*e[1][1]*e[3][3] - e[0][0]*e[1][3]*e[3][1] - e[1][0]*e[0][1]*e[3][3] + e[1][0]*e[0][3]*e[3][1] + e[3][0]*e[0][1]*e[1][3] - e[3][0]*e[0][3]*e[1][1]\n\ti.el[3][2] = e[0][0]*e[1][2]*e[3][1] - e[0][0]*e[1][1]*e[3][2] + e[1][0]*e[0][1]*e[3][2] - e[1][0]*e[0][2]*e[3][1] - e[3][0]*e[0][1]*e[1][2] + e[3][0]*e[0][2]*e[1][1]\n\ti.el[0][3] = e[0][1]*e[1][3]*e[2][2] - e[0][1]*e[1][2]*e[2][3] + e[1][1]*e[0][2]*e[2][3] - e[1][1]*e[0][3]*e[2][2] - e[2][1]*e[0][2]*e[1][3] + e[2][1]*e[0][3]*e[1][2]\n\ti.el[1][3] = e[0][0]*e[1][2]*e[2][3] - e[0][0]*e[1][3]*e[2][2] - e[1][0]*e[0][2]*e[2][3] + e[1][0]*e[0][3]*e[2][2] + e[2][0]*e[0][2]*e[1][3] - e[2][0]*e[0][3]*e[1][2]\n\ti.el[2][3] = e[0][0]*e[1][3]*e[2][1] - e[0][0]*e[1][1]*e[2][3] + e[1][0]*e[0][1]*e[2][3] - e[1][0]*e[0][3]*e[2][1] - e[2][0]*e[0][1]*e[1][3] + e[2][0]*e[0][3]*e[1][1]\n\ti.el[3][3] = e[0][0]*e[1][1]*e[2][2] - e[0][0]*e[1][2]*e[2][1] - e[1][0]*e[0][1]*e[2][2] + e[1][0]*e[0][2]*e[2][1] + e[2][0]*e[0][1]*e[1][2] - e[2][0]*e[0][2]*e[1][1]\n\tdet := 1.0 / (e[0][0]*i.el[0][0] + e[0][1]*i.el[1][0] + e[0][2]*i.el[2][0] + e[0][3]*i.el[3][0])\n\tfor j := 0; j < 4; j++ {\n\t\tfor k := 0; k < 4; k++ {\n\t\t\ti.el[j][k] *= det\n\t\t}\n\t}\n\ta.inv, i.inv = i, a\n\treturn i\n}", "func (c *CSR) mulDIAMat(dia *DIA, other mat.Matrix, trans bool) {\n\t_, cols := other.Dims()\n\tdiagonal := dia.Diagonal()\n\n\tif trans {\n\t\tfor i := 0; i < c.matrix.I; i++ {\n\t\t\tvar v float64\n\t\t\tfor k := 0; k < cols; k++ {\n\t\t\t\tif k < len(diagonal) {\n\t\t\t\t\tv = other.At(i, k) * diagonal[k]\n\t\t\t\t\tif v != 0 {\n\t\t\t\t\t\tc.matrix.Ind = append(c.matrix.Ind, k)\n\t\t\t\t\t\tc.matrix.Data = append(c.matrix.Data, v)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tc.matrix.Indptr[i+1] = len(c.matrix.Ind)\n\t\t}\n\t} else {\n\t\tfor i := 0; i < c.matrix.I; i++ {\n\t\t\tvar v float64\n\t\t\tfor k := 0; k < cols; k++ {\n\t\t\t\tif i < len(diagonal) {\n\t\t\t\t\tv = other.At(i, k) * diagonal[i]\n\t\t\t\t\tif v != 0 {\n\t\t\t\t\t\tc.matrix.Ind = append(c.matrix.Ind, k)\n\t\t\t\t\t\tc.matrix.Data = append(c.matrix.Data, v)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tc.matrix.Indptr[i+1] = len(c.matrix.Ind)\n\t\t}\n\t}\n}", "func (m Matrix) Translate(v vec32.Vector) Matrix {\n\treturn Mul(m, Matrix{\n\t\t{1, 0, 0, 0},\n\t\t{0, 1, 0, 0},\n\t\t{0, 0, 1, 0},\n\t\t{v[0], v[1], v[2], 1},\n\t})\n}", "func rnd_m4_affine_inv(_mat [16]float64) ([16]float64, [9]float64) {\n\tupper := [9]float64{}\n\tcopy(upper[0:3], _mat[0:3])\n\tcopy(upper[3:6], _mat[4:7])\n\tcopy(upper[6:9], _mat[8:11])\n\tinv3 := mat.NewDense(3, 3, upper[:])\n\tif err:= inv3.Inverse(inv3); err!=nil {\n\t\tfmt.Println(\"Cannot inverse the matrix\")\n\t\tfmt.Println(err.Error())\n\t\tos.Exit(1)\n\t}\n\t_V := [3]float64{-_mat[3], -_mat[7], -_mat[11]}\n\tV := mat.NewVecDense(3, _V[:])\n\t//var U mat.VecDense\n\tactual := make([]float64,3)\n\tU:= mat.NewVecDense(3, actual)\n\tU.MulVec(inv3, V)\n\t_inv := [16]float64{\n\t\tupper[0], upper[1], upper[2], actual[0],\n\t\tupper[3], upper[4], upper[5], actual[1],\n\t\tupper[6], upper[7], upper[8], actual[2],\n\t\t0, 0, 0, 1,\n\t}\n\treturn _inv,upper\n}", "func (mat Mat) SubtractMatrix(mat_2 Mat) (Mat,error) {\n if len(mat.Shape) != len(mat_2.Shape) {\n return mat,&MatrixError{\"Miss-matched dimmensions.\"}\n } else {\n for dim := 0 ; dim < len(mat.Shape); dim++ {\n if mat.Shape[dim] != mat_2.Shape[dim] {\n return mat,&MatrixError{(\"Miss-matched shape.\")}\n }\n }\n }\n var temp [][]float32\n for i := 0 ; i < mat.Shape[0]; i++ {\n temp_r := make([]float32, mat.Shape[1])\n for j := 0 ; j < mat.Shape[1]; j++ {\n temp_r[j] = mat.Value[i][j] - mat_2.Value[i][j]\n }\n temp = append(temp, temp_r)\n }\n return Mat{temp, mat.Shape},nil\n}", "func LookMatrix(o Vec, to Vec) *Mtx {\n\tf, _ := o.Minus(to).Unit() // forward\n\tr, _ := yAxis.Cross(f) // right\n\tu, _ := f.Cross(r) // up\n\torient := NewMat(\n\t\tr.X, u.X, f.X, 0,\n\t\tr.Y, u.Y, f.Y, 0,\n\t\tr.Z, u.Z, f.Z, 0,\n\t\t0, 0, 0, 1,\n\t)\n\treturn Shift(o).Mult(orient)\n}", "func Matrix(index uint) uint {\n\tif index <= 1 {\n\t\treturn index\n\t}\n\n\tf := [2][2]uint{\n\t\t{1, 1},\n\t\t{1, 0},\n\t}\n\n\tf = matrixPower(f, index-1)\n\n\treturn f[0][0]\n}", "func (m Matrix) Project(u Vec) Vec {\n\treturn Vec{m[0]*u.X + m[2]*u.Y + m[4], m[1]*u.X + m[3]*u.Y + m[5]}\n}", "func (c Affine) Mat4() mat4 {\n\tm := mgl32.Scale3D(c.Scale[0], c.Scale[1], c.Scale[2])\n\n\tif c.Rotation[0] != 0 {\n\t\tm = m.Mul4(mgl32.HomogRotate3DX(c.Rotation[0]))\n\t}\n\tif c.Rotation[1] != 0 {\n\t\tm = m.Mul4(mgl32.HomogRotate3DY(c.Rotation[1]))\n\t}\n\tif c.Rotation[2] != 0 {\n\t\tm = m.Mul4(mgl32.HomogRotate3DZ(c.Rotation[2]))\n\t}\n\n\treturn m.Mul4(mgl32.Translate3D(c.Translation[0], c.Translation[1], c.Translation[2]))\n}", "func Mat3FromTranslation(out, v []float64) []float64 {\n\tout[0] = 1\n\tout[1] = 0\n\tout[2] = 0\n\tout[3] = 0\n\tout[4] = 1\n\tout[5] = 0\n\tout[6] = v[0]\n\tout[7] = v[1]\n\tout[8] = 1\n\treturn out\n}", "func blahut_compute_q(channel Matrix, p Vector, q Matrix) {\n n, m := channel.Dims()\n for j := 0; j < m; j++ {\n for i := 0; i < n; i++ {\n q.At(j, i).Mul(channel.At(i, j), p.At(i))\n }\n normalizeVector(q.Row(j))\n }\n}", "func InverseMat4(m Mat4) Mat4 {\n\tminor11 := m.M22*m.M33*m.M44 + m.M23*m.M34*m.M42 + m.M24*m.M32*m.M43 - m.M24*m.M33*m.M42 - m.M23*m.M32*m.M44 - m.M22*m.M34*m.M43\n\tminor12 := m.M21*m.M33*m.M44 + m.M23*m.M34*m.M41 + m.M24*m.M31*m.M43 - m.M24*m.M33*m.M41 - m.M23*m.M31*m.M44 - m.M21*m.M34*m.M43\n\tminor13 := m.M21*m.M32*m.M44 + m.M22*m.M34*m.M41 + m.M24*m.M31*m.M42 - m.M24*m.M32*m.M41 - m.M22*m.M31*m.M44 - m.M21*m.M34*m.M42\n\tminor14 := m.M21*m.M32*m.M43 + m.M22*m.M33*m.M41 + m.M23*m.M31*m.M42 - m.M23*m.M32*m.M41 - m.M22*m.M31*m.M43 - m.M21*m.M33*m.M42\n\tminor21 := m.M12*m.M33*m.M44 + m.M13*m.M34*m.M42 + m.M14*m.M32*m.M43 - m.M14*m.M33*m.M42 - m.M13*m.M32*m.M44 - m.M12*m.M34*m.M43\n\tminor22 := m.M11*m.M33*m.M44 + m.M13*m.M34*m.M41 + m.M14*m.M31*m.M43 - m.M14*m.M33*m.M41 - m.M13*m.M31*m.M44 - m.M11*m.M34*m.M43\n\tminor23 := m.M11*m.M32*m.M44 + m.M12*m.M34*m.M41 + m.M14*m.M31*m.M42 - m.M14*m.M32*m.M41 - m.M12*m.M31*m.M44 - m.M11*m.M34*m.M42\n\tminor24 := m.M11*m.M32*m.M43 + m.M12*m.M33*m.M41 + m.M13*m.M31*m.M42 - m.M13*m.M32*m.M41 - m.M12*m.M31*m.M43 - m.M11*m.M33*m.M42\n\tminor31 := m.M12*m.M23*m.M44 + m.M13*m.M24*m.M42 + m.M14*m.M22*m.M43 - m.M14*m.M23*m.M42 - m.M13*m.M22*m.M44 - m.M12*m.M24*m.M43\n\tminor32 := m.M11*m.M23*m.M44 + m.M13*m.M24*m.M41 + m.M14*m.M21*m.M43 - m.M14*m.M23*m.M41 - m.M13*m.M21*m.M44 - m.M11*m.M24*m.M43\n\tminor33 := m.M11*m.M22*m.M44 + m.M12*m.M24*m.M41 + m.M14*m.M21*m.M42 - m.M14*m.M22*m.M41 - m.M12*m.M21*m.M44 - m.M11*m.M24*m.M42\n\tminor34 := m.M11*m.M22*m.M43 + m.M12*m.M23*m.M41 + m.M13*m.M21*m.M42 - m.M13*m.M22*m.M41 - m.M12*m.M21*m.M43 - m.M11*m.M23*m.M42\n\tminor41 := m.M12*m.M23*m.M34 + m.M13*m.M24*m.M32 + m.M14*m.M22*m.M33 - m.M14*m.M23*m.M32 - m.M13*m.M22*m.M34 - m.M12*m.M24*m.M33\n\tminor42 := m.M11*m.M23*m.M34 + m.M13*m.M24*m.M31 + m.M14*m.M21*m.M33 - m.M14*m.M23*m.M31 - m.M13*m.M21*m.M34 - m.M11*m.M24*m.M33\n\tminor43 := m.M11*m.M22*m.M34 + m.M12*m.M24*m.M31 + m.M14*m.M21*m.M32 - m.M14*m.M22*m.M31 - m.M12*m.M21*m.M34 - m.M11*m.M24*m.M32\n\tminor44 := m.M11*m.M22*m.M33 + m.M12*m.M23*m.M31 + m.M13*m.M21*m.M32 - m.M13*m.M22*m.M31 - m.M12*m.M21*m.M33 - m.M11*m.M23*m.M32\n\n\tdeterminant := m.M11*minor11 - m.M12*minor12 + m.M13*minor13 - m.M14*minor14\n\n\treturn NewMat4(\n\t\t+minor11/determinant, -minor21/determinant, +minor31/determinant, -minor41/determinant,\n\t\t-minor12/determinant, +minor22/determinant, -minor32/determinant, +minor42/determinant,\n\t\t+minor13/determinant, -minor23/determinant, +minor33/determinant, -minor43/determinant,\n\t\t-minor14/determinant, +minor24/determinant, -minor34/determinant, +minor44/determinant,\n\t)\n}", "func MatrixMode(mode uint32) {\n\tC.glowMatrixMode(gpMatrixMode, (C.GLenum)(mode))\n}", "func (eval *evaluator) MultiplyByDiagMatrixBSGS(ctIn *Ciphertext, matrix PtDiagMatrix, PoolDecompQP []rlwe.PolyQP, ctOut *Ciphertext) {\n\n\t// N1*N2 = N\n\tN1 := matrix.N1\n\n\tringQ := eval.params.RingQ()\n\tringP := eval.params.RingP()\n\tringQP := rlwe.RingQP{RingQ: ringQ, RingP: ringP}\n\n\tlevelQ := utils.MinInt(ctOut.Level(), utils.MinInt(ctIn.Level(), matrix.Level))\n\tlevelP := len(ringP.Modulus) - 1\n\n\tQiOverF := eval.params.QiOverflowMargin(levelQ)\n\tPiOverF := eval.params.PiOverflowMargin(levelP)\n\n\t// Computes the rotations indexes of the non-zero rows of the diagonalized DFT matrix for the baby-step giang-step algorithm\n\n\tindex, rotations := bsgsIndex(matrix.Vec, 1<<matrix.LogSlots, matrix.N1)\n\n\tvar ctInTmp0, ctInTmp1 *ring.Poly\n\tif ctIn == ctOut {\n\t\tring.CopyValuesLvl(levelQ, ctIn.Value[0], eval.ctxpool.Value[0])\n\t\tring.CopyValuesLvl(levelQ, ctIn.Value[1], eval.ctxpool.Value[1])\n\t\tctInTmp0, ctInTmp1 = eval.ctxpool.Value[0], eval.ctxpool.Value[1]\n\t} else {\n\t\tctInTmp0, ctInTmp1 = ctIn.Value[0], ctIn.Value[1]\n\t}\n\n\t// Pre-rotates ciphertext for the baby-step giant-step algorithm, does not divide by P yet\n\tctInRotQP := eval.RotateHoistedNoModDownNew(levelQ, rotations, ctInTmp0, eval.PoolDecompQP)\n\n\t// Accumulator inner loop\n\ttmp0QP := eval.Pool[1]\n\ttmp1QP := eval.Pool[2]\n\n\t// Accumulator outer loop\n\tc0QP := eval.Pool[3]\n\tc1QP := eval.Pool[4]\n\n\t// Result in QP\n\tc0OutQP := rlwe.PolyQP{Q: ctOut.Value[0], P: eval.Pool[5].Q}\n\tc1OutQP := rlwe.PolyQP{Q: ctOut.Value[1], P: eval.Pool[5].P}\n\n\tringQ.MulScalarBigintLvl(levelQ, ctInTmp0, ringP.ModulusBigint, ctInTmp0) // P*c0\n\tringQ.MulScalarBigintLvl(levelQ, ctInTmp1, ringP.ModulusBigint, ctInTmp1) // P*c1\n\n\t// OUTER LOOP\n\tvar cnt0 int\n\tfor j := range index {\n\t\t// INNER LOOP\n\t\tvar cnt1 int\n\t\tfor _, i := range index[j] {\n\t\t\tif i == 0 {\n\t\t\t\tif cnt1 == 0 {\n\t\t\t\t\tringQ.MulCoeffsMontgomeryConstantLvl(levelQ, matrix.Vec[N1*j].Q, ctInTmp0, tmp0QP.Q)\n\t\t\t\t\tringQ.MulCoeffsMontgomeryConstantLvl(levelQ, matrix.Vec[N1*j].Q, ctInTmp1, tmp1QP.Q)\n\t\t\t\t\ttmp0QP.P.Zero()\n\t\t\t\t\ttmp1QP.P.Zero()\n\t\t\t\t} else {\n\t\t\t\t\tringQ.MulCoeffsMontgomeryConstantAndAddNoModLvl(levelQ, matrix.Vec[N1*j].Q, ctInTmp0, tmp0QP.Q)\n\t\t\t\t\tringQ.MulCoeffsMontgomeryConstantAndAddNoModLvl(levelQ, matrix.Vec[N1*j].Q, ctInTmp1, tmp1QP.Q)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif cnt1 == 0 {\n\t\t\t\t\tringQP.MulCoeffsMontgomeryConstantLvl(levelQ, levelP, matrix.Vec[N1*j+i], ctInRotQP[i][0], tmp0QP)\n\t\t\t\t\tringQP.MulCoeffsMontgomeryConstantLvl(levelQ, levelP, matrix.Vec[N1*j+i], ctInRotQP[i][1], tmp1QP)\n\t\t\t\t} else {\n\t\t\t\t\tringQP.MulCoeffsMontgomeryConstantAndAddNoModLvl(levelQ, levelP, matrix.Vec[N1*j+i], ctInRotQP[i][0], tmp0QP)\n\t\t\t\t\tringQP.MulCoeffsMontgomeryConstantAndAddNoModLvl(levelQ, levelP, matrix.Vec[N1*j+i], ctInRotQP[i][1], tmp1QP)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif cnt1%(QiOverF>>1) == (QiOverF>>1)-1 {\n\t\t\t\tringQ.ReduceLvl(levelQ, tmp0QP.Q, tmp0QP.Q)\n\t\t\t\tringQ.ReduceLvl(levelQ, tmp1QP.Q, tmp1QP.Q)\n\t\t\t}\n\n\t\t\tif cnt1%(PiOverF>>1) == (PiOverF>>1)-1 {\n\t\t\t\tringP.ReduceLvl(levelP, tmp0QP.P, tmp0QP.P)\n\t\t\t\tringP.ReduceLvl(levelP, tmp1QP.P, tmp1QP.P)\n\t\t\t}\n\n\t\t\tcnt1++\n\t\t}\n\n\t\tif cnt1%(QiOverF>>1) != 0 {\n\t\t\tringQ.ReduceLvl(levelQ, tmp0QP.Q, tmp0QP.Q)\n\t\t\tringQ.ReduceLvl(levelQ, tmp1QP.Q, tmp1QP.Q)\n\t\t}\n\n\t\tif cnt1%(PiOverF>>1) != 0 {\n\t\t\tringP.ReduceLvl(levelP, tmp0QP.P, tmp0QP.P)\n\t\t\tringP.ReduceLvl(levelP, tmp1QP.P, tmp1QP.P)\n\t\t}\n\n\t\t// If j != 0, then rotates ((tmp0QP.Q, tmp0QP.P), (tmp1QP.Q, tmp1QP.P)) by N1*j and adds the result on ((c0QP.Q, c0QP.P), (c1QP.Q, c1QP.P))\n\t\tif j != 0 {\n\n\t\t\t// Hoisting of the ModDown of sum(sum(phi(d1) * plaintext))\n\t\t\teval.Baseconverter.ModDownQPtoQNTT(levelQ, levelP, tmp1QP.Q, tmp1QP.P, tmp1QP.Q) // c1 * plaintext + sum(phi(d1) * plaintext) + phi(c1) * plaintext mod Q\n\n\t\t\tgalEl := eval.params.GaloisElementForColumnRotationBy(N1 * j)\n\n\t\t\trtk, generated := eval.rtks.Keys[galEl]\n\t\t\tif !generated {\n\t\t\t\tpanic(\"switching key not available\")\n\t\t\t}\n\n\t\t\tindex := eval.permuteNTTIndex[galEl]\n\n\t\t\ttmp1QP.Q.IsNTT = true\n\t\t\teval.SwitchKeysInPlaceNoModDown(levelQ, tmp1QP.Q, rtk, c0QP.Q, c0QP.P, c1QP.Q, c1QP.P) // Switchkey(P*phi(tmpRes_1)) = (d0, d1) in base QP\n\n\t\t\tringQP.AddLvl(levelQ, levelP, c0QP, tmp0QP, c0QP)\n\n\t\t\t// Outer loop rotations\n\t\t\tif cnt0 == 0 {\n\t\t\t\tringQP.PermuteNTTWithIndexLvl(levelQ, levelP, c0QP, index, c0OutQP)\n\t\t\t\tringQP.PermuteNTTWithIndexLvl(levelQ, levelP, c1QP, index, c1OutQP)\n\t\t\t} else {\n\t\t\t\tringQP.PermuteNTTWithIndexAndAddNoModLvl(levelQ, levelP, c0QP, index, c0OutQP)\n\t\t\t\tringQP.PermuteNTTWithIndexAndAddNoModLvl(levelQ, levelP, c1QP, index, c1OutQP)\n\t\t\t}\n\n\t\t\t// Else directly adds on ((c0QP.Q, c0QP.P), (c1QP.Q, c1QP.P))\n\t\t} else {\n\t\t\tif cnt0 == 0 {\n\t\t\t\tringQP.CopyValuesLvl(levelQ, levelP, tmp0QP, c0OutQP)\n\t\t\t\tringQP.CopyValuesLvl(levelQ, levelP, tmp1QP, c1OutQP)\n\t\t\t} else {\n\t\t\t\tringQP.AddNoModLvl(levelQ, levelP, c0OutQP, tmp0QP, c0OutQP)\n\t\t\t\tringQP.AddNoModLvl(levelQ, levelP, c1OutQP, tmp1QP, c1OutQP)\n\t\t\t}\n\t\t}\n\n\t\tif cnt0%QiOverF == QiOverF-1 {\n\t\t\tringQ.ReduceLvl(levelQ, ctOut.Value[0], ctOut.Value[0])\n\t\t\tringQ.ReduceLvl(levelQ, ctOut.Value[1], ctOut.Value[1])\n\t\t}\n\n\t\tif cnt0%PiOverF == PiOverF-1 {\n\t\t\tringP.ReduceLvl(levelP, c0OutQP.P, c0OutQP.P)\n\t\t\tringP.ReduceLvl(levelP, c1OutQP.P, c1OutQP.P)\n\t\t}\n\n\t\tcnt0++\n\t}\n\n\tif cnt0%QiOverF != 0 {\n\t\tringQ.ReduceLvl(levelQ, ctOut.Value[0], ctOut.Value[0])\n\t\tringQ.ReduceLvl(levelQ, ctOut.Value[1], ctOut.Value[1])\n\t}\n\n\tif cnt0%PiOverF != 0 {\n\t\tringP.ReduceLvl(levelP, c0OutQP.P, c0OutQP.P)\n\t\tringP.ReduceLvl(levelP, c1OutQP.P, c1OutQP.P)\n\t}\n\n\teval.Baseconverter.ModDownQPtoQNTT(levelQ, levelP, ctOut.Value[0], c0OutQP.P, ctOut.Value[0]) // sum(phi(c0 * P + d0_QP))/P\n\teval.Baseconverter.ModDownQPtoQNTT(levelQ, levelP, ctOut.Value[1], c1OutQP.P, ctOut.Value[1]) // sum(phi(d1_QP))/P\n\n\tctOut.Scale = matrix.Scale * ctIn.Scale\n\n\tctInRotQP = nil\n\truntime.GC()\n}", "func (p *PointProj) Double(p1 *PointProj) *PointProj {\n\n\tvar res PointProj\n\n\tvar B, C, D, E, F, H, J fr.Element\n\n\tB.Add(&p1.X, &p1.Y).Square(&B)\n\tC.Square(&p1.X)\n\tD.Square(&p1.Y)\n\tE.Set(&C)\n\tmulByA(&E)\n\tF.Add(&E, &D)\n\tH.Square(&p1.Z)\n\tJ.Sub(&F, &H).Sub(&J, &H)\n\tres.X.Sub(&B, &C).\n\t\tSub(&res.X, &D).\n\t\tMul(&res.X, &J)\n\tres.Y.Sub(&E, &D).Mul(&res.Y, &F)\n\tres.Z.Mul(&F, &J)\n\n\tp.Set(&res)\n\treturn p\n}", "func (m Matrix) Transform(a vec.Vec) vec.Vec {\n\treturn vec.New(\n\t\ta.X*m[0]+a.Y*m[2]+m[4],\n\t\ta.X*m[1]+a.Y*m[3]+m[5])\n}", "func (m *Mat4) Transpose() *Mat4 {\n\tvar rm = Mat4{\n\t\t{m[0].X, m[1].X, m[2].X, m[3].X},\n\t\t{m[0].Y, m[1].Y, m[2].Y, m[3].Y},\n\t\t{m[0].Z, m[1].Z, m[2].Z, m[3].Z},\n\t\t{m[0].W, m[1].W, m[2].W, m[3].W},\n\t}\n\treturn &rm\n}", "func MatrixMultiplyVector(a [][]float64, v []float64) ([]float64, error) {\n\n\tvar err error\n\n\tnrows := len(a)\n\tncols := len(a[0])\n\tvlen := len(v)\n\n\terr = nil\n\tif ncols != vlen {\n\t\terr = fmt.Errorf(\"Number of Columns in the Matrix must equal number rows in Vector\")\n\t\treturn nil, err\n\t}\n\n\t// create a new array/vector with the same number of rows as the matrix\n\n\tnewvector := make([]float64, nrows)\n\tfor i := range a {\n\t\tfor j := range a[i] {\n\t\t\tnewvector[i] += a[i][j] * v[j]\n\t\t}\n\t}\n\n\treturn newvector, err\n}", "func (dw *DrawingWand) Matte(x, y float64, pmethod PaintMethod) {\n\tC.MagickDrawMatte(dw.dw, C.double(x), C.double(y), C.PaintMethod(pmethod))\n}", "func (r rsAVX2) matrixMul(start, end int, in, out Matrix) {\n\tfor i := 0; i < r.in; i++ {\n\t\ttmp := i * r.out\n\t\tfor oi := 0; oi < r.out; oi++ {\n\t\t\toffset := (tmp + oi) * 32\n\t\t\ttable := r.tables[offset : offset+32]\n\t\t\tif i == 0 {\n\t\t\t\tmulAVX2(table, in[i][start:end], out[oi][start:end])\n\t\t\t} else {\n\t\t\t\tmulXORAVX2(table, in[i][start:end], out[oi][start:end])\n\t\t\t}\n\t\t}\n\t}\n}", "func Mul(z, x, y *Elt)", "func matmul(r [][]int, v []int) []int {\n\tif len(r[0]) != len(v) {\n\t\tpanic(fmt.Sprintf(\"incompatible matrix and vector sizes %d and %d\", len(r[0]), len(v)))\n\t}\n\toutput := make([]int, len(r))\n\tfor i, row := range r {\n\t\tfor j := range row {\n\t\t\toutput[i] += row[j] * v[j]\n\t\t}\n\t}\n\treturn output\n}", "func MultiplyColumn(A Matrix, i int, a float64) Matrix {\n\tm, n := A.Dimensions()\n\tf := func(j, k int) float64 {\n\t\tif i == k {\n\t\t\treturn a * A[j][k]\n\t\t}\n\t\treturn A[j][k]\n\t}\n\n\treturn New(m, n, f)\n}", "func (p Point) Mul(k int) Point { return Point{p.X * k, p.Y * k} }", "func (poly *PolynomialFeatures) Transform(X, Y mat.Matrix) (Xout, Yout *mat.Dense) {\n\tnSamples, _ := X.Dims()\n\tXout = mat.NewDense(nSamples, len(poly.Powers), nil)\n\txi, xo := base.ToDense(X).RawMatrix(), Xout.RawMatrix()\n\tfor i, ipos, opos := 0, 0, 0; i < nSamples; i, ipos, opos = i+1, ipos+xi.Stride, opos+xo.Stride {\n\t\tfor ioutput, p := range poly.Powers {\n\t\t\tv := 1.\n\t\t\tfor j, pj := range p {\n\t\t\t\tv *= math.Pow(xi.Data[ipos+j], float(pj))\n\t\t\t}\n\t\t\txo.Data[opos+ioutput] = v\n\t\t}\n\t}\n\treturn Xout, base.ToDense(Y)\n}", "func UniformMatrix3x4fv(location int32, count int32, transpose bool, value *float32) {\n C.glowUniformMatrix3x4fv(gpUniformMatrix3x4fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func UnProject(win Vec3, modelview, projection Mat4, initialX, initialY, width, height int) (obj Vec3, err error) {\n\tinv := projection.Mul4(modelview).Inv()\n\tvar blank Mat4\n\tif inv == blank {\n\t\treturn Vec3{}, errors.New(\"Could not find matrix inverse (projection times modelview is probably non-singular)\")\n\t}\n\n\tobj4 := inv.Mul4x1(Vec4{\n\t\t(2 * (win[0] - float64(initialX)) / float64(width)) - 1,\n\t\t(2 * (win[1] - float64(initialY)) / float64(height)) - 1,\n\t\t2*win[2] - 1,\n\t\t1.0,\n\t})\n\tobj = obj4.Vec3()\n\n\t//if obj4[3] > MinValue {}\n\tobj[0] /= obj4[3]\n\tobj[1] /= obj4[3]\n\tobj[2] /= obj4[3]\n\n\treturn obj, nil\n}", "func MulRespective(a, b image.Point) image.Point {\n\treturn image.Pt(a.X*b.X, a.Y*b.Y)\n}", "func (m Mat2f) Mul(other Mat2f) Mat2f {\n\treturn Mat2f{\n\t\tm[0]*other[0] + m[2]*other[1],\n\t\tm[1]*other[0] + m[3]*other[1],\n\n\t\tm[0]*other[2] + m[2]*other[3],\n\t\tm[1]*other[2] + m[3]*other[3]}\n}", "func (p *EdwardsPoint) Mul(point *EdwardsPoint, scalar *scalar.Scalar) *EdwardsPoint {\n\treturn edwardsMul(p, point, scalar)\n}", "func UniformMatrix4x3fv(location int32, count int32, transpose bool, value *float32) {\n C.glowUniformMatrix4x3fv(gpUniformMatrix4x3fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value)))\n}" ]
[ "0.63314277", "0.6007269", "0.5877208", "0.5765198", "0.5630044", "0.5614488", "0.5553634", "0.5526056", "0.54944146", "0.5476338", "0.54150695", "0.5394766", "0.5326779", "0.5324857", "0.5286266", "0.52782255", "0.5249348", "0.5241326", "0.5235981", "0.5140057", "0.5113416", "0.51044255", "0.509093", "0.50889075", "0.5045244", "0.5014893", "0.49931464", "0.49917656", "0.4964222", "0.49627718", "0.49543086", "0.49515402", "0.49289602", "0.49170876", "0.49152997", "0.48938742", "0.48874503", "0.48492938", "0.48356995", "0.48133713", "0.48111278", "0.4810904", "0.48095018", "0.48092636", "0.4788102", "0.47685036", "0.4768311", "0.47566137", "0.47556037", "0.47532266", "0.47460318", "0.4734433", "0.47309902", "0.4725234", "0.46976274", "0.46890464", "0.46645755", "0.46635583", "0.46629286", "0.46566072", "0.46454746", "0.46403098", "0.4637081", "0.46212885", "0.4620861", "0.46184218", "0.46045434", "0.46042755", "0.46004516", "0.45890102", "0.4588861", "0.4587847", "0.45728943", "0.45534042", "0.45527726", "0.4549026", "0.45466003", "0.4531414", "0.45253447", "0.45237586", "0.45193717", "0.45182893", "0.4517058", "0.45107087", "0.4506194", "0.4501754", "0.44972438", "0.4483086", "0.44819584", "0.44798923", "0.4474715", "0.44691706", "0.4466213", "0.44646287", "0.44627348", "0.44582614", "0.44521394", "0.44491726", "0.44483018", "0.44474077", "0.44452092" ]
0.0
-1
generate buffer object names
func GenBuffers(n int32, buffers *uint32) { C.glowGenBuffers(gpGenBuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(buffers))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (*Object) Name() string { return \"object\" }", "func (g *grpc) objectNamed(name string) generator.Object {\n\tg.gen.RecordTypeUse(name)\n\treturn g.gen.ObjectNamed(name)\n}", "func generateObjectKey(threadIndex int, payloadSize uint64) string {\n\tvar key string\n\tkeyHash := sha1.Sum([]byte(fmt.Sprintf(\"%03d-%012d\", threadIndex, payloadSize)))\n\tfolder := strconv.Itoa(int(payloadSize))\n\tkey = folder + \"/\" + (fmt.Sprintf(\"%x\", keyHash))\n\treturn key\n}", "func (d *dubbogo) objectNamed(name string) generator.Object {\n d.gen.RecordTypeUse(name)\n return d.gen.ObjectNamed(name)\n}", "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *int8) {\n C.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *int8) {\n C.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func ObjName(iface interface{}) string {\n\treturn filepath.Base(reflect.TypeOf(iface).PkgPath()) +\n\t\t\".\" + reflect.TypeOf(iface).Name()\n}", "func (d *dubbogo) typeName(str string) string {\n return d.gen.TypeName(d.objectNamed(str))\n}", "func GenerateLabels(object CommonInterface) map[string]string {\n\tkind := object.GroupVersionKind().Kind\n\tgroup := object.GroupVersionKind().Group\n\tname := object.GetName()\n\tkey := strings.ToLower(kind) + \".\" + group + \"/name\"\n\tlabels := make(map[string]string)\n\tlabels[key] = name\n\treturn labels\n}", "func GenerateLabels(object CommonInterface) map[string]string {\n\tkind := object.GroupVersionKind().Kind\n\tgroup := object.GroupVersionKind().Group\n\tname := object.GetName()\n\tkey := strings.ToLower(kind) + \".\" + group + \"/name\"\n\tlabels := make(map[string]string)\n\tlabels[key] = name\n\treturn labels\n}", "func (e *ObservableEditableBuffer) Name() string {\n\treturn e.details.Name\n}", "func objectName(u *unstructured.Unstructured) string {\n\treturn strings.ToLower(fmt.Sprintf(\"%s-%s\", u.GetKind(), strings.Replace(u.GetName(), \":\", \"-\", -1)))\n}", "func (Functions) ProtoGoName(obj interface{}) string {\n\treturn nameOptions{\n\t\tTitleFirst: true,\n\t\tTitleAfterNumber: true,\n\t\tUnderscoreToTitle: true,\n\t}.convert(nameOf(obj))\n}", "func (p *literalProcessor) name() string { return \"\" }", "func (Functions) ProtoName(obj interface{}) string {\n\treturn nameOptions{}.convert(nameOf(obj))\n}", "func (p *iexporter) exportName(obj types.Object) (res string) {\n\tif name := p.tparamNames[obj]; name != \"\" {\n\t\treturn name\n\t}\n\treturn obj.Name()\n}", "func buildRuntimeObjectKey(object ctrlClient.Object) (string, error) {\n\tjsonData, err := json.Marshal(object)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\treturn buildJSONObjectKey(jsonData)\n}", "func buildObjectKey(key ctrlClient.ObjectKey) string {\n\treturn fmt.Sprintf(\"%s/%s\", key.Namespace, key.Name)\n}", "func generateName() string {\n\tserialCode := make([]rune, 2)\n\tserialNumber := 999\n\n\tfor i := range serialCode {\n\t\trandNumber := rand.Intn(len(letters))\n\t\tserialNumber -= randNumber\n\t\tserialCode[i] = letters[randNumber]\n\t}\n\n\treturn fmt.Sprint(string(serialCode), serialNumber)\n}", "func (*ObjMsg) Descriptor() ([]byte, []int) {\n\treturn file_objmsg_proto_rawDescGZIP(), []int{1}\n}", "func (*Object) Descriptor() ([]byte, []int) {\n\treturn file_s3_proto_s3_proto_rawDescGZIP(), []int{54}\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) {\n\tC.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) {\n\tC.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func (g *Game) nameOf(x, y int) string {\n\treturn fmt.Sprintf(\"%s%d\", string('a'+x), y+1)\n}", "func (*ObjectHeader) Descriptor() ([]byte, []int) {\n\treturn file_object_proto_rawDescGZIP(), []int{0}\n}", "func (*Object) Descriptor() ([]byte, []int) {\n\treturn file_object_proto_rawDescGZIP(), []int{1}\n}", "func generateRevisionName(name string, objectGeneration int64) string {\n\tnum := fmt.Sprintf(\"%05d\", objectGeneration+1)\n\tout := name + \"-\" + num + \"-\"\n\tr := rand.New(rand.NewSource(time.Now().UnixNano()))\n\tfor i := 0; i < 3; i++ {\n\t\tout += string(rune(int('a') + r.Intn(26)))\n\t}\n\treturn out\n}", "func (g *grpc) typeName(str string) string {\n\treturn g.gen.TypeName(g.objectNamed(str))\n}", "func protobufName(f *ast.Field) string {\n\tfor _, attr := range f.Attrs {\n\t\tif strings.HasPrefix(attr.Text, \"@protobuf\") {\n\t\t\tfor _, str := range strings.Split(attr.Text[10:len(attr.Text)-1], \",\") {\n\t\t\t\tif strings.HasPrefix(str, \"name=\") {\n\t\t\t\t\treturn str[5:]\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn \"\"\n}", "func (*UniqueId) Descriptor() ([]byte, []int) {\n\treturn file_common_trace_common_proto_rawDescGZIP(), []int{0}\n}", "func GetObjectNameAsByteSlice(objectNumber uint64) (objectName []byte) {\n\tobjectName = getObjectNameAsByteSlice(objectNumber)\n\treturn\n}", "func (*Object) Descriptor() ([]byte, []int) {\n\treturn file_test_proto_rawDescGZIP(), []int{0}\n}", "func (*Name) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{1}\n}", "func GenerateName(group metav1.Object, jobIndex int) string {\n\treturn fmt.Sprintf(\"%s-%d\", group.GetName(), jobIndex+1)\n}", "func objectKey(ometa *api.ObjectMeta) string {\n\treturn fmt.Sprintf(\"%s|%s\", ometa.Tenant, ometa.Name)\n}", "func (b *Buffer) GetName() string {\n\treturn b.name\n}", "func (*Name) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{2}\n}", "func gobKey(uid string) string {\n\treturn \"gob:\" + uid\n}", "func (*Token) Descriptor() ([]byte, []int) {\n\treturn file_grpcapi_sequencelabeler_proto_rawDescGZIP(), []int{1}\n}", "func (c *NodeGroup) generateName() string {\n\treturn fmt.Sprintf(\"%s-%s\", strings.ReplaceAll(c.Name, \" \", \"-\"), uuid.NewString()[:8])\n}", "func (Functions) ProtoCppName(obj interface{}) string {\n\treturn nameOptions{\n\t\tRemap: cppKeywords,\n\t}.convert(nameOf(obj))\n}", "func gobInfoKey(uid string) string {\n\treturn \"gobInfo:\" + uid\n}", "func objectKey(meta api.ObjectMeta) string {\n\treturn fmt.Sprintf(\"%s|%s\", meta.Tenant, meta.Name)\n}", "func (bm BitMap) Name() string { return bm.name }", "func (i *ImageBuf) Name() string {\n\tret := C.GoString(C.ImageBuf_name(i.ptr))\n\truntime.KeepAlive(i)\n\treturn ret\n}", "func (d *Abstraction) getGeneratedName(s string, m string) string {\n\tvar buffer bytes.Buffer\n\tbuffer.WriteString(s)\n\tbuffer.WriteString(\".\")\n\tbuffer.WriteString(m)\n\treturn buffer.String()\n}", "func objToNames(obj interface{}, names []string, tag string) []string {\n\tvar typ reflect.Type\n\n\tif sf, ok := obj.(reflect.StructField); ok {\n\t\ttyp = sf.Type\n\t} else {\n\t\ttyp = reflect.TypeOf(obj)\n\t\tif typ.Kind() == reflect.Ptr {\n\t\t\ttyp = typ.Elem()\n\t\t}\n\t}\n\n\tfor i := 0; i < typ.NumField(); i++ {\n\t\tfield := typ.Field(i)\n\n\t\tif field.Type.Kind() == reflect.Struct {\n\t\t\tnames = objToNames(field, names, tag)\n\t\t\tcontinue\n\t\t}\n\n\t\t// If tag is passed to the function, we only append if the field is tagged and that it matches tag.\n\t\tif tag == \"\" || field.Tag.Get(tag) != \"\" {\n\t\t\tnames = append(names, field.Name)\n\t\t}\n\t}\n\n\treturn names\n}", "func (*RecordingTemplate) Descriptor() ([]byte, []int) {\n\treturn file_livekit_recording_proto_rawDescGZIP(), []int{4}\n}", "func GetObjectPtrLabel(ptr unsafe.Pointer, bufSize int32, length *int32, label *int8) {\n C.glowGetObjectPtrLabel(gpGetObjectPtrLabel, ptr, (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func name(n int) string {\n\t// This function returns some random names\n\tchars := \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.\"\n\tname := make([]byte, n) // Making Slices\n\tfor i := range name {\n\t\tname[i] = chars[rand.Intn(len(chars))]\n\t}\n\n\tfmt.Println(string(name))\n\treturn string(name) // Stringify the output and return\n}", "func (*CountByNames) Descriptor() ([]byte, []int) {\n\treturn file_sa_proto_rawDescGZIP(), []int{12}\n}", "func makeKey(hConn C.MQHCONN, hObj C.MQHOBJ) string {\n\tkey := fmt.Sprintf(\"%d/%d\", hConn, hObj)\n\treturn key\n}", "func (d *FileDescriptor) VarName() string { return fmt.Sprintf(\"fileDescriptor%d\", d.index) }", "func (br *builderRev) snapshotObjectName() string {\n\treturn fmt.Sprintf(\"%v/%v/%v.tar.gz\", \"go\", br.name, br.rev)\n}", "func NameFromId(id uint8) string {\n\t// snappy compressed maybe\n\tuse_id := id\n\tif id >= 20 {\n\t\tuse_id = use_id - 20\n\t}\n\tswitch use_id {\n\tcase GOB:\n\t\treturn \"gob\"\n\tcase ZIPGOB:\n\t\treturn \"zipbob\"\n\tcase JSON:\n\t\treturn \"json\"\n\tcase PROTOBUF:\n\t\treturn \"protobuf\"\n\tcase GORILLA:\n\t\treturn \"gorilla\"\n\tcase MSGPACK:\n\t\treturn \"msgpack\"\n\tcase BINC:\n\t\treturn \"binc\"\n\tcase CBOR:\n\t\treturn \"cbor\"\n\tcase REPR:\n\t\treturn \"repr\"\n\tdefault:\n\t\treturn \"\"\n\t}\n}", "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *uint8) {\n\tC.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *uint8) {\n\tC.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func (*ObjectIdentifier) Descriptor() ([]byte, []int) {\n\treturn file_sigstore_common_proto_rawDescGZIP(), []int{6}\n}", "func (*RecogPlace_Name) Descriptor() ([]byte, []int) {\n\treturn file_recon_proto_rawDescGZIP(), []int{14, 0}\n}", "func (obj *object) getStructName(line string) {\n\t/*nested := false\n\tif !strings.Contains(line, \"type \") {\n\t\tnested = true\n\t}*/\n\n\tline = strings.TrimSpace(line)\n\tline = strings.TrimPrefix(strings.TrimSuffix(line, \"{\"), \"type\")\n\tline = strings.TrimSpace(line)\n\tobj.Name = strings.TrimSpace(strings.TrimSuffix(line, \"struct\"))\n\tif strings.Contains(obj.Name, \"[]\") {\n\t\tobj.Name = strings.TrimSpace(strings.TrimSuffix(obj.Name, \"[]\"))\n\t}\n\tobj.Tp = obj.Name\n\tobj.JsonKey = obj.Name\n\t/*if nested {\n\t\tobj.CommonFileds = append(obj.CommonFileds, &field{JsonKey: obj.Name, Tp: obj.Name})\n\t}*/\n}", "func (*UTXOs) Descriptor() ([]byte, []int) {\n\treturn file_token_balance_proto_rawDescGZIP(), []int{16}\n}", "func deepCandName(cand *candidate) string {\n\ttotalLen := len(cand.obj.Name())\n\tfor i, obj := range cand.path {\n\t\ttotalLen += len(obj.Name()) + 1\n\t\tif cand.pathInvokeMask&(1<<uint16(i)) > 0 {\n\t\t\ttotalLen += 2\n\t\t}\n\t}\n\n\tvar buf strings.Builder\n\tbuf.Grow(totalLen)\n\n\tfor i, obj := range cand.path {\n\t\tbuf.WriteString(obj.Name())\n\t\tif cand.pathInvokeMask&(1<<uint16(i)) > 0 {\n\t\t\tbuf.WriteByte('(')\n\t\t\tbuf.WriteByte(')')\n\t\t}\n\t\tbuf.WriteByte('.')\n\t}\n\n\tbuf.WriteString(cand.obj.Name())\n\n\treturn buf.String()\n}", "func (t *badgerTableVersion) getObjKey(id, objID []byte) []byte {\n\tprefix := []byte(t.prefix + \"object/\")\n\tprefix = append(prefix, id...)\n\tprefix = append(prefix, '/')\n\n\treturn append(prefix, objID...)\n}", "func printNames(names []pkix.AttributeTypeAndValue, buf *bytes.Buffer) []string {\n values := []string{} \n for _, name := range names {\n oid := name.Type\n if len(oid) == 4 && oid[0] == 2 && oid[1] == 5 && oid[2] == 4 {\n switch oid[3] {\n case 3:\n values = append(values, fmt.Sprintf(\"CN=%s\", name.Value))\n case 6:\n values = append(values, fmt.Sprintf(\"C=%s\", name.Value))\n case 8:\n values = append(values, fmt.Sprintf(\"ST=%s\", name.Value))\n case 10:\n values = append(values, fmt.Sprintf(\"O=%s\", name.Value))\n case 11:\n values = append(values, fmt.Sprintf(\"OU=%s\", name.Value))\n default: \n values = append(values, fmt.Sprintf(\"UnknownOID=%s\", name.Type.String()))\n }\n } else if oid.Equal(oidEmailAddress) {\n values = append(values, fmt.Sprintf(\"emailAddress=%s\", name.Value))\n } else {\n values = append(values, fmt.Sprintf(\"UnknownOID=%s\", name.Type.String()))\n }\n }\n\nif len(values) > 0 {\n buf.WriteString(values[0])\n for i := 1; i < len(values); i++ {\n buf.WriteString(\",\" + values[i])\n }\n buf.WriteString(\"\\n\")\n }\n return values\n}", "func (objectIDs *DbObjectIDs) String() string {\n\tid := objectIDs.ownerControllerName + \":\" + string(objectIDs.idsType.ownerObjectType)\n\tfor _, key := range objectIDs.idsType.GetExternalIDKeys() {\n\t\tid += \":\" + objectIDs.objectIDs[key]\n\t}\n\treturn id\n}", "func (*Str) Descriptor() ([]byte, []int) {\n\treturn file_banyandb_model_v1_common_proto_rawDescGZIP(), []int{0}\n}", "func name(obj, eventType, eventSource string) string {\n\t// Pod names need to be lowercase. We might have an eventType as Any, that is why we lowercase them.\n\tif eventType == \"\" {\n\t\teventType = \"testany\"\n\t}\n\tif eventSource == \"\" {\n\t\teventSource = \"testany\"\n\t}\n\treturn strings.ToLower(fmt.Sprintf(\"%s-%s-%s\", obj, eventType, eventSource))\n}", "func (*TokenSpans) Descriptor() ([]byte, []int) {\n\treturn file_recon_proto_rawDescGZIP(), []int{16}\n}", "func (*Name) Descriptor() ([]byte, []int) {\n\treturn file_examples_documents_example_proto_rawDescGZIP(), []int{25}\n}", "func genPaddleResName(name string, resType string, idx int) string {\n\treturn fmt.Sprintf(\"%s-%s-%d\", name, resType, idx)\n}", "func GenerateKeyNames(tr time.Time) *AllKeys {\n\tk := &AllKeys{\n\t\tDst: KeyNames{},\n\t\tSrc: KeyNames{},\n\t}\n\n\tk.Src.CurrentCounterSet = generateSegmentPrefix(\"set:counter:src\", tr)\n\tk.Src.CurrentCounterHSet = generateSegmentPrefix(\"hset:counter:src\", tr)\n\tk.Dst.CurrentCounterSet = generateSegmentPrefix(\"set:counter:dst\", tr)\n\tk.Dst.CurrentCounterHSet = generateSegmentPrefix(\"hset:counter:dst\", tr)\n\treturn k\n}", "func (*ListObjectsResponse) Descriptor() ([]byte, []int) {\n\treturn file_s3_proto_s3_proto_rawDescGZIP(), []int{59}\n}", "func (*TanksAttr) Descriptor() ([]byte, []int) {\n\treturn file_game_game_proto_rawDescGZIP(), []int{7}\n}", "func (*BaseObjRequest) Descriptor() ([]byte, []int) {\n\treturn file_s3_proto_s3_proto_rawDescGZIP(), []int{28}\n}", "func (*Identifier) Descriptor() ([]byte, []int) {\n\treturn file_thoughts_proto_rawDescGZIP(), []int{1}\n}", "func (p *ProtobufSerializer) Name() string {\n\treturn \"protobuf\"\n}", "func (*Ramen) Descriptor() ([]byte, []int) {\n\treturn file_src_types_proto_rawDescGZIP(), []int{0}\n}", "func (o *Object) Name() string {\n\tif !o.Boundary {\n\t\tif o.ID < 0 || o.ID > 1188 {\n\t\t\treturn \"nil\"\n\t\t}\n\t\treturn ObjectDefs[o.ID].Name\n\t}\n\tif o.ID < 0 || o.ID >= len(BoundaryDefs) {\n\t\treturn \"nil\"\n\t}\n\treturn BoundaryDefs[o.ID].Name\n}", "func (*StorageObjects) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{83}\n}", "func objectString(obj types.Object, qf types.Qualifier) string {\n\tstr := types.ObjectString(obj, qf)\n\tswitch obj := obj.(type) {\n\tcase *types.Const:\n\t\tstr = fmt.Sprintf(\"%s = %s\", str, obj.Val())\n\t}\n\treturn str\n}", "func (*ResponseBJ) Descriptor() ([]byte, []int) {\n\treturn file_comm_comm_proto_rawDescGZIP(), []int{23}\n}", "func (self *Graphics) Name() string{\n return self.Object.Get(\"name\").String()\n}", "func (node NamedWindows) formatFast(buf *TrackedBuffer) {\n\tvar prefix string\n\tfor _, n := range node {\n\t\tbuf.WriteString(prefix)\n\t\tn.formatFast(buf)\n\t\tprefix = \", \"\n\t}\n}", "func (*PackObjectsHookResponse) Descriptor() ([]byte, []int) {\n\treturn file_hook_proto_rawDescGZIP(), []int{9}\n}", "func (bo *BlockObject) toString() string {\n\treturn fmt.Sprintf(\"<Block: %s>\", bo.instructionSet.filename)\n}", "func getTypeString(obj interface{}) string {\n\n\ttypeString := reflect.TypeOf(obj).Name()\n\n\t// trim off the numbers - no need to worry users about that level of\n\t// detail\n\ttypeString = strings.TrimRight(typeString, \"0123456789\")\n\n\treturn typeString\n\n}", "func (g *Generator) createIndexAndNameDecl(run []Value, typeName string, suffix string) (string, string) {\n\tb := new(bytes.Buffer)\n\tindexes := make([]int, len(run))\n\tfor i := range run {\n\t\tb.WriteString(run[i].nameInfo.trimmedName)\n\t\tindexes[i] = b.Len()\n\t}\n\tnameConst := fmt.Sprintf(\"_%s_name%s = %q\", typeName, suffix, b.String())\n\tnameLen := b.Len()\n\tb.Reset()\n\t_, _ = fmt.Fprintf(b, \"_%s_index%s = [...]uint%d{0, \", typeName, suffix, usize(nameLen))\n\tfor i, v := range indexes {\n\t\tif i > 0 {\n\t\t\t_, _ = fmt.Fprintf(b, \", \")\n\t\t}\n\t\t_, _ = fmt.Fprintf(b, \"%d\", v)\n\t}\n\t_, _ = fmt.Fprintf(b, \"}\")\n\treturn b.String(), nameConst\n}", "func (g *generator) Name() string {\n\treturn g.typeName\n}", "func (*CMsgDOTAHallOfFame) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{41}\n}", "func (*GlobalNbId) Descriptor() ([]byte, []int) {\n\treturn file_nb_identity_proto_rawDescGZIP(), []int{0}\n}", "func generateBandName(nouns, adjs []string) (name string) {\n\tlength := randWithSeed(3) + 2\n\tvar namebuf = new(bytes.Buffer)\n\tfor i := 1; i <= length; i++ {\n\t\tif i <= length-1 {\n\t\t\tchoice := randWithSeed(2)\n\t\t\tif choice == 0 {\n\t\t\t\tnidx := randWithSeed(len(nouns))\n\t\t\t\tnamebuf.WriteString(nouns[nidx] + \" \")\n\t\t\t} else {\n\t\t\t\taidx := randWithSeed(len(adjs))\n\t\t\t\tnamebuf.WriteString(adjs[aidx] + \" \")\n\t\t\t}\n\t\t} else {\n\t\t\tnidx := randWithSeed(len(nouns))\n\t\t\tnamebuf.WriteString(nouns[nidx])\n\t\t}\n\t}\n\tname = namebuf.String()\n\treturn\n}", "func (*Id) Descriptor() ([]byte, []int) {\n\treturn file_chat_proto_rawDescGZIP(), []int{1}\n}", "func (*Construct) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{0}\n}", "func genFileName(t *time.Time) string {\r\n\tfilename := \"2A-\" + t.Format(layout)\r\n\treturn filename + \".txt\"\r\n}", "func (*Common_Creation) Descriptor() ([]byte, []int) {\n\treturn file_proto_common_proto_rawDescGZIP(), []int{0, 1}\n}", "func GenerateLinkName(peerId string, id ResourceId, key ResourceKey) string {\n in := []byte(peerId)\n in = append(in, []byte(id.GetId())...)\n in = append(in, key.KeyData()...)\n LogInfo(\"GenerateLinkName: PeerId=%s, Id=%s, Key=%x :: Hash=%s\",\n peerId, id.GetId(), key.KeyData(), ipfs.Multihash(in))\n return ipfs.Multihash(in)\n}", "func createStruct(r io.ReadSeeker) string {\n\ttagType := readByte(r)\n\tname := toPascalCase(getKey(r))\n\ttypeStr := getFieldType(r, tagType)\n\n\treturn fmt.Sprintf(\"type %s %s\", name, typeStr)\n}", "func OBJCClassPrefix(packageName string) string {\n\tif packageName == \"\" {\n\t\treturn \"\"\n\t}\n\tsplit := strings.Split(packageName, \".\")\n\tif _, _, ok := MajorBetaVersion(packageName); ok {\n\t\t// this is guaranteed to still have something since\n\t\t// len(split) must be >=3.\n\t\tsplit = split[:len(split)-1]\n\t}\n\t// just for safety\n\tif len(split) == 0 {\n\t\treturn \"\"\n\t}\n\ts := \"\"\n\tfor _, element := range split {\n\t\t// just for safety\n\t\tif element != \"\" {\n\t\t\ts = s + strings.ToUpper(element[0:1])\n\t\t}\n\t}\n\tswitch len(s) {\n\tcase 0:\n\t\t// just for safety\n\t\treturn \"\"\n\tcase 1:\n\t\treturn s + \"XX\"\n\tcase 2:\n\t\treturn s + \"X\"\n\tcase 3:\n\t\tif s == \"GPB\" {\n\t\t\treturn \"GPX\"\n\t\t}\n\t\treturn s\n\tdefault:\n\t\treturn s\n\t}\n}", "func createNSName(prefix string) string {\n\tsuffix := make([]byte, 10)\n\trand.Read(suffix)\n\treturn fmt.Sprintf(\"%s-%x\", prefix, suffix)\n}", "func genAnnotationKey(resource v1alpha1.BackingServiceResource) string {\n\tkey := strings.Replace(fmt.Sprintf(\"nuxeo.operator.%s.%s.%s.%s\",\n\t\tstrings.ToLower(resource.Group),\n\t\tstrings.ToLower(resource.Version),\n\t\tstrings.ToLower(resource.Kind),\n\t\tstrings.ToLower(resource.Name)), \"..\", \".\", 1)\n\treturn key\n}", "func ObjectPtrLabel(ptr unsafe.Pointer, length int32, label *int8) {\n C.glowObjectPtrLabel(gpObjectPtrLabel, ptr, (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}" ]
[ "0.5780699", "0.5634668", "0.5622521", "0.55889386", "0.5581437", "0.55187434", "0.5503495", "0.54009175", "0.5379302", "0.5379302", "0.53652203", "0.53518414", "0.5346967", "0.5333607", "0.5302174", "0.52968395", "0.5269187", "0.5267263", "0.52622014", "0.52597487", "0.5214804", "0.5213079", "0.5213079", "0.52069145", "0.5202345", "0.52022547", "0.518508", "0.517449", "0.51708245", "0.51706547", "0.5169594", "0.51578176", "0.5151383", "0.5146256", "0.5137088", "0.5134821", "0.5134735", "0.51260674", "0.5124602", "0.51235735", "0.51224744", "0.5115457", "0.51043624", "0.5100938", "0.5090962", "0.5080172", "0.50720495", "0.5071322", "0.50691277", "0.50662357", "0.50648016", "0.50601596", "0.5057672", "0.5054562", "0.5042324", "0.5029131", "0.5029131", "0.5027466", "0.50254875", "0.5003437", "0.4992786", "0.49878174", "0.49876776", "0.4983913", "0.4977001", "0.4972017", "0.49701405", "0.4969804", "0.49662817", "0.49660113", "0.4964904", "0.49629238", "0.49618158", "0.49586397", "0.49542478", "0.4953693", "0.49523228", "0.49434373", "0.49417496", "0.49359438", "0.4925278", "0.49243352", "0.49236134", "0.49234733", "0.49234602", "0.4921752", "0.491961", "0.49183297", "0.49178815", "0.4914594", "0.49066398", "0.49058756", "0.4901318", "0.49011904", "0.4901139", "0.4900945", "0.4891708", "0.4881808", "0.4874622", "0.48728713", "0.4871298" ]
0.0
-1
generate framebuffer object names
func GenFramebuffers(n int32, framebuffers *uint32) { C.glowGenFramebuffers(gpGenFramebuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(framebuffers))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func ObjectLabel(identifier uint32, name uint32, length int32, label *int8) {\n C.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func GenFramebuffers(n int32, framebuffers *uint32) {\n C.glowGenFramebuffers(gpGenFramebuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(framebuffers)))\n}", "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *int8) {\n C.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func NamedFramebufferDrawBuffers(framebuffer uint32, n int32, bufs *uint32) {\n\tsyscall.Syscall(gpNamedFramebufferDrawBuffers, 3, uintptr(framebuffer), uintptr(n), uintptr(unsafe.Pointer(bufs)))\n}", "func NamedFramebufferDrawBuffers(framebuffer uint32, n int32, bufs *uint32) {\n\tC.glowNamedFramebufferDrawBuffers(gpNamedFramebufferDrawBuffers, (C.GLuint)(framebuffer), (C.GLsizei)(n), (*C.GLenum)(unsafe.Pointer(bufs)))\n}", "func NamedFramebufferDrawBuffers(framebuffer uint32, n int32, bufs *uint32) {\n\tC.glowNamedFramebufferDrawBuffers(gpNamedFramebufferDrawBuffers, (C.GLuint)(framebuffer), (C.GLsizei)(n), (*C.GLenum)(unsafe.Pointer(bufs)))\n}", "func (bm BitMap) Name() string { return bm.name }", "func GenFramebuffers(n int32, framebuffers *uint32) {\n\tsyscall.Syscall(gpGenFramebuffers, 2, uintptr(n), uintptr(unsafe.Pointer(framebuffers)), 0)\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) {\n\tC.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) {\n\tC.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tsyscall.Syscall(gpNamedFramebufferDrawBuffer, 2, uintptr(framebuffer), uintptr(buf), 0)\n}", "func (debugging *debuggingOpenGL) GenFramebuffers(n int32) []uint32 {\n\tdebugging.recordEntry(\"GenFramebuffers\", n)\n\tresult := debugging.gl.GenFramebuffers(n)\n\tdebugging.recordExit(\"GenFramebuffers\", result)\n\treturn result\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tC.glowNamedFramebufferDrawBuffer(gpNamedFramebufferDrawBuffer, (C.GLuint)(framebuffer), (C.GLenum)(buf))\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tC.glowNamedFramebufferDrawBuffer(gpNamedFramebufferDrawBuffer, (C.GLuint)(framebuffer), (C.GLenum)(buf))\n}", "func (g *Game) nameOf(x, y int) string {\n\treturn fmt.Sprintf(\"%s%d\", string('a'+x), y+1)\n}", "func (native *OpenGL) GenFramebuffers(n int32) []uint32 {\n\tids := make([]uint32, n)\n\tgl.GenFramebuffers(n, &ids[0])\n\treturn ids\n}", "func (self *Graphics) Name() string{\n return self.Object.Get(\"name\").String()\n}", "func (br *builderRev) snapshotObjectName() string {\n\treturn fmt.Sprintf(\"%v/%v/%v.tar.gz\", \"go\", br.name, br.rev)\n}", "func (*Object) Name() string { return \"object\" }", "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *uint8) {\n\tC.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *uint8) {\n\tC.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func GetObjectPtrLabel(ptr unsafe.Pointer, bufSize int32, length *int32, label *int8) {\n C.glowGetObjectPtrLabel(gpGetObjectPtrLabel, ptr, (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func (self *TileSprite) FrameName() string{\n return self.Object.Get(\"frameName\").String()\n}", "func NamedFramebufferRenderbuffer(framebuffer uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tsyscall.Syscall6(gpNamedFramebufferRenderbuffer, 4, uintptr(framebuffer), uintptr(attachment), uintptr(renderbuffertarget), uintptr(renderbuffer), 0, 0)\n}", "func (f *Framebuffer) Object() interface{} {\n\treturn f.o\n}", "func initFontVbo() {\n\tvar vertexAttributes = make([]float32, 5*6*len(charDatas))\n\ti := 0\n\tfor _, charData := range charDatas {\n\t\ttop := float32(charData.ty+charData.h) / 256\n\t\tbottom := float32(charData.ty) / 256\n\t\tright := float32(charData.tx+charData.w) / 256\n\t\tleft := float32(charData.tx) / 256\n\n\t\tw := float32(charData.w) / 256\n\t\th := float32(charData.h) / 256\n\n\t\t// tri 1\n\t\tvertexAttributes[i] = w\n\t\tvertexAttributes[i+1] = h\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = right\n\t\tvertexAttributes[i+4] = bottom\n\t\ti += 5\n\n\t\tvertexAttributes[i] = w\n\t\tvertexAttributes[i+1] = 0\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = right\n\t\tvertexAttributes[i+4] = top\n\t\ti += 5\n\n\t\tvertexAttributes[i] = 0\n\t\tvertexAttributes[i+1] = h\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = left\n\t\tvertexAttributes[i+4] = bottom\n\t\ti += 5\n\n\t\t// tri 2\n\t\tvertexAttributes[i] = w\n\t\tvertexAttributes[i+1] = 0\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = right\n\t\tvertexAttributes[i+4] = top\n\t\ti += 5\n\n\t\tvertexAttributes[i] = 0\n\t\tvertexAttributes[i+1] = 0\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = left\n\t\tvertexAttributes[i+4] = top\n\t\ti += 5\n\n\t\tvertexAttributes[i] = 0\n\t\tvertexAttributes[i+1] = h\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = left\n\t\tvertexAttributes[i+4] = bottom\n\t\ti += 5\n\t}\n\n\tgl.GenBuffers(1, &vbo)\n\tgl.GenVertexArrays(1, &vao)\n\tgl.BindVertexArray(vao)\n\tgl.EnableVertexAttribArray(0)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.BufferData(\n\t\tgl.ARRAY_BUFFER,\n\t\t4*len(vertexAttributes),\n\t\tgl.Ptr(vertexAttributes),\n\t\tgl.STATIC_DRAW,\n\t)\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, 5*4, gl.PtrOffset(0))\n\tgl.EnableVertexAttribArray(0)\n\tgl.VertexAttribPointer(1, 2, gl.FLOAT, false, 5*4, gl.PtrOffset(4*3))\n\tgl.EnableVertexAttribArray(1)\n\t//unbind\n\tgl.BindVertexArray(0)\n\n}", "func NamedFramebufferRenderbuffer(framebuffer uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tC.glowNamedFramebufferRenderbuffer(gpNamedFramebufferRenderbuffer, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func NamedFramebufferRenderbuffer(framebuffer uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tC.glowNamedFramebufferRenderbuffer(gpNamedFramebufferRenderbuffer, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func GenFramebuffers(n Sizei, framebuffers []Uint) {\n\tcn, _ := (C.GLsizei)(n), cgoAllocsUnknown\n\tcframebuffers, _ := (*C.GLuint)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&framebuffers)).Data)), cgoAllocsUnknown\n\tC.glGenFramebuffers(cn, cframebuffers)\n}", "func (sh *ShaderStd) Name() string { return sh.MtlName }", "func createFB(tex wasm.WebGLTexture) wasm.WebGLFramebuffer {\n\tfb := gl.CreateFramebuffer()\n\tgl.BindFramebuffer(wasm.FRAMEBUFFER, fb)\n\tgl.FramebufferTexture2D(wasm.FRAMEBUFFER, wasm.COLOR_ATTACHMENT0, wasm.TEXTURE_2D, tex, 0)\n\treturn fb\n}", "func (o *os) PrintAllTexturesBySize() {\n\to.ensureSingleton()\n\t//log.Println(\"Calling _OS.PrintAllTexturesBySize()\")\n\n\t// Build out the method's arguments\n\tptrArguments := make([]gdnative.Pointer, 0, 0)\n\n\t// Get the method bind\n\tmethodBind := gdnative.NewMethodBind(\"_OS\", \"print_all_textures_by_size\")\n\n\t// Call the parent method.\n\t// void\n\tretPtr := gdnative.NewEmptyVoid()\n\tgdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)\n\n}", "func ObjName(iface interface{}) string {\n\treturn filepath.Base(reflect.TypeOf(iface).PkgPath()) +\n\t\t\".\" + reflect.TypeOf(iface).Name()\n}", "func (i *ImageBuf) Name() string {\n\tret := C.GoString(C.ImageBuf_name(i.ptr))\n\truntime.KeepAlive(i)\n\treturn ret\n}", "func ObjectPtrLabel(ptr unsafe.Pointer, length int32, label *int8) {\n C.glowObjectPtrLabel(gpObjectPtrLabel, ptr, (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func Id2Fname(id int) (fname string) {\n\n\tstr_id := strconv.Itoa(id)\n\tfname = str_id + \".geojson\"\n\n\treturn fname\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (e *Engine) SurfaceToStr(state State) string {\n\tvar buffer bytes.Buffer\n\tbuffer.WriteString(\" \")\n\tfor x := 0; x < len(e.Surface[0]); x++ {\n\t\tbuffer.WriteString(fmt.Sprintf(\"%d \", x))\n\t}\n\tbuffer.WriteString(\"\\n\")\n\tfor y := 0; y < len(e.Surface); y++ {\n\t\tbuffer.WriteString(fmt.Sprintf(\"%d \", y))\n\t\tfor x := 0; x < len(e.Surface[y]); x++ {\n\t\t\tp := NewPoint(x, y)\n\t\t\tif e.Surface[y][x] == WALL {\n\t\t\t\tbuffer.WriteString(\"#\")\n\t\t\t} else if state.Figure.X == x && state.Figure.Y == y {\n\t\t\t\tif e.Targets.Contains(p) {\n\t\t\t\t\tbuffer.WriteString(\"+\")\n\t\t\t\t} else {\n\t\t\t\t\tbuffer.WriteString(\"x\")\n\t\t\t\t}\n\t\t\t} else if state.Boxes.Contains(p) {\n\t\t\t\tif e.Targets.Contains(p) {\n\t\t\t\t\tbuffer.WriteString(\"%\")\n\t\t\t\t} else {\n\t\t\t\t\tbuffer.WriteString(\"$\")\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif e.Targets.Contains(p) {\n\t\t\t\t\tbuffer.WriteString(\"*\")\n\t\t\t\t} else if e.Surface[y][x] == DEAD {\n\t\t\t\t\tbuffer.WriteString(\"☠\")\n\t\t\t\t} else {\n\t\t\t\t\tbuffer.WriteString(\" \")\n\t\t\t\t}\n\t\t\t}\n\t\t\tbuffer.WriteString(\" \")\n\t\t}\n\t\tbuffer.WriteString(\"\\n\")\n\t}\n\tfieldnr, deadnr := e.Surface.AmountOfFields()\n\tbuffer.WriteString(fmt.Sprintf(\"Boxes: %d\\n\", len(state.Boxes)))\n\tbuffer.WriteString(fmt.Sprintf(\"Points: %d\\n\", len(e.Targets)))\n\tbuffer.WriteString(fmt.Sprintf(\"Fields: %d\\n\", fieldnr))\n\tbuffer.WriteString(fmt.Sprintf(\"DeadFields: %d\\n\", deadnr))\n\n\treturn buffer.String()\n}", "func (f Frame) name() string {\n\tfn := runtime.FuncForPC(f.pc())\n\tif fn == nil {\n\t\treturn \"unknown\"\n\t}\n\treturn fn.Name()\n}", "func BlitNamedFramebuffer(readFramebuffer uint32, drawFramebuffer uint32, srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tsyscall.Syscall12(gpBlitNamedFramebuffer, 12, uintptr(readFramebuffer), uintptr(drawFramebuffer), uintptr(srcX0), uintptr(srcY0), uintptr(srcX1), uintptr(srcY1), uintptr(dstX0), uintptr(dstY0), uintptr(dstX1), uintptr(dstY1), uintptr(mask), uintptr(filter))\n}", "func BlitNamedFramebuffer(readFramebuffer uint32, drawFramebuffer uint32, srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tC.glowBlitNamedFramebuffer(gpBlitNamedFramebuffer, (C.GLuint)(readFramebuffer), (C.GLuint)(drawFramebuffer), (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func BlitNamedFramebuffer(readFramebuffer uint32, drawFramebuffer uint32, srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tC.glowBlitNamedFramebuffer(gpBlitNamedFramebuffer, (C.GLuint)(readFramebuffer), (C.GLuint)(drawFramebuffer), (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func snapshotName(term, index uint64) string {\n\tnow := time.Now()\n\tmsec := now.UnixNano() / int64(time.Millisecond)\n\treturn fmt.Sprintf(\"%d-%d-%d\", term, index, msec)\n}", "func GenRenderbuffers(n int32, renderbuffers *uint32) {\n C.glowGenRenderbuffers(gpGenRenderbuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(renderbuffers)))\n}", "func NamedBufferStorage(buffer uint32, size int, data unsafe.Pointer, flags uint32) {\n\tC.glowNamedBufferStorage(gpNamedBufferStorage, (C.GLuint)(buffer), (C.GLsizeiptr)(size), data, (C.GLbitfield)(flags))\n}", "func NamedBufferStorage(buffer uint32, size int, data unsafe.Pointer, flags uint32) {\n\tC.glowNamedBufferStorage(gpNamedBufferStorage, (C.GLuint)(buffer), (C.GLsizeiptr)(size), data, (C.GLbitfield)(flags))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tC.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tC.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src))\n}", "func (node NamedWindows) formatFast(buf *TrackedBuffer) {\n\tvar prefix string\n\tfor _, n := range node {\n\t\tbuf.WriteString(prefix)\n\t\tn.formatFast(buf)\n\t\tprefix = \", \"\n\t}\n}", "func NewFrameBuffer() *FrameBuffer {\n\n\tvar fb FrameBuffer\n\tfb.Strips = make([]LedStrip, 0, config.StripsPerTeensy)\n\n\tif config.Titania {\n\t\t// Titania config\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(true, 229))\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(false, 178))\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(false, 228))\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(true, 0))\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(true, 0))\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(true, 0))\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(true, 0))\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(true, 0))\n\t} else {\n\t\t// Bedroom config\n\t\t// 0, 1 Unused strips (bedroom)\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(true, 0))\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(true, 0))\n\n\t\t// 2 Bed wall\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(false, 168))\n\n\t\t// 3 Bed curtains\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(true, 164))\n\n\t\t// 4 Bed ceiling\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(false, 165))\n\n\t\t// 5 Dressing table wall\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(true, 85))\n\n\t\t// 6 Dressing table ceiling\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(true, 80))\n\n\t\t// 7 Dressing table curtain\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(false, 162))\n\n\t\t// 8 Bathroom mirror wall\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(true, 172))\n\n\t\t// 9 Bath ceiling\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(false, 226))\n\n\t\t// 10 Bath+ wall\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(false, 291))\n\n\t\t// 11 Bathroom mirror ceiling\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(true, 162))\n\n\t\t// 12 Unused\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(true, 0))\n\n\t\t// 13 Left of door ceiling\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(true, 88))\n\n\t\t// 14 Right of door ceiling\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(false, 142))\n\n\t\t// 15 Right of door wall\n\t\tfb.Strips = append(fb.Strips, *NewLedStrip(false, 122))\n\t}\n\n\t// Sanity check\n\tnumberOfStrips := len(fb.Strips)\n\tif numberOfStrips <= 0 || numberOfStrips%config.StripsPerTeensy != 0 {\n\t\tlog.WithField(\"StripsPerTeensy\", strconv.Itoa(config.StripsPerTeensy)).Panic(\"framebuffer strips must be multiple of\")\n\t}\n\treturn &fb\n}", "func initFramebuffer(width, height int) {\n\tlog.Printf(\"[Video]: Initializing HW render (%v x %v).\\n\", width, height)\n\n\tgl.GenFramebuffers(1, &fboID)\n\tgl.BindFramebuffer(gl.FRAMEBUFFER, fboID)\n\n\t//gl.GenTextures(1, &video.texID)\n\tgl.BindTexture(gl.TEXTURE_2D, texID)\n\tgl.TexStorage2D(gl.TEXTURE_2D, 1, gl.RGBA8, int32(width), int32(height))\n\n\tgl.FramebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, texID, 0)\n\n\thw := state.Global.Core.HWRenderCallback\n\n\tgl.BindRenderbuffer(gl.RENDERBUFFER, 0)\n\n\tif gl.CheckFramebufferStatus(gl.FRAMEBUFFER) != gl.FRAMEBUFFER_COMPLETE {\n\t\tlog.Fatalln(\"[Video] Framebuffer is not complete.\")\n\t}\n\n\tgl.ClearColor(0, 0, 0, 1)\n\tif hw.Depth && hw.Stencil {\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT | gl.STENCIL_BUFFER_BIT)\n\t} else if hw.Depth {\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\t} else {\n\t\tgl.Clear(gl.COLOR_BUFFER_BIT)\n\t}\n\n\tgl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n}", "func (node *NamedWindow) formatFast(buf *TrackedBuffer) {\n\tbuf.WriteString(\"window \")\n\tnode.Windows.formatFast(buf)\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n C.glowFramebufferRenderbuffer(gpFramebufferRenderbuffer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tsyscall.Syscall(gpNamedFramebufferReadBuffer, 2, uintptr(framebuffer), uintptr(src), 0)\n}", "func (f frame) name() string {\n\tfn := runtime.FuncForPC(f.pc())\n\tif fn == nil {\n\t\treturn \"unknown\"\n\t}\n\treturn fn.Name()\n}", "func (self *GameObjectCreator) BitmapText1O(x int, y int, font string, text string) *BitmapText{\n return &BitmapText{self.Object.Call(\"bitmapText\", x, y, font, text)}\n}", "func generateObjectKey(threadIndex int, payloadSize uint64) string {\n\tvar key string\n\tkeyHash := sha1.Sum([]byte(fmt.Sprintf(\"%03d-%012d\", threadIndex, payloadSize)))\n\tfolder := strconv.Itoa(int(payloadSize))\n\tkey = folder + \"/\" + (fmt.Sprintf(\"%x\", keyHash))\n\treturn key\n}", "func FramebufferRenderbuffer(target Enum, attachment Enum, renderbuffertarget Enum, renderbuffer Uint) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcattachment, _ := (C.GLenum)(attachment), cgoAllocsUnknown\n\tcrenderbuffertarget, _ := (C.GLenum)(renderbuffertarget), cgoAllocsUnknown\n\tcrenderbuffer, _ := (C.GLuint)(renderbuffer), cgoAllocsUnknown\n\tC.glFramebufferRenderbuffer(ctarget, cattachment, crenderbuffertarget, crenderbuffer)\n}", "func (self *Graphics) GenerateTexture1O(resolution int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution)}\n}", "func generateFontID(fdt fontDefType) (string, error) {\n\t// file can be different if generated in different instance\n\tfdt.File = \"\"\n\tb, err := json.Marshal(&fdt)\n\treturn fmt.Sprintf(\"%x\", sha1.Sum(b)), err\n}", "func PushName(name uint32) {\n C.glowPushName(gpPushName, (C.GLuint)(name))\n}", "func (frame Frame) ToString(delimiter string) string {\n\tvar frameString string\n\ttimestamp := TimestampToSeconds(frame.Timestamp)\n\tframeString += strconv.FormatFloat(timestamp, 'f', -1, 64) + delimiter\n\tframeString += fmt.Sprintf(\"%X\", frame.OID) + delimiter\n\tif frame.Eff() {\n\t\tframeString += \"EFF\" + delimiter\n\t} else {\n\t\tframeString += \"NOEFF\" + delimiter\n\t}\n\tif frame.Rtr() {\n\t\tframeString += \"RTR\" + delimiter\n\t} else {\n\t\tframeString += \"NORTR\" + delimiter\n\t}\n\tif frame.Err() {\n\t\tframeString += \"ERR\" + delimiter\n\t} else {\n\t\tframeString += \"NOERR\" + delimiter\n\t}\n\tframeString += fmt.Sprintf(\"%X\", frame.ID()) + delimiter\n\tframeString += fmt.Sprintf(\"%d\", frame.Dlc()) + delimiter\n\tframeString += fmt.Sprintf(\"% X\", frame.Data)\n\treturn frameString\n}", "func (m *FS) Name() string { return \"FAT16\" }", "func GenerateLinkName(peerId string, id ResourceId, key ResourceKey) string {\n in := []byte(peerId)\n in = append(in, []byte(id.GetId())...)\n in = append(in, key.KeyData()...)\n LogInfo(\"GenerateLinkName: PeerId=%s, Id=%s, Key=%x :: Hash=%s\",\n peerId, id.GetId(), key.KeyData(), ipfs.Multihash(in))\n return ipfs.Multihash(in)\n}", "func (_ EntityHeadLook) Name() string { return \"*EntityHeadLook\" }", "func NamedFramebufferParameteri(framebuffer uint32, pname uint32, param int32) {\n\tsyscall.Syscall(gpNamedFramebufferParameteri, 3, uintptr(framebuffer), uintptr(pname), uintptr(param))\n}", "func (self *GameObjectCreator) RenderTexture1O(width int) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width)}\n}", "func (bo *BlockObject) toString() string {\n\treturn fmt.Sprintf(\"<Block: %s>\", bo.instructionSet.filename)\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GenerateShapes() {\r\n\t// Square\r\n\tShapes[0].vertices = []gl.GLfloat{-1, -1, 1, -1, -1, 1, 1, 1}\r\n\tShapes[0].elements = []gl.GLushort{0, 1, 2, 2, 3, 1}\r\n\r\n\t// ___|\r\n\tShapes[1].vertices = []gl.GLfloat{-2, 0, -2, -1, 2, -1, 2, 0, 2, 1, 1, 1, 1, 0}\r\n\tShapes[1].elements = []gl.GLushort{0, 1, 2, 2, 3, 0, 3, 4, 5, 5, 6, 3}\r\n\r\n\t// _|_\r\n\tShapes[2].vertices = []gl.GLfloat{-1.5, 0, -0.5, 0, -0.5, 1, 0.5, 1, 0.5, 0, 1.5, 0, 1.5, -1, -1.5, -1}\r\n\tShapes[2].elements = []gl.GLushort{1, 2, 3, 3, 4, 1, 0, 7, 6, 6, 0, 5}\r\n\r\n\t// Snake\r\n\tShapes[3].vertices = []gl.GLfloat{-1.5, -1, -1.5, 0, -0.5, 0, -0.5, 1, 1.5, 1, 1.5, 0, 0.5, 0, 0.5, -1}\r\n\tShapes[3].elements = []gl.GLushort{0, 1, 6, 6, 7, 0, 2, 3, 4, 4, 5, 2}\r\n\r\n\t// Now fill out the rest automatically.\r\n\t// FIXME why doesn't using _, shape in this loop work ?\r\n\tfor i := range Shapes {\r\n\t\tShapes[i].vao = gl.GenVertexArray()\r\n\t\tShapes[i].vao.Bind()\r\n\t\tShapes[i].vbo = gl.GenBuffer()\r\n\t\tShapes[i].vbo.Bind(gl.ARRAY_BUFFER)\r\n\t\tgl.BufferData(gl.ARRAY_BUFFER, len(Shapes[i].vertices)*4, Shapes[i].vertices, gl.STATIC_DRAW)\r\n\t\tShapes[i].elementBuffer = gl.GenBuffer()\r\n\t\tShapes[i].elementBuffer.Bind(gl.ELEMENT_ARRAY_BUFFER)\r\n\t\tgl.BufferData(gl.ELEMENT_ARRAY_BUFFER, len(Shapes[i].elements)*2, Shapes[i].elements, gl.STATIC_DRAW)\r\n\t\tShapes[i].numElements = len(Shapes[i].elements)\r\n\r\n\t\tvertexAttribArray := shaderProgram.GetAttribLocation(\"position\")\r\n\t\tvertexAttribArray.AttribPointer(2, gl.FLOAT, false, 0, uintptr(0))\r\n\t\tvertexAttribArray.EnableArray()\r\n\t}\r\n}", "func generateRevisionName(name string, objectGeneration int64) string {\n\tnum := fmt.Sprintf(\"%05d\", objectGeneration+1)\n\tout := name + \"-\" + num + \"-\"\n\tr := rand.New(rand.NewSource(time.Now().UnixNano()))\n\tfor i := 0; i < 3; i++ {\n\t\tout += string(rune(int('a') + r.Intn(26)))\n\t}\n\treturn out\n}", "func GenBuffers(n int32, buffers *uint32) {\n C.glowGenBuffers(gpGenBuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(buffers)))\n}", "func (self *Rectangle) ToString() string{\n return self.Object.Call(\"toString\").String()\n}", "func InitNames() {\n C.glowInitNames(gpInitNames)\n}", "func (d *dubbogo) objectNamed(name string) generator.Object {\n d.gen.RecordTypeUse(name)\n return d.gen.ObjectNamed(name)\n}", "func (Functions) CommandName(obj interface{}) string {\n\treturn nameOptions{}.convert(nameOf(obj))\n}", "func GetObjectPtrLabel(ptr unsafe.Pointer, bufSize int32, length *int32, label *uint8) {\n\tC.glowGetObjectPtrLabel(gpGetObjectPtrLabel, ptr, (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func GetObjectPtrLabel(ptr unsafe.Pointer, bufSize int32, length *int32, label *uint8) {\n\tC.glowGetObjectPtrLabel(gpGetObjectPtrLabel, ptr, (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func (bt BuiltinType) Fingerprint() string {\n\treturn fmt.Sprintf(\"gobuiltin: %v\", bt)\n}", "func GenerateGBfromproto(record *bioproto.Genbank) string {\n\tvar stringbuffer bytes.Buffer\n\n\tstringbuffer.WriteString(generateHeaderString(record))\n\tstringbuffer.WriteString(\"FEATURES Location/Qualifiers\\n\")\n\tstringbuffer.WriteString(generateQualifierString(record))\n\tif record.FEATURES != nil {\n\n\t}\n\tif record.CONTIG != \"\" {\n\t\tstringbuffer.WriteString(\"CONTIG \" + record.CONTIG + \"\\n\")\n\t}\n\tstringbuffer.WriteString(\"//\\n\")\n\treturn stringbuffer.String()\n}", "func NamedBufferData(buffer uint32, size int, data unsafe.Pointer, usage uint32) {\n\tC.glowNamedBufferData(gpNamedBufferData, (C.GLuint)(buffer), (C.GLsizeiptr)(size), data, (C.GLenum)(usage))\n}", "func NamedBufferData(buffer uint32, size int, data unsafe.Pointer, usage uint32) {\n\tC.glowNamedBufferData(gpNamedBufferData, (C.GLuint)(buffer), (C.GLsizeiptr)(size), data, (C.GLenum)(usage))\n}", "func createFrame(img image.Image) {\n\tvar buf bytes.Buffer\n\tpng.Encode(&buf, img)\n\tframe = base64.StdEncoding.EncodeToString(buf.Bytes())\n}", "func (i Uint8) Name() string {\n\treturn string(i)\n}", "func genPaddleResName(name string, resType string, idx int) string {\n\treturn fmt.Sprintf(\"%s-%s-%d\", name, resType, idx)\n}", "func GenRenderbuffers(n int32, renderbuffers *uint32) {\n\tsyscall.Syscall(gpGenRenderbuffers, 2, uintptr(n), uintptr(unsafe.Pointer(renderbuffers)), 0)\n}", "func (self *GameObjectCreator) BitmapText2O(x int, y int, font string, text string, size int) *BitmapText{\n return &BitmapText{self.Object.Call(\"bitmapText\", x, y, font, text, size)}\n}", "func objectName(u *unstructured.Unstructured) string {\n\treturn strings.ToLower(fmt.Sprintf(\"%s-%s\", u.GetKind(), strings.Replace(u.GetName(), \":\", \"-\", -1)))\n}", "func FramebufferRenderbuffer(target, attachment, rbTarget Enum, rb Renderbuffer) {\n\tgl.FramebufferRenderbuffer(uint32(target), uint32(attachment), uint32(rbTarget), rb.Value)\n}", "func ListBase(base uint32) {\n C.glowListBase(gpListBase, (C.GLuint)(base))\n}", "func NamedFramebufferTextureLayer(framebuffer uint32, attachment uint32, texture uint32, level int32, layer int32) {\n\tsyscall.Syscall6(gpNamedFramebufferTextureLayer, 5, uintptr(framebuffer), uintptr(attachment), uintptr(texture), uintptr(level), uintptr(layer), 0)\n}", "func (Functions) ProtoName(obj interface{}) string {\n\treturn nameOptions{}.convert(nameOf(obj))\n}", "func (node WindowDefinitions) formatFast(buf *TrackedBuffer) {\n\tvar prefix string\n\tfor _, n := range node {\n\t\tbuf.WriteString(prefix)\n\t\tn.formatFast(buf)\n\t\tprefix = \", \"\n\t}\n}", "func NamedRenderbufferStorage(renderbuffer uint32, internalformat uint32, width int32, height int32) {\n\tC.glowNamedRenderbufferStorage(gpNamedRenderbufferStorage, (C.GLuint)(renderbuffer), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func NamedRenderbufferStorage(renderbuffer uint32, internalformat uint32, width int32, height int32) {\n\tC.glowNamedRenderbufferStorage(gpNamedRenderbufferStorage, (C.GLuint)(renderbuffer), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func genBfaa() string {\n\treturn \"f1b3f18c715565b589b7823cda7448ce\"\n}", "func (p *iexporter) exportName(obj types.Object) (res string) {\n\tif name := p.tparamNames[obj]; name != \"\" {\n\t\treturn name\n\t}\n\treturn obj.Name()\n}", "func (color *Color) writeName(w io.Writer) (err error) {\n\tname := utf16.Encode([]rune(color.Name))\n\tname = append(name, uint16(0))\n\treturn binary.Write(w, binary.BigEndian, name)\n}", "func FrameBuffer(m rv.RenderModel) {\n\tframebuffer(m)\n}" ]
[ "0.568534", "0.56535465", "0.5648645", "0.5419907", "0.54191446", "0.54191446", "0.5418165", "0.53609776", "0.5350602", "0.5350602", "0.5278936", "0.5268667", "0.52605665", "0.52605665", "0.5245682", "0.5217196", "0.52028596", "0.51404995", "0.51126313", "0.5081392", "0.5081392", "0.50467926", "0.5043992", "0.50335073", "0.50206906", "0.49522668", "0.49347425", "0.49347425", "0.49269962", "0.49136564", "0.4877782", "0.48748893", "0.48645818", "0.48628217", "0.48489684", "0.48292342", "0.48192143", "0.48147297", "0.48114192", "0.4809831", "0.47993127", "0.47993127", "0.47774255", "0.47575796", "0.47574943", "0.47574943", "0.4746238", "0.4746238", "0.47423312", "0.47269675", "0.4713161", "0.47025272", "0.4689695", "0.46893913", "0.46737698", "0.46731696", "0.46704245", "0.4669356", "0.46643457", "0.4662571", "0.4661165", "0.46566606", "0.46457502", "0.46448448", "0.4644364", "0.46438238", "0.46385792", "0.46383402", "0.4638195", "0.4636992", "0.46296194", "0.46233237", "0.4619953", "0.460869", "0.46042022", "0.45948723", "0.45948654", "0.45948654", "0.458991", "0.45834902", "0.4582129", "0.4582129", "0.45675728", "0.4563026", "0.45501906", "0.45459586", "0.45454597", "0.45423657", "0.45372254", "0.45368537", "0.45361033", "0.45302668", "0.45261562", "0.45251116", "0.45251116", "0.4524128", "0.45236933", "0.452366", "0.45215952" ]
0.5211925
17
generate a contiguous set of empty display lists
func GenLists(xrange int32) uint32 { ret := C.glowGenLists(gpGenLists, (C.GLsizei)(xrange)) return (uint32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func createDisplaysList(e *Elevator) {\n\tdisplay := newDisplay(1, displayOn, 1)\n\te.floorDisplaysList = append(e.floorDisplaysList, *display)\n\tfor i := e.column.minFloor; i <= e.column.maxFloor; i++ {\n\t\tdisplay = newDisplay(i, displayOn, i)\n\t\te.floorDisplaysList = append(e.floorDisplaysList, *display)\n\t}\n}", "func mkEmptylist() *udoc {\n\tlinks := udata{\n\t\tID: \"links\",\n\t\tData: []udata{\n\t\t\tudata{ID: \"alps\",\n\t\t\t\tRel: []string{\"profile\"},\n\t\t\t\tURL: \"/tasks-alps.xml\",\n\t\t\t\tAction: \"read\",\n\t\t\t\tData: []udata{}},\n\t\t\tudata{ID: \"list\",\n\t\t\t\tName: \"links\",\n\t\t\t\tRel: []string{\"collection\"},\n\t\t\t\tURL: \"/tasks/\",\n\t\t\t\tAction: \"read\",\n\t\t\t\tData: []udata{}},\n\t\t\tudata{ID: \"search\",\n\t\t\t\tName: \"links\",\n\t\t\t\tRel: []string{\"search\"},\n\t\t\t\tURL: \"/tasks/search\",\n\t\t\t\tAction: \"read\",\n\t\t\t\tModel: \"?text={text}\",\n\t\t\t\tData: []udata{}},\n\t\t\tudata{ID: \"add\",\n\t\t\t\tName: \"links\",\n\t\t\t\tRel: []string{\"add\"},\n\t\t\t\tURL: \"/tasks/\",\n\t\t\t\tAction: \"append\",\n\t\t\t\tModel: \"text={text}\",\n\t\t\t\tData: []udata{}}}}\n\n\treturn &udoc{ubody{Version: \"1.0\", Data: []udata{links, udata{ID: \"tasks\", Data: []udata{}}}, Error: []udata{}}}\n}", "func getEmptyMap() []models.Location {\n\tresult := make([]models.Location, Width * Height)\n\tfor w := 0; w < Width; w++ {\n\t\tfor h := 0; h < Height; h++ {\n\t\t\tresult[h * Width + w] = models.NewEmptyField(w, h)\n\t\t}\n\t}\n\treturn result\n}", "func makeClosedList(m GridMap) []node {\n\tsz := m.Width() * m.Height()\n\tclosed := make([]node, sz)\n\tfor i := range closed {\n\t\tclosed[i].ind = i\n\t\tclosed[i].parent = -1\n\t\tclosed[i].g = -1\n\t\tclosed[i].pqindex = -1\n\t}\n\treturn closed\n}", "func gates(w [][]int32) *list.List {\n\tll := list.New()\n\tfor i, val := range w {\n\t\tfor j, val1 := range val {\n\t\t\tif val1 == 0 {\n\t\t\t\tll.PushBack(location{row: i, col: j})\n\t\t\t}\n\t\t}\n\t}\n\n\treturn ll\n}", "func (p *packPlan) clear() {\n\tfor i := 0; i < len(p); i++ {\n\t\tp[i] = emptyCell\n\t}\n}", "func (t *data) to_list() *list.List {\n\t//define new line\n l := list.New()\n\t\n\t//for each element in set\n for _, m := range t.set {\n for _, s := range m {\n\t\t\t//if s is not zero\n if s != deliverzero {\n l.PushBack(s)\n }\n }\n }\n return l\n}", "func (il *IntList) Clear() {\n il.first.next = il.last\n il.last.prev = il.first\n il.length = 0\n}", "func (s SetOfSpaces) EmptySpaces() []int {\r\n\tempties := []int{}\r\n\r\n\tfor _, index := range s.indices {\r\n\t\tif s.board.IsEmpty(index) {\r\n\t\t\tempties = append(empties, index)\r\n\t\t}\r\n\t}\r\n\treturn empties\r\n}", "func (x *LinkListSpanner) Clear() {\n\tx.lastY, x.lastP = 0, 0\n\tx.spans = x.spans[0:0]\n\twidth := x.bounds.Dy()\n\tfor i := 0; i < width; i++ {\n\t\t// The first cells are indexed according to the y values\n\t\t// to create y separate linked lists corresponding to the\n\t\t// image y length. Since index 0 is used by the first of these sentinel cells\n\t\t// 0 can and is used for the end of list value by the spanner linked list.\n\t\tx.spans = append(x.spans, spanCell{})\n\t}\n}", "func (buf *buffer) generateEntryList() []bufEntry {\n\tsort.Sort(buf.vec[:buf.curSize])\n\tret := buf.vec[:buf.curSize]\n\tbuf.vec = make([]bufEntry, buf.maxSize)\n\tif buf.curSize == 0 {\n\t\treturn ret\n\t}\n\tbuf.curSize = 0\n\tnumEntries := 0\n\tfor i := 1; i < len(ret); i++ {\n\t\tif ret[i].value != ret[i-1].value {\n\t\t\tnumEntries++\n\t\t\tret[numEntries] = ret[i]\n\t\t} else {\n\t\t\tret[numEntries].weight += ret[i].weight\n\t\t}\n\t}\n\treturn ret[:numEntries+1]\n}", "func List(elems ...Elem) Cell {\n\tlist := Nil\n\tfor i := len(elems) - 1; i >= 0; i-- {\n\t\tlist = Cons(elems[i], list)\n\t}\n\treturn list\n}", "func (b *Skiplist) DisplayAll() {\n\tfmt.Printf(\"\\nhead->\")\n\tcurrentNode := b.Header\n\n\t//Draw forward[0] base\n\tfor {\n\t\tif (currentNode.flags&f_first)==0 {\n\t\t\tfmt.Printf(\"[key:%v][val:%v]->\", currentNode.Key, currentNode.Val)\n\t\t} else {\n\t\t\tfmt.Printf(\"[HEAD]->\")\n\t\t}\n\t\tif currentNode.Forward[0] == nil {\n\t\t\tbreak\n\t\t}\n\t\tcurrentNode = currentNode.Forward[0]\n\t}\n\tfmt.Printf(\"nil\\n\")\n\n\tfmt.Println(\"---------------------------------------------------------\")\n\tcurrentNode = b.Header\n\t//Draw all data node.\n\tfor {\n\t\tif (currentNode.flags&f_first)==0 {\n\t\t\tfmt.Printf(\"[node:%v], val:%v, level:%d \", currentNode.Key, currentNode.Val, currentNode.Level)\n\t\t} else {\n\t\t\tfmt.Printf(\"[HEAD], level:%d \", currentNode.Level)\n\t\t}\n\n\t\tif currentNode.Forward[0] == nil {\n\t\t\tbreak\n\t\t}\n\n\t\tfor j := currentNode.Level - 1; j >= 0; j-- {\n\t\t\tfmt.Printf(\" fw[%d]:\", j)\n\t\t\tif currentNode.Forward[j] != nil {\n\t\t\t\tfmt.Printf(\"%v\", currentNode.Forward[j].Key)\n\t\t\t} else {\n\t\t\t\tfmt.Printf(\"nil\")\n\t\t\t}\n\t\t}\n\t\tfmt.Printf(\"\\n\")\n\t\tcurrentNode = currentNode.Forward[0]\n\t}\n\tfmt.Printf(\"\\n\")\n}", "func (l *CentroidList) Clear() {\n\t*l = (*l)[:0]\n}", "func (u Universe) Show() {\n\tfor _, row := range u {\n\t\tfor _, column := range row {\n\t\t\tif column {\n\t\t\t\tfmt.Print(\"*\")\n\t\t\t} else {\n\t\t\t\tfmt.Print(\" \")\n\t\t\t}\n\t\t}\n\t\tfmt.Println()\n\t}\n}", "func makeCursorList() []cursorSet {\n\tcursorList := []cursorSet {\n\t\t{\n\t\t\trightShift: 1,\n\t\t\tdownShift: 1,\n\t\t},\n\t\t{\n\t\t\trightShift: 3,\n\t\t\tdownShift: 1,\n\t\t},\n\t\t{\n\t\t\trightShift: 5,\n\t\t\tdownShift: 1,\n\t\t},\n\t\t{\n\t\t\trightShift: 7,\n\t\t\tdownShift: 1,\n\t\t},\n\t\t{\n\t\t\trightShift: 1,\n\t\t\tdownShift: 2,\n\t\t},\n\t}\n\n\treturn cursorList\n}", "func newShortTestList() LinkedList {\n\treturn newList(1024, 8*1024, func(baseIdx int, data []int) {\n\t\tfor i := range data {\n\t\t\tdata[i] = baseIdx + i\n\t\t}\n\t})\n}", "func PrepareNodeList(num int) btll.NodeList {\n\tn := btll.NodeList{}\n\to := PrepareOccurrences(num)\n\tfor _, v := range o {\n\t\tnode := &btll.Node{Data: v.Symb, Freq: v.Occurrences}\n\t\tif n.Length == 0 {\n\t\t\tn.Head = node\n\t\t\tn.Tail = node\n\t\t} else {\n\t\t\tlastNode := n.Tail\n\t\t\tnewNode := node\n\t\t\tlastNode.Next = newNode\n\t\t\tlastNode.Next.Prev = lastNode\n\t\t\tn.Tail = newNode\n\t\t}\n\t\tn.Length++\n\t}\n\treturn n\n}", "func GenerateEmpty(n, m int) Matrix {\n\tout := make([]Row, n)\n\n\tfor i := 0; i < n; i++ {\n\t\tout[i] = NewRow(m)\n\t}\n\n\treturn Matrix(out)\n}", "func buildSlice() []int{\r\n \r\n\tresetRand := rand.NewSource(time.Now().UnixNano())\r\n rNum := rand.New(resetRand)\r\n\t\r\n\tunorderedSlice := make([]int, 0, totalNumbers)\r\n\t\r\n\ti := 0\t\r\n\tfor i < totalNumbers{\r\n\t\tunorderedSlice = append(unorderedSlice, rNum.Intn(100))\r\n\t\ti++\r\n\t}\r\n\treturn unorderedSlice\r\n}", "func (g *Grid) initSlices() {\n\tg.cells = make([]abm.Agent, g.size())\n\tg.cellsPrev = make([]abm.Agent, g.size())\n}", "func WithoutEmpty[T comparable](collection []T) []T {\n\tvar empty T\n\n\tresult := make([]T, 0, len(collection))\n\tfor _, e := range collection {\n\t\tif e != empty {\n\t\t\tresult = append(result, e)\n\t\t}\n\t}\n\n\treturn result\n}", "func AllocIds(kind FaceKind, count int) (ids []FaceId) {\n\tallocated := make(map[FaceId]bool)\n\tfor len(allocated) < count {\n\t\tallocated[AllocId(kind)] = true\n\t}\n\tfor id := range allocated {\n\t\tids = append(ids, id)\n\t}\n\treturn ids\n}", "func genListDesc(size int) []int {\n\tl := make([]int, size)\n\tfor i := range l {\n\t\tl[i] = size - i\n\t}\n\treturn l\n}", "func (p *List) Reset() { *p = (*p)[0:0] }", "func batchNovel(absent hash.HashSet, batch int) (remainder hash.HashSet, batches []hash.HashSet) {\n\tcurr := make(hash.HashSet, batch)\n\tfor h := range absent {\n\t\tcurr.Insert(h)\n\t\tif curr.Size() >= batch {\n\t\t\tbatches = append(batches, curr)\n\t\t\tcurr = make(hash.HashSet, batch)\n\t\t}\n\t}\n\tremainder = curr\n\treturn\n}", "func printSkipList(skl *SkipList) {\n\tplaceholder := \" \"\n\tif skl == nil || skl.level < 1 {\n\t\treturn\n\t}\n\tvar a [][]interface{}\n\ttmp := []interface{}{}\n\n\tfor cur := skl.JumpLevel[0].next; cur != nil; cur = cur.next {\n\t\ttmp = append(tmp, cur.key)\n\t}\n\ta = append(a, tmp)\n\tfor k := 1; k < skl.level; k++ {\n\t\tb := []interface{}{}\n\t\tlist := skl.JumpLevel[k].next\n\t\tfor i := 0; list != nil && i < list.key; i++ {\n\t\t\tif list != nil && list.key == tmp[i] {\n\t\t\t\tb = append(b, list.key)\n\t\t\t\tlist = list.next\n\t\t\t} else {\n\t\t\t\tb = append(b, placeholder)\n\t\t\t}\n\t\t}\n\t\ta = append(a, b)\n\t}\n\tfor i := len(a) - 1; i >= 0; i-- {\n\t\tfmt.Print(\"-\")\n\t\tfor j := 0; j < len(a[i]); j++ {\n\t\t\tif a[i][j] == placeholder {\n\t\t\t\tfmt.Print(\"----\")\n\t\t\t} else {\n\t\t\t\tfmt.Printf(\"->%2d\", a[i][j])\n\t\t\t}\n\t\t}\n\t\tfmt.Println()\n\t}\n}", "func TestCreateAndIter(t *testing.T) {\n\ttype insert struct {\n\t\tindex int\n\t\tvalue ElemType\n\t}\n\ttype tst struct {\n\t\tinserts []insert\n\t\tresult []ElemType\n\t}\n\n\ttsts := []tst{\n\t\t{[]insert{{0, distToElem(0)}, {1, distToElem(1)}, {2, distToElem(2)}, {3, distToElem(3)}, {4, distToElem(4)}, {5, distToElem(5)}, {6, distToElem(6)}, {7, distToElem(7)}, {8, distToElem(8)}, {9, distToElem(9)}, {10, distToElem(10)}},\n\t\t\t[]ElemType{distToElem(0), distToElem(1), distToElem(2), distToElem(3), distToElem(4), distToElem(5), distToElem(6), distToElem(7), distToElem(8), distToElem(9), distToElem(10)},\n\t\t},\n\t\t{[]insert{{0, distToElem(10)}, {0, distToElem(9)}, {0, distToElem(8)}, {0, distToElem(7)}, {0, distToElem(6)}, {0, distToElem(5)}, {0, distToElem(4)}, {0, distToElem(3)}, {0, distToElem(2)}, {0, distToElem(1)}, {0, distToElem(0)}},\n\t\t\t[]ElemType{distToElem(0), distToElem(1), distToElem(2), distToElem(3), distToElem(4), distToElem(5), distToElem(6), distToElem(7), distToElem(8), distToElem(9), distToElem(10)},\n\t\t},\n\t}\n\n\tfor _, ts := range tsts {\n\t\tvar sl ISkipList\n\t\tsl.Seed(randSeed1, randSeed2)\n\n\t\tfor _, ins := range ts.inserts {\n\t\t\tt.Logf(\"Inserting %v at %v\\n\", ins.value, ins.index)\n\t\t\tsl.Insert(ins.index, ins.value)\n\t\t}\n\n\t\tif sl.Length() != len(ts.result) {\n\t\t\tt.Errorf(\"Error mismatch: ISKipList has length %v; expected result has length %v\\n\", sl.Length(), len(ts.result))\n\t\t}\n\n\t\t// Test iterating through the list using At()\n\t\tfor i, v := range ts.result {\n\t\t\tt.Logf(\"At %v\\n\", i)\n\t\t\tslv := sl.At(i)\n\t\t\tif slv != v {\n\t\t\t\tt.Errorf(\"ISkipList[%v] = %v, expectedResult[%v] = %v\\n\", i, slv, i, v)\n\t\t\t}\n\t\t}\n\n\t\t// Test iterating through the by copying it to a slice.\n\t\tcpy := make([]ElemType, len(ts.result))\n\t\tsl.CopyToSlice(cpy)\n\t\tfor i, v := range cpy {\n\t\t\tif v != ts.result[i] {\n\t\t\t\tt.Errorf(\"sliceCopy[%v] = %v, expectedResult[%v] = %v\\n\", i, v, i, ts.result[i])\n\t\t\t}\n\t\t}\n\n\t\t// Test iterating through part of the list by copying it to a slice.\n\t\tmiddle := make([]ElemType, len(ts.result)-4)\n\t\tsl.CopyRangeToSlice(2, sl.Length()-2, middle)\n\t\tfor i, v := range middle {\n\t\t\tif v != ts.result[i+2] {\n\t\t\t\tt.Errorf(\"middle[%v] = %v, expectedResult[%v] = %v\\n\", i, v, i+2, ts.result[i+2])\n\t\t\t}\n\t\t}\n\n\t\t// Test iterating through the list using Iterate()\n\t\ti := 0\n\t\tsl.Iterate(func(e *ElemType) bool {\n\t\t\tif *e != ts.result[i] {\n\t\t\t\tt.Errorf(\"Expected value %v in iteration, got %v at index %v\\n\", ts.result[i], *e, i)\n\t\t\t}\n\t\t\ti++\n\t\t\treturn true\n\t\t})\n\t\ti = 0\n\t\tsl.IterateI(func(j int, e *ElemType) bool {\n\t\t\tif *e != ts.result[i] {\n\t\t\t\tt.Errorf(\"Expected value %v in iteration, got %v at index %v\\n\", ts.result[i], *e, i)\n\t\t\t}\n\t\t\tif i != j {\n\t\t\t\tt.Errorf(\"Unexpected index in iteration: %v vs. %v\\n\", i, j)\n\t\t\t}\n\t\t\ti++\n\t\t\treturn true\n\t\t})\n\t}\n}", "func MakeClearFunction(character []string, printedXPos, printedYPos int) func() {\n\treturn func() {\n\t\tdisplayLock.Lock()\n\t\tfor i, line := range character {\n\n\t\t\t// count number of spaces before first character\n\t\t\tvar alignmentSpaces int\n\t\t\tfor ii, char := range line {\n\t\t\t\tif char != ' ' {\n\t\t\t\t\talignmentSpaces = ii\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\t// make rune array of spaces that is representative of the amount of non-alignment spaces in the text art\n\t\t\tblankRunes := tools.MakeRuneSlice(' ', len(line) - alignmentSpaces)\n\t\t\t// print this rune array at the specified offset\n\t\t\trawPrintRunes(blankRunes, printedXPos+alignmentSpaces, printedYPos+i)\n\t\t}\n\t\tScreen.Show()\n\t\tdisplayLock.Unlock()\n\t}\n}", "func all_subsets(set []int) []*list.List {\n\tresult := make([]*list.List, 0)\n\n\tif len(set) == 0 {\n\t\treturn result\n\t}\n\tl := list.New()\n\tl.PushBack(set[0])\n\tresult = append(result, l)\n\n\tosets := all_subsets(set[1:])\n\n\tfor _, lo := range osets {\n\t\tnew_list := list.New()\n\t\tnew_list.PushBack(set[0])\n\t\tnew_list.PushBackList(lo)\n\n\t\tresult = append(result, new_list)\n\t}\n\n\tfor _, lo := range osets {\n\t\tresult = append(result, lo)\n\t}\n\n\treturn result\n}", "func (s *CPUSet) Zero() {\n\tfor i := range s {\n\t\ts[i] = 0\n\t}\n}", "func (reb *Manager) generateECFixList(md *globArgs) {\n\treb.ecReb.checkSlices()\n\tif bool(glog.FastV(4, glog.SmoduleAIS)) || md.dryRun {\n\t\tglog.Infof(\"Number of objects misplaced locally: %d\", len(reb.ecReb.localActions))\n\t\tglog.Infof(\"Number of objects needs to be reconstructed/resent: %d\", len(reb.ecReb.broken))\n\t}\n}", "func (ts *TaskSet) DisplayByNext() {\n\tif ts.numTasksLoaded == 0 {\n\t\tfmt.Println(\"\\033[31mNo tasks found. Showing help.\\033[0m\")\n\t\tHelp(\"\")\n\t} else if len(ts.tasks) == 0 {\n\t\tExitFail(\"No matching tasks in given context or filter.\")\n\t} else if len(ts.tasks) == 1 {\n\t\tts.tasks[0].Display()\n\t\treturn\n\t} else {\n\t\tvar tasks []*Task\n\t\tw, h := MustGetTermSize()\n\n\t\th -= 8 // leave room for context message, header and prompt\n\n\t\tif h > len(ts.tasks) || h < 0 {\n\t\t\ttasks = ts.tasks\n\t\t} else {\n\t\t\ttasks = ts.tasks[:h]\n\t\t}\n\n\t\ttable := NewTable(\n\t\t\tw,\n\t\t\t\"ID\",\n\t\t\t\"Priority\",\n\t\t\t\"Tags\",\n\t\t\t\"Project\",\n\t\t\t\"Summary\",\n\t\t)\n\n\t\tfor _, t := range tasks {\n\t\t\tstyle := t.Style()\n\t\t\ttable.AddRow(\n\t\t\t\t[]string{\n\t\t\t\t\t// id should be at least 2 chars wide to match column header\n\t\t\t\t\t// (headers can be truncated)\n\t\t\t\t\tfmt.Sprintf(\"%-2d\", t.ID),\n\t\t\t\t\tt.Priority,\n\t\t\t\t\tstrings.Join(t.Tags, \" \"),\n\t\t\t\t\tt.Project,\n\t\t\t\t\tt.Summary,\n\t\t\t\t},\n\t\t\t\tstyle,\n\t\t\t)\n\t\t}\n\n\t\ttable.Render()\n\n\t\tif h >= len(ts.tasks) {\n\t\t\tfmt.Printf(\"\\n%v tasks.\\n\", len(ts.tasks))\n\t\t} else {\n\t\t\tfmt.Printf(\"\\n%v tasks, truncated to %v lines.\\n\", len(ts.tasks), h)\n\t\t}\n\t}\n}", "func display(b board) {\n\tfor j := 0; j < 4; j++ {\n\t\tfor i := 0; j+i < len(b); i += 4 {\n\t\t\tfmt.Printf(\"%v \", b[j+i])\n\t\t}\n\t\tfmt.Println()\n\t}\n}", "func (l *RandomAccessGroupLookup) Clear() {\n\tl.elements = nil\n\tl.index = make(map[string]*groupLookupElement)\n}", "func GenLists(xrange int32) uint32 {\n ret := C.glowGenLists(gpGenLists, (C.GLsizei)(xrange))\n return (uint32)(ret)\n}", "func createSliceByMake() {\n\tprintln(\"-----Make----\")\n\n\tstudent := make([]string, 35)\n\tstudents := make([][]string, 35)\n\tfmt.Println(student)\n\tfmt.Println(students)\n\tfmt.Println(student == nil)\n\tprintln(\"-----Make----\")\n}", "func MakeAllVisible(mapSurface *gamemap.GameMap) {\n\tfor x := 0; x < mapSurface.Width; x++ {\n\t\tfor y := 0; y < mapSurface.Height; y++ {\n\t\t\tmapSurface.Tiles[x][y].Visible = true\n\t\t}\n\t}\n}", "func GenLists(xrange int32) uint32 {\n\tret, _, _ := syscall.Syscall(gpGenLists, 1, uintptr(xrange), 0, 0)\n\treturn (uint32)(ret)\n}", "func to_be_placed() []int {\n\tvar temp = make([]int, 0)\n\tfor x := 1; x <= board_size; x++ {\n\t\tif contains(x, board) == false {\n\t\t\ttemp = append(temp, x)\n\t\t}\n\t}\n\treturn temp\n}", "func generate(currentGeneration int, cols int, rows int, generation []int) []int {\n\thomeScreen()\n\tfmt.Printf(\"Current generation %d\\n\", currentGeneration)\n\tnext := make([]int, len(generation))\n\tfor i := 0; i < len(generation); i++ {\n\t\tif !isCell(cols, rows, i) {\n\t\t\tif right(cols, i) {\n\t\t\t\tfmt.Println()\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\t\tif generation[i] == 1 {\n\t\t\tfmt.Print(\" x \")\n\t\t} else {\n\t\t\tfmt.Print(\" \")\n\t\t}\n\t\tneighbors := neighbors(cols, generation, i)\n\t\tif generation[i] == 0 && neighbors == 3 {\n\t\t\t// birth\n\t\t\tnext[i] = 1\n\t\t} else if generation[i] == 1 && (neighbors > 3 || neighbors < 2) {\n\t\t\t// over-crowding or lonely - dies\n\t\t\tgeneration[i] = 0\n\t\t} else {\n\t\t\tnext[i] = generation[i]\n\t\t}\n\t}\n\treturn next\n}", "func (l *list) dumpList() {\n\tn := l\n\tfor n != nil {\n\t\tmarked, p := n.succs[0].Get()\n\t\tif marked{\n\t\t\tfmt.Printf(\"<%d>[%d], \", n.data, len(n.succs))\n\t\t}else{\n\t\t\tfmt.Printf(\"%d[%d], \", n.data, len(n.succs))\n\t\t}\n\t\tn = (*list)(p)\n\t}\n\tfmt.Printf(\"\\n\")\n}", "func GenerateFull(n, m int) Matrix {\n\tout := GenerateEmpty(n, m)\n\n\tfor i, _ := range out {\n\t\tfor j, _ := range out[i] {\n\t\t\tout[i][j].SetOne()\n\t\t}\n\t}\n\n\treturn out\n}", "func (l Set) All() []Instance {\n\tr := make([]Instance, 0, len(l))\n\tfor label := range l {\n\t\tr = append(r, label)\n\t}\n\n\tsort.Slice(r, func(i, j int) bool {\n\t\treturn strings.Compare(string(r[i]), string(r[j])) < 0\n\t})\n\treturn r\n}", "func (r renderer) List(out *bytes.Buffer, text func() bool, flags int) {\n\t// TODO: This is not desired (we'd rather not write lists as part of summary),\n\t// but see this issue: https://github.com/russross/blackfriday/issues/189\n\tmarker := out.Len()\n\tif !text() {\n\t\tout.Truncate(marker)\n\t}\n\tout.Write([]byte{' '})\n}", "func calSetOfNterminals(gram Grammar, rcgTable recogTable, idxCol int, idxRow int) []string {\r\n\tres := make([]string, 0)\r\n\tfor i := 0; i < idxRow; i++ {\r\n\t\tvSet := rcgTable[idxCol][i]\r\n\t\twSet := rcgTable[idxCol+i+1][idxRow-i-1]\r\n\t\t/* get possibleDerivations */\r\n\t\tpossibleDeri := getPossibleDerivations(gram, vSet, wSet)\r\n\t\tres = append(res, possibleDeri...)\r\n\t}\r\n\treturn res\r\n}", "func List() (list []string) {\n\n\tfor i := range box {\n\t\tlist = append(list, i)\n\t}\n\n\treturn list\n}", "func genListAsc(size int) []int {\n\tl := make([]int, size)\n\tfor i := range l {\n\t\tl[i] = i + 1\n\t}\n\treturn l\n}", "func DrawFold(foldList, seq []string) [][]string {\n\t//sufficiently large\n\tsize := 100\n\tstart := size / 2\n\t//initialize the 2D matrix, with sufficient large size\n\tseqMat := make([][]string, size)\n\tfor i := 0; i < len(seqMat); i++ {\n\t\tseqMat[i] = make([]string, size)\n\t}\n\t//start from the center\n\tx, y := start, start\n\tseqMat[x][y] = seq[0]\n\t//it's a digraph, we need to specify the direction for the nodes\n\t//\"f\":front,\"l\":left,\"r\":right,\"d\":down\n\tpointTo := \"f\"\n\t//each command present a new node\n\tfor j := 0; j < len(foldList); j++ {\n\t\t//command varies with direction\n\t\tswitch pointTo {\n\t\tcase \"f\":\n\t\t\tswitch string(foldList[j]) {\n\t\t\t//command will be \"l\",\"r\",\"f\"\n\t\t\tcase \"l\":\n\t\t\t\t//show conncection\n\t\t\t\tseqMat[x-1][y] = \"-\"\n\t\t\t\tif seqMat[x-2][y] != \"\" {\n\t\t\t\t\tseqMat[x-2][y] = seq[j+1]\n\t\t\t\t\tpointTo = \"l\"\n\t\t\t\t}\n\t\t\tcase \"r\":\n\t\t\t\tseqMat[x+1][y] = \"-\"\n\t\t\t\tif seqMat[x+2][y] != \"\" {\n\t\t\t\t\tseqMat[x+2][y] = seq[j+1]\n\t\t\t\t\tpointTo = \"r\"\n\t\t\t\t}\n\t\t\tcase \"f\": //front+front=front\n\t\t\t\tseqMat[x][y+1] = \"-\"\n\t\t\t\tif seqMat[x][y+2] != \"\" {\n\t\t\t\t\tseqMat[x][y+2] = seq[j+1]\n\t\t\t\t}\n\t\t\t}\n\t\tcase \"l\":\n\t\t\tswitch string(foldList[j]) {\n\t\t\tcase \"l\": //left + left = down\n\t\t\t\tseqMat[x][y-1] = \"-\"\n\t\t\t\tif seqMat[x][y-2] != \"\" {\n\t\t\t\t\tseqMat[x][y-2] = seq[j+1]\n\t\t\t\t\tpointTo = \"d\"\n\t\t\t\t}\n\t\t\tcase \"r\": //left + right =front\n\t\t\t\tseqMat[x][y+1] = \"-\"\n\t\t\t\tif seqMat[x][y+2] != \"\" {\n\t\t\t\t\tseqMat[x][y+2] = seq[j+1]\n\t\t\t\t\tpointTo = \"f\"\n\t\t\t\t}\n\t\t\tcase \"f\": //left+front=left\n\t\t\t\tseqMat[x-1][y] = \"-\"\n\t\t\t\tif seqMat[x-2][y] != \"\" {\n\t\t\t\t\tseqMat[x-2][y] = seq[j+1]\n\t\t\t\t}\n\t\t\t}\n\t\tcase \"r\":\n\t\t\tswitch string(foldList[j]) {\n\t\t\tcase \"l\": //right+left=front\n\t\t\t\tseqMat[x][y+1] = \"-\"\n\t\t\t\tif seqMat[x][y+2] != \"\" {\n\t\t\t\t\tseqMat[x][y+2] = seq[j+1]\n\t\t\t\t\tpointTo = \"f\"\n\t\t\t\t}\n\t\t\tcase \"r\": //right+right=down\n\t\t\t\tseqMat[x][y-1] = \"-\"\n\t\t\t\tif seqMat[x][y-2] != \"\" {\n\t\t\t\t\tseqMat[x][y-2] = seq[j+1]\n\t\t\t\t\tpointTo = \"d\"\n\t\t\t\t}\n\t\t\tcase \"f\": //right+front=right\n\t\t\t\tseqMat[x+1][y] = \"-\"\n\t\t\t\tif seqMat[x+2][y] != \"\" {\n\t\t\t\t\tseqMat[x+2][y] = seq[j+1]\n\t\t\t\t}\n\t\t\t}\n\t\tcase \"d\":\n\t\t\tswitch string(foldList[j]) {\n\t\t\tcase \"l\": //down+left=left\n\t\t\t\tseqMat[x-1][y] = \"-\"\n\t\t\t\tif seqMat[x-2][y] != \"\" {\n\t\t\t\t\tseqMat[x-2][y] = seq[j+1]\n\t\t\t\t\tpointTo = \"l\"\n\t\t\t\t}\n\t\t\tcase \"r\":\n\t\t\t\tseqMat[x+1][y] = \"-\"\n\t\t\t\tif seqMat[x+2][y] != \"\" {\n\t\t\t\t\tseqMat[x+2][y] = seq[j+1]\n\t\t\t\t\tpointTo = \"r\"\n\t\t\t\t}\n\t\t\tcase \"f\":\n\t\t\t\tseqMat[x][y-1] = \"-\"\n\t\t\t\tif seqMat[x][y-2] != \"\" {\n\t\t\t\t\tseqMat[x][y-2] = seq[j+1]\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn seqMat\n}", "func allocFzDisplayListMemory(n int) unsafe.Pointer {\n\tmem, err := C.calloc(C.size_t(n), (C.size_t)(sizeOfFzDisplayListValue))\n\tif err != nil {\n\t\tpanic(\"memory alloc error: \" + err.Error())\n\t}\n\treturn mem\n}", "func rangeList(N int16) []int16 {\n\tretVal := []int16{}\n\tfor i := int16(0); i < N; i++ {\n\t\tretVal = append(retVal, i)\n\t}\n\n\treturn retVal\n}", "func Constructor() MyHashSet {\n    arr := make([][]int, 5000)\n    for i := range arr {\n        arr[i] = make([]int, 0)\n   }\n    return MyHashSet{arr}\n}", "func nonempty(strings []string) []string {\n\ti := 0\n\tfor _, s := range strings {\n\t\tif s != \"\" {\n\t\t\tstrings[i] = s\n\t\t\ti++\n\t\t}\n\t}\n\treturn strings[:i]\n}", "func newTestList() LinkedList {\n\treturn newList(16384, 8192, func(baseIdx int, data []int) {\n\t\tfor i := range data {\n\t\t\tdata[i] = baseIdx + i\n\t\t}\n\t})\n}", "func (s Set) Zero() Set {\r\n\tfor i := 0; i < len(s); i++ {\r\n\t\ts[i] = 0\r\n\t}\r\n\treturn s\r\n}", "func nonempty2(strings []string) []string {\n\tout := strings[:0] // zero-length slice of original\n\tfor _, s := range strings {\n\t\tif s != \"\" {\n\t\t\tout = append(out, s)\n\t\t}\n\t}\n\treturn out\n}", "func zeros(rows int, cols int) [][]int {\n\tretVal := make([][]int, rows)\n\tfor r := range retVal {\n\t\tretVal[r] = make([]int, cols)\n\t}\n\n\treturn retVal\n}", "func TestEmpty(t *testing.T, logic func(a interface{}) string) {\n\tfor _, printable := range printables {\n\t\tassert.Empty(t, logic(printable))\n\t}\n}", "func initGrid(serial int) (grid [][]int) {\n\tfor y := 0; y < 300; y++ {\n\t\tgrid = append(grid, []int{})\n\t\tfor x := 0; x < 300; x++ {\n\t\t\tid := (x + 1) + 10\n\t\t\tpower := id * (y + 1)\n\t\t\tpower += serial\n\t\t\tpower *= id\n\t\t\tif power >= 100 {\n\t\t\t\tpower = ((power % 1000) / 100) - 5\n\t\t\t} else {\n\t\t\t\tpower = -5\n\t\t\t}\n\t\t\tgrid[y] = append(grid[y], power)\n\t\t}\n\t}\n\treturn grid\n}", "func getInts(l int, clear bool) []int {\n\tw := *poolInts[poolFor(uint(l))].Get().(*[]int)\n\tw = w[:l]\n\tif clear {\n\t\tfor i := range w {\n\t\t\tw[i] = 0\n\t\t}\n\t}\n\treturn w\n}", "func MakingSlices() {\n\tvar slice1 = make([]int, 5)\n\tfmt.Println(len(slice1), cap(slice1))\n\n\tvar slice2 = make([]int, 1, 5)\n\tfmt.Println(len(slice2), cap(slice2))\n}", "func (c *ActiveSeries) clear() {\n\tfor s := 0; s < numActiveSeriesStripes; s++ {\n\t\tc.stripes[s].clear()\n\t}\n}", "func StartBoard(board [9]int) {\r\n\tfor i, v := range board {\r\n\t\tif v == 0 {\r\n\t\t\tfmt.Printf(\"%d\", i)\r\n\t\t}\r\n\r\n\t\tif i > 0 && (i+1)%3 == 0 {\r\n\t\t\tfmt.Printf(\"\\n\")\r\n\t\t} else {\r\n\t\t\tfmt.Printf(\" | \")\r\n\t\t}\r\n\t}\r\n}", "func visTasks(tasks []db.Task, full bool) {\n\tstasks := make([]string, len(tasks))\n\tfor i, val := range tasks {\n\t\tif full {\n\t\t\tstasks[i] = fmt.Sprintf(\"Task no. %d)\\n%v\", i+1, val)\n\t\t} else {\n\t\t\tstasks[i] = fmt.Sprintf(\"Task no. %d) %s\\n\", i+1, val.Body)\n\t\t}\n\t}\n\tif full {\n\t\tfmt.Println(strings.Join(stasks, \"\\n\\n\"))\n\t} else {\n\t\tfmt.Print(strings.Join(stasks, \"\"))\n\t}\n}", "func Subsets(n int) (comm chan []int) {\n comm = make(chan []int)\n go subsets(0, n, []int{}, comm)\n return comm\n}", "func createRunSet(size int)[]int{\n out := make([]int, size)\n for i:= 0; i < size; i++{\n out[i] = i\n }\n return out\n }", "func getTestMatrix_Empty() [][]string {\n\tvar m [][]string = make([][]string, 0)\n\treturn m\n}", "func collapse(units *list.List) {\n\tcurrent := units.Front()\n\tfor current != nil {\n\t\tnext := current.Next()\n\t\tif next == nil {\n\t\t\tbreak\n\t\t}\n\t\tif canCollapse(current, next) {\n\t\t\tnewCurrent := current.Prev()\n\t\t\tif newCurrent == nil {\n\t\t\t\tnewCurrent = next.Next()\n\t\t\t}\n\t\t\tunits.Remove(next)\n\t\t\tunits.Remove(current)\n\t\t\tcurrent = newCurrent\n\t\t} else {\n\t\t\tcurrent = next\n\t\t}\n\t}\n}", "func (g *Grid) Clear() {\n\tfor y := 0; y < g.Height; y++ {\n\t\tfor x := 0; x < g.Width; x++ {\n\t\t\tg.SetCell(x, y, 0)\n\t\t}\n\t}\n}", "func setNoWrap(panel gwu.Panel) {\n\tcount := panel.CompsCount()\n\tfor i := count - 1; i >= 0; i-- {\n\t\tpanel.CompAt(i).Style().SetWhiteSpace(gwu.WhiteSpaceNowrap)\n\t}\n}", "func getEmptySquares(grid [][]int) []position {\n\tpos := []position{}\n\n\t// identify missing positions\n\tfor rowNumber, row := range grid {\n\t\tfor colNumber, num := range row {\n\t\t\tif num > 0 {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tpos = append(pos, position{\n\t\t\t\trowNumber: rowNumber,\n\t\t\t\tcolNumber: colNumber,\n\t\t\t})\n\t\t}\n\t}\n\treturn pos\n}", "func (l *GroupLookup) Clear() {\n\tl.lastIndex = -1\n\tl.nextID = 1\n\tl.groups = nil\n}", "func constructGraph(v int) *list.List {\n\tdegree = make([]int,v)\n\tMasterList := list.New()\n\tfor i := 0; i < v; i++ {\n\t\tvar l = list.New()\n\t\tl.PushBack(i)\n\t\tMasterList.PushBack(l)\n\t}\n\treturn MasterList\n}", "func TestDisplayItemsNoSquash(t *testing.T) {\n\trapid.Check(t, func(t *rapid.T) {\n\t\tcore.Items = rapid.Custom(genItems).Draw(t, \"items\").([]Item)\n\t\tsquash = false\n\t\tsetSort(sortRule{column: pathColumn, order: gtk.SORT_ASCENDING}) // calls displayItems\n\t\tforEachNode(func(iter *gtk.TreeIter) {\n\t\t\tassert.NotContains(t, MustGetColumn(treestore, iter, colName), \"/\")\n\t\t})\n\t})\n}", "func (i *IntSet) Clear() {\n\ti.Words = make([]uint64, 0)\n}", "func crearListaMeses() *listaMeses{\n\n\tlista := nuevaListaMeses()\n\n\tfor i:=1; i<=12; i++ {\n\t\tnuevaMatriz := NewMatriz(\"Mes\")\n\t\tnodoNuevo := nuevoNodoMes(i, nuevaMatriz)\n\t\tlista.Append(nodoNuevo)\n\t}\n\n\treturn lista\n\n}", "func Print(arr [][]int) {\n\n\t//c := make(chan string)\n\t//for {\n\t//\tselect {\n\t//\tcase s := <-c:\n\t//\t\tfmt.Println(s)\n\t//\tdefault:\n\t//\t\tcontinue\n\t//\t}\n\t//}\n\n\toutput, _ := exec.Command(\"clear\").CombinedOutput()\n\tfmt.Print(string(output))\n\tprintln()\n\tprintln()\n\tborder := color.New(color.BgHiWhite).SprintFunc()\n\tfor i := 23; i > 0; i-- {\n\t\tswitch i {\n\t\tcase 21:\n\t\t\tfmt.Printf(\" %s\", border(\" \"))\n\t\t\tfor j := 0; j < 10; j++ {\n\t\t\t\tif arr[i][j] == 0 {\n\t\t\t\t\tprint(\"﹘\")\n\t\t\t\t} else {\n\t\t\t\t\tcolorPrint(arr[i][j])\n\t\t\t\t}\n\t\t\t}\n\t\t\tfmt.Printf(\"%s\", border(\" \"))\n\t\t\tfmt.Println()\n\t\t\tcontinue\n\t\tcase 1:\n\t\t\tfmt.Printf(\" %s\", border(\" \"))\n\t\t\tfor j := 0; j < 10; j++ {\n\t\t\t\tif arr[i][j] == 0 {\n\t\t\t\t\tprint(\" \")\n\t\t\t\t} else {\n\t\t\t\t\tcolorPrint(arr[i][j])\n\t\t\t\t}\n\t\t\t}\n\t\t\tfmt.Printf(\"%s\", border(\" \"))\n\t\t\tfmt.Println()\n\t\t\tfmt.Printf(\" %s%s%s%s%s%s%s%s%s%s%s%s\", border(\" \"), border(\" \"), border(\" \"), border(\" \"), border(\" \"), border(\" \"), border(\" \"), border(\" \"), border(\" \"), border(\" \"), border(\" \"), border(\" \"))\n\t\t\tfmt.Println()\n\t\t\tcontinue\n\t\tdefault:\n\t\t\tfmt.Printf(\" %s\", border(\" \"))\n\t\t\tfor j := 0; j < 10; j++ {\n\t\t\t\tif arr[i][j] == 0 {\n\t\t\t\t\tprint(\" \")\n\t\t\t\t} else {\n\t\t\t\t\tcolorPrint(arr[i][j])\n\t\t\t\t}\n\t\t\t}\n\t\t\tfmt.Printf(\"%s\", border(\" \"))\n\t\t\tfmt.Println()\n\t\t\tcontinue\n\t\t}\n\t}\n}", "func GetEmptyBoard(width int, height int) [][]bool {\n\tboard := make([][]bool, width)\n\tfor i := range board {\n\t\tboard[i] = make([]bool, height)\n\t}\n\treturn board\n}", "func (ll *Doubly[T]) Display() {\n\tfor cur := ll.Head.Next; cur != ll.Head; cur = cur.Next {\n\t\tfmt.Print(cur.Val, \" \")\n\t}\n\n\tfmt.Print(\"\\n\")\n}", "func (b *Board) generateGrid() {\n\tgrid := make([][]CellState, b.h)\n\tfor i := 0; i < b.h; i++ {\n\t\tgrid[i] = make([]CellState, b.w)\n\t}\n\n\tb.Grid = grid\n}", "func (b Board) EmptyPositions() []Position {\n\tps := make([]Position, 0, BoardWidth*BoardHeight-len(b))\n\tfor x := 1; x <= BoardWidth; x++ {\n\t\tfor y := 1; y <= BoardHeight; y++ {\n\t\t\tp := Position{x, y}\n\t\t\tif !b.Has(p) {\n\t\t\t\tps = append(ps, p)\n\t\t\t}\n\t\t}\n\t}\n\treturn ps\n}", "func Cempty() {\n\tC.empty()\n}", "func Nonempty(strings []string) []string {\n\ti := 0\n\tfor _, s := range strings {\n\t\tif s != \"\" {\n\t\t\tstrings[i] = s\n\t\t\ti++\n\t\t}\n\t}\n\treturn strings[:i]\n}", "func Mzero() List {\n\treturn unit{}\n}", "func Empty() Set {\n\treturn make(map[string]bool)\n}", "func ex6() {\n\tx := make([]string, 50, 500)\n\tfmt.Println(len(x))\n\tfmt.Println(cap(x))\n\n\tx = append(x, ` Alabama`, ` Alaska`, ` Arizona`, ` Arkansas`, ` California`, ` Colorado`, ` Connecticut`, ` Delaware`, ` Florida`, ` Georgia`, ` Hawaii`, ` Idaho`, ` Illinois`, ` Indiana`, ` Iowa`, ` Kansas`, ` Kentucky`, ` Louisiana`, ` Maine`, ` Maryland`, ` Massachusetts`, ` Michigan`, ` Minnesota`, ` Mississippi`, ` Missouri`, ` Montana`, ` Nebraska`, ` Nevada`, ` New Hampshire`, ` New Jersey`, ` New Mexico`, ` New York`, ` North Carolina`, ` North Dakota`, ` Ohio`, ` Oklahoma`, ` Oregon`, ` Pennsylvania`, ` Rhode Island`, ` South Carolina`, ` South Dakota`, ` Tennessee`, ` Texas`, ` Utah`, ` Vermont`, ` Virginia`, ` Washington`, ` West Virginia`, ` Wisconsin`, ` Wyoming`)\n\tfmt.Println(len(x))\n\tfmt.Println(cap(x))\n\tfor i := 0; i < len(x); i++ {\n\t\tfmt.Println(i, x[i])\n\t}\n}", "func newGrid(x, y int) Grid {\n\tg := make([][]Square, x)\n\tfor i := 0; i < x; i++ {\n\t\tg[i] = make([]Square, y)\n\t}\n\treturn g\n}", "func New(elems ...interface{}) List {\n\tl := Mzero()\n\tfor _, elem := range elems {\n\t\tl = Cons(elem, l)\n\t}\n\treturn Reverse(l)\n}", "func (p *peerContactsSet) next() []string {\n\tcount := kNodes\n\tif count > len(p.set) {\n\t\tcount = len(p.set)\n\t}\n\tx := make([]string, 0, count)\n\txx := make(map[string]bool) //maps are easier to dedupe\n\tfor range p.set {\n\t\tnid := p.ring.Move(1).Value.(string)\n\t\tif _, ok := xx[nid]; p.set[nid] && !ok {\n\t\t\txx[nid] = true\n\t\t}\n\t\tif len(xx) >= count {\n\t\t\tbreak\n\t\t}\n\t}\n\n\tif len(xx) < count {\n\t\tfor range p.set {\n\t\t\tnid := p.ring.Move(1).Value.(string)\n\t\t\tif _, ok := xx[nid]; ok {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\txx[nid] = true\n\t\t\tif len(xx) >= count {\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n\tfor id := range xx {\n\t\tx = append(x, id)\n\t}\n\treturn x\n}", "func (g *MyGame) Clear() {\n g.Points = []int{}\n g.Tables = []string{}\n g.States = []string{}\n g.CurTable = \"\"\n g.CurWords = []string{}\n g.CurRound = -1\n for _, _ = range g.Users {\n g.Points = append(g.Points, 0)\n }\n}", "func (cluster *Cluster) GenerateCommandList(scope Scope, generator interface{}) []ShellCommand {\n\tcommands := []ShellCommand{}\n\tswitch generateCommand := generator.(type) {\n\tcase func(content int) []string:\n\t\tfor _, content := range cluster.ContentIDs {\n\t\t\tif content == -1 && scopeExcludesCoordinator(scope) {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tcommands = append(commands, NewShellCommand(scope, content, \"\", generateCommand(content)))\n\t\t}\n\tcase func(host string) []string:\n\t\tfor _, host := range cluster.Hostnames {\n\t\t\thostHasOneContent := len(cluster.GetContentsForHost(host)) == 1\n\t\t\tif host == cluster.GetHostForContent(-1, \"p\") && scopeExcludesCoordinator(scope) && hostHasOneContent {\n\t\t\t\t// Only exclude the coordinator host if there are no local segments\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tif host == cluster.GetHostForContent(-1, \"m\") && scopeExcludesMirrors(scope) && hostHasOneContent {\n\t\t\t\t// Only exclude the standby coordinator host if there are no segments there\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tcommands = append(commands, NewShellCommand(scope, -2, host, generateCommand(host)))\n\t\t}\n\tdefault:\n\t\tgplog.Fatal(nil, \"Generator function passed to GenerateCommandList had an invalid function header.\")\n\t}\n\treturn commands\n}", "func (p *Plain_node) generate_nlist() string {\n\tnlist := \"\"\n\tfor id, ip := range p.NList {\n\t\tnlist = nlist + \"&\"+ id +\"@\"+ip\n\t}\n\n\treturn nlist[1:]\n}", "func (w *windowTransformation2) createEmptyWindows(t *windowSchemaTemplate) {\n\tif w.window.Every() == infinityVar.Duration() {\n\t\tbounds := []execute.Bounds{{Start: interval.MinTime, Stop: interval.MaxTime}}\n\t\tw.clipBounds(bounds)\n\t\tfor _, b := range bounds {\n\t\t\t_ = w.getBuilder(t, b)\n\t\t}\n\t\treturn\n\t}\n\n\tbound := w.window.GetLatestBounds(w.bounds.Start)\n\tfor ; bound.Stop() > w.bounds.Start; bound = w.window.PrevBounds(bound) {\n\t\t// Do nothing.\n\t}\n\n\t// We found the boundary right before the first window.\n\t// Move to the first window.\n\tbound = w.window.NextBounds(bound)\n\n\t// Iterate through each window. Create the group key and then\n\t// attempt to construct the tables that don't exist yet.\n\tfor ; bound.Start() < w.bounds.Stop; bound = w.window.NextBounds(bound) {\n\t\tb := execute.Bounds{\n\t\t\tStart: bound.Start(),\n\t\t\tStop: bound.Stop(),\n\t\t}\n\t\t_ = w.getBuilder(t, b)\n\t}\n}", "func newEmptyBoard() *FixBoard {\n\tb := &FixBoard{\n\t\tGophers: make([]*pieces.Gopher, 0),\n\t\tGoals: make([]pieces.Goal, 0),\n\t}\n\n\treturn b\n}", "func (vm *C8VM) NullifyPixels() {\n\tfor w := 0; w < ScreenWidth; w++ {\n\t\tfor h := 0; h < ScreenHeight; h++ {\n\t\t\tvm.pixels[w][h] = 0\n\t\t}\n\t}\n}", "func (ds *DijkstraSolver) _initAll(n int) (dp []Value, colors []int) {\n\tdp, colors = make([]Value, n), make([]int, n)\n\tfor i := 0; i < n; i++ {\n\t\tdp[i] = ds.vinf\n\t\tcolors[i] = WHITE\n\t}\n\n\treturn dp, colors\n}", "func GenerateSlice(size int) []int {\n\n\tslice := make([]int, size, size)\n\trand.Seed(time.Now().UnixNano())\n\tfor i := 0; i < size; i++ {\n\t\tslice[i] = rand.Intn(999) - rand.Intn(999)\n\t}\n\tfmt.Println(\"[UNSORTED]:\")\n\tfmt.Println()\n\tfmt.Println(slice)\n\tfmt.Println()\n\treturn slice\n}", "func Complete(n int) Graph {\n\tG := make(Graph, n)\n\tfor i := 0; i < n; i++ {\n\t\tG[i] = make([]int, 0)\n\t\tfor j := 0; j < n; j++ {\n\t\t\tif j != i {\n\t\t\t\tG[i] = append(G[i], j)\n\t\t\t}\n\t\t}\n\t}\n\treturn G\n}", "func genListEq(size int) []int {\n\tl := make([]int, size)\n\tx := rand.Int()\n\tfor i := range l {\n\t\tl[i] = x\n\t}\n\treturn l\n}", "func initializeMiddleZone() [][]Piece {\n\trows := make([][]Piece, 3)\n\tfor i := range rows {\n\t\trows[i] = []Piece{nil, nil, nil, nil, nil, nil, nil, nil, nil}\n\t}\n\treturn rows\n}" ]
[ "0.58021784", "0.5370705", "0.5307224", "0.52246636", "0.5215901", "0.5187459", "0.5166602", "0.514044", "0.5128566", "0.50328594", "0.49793968", "0.49107206", "0.48773655", "0.487696", "0.4862561", "0.4857821", "0.48552036", "0.4854079", "0.48478293", "0.48350766", "0.47989267", "0.47910058", "0.47826582", "0.47711277", "0.47660482", "0.47581255", "0.4754266", "0.47388852", "0.47253278", "0.47014537", "0.46986338", "0.46919146", "0.4681513", "0.46758148", "0.4672021", "0.46709314", "0.46705204", "0.46637496", "0.46588084", "0.4657408", "0.46507818", "0.4642883", "0.46393314", "0.46335518", "0.4627188", "0.4616133", "0.4605532", "0.46037993", "0.46029675", "0.4597901", "0.45959777", "0.45866907", "0.45829397", "0.4579857", "0.45780027", "0.45769238", "0.45758268", "0.4573295", "0.45667276", "0.4559032", "0.45577386", "0.45513445", "0.45399034", "0.4537041", "0.4534445", "0.45323712", "0.45256", "0.4523902", "0.4521766", "0.45178914", "0.4507378", "0.45040557", "0.45015818", "0.44994834", "0.44984883", "0.4490067", "0.44862914", "0.4485583", "0.4483023", "0.4482273", "0.44817814", "0.44797194", "0.44779474", "0.44766316", "0.44740823", "0.44732273", "0.44720417", "0.44702008", "0.4460742", "0.44604883", "0.44571453", "0.44571167", "0.44555113", "0.4454453", "0.44539124", "0.4452956", "0.44525737", "0.44461605", "0.4441825", "0.4441215" ]
0.44647726
88
reserve program pipeline object names
func GenProgramPipelines(n int32, pipelines *uint32) { C.glowGenProgramPipelines(gpGenProgramPipelines, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(pipelines))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *literalProcessor) name() string { return \"\" }", "func GenProgramPipelines(n int32, pipelines *uint32) {\n\tsyscall.Syscall(gpGenProgramPipelines, 2, uintptr(n), uintptr(unsafe.Pointer(pipelines)), 0)\n}", "func reservedWorkloadNames() map[string]bool {\n\treturn map[string]bool{\n\t\t\"pipelines\": true, // reserved to avoid directory conflict with copilot pipelines\n\t\t\"environments\": true, // reserved to avoid directory conflict with copilot environments\n\t}\n}", "func PipelineRcName(name string, version uint64) string {\n\t// k8s won't allow RC names that contain upper-case letters\n\t// or underscores\n\t// TODO: deal with name collision\n\tname = strings.Replace(name, \"_\", \"-\", -1)\n\treturn fmt.Sprintf(\"pipeline-%s-v%d\", strings.ToLower(name), version)\n}", "func createPipeStages(commandList *[]exec.Cmd, stages []string) error {\n\n\tfor _, stage := range stages {\n\t\tcmd, err := createCommand(stage)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t*commandList = append(*commandList, *cmd)\n\t}\n\treturn nil\n}", "func objectNameAndCommandLine(env *cmdline.Env, args []string) (string, string, error) {\n\tif len(args) < 1 {\n\t\treturn \"\", \"\", errors.New(\"object name missing\")\n\t}\n\tname := args[0]\n\targs = args[1:]\n\t// For compatibility with tools like rsync. Because object names\n\t// don't look like traditional hostnames, tools that work with rsh and\n\t// ssh can't work directly with vsh. This trick makes the following\n\t// possible:\n\t// $ VSH_NAME=<object name> rsync -avh -e vsh /foo/* v23:/foo/\n\t// The \"v23\" host will be substituted with <object name>.\n\tif envName := env.Vars[\"VSH_NAME\"]; envName != \"\" && name == \"v23\" {\n\t\tname = envName\n\t}\n\tcmd := strings.Join(args, \" \")\n\treturn name, cmd, nil\n}", "func GenProgramPipelines(n int32, pipelines *uint32) {\n C.glowGenProgramPipelines(gpGenProgramPipelines, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(pipelines)))\n}", "func BuildPipeline(name,age string) {\n\tvar doc bytes.Buffer\n\n\tf, err := os.Create(outputDirPath + name + \".py\")\n\tcheck(err)\n\tdefer f.Close()\n\n\tm := map[string]interface{}{\"name\": name, \"age\": age}\n\tt := template.Must(template.New(\"\").Parse(scaffold.Pipeline))\n\tt.Execute(&doc, m)\n\n\tfmt.Println(doc.String())\n\twrittenValue, err := f.WriteString(doc.String())\n\tcheck(err)\n\tfmt.Printf(\"wrote %d bytes\\n\", writtenValue)\n\tf.Sync()\n}", "func initLockNames() {}", "func serializeProgram(prgrm *CXProgram, s *SerializedCXProgram) {\n\ts.Program = serializedProgram{}\n\tsPrgrm := &s.Program\n\tsPrgrm.PackagesOffset = int64(0)\n\tsPrgrm.PackagesSize = int64(len(prgrm.Packages))\n\n\tif pkgOff, found := s.PackagesMap[prgrm.CurrentPackage.Name]; found {\n\t\tsPrgrm.CurrentPackageOffset = int64(pkgOff)\n\t} else {\n\t\tpanic(\"package reference not found\")\n\t}\n\n\tsPrgrm.InputsOffset, sPrgrm.InputsSize = serializeSliceOfArguments(prgrm.ProgramInput, s)\n\tsPrgrm.OutputsOffset, sPrgrm.OutputsSize = serializeSliceOfArguments(prgrm.ProgramOutput, s)\n\n\tsPrgrm.CallStackOffset, sPrgrm.CallStackSize = serializeCalls(prgrm.CallStack[:prgrm.CallCounter], s)\n\n\tsPrgrm.CallCounter = int64(prgrm.CallCounter)\n\n\tsPrgrm.MemoryOffset = int64(0)\n\tsPrgrm.MemorySize = int64(len(PROGRAM.Memory))\n\n\tsPrgrm.HeapPointer = int64(prgrm.HeapPointer)\n\tsPrgrm.StackPointer = int64(prgrm.StackPointer)\n\tsPrgrm.StackSize = int64(prgrm.StackSize)\n\tsPrgrm.DataSegmentSize = int64(prgrm.DataSegmentSize)\n\tsPrgrm.DataSegmentStartsAt = int64(prgrm.DataSegmentStartsAt)\n\tsPrgrm.HeapSize = int64(prgrm.HeapSize)\n\tsPrgrm.HeapStartsAt = int64(prgrm.HeapStartsAt)\n\n\tsPrgrm.Terminated = serializeBoolean(prgrm.Terminated)\n\tsPrgrm.VersionOffset, sPrgrm.VersionSize = serializeString(prgrm.Version, s)\n}", "func main() {\n\tprocessor.RegisterProcessors(Process)\n}", "func UseProgramStages(pipeline uint32, stages uint32, program uint32) {\n\tsyscall.Syscall(gpUseProgramStages, 3, uintptr(pipeline), uintptr(stages), uintptr(program))\n}", "func PopulateTools() (tls map[string] tool.Tool){\n\n tls = make(map[string]tool.Tool,1)\n\n t := &tool.RemoveDuplicates{}\n tls[t.Name()] = t\n\n // Add another\n //t = tools.<Name of tool>{}\n //tls.put[t.Name()] = t\n return tls\n}", "func BindProgramPipeline(pipeline uint32) {\n\tsyscall.Syscall(gpBindProgramPipeline, 1, uintptr(pipeline), 0, 0)\n}", "func main() {\n\tmodule.Create(\"init\", 0)\n\tmodule.Log()\n\tReadLine(\"D:/input.txt\", processLine)\n\tmodule.Show_pcb(\"r\")\n\tfmt.Println()\n\tmodule.List_all_process()\n\tfmt.Println()\n\tmodule.List_all_resource()\n}", "func main() {\n\n\terr := filepath.Walk(filepath.Join(os.ExpandEnv(\"${nei2011Dir}\"), \"emiss_shp2010\"), func(path string, info os.FileInfo, err error) error {\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tif filepath.Ext(path) == \".shp\" {\n\t\t\tnewPath := strings.TrimSuffix(path, \"shp\") + \"prj\"\n\t\t\tif _, err := os.Stat(newPath); err != nil {\n\t\t\t\tlog.Println(newPath)\n\t\t\t\tf, err := os.Create(newPath)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tif _, err := f.WriteString(prj); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn nil\n\t})\n\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n}", "func testPipeline() *Pipeline {\n\treturn &Pipeline{\n\t\tID: sql.NullInt64{Int64: 1, Valid: true},\n\t\tRepoID: sql.NullInt64{Int64: 1, Valid: true},\n\t\tCommit: sql.NullString{String: \"48afb5bdc41ad69bf22588491333f7cf71135163\", Valid: true},\n\t\tFlavor: sql.NullString{String: \"large\", Valid: true},\n\t\tPlatform: sql.NullString{String: \"docker\", Valid: true},\n\t\tRef: sql.NullString{String: \"refs/heads/master\", Valid: true},\n\t\tType: sql.NullString{String: constants.PipelineTypeYAML, Valid: true},\n\t\tVersion: sql.NullString{String: \"1\", Valid: true},\n\t\tExternalSecrets: sql.NullBool{Bool: false, Valid: true},\n\t\tInternalSecrets: sql.NullBool{Bool: false, Valid: true},\n\t\tServices: sql.NullBool{Bool: true, Valid: true},\n\t\tStages: sql.NullBool{Bool: false, Valid: true},\n\t\tSteps: sql.NullBool{Bool: true, Valid: true},\n\t\tTemplates: sql.NullBool{Bool: false, Valid: true},\n\t\tData: testPipelineData(),\n\t}\n}", "func BindProgramPipeline(pipeline uint32) {\n C.glowBindProgramPipeline(gpBindProgramPipeline, (C.GLuint)(pipeline))\n}", "func create(s string) (p program) {\n\tre := regexp.MustCompile(`\\w+`)\n\tt := re.FindAllStringSubmatch(s, -1)\n\tp.name = t[0][0]\n\tp.weight, _ = strconv.Atoi(string(t[1][0]))\n\tfor _, r := range t[2:] {\n\t\tp.children = append(p.children, program{r[0], 0, nil})\n\t}\n\treturn\n}", "func createPipeline(\n\tconfig Config, mgr types.Manager, logger log.Modular, stats metrics.Type,\n) (*util.ClosablePool, error) {\n\tpool := util.NewClosablePool()\n\n\t// Create our input pipe\n\tinputPipe, err := input.New(config.Input, mgr, logger, stats)\n\tif err != nil {\n\t\tlogger.Errorf(\"Input error (%s): %v\\n\", config.Input.Type, err)\n\t\treturn nil, err\n\t}\n\tpool.Add(1, inputPipe)\n\n\t// Create our benchmarking output pipe\n\toutputPipe := test.NewBenchOutput(\n\t\ttime.Duration(config.ReportPeriodMS)*time.Millisecond, logger, stats,\n\t)\n\tpool.Add(10, outputPipe)\n\n\toutputPipe.StartReceiving(inputPipe.TransactionChan())\n\treturn pool, nil\n}", "func ChangeProcName(name string) error {\n argv0str := (*reflect.StringHeader)(unsafe.Pointer(&os.Args[0]))\n argv0 := (*[1 << 30]byte)(unsafe.Pointer(argv0str.Data))[:argv0str.Len]\n\n n := copy(argv0, name)\n if n < len(argv0) {\n argv0[n] = 0\n }\n\n return nil\n}", "func createProgram(packages ...string) (*loader.Program, error) {\n\tvar conf loader.Config\n\n\tfor _, name := range packages {\n\t\tconf.CreateFromFilenames(name, getFileNames(name)...)\n\t}\n\treturn conf.Load()\n}", "func LoadAllNames(db gorp.SqlExecutor, store cache.Store, projID int64) (sdk.IDNames, error) {\n\tquery := `SELECT pipeline.id, pipeline.name, pipeline.description\n\t\t\t FROM pipeline\n\t\t\t WHERE project_id = $1\n\t\t\t ORDER BY pipeline.name`\n\n\tvar res sdk.IDNames\n\tif _, err := db.Select(&res, query, projID); err != nil {\n\t\tif err == sql.ErrNoRows {\n\t\t\treturn res, nil\n\t\t}\n\t\treturn nil, sdk.WrapError(err, \"application.loadpipelinenames\")\n\t}\n\n\treturn res, nil\n}", "func newBuildPipeline(t gaia.PipelineType) BuildPipeline {\n\tvar bP BuildPipeline\n\n\t// Create build pipeline for given pipeline type\n\tswitch t {\n\tcase gaia.PTypeGolang:\n\t\tbP = &BuildPipelineGolang{\n\t\t\tType: t,\n\t\t}\n\tcase gaia.PTypeJava:\n\t\tbP = &BuildPipelineJava{\n\t\t\tType: t,\n\t\t}\n\tcase gaia.PTypePython:\n\t\tbP = &BuildPipelinePython{\n\t\t\tType: t,\n\t\t}\n\tcase gaia.PTypeCpp:\n\t\tbP = &BuildPipelineCpp{\n\t\t\tType: t,\n\t\t}\n\tcase gaia.PTypeRuby:\n\t\tbP = &BuildPipelineRuby{\n\t\t\tType: t,\n\t\t}\n\tcase gaia.PTypeNodeJS:\n\t\tbP = &BuildPipelineNodeJS{\n\t\t\tType: t,\n\t\t}\n\t}\n\n\treturn bP\n}", "func (p *Par) FreeNames() []Name {\n\tfn := []Name{}\n\tfor _, proc := range p.Procs {\n\t\tfn = append(fn, proc.FreeNames()...)\n\t}\n\tsort.Sort(byName(fn))\n\treturn RemDup(fn)\n}", "func DeleteProgramPipelines(n int32, pipelines *uint32) {\n C.glowDeleteProgramPipelines(gpDeleteProgramPipelines, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(pipelines)))\n}", "func PipelineParams(pipelineConfig *common.Pipeline, namespace string, serviceName string, codeBranch string, muFile string, params map[string]string) error {\n\n\tparams[\"Namespace\"] = namespace\n\tparams[\"ServiceName\"] = serviceName\n\tparams[\"MuFilename\"] = path.Base(muFile)\n\tparams[\"MuBasedir\"] = path.Dir(muFile)\n\tparams[\"SourceProvider\"] = pipelineConfig.Source.Provider\n\tparams[\"SourceRepo\"] = pipelineConfig.Source.Repo\n\n\tcommon.NewMapElementIfNotEmpty(params, \"SourceBranch\", codeBranch)\n\n\tif pipelineConfig.Source.Provider == \"S3\" {\n\t\trepoParts := strings.Split(pipelineConfig.Source.Repo, \"/\")\n\t\tparams[\"SourceBucket\"] = repoParts[0]\n\t\tparams[\"SourceObjectKey\"] = strings.Join(repoParts[1:], \"/\")\n\t}\n\n\tcommon.NewMapElementIfNotEmpty(params, \"BuildType\", string(pipelineConfig.Build.Type))\n\tcommon.NewMapElementIfNotEmpty(params, \"BuildComputeType\", string(pipelineConfig.Build.ComputeType))\n\tcommon.NewMapElementIfNotEmpty(params, \"BuildImage\", pipelineConfig.Build.Image)\n\tcommon.NewMapElementIfNotEmpty(params, \"PipelineBuildTimeout\", pipelineConfig.Build.BuildTimeout)\n\tcommon.NewMapElementIfNotEmpty(params, \"TestType\", string(pipelineConfig.Acceptance.Type))\n\tcommon.NewMapElementIfNotEmpty(params, \"TestComputeType\", string(pipelineConfig.Acceptance.ComputeType))\n\tcommon.NewMapElementIfNotEmpty(params, \"TestImage\", pipelineConfig.Acceptance.Image)\n\tcommon.NewMapElementIfNotEmpty(params, \"AcptEnv\", pipelineConfig.Acceptance.Environment)\n\tcommon.NewMapElementIfNotEmpty(params, \"PipelineBuildAcceptanceTimeout\", pipelineConfig.Acceptance.BuildTimeout)\n\tcommon.NewMapElementIfNotEmpty(params, \"ProdEnv\", pipelineConfig.Production.Environment)\n\tcommon.NewMapElementIfNotEmpty(params, \"PipelineBuildProductionTimeout\", pipelineConfig.Production.BuildTimeout)\n\tcommon.NewMapElementIfNotEmpty(params, \"MuDownloadBaseurl\", pipelineConfig.MuBaseurl)\n\n\tparams[\"EnableBuildStage\"] = strconv.FormatBool(!pipelineConfig.Build.Disabled)\n\tparams[\"EnableAcptStage\"] = strconv.FormatBool(!pipelineConfig.Acceptance.Disabled)\n\tparams[\"EnableProdStage\"] = strconv.FormatBool(!pipelineConfig.Production.Disabled)\n\n\tversion := pipelineConfig.MuVersion\n\tif version == \"\" {\n\t\tversion = common.GetVersion()\n\t\tif version == \"0.0.0-local\" {\n\t\t\tversion = \"\"\n\t\t}\n\t}\n\tif version != \"\" {\n\t\tparams[\"MuDownloadVersion\"] = version\n\t}\n\n\treturn nil\n}", "func UseProgramStages(pipeline uint32, stages uint32, program uint32) {\n C.glowUseProgramStages(gpUseProgramStages, (C.GLuint)(pipeline), (C.GLbitfield)(stages), (C.GLuint)(program))\n}", "func Mytwoprocessors() {\n\t//Allocate two logical processors for the runtime to use.\n\truntime.GOMAXPROCS(2)\n\t//wg used to wait for prgram to finish\n\t//Add count of 2, one for each goroutine\n\n\tvar wg sync.WaitGroup\n\twg.Add(2)\n\tfmt.Println(\"Start Goroutines\")\n\t//Declare an anonymous function and create a go routine\n\tgo func() {\n\t\t//Schedue the call to Done and defer till main the function is done\n\t\tdefer wg.Done()\n\t\t//Display alphabet 3 times\n\t\tfor count := 0; count < 3; count++ {\n\t\t\tfor char := 'a'; char < 'a'+26; char++ {\n\t\t\t\tfmt.Printf(\"%c\", char)\n\t\t\t}\n\t\t}\n\t}()\n\tgo func() {\n\t\t//Schedue the call to Done and defer till main the function is done\n\t\tdefer wg.Done()\n\t\t//Display alphabet 3 times\n\t\tfor count := 0; count < 3; count++ {\n\t\t\tfor char := 'A'; char < 'A'+26; char++ {\n\t\t\t\tfmt.Printf(\"%c\", char)\n\n\t\t\t}\n\t\t}\n\t}()\n\t// Wait for goroutines to finish\n\tfmt.Println(\"Waiting to Finish\")\n\twg.Wait()\n\tfmt.Println(\"\\nTerminating Process\")\n}", "func CreateProgramPipelines(n int32, pipelines *uint32) {\n\tC.glowCreateProgramPipelines(gpCreateProgramPipelines, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(pipelines)))\n}", "func CreateProgramPipelines(n int32, pipelines *uint32) {\n\tC.glowCreateProgramPipelines(gpCreateProgramPipelines, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(pipelines)))\n}", "func InitNames() {\n\tsyscall.Syscall(gpInitNames, 0, 0, 0, 0)\n}", "func CreateProgramPipelines(n int32, pipelines *uint32) {\n\tsyscall.Syscall(gpCreateProgramPipelines, 2, uintptr(n), uintptr(unsafe.Pointer(pipelines)), 0)\n}", "func main() {\n\tdup([]string{\"kelless\", \"keenness\"})\n\tdup([]string{\"abracadabra\", \"allottee\", \"assessee\"})\n}", "func objectMetaCreator() metav1.ObjectMeta {\n\treturn metav1.ObjectMeta{\n\t\tGenerateName: pipelineRunNames,\n\t\tNamespace: \"default\",\n\t}\n}", "func initStageName(outputToLog bool) {\n\tvar stageNameSource string\n\tif outputToLog {\n\t\tdefer func() {\n\t\t\tlog.Entry().Debugf(\"Using stageName '%s' from %s\", GeneralConfig.StageName, stageNameSource)\n\t\t}()\n\t}\n\n\tif GeneralConfig.StageName != \"\" {\n\t\t// Means it was given as command line argument and has the highest precedence\n\t\tstageNameSource = \"command line arguments\"\n\t\treturn\n\t}\n\n\t// Use stageName from ENV as fall-back, for when extracting it from parametersJSON fails below\n\tprovider, err := orchestrator.NewOrchestratorSpecificConfigProvider()\n\tif err != nil {\n\t\tlog.Entry().WithError(err).Warning(\"Cannot infer stage name from CI environment\")\n\t} else {\n\t\tstageNameSource = \"env variable\"\n\t\tGeneralConfig.StageName = provider.GetStageName()\n\t}\n\n\tif len(GeneralConfig.ParametersJSON) == 0 {\n\t\treturn\n\t}\n\n\tvar params map[string]interface{}\n\terr = json.Unmarshal([]byte(GeneralConfig.ParametersJSON), &params)\n\tif err != nil {\n\t\tif outputToLog {\n\t\t\tlog.Entry().Infof(\"Failed to extract 'stageName' from parametersJSON: %v\", err)\n\t\t}\n\t\treturn\n\t}\n\n\tstageName, hasKey := params[\"stageName\"]\n\tif !hasKey {\n\t\treturn\n\t}\n\n\tif stageNameString, ok := stageName.(string); ok && stageNameString != \"\" {\n\t\tstageNameSource = \"parametersJSON\"\n\t\tGeneralConfig.StageName = stageNameString\n\t}\n}", "func ProcName(_ int, procName string) string { return procName }", "func ProcName(_ int, procName string) string { return procName }", "func initProc() {\n\tproc = make([]*Processor, k)\n\tfor i := 0; i < len(proc); i++ {\n\t\tproc[i] = CreateProcessor()\n\t}\n}", "func (o ImagePipelineOutput) Name() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *ImagePipeline) pulumi.StringPtrOutput { return v.Name }).(pulumi.StringPtrOutput)\n}", "func (*PipelineResources) Descriptor() ([]byte, []int) {\n\treturn file_google_genomics_v1alpha2_pipelines_proto_rawDescGZIP(), []int{16}\n}", "func PipelineFromLibrary(p *library.Pipeline) *Pipeline {\n\tpipeline := &Pipeline{\n\t\tID: sql.NullInt64{Int64: p.GetID(), Valid: true},\n\t\tRepoID: sql.NullInt64{Int64: p.GetRepoID(), Valid: true},\n\t\tCommit: sql.NullString{String: p.GetCommit(), Valid: true},\n\t\tFlavor: sql.NullString{String: p.GetFlavor(), Valid: true},\n\t\tPlatform: sql.NullString{String: p.GetPlatform(), Valid: true},\n\t\tRef: sql.NullString{String: p.GetRef(), Valid: true},\n\t\tType: sql.NullString{String: p.GetType(), Valid: true},\n\t\tVersion: sql.NullString{String: p.GetVersion(), Valid: true},\n\t\tExternalSecrets: sql.NullBool{Bool: p.GetExternalSecrets(), Valid: true},\n\t\tInternalSecrets: sql.NullBool{Bool: p.GetInternalSecrets(), Valid: true},\n\t\tServices: sql.NullBool{Bool: p.GetServices(), Valid: true},\n\t\tStages: sql.NullBool{Bool: p.GetStages(), Valid: true},\n\t\tSteps: sql.NullBool{Bool: p.GetSteps(), Valid: true},\n\t\tTemplates: sql.NullBool{Bool: p.GetTemplates(), Valid: true},\n\t\tData: p.GetData(),\n\t}\n\n\treturn pipeline.Nullify()\n}", "func (s *BasePlSqlParserListener) EnterObject_name(ctx *Object_nameContext) {}", "func (w *worker) registerActive(parent *worker) {\n\t// Only needed for bots not created by IncomingMessage\n\tif w.maps == nil {\n\t\tcurrentUCMaps.Lock()\n\t\tw.maps = currentUCMaps.ucmap\n\t\tcurrentUCMaps.Unlock()\n\t}\n\tif len(w.ProtocolUser) == 0 && len(w.User) > 0 {\n\t\tif idRegex.MatchString(w.User) {\n\t\t\tw.ProtocolUser = w.User\n\t\t} else if ui, ok := w.maps.user[w.User]; ok {\n\t\t\tw.ProtocolUser = bracket(ui.UserID)\n\t\t\tw.BotUser = ui.BotUser\n\t\t} else {\n\t\t\tw.ProtocolUser = w.User\n\t\t}\n\t}\n\tif len(w.ProtocolChannel) == 0 && len(w.Channel) > 0 {\n\t\tif idRegex.MatchString(w.Channel) {\n\t\t\tw.ProtocolChannel = w.Channel\n\t\t} else if ci, ok := w.maps.channel[w.Channel]; ok {\n\t\t\tw.ProtocolChannel = bracket(ci.ChannelID)\n\t\t} else {\n\t\t\tw.ProtocolChannel = w.Channel\n\t\t}\n\t}\n\n\tactivePipelines.Lock()\n\tif len(w.eid) == 0 {\n\t\tvar eid string\n\t\tfor {\n\t\t\t// 4 bytes of entropy per pipeline\n\t\t\tb := make([]byte, 4)\n\t\t\trand.Read(b)\n\t\t\teid = fmt.Sprintf(\"%02x%02x%02x%02x\", b[0], b[1], b[2], b[3])\n\t\t\tif _, ok := activePipelines.eids[eid]; !ok {\n\t\t\t\tactivePipelines.eids[eid] = struct{}{}\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t\tw.eid = eid\n\t}\n\tif parent != nil {\n\t\tparent._child = w\n\t\tw._parent = parent\n\t}\n\tactivePipelines.i[w.id] = w\n\tactivePipelines.Unlock()\n\tw.active = true\n}", "func (pool *Pool) Pipeline() *Pipeline {\n\treturn BlankPipeline(int64(pool.DB))\n}", "func NewPipeline(logger log.Logger, stgs PipelineStages, jobName *string, registerer prometheus.Registerer) (*Pipeline, error) {\n\thist := prometheus.NewHistogramVec(prometheus.HistogramOpts{\n\t\tNamespace: \"logentry\",\n\t\tName: \"pipeline_duration_seconds\",\n\t\tHelp: \"Label and metric extraction pipeline processing time, in seconds\",\n\t\tBuckets: []float64{.000005, .000010, .000025, .000050, .000100, .000250, .000500, .001000, .002500, .005000, .010000, .025000},\n\t}, []string{\"job_name\"})\n\terr := registerer.Register(hist)\n\tif err != nil {\n\t\tif existing, ok := err.(prometheus.AlreadyRegisteredError); ok {\n\t\t\thist = existing.ExistingCollector.(*prometheus.HistogramVec)\n\t\t} else {\n\t\t\t// Same behavior as MustRegister if the error is not for AlreadyRegistered\n\t\t\tpanic(err)\n\t\t}\n\t}\n\n\tst := []Stage{}\n\tfor _, s := range stgs {\n\t\tstage, ok := s.(PipelineStage)\n\t\tif !ok {\n\t\t\treturn nil, errors.Errorf(\"invalid YAML config, \"+\n\t\t\t\t\"make sure each stage of your pipeline is a YAML object (must end with a `:`), check stage `- %s`\", s)\n\t\t}\n\t\tif len(stage) > 1 {\n\t\t\treturn nil, errors.New(\"pipeline stage must contain only one key\")\n\t\t}\n\t\tfor key, config := range stage {\n\t\t\tname, ok := key.(string)\n\t\t\tif !ok {\n\t\t\t\treturn nil, errors.New(\"pipeline stage key must be a string\")\n\t\t\t}\n\t\t\tnewStage, err := New(logger, jobName, name, config, registerer)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, errors.Wrapf(err, \"invalid %s stage config\", name)\n\t\t\t}\n\t\t\tst = append(st, newStage)\n\t\t}\n\t}\n\treturn &Pipeline{\n\t\tlogger: log.With(logger, \"component\", \"pipeline\"),\n\t\tstages: st,\n\t\tjobName: jobName,\n\t\tplDuration: hist,\n\t}, nil\n}", "func CreatePipeline(codecName string, pipelineStr string, clockRate float32) *Pipeline {\n\t// Generate C String from Input\n\tpipelineStrUnsafe := C.CString(pipelineStr)\n\tdefer C.free(unsafe.Pointer(pipelineStrUnsafe))\n\n\t// Lock Pipelines\n\tpipelinesLock.Lock()\n\tdefer pipelinesLock.Unlock()\n\n\t// Create new Pipeline\n\tpipeline := &Pipeline{\n\t\tPipeline: C.gstreamer_create_pipeline(pipelineStrUnsafe),\n\t\tid: utils.RandSeq(5),\n\t\tcodecName: codecName,\n\t\tclockRate: clockRate,\n\t}\n\tpipeline.outputTracks = []*webrtc.Track{}\n\t// Add new Pipeline\n\tpipelines[pipeline.id] = pipeline\n\treturn pipeline\n}", "func GetRealPipelineName(name string, pType gaia.PipelineType) string {\n\treturn strings.TrimSuffix(name, typeDelimiter+pType.String())\n}", "func BindProgramPipeline(pipeline uint32) {\n\tC.glowBindProgramPipeline(gpBindProgramPipeline, (C.GLuint)(pipeline))\n}", "func BindProgramPipeline(pipeline uint32) {\n\tC.glowBindProgramPipeline(gpBindProgramPipeline, (C.GLuint)(pipeline))\n}", "func (n *NilProcess) FreeNames() []Name {\n\treturn []Name{}\n}", "func Test_newProcessorPool(t *testing.T){\n\tstg := &stage{\n\t\t\t\t\tid: uint32(5),\n\t\t executorType: SOURCE,\n\t\t name:\"firstStage\",\n\t}\n\tt.Run(\"newProcessorPool\", func(t *testing.T) {\n\t\tprocPool:=newProcessorPool(stg)\n\t\tif !reflect.DeepEqual(stg, procPool.stg){\n\t\t\tt.Errorf(\"Want: %v\\nGot: %v\\n\", stg, procPool.stg)}\n\t\tassert.Equal(t,false,procPool.shortCircuit,\"short circuit must be disabled by default\")\n\t\tassert.Equal(t,\"map[pipeline.MsgRouteParam][]pipeline.IProcessorForPool\",reflect.TypeOf(procPool.procMsgPaths).String(),\"Datatype of the created procMsgPaths incompatible\")\n\t\tassert.Equal(t,\"pipeline.processorFactory\",reflect.TypeOf(procPool.processorFactory).String(),\"creating new proc pool should create processor Factory\")\n\t\tassert.Equal(t,stg.id,procPool.processorFactory.stage.id,\"processor factory not in same stage\")\n\t\tassert.Equal(t, nil,procPool.runLock.Load(),\"processor should not be runLock at the initialization\")\n\t\tassert.Equal(t,procPool.stg,procPool.stage(),\"Unexpected value received for stage\")\n\t})\n}", "func ValidateProgramPipeline(pipeline uint32) {\n\tsyscall.Syscall(gpValidateProgramPipeline, 1, uintptr(pipeline), 0, 0)\n}", "func objectName(u *unstructured.Unstructured) string {\n\treturn strings.ToLower(fmt.Sprintf(\"%s-%s\", u.GetKind(), strings.Replace(u.GetName(), \":\", \"-\", -1)))\n}", "func main() {\n\tPipeline1()\n\t// Pipeline2()\n\t// RunDirectionalChannel()\n\tfmt.Println(\"YYY\")\n}", "func (foo *Foo) Stage() *Foo {\n\tStage.Foos[foo] = __member\n\tStage.Foos_mapString[foo.Name] = foo\n\n\treturn foo\n}", "func main() {\n\truntime.GOMAXPROCS(runtime.NumCPU())\n\n\tapp := cliapp.NewApp()\n\tapp.Version = \"1.0.3\"\n\tapp.Description = \"this is my cli application\"\n\n\tapp.SetVerbose(cliapp.VerbDebug)\n\t// app.DefaultCmd(\"exampl\")\n\n\tapp.Add(cmd.GitCommand())\n\t// app.Add(cmd.ColorCommand())\n\tapp.Add(builtin.GenShAutoComplete())\n\t// fmt.Printf(\"%+v\\n\", cliapp.CommandNames())\n\tapp.Run()\n}", "func Pipeline(g *graph.Graph, id string, factory *Factory, top Values) executor.Pipeline {\n\tp := pipelineGen{Graph: g, RenderingPlant: factory, Top: top, ID: id}\n\treturn executor.NewPipeline().\n\t\tAndThen(p.maybeTransformRoot).\n\t\tAndThen(p.prepareNode).\n\t\tAndThen(p.wrapTask)\n}", "func NewPipeline(factories []component.Factory) *Pipeline {\n\tpipeline := &Pipeline{}\n\n\tfor i, factory := range factories {\n\t\tpool := pool{\n\t\t\tfactory: factory,\n\t\t\tterminate: make(chan struct{}),\n\t\t\tdone: &sync.WaitGroup{},\n\t\t\tworkers: make(chan component.Component, factory.PoolSize()),\n\t\t}\n\n\t\tpool.produce = make(chan component.Message, factory.ChannelSize())\n\t\tpool.output = make(chan component.Message, factory.ChannelSize())\n\t\tif i > 0 {\n\t\t\tpool.input = pipeline.pools[i-1].output\n\t\t}\n\n\t\tfor j := 0; j < factory.PoolSize(); j++ {\n\t\t\tspawnWorker(factory, pool)\n\t\t}\n\n\t\tpipeline.pools = append(pipeline.pools, &pool)\n\t}\n\n\tgo func() {\n\t\tfor msg := range pipeline.pools[len(factories)-1].output {\n\t\t\tmsg.Release()\n\t\t}\n\t}()\n\n\treturn pipeline\n}", "func createPipeline(params CRDCreationParameters) (*syntax.ParsedPipeline, error) {\n\tsteps, err := buildSteps(params)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"unable to create app extending pipeline steps\")\n\t}\n\n\tstage := syntax.Stage{\n\t\tName: appExtensionStageName,\n\t\tSteps: steps,\n\t\tAgent: &syntax.Agent{\n\t\t\tImage: determineDefaultStepImage(params.DefaultImage),\n\t\t},\n\t}\n\n\tparsedPipeline := &syntax.ParsedPipeline{\n\t\tStages: []syntax.Stage{stage},\n\t}\n\n\tenv := buildEnvParams(params)\n\tparsedPipeline.AddContainerEnvVarsToPipeline(env)\n\n\treturn parsedPipeline, nil\n}", "func TestMakeNonUniformForkIds(t *testing.T) {\n\t_, _, ast, err := syntax.ParseSourceBytes([]byte(`\nstage STAGE(\n\tin bool truth,\n\tin string str,\n\tin int num,\n\tsrc comp \"mock\",\n)\n\npipeline INNER(\n\tin bool truth,\n\tin string str,\n\tin int[] nums,\n)\n{\n\tmap call STAGE(\n\t\ttruth = self.truth,\n\t\tstr = self.str,\n\t\tnum = split self.nums,\n\t)\n\n\treturn ()\n}\n\npipeline OUTER(\n\tin bool truth,\n\tin string[] strs,\n\tin int[] nums,\n)\n{\n\tmap call INNER(\n\t\ttruth = self.truth,\n\t\tstr = split self.strs,\n\t\tnums = self.nums,\n\t)\n\n\treturn ()\n}\n\nmap call OUTER(\n\ttruth = split [\n\t\ttrue,\n\t\tfalse,\n\t],\n\tstrs = split [\n\t\t[\n\t\t\t\"foo\",\n\t\t],\n\t\t[\n\t\t\t\"bar\",\n\t\t\t\"baz\",\n\t\t]\n\t],\n\tnums = split [\n\t\t[1],\n\t\t[\n\t\t\t2,\n\t\t\t3,\n\t\t],\n\t],\n)\n`), \"static_forks.mro\", nil, false)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tgraph, err := ast.MakePipelineCallGraph(\"\", ast.Call)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tforks := graph.Children[0].GetChildren()[0].ForkRoots()\n\tvar ids ForkIdSet\n\tids.MakeForkIds(forks, &ast.TypeTable)\n\tinnerSources := graph.Inputs[\"nums\"].Exp.(*syntax.SplitExp).Value.(*syntax.ArrayExp).Value\n\tif len(innerSources) != 2 {\n\t\tt.Fatalf(\"%d != 2\", len(innerSources))\n\t}\n\tmkId := func(i, j, k arrayIndexFork) ForkId {\n\t\treturn ForkId{\n\t\t\t&ForkSourcePart{\n\t\t\t\tSplit: forks[0].Split(),\n\t\t\t\tId: &i,\n\t\t\t},\n\t\t\t&ForkSourcePart{\n\t\t\t\tSplit: forks[1].Split(),\n\t\t\t\tId: &j,\n\t\t\t},\n\t\t\t&ForkSourcePart{\n\t\t\t\tSplit: forks[2].Split(),\n\t\t\t\tId: &k,\n\t\t\t},\n\t\t}\n\t}\n\texpect := []ForkId{\n\t\tmkId(0, 0, 0),\n\t\tmkId(1, 0, 0),\n\t\tmkId(1, 1, 0),\n\t\tmkId(1, 0, 1),\n\t\tmkId(1, 1, 1),\n\t}\n\tif len(ids.List) != 5 {\n\t\tt.Errorf(\"expected %d ids, got %d\", len(expect), len(ids.List))\n\t}\n\tfor i, id := range ids.List {\n\t\tif !id.Equal(expect[i]) {\n\t\t\tt.Errorf(\"expected %v, got %v\", expect[i].GoString(), id.GoString())\n\t\t}\n\t}\n\texpectStr := [...]string{\n\t\t\"fork0\",\n\t\t\"fork1_fork0_fork0\",\n\t\t\"fork1_fork1_fork0\",\n\t\t\"fork1_fork0_fork1\",\n\t\t\"fork1_fork1_fork1\",\n\t}\n\tfor i, id := range ids.List {\n\t\tif s, err := id.ForkIdString(); err != nil {\n\t\t\tt.Error(err)\n\t\t} else if s != expectStr[i] {\n\t\t\tt.Errorf(\"expected %s, got %s for %s\", expectStr[i], s, id.GoString())\n\t\t}\n\t}\n}", "func init() {\n\tmb.Registry.MustAddMetricSet(\"rsoasset\", \"os\", New)\n}", "func init() {\n\t// reservar (allocate) un procesador para el scheduler\n\truntime.GOMAXPROCS(1)\n}", "func NewPipeline(ops []OpUnion) Pipeline {\n\treturn Pipeline{Operations: ops}\n}", "func Pipeline(\n\tctx context.Context,\n\tin chan interface{},\n\n\t// newAccumulator will be used to produce a single accumulator object for\n\t// each Go routine withine the pipeline.\n\tnewAccumulator func() Accumulator,\n) Accumulator {\n\t//uid := fmt.Sprintf(\"%8X\", rand.Uint32())\n\n\t// Keep track of GOMAXPROCS accumulators using a slice.\n\tgomaxprocs := runtime.GOMAXPROCS(-1)\n\taccumulators := make([]Accumulator, gomaxprocs)\n\n\t// Start GOMAXPROCS Go routines to read values from the input channel; we'll\n\t// track their execution using a sync.WaitGroup instance.\n\tvar waitGroup sync.WaitGroup\n\twaitGroup.Add(gomaxprocs)\n\tfor i := 0; i < gomaxprocs; i++ {\n\n\t\t// Use the provided newAccumulator function to produce an accumulator\n\t\t// value for this Go routine and add it to a new context.Context instance.\n\t\taccumulator := newAccumulator()\n\t\taccumulators[i] = accumulator\n\n\t\t// Start a new Go routine passing the index value for logging.\n\t\tgo func(i int) {\n\n\t\t\t// Process values until the input channel is closed, then signal this go\n\t\t\t// routine has finished processing.\n\t\t\tfor object := range in {\n\t\t\t\taccumulator.Accumulate(ctx, object)\n\t\t\t}\n\t\t\twaitGroup.Done()\n\t\t}(i)\n\t}\n\n\t// Wait for the processors to exit.\n\twaitGroup.Wait()\n\n\t// Combine the accumulators.\n\taccumulator := accumulators[0]\n\tfor i := 1; i < len(accumulators); i++ {\n\t\taccumulator.Combine(accumulators[i])\n\t}\n\n\t// Return a single accumulator.\n\treturn accumulator\n}", "func main() {\n\tgeneric.AddToInlineRegistry(\"sync/pipelinecoverage\", coverage.Sync)\n\n\tstart.Start()\n}", "func InitNames() {\n C.glowInitNames(gpInitNames)\n}", "func CreatePipeline(codecName string, tracks []*webrtc.Track) *Pipeline {\n\tfmt.Printf(\"In create pipeline\")\n\tpipelineStr := \"\"\n\tswitch codecName {\n\tcase \"VP8\":\n\t\tpipelineStr += \", encoding-name=VP8-DRAFT-IETF-01 ! rtpvp8depay ! decodebin ! autovideosink\"\n\tcase \"Opus\":\n\t\tpipelineStr += \"appsrc name=src ! decodebin ! audioconvert ! audioresample ! audio/x-raw, rate=8000 ! mulawenc ! appsink name=appsink max-buffers=1\"\n\t// case webrtc.VP9:\n\t// \tpipelineStr += \" ! rtpvp9depay ! decodebin ! autovideosink\"\n\t// case webrtc.H264:\n\t// \tpipelineStr += \" ! rtph264depay ! decodebin ! autovideosink\"\n\t// case webrtc.G722:\n\t// \tpipelineStr += \" clock-rate=8000 ! rtpg722depay ! decodebin ! autoaudiosink\"\n\tdefault:\n\t\tpanic(\"Unhandled codec \" + codecName)\n\t}\n\n\tpipelineStrUnsafe := C.CString(pipelineStr)\n\tdefer C.free(unsafe.Pointer(pipelineStrUnsafe))\n\treturn &Pipeline{\n\t\tPipeline: C.gstreamer_receive_create_pipeline(pipelineStrUnsafe),\n\t\ttracks: tracks,\n\t}\n}", "func ValidateProgramPipeline(pipeline uint32) {\n C.glowValidateProgramPipeline(gpValidateProgramPipeline, (C.GLuint)(pipeline))\n}", "func explodeStages() ([]*stage, error) {\n\t// First, create the DAG.\n\tdag := map[string]map[string]struct{}{}\n\tfor name, d := range byName {\n\t\tm := map[string]struct{}{}\n\t\tfor _, p := range d.Prerequisites() {\n\t\t\tif _, ok := byName[p]; !ok {\n\t\t\t\treturn nil, errors.New(\"periph: unsatisfied dependency \" + strconv.Quote(name) + \"->\" + strconv.Quote(p) + \"; it is missing; skipping\")\n\t\t\t}\n\t\t\tm[p] = struct{}{}\n\t\t}\n\t\tfor _, p := range d.After() {\n\t\t\t// Skip undefined drivers silently, unlike Prerequisites().\n\t\t\tif _, ok := byName[p]; ok {\n\t\t\t\tm[p] = struct{}{}\n\t\t\t}\n\t\t}\n\t\tdag[name] = m\n\t}\n\n\t// Create stages.\n\tvar stages []*stage\n\tfor len(dag) != 0 {\n\t\ts := &stage{drvs: map[string]Driver{}}\n\t\tfor name, deps := range dag {\n\t\t\t// This driver has no dependency, add it to the current stage.\n\t\t\tif len(deps) == 0 {\n\t\t\t\ts.drvs[name] = byName[name]\n\t\t\t\tdelete(dag, name)\n\t\t\t}\n\t\t}\n\t\tif len(s.drvs) == 0 {\n\t\t\t// Print out the remaining DAG so users can diagnose.\n\t\t\t// It'd probably be nicer if it were done in Register()?\n\t\t\ts := make([]string, 0, len(dag))\n\t\t\tfor name, deps := range dag {\n\t\t\t\tx := make([]string, 0, len(deps))\n\t\t\t\tfor d := range deps {\n\t\t\t\t\tx = insertString(x, d)\n\t\t\t\t}\n\t\t\t\ts = insertString(s, name+\": \"+strings.Join(x, \", \"))\n\t\t\t}\n\t\t\treturn nil, errors.New(\"periph: found cycle(s) in drivers dependencies:\\n\" + strings.Join(s, \"\\n\"))\n\t\t}\n\t\tstages = append(stages, s)\n\n\t\t// Trim the dependencies for the items remaining in the dag.\n\t\tfor passed := range s.drvs {\n\t\t\tfor name := range dag {\n\t\t\t\tdelete(dag[name], passed)\n\t\t\t}\n\t\t}\n\t}\n\treturn stages, nil\n}", "func initSerialization(prgrm *CXProgram, s *SerializedCXProgram, includeMemory bool) {\n\ts.PackagesMap = make(map[string]int64)\n\ts.StructsMap = make(map[string]int64)\n\ts.FunctionsMap = make(map[string]int64)\n\ts.StringsMap = make(map[string]int64)\n\n\ts.Calls = make([]serializedCall, prgrm.CallCounter)\n\ts.Packages = make([]serializedPackage, len(prgrm.Packages))\n\n\tif includeMemory {\n\t\t// s.Memory = prgrm.Memory[:PROGRAM.HeapStartsAt+PROGRAM.HeapPointer]\n\t\ts.Memory = prgrm.Memory\n\t}\n\n\tvar numStrcts int\n\tvar numFns int\n\n\tfor _, pkg := range prgrm.Packages {\n\t\tnumStrcts += len(pkg.Structs)\n\t\tnumFns += len(pkg.Functions)\n\t}\n\n\ts.Structs = make([]serializedStruct, numStrcts)\n\ts.Functions = make([]serializedFunction, numFns)\n\t// args and exprs need to be appended as they are found\n}", "func name(obj, eventType, eventSource string) string {\n\t// Pod names need to be lowercase. We might have an eventType as Any, that is why we lowercase them.\n\tif eventType == \"\" {\n\t\teventType = \"testany\"\n\t}\n\tif eventSource == \"\" {\n\t\teventSource = \"testany\"\n\t}\n\treturn strings.ToLower(fmt.Sprintf(\"%s-%s-%s\", obj, eventType, eventSource))\n}", "func StartPipeline(service *app.Service, stages ...Stage) *Pipeline {\n\tstartPipelineMutex.Lock()\n\tdefer startPipelineMutex.Unlock()\n\n\tif pipeline := GetPipeline(PipelineID(service.ID())); pipeline != nil {\n\t\treturn pipeline\n\t}\n\n\tcheckArgs := func() {\n\t\tif service == nil {\n\t\t\tpanic(\"A pipeline requires a service to run\")\n\t\t}\n\t\tif !service.Alive() {\n\t\t\tpanic(app.ServiceNotAliveError(service.ID()))\n\t\t}\n\t\tif len(stages) == 0 {\n\t\t\tpanic(\"A pipeline must have at least 1 stage\")\n\t\t}\n\t\tfor _, stage := range stages {\n\t\t\tif stage.Command().run == nil {\n\t\t\t\tpanic(fmt.Sprintf(\"Stage Command run function was nil for : ServiceID(0x%x)\", service.ID()))\n\t\t\t}\n\t\t}\n\n\t\tserviceID := service.ID()\n\t\tfor _, metricID := range COUNTER_METRIC_IDS {\n\t\t\tif app.MetricRegistry.Counter(serviceID, metricID) == nil {\n\t\t\t\tpanic(fmt.Sprintf(\"Counter metric is missing : MetricID(0x%x)\", metricID))\n\t\t\t}\n\t\t}\n\t\tfor _, metricID := range COUNTER_VECTOR_METRIC_IDS {\n\t\t\tif app.MetricRegistry.CounterVector(serviceID, metricID) == nil {\n\t\t\t\tpanic(fmt.Sprintf(\"Counter vector metric is missing : MetricID(0x%x)\", metricID))\n\t\t\t}\n\t\t}\n\t\tfor _, metricID := range GAUGE_METRIC_IDS {\n\t\t\tif app.MetricRegistry.Gauge(serviceID, metricID) == nil {\n\t\t\t\tpanic(fmt.Sprintf(\"Gauge metric is missing : MetricID(0x%x)\", metricID))\n\t\t\t}\n\t\t}\n\t}\n\n\tcheckArgs()\n\n\tserviceID := service.ID()\n\n\tpipeline := &Pipeline{\n\t\tService: service,\n\t\tstartedOn: time.Now(),\n\t\tin: make(chan context.Context),\n\t\tout: make(chan context.Context),\n\t\tstages: stages,\n\n\t\trunCounter: app.MetricRegistry.Counter(serviceID, PIPELINE_RUN_COUNT),\n\t\tfailedCounter: app.MetricRegistry.Counter(serviceID, PIPELINE_FAILED_COUNT),\n\t\tcontextExpiredCounter: app.MetricRegistry.Counter(serviceID, PIPELINE_CONTEXT_EXPIRED_COUNT),\n\t\tprocessingTime: app.MetricRegistry.Counter(serviceID, PIPELINE_PROCESSING_TIME_SEC),\n\t\tprocessingFailedTime: app.MetricRegistry.Counter(serviceID, PIPELINE_PROCESSING_TIME_SEC_FAILED),\n\t\tchannelDeliveryTime: app.MetricRegistry.Counter(serviceID, PIPELINE_CHANNEL_DELIVERY_TIME_SEC),\n\n\t\tpingPongCounter: app.MetricRegistry.Counter(serviceID, PIPELINE_PING_PONG_COUNT),\n\t\tpingPongTime: app.MetricRegistry.Counter(serviceID, PIPELINE_PING_PONG_TIME_SEC),\n\t\tpingExpiredCounter: app.MetricRegistry.Counter(serviceID, PIPELINE_PING_EXPIRED_COUNT),\n\t\tpingExpiredTime: app.MetricRegistry.Counter(serviceID, PIPELINE_PING_EXPIRED_TIME_SEC),\n\n\t\tconsecutiveSuccessCounter: app.MetricRegistry.Gauge(serviceID, PIPELINE_CONSECUTIVE_SUCCESS_COUNT),\n\t\tconsecutiveFailureCounter: app.MetricRegistry.Gauge(serviceID, PIPELINE_CONSECUTIVE_FAILURE_COUNT),\n\t\tconsecutiveExpiredCounter: app.MetricRegistry.Gauge(serviceID, PIPELINE_CONSECUTIVE_EXPIRED_COUNT),\n\n\t\tlastSuccessTime: app.MetricRegistry.Gauge(serviceID, PIPELINE_LAST_SUCCESS_TIME),\n\t\tlastFailureTime: app.MetricRegistry.Gauge(serviceID, PIPELINE_LAST_FAILURE_TIME),\n\t\tlastExpiredTime: app.MetricRegistry.Gauge(serviceID, PIPELINE_LAST_EXPIRED_TIME),\n\t\tlastPingSuccessTime: app.MetricRegistry.Gauge(serviceID, PIPELINE_LAST_PING_SUCCESS_TIME),\n\t\tlastPingExpiredTime: app.MetricRegistry.Gauge(serviceID, PIPELINE_LAST_PING_EXPIRED_TIME),\n\t}\n\n\tfirstStageCommandID := pipeline.stages[0].cmd.id\n\tvar build func(stages []Stage, in, out chan context.Context)\n\tbuild = func(stages []Stage, in, out chan context.Context) {\n\t\tcreateStageWorkers := func(stage Stage, process func(ctx context.Context)) {\n\t\t\tfor i := 0; i < int(stage.PoolSize()); i++ {\n\t\t\t\tif stage.cmd.id == firstStageCommandID {\n\t\t\t\t\tservice.Go(func() error {\n\t\t\t\t\t\tfor {\n\t\t\t\t\t\t\tselect {\n\t\t\t\t\t\t\tcase <-service.Dying():\n\t\t\t\t\t\t\t\treturn nil\n\t\t\t\t\t\t\tcase ctx := <-in:\n\t\t\t\t\t\t\t\tselect {\n\t\t\t\t\t\t\t\tcase <-ctx.Done():\n\t\t\t\t\t\t\t\t\tpipelineContextExpired(ctx, pipeline, stage.Command().CommandID()).Log(pipeline.Service.Logger())\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t// record the time when the context started the workflow, i.e., entered the first stage of the pipeline\n\t\t\t\t\t\t\t\t\tctx = startWorkflowTimer(ctx)\n\t\t\t\t\t\t\t\t\tpipeline.runCounter.Inc()\n\t\t\t\t\t\t\t\t\tprocess(ctx)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\tservice.Go(func() error {\n\t\t\t\t\t\tfor {\n\t\t\t\t\t\t\tselect {\n\t\t\t\t\t\t\tcase <-service.Dying():\n\t\t\t\t\t\t\t\treturn nil\n\t\t\t\t\t\t\tcase ctx := <-in:\n\t\t\t\t\t\t\t\tselect {\n\t\t\t\t\t\t\t\tcase <-ctx.Done():\n\t\t\t\t\t\t\t\t\tpipelineContextExpired(ctx, pipeline, stage.Command().CommandID()).Log(pipeline.Service.Logger())\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\tprocess(ctx)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tstage := stages[0]\n\t\tif len(stages) == 1 {\n\t\t\tcreateStageWorkers(stage, func(ctx context.Context) {\n\t\t\t\tif IsPing(ctx) {\n\t\t\t\t\t// reply with pong\n\t\t\t\t\tctx = withPong(ctx)\n\t\t\t\t\tout, ok := OutputChannel(ctx)\n\t\t\t\t\tif !ok {\n\t\t\t\t\t\tout = pipeline.out\n\t\t\t\t\t}\n\n\t\t\t\t\tselect {\n\t\t\t\t\tcase <-service.Dying():\n\t\t\t\t\tcase <-ctx.Done():\n\t\t\t\t\t\tpipelineContextExpired(ctx, pipeline, stage.Command().CommandID()).Log(pipeline.Service.Logger())\n\t\t\t\t\tcase out <- ctx:\n\t\t\t\t\t\tpipeline.lastPingSuccessTime.Set(float64(time.Now().Unix()))\n\t\t\t\t\t}\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\tresult := stage.run(ctx)\n\t\t\t\tprocessedTime := time.Now()\n\t\t\t\tprocessingDuration := time.Now().Sub(WorkflowStartTime(ctx))\n\t\t\t\tworkflowTime := processingDuration.Seconds()\n\t\t\t\tpipeline.processingTime.Add(workflowTime)\n\t\t\t\tif err := Error(result); err != nil {\n\t\t\t\t\tcontextFailed(pipeline, ctx)\n\t\t\t\t\tpipeline.failedCounter.Inc()\n\t\t\t\t\tpipeline.processingFailedTime.Add(workflowTime)\n\t\t\t\t\tresult = WithError(result, stage.Command().id, err)\n\t\t\t\t\tpipeline.lastFailureTime.Set(float64(time.Now().Unix()))\n\t\t\t\t\tpipeline.consecutiveFailureCounter.Inc()\n\t\t\t\t\tpipeline.consecutiveSuccessCounter.Set(0)\n\t\t\t\t}\n\n\t\t\t\tout, ok := OutputChannel(result)\n\t\t\t\tif !ok {\n\t\t\t\t\tout = pipeline.out\n\t\t\t\t}\n\n\t\t\t\tselect {\n\t\t\t\tcase <-service.Dying():\n\t\t\t\t\treturn\n\t\t\t\tcase <-result.Done():\n\t\t\t\t\tpipelineContextExpired(result, pipeline, stage.Command().CommandID()).Log(pipeline.Service.Logger())\n\t\t\t\tcase out <- result:\n\t\t\t\t\tdeliveryTime := time.Now().Sub(processedTime).Seconds()\n\t\t\t\t\tpipeline.channelDeliveryTime.Add(deliveryTime)\n\n\t\t\t\t\tif Error(result) == nil {\n\t\t\t\t\t\tpipeline.lastSuccessTime.Set(float64(time.Now().Unix()))\n\t\t\t\t\t\tpipeline.consecutiveSuccessCounter.Inc()\n\t\t\t\t\t\tpipeline.consecutiveFailureCounter.Set(0)\n\t\t\t\t\t\tpipeline.consecutiveExpiredCounter.Set(0)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})\n\t\t\treturn\n\t\t}\n\n\t\tcreateStageWorkers(stage, func(ctx context.Context) {\n\t\t\tif IsPing(ctx) {\n\t\t\t\t// send the context downstream, i.e., to the next stage\n\t\t\t\tselect {\n\t\t\t\tcase <-service.Dying():\n\t\t\t\tcase <-ctx.Done():\n\t\t\t\t\tpipelineContextExpired(ctx, pipeline, stage.Command().CommandID()).Log(pipeline.Service.Logger())\n\t\t\t\tcase out <- ctx:\n\t\t\t\t}\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tresult := stage.run(ctx)\n\t\t\tprocessedTime := time.Now()\n\t\t\tif err := Error(result); err != nil {\n\t\t\t\tcontextFailed(pipeline, ctx)\n\t\t\t\tpipeline.failedCounter.Inc()\n\t\t\t\tresult = WithError(result, stage.Command().id, err)\n\t\t\t\tpipeline.lastFailureTime.Set(float64(time.Now().Unix()))\n\t\t\t\tselect {\n\t\t\t\tcase <-service.Dying():\n\t\t\t\t\treturn\n\t\t\t\tcase <-result.Done():\n\t\t\t\t\tpipelineContextExpired(result, pipeline, stage.Command().CommandID()).Log(pipeline.Service.Logger())\n\t\t\t\tcase pipeline.out <- result:\n\t\t\t\t\tdeliveryTime := time.Now().Sub(processedTime).Seconds()\n\t\t\t\t\tpipeline.channelDeliveryTime.Add(deliveryTime)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tselect {\n\t\t\t\tcase <-service.Dying():\n\t\t\t\t\treturn\n\t\t\t\tcase <-result.Done():\n\t\t\t\t\tpipelineContextExpired(result, pipeline, stage.Command().CommandID()).Log(pipeline.Service.Logger())\n\t\t\t\tcase out <- result:\n\t\t\t\t\tdeliveryTime := time.Now().Sub(processedTime).Seconds()\n\t\t\t\t\tpipeline.channelDeliveryTime.Add(deliveryTime)\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\n\t\tbuild(stages[1:], out, make(chan context.Context))\n\t}\n\n\tbuild(stages, pipeline.in, make(chan context.Context))\n\n\tgo func() {\n\t\tdefer unregisterPipeline(pipeline.ID())\n\t\tselect {\n\t\tcase <-service.Dying():\n\t\tcase <-app.Dying():\n\t\t}\n\t}()\n\n\tregisterPipeline(pipeline)\n\tapp.SERVICE_STARTED.Log(service.Logger().Info()).Msg(\"Pipeline started\")\n\n\treturn pipeline\n}", "func ObjName(iface interface{}) string {\n\treturn filepath.Base(reflect.TypeOf(iface).PkgPath()) +\n\t\t\".\" + reflect.TypeOf(iface).Name()\n}", "func (c *client) compileStages(p *yaml.Build, _pipeline *library.Pipeline, tmpls map[string]*yaml.Template, r *pipeline.RuleData) (*pipeline.Build, *library.Pipeline, error) {\n\tvar err error\n\n\t// check if the pipeline disabled the clone\n\tif p.Metadata.Clone == nil || *p.Metadata.Clone {\n\t\t// inject the clone stage\n\t\tp, err = c.CloneStage(p)\n\t\tif err != nil {\n\t\t\treturn nil, _pipeline, err\n\t\t}\n\t}\n\n\t// inject the init stage\n\tp, err = c.InitStage(p)\n\tif err != nil {\n\t\treturn nil, _pipeline, err\n\t}\n\n\t// inject the templates into the stages\n\tp, err = c.ExpandStages(p, tmpls, r)\n\tif err != nil {\n\t\treturn nil, _pipeline, err\n\t}\n\n\tif c.ModificationService.Endpoint != \"\" {\n\t\t// send config to external endpoint for modification\n\t\tp, err = c.modifyConfig(p, c.build, c.repo)\n\t\tif err != nil {\n\t\t\treturn nil, _pipeline, err\n\t\t}\n\t}\n\n\t// validate the yaml configuration\n\terr = c.Validate(p)\n\tif err != nil {\n\t\treturn nil, _pipeline, err\n\t}\n\n\t// Create some default global environment inject vars\n\t// these are used below to overwrite to an empty\n\t// map if they should not be injected into a container\n\tenvGlobalServices, envGlobalSecrets, envGlobalSteps := p.Environment, p.Environment, p.Environment\n\n\tif !p.Metadata.HasEnvironment(\"services\") {\n\t\tenvGlobalServices = make(raw.StringSliceMap)\n\t}\n\n\tif !p.Metadata.HasEnvironment(\"secrets\") {\n\t\tenvGlobalSecrets = make(raw.StringSliceMap)\n\t}\n\n\tif !p.Metadata.HasEnvironment(\"steps\") {\n\t\tenvGlobalSteps = make(raw.StringSliceMap)\n\t}\n\n\t// inject the environment variables into the services\n\tp.Services, err = c.EnvironmentServices(p.Services, envGlobalServices)\n\tif err != nil {\n\t\treturn nil, _pipeline, err\n\t}\n\n\t// inject the environment variables into the secrets\n\tp.Secrets, err = c.EnvironmentSecrets(p.Secrets, envGlobalSecrets)\n\tif err != nil {\n\t\treturn nil, _pipeline, err\n\t}\n\n\t// inject the environment variables into the stages\n\tp.Stages, err = c.EnvironmentStages(p.Stages, envGlobalSteps)\n\tif err != nil {\n\t\treturn nil, _pipeline, err\n\t}\n\n\t// inject the substituted environment variables into the stages\n\tp.Stages, err = c.SubstituteStages(p.Stages)\n\tif err != nil {\n\t\treturn nil, _pipeline, err\n\t}\n\n\t// inject the scripts into the stages\n\tp.Stages, err = c.ScriptStages(p.Stages)\n\tif err != nil {\n\t\treturn nil, _pipeline, err\n\t}\n\n\t// create executable representation\n\tbuild, err := c.TransformStages(r, p)\n\tif err != nil {\n\t\treturn nil, _pipeline, err\n\t}\n\n\treturn build, _pipeline, nil\n}", "func decodePipeline(category clipt.Category, scripts map[string]string) (map[string]string, error) {\n\tdecodedScripts := map[string]string{}\n\tfor scriptName, scriptContent := range scripts {\n\t\tscriptContent, err := decodeBase64Content(scriptContent, defaultEncode)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tif len(scriptContent) > PipelineScriptByteSizeLimit {\n\t\t\treturn nil, fmt.Errorf(\"script size exceeds 1MB limit\")\n\t\t}\n\t\t// since the incoming script name has no suffix, add it here\n\t\tdecodedScripts[scriptName+\".p\"] = scriptContent\n\t}\n\treturn decodedScripts, nil\n}", "func setupValidQueueNames() {\n\tfor _, jType := range models.ValidJobTypes {\n\t\tvar jt = string(jType)\n\t\tvalidQueues[jt] = true\n\t\tvalidQueueList = append(validQueueList, jt)\n\t}\n}", "func (s *BasePlSqlParserListener) EnterRename_object(ctx *Rename_objectContext) {}", "func GenCreateByReleasePipelineYaml(releaseID string, workspaces []string) apistructs.PipelineYml {\n\tyml := apistructs.PipelineYml{\n\t\tVersion: \"1.1\",\n\t\tStages: [][]*apistructs.PipelineYmlAction{\n\t\t\t{},\n\t\t\t{},\n\t\t\t{},\n\t\t\t{},\n\t\t},\n\t}\n\tfor _, workspace := range workspaces {\n\t\tyml.Stages[0] = append(yml.Stages[0], &apistructs.PipelineYmlAction{\n\t\t\tType: \"dice-deploy-release\",\n\t\t\tAlias: fmt.Sprintf(\"dice-deploy-release-%s\", workspace),\n\t\t\tVersion: \"1.0\",\n\t\t\tParams: map[string]interface{}{\n\t\t\t\t\"release_id\": releaseID,\n\t\t\t\t\"workspace\": workspace,\n\t\t\t},\n\t\t})\n\t\tyml.Stages[1] = append(yml.Stages[1], &apistructs.PipelineYmlAction{\n\t\t\tType: \"dice-deploy-addon\",\n\t\t\tAlias: fmt.Sprintf(\"dice-deploy-addon-%s\", workspace),\n\t\t\tVersion: \"1.0\",\n\t\t\tParams: map[string]interface{}{\n\t\t\t\t\"deployment_id\": fmt.Sprintf(\"${dice-deploy-release-%s:OUTPUT:deployment_id}\", workspace),\n\t\t\t},\n\t\t})\n\t\tyml.Stages[2] = append(yml.Stages[2], &apistructs.PipelineYmlAction{\n\t\t\tType: \"dice-deploy-service\",\n\t\t\tAlias: fmt.Sprintf(\"dice-deploy-service-%s\", workspace),\n\t\t\tVersion: \"1.0\",\n\t\t\tParams: map[string]interface{}{\n\t\t\t\t\"deployment_id\": fmt.Sprintf(\"${dice-deploy-release-%s:OUTPUT:deployment_id}\", workspace),\n\t\t\t},\n\t\t})\n\t\tyml.Stages[3] = append(yml.Stages[3], &apistructs.PipelineYmlAction{\n\t\t\tType: \"dice-deploy-domain\",\n\t\t\tAlias: fmt.Sprintf(\"dice-deploy-domain-%s\", workspace),\n\t\t\tVersion: \"1.0\",\n\t\t\tParams: map[string]interface{}{\n\t\t\t\t\"deployment_id\": fmt.Sprintf(\"${dice-deploy-release-%s:OUTPUT:deployment_id}\", workspace),\n\t\t\t},\n\t\t})\n\t}\n\n\treturn yml\n}", "func (*Object) Name() string { return \"object\" }", "func NewPipeline(ls ...interface{}) (*Pipe, error) {\n\tvar pipe []interface{}\n\n\tp := &Pipe{\n\t\tls: pipe,\n\t}\n\n\tfor _, f := range ls {\n\t\tif err := p.Add(f); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\n\treturn p, nil\n}", "func main() {\n\tfmt.Println(\"Generating code\")\n\treduce.GenerateDispatcher(outputPath)\n\t//reduce.GenerateDispatcher(outputPath)\n}", "func (ap *ActivePipelines) GetByName(n string) *gaia.Pipeline {\n\tfor _, pipeline := range ap.GetAll() {\n\t\tif pipeline.Name == n {\n\t\t\treturn &pipeline\n\t\t}\n\t}\n\n\treturn nil\n}", "func precompiledObjectsToCategory(categoryName string, precompiledObjects dto.PrecompiledObjects) *pb.Categories_Category {\n\tcategory := pb.Categories_Category{\n\t\tCategoryName: categoryName,\n\t\tPrecompiledObjects: make([]*pb.PrecompiledObject, 0),\n\t}\n\tfor _, object := range precompiledObjects {\n\t\tcategory.PrecompiledObjects = append(category.PrecompiledObjects, &pb.PrecompiledObject{\n\t\t\tCloudPath: object.CloudPath,\n\t\t\tName: object.Name,\n\t\t\tDescription: object.Description,\n\t\t\tType: object.Type,\n\t\t\tPipelineOptions: object.PipelineOptions,\n\t\t\tLink: object.Link,\n\t\t\tUrlVcs: object.UrlVCS,\n\t\t\tUrlNotebook: object.UrlNotebook,\n\t\t\tAlwaysRun: object.AlwaysRun,\n\t\t\tNeverRun: object.NeverRun,\n\t\t\tMultifile: object.Multifile,\n\t\t\tContextLine: object.ContextLine,\n\t\t\tDefaultExample: object.DefaultExample,\n\t\t\tSdk: object.Sdk,\n\t\t\tComplexity: object.Complexity,\n\t\t\tTags: object.Tags,\n\t\t\tDatasets: object.Datasets,\n\t\t})\n\t}\n\treturn &category\n}", "func poolName(endpointsNamespace, endpointsName string) string {\n\treturn fmt.Sprintf(\"openshift_%s_%s\", endpointsNamespace, endpointsName)\n}", "func main() {\n\tlog.SetFlags(0)\n\tpgs.Init(\n\t\tpgs.DebugEnv(\"DEBUG\"),\n\t).RegisterModule(\n\t\t&protoModule{ModuleBase: &pgs.ModuleBase{}},\n\t).RegisterPostProcessor(\n\t\tpgsgo.GoFmt(),\n\t).Render()\n}", "func (s *BasePlSqlParserListener) ExitObject_name(ctx *Object_nameContext) {}", "func (pm *PipelineManager) newDeployment(pipeline *api.Pipeline) *appsv1.Deployment {\n\tlbls := pipeLabels(pipeline)\n\n\tdeployment := &appsv1.Deployment{\n\t\tObjectMeta: metav1.ObjectMeta{\n\t\t\tName: pipeline.Name,\n\t\t\tNamespace: pipeline.Namespace,\n\t\t\tOwnerReferences: []metav1.OwnerReference{\n\t\t\t\t*metav1.NewControllerRef(pipeline, api.SchemeGroupVersion.WithKind(api.PipelineResourceKind)),\n\t\t\t},\n\t\t\tLabels: lbls,\n\t\t},\n\t\tSpec: appsv1.DeploymentSpec{\n\t\t\tSelector: &metav1.LabelSelector{\n\t\t\t\tMatchLabels: lbls,\n\t\t\t},\n\t\t\tStrategy: appsv1.DeploymentStrategy{\n\t\t\t\tType: appsv1.RecreateDeploymentStrategyType,\n\t\t\t},\n\t\t\tMinReadySeconds: 10,\n\t\t\tTemplate: corev1.PodTemplateSpec{\n\t\t\t\tObjectMeta: metav1.ObjectMeta{\n\t\t\t\t\tLabels: lbls,\n\t\t\t\t},\n\t\t\t\tSpec: corev1.PodSpec{\n\t\t\t\t\tRestartPolicy: corev1.RestartPolicyAlways,\n\t\t\t\t\tVolumes: []corev1.Volume{\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tName: \"config\",\n\t\t\t\t\t\t\tVolumeSource: corev1.VolumeSource{\n\t\t\t\t\t\t\t\tConfigMap: &corev1.ConfigMapVolumeSource{\n\t\t\t\t\t\t\t\t\tLocalObjectReference: corev1.LocalObjectReference{Name: pipeline.Name},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tContainers: []corev1.Container{\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tName: \"gravity\",\n\t\t\t\t\t\t\tImage: pipeline.Spec.Image,\n\t\t\t\t\t\t\tCommand: pipeline.Spec.Command,\n\t\t\t\t\t\t\tPorts: []corev1.ContainerPort{\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tName: \"http\",\n\t\t\t\t\t\t\t\t\tContainerPort: containerPort,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tLivenessProbe: &corev1.Probe{\n\t\t\t\t\t\t\t\tHandler: corev1.Handler{\n\t\t\t\t\t\t\t\t\tHTTPGet: &corev1.HTTPGetAction{\n\t\t\t\t\t\t\t\t\t\tPort: intstr.FromString(\"http\"),\n\t\t\t\t\t\t\t\t\t\tPath: \"/healthz\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tInitialDelaySeconds: 10,\n\t\t\t\t\t\t\t\tTimeoutSeconds: 5,\n\t\t\t\t\t\t\t\tPeriodSeconds: 10,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tVolumeMounts: []corev1.VolumeMount{\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tName: \"config\",\n\t\t\t\t\t\t\t\t\tMountPath: \"/etc/gravity\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tResources: corev1.ResourceRequirements{ //TODO from tps config or metrics\n\t\t\t\t\t\t\t\tRequests: corev1.ResourceList{\n\t\t\t\t\t\t\t\t\t\"cpu\": resource.MustParse(\"100m\"),\n\t\t\t\t\t\t\t\t\t\"memory\": resource.MustParse(\"150M\"),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t}\n\n\tif pipeline.Spec.Paused {\n\t\tdeployment.Spec.Replicas = int32Ptr(0)\n\t} else {\n\t\tdeployment.Spec.Replicas = int32Ptr(1)\n\t}\n\treturn deployment\n}", "func (r *RuntimeClass) prepareObjects(ctx context.Context, attributes admission.Attributes) (pod *api.Pod, runtimeClass *nodev1.RuntimeClass, err error) {\n\tpod, ok := attributes.GetObject().(*api.Pod)\n\tif !ok {\n\t\treturn nil, nil, apierrors.NewBadRequest(\"Resource was marked with kind Pod but was unable to be converted\")\n\t}\n\n\tif pod.Spec.RuntimeClassName == nil {\n\t\treturn pod, nil, nil\n\t}\n\n\t// get RuntimeClass object\n\truntimeClass, err = r.runtimeClassLister.Get(*pod.Spec.RuntimeClassName)\n\tif apierrors.IsNotFound(err) {\n\t\t// if not found, our informer cache could be lagging, do a live lookup\n\t\truntimeClass, err = r.runtimeClassClient.Get(ctx, *pod.Spec.RuntimeClassName, metav1.GetOptions{})\n\t\tif apierrors.IsNotFound(err) {\n\t\t\treturn pod, nil, admission.NewForbidden(attributes, fmt.Errorf(\"pod rejected: RuntimeClass %q not found\", *pod.Spec.RuntimeClassName))\n\t\t}\n\t}\n\n\t// return the pod and runtimeClass.\n\treturn pod, runtimeClass, err\n}", "func appendPrecompiledObject(objectInfo dto.ObjectInfo, sdkToCategories *dto.SdkToCategories, categoryName string, sdk string) {\n\tcategoryToPrecompiledObjects, ok := (*sdkToCategories)[sdk]\n\tif !ok {\n\t\t(*sdkToCategories)[sdk] = make(dto.CategoryToPrecompiledObjects, 0)\n\t\tcategoryToPrecompiledObjects = (*sdkToCategories)[sdk]\n\t}\n\tobjects, ok := categoryToPrecompiledObjects[categoryName]\n\tif !ok {\n\t\tcategoryToPrecompiledObjects[categoryName] = make(dto.PrecompiledObjects, 0)\n\t\tobjects = categoryToPrecompiledObjects[categoryName]\n\t}\n\tcategoryToPrecompiledObjects[categoryName] = append(objects, objectInfo)\n}", "func (p *Parser) parsePipeline() (*AstPipeline, error) {\n var firstPr *AstProcess = nil\n var currPr *AstProcess = nil\n\n for p.Scanner.Token != scanner.EOF {\n pr, err := p.parseProcess()\n if err != nil {\n return nil, err\n }\n\n if firstPr == nil {\n firstPr = pr\n }\n if currPr != nil {\n currPr.Next = pr\n }\n currPr = pr\n\n // If the next token is not '|' then break\n if (p.Scanner.Token != '|') {\n break\n } else {\n p.Scanner.Scan()\n }\n }\n\n return &AstPipeline{firstPr}, nil\n}", "func TestMakeNonUniformMapForkIds(t *testing.T) {\n\t_, _, ast, err := syntax.ParseSourceBytes([]byte(`\nstage STAGE(\n\tin bool truth,\n\tin string str,\n\tin int num,\n\tsrc comp \"mock\",\n)\n\npipeline INNER(\n\tin bool truth,\n\tin string str,\n\tin int[] nums,\n)\n{\n\tmap call STAGE(\n\t\ttruth = self.truth,\n\t\tstr = self.str,\n\t\tnum = split self.nums,\n\t)\n\n\treturn ()\n}\n\npipeline OUTER(\n\tin bool truth,\n\tin string[] strs,\n\tin int[] nums,\n)\n{\n\tmap call INNER(\n\t\ttruth = self.truth,\n\t\tstr = split self.strs,\n\t\tnums = self.nums,\n\t)\n\n\treturn ()\n}\n\nmap call OUTER(\n\ttruth = split {\n\t\t\"first\": true,\n\t\t\"second\": false,\n\t},\n\tstrs = split {\n\t\t\"first\": [\n\t\t\t\"foo\",\n\t\t],\n\t\t\"second\": [\n\t\t\t\"bar\",\n\t\t\t\"baz\",\n\t\t]\n\t},\n\tnums = split {\n\t\t\"first\": [1],\n\t\t\"second\": [\n\t\t\t2,\n\t\t\t3,\n\t\t],\n\t},\n)\n`), \"static_forks.mro\", nil, false)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tgraph, err := ast.MakePipelineCallGraph(\"\", ast.Call)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tforks := graph.Children[0].GetChildren()[0].ForkRoots()\n\tvar ids ForkIdSet\n\tids.MakeForkIds(forks, &ast.TypeTable)\n\tinnerSources := graph.Inputs[\"nums\"].Exp.(*syntax.SplitExp).Value.(*syntax.MapExp).Value\n\tif len(innerSources) != 2 {\n\t\tt.Fatalf(\"%d != 2\", len(innerSources))\n\t}\n\tmkId := func(i mapKeyFork, j, k arrayIndexFork) ForkId {\n\t\treturn ForkId{\n\t\t\t&ForkSourcePart{\n\t\t\t\tSplit: forks[0].Split(),\n\t\t\t\tId: &i,\n\t\t\t},\n\t\t\t&ForkSourcePart{\n\t\t\t\tSplit: forks[1].Split(),\n\t\t\t\tId: &j,\n\t\t\t},\n\t\t\t&ForkSourcePart{\n\t\t\t\tSplit: forks[2].Split(),\n\t\t\t\tId: &k,\n\t\t\t},\n\t\t}\n\t}\n\texpect := [...]ForkId{\n\t\tmkId(\"first\", 0, 0),\n\t\tmkId(\"second\", 0, 0),\n\t\tmkId(\"second\", 1, 0),\n\t\tmkId(\"second\", 0, 1),\n\t\tmkId(\"second\", 1, 1),\n\t}\n\tif len(ids.List) != 5 {\n\t\tt.Errorf(\"expected %d ids, got %d\", len(expect), len(ids.List))\n\t}\n\tfor i, id := range ids.List {\n\t\tif !id.Equal(expect[i]) {\n\t\t\tt.Errorf(\"expected %v, got %v\", expect[i].GoString(), id.GoString())\n\t\t}\n\t}\n\texpectStr := [...]string{\n\t\t\"fork_first/fork0\",\n\t\t\"fork_second/fork0_fork0\",\n\t\t\"fork_second/fork1_fork0\",\n\t\t\"fork_second/fork0_fork1\",\n\t\t\"fork_second/fork1_fork1\",\n\t}\n\tfor i, id := range ids.List {\n\t\tif s, err := id.ForkIdString(); err != nil {\n\t\t\tt.Error(err)\n\t\t} else if s != expectStr[i] {\n\t\t\tt.Errorf(\"expected %s, got %s for %s\", expectStr[i], s, id.GoString())\n\t\t}\n\t}\n}", "func getPipelineInfo(etcdClient *etcd.Client, pachClient *client.APIClient, appEnv *appEnv) (*pps.PipelineInfo, error) {\n\tctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)\n\tdefer cancel()\n\tresp, err := etcdClient.Get(ctx, path.Join(appEnv.PPSPrefix, \"pipelines\", appEnv.PPSPipelineName))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif len(resp.Kvs) != 1 {\n\t\treturn nil, fmt.Errorf(\"expected to find 1 pipeline (%s), got %d: %v\", appEnv.PPSPipelineName, len(resp.Kvs), resp)\n\t}\n\tvar pipelinePtr pps.EtcdPipelineInfo\n\tif err := pipelinePtr.Unmarshal(resp.Kvs[0].Value); err != nil {\n\t\treturn nil, err\n\t}\n\tpachClient.SetAuthToken(pipelinePtr.AuthToken)\n\t// Notice we use the SpecCommitID from our env, not from etcd. This is\n\t// because the value in etcd might get updated while the worker pod is\n\t// being created and we don't want to run the transform of one version of\n\t// the pipeline in the image of a different verison.\n\tpipelinePtr.SpecCommit.ID = appEnv.PPSSpecCommitID\n\treturn ppsutil.GetPipelineInfo(pachClient, &pipelinePtr)\n}", "func Symbolize(mode string, prof *profile.Profile, obj plugin.ObjTool, ui plugin.UI) error", "func Symbolize(mode string, prof *profile.Profile, obj plugin.ObjTool, ui plugin.UI) error", "func makeProvisionerMap(items []plugin) string {\n\toutput := \"\"\n\tfor _, item := range items {\n\t\toutput += fmt.Sprintf(\"\\t\\\"%s\\\": %s.%s,\\n\", item.PluginName, item.ImportName, item.TypeName)\n\t}\n\treturn output\n}", "func (*RunPipelineArgs) Descriptor() ([]byte, []int) {\n\treturn file_google_genomics_v1alpha2_pipelines_proto_rawDescGZIP(), []int{4}\n}", "func registerPlugin(name string, init constructor) {\n\tif Pipes == nil {\n\t\tPipes = make(map[string]constructor)\n\t}\n\tPipes[name] = init\n}", "func main() {\n\tvar argsLength int\n\tif len(os.Args) > 0 {\n\t\targsLength = len(os.Args)\n\t\targsContent := \"\"\n\t\tfor i := 0; i < argsLength; i++ {\n\t\t\targsContent += os.Args[i] + \" \"\n\t\t}\n\t\tfmt.Println(argsContent)\n\t}\n\n\t// parse flags\n\tflag.Parse()\n\n\t// if user does not supply flags, print usage\n\tif flag.NFlag() == 0 {\n\t\tprintUsage()\n\t}\n\tif publi != \"\" {\n\t\tDisplayPublications(publi)\n\t}\n\n\tif osTool != \"\" {\n\t\tListOSTools()\n\t}\n\n\tif docker == \"l\" || docker == \"list\" {\n\t\tListContainer()\n\t}\n\t// ReadSettingsFile()\n\tlistLocalAddresses(netw, ip)\n\n\tif proj != \"\" {\n\t\tproj := cleanQuotes(proj)\n\t\tfolders.currentFolder = \".\" + dir + \"/\" + proj + \"/\"\n\t\tfolders.connectors = folders.currentFolder + \"connectors/\"\n\t\tfolders.controllers = folders.currentFolder + \"controllers/\"\n\t\tfolders.models = folders.currentFolder + \"models/\"\n\t\tfolders.test = folders.currentFolder + \"test/\"\n\t\tfolders.public = folders.currentFolder + \"public/\"\n\n\t\tfilenames.gitignore = \".gitignore\"\n\t\tfilenames.abstractModelFile = \"AbstractModel.js\"\n\t\tfilenames.abstractControllerFile = \"Abstract.js\"\n\t\tfilenames.healthControllerFile = \"HealthController.js\"\n\t\tfilenames.indexFile = \"index.js\"\n\t\tfilenames.packageJSON = \"package.json\"\n\t\tfilenames.readme = \"README.md\"\n\t\tfilenames.serverFile = \"Server.js\"\n\t\tfilenames.storeMock = \"store-mock.json\"\n\t\tfilenames.testControllerFile = \"testController.js\"\n\t\tfilenames.apiTests = \"apiTests.js\"\n\t\tfilenames.empty = \"EMPTY\"\n\t\tfolders.write(proj)\n\t}\n\n\tif reddit != \"\" {\n\t\treddit := cleanQuotes(reddit)\n\t\tif com != \"\" {\n\t\t\tcom := cleanQuotes(com)\n\t\t\tcoms := getRedditComments(com)\n\t\t\tfmt.Printf(\"Searching reddit comments ID: %s\\n\", com)\n\t\t\tfor _, res := range coms {\n\t\t\t\tfor _, result := range res.Data.Children {\n\t\t\t\t\tif result.Data.Selftext != \"\" {\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfmt.Println(`Date: `, GetDateFromTimeStamp(result.Data.CreatedUTC))\n\t\t\t\t\t\t\tfmt.Println(`Author: `, result.Data.Author)\n\t\t\t\t\t\t\tfmt.Println(`PostId: `, result.Data.ID)\n\t\t\t\t\t\t\tfmt.Println(`PostContent: `, result.Data.Selftext)\n\t\t\t\t\t\t\tfmt.Println(`*************************** Post ***************************`)\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if result.Data.Body != \"\" {\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfmt.Println(`Date: `, GetDateFromTimeStamp(result.Data.CreatedUTC))\n\t\t\t\t\t\t\tfmt.Println(`Author: `, result.Data.Author)\n\t\t\t\t\t\t\tfmt.Println(`PostId: `, result.Data.ID)\n\t\t\t\t\t\t\tfmt.Println(`CommentContent: `, result.Data.Body)\n\t\t\t\t\t\t\tfmt.Println(`************************ Comments **************************`)\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfmt.Printf(\"Searching reddit post(s): %s\\n\", reddit)\n\t\t\tposts := getRedditPosts(reddit)\n\t\t\tfor _, result := range posts.Data.Children {\n\t\t\t\tif result.Data.Selftext != \"\" {\n\t\t\t\t\tfmt.Printf(\"Searching reddit post(s): %s\\n\", com)\n\t\t\t\t\t{\n\t\t\t\t\t\tfmt.Println(`Date: `, GetDateFromTimeStamp(result.Data.CreatedUTC))\n\t\t\t\t\t\tfmt.Println(`Author: `, result.Data.Author)\n\t\t\t\t\t\tfmt.Println(`PostId: `, result.Data.ID)\n\t\t\t\t\t\tfmt.Println(`PostContent: `, result.Data.Selftext)\n\t\t\t\t\t\tfmt.Println(`************************** Posts ***************************`)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// if multiple users are passed separated by commas, store them in a \"users\" array\n\tif movie != \"\" {\n\t\tDisplayMoviesByName(movie)\n\t}\n\n\t// if multiple users are passed separated by commas, store them in a \"users\" array\n\tif user != \"\" {\n\t\tusers := strings.Split(user, \",\")\n\t\tif repo != \"\" {\n\t\t\tfmt.Printf(\"Searching [%s]'s repo(s): \\n\", user)\n\t\t\tres := getRepos(user)\n\t\t\tfor _, result := range res.Repos {\n\t\t\t\tfmt.Println(\"****************************************************\")\n\t\t\t\tfmt.Println(`Name: `, result.Name)\n\t\t\t\tfmt.Println(`Private: `, result.Private)\n\t\t\t\t// fmt.Println(`HTMLURL: `, result.HTMLURL)\n\t\t\t\tfmt.Println(`Description: `, result.Description)\n\t\t\t\t// fmt.Println(`Created_at: `, result.CreatedAt)\n\t\t\t\tfmt.Println(`Updated_at: `, result.UpdatedAt)\n\t\t\t\tfmt.Println(`Git_url: `, result.GitURL)\n\t\t\t\tfmt.Println(`Size: `, result.Size)\n\t\t\t\tfmt.Println(`Language: `, result.Language)\n\t\t\t\t// fmt.Println(`Open_issues_count: `, result.Open_issues_count)\n\t\t\t\t// fmt.Println(`Forks: `, result.Forks)\n\t\t\t\t// fmt.Println(`Watchers: `, result.Watchers)\n\t\t\t\t// fmt.Println(`DefaultBranch: `, result.DefaultBranch)\n\t\t\t\tfmt.Println(`ID: `, result.ID)\n\t\t\t}\n\t\t} else {\n\t\t\tfmt.Printf(\"Searching user(s): %s\\n\", users)\n\t\t\tif len(users) > 0 {\n\t\t\t\tfor _, u := range users {\n\t\t\t\t\tresult := getUsers(u)\n\t\t\t\t\tfmt.Println(`Username: `, result.Login)\n\t\t\t\t\tfmt.Println(`Name: `, result.Name)\n\t\t\t\t\tfmt.Println(`Email: `, result.Email)\n\t\t\t\t\tfmt.Println(`Bio: `, result.Bio)\n\t\t\t\t\tfmt.Println(`Location: `, result.Location)\n\t\t\t\t\tfmt.Println(`CreatedAt: `, result.CreatedAt)\n\t\t\t\t\tfmt.Println(`UpdatedAt: `, result.UpdatedAt)\n\t\t\t\t\tfmt.Println(`ReposURL: `, result.ReposURL)\n\t\t\t\t\tfmt.Println(`Followers: `, result.Followers)\n\t\t\t\t\tfmt.Println(`GistsURL: `, result.GistsURL)\n\t\t\t\t\tfmt.Println(`Hireable: `, result.Hireable)\n\t\t\t\t\tfmt.Println(\"******************* Statistics *********************\")\n\t\t\t\t\tif len(result.Stats) > 0 {\n\t\t\t\t\t\tfor stat, i := range result.Stats {\n\t\t\t\t\t\t\tformatSpacedStringWithItoa(stat, i)\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfmt.Println(\"****************************************************\")\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// if multiple users are passed separated by commas, store them in a \"users\" array\n\tif news != \"\" {\n\t\tDisplayNews(news, category, x)\n\t}\n\n\tif img != \"\" {\n\t\tDisplayASCIIFromLocalFile(img, x)\n\t}\n\n\tif city != \"\" {\n\t\tcity = cleanQuotes(city)\n\t\tDisplayWeather(city)\n\t}\n}" ]
[ "0.53454006", "0.5217002", "0.5169917", "0.5125603", "0.51129043", "0.50335073", "0.5019225", "0.49063027", "0.48995677", "0.48816267", "0.4877508", "0.48343974", "0.48209438", "0.48040983", "0.47984633", "0.47487223", "0.4721995", "0.4714342", "0.46834707", "0.46624652", "0.4662418", "0.46400577", "0.46368444", "0.4626045", "0.4622078", "0.46089965", "0.4604201", "0.45981652", "0.4596391", "0.4572933", "0.4572933", "0.45710865", "0.45634872", "0.4562157", "0.45568556", "0.45564345", "0.4552181", "0.4552181", "0.45519468", "0.45400515", "0.4532334", "0.45294818", "0.45242807", "0.4518038", "0.44941282", "0.44925708", "0.44895726", "0.4486182", "0.44806218", "0.44806218", "0.448054", "0.44765455", "0.44727275", "0.44717276", "0.44670165", "0.4458644", "0.44530097", "0.44513524", "0.44387922", "0.44382396", "0.4434676", "0.44330123", "0.4423152", "0.44198954", "0.4410175", "0.44089812", "0.44071016", "0.4404893", "0.43859527", "0.43814522", "0.4379511", "0.4377069", "0.43752417", "0.43743253", "0.437011", "0.436798", "0.43676388", "0.4357422", "0.43518686", "0.4350966", "0.43464273", "0.43448937", "0.43421787", "0.43411076", "0.43401176", "0.43389618", "0.43271354", "0.4327108", "0.431969", "0.4317799", "0.4312177", "0.43101314", "0.43085676", "0.42999443", "0.42999443", "0.4299325", "0.4297791", "0.42956454", "0.42943963" ]
0.48809424
11
generate query object names
func GenQueries(n int32, ids *uint32) { C.glowGenQueries(gpGenQueries, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(ids))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *Oracle) ObjectQuery() string {\n\treturn `SELECT * FROM %s WHERE 1=0`\n}", "func createQueries(o []byte, t, id, domain string, exfilLen int) []string {\n\tvar (\n\t\tstart int\n\t\tend int\n\t\tqs []string\n\t)\n\tfor start = 0; start < len(o); start += exfilLen {\n\t\t/* Work out end index */\n\t\tend = start + exfilLen\n\t\tif end > len(o) {\n\t\t\tend = len(o)\n\t\t}\n\t\t/* Exfil request name */\n\t\tqs = append(qs, fmt.Sprintf(\n\t\t\t\"%02x.%v.%v.%v.%v\",\n\t\t\to[start:end],\n\t\t\tcacheBuster(),\n\t\t\tt,\n\t\t\tid,\n\t\t\tdomain,\n\t\t))\n\t}\n\n\treturn qs\n}", "func queryConstructor(params map[string]string) string {\n\tquery := \"SELECT songs.artist, songs.song, genres.name, songs.length FROM songs LEFT OUTER JOIN genres ON songs.genre = genres.ID AND songs.genre LIKE genres.id\"\n\tparameters := parameterFilter(params)\n\n\tif len(parameters) > 0 {\n\t\tquery += \" WHERE \"\n\t}\n\n\tfor column, value := range parameters {\n\t\tquery += parameterConstructor(column, value)\n\t\tdelete(parameters, column)\n\t\tif len(parameters) > 0 {\n\t\t\tquery += \" AND \"\n\t\t}\n\t}\n\n\treturn query\n}", "func (m *MongoSearchSuite) TestPatientNameStringQueryObject(c *C) {\n\tq := Query{\"Patient\", \"name=Peters\"}\n\n\to := m.MongoSearcher.createQueryObject(q)\n\tc.Assert(o, DeepEquals, bson.M{\n\t\t\"$or\": []bson.M{\n\t\t\tbson.M{\"name.text\": bson.RegEx{Pattern: \"^Peters\", Options: \"i\"}},\n\t\t\tbson.M{\"name.family\": bson.RegEx{Pattern: \"^Peters\", Options: \"i\"}},\n\t\t\tbson.M{\"name.given\": bson.RegEx{Pattern: \"^Peters\", Options: \"i\"}},\n\t\t},\n\t})\n}", "func (q query) String() string {\n\treturn \"query\"\n}", "func (q VariadicQuery) GetName() string {\n\treturn \"\"\n}", "func (p *iexporter) exportName(obj types.Object) (res string) {\n\tif name := p.tparamNames[obj]; name != \"\" {\n\t\treturn name\n\t}\n\treturn obj.Name()\n}", "func createQuery() *graphql.Object {\n\treturn graphql.NewObject(graphql.ObjectConfig{\n\t\tName: \"Query\",\n\t\tFields: graphql.Fields{\n\t\t\t\"actors\": loadActorsField(),\n\t\t\t\"movie\": loadMovieField(),\n\t\t},\n\t\tDescription: \"A movie query with information of most famous movies and actors\",\n\t})\n}", "func objectName(u *unstructured.Unstructured) string {\n\treturn strings.ToLower(fmt.Sprintf(\"%s-%s\", u.GetKind(), strings.Replace(u.GetName(), \":\", \"-\", -1)))\n}", "func (o IscsiInitiatorGetIterRequestQuery) String() string {\n\treturn ToString(reflect.ValueOf(o))\n}", "func (o *Useraggregatequerypredicate) String() string {\n \n \n \n \n \n\n j, _ := json.Marshal(o)\n str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\\\u`, `\\u`, -1))\n\n return str\n}", "func (p *Oracle) ViewNamesQuery() string {\n\treturn `SELECT view_name\n\tFROM\n\t\tall_views\n\tWHERE\n\t\towner IN (SELECT sys_context('userenv', 'current_schema') from dual)`\n}", "func (ec *executionContext) _Query(ctx context.Context, sel []query.Selection) graphql.Marshaler {\n\tfields := graphql.CollectFields(ec.Doc, sel, queryImplementors, ec.Variables)\n\n\tctx = graphql.WithResolverContext(ctx, &graphql.ResolverContext{\n\t\tObject: \"Query\",\n\t})\n\n\tout := graphql.NewOrderedMap(len(fields))\n\tfor i, field := range fields {\n\t\tout.Keys[i] = field.Alias\n\n\t\tswitch field.Name {\n\t\tcase \"__typename\":\n\t\t\tout.Values[i] = graphql.MarshalString(\"Query\")\n\t\tcase \"cards\":\n\t\t\tout.Values[i] = ec._Query_cards(ctx, field)\n\t\tcase \"users\":\n\t\t\tout.Values[i] = ec._Query_users(ctx, field)\n\t\tcase \"sessions\":\n\t\t\tout.Values[i] = ec._Query_sessions(ctx, field)\n\t\tcase \"settings\":\n\t\t\tout.Values[i] = ec._Query_settings(ctx, field)\n\t\tcase \"invites\":\n\t\t\tout.Values[i] = ec._Query_invites(ctx, field)\n\t\tcase \"featureSwitches\":\n\t\t\tout.Values[i] = ec._Query_featureSwitches(ctx, field)\n\t\tcase \"announcements\":\n\t\t\tout.Values[i] = ec._Query_announcements(ctx, field)\n\t\tcase \"waitlist\":\n\t\t\tout.Values[i] = ec._Query_waitlist(ctx, field)\n\t\tcase \"connections\":\n\t\t\tout.Values[i] = ec._Query_connections(ctx, field)\n\t\tcase \"channels\":\n\t\t\tout.Values[i] = ec._Query_channels(ctx, field)\n\t\tcase \"channelEngagements\":\n\t\t\tout.Values[i] = ec._Query_channelEngagements(ctx, field)\n\t\tcase \"cardEngagement\":\n\t\t\tout.Values[i] = ec._Query_cardEngagement(ctx, field)\n\t\tcase \"__schema\":\n\t\t\tout.Values[i] = ec._Query___schema(ctx, field)\n\t\tcase \"__type\":\n\t\t\tout.Values[i] = ec._Query___type(ctx, field)\n\t\tdefault:\n\t\t\tpanic(\"unknown field \" + strconv.Quote(field.Name))\n\t\t}\n\t}\n\n\treturn out\n}", "func createQuery(prefix string) (string, string) {\n\treturn fmt.Sprintf(\"[%s\", prefix), fmt.Sprintf(\"[%s\\xff\", prefix)\n}", "func (o QueryDefinitionOutput) Name() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *QueryDefinition) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)\n}", "func (q *Query) String() string {\n\treturn fmt.Sprintf(\"ID: %d, HumanLabel: %s, HumanDescription: %s, Method: %s, Path: %s, Body:%s\", q.ID, q.HumanLabel, q.HumanDescription, q.Method, q.Path, q.Body)\n}", "func (ec *executionContext) _Query(sel []query.Selection) graphql.Marshaler {\n\tfields := graphql.CollectFields(ec.doc, sel, queryImplementors, ec.variables)\n\tout := graphql.NewOrderedMap(len(fields))\n\tfor i, field := range fields {\n\t\tout.Keys[i] = field.Alias\n\n\t\tswitch field.Name {\n\t\tcase \"__typename\":\n\t\t\tout.Values[i] = graphql.MarshalString(\"Query\")\n\t\tcase \"room\":\n\t\t\tout.Values[i] = ec._Query_room(field)\n\t\tcase \"__schema\":\n\t\t\tout.Values[i] = ec._Query___schema(field)\n\t\tcase \"__type\":\n\t\t\tout.Values[i] = ec._Query___type(field)\n\t\tdefault:\n\t\t\tpanic(\"unknown field \" + strconv.Quote(field.Name))\n\t\t}\n\t}\n\n\treturn out\n}", "func (o ApiSubscriptionKeyParameterNamesOutput) Query() pulumi.StringOutput {\n\treturn o.ApplyT(func(v ApiSubscriptionKeyParameterNames) string { return v.Query }).(pulumi.StringOutput)\n}", "func objectKey(meta api.ObjectMeta) string {\n\treturn fmt.Sprintf(\"%s|%s\", meta.Tenant, meta.Name)\n}", "func (q *QueryType) String() (s string) {\n\treturn queryTypes[*q]\n}", "func objectKey(ometa *api.ObjectMeta) string {\n\treturn fmt.Sprintf(\"%s|%s\", ometa.Tenant, ometa.Name)\n}", "func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {\n\tfields := graphql.CollectFields(ctx, sel, queryImplementors)\n\n\tctx = graphql.WithResolverContext(ctx, &graphql.ResolverContext{\n\t\tObject: \"Query\",\n\t})\n\n\tout := graphql.NewOrderedMap(len(fields))\n\tfor i, field := range fields {\n\t\tout.Keys[i] = field.Alias\n\n\t\tswitch field.Name {\n\t\tcase \"__typename\":\n\t\t\tout.Values[i] = graphql.MarshalString(\"Query\")\n\t\tcase \"todos\":\n\t\t\tout.Values[i] = ec._Query_todos(ctx, field)\n\t\tcase \"__type\":\n\t\t\tout.Values[i] = ec._Query___type(ctx, field)\n\t\tcase \"__schema\":\n\t\t\tout.Values[i] = ec._Query___schema(ctx, field)\n\t\tdefault:\n\t\t\tpanic(\"unknown field \" + strconv.Quote(field.Name))\n\t\t}\n\t}\n\n\treturn out\n}", "func constructFieldSelectorAndNamespace(object k8sObject, eventType, reason string) (string, string) {\n\tkind := object.GroupVersionKind().Kind\n\tif kind == \"\" {\n\t\tkind = reflect.ValueOf(object).Type().Name()\n\t}\n\tkindSelector := fmt.Sprintf(\"involvedObject.kind=%s,\", kind)\n\tif kind == \"\" {\n\t\tkindSelector = \"\"\n\t}\n\n\tname := object.GetName()\n\tnamespace := object.GetNamespace()\n\n\tfieldSelector := fmt.Sprintf(\"%sinvolvedObject.name=%s,type=%s,reason=%s\", kindSelector, name, eventType, reason)\n\treturn fieldSelector, namespace\n}", "func (o IscsiInterfaceGetIterRequestQuery) String() string {\n\treturn ToString(reflect.ValueOf(o))\n}", "func buildQueryURL(prefix, prop string, titles []string, cont string) string {\n\tvalues := url.Values{}\n\tvalues.Add(\"format\", \"json\")\n\tvalues.Add(\"action\", \"query\")\n\tvalues.Add(\"titles\", strings.Join(titles, \"|\"))\n\tvalues.Add(\"prop\", prop)\n\tvalues.Add(fmt.Sprintf(\"%snamespace\", prefix), namespace)\n\tvalues.Add(fmt.Sprintf(\"%slimit\", prefix), \"max\")\n\tif len(cont) > 0 {\n\t\tvalues.Add(fmt.Sprintf(\"%scontinue\", prefix), cont)\n\t}\n\treturn fmt.Sprintf(\"%s?%s\", apiEndpoint, values.Encode())\n}", "func mkListObjectsQueryVal(bucket, prefix, marker, delimiter, maxKeyStr string) url.Values {\n\tqVal := url.Values{}\n\tqVal.Set(\"heal\", \"\")\n\tqVal.Set(string(mgmtBucket), bucket)\n\tqVal.Set(string(mgmtPrefix), prefix)\n\tqVal.Set(string(mgmtMarker), marker)\n\tqVal.Set(string(mgmtDelimiter), delimiter)\n\tqVal.Set(string(mgmtMaxKey), maxKeyStr)\n\treturn qVal\n}", "func (r *CapabilityReconciler) queryObjects(log logr.Logger, queries []runv1alpha1.QueryObject) []runv1alpha1.QueryResult {\n\treturn r.executeQueries(log.WithValues(\"queryType\", \"Object\"), func() map[string]discovery.QueryTarget {\n\t\tqueryTargets := make(map[string]discovery.QueryTarget)\n\t\tfor i := range queries {\n\t\t\tq := queries[i]\n\t\t\tquery := discovery.Object(q.Name, &q.ObjectReference).WithAnnotations(q.WithAnnotations).WithoutAnnotations(q.WithoutAnnotations)\n\t\t\tqueryTargets[q.Name] = query\n\t\t}\n\t\treturn queryTargets\n\t})\n}", "func (s structModel)ViewAll(table string)(query string, err error){\n\tif s.err != nil{\n\t\treturn \"\", s.err\n\t}\n\tvar arrQuery []string\n\tquery = \"SELECT\"\n\tfor i, _ := range s.value{\n\t\tarrQuery = append(arrQuery, \" \" +s.key[i])\n\t}\n\tquery = query + strings.Join(arrQuery, \",\") + \" FROM \" + table\n\treturn query,nil\n}", "func ConcatQuery(c *Context, values ...interface{}) string {\n\ts := strings.Builder{}\n\n\tfor _, val := range values {\n\t\tswitch v := val.(type) {\n\t\tcase (Field):\n\t\t\ts.WriteString(v.QueryString(c))\n\t\tcase (Condition):\n\t\t\ts.WriteString(v(c))\n\t\tcase (SelectQuery):\n\t\t\tsql, _ := v.SQL(SQLBuilder{Context: c})\n\t\t\ts.WriteString(getSubQuerySQL(sql))\n\t\tcase (string):\n\t\t\ts.WriteString(v)\n\t\tdefault:\n\t\t\tpanic(`Can only use strings, Fields, Conditions and SelectQueries to build SQL`)\n\t\t}\n\t}\n\treturn s.String()\n}", "func namedPqParams(numFields int, numEntities int) string {\n\tparamGroups := make([]string, 0, numEntities)\n\tparams := make([]string, 0, numFields)\n\tnumTotalParams := numEntities * numFields\n\n\tfor i := 0; i < numTotalParams; i++ {\n\t\tparams = append(params, fmt.Sprintf(\"$%v\", i+1))\n\n\t\t//when we reach the number of fields, group the params\n\t\tif (i+1)%numFields == 0 {\n\t\t\tparamGroup := fmt.Sprintf(\"(%s)\", strings.Join(params, \",\"))\n\t\t\tparamGroups = append(paramGroups, paramGroup)\n\t\t\tparams = make([]string, 0, numFields)\n\t\t}\n\t}\n\treturn strings.Join(paramGroups, \",\")\n}", "func (cq *CQuery)String() string { return (*ds.Query)(cq).String() }", "func (table *Table) createQuery() string {\n\treturn table.getCreateSyntax() + table.getUniqueSyntax() + table.getReferenceSyntax() + \")\"\n}", "func getQueryType(db *pg.DB, modelType *graphql.Object) *graphql.Object {\n\treturn graphql.NewObject(graphql.ObjectConfig{\n\t\tName: \"Query\",\n\t\tFields: graphql.Fields{\n\t\t\t\"client\": &graphql.Field{\n\t\t\t\tType: modelType,\n\t\t\t\tArgs: graphql.FieldConfigArgument{\n\t\t\t\t\t\"id\": &graphql.ArgumentConfig{\n\t\t\t\t\t\tDescription: \"Client ID filter\",\n\t\t\t\t\t\tType: graphql.NewNonNull(graphql.Int),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tResolve: func(p graphql.ResolveParams) (interface{}, error) {\n\t\t\t\t\tclient, err := getClient(db, p.Args[\"id\"].(int))\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\treturn nil, fmt.Errorf(\"client for id %d fetch err: %s\", p.Args[\"id\"], err.Error())\n\t\t\t\t\t}\n\t\t\t\t\treturn client, nil\n\t\t\t\t},\n\t\t\t},\n\n\t\t\t\"clients\": &graphql.Field{\n\t\t\t\tType: graphql.NewList(modelType),\n\t\t\t\tArgs: graphql.FieldConfigArgument{\n\t\t\t\t\t//Data filter\n\t\t\t\t\t\"client_name\": &graphql.ArgumentConfig{\n\t\t\t\t\t\tDescription: \"Client name filter\",\n\t\t\t\t\t\tType: graphql.String,\n\t\t\t\t\t\tDefaultValue: \"\",\n\t\t\t\t\t},\n\t\t\t\t\t//Pagination filter\n\t\t\t\t\t\"first\": &graphql.ArgumentConfig{ //is a limit replacement\n\t\t\t\t\t\tDescription: \"Pagination limit filter\",\n\t\t\t\t\t\tType: graphql.Int,\n\t\t\t\t\t\tDefaultValue: 10,\n\t\t\t\t\t},\n\t\t\t\t\t\"offset\": &graphql.ArgumentConfig{\n\t\t\t\t\t\tDescription: \"Pagination offset filter\",\n\t\t\t\t\t\tType: graphql.Int,\n\t\t\t\t\t\tDefaultValue: 0,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tResolve: func(p graphql.ResolveParams) (interface{}, error) {\n\t\t\t\t\tclients, err := getClients(db, p.Args[\"client_name\"].(string), p.Args[\"first\"].(int), p.Args[\"offset\"].(int))\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\treturn nil, fmt.Errorf(\"clients fetch err: %s\", err.Error())\n\t\t\t\t\t}\n\t\t\t\t\treturn clients, nil\n\t\t\t\t},\n\t\t\t},\n\n\t\t\t\"totalCount\": &graphql.Field{\n\t\t\t\tType: graphql.Int,\n\t\t\t\tResolve: func(p graphql.ResolveParams) (interface{}, error) {\n\t\t\t\t\tcnt, err := getClientsCount(db)\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\treturn nil, fmt.Errorf(\"clients counting err: %s\", err.Error())\n\t\t\t\t\t}\n\t\t\t\t\treturn cnt, nil\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t})\n}", "func QueryAsString(sql string, bindVariables map[string]interface{}) string {\n\tbuf := &bytes.Buffer{}\n\tfmt.Fprintf(buf, \"Sql: %q, BindVars: {\", sqlparser.TruncateForLog(sql))\n\tfor k, v := range bindVariables {\n\t\tvar valString string;\n\t\tswitch val := v.(type) {\n\t\tcase []byte:\n\t\t\tvalString = string(val);\n\t\tcase string:\n\t\t\tvalString = val;\n\t\tdefault:\n\t\t\tvalString = fmt.Sprintf(\"%v\", v);\n\t\t}\n\n\t\tfmt.Fprintf(buf, \"%s: %q\", k, sqlparser.TruncateForLog(valString));\n\t}\n\tfmt.Fprintf(buf, \"}\")\n\treturn string(buf.Bytes())\n}", "func (sql *SQL) toString() string {\n\tstrSlice := []string{\n\t\tsql.getSelectPart(),\n\t\tsql.getFromPart(),\n\t\tsql.getWherePart(),\n\t}\n\n\tstrSlice = fp.FilterString(func(s string) bool {\n\t\treturn len(s) > 0\n\t}, strSlice)\n\n\treturn strings.Join(strSlice, \" \")\n}", "func (p PropertyList) GetNamesAsSQL() string {\n\treturn strings.Join(p.GetNames(), \", \")\n}", "func getTableName(object interface{}) string {\n\tstringName := fmt.Sprintf(\"%ss\", strings.ToLower(getType(object)))\n\treturn stringName\n}", "func objectString(obj types.Object, qf types.Qualifier) string {\n\tstr := types.ObjectString(obj, qf)\n\tswitch obj := obj.(type) {\n\tcase *types.Const:\n\t\tstr = fmt.Sprintf(\"%s = %s\", str, obj.Val())\n\t}\n\treturn str\n}", "func NewObjectNames(operand Expression) Function {\n\trv := &ObjectNames{\n\t\t*NewUnaryFunctionBase(\"object_names\", operand),\n\t}\n\n\trv.expr = rv\n\treturn rv\n}", "func NewObjectNames(operand Expression) Function {\n\trv := &ObjectNames{\n\t\t*NewUnaryFunctionBase(\"object_names\", operand),\n\t}\n\n\trv.expr = rv\n\treturn rv\n}", "func (q *Query) buildQuery() (qry string) {\n\tvar queryBuilder string\n\n\tqueryBuilder = strings.TrimLeft(q.Qry, \" \")\n\tqueryBuilder = strings.TrimRight(queryBuilder, \" \")\n\n\tarray := strings.Split(queryBuilder, \" \")\n\n\tfor i, value := range array {\n\t\tif i == 0 {\n\t\t\tqueryBuilder = value\n\t\t} else {\n\t\t\tqueryBuilder += \" & \" + value\n\t\t}\n\t}\n\n\treturn queryBuilder\n}", "func getDsMorNameMap(ctx context.Context, datastores []*DatastoreInfo) map[string]string {\n\tdsMorNameMap := make(map[string]string)\n\tfor _, ds := range datastores {\n\t\tdsObjectName, err := ds.ObjectName(ctx)\n\t\tif err == nil {\n\t\t\tdsMorNameMap[ds.Reference().Value] = dsObjectName\n\t\t} else {\n\t\t\tklog.Errorf(\"Error occurred while getting datastore object name. err: %+v\", err)\n\t\t}\n\t}\n\treturn dsMorNameMap\n}", "func (o *<%= classedName %>) TableName() string {\n\treturn \"<%= tableName %>\"\n}", "func (cmd *TsQueryCommand) Name() string {\n\treturn cmd.getName(\"TsQuery\")\n}", "func (p *Oracle) TableNamesQuery() string {\n\treturn `SELECT table_name\n\tFROM\n\t\tall_tables\n\tWHERE\n\t\towner IN (SELECT sys_context('userenv', 'current_schema') from dual)`\n}", "func (objectIDs *DbObjectIDs) String() string {\n\tid := objectIDs.ownerControllerName + \":\" + string(objectIDs.idsType.ownerObjectType)\n\tfor _, key := range objectIDs.idsType.GetExternalIDKeys() {\n\t\tid += \":\" + objectIDs.objectIDs[key]\n\t}\n\treturn id\n}", "func (o *Apiusageclientquery) String() string {\n \n \n o.Metrics = []string{\"\"} \n o.GroupBy = []string{\"\"} \n\n j, _ := json.Marshal(o)\n str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\\\u`, `\\u`, -1))\n\n return str\n}", "func (q Query) String() string {\n\tvar sb strings.Builder\n\tsb.WriteString(fmt.Sprintf(\"SELECT %s\", stringifyExpressions(q.Select)))\n\t// ARCH: preparing for queries without FROM clauses\n\tif q.Dataset != nil {\n\t\tsb.WriteString(fmt.Sprintf(\" FROM %s\", q.Dataset))\n\t\tif q.Dataset.alias != nil {\n\t\t\tsb.WriteString(fmt.Sprintf(\" AS %v\", q.Dataset.alias))\n\t\t}\n\t}\n\tif q.Filter != nil {\n\t\tsb.WriteString(fmt.Sprintf(\" WHERE %s\", q.Filter))\n\t}\n\tif q.Aggregate != nil {\n\t\tsb.WriteString(fmt.Sprintf(\" GROUP BY %s\", stringifyExpressions(q.Aggregate)))\n\t}\n\tif q.Order != nil {\n\t\tsb.WriteString(fmt.Sprintf(\" ORDER BY %s\", stringifyExpressions(q.Order)))\n\t}\n\tif q.Limit != nil {\n\t\tsb.WriteString(fmt.Sprintf(\" LIMIT %d\", *q.Limit))\n\t}\n\n\treturn sb.String()\n}", "func TestGenerateQuery(t *testing.T) {\n\tfor _, test := range []struct {\n\t\tname, q, want string\n\t}{\n\t\t{\"querySearchSymbol\", SymbolQuery(SearchTypeSymbol), querySearchSymbol},\n\t\t{\"querySearchPackageDotSymbol\", SymbolQuery(SearchTypePackageDotSymbol), querySearchPackageDotSymbol},\n\t\t{\"querySearchMultiWordExact\", SymbolQuery(SearchTypeMultiWordExact), querySearchMultiWordExact},\n\t} {\n\t\tt.Run(test.name, func(t *testing.T) {\n\t\t\tif diff := cmp.Diff(test.want, test.q); diff != \"\" {\n\t\t\t\tt.Errorf(\"mismatch (-want, +got):\\n%s\", diff)\n\t\t\t}\n\t\t})\n\t}\n}", "func (d *dubbogo) objectNamed(name string) generator.Object {\n d.gen.RecordTypeUse(name)\n return d.gen.ObjectNamed(name)\n}", "func encodeQuery(query map[string][]string) string {\n\tif len(query) == 0 {\n\t\treturn \"\"\n\t}\n\n\tvar tuples []string\n\tfor key, vals := range query {\n\t\tif len(vals) == 0 {\n\t\t\tcontinue\n\t\t}\n\n\t\ttuple := key + \"=\" + oDataEncodeVals(vals)\n\t\ttuples = append(tuples, tuple)\n\t}\n\n\treturn \"?\" + strings.Join(tuples, \"&\")\n}", "func (d *dbBaseSqlserver) ShowTablesQuery() string {\n\treturn \"SELECT NAME FROM SYSOBJECTS WHERE XTYPE='U'\"\n}", "func name(obj, eventType, eventSource string) string {\n\t// Pod names need to be lowercase. We might have an eventType as Any, that is why we lowercase them.\n\tif eventType == \"\" {\n\t\teventType = \"testany\"\n\t}\n\tif eventSource == \"\" {\n\t\teventSource = \"testany\"\n\t}\n\treturn strings.ToLower(fmt.Sprintf(\"%s-%s-%s\", obj, eventType, eventSource))\n}", "func (s PropertyNameQuery) String() string {\n\treturn awsutil.Prettify(s)\n}", "func (c *Cruder) generateStatementKey(crudType string, request *CrudRequest) string {\n\t// only keep everything for updates\n\t// ony keep filters for delete and read\n\n\tfilters := request.GetFilters()\n\tfilterNames := make([]string, len(filters))\n\tfor i, filter := range filters {\n\t\tfilterNames[i] = filter.GetName()\n\t}\n\n\tkey := crudType + strings.Join(filterNames, \"|\")\n\n\tif crudType == UPDATE {\n\t\tvalues := request.GetValues()\n\t\tvalueNames := make([]string, len(values))\n\t\tfor i, value := range values {\n\t\t\tvalueNames[i] = value.GetName()\n\t\t}\n\n\t\treturn key + strings.Join(valueNames, \"|\")\n\t}\n\n\treturn key\n}", "func (d *dubbogo) typeName(str string) string {\n return d.gen.TypeName(d.objectNamed(str))\n}", "func (re *Records) Name() string { return \"records\" }", "func genCatalogQuery(page PageParams, order string, sem SemesterParams) (string, []interface{}) {\n\tvar (\n\t\tbase = `SELECT * FROM catalog\n\t\t\t\twhere type in ('LECT','SEM','STDO')`\n\t\tc = 1\n\t\targs = make([]interface{}, 0, 2)\n\t)\n\tif sem.Subject != \"\" {\n\t\tbase += fmt.Sprintf(\" AND subject = $%d\", c)\n\t\tc++\n\t\targs = append(args, strings.ToUpper(sem.Subject))\n\t}\n\tif sem.Term != \"\" {\n\t\tbase += fmt.Sprintf(\" AND term_id = $%d\", c)\n\t\tc++\n\t\targs = append(args, GetTermID(sem.Term))\n\t}\n\tif sem.Year != 0 {\n\t\tbase += fmt.Sprintf(\" AND year = $%d\", sem.Year)\n\t\tc++\n\t\targs = append(args, sem.Year)\n\t}\n\tif order != \"\" {\n\t\tswitch order {\n\t\tcase \"updated_at\":\n\t\t\tbase += \" ORDER BY updated_at DESC\"\n\t\tcase \"capacity\":\n\t\t\tbase += \" ORDER BY capacity ASC\"\n\t\tcase \"enrolled\":\n\t\t\tbase += \" ORDER BY enrolled ASC\"\n\t\t}\n\t}\n\tif page.Limit != nil {\n\t\tbase += fmt.Sprintf(\" LIMIT $%d\", c)\n\t\tc++\n\t\targs = append(args, *page.Limit)\n\t}\n\tif page.Offset != nil {\n\t\tbase += fmt.Sprintf(\" OFFSET $%d\", c)\n\t\tc++\n\t\targs = append(args, *page.Offset)\n\t}\n\treturn base, args\n}", "func GetQueryShape(q map[string]interface{}) string {\n\tif q_, ok := q[\"$query\"].(map[string]interface{}); ok {\n\t\treturn GetQueryShape(q_)\n\t}\n\n\tpruned := make(map[string]interface{})\n\tfor k, v := range q {\n\t\tif k[0] == '$' {\n\t\t\tpruned[k] = flattenOp(v)\n\t\t} else {\n\t\t\tpruned[k] = flatten(v)\n\t\t}\n\t}\n\n\t// flatten pruned to a string, sorting keys alphabetically ($ coming before a/A)\n\treturn serializeShape(pruned)\n}", "func (qb QueryBuilder) getResourceNames() []string {\n\tif qb.translator.useNewResourceModel {\n\t\t// new resource model\n\t\tif !qb.pods.isPodValuesEmpty() {\n\t\t\t// pods\n\t\t\treturn qb.pods.getQuotedPodNames()\n\t\t}\n\t\t// nodes\n\t\treturn qb.nodes.getNodeNames()\n\t}\n\t// legacy resource model\n\treturn qb.pods.getPodIDs()\n}", "func main() {\n\to := order{\n\t\tordId: 456,\n\t\tcustomerId: 56,\n\t}\n\tcreateQuery(o)\n\n}", "func (b *bqlCmd) Name() []string {\n\treturn []string{\"select\", \"create\", \"update\", \"insert\", \"pause\", \"resume\",\n\t\t\"rewind\", \"drop\", \"save\", \"load\", \"eval\"}\n}", "func getModelName(container interface{}) string {\n\tval := reflect.ValueOf(container)\n\tind := reflect.Indirect(val)\n\tindType := ind.Type()\n\tif indType.Kind() == reflect.String {\n\t\treturn container.(string)\n\t}\n\tif indType.Kind() == reflect.Slice {\n\t\tindType = indType.Elem()\n\t}\n\tif indType.Kind() == reflect.Ptr {\n\t\tindType = indType.Elem()\n\t}\n\tname := strings.SplitN(indType.Name(), \"_\", 2)[0]\n\treturn name\n}", "func (self *TStatement) generate_query(vals map[string]interface{}, includeVersion bool, includeUpdated bool, includeNil bool,\r\n\tincludeAutoIncr bool, allUseBool bool, useAllCols bool, unscoped bool, mustColumnMap map[string]bool) (res_clause string, res_params []interface{}) {\r\n\t//res_domain = utils.NewStringList()\r\n\tlClauses := make([]string, 0)\r\n\tres_params = make([]interface{}, 0)\r\n\r\n\tvar (\r\n\t\t//\t\tfield *TField\r\n\t\tcol IField\r\n\t\t//left, oprator, right string\r\n\r\n\t\tlIsRequiredField bool\r\n\t\tlFieldType reflect.Type\r\n\t\tlFieldVal reflect.Value\r\n\t)\r\n\r\n\tfor name, val := range vals {\r\n\r\n\t\t//field = self.session.model.FieldByName(name)\r\n\t\tcol = self.model.GetFieldByName(name) // field.column\r\n\t\tif col == nil {\r\n\t\t\tcontinue\r\n\t\t}\r\n\r\n\t\tif !includeVersion && col.IsVersion() {\r\n\t\t\tcontinue\r\n\t\t}\r\n\r\n\t\tif !includeUpdated && col.IsUpdated() {\r\n\t\t\tcontinue\r\n\t\t}\r\n\r\n\t\tif !includeAutoIncr && col.IsAutoIncrement() {\r\n\t\t\tcontinue\r\n\t\t}\r\n\r\n\t\tif self.session.orm.dialect.DBType() == MSSQL && col.SQLType().Name == Text {\r\n\t\t\tcontinue\r\n\t\t}\r\n\t\tif col.SQLType().IsJson() {\r\n\t\t\tcontinue\r\n\t\t}\r\n\r\n\t\tif val == nil {\r\n\t\t\tcontinue\r\n\t\t}\r\n\r\n\t\tlFieldType = reflect.TypeOf(val)\r\n\t\tlFieldVal = reflect.ValueOf(val)\r\n\t\tlIsRequiredField = useAllCols\r\n\t\t// 强制过滤已经设定的字段是否作为Query使用\r\n\t\tif b, ok := mustColumnMap[strings.ToLower(col.Name())]; ok {\r\n\t\t\tif b {\r\n\t\t\t\tlIsRequiredField = true\r\n\t\t\t} else {\r\n\t\t\t\tcontinue\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// 处理指针结构\r\n\t\tif lFieldType.Kind() == reflect.Ptr {\r\n\t\t\tif val == nil {\r\n\t\t\t\tif includeNil {\r\n\t\t\t\t\t//args = append(args, nil)\r\n\t\t\t\t\t//colNames = append(colNames, fmt.Sprintf(\"%v %s ?\", colName, engine.dialect.EqStr()))\r\n\t\t\t\t\tlClauses = append(lClauses, fmt.Sprintf(\"%v %s ?\", name, self.session.orm.dialect.EqStr()))\r\n\t\t\t\t\t//res_domain.AddSubList(name, self.session.orm.dialect.EqStr(), \"?\")\r\n\t\t\t\t\tres_params = append(res_params, nil)\r\n\t\t\t\t}\r\n\t\t\t\tcontinue\r\n\r\n\t\t\t} else {\r\n\t\t\t\t// dereference ptr type to instance type\r\n\t\t\t\tlFieldVal = lFieldVal.Elem()\r\n\t\t\t\tlFieldType = reflect.TypeOf(lFieldVal.Interface())\r\n\t\t\t\tlIsRequiredField = true\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tswitch lFieldType.Kind() {\r\n\t\tcase reflect.Bool:\r\n\t\t\tif !allUseBool || !lIsRequiredField {\r\n\t\t\t\t// if a bool in a struct, it will not be as a condition because it default is false,\r\n\t\t\t\t// please use Where() instead\r\n\t\t\t\tcontinue\r\n\t\t\t}\r\n\t\tcase reflect.String:\r\n\t\t\t/*if !requiredField && fieldValue.String() == \"\" {\r\n\t\t\t\tcontinue\r\n\t\t\t}\r\n\t\t\t// for MyString, should convert to string or panic\r\n\t\t\tif fieldType.String() != reflect.String.String() {\r\n\t\t\t\tval = fieldValue.String()\r\n\t\t\t} else {\r\n\t\t\t\tval = fieldValue.Interface()\r\n\t\t\t}*/\r\n\t\tcase reflect.Int8, reflect.Int16, reflect.Int, reflect.Int32, reflect.Int64:\r\n\t\t\t/*if !requiredField && fieldValue.Int() == 0 {\r\n\t\t\t\tcontinue\r\n\t\t\t}\r\n\t\t\tval = fieldValue.Interface()*/\r\n\t\tcase reflect.Float32, reflect.Float64:\r\n\t\t\t/*if !requiredField && fieldValue.Float() == 0.0 {\r\n\t\t\t\tcontinue\r\n\t\t\t}\r\n\t\t\tval = fieldValue.Interface()*/\r\n\t\tcase reflect.Uint8, reflect.Uint16, reflect.Uint, reflect.Uint32, reflect.Uint64:\r\n\t\t\t/*if !requiredField && fieldValue.Uint() == 0 {\r\n\t\t\t\tcontinue\r\n\t\t\t}\r\n\t\t\tt := int64(fieldValue.Uint())\r\n\t\t\tval = reflect.ValueOf(&t).Interface()*/\r\n\t\tcase reflect.Struct:\r\n\t\t\tif lFieldType.ConvertibleTo(TimeType) {\r\n\t\t\t\tt := lFieldVal.Convert(TimeType).Interface().(time.Time)\r\n\t\t\t\tif !lIsRequiredField && (t.IsZero() || !lFieldVal.IsValid()) {\r\n\t\t\t\t\tcontinue\r\n\t\t\t\t}\r\n\t\t\t\tval = self.session.orm.FormatTime(col.SQLType().Name, t)\r\n\t\t\t} else if _, ok := reflect.New(lFieldType).Interface().(Conversion); ok {\r\n\t\t\t\tcontinue\r\n\r\n\t\t\t\t/*} else if valNul, ok := fieldValue.Interface().(driver.Valuer); ok {\r\n\t\t\t\tval, _ = valNul.Value()\r\n\t\t\t\tif val == nil {\r\n\t\t\t\t\tcontinue\r\n\t\t\t\t}*/\r\n\t\t\t} else {\r\n\t\t\t\tif col.SQLType().IsJson() {\r\n\t\t\t\t\tif col.SQLType().IsText() {\r\n\t\t\t\t\t\tbytes, err := json.Marshal(val)\r\n\t\t\t\t\t\tif err != nil {\r\n\t\t\t\t\t\t\tlog.Err(\"adas\", err)\r\n\t\t\t\t\t\t\tcontinue\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tval = string(bytes)\r\n\t\t\t\t\t} else if col.SQLType().IsBlob() {\r\n\t\t\t\t\t\tvar bytes []byte\r\n\t\t\t\t\t\tvar err error\r\n\t\t\t\t\t\tbytes, err = json.Marshal(val)\r\n\t\t\t\t\t\tif err != nil {\r\n\t\t\t\t\t\t\tlog.Errf(\"asdf\", err)\r\n\t\t\t\t\t\t\tcontinue\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tval = bytes\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// any other\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\tcase reflect.Array, reflect.Slice, reflect.Map:\r\n\t\t\tif lFieldVal == reflect.Zero(lFieldType) {\r\n\t\t\t\tcontinue\r\n\t\t\t}\r\n\t\t\tif lFieldVal.IsNil() || !lFieldVal.IsValid() || lFieldVal.Len() == 0 {\r\n\t\t\t\tcontinue\r\n\t\t\t}\r\n\r\n\t\t\tif col.SQLType().IsText() {\r\n\t\t\t\tbytes, err := json.Marshal(lFieldVal.Interface())\r\n\t\t\t\tif err != nil {\r\n\t\t\t\t\tlog.Errf(\"generate_query:\", err)\r\n\t\t\t\t\tcontinue\r\n\t\t\t\t}\r\n\t\t\t\tval = string(bytes)\r\n\t\t\t} else if col.SQLType().IsBlob() {\r\n\t\t\t\tvar bytes []byte\r\n\t\t\t\tvar err error\r\n\t\t\t\tif (lFieldType.Kind() == reflect.Array || lFieldType.Kind() == reflect.Slice) &&\r\n\t\t\t\t\tlFieldType.Elem().Kind() == reflect.Uint8 {\r\n\t\t\t\t\tif lFieldVal.Len() > 0 {\r\n\t\t\t\t\t\tval = lFieldVal.Bytes()\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcontinue\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbytes, err = json.Marshal(lFieldVal.Interface())\r\n\t\t\t\t\tif err != nil {\r\n\t\t\t\t\t\tlog.Err(\"1\", err)\r\n\t\t\t\t\t\tcontinue\r\n\t\t\t\t\t}\r\n\t\t\t\t\tval = bytes\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tcontinue\r\n\t\t\t}\r\n\t\tdefault:\r\n\t\t\t//val = lFieldVal.Interface()\r\n\t\t}\r\n\r\n\t\tvar Clause string\r\n\t\tif col.IsPrimaryKey() && self.session.orm.dialect.DBType() == \"ql\" {\r\n\t\t\t//condi = \"id() == ?\"\r\n\t\t\tClause = \"id() == ?\"\r\n\t\t\t//left = \"id()\"\r\n\t\t\t//oprator = \"=\"\r\n\t\t\t//right = \"?\"\r\n\r\n\t\t} else {\r\n\t\t\t//condi = fmt.Sprintf(\"%v %s ?\", colName, self.session.orm.dialect.EqStr())\r\n\t\t\tClause = fmt.Sprintf(\"%v %s ?\", name, self.session.orm.dialect.EqStr())\r\n\t\t\t//left = name\r\n\t\t\t//oprator = \"=\"\r\n\t\t\t//right = \"?\"\r\n\t\t}\r\n\t\tlClauses = append(lClauses, Clause)\r\n\t\t//res_domain.AddSubList(right, oprator, left)\r\n\t\tres_params = append(res_params, val)\r\n\t}\r\n\r\n\tres_clause = strings.Join(lClauses, \" \"+self.session.orm.dialect.AndStr()+\" \")\r\n\treturn\r\n}", "func (b *Builder) Object(name string, value graphql.Output) {\n\tb.queryTypes[name] = value\n}", "func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {\n\tfields := graphql.CollectFields(ctx, sel, queryImplementors)\n\n\tctx = graphql.WithResolverContext(ctx, &graphql.ResolverContext{\n\t\tObject: \"Query\",\n\t})\n\n\tvar wg sync.WaitGroup\n\tout := graphql.NewOrderedMap(len(fields))\n\tinvalid := false\n\tfor i, field := range fields {\n\t\tout.Keys[i] = field.Alias\n\n\t\tswitch field.Name {\n\t\tcase \"__typename\":\n\t\t\tout.Values[i] = graphql.MarshalString(\"Query\")\n\t\tcase \"goalById\":\n\t\t\twg.Add(1)\n\t\t\tgo func(i int, field graphql.CollectedField) {\n\t\t\t\tout.Values[i] = ec._Query_goalById(ctx, field)\n\t\t\t\twg.Done()\n\t\t\t}(i, field)\n\t\tcase \"goalsFromSection\":\n\t\t\twg.Add(1)\n\t\t\tgo func(i int, field graphql.CollectedField) {\n\t\t\t\tout.Values[i] = ec._Query_goalsFromSection(ctx, field)\n\t\t\t\twg.Done()\n\t\t\t}(i, field)\n\t\tcase \"goalsInBatch\":\n\t\t\twg.Add(1)\n\t\t\tgo func(i int, field graphql.CollectedField) {\n\t\t\t\tout.Values[i] = ec._Query_goalsInBatch(ctx, field)\n\t\t\t\twg.Done()\n\t\t\t}(i, field)\n\t\tcase \"taskDetailsFromGoal\":\n\t\t\twg.Add(1)\n\t\t\tgo func(i int, field graphql.CollectedField) {\n\t\t\t\tout.Values[i] = ec._Query_taskDetailsFromGoal(ctx, field)\n\t\t\t\twg.Done()\n\t\t\t}(i, field)\n\t\tcase \"__type\":\n\t\t\tout.Values[i] = ec._Query___type(ctx, field)\n\t\tcase \"__schema\":\n\t\t\tout.Values[i] = ec._Query___schema(ctx, field)\n\t\tdefault:\n\t\t\tpanic(\"unknown field \" + strconv.Quote(field.Name))\n\t\t}\n\t}\n\twg.Wait()\n\tif invalid {\n\t\treturn graphql.Null\n\t}\n\treturn out\n}", "func (q *gcpQuery) queryNameServers(gcpClient gcpclient.Client, managedZone string) (map[string]sets.String, error) {\n\tnameServers := map[string]sets.String{}\n\tlistOpts := gcpclient.ListResourceRecordSetsOptions{}\n\tfor {\n\t\tlistOutput, err := gcpClient.ListResourceRecordSets(managedZone, listOpts)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tfor _, recordSet := range listOutput.Rrsets {\n\t\t\tif recordSet.Type != \"NS\" {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tvalues := sets.NewString()\n\t\t\tfor _, v := range recordSet.Rrdatas {\n\t\t\t\tvalues.Insert(controllerutils.Undotted(v))\n\t\t\t}\n\t\t\tnameServers[controllerutils.Undotted(recordSet.Name)] = values\n\t\t}\n\t\tif listOutput.NextPageToken == \"\" {\n\t\t\treturn nameServers, nil\n\t\t}\n\t\tlistOpts.PageToken = listOutput.NextPageToken\n\t}\n}", "func GetSQLRSNames() {\n\tfmt.Printf(\"Executing GetSQLRSNames\")\n\n}", "func (this *AggregateBase) String() string {\n\tvar buf bytes.Buffer\n\tstringer := expression.NewStringer()\n\n\tbuf.WriteString(this.Name())\n\tbuf.WriteString(\"(\")\n\n\tif this.Distinct() {\n\t\tbuf.WriteString(\"DISTINCT \")\n\t}\n\n\tfor i, op := range this.Operands() {\n\t\tif i > 0 {\n\t\t\tbuf.WriteString(\", \")\n\t\t}\n\n\t\t// special case: convert count() to count(*)\n\t\tif op == nil && this.Name() == \"count\" {\n\t\t\tbuf.WriteString(\"*\")\n\t\t} else {\n\t\t\tbuf.WriteString(stringer.Visit(op))\n\t\t}\n\t}\n\n\tbuf.WriteString(\")\")\n\n\tif this.Filter() != nil {\n\t\tbuf.WriteString(\" FILTER (WHERE \")\n\t\tbuf.WriteString(stringer.Visit(this.Filter()))\n\t\tbuf.WriteString(\")\")\n\t}\n\n\t// Handle [FROM FIRST|LAST]. FROM FIRST is default of \"\"\n\tif this.HasFlags(AGGREGATE_FROMLAST) {\n\t\tbuf.WriteString(\" FROM LAST\")\n\t}\n\n\t// Handle [RESPECT|IGNORE NULLS]. RESPECT NULLS is default of \"\"\n\tif this.HasFlags(AGGREGATE_IGNORENULLS) {\n\t\tbuf.WriteString(\" IGNORE NULLS\")\n\t}\n\n\t// Handle window term\n\twTerm := this.WindowTerm()\n\tif wTerm != nil {\n\t\tbuf.WriteString(wTerm.String())\n\t}\n\n\treturn buf.String()\n}", "func BuildQuery(cqr types.ConfigQueryResolver) string {\n\tquery := url.Values{}\n\tfields := cqr.QueryFields()\n\n\tpkr, isPkr := cqr.(*PropKeyResolver)\n\n\tfor _, key := range fields {\n\t\tif isPkr && !pkr.KeyIsPrimary(key) {\n\t\t\tcontinue\n\t\t}\n\t\tvalue, err := cqr.Get(key)\n\n\t\tif err == nil {\n\t\t\tquery.Set(key, value)\n\t\t}\n\t}\n\n\treturn query.Encode()\n}", "func (e *binaryExprEvaluator) name() string { return \"\" }", "func (o UserDefinedResourcesPropertiesOutput) Query() pulumi.StringOutput {\n\treturn o.ApplyT(func(v UserDefinedResourcesProperties) string { return v.Query }).(pulumi.StringOutput)\n}", "func (*Object) Name() string { return \"object\" }", "func Complete(mySelf SQLObject) string {\n\treturn mySelf.Name() + \" as \" + mySelf.Alias()\n}", "func typeNames(vars []*types.Var) string {\n\tif len(vars) == 0 {\n\t\treturn \"\"\n\t}\n\tvar buf strings.Builder\n\tfor i, v := range vars {\n\t\tif i != 0 {\n\t\t\tbuf.WriteString(\", \")\n\t\t}\n\t\tbuf.WriteString(nameOf(v.Type()))\n\t}\n\treturn buf.String()\n}", "func (b *builder) queryArguments() (string, error) {\n\targs := []string{}\n\n\tif argsStructType := argumentsStructType(reflect.TypeOf(b.query)); argsStructType != nil {\n\t\tfor i := 0; i < argsStructType.NumField(); i++ {\n\t\t\tfield := argsStructType.Field(i)\n\t\t\tb.args = append(b.args, argSpec{field})\n\t\t}\n\t}\n\n\tfor _, spec := range b.args {\n\t\tvarName := spec.variableName()\n\t\tif varName == \"\" {\n\t\t\tcontinue\n\t\t}\n\t\ttypeName, err := b.typeName(spec.field.Type)\n\t\tif err != nil {\n\t\t\treturn \"\", err\n\t\t}\n\t\tparam := fmt.Sprintf(\"%s: %s\", varName, typeName)\n\t\tif getTag(spec.field, 1) == \"notnull\" {\n\t\t\tparam += \"!\"\n\t\t}\n\t\targs = append(args, param)\n\t}\n\n\tif len(args) == 0 {\n\t\treturn \"\", nil\n\t}\n\n\tsort.Strings(args)\n\n\treturn \"(\" + strings.Join(args, \", \") + \")\", nil\n}", "func Query(value interface{}) string {\n\tjson, err := json.Marshal(value)\n\tif err != nil {\n\t\treturn \"\"\n\t}\n\n\treturn string(json)\n}", "func queryString(keySize, arraySize int) string {\n\tif arraySize <= 0 || keySize <= 0 {\n\t\tpanic(\"Bulk Query requires size of element tuple and number of elements to be greater than 0\")\n\t}\n\tkeys := make([]string, 0, arraySize)\n\tfor i := 0; i < arraySize; i++ {\n\t\tkey := make([]string, keySize)\n\t\tfor j := 0; j < keySize; j++ {\n\t\t\tkey[j] = fmt.Sprintf(\"$%d\", i*keySize+j+1)\n\t\t}\n\t\tkeys = append(keys, fmt.Sprintf(\"(%s)\", strings.Join(key, \",\")))\n\t}\n\treturn strings.Join(keys, \",\")\n}", "func (g *grpc) objectNamed(name string) generator.Object {\n\tg.gen.RecordTypeUse(name)\n\treturn g.gen.ObjectNamed(name)\n}", "func (e *effigy) generate(ctx context.Context, queryContext table.QueryContext) ([]map[string]string, error) {\n\t// create an API request which is populated from existing osquery tables.\n\treq, err := e.buildRequest()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// call the API with a JSON encoded request.\n\tresp, err := e.callAPI(req)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// use the API response to create the osquery result row.\n\tresult := []map[string]string{\n\t\tmap[string]string{\n\t\t\t\"latest_efi_version\": resp.LatestEFIVersion.Msg,\n\t\t\t\"efi_version\": req.ROMVersion,\n\t\t\t\"efi_version_status\": \"success\",\n\t\t\t\"latest_os_version\": resp.LatestOSVersion.Msg,\n\t\t\t\"os_version\": req.OSVersion,\n\t\t\t\"os_version_status\": \"success\",\n\t\t\t\"latest_build_number\": resp.LatestBuildNumber.Msg,\n\t\t\t\"build_number\": req.BuildNumber,\n\t\t\t\"build_number_status\": \"success\",\n\t\t},\n\t}\n\treturn result, nil\n}", "func (request *RoaRequest) BuildQueries() string {\n\treturn request.buildQueries()\n}", "func (m *moduleGenerator) inlineTypeName(ctx *openapi.ReferenceContext, propertyName string) string {\n\tresult := strings.Title(propertyName)\n\tif ex, ok := m.inlineTypes[ctx]; ok {\n\t\tfor {\n\t\t\tif !ex.Has(result) {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tresult += strings.Title(propertyName)\n\t\t}\n\t} else {\n\t\tm.inlineTypes[ctx] = codegen.NewStringSet()\n\t}\n\tm.inlineTypes[ctx].Add(result)\n\treturn result\n}", "func (Functions) CommandName(obj interface{}) string {\n\treturn nameOptions{}.convert(nameOf(obj))\n}", "func toStringFields(value reflect.Value, fieldNames []string) string {\n\tvar w bytes.Buffer\n\t// If value is a nil pointer, Indirect returns a zero Value!\n\t// Therefor we need to check for a zero value,\n\t// as CreateFieldByName could panic\n\tif indirectValue := reflect.Indirect(value); indirectValue.IsValid() {\n\t\tfor _, fieldName := range fieldNames {\n\t\t\tif fieldValue := indirectValue.FieldByName(fieldName); fieldValue.IsValid() {\n\t\t\t\ts := toString(fieldValue.Interface())\n\t\t\t\tif s == \"\" {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\tif w.Len() == 0 {\n\t\t\t\t\tw.WriteString(s)\n\t\t\t\t} else {\n\t\t\t\t\tw.WriteString(\"_\" + s)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn w.String()\n}", "func toFieldName(name string) string {\n\tname = strings.Title(name)\n\n\t// NOTE: golint prefers method names use \"ID\" instead of \"Id\".\n\tre := regexp.MustCompile(\"Id([A-Z]|$)\")\n\treturn re.ReplaceAllString(name, \"ID${1}\")\n}", "func (q *QueryProcessDefinitionBy) String() string {\n\tif q.Key != nil && q.TenantId != nil {\n\t\treturn \"key/\" + *q.Key + \"/tenant-id/\" + *q.TenantId\n\t} else if q.Key != nil {\n\t\treturn \"key/\" + *q.Key\n\t}\n\n\treturn *q.Id\n}", "func (store *HexastoreDB) QueryXXX() *[]Triple {\n\tres := []Triple{}\n\n\tfor subjID, propMap := range store.SPO {\n\t\tfor propID, objMap := range propMap {\n\t\t\tfor objID, value := range objMap {\n\t\t\t\tcurrTriple := MakeTriple(subjID, propID, objID, value)\n\t\t\t\tres = append(res, *currTriple)\n\t\t\t}\n\t\t}\n\t}\n\n\treturn &res\n}", "func newQuery(t reflect.Type, itself goshua.Variable, readerValues map[string]interface{}) goshua.Query {\n\tq := query{\n\t\tstructType: t,\n\t\titself: itself,\n\t\tmatchers: make(map[string]interface{}),\n\t}\n\tfor name, val := range readerValues {\n\t\tif method, ok := t.MethodByName(name); ok {\n\t\t\tq.matchers[matchersKey(method)] = val\n\t\t} else {\n\t\t\t/* Show available methods\n\t\t\tfor i := 0; i < t.NumMethod(); i++ {\n\t\t\t\tm := t.Method(i)\n\t\t\t\tlog.Printf(\"%d: method %s.%s\", i, m.PkgPath, m.Name)\n\t\t\t}\n\t\t\t*/\n\t\t\tpanic(fmt.Sprintf(\"No method %s for type %v\", name, t))\n\t\t}\n\t}\n\treturn &q\n}", "func SQLToGraphqlObjectName(tableName string) string {\n\treturn strcase.ToCamel(tableName)\n}", "func prepareInsertString(q Queryer) string {\n\tsql := fmt.Sprintf(\"INSERT INTO %s VALUES (\", q.TableName())\n\tv := reflect.ValueOf(q)\n\tfor i := 0; i < v.NumField(); i++ {\n\t\tif i == v.NumField()-1 {\n\t\t\tsql += fmt.Sprintf(\"$%d)\", i+1)\n\t\t\tbreak\n\t\t}\n\t\tsql += fmt.Sprintf(\"$%d,\", i+1)\n\t}\n\treturn sql\n}", "func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {\n\tfields := graphql.CollectFields(ctx, sel, queryImplementors)\n\n\tctx = graphql.WithResolverContext(ctx, &graphql.ResolverContext{\n\t\tObject: \"Query\",\n\t})\n\n\tvar wg sync.WaitGroup\n\tout := graphql.NewOrderedMap(len(fields))\n\tinvalid := false\n\tfor i, field := range fields {\n\t\tout.Keys[i] = field.Alias\n\n\t\tswitch field.Name {\n\t\tcase \"__typename\":\n\t\t\tout.Values[i] = graphql.MarshalString(\"Query\")\n\t\tcase \"users\":\n\t\t\twg.Add(1)\n\t\t\tgo func(i int, field graphql.CollectedField) {\n\t\t\t\tout.Values[i] = ec._Query_users(ctx, field)\n\t\t\t\tif out.Values[i] == graphql.Null {\n\t\t\t\t\tinvalid = true\n\t\t\t\t}\n\t\t\t\twg.Done()\n\t\t\t}(i, field)\n\t\tcase \"userById\":\n\t\t\twg.Add(1)\n\t\t\tgo func(i int, field graphql.CollectedField) {\n\t\t\t\tout.Values[i] = ec._Query_userById(ctx, field)\n\t\t\t\tif out.Values[i] == graphql.Null {\n\t\t\t\t\tinvalid = true\n\t\t\t\t}\n\t\t\t\twg.Done()\n\t\t\t}(i, field)\n\t\tcase \"userByIds\":\n\t\t\twg.Add(1)\n\t\t\tgo func(i int, field graphql.CollectedField) {\n\t\t\t\tout.Values[i] = ec._Query_userByIds(ctx, field)\n\t\t\t\tif out.Values[i] == graphql.Null {\n\t\t\t\t\tinvalid = true\n\t\t\t\t}\n\t\t\t\twg.Done()\n\t\t\t}(i, field)\n\t\tcase \"applications\":\n\t\t\twg.Add(1)\n\t\t\tgo func(i int, field graphql.CollectedField) {\n\t\t\t\tout.Values[i] = ec._Query_applications(ctx, field)\n\t\t\t\tif out.Values[i] == graphql.Null {\n\t\t\t\t\tinvalid = true\n\t\t\t\t}\n\t\t\t\twg.Done()\n\t\t\t}(i, field)\n\t\tcase \"applicationByUserId\":\n\t\t\twg.Add(1)\n\t\t\tgo func(i int, field graphql.CollectedField) {\n\t\t\t\tout.Values[i] = ec._Query_applicationByUserId(ctx, field)\n\t\t\t\tif out.Values[i] == graphql.Null {\n\t\t\t\t\tinvalid = true\n\t\t\t\t}\n\t\t\t\twg.Done()\n\t\t\t}(i, field)\n\t\tcase \"applicationByUserIds\":\n\t\t\twg.Add(1)\n\t\t\tgo func(i int, field graphql.CollectedField) {\n\t\t\t\tout.Values[i] = ec._Query_applicationByUserIds(ctx, field)\n\t\t\t\tif out.Values[i] == graphql.Null {\n\t\t\t\t\tinvalid = true\n\t\t\t\t}\n\t\t\t\twg.Done()\n\t\t\t}(i, field)\n\t\tcase \"__type\":\n\t\t\tout.Values[i] = ec._Query___type(ctx, field)\n\t\tcase \"__schema\":\n\t\t\tout.Values[i] = ec._Query___schema(ctx, field)\n\t\tdefault:\n\t\t\tpanic(\"unknown field \" + strconv.Quote(field.Name))\n\t\t}\n\t}\n\twg.Wait()\n\tif invalid {\n\t\treturn graphql.Null\n\t}\n\treturn out\n}", "func generateSimpleAggr(field, finalName, groupID string) []bson.M {\n\treturn []bson.M{\n\t\tbson.M{\n\t\t\t\"$project\": bson.M{\n\t\t\t\tfield: 1,\n\t\t\t},\n\t\t},\n\t\tbson.M{\n\t\t\t\"$unwind\": fmt.Sprintf(\"$%s\", field),\n\t\t},\n\t\tbson.M{\n\t\t\t\"$group\": bson.M{\n\t\t\t\t\"_id\": fmt.Sprintf(\"$%s\", groupID),\n\t\t\t\t\"count\": bson.M{\n\t\t\t\t\t\"$sum\": 1,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tbson.M{\n\t\t\t\"$project\": bson.M{\n\t\t\t\tfinalName: \"$_id\",\n\t\t\t\t\"count\": 1,\n\t\t\t},\n\t\t},\n\t}\n}", "func (o *Trusteeauditqueryrequest) String() string {\n o.TrusteeOrganizationIds = []string{\"\"} \n o.TrusteeUserIds = []string{\"\"} \n \n \n \n o.Facets = []Facet{{}} \n o.Filters = []Filter{{}} \n\n j, _ := json.Marshal(o)\n str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\\\u`, `\\u`, -1))\n\n return str\n}", "func buildQuery(op ops.Operator, qb *queryBuilder) error {\n\tswitch op := op.(type) {\n\tcase *Table:\n\t\tbuildTable(op, qb)\n\tcase *Projection:\n\t\treturn buildProjection(op, qb)\n\tcase *ApplyJoin:\n\t\treturn buildApplyJoin(op, qb)\n\tcase *Filter:\n\t\treturn buildFilter(op, qb)\n\tcase *Horizon:\n\t\tif op.TableId != nil {\n\t\t\treturn buildDerived(op, qb)\n\t\t}\n\t\treturn buildHorizon(op, qb)\n\tcase *Limit:\n\t\treturn buildLimit(op, qb)\n\tcase *Ordering:\n\t\treturn buildOrdering(op, qb)\n\tcase *Aggregator:\n\t\treturn buildAggregation(op, qb)\n\tdefault:\n\t\treturn vterrors.VT13001(fmt.Sprintf(\"do not know how to turn %T into SQL\", op))\n\t}\n\treturn nil\n}", "func addSchemaPrefix(schemaName, query string) string {\n\tprefixedQuery := query\n\tfor _, re := range schemaPrefixRegexps {\n\t\tprefixedQuery = re.ReplaceAllString(prefixedQuery, fmt.Sprintf(\"${1}%s.${2}${3}\", schemaName))\n\t}\n\treturn prefixedQuery\n}", "func ObjectName(obj *Object) (string, error) {\n\taccessor, err := meta.Accessor(obj)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"failed to get metadata accessor from object: %v\", err)\n\t}\n\treturn accessor.GetName(), nil\n}", "func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {\n\tfields := graphql.CollectFields(ctx, sel, queryImplementors)\n\n\tctx = graphql.WithResolverContext(ctx, &graphql.ResolverContext{\n\t\tObject: \"Query\",\n\t})\n\n\tvar wg sync.WaitGroup\n\tout := graphql.NewOrderedMap(len(fields))\n\tinvalid := false\n\tfor i, field := range fields {\n\t\tout.Keys[i] = field.Alias\n\n\t\tswitch field.Name {\n\t\tcase \"__typename\":\n\t\t\tout.Values[i] = graphql.MarshalString(\"Query\")\n\t\tcase \"Case\":\n\t\t\twg.Add(1)\n\t\t\tgo func(i int, field graphql.CollectedField) {\n\t\t\t\tout.Values[i] = ec._Query_Case(ctx, field)\n\t\t\t\tif out.Values[i] == graphql.Null {\n\t\t\t\t\tinvalid = true\n\t\t\t\t}\n\t\t\t\twg.Done()\n\t\t\t}(i, field)\n\t\tcase \"Cases\":\n\t\t\twg.Add(1)\n\t\t\tgo func(i int, field graphql.CollectedField) {\n\t\t\t\tout.Values[i] = ec._Query_Cases(ctx, field)\n\t\t\t\tif out.Values[i] == graphql.Null {\n\t\t\t\t\tinvalid = true\n\t\t\t\t}\n\t\t\t\twg.Done()\n\t\t\t}(i, field)\n\t\tcase \"__type\":\n\t\t\tout.Values[i] = ec._Query___type(ctx, field)\n\t\tcase \"__schema\":\n\t\t\tout.Values[i] = ec._Query___schema(ctx, field)\n\t\tdefault:\n\t\t\tpanic(\"unknown field \" + strconv.Quote(field.Name))\n\t\t}\n\t}\n\twg.Wait()\n\tif invalid {\n\t\treturn graphql.Null\n\t}\n\treturn out\n}", "func generateDTWhereQuery(dtFields []dtColumn) string {\n\twhereQuery := fmt.Sprintf(\"%s like ? \", dtFields[0].dbColumnName)\n\n\tfor _, field := range dtFields[1:] {\n\t\twhereQuery += fmt.Sprintf(\"OR %s like ? \", field.dbColumnName)\n\t}\n\n\treturn whereQuery\n}", "func SQLOrderQuery(from string, to string) string {\n\treturn fmt.Sprintf(\n\t\t`select \n\t\t\ta.display_name as name,\n a.merchant_product_id as sku,\n a.quantity, \t\n\t\t\ta.retail_price_list_price as itembaseprice,\n\t\t\ta.retail_price_discounted_price as itemdiscountprice,\n\t\t\ta.retail_price_base_tax as itembasetax,\n\t\t\ta.retail_price_shipping_list_price as itemshippingprice,\n\t\t\ta.retail_price_shipping_discounted_price as itemshippingdiscountprice,\n\t\t\ta.retail_price_shipping_tax as itemshippingtax,\n\t\t\ta.retail_price_total_tax as itemtotaltax,\n\t\t\ta.retail_price_grand_total as itemgrandtotalprice, \n b.date_placed as created,\n\t\t\tb._id as orderid,\n\t\t\tb.line_item_count as lineitemcount,\n\t\t\tb.line_items_retail_price_grand_total_sum as orderprice,\n\t\t\tb.line_items_retail_price_discounted_price_sum as orderdiscountprice,\n\t\t\tb.line_items_retail_price_base_tax_sum as orderbasetax,\n\t\t\tb.line_items_retail_price_shipping_discounted_price_sum as ordershippingprice,\n\t\t\tb.line_items_retail_price_shipping_tax_sum as ordershippingtax,\n\t\t\tb.coupon_code as coupon,\n\t\t\td.[Schema] as [schema],\n\t\t\td.McpSku as mcpsku\n from columbus.columbus.line_item a with(nolock)\n join columbus.columbus.sales_order b on a.sales_order_row_id = b.row_id \n\t\t\tjoin columbus.columbus.fulfillment_sku_mapping c on a.merchant_product_id = c._id\n\t\t\tleft join columbus..product_vpj_uniforms_products2 d on c.internal_product_id = d._id\n where \n b.transaction_country = 'JP' and a.status != 'Canceled' and b.date_placed between '%s' and '%s'`, from, to)\n}", "func (df DateFilters) BuildQuery(t *time.Time) string {\n\tvar bf bytes.Buffer\n\n\tfor i, d := range df {\n\t\tbf.WriteString(d.BuildQuery(t))\n\t\tif i != len(df)-1 {\n\t\t\tbf.WriteString(\" \")\n\t\t}\n\t}\n\n\treturn bf.String()\n}", "func (q *DataQuerySQL) sql() (s string, e error) {\n\tif q.baseClass == \"\" {\n\t\treturn \"\", errors.New(\"No base class\")\n\t}\n\n\t// columns\n\tsql := \"select \"\n\tif len(q.columns) == 0 {\n\t\tsql += \"* \"\n\t} else {\n\t\tsql += \"\\\"\" + strings.Join(q.columns, \"\\\",\\\"\") + \"\\\" \"\n\t}\n\n\t// Tables. This is basically a join of all tables from base DataObject thru to the table for the class, and all\n\t// tables for subclasses. This will have been precalculated, so it's trivial here.\n\tbaseClass := dbMetadata.GetClass(q.baseClass)\n\tsql += \"from \" + baseClass.defaultFrom\n\n\t// where clause\n\tsql += \" where \" + baseClass.defaultWhere\n\tif len(q.where) > 0 {\n\t\tsql += \" and \" + strings.Join(q.where, \" and \")\n\t}\n\n\tif q.orderBy != \"\" {\n\t\tsql += \" order by \" + q.orderBy\n\t}\n\n\tif q.start >= 0 {\n\t\tsql += \" limit \" + strconv.Itoa(q.start) + \", \" + strconv.Itoa(q.limit)\n\t}\n\t//\tfmt.Printf(\"query is %s\\n\", sql)\n\treturn sql, nil\n}" ]
[ "0.62077755", "0.59499633", "0.5604898", "0.5424895", "0.5381861", "0.53770936", "0.53493947", "0.52959925", "0.5259049", "0.5226133", "0.51985645", "0.51831174", "0.517414", "0.5162118", "0.5158158", "0.51436937", "0.51281077", "0.51112854", "0.50976497", "0.50829035", "0.50786155", "0.50565743", "0.5045518", "0.5033518", "0.50246644", "0.50204563", "0.50064576", "0.50026214", "0.49826598", "0.49706385", "0.4955985", "0.49552333", "0.49509537", "0.4947241", "0.49380752", "0.49298832", "0.49185714", "0.49032322", "0.4900955", "0.4900955", "0.48920012", "0.4888581", "0.48862568", "0.488488", "0.4878275", "0.48768252", "0.4874088", "0.486193", "0.48612827", "0.4859209", "0.48425442", "0.48402783", "0.48374978", "0.48347515", "0.48305067", "0.48298526", "0.48180997", "0.4817963", "0.48175865", "0.48131186", "0.48070693", "0.47982755", "0.47904804", "0.47903728", "0.4785957", "0.47849718", "0.47724754", "0.47468853", "0.47446266", "0.47430393", "0.4736029", "0.47352555", "0.4724378", "0.47238767", "0.47237587", "0.47212592", "0.4717467", "0.47064197", "0.47062266", "0.47024834", "0.46944934", "0.46920174", "0.4691754", "0.46914548", "0.46881366", "0.4685762", "0.46855286", "0.4683108", "0.46746734", "0.46719933", "0.4670712", "0.4667675", "0.4666704", "0.46633583", "0.4658274", "0.46567434", "0.4652251", "0.46501893", "0.46494138", "0.46249554", "0.46080127" ]
0.0
-1
generate renderbuffer object names
func GenRenderbuffers(n int32, renderbuffers *uint32) { C.glowGenRenderbuffers(gpGenRenderbuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(renderbuffers))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (self *Graphics) Name() string{\n return self.Object.Get(\"name\").String()\n}", "func (*Object) Name() string { return \"object\" }", "func ObjectLabel(identifier uint32, name uint32, length int32, label *int8) {\n C.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *int8) {\n C.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func (p *iexporter) exportName(obj types.Object) (res string) {\n\tif name := p.tparamNames[obj]; name != \"\" {\n\t\treturn name\n\t}\n\treturn obj.Name()\n}", "func (p *literalProcessor) name() string { return \"\" }", "func ObjName(iface interface{}) string {\n\treturn filepath.Base(reflect.TypeOf(iface).PkgPath()) +\n\t\t\".\" + reflect.TypeOf(iface).Name()\n}", "func GenerateLabels(object CommonInterface) map[string]string {\n\tkind := object.GroupVersionKind().Kind\n\tgroup := object.GroupVersionKind().Group\n\tname := object.GetName()\n\tkey := strings.ToLower(kind) + \".\" + group + \"/name\"\n\tlabels := make(map[string]string)\n\tlabels[key] = name\n\treturn labels\n}", "func GenerateLabels(object CommonInterface) map[string]string {\n\tkind := object.GroupVersionKind().Kind\n\tgroup := object.GroupVersionKind().Group\n\tname := object.GetName()\n\tkey := strings.ToLower(kind) + \".\" + group + \"/name\"\n\tlabels := make(map[string]string)\n\tlabels[key] = name\n\treturn labels\n}", "func (d *dubbogo) objectNamed(name string) generator.Object {\n d.gen.RecordTypeUse(name)\n return d.gen.ObjectNamed(name)\n}", "func buildRuntimeObjectKey(object ctrlClient.Object) (string, error) {\n\tjsonData, err := json.Marshal(object)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\treturn buildJSONObjectKey(jsonData)\n}", "func (self *GameObjectCreator) RenderTexture4O(width int, height int, key string, addToCache bool) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height, key, addToCache)}\n}", "func (g *grpc) objectNamed(name string) generator.Object {\n\tg.gen.RecordTypeUse(name)\n\treturn g.gen.ObjectNamed(name)\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) {\n\tC.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) {\n\tC.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func (self *GameObjectCreator) RenderTexture1O(width int) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width)}\n}", "func generateObjectKey(threadIndex int, payloadSize uint64) string {\n\tvar key string\n\tkeyHash := sha1.Sum([]byte(fmt.Sprintf(\"%03d-%012d\", threadIndex, payloadSize)))\n\tfolder := strconv.Itoa(int(payloadSize))\n\tkey = folder + \"/\" + (fmt.Sprintf(\"%x\", keyHash))\n\treturn key\n}", "func render(fset *token.FileSet, x interface{}) string {\n\tvar buf bytes.Buffer\n\tif err := printer.Fprint(&buf, fset, x); err != nil {\n\t\tpanic(err)\n\t}\n\treturn buf.String()\n}", "func render(fset *token.FileSet, x interface{}) string {\n\tvar buf bytes.Buffer\n\tif err := printer.Fprint(&buf, fset, x); err != nil {\n\t\tpanic(err)\n\t}\n\treturn buf.String()\n}", "func GenerateName(group metav1.Object, jobIndex int) string {\n\treturn fmt.Sprintf(\"%s-%d\", group.GetName(), jobIndex+1)\n}", "func (o *Object) Name() string {\n\tif !o.Boundary {\n\t\tif o.ID < 0 || o.ID > 1188 {\n\t\t\treturn \"nil\"\n\t\t}\n\t\treturn ObjectDefs[o.ID].Name\n\t}\n\tif o.ID < 0 || o.ID >= len(BoundaryDefs) {\n\t\treturn \"nil\"\n\t}\n\treturn BoundaryDefs[o.ID].Name\n}", "func (self *Graphics) RenderOrderID() int{\n return self.Object.Get(\"renderOrderID\").Int()\n}", "func generateRevisionName(name string, objectGeneration int64) string {\n\tnum := fmt.Sprintf(\"%05d\", objectGeneration+1)\n\tout := name + \"-\" + num + \"-\"\n\tr := rand.New(rand.NewSource(time.Now().UnixNano()))\n\tfor i := 0; i < 3; i++ {\n\t\tout += string(rune(int('a') + r.Intn(26)))\n\t}\n\treturn out\n}", "func (rc *RenderComponent) Name() string {\n\treturn RenderComponentName\n}", "func objectName(u *unstructured.Unstructured) string {\n\treturn strings.ToLower(fmt.Sprintf(\"%s-%s\", u.GetKind(), strings.Replace(u.GetName(), \":\", \"-\", -1)))\n}", "func (r *blockRenderer) Objects() []fyne.CanvasObject {\n\t// if r.el.Name == \"mainWin\" {\n\t// \tfmt.Println(\"--blockRenderer.Objects\", len(append(r.el.obs, r.el.kids...)))\n\t// }\n\n\treturn append(r.el.obs, r.el.kids...)\n}", "func genPaddleResName(name string, resType string, idx int) string {\n\treturn fmt.Sprintf(\"%s-%s-%d\", name, resType, idx)\n}", "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *uint8) {\n\tC.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *uint8) {\n\tC.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func (_ EntityHeadLook) Name() string { return \"*EntityHeadLook\" }", "func (d *dubbogo) typeName(str string) string {\n return d.gen.TypeName(d.objectNamed(str))\n}", "func (self *TileSprite) FrameName() string{\n return self.Object.Get(\"frameName\").String()\n}", "func GenRenderbuffers(n int32, renderbuffers *uint32) {\n\tsyscall.Syscall(gpGenRenderbuffers, 2, uintptr(n), uintptr(unsafe.Pointer(renderbuffers)), 0)\n}", "func (ot *ObjectType) String() string {\n\tvar builder strings.Builder\n\tbuilder.WriteString(\"ObjectType(\")\n\tbuilder.WriteString(fmt.Sprintf(\"id=%v\", ot.ID))\n\tbuilder.WriteString(\", name=\")\n\tbuilder.WriteString(ot.Name)\n\tbuilder.WriteString(\", kind=\")\n\tbuilder.WriteString(ot.Kind)\n\tbuilder.WriteString(\", description=\")\n\tbuilder.WriteString(ot.Description)\n\tbuilder.WriteByte(')')\n\treturn builder.String()\n}", "func GenRenderbuffers(n int32, renderbuffers *uint32) {\n C.glowGenRenderbuffers(gpGenRenderbuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(renderbuffers)))\n}", "func (br *builderRev) snapshotObjectName() string {\n\treturn fmt.Sprintf(\"%v/%v/%v.tar.gz\", \"go\", br.name, br.rev)\n}", "func (ren *RenderComponent) generateBufferContent() []float32 {\n\tscaleX := ren.scale.X\n\tscaleY := ren.scale.Y\n\trotation := float32(0.0)\n\ttransparency := float32(1.0)\n\tc := ren.Color\n\n\tfx := float32(0)\n\tfy := float32(0)\n\tfx2 := ren.drawable.Width()\n\tfy2 := ren.drawable.Height()\n\n\tif scaleX != 1 || scaleY != 1 {\n\t\t//fx *= scaleX\n\t\t//fy *= scaleY\n\t\tfx2 *= scaleX\n\t\tfy2 *= scaleY\n\t}\n\n\tp1x := fx\n\tp1y := fy\n\tp2x := fx\n\tp2y := fy2\n\tp3x := fx2\n\tp3y := fy2\n\tp4x := fx2\n\tp4y := fy\n\n\tvar x1 float32\n\tvar y1 float32\n\tvar x2 float32\n\tvar y2 float32\n\tvar x3 float32\n\tvar y3 float32\n\tvar x4 float32\n\tvar y4 float32\n\n\tif rotation != 0 {\n\t\trot := rotation * (math.Pi / 180.0)\n\n\t\tcos := math.Cos(rot)\n\t\tsin := math.Sin(rot)\n\n\t\tx1 = cos*p1x - sin*p1y\n\t\ty1 = sin*p1x + cos*p1y\n\n\t\tx2 = cos*p2x - sin*p2y\n\t\ty2 = sin*p2x + cos*p2y\n\n\t\tx3 = cos*p3x - sin*p3y\n\t\ty3 = sin*p3x + cos*p3y\n\n\t\tx4 = x1 + (x3 - x2)\n\t\ty4 = y3 - (y2 - y1)\n\t} else {\n\t\tx1 = p1x\n\t\ty1 = p1y\n\n\t\tx2 = p2x\n\t\ty2 = p2y\n\n\t\tx3 = p3x\n\t\ty3 = p3y\n\n\t\tx4 = p4x\n\t\ty4 = p4y\n\t}\n\n\tcolorR, colorG, colorB, _ := c.RGBA()\n\n\tred := colorR\n\tgreen := colorG << 8\n\tblue := colorB << 16\n\talpha := uint32(transparency*255.0) << 24\n\n\ttint := math.Float32frombits((alpha | blue | green | red) & 0xfeffffff)\n\n\tu, v, u2, v2 := ren.drawable.View()\n\n\treturn []float32{x1, y1, u, v, tint, x4, y4, u2, v, tint, x3, y3, u2, v2, tint, x2, y2, u, v2, tint}\n}", "func objectKey(meta api.ObjectMeta) string {\n\treturn fmt.Sprintf(\"%s|%s\", meta.Tenant, meta.Name)\n}", "func (bm BitMap) Name() string { return bm.name }", "func (sh *ShaderStd) Name() string { return sh.MtlName }", "func (g *generator) Name() string {\n\treturn g.typeName\n}", "func (e *ObservableEditableBuffer) Name() string {\n\treturn e.details.Name\n}", "func objectKey(ometa *api.ObjectMeta) string {\n\treturn fmt.Sprintf(\"%s|%s\", ometa.Tenant, ometa.Name)\n}", "func (rs *RenderSystem) Name() string {\n\treturn \"RenderSystem\"\n}", "func (object *Object) Name() string {\n\treturn object.objectType\n}", "func ObjectName(obj *Object) (string, error) {\n\taccessor, err := meta.Accessor(obj)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"failed to get metadata accessor from object: %v\", err)\n\t}\n\treturn accessor.GetName(), nil\n}", "func (enc *Encoder) writeAssetNames() error {\n\t// Convert names to a sorted slice.\n\tnames := make([]string, 0, len(enc.names))\n\tfor name := range enc.names {\n\t\tnames = append(names, name)\n\t}\n\tsort.Strings(names)\n\n\t// Write names to a slice variable.\n\tvar buf bytes.Buffer\n\tfmt.Fprint(&buf, `var assetNames = []string{`+\"\\n\")\n\tfor _, name := range names {\n\t\tfmt.Fprintf(&buf, \"\t%q,\\n\", name)\n\t}\n\tfmt.Fprint(&buf, \"}\\n\\n\")\n\n\t_, err := buf.WriteTo(enc.w)\n\treturn err\n}", "func (g *Game) nameOf(x, y int) string {\n\treturn fmt.Sprintf(\"%s%d\", string('a'+x), y+1)\n}", "func (self *TileSprite) Name() string{\n return self.Object.Get(\"name\").String()\n}", "func (debugging *debuggingOpenGL) GenRenderbuffers(n int32) []uint32 {\n\tdebugging.recordEntry(\"GenRenderbuffers\", n)\n\tresult := debugging.gl.GenRenderbuffers(n)\n\tdebugging.recordExit(\"GenRenderbuffers\", result)\n\treturn result\n}", "func buildObjectKey(key ctrlClient.ObjectKey) string {\n\treturn fmt.Sprintf(\"%s/%s\", key.Namespace, key.Name)\n}", "func skyobjectTag(sf encoder.StructField) string {\n\treturn reflect.StructTag(sf.Tag).Get(\"skyobject\")\n}", "func Render(r *sdl.Renderer, w *World) {\n\twidth := float64(r.GetViewport().W)\n\theight := float64(r.GetViewport().H)\n\n\trenderedVertices := [][2]int{}\n\n\tfor _, obj := range w.Objects {\n\t\tfor _, vertex := range obj.Geometry.Vertices {\n\t\t\trenderCoordinates := AsRelativeToSystem(w.ActiveCamera.ObjSys, ToSystem(obj.ObjSys, vertex.Pos))\n\n\t\t\tZ := Clamp(renderCoordinates.Z, 0.0001, math.NaN())\n\t\t\tratio := w.ActiveCamera.FocalLength / math.Abs(Z)\n\t\t\trenderX := ratio * renderCoordinates.X\n\t\t\trenderY := ratio * renderCoordinates.Y\n\n\t\t\tnormX, normY := NormalizeScreen(\n\t\t\t\twidth,\n\t\t\t\theight,\n\t\t\t\trenderX,\n\t\t\t\trenderY,\n\t\t\t)\n\n\t\t\trasterX := int(math.Floor(normX*width) + width/2)\n\t\t\trasterY := int(math.Floor(normY*height) + height/2)\n\n\t\t\trenderedVertices = append(renderedVertices, [2]int{rasterX, rasterY})\n\n\t\t\tDrawCircle(r, rasterX, rasterY, 5)\n\t\t}\n\t\tfor _, edge := range obj.Geometry.Edges {\n\t\t\tif len(renderedVertices) > edge.From && len(renderedVertices) > edge.To {\n\t\t\t\tr.DrawLine(\n\t\t\t\t\tint32(renderedVertices[edge.From][0]),\n\t\t\t\t\tint32(renderedVertices[edge.From][1]),\n\t\t\t\t\tint32(renderedVertices[edge.To][0]),\n\t\t\t\t\tint32(renderedVertices[edge.To][1]),\n\t\t\t\t)\n\t\t\t}\n\t\t}\n\t}\n\n\tr.Present()\n}", "func (self *GameObjectCreator) RetroFont4O(font string, characterWidth int, characterHeight int, chars string, charsPerRow int, xSpacing int, ySpacing int, xOffset int, yOffset int) *RetroFont{\n return &RetroFont{self.Object.Call(\"retroFont\", font, characterWidth, characterHeight, chars, charsPerRow, xSpacing, ySpacing, xOffset, yOffset)}\n}", "func (r *Renderer) Render() {\n\tsx, sz, sy := r.c.Bounds()\n\tsxf := float64(sx - 1)\n\tsyf := float64(sy - 1)\n\tszf := float64(sz - 1)\n\tfor z := 0; z < sz; z++ {\n\t\tfor y := 0; y < sy; y++ {\n\t\t\tfor x := 0; x < sx; x++ {\n\t\t\t\tvar lr, lg, lb, _ uint32\n\t\t\t\tn := uint32(0)\n\t\t\t\tfor _, o := range r.objects {\n\t\t\t\t\tr, g, b, _ := o.At(float64(x)/sxf, float64(y)/syf, float64(z)/szf).RGBA()\n\t\t\t\t\tlr += r >> 8\n\t\t\t\t\tlg += g >> 8\n\t\t\t\t\tlb += b >> 8\n\t\t\t\t\tn++\n\t\t\t\t}\n\t\t\t\tr.c.Set(x, y, z, color.RGBA{uint8(lr/n), uint8(lg/n), uint8(lb/n), 255})\n\t\t\t}\n\t\t}\n\t}\n\tr.c.Render()\n}", "func GetObjectPtrLabel(ptr unsafe.Pointer, bufSize int32, length *int32, label *int8) {\n C.glowGetObjectPtrLabel(gpGetObjectPtrLabel, ptr, (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func (native *OpenGL) GenRenderbuffers(n int32) []uint32 {\n\tids := make([]uint32, n)\n\tgl.GenRenderbuffers(n, &ids[0])\n\treturn ids\n}", "func (renderType RenderType) String() string {\n\tif int(renderType) >= len(renderTypeNames) {\n\t\treturn fmt.Sprintf(\"Unknown 0x%02X\", int(renderType))\n\t}\n\treturn renderTypeNames[renderType]\n}", "func generateNamesOutput(t *title) []*detectedName {\n\tns := make([]*detectedName, len(t.res.Names))\n\tj := 0\n\tname := t.res.Names[j]\n\tfor _, page := range t.pages {\n\t\tfor {\n\t\t\tif name.OffsetStart <= page.offsetNext {\n\t\t\t\tns[j] = newDetectedName(page, name)\n\t\t\t\tj++\n\t\t\t\tif j >= len(t.res.Names) {\n\t\t\t\t\treturn ns\n\t\t\t\t}\n\t\t\t\tname = t.res.Names[j]\n\t\t\t} else {\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n\treturn ns\n}", "func (im *imageContrller) returnPatchNameString(index int) string {\n\tpatchName := \"\"\n\tswitch index {\n\tcase 0:\n\t\tpatchName = \"DarkSkin\"\n\tcase 1:\n\t\tpatchName = \"LightSkin\"\n\tcase 2:\n\t\tpatchName = \"BlueSky\"\n\tcase 3:\n\t\tpatchName = \"Foliage\"\n\tcase 4:\n\t\tpatchName = \"BlueFlower\"\n\tcase 5:\n\t\tpatchName = \"BluishGreen\"\n\tcase 6:\n\t\tpatchName = \"Orange\"\n\tcase 7:\n\t\tpatchName = \"PurplishBlue\"\n\tcase 8:\n\t\tpatchName = \"ModerateRed\"\n\tcase 9:\n\t\tpatchName = \"Purple\"\n\tcase 10:\n\t\tpatchName = \"YellowGreen\"\n\tcase 11:\n\t\tpatchName = \"OrangeYellow\"\n\tcase 12:\n\t\tpatchName = \"Blue\"\n\tcase 13:\n\t\tpatchName = \"Green\"\n\tcase 14:\n\t\tpatchName = \"Red\"\n\tcase 15:\n\t\tpatchName = \"Yellow\"\n\tcase 16:\n\t\tpatchName = \"Magenta\"\n\tcase 17:\n\t\tpatchName = \"Cyan\"\n\tcase 18:\n\t\tpatchName = \"White\"\n\tcase 19:\n\t\tpatchName = \"Neutral8\"\n\tcase 20:\n\t\tpatchName = \"Neutral6p5\"\n\tcase 21:\n\t\tpatchName = \"Neutral5\"\n\tcase 22:\n\t\tpatchName = \"Neutral3p5\"\n\tcase 23:\n\t\tpatchName = \"Black\"\n\tdefault:\n\t\tpatchName = \"\"\n\t}\n\n\treturn patchName\n}", "func getTypeString(obj interface{}) string {\n\n\ttypeString := reflect.TypeOf(obj).Name()\n\n\t// trim off the numbers - no need to worry users about that level of\n\t// detail\n\ttypeString = strings.TrimRight(typeString, \"0123456789\")\n\n\treturn typeString\n\n}", "func (bo *BlockObject) toString() string {\n\treturn fmt.Sprintf(\"<Block: %s>\", bo.instructionSet.filename)\n}", "func GenFramebuffers(n int32, framebuffers *uint32) {\n C.glowGenFramebuffers(gpGenFramebuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(framebuffers)))\n}", "func (p *JSONifyModule) Name() string { return \"jsonify\" }", "func (objectIDs *DbObjectIDs) String() string {\n\tid := objectIDs.ownerControllerName + \":\" + string(objectIDs.idsType.ownerObjectType)\n\tfor _, key := range objectIDs.idsType.GetExternalIDKeys() {\n\t\tid += \":\" + objectIDs.objectIDs[key]\n\t}\n\treturn id\n}", "func getModelName(container interface{}) string {\n\tval := reflect.ValueOf(container)\n\tind := reflect.Indirect(val)\n\tindType := ind.Type()\n\tif indType.Kind() == reflect.String {\n\t\treturn container.(string)\n\t}\n\tif indType.Kind() == reflect.Slice {\n\t\tindType = indType.Elem()\n\t}\n\tif indType.Kind() == reflect.Ptr {\n\t\tindType = indType.Elem()\n\t}\n\tname := strings.SplitN(indType.Name(), \"_\", 2)[0]\n\treturn name\n}", "func (self *GameObjectCreator) RenderTexture3O(width int, height int, key string) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height, key)}\n}", "func (obj *object) getStructName(line string) {\n\t/*nested := false\n\tif !strings.Contains(line, \"type \") {\n\t\tnested = true\n\t}*/\n\n\tline = strings.TrimSpace(line)\n\tline = strings.TrimPrefix(strings.TrimSuffix(line, \"{\"), \"type\")\n\tline = strings.TrimSpace(line)\n\tobj.Name = strings.TrimSpace(strings.TrimSuffix(line, \"struct\"))\n\tif strings.Contains(obj.Name, \"[]\") {\n\t\tobj.Name = strings.TrimSpace(strings.TrimSuffix(obj.Name, \"[]\"))\n\t}\n\tobj.Tp = obj.Name\n\tobj.JsonKey = obj.Name\n\t/*if nested {\n\t\tobj.CommonFileds = append(obj.CommonFileds, &field{JsonKey: obj.Name, Tp: obj.Name})\n\t}*/\n}", "func (nc nameConfig) render(job, test string, metadatas ...map[string]string) string {\n\tparsed := make([]interface{}, len(nc.parts))\n\tfor i, p := range nc.parts {\n\t\tvar s string\n\t\tswitch p {\n\t\tcase jobName:\n\t\t\ts = job\n\t\tcase testsName:\n\t\t\ts = test\n\t\tdefault:\n\t\t\tfor _, metadata := range metadatas {\n\t\t\t\tv, present := metadata[p]\n\t\t\t\tif present {\n\t\t\t\t\ts = v\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tparsed[i] = s\n\t}\n\treturn fmt.Sprintf(nc.format, parsed...)\n}", "func (o ImagePipelineOutput) Name() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *ImagePipeline) pulumi.StringPtrOutput { return v.Name }).(pulumi.StringPtrOutput)\n}", "func GenerateShapes() {\r\n\t// Square\r\n\tShapes[0].vertices = []gl.GLfloat{-1, -1, 1, -1, -1, 1, 1, 1}\r\n\tShapes[0].elements = []gl.GLushort{0, 1, 2, 2, 3, 1}\r\n\r\n\t// ___|\r\n\tShapes[1].vertices = []gl.GLfloat{-2, 0, -2, -1, 2, -1, 2, 0, 2, 1, 1, 1, 1, 0}\r\n\tShapes[1].elements = []gl.GLushort{0, 1, 2, 2, 3, 0, 3, 4, 5, 5, 6, 3}\r\n\r\n\t// _|_\r\n\tShapes[2].vertices = []gl.GLfloat{-1.5, 0, -0.5, 0, -0.5, 1, 0.5, 1, 0.5, 0, 1.5, 0, 1.5, -1, -1.5, -1}\r\n\tShapes[2].elements = []gl.GLushort{1, 2, 3, 3, 4, 1, 0, 7, 6, 6, 0, 5}\r\n\r\n\t// Snake\r\n\tShapes[3].vertices = []gl.GLfloat{-1.5, -1, -1.5, 0, -0.5, 0, -0.5, 1, 1.5, 1, 1.5, 0, 0.5, 0, 0.5, -1}\r\n\tShapes[3].elements = []gl.GLushort{0, 1, 6, 6, 7, 0, 2, 3, 4, 4, 5, 2}\r\n\r\n\t// Now fill out the rest automatically.\r\n\t// FIXME why doesn't using _, shape in this loop work ?\r\n\tfor i := range Shapes {\r\n\t\tShapes[i].vao = gl.GenVertexArray()\r\n\t\tShapes[i].vao.Bind()\r\n\t\tShapes[i].vbo = gl.GenBuffer()\r\n\t\tShapes[i].vbo.Bind(gl.ARRAY_BUFFER)\r\n\t\tgl.BufferData(gl.ARRAY_BUFFER, len(Shapes[i].vertices)*4, Shapes[i].vertices, gl.STATIC_DRAW)\r\n\t\tShapes[i].elementBuffer = gl.GenBuffer()\r\n\t\tShapes[i].elementBuffer.Bind(gl.ELEMENT_ARRAY_BUFFER)\r\n\t\tgl.BufferData(gl.ELEMENT_ARRAY_BUFFER, len(Shapes[i].elements)*2, Shapes[i].elements, gl.STATIC_DRAW)\r\n\t\tShapes[i].numElements = len(Shapes[i].elements)\r\n\r\n\t\tvertexAttribArray := shaderProgram.GetAttribLocation(\"position\")\r\n\t\tvertexAttribArray.AttribPointer(2, gl.FLOAT, false, 0, uintptr(0))\r\n\t\tvertexAttribArray.EnableArray()\r\n\t}\r\n}", "func (g *grpc) typeName(str string) string {\n\treturn g.gen.TypeName(g.objectNamed(str))\n}", "func (b *barRenderer) Objects() []fyne.CanvasObject {\n\treturn b.objects\n}", "func (objs Objects) String() string {\n\treturn fmt.Sprintf(\"%v\", sortObjectsByKindAndName(objs))\n}", "func initFontVbo() {\n\tvar vertexAttributes = make([]float32, 5*6*len(charDatas))\n\ti := 0\n\tfor _, charData := range charDatas {\n\t\ttop := float32(charData.ty+charData.h) / 256\n\t\tbottom := float32(charData.ty) / 256\n\t\tright := float32(charData.tx+charData.w) / 256\n\t\tleft := float32(charData.tx) / 256\n\n\t\tw := float32(charData.w) / 256\n\t\th := float32(charData.h) / 256\n\n\t\t// tri 1\n\t\tvertexAttributes[i] = w\n\t\tvertexAttributes[i+1] = h\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = right\n\t\tvertexAttributes[i+4] = bottom\n\t\ti += 5\n\n\t\tvertexAttributes[i] = w\n\t\tvertexAttributes[i+1] = 0\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = right\n\t\tvertexAttributes[i+4] = top\n\t\ti += 5\n\n\t\tvertexAttributes[i] = 0\n\t\tvertexAttributes[i+1] = h\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = left\n\t\tvertexAttributes[i+4] = bottom\n\t\ti += 5\n\n\t\t// tri 2\n\t\tvertexAttributes[i] = w\n\t\tvertexAttributes[i+1] = 0\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = right\n\t\tvertexAttributes[i+4] = top\n\t\ti += 5\n\n\t\tvertexAttributes[i] = 0\n\t\tvertexAttributes[i+1] = 0\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = left\n\t\tvertexAttributes[i+4] = top\n\t\ti += 5\n\n\t\tvertexAttributes[i] = 0\n\t\tvertexAttributes[i+1] = h\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = left\n\t\tvertexAttributes[i+4] = bottom\n\t\ti += 5\n\t}\n\n\tgl.GenBuffers(1, &vbo)\n\tgl.GenVertexArrays(1, &vao)\n\tgl.BindVertexArray(vao)\n\tgl.EnableVertexAttribArray(0)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.BufferData(\n\t\tgl.ARRAY_BUFFER,\n\t\t4*len(vertexAttributes),\n\t\tgl.Ptr(vertexAttributes),\n\t\tgl.STATIC_DRAW,\n\t)\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, 5*4, gl.PtrOffset(0))\n\tgl.EnableVertexAttribArray(0)\n\tgl.VertexAttribPointer(1, 2, gl.FLOAT, false, 5*4, gl.PtrOffset(4*3))\n\tgl.EnableVertexAttribArray(1)\n\t//unbind\n\tgl.BindVertexArray(0)\n\n}", "func (debugging *debuggingOpenGL) GenFramebuffers(n int32) []uint32 {\n\tdebugging.recordEntry(\"GenFramebuffers\", n)\n\tresult := debugging.gl.GenFramebuffers(n)\n\tdebugging.recordExit(\"GenFramebuffers\", result)\n\treturn result\n}", "func (i *ImageBuf) Name() string {\n\tret := C.GoString(C.ImageBuf_name(i.ptr))\n\truntime.KeepAlive(i)\n\treturn ret\n}", "func (o *SwiftObject) Repr() string {\n\tif o.dataFile != \"\" && o.metaFile != \"\" {\n\t\treturn fmt.Sprintf(\"SwiftObject(%s, %s)\", o.dataFile, o.metaFile)\n\t} else if o.dataFile != \"\" {\n\t\treturn fmt.Sprintf(\"SwiftObject(%s)\", o.dataFile)\n\t}\n\treturn fmt.Sprintf(\"SwiftObject(%s)\", o.hashDir)\n}", "func (ev *ImgEnv) String() string {\n\tcfn := ev.ImageFiles[ev.ImageIdx.Cur]\n\treturn fmt.Sprintf(\"Obj: %s, %s\", cfn, ev.XForm.String())\n}", "func (self *GameObjectCreator) RenderTexture2O(width int, height int) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height)}\n}", "func (c *NodeGroup) generateName() string {\n\treturn fmt.Sprintf(\"%s-%s\", strings.ReplaceAll(c.Name, \" \", \"-\"), uuid.NewString()[:8])\n}", "func (rs *RenderSystem) GetName() string {\n\treturn renderSystemName\n}", "func (Functions) ProtoGoName(obj interface{}) string {\n\treturn nameOptions{\n\t\tTitleFirst: true,\n\t\tTitleAfterNumber: true,\n\t\tUnderscoreToTitle: true,\n\t}.convert(nameOf(obj))\n}", "func getImageName(w http.ResponseWriter, r *http.Request, parms martini.Params) {\r\n\tid, _ := strconv.ParseInt(parms[\"id\"], 10, 64)\r\n\tvar img CRImage\r\n\timage := img.Querylog(id)\r\n\t// name := image.ImageName + \":\" + strconv.Itoa(image.Tag)\r\n\t// log.Println(name)\r\n\t// fullName := imageFullName{fullname: name}\r\n\tif err := json.NewEncoder(w).Encode(image); err != nil {\r\n\t\tlogger.Error(err)\r\n\t\thttp.Error(w, err.Error(), http.StatusInternalServerError)\r\n\t}\r\n}", "func name(obj, eventType, eventSource string) string {\n\t// Pod names need to be lowercase. We might have an eventType as Any, that is why we lowercase them.\n\tif eventType == \"\" {\n\t\teventType = \"testany\"\n\t}\n\tif eventSource == \"\" {\n\t\teventSource = \"testany\"\n\t}\n\treturn strings.ToLower(fmt.Sprintf(\"%s-%s-%s\", obj, eventType, eventSource))\n}", "func objToNames(obj interface{}, names []string, tag string) []string {\n\tvar typ reflect.Type\n\n\tif sf, ok := obj.(reflect.StructField); ok {\n\t\ttyp = sf.Type\n\t} else {\n\t\ttyp = reflect.TypeOf(obj)\n\t\tif typ.Kind() == reflect.Ptr {\n\t\t\ttyp = typ.Elem()\n\t\t}\n\t}\n\n\tfor i := 0; i < typ.NumField(); i++ {\n\t\tfield := typ.Field(i)\n\n\t\tif field.Type.Kind() == reflect.Struct {\n\t\t\tnames = objToNames(field, names, tag)\n\t\t\tcontinue\n\t\t}\n\n\t\t// If tag is passed to the function, we only append if the field is tagged and that it matches tag.\n\t\tif tag == \"\" || field.Tag.Get(tag) != \"\" {\n\t\t\tnames = append(names, field.Name)\n\t\t}\n\t}\n\n\treturn names\n}", "func (copyHandlerUtil) generateObjectPath(destinationPath, fileName string) string {\n\tif strings.LastIndex(destinationPath, \"/\") == len(destinationPath)-1 {\n\t\treturn fmt.Sprintf(\"%s%s\", destinationPath, fileName)\n\t}\n\treturn fmt.Sprintf(\"%s/%s\", destinationPath, fileName)\n}", "func (p *PropertyGenerator) serializeFnName() string {\n\tif p.asIterator {\n\t\treturn serializeIteratorMethod\n\t}\n\treturn serializeMethod\n}", "func NamedBufferData(buffer uint32, size int, data unsafe.Pointer, usage uint32) {\n\tC.glowNamedBufferData(gpNamedBufferData, (C.GLuint)(buffer), (C.GLsizeiptr)(size), data, (C.GLenum)(usage))\n}", "func NamedBufferData(buffer uint32, size int, data unsafe.Pointer, usage uint32) {\n\tC.glowNamedBufferData(gpNamedBufferData, (C.GLuint)(buffer), (C.GLsizeiptr)(size), data, (C.GLenum)(usage))\n}", "func (native *OpenGL) GenFramebuffers(n int32) []uint32 {\n\tids := make([]uint32, n)\n\tgl.GenFramebuffers(n, &ids[0])\n\treturn ids\n}", "func getNames(elements []element) string {\n\tvar names string\n\tfor i, el := range elements {\n\t\tif i != 0 {\n\t\t\tnames += \" \"\n\t\t}\n\t\tnames += el.name\n\t}\n\treturn names\n}", "func (gm *GraphicsManager) RenderAll(sm component.SceneManager) (*common.Vector, *common.Vector) {\n\terrs := common.MakeVector()\n\tcompsToSend := common.MakeVector()\n\tcomps := gm.compList.Array()\n\n\tfor i := range comps {\n\t\tif comps[i] == nil {\n\t\t\tcontinue\n\t\t}\n\t\tcompsToSend.Insert(comps[i].(component.GOiD))\n\t}\n\n\treturn compsToSend, errs\n}", "func (self *Graphics) GenerateTexture1O(resolution int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution)}\n}", "func (self *Rectangle) ToString() string{\n return self.Object.Call(\"toString\").String()\n}", "func (r *renderer) renderToString(tree *ast.Tree) (string, error) {\n\tsubRenderer := &renderer{\n\t\ttemplate: r.template,\n\t\tstack: r.stack,\n\t\tdepth: 0,\n\t\tw: strings.Builder{},\n\t\tindent: \"\",\n\t\tindentNext: false,\n\t}\n\terr := subRenderer.walk(tree.Name, tree)\n\ts := subRenderer.String()\n\n\t// the subRenderer may have pushed and popped enough contexts onto the stack\n\t// to cause the slice to allocate to a new larger underlaying array. If this\n\t// has happened, we want to keep the pointer to that larger array to minimize\n\t// allocations.\n\tr.stack = subRenderer.stack\n\n\treturn s, err\n}", "func (g *Generator) createIndexAndNameDecl(run []Value, typeName string, suffix string) (string, string) {\n\tb := new(bytes.Buffer)\n\tindexes := make([]int, len(run))\n\tfor i := range run {\n\t\tb.WriteString(run[i].nameInfo.trimmedName)\n\t\tindexes[i] = b.Len()\n\t}\n\tnameConst := fmt.Sprintf(\"_%s_name%s = %q\", typeName, suffix, b.String())\n\tnameLen := b.Len()\n\tb.Reset()\n\t_, _ = fmt.Fprintf(b, \"_%s_index%s = [...]uint%d{0, \", typeName, suffix, usize(nameLen))\n\tfor i, v := range indexes {\n\t\tif i > 0 {\n\t\t\t_, _ = fmt.Fprintf(b, \", \")\n\t\t}\n\t\t_, _ = fmt.Fprintf(b, \"%d\", v)\n\t}\n\t_, _ = fmt.Fprintf(b, \"}\")\n\treturn b.String(), nameConst\n}", "func generateName() string {\n\tserialCode := make([]rune, 2)\n\tserialNumber := 999\n\n\tfor i := range serialCode {\n\t\trandNumber := rand.Intn(len(letters))\n\t\tserialNumber -= randNumber\n\t\tserialCode[i] = letters[randNumber]\n\t}\n\n\treturn fmt.Sprint(string(serialCode), serialNumber)\n}", "func (e *Encoder) unwriteOnlyObjectMemberName() string {\n\tif last := e.tokens.last; !last.isObject() || last.length() != 1 {\n\t\tpanic(\"BUG: must be called on an object after writing first name\")\n\t}\n\n\t// Unwrite the name and whitespace.\n\tb := trimSuffixString(e.buf)\n\tisVerbatim := bytes.IndexByte(e.buf[len(b):], '\\\\') < 0\n\tname := string(unescapeStringMayCopy(e.buf[len(b):], isVerbatim))\n\te.buf = trimSuffixWhitespace(b)\n\n\t// Undo state changes.\n\te.tokens.last.decrement()\n\tif !e.options.AllowDuplicateNames {\n\t\tif e.tokens.last.isActiveNamespace() {\n\t\t\te.namespaces.last().removeLast()\n\t\t}\n\t\te.names.clearLast()\n\t}\n\treturn name\n}" ]
[ "0.5657468", "0.5647706", "0.5606333", "0.55743617", "0.5533304", "0.5439053", "0.5425749", "0.5349328", "0.5349328", "0.5344912", "0.5316698", "0.52999014", "0.5291727", "0.5282563", "0.5282563", "0.52254695", "0.5189899", "0.5137561", "0.5137561", "0.51339585", "0.5128923", "0.5116666", "0.51060563", "0.510445", "0.5100534", "0.50910246", "0.5075517", "0.50565815", "0.50565815", "0.505617", "0.5054323", "0.50537205", "0.50388634", "0.5029582", "0.5001653", "0.4993976", "0.49840802", "0.49830744", "0.49675795", "0.4960789", "0.4938454", "0.49325463", "0.4930871", "0.49166855", "0.4910241", "0.49029467", "0.48801968", "0.48746988", "0.4858001", "0.4854835", "0.48507723", "0.4850599", "0.48387733", "0.4832741", "0.4819448", "0.48173735", "0.48113656", "0.48016495", "0.47928062", "0.4769537", "0.47659534", "0.47627774", "0.47561422", "0.47547963", "0.4751374", "0.47438058", "0.4739558", "0.47393057", "0.4727386", "0.47133327", "0.4712023", "0.47060925", "0.46999416", "0.46874246", "0.4685567", "0.46832564", "0.4673127", "0.46664262", "0.4662474", "0.46590614", "0.4657252", "0.46570355", "0.46556458", "0.46526912", "0.465134", "0.46502358", "0.46417174", "0.4638303", "0.46347687", "0.46347687", "0.46322596", "0.4628478", "0.46281692", "0.4624414", "0.4623261", "0.46192887", "0.4614669", "0.46128494", "0.46110272" ]
0.46531266
84
generate sampler object names
func GenSamplers(count int32, samplers *uint32) { C.glowGenSamplers(gpGenSamplers, (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(samplers))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func generateMetricNames(numMetrics int, store []Metric, metricToken string) []Metric {\n\tmetricTypes := []string{\n\t\t\"c\",\n\t\t\"g\",\n\t\t\"ms\",\n\t\t\"s\",\n\t}\n\n\trand.Seed(time.Now().UnixNano())\n\tr := rand.New(rand.NewSource(time.Now().UnixNano()))\n\n\tfor i := 0; i < numMetrics; i++ {\n\t\tnewMetricName, _ := randutil.String(20, randutil.Alphabet)\n\t\tnewMetricNS := fmt.Sprintf(\"%sstatsgod.test.%s\", metricToken, newMetricName)\n\t\tnewMetricCT := 1\n\t\tif *connType > 0 && *connType < 6 {\n\t\t\tnewMetricCT = *connType\n\t\t} else {\n\t\t\tnewMetricCT, _ = randutil.IntRange(1, 6)\n\t\t}\n\n\t\tmetricType := metricTypes[r.Intn(len(metricTypes))]\n\n\t\tstore = append(store, Metric{\n\t\t\tkey: newMetricNS,\n\t\t\tmetricType: metricType,\n\t\t\tmetricValue: 0,\n\t\t\tconnectionType: newMetricCT,\n\t\t})\n\t}\n\n\treturn store\n}", "func GenerateName(group metav1.Object, jobIndex int) string {\n\treturn fmt.Sprintf(\"%s-%d\", group.GetName(), jobIndex+1)\n}", "func GenerateLabels(object CommonInterface) map[string]string {\n\tkind := object.GroupVersionKind().Kind\n\tgroup := object.GroupVersionKind().Group\n\tname := object.GetName()\n\tkey := strings.ToLower(kind) + \".\" + group + \"/name\"\n\tlabels := make(map[string]string)\n\tlabels[key] = name\n\treturn labels\n}", "func GenerateLabels(object CommonInterface) map[string]string {\n\tkind := object.GroupVersionKind().Kind\n\tgroup := object.GroupVersionKind().Group\n\tname := object.GetName()\n\tkey := strings.ToLower(kind) + \".\" + group + \"/name\"\n\tlabels := make(map[string]string)\n\tlabels[key] = name\n\treturn labels\n}", "func (p *literalProcessor) name() string { return \"\" }", "func NamePrefix() string { return namePrefix(globalFaker.Rand) }", "func GenRandomKindShip(nSamples int) string {\n // Prepare the seed for random\n rand.Seed(time.Now().UTC().UnixNano())\n\n ks := \"ego1,ego2,phi\\n\" // header\n for i := 0; i < nSamples; i++ {\n for j := i; j < nSamples; j++ {\n if i == j {\n ks += fmt.Sprintf(\"s_%d,s_%d,%f\\n\", i, j, 0.0)\n } else {\n ks += fmt.Sprintf(\"s_%d,s_%d,%f\\n\", i, j, float32(rand.Int31n(200))/float32(1000))\n }\n }\n }\n\n return ks\n}", "func (d *dubbogo) typeName(str string) string {\n return d.gen.TypeName(d.objectNamed(str))\n}", "func (p *iexporter) exportName(obj types.Object) (res string) {\n\tif name := p.tparamNames[obj]; name != \"\" {\n\t\treturn name\n\t}\n\treturn obj.Name()\n}", "func generateNamesOutput(t *title) []*detectedName {\n\tns := make([]*detectedName, len(t.res.Names))\n\tj := 0\n\tname := t.res.Names[j]\n\tfor _, page := range t.pages {\n\t\tfor {\n\t\t\tif name.OffsetStart <= page.offsetNext {\n\t\t\t\tns[j] = newDetectedName(page, name)\n\t\t\t\tj++\n\t\t\t\tif j >= len(t.res.Names) {\n\t\t\t\t\treturn ns\n\t\t\t\t}\n\t\t\t\tname = t.res.Names[j]\n\t\t\t} else {\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n\treturn ns\n}", "func (g *generator) Name() string {\n\treturn g.typeName\n}", "func (f *Faker) NamePrefix() string { return namePrefix(f.Rand) }", "func generateBandName(nouns, adjs []string) (name string) {\n\tlength := randWithSeed(3) + 2\n\tvar namebuf = new(bytes.Buffer)\n\tfor i := 1; i <= length; i++ {\n\t\tif i <= length-1 {\n\t\t\tchoice := randWithSeed(2)\n\t\t\tif choice == 0 {\n\t\t\t\tnidx := randWithSeed(len(nouns))\n\t\t\t\tnamebuf.WriteString(nouns[nidx] + \" \")\n\t\t\t} else {\n\t\t\t\taidx := randWithSeed(len(adjs))\n\t\t\t\tnamebuf.WriteString(adjs[aidx] + \" \")\n\t\t\t}\n\t\t} else {\n\t\t\tnidx := randWithSeed(len(nouns))\n\t\t\tnamebuf.WriteString(nouns[nidx])\n\t\t}\n\t}\n\tname = namebuf.String()\n\treturn\n}", "func genPaddleResName(name string, resType string, idx int) string {\n\treturn fmt.Sprintf(\"%s-%s-%d\", name, resType, idx)\n}", "func generateName(c asserter, prefix string, maxLen int) string {\n\tname := c.CompactScenarioName() // don't want to just use test name here, because each test contains multiple scenarios with the declarative runner\n\n\ttextualPortion := fmt.Sprintf(\"%s-%s\", prefix, strings.ToLower(name))\n\t// GUIDs are less prone to overlap than times.\n\tguidSuffix := uuid.New().String()\n\tif maxLen > 0 {\n\t\tmaxTextLen := maxLen - len(guidSuffix)\n\t\tif maxTextLen < 1 {\n\t\t\tpanic(\"max len too short\")\n\t\t}\n\t\tif len(textualPortion) > maxTextLen {\n\t\t\ttextualPortion = textualPortion[:maxTextLen]\n\t\t}\n\t}\n\tname = textualPortion + guidSuffix\n\treturn name\n}", "func GenerateKeyNames(tr time.Time) *AllKeys {\n\tk := &AllKeys{\n\t\tDst: KeyNames{},\n\t\tSrc: KeyNames{},\n\t}\n\n\tk.Src.CurrentCounterSet = generateSegmentPrefix(\"set:counter:src\", tr)\n\tk.Src.CurrentCounterHSet = generateSegmentPrefix(\"hset:counter:src\", tr)\n\tk.Dst.CurrentCounterSet = generateSegmentPrefix(\"set:counter:dst\", tr)\n\tk.Dst.CurrentCounterHSet = generateSegmentPrefix(\"hset:counter:dst\", tr)\n\treturn k\n}", "func PronounObject() string { return pronounObject(globalFaker.Rand) }", "func NewAllSampler() RateSampler { return NewRateSampler(1) }", "func (r *reducer) name() string { return r.stmt.Source.(*Measurement).Name }", "func (e *exemplarSampler) getLabelNames() []string {\n\tlabelNames := make([]string, 0, len(e.labelSet))\n\tfor k := range e.labelSet {\n\t\tlabelNames = append(labelNames, k)\n\t}\n\tsort.SliceStable(labelNames, func(i, j int) bool {\n\t\treturn labelNames[i] < labelNames[j]\n\t})\n\treturn labelNames\n}", "func (g *grpc) typeName(str string) string {\n\treturn g.gen.TypeName(g.objectNamed(str))\n}", "func generateMetricString(count int, prefix string) (metricString string) {\n\trand.Seed(time.Now().UnixNano())\n\n\tfor i := 0; i < count; i++ {\n\t\tmetricString += fmt.Sprintf(\"test.%s:%d|c\\n\", prefix, rand.Intn(100))\n\t}\n\n\treturn strings.Trim(metricString, \"\\n\")\n}", "func NameSuffix() string { return nameSuffix(globalFaker.Rand) }", "func GenSamplers(count int32, samplers *uint32) {\n\tsyscall.Syscall(gpGenSamplers, 2, uintptr(count), uintptr(unsafe.Pointer(samplers)), 0)\n}", "func (d *dubbogo) objectNamed(name string) generator.Object {\n d.gen.RecordTypeUse(name)\n return d.gen.ObjectNamed(name)\n}", "func (*Object) Name() string { return \"object\" }", "func GenerateScaledObjectName(ps *v1alpha1.PullSubscription) string {\n\treturn fmt.Sprintf(\"cre-so-%s\", string(ps.UID))\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *int8) {\n C.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func (s SecretForTLSGeneratorV1) ParamNames() []GeneratorParam {\n\treturn []GeneratorParam{\n\t\t{\"name\", true},\n\t\t{\"key\", true},\n\t\t{\"cert\", true},\n\t}\n}", "func (d *Abstraction) getGeneratedName(s string, m string) string {\n\tvar buffer bytes.Buffer\n\tbuffer.WriteString(s)\n\tbuffer.WriteString(\".\")\n\tbuffer.WriteString(m)\n\treturn buffer.String()\n}", "func name(n int) string {\n\t// This function returns some random names\n\tchars := \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.\"\n\tname := make([]byte, n) // Making Slices\n\tfor i := range name {\n\t\tname[i] = chars[rand.Intn(len(chars))]\n\t}\n\n\tfmt.Println(string(name))\n\treturn string(name) // Stringify the output and return\n}", "func genFullName(prefix string, n *node.Node, heritage []*node.Node) (fullName string) {\n\treturn genPrefix(prefix, append(heritage, n))\n}", "func Name() string { return name(globalFaker.Rand) }", "func generateRevisionName(name string, objectGeneration int64) string {\n\tnum := fmt.Sprintf(\"%05d\", objectGeneration+1)\n\tout := name + \"-\" + num + \"-\"\n\tr := rand.New(rand.NewSource(time.Now().UnixNano()))\n\tfor i := 0; i < 3; i++ {\n\t\tout += string(rune(int('a') + r.Intn(26)))\n\t}\n\treturn out\n}", "func Name() string {\n\treturn getRandValue([]string{\"person\", \"first\"}) + \" \" + getRandValue([]string{\"person\", \"last\"})\n}", "func (f *Faker) NameSuffix() string { return nameSuffix(f.Rand) }", "func (g *Game) nameOf(x, y int) string {\n\treturn fmt.Sprintf(\"%s%d\", string('a'+x), y+1)\n}", "func (g *grpc) objectNamed(name string) generator.Object {\n\tg.gen.RecordTypeUse(name)\n\treturn g.gen.ObjectNamed(name)\n}", "func (r *Recorder) names() []string {\n\tvar names []string\n\tfor _, h := range r.snapshot {\n\t\tnames = append(names, h.Name)\n\t}\n\treturn names\n}", "func (suite *BaseSuite) randomName(prefix string, length int) string {\n\treturn randomString(prefix, length) + \"-\" + suite.TagID\n}", "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *int8) {\n C.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func name(obj, eventType, eventSource string) string {\n\t// Pod names need to be lowercase. We might have an eventType as Any, that is why we lowercase them.\n\tif eventType == \"\" {\n\t\teventType = \"testany\"\n\t}\n\tif eventSource == \"\" {\n\t\teventSource = \"testany\"\n\t}\n\treturn strings.ToLower(fmt.Sprintf(\"%s-%s-%s\", obj, eventType, eventSource))\n}", "func (f *Faker) PronounObject() string { return pronounObject(f.Rand) }", "func GenSamplers(count int32, samplers *uint32) {\n C.glowGenSamplers(gpGenSamplers, (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(samplers)))\n}", "func main() {\n\n\taccessor := member.GetLoadedInMemoryAccessor()\n\n\tfor _, id := range accessor.GetExistIDs() {\n\t\tcurMember, _ := accessor.Get(id)\n\t\tname := curMember.Info[\"name\"]\n\t\tif idCounter[name] != nil {\n\t\t\tidCounter[name] = append(idCounter[name], id)\n\t\t} else {\n\t\t\tidCounter[name] = []member.ID{id}\n\t\t}\n\t}\n\n\t//\n\tfor k, v := range idCounter {\n\t\tif 1 < len(v) {\n\t\t\tfmt.Printf(\"%s\\n\", k)\n\t\t\tfor _, id := range v {\n\t\t\t\tcurMember, _ := accessor.Get(id)\n\t\t\t\tfmt.Printf(\"%v\\n\", curMember)\n\t\t\t}\n\t\t\tfmt.Printf(\"\\n\")\n\t\t}\n\t}\n}", "func InitNames() {\n C.glowInitNames(gpInitNames)\n}", "func NamePrefix() string {\n\treturn getRandValue([]string{\"person\", \"prefix\"})\n}", "func (c *NodeGroup) generateName() string {\n\treturn fmt.Sprintf(\"%s-%s\", strings.ReplaceAll(c.Name, \" \", \"-\"), uuid.NewString()[:8])\n}", "func Generate() string {\n\tgroup1 := randomConsonantGroup(3)\n\tgroup2 := randomConsonantGroup(3)\n\ts1 := randomSyllable(group1)\n\ts2 := randomSyllable(group2)\n\ts3 := randomSyllable(group2)\n\n\tname := s1 + s2\n\n\ti := rand.Intn(10)\n\tif i < 3 {\n\t\tname += s3\n\t}\n\n\tname += randomSuffix()\n\n\tname = strings.Title(name)\n\n\treturn name\n}", "func GenerateName() string {\n\ttestName := fmt.Sprintf(\"%s-%s\", NamePrefix, uuid.NewV4().String()[:8])\n\treturn testName\n}", "func (f *Faker) Name() string { return name(f.Rand) }", "func genFileName(t *time.Time) string {\r\n\tfilename := \"2A-\" + t.Format(layout)\r\n\treturn filename + \".txt\"\r\n}", "func genVariants(arg interface{}) gopter.Gen {\n\targs := arg.([]interface{})\n\ts := args[0].(string)\n\tt := args[1].(string)\n\treturn gen.OneConstOf(s, strings.ToUpper(s), strings.Title(s),\n\t\tfmt.Sprintf(\"%s %s\", s, t),\n\t\tfmt.Sprintf(\"%s %s\", strings.ToUpper(s), t),\n\t\tfmt.Sprintf(\"%s %s\", strings.Title(s), t),\n\t)\n}", "func generateKeyPairName() string {\n\tid := fmt.Sprintf(\"%x\", rand.Int())\n\treturn securityGroupNamePrefix + id\n}", "func objectName(u *unstructured.Unstructured) string {\n\treturn strings.ToLower(fmt.Sprintf(\"%s-%s\", u.GetKind(), strings.Replace(u.GetName(), \":\", \"-\", -1)))\n}", "func typeNames(vars []*types.Var) string {\n\tif len(vars) == 0 {\n\t\treturn \"\"\n\t}\n\tvar buf strings.Builder\n\tfor i, v := range vars {\n\t\tif i != 0 {\n\t\t\tbuf.WriteString(\", \")\n\t\t}\n\t\tbuf.WriteString(nameOf(v.Type()))\n\t}\n\treturn buf.String()\n}", "func (e *binaryExprEvaluator) name() string { return \"\" }", "func GenerateGroupName(affixes ...string) string {\n\t// go1.10+\n\t// import strings\n\t// var b strings.Builder\n\t// b.WriteString(BaseGroupName())\n\tb := bytes.NewBufferString(BaseGroupName())\n\tb.WriteRune('-')\n\tfor _, affix := range affixes {\n\t\tb.WriteString(affix)\n\t\tb.WriteRune('-')\n\t}\n\treturn randname.GenerateWithPrefix(b.String(), 5)\n}", "func (dt *Targeter) name() string {\n\tvar id string\n\tif dt.IDs != nil {\n\t\tid = \"{id}\"\n\t}\n\treturn fmt.Sprintf(\"%s %s/%s/%s\", dt.Method, dt.BaseURL, dt.Endpoint, id)\n}", "func GenCtrName() string {\n\treturn uuid.New().String()\n}", "func generateName() string {\n\tserialCode := make([]rune, 2)\n\tserialNumber := 999\n\n\tfor i := range serialCode {\n\t\trandNumber := rand.Intn(len(letters))\n\t\tserialNumber -= randNumber\n\t\tserialCode[i] = letters[randNumber]\n\t}\n\n\treturn fmt.Sprint(string(serialCode), serialNumber)\n}", "func (e *engineImpl) genTopicAndSubNames(c context.Context, manager, publisher string) (topic string, sub string) {\n\tinf := info.Get(c)\n\n\t// Avoid accidental override of the topic when running on dev server.\n\tprefix := \"cron\"\n\tif inf.IsDevAppServer() {\n\t\tprefix = \"dev-cron\"\n\t}\n\n\t// Each publisher gets its own topic (and subscription), so it's clearer from\n\t// logs and PubSub console who's calling what. PubSub topics can't have \"@\" in\n\t// them, so replace \"@\" with \"~\". URL encoding could have been used too, but\n\t// Cloud Console confuses %40 with its own URL encoding and doesn't display\n\t// all pages correctly.\n\tid := fmt.Sprintf(\"%s+%s+%s\",\n\t\tprefix,\n\t\tmanager,\n\t\tstrings.Replace(publisher, \"@\", \"~\", -1))\n\ttopic = fmt.Sprintf(\"projects/%s/topics/%s\", inf.AppID(), id)\n\tsub = fmt.Sprintf(\"projects/%s/subscriptions/%s\", inf.AppID(), id)\n\treturn\n}", "func (m *Metrics) NameFor(name string) string {\n\treturn fmt.Sprintf(\"%s_%s\", m.Prefix, name)\n}", "func ObjName(iface interface{}) string {\n\treturn filepath.Base(reflect.TypeOf(iface).PkgPath()) +\n\t\t\".\" + reflect.TypeOf(iface).Name()\n}", "func GenVolumeSourceName(source string, index int64) string {\n\treturn source + common.NameSeparator + strconv.FormatInt(index, 10)\n}", "func generateObjectKey(threadIndex int, payloadSize uint64) string {\n\tvar key string\n\tkeyHash := sha1.Sum([]byte(fmt.Sprintf(\"%03d-%012d\", threadIndex, payloadSize)))\n\tfolder := strconv.Itoa(int(payloadSize))\n\tkey = folder + \"/\" + (fmt.Sprintf(\"%x\", keyHash))\n\treturn key\n}", "func (obj *script) Name() string {\n\treturn obj.name\n}", "func NameSuffix() string {\n\treturn getRandValue([]string{\"person\", \"suffix\"})\n}", "func benchGenerate(n int, b *testing.B) {\n\ttemp := []string{}\n\tfor i := 0; i < b.N; i++ {\n\t\tcf := New()\n\t\t_ = cf.SetFormat(\"#xxxx\")\n\t\ttemp, _ = cf.Generate(n)\n\t}\n\tresult = temp\n}", "func (self *Graphics) Name() string{\n return self.Object.Get(\"name\").String()\n}", "func generateTempVarName(name string) string {\n\ttempVariableName := fmt.Sprintf(\"%s_%d\", name, TemporaryVariableCounter)\n\tTemporaryVariableCounter++\n\n\treturn tempVariableName\n}", "func makeLabeledName(metric *dto.Metric, metricName string) string {\n\tlabels := metric.GetLabel()\n\tsort.Sort(ByName(labels))\n\n\tlabeledName := strings.Builder{}\n\tlabeledName.WriteString(metricName)\n\tfor _, labelPair := range labels {\n\t\tlabeledName.WriteString(fmt.Sprintf(\"_%s_%s\", labelPair.GetName(), labelPair.GetValue()))\n\t}\n\treturn labeledName.String()\n}", "func (p *PropertyGenerator) serializeFnName() string {\n\tif p.asIterator {\n\t\treturn serializeIteratorMethod\n\t}\n\treturn serializeMethod\n}", "func TestMetricName(t *testing.T) {\n\ttcs := []struct {\n\t\tprefix string\n\t\tname string\n\t\twantMetric string\n\t\twantLabel string\n\t}{\n\t\t{\n\t\t\tprefix: \"serverStatus.metrics.commands.saslStart.\",\n\t\t\tname: \"total\",\n\t\t\twantMetric: \"mongodb_ss_metrics_commands_saslStart_total\",\n\t\t},\n\t\t{\n\t\t\tprefix: \"serverStatus.metrics.commands._configsvrShardCollection.\",\n\t\t\tname: \"failed\",\n\t\t\twantMetric: \"mongodb_ss_metrics_commands_configsvrShardCollection_failed\",\n\t\t},\n\t\t{\n\t\t\tprefix: \"serverStatus.wiredTiger.lock.\",\n\t\t\tname: \"metadata lock acquisitions\",\n\t\t\twantMetric: \"mongodb_ss_wt_lock_metadata_lock_acquisitions\",\n\t\t},\n\t\t{\n\t\t\tprefix: \"serverStatus.wiredTiger.perf.\",\n\t\t\tname: \"file system write latency histogram (bucket 5) - 500-999ms\",\n\t\t\twantMetric: \"mongodb_ss_wt_perf\",\n\t\t\twantLabel: \"perf_bucket\",\n\t\t},\n\t\t{\n\t\t\tprefix: \"serverStatus.wiredTiger.transaction.\",\n\t\t\tname: \"rollback to stable updates removed from lookaside\",\n\t\t\twantMetric: \"mongodb_ss_wt_txn_rollback_to_stable_updates_removed_from_lookaside\",\n\t\t},\n\t}\n\n\tfor _, tc := range tcs {\n\t\tmetric, label := nameAndLabel(tc.prefix, tc.name)\n\t\tassert.Equal(t, tc.wantMetric, metric, tc.prefix+tc.name)\n\t\tassert.Equal(t, tc.wantLabel, label, tc.prefix+tc.name)\n\t}\n}", "func generateGoSampleFile(schema map[string]interface{}, config Config) {\r\n var obj map[string]interface{}\r\n var samples = make(map[string]interface{})\r\n var outString = \"package main\\n\\nvar samples = `\\n\"\r\n\r\n var filename = config.Samples.GoSampleFilename\r\n var elementNames = config.Samples.GoSampleElements\r\n\r\n fmt.Printf(\"Generate Go SAMPLE file %s for: \\n %s\\n\", filename, elementNames)\r\n\r\n for i := range elementNames {\r\n elementName := elementNames[i]\r\n if elementName == \"schema\" {\r\n // sample of the entire schema, can it even work?\r\n obj = schema\r\n } else {\r\n // use the schema subset\r\n obj = getObject(schema, elementName)\r\n if obj == nil {\r\n fmt.Printf(\"** WARN ** %s returned nil from getObject\\n\", elementName)\r\n return\r\n }\r\n }\r\n samples[elementName] = sampleType(obj, elementName) \r\n }\r\n samplesOut, err := json.MarshalIndent(&samples, \"\", \" \")\r\n if err != nil {\r\n fmt.Println(\"** ERR ** cannot marshal sample file output for writing\")\r\n return\r\n }\r\n outString += string(samplesOut) + \"`\"\r\n ioutil.WriteFile(filename, []byte(outString), 0644)\r\n}", "func (p *PropertyGenerator) getFnName(i int) string {\n\tif len(p.Kinds) == 1 {\n\t\treturn getMethod\n\t}\n\treturn fmt.Sprintf(\"%s%s\", getMethod, p.kindCamelName(i))\n}", "func main() {\n\tanimals := []Animal{&Dog{}, &Cat{}, &Programmer{}}\n\tfor _, name := range animals {\n\t\tfmt.Println(name)\n\t\tfmt.Println(name.speak())\n\t}\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) {\n\tC.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) {\n\tC.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func GenerateName() string {\n\ttext := \"\"\n\tvar word string\n\tfor i := 0; i < 6; i++ {\n\t\tif i < 2 && len(words) > 0 {\n\t\t\tword = randomWord(words, 0, nil)\n\t\t} else {\n\t\t\tword = randomWord(characters, 0, nil)\n\t\t}\n\n\t\tif i < 3 && len(words) > 0 {\n\t\t\ttext += \"-\" + word\n\t\t} else {\n\t\t\ttext += word\n\t\t}\n\t}\n\n\treturn strings.TrimPrefix(text, \"-\")\n}", "func (*unifinames) Name() string { return \"unifi-names\" }", "func (d *Default) GeneratePathNames(ctx context.Context, sp *spec.Spec, opts *DefaultOptions) error {\n\tfor _, p := range sp.Paths {\n\n\t\t// Parse the callbacks first if there's any.\n\t\tfor _, o := range p.Operations {\n\t\t\tfor cbName, cb := range o.Callbacks {\n\t\t\t\tfor _, cbPath := range cb {\n\t\t\t\t\tif cbPath.Name != \"\" {\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\n\t\t\t\t\t// Remove all the runtime expression values.\n\t\t\t\t\tre := regexp.MustCompile(`\\{\\$[^}]+\\}`)\n\t\t\t\t\tcbPath.Name = re.ReplaceAllString(cbPath.PathString, \"\")\n\n\t\t\t\t\t// Also remove querystring if any.\n\t\t\t\t\tqsIndex := strings.Index(cbPath.Name, \"?\")\n\t\t\t\t\tif qsIndex != -1 {\n\t\t\t\t\t\tcbPath.Name = cbPath.Name[:qsIndex]\n\t\t\t\t\t}\n\n\t\t\t\t\tpathParts := strings.Split(cbPath.Name, \"/\")\n\t\t\t\t\tfor i, x := range pathParts {\n\t\t\t\t\t\tif strings.Contains(x, \"{\") {\n\t\t\t\t\t\t\tpathParts[i] = \"With\" + strcase.ToCamel(strings.Trim(x, \"{}\"))\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tpathParts[i] = strcase.ToCamel(x)\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif len(pathParts) == 0 {\n\t\t\t\t\t\tcbPath.Name = cbName + \"RootPath\"\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\n\t\t\t\t\tcbPath.Name = util.ToGoName(strings.Title(cbName + strcase.ToCamel(strings.Join(pathParts, \"/\"))))\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif p.Name != \"\" {\n\t\t\tcontinue\n\t\t}\n\n\t\t// We replace all the {param} fields with\n\t\t// strings like \"WithParam\", then join the path\n\t\t// together with PascalCase to get a unique,\n\t\t// but still somewhat readable path name.\n\t\tpathParts := strings.Split(p.PathString, \"/\")\n\t\tfor i, x := range pathParts {\n\t\t\tif strings.Contains(x, \"{\") {\n\t\t\t\tpathParts[i] = \"With\" + strcase.ToCamel(strings.Trim(x, \"{}\"))\n\t\t\t} else {\n\t\t\t\tpathParts[i] = strcase.ToCamel(x)\n\t\t\t}\n\t\t}\n\n\t\tif len(pathParts) == 0 {\n\t\t\tp.Name = \"RootPath\"\n\t\t\tcontinue\n\t\t}\n\n\t\tp.Name = util.ToGoName(strings.Title(strcase.ToCamel(strings.Join(pathParts, \"/\"))))\n\t}\n\n\treturn nil\n}", "func generateNatures(c int) []string {\n\toutput := []string{}\n\n\tfor i := 0; i < c; i++ {\n\t\trnd := generateNumber(1, 2)\n\t\tnatures, err := readNameFile(\"./data/massivemonsters/nature0\" + strconv.Itoa(rnd) + \".names\")\n\t\tif err != nil {\n\t\t\tlog.Fatalf(\"readLines: %s\", err)\n\t\t}\n\t\toutput = append(output, natures[generateNumber(0, len(natures)-1)])\n\t}\n\n\treturn output\n}", "func NewObjectNames(operand Expression) Function {\n\trv := &ObjectNames{\n\t\t*NewUnaryFunctionBase(\"object_names\", operand),\n\t}\n\n\trv.expr = rv\n\treturn rv\n}", "func NewObjectNames(operand Expression) Function {\n\trv := &ObjectNames{\n\t\t*NewUnaryFunctionBase(\"object_names\", operand),\n\t}\n\n\trv.expr = rv\n\treturn rv\n}", "func (collector *CollectorV2[T]) Name() string {\n\treturn collector.name\n}", "func (p *PropertyGenerator) memberName(i int) string {\n\treturn fmt.Sprintf(\"%sMember\", p.Kinds[i].Name.LowerName)\n}", "func getGaugeSamples(name string,\n\tlabels []*prometheus_models.LabelPair,\n\ttimestampMs int64,\n\tg *prometheus_models.Gauge,\n\tentity string,\n) []Sample {\n\tsamples := make([]Sample, 1)\n\tsamples[0] = Sample{\n\t\tname: name,\n\t\tlabels: labels,\n\t\ttimestampMs: timestampMs,\n\t\tvalue: strconv.FormatFloat(g.GetValue(), 'f', -1, 64),\n\t\tentity: entity,\n\t}\n\treturn samples\n}", "func (s Phases) ToString() string {\n\treturn fmt.Sprintf(\"%d%d%d%d%d max thruster signal: %d\", s.a, s.b, s.c, s.d, s.e, s.thrusterValue)\n}", "func Name(v interface{}) string {\n\treturn New(v).Name()\n}", "func (o ResourceMetricSourceOutput) Name() pulumi.StringOutput {\n\treturn o.ApplyT(func(v ResourceMetricSource) string { return v.Name }).(pulumi.StringOutput)\n}", "func (o ResourceMetricSourceOutput) Name() pulumi.StringOutput {\n\treturn o.ApplyT(func(v ResourceMetricSource) string { return v.Name }).(pulumi.StringOutput)\n}", "func (gen *jsGenerator) fullTypeName(t *idl.Type) string {\n\tvar s string\n\tms, ok := jsTypes[t.Name]\n\tif !ok {\n\t\tms = t.Name\n\t}\n\tif t.Name == \"list\" {\n\t\ts = fmt.Sprintf(ms, gen.fullTypeName(t.ValueType))\n\t} else if t.Name == \"map\" {\n\t\ts = fmt.Sprintf(ms, jsTypes[t.KeyType.Name], gen.fullTypeName(t.ValueType))\n\t} else {\n\t\tns := gen.tplRootIdl.NamespaceOf(ms, \"js\")\n\t\tif ns != \"\" {\n\t\t\ts = fmt.Sprintf(\"%s.%s\", ns, ms)\n\t\t} else {\n\t\t\ts = ms\n\t\t}\n\t}\n\treturn s\n}", "func GenCsrName() string {\n\tname := fmt.Sprintf(\"csr-workload-%s\", rand.String(randomLength))\n\treturn name\n}", "func (m *moduleGenerator) inlineTypeName(ctx *openapi.ReferenceContext, propertyName string) string {\n\tresult := strings.Title(propertyName)\n\tif ex, ok := m.inlineTypes[ctx]; ok {\n\t\tfor {\n\t\t\tif !ex.Has(result) {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tresult += strings.Title(propertyName)\n\t\t}\n\t} else {\n\t\tm.inlineTypes[ctx] = codegen.NewStringSet()\n\t}\n\tm.inlineTypes[ctx].Add(result)\n\treturn result\n}", "func getNames(elements []element) string {\n\tvar names string\n\tfor i, el := range elements {\n\t\tif i != 0 {\n\t\t\tnames += \" \"\n\t\t}\n\t\tnames += el.name\n\t}\n\treturn names\n}", "func main() {\n\tfmt.Println(\"Generate\")\n\n\tp := B\n\tfmt.Println(p.String())\n}", "func FriendlyNames(ts []Target) []string {\n\tstrs := []string{}\n\tfor _, t := range ts {\n\t\tstrs = append(strs, t.FriendlyName())\n\t}\n\treturn strs\n}", "func generateRenaming(\n\tidFactory astmodel.IdentifierFactory,\n\toriginal astmodel.TypeName,\n\tfilePath string,\n\ttypeNames map[astmodel.TypeName]int,\n) astmodel.TypeName {\n\tname := filepath.Base(filePath)\n\tname = strings.TrimSuffix(name, filepath.Ext(name))\n\n\t// Prefix the typename with the filename\n\tresult := astmodel.MakeInternalTypeName(\n\t\toriginal.PackageReference(),\n\t\tidFactory.CreateIdentifier(name+original.Name(), astmodel.Exported))\n\n\t// see if there are any collisions: add Xs until there are no collisions\n\t// TODO: this might result in non-determinism depending on iteration order\n\t// in the calling method\n\tfor _, ok := typeNames[result]; ok; _, ok = typeNames[result] {\n\t\tresult = astmodel.MakeInternalTypeName(\n\t\t\tresult.PackageReference(),\n\t\t\tresult.Name()+\"X\",\n\t\t)\n\t}\n\n\treturn result\n}" ]
[ "0.56083906", "0.5539755", "0.55050534", "0.55050534", "0.5477522", "0.54701877", "0.5424974", "0.54105073", "0.5390596", "0.5368989", "0.536155", "0.53476363", "0.5335668", "0.53328055", "0.52879715", "0.52528733", "0.52156276", "0.5204455", "0.51989406", "0.51388514", "0.5134827", "0.51297575", "0.511893", "0.51185447", "0.5091291", "0.5085566", "0.5077261", "0.5076768", "0.5070536", "0.50615615", "0.5045009", "0.5032282", "0.5023126", "0.50165397", "0.5007302", "0.49940562", "0.4987127", "0.49838358", "0.49804828", "0.49739945", "0.49645063", "0.49556628", "0.49525335", "0.49461314", "0.49418387", "0.49372694", "0.49356604", "0.49350378", "0.49320102", "0.4931839", "0.49216682", "0.48991415", "0.48928544", "0.48826945", "0.48753187", "0.48722717", "0.48698914", "0.48692614", "0.4856695", "0.4855454", "0.48409057", "0.48249206", "0.48189312", "0.4812209", "0.48008287", "0.47839752", "0.4778411", "0.4772901", "0.47724712", "0.47712353", "0.47635037", "0.47546715", "0.47511166", "0.47458112", "0.4736321", "0.47249734", "0.47241884", "0.4716765", "0.4716765", "0.47157618", "0.47121483", "0.47107676", "0.4703081", "0.47011513", "0.47011513", "0.46987784", "0.46941242", "0.46932015", "0.46914837", "0.46914196", "0.46877685", "0.46877685", "0.46671596", "0.46597943", "0.46595168", "0.46571228", "0.4654349", "0.46501446", "0.46465635" ]
0.4663506
94
reserve transform feedback object names
func GenTransformFeedbacks(n int32, ids *uint32) { C.glowGenTransformFeedbacks(gpGenTransformFeedbacks, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(ids))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *literalProcessor) name() string { return \"\" }", "func (t *targetrunner) renameObject(w http.ResponseWriter, r *http.Request, msg *cmn.ActionMsg) {\n\tapitems, err := t.checkRESTItems(w, r, 2, false, cmn.Version, cmn.Objects)\n\tif err != nil {\n\t\treturn\n\t}\n\tbucket, objNameFrom := apitems[0], apitems[1]\n\tbck, err := newBckFromQuery(bucket, r.URL.Query())\n\tif err != nil {\n\t\tt.invalmsghdlr(w, r, err.Error(), http.StatusBadRequest)\n\t\treturn\n\t}\n\tlom := &cluster.LOM{T: t, ObjName: objNameFrom}\n\tif err = lom.Init(bck.Bck); err != nil {\n\t\tt.invalmsghdlr(w, r, err.Error())\n\t\treturn\n\t}\n\tif lom.Bck().IsRemote() {\n\t\tt.invalmsghdlr(w, r, fmt.Sprintf(\"%s: cannot rename object from remote bucket\", lom))\n\t\treturn\n\t}\n\tif lom.Bck().Props.EC.Enabled {\n\t\tt.invalmsghdlr(w, r, fmt.Sprintf(\"%s: cannot rename erasure-coded object\", lom))\n\t\treturn\n\t}\n\n\tbuf, slab := t.gmm.Alloc()\n\tri := &replicInfo{smap: t.owner.smap.get(), t: t, bckTo: lom.Bck(), buf: buf, localOnly: false, finalize: true}\n\tcopied, err := ri.copyObject(lom, msg.Name /* new object name */)\n\tslab.Free(buf)\n\tif err != nil {\n\t\tt.invalmsghdlr(w, r, err.Error())\n\t\treturn\n\t}\n\tif copied {\n\t\tlom.Lock(true)\n\t\tif err = lom.Remove(); err != nil {\n\t\t\tt.invalmsghdlr(w, r, err.Error())\n\t\t}\n\t\tlom.Unlock(true)\n\t}\n}", "func (e *Encoder) unwriteOnlyObjectMemberName() string {\n\tif last := e.tokens.last; !last.isObject() || last.length() != 1 {\n\t\tpanic(\"BUG: must be called on an object after writing first name\")\n\t}\n\n\t// Unwrite the name and whitespace.\n\tb := trimSuffixString(e.buf)\n\tisVerbatim := bytes.IndexByte(e.buf[len(b):], '\\\\') < 0\n\tname := string(unescapeStringMayCopy(e.buf[len(b):], isVerbatim))\n\te.buf = trimSuffixWhitespace(b)\n\n\t// Undo state changes.\n\te.tokens.last.decrement()\n\tif !e.options.AllowDuplicateNames {\n\t\tif e.tokens.last.isActiveNamespace() {\n\t\t\te.namespaces.last().removeLast()\n\t\t}\n\t\te.names.clearLast()\n\t}\n\treturn name\n}", "func objectName(u *unstructured.Unstructured) string {\n\treturn strings.ToLower(fmt.Sprintf(\"%s-%s\", u.GetKind(), strings.Replace(u.GetName(), \":\", \"-\", -1)))\n}", "func (p *iexporter) exportName(obj types.Object) (res string) {\n\tif name := p.tparamNames[obj]; name != \"\" {\n\t\treturn name\n\t}\n\treturn obj.Name()\n}", "func (c *GCEModelContext) SafeSuffixedObjectName(name string) string {\n\treturn gce.ClusterSuffixedName(name, c.Cluster.ObjectMeta.Name, 63)\n}", "func (t *targetrunner) renameObject(w http.ResponseWriter, r *http.Request, msg cmn.ActionMsg, pid string) {\n\tapitems, err := t.checkRESTItems(w, r, 2, false, cmn.Version, cmn.Objects)\n\tif err != nil {\n\t\treturn\n\t}\n\tbucket, objnameFrom := apitems[0], apitems[1]\n\tbckProvider := r.URL.Query().Get(cmn.URLParamBckProvider)\n\tif bmd, _ := t.validateBucket(w, r, bucket, bckProvider); bmd == nil {\n\t\treturn\n\t}\n\tobjnameTo := msg.Name\n\tuname := cluster.Bo2Uname(bucket, objnameFrom)\n\tcluster.ObjectLocker.Lock(uname, true)\n\n\tif err := t.renameBucketObject(fs.ObjectType, bucket, objnameFrom, bucket, objnameTo, pid); err != nil {\n\t\tt.invalmsghdlr(w, r, err.Error())\n\t}\n\tcluster.ObjectLocker.Unlock(uname, true)\n}", "func (s *BasePlSqlParserListener) EnterRename_object(ctx *Rename_objectContext) {}", "func (e *With32FieldsFeatureTransformer) FeatureNames() []string {\n\tif e == nil {\n\t\treturn nil\n\t}\n\n\tidx := 0\n\tnames := make([]string, e.NumFeatures())\n\n\tnames[idx] = \"Name1\"\n\tidx++\n\n\tnames[idx] = \"Name2\"\n\tidx++\n\n\tnames[idx] = \"Name3\"\n\tidx++\n\n\tnames[idx] = \"Name4\"\n\tidx++\n\n\tnames[idx] = \"Name5\"\n\tidx++\n\n\tnames[idx] = \"Name6\"\n\tidx++\n\n\tnames[idx] = \"Name7\"\n\tidx++\n\n\tnames[idx] = \"Name8\"\n\tidx++\n\n\tnames[idx] = \"Name9\"\n\tidx++\n\n\tnames[idx] = \"Name10\"\n\tidx++\n\n\tnames[idx] = \"Name11\"\n\tidx++\n\n\tnames[idx] = \"Name12\"\n\tidx++\n\n\tnames[idx] = \"Name13\"\n\tidx++\n\n\tnames[idx] = \"Name14\"\n\tidx++\n\n\tnames[idx] = \"Name15\"\n\tidx++\n\n\tnames[idx] = \"Name16\"\n\tidx++\n\n\tnames[idx] = \"Name17\"\n\tidx++\n\n\tnames[idx] = \"Name18\"\n\tidx++\n\n\tnames[idx] = \"Name19\"\n\tidx++\n\n\tnames[idx] = \"Name21\"\n\tidx++\n\n\tnames[idx] = \"Name22\"\n\tidx++\n\n\tnames[idx] = \"Name23\"\n\tidx++\n\n\tnames[idx] = \"Name24\"\n\tidx++\n\n\tnames[idx] = \"Name25\"\n\tidx++\n\n\tnames[idx] = \"Name26\"\n\tidx++\n\n\tnames[idx] = \"Name27\"\n\tidx++\n\n\tnames[idx] = \"Name28\"\n\tidx++\n\n\tnames[idx] = \"Name29\"\n\tidx++\n\n\tnames[idx] = \"Name30\"\n\tidx++\n\n\tnames[idx] = \"Name31\"\n\tidx++\n\n\tnames[idx] = \"Name32\"\n\tidx++\n\n\treturn names\n}", "func (wc *watchChan) transform(e *event) (res *watch.Event) {\n\tcurObj, oldObj, err := wc.prepareObjs(e)\n\tif err != nil {\n\t\tlogrus.Errorf(\"failed to prepare current and previous objects: %v\", err)\n\t\twc.sendError(err)\n\t\treturn nil\n\t}\n\tswitch {\n\tcase e.isProgressNotify:\n\t\tobj := wc.watcher.newFunc()\n\t\t// todo: update object version\n\t\tres = &watch.Event{\n\t\t\tType: watch.Bookmark,\n\t\t\tObject: obj,\n\t\t}\n\tcase e.isDeleted:\n\t\tres = &watch.Event{\n\t\t\tType: watch.Deleted,\n\t\t\tObject: oldObj,\n\t\t}\n\tcase e.isCreated:\n\t\tres = &watch.Event{\n\t\t\tType: watch.Added,\n\t\t\tObject: curObj,\n\t\t}\n\tdefault:\n\t\t// TODO: emit ADDED if the modified object causes it to actually pass the filter but the previous one did not\n\t\tres = &watch.Event{\n\t\t\tType: watch.Modified,\n\t\t\tObject: curObj,\n\t\t}\n\t}\n\treturn res\n}", "func (g *fixedNameGenerator) Reset() {\n\tfor k := range g.names {\n\t\tg.names[k] = nameNotUsed\n\t}\n}", "func infoToContextKey(info *resource.Info) string {\n\tname := info.Name\n\tif meta.IsListType(info.Object) {\n\t\tname = \"*\"\n\t}\n\treturn fmt.Sprintf(\"%s/%s/%s/%s\", info.Namespace, info.ResourceMapping().GroupVersionKind.Group, info.ResourceMapping().Resource.Resource, name)\n}", "func (r *RemoveLabels) Transform(mfs []*dto.MetricFamily) []*dto.MetricFamily {\n\tfor i := range mfs {\n\t\tfor j, m := range mfs[i].Metric {\n\t\t\t// Filter out labels\n\t\t\tlabels := m.Label[:0]\n\t\t\tfor _, l := range m.Label {\n\t\t\t\tif _, ok := r.Labels[l.GetName()]; !ok {\n\t\t\t\t\tlabels = append(labels, l)\n\t\t\t\t}\n\t\t\t}\n\t\t\tmfs[i].Metric[j].Label = labels\n\t\t}\n\t}\n\treturn mfs\n}", "func (m *MetricFilter) TName(name string) *MetricFilter {\n\treturn m.TransformationName(name)\n}", "func (streamer *TarballStreamer) remap() {\n\tfor _, remap := range streamer.Remaps {\n\t\tstreamer.curHeader.Name = remap.from.ReplaceAllString(streamer.curHeader.Name, remap.to)\n\t}\n}", "func GenerateLabels(object CommonInterface) map[string]string {\n\tkind := object.GroupVersionKind().Kind\n\tgroup := object.GroupVersionKind().Group\n\tname := object.GetName()\n\tkey := strings.ToLower(kind) + \".\" + group + \"/name\"\n\tlabels := make(map[string]string)\n\tlabels[key] = name\n\treturn labels\n}", "func GenerateLabels(object CommonInterface) map[string]string {\n\tkind := object.GroupVersionKind().Kind\n\tgroup := object.GroupVersionKind().Group\n\tname := object.GetName()\n\tkey := strings.ToLower(kind) + \".\" + group + \"/name\"\n\tlabels := make(map[string]string)\n\tlabels[key] = name\n\treturn labels\n}", "func objToNames(obj interface{}, names []string, tag string) []string {\n\tvar typ reflect.Type\n\n\tif sf, ok := obj.(reflect.StructField); ok {\n\t\ttyp = sf.Type\n\t} else {\n\t\ttyp = reflect.TypeOf(obj)\n\t\tif typ.Kind() == reflect.Ptr {\n\t\t\ttyp = typ.Elem()\n\t\t}\n\t}\n\n\tfor i := 0; i < typ.NumField(); i++ {\n\t\tfield := typ.Field(i)\n\n\t\tif field.Type.Kind() == reflect.Struct {\n\t\t\tnames = objToNames(field, names, tag)\n\t\t\tcontinue\n\t\t}\n\n\t\t// If tag is passed to the function, we only append if the field is tagged and that it matches tag.\n\t\tif tag == \"\" || field.Tag.Get(tag) != \"\" {\n\t\t\tnames = append(names, field.Name)\n\t\t}\n\t}\n\n\treturn names\n}", "func (r *ScaledObjectReconciler) ensureScaledObjectLabel(logger logr.Logger, scaledObject *kedav1alpha1.ScaledObject) error {\n\tconst labelScaledObjectName = \"scaledObjectName\"\n\n\tif scaledObject.Labels == nil {\n\t\tscaledObject.Labels = map[string]string{labelScaledObjectName: scaledObject.Name}\n\t} else {\n\t\tvalue, found := scaledObject.Labels[labelScaledObjectName]\n\t\tif found && value == scaledObject.Name {\n\t\t\treturn nil\n\t\t}\n\t\tscaledObject.Labels[labelScaledObjectName] = scaledObject.Name\n\t}\n\n\tlogger.V(1).Info(\"Adding scaledObjectName label on ScaledObject\", \"value\", scaledObject.Name)\n\treturn r.Client.Update(context.TODO(), scaledObject)\n}", "func Tempname(nn *Node, t *Type)", "func (o TransformationOutput) Name() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *Transformation) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)\n}", "func setPatchNames(patches []string, jsonPatches []kustomize.PatchJSON6902) ([]string, []kustomize.PatchJSON6902) {\n\tfixedPatches := make([]string, len(patches))\n\tfixedJSONPatches := make([]kustomize.PatchJSON6902, len(jsonPatches))\n\tfor i, patch := range patches {\n\t\t// insert the generated name metadata\n\t\tfixedPatches[i] = fmt.Sprintf(\"metadata:\\nname: %s\\n%s\", kubeadm.ObjectName, patch)\n\t}\n\tfor i, patch := range jsonPatches {\n\t\t// insert the generated name metadata\n\t\tpatch.Name = kubeadm.ObjectName\n\t\tfixedJSONPatches[i] = patch\n\t}\n\treturn fixedPatches, fixedJSONPatches\n}", "func (c *GCEModelContext) SafeObjectName(name string) string {\n\treturn gce.SafeObjectName(name, c.Cluster.ObjectMeta.Name)\n}", "func (s *BasePlSqlParserListener) EnterObject_name(ctx *Object_nameContext) {}", "func (m *MetricFilter) TransformationName(name string) *MetricFilter {\n\tm.filterList = append(m.filterList, func(v interface{}) bool {\n\t\tfilter := convert(v)\n\t\tif filter == nil ||\n\t\t\tlen(filter.MetricTransformations) == 0 {\n\t\t\treturn false\n\t\t}\n\t\tshared.Debugf(\"%s == %s -> %t\\n\",\n\t\t\tname,\n\t\t\taws.StringValue(filter.MetricTransformations[0].MetricName),\n\t\t\tname == aws.StringValue(filter.MetricTransformations[0].MetricName),\n\t\t)\n\t\treturn name == aws.StringValue(filter.MetricTransformations[0].MetricName)\n\t})\n\treturn m\n}", "func renameResource(iom map[string]*object.K8sObject, rnm map[string]string) (map[string]*object.K8sObject, error) {\n\toom := make(map[string]*object.K8sObject)\n\tfor name, obj := range iom {\n\t\tisRenamed := false\n\t\tfor fromPat, toPat := range rnm {\n\t\t\tfromRe, err := buildResourceRegexp(strings.TrimSpace(fromPat))\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"error building the regexp from \"+\n\t\t\t\t\t\"rename-from string: %v, error: %v\", fromPat, err)\n\t\t\t}\n\t\t\tif fromRe.MatchString(name) {\n\t\t\t\tfromList := strings.Split(name, \":\")\n\t\t\t\tif len(fromList) != 3 {\n\t\t\t\t\treturn nil, fmt.Errorf(\"failed to split the old name,\"+\n\t\t\t\t\t\t\" length != 3: %v\", name)\n\t\t\t\t}\n\t\t\t\ttoList := strings.Split(toPat, \":\")\n\t\t\t\tif len(toList) != 3 {\n\t\t\t\t\treturn nil, fmt.Errorf(\"failed to split the rename-to string,\"+\n\t\t\t\t\t\t\" length != 3: %v\", toPat)\n\t\t\t\t}\n\n\t\t\t\t// Use the old name if toList has \"*\" or \"\"\n\t\t\t\t// Otherwise, use the name in toList\n\t\t\t\tnewList := make([]string, 3)\n\t\t\t\tfor i := range toList {\n\t\t\t\t\tif toList[i] == \"\" || toList[i] == \"*\" {\n\t\t\t\t\t\tnewList[i] = fromList[i]\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnewList[i] = toList[i]\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttk := strings.Join(newList, \":\")\n\t\t\t\toom[tk] = obj\n\t\t\t\tisRenamed = true\n\t\t\t}\n\t\t}\n\t\tif !isRenamed {\n\t\t\toom[name] = obj\n\t\t}\n\t}\n\treturn oom, nil\n}", "func (s *stream) mapRemovedResources(removedResourceNames []string) []core_model.ResourceKey {\n\tremoved := []core_model.ResourceKey{}\n\tfor _, resourceName := range removedResourceNames {\n\t\tindex := strings.LastIndex(resourceName, \".\")\n\t\tvar rk core_model.ResourceKey\n\t\tif index != -1 {\n\t\t\trk = core_model.WithMesh(resourceName[index+1:], resourceName[:index])\n\t\t} else {\n\t\t\trk = core_model.WithoutMesh(resourceName)\n\t\t}\n\t\tremoved = append(removed, rk)\n\t}\n\treturn removed\n}", "func noTransformation(xs []string) (transform.Transformation, error) {\n\tif len(xs) != 0 {\n\t\treturn nil, ErrBadTransformation\n\t}\n\treturn transform.NoTransformation(), nil\n}", "func FriendlyNames(ts []Target) []string {\n\tstrs := []string{}\n\tfor _, t := range ts {\n\t\tstrs = append(strs, t.FriendlyName())\n\t}\n\treturn strs\n}", "func generateRenaming(\n\tidFactory astmodel.IdentifierFactory,\n\toriginal astmodel.TypeName,\n\tfilePath string,\n\ttypeNames map[astmodel.TypeName]int,\n) astmodel.TypeName {\n\tname := filepath.Base(filePath)\n\tname = strings.TrimSuffix(name, filepath.Ext(name))\n\n\t// Prefix the typename with the filename\n\tresult := astmodel.MakeInternalTypeName(\n\t\toriginal.PackageReference(),\n\t\tidFactory.CreateIdentifier(name+original.Name(), astmodel.Exported))\n\n\t// see if there are any collisions: add Xs until there are no collisions\n\t// TODO: this might result in non-determinism depending on iteration order\n\t// in the calling method\n\tfor _, ok := typeNames[result]; ok; _, ok = typeNames[result] {\n\t\tresult = astmodel.MakeInternalTypeName(\n\t\t\tresult.PackageReference(),\n\t\t\tresult.Name()+\"X\",\n\t\t)\n\t}\n\n\treturn result\n}", "func GenerateScaledObjectName(ps *v1alpha1.PullSubscription) string {\n\treturn fmt.Sprintf(\"cre-so-%s\", string(ps.UID))\n}", "func (r *RenameFamilies) Transform(mfs []*dto.MetricFamily) []*dto.MetricFamily {\n\trenamed := mfs[:0]\n\tfor _, mf := range mfs {\n\t\tif to, ok := r.FromTo[mf.GetName()]; ok {\n\t\t\tmf.Name = &to\n\t\t}\n\t\trenamed = append(renamed, mf)\n\n\t}\n\tsort.Sort(familySorter(renamed))\n\treturn renamed\n}", "func (*Object) Name() string { return \"object\" }", "func (s *BasePlSqlParserListener) ExitRename_object(ctx *Rename_objectContext) {}", "func (t *Transform) OwnerReferences() []metav1.OwnerReference { return ownerReferences(t) }", "func (c context) mangle(templateName string) string {\n\t// The mangled name for the default context is the input templateName.\n\tif c.state == stateText {\n\t\treturn templateName\n\t}\n\ts := templateName + \"$htmltemplate_\" + c.state.String()\n\tif c.delim != delimNone {\n\t\ts += \"_\" + c.delim.String()\n\t}\n\tif c.urlPart != urlPartNone {\n\t\ts += \"_\" + c.urlPart.String()\n\t}\n\tif c.jsCtx != jsCtxRegexp {\n\t\ts += \"_\" + c.jsCtx.String()\n\t}\n\tif c.attr != attrNone {\n\t\ts += \"_\" + c.attr.String()\n\t}\n\tif c.element != elementNone {\n\t\ts += \"_\" + c.element.String()\n\t}\n\treturn s\n}", "func gcTranslate(gcname string, m map[string]string) string {\n\tswitch gcname {\n\tcase \"Langara\",\"L\", \"1\":\n\t\treturn m[\"Langara\"]\n\tcase \"Fraserview\", \"F\", \"2\":\n\t\treturn m[\"Fraserview\"]\n\tcase \"McCleery\"\t, \"M\", \"3\":\n\t\treturn m[\"McCleery\"]\n\tcase \"All\":\n\t\treturn \"1,2,3\"\n\t}\n\treturn \"no courses options recognized\"\n}", "func generateNamesOutput(t *title) []*detectedName {\n\tns := make([]*detectedName, len(t.res.Names))\n\tj := 0\n\tname := t.res.Names[j]\n\tfor _, page := range t.pages {\n\t\tfor {\n\t\t\tif name.OffsetStart <= page.offsetNext {\n\t\t\t\tns[j] = newDetectedName(page, name)\n\t\t\t\tj++\n\t\t\t\tif j >= len(t.res.Names) {\n\t\t\t\t\treturn ns\n\t\t\t\t}\n\t\t\t\tname = t.res.Names[j]\n\t\t\t} else {\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n\treturn ns\n}", "func mustGetNames(objects []runtime.Object) []string {\n\tvar names []string\n\tfor _, obj := range objects {\n\t\tmetaAccessor, err := meta.Accessor(obj)\n\t\tif err != nil {\n\t\t\tframework.Failf(\"error getting accessor for %T: %v\", obj, err)\n\t\t}\n\t\tname := metaAccessor.GetName()\n\t\tnames = append(names, name)\n\t}\n\tsort.Strings(names)\n\treturn names\n}", "func fixTargetNamespace(objs []unstructured.Unstructured, targetNamespace string) []unstructured.Unstructured {\n\tfor _, o := range objs {\n\t\t// if the object has Kind Namespace, fix the namespace name\n\t\tif o.GetKind() == namespaceKind {\n\t\t\to.SetName(targetNamespace)\n\t\t}\n\n\t\t// if the object is namespaced, set the namespace name\n\t\tif IsResourceNamespaced(o.GetKind()) {\n\t\t\to.SetNamespace(targetNamespace)\n\t\t}\n\t}\n\n\treturn objs\n}", "func (o JobOutput) TransformNameMapping() pulumi.StringMapOutput {\n\treturn o.ApplyT(func(v *Job) pulumi.StringMapOutput { return v.TransformNameMapping }).(pulumi.StringMapOutput)\n}", "func passFilters(obj *unstructured.Unstructured, filter *v1alpha1.ResourceFilter) bool {\n\t// check prefix\n\tif !strings.HasPrefix(obj.GetName(), filter.Prefix) {\n\t\tlog.Printf(\"FILTERED: resource name '%s' does not match prefix '%s'\", obj.GetName(), filter.Prefix)\n\t\treturn false\n\t}\n\t// check creation timestamp\n\tcreated := obj.GetCreationTimestamp()\n\tif !filter.CreatedBy.IsZero() && created.UTC().After(filter.CreatedBy.UTC()) {\n\t\tlog.Printf(\"FILTERED: resource creation timestamp '%s' is after createdBy '%s'\", created.UTC(), filter.CreatedBy.UTC())\n\t\treturn false\n\t}\n\t// check labels\n\tif ok := checkMap(filter.Labels, obj.GetLabels()); !ok {\n\t\tlog.Printf(\"FILTERED: resource labels '%s' do not match filter labels '%s'\", obj.GetLabels(), filter.Labels)\n\t\treturn false\n\t}\n\t// check annotations\n\tif ok := checkMap(filter.Annotations, obj.GetAnnotations()); !ok {\n\t\tlog.Printf(\"FILTERED: resource annotations '%s' do not match filter annotations '%s'\", obj.GetAnnotations(), filter.Annotations)\n\t\treturn false\n\t}\n\treturn true\n}", "func precompiledObjectsToCategory(categoryName string, precompiledObjects dto.PrecompiledObjects) *pb.Categories_Category {\n\tcategory := pb.Categories_Category{\n\t\tCategoryName: categoryName,\n\t\tPrecompiledObjects: make([]*pb.PrecompiledObject, 0),\n\t}\n\tfor _, object := range precompiledObjects {\n\t\tcategory.PrecompiledObjects = append(category.PrecompiledObjects, &pb.PrecompiledObject{\n\t\t\tCloudPath: object.CloudPath,\n\t\t\tName: object.Name,\n\t\t\tDescription: object.Description,\n\t\t\tType: object.Type,\n\t\t\tPipelineOptions: object.PipelineOptions,\n\t\t\tLink: object.Link,\n\t\t\tUrlVcs: object.UrlVCS,\n\t\t\tUrlNotebook: object.UrlNotebook,\n\t\t\tAlwaysRun: object.AlwaysRun,\n\t\t\tNeverRun: object.NeverRun,\n\t\t\tMultifile: object.Multifile,\n\t\t\tContextLine: object.ContextLine,\n\t\t\tDefaultExample: object.DefaultExample,\n\t\t\tSdk: object.Sdk,\n\t\t\tComplexity: object.Complexity,\n\t\t\tTags: object.Tags,\n\t\t\tDatasets: object.Datasets,\n\t\t})\n\t}\n\treturn &category\n}", "func (*unifinames) Name() string { return \"unifi-names\" }", "func UniqueNameTransformer() SecretTransformer {\n\treturn func(secret *v1.Secret) {\n\t\tsecret.SetGenerateName(fmt.Sprintf(\"%s-\", secret.GetName()))\n\t\tsecret.SetName(\"\")\n\t}\n}", "func setupTransformableItems(c *cli.Context,\n\tctxOpts *terrahelp.TransformOpts,\n\tnoBackup bool, bkpExt string) {\n\tfiles := c.StringSlice(\"file\")\n\n\tif files == nil || len(files) == 0 {\n\t\tctxOpts.TransformItems = []terrahelp.Transformable{terrahelp.NewStdStreamTransformable()}\n\t\treturn\n\t}\n\tctxOpts.TransformItems = []terrahelp.Transformable{}\n\tfor _, f := range files {\n\t\tctxOpts.TransformItems = append(ctxOpts.TransformItems,\n\t\t\tterrahelp.NewFileTransformable(f, !noBackup, bkpExt))\n\t}\n}", "func name(obj, eventType, eventSource string) string {\n\t// Pod names need to be lowercase. We might have an eventType as Any, that is why we lowercase them.\n\tif eventType == \"\" {\n\t\teventType = \"testany\"\n\t}\n\tif eventSource == \"\" {\n\t\teventSource = \"testany\"\n\t}\n\treturn strings.ToLower(fmt.Sprintf(\"%s-%s-%s\", obj, eventType, eventSource))\n}", "func RemoveDuplicateAndObjectVariables(matches [][]string) string {\n\tvar variableStr string\n\tfor _, m := range matches {\n\t\tfor _, v := range m {\n\t\t\tfoundVariable := strings.Contains(variableStr, v)\n\t\t\tif !foundVariable {\n\t\t\t\tif !strings.Contains(v, \"request.object\") && !strings.Contains(v, \"element\") && v == \"elementIndex\" {\n\t\t\t\t\tvariableStr = variableStr + \" \" + v\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn variableStr\n}", "func (complexShaperThai) preprocessText(plan *otShapePlan, buffer *Buffer, font *Font) {\n\t/* The following is NOT specified in the MS OT Thai spec, however, it seems\n\t* to be what Uniscribe and other engines implement. According to Eric Muller:\n\t*\n\t* When you have a SARA AM, decompose it in NIKHAHIT + SARA AA, *and* move the\n\t* NIKHAHIT backwards over any tone mark (0E48-0E4B).\n\t*\n\t* <0E14, 0E4B, 0E33> . <0E14, 0E4D, 0E4B, 0E32>\n\t*\n\t* This reordering is legit only when the NIKHAHIT comes from a SARA AM, not\n\t* when it's there to start with. The string <0E14, 0E4B, 0E4D> is probably\n\t* not what a user wanted, but the rendering is nevertheless nikhahit above\n\t* chattawa.\n\t*\n\t* Same for Lao.\n\t*\n\t* Note:\n\t*\n\t* Uniscribe also does some below-marks reordering. Namely, it positions U+0E3A\n\t* after U+0E38 and U+0E39. We do that by modifying the ccc for U+0E3A.\n\t* See unicode.modified_combining_class (). Lao does NOT have a U+0E3A\n\t* equivalent.\n\t */\n\n\t/*\n\t* Here are the characters of significance:\n\t*\n\t*\t\t\tThai\tLao\n\t* SARA AM:\t\tU+0E33\tU+0EB3\n\t* SARA AA:\t\tU+0E32\tU+0EB2\n\t* Nikhahit:\t\tU+0E4D\tU+0ECD\n\t*\n\t* Testing shows that Uniscribe reorder the following marks:\n\t* Thai:\t<0E31,0E34..0E37,0E47..0E4E>\n\t* Lao:\t<0EB1,0EB4..0EB7,0EC7..0ECE>\n\t*\n\t* Note how the Lao versions are the same as Thai + 0x80.\n\t */\n\n\tbuffer.clearOutput()\n\tcount := len(buffer.Info)\n\tfor buffer.idx = 0; buffer.idx < count; {\n\t\tu := buffer.cur(0).codepoint\n\t\tif !isSaraAm(u) {\n\t\t\tbuffer.nextGlyph()\n\t\t\tcontinue\n\t\t}\n\n\t\t/* Is SARA AM. Decompose and reorder. */\n\t\tbuffer.outputRune(nikhahitFromSaraAm(u))\n\t\tbuffer.prev().setContinuation()\n\t\tbuffer.replaceGlyph(saraAaFromSaraAm(u))\n\n\t\t/* Make Nikhahit be recognized as a ccc=0 mark when zeroing widths. */\n\t\tend := len(buffer.outInfo)\n\t\tbuffer.outInfo[end-2].setGeneralCategory(nonSpacingMark)\n\n\t\t/* Ok, let's see... */\n\t\tstart := end - 2\n\t\tfor start > 0 && isToneMark(buffer.outInfo[start-1].codepoint) {\n\t\t\tstart--\n\t\t}\n\n\t\tif start+2 < end {\n\t\t\t/* Move Nikhahit (end-2) to the beginning */\n\t\t\tbuffer.mergeOutClusters(start, end)\n\t\t\tt := buffer.outInfo[end-2]\n\t\t\tcopy(buffer.outInfo[start+1:], buffer.outInfo[start:end-2])\n\t\t\tbuffer.outInfo[start] = t\n\t\t} else {\n\t\t\t/* Since we decomposed, and NIKHAHIT is combining, merge clusters with the\n\t\t\t* previous cluster. */\n\t\t\tif start != 0 && buffer.ClusterLevel == MonotoneGraphemes {\n\t\t\t\tbuffer.mergeOutClusters(start-1, end)\n\t\t\t}\n\t\t}\n\t}\n\tbuffer.swapBuffers()\n\n\t/* If font has Thai GSUB, we are done. */\n\tif plan.props.Script == language.Thai && !plan.map_.foundScript[0] {\n\t\tdoThaiPuaShaping(buffer, font)\n\t}\n}", "func (s *BasePlSqlParserListener) ExitObject_name(ctx *Object_nameContext) {}", "func (t *Transform) Destroy() {\n\tt.Reset()\n\ttransformPool.Put(t)\n}", "func (d data) newPropertyName(name, fieldname string) string {\n\tv := reflect.ValueOf(d.src).Elem().FieldByName(name)\n\t// We are only interested in slices.\n\t// A single struct is already unique.\n\tif v.Kind() == reflect.Slice {\n\t\tusedNames := make(map[string]bool)\n\t\tfor i := 0; i < v.Len(); i++ {\n\t\t\ts := v.Index(i).FieldByName(\"Name\").String()\n\t\t\tusedNames[s] = true\n\t\t}\n\t\tfor i := v.Len(); ; i++ {\n\t\t\ts := strconv.Itoa(i + 1)\n\t\t\tif usedNames[s] == false {\n\t\t\t\treturn s\n\t\t\t}\n\t\t}\n\t}\n\treturn \"1\"\n}", "func _(s struct{A0}) { s.A0 = x0 }", "func (e *Encoder) reformatObject(dst []byte, src RawValue, depth int) ([]byte, RawValue, error) {\n\t// Append object start.\n\tif src[0] != '{' {\n\t\tpanic(\"BUG: reformatObject must be called with a buffer that starts with '{'\")\n\t}\n\tdst, src = append(dst, '{'), src[1:]\n\n\t// Append (possible) object end.\n\tsrc = src[consumeWhitespace(src):]\n\tif len(src) == 0 {\n\t\treturn dst, src, io.ErrUnexpectedEOF\n\t}\n\tif src[0] == '}' {\n\t\tdst, src = append(dst, '}'), src[1:]\n\t\treturn dst, src, nil\n\t}\n\n\tvar err error\n\tvar names *objectNamespace\n\tif !e.options.AllowDuplicateNames {\n\t\te.namespaces.push()\n\t\tdefer e.namespaces.pop()\n\t\tnames = e.namespaces.last()\n\t}\n\tdepth++\n\tfor {\n\t\t// Append optional newline and indentation.\n\t\tif e.options.multiline {\n\t\t\tdst = e.appendIndent(dst, depth)\n\t\t}\n\n\t\t// Append object name.\n\t\tsrc = src[consumeWhitespace(src):]\n\t\tif len(src) == 0 {\n\t\t\treturn dst, src, io.ErrUnexpectedEOF\n\t\t}\n\t\tn0 := len(dst) // offset before calling reformatString\n\t\tn := consumeSimpleString(src)\n\t\tif n > 0 && e.options.EscapeRune == nil {\n\t\t\tdst, src = append(dst, src[:n]...), src[n:] // copy simple strings verbatim\n\t\t} else {\n\t\t\tdst, src, err = reformatString(dst, src, !e.options.AllowInvalidUTF8, e.options.preserveRawStrings, e.options.EscapeRune)\n\t\t}\n\t\tif err != nil {\n\t\t\treturn dst, src, err\n\t\t}\n\t\tif !e.options.AllowDuplicateNames && !names.insertQuoted(dst[n0:], false) {\n\t\t\treturn dst, src, &SyntacticError{str: \"duplicate name \" + string(dst[n0:]) + \" in object\"}\n\t\t}\n\n\t\t// Append colon.\n\t\tsrc = src[consumeWhitespace(src):]\n\t\tif len(src) == 0 {\n\t\t\treturn dst, src, io.ErrUnexpectedEOF\n\t\t}\n\t\tif src[0] != ':' {\n\t\t\treturn dst, src, newInvalidCharacterError(src, \"after object name (expecting ':')\")\n\t\t}\n\t\tdst, src = append(dst, ':'), src[1:]\n\t\tif e.options.multiline {\n\t\t\tdst = append(dst, ' ')\n\t\t}\n\n\t\t// Append object value.\n\t\tsrc = src[consumeWhitespace(src):]\n\t\tif len(src) == 0 {\n\t\t\treturn dst, src, io.ErrUnexpectedEOF\n\t\t}\n\t\tdst, src, err = e.reformatValue(dst, src, depth)\n\t\tif err != nil {\n\t\t\treturn dst, src, err\n\t\t}\n\n\t\t// Append comma or object end.\n\t\tsrc = src[consumeWhitespace(src):]\n\t\tif len(src) == 0 {\n\t\t\treturn dst, src, io.ErrUnexpectedEOF\n\t\t}\n\t\tswitch src[0] {\n\t\tcase ',':\n\t\t\tdst, src = append(dst, ','), src[1:]\n\t\t\tcontinue\n\t\tcase '}':\n\t\t\tif e.options.multiline {\n\t\t\t\tdst = e.appendIndent(dst, depth-1)\n\t\t\t}\n\t\t\tdst, src = append(dst, '}'), src[1:]\n\t\t\treturn dst, src, nil\n\t\tdefault:\n\t\t\treturn dst, src, newInvalidCharacterError(src, \"after object value (expecting ',' or '}')\")\n\t\t}\n\t}\n}", "func RenameTransformer(newName string) SecretTransformer {\n\treturn func(secret *v1.Secret) {\n\t\tif newName != \"\" {\n\t\t\tsecret.SetName(newName)\n\t\t}\n\t}\n}", "func TranslatedObjectLabels() map[string]string {\n\treturn map[string]string{OwnershipLabelKey: defaults.GetPodNamespace()}\n}", "func makeLabeledName(metric *dto.Metric, metricName string) string {\n\tlabels := metric.GetLabel()\n\tsort.Sort(ByName(labels))\n\n\tlabeledName := strings.Builder{}\n\tlabeledName.WriteString(metricName)\n\tfor _, labelPair := range labels {\n\t\tlabeledName.WriteString(fmt.Sprintf(\"_%s_%s\", labelPair.GetName(), labelPair.GetValue()))\n\t}\n\treturn labeledName.String()\n}", "func (p *templateDecoder) prepareResource(obj runtime.Object) error {\n\tmeta.AddLabel(obj, meta.LabelChartName, p.config.Name)\n\n\tif meta.HasGroupKind(obj, statefulSetGK) {\n\t\treturn statefulset.AddOwnerLabels(obj)\n\t}\n\n\treturn nil\n}", "func (p *parametizer) reset() {\n\tp.pos, p.nest = 0, 0\n\n\tp.s.reset()\n\tp.buf.Reset()\n\n\tp.params, p.vars = [9]interface{}{}, [26]interface{}{}\n\n\tparametizerPool.Put(p)\n}", "func (h *pardo) PrepareTransform(tid string, t *pipepb.PTransform, comps *pipepb.Components) (*pipepb.Components, []string) {\n\n\t// ParDos are a pain in the butt.\n\t// Combines, by comparison, are dramatically simpler.\n\t// This is because for ParDos, how they are handled, and what kinds of transforms are in\n\t// and around the ParDo, the actual shape of the graph will change.\n\t// At their simplest, it's something a DoFn will handle on their own.\n\t// At their most complex, they require intimate interaction with the subgraph\n\t// bundling process, the data layer, state layers, and control layers.\n\t// But unlike combines, which have a clear urn for composite + special payload,\n\t// ParDos have the standard URN for composites with the standard payload.\n\t// So always, we need to first unmarshal the payload.\n\n\tpardoPayload := t.GetSpec().GetPayload()\n\tpdo := &pipepb.ParDoPayload{}\n\tif err := (proto.UnmarshalOptions{}).Unmarshal(pardoPayload, pdo); err != nil {\n\t\tpanic(fmt.Sprintf(\"unable to decode ParDoPayload for transform[%v]\", t.GetUniqueName()))\n\t}\n\n\t// Lets check for and remove anything that makes things less simple.\n\tif pdo.OnWindowExpirationTimerFamilySpec == \"\" &&\n\t\t!pdo.RequestsFinalization &&\n\t\t!pdo.RequiresStableInput &&\n\t\t!pdo.RequiresTimeSortedInput &&\n\t\tlen(pdo.StateSpecs) == 0 &&\n\t\tlen(pdo.TimerFamilySpecs) == 0 &&\n\t\tpdo.RestrictionCoderId == \"\" {\n\t\t// Which inputs are Side inputs don't change the graph further,\n\t\t// so they're not included here. Any nearly any ParDo can have them.\n\n\t\t// At their simplest, we don't need to do anything special at pre-processing time, and simply pass through as normal.\n\t\treturn &pipepb.Components{\n\t\t\tTransforms: map[string]*pipepb.PTransform{\n\t\t\t\ttid: t,\n\t\t\t},\n\t\t}, nil\n\t}\n\n\t// Side inputs add to topology and make fusion harder to deal with\n\t// (side input producers can't be in the same stage as their consumers)\n\t// But we don't have fusion yet, so no worries.\n\n\t// State, Timers, Stable Input, Time Sorted Input, and some parts of SDF\n\t// Are easier to deal including a fusion break. But We can do that with a\n\t// runner specific transform for stable input, and another for timesorted\n\t// input.\n\n\t// SplittableDoFns have 3 required phases and a 4th optional phase.\n\t//\n\t// PAIR_WITH_RESTRICTION which pairs elements with their restrictions\n\t// Input: element; := INPUT\n\t// Output: KV(element, restriction) := PWR\n\t//\n\t// SPLIT_AND_SIZE_RESTRICTIONS splits the pairs into sub element ranges\n\t// and a relative size for each, in a float64 format.\n\t// Input: KV(element, restriction) := PWR\n\t// Output: KV(KV(element, restriction), float64) := SPLITnSIZED\n\t//\n\t// PROCESS_SIZED_ELEMENTS_AND_RESTRICTIONS actually processes the\n\t// elements. This is also where splits need to be handled.\n\t// In particular, primary and residual splits have the same format as the input.\n\t// Input: KV(KV(element, restriction), size) := SPLITnSIZED\n\t// Output: DoFn's output. := OUTPUT\n\t//\n\t// TRUNCATE_SIZED_RESTRICTION is how the runner has an SDK turn an\n\t// unbounded transform into a bound one. Not needed until the pipeline\n\t// is told to drain.\n\t// Input: KV(KV(element, restriction), float64) := synthetic split results from above\n\t// Output: KV(KV(element, restriction), float64). := synthetic, truncated results sent as Split n Sized\n\t//\n\t// So with that, we can figure out the coders we need.\n\t//\n\t// cE - Element Coder (same as input coder)\n\t// cR - Restriction Coder\n\t// cS - Size Coder (float64)\n\t// ckvER - KV<Element, Restriction>\n\t// ckvERS - KV<KV<Element, Restriction>, Size>\n\t//\n\t// There could be a few output coders, but the outputs can be copied from\n\t// the original transform directly.\n\n\t// First lets get the parallel input coder ID.\n\tvar pcolInID, inputLocalID string\n\tfor localID, globalID := range t.GetInputs() {\n\t\t// The parallel input is the one that isn't a side input.\n\t\tif _, ok := pdo.SideInputs[localID]; !ok {\n\t\t\tinputLocalID = localID\n\t\t\tpcolInID = globalID\n\t\t\tbreak\n\t\t}\n\t}\n\tinputPCol := comps.GetPcollections()[pcolInID]\n\tcEID := inputPCol.GetCoderId()\n\tcRID := pdo.RestrictionCoderId\n\tcSID := \"c\" + tid + \"size\"\n\tckvERID := \"c\" + tid + \"kv_ele_rest\"\n\tckvERSID := ckvERID + \"_size\"\n\n\tcoder := func(urn string, componentIDs ...string) *pipepb.Coder {\n\t\treturn &pipepb.Coder{\n\t\t\tSpec: &pipepb.FunctionSpec{\n\t\t\t\tUrn: urn,\n\t\t\t},\n\t\t\tComponentCoderIds: componentIDs,\n\t\t}\n\t}\n\n\tcoders := map[string]*pipepb.Coder{\n\t\tckvERID: coder(urns.CoderKV, cEID, cRID),\n\t\tcSID: coder(urns.CoderDouble),\n\t\tckvERSID: coder(urns.CoderKV, ckvERID, cSID),\n\t}\n\n\t// PCollections only have two new ones.\n\t// INPUT -> same as ordinary DoFn\n\t// PWR, uses ckvER\n\t// SPLITnSIZED, uses ckvERS\n\t// OUTPUT -> same as ordinary outputs\n\n\tnPWRID := \"n\" + tid + \"_pwr\"\n\tnSPLITnSIZEDID := \"n\" + tid + \"_splitnsized\"\n\n\tpcol := func(name, coderID string) *pipepb.PCollection {\n\t\treturn &pipepb.PCollection{\n\t\t\tUniqueName: name,\n\t\t\tCoderId: coderID,\n\t\t\tIsBounded: inputPCol.GetIsBounded(),\n\t\t\tWindowingStrategyId: inputPCol.GetWindowingStrategyId(),\n\t\t}\n\t}\n\n\tpcols := map[string]*pipepb.PCollection{\n\t\tnPWRID: pcol(nPWRID, ckvERID),\n\t\tnSPLITnSIZEDID: pcol(nSPLITnSIZEDID, ckvERSID),\n\t}\n\n\t// PTransforms have 3 new ones, with process sized elements and restrictions\n\t// taking the brunt of the complexity, consuming the inputs\n\n\tePWRID := \"e\" + tid + \"_pwr\"\n\teSPLITnSIZEDID := \"e\" + tid + \"_splitnsize\"\n\teProcessID := \"e\" + tid + \"_processandsplit\"\n\n\ttform := func(name, urn, in, out string) *pipepb.PTransform {\n\t\treturn &pipepb.PTransform{\n\t\t\tUniqueName: name,\n\t\t\tSpec: &pipepb.FunctionSpec{\n\t\t\t\tUrn: urn,\n\t\t\t\tPayload: pardoPayload,\n\t\t\t},\n\t\t\tInputs: map[string]string{\n\t\t\t\tinputLocalID: in,\n\t\t\t},\n\t\t\tOutputs: map[string]string{\n\t\t\t\t\"i0\": out,\n\t\t\t},\n\t\t\tEnvironmentId: t.GetEnvironmentId(),\n\t\t}\n\t}\n\n\tnewInputs := maps.Clone(t.GetInputs())\n\tnewInputs[inputLocalID] = nSPLITnSIZEDID\n\n\ttforms := map[string]*pipepb.PTransform{\n\t\tePWRID: tform(ePWRID, urns.TransformPairWithRestriction, pcolInID, nPWRID),\n\t\teSPLITnSIZEDID: tform(eSPLITnSIZEDID, urns.TransformSplitAndSize, nPWRID, nSPLITnSIZEDID),\n\t\teProcessID: {\n\t\t\tUniqueName: eProcessID,\n\t\t\tSpec: &pipepb.FunctionSpec{\n\t\t\t\tUrn: urns.TransformProcessSizedElements,\n\t\t\t\tPayload: pardoPayload,\n\t\t\t},\n\t\t\tInputs: newInputs,\n\t\t\tOutputs: t.GetOutputs(),\n\t\t\tEnvironmentId: t.GetEnvironmentId(),\n\t\t},\n\t}\n\n\treturn &pipepb.Components{\n\t\tCoders: coders,\n\t\tPcollections: pcols,\n\t\tTransforms: tforms,\n\t}, t.GetSubtransforms()\n}", "func (s imageStreamMappingStrategy) PrepareForCreate(obj runtime.Object) {\n}", "func (r *ConfigConnectorContextReconciler) addLabels() declarative.ObjectTransform {\n\treturn func(ctx context.Context, o declarative.DeclarativeObject, manifest *manifest.Objects) error {\n\t\tlabels := r.labelMaker(ctx, o)\n\t\tfor _, o := range manifest.Items {\n\t\t\to.AddLabels(labels)\n\t\t}\n\t\treturn nil\n\t}\n}", "func normalizeForK8sVMASScalingUp(templateMap map[string]interface{}) error {\n\tif err := normalizeMasterResourcesForScaling(templateMap); err != nil {\n\t\treturn err\n\t}\n\trtIndex := -1\n\tnsgIndex := -1\n\tresources := templateMap[resourcesFieldName].([]interface{})\n\tfor index, resource := range resources {\n\t\tresourceMap, ok := resource.(map[string]interface{})\n\t\tif !ok {\n\t\t\tklog.Warning(\"Template improperly formatted for resource\")\n\t\t\tcontinue\n\t\t}\n\n\t\tresourceType, ok := resourceMap[typeFieldName].(string)\n\t\tif ok && resourceType == nsgResourceType {\n\t\t\tif nsgIndex != -1 {\n\t\t\t\terr := fmt.Errorf(\"found 2 resources with type %s in the template. There should only be 1\", nsgResourceType)\n\t\t\t\tklog.Errorf(err.Error())\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tnsgIndex = index\n\t\t}\n\t\tif ok && resourceType == rtResourceType {\n\t\t\tif rtIndex != -1 {\n\t\t\t\terr := fmt.Errorf(\"found 2 resources with type %s in the template. There should only be 1\", rtResourceType)\n\t\t\t\tklog.Warningf(err.Error())\n\t\t\t\treturn err\n\t\t\t}\n\t\t\trtIndex = index\n\t\t}\n\n\t\tdependencies, ok := resourceMap[dependsOnFieldName].([]interface{})\n\t\tif !ok {\n\t\t\tcontinue\n\t\t}\n\n\t\tfor dIndex := len(dependencies) - 1; dIndex >= 0; dIndex-- {\n\t\t\tdependency := dependencies[dIndex].(string)\n\t\t\tif strings.Contains(dependency, nsgResourceType) || strings.Contains(dependency, nsgID) ||\n\t\t\t\tstrings.Contains(dependency, rtResourceType) || strings.Contains(dependency, rtID) {\n\t\t\t\tdependencies = append(dependencies[:dIndex], dependencies[dIndex+1:]...)\n\t\t\t}\n\t\t}\n\n\t\tif len(dependencies) > 0 {\n\t\t\tresourceMap[dependsOnFieldName] = dependencies\n\t\t} else {\n\t\t\tdelete(resourceMap, dependsOnFieldName)\n\t\t}\n\t}\n\n\tindexesToRemove := []int{}\n\tif nsgIndex == -1 {\n\t\terr := fmt.Errorf(\"found no resources with type %s in the template. There should have been 1\", nsgResourceType)\n\t\tklog.Errorf(err.Error())\n\t\treturn err\n\t}\n\tif rtIndex == -1 {\n\t\tklog.Infof(\"Found no resources with type %s in the template.\", rtResourceType)\n\t} else {\n\t\tindexesToRemove = append(indexesToRemove, rtIndex)\n\t}\n\tindexesToRemove = append(indexesToRemove, nsgIndex)\n\ttemplateMap[resourcesFieldName] = removeIndexesFromArray(resources, indexesToRemove)\n\n\treturn nil\n}", "func transformGoTypeName(nodeData *ypathgen.NodeData) string {\n\t// TODO: map[] is an output for a non-leaf wildcard\n\t// GetFull()/Collect(), there hasn't been the need for non-leaves so\n\t// we haven't decided how to deal with those yet.\n\n\t// As maps, lists are never given defined types by ygen, so the input\n\t// type is either a pointer to a container struct (*structPkg.), or a leaf\n\t// type that's either a single value (structPkg.) or a slice ([]).\n\ts := strings.NewReplacer(\"*\", \"\").Replace(nodeData.LocalGoTypeName)\n\n\tconst slicePf = \"[]\"\n\tif strings.HasPrefix(s, slicePf) {\n\t\ts = strings.TrimPrefix(s, slicePf) + \"Slice\"\n\t}\n\treturn strings.ToUpper(s[0:1]) + s[1:]\n}", "func TransformLabelboxAnnotations(pathToLabelboxAnnotationsFile, pathToOutputDir string) {\n\tf, err := os.Open(pathToLabelboxAnnotationsFile)\n\n\tif err != nil {\n\t\tlog.Fatalf(\"Error opening file for transforming exported labelbox annotations. Filepath: %q, error: %v\", pathToLabelboxAnnotationsFile, err)\n\t}\n\n\tfileBytes, err := ioutil.ReadAll(f)\n\n\tif err != nil {\n\t\tlog.Fatalf(\"Error reading file: %v\", err)\n\t}\n\n\texportedAnnotations := []labelbox.LabelboxExportAnnotation{}\n\n\tfilteredExportedAnnotation := []labelbox.LabelboxExportAnnotation{}\n\tfor _, ea := range exportedAnnotations {\n\t\tif ea.ID != \"Skip\" && len(ea.Labels) > 0 {\n\t\t\tfilteredExportedAnnotation = append(filteredExportedAnnotation, ea)\n\t\t}\n\t}\n\texportedAnnotations = filteredExportedAnnotation\n\n\terr = json.Unmarshal(fileBytes, &exportedAnnotations)\n\n\tif err != nil {\n\t\tlog.Fatalf(\"Error Unmarshaling expoted annotations: %s\", err)\n\t}\n\n\trowsForFiles := map[string][][]string{}\n\n\t// regex that will replace translated part of the label - the stuff in brackets e.g -> Human(Clovek) --> Human\n\tlabelTranslationRe := regexp.MustCompile(`\\(.+\\)$`)\n\tfor _, exportedAnnotation := range exportedAnnotations {\n\t\tfileID := exportedAnnotation.ExternalID\n\t\trows := [][]string{}\n\n\t\texportedAnnotationLabels := exportedAnnotation.Labels\n\t\tfor class, classLabels := range exportedAnnotationLabels {\n\t\t\tclassWithoutTranslation := labelTranslationRe.ReplaceAllString(class, \"\")\n\t\t\tclassWithoutTranslation = regexp.MustCompile(`\\s`).ReplaceAllString(classWithoutTranslation, \"\")\n\t\t\tclassWithoutTranslation = strings.ToLower(classWithoutTranslation)\n\n\t\t\tfor _, labelGeometry := range classLabels {\n\t\t\t\tfmt.Println(classWithoutTranslation)\n\n\t\t\t\tleftTopPoint, rightBottomPoint := labelGeometry.GetBoundingBoxPoints()\n\n\t\t\t\tstr := fmt.Sprint\n\t\t\t\trow := []string{\n\t\t\t\t\tclassWithoutTranslation,\n\t\t\t\t\tstr(leftTopPoint.X),\n\t\t\t\t\tstr(leftTopPoint.Y),\n\t\t\t\t\tstr(rightBottomPoint.X),\n\t\t\t\t\tstr(rightBottomPoint.Y),\n\t\t\t\t}\n\t\t\t\trows = append(rows, row)\n\t\t\t}\n\t\t}\n\n\t\trowsForFiles[fileID] = rows\n\t}\n\n\terr = fileutils.CreateDirIfNotExists(pathToOutputDir)\n\tif err != nil {\n\t\tlog.Panicf(\"Failed to create output directory for transformed labelbox annotations. Error: %v\", err)\n\t}\n\n\tcurrentDirOutput := path.Join(pathToOutputDir, fileutils.GetFilenameFromFilepath(pathToLabelboxAnnotationsFile))\n\terr = fileutils.CreateDirIfNotExists(currentDirOutput)\n\tif err != nil {\n\t\tlog.Panicf(\"Failed to create output directory for transformed labelbox annotations. Error: %v\", err)\n\t}\n\n\tfor fileID, rows := range rowsForFiles {\n\t\tfmt.Println(fileID)\n\t\tfmt.Println(rows)\n\t\toutFilePath := path.Join(currentDirOutput, fileID+\".txt\")\n\t\toutFile := fileutils.CreateFile(&outFilePath)\n\t\tcsvWriter := csv.NewWriter(outFile)\n\t\tcsvWriter.Comma = rune(\" \"[0])\n\t\tcsvWriter.WriteAll(rows)\n\t}\n}", "func stage4() {\n\tlog.Println(\"stage 4\")\n\n\tminimal, err := pdf.Open(\"h7-minimal.pdf\")\n\tif err != nil {\n\t\tlog.Fatalln(errgo.Details(err))\n\t}\n\n\tannotationsObj := minimal.Get(pdf.ObjectReference{ObjectNumber: 7})\n\tannotations := annotationsObj.(pdf.Array)\n\n\t// annotation 8 1\n\tref, err := minimal.Add(pdf.IndirectObject{\n\t\tObjectReference: pdf.ObjectReference{ObjectNumber: 8, GenerationNumber: 1},\n\t\tObject: pdf.Dictionary{\n\t\t\tpdf.Name(\"Type\"): pdf.Name(\"Annot\"),\n\t\t\tpdf.Name(\"Subtype\"): pdf.Name(\"Text\"),\n\t\t\tpdf.Name(\"Rect\"): pdf.Array{\n\t\t\t\tpdf.Integer(58),\n\t\t\t\tpdf.Integer(657),\n\t\t\t\tpdf.Integer(172),\n\t\t\t\tpdf.Integer(742),\n\t\t\t},\n\t\t\tpdf.Name(\"Contents\"): pdf.String(\"New Text #1\"),\n\t\t\tpdf.Name(\"Open\"): pdf.Boolean(true),\n\t\t},\n\t})\n\tif err != nil {\n\t\tlog.Fatal(errgo.Details(err))\n\t}\n\tannotations = append(annotations, ref)\n\n\t// annotation 9 1\n\tref, err = minimal.Add(pdf.IndirectObject{\n\t\tObjectReference: pdf.ObjectReference{ObjectNumber: 9, GenerationNumber: 1},\n\t\tObject: pdf.Dictionary{\n\t\t\tpdf.Name(\"Type\"): pdf.Name(\"Annot\"),\n\t\t\tpdf.Name(\"Subtype\"): pdf.Name(\"Text\"),\n\t\t\tpdf.Name(\"Rect\"): pdf.Array{\n\t\t\t\tpdf.Integer(389),\n\t\t\t\tpdf.Integer(459),\n\t\t\t\tpdf.Integer(570),\n\t\t\t\tpdf.Integer(537),\n\t\t\t},\n\t\t\tpdf.Name(\"Contents\"): pdf.String(\"New Text #2\"),\n\t\t\tpdf.Name(\"Open\"): pdf.Boolean(false),\n\t\t},\n\t})\n\tif err != nil {\n\t\tlog.Fatal(errgo.Details(err))\n\t}\n\tannotations = append(annotations, ref)\n\n\t// annotation 12 0\n\tref, err = minimal.Add(pdf.IndirectObject{\n\t\tObjectReference: pdf.ObjectReference{ObjectNumber: 12},\n\t\tObject: pdf.Dictionary{\n\t\t\tpdf.Name(\"Type\"): pdf.Name(\"Annot\"),\n\t\t\tpdf.Name(\"Subtype\"): pdf.Name(\"Text\"),\n\t\t\tpdf.Name(\"Rect\"): pdf.Array{\n\t\t\t\tpdf.Integer(44),\n\t\t\t\tpdf.Integer(253),\n\t\t\t\tpdf.Integer(473),\n\t\t\t\tpdf.Integer(337),\n\t\t\t},\n\t\t\tpdf.Name(\"Contents\"): pdf.String(\"New Text #3\\\\203a longer text annotation which we will continue \\\\\\nonto a second line\"),\n\t\t\tpdf.Name(\"Open\"): pdf.Boolean(true),\n\t\t},\n\t})\n\tif err != nil {\n\t\tlog.Fatal(errgo.Details(err))\n\t}\n\tannotations = append(annotations, ref)\n\n\t// update the annotations array\n\tminimal.Add(pdf.IndirectObject{\n\t\tObjectReference: pdf.ObjectReference{ObjectNumber: 7},\n\t\tObject: annotations,\n\t})\n\n\terr = minimal.Save()\n\tif err != nil {\n\t\tlog.Fatalln(errgo.Details(err))\n\t}\n}", "func compileNewNames(inputFiles []string) (mapping map[string]string, twoStep bool) {\n\tmapping = make(map[string]string, len(inputFiles))\n\tfor i, name := range inputFiles {\n\t\tnewName := fmt.Sprintf(\"%02d-%s\", i+1, strings.TrimSuffix(name[3:], SUFFIX))\n\t\tif newName != name {\n\t\t\tif stringInSlice(newName, inputFiles) {\n\t\t\t\t// would overwrite existing file, add suffix\n\t\t\t\tnewName = fmt.Sprintf(\"%s%s\", newName, SUFFIX)\n\t\t\t\ttwoStep = true\n\t\t\t}\n\t\t}\n\t\tmapping[name] = newName\n\t}\n\treturn\n}", "func setupValidQueueNames() {\n\tfor _, jType := range models.ValidJobTypes {\n\t\tvar jt = string(jType)\n\t\tvalidQueues[jt] = true\n\t\tvalidQueueList = append(validQueueList, jt)\n\t}\n}", "func (s *tiltfileState) workloadToResourceFunctionNames(workloads []k8s.K8sEntity) ([]string, error) {\n\ttakenNames := make(map[string]k8s.K8sEntity)\n\tret := make([]string, len(workloads))\n\tthread := &starlark.Thread{\n\t\tPrint: s.print,\n\t}\n\tfor i, e := range workloads {\n\t\tid := newK8sObjectID(e)\n\t\tname, err := s.workloadToResourceFunction.fn(thread, id)\n\t\tif err != nil {\n\t\t\treturn nil, errors.Wrapf(err, \"error determining resource name for '%s'\", id.String())\n\t\t}\n\n\t\tif conflictingWorkload, ok := takenNames[name]; ok {\n\t\t\treturn nil, fmt.Errorf(\"both '%s' and '%s' mapped to resource name '%s'\", newK8sObjectID(e).String(), newK8sObjectID(conflictingWorkload).String(), name)\n\t\t}\n\n\t\tret[i] = name\n\t\ttakenNames[name] = e\n\t}\n\treturn ret, nil\n}", "func transformationFeature(transformer Transformer) Feature {\n\ttransformationType := NewFeature(TransformationTypeFeature, -1)\n\tswitch transformer.(type) {\n\tcase logicalOperatorReplacement:\n\t\ttransformationType.Score = LogicalOperatorTransformation\n\tcase *adjacencyRange:\n\t\ttransformationType.Score = AdjacencyRangeTransformation\n\tcase meshExplosion:\n\t\ttransformationType.Score = MeshExplosionTransformation\n\tcase fieldRestrictions:\n\t\ttransformationType.Score = FieldRestrictionsTransformation\n\tcase adjacencyReplacement:\n\t\ttransformationType.Score = AdjacencyReplacementTransformation\n\tcase clauseRemoval:\n\t\ttransformationType.Score = ClauseRemovalTransformation\n\tcase cui2vecExpansion:\n\t\ttransformationType.Score = Cui2vecExpansionTransformation\n\tcase meshParent:\n\t\ttransformationType.Score = MeshParentTransformation\n\t}\n\treturn transformationType\n}", "func (p *transformDataNodes) CleanUp() {}", "func (v *Vectorizer) Object(ctx context.Context, object *models.Object,\n\tobjectDiff *moduletools.ObjectDiff, icheck ClassIndexCheck,\n) error {\n\tvar overrides map[string]string\n\tif object.VectorWeights != nil {\n\t\toverrides = object.VectorWeights.(map[string]string)\n\t}\n\n\tvec, sources, err := v.object(ctx, object.Class, object.Properties, objectDiff, overrides,\n\t\ticheck)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tobject.Vector = vec\n\n\tif object.Additional == nil {\n\t\tobject.Additional = models.AdditionalProperties{}\n\t}\n\n\tobject.Additional[\"interpretation\"] = &txt2vecmodels.Interpretation{\n\t\tSource: sourceFromInputElements(sources),\n\t}\n\n\treturn nil\n}", "func (e RegistriesTransform) Name() string {\n\treturn \"Registries\"\n}", "func makeCommonLabels(vdb *vapi.VerticaDB, sc *vapi.Subcluster) map[string]string {\n\tlabels := makeOperatorLabels(vdb)\n\n\t// Remaining labels are for objects that are subcluster specific\n\tif sc == nil {\n\t\treturn labels\n\t}\n\n\tfor k, v := range makeSubclusterLabels(sc) {\n\t\tlabels[k] = v\n\t}\n\n\treturn labels\n}", "func (c *Inventory) sanitizeDesiredObjects(desiredObjects []runtime.Object) error {\n\tfor i := range desiredObjects {\n\t\tobjMeta, err := meta.Accessor(desiredObjects[i])\n\t\tif err != nil {\n\t\t\treturn errors.WrapIfWithDetails(err, \"couldn't get meta data access for object\", \"gvk\", desiredObjects[i].GetObjectKind().GroupVersionKind().String())\n\t\t}\n\n\t\tisClusterScoped, err := c.IsClusterScoped(desiredObjects[i])\n\t\tif err != nil {\n\t\t\tc.log.Error(err, \"scope check failed\")\n\t\t\tcontinue\n\t\t}\n\n\t\tif isClusterScoped && objMeta.GetNamespace() != \"\" {\n\t\t\tc.log.V(2).Info(\"removing namespace field from cluster scoped object\", \"gvk\", desiredObjects[i].GetObjectKind().GroupVersionKind().String(), \"name\", objMeta.GetName())\n\t\t\tobjMeta.SetNamespace(\"\")\n\t\t}\n\t}\n\treturn nil\n}", "func (a *AddLabels) Transform(mfs []*dto.MetricFamily) []*dto.MetricFamily {\n\tfor i := range mfs {\n\t\tfor j, m := range mfs[i].Metric {\n\t\t\t// Filter out labels to add\n\t\t\tlabels := m.Label[:0]\n\t\t\tfor _, l := range m.Label {\n\t\t\t\tif _, ok := a.Labels[l.GetName()]; !ok {\n\t\t\t\t\tlabels = append(labels, l)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Add all new labels to the metric\n\t\t\tfor k, v := range a.Labels {\n\t\t\t\tlabels = append(labels, L(k, v))\n\t\t\t}\n\t\t\tsort.Sort(labelPairSorter(labels))\n\t\t\tmfs[i].Metric[j].Label = labels\n\t\t}\n\t}\n\treturn mfs\n}", "func transformArgs(n ir.InitNode) {\n\tvar list []ir.Node\n\tswitch n := n.(type) {\n\tdefault:\n\t\tbase.Fatalf(\"transformArgs %+v\", n.Op())\n\tcase *ir.CallExpr:\n\t\tlist = n.Args\n\t\tif n.IsDDD {\n\t\t\treturn\n\t\t}\n\tcase *ir.ReturnStmt:\n\t\tlist = n.Results\n\t}\n\tif len(list) != 1 {\n\t\treturn\n\t}\n\n\tt := list[0].Type()\n\tif t == nil || !t.IsFuncArgStruct() {\n\t\treturn\n\t}\n\n\t// Save n as n.Orig for fmt.go.\n\tif ir.Orig(n) == n {\n\t\tn.(ir.OrigNode).SetOrig(ir.SepCopy(n))\n\t}\n\n\t// Rewrite f(g()) into t1, t2, ... = g(); f(t1, t2, ...).\n\ttypecheck.RewriteMultiValueCall(n, list[0])\n}", "func (ss Set) Transform(fn func(string) string) {\n\tfor k, v := range ss {\n\t\tnk := fn(k)\n\t\tif nk != k {\n\t\t\tdelete(ss, k)\n\t\t\tss[nk] = v\n\t\t}\n\t}\n}", "func (ec *executionContext) _Action_name(ctx context.Context, field graphql.CollectedField, obj *Action) (ret graphql.Marshaler) {\n\tdefer func() {\n\t\tif r := recover(); r != nil {\n\t\t\tec.Error(ctx, ec.Recover(ctx, r))\n\t\t\tret = graphql.Null\n\t\t}\n\t}()\n\tfc := &graphql.FieldContext{\n\t\tObject: \"Action\",\n\t\tField: field,\n\t\tArgs: nil,\n\t\tIsMethod: false,\n\t\tIsResolver: false,\n\t}\n\n\tctx = graphql.WithFieldContext(ctx, fc)\n\tresTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {\n\t\tctx = rctx // use context from middleware stack in children\n\t\treturn obj.Name, nil\n\t})\n\tif err != nil {\n\t\tec.Error(ctx, err)\n\t\treturn graphql.Null\n\t}\n\tif resTmp == nil {\n\t\tif !graphql.HasFieldError(ctx, fc) {\n\t\t\tec.Errorf(ctx, \"must not be null\")\n\t\t}\n\t\treturn graphql.Null\n\t}\n\tres := resTmp.(string)\n\tfc.Result = res\n\treturn ec.marshalNString2string(ctx, field.Selections, res)\n}", "func (client *Client) prepareName(namespace, name, suffix string, source gostatsd.Source, tags gostatsd.Tags) string {\n\tbuf := bytes.Buffer{}\n\tif namespace != \"\" {\n\t\tbuf.WriteString(namespace)\n\t\tbuf.WriteByte('.')\n\t}\n\tbuf.WriteString(normalizeMetricName(name))\n\tif suffix != \"\" {\n\t\tbuf.WriteByte('.')\n\t\tbuf.WriteString(suffix)\n\t}\n\tif client.globalSuffix != \"\" {\n\t\tbuf.WriteByte('.')\n\t\tbuf.WriteString(client.globalSuffix)\n\t}\n\n\tif client.enableTags {\n\t\thaveHost := false\n\t\tfor _, tag := range tags {\n\t\t\tgraphiteTag := asGraphiteTag(tag)\n\t\t\tbuf.WriteByte(';')\n\t\t\tbuf.WriteString(graphiteTag)\n\t\t\tif strings.HasPrefix(tag, \"host:\") {\n\t\t\t\thaveHost = true\n\t\t\t}\n\t\t}\n\t\tif !haveHost && source != \"\" {\n\t\t\tbuf.WriteString(\";host=\")\n\t\t\tbuf.WriteString(string(source))\n\t\t}\n\t}\n\n\treturn buf.String()\n}", "func adjustedObjEnd(obj types.Object) token.Pos {\n\tnameLen := len(obj.Name())\n\tif pkgName, ok := obj.(*types.PkgName); ok {\n\t\t// An imported Go package has a package-local, unqualified name.\n\t\t// When the name matches the imported package name, there is no\n\t\t// identifier in the import spec with the local package name.\n\t\t//\n\t\t// For example:\n\t\t// \t\timport \"go/ast\" \t// name \"ast\" matches package name\n\t\t// \t\timport a \"go/ast\" \t// name \"a\" does not match package name\n\t\t//\n\t\t// When the identifier does not appear in the source, have the range\n\t\t// of the object be the import path, including quotes.\n\t\tif pkgName.Imported().Name() == pkgName.Name() {\n\t\t\tnameLen = len(pkgName.Imported().Path()) + len(`\"\"`)\n\t\t}\n\t}\n\treturn obj.Pos() + token.Pos(nameLen)\n}", "func (g *grpc) objectNamed(name string) generator.Object {\n\tg.gen.RecordTypeUse(name)\n\treturn g.gen.ObjectNamed(name)\n}", "func setAlamedaScalerControllerName(obj metav1.Object, name string) {\n\tannotations := obj.GetAnnotations()\n\tif annotations == nil {\n\t\tannotations = make(map[string]string)\n\t}\n\tannotations[alamedaScalerTypeAnnotationKey] = name\n\n\tobj.SetAnnotations(annotations)\n}", "func nameFromAnnotations(annotations map[string]string) string {\n\tif annotations == nil {\n\t\treturn \"\"\n\t}\n\t// buildkit/containerd are using a custom annotation see\n\t// containers/podman/issues/12560.\n\tif annotations[\"io.containerd.image.name\"] != \"\" {\n\t\treturn annotations[\"io.containerd.image.name\"]\n\t}\n\treturn annotations[ociSpec.AnnotationRefName]\n}", "func attachNameSpaceToName(nameSpace string, clusterInfo *cres.ClusterInfo) {\n\tnameSpace += \"-\"\n\n\t// (0) Cluster's IID\n\tclusterInfo.IId.NameId = nameSpace + clusterInfo.IId.NameId\n\n\t// (1) Network's VpcIID\n\tclusterInfo.Network.VpcIID.NameId = nameSpace + clusterInfo.Network.VpcIID.NameId\n\n\t// (2) Network's SubnetIIDs\n\t//for idx, _ := range clusterInfo.Network.SubnetIIDs {\n\t// clusterInfo.Network.SubnetIIDs[idx].NameId = nameSpace + clusterInfo.Network.SubnetIIDs[idx].NameId\n\t//}\n\n\t// (3) Network's SecurityGroupsIIDs\n\tfor idx, _ := range clusterInfo.Network.SecurityGroupIIDs {\n\t\tclusterInfo.Network.SecurityGroupIIDs[idx].NameId = nameSpace + clusterInfo.Network.SecurityGroupIIDs[idx].NameId\n\t}\n\n\t// (4) NodeGroup's KeyPairIID\n\tfor idx, _ := range clusterInfo.NodeGroupList {\n\t\tclusterInfo.NodeGroupList[idx].KeyPairIID.NameId = nameSpace + clusterInfo.NodeGroupList[idx].KeyPairIID.NameId\n\t}\n}", "func transformFirstName(input string) string {\n\treturn strings.Replace(toLowerAndTrim(input), \" \", \"-\", -1)\n}", "func (m *Module) gatherProviderLocalNames() {\n\tproviders := make(map[addrs.Provider]string)\n\tfor k, v := range m.ProviderRequirements.RequiredProviders {\n\t\tproviders[v.Type] = k\n\t}\n\tm.ProviderLocalNames = providers\n}", "func (e *With32FieldsFeatureTransformer) TransformInplace(dst []float64, s *With32Fields) {\n\tif s == nil || e == nil || len(dst) != e.NumFeatures() {\n\t\treturn\n\t}\n\tidx := 0\n\n\tdst[idx] = e.Name1.Transform(float64(s.Name1))\n\tidx++\n\n\tdst[idx] = e.Name2.Transform(float64(s.Name2))\n\tidx++\n\n\tdst[idx] = e.Name3.Transform(float64(s.Name3))\n\tidx++\n\n\tdst[idx] = e.Name4.Transform(float64(s.Name4))\n\tidx++\n\n\tdst[idx] = e.Name5.Transform(float64(s.Name5))\n\tidx++\n\n\tdst[idx] = e.Name6.Transform(float64(s.Name6))\n\tidx++\n\n\tdst[idx] = e.Name7.Transform(float64(s.Name7))\n\tidx++\n\n\tdst[idx] = e.Name8.Transform(float64(s.Name8))\n\tidx++\n\n\tdst[idx] = e.Name9.Transform(float64(s.Name9))\n\tidx++\n\n\tdst[idx] = e.Name10.Transform(float64(s.Name10))\n\tidx++\n\n\tdst[idx] = e.Name11.Transform(float64(s.Name11))\n\tidx++\n\n\tdst[idx] = e.Name12.Transform(float64(s.Name12))\n\tidx++\n\n\tdst[idx] = e.Name13.Transform(float64(s.Name13))\n\tidx++\n\n\tdst[idx] = e.Name14.Transform(float64(s.Name14))\n\tidx++\n\n\tdst[idx] = e.Name15.Transform(float64(s.Name15))\n\tidx++\n\n\tdst[idx] = e.Name16.Transform(float64(s.Name16))\n\tidx++\n\n\tdst[idx] = e.Name17.Transform(float64(s.Name17))\n\tidx++\n\n\tdst[idx] = e.Name18.Transform(float64(s.Name18))\n\tidx++\n\n\tdst[idx] = e.Name19.Transform(float64(s.Name19))\n\tidx++\n\n\tdst[idx] = e.Name21.Transform(float64(s.Name21))\n\tidx++\n\n\tdst[idx] = e.Name22.Transform(float64(s.Name22))\n\tidx++\n\n\tdst[idx] = e.Name23.Transform(float64(s.Name23))\n\tidx++\n\n\tdst[idx] = e.Name24.Transform(float64(s.Name24))\n\tidx++\n\n\tdst[idx] = e.Name25.Transform(float64(s.Name25))\n\tidx++\n\n\tdst[idx] = e.Name26.Transform(float64(s.Name26))\n\tidx++\n\n\tdst[idx] = e.Name27.Transform(float64(s.Name27))\n\tidx++\n\n\tdst[idx] = e.Name28.Transform(float64(s.Name28))\n\tidx++\n\n\tdst[idx] = e.Name29.Transform(float64(s.Name29))\n\tidx++\n\n\tdst[idx] = e.Name30.Transform(float64(s.Name30))\n\tidx++\n\n\tdst[idx] = e.Name31.Transform(float64(s.Name31))\n\tidx++\n\n\tdst[idx] = e.Name32.Transform(float64(s.Name32))\n\tidx++\n\n}", "func (gc *GceCache) InvalidateAllMigInstanceTemplateNames() {\n\tgc.cacheMutex.Lock()\n\tdefer gc.cacheMutex.Unlock()\n\n\tklog.V(5).Infof(\"Instance template names cache invalidated\")\n\tgc.instanceTemplateNameCache = map[GceRef]string{}\n}", "func resourceAzurermResourceGroupNameDiffSuppress(k, old, new string, d *schema.ResourceData) bool {\n\treturn strings.ToLower(old) == strings.ToLower(new)\n}", "func fixLegacyInventoryName(obj *unstructured.Unstructured) error {\n\tif obj.GetName() == legacyInvName {\n\t\tklog.V(4).Infof(\"renaming legacy inventory name\")\n\t\trandomSuffix := common.RandomStr()\n\t\treturn addSuffixToName(obj, randomSuffix)\n\t}\n\treturn nil\n}", "func makeLabelsForSvcObject(vdb *vapi.VerticaDB, sc *vapi.Subcluster, svcType string) map[string]string {\n\tlabels := makeLabelsForObject(vdb, sc)\n\tlabels[SvcTypeLabel] = svcType\n\treturn labels\n}", "func (d *dubbogo) objectNamed(name string) generator.Object {\n d.gen.RecordTypeUse(name)\n return d.gen.ObjectNamed(name)\n}", "func fixMbeanNames(config *Config) {\n\tfor index, m := range config.Metrics {\n\t\tparts := strings.Split(m.Source.Mbean, \":\")\n\t\tif len(parts) == 1 {\n\t\t\tcontinue\n\t\t}\n\n\t\tfields := strings.Split(parts[1], \",\")\n\t\tsort.Strings(fields)\n\t\tconfig.Metrics[index].Source.Mbean = strings.Join([]string{parts[0], strings.Join(fields, \",\")}, \":\")\n\t}\n}", "func hpaReferencesObjects(resourceDiffs []*argoappv1.ResourceDiff) ([]*unstructured.Unstructured, []string, map[string]*argoappv1.ResourceDiff) {\n\thpaObjects := make([]*unstructured.Unstructured, 0)\n\tresourceNames := make([]string, 0)\n\tresources := make(map[string]*argoappv1.ResourceDiff)\n\n\tfor i := range resourceDiffs {\n\t\tobj := resourceDiffs[i]\n\t\tif obj.Kind == \"HorizontalPodAutoscaler\" && obj.Group == \"autoscaling\" {\n\t\t\ttargetObject, error := obj.TargetObject()\n\t\t\tif error == nil && targetObject != nil {\n\t\t\t\tspecObj := targetObject.Object[\"spec\"]\n\t\t\t\tif specObj != nil && reflect.TypeOf(specObj).String() == \"map[string]interface {}\" {\n\t\t\t\t\tspec := specObj.(map[string]interface{})\n\t\t\t\t\tscaleTargetRefObj := spec[\"scaleTargetRef\"]\n\t\t\t\t\tif scaleTargetRefObj != nil && reflect.TypeOf(scaleTargetRefObj).String() == \"map[string]interface {}\" {\n\t\t\t\t\t\tscaleTargetRef := scaleTargetRefObj.(map[string]interface{})\n\t\t\t\t\t\tif scaleTargetRef[\"kind\"] == \"Deployment\" || scaleTargetRef[\"kind\"] == \"Rollout\" {\n\t\t\t\t\t\t\tcopy := targetObject.DeepCopy()\n\t\t\t\t\t\t\thpaObjects = append(hpaObjects, copy)\n\t\t\t\t\t\t\tvar resourceName = scaleTargetRef[\"name\"].(string)\n\t\t\t\t\t\t\tresourceNames = append(resourceNames, resourceName)\n\n\t\t\t\t\t\t\tlog.Infof(\"The HorizontalPodAutoscaler:%s is associated with %s:%s\", targetObject.GetName(), scaleTargetRef[\"kind\"], resourceName)\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else if obj.Kind == \"Deployment\" {\n\t\t\tresources[obj.Name] = obj.DeepCopy()\n\t\t} else if obj.Kind == \"Rollout\" && obj.Group == \"argoproj.io\" {\n\t\t\tresources[obj.Name] = obj.DeepCopy()\n\t\t}\n\t}\n\treturn hpaObjects, resourceNames, resources\n}", "func (*Transformations) Descriptor() ([]byte, []int) {\n\treturn file_github_com_solo_io_gloo_projects_gloo_api_v1_options_transformation_transformation_proto_rawDescGZIP(), []int{2}\n}", "func (o *TransactionSplit) UnsetSourceName() {\n\to.SourceName.Unset()\n}", "func (obj *transform) Input() string {\n\treturn obj.input\n}", "func (m *ToolMutation) ResetToolName() {\n\tm._Tool_Name = nil\n}", "func GenerateKeyNames(tr time.Time) *AllKeys {\n\tk := &AllKeys{\n\t\tDst: KeyNames{},\n\t\tSrc: KeyNames{},\n\t}\n\n\tk.Src.CurrentCounterSet = generateSegmentPrefix(\"set:counter:src\", tr)\n\tk.Src.CurrentCounterHSet = generateSegmentPrefix(\"hset:counter:src\", tr)\n\tk.Dst.CurrentCounterSet = generateSegmentPrefix(\"set:counter:dst\", tr)\n\tk.Dst.CurrentCounterHSet = generateSegmentPrefix(\"hset:counter:dst\", tr)\n\treturn k\n}", "func EvolveName(name string) string {\n\tvar newName string\n\tfor {\n\t\tsyllables := matchSyllables(name)\n\t\tchosenSyl := rnd().Intn(len(syllables))\n\t\tdecision := decideSyllable(len(syllables))\n\t\tvar newSyllables []string\n\t\ti := 0\n\t\tfor i = 0; i < chosenSyl; i++ {\n\t\t\tnewSyllables = append(newSyllables, syllables[i])\n\t\t}\n\t\tif decision == 0 {\n\t\t\tfor j := chosenSyl; j < len(syllables)-1; j++ {\n\t\t\t\tnewSyllables = append(newSyllables, syllables[j+1])\n\t\t\t}\n\t\t} else if decision == 1 {\n\t\t\tnewSyllables = append(newSyllables, getNewSyllable())\n\t\t\tfor j := chosenSyl + 1; j < len(syllables); j++ {\n\t\t\t\tnewSyllables = append(newSyllables, syllables[j])\n\t\t\t}\n\t\t} else if decision == 2 {\n\t\t\tnewSyllables = append(newSyllables, getNewSyllable())\n\t\t\tfor j := chosenSyl; j < len(syllables); j++ {\n\t\t\t\tnewSyllables = append(newSyllables, syllables[j])\n\t\t\t}\n\t\t} else if decision == 3 {\n\t\t\tnewSyllables = append(newSyllables, syllables[chosenSyl])\n\t\t\tnewSyllables = append(newSyllables, getNewSyllable())\n\t\t\tfor j := chosenSyl; j < len(syllables); j++ {\n\t\t\t\tnewSyllables = append(newSyllables, syllables[j])\n\t\t\t}\n\t\t}\n\t\tnewName = \"\"\n\t\tfor j := 0; j < len(newSyllables); j++ {\n\t\t\tnewName = newName + newSyllables[j]\n\t\t}\n\t\tif newName != name {\n\t\t\tbreak\n\t\t}\n\t}\n\treturn newName\n}" ]
[ "0.50381756", "0.5010883", "0.49230307", "0.48573288", "0.4845886", "0.48306808", "0.48090082", "0.47814474", "0.47723758", "0.4762142", "0.47459754", "0.47455785", "0.47339106", "0.4722607", "0.47124726", "0.47026098", "0.47026098", "0.46931088", "0.46768346", "0.46618736", "0.4630623", "0.4607428", "0.45994294", "0.45932928", "0.45843288", "0.4573466", "0.4568842", "0.4562753", "0.45548835", "0.45506158", "0.45497593", "0.45339823", "0.45193496", "0.45154223", "0.4514182", "0.4512379", "0.45094454", "0.45008913", "0.4497877", "0.4492421", "0.44741616", "0.4470158", "0.44651932", "0.44637984", "0.446148", "0.44374707", "0.44163898", "0.44023567", "0.440144", "0.43964338", "0.43850338", "0.43825603", "0.43803164", "0.43735418", "0.43730646", "0.4371743", "0.4370779", "0.43661454", "0.4365832", "0.43630934", "0.43573818", "0.434206", "0.43404254", "0.43350163", "0.43151423", "0.43129504", "0.43109936", "0.43061033", "0.42998987", "0.42971233", "0.42908922", "0.42903855", "0.42857632", "0.4284554", "0.42813164", "0.42750627", "0.4273214", "0.4269575", "0.42680806", "0.42678595", "0.42640543", "0.4263973", "0.4261201", "0.42601043", "0.42593676", "0.42587155", "0.4257073", "0.42527825", "0.4250241", "0.42439124", "0.424233", "0.42395037", "0.42393985", "0.42381856", "0.42352453", "0.42308846", "0.42206052", "0.42173433", "0.42165413", "0.42102844", "0.42093328" ]
0.0
-1
generate vertex array object names
func GenVertexArrays(n int32, arrays *uint32) { C.glowGenVertexArrays(gpGenVertexArrays, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(arrays))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GenVertexArrays(n int32, arrays *uint32) {\n\tsyscall.Syscall(gpGenVertexArrays, 2, uintptr(n), uintptr(unsafe.Pointer(arrays)), 0)\n}", "func GenVertexArrays(n int32, arrays *uint32) {\n C.glowGenVertexArrays(gpGenVertexArrays, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(arrays)))\n}", "func createVertex(children []string, name string) (NodeG) {\n if len(children) == 0 {\n // this is wrong...\n // you can't this return a nil.\n // you can declare a var and return it but that seems weird...\n return NodeG{name, nil}\n }\n\n // this has to be a make cant declare a slice...\n result := make([]NodeG, len(children))\n for i:= 0 ; i<len(children) ; i++ {\n n := NodeG{children[i], nil}\n result[i] = n\n }\n\n return NodeG{name, result}\n}", "func (v Vertex) String() string {\n\treturn \"Vertex: \" + strconv.Itoa(v.X) + \",\" + strconv.Itoa(v.Y)\n}", "func (c *vertexCollection) Name() string {\n\treturn c.name\n}", "func (debugging *debuggingOpenGL) GenVertexArrays(n int32) []uint32 {\n\tdebugging.recordEntry(\"GenVertexArrays\", n)\n\tresult := debugging.gl.GenVertexArrays(n)\n\tdebugging.recordExit(\"GenVertexArrays\", result)\n\treturn result\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *int8) {\n C.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func GenerateVertexArray(n int32) uint32 {\n\tvar vao uint32\n\t//gl.GenVertexArraysAPPLE(n, &vao)\n\tgl.GenVertexArrays(n, &vao)\n\t/*if err := gl.GetError(); err != 0 {\n\t\tlog.Println(\"Error in GenVertexArrays!\", err)\n\t}*/\n\n\treturn vao\n}", "func (c CVSS) ToStringVector() string {\n\ts := make([]string, len(c))\n\tfor i, metric := range c {\n\t\ts[i] = names[metric]\n\t}\n\tsort.Strings(s)\n\treturn strings.Join(s, \"/\")\n}", "func GenerateLabels(object CommonInterface) map[string]string {\n\tkind := object.GroupVersionKind().Kind\n\tgroup := object.GroupVersionKind().Group\n\tname := object.GetName()\n\tkey := strings.ToLower(kind) + \".\" + group + \"/name\"\n\tlabels := make(map[string]string)\n\tlabels[key] = name\n\treturn labels\n}", "func GenerateLabels(object CommonInterface) map[string]string {\n\tkind := object.GroupVersionKind().Kind\n\tgroup := object.GroupVersionKind().Group\n\tname := object.GetName()\n\tkey := strings.ToLower(kind) + \".\" + group + \"/name\"\n\tlabels := make(map[string]string)\n\tlabels[key] = name\n\treturn labels\n}", "func CreateVertexArrays(n int32, arrays *uint32) {\n\tsyscall.Syscall(gpCreateVertexArrays, 2, uintptr(n), uintptr(unsafe.Pointer(arrays)), 0)\n}", "func VertexArrayAttribFormat(vaobj uint32, attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n\tsyscall.Syscall6(gpVertexArrayAttribFormat, 6, uintptr(vaobj), uintptr(attribindex), uintptr(size), uintptr(xtype), boolToUintptr(normalized), uintptr(relativeoffset))\n}", "func (native *OpenGL) GenVertexArrays(n int32) []uint32 {\n\tids := make([]uint32, n)\n\tgl.GenVertexArrays(n, &ids[0])\n\treturn ids\n}", "func (vertex Vertex) String() string {\n\ts := \"[\"\n\tfor i, move := range vertex.Moves {\n\t\ts = s + string(move)\n\t\tif i != len(vertex.Moves)-1 {\n\t\t\ts = s + \", \"\n\t\t}\n\t}\n\ts = s + \"]\"\n\treturn s\n}", "func (arr *varArray) Name() string {\n\treturn arr.name\n}", "func (v *Vertex) flatten() []string {\n\n\tlineage := []string{}\n\n\tp := v\n\tfor p != nil {\n\t\t// Prepend the lineage\n\t\tlineage = append([]string{p.Identifier}, lineage...)\n\t\tp = p.Parent\n\t}\n\n\treturn lineage\n}", "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *int8) {\n C.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func VertexArrayAttribFormat(vaobj uint32, attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n\tC.glowVertexArrayAttribFormat(gpVertexArrayAttribFormat, (C.GLuint)(vaobj), (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(relativeoffset))\n}", "func VertexArrayAttribFormat(vaobj uint32, attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n\tC.glowVertexArrayAttribFormat(gpVertexArrayAttribFormat, (C.GLuint)(vaobj), (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(relativeoffset))\n}", "func parseVertex(t []string) []float32 {\n\tx, _ := strconv.ParseFloat(t[0], 32)\n\ty, _ := strconv.ParseFloat(t[1], 32)\n\tz, _ := strconv.ParseFloat(t[2], 32)\n\n\treturn []float32{float32(x), float32(y), float32(z)}\n}", "func (g *Generator) createIndexAndNameDecl(run []Value, typeName string, suffix string) (string, string) {\n\tb := new(bytes.Buffer)\n\tindexes := make([]int, len(run))\n\tfor i := range run {\n\t\tb.WriteString(run[i].nameInfo.trimmedName)\n\t\tindexes[i] = b.Len()\n\t}\n\tnameConst := fmt.Sprintf(\"_%s_name%s = %q\", typeName, suffix, b.String())\n\tnameLen := b.Len()\n\tb.Reset()\n\t_, _ = fmt.Fprintf(b, \"_%s_index%s = [...]uint%d{0, \", typeName, suffix, usize(nameLen))\n\tfor i, v := range indexes {\n\t\tif i > 0 {\n\t\t\t_, _ = fmt.Fprintf(b, \", \")\n\t\t}\n\t\t_, _ = fmt.Fprintf(b, \"%d\", v)\n\t}\n\t_, _ = fmt.Fprintf(b, \"}\")\n\treturn b.String(), nameConst\n}", "func vtaGraphStr(g vtaGraph) []string {\n\tvar vgs []string\n\tfor n, succ := range g {\n\t\tvar succStr []string\n\t\tfor s := range succ {\n\t\t\tsuccStr = append(succStr, s.String())\n\t\t}\n\t\tsort.Strings(succStr)\n\t\tentry := fmt.Sprintf(\"%v -> %v\", n.String(), strings.Join(succStr, \", \"))\n\t\tvgs = append(vgs, entry)\n\t}\n\treturn vgs\n}", "func PackVertex(v *gdbi.Vertex) map[string]interface{} {\n\treturn map[string]interface{}{\n\t\t\"gid\": v.ID,\n\t\t\"label\": v.Label,\n\t\t\"data\": v.Data,\n\t}\n}", "func CreateVertexArrays(n int32, arrays *uint32) {\n\tC.glowCreateVertexArrays(gpCreateVertexArrays, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(arrays)))\n}", "func CreateVertexArrays(n int32, arrays *uint32) {\n\tC.glowCreateVertexArrays(gpCreateVertexArrays, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(arrays)))\n}", "func VertexKey(graph, id string) []byte {\n\treturn bytes.Join([][]byte{vertexPrefix, []byte(graph), []byte(id)}, []byte{0})\n}", "func GenerateShapes() {\r\n\t// Square\r\n\tShapes[0].vertices = []gl.GLfloat{-1, -1, 1, -1, -1, 1, 1, 1}\r\n\tShapes[0].elements = []gl.GLushort{0, 1, 2, 2, 3, 1}\r\n\r\n\t// ___|\r\n\tShapes[1].vertices = []gl.GLfloat{-2, 0, -2, -1, 2, -1, 2, 0, 2, 1, 1, 1, 1, 0}\r\n\tShapes[1].elements = []gl.GLushort{0, 1, 2, 2, 3, 0, 3, 4, 5, 5, 6, 3}\r\n\r\n\t// _|_\r\n\tShapes[2].vertices = []gl.GLfloat{-1.5, 0, -0.5, 0, -0.5, 1, 0.5, 1, 0.5, 0, 1.5, 0, 1.5, -1, -1.5, -1}\r\n\tShapes[2].elements = []gl.GLushort{1, 2, 3, 3, 4, 1, 0, 7, 6, 6, 0, 5}\r\n\r\n\t// Snake\r\n\tShapes[3].vertices = []gl.GLfloat{-1.5, -1, -1.5, 0, -0.5, 0, -0.5, 1, 1.5, 1, 1.5, 0, 0.5, 0, 0.5, -1}\r\n\tShapes[3].elements = []gl.GLushort{0, 1, 6, 6, 7, 0, 2, 3, 4, 4, 5, 2}\r\n\r\n\t// Now fill out the rest automatically.\r\n\t// FIXME why doesn't using _, shape in this loop work ?\r\n\tfor i := range Shapes {\r\n\t\tShapes[i].vao = gl.GenVertexArray()\r\n\t\tShapes[i].vao.Bind()\r\n\t\tShapes[i].vbo = gl.GenBuffer()\r\n\t\tShapes[i].vbo.Bind(gl.ARRAY_BUFFER)\r\n\t\tgl.BufferData(gl.ARRAY_BUFFER, len(Shapes[i].vertices)*4, Shapes[i].vertices, gl.STATIC_DRAW)\r\n\t\tShapes[i].elementBuffer = gl.GenBuffer()\r\n\t\tShapes[i].elementBuffer.Bind(gl.ELEMENT_ARRAY_BUFFER)\r\n\t\tgl.BufferData(gl.ELEMENT_ARRAY_BUFFER, len(Shapes[i].elements)*2, Shapes[i].elements, gl.STATIC_DRAW)\r\n\t\tShapes[i].numElements = len(Shapes[i].elements)\r\n\r\n\t\tvertexAttribArray := shaderProgram.GetAttribLocation(\"position\")\r\n\t\tvertexAttribArray.AttribPointer(2, gl.FLOAT, false, 0, uintptr(0))\r\n\t\tvertexAttribArray.EnableArray()\r\n\t}\r\n}", "func (d data) newPropertyName(name, fieldname string) string {\n\tv := reflect.ValueOf(d.src).Elem().FieldByName(name)\n\t// We are only interested in slices.\n\t// A single struct is already unique.\n\tif v.Kind() == reflect.Slice {\n\t\tusedNames := make(map[string]bool)\n\t\tfor i := 0; i < v.Len(); i++ {\n\t\t\ts := v.Index(i).FieldByName(\"Name\").String()\n\t\t\tusedNames[s] = true\n\t\t}\n\t\tfor i := v.Len(); ; i++ {\n\t\t\ts := strconv.Itoa(i + 1)\n\t\t\tif usedNames[s] == false {\n\t\t\t\treturn s\n\t\t\t}\n\t\t}\n\t}\n\treturn \"1\"\n}", "func (a *ArrayObject) toString() string {\n\tvar out bytes.Buffer\n\n\telements := []string{}\n\tfor _, e := range a.Elements {\n\t\t_, isString := e.(*StringObject)\n\t\tif isString {\n\t\t\telements = append(elements, \"\\\"\"+e.toString()+\"\\\"\")\n\t\t} else {\n\t\t\telements = append(elements, e.toString())\n\t\t}\n\t}\n\n\tout.WriteString(\"[\")\n\tout.WriteString(strings.Join(elements, \", \"))\n\tout.WriteString(\"]\")\n\n\treturn out.String()\n}", "func memberSliceToStringSlice(m []v2Member) []string {\n\tmemberSlice := make([]string, len(m))\n\tfor i, member := range m {\n\t\tmemberSlice[i] = member.Name\n\t}\n\treturn memberSlice\n}", "func Structs() {\n\tfmt.Println(vertex{1, 2})\n}", "func (this *ObjectNames) Type() value.Type { return value.ARRAY }", "func (this *ObjectNames) Type() value.Type { return value.ARRAY }", "func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) {\n\tC.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) {\n\tC.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func (p NodeSet) Name() []string {\n\treturn p.ToString(NameOf)\n}", "func GenRandomKindShip(nSamples int) string {\n // Prepare the seed for random\n rand.Seed(time.Now().UTC().UnixNano())\n\n ks := \"ego1,ego2,phi\\n\" // header\n for i := 0; i < nSamples; i++ {\n for j := i; j < nSamples; j++ {\n if i == j {\n ks += fmt.Sprintf(\"s_%d,s_%d,%f\\n\", i, j, 0.0)\n } else {\n ks += fmt.Sprintf(\"s_%d,s_%d,%f\\n\", i, j, float32(rand.Int31n(200))/float32(1000))\n }\n }\n }\n\n return ks\n}", "func packSFzVertex(v []FzVertex, ptr0 *C.fz_vertex) {\n\tconst m = 0x7fffffff\n\tfor i0 := range v {\n\t\tptr1 := (*(*[m / sizeOfFzVertexValue]C.fz_vertex)(unsafe.Pointer(ptr0)))[i0]\n\t\tv[i0] = *NewFzVertexRef(unsafe.Pointer(&ptr1))\n\t}\n}", "func makeVertex(vertexType string) graphson.Vertex {\n\tvertexValue := graphson.VertexValue{\n\t\tID: \"unused_vertex_value_ID\",\n\t\tLabel: vertexType,\n\t\tProperties: map[string][]graphson.VertexProperty{},\n\t}\n\tvertex := graphson.Vertex{Type: vertexType, Value: vertexValue}\n\treturn vertex\n}", "func (pi *PackageInfo) ObjectVName(obj types.Object) *spb.VName {\n\tif pkg, ok := obj.(*types.PkgName); ok {\n\t\treturn pi.PackageVName[pkg.Imported()]\n\t}\n\tsig := pi.Signature(obj)\n\tpkg := obj.Pkg()\n\tvar vname *spb.VName\n\tif base := pi.PackageVName[pkg]; base != nil {\n\t\tvname = proto.Clone(base).(*spb.VName)\n\t} else if pkg == nil {\n\t\treturn govname.Builtin(obj.Name())\n\t} else {\n\t\t// This is an indirect import, that is, a name imported but not\n\t\t// mentioned explicitly by the package being indexed.\n\t\t// TODO(#2383): This is a workaround, and may not be correct in all\n\t\t// cases; work out a more comprehensive solution (possibly during\n\t\t// extraction).\n\t\tvname = proto.Clone(pi.VName).(*spb.VName)\n\t\tvname.Path = strings.TrimPrefix(pkg.Path(), vname.Corpus+\"/\")\n\t}\n\n\tvname.Signature = sig\n\treturn vname\n}", "func NewNameArray(sVars ...string) PDFArray {\n\n\ta := PDFArray{}\n\n\tfor _, s := range sVars {\n\t\ta = append(a, PDFName(s))\n\t}\n\n\treturn a\n}", "func newVertexCollection(name string, g *graph) (Collection, error) {\n\tif name == \"\" {\n\t\treturn nil, WithStack(InvalidArgumentError{Message: \"name is empty\"})\n\t}\n\tif g == nil {\n\t\treturn nil, WithStack(InvalidArgumentError{Message: \"g is nil\"})\n\t}\n\treturn &vertexCollection{\n\t\tname: name,\n\t\tg: g,\n\t\tconn: g.db.conn,\n\t}, nil\n}", "func printNames(names []pkix.AttributeTypeAndValue, buf *bytes.Buffer) []string {\n values := []string{} \n for _, name := range names {\n oid := name.Type\n if len(oid) == 4 && oid[0] == 2 && oid[1] == 5 && oid[2] == 4 {\n switch oid[3] {\n case 3:\n values = append(values, fmt.Sprintf(\"CN=%s\", name.Value))\n case 6:\n values = append(values, fmt.Sprintf(\"C=%s\", name.Value))\n case 8:\n values = append(values, fmt.Sprintf(\"ST=%s\", name.Value))\n case 10:\n values = append(values, fmt.Sprintf(\"O=%s\", name.Value))\n case 11:\n values = append(values, fmt.Sprintf(\"OU=%s\", name.Value))\n default: \n values = append(values, fmt.Sprintf(\"UnknownOID=%s\", name.Type.String()))\n }\n } else if oid.Equal(oidEmailAddress) {\n values = append(values, fmt.Sprintf(\"emailAddress=%s\", name.Value))\n } else {\n values = append(values, fmt.Sprintf(\"UnknownOID=%s\", name.Type.String()))\n }\n }\n\nif len(values) > 0 {\n buf.WriteString(values[0])\n for i := 1; i < len(values); i++ {\n buf.WriteString(\",\" + values[i])\n }\n buf.WriteString(\"\\n\")\n }\n return values\n}", "func (me TAttlistSupplMeshNameType) String() string { return xsdt.Token(me).String() }", "func (*Vertex) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDescGZIP(), []int{1}\n}", "func (n Name) Serialize() []byte {\n\tnameData := make([]byte, 0, len(n)+5)\n\tfor _, label := range n.getLabels() {\n\t\tnameData = append(nameData, encodeLabel(label)...)\n\t}\n\t//terminate labels\n\tnameData = append(nameData, byte(0))\n\n\treturn nameData\n}", "func (v Vertex) Print() {\n fmt.Printf(\"Vertice: %d\\n Feromona Ini: %f\\n Feromona Act: %f\\n\", v.index, v.pheromone_init, v.pheromone)\n}", "func (e *With32FieldsFeatureTransformer) FeatureNames() []string {\n\tif e == nil {\n\t\treturn nil\n\t}\n\n\tidx := 0\n\tnames := make([]string, e.NumFeatures())\n\n\tnames[idx] = \"Name1\"\n\tidx++\n\n\tnames[idx] = \"Name2\"\n\tidx++\n\n\tnames[idx] = \"Name3\"\n\tidx++\n\n\tnames[idx] = \"Name4\"\n\tidx++\n\n\tnames[idx] = \"Name5\"\n\tidx++\n\n\tnames[idx] = \"Name6\"\n\tidx++\n\n\tnames[idx] = \"Name7\"\n\tidx++\n\n\tnames[idx] = \"Name8\"\n\tidx++\n\n\tnames[idx] = \"Name9\"\n\tidx++\n\n\tnames[idx] = \"Name10\"\n\tidx++\n\n\tnames[idx] = \"Name11\"\n\tidx++\n\n\tnames[idx] = \"Name12\"\n\tidx++\n\n\tnames[idx] = \"Name13\"\n\tidx++\n\n\tnames[idx] = \"Name14\"\n\tidx++\n\n\tnames[idx] = \"Name15\"\n\tidx++\n\n\tnames[idx] = \"Name16\"\n\tidx++\n\n\tnames[idx] = \"Name17\"\n\tidx++\n\n\tnames[idx] = \"Name18\"\n\tidx++\n\n\tnames[idx] = \"Name19\"\n\tidx++\n\n\tnames[idx] = \"Name21\"\n\tidx++\n\n\tnames[idx] = \"Name22\"\n\tidx++\n\n\tnames[idx] = \"Name23\"\n\tidx++\n\n\tnames[idx] = \"Name24\"\n\tidx++\n\n\tnames[idx] = \"Name25\"\n\tidx++\n\n\tnames[idx] = \"Name26\"\n\tidx++\n\n\tnames[idx] = \"Name27\"\n\tidx++\n\n\tnames[idx] = \"Name28\"\n\tidx++\n\n\tnames[idx] = \"Name29\"\n\tidx++\n\n\tnames[idx] = \"Name30\"\n\tidx++\n\n\tnames[idx] = \"Name31\"\n\tidx++\n\n\tnames[idx] = \"Name32\"\n\tidx++\n\n\treturn names\n}", "func getNames(elements []element) string {\n\tvar names string\n\tfor i, el := range elements {\n\t\tif i != 0 {\n\t\t\tnames += \" \"\n\t\t}\n\t\tnames += el.name\n\t}\n\treturn names\n}", "func VertexListPrefix(graph string) []byte {\n\treturn bytes.Join([][]byte{vertexPrefix, []byte(graph), {}}, []byte{0})\n}", "func (v *Vector3) ToString() string {\n\treturn \"(\" + strconv.FormatFloat(v.X, 'f', -1, 64) + \", \" + strconv.FormatFloat(v.Y, 'f', -1, 64) + \", \" + strconv.FormatFloat(v.Z, 'f', -1, 64) + \")\"\n}", "func (self *Graphics) Name() string{\n return self.Object.Get(\"name\").String()\n}", "func initFontVbo() {\n\tvar vertexAttributes = make([]float32, 5*6*len(charDatas))\n\ti := 0\n\tfor _, charData := range charDatas {\n\t\ttop := float32(charData.ty+charData.h) / 256\n\t\tbottom := float32(charData.ty) / 256\n\t\tright := float32(charData.tx+charData.w) / 256\n\t\tleft := float32(charData.tx) / 256\n\n\t\tw := float32(charData.w) / 256\n\t\th := float32(charData.h) / 256\n\n\t\t// tri 1\n\t\tvertexAttributes[i] = w\n\t\tvertexAttributes[i+1] = h\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = right\n\t\tvertexAttributes[i+4] = bottom\n\t\ti += 5\n\n\t\tvertexAttributes[i] = w\n\t\tvertexAttributes[i+1] = 0\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = right\n\t\tvertexAttributes[i+4] = top\n\t\ti += 5\n\n\t\tvertexAttributes[i] = 0\n\t\tvertexAttributes[i+1] = h\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = left\n\t\tvertexAttributes[i+4] = bottom\n\t\ti += 5\n\n\t\t// tri 2\n\t\tvertexAttributes[i] = w\n\t\tvertexAttributes[i+1] = 0\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = right\n\t\tvertexAttributes[i+4] = top\n\t\ti += 5\n\n\t\tvertexAttributes[i] = 0\n\t\tvertexAttributes[i+1] = 0\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = left\n\t\tvertexAttributes[i+4] = top\n\t\ti += 5\n\n\t\tvertexAttributes[i] = 0\n\t\tvertexAttributes[i+1] = h\n\t\tvertexAttributes[i+2] = 0\n\t\tvertexAttributes[i+3] = left\n\t\tvertexAttributes[i+4] = bottom\n\t\ti += 5\n\t}\n\n\tgl.GenBuffers(1, &vbo)\n\tgl.GenVertexArrays(1, &vao)\n\tgl.BindVertexArray(vao)\n\tgl.EnableVertexAttribArray(0)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.BufferData(\n\t\tgl.ARRAY_BUFFER,\n\t\t4*len(vertexAttributes),\n\t\tgl.Ptr(vertexAttributes),\n\t\tgl.STATIC_DRAW,\n\t)\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, 5*4, gl.PtrOffset(0))\n\tgl.EnableVertexAttribArray(0)\n\tgl.VertexAttribPointer(1, 2, gl.FLOAT, false, 5*4, gl.PtrOffset(4*3))\n\tgl.EnableVertexAttribArray(1)\n\t//unbind\n\tgl.BindVertexArray(0)\n\n}", "func InitNames() {\n C.glowInitNames(gpInitNames)\n}", "func (r *RootStmt) genNV() ds.ClientNV {\n\tvar nvc ds.ClientNV\n\n\tfmt.Println(\"In genNV()............\")\n\tif r.Filter != nil {\n\t\ts := r.Filter.GetPredicates()\n\t\tfmt.Println(\"r.Filter.GetPredicates(): \", s)\n\t\tfor _, x := range s {\n\t\t\tnv := &ds.NV{Name: x}\n\t\t\tnvc = append(nvc, nv)\n\t\t}\n\t}\n\n\tfor _, v := range r.Select {\n\n\t\tfmt.Printf(\"In genNV()..select %T\\n\", v.Edge)\n\t\tswitch x := v.Edge.(type) {\n\n\t\tcase *ScalarPred:\n\t\t\tfmt.Println(\"In genNV()..select scalar \")\n\t\t\tnv := &ds.NV{Name: x.Name()}\n\t\t\tfmt.Println(\"In genNV()..select scalar \", nv.Name)\n\t\t\tnvc = append(nvc, nv)\n\n\t\tcase *UidPred:\n\t\t\tvar un string\n\t\t\tun = x.Name() + \":\"\n\t\t\tfmt.Println(\"root genNV un: \", un)\n\t\t\tnv := &ds.NV{Name: un}\n\t\t\tnvc = append(nvc, nv)\n\n\t\t\tfor _, vv := range x.Select {\n\t\t\t\tfmt.Printf(\"Found edge for root uid-pred %T\\n\", vv.Edge)\n\t\t\t\tswitch x := vv.Edge.(type) {\n\t\t\t\tcase *ScalarPred:\n\t\t\t\t\tupred := un + x.Name()\n\t\t\t\t\tfmt.Println(\"root genNV upred: \", upred)\n\t\t\t\t\tnv := &ds.NV{Name: upred}\n\t\t\t\t\tnvc = append(nvc, nv)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tnvc = dedup(nvc)\n\treturn nvc\n}", "func GenerateName(group metav1.Object, jobIndex int) string {\n\treturn fmt.Sprintf(\"%s-%d\", group.GetName(), jobIndex+1)\n}", "func p(v *Vertex, depth int, showPointer bool) string {\n\tstr := \"\"\n\tlevels := \"\"\n\t// Calculate our depth string\n\t// levels := strings.Repeat(\" \", depth)\n\tfor i := depth; i >= 0; i-- {\n\t\tlevels = fmt.Sprintf(\"%s%s\", levels, \" \")\n\t}\n\tstr = fmt.Sprintf(\"%s\\n\", str)\n\tstr = fmt.Sprintf(\"%s%sDepth : %d\\n\", str, levels, depth)\n\tstr = fmt.Sprintf(\"%s%sName : %s\\n\", str, levels, v.Name)\n\tstr = fmt.Sprintf(\"%s%sValue : %d\\n\", str, levels, v.Value)\n\tif showPointer == true {\n\t\tstr = fmt.Sprintf(\"%s%sLocation : %p\\n\", str, levels, v)\n\t}\n\tstr = fmt.Sprintf(\"%s\\n\", str)\n\treturn str\n}", "func VertexArrayVertexBuffers(vaobj uint32, first uint32, count int32, buffers *uint32, offsets *int, strides *int32) {\n\tsyscall.Syscall6(gpVertexArrayVertexBuffers, 6, uintptr(vaobj), uintptr(first), uintptr(count), uintptr(unsafe.Pointer(buffers)), uintptr(unsafe.Pointer(offsets)), uintptr(unsafe.Pointer(strides)))\n}", "func (e Edge) GetVertex1() int {\n return e.v1_index\n}", "func (s *Set) vname(n node) *spb.VName {\n\treturn &spb.VName{\n\t\tSignature: s.symbol(n.signature),\n\t\tCorpus: s.symbol(n.corpus),\n\t\tPath: s.symbol(n.path),\n\t\tRoot: s.symbol(n.root),\n\t\tLanguage: s.symbol(n.language),\n\t}\n}", "func makeVao(points []float32) uint32 {\n\tvar vbo uint32\n\tgl.GenBuffers(1, &vbo)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.BufferData(gl.ARRAY_BUFFER, 4*len(points), gl.Ptr(points), gl.STATIC_DRAW)\n\n\tvar vao uint32\n\tgl.GenVertexArrays(1, &vao)\n\tgl.BindVertexArray(vao)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tvar offset int = 6 * 4\n\tgl.VertexAttribPointer(0, 2, gl.FLOAT, false, 8*4, gl.PtrOffset(offset))\n\tgl.EnableVertexAttribArray(0)\n\t//gl.VertexAttribPointer(0, 3, gl.FLOAT, false, 0, nil)\n\n\treturn vao\n}", "func makeVao(points []float32) uint32 {\n\tvar vbo uint32\n\tvar vao uint32\n\tvar stride int32\n\n\t//points only 9\n\t//points and colors 18\n\tstride = int32(4 * len(points) / 3)\n\tprintln(\"stride: \", stride)\n\n\tgl.GenVertexArrays(1, &vao)\n\tgl.GenBuffers(1, &vbo)\n\tgl.BindVertexArray(vao)\n\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.BufferData(gl.ARRAY_BUFFER, 4*len(points), gl.Ptr(points), gl.STATIC_DRAW)\n\n\tgl.EnableVertexAttribArray(0)\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, stride, gl.PtrOffset(0))\n\tprintln(\"triangle length: \", len(points))\n\tif len(points) >= 18 {\n\t\tlog.Println(\"In if\")\n\t\tgl.EnableVertexAttribArray(1)\n\t\tgl.VertexAttribPointer(1, 3, gl.FLOAT, false, stride, gl.PtrOffset(3*4))\n\t}\n\treturn vao\n}", "func (g *Game) nameOf(x, y int) string {\n\treturn fmt.Sprintf(\"%s%d\", string('a'+x), y+1)\n}", "func (*Array) Name() string {\n\treturn \"array\"\n}", "func (s Obj_value) NewName(n int32) (capnp.TextList, error) {\n\ts.Struct.SetUint16(4, 0)\n\tl, err := capnp.NewTextList(s.Struct.Segment(), n)\n\tif err != nil {\n\t\treturn capnp.TextList{}, err\n\t}\n\terr = s.Struct.SetPtr(0, l.List.ToPtr())\n\treturn l, err\n}", "func (r *TableEventHandler) genKey(row []interface{}) string {\n\tif r.Meta.KeyIndex == nil {\n\t\tlog.Warn(\"table have no key index \", r.Table)\n\t\t// 没有找到唯一索引 所有值作为key 值\n\t\tvalues, _ := toArray(row)\n\t\treturn strings.Join(values, \"\")\n\t}\n\n\tkeys := make([]string, len(r.Meta.KeyIndex))\n\tfor i := 0; i < len(r.Meta.KeyIndex); i++ {\n\t\tval := row[r.Meta.KeyIndex[i]]\n\t\tswitch reflect.TypeOf(val).Kind() {\n\t\tcase reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:\n\t\t\tkeys[i] = fmt.Sprintf(\"%d\", val)\n\n\t\tcase reflect.Float32, reflect.Float64:\n\t\t\tkeys[i] = fmt.Sprintf(\"%f\", val)\n\n\t\tcase reflect.Slice:\n\t\t\tv := val.([]uint8)\n\t\t\tbuffer := bytes.NewBuffer([]byte(\"0x\"))\n\t\t\tfor i := 0; i < len(v); i++ {\n\t\t\t\tbuffer.WriteString(fmt.Sprintf(\"%.2x\", v[i]))\n\t\t\t}\n\t\t\tkeys[i] = buffer.String()\n\n\t\tcase reflect.String:\n\t\t\tv := mysql.Escape(val.(string))\n\t\t\tkeys[i] = v\n\t\t}\n\t}\n\n\treturn strings.Join(keys, \"\")\n}", "func (self *Sax) ToLetterRepresentation(x []float64) (string, [][]int) {\n paaX, indices := self.toPaa(self.normalize(x))\n self.scalingFactor = math.Sqrt(float64((len(x) * 1.0) / (self.wordSize * 1.0)))\n return self.alphabetize(paaX), indices\n\n}", "func VgIdToName(vgId string) string {\n\treturn \"vg_\" + vgId\n}", "func genAnnotationKey(resource v1alpha1.BackingServiceResource) string {\n\tkey := strings.Replace(fmt.Sprintf(\"nuxeo.operator.%s.%s.%s.%s\",\n\t\tstrings.ToLower(resource.Group),\n\t\tstrings.ToLower(resource.Version),\n\t\tstrings.ToLower(resource.Kind),\n\t\tstrings.ToLower(resource.Name)), \"..\", \".\", 1)\n\treturn key\n}", "func (v *Variant) GetObjv() []string {\n\tgstrv := C.g_variant_get_objv(v.native(), nil)\n\t// we do not own the memory for these strings, so we must not use strfreev\n\t// but we must free the actual pointer we receive (transfer container).\n\t// We don't implement g_variant_dup_objv which copies the strings,\n\t// as we need to copy anyways when converting to go strings.\n\tc := gstrv\n\tdefer C.g_free(C.gpointer(gstrv))\n\tvar strs []string\n\n\tfor *c != nil {\n\t\tstrs = append(strs, C.GoString((*C.char)(*c)))\n\t\tc = C.next_gcharptr(c)\n\t}\n\treturn strs\n}", "func GenerateKeyNames(tr time.Time) *AllKeys {\n\tk := &AllKeys{\n\t\tDst: KeyNames{},\n\t\tSrc: KeyNames{},\n\t}\n\n\tk.Src.CurrentCounterSet = generateSegmentPrefix(\"set:counter:src\", tr)\n\tk.Src.CurrentCounterHSet = generateSegmentPrefix(\"hset:counter:src\", tr)\n\tk.Dst.CurrentCounterSet = generateSegmentPrefix(\"set:counter:dst\", tr)\n\tk.Dst.CurrentCounterHSet = generateSegmentPrefix(\"hset:counter:dst\", tr)\n\treturn k\n}", "func create_triangle() Triangle {\n v1 := init_vertex(0, 1)\n v2 := init_vertex(1, 0)\n v3 := init_vertex(0, 0)\n t1 := init_triangle(v1, v2, v3)\n fmt.Println(t1)\n // Can access struct fields with a dot\n fmt.Println(t1.A)\n return t1\n}", "func (o *ObjectIndex) ToHex() string {\n\tvar str string\n\tstr += fmt.Sprintf(\"%08x\", o.machine)\n\tstr += fmt.Sprintf(\"%04x\", o.pid)\n\tstr += fmt.Sprintf(\"%08x\", o.id)\n\tstr += fmt.Sprintf(\"%08x\", o.Rand)\n\treturn str\n}", "func VertexArrayVertexBuffer(vaobj uint32, bindingindex uint32, buffer uint32, offset int, stride int32) {\n\tsyscall.Syscall6(gpVertexArrayVertexBuffer, 5, uintptr(vaobj), uintptr(bindingindex), uintptr(buffer), uintptr(offset), uintptr(stride), 0)\n}", "func (o BoundingPolyOutput) Vertices() VertexArrayOutput {\n\treturn o.ApplyT(func(v BoundingPoly) []Vertex { return v.Vertices }).(VertexArrayOutput)\n}", "func (self *Tween) GenerateData() []interface{}{\n\tarray00 := self.Object.Call(\"generateData\")\n\tlength00 := array00.Length()\n\tout00 := make([]interface{}, length00, length00)\n\tfor i00 := 0; i00 < length00; i00++ {\n\t\tout00[i00] = array00.Index(i00)\n\t}\n\treturn out00\n}", "func genPaddleResName(name string, resType string, idx int) string {\n\treturn fmt.Sprintf(\"%s-%s-%d\", name, resType, idx)\n}", "func (*ArraySchema) GetName() string {\n\treturn typeArray\n}", "func (c *ConstArray) Ident() string {\n\t// \"[\" TypeConsts \"]\"\n\tbuf := &strings.Builder{}\n\tbuf.WriteString(\"[\")\n\tfor i, elem := range c.Elems {\n\t\tif i != 0 {\n\t\t\tbuf.WriteString(\", \")\n\t\t}\n\t\tbuf.WriteString(elem.String())\n\t}\n\tbuf.WriteString(\"]\")\n\treturn buf.String()\n}", "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n\tsyscall.Syscall6(gpVertexAttribFormat, 5, uintptr(attribindex), uintptr(size), uintptr(xtype), boolToUintptr(normalized), uintptr(relativeoffset), 0)\n}", "func (mg *Graph) ListVertexLabels() ([]string, error) {\n\tsession := mg.ar.session.Copy()\n\tdefer session.Close()\n\tv := mg.ar.VertexCollection(session, mg.graph)\n\tvar labels []string\n\terr := v.Find(nil).Distinct(\"label\", &labels)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn labels, nil\n}", "func (s Vertex) String() string {\n\treturn awsutil.Prettify(s)\n}", "func makeVao(points []float32) uint32 {\n\tvar vbo uint32\n\tgl.GenBuffers(1, &vbo)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.BufferData(gl.ARRAY_BUFFER, 4*len(points), gl.Ptr(points), gl.STATIC_DRAW)\n\n\tvar vao uint32\n\tgl.GenVertexArrays(1, &vao)\n\tgl.BindVertexArray(vao)\n\tgl.EnableVertexAttribArray(0)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, 0, nil)\n\n\treturn vao\n}", "func CreateShaderProgramv(xtype uint32, count int32, strings **int8) uint32 {\n ret := C.glowCreateShaderProgramv(gpCreateShaderProgramv, (C.GLenum)(xtype), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(strings)))\n return (uint32)(ret)\n}", "func iterateObjects1DWithIndexes() {\n\tfmt.Println(\"*** iterateObjects1DWithIndexes\")\n\n\ttype Point struct {\n\t\tX int\n\t\tY int\n\t}\n\tpoints := [5]Point{\n\t\tPoint{1, 1},\n\t\tPoint{2, 2},\n\t\tPoint{3, 3},\n\t\tPoint{4, 4},\n\t\tPoint{5, 5},\n\t}\n\n\tfor i, e := range points {\n\t\tfmt.Printf(\"ints[%d]: %+v\\n\", i, e)\n\t}\n\tfmt.Println(\"\")\n}", "func main() {\n\t// \"cannot refer to unexported name vertex.hiddenVertex\"\n\t// s := vertex.hiddenVertex\n\ts := vertex.New(1, 2)\n\tfmt.Println(s)\n}", "func encodeName(n name.Name) Tlv {\n\tt := []Tlv{}\n\tfor _, comp := range n {\n\t\tt = append(t, encodeNameComponent(comp))\n\t}\n\t//need to convert []Tlv to []byte which will be the value of the name\n\tvar b bytes.Buffer\n\tTlvsToBytes(t, &b)\n\tresult := Tlv{\n\t\tT: NAME,\n\t\tL: uint64(b.Len()),\n\t\tV: b.Next(b.Len()),\n\t}\n\treturn result\n}", "func makeVao(data []float32) uint32 {\n\tvar vbo uint32\n\tgl.GenBuffers(1, &vbo)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.BufferData(gl.ARRAY_BUFFER, 4*len(data), gl.Ptr(data), gl.STATIC_DRAW)\n\n\tvar vao uint32\n\tgl.GenVertexArrays(1, &vao)\n\tgl.BindVertexArray(vao)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tvar offset int\n\n\t// position attribute\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(offset))\n\tgl.EnableVertexAttribArray(0)\n\toffset += 3 * 4\n\n\t// color attribute\n\tgl.VertexAttribPointer(1, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(offset))\n\tgl.EnableVertexAttribArray(1)\n\toffset += 3 * 4\n\n\t// texture coord attribute\n\tgl.VertexAttribPointer(2, 2, gl.FLOAT, false, 8*4, gl.PtrOffset(offset))\n\tgl.EnableVertexAttribArray(2)\n\toffset += 2 * 4\n\n\treturn vao\n}", "func generateMembers(fields []libtypes.Field) *C.GoMembers {\n\n\tmemberArray := make([]C.GoMember, 0)\n\tfor _, field := range fields {\n\n\t\t// Create a go member\n\t\tmember := C.GoMember{}\n\n\t\t// Name of field\n\t\tmemberName := C.CString(field.Name)\n\t\tdefer C.free(unsafe.Pointer(memberName))\n\n\t\t// Array information\n\t\tmember.is_array_ = C.bool(field.IsArray)\n\t\tmember.array_size_ = C.size_t(field.ArrayLen)\n\n\t\tswitch field.Type {\n\t\tcase \"int8\":\n\t\t\tmember.type_id_ = C.rosidl_typesupport_introspection_c__ROS_TYPE_INT8\n\t\tcase \"uint8\":\n\t\t\tmember.type_id_ = C.rosidl_typesupport_introspection_c__ROS_TYPE_UINT8\n\t\tcase \"int16\":\n\t\t\tmember.type_id_ = C.rosidl_typesupport_introspection_c__ROS_TYPE_INT16\n\t\tcase \"uint16\":\n\t\t\tmember.type_id_ = C.rosidl_typesupport_introspection_c__ROS_TYPE_UINT16\n\t\tcase \"int32\":\n\t\t\tmember.type_id_ = C.rosidl_typesupport_introspection_c__ROS_TYPE_INT32\n\t\tcase \"uint32\":\n\t\t\tmember.type_id_ = C.rosidl_typesupport_introspection_c__ROS_TYPE_UINT32\n\t\tcase \"int64\":\n\t\t\tmember.type_id_ = C.rosidl_typesupport_introspection_c__ROS_TYPE_INT64\n\t\tcase \"uint64\":\n\t\t\tmember.type_id_ = C.rosidl_typesupport_introspection_c__ROS_TYPE_UINT64\n\t\tcase \"float32\":\n\t\t\tmember.type_id_ = C.rosidl_typesupport_introspection_c__ROS_TYPE_FLOAT32\n\t\tcase \"float64\":\n\t\t\tmember.type_id_ = C.rosidl_typesupport_introspection_c__ROS_TYPE_DOUBLE\n\t\tcase \"string\":\n\t\t\tmember.type_id_ = C.rosidl_typesupport_introspection_c__ROS_TYPE_STRING\n\t\tcase \"bool\":\n\t\t\tmember.type_id_ = C.rosidl_typesupport_introspection_c__ROS_TYPE_BOOL\n\t\tcase \"char\":\n\t\t\tmember.type_id_ = C.rosidl_typesupport_introspection_c__ROS_TYPE_CHAR\n\t\tcase \"byte\":\n\t\t\tmember.type_id_ = C.rosidl_typesupport_introspection_c__ROS_TYPE_BYTE\n\t\t// Note: Time and Duration are builtin MESSAGE types\n\t\tdefault:\n\t\t\t// We need to generated nested fields\n\t\t\tmsgType, _ := newDynamicMessageTypeNested(field.Type, field.Package)\n\t\t\tmember.type_id_ = C.rosidl_typesupport_introspection_c__ROS_TYPE_MESSAGE\n\t\t\t// Member field takes a typesupport definition\n\t\t\tmember.members_ = msgType.rosType\n\t\t}\n\n\t\tmemberArray = append(memberArray, member)\n\t}\n\n\tmembers := C.GoMembers{}\n\n\tmembers.member_array = memberArray\n\n\treturn &members\n}", "func (a *ArrayObject) toJSON() string {\n\tvar out bytes.Buffer\n\telements := []string{}\n\tfor _, e := range a.Elements {\n\t\telements = append(elements, e.toJSON())\n\t}\n\n\tout.WriteString(\"[\")\n\tout.WriteString(strings.Join(elements, \", \"))\n\tout.WriteString(\"]\")\n\n\treturn out.String()\n}", "func ShapeToVertexList(s string) (vertexList []shared.Point2d, length int) {\n\tvar stringArray = StringToStringArray(s)\n\tvar currentPosX = 0\n\tvar currentPosY = 0\n\tvar startPosX = 0\n\tvar startPosY = 0\n\tvar index = 0\n\tvar l float64\n\n\tfor index < len(stringArray) {\n\t\tswitch stringArray[index] {\n\t\tcase \"M\", \"L\", \"m\", \"l\":\n\t\t\ttempX, err := strconv.Atoi(stringArray[index+1])\n\t\t\ttempY, err := strconv.Atoi(stringArray[index+2])\n\t\t\tif err != nil {\n\t\t\t\tfmt.Println(\"Invalid SVG String\")\n\t\t\t\t// TODO: return InvalidShapeSvgStringError\n\t\t\t}\n\n\t\t\t// Uppercase = absolute pos, lowercase = relative pos\n\t\t\tif stringArray[index] == \"M\" {\n\t\t\t\tstartPosX = tempX\n\t\t\t\tstartPosY = tempY\n\t\t\t\tcurrentPosX = tempX\n\t\t\t\tcurrentPosY = tempY\n\t\t\t} else if stringArray[index] == \"m\" {\n\t\t\t\tstartPosX += tempX\n\t\t\t\tstartPosY += tempY\n\t\t\t\tcurrentPosX += tempX\n\t\t\t\tcurrentPosY += tempY\n\t\t\t} else if stringArray[index] == \"L\" {\n\t\t\t\t// need to calculate the length of x and y\n\t\t\t\tx := math.Abs(float64(currentPosX - tempX))\n\t\t\t\ty := math.Abs(float64(currentPosY - tempY))\n\t\t\t\tl += math.Sqrt(x*x + y*y)\n\t\t\t\tcurrentPosX = tempX\n\t\t\t\tcurrentPosY = tempY\n\t\t\t} else {\n\t\t\t\tl += math.Sqrt(float64(tempX*tempX + tempY*tempY))\n\t\t\t\tcurrentPosX += tempX\n\t\t\t\tcurrentPosY += tempY\n\t\t\t}\n\n\t\t\tindex += 3\n\t\tcase \"H\", \"h\":\n\t\t\ttempX, err := strconv.Atoi(stringArray[index+1])\n\t\t\tif err != nil {\n\t\t\t\tfmt.Println(\"Invalid SVG String\")\n\t\t\t\t// TODO: return InvalidShapeSvgStringError\n\t\t\t}\n\n\t\t\tif stringArray[index] == \"H\" {\n\t\t\t\tx := math.Abs(float64(currentPosX - tempX))\n\t\t\t\tl += x\n\t\t\t\tcurrentPosX = tempX\n\t\t\t} else {\n\t\t\t\tl += math.Abs(float64(tempX))\n\t\t\t\tcurrentPosX += tempX\n\t\t\t}\n\n\t\t\tindex += 2\n\t\tcase \"V\", \"v\":\n\t\t\ttempY, err := strconv.Atoi(stringArray[index+1])\n\t\t\tif err != nil {\n\t\t\t\tfmt.Println(\"Invalid SVG String\")\n\t\t\t\t// TODO: return InvalidShapeSvgStringError\n\t\t\t}\n\n\t\t\tif stringArray[index] == \"V\" {\n\t\t\t\ty := math.Abs(float64(currentPosY - tempY))\n\t\t\t\tl += y\n\t\t\t\tcurrentPosY = tempY\n\t\t\t} else {\n\t\t\t\tl += math.Abs(float64(tempY))\n\t\t\t\tcurrentPosY += tempY\n\t\t\t}\n\n\t\t\tindex += 2\n\t\tcase \"Z\", \"z\":\n\t\t\tx := math.Abs(float64(currentPosX - startPosX))\n\t\t\ty := math.Abs(float64(currentPosY - startPosY))\n\t\t\tl += math.Sqrt(x*x + y*y)\n\t\t\tcurrentPosX = startPosX\n\t\t\tcurrentPosY = startPosY\n\n\t\t\tindex++\n\t\tdefault:\n\t\t\tfmt.Println(\"unsupported svg command\")\n\t\t\t// TODO: return InvalidShapeSvgStringError\n\t\t\tindex++\n\t\t}\n\t\t// Adding a new vertex\n\t\tpoint := shared.Point2d{X: currentPosX, Y: currentPosY}\n\t\tvertexList = append(vertexList, point)\n\t}\n\tlength = int(math.Ceil(l))\n\treturn vertexList, length\n}", "func MakeVertexBufferObject(sizeBytes int, data unsafe.Pointer) VertexBufferObject {\n\tvar vbo uint32\n\tgl.GenBuffers(1, &vbo)\n\tif sizeBytes > 0 {\n\t\tgl.NamedBufferData(vbo, sizeBytes, data, gl.DYNAMIC_DRAW)\n\t}\n\treturn VertexBufferObject(vbo)\n}", "func OBJCClassPrefix(packageName string) string {\n\tif packageName == \"\" {\n\t\treturn \"\"\n\t}\n\tsplit := strings.Split(packageName, \".\")\n\tif _, _, ok := MajorBetaVersion(packageName); ok {\n\t\t// this is guaranteed to still have something since\n\t\t// len(split) must be >=3.\n\t\tsplit = split[:len(split)-1]\n\t}\n\t// just for safety\n\tif len(split) == 0 {\n\t\treturn \"\"\n\t}\n\ts := \"\"\n\tfor _, element := range split {\n\t\t// just for safety\n\t\tif element != \"\" {\n\t\t\ts = s + strings.ToUpper(element[0:1])\n\t\t}\n\t}\n\tswitch len(s) {\n\tcase 0:\n\t\t// just for safety\n\t\treturn \"\"\n\tcase 1:\n\t\treturn s + \"XX\"\n\tcase 2:\n\t\treturn s + \"X\"\n\tcase 3:\n\t\tif s == \"GPB\" {\n\t\t\treturn \"GPX\"\n\t\t}\n\t\treturn s\n\tdefault:\n\t\treturn s\n\t}\n}", "func (p *iexporter) exportName(obj types.Object) (res string) {\n\tif name := p.tparamNames[obj]; name != \"\" {\n\t\treturn name\n\t}\n\treturn obj.Name()\n}", "func getMeshNames(clientSet kubernetes.Interface) mapset.Set {\n\tmeshList := mapset.NewSet()\n\n\tdeploymentList, _ := getControllerDeployments(clientSet)\n\tfor _, elem := range deploymentList.Items {\n\t\tmeshList.Add(elem.ObjectMeta.Labels[\"meshName\"])\n\t}\n\n\treturn meshList\n}", "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n C.glowVertexAttribFormat(gpVertexAttribFormat, (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(relativeoffset))\n}", "func MakeVertexArrayObject() VertexArrayObject {\n\tvar vao uint32\n\tgl.GenVertexArrays(1, &vao)\n\treturn VertexArrayObject(vao)\n}", "func CreateArray(m map[string]struct{}) []string {\n\tarray := []string{}\n\tfor k := range m {\n\t\tarray = append(array, k)\n\t}\n\treturn array\n}" ]
[ "0.57076484", "0.5575557", "0.533654", "0.5335654", "0.52696157", "0.5163074", "0.51617247", "0.5159663", "0.5060554", "0.5052207", "0.5052207", "0.5038296", "0.50258553", "0.5024915", "0.5020636", "0.50061256", "0.49852085", "0.49021876", "0.48818937", "0.48818937", "0.48715207", "0.48542586", "0.48217776", "0.48199895", "0.48136517", "0.48136517", "0.48068437", "0.48033392", "0.47952214", "0.47643527", "0.47547457", "0.4753829", "0.47396848", "0.47396848", "0.47387406", "0.47387406", "0.47323075", "0.4725804", "0.46858433", "0.4676164", "0.46699482", "0.466556", "0.46620205", "0.46609646", "0.46581218", "0.4646966", "0.46432447", "0.4639424", "0.46370608", "0.4633548", "0.46312606", "0.46254086", "0.4625127", "0.46090996", "0.46087012", "0.4597639", "0.4595462", "0.4593243", "0.45899644", "0.45868942", "0.4575956", "0.4571241", "0.45708928", "0.45641452", "0.4563994", "0.4563013", "0.45466113", "0.4538312", "0.45257607", "0.45186943", "0.45175287", "0.45058814", "0.450234", "0.44999766", "0.4493071", "0.44920072", "0.4488526", "0.44773954", "0.44769844", "0.44733894", "0.44697484", "0.44678238", "0.446262", "0.44569692", "0.44566423", "0.44545028", "0.44425204", "0.44367176", "0.44308347", "0.44272768", "0.44222155", "0.4421171", "0.44158062", "0.44123015", "0.44118226", "0.44106564", "0.44104037", "0.43965772", "0.43882248" ]
0.51933205
6
generate mipmaps for a specified texture object
func GenerateMipmap(target uint32) { C.glowGenerateMipmap(gpGenerateMipmap, (C.GLenum)(target)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GenerateTextureMipmap(texture uint32) {\n\tsyscall.Syscall(gpGenerateTextureMipmap, 1, uintptr(texture), 0, 0)\n}", "func GenerateTextureMipmap(texture uint32) {\n\tC.glowGenerateTextureMipmap(gpGenerateTextureMipmap, (C.GLuint)(texture))\n}", "func GenerateTextureMipmap(texture uint32) {\n\tC.glowGenerateTextureMipmap(gpGenerateTextureMipmap, (C.GLuint)(texture))\n}", "func GenerateMipmap(target uint32) {\n C.glowGenerateMipmap(gpGenerateMipmap, (C.GLenum)(target))\n}", "func (self *Graphics) GenerateTexture3O(resolution int, scaleMode int, padding int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution, scaleMode, padding)}\n}", "func GenerateMipmap(target Enum) {\n\tgl.GenerateMipmap(uint32(target))\n}", "func (self *Graphics) GenerateTexture2O(resolution int, scaleMode int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution, scaleMode)}\n}", "func GenerateMipmap(target GLEnum) {\n\tgl.GenerateMipmap(uint32(target))\n}", "func GenerateMipmap(target uint32) {\n\tsyscall.Syscall(gpGenerateMipmap, 1, uintptr(target), 0, 0)\n}", "func (self *Graphics) GenerateTexture1O(resolution int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution)}\n}", "func GenerateMipmap(target Enum) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tC.glGenerateMipmap(ctarget)\n}", "func (self *GameObjectCreator) RenderTexture4O(width int, height int, key string, addToCache bool) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height, key, addToCache)}\n}", "func (gl *WebGL) GenerateMipmap(target GLEnum) {\n\tgl.context.Call(\"generateMipmap\", target)\n}", "func (bm Blendmap) Texture() *gl.Texture {\n\treturn bm.Map.id\n}", "func (self *GameObjectCreator) RenderTexture3O(width int, height int, key string) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height, key)}\n}", "func (debugging *debuggingOpenGL) GenerateMipmap(target uint32) {\n\tdebugging.recordEntry(\"GenerateMipmap\", target)\n\tdebugging.gl.GenerateMipmap(target)\n\tdebugging.recordExit(\"GenerateMipmap\")\n}", "func (self *GameObjectCreator) RenderTexture1O(width int) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width)}\n}", "func (native *OpenGL) GenerateMipmap(target uint32) {\n\tgl.GenerateMipmap(target)\n}", "func (self *GameObjectCreator) RenderTexture2O(width int, height int) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height)}\n}", "func (self *Graphics) GenerateTextureI(args ...interface{}) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", args)}\n}", "func (w *Worley) GenerateTexture(tex *texture.Texture) {\n\tgl.BindImageTexture(0, tex.GetHandle(), 0, false, 0, gl.READ_WRITE, gl.RGBA32F)\n\tgl.BindImageTexture(1, w.noisetexture.GetHandle(), 0, false, 0, gl.READ_ONLY, gl.RGBA32F)\n\n\tw.computeshader.Use()\n\tw.computeshader.UpdateInt32(\"uWidth\", w.width)\n\tw.computeshader.UpdateInt32(\"uHeight\", w.height)\n\tw.computeshader.UpdateInt32(\"uResolution\", w.resolution)\n\tw.computeshader.UpdateInt32(\"uOctaves\", w.octaves)\n\tw.computeshader.UpdateFloat32(\"uRadius\", w.radius)\n\tw.computeshader.UpdateFloat32(\"uRadiusScale\", w.radiusscale)\n\tw.computeshader.UpdateFloat32(\"uBrightness\", w.brightness)\n\tw.computeshader.UpdateFloat32(\"uContrast\", w.contrast)\n\tw.computeshader.UpdateFloat32(\"uScale\", w.scale)\n\tw.computeshader.UpdateFloat32(\"uPersistance\", w.persistance)\n\tw.computeshader.Compute(uint32(w.width), uint32(w.height), 1)\n\tw.computeshader.Compute(1024, 1024, 1)\n\tw.computeshader.Release()\n\n\tgl.MemoryBarrier(gl.ALL_BARRIER_BITS)\n\n\tgl.BindImageTexture(0, 0, 0, false, 0, gl.WRITE_ONLY, gl.RGBA32F)\n\tgl.BindImageTexture(1, 0, 0, false, 0, gl.READ_ONLY, gl.RGBA32F)\n}", "func TextureView(texture uint32, target uint32, origtexture uint32, internalformat uint32, minlevel uint32, numlevels uint32, minlayer uint32, numlayers uint32) {\n C.glowTextureView(gpTextureView, (C.GLuint)(texture), (C.GLenum)(target), (C.GLuint)(origtexture), (C.GLenum)(internalformat), (C.GLuint)(minlevel), (C.GLuint)(numlevels), (C.GLuint)(minlayer), (C.GLuint)(numlayers))\n}", "func LoadTextures(eng sprite.Engine) map[string]sprite.SubTex {\n\tallTexs := make(map[string]sprite.SubTex)\n\tboundedImgs := []string{\"Clubs-2.png\", \"Clubs-3.png\", \"Clubs-4.png\", \"Clubs-5.png\", \"Clubs-6.png\", \"Clubs-7.png\", \"Clubs-8.png\",\n\t\t\"Clubs-9.png\", \"Clubs-10.png\", \"Clubs-Jack.png\", \"Clubs-Queen.png\", \"Clubs-King.png\", \"Clubs-Ace.png\",\n\t\t\"Diamonds-2.png\", \"Diamonds-3.png\", \"Diamonds-4.png\", \"Diamonds-5.png\", \"Diamonds-6.png\", \"Diamonds-7.png\", \"Diamonds-8.png\",\n\t\t\"Diamonds-9.png\", \"Diamonds-10.png\", \"Diamonds-Jack.png\", \"Diamonds-Queen.png\", \"Diamonds-King.png\", \"Diamonds-Ace.png\",\n\t\t\"Spades-2.png\", \"Spades-3.png\", \"Spades-4.png\", \"Spades-5.png\", \"Spades-6.png\", \"Spades-7.png\", \"Spades-8.png\",\n\t\t\"Spades-9.png\", \"Spades-10.png\", \"Spades-Jack.png\", \"Spades-Queen.png\", \"Spades-King.png\", \"Spades-Ace.png\",\n\t\t\"Hearts-2.png\", \"Hearts-3.png\", \"Hearts-4.png\", \"Hearts-5.png\", \"Hearts-6.png\", \"Hearts-7.png\", \"Hearts-8.png\",\n\t\t\"Hearts-9.png\", \"Hearts-10.png\", \"Hearts-Jack.png\", \"Hearts-Queen.png\", \"Hearts-King.png\", \"Hearts-Ace.png\", \"BakuSquare.png\",\n\t}\n\tunboundedImgs := []string{\"Club.png\", \"Diamond.png\", \"Spade.png\", \"Heart.png\", \"gray.jpeg\", \"blue.png\", \"trickDrop.png\",\n\t\t\"trickDropBlue.png\", \"player0.jpeg\", \"player1.jpeg\", \"player2.jpeg\", \"player3.jpeg\", \"laptopIcon.png\", \"watchIcon.png\",\n\t\t\"phoneIcon.png\", \"tabletIcon.png\", \"A-Upper.png\", \"B-Upper.png\", \"C-Upper.png\", \"D-Upper.png\", \"E-Upper.png\", \"F-Upper.png\",\n\t\t\"G-Upper.png\", \"H-Upper.png\", \"I-Upper.png\", \"J-Upper.png\", \"K-Upper.png\", \"L-Upper.png\", \"M-Upper.png\", \"N-Upper.png\",\n\t\t\"O-Upper.png\", \"P-Upper.png\", \"Q-Upper.png\", \"R-Upper.png\", \"S-Upper.png\", \"T-Upper.png\", \"U-Upper.png\", \"V-Upper.png\",\n\t\t\"W-Upper.png\", \"X-Upper.png\", \"Y-Upper.png\", \"Z-Upper.png\", \"A-Lower.png\", \"B-Lower.png\", \"C-Lower.png\", \"D-Lower.png\",\n\t\t\"E-Lower.png\", \"F-Lower.png\", \"G-Lower.png\", \"H-Lower.png\", \"I-Lower.png\", \"J-Lower.png\", \"K-Lower.png\", \"L-Lower.png\",\n\t\t\"M-Lower.png\", \"N-Lower.png\", \"O-Lower.png\", \"P-Lower.png\", \"Q-Lower.png\", \"R-Lower.png\", \"S-Lower.png\", \"T-Lower.png\",\n\t\t\"U-Lower.png\", \"V-Lower.png\", \"W-Lower.png\", \"X-Lower.png\", \"Y-Lower.png\", \"Z-Lower.png\", \"Space.png\", \"Colon.png\", \"Bang.png\",\n\t\t\"Apostrophe.png\", \"1.png\", \"2.png\", \"3.png\", \"4.png\", \"5.png\", \"6.png\", \"7.png\", \"8.png\", \"9.png\", \"0.png\", \"1-Red.png\",\n\t\t\"2-Red.png\", \"3-Red.png\", \"4-Red.png\", \"5-Red.png\", \"6-Red.png\", \"7-Red.png\", \"8-Red.png\", \"9-Red.png\", \"0-Red.png\",\n\t\t\"1-DBlue.png\", \"2-DBlue.png\", \"3-DBlue.png\", \"4-DBlue.png\", \"5-DBlue.png\", \"6-DBlue.png\", \"7-DBlue.png\", \"8-DBlue.png\",\n\t\t\"9-DBlue.png\", \"0-DBlue.png\", \"A-Upper-DBlue.png\", \"B-Upper-DBlue.png\",\n\t\t\"C-Upper-DBlue.png\", \"D-Upper-DBlue.png\", \"E-Upper-DBlue.png\", \"F-Upper-DBlue.png\", \"G-Upper-DBlue.png\", \"H-Upper-DBlue.png\",\n\t\t\"I-Upper-DBlue.png\", \"J-Upper-DBlue.png\", \"K-Upper-DBlue.png\", \"L-Upper-DBlue.png\", \"M-Upper-DBlue.png\", \"N-Upper-DBlue.png\",\n\t\t\"O-Upper-DBlue.png\", \"P-Upper-DBlue.png\", \"Q-Upper-DBlue.png\", \"R-Upper-DBlue.png\", \"S-Upper-DBlue.png\", \"T-Upper-DBlue.png\",\n\t\t\"U-Upper-DBlue.png\", \"V-Upper-DBlue.png\", \"W-Upper-DBlue.png\", \"X-Upper-DBlue.png\", \"Y-Upper-DBlue.png\", \"Z-Upper-DBlue.png\",\n\t\t\"A-Lower-DBlue.png\", \"B-Lower-DBlue.png\", \"C-Lower-DBlue.png\", \"D-Lower-DBlue.png\", \"E-Lower-DBlue.png\", \"F-Lower-DBlue.png\",\n\t\t\"G-Lower-DBlue.png\", \"H-Lower-DBlue.png\", \"I-Lower-DBlue.png\", \"J-Lower-DBlue.png\", \"K-Lower-DBlue.png\", \"L-Lower-DBlue.png\",\n\t\t\"M-Lower-DBlue.png\", \"N-Lower-DBlue.png\", \"O-Lower-DBlue.png\", \"P-Lower-DBlue.png\", \"Q-Lower-DBlue.png\", \"R-Lower-DBlue.png\",\n\t\t\"S-Lower-DBlue.png\", \"T-Lower-DBlue.png\", \"U-Lower-DBlue.png\", \"V-Lower-DBlue.png\", \"W-Lower-DBlue.png\", \"X-Lower-DBlue.png\",\n\t\t\"Y-Lower-DBlue.png\", \"Z-Lower-DBlue.png\", \"Apostrophe-DBlue.png\", \"Space-DBlue.png\", \"A-Upper-LBlue.png\", \"B-Upper-LBlue.png\",\n\t\t\"C-Upper-LBlue.png\", \"D-Upper-LBlue.png\", \"E-Upper-LBlue.png\", \"F-Upper-LBlue.png\", \"G-Upper-LBlue.png\", \"H-Upper-LBlue.png\",\n\t\t\"I-Upper-LBlue.png\", \"J-Upper-LBlue.png\", \"K-Upper-LBlue.png\", \"L-Upper-LBlue.png\", \"M-Upper-LBlue.png\", \"N-Upper-LBlue.png\",\n\t\t\"O-Upper-LBlue.png\", \"P-Upper-LBlue.png\", \"Q-Upper-LBlue.png\", \"R-Upper-LBlue.png\", \"S-Upper-LBlue.png\", \"T-Upper-LBlue.png\",\n\t\t\"U-Upper-LBlue.png\", \"V-Upper-LBlue.png\", \"W-Upper-LBlue.png\", \"X-Upper-LBlue.png\", \"Y-Upper-LBlue.png\", \"Z-Upper-LBlue.png\",\n\t\t\"A-Lower-LBlue.png\", \"B-Lower-LBlue.png\", \"C-Lower-LBlue.png\", \"D-Lower-LBlue.png\", \"E-Lower-LBlue.png\", \"F-Lower-LBlue.png\",\n\t\t\"G-Lower-LBlue.png\", \"H-Lower-LBlue.png\", \"I-Lower-LBlue.png\", \"J-Lower-LBlue.png\", \"K-Lower-LBlue.png\", \"L-Lower-LBlue.png\",\n\t\t\"M-Lower-LBlue.png\", \"N-Lower-LBlue.png\", \"O-Lower-LBlue.png\", \"P-Lower-LBlue.png\", \"Q-Lower-LBlue.png\", \"R-Lower-LBlue.png\",\n\t\t\"S-Lower-LBlue.png\", \"T-Lower-LBlue.png\", \"U-Lower-LBlue.png\", \"V-Lower-LBlue.png\", \"W-Lower-LBlue.png\", \"X-Lower-LBlue.png\",\n\t\t\"Y-Lower-LBlue.png\", \"Z-Lower-LBlue.png\", \"A-Upper-Gray.png\", \"B-Upper-Gray.png\", \"C-Upper-Gray.png\", \"D-Upper-Gray.png\",\n\t\t\"E-Upper-Gray.png\", \"F-Upper-Gray.png\", \"G-Upper-Gray.png\", \"H-Upper-Gray.png\", \"I-Upper-Gray.png\", \"J-Upper-Gray.png\",\n\t\t\"K-Upper-Gray.png\", \"L-Upper-Gray.png\", \"M-Upper-Gray.png\", \"N-Upper-Gray.png\", \"O-Upper-Gray.png\", \"P-Upper-Gray.png\",\n\t\t\"Q-Upper-Gray.png\", \"R-Upper-Gray.png\", \"S-Upper-Gray.png\", \"T-Upper-Gray.png\", \"U-Upper-Gray.png\", \"V-Upper-Gray.png\",\n\t\t\"W-Upper-Gray.png\", \"X-Upper-Gray.png\", \"Y-Upper-Gray.png\", \"Z-Upper-Gray.png\", \"A-Lower-Gray.png\", \"B-Lower-Gray.png\",\n\t\t\"C-Lower-Gray.png\", \"D-Lower-Gray.png\", \"E-Lower-Gray.png\", \"F-Lower-Gray.png\", \"G-Lower-Gray.png\", \"H-Lower-Gray.png\",\n\t\t\"I-Lower-Gray.png\", \"J-Lower-Gray.png\", \"K-Lower-Gray.png\", \"L-Lower-Gray.png\", \"M-Lower-Gray.png\", \"N-Lower-Gray.png\",\n\t\t\"O-Lower-Gray.png\", \"P-Lower-Gray.png\", \"Q-Lower-Gray.png\", \"R-Lower-Gray.png\", \"S-Lower-Gray.png\", \"T-Lower-Gray.png\",\n\t\t\"U-Lower-Gray.png\", \"V-Lower-Gray.png\", \"W-Lower-Gray.png\", \"X-Lower-Gray.png\", \"Y-Lower-Gray.png\", \"Z-Lower-Gray.png\",\n\t\t\"Space-Gray.png\", \"RoundedRectangle-DBlue.png\", \"RoundedRectangle-LBlue.png\", \"RoundedRectangle-Gray.png\", \"Rectangle-LBlue.png\",\n\t\t\"Rectangle-DBlue.png\", \"HorizontalPullTab.png\", \"VerticalPullTab.png\", \"NewGamePressed.png\", \"NewGameUnpressed.png\",\n\t\t\"NewRoundPressed.png\", \"NewRoundUnpressed.png\", \"JoinGamePressed.png\", \"JoinGameUnpressed.png\", \"Period.png\",\n\t\t\"SitSpotPressed.png\", \"SitSpotUnpressed.png\", \"WatchSpotPressed.png\", \"WatchSpotUnpressed.png\", \"StartBlue.png\", \"StartGray.png\",\n\t\t\"StartBluePressed.png\", \"Restart.png\", \"Visibility.png\", \"VisibilityOff.png\", \"QuitPressed.png\", \"QuitUnpressed.png\",\n\t\t\"PassPressed.png\", \"PassUnpressed.png\", \"RightArrowBlue.png\", \"LeftArrowBlue.png\", \"AcrossArrowBlue.png\", \"RightArrowGray.png\",\n\t\t\"LeftArrowGray.png\", \"AcrossArrowGray.png\", \"TakeTrickTableUnpressed.png\", \"TakeTrickTablePressed.png\", \"TakeTrickHandPressed.png\",\n\t\t\"TakeTrickHandUnpressed.png\", \"android.png\", \"cat.png\", \"man.png\", \"woman.png\", \"TakeUnpressed.png\", \"TakePressed.png\",\n\t\t\"UnplayedBorder1.png\", \"UnplayedBorder2.png\", \"RejoinPressed.png\", \"RejoinUnpressed.png\",\n\t}\n\tfor _, f := range boundedImgs {\n\t\ta, err := asset.Open(f)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\n\t\timg, _, err := image.Decode(a)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\tt, err := eng.LoadTexture(img)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\timgWidth, imgHeight := t.Bounds()\n\t\tallTexs[f] = sprite.SubTex{t, image.Rect(0, 0, imgWidth, imgHeight)}\n\t\ta.Close()\n\t}\n\tfor _, f := range unboundedImgs {\n\t\ta, err := asset.Open(f)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\n\t\timg, _, err := image.Decode(a)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\tt, err := eng.LoadTexture(img)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\timgWidth, imgHeight := t.Bounds()\n\t\tallTexs[f] = sprite.SubTex{t, image.Rect(1, 1, imgWidth-1, imgHeight-1)}\n\t\ta.Close()\n\t}\n\treturn allTexs\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureSubImage(gpGetTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureSubImage(gpGetTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func (self *TileSprite) SetTexture1O(texture *Texture, destroy bool) {\n self.Object.Call(\"setTexture\", texture, destroy)\n}", "func (self *Graphics) GenerateTexture() *Texture{\n return &Texture{self.Object.Call(\"generateTexture\")}\n}", "func Make(width, height int, internalformat int32, format, pixelType uint32,\n\tdata unsafe.Pointer, min, mag, s, t int32) Texture {\n\n\ttexture := Texture{0, gl.TEXTURE_2D, 0}\n\n\t// generate and bind texture\n\tgl.GenTextures(1, &texture.handle)\n\ttexture.Bind(0)\n\n\t// set texture properties\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, min)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, mag)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, s)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, t)\n\n\t// specify a texture image\n\tgl.TexImage2D(gl.TEXTURE_2D, 0, internalformat, int32(width), int32(height),\n\t\t0, format, pixelType, data)\n\n\t// unbind texture\n\ttexture.Unbind()\n\n\treturn texture\n}", "func (self *TileSprite) SetTextureI(args ...interface{}) {\n self.Object.Call(\"setTexture\", args)\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpGetTextureSubImage, 12, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(xtype), uintptr(bufSize), uintptr(pixels))\n}", "func (self *TileSprite) SetTexture(texture *Texture) {\n self.Object.Call(\"setTexture\", texture)\n}", "func (self *GameObjectCreator) RenderTexture() *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\")}\n}", "func (self *TileSprite) TilePattern() *PIXITexture{\n return &PIXITexture{self.Object.Get(\"tilePattern\")}\n}", "func (c *Context) AddTextureObject(cfg *TextureConfig) (*TextureObject, error) {\n\n\t// var pbo uint32\n\t// gl.GenBuffers(1, &pbo)\n\t// gl.BindBuffer(gl.PIXEL_UNPACK_BUFFER, pbo)\n\t// // Write PBO with nil to initialize the space\n\t// gl.BufferData(gl.PIXEL_UNPACK_BUFFER, len(cfg.Image.Pix), nil, gl.STREAM_DRAW)\n\n\tmode := int32(gl.LINEAR)\n\tif cfg.Mode != 0 {\n\t\tmode = cfg.Mode\n\t}\n\n\tvar texID uint32\n\tgl.GenTextures(1, &texID)\n\tgl.ActiveTexture(gl.TEXTURE0)\n\tgl.BindTexture(gl.TEXTURE_2D, texID)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, mode)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, mode)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE)\n\n\t// write texture with nil pointer to initialize the space\n\tgl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA,\n\t\tint32(cfg.Image.Rect.Size().X), int32(cfg.Image.Rect.Size().Y),\n\t\t0, gl.RGBA, gl.UNSIGNED_BYTE, gl.Ptr(cfg.Image.Pix))\n\n\ttexLoc := c.GetUniformLocation(cfg.UniformName)\n\tgl.Uniform1i(texLoc, 0)\n\n\ttex := &TextureObject{\n\t\ttexID: texID,\n\t\ttexLoc: texLoc,\n\t\t//pbo: pbo,\n\t\timage: cfg.Image,\n\t}\n\tc.textures = append(c.textures, tex)\n\treturn tex, nil\n}", "func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage3D(gpCompressedTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage3D(gpCompressedTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpTextureSubImage3D, 11, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(xtype), uintptr(pixels), 0)\n}", "func (self *GameObjectCreator) RenderTextureI(args ...interface{}) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", args)}\n}", "func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexSubImage3D(gpTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (self *TileSprite) Texture() *Texture{\n return &Texture{self.Object.Get(\"texture\")}\n}", "func (self *TileSprite) SetTextureA(member *Texture) {\n self.Object.Set(\"texture\", member)\n}", "func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyTextureSubImage3D(gpCopyTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyTextureSubImage3D(gpCopyTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall12(gpCompressedTextureSubImage3D, 11, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(imageSize), uintptr(data), 0)\n}", "func BindImageTexture(unit uint32, texture uint32, level int32, layered bool, layer int32, access uint32, format uint32) {\n C.glowBindImageTexture(gpBindImageTexture, (C.GLuint)(unit), (C.GLuint)(texture), (C.GLint)(level), (C.GLboolean)(boolToInt(layered)), (C.GLint)(layer), (C.GLenum)(access), (C.GLenum)(format))\n}", "func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n\tsyscall.Syscall9(gpCopyTextureSubImage3D, 9, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(x), uintptr(y), uintptr(width), uintptr(height))\n}", "func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage3D(gpTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage3D(gpTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureSubImage(gpGetCompressedTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(bufSize), pixels)\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureSubImage(gpGetCompressedTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(bufSize), pixels)\n}", "func TextureView(texture uint32, target uint32, origtexture uint32, internalformat uint32, minlevel uint32, numlevels uint32, minlayer uint32, numlayers uint32) {\n\tC.glowTextureView(gpTextureView, (C.GLuint)(texture), (C.GLenum)(target), (C.GLuint)(origtexture), (C.GLenum)(internalformat), (C.GLuint)(minlevel), (C.GLuint)(numlevels), (C.GLuint)(minlayer), (C.GLuint)(numlayers))\n}", "func TextureView(texture uint32, target uint32, origtexture uint32, internalformat uint32, minlevel uint32, numlevels uint32, minlayer uint32, numlayers uint32) {\n\tC.glowTextureView(gpTextureView, (C.GLuint)(texture), (C.GLenum)(target), (C.GLuint)(origtexture), (C.GLenum)(internalformat), (C.GLuint)(minlevel), (C.GLuint)(numlevels), (C.GLuint)(minlayer), (C.GLuint)(numlayers))\n}", "func (self *TileSprite) TilingTexture() *PIXITexture{\n return &PIXITexture{self.Object.Get(\"tilingTexture\")}\n}", "func TextureView(texture uint32, target uint32, origtexture uint32, internalformat uint32, minlevel uint32, numlevels uint32, minlayer uint32, numlayers uint32) {\n\tsyscall.Syscall9(gpTextureView, 8, uintptr(texture), uintptr(target), uintptr(origtexture), uintptr(internalformat), uintptr(minlevel), uintptr(numlevels), uintptr(minlayer), uintptr(numlayers), 0)\n}", "func (self *TileSprite) LoadTexture(key interface{}) {\n self.Object.Call(\"loadTexture\", key)\n}", "func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexSubImage3D(gpTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexSubImage3D(gpTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (self *TileSprite) LoadTextureI(args ...interface{}) {\n self.Object.Call(\"loadTexture\", args)\n}", "func CopyTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n C.glowCopyTexSubImage3D(gpCopyTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexImage2D(gpTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (self *TileSprite) SetTilingTextureA(member *PIXITexture) {\n self.Object.Set(\"tilingTexture\", member)\n}", "func (self *TileSprite) LoadTexture1O(key interface{}, frame interface{}) {\n self.Object.Call(\"loadTexture\", key, frame)\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpGetCompressedTextureSubImage, 10, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(bufSize), uintptr(pixels), 0, 0)\n}", "func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpTexSubImage3D, 11, uintptr(target), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(xtype), uintptr(pixels), 0)\n}", "func (self *TileSprite) LoadTexture2O(key interface{}, frame interface{}, stopAnimation bool) {\n self.Object.Call(\"loadTexture\", key, frame, stopAnimation)\n}", "func (tex Texture) Sub(ctx gl.Context, lvl int, width int, height int, data []byte) {\n\tctx.TexSubImage2D(gl.TEXTURE_2D, lvl, 0, 0, width, height, gl.RGBA, gl.UNSIGNED_BYTE, data)\n\tif lvl > 0 {\n\t\tctx.GenerateMipmap(gl.TEXTURE_2D)\n\t}\n}", "func TextureBufferRange(texture uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tsyscall.Syscall6(gpTextureBufferRange, 5, uintptr(texture), uintptr(internalformat), uintptr(buffer), uintptr(offset), uintptr(size), 0)\n}", "func BindImageTextures(first uint32, count int32, textures *uint32) {\n C.glowBindImageTextures(gpBindImageTextures, (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(textures)))\n}", "func loadTextures() {\n\tfor i := 0; i < 7; i++ {\n\n\t\ttextures[i], _, _ = ebutil.NewImageFromFile(\"assets/image/\"+colors[i]+\".png\", eb.FilterDefault)\n\t}\n\ttextures[7], _, _ = ebutil.NewImageFromFile(\"assets/image/tetris_backgraund.png\", eb.FilterDefault)\n}", "func InvalidateTexImage(texture uint32, level int32) {\n C.glowInvalidateTexImage(gpInvalidateTexImage, (C.GLuint)(texture), (C.GLint)(level))\n}", "func TextureFromJSObject(p *js.Object) *Texture {\n\treturn &Texture{p: p}\n}", "func TextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall9(gpTextureSubImage1D, 7, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(width), uintptr(format), uintptr(xtype), uintptr(pixels), 0, 0)\n}", "func CompressedTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexSubImage3D(gpCompressedTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func TexImage3D(target uint32, level int32, internalformat int32, width int32, height int32, depth int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexImage3D(gpTexImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func PrioritizeTextures(n int32, textures *uint32, priorities *float32) {\n C.glowPrioritizeTextures(gpPrioritizeTextures, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures)), (*C.GLfloat)(unsafe.Pointer(priorities)))\n}", "func TextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall9(gpTextureSubImage2D, 9, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(width), uintptr(height), uintptr(format), uintptr(xtype), uintptr(pixels))\n}", "func BindTextures(first uint32, count int32, textures *uint32) {\n C.glowBindTextures(gpBindTextures, (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(textures)))\n}", "func (self *GameObjectCreator) Tilemap4O(key string, tileWidth int, tileHeight int, width int) {\n self.Object.Call(\"tilemap\", key, tileWidth, tileHeight, width)\n}", "func TextureBufferRange(texture uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tC.glowTextureBufferRange(gpTextureBufferRange, (C.GLuint)(texture), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func TextureBufferRange(texture uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tC.glowTextureBufferRange(gpTextureBufferRange, (C.GLuint)(texture), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage2D(gpCompressedTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage2D(gpCompressedTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func (self *TileSprite) OnTextureUpdateI(args ...interface{}) {\n self.Object.Call(\"onTextureUpdate\", args)\n}", "func (md MetalDrawable) Texture() mtl.Texture {\n\treturn mtl.NewTexture(C.MetalDrawable_Texture(md.metalDrawable))\n}", "func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowGetTexImage(gpGetTexImage, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func NewTexture(scene *Scene, element *Element) *Texture {\n\tt := &Texture{\n\t\tObject: *NewObject(scene, element),\n\t}\n\treturn t\n}", "func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTextureSubImage2D, 9, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(width), uintptr(height), uintptr(format), uintptr(imageSize), uintptr(data))\n}", "func TexImage3D(target uint32, level int32, internalformat int32, width int32, height int32, depth int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpTexImage3D, 10, uintptr(target), uintptr(level), uintptr(internalformat), uintptr(width), uintptr(height), uintptr(depth), uintptr(border), uintptr(format), uintptr(xtype), uintptr(pixels), 0, 0)\n}", "func InvalidateTexSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32) {\n C.glowInvalidateTexSubImage(gpInvalidateTexSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth))\n}", "func TexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexSubImage2D(gpTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func AreTexturesResident(n int32, textures *uint32, residences *bool) bool {\n ret := C.glowAreTexturesResident(gpAreTexturesResident, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures)), (*C.GLboolean)(unsafe.Pointer(residences)))\n return ret == TRUE\n}", "func TextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage2D(gpTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage2D(gpTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func CompressedTexImage2D(target uint32, level int32, internalformat uint32, width int32, height int32, border int32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexImage2D(gpCompressedTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func TexImage3D(target uint32, level int32, internalformat int32, width int32, height int32, depth int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexImage3D(gpTexImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexImage3D(target uint32, level int32, internalformat int32, width int32, height int32, depth int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexImage3D(gpTexImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (t *Texture2D) Generate(width, height int32, data []byte) {\n\tt.width = width\n\tt.height = height\n\t// Create Texture\n\tgl.BindTexture(gl.TEXTURE_2D, t.ID)\n\tif data != nil {\n\t\tgl.TexImage2D(gl.TEXTURE_2D, 0, t.internalFormat, width, height, 0, t.imageFormat, gl.UNSIGNED_BYTE, gl.Ptr(&data[0]))\n\t} else {\n\t\tgl.TexImage2D(gl.TEXTURE_2D, 0, t.internalFormat, width, height, 0, t.imageFormat, gl.UNSIGNED_BYTE, nil)\n\t}\n\t// Set Texture wrap and filter modes\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, t.wrapS)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, t.wrapT)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, t.filterMin)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, t.filterMax)\n\t// Unbind texture\n\tgl.BindTexture(gl.TEXTURE_2D, 0)\n}", "func TextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage1D(gpTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage1D(gpTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}" ]
[ "0.71878934", "0.67033905", "0.67033905", "0.6282555", "0.62216306", "0.6164439", "0.61298746", "0.6108608", "0.6075409", "0.6063641", "0.60054624", "0.5990034", "0.5912601", "0.57864517", "0.5762114", "0.5757929", "0.5735087", "0.5733063", "0.5707832", "0.5633322", "0.56233394", "0.54824615", "0.5453014", "0.54391354", "0.54391354", "0.5411153", "0.54100704", "0.53923285", "0.5370627", "0.5324331", "0.53237474", "0.53015965", "0.5292083", "0.5254515", "0.52520657", "0.52520657", "0.52396184", "0.5198683", "0.51897293", "0.5188547", "0.5187441", "0.5185404", "0.5185404", "0.5180223", "0.5177883", "0.5145803", "0.5140881", "0.5140881", "0.51199985", "0.51199985", "0.5119105", "0.5119105", "0.5118548", "0.51056874", "0.50873864", "0.5046707", "0.5046707", "0.5013456", "0.50020486", "0.49938717", "0.49924892", "0.49812382", "0.497735", "0.49729377", "0.49585193", "0.49577588", "0.49574807", "0.49410877", "0.49369052", "0.4936253", "0.49360296", "0.49317843", "0.49304253", "0.49271125", "0.49174905", "0.49131948", "0.49058744", "0.48956716", "0.48863676", "0.48863676", "0.4883056", "0.4883056", "0.4863234", "0.4859217", "0.48515216", "0.48476303", "0.4832264", "0.48277414", "0.48197153", "0.4819439", "0.48177925", "0.4814404", "0.4814404", "0.48066732", "0.47895253", "0.47895253", "0.47889596", "0.4777327", "0.4777327" ]
0.5673134
20
generate mipmaps for a specified texture object
func GenerateTextureMipmap(texture uint32) { C.glowGenerateTextureMipmap(gpGenerateTextureMipmap, (C.GLuint)(texture)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GenerateTextureMipmap(texture uint32) {\n\tsyscall.Syscall(gpGenerateTextureMipmap, 1, uintptr(texture), 0, 0)\n}", "func GenerateMipmap(target uint32) {\n C.glowGenerateMipmap(gpGenerateMipmap, (C.GLenum)(target))\n}", "func (self *Graphics) GenerateTexture3O(resolution int, scaleMode int, padding int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution, scaleMode, padding)}\n}", "func GenerateMipmap(target Enum) {\n\tgl.GenerateMipmap(uint32(target))\n}", "func (self *Graphics) GenerateTexture2O(resolution int, scaleMode int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution, scaleMode)}\n}", "func GenerateMipmap(target GLEnum) {\n\tgl.GenerateMipmap(uint32(target))\n}", "func GenerateMipmap(target uint32) {\n\tsyscall.Syscall(gpGenerateMipmap, 1, uintptr(target), 0, 0)\n}", "func (self *Graphics) GenerateTexture1O(resolution int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution)}\n}", "func GenerateMipmap(target Enum) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tC.glGenerateMipmap(ctarget)\n}", "func (self *GameObjectCreator) RenderTexture4O(width int, height int, key string, addToCache bool) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height, key, addToCache)}\n}", "func (gl *WebGL) GenerateMipmap(target GLEnum) {\n\tgl.context.Call(\"generateMipmap\", target)\n}", "func (bm Blendmap) Texture() *gl.Texture {\n\treturn bm.Map.id\n}", "func (self *GameObjectCreator) RenderTexture3O(width int, height int, key string) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height, key)}\n}", "func (debugging *debuggingOpenGL) GenerateMipmap(target uint32) {\n\tdebugging.recordEntry(\"GenerateMipmap\", target)\n\tdebugging.gl.GenerateMipmap(target)\n\tdebugging.recordExit(\"GenerateMipmap\")\n}", "func (self *GameObjectCreator) RenderTexture1O(width int) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width)}\n}", "func (native *OpenGL) GenerateMipmap(target uint32) {\n\tgl.GenerateMipmap(target)\n}", "func (self *GameObjectCreator) RenderTexture2O(width int, height int) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height)}\n}", "func GenerateMipmap(target uint32) {\n\tC.glowGenerateMipmap(gpGenerateMipmap, (C.GLenum)(target))\n}", "func GenerateMipmap(target uint32) {\n\tC.glowGenerateMipmap(gpGenerateMipmap, (C.GLenum)(target))\n}", "func (self *Graphics) GenerateTextureI(args ...interface{}) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", args)}\n}", "func (w *Worley) GenerateTexture(tex *texture.Texture) {\n\tgl.BindImageTexture(0, tex.GetHandle(), 0, false, 0, gl.READ_WRITE, gl.RGBA32F)\n\tgl.BindImageTexture(1, w.noisetexture.GetHandle(), 0, false, 0, gl.READ_ONLY, gl.RGBA32F)\n\n\tw.computeshader.Use()\n\tw.computeshader.UpdateInt32(\"uWidth\", w.width)\n\tw.computeshader.UpdateInt32(\"uHeight\", w.height)\n\tw.computeshader.UpdateInt32(\"uResolution\", w.resolution)\n\tw.computeshader.UpdateInt32(\"uOctaves\", w.octaves)\n\tw.computeshader.UpdateFloat32(\"uRadius\", w.radius)\n\tw.computeshader.UpdateFloat32(\"uRadiusScale\", w.radiusscale)\n\tw.computeshader.UpdateFloat32(\"uBrightness\", w.brightness)\n\tw.computeshader.UpdateFloat32(\"uContrast\", w.contrast)\n\tw.computeshader.UpdateFloat32(\"uScale\", w.scale)\n\tw.computeshader.UpdateFloat32(\"uPersistance\", w.persistance)\n\tw.computeshader.Compute(uint32(w.width), uint32(w.height), 1)\n\tw.computeshader.Compute(1024, 1024, 1)\n\tw.computeshader.Release()\n\n\tgl.MemoryBarrier(gl.ALL_BARRIER_BITS)\n\n\tgl.BindImageTexture(0, 0, 0, false, 0, gl.WRITE_ONLY, gl.RGBA32F)\n\tgl.BindImageTexture(1, 0, 0, false, 0, gl.READ_ONLY, gl.RGBA32F)\n}", "func TextureView(texture uint32, target uint32, origtexture uint32, internalformat uint32, minlevel uint32, numlevels uint32, minlayer uint32, numlayers uint32) {\n C.glowTextureView(gpTextureView, (C.GLuint)(texture), (C.GLenum)(target), (C.GLuint)(origtexture), (C.GLenum)(internalformat), (C.GLuint)(minlevel), (C.GLuint)(numlevels), (C.GLuint)(minlayer), (C.GLuint)(numlayers))\n}", "func LoadTextures(eng sprite.Engine) map[string]sprite.SubTex {\n\tallTexs := make(map[string]sprite.SubTex)\n\tboundedImgs := []string{\"Clubs-2.png\", \"Clubs-3.png\", \"Clubs-4.png\", \"Clubs-5.png\", \"Clubs-6.png\", \"Clubs-7.png\", \"Clubs-8.png\",\n\t\t\"Clubs-9.png\", \"Clubs-10.png\", \"Clubs-Jack.png\", \"Clubs-Queen.png\", \"Clubs-King.png\", \"Clubs-Ace.png\",\n\t\t\"Diamonds-2.png\", \"Diamonds-3.png\", \"Diamonds-4.png\", \"Diamonds-5.png\", \"Diamonds-6.png\", \"Diamonds-7.png\", \"Diamonds-8.png\",\n\t\t\"Diamonds-9.png\", \"Diamonds-10.png\", \"Diamonds-Jack.png\", \"Diamonds-Queen.png\", \"Diamonds-King.png\", \"Diamonds-Ace.png\",\n\t\t\"Spades-2.png\", \"Spades-3.png\", \"Spades-4.png\", \"Spades-5.png\", \"Spades-6.png\", \"Spades-7.png\", \"Spades-8.png\",\n\t\t\"Spades-9.png\", \"Spades-10.png\", \"Spades-Jack.png\", \"Spades-Queen.png\", \"Spades-King.png\", \"Spades-Ace.png\",\n\t\t\"Hearts-2.png\", \"Hearts-3.png\", \"Hearts-4.png\", \"Hearts-5.png\", \"Hearts-6.png\", \"Hearts-7.png\", \"Hearts-8.png\",\n\t\t\"Hearts-9.png\", \"Hearts-10.png\", \"Hearts-Jack.png\", \"Hearts-Queen.png\", \"Hearts-King.png\", \"Hearts-Ace.png\", \"BakuSquare.png\",\n\t}\n\tunboundedImgs := []string{\"Club.png\", \"Diamond.png\", \"Spade.png\", \"Heart.png\", \"gray.jpeg\", \"blue.png\", \"trickDrop.png\",\n\t\t\"trickDropBlue.png\", \"player0.jpeg\", \"player1.jpeg\", \"player2.jpeg\", \"player3.jpeg\", \"laptopIcon.png\", \"watchIcon.png\",\n\t\t\"phoneIcon.png\", \"tabletIcon.png\", \"A-Upper.png\", \"B-Upper.png\", \"C-Upper.png\", \"D-Upper.png\", \"E-Upper.png\", \"F-Upper.png\",\n\t\t\"G-Upper.png\", \"H-Upper.png\", \"I-Upper.png\", \"J-Upper.png\", \"K-Upper.png\", \"L-Upper.png\", \"M-Upper.png\", \"N-Upper.png\",\n\t\t\"O-Upper.png\", \"P-Upper.png\", \"Q-Upper.png\", \"R-Upper.png\", \"S-Upper.png\", \"T-Upper.png\", \"U-Upper.png\", \"V-Upper.png\",\n\t\t\"W-Upper.png\", \"X-Upper.png\", \"Y-Upper.png\", \"Z-Upper.png\", \"A-Lower.png\", \"B-Lower.png\", \"C-Lower.png\", \"D-Lower.png\",\n\t\t\"E-Lower.png\", \"F-Lower.png\", \"G-Lower.png\", \"H-Lower.png\", \"I-Lower.png\", \"J-Lower.png\", \"K-Lower.png\", \"L-Lower.png\",\n\t\t\"M-Lower.png\", \"N-Lower.png\", \"O-Lower.png\", \"P-Lower.png\", \"Q-Lower.png\", \"R-Lower.png\", \"S-Lower.png\", \"T-Lower.png\",\n\t\t\"U-Lower.png\", \"V-Lower.png\", \"W-Lower.png\", \"X-Lower.png\", \"Y-Lower.png\", \"Z-Lower.png\", \"Space.png\", \"Colon.png\", \"Bang.png\",\n\t\t\"Apostrophe.png\", \"1.png\", \"2.png\", \"3.png\", \"4.png\", \"5.png\", \"6.png\", \"7.png\", \"8.png\", \"9.png\", \"0.png\", \"1-Red.png\",\n\t\t\"2-Red.png\", \"3-Red.png\", \"4-Red.png\", \"5-Red.png\", \"6-Red.png\", \"7-Red.png\", \"8-Red.png\", \"9-Red.png\", \"0-Red.png\",\n\t\t\"1-DBlue.png\", \"2-DBlue.png\", \"3-DBlue.png\", \"4-DBlue.png\", \"5-DBlue.png\", \"6-DBlue.png\", \"7-DBlue.png\", \"8-DBlue.png\",\n\t\t\"9-DBlue.png\", \"0-DBlue.png\", \"A-Upper-DBlue.png\", \"B-Upper-DBlue.png\",\n\t\t\"C-Upper-DBlue.png\", \"D-Upper-DBlue.png\", \"E-Upper-DBlue.png\", \"F-Upper-DBlue.png\", \"G-Upper-DBlue.png\", \"H-Upper-DBlue.png\",\n\t\t\"I-Upper-DBlue.png\", \"J-Upper-DBlue.png\", \"K-Upper-DBlue.png\", \"L-Upper-DBlue.png\", \"M-Upper-DBlue.png\", \"N-Upper-DBlue.png\",\n\t\t\"O-Upper-DBlue.png\", \"P-Upper-DBlue.png\", \"Q-Upper-DBlue.png\", \"R-Upper-DBlue.png\", \"S-Upper-DBlue.png\", \"T-Upper-DBlue.png\",\n\t\t\"U-Upper-DBlue.png\", \"V-Upper-DBlue.png\", \"W-Upper-DBlue.png\", \"X-Upper-DBlue.png\", \"Y-Upper-DBlue.png\", \"Z-Upper-DBlue.png\",\n\t\t\"A-Lower-DBlue.png\", \"B-Lower-DBlue.png\", \"C-Lower-DBlue.png\", \"D-Lower-DBlue.png\", \"E-Lower-DBlue.png\", \"F-Lower-DBlue.png\",\n\t\t\"G-Lower-DBlue.png\", \"H-Lower-DBlue.png\", \"I-Lower-DBlue.png\", \"J-Lower-DBlue.png\", \"K-Lower-DBlue.png\", \"L-Lower-DBlue.png\",\n\t\t\"M-Lower-DBlue.png\", \"N-Lower-DBlue.png\", \"O-Lower-DBlue.png\", \"P-Lower-DBlue.png\", \"Q-Lower-DBlue.png\", \"R-Lower-DBlue.png\",\n\t\t\"S-Lower-DBlue.png\", \"T-Lower-DBlue.png\", \"U-Lower-DBlue.png\", \"V-Lower-DBlue.png\", \"W-Lower-DBlue.png\", \"X-Lower-DBlue.png\",\n\t\t\"Y-Lower-DBlue.png\", \"Z-Lower-DBlue.png\", \"Apostrophe-DBlue.png\", \"Space-DBlue.png\", \"A-Upper-LBlue.png\", \"B-Upper-LBlue.png\",\n\t\t\"C-Upper-LBlue.png\", \"D-Upper-LBlue.png\", \"E-Upper-LBlue.png\", \"F-Upper-LBlue.png\", \"G-Upper-LBlue.png\", \"H-Upper-LBlue.png\",\n\t\t\"I-Upper-LBlue.png\", \"J-Upper-LBlue.png\", \"K-Upper-LBlue.png\", \"L-Upper-LBlue.png\", \"M-Upper-LBlue.png\", \"N-Upper-LBlue.png\",\n\t\t\"O-Upper-LBlue.png\", \"P-Upper-LBlue.png\", \"Q-Upper-LBlue.png\", \"R-Upper-LBlue.png\", \"S-Upper-LBlue.png\", \"T-Upper-LBlue.png\",\n\t\t\"U-Upper-LBlue.png\", \"V-Upper-LBlue.png\", \"W-Upper-LBlue.png\", \"X-Upper-LBlue.png\", \"Y-Upper-LBlue.png\", \"Z-Upper-LBlue.png\",\n\t\t\"A-Lower-LBlue.png\", \"B-Lower-LBlue.png\", \"C-Lower-LBlue.png\", \"D-Lower-LBlue.png\", \"E-Lower-LBlue.png\", \"F-Lower-LBlue.png\",\n\t\t\"G-Lower-LBlue.png\", \"H-Lower-LBlue.png\", \"I-Lower-LBlue.png\", \"J-Lower-LBlue.png\", \"K-Lower-LBlue.png\", \"L-Lower-LBlue.png\",\n\t\t\"M-Lower-LBlue.png\", \"N-Lower-LBlue.png\", \"O-Lower-LBlue.png\", \"P-Lower-LBlue.png\", \"Q-Lower-LBlue.png\", \"R-Lower-LBlue.png\",\n\t\t\"S-Lower-LBlue.png\", \"T-Lower-LBlue.png\", \"U-Lower-LBlue.png\", \"V-Lower-LBlue.png\", \"W-Lower-LBlue.png\", \"X-Lower-LBlue.png\",\n\t\t\"Y-Lower-LBlue.png\", \"Z-Lower-LBlue.png\", \"A-Upper-Gray.png\", \"B-Upper-Gray.png\", \"C-Upper-Gray.png\", \"D-Upper-Gray.png\",\n\t\t\"E-Upper-Gray.png\", \"F-Upper-Gray.png\", \"G-Upper-Gray.png\", \"H-Upper-Gray.png\", \"I-Upper-Gray.png\", \"J-Upper-Gray.png\",\n\t\t\"K-Upper-Gray.png\", \"L-Upper-Gray.png\", \"M-Upper-Gray.png\", \"N-Upper-Gray.png\", \"O-Upper-Gray.png\", \"P-Upper-Gray.png\",\n\t\t\"Q-Upper-Gray.png\", \"R-Upper-Gray.png\", \"S-Upper-Gray.png\", \"T-Upper-Gray.png\", \"U-Upper-Gray.png\", \"V-Upper-Gray.png\",\n\t\t\"W-Upper-Gray.png\", \"X-Upper-Gray.png\", \"Y-Upper-Gray.png\", \"Z-Upper-Gray.png\", \"A-Lower-Gray.png\", \"B-Lower-Gray.png\",\n\t\t\"C-Lower-Gray.png\", \"D-Lower-Gray.png\", \"E-Lower-Gray.png\", \"F-Lower-Gray.png\", \"G-Lower-Gray.png\", \"H-Lower-Gray.png\",\n\t\t\"I-Lower-Gray.png\", \"J-Lower-Gray.png\", \"K-Lower-Gray.png\", \"L-Lower-Gray.png\", \"M-Lower-Gray.png\", \"N-Lower-Gray.png\",\n\t\t\"O-Lower-Gray.png\", \"P-Lower-Gray.png\", \"Q-Lower-Gray.png\", \"R-Lower-Gray.png\", \"S-Lower-Gray.png\", \"T-Lower-Gray.png\",\n\t\t\"U-Lower-Gray.png\", \"V-Lower-Gray.png\", \"W-Lower-Gray.png\", \"X-Lower-Gray.png\", \"Y-Lower-Gray.png\", \"Z-Lower-Gray.png\",\n\t\t\"Space-Gray.png\", \"RoundedRectangle-DBlue.png\", \"RoundedRectangle-LBlue.png\", \"RoundedRectangle-Gray.png\", \"Rectangle-LBlue.png\",\n\t\t\"Rectangle-DBlue.png\", \"HorizontalPullTab.png\", \"VerticalPullTab.png\", \"NewGamePressed.png\", \"NewGameUnpressed.png\",\n\t\t\"NewRoundPressed.png\", \"NewRoundUnpressed.png\", \"JoinGamePressed.png\", \"JoinGameUnpressed.png\", \"Period.png\",\n\t\t\"SitSpotPressed.png\", \"SitSpotUnpressed.png\", \"WatchSpotPressed.png\", \"WatchSpotUnpressed.png\", \"StartBlue.png\", \"StartGray.png\",\n\t\t\"StartBluePressed.png\", \"Restart.png\", \"Visibility.png\", \"VisibilityOff.png\", \"QuitPressed.png\", \"QuitUnpressed.png\",\n\t\t\"PassPressed.png\", \"PassUnpressed.png\", \"RightArrowBlue.png\", \"LeftArrowBlue.png\", \"AcrossArrowBlue.png\", \"RightArrowGray.png\",\n\t\t\"LeftArrowGray.png\", \"AcrossArrowGray.png\", \"TakeTrickTableUnpressed.png\", \"TakeTrickTablePressed.png\", \"TakeTrickHandPressed.png\",\n\t\t\"TakeTrickHandUnpressed.png\", \"android.png\", \"cat.png\", \"man.png\", \"woman.png\", \"TakeUnpressed.png\", \"TakePressed.png\",\n\t\t\"UnplayedBorder1.png\", \"UnplayedBorder2.png\", \"RejoinPressed.png\", \"RejoinUnpressed.png\",\n\t}\n\tfor _, f := range boundedImgs {\n\t\ta, err := asset.Open(f)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\n\t\timg, _, err := image.Decode(a)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\tt, err := eng.LoadTexture(img)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\timgWidth, imgHeight := t.Bounds()\n\t\tallTexs[f] = sprite.SubTex{t, image.Rect(0, 0, imgWidth, imgHeight)}\n\t\ta.Close()\n\t}\n\tfor _, f := range unboundedImgs {\n\t\ta, err := asset.Open(f)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\n\t\timg, _, err := image.Decode(a)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\tt, err := eng.LoadTexture(img)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\timgWidth, imgHeight := t.Bounds()\n\t\tallTexs[f] = sprite.SubTex{t, image.Rect(1, 1, imgWidth-1, imgHeight-1)}\n\t\ta.Close()\n\t}\n\treturn allTexs\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureSubImage(gpGetTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureSubImage(gpGetTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func (self *TileSprite) SetTexture1O(texture *Texture, destroy bool) {\n self.Object.Call(\"setTexture\", texture, destroy)\n}", "func (self *Graphics) GenerateTexture() *Texture{\n return &Texture{self.Object.Call(\"generateTexture\")}\n}", "func Make(width, height int, internalformat int32, format, pixelType uint32,\n\tdata unsafe.Pointer, min, mag, s, t int32) Texture {\n\n\ttexture := Texture{0, gl.TEXTURE_2D, 0}\n\n\t// generate and bind texture\n\tgl.GenTextures(1, &texture.handle)\n\ttexture.Bind(0)\n\n\t// set texture properties\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, min)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, mag)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, s)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, t)\n\n\t// specify a texture image\n\tgl.TexImage2D(gl.TEXTURE_2D, 0, internalformat, int32(width), int32(height),\n\t\t0, format, pixelType, data)\n\n\t// unbind texture\n\ttexture.Unbind()\n\n\treturn texture\n}", "func (self *TileSprite) SetTextureI(args ...interface{}) {\n self.Object.Call(\"setTexture\", args)\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpGetTextureSubImage, 12, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(xtype), uintptr(bufSize), uintptr(pixels))\n}", "func (self *TileSprite) SetTexture(texture *Texture) {\n self.Object.Call(\"setTexture\", texture)\n}", "func (self *GameObjectCreator) RenderTexture() *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\")}\n}", "func (self *TileSprite) TilePattern() *PIXITexture{\n return &PIXITexture{self.Object.Get(\"tilePattern\")}\n}", "func (c *Context) AddTextureObject(cfg *TextureConfig) (*TextureObject, error) {\n\n\t// var pbo uint32\n\t// gl.GenBuffers(1, &pbo)\n\t// gl.BindBuffer(gl.PIXEL_UNPACK_BUFFER, pbo)\n\t// // Write PBO with nil to initialize the space\n\t// gl.BufferData(gl.PIXEL_UNPACK_BUFFER, len(cfg.Image.Pix), nil, gl.STREAM_DRAW)\n\n\tmode := int32(gl.LINEAR)\n\tif cfg.Mode != 0 {\n\t\tmode = cfg.Mode\n\t}\n\n\tvar texID uint32\n\tgl.GenTextures(1, &texID)\n\tgl.ActiveTexture(gl.TEXTURE0)\n\tgl.BindTexture(gl.TEXTURE_2D, texID)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, mode)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, mode)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE)\n\n\t// write texture with nil pointer to initialize the space\n\tgl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA,\n\t\tint32(cfg.Image.Rect.Size().X), int32(cfg.Image.Rect.Size().Y),\n\t\t0, gl.RGBA, gl.UNSIGNED_BYTE, gl.Ptr(cfg.Image.Pix))\n\n\ttexLoc := c.GetUniformLocation(cfg.UniformName)\n\tgl.Uniform1i(texLoc, 0)\n\n\ttex := &TextureObject{\n\t\ttexID: texID,\n\t\ttexLoc: texLoc,\n\t\t//pbo: pbo,\n\t\timage: cfg.Image,\n\t}\n\tc.textures = append(c.textures, tex)\n\treturn tex, nil\n}", "func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage3D(gpCompressedTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage3D(gpCompressedTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpTextureSubImage3D, 11, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(xtype), uintptr(pixels), 0)\n}", "func (self *GameObjectCreator) RenderTextureI(args ...interface{}) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", args)}\n}", "func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexSubImage3D(gpTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (self *TileSprite) Texture() *Texture{\n return &Texture{self.Object.Get(\"texture\")}\n}", "func (self *TileSprite) SetTextureA(member *Texture) {\n self.Object.Set(\"texture\", member)\n}", "func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyTextureSubImage3D(gpCopyTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyTextureSubImage3D(gpCopyTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall12(gpCompressedTextureSubImage3D, 11, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(imageSize), uintptr(data), 0)\n}", "func BindImageTexture(unit uint32, texture uint32, level int32, layered bool, layer int32, access uint32, format uint32) {\n C.glowBindImageTexture(gpBindImageTexture, (C.GLuint)(unit), (C.GLuint)(texture), (C.GLint)(level), (C.GLboolean)(boolToInt(layered)), (C.GLint)(layer), (C.GLenum)(access), (C.GLenum)(format))\n}", "func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n\tsyscall.Syscall9(gpCopyTextureSubImage3D, 9, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(x), uintptr(y), uintptr(width), uintptr(height))\n}", "func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage3D(gpTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage3D(gpTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureSubImage(gpGetCompressedTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(bufSize), pixels)\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureSubImage(gpGetCompressedTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(bufSize), pixels)\n}", "func TextureView(texture uint32, target uint32, origtexture uint32, internalformat uint32, minlevel uint32, numlevels uint32, minlayer uint32, numlayers uint32) {\n\tC.glowTextureView(gpTextureView, (C.GLuint)(texture), (C.GLenum)(target), (C.GLuint)(origtexture), (C.GLenum)(internalformat), (C.GLuint)(minlevel), (C.GLuint)(numlevels), (C.GLuint)(minlayer), (C.GLuint)(numlayers))\n}", "func TextureView(texture uint32, target uint32, origtexture uint32, internalformat uint32, minlevel uint32, numlevels uint32, minlayer uint32, numlayers uint32) {\n\tC.glowTextureView(gpTextureView, (C.GLuint)(texture), (C.GLenum)(target), (C.GLuint)(origtexture), (C.GLenum)(internalformat), (C.GLuint)(minlevel), (C.GLuint)(numlevels), (C.GLuint)(minlayer), (C.GLuint)(numlayers))\n}", "func (self *TileSprite) TilingTexture() *PIXITexture{\n return &PIXITexture{self.Object.Get(\"tilingTexture\")}\n}", "func TextureView(texture uint32, target uint32, origtexture uint32, internalformat uint32, minlevel uint32, numlevels uint32, minlayer uint32, numlayers uint32) {\n\tsyscall.Syscall9(gpTextureView, 8, uintptr(texture), uintptr(target), uintptr(origtexture), uintptr(internalformat), uintptr(minlevel), uintptr(numlevels), uintptr(minlayer), uintptr(numlayers), 0)\n}", "func (self *TileSprite) LoadTexture(key interface{}) {\n self.Object.Call(\"loadTexture\", key)\n}", "func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexSubImage3D(gpTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexSubImage3D(gpTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (self *TileSprite) LoadTextureI(args ...interface{}) {\n self.Object.Call(\"loadTexture\", args)\n}", "func CopyTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n C.glowCopyTexSubImage3D(gpCopyTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexImage2D(gpTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (self *TileSprite) SetTilingTextureA(member *PIXITexture) {\n self.Object.Set(\"tilingTexture\", member)\n}", "func (self *TileSprite) LoadTexture1O(key interface{}, frame interface{}) {\n self.Object.Call(\"loadTexture\", key, frame)\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpGetCompressedTextureSubImage, 10, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(bufSize), uintptr(pixels), 0, 0)\n}", "func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpTexSubImage3D, 11, uintptr(target), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(xtype), uintptr(pixels), 0)\n}", "func (self *TileSprite) LoadTexture2O(key interface{}, frame interface{}, stopAnimation bool) {\n self.Object.Call(\"loadTexture\", key, frame, stopAnimation)\n}", "func (tex Texture) Sub(ctx gl.Context, lvl int, width int, height int, data []byte) {\n\tctx.TexSubImage2D(gl.TEXTURE_2D, lvl, 0, 0, width, height, gl.RGBA, gl.UNSIGNED_BYTE, data)\n\tif lvl > 0 {\n\t\tctx.GenerateMipmap(gl.TEXTURE_2D)\n\t}\n}", "func TextureBufferRange(texture uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tsyscall.Syscall6(gpTextureBufferRange, 5, uintptr(texture), uintptr(internalformat), uintptr(buffer), uintptr(offset), uintptr(size), 0)\n}", "func BindImageTextures(first uint32, count int32, textures *uint32) {\n C.glowBindImageTextures(gpBindImageTextures, (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(textures)))\n}", "func loadTextures() {\n\tfor i := 0; i < 7; i++ {\n\n\t\ttextures[i], _, _ = ebutil.NewImageFromFile(\"assets/image/\"+colors[i]+\".png\", eb.FilterDefault)\n\t}\n\ttextures[7], _, _ = ebutil.NewImageFromFile(\"assets/image/tetris_backgraund.png\", eb.FilterDefault)\n}", "func InvalidateTexImage(texture uint32, level int32) {\n C.glowInvalidateTexImage(gpInvalidateTexImage, (C.GLuint)(texture), (C.GLint)(level))\n}", "func TextureFromJSObject(p *js.Object) *Texture {\n\treturn &Texture{p: p}\n}", "func TextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall9(gpTextureSubImage1D, 7, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(width), uintptr(format), uintptr(xtype), uintptr(pixels), 0, 0)\n}", "func CompressedTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexSubImage3D(gpCompressedTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func TexImage3D(target uint32, level int32, internalformat int32, width int32, height int32, depth int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexImage3D(gpTexImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func PrioritizeTextures(n int32, textures *uint32, priorities *float32) {\n C.glowPrioritizeTextures(gpPrioritizeTextures, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures)), (*C.GLfloat)(unsafe.Pointer(priorities)))\n}", "func TextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall9(gpTextureSubImage2D, 9, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(width), uintptr(height), uintptr(format), uintptr(xtype), uintptr(pixels))\n}", "func BindTextures(first uint32, count int32, textures *uint32) {\n C.glowBindTextures(gpBindTextures, (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(textures)))\n}", "func (self *GameObjectCreator) Tilemap4O(key string, tileWidth int, tileHeight int, width int) {\n self.Object.Call(\"tilemap\", key, tileWidth, tileHeight, width)\n}", "func TextureBufferRange(texture uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tC.glowTextureBufferRange(gpTextureBufferRange, (C.GLuint)(texture), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func TextureBufferRange(texture uint32, internalformat uint32, buffer uint32, offset int, size int) {\n\tC.glowTextureBufferRange(gpTextureBufferRange, (C.GLuint)(texture), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage2D(gpCompressedTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage2D(gpCompressedTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func (self *TileSprite) OnTextureUpdateI(args ...interface{}) {\n self.Object.Call(\"onTextureUpdate\", args)\n}", "func (md MetalDrawable) Texture() mtl.Texture {\n\treturn mtl.NewTexture(C.MetalDrawable_Texture(md.metalDrawable))\n}", "func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowGetTexImage(gpGetTexImage, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func NewTexture(scene *Scene, element *Element) *Texture {\n\tt := &Texture{\n\t\tObject: *NewObject(scene, element),\n\t}\n\treturn t\n}", "func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTextureSubImage2D, 9, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(width), uintptr(height), uintptr(format), uintptr(imageSize), uintptr(data))\n}", "func TexImage3D(target uint32, level int32, internalformat int32, width int32, height int32, depth int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpTexImage3D, 10, uintptr(target), uintptr(level), uintptr(internalformat), uintptr(width), uintptr(height), uintptr(depth), uintptr(border), uintptr(format), uintptr(xtype), uintptr(pixels), 0, 0)\n}", "func InvalidateTexSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32) {\n C.glowInvalidateTexSubImage(gpInvalidateTexSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth))\n}", "func TexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexSubImage2D(gpTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func AreTexturesResident(n int32, textures *uint32, residences *bool) bool {\n ret := C.glowAreTexturesResident(gpAreTexturesResident, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures)), (*C.GLboolean)(unsafe.Pointer(residences)))\n return ret == TRUE\n}", "func TextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage2D(gpTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage2D(gpTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func CompressedTexImage2D(target uint32, level int32, internalformat uint32, width int32, height int32, border int32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexImage2D(gpCompressedTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func TexImage3D(target uint32, level int32, internalformat int32, width int32, height int32, depth int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexImage3D(gpTexImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexImage3D(target uint32, level int32, internalformat int32, width int32, height int32, depth int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexImage3D(gpTexImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (t *Texture2D) Generate(width, height int32, data []byte) {\n\tt.width = width\n\tt.height = height\n\t// Create Texture\n\tgl.BindTexture(gl.TEXTURE_2D, t.ID)\n\tif data != nil {\n\t\tgl.TexImage2D(gl.TEXTURE_2D, 0, t.internalFormat, width, height, 0, t.imageFormat, gl.UNSIGNED_BYTE, gl.Ptr(&data[0]))\n\t} else {\n\t\tgl.TexImage2D(gl.TEXTURE_2D, 0, t.internalFormat, width, height, 0, t.imageFormat, gl.UNSIGNED_BYTE, nil)\n\t}\n\t// Set Texture wrap and filter modes\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, t.wrapS)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, t.wrapT)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, t.filterMin)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, t.filterMax)\n\t// Unbind texture\n\tgl.BindTexture(gl.TEXTURE_2D, 0)\n}", "func TextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage1D(gpTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage1D(gpTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}" ]
[ "0.71878934", "0.6282555", "0.62216306", "0.6164439", "0.61298746", "0.6108608", "0.6075409", "0.6063641", "0.60054624", "0.5990034", "0.5912601", "0.57864517", "0.5762114", "0.5757929", "0.5735087", "0.5733063", "0.5707832", "0.5673134", "0.5673134", "0.5633322", "0.56233394", "0.54824615", "0.5453014", "0.54391354", "0.54391354", "0.5411153", "0.54100704", "0.53923285", "0.5370627", "0.5324331", "0.53237474", "0.53015965", "0.5292083", "0.5254515", "0.52520657", "0.52520657", "0.52396184", "0.5198683", "0.51897293", "0.5188547", "0.5187441", "0.5185404", "0.5185404", "0.5180223", "0.5177883", "0.5145803", "0.5140881", "0.5140881", "0.51199985", "0.51199985", "0.5119105", "0.5119105", "0.5118548", "0.51056874", "0.50873864", "0.5046707", "0.5046707", "0.5013456", "0.50020486", "0.49938717", "0.49924892", "0.49812382", "0.497735", "0.49729377", "0.49585193", "0.49577588", "0.49574807", "0.49410877", "0.49369052", "0.4936253", "0.49360296", "0.49317843", "0.49304253", "0.49271125", "0.49174905", "0.49131948", "0.49058744", "0.48956716", "0.48863676", "0.48863676", "0.4883056", "0.4883056", "0.4863234", "0.4859217", "0.48515216", "0.48476303", "0.4832264", "0.48277414", "0.48197153", "0.4819439", "0.48177925", "0.4814404", "0.4814404", "0.48066732", "0.47895253", "0.47895253", "0.47889596", "0.4777327", "0.4777327" ]
0.67033905
2
retrieve information about the set of active atomic counter buffers for a program
func GetActiveAtomicCounterBufferiv(program uint32, bufferIndex uint32, pname uint32, params *int32) { C.glowGetActiveAtomicCounterBufferiv(gpGetActiveAtomicCounterBufferiv, (C.GLuint)(program), (C.GLuint)(bufferIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetActiveAtomicCounterBufferiv(program uint32, bufferIndex uint32, pname uint32, params *int32) {\n C.glowGetActiveAtomicCounterBufferiv(gpGetActiveAtomicCounterBufferiv, (C.GLuint)(program), (C.GLuint)(bufferIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveAtomicCounterBufferiv(program uint32, bufferIndex uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveAtomicCounterBufferiv, 4, uintptr(program), uintptr(bufferIndex), uintptr(pname), uintptr(unsafe.Pointer(params)), 0, 0)\n}", "func listSystemCountersRequest(c *xgb.Conn) []byte {\n\tsize := 4\n\tb := 0\n\tbuf := make([]byte, size)\n\n\tbuf[b] = c.Extensions[\"SYNC\"]\n\tb += 1\n\n\tbuf[b] = 1 // request opcode\n\tb += 1\n\n\txgb.Put16(buf[b:], uint16(size/4)) // write request size in 4-byte units\n\tb += 2\n\n\treturn buf\n}", "func SystemcounterReadList(buf []byte, dest []Systemcounter) int {\n\tb := 0\n\tfor i := 0; i < len(dest); i++ {\n\t\tdest[i] = Systemcounter{}\n\t\tb += SystemcounterRead(buf[b:], &dest[i])\n\t}\n\treturn xgb.Pad(b)\n}", "func main() {\n\tvar counter int32\n\tvar wg sync.WaitGroup\n\n\tconst routines = 100\n\twg.Add(routines)\n\n\tfor i := 0; i < routines; i++ {\n\t\tgo func() {\n\t\t\tatomic.AddInt32(&counter, 1)\n\t\t\tloaded := atomic.LoadInt32(&counter)\n\t\t\tfmt.Println(loaded)\n\t\t\twg.Done()\n\t\t}()\n\t}\n\n\twg.Wait()\n\n\tfmt.Println(\"End counter\", counter)\n}", "func ListSystemCounters(c *xgb.Conn) ListSystemCountersCookie {\n\tif _, ok := c.Extensions[\"SYNC\"]; !ok {\n\t\tpanic(\"Cannot issue request 'ListSystemCounters' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.\")\n\t}\n\tcookie := c.NewCookie(true, true)\n\tc.NewRequest(listSystemCountersRequest(c), cookie)\n\treturn ListSystemCountersCookie{cookie}\n}", "func (h *TelemetryHandler) GetBuffersInfo(ctx context.Context) (*vppcalls.BuffersInfo, error) {\n\tdata, err := h.vpe.RunCli(context.TODO(), \"show buffers\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar items []vppcalls.BuffersItem\n\n\tfor i, line := range strings.Split(string(data), \"\\n\") {\n\t\t// Skip empty lines\n\t\tif strings.TrimSpace(line) == \"\" {\n\t\t\tcontinue\n\t\t}\n\t\t// Check first line\n\t\tif i == 0 {\n\t\t\tfields := strings.Fields(line)\n\t\t\t// Verify header\n\t\t\tif len(fields) != 11 || fields[0] != \"Pool\" {\n\t\t\t\treturn nil, fmt.Errorf(\"invalid header for `show buffers` received: %q\", line)\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\n\t\t// Parse lines using regexp\n\t\tmatches := buffersRe.FindStringSubmatch(line)\n\t\tif len(matches)-1 != 9 {\n\t\t\treturn nil, fmt.Errorf(\"parsing failed (%d matches) for `show buffers` line: %q\", len(matches), line)\n\t\t}\n\t\tfields := matches[1:]\n\n\t\titems = append(items, vppcalls.BuffersItem{\n\t\t\t// ThreadID: uint(strToUint64(fields[0])),\n\t\t\tName: fields[0],\n\t\t\tIndex: uint(strToUint64(fields[1])),\n\t\t\tSize: strToUint64(fields[3]),\n\t\t\tAlloc: strToUint64(fields[7]),\n\t\t\tFree: strToUint64(fields[5]),\n\t\t\t// NumAlloc: strToUint64(fields[6]),\n\t\t\t// NumFree: strToUint64(fields[7]),\n\t\t})\n\t}\n\n\tinfo := &vppcalls.BuffersInfo{\n\t\tItems: items,\n\t}\n\n\treturn info, nil\n}", "func getAtomicCounter() string {\n\tatomic.AddInt32(&counter, 1)\n\tif counter > 58*58*58*58-1 {\n\t\t// Reset the counter if we're beyond what we\n\t\t// can represent with 4 base58 characters\n\t\tatomic.StoreInt32(&counter, 0)\n\t}\n\tcounterBytes := base58.EncodeBig(nil, big.NewInt(int64(counter)))\n\tcounterStr := string(counterBytes)\n\tswitch len(counterStr) {\n\tcase 0:\n\t\treturn \"0000\"\n\tcase 1:\n\t\treturn \"000\" + counterStr\n\tcase 2:\n\t\treturn \"00\" + counterStr\n\tcase 3:\n\t\treturn \"0\" + counterStr\n\tdefault:\n\t\treturn counterStr[0:4]\n\t}\n}", "func QueryCounter(id uint32, target uint32) {\n\tsyscall.Syscall(gpQueryCounter, 2, uintptr(id), uintptr(target), 0)\n}", "func SystemcounterRead(buf []byte, v *Systemcounter) int {\n\tb := 0\n\n\tv.Counter = Counter(xgb.Get32(buf[b:]))\n\tb += 4\n\n\tv.Resolution = Int64{}\n\tb += Int64Read(buf[b:], &v.Resolution)\n\n\tv.NameLen = xgb.Get16(buf[b:])\n\tb += 2\n\n\t{\n\t\tbyteString := make([]byte, v.NameLen)\n\t\tcopy(byteString[:v.NameLen], buf[b:])\n\t\tv.Name = string(byteString)\n\t\tb += xgb.Pad(int(v.NameLen))\n\t}\n\n\treturn b\n}", "func (*Counts) Descriptor() ([]byte, []int) {\n\treturn file_go_chromium_org_luci_analysis_internal_changepoints_proto_output_buffer_proto_rawDescGZIP(), []int{2}\n}", "func IOCounters(bool) ([]net.IOCountersStat, error) { return getifaddrs() }", "func queryCounterRequest(c *xgb.Conn, Counter Counter) []byte {\n\tsize := 8\n\tb := 0\n\tbuf := make([]byte, size)\n\n\tbuf[b] = c.Extensions[\"SYNC\"]\n\tb += 1\n\n\tbuf[b] = 5 // request opcode\n\tb += 1\n\n\txgb.Put16(buf[b:], uint16(size/4)) // write request size in 4-byte units\n\tb += 2\n\n\txgb.Put32(buf[b:], uint32(Counter))\n\tb += 4\n\n\treturn buf\n}", "func _getCounter() uint64 {\n\treturn state.ReadUint64(COUNTER_KEY)\n}", "func (a *ActivityMonitor) NumActiveRequests() uint32 {\n\treturn atomic.LoadUint32(&a.reqCount)\n}", "func (m *Mode) NBuffers() uint64 {\n\treturn m.buffers\n}", "func (*GetTaskCountRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{158}\n}", "func GetProtoCountersStat(rw http.ResponseWriter) error {\n\tprotocols := []string{\"ip\", \"icmp\", \"icmpmsg\", \"tcp\", \"udp\", \"udplite\"}\n\n\tproto, err := net.ProtoCounters(protocols)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn share.JSONResponse(proto, rw)\n}", "func stats() {\n\tfor {\n\t\tcnt := atomic.LoadInt32(&counter)\n\t\tif cnt < 1000000 {\n\t\t\tfmt.Printf(\"#\\n# Elapsed: %s - Counter: %d\\n#\\n\", time.Now().Sub(startTime).String(), cnt)\n\t\t} else {\n\t\t\tfmt.Printf(\"#\\n# Elapsed: %s - Counter: %d\\n# Hit Ctrl-C to terminate the program\\n#\\n\", time.Now().Sub(startTime).String(), cnt)\n\t\t}\n\t\ttime.Sleep(time.Second)\n\t}\n}", "func stats() {\n\tfor {\n\t\tcnt := atomic.LoadInt32(&counter)\n\t\tif cnt < 1000000 {\n\t\t\tfmt.Printf(\"#\\n# Elapsed: %s - Counter: %d\\n#\\n\", time.Now().Sub(startTime).String(), cnt)\n\t\t} else {\n\t\t\tfmt.Printf(\"#\\n# Elapsed: %s - Counter: %d\\n# Hit Ctrl-C to terminate the program\\n#\\n\", time.Now().Sub(startTime).String(), cnt)\n\t\t}\n\t\ttime.Sleep(time.Second)\n\t}\n}", "func (t *SimpleChaincode) getNumberOfLocs (stub *shim.ChaincodeStub, args []string) ([]byte, error){\n \tvalAsbytes, err := stub.GetState(\"counter\");\n \t\n \tif err != nil {\n\t\treturn nil, err\n\t}\n \t\n //s := strconv.Itoa(counter) ;\n //ret_s := []byte(s);\n return valAsbytes, nil;\n }", "func getTokenCounter(token *yubikey.Token) uint32 {\n\tvar counter uint32\n\tcounter = uint32(token.Use << 16)\n\tcounter += uint32(token.Counter())\n\n\treturn counter\n}", "func TestPropBufCnt(t *testing.T) {\n\tdefer leaktest.AfterTest(t)()\n\tdefer log.Scope(t).Close(t)\n\n\tvar count propBufCnt\n\tconst numReqs = 10\n\n\treqLeaseInc := makePropBufCntReq(true)\n\treqLeaseNoInc := makePropBufCntReq(false)\n\n\tfor i := 0; i < numReqs; i++ {\n\t\tcount.update(reqLeaseInc)\n\t}\n\n\tres := count.read()\n\tassert.Equal(t, numReqs, res.arrayLen())\n\tassert.Equal(t, numReqs-1, res.arrayIndex())\n\tassert.Equal(t, uint64(numReqs), res.leaseIndexOffset())\n\n\tfor i := 0; i < numReqs; i++ {\n\t\tcount.update(reqLeaseNoInc)\n\t}\n\n\tres = count.read()\n\tassert.Equal(t, 2*numReqs, res.arrayLen())\n\tassert.Equal(t, (2*numReqs)-1, res.arrayIndex())\n\tassert.Equal(t, uint64(numReqs), res.leaseIndexOffset())\n\n\tcount.clear()\n\tres = count.read()\n\tassert.Equal(t, 0, res.arrayLen())\n\tassert.Equal(t, -1, res.arrayIndex())\n\tassert.Equal(t, uint64(0), res.leaseIndexOffset())\n}", "func (*GetServicesUsageCountRequest) Descriptor() ([]byte, []int) {\n\treturn file_external_applications_applications_proto_rawDescGZIP(), []int{31}\n}", "func (ctr *Ctr) Num() int { return int(atomic.LoadUint32((*uint32)(unsafe.Pointer(ctr)))) }", "func (s *TXPoolServer) getTxCount() []uint32 {\n\tret := make([]uint32, 0)\n\tret = append(ret, uint32(s.txPool.GetTransactionCount()))\n\tret = append(ret, uint32(s.getPendingListSize()))\n\treturn ret\n}", "func SystemcounterListBytes(buf []byte, list []Systemcounter) int {\n\tb := 0\n\tvar structBytes []byte\n\tfor _, item := range list {\n\t\tstructBytes = item.Bytes()\n\t\tcopy(buf[b:], structBytes)\n\t\tb += len(structBytes)\n\t}\n\treturn xgb.Pad(b)\n}", "func readgstatus(gp *g) uint32 {\n\treturn atomic.Load(&gp.atomicstatus)\n}", "func appNumAllocatorGC(ctx *zedrouterContext) {\n\n\tpubUuidToNum := ctx.pubUuidToNum\n\n\tlog.Infof(\"appNumAllocatorGC\")\n\tfreedCount := 0\n\titems := pubUuidToNum.GetAll()\n\tfor _, st := range items {\n\t\tstatus := cast.CastUuidToNum(st)\n\t\tif status.NumType != \"appNum\" {\n\t\t\tcontinue\n\t\t}\n\t\tif status.InUse {\n\t\t\tcontinue\n\t\t}\n\t\tif status.CreateTime.After(ctx.agentStartTime) {\n\t\t\tcontinue\n\t\t}\n\t\tlog.Infof(\"appNumAllocatorGC: freeing %+v\", status)\n\t\tappNumFree(ctx, status.UUID)\n\t\tfreedCount++\n\t}\n\tlog.Infof(\"appNumAllocatorGC freed %d\", freedCount)\n}", "func (p *Process) IOCounters() (*IOCountersStat, error) {\n\treturn p.IOCountersWithContext(context.Background())\n}", "func (cpu *Mos6502) GetProgramCounter() uint16 {\n\treturn uint16(cpu.pc)\n}", "func (l licenseApplication) counter(applications map[string][]*models.UserApplication) (sum chan int) {\n\tsum = make(chan int)\n\tgo func(responseChn chan int) {\n\t\tfor _, appItems := range applications {\n\n\t\t\tdesktopMap := make(map[string]bool)\n\t\t\tlaptopMap := make(map[string]bool)\n\n\t\t\tfor _, item := range appItems {\n\t\t\t\tmachineType := strings.ToUpper(item.ComputerType)\n\t\t\t\tkey := fmt.Sprintf(\"%s-%s\", item.UserID, item.ComputerID)\n\t\t\t\tswitch machineType {\n\t\t\t\tcase Desktop:\n\t\t\t\t\tdesktopMap[key] = true\n\t\t\t\tdefault:\n\t\t\t\t\tlaptopMap[key] = true\n\t\t\t\t}\n\t\t\t}\n\t\t\tif len(desktopMap) > len(laptopMap) {\n\t\t\t\tresponseChn <- len(desktopMap)\n\t\t\t}\n\t\t\tresponseChn <- len(laptopMap)\n\t\t}\n\t\tdefer close(responseChn)\n\t}(sum)\n\treturn sum\n}", "func GetIOCounters(rw http.ResponseWriter) error {\n\ti, r := disk.IOCounters()\n\tif r != nil {\n\t\treturn r\n\t}\n\n\treturn share.JSONResponse(i, rw)\n}", "func getScreenResourcesCurrentRequest(c *xgb.Conn, Window xproto.Window) []byte {\n\tsize := 8\n\tb := 0\n\tbuf := make([]byte, size)\n\n\tc.ExtLock.RLock()\n\tbuf[b] = c.Extensions[\"RANDR\"]\n\tc.ExtLock.RUnlock()\n\tb += 1\n\n\tbuf[b] = 25 // request opcode\n\tb += 1\n\n\txgb.Put16(buf[b:], uint16(size/4)) // write request size in 4-byte units\n\tb += 2\n\n\txgb.Put32(buf[b:], uint32(Window))\n\tb += 4\n\n\treturn buf\n}", "func findChronosProcesses() ([]int32, error) {\n\tall, err := process.Pids()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar pids []int32\n\tfor _, pid := range all {\n\t\tif isActiveChronosProcess(pid) {\n\t\t\tpids = append(pids, pid)\n\t\t}\n\t}\n\treturn pids, nil\n}", "func QueryCounter(id uint32, target uint32) {\n C.glowQueryCounter(gpQueryCounter, (C.GLuint)(id), (C.GLenum)(target))\n}", "func getCPUCharacteristicsFlags(val int) (flags []string) {\n\tfor key := range pcIntList {\n\t\tif (byte(val) & byte(pcIntList[key])) != 0 {\n\t\t\tflags = append(flags, pcDescList[key])\n\t\t}\n\t}\n\treturn flags\n}", "func GetAll() map[string]map[string]string {\n\tm := make(map[string]map[string]string)\n\tcomponents.Lock()\n\tdefer components.Unlock()\n\tfor component := range components.m {\n\t\tm[component] = getCounters(component)\n\t}\n\treturn m\n}", "func appNumOnUNetRefCount(ctx *zedrouterContext, networkID uuid.UUID) int {\n\tappNumMap := appNumOnUNetBaseGet(networkID)\n\tif appNumMap == nil {\n\t\tlog.Fatalf(\"appNumOnUNetRefCount: non map\")\n\t}\n\tpub := ctx.pubUUIDPairAndIfIdxToNum\n\tnumType := appNumOnUNetType\n\titems := pub.GetAll()\n\tcount := 0\n\tfor _, item := range items {\n\t\tappNumMap := item.(types.UUIDPairAndIfIdxToNum)\n\t\tif appNumMap.NumType != numType {\n\t\t\tcontinue\n\t\t}\n\t\tif appNumMap.BaseID == networkID {\n\t\t\tlog.Functionf(\"appNumOnUNetRefCount(%s): found: %v\",\n\t\t\t\tnetworkID, appNumMap)\n\t\t\tcount++\n\t\t}\n\t}\n\tlog.Functionf(\"appNumOnUNetRefCount(%s) found %d\", networkID, count)\n\treturn count\n}", "func perfInfo() ([]win32_SystemProcessorPerformanceInformation, error) {\n\t// Make maxResults large for safety.\n\t// We can't invoke the api call with a results array that's too small.\n\t// If we have more than 2056 cores on a single host, then it's probably the future.\n\tmaxBuffer := 2056\n\t// buffer for results from the windows proc\n\tresultBuffer := make([]win32_SystemProcessorPerformanceInformation, maxBuffer)\n\t// size of the buffer in memory\n\tbufferSize := uintptr(win32_SystemProcessorPerformanceInfoSize) * uintptr(maxBuffer)\n\t// size of the returned response\n\tvar retSize uint32\n\n\t// Invoke windows api proc.\n\t// The returned err from the windows dll proc will always be non-nil even when successful.\n\t// See https://godoc.org/golang.org/x/sys/windows#LazyProc.Call for more information\n\tretCode, _, err := common.ProcNtQuerySystemInformation.Call(\n\t\twin32_SystemProcessorPerformanceInformationClass, // System Information Class -> SystemProcessorPerformanceInformation\n\t\tuintptr(unsafe.Pointer(&resultBuffer[0])), // pointer to first element in result buffer\n\t\tbufferSize, // size of the buffer in memory\n\t\tuintptr(unsafe.Pointer(&retSize)), // pointer to the size of the returned results the windows proc will set this\n\t)\n\n\t// check return code for errors\n\tif retCode != 0 {\n\t\treturn nil, fmt.Errorf(\"call to NtQuerySystemInformation returned %d. err: %s\", retCode, err.Error())\n\t}\n\n\t// calculate the number of returned elements based on the returned size\n\tnumReturnedElements := retSize / win32_SystemProcessorPerformanceInfoSize\n\n\t// trim results to the number of returned elements\n\tresultBuffer = resultBuffer[:numReturnedElements]\n\n\treturn resultBuffer, nil\n}", "func (oo *OmciCC) GetOmciCounters() *extension.SingleGetValueResponse {\n\too.mutexCounters.RLock()\n\tdefer oo.mutexCounters.RUnlock()\n\tresp := extension.SingleGetValueResponse{\n\t\tResponse: &extension.GetValueResponse{\n\t\t\tStatus: extension.GetValueResponse_OK,\n\t\t\tResponse: &extension.GetValueResponse_OnuOmciStats{\n\t\t\t\tOnuOmciStats: &extension.GetOnuOmciTxRxStatsResponse{},\n\t\t\t},\n\t\t},\n\t}\n\tresp.Response.GetOnuOmciStats().BaseTxArFrames = oo.countersBase.txArFrames\n\tresp.Response.GetOnuOmciStats().BaseTxNoArFrames = oo.countersBase.txNoArFrames\n\tresp.Response.GetOnuOmciStats().BaseRxAkFrames = oo.countersBase.rxAkFrames\n\tresp.Response.GetOnuOmciStats().BaseRxNoAkFrames = oo.countersBase.rxNoAkFrames\n\tresp.Response.GetOnuOmciStats().ExtTxArFrames = oo.countersExt.txArFrames\n\tresp.Response.GetOnuOmciStats().ExtTxNoArFrames = oo.countersExt.txNoArFrames\n\tresp.Response.GetOnuOmciStats().ExtRxAkFrames = oo.countersExt.rxAkFrames\n\tresp.Response.GetOnuOmciStats().ExtRxNoAkFrames = oo.countersExt.rxNoAkFrames\n\tresp.Response.GetOnuOmciStats().TxOmciCounterRetries = oo.txRetries\n\tresp.Response.GetOnuOmciStats().TxOmciCounterTimeouts = oo.txTimeouts\n\treturn &resp\n}", "func listSystemCountersReply(buf []byte) *ListSystemCountersReply {\n\tv := new(ListSystemCountersReply)\n\tb := 1 // skip reply determinant\n\n\tb += 1 // padding\n\n\tv.Sequence = xgb.Get16(buf[b:])\n\tb += 2\n\n\tv.Length = xgb.Get32(buf[b:]) // 4-byte units\n\tb += 4\n\n\tv.CountersLen = xgb.Get32(buf[b:])\n\tb += 4\n\n\tb += 20 // padding\n\n\tv.Counters = make([]Systemcounter, v.CountersLen)\n\tb += SystemcounterReadList(buf[b:], v.Counters)\n\n\treturn v\n}", "func (pool *TxPool) stats() (int, int) {\n\tpending := 0\n\tfor _, list := range pool.pending {\n\t\tpending += list.Len()\n\t}\n\tqueued := 0\n\tfor _, list := range pool.queue {\n\t\tqueued += list.Len()\n\t}\n\treturn pending, queued\n}", "func (*CMsgClientToGCCavernCrawlGetClaimedRoomCount) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{299}\n}", "func main() {\n\n\tvar counter int64 = 0\n\n\tvar wg sync.WaitGroup\n\n\tfor i := 0; i < 100; i++ {\n\t\twg.Add(1)\n\t\tgo func() {\n\n\t\t\t//this will make and atomic operation over the given memory space\n\t\t\tatomic.AddInt64(&counter, 1)\n\n\t\t\twg.Done()\n\t\t}()\n\t}\n\twg.Wait()\n\n\tfmt.Println(counter)\n}", "func StatusWorkInReqCount() int { return statusWorkInReqCount }", "func (e *Executor) Info() map[string]uint {\n\te.Lock()\n\tdefer e.Unlock()\n\tinfo := map[string]uint{}\n\tfor id, w := range e.workers {\n\t\tinfo[id] = w.njob\n\t}\n\treturn info\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tsyscall.Syscall9(gpGetActiveUniform, 7, uintptr(program), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(xtype)), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func (tr *TransactionRepository) Statuses() map[int]string {\n\trArray := tr.retrieveTransactionResults()\n\trMap := make(map[int]string)\n\tfor _, s := range rArray {\n\t\trMap[s.ProtoID] = s.Result\n\t}\n\treturn rMap\n}", "func (*Counts) Descriptor() ([]byte, []int) {\n\treturn file_services_core_protobuf_servers_proto_rawDescGZIP(), []int{16}\n}", "func processCombinedCounters(counters *interfaces.VnetInterfaceCombinedCounters) {\n\tfmt.Printf(\"%+v\\n\", counters)\n\n\tcounterNames := []string{\"Rx\", \"Tx\"}\n\n\tfor i := uint32(0); i < counters.Count; i++ {\n\t\tfmt.Printf(\"Interface '%d': %s packets = %d, %s bytes = %d\\n\",\n\t\t\tcounters.FirstSwIfIndex+i, counterNames[counters.VnetCounterType], counters.Data[i].Packets,\n\t\t\tcounterNames[counters.VnetCounterType], counters.Data[i].Bytes)\n\t}\n}", "func appNumAllocatorInit(ctx *zedrouterContext) {\n\n\tpubAppNetworkStatus := ctx.pubAppNetworkStatus\n\tpubUuidToNum := ctx.pubUuidToNum\n\n\titems := pubUuidToNum.GetAll()\n\tfor key, st := range items {\n\t\tstatus := cast.CastUuidToNum(st)\n\t\tif status.Key() != key {\n\t\t\tlog.Errorf(\"appNumAllocatorInit key/UUID mismatch %s vs %s; ignored %+v\\n\",\n\t\t\t\tkey, status.Key(), status)\n\t\t\tcontinue\n\t\t}\n\t\tif status.NumType != \"appNum\" {\n\t\t\tcontinue\n\t\t}\n\t\tlog.Infof(\"appNumAllocatorInit found %v\\n\", status)\n\t\tappNum := status.Number\n\t\tuuid := status.UUID\n\n\t\t// If we have a config for the UUID we should mark it as\n\t\t// allocated; otherwise mark it as reserved.\n\t\t// XXX however, on startup we are not likely to have any\n\t\t// config yet.\n\t\tif AllocReservedAppNumBits.IsSet(appNum) {\n\t\t\tlog.Errorf(\"AllocReservedAppNumBits already set for %s num %d\\n\",\n\t\t\t\tuuid.String(), appNum)\n\t\t\tcontinue\n\t\t}\n\t\tlog.Infof(\"Reserving appNum %d for %s\\n\", appNum, uuid)\n\t\tAllocReservedAppNumBits.Set(appNum)\n\t\t// Clear InUse\n\t\tuuidtonum.UuidToNumFree(ctx.pubUuidToNum, uuid)\n\t}\n\t// In case zedrouter process restarted we fill in InUse from\n\t// AppNetworkStatus\n\titems = pubAppNetworkStatus.GetAll()\n\tfor key, st := range items {\n\t\tstatus := cast.CastAppNetworkStatus(st)\n\t\tif status.Key() != key {\n\t\t\tlog.Errorf(\"appNumAllocatorInit key/UUID mismatch %s vs %s; ignored %+v\\n\",\n\t\t\t\tkey, status.Key(), status)\n\t\t\tcontinue\n\t\t}\n\t\tappNum := status.AppNum\n\t\tuuid := status.UUIDandVersion.UUID\n\n\t\t// If we have a config for the UUID we should mark it as\n\t\t// allocated; otherwise mark it as reserved.\n\t\t// XXX however, on startup we are not likely to have any\n\t\t// config yet.\n\t\tif !AllocReservedAppNumBits.IsSet(appNum) {\n\t\t\tlog.Fatalf(\"AllocReservedAppNumBits not set for %s num %d\\n\",\n\t\t\t\tuuid.String(), appNum)\n\t\t\tcontinue\n\t\t}\n\t\tlog.Infof(\"Marking InUse appNum %d for %s\\n\", appNum, uuid)\n\t\t// Set InUse\n\t\tuuidtonum.UuidToNumAllocate(ctx.pubUuidToNum, uuid, appNum,\n\t\t\tfalse, \"appNum\")\n\t}\n}", "func getCtx(num int) (*Context, error) {\n\n\ttrace := tracer.NewTraceEvent(T_GET_CONTEXT, schedulerTraceList)\n\ttrace.Start()\n\tdefer trace.Stop()\n\n\t// TODO: Order the list by remaining references\n\tfor _, context := range aio_contexts {\n\t\tif new_references := context.references + num; new_references <= context.maxsize {\n\t\t\t//log.Printf(\"GetCtx, have %d references so far\\n\", context.references)\n\t\t\tcontext.references = new_references\n\t\t\treturn context, nil\n\t\t}\n\n\t}\n\n\t// Unable to find a context with remaining space, let's create a new\n\t// one.\n\tvar num_context_request int\n\n\tswitch {\n\tcase num < aio_context_min:\n\t\tnum_context_request = aio_context_min\n\tcase (num > aio_context_min) && (num < aio_context_max):\n\t\tnum_context_request = (CONTEXT_REQUEST_MULTIPLIER * num)\n\t\tif num_context_request > aio_context_max {\n\t\t\tnum_context_request = aio_context_max\n\t\t}\n\tdefault:\n\t\t//log.Printf(\"Bad number of contexts requested %d.\\n\", num)\n\t\treturn nil, BAD_CONTEXT_REQUEST\n\t}\n\n\tvar ctx syscall.AioContext_t\n\t//err := syscall.IoSetup(uint(num_context_request), &ctx)\n\terr := ioSetupWrapper(uint(num_context_request), &ctx)\n\n\tvar new_context *Context = new(Context)\n\n\t// Init the event list with capability for saving num_context_request\n\t// events.\n\tnew_context.event_list = make([]syscall.IoEvent, num_context_request, num_context_request)\n\n\tif err == nil {\n\t\tnew_context.ctx = ctx\n\t\tnew_context.references = num\n\t\tnew_context.maxsize = num_context_request\n\t\taio_contexts = append(aio_contexts, new_context)\n\t} else {\n\t\t// Assume the request failed due to not enough resources\n\t\t// TODO: should check the error condition...\n\t\t// Due to there not being enough resources for a request of\n\t\t// this size, assume the Max(cur_max, (num requested - 1)) is\n\t\t// actual Max.\n\t\t//log.Printf(\"Failed to request %d from IoSetup\\n\", num_context_request)\n\n\t\tif aio_context_max < num_context_request {\n\t\t\taio_context_max = num_context_request\n\t\t}\n\n\t\t// If the request couldn't complete and we're requesting the\n\t\t// bare minimun, move our min lower (limited to MIN_LOWER_LIMIT)\n\t\tif aio_context_min == num_context_request {\n\t\t\taio_context_min -= (aio_context_min / MIN_LOWER_RATE)\n\t\t\tif aio_context_min <= (MIN_LOWER_LIMIT - 1) {\n\t\t\t\taio_context_min = MIN_LOWER_LIMIT\n\t\t\t}\n\t\t}\n\n\t\tnew_context = nil\n\t}\n\n\t//TODO: Need to add cleanup.\n\n\treturn new_context, err\n}", "func (*GetCardByCountReq) Descriptor() ([]byte, []int) {\n\treturn file_homecard_proto_rawDescGZIP(), []int{4}\n}", "func (*GetConceptCountsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{35}\n}", "func (*GetServicesUsageCountResponse) Descriptor() ([]byte, []int) {\n\treturn file_external_applications_applications_proto_rawDescGZIP(), []int{32}\n}", "func calculateBuffers(blocks uint64) (buffers uint64) {\n\tbuffers = blocks / NBufferBlocks\n\tif blocks%NBufferBlocks != 0 {\n\t\tbuffers++\n\t}\n\treturn\n}", "func (m *UnsyncListMock) GetActiveNodesMinimockCounter() uint64 {\n\treturn atomic.LoadUint64(&m.GetActiveNodesCounter)\n}", "func (*CountBundlesRequest) Descriptor() ([]byte, []int) {\n\treturn file_spire_server_datastore_datastore_proto_rawDescGZIP(), []int{4}\n}", "func requestStatistics(ch *api.Channel) {\n\tch.SendRequest(&stats.WantStats{\n\t\tPid: uint32(os.Getpid()),\n\t\tEnableDisable: 1,\n\t}).ReceiveReply(&stats.WantStatsReply{})\n}", "func setCounterRequest(c *xgb.Conn, Counter Counter, Value Int64) []byte {\n\tsize := 16\n\tb := 0\n\tbuf := make([]byte, size)\n\n\tbuf[b] = c.Extensions[\"SYNC\"]\n\tb += 1\n\n\tbuf[b] = 3 // request opcode\n\tb += 1\n\n\txgb.Put16(buf[b:], uint16(size/4)) // write request size in 4-byte units\n\tb += 2\n\n\txgb.Put32(buf[b:], uint32(Counter))\n\tb += 4\n\n\t{\n\t\tstructBytes := Value.Bytes()\n\t\tcopy(buf[b:], structBytes)\n\t\tb += xgb.Pad(len(structBytes))\n\t}\n\n\treturn buf\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveUniformsiv, 5, uintptr(program), uintptr(uniformCount), uintptr(unsafe.Pointer(uniformIndices)), uintptr(pname), uintptr(unsafe.Pointer(params)), 0)\n}", "func createCounterRequest(c *xgb.Conn, Id Counter, InitialValue Int64) []byte {\n\tsize := 16\n\tb := 0\n\tbuf := make([]byte, size)\n\n\tbuf[b] = c.Extensions[\"SYNC\"]\n\tb += 1\n\n\tbuf[b] = 2 // request opcode\n\tb += 1\n\n\txgb.Put16(buf[b:], uint16(size/4)) // write request size in 4-byte units\n\tb += 2\n\n\txgb.Put32(buf[b:], uint32(Id))\n\tb += 4\n\n\t{\n\t\tstructBytes := InitialValue.Bytes()\n\t\tcopy(buf[b:], structBytes)\n\t\tb += xgb.Pad(len(structBytes))\n\t}\n\n\treturn buf\n}", "func GetStat() map[string]interface{} {\n\tvar m runtime.MemStats\n\truntime.ReadMemStats(&m)\n\t// For info on each, see: https://golang.org/pkg/runtime/#MemStats\n\talloc := m.Alloc / 1024 / 1024\n\ttotalAlloc := m.TotalAlloc / 1024 / 1024\n\tsys := m.Sys / 1024 / 1024\n\tday, hour, min, sec := reqcounter.GetCounters()\n\treturn map[string]interface{}{\n\t\t\"alloc\": alloc,\n\t\t\"total_alloc\": totalAlloc,\n\t\t\"sys\": sys,\n\t\t\"requests_per_day\": day,\n\t\t\"requests_per_hour\": hour,\n\t\t\"requests_per_minute\": min,\n\t\t\"requests_per_second\": sec,\n\t}\n}", "func (*HitCounts) Descriptor() ([]byte, []int) {\n\treturn file_src_nap_nap_proto_rawDescGZIP(), []int{15}\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (c *InterfaceStateUpdater) processCombinedCounterStat(statName statType, data adapter.CombinedCounterStat) {\n\tif data == nil || len(data) == 0 {\n\t\treturn\n\t}\n\t// Add up counter values from all workers, sumPackets is fixed length - all the inner arrays (workers)\n\t// have values for all interfaces. Length is taken from the first worker (main thread) which is always present\n\tsumCombined := make([]adapter.CombinedCounter, len(data[0]))\n\tfor _, worker := range data {\n\t\tfor swIfIndex, partialPackets := range worker {\n\t\t\tsumCombined[swIfIndex].Packets += partialPackets.Packets\n\t\t\tsumCombined[swIfIndex].Bytes += partialPackets.Bytes\n\t\t}\n\t}\n\tfor swIfIndex, combined := range sumCombined {\n\t\tifState, found := c.getIfStateDataWLookup(uint32(swIfIndex))\n\t\tif !found {\n\t\t\tcontinue\n\t\t}\n\t\tifStats := ifState.Statistics\n\t\tswitch statName {\n\t\tcase Rx:\n\t\t\tifStats.InPackets = uint64(combined.Packets)\n\t\t\tifStats.InBytes = uint64(combined.Bytes)\n\t\tcase Tx:\n\t\t\tifStats.OutPackets = uint64(combined.Packets)\n\t\t\tifStats.OutBytes = uint64(combined.Bytes)\n\t\t}\n\t\t// TODO process other stats types\n\n\t\tc.publishIfState(&intf.InterfaceNotification{\n\t\t\tType: intf.InterfaceNotification_COUNTERS, State: ifState})\n\t}\n}", "func TestGetProgInfo(t *testing.T) {\n\tdisableFunc, err := enableBPFStats()\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tdefer disableFunc()\n\n\tspecs, err := newGetproginfoSpecs()\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tprog, err := ebpf.NewProgram(specs.ProgramOpen)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tdefer prog.Close()\n\n\tlink, err := link.AttachRawTracepoint(link.RawTracepointOptions{\n\t\tName: \"sys_enter\",\n\t\tProgram: prog,\n\t})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tif link == nil {\n\t\tt.Fatal(\"no link\")\n\t}\n\tdefer link.Close()\n\n\tf, err := os.Open(\"/etc/os-release\")\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tf.Close()\n\n\tstats, err := getProgramStats(prog.FD())\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tif stats.RunCount == 0 {\n\t\tt.Errorf(\"run count should be non-zero\")\n\t}\n\tif stats.RunTime == 0 {\n\t\tt.Errorf(\"run time should be non-zero\")\n\t}\n}", "func (c *Circuit) ConcurrentCommands() int64 {\n\treturn c.concurrentCommands.Get()\n}", "func (v Systemcounter) Bytes() []byte {\n\tbuf := make([]byte, (14 + xgb.Pad((int(v.NameLen) * 1))))\n\tb := 0\n\n\txgb.Put32(buf[b:], uint32(v.Counter))\n\tb += 4\n\n\t{\n\t\tstructBytes := v.Resolution.Bytes()\n\t\tcopy(buf[b:], structBytes)\n\t\tb += xgb.Pad(len(structBytes))\n\t}\n\n\txgb.Put16(buf[b:], v.NameLen)\n\tb += 2\n\n\tcopy(buf[b:], v.Name[:v.NameLen])\n\tb += xgb.Pad(int(v.NameLen))\n\n\treturn buf\n}", "func (program Program) GetActiveAttributes() int32 {\n\tvar params int32\n\tgl.GetProgramiv(uint32(program), gl.ACTIVE_ATTRIBUTES, &params)\n\treturn params\n}", "func (this *Stats) PlayedAudioBuffers() int { return int(this.ptr.i_played_abuffers) }", "func (r *Registers) GetProgramCounter() uint16 {\n\treturn r.pc\n}", "func (*CMsgRecentAccomplishments) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_common_proto_rawDescGZIP(), []int{57}\n}", "func (program Program) GetActiveUniforms() int32 {\n\tvar params int32\n\tgl.GetProgramiv(uint32(program), gl.ACTIVE_UNIFORMS, &params)\n\treturn params\n}", "func (*GetInputCountRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{66}\n}", "func listProc() ([]int, error) {\n\td, err := os.Open(\"/proc\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tdefer d.Close()\n\n\tresults := make([]int, 0, 50)\n\tfor {\n\t\tfis, err := d.Readdir(10)\n\t\tif err == io.EOF {\n\t\t\tbreak\n\t\t}\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tfor _, fi := range fis {\n\t\t\t// Pid must be a directory with a numeric name\n\t\t\tif !fi.IsDir() {\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\t// Using Atoi here will also filter out . and ..\n\t\t\tpid, err := strconv.Atoi(fi.Name())\n\t\t\tif err != nil {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tresults = append(results, pid)\n\t\t}\n\t}\n\treturn results, nil\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (*C2SChatCnt) Descriptor() ([]byte, []int) {\n\treturn file_chat_proto_rawDescGZIP(), []int{12}\n}", "func pitCounter() int32 {\n\tconst div = (_PIT_HZ / _HZ)\n\t// Send the latch command to channel 0\n\tsys.Outb(0x43, 0)\n\tlo := sys.Inb(0x40)\n\thi := sys.Inb(0x40)\n\tax := (int32(hi)<<8 | int32(lo))\n\treturn div - ax\n}", "func fdsForCurrentProcess() ([]int, error) {\n\tfdFiles, err := ioutil.ReadDir(\"/dev/fd\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tfds := []int{}\n\tfor _, fdFile := range fdFiles {\n\t\tfd, _ := strconv.Atoi(fdFile.Name())\n\t\tfds = append(fds, fd)\n\t}\n\n\treturn fds, nil\n}", "func (*ReadStakingDataRequest_BucketsCount) Descriptor() ([]byte, []int) {\n\treturn file_proto_api_read_state_proto_rawDescGZIP(), []int{2, 8}\n}", "func getCrtcInfoRequest(c *xgb.Conn, Crtc Crtc, ConfigTimestamp xproto.Timestamp) []byte {\n\tsize := 12\n\tb := 0\n\tbuf := make([]byte, size)\n\n\tc.ExtLock.RLock()\n\tbuf[b] = c.Extensions[\"RANDR\"]\n\tc.ExtLock.RUnlock()\n\tb += 1\n\n\tbuf[b] = 20 // request opcode\n\tb += 1\n\n\txgb.Put16(buf[b:], uint16(size/4)) // write request size in 4-byte units\n\tb += 2\n\n\txgb.Put32(buf[b:], uint32(Crtc))\n\tb += 4\n\n\txgb.Put32(buf[b:], uint32(ConfigTimestamp))\n\tb += 4\n\n\treturn buf\n}", "func getNVMCapacities() (uint64, uint64, error) {\n\tvar caps C.struct_device_capacities\n\terr := C.nvm_get_nvm_capacities(&caps)\n\tif err != C.NVM_SUCCESS {\n\t\tklog.Warningf(\"Unable to get NVM capacity. Status code: %d\", err)\n\t\treturn uint64(0), uint64(0), fmt.Errorf(\"Unable to get NVM capacity. Status code: %d\", err)\n\t}\n\treturn uint64(caps.memory_capacity), uint64(caps.app_direct_capacity), nil\n}", "func (x *CtlCommand) status(rpcc *rpcclient.RPCClient, processes []string) {\n\tprocessesMap := make(map[string]bool)\n\tfor _, process := range processes {\n\t\tprocessesMap[process] = true\n\t}\n\tret, err := rpcc.GetAllProcessInfo()\n\tif err != nil {\n\t\tfmt.Println(errors.As(err))\n\t\tos.Exit(1)\n\t\treturn\n\t}\n\tx.showProcessInfo(ret.AllProcessInfo, processesMap)\n}", "func getCounter(APIstub shim.ChaincodeStubInterface, AssetType string) int {\n\tcounterAsBytes, _ := APIstub.GetState(AssetType)\n\tcounterAsset := CounterNO{}\n\n\tjson.Unmarshal(counterAsBytes, &counterAsset)\n\tfmt.Sprintf(\"Counter Current Value %d of Asset Type %s\", counterAsset.Counter, AssetType)\n\n\treturn counterAsset.Counter\n}", "func ProcMeminfo(c *gin.Context) {\n\tres := CmdExec(\"cat /proc/meminfo | head -n 2| awk '{print $2}'\")\n\ttotalMem, _ := strconv.Atoi(res[0])\n\tfreeMem, _ := strconv.Atoi(res[1])\n\tusedMem := totalMem - freeMem\n\tc.JSON(http.StatusOK, gin.H{\n\t\t\"totalMem\": totalMem,\n\t\t\"usedMem\": usedMem,\n\t})\n}", "func (image *image) ActiveTransportCount() int32 {\n\treturn image.logBuffers.Meta().ActiveTransportCount()\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tsyscall.Syscall9(gpGetActiveAttrib, 7, uintptr(program), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(xtype)), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func (*ListActiveMontirWithLocation) Descriptor() ([]byte, []int) {\n\treturn file_montir_proto_rawDescGZIP(), []int{6}\n}", "func NumActiveDisplays() int {\n\treturn xwindow.NumActiveDisplays()\n}", "func (*HealthCounts) Descriptor() ([]byte, []int) {\n\treturn file_external_applications_applications_proto_rawDescGZIP(), []int{25}\n}", "func ListSystemCountersUnchecked(c *xgb.Conn) ListSystemCountersCookie {\n\tif _, ok := c.Extensions[\"SYNC\"]; !ok {\n\t\tpanic(\"Cannot issue request 'ListSystemCounters' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.\")\n\t}\n\tcookie := c.NewCookie(false, true)\n\tc.NewRequest(listSystemCountersRequest(c), cookie)\n\treturn ListSystemCountersCookie{cookie}\n}", "func ProcInfo() ([]Win32_PerfFormattedData_PerfOS_System, error) {\n\treturn ProcInfoWithContext(context.Background())\n}", "func (p *PCIDs) allocate() uint16 {\n\tp.mu.Lock()\n\tdefer p.mu.Unlock()\n\tif len(p.available) > 0 {\n\t\tfor id := range p.available {\n\t\t\tdelete(p.available, id)\n\t\t\treturn id\n\t\t}\n\t}\n\tif id := p.last + 1; id <= maxPCID {\n\t\tp.last = id\n\t\treturn id\n\t}\n\t// Nothing available.\n\treturn 0\n}", "func Current() (uint, error) {\n\treturn procstatus.GetRSS(os.Getpid())\n}", "func (state *BuildState) NumActive() int {\n\treturn int(atomic.LoadInt64(&state.progress.numActive))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (s *TXPoolServer) getStats() []uint64 {\n\ts.stats.RLock()\n\tdefer s.stats.RUnlock()\n\tret := make([]uint64, 0, len(s.stats.count))\n\tfor _, v := range s.stats.count {\n\t\tret = append(ret, v)\n\t}\n\treturn ret\n}" ]
[ "0.6892619", "0.68218124", "0.6175126", "0.53996485", "0.5310247", "0.5281584", "0.5244133", "0.5228029", "0.51778215", "0.5177244", "0.51748914", "0.51689124", "0.5146002", "0.5108844", "0.5002001", "0.49964884", "0.4981794", "0.4972068", "0.49681127", "0.49681127", "0.49625927", "0.4960374", "0.49578318", "0.49471197", "0.49346843", "0.49275693", "0.49081874", "0.48874906", "0.4875101", "0.4848412", "0.48336416", "0.4824052", "0.48174018", "0.48152706", "0.4808004", "0.47966346", "0.47926074", "0.47628713", "0.47432283", "0.47417545", "0.47357425", "0.4734879", "0.47169155", "0.47135714", "0.47080827", "0.47063437", "0.46949366", "0.46902177", "0.4686171", "0.46839604", "0.46837264", "0.46828744", "0.46701255", "0.46657598", "0.46637326", "0.46561366", "0.46475452", "0.46474117", "0.4642579", "0.46413085", "0.46374908", "0.4634785", "0.46332508", "0.4620959", "0.46209487", "0.4619866", "0.4619565", "0.46149024", "0.46146587", "0.460489", "0.45978275", "0.45946968", "0.45905882", "0.45883542", "0.4587274", "0.45863977", "0.4583339", "0.45726982", "0.45717815", "0.4571601", "0.4570011", "0.45691997", "0.45648283", "0.4562897", "0.45599186", "0.45539185", "0.45512745", "0.45506948", "0.45426103", "0.45389047", "0.45364624", "0.45335895", "0.45308867", "0.45289126", "0.4528173", "0.452683", "0.452426", "0.45242098", "0.45192894" ]
0.65951675
3
Returns information about an active attribute variable for the specified program object
func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) { C.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tsyscall.Syscall9(gpGetActiveAttrib, 7, uintptr(program), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(xtype)), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveAttrib(p Program, index uint32) (name string, size int, ty Enum) {\n\tvar length, si int32\n\tvar typ uint32\n\tname = strings.Repeat(\"\\x00\", 256)\n\tcname := gl.Str(name)\n\tgl.GetActiveAttrib(p.Value, uint32(index), int32(len(name)-1), &length, &si, &typ, cname)\n\tname = name[:strings.IndexRune(name, 0)]\n\treturn name, int(si), Enum(typ)\n}", "func (program Program) GetActiveAttributes() int32 {\n\tvar params int32\n\tgl.GetProgramiv(uint32(program), gl.ACTIVE_ATTRIBUTES, &params)\n\treturn params\n}", "func GetActiveAttrib(program Uint, index Uint, bufSize Sizei, length *Sizei, size *Int, kind *Enum, name []byte) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcindex, _ := (C.GLuint)(index), cgoAllocsUnknown\n\tcbufSize, _ := (C.GLsizei)(bufSize), cgoAllocsUnknown\n\tclength, _ := (*C.GLsizei)(unsafe.Pointer(length)), cgoAllocsUnknown\n\tcsize, _ := (*C.GLint)(unsafe.Pointer(size)), cgoAllocsUnknown\n\tckind, _ := (*C.GLenum)(unsafe.Pointer(kind)), cgoAllocsUnknown\n\tcname, _ := (*C.GLchar)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&name)).Data)), cgoAllocsUnknown\n\tC.glGetActiveAttrib(cprogram, cindex, cbufSize, clength, csize, ckind, cname)\n}", "func GetAttribLocation(program uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetAttribLocation, 2, uintptr(program), uintptr(unsafe.Pointer(name)), 0)\n\treturn (int32)(ret)\n}", "func GetAttribLocation(program uint32, name *int8) int32 {\n ret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func (program Program) GetActiveUniforms() int32 {\n\tvar params int32\n\tgl.GetProgramiv(uint32(program), gl.ACTIVE_UNIFORMS, &params)\n\treturn params\n}", "func (program Program) GetAttribLocation(name string) int32 {\n\treturn gl.GetAttribLocation(uint32(program), gl.Str(name+\"\\x00\"))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tsyscall.Syscall9(gpGetActiveUniform, 7, uintptr(program), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(xtype)), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func GetAttribLocation(p Program, name string) Attrib {\n\treturn Attrib{Value: uint(gl.GetAttribLocation(p.Value, gl.Str(name+\"\\x00\")))}\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformName, 5, uintptr(program), uintptr(uniformIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformName)), 0)\n}", "func GetAttribLocation(program Uint, name string) Int {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcname, _ := unpackPCharString(name)\n\t__ret := C.glGetAttribLocation(cprogram, cname)\n\t__v := (Int)(__ret)\n\treturn __v\n}", "func GetActiveUniform(p Program, index uint32) (name string, size int, ty Enum) {\n\tvar length, si int32\n\tvar typ uint32\n\tname = strings.Repeat(\"\\x00\", 256)\n\tcname := gl.Str(name)\n\tgl.GetActiveUniform(p.Value, uint32(index), int32(len(name)-1), &length, &si, &typ, cname)\n\tname = name[:strings.IndexRune(name, 0)]\n\treturn name, int(si), Enum(typ)\n}", "func (o *ObjectData) GetAttr(name string) (value Object, present bool) {\n value, present = o.Attrs[name]\n return \n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func (h *HostExpr) Attribute() *AttributeExpr {\n\tif h.Variables == nil {\n\t\th.Variables = &AttributeExpr{Type: &Object{}}\n\t}\n\treturn h.Variables\n}", "func GetAttribLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetAttribLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func getPiAttribute(w http.ResponseWriter, r *http.Request) {\n\t// Get pi name and property/attribute from request\n\tvars := mux.Vars(r)\n\tpiname := vars[\"piname\"]\n\tpiproperty := vars[\"piattribute\"]\n\n\t// Get pi entry from data store\n\tc := appengine.NewContext(r)\n\tq := datastore.NewQuery(piListKind).Filter(\"name =\", piname)\n\tt := q.Run(c)\n\tvar pi Pi\n\t_, err := t.Next(&pi)\n\tif err == datastore.Done {\n\t\thttp.Error(w, \"404 Not found\", http.StatusNotFound)\n\t\treturn\n\t}\n\tif err != nil {\n\t\thttp.Error(w, err.Error(), http.StatusInternalServerError)\n\t\treturn\n\t}\n\n\t// Print attribute value in plain text\n\tw.Header().Set(\"Content-Type\", \"text/plain\")\n\tswitch piproperty {\n\tcase \"name\":\n\t\tfmt.Fprint(w, pi.Name)\n\tcase \"ip\":\n\t\tfmt.Fprint(w, pi.Ip)\n\tcase \"lastSeen\":\n\t\tfmt.Fprint(w, pi.LastSeen)\n\tcase \"pingCount\":\n\t\tfmt.Fprint(w, pi.PingCount)\n\tdefault:\n\t\thttp.Error(w, \"404 Not found\", http.StatusNotFound)\n\t}\n}", "func (e *Environment) Attr(environmentName, attr string) ([]Attr, error) {\n\n\targkeys := []string{\"attr\"}\n\targvalues := []interface{}{attr}\n\tbaseCommand := fmt.Sprintf(\"list environment attr %s\", environmentName)\n\n\tc, err := cmd.ArgsExpander(baseCommand, argkeys, argvalues)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tb, err := cmd.RunCommand(c)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tattrs := []Attr{}\n\terr = json.Unmarshal(b, &attrs)\n\tif err != nil {\n\t\t// it may have been just an empty output from the Frontend\n\t\tnullOutput := NullOutput{}\n\t\terr = json.Unmarshal(b, &nullOutput)\n\t\tif err != nil {\n\t\t\t// if we still can't recognize the output, return an error\n\t\t\treturn nil, err\n\t\t}\n\t\treturn attrs, err\n\t}\n\treturn attrs, err\n}", "func (c *jsiiProxy_CfnEnvironment) GetAtt(attributeName *string) awscdk.Reference {\n\tvar returns awscdk.Reference\n\n\t_jsii_.Invoke(\n\t\tc,\n\t\t\"getAtt\",\n\t\t[]interface{}{attributeName},\n\t\t&returns,\n\t)\n\n\treturn returns\n}", "func (c *Cli) EnvAttribute(name string) (*EnvAttribute, error) {\n\te, ok := c.env[name]\n\tif ok == false {\n\t\treturn nil, fmt.Errorf(\"%q not defined for environment\", name)\n\t}\n\treturn e, nil\n}", "func (debugging *debuggingOpenGL) GetAttribLocation(program uint32, name string) int32 {\n\tdebugging.recordEntry(\"GetAttribLocation\", program, name)\n\tresult := debugging.gl.GetAttribLocation(program, name)\n\tdebugging.recordExit(\"GetAttribLocation\", result)\n\treturn result\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (obj *alpha) Variable() string {\n\treturn obj.variable\n}", "func (o FunctionEventTriggerEventFilterOutput) Attribute() pulumi.StringOutput {\n\treturn o.ApplyT(func(v FunctionEventTriggerEventFilter) string { return v.Attribute }).(pulumi.StringOutput)\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveUniformsiv, 5, uintptr(program), uintptr(uniformCount), uintptr(unsafe.Pointer(uniformIndices)), uintptr(pname), uintptr(unsafe.Pointer(params)), 0)\n}", "func (win *Window) GetAttribBool(attrib Hint) bool {\n\treturn HintValue(C.glfwGetWindowAttrib(win.c(), C.int(attrib))) == True\n}", "func (win *Window) GetAttribBool(attrib Hint) bool {\n\treturn HintValue(C.glfwGetWindowAttrib(win.c(), C.int(attrib))) == True\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (native *OpenGL) GetAttribLocation(program uint32, name string) int32 {\n\treturn gl.GetAttribLocation(program, gl.Str(name+\"\\x00\"))\n}", "func (h *Handler) getDeveloperAttributeByName(c *gin.Context) handlerResponse {\n\n\tdeveloper, err := h.service.Developer.Get(c.Param(developerParameter))\n\tif err != nil {\n\t\treturn handleError(err)\n\t}\n\tattributeValue, err := developer.Attributes.Get(c.Param(attributeParameter))\n\tif err != nil {\n\t\treturn handleError(err)\n\t}\n\treturn handleOK(attributeValue)\n}", "func (obj *application) Variables() variables.Variables {\n\treturn obj.variables\n}", "func (graph *Graph) GetAttr(x, y int) byte {\n\treturn graph.Tiles[y][x].Attr\n}", "func (o *Object) Attribute(name string) *AttributeExpr {\n\tfor _, nat := range *o {\n\t\tif nat.Name == name {\n\t\t\treturn nat.Attribute\n\t\t}\n\t}\n\treturn nil\n}", "func (l *Loader) SymAttr(i Sym) uint8 {\n\tif l.IsExternal(i) {\n\t\t// TODO: do something? External symbols have different representation of attributes.\n\t\t// For now, ReflectMethod, NoSplit, GoType, and Typelink are used and they cannot be\n\t\t// set by external symbol.\n\t\treturn 0\n\t}\n\tr, li := l.toLocal(i)\n\treturn r.Sym(li).Flag()\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n\tsyscall.Syscall(gpActiveShaderProgram, 2, uintptr(pipeline), uintptr(program), 0)\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (mouse *Mouse) GetAttr(attr string) (interface{}, error) {\n\treturn 0, nil\n}", "func getAttribute(name string,attrs []xml.Attr) (string) {\n\tval := \"\"\n\tfor _,attr := range attrs { if strings.EqualFold(attr.Name.Local,name) {val = attr.Value } }\n\treturn val\n}", "func (c *jsiiProxy_CfnApplication) GetAtt(attributeName *string) awscdk.Reference {\n\tvar returns awscdk.Reference\n\n\t_jsii_.Invoke(\n\t\tc,\n\t\t\"getAtt\",\n\t\t[]interface{}{attributeName},\n\t\t&returns,\n\t)\n\n\treturn returns\n}", "func (c *jsiiProxy_CfnApplication) GetAtt(attributeName *string) awscdk.Reference {\n\tvar returns awscdk.Reference\n\n\t_jsii_.Invoke(\n\t\tc,\n\t\t\"getAtt\",\n\t\t[]interface{}{attributeName},\n\t\t&returns,\n\t)\n\n\treturn returns\n}", "func (self Channel) GetAttribute(attrib int) (float64, error) {\n\tvar cvalue C.float\n\tresult:=C.BASS_ChannelGetAttribute(self.cint(), C.DWORD(attrib), &cvalue)\n\treturn float64(cvalue), boolToError(result)\n}", "func (r *Thing) Attributes() pulumi.MapOutput {\n\treturn (pulumi.MapOutput)(r.s.State[\"attributes\"])\n}", "func getAttributeValue(attrs []xml.Attr, a string) string {\n\tfor _, attr := range attrs {\n\t\tif attr.Name.Local == a {\n\t\t\treturn attr.Value\n\t\t}\n\t}\n\treturn \"\"\n}", "func (native *OpenGL) GLGetAttribLocation(program uint32, name *uint8) int32 {\n\treturn gl.GetAttribLocation(program, name)\n}", "func (l *CPIO9PFID) GetAttr(req p9.AttrMask) (p9.QID, p9.AttrMask, p9.Attr, error) {\n\tqid, fi, err := l.info()\n\tif err != nil {\n\t\treturn qid, p9.AttrMask{}, p9.Attr{}, err\n\t}\n\n\t//you are not getting symlink!\n\tattr := p9.Attr{\n\t\tMode: p9.FileMode(fi.Mode),\n\t\tUID: p9.UID(fi.UID),\n\t\tGID: p9.GID(fi.GID),\n\t\tNLink: p9.NLink(fi.NLink),\n\t\tRDev: p9.Dev(fi.Dev),\n\t\tSize: uint64(fi.FileSize),\n\t\tBlockSize: uint64(4096),\n\t\tBlocks: uint64(fi.FileSize / 4096),\n\t\tATimeSeconds: uint64(0),\n\t\tATimeNanoSeconds: uint64(0),\n\t\tMTimeSeconds: uint64(fi.MTime),\n\t\tMTimeNanoSeconds: uint64(0),\n\t\tCTimeSeconds: 0,\n\t\tCTimeNanoSeconds: 0,\n\t}\n\tvalid := p9.AttrMask{\n\t\tMode: true,\n\t\tUID: true,\n\t\tGID: true,\n\t\tNLink: true,\n\t\tRDev: true,\n\t\tSize: true,\n\t\tBlocks: true,\n\t\tATime: true,\n\t\tMTime: true,\n\t\tCTime: true,\n\t}\n\n\treturn qid, valid, attr, nil\n}", "func (p Plane) GetProgramInfo() (ProgramInfo, error) {\n\tif (p.programInfo != ProgramInfo{}) {\n\t\treturn p.programInfo, nil\n\t}\n\treturn ProgramInfo{}, errors.New(\"No program info\")\n}", "func (w *wrapper) Getattr(path string, stat *fuse.Stat_t, fd uint64) int {\n\tfi, err := w.underlying.Stat(path)\n\tif err != nil {\n\t\treturn convertError(err)\n\t}\n\tfileInfoToStat(fi, stat)\n\treturn 0\n}", "func (k2h *K2hash) PrintAttrInformation() {\n\tC.k2h_print_attr_information(k2h.handle, nil)\n}", "func (s *BaseLittleDuckListener) EnterPrograma_vars(ctx *Programa_varsContext) {}", "func (c *jsiiProxy_CfnApp) GetAtt(attributeName *string) awscdk.Reference {\n\tvar returns awscdk.Reference\n\n\t_jsii_.Invoke(\n\t\tc,\n\t\t\"getAtt\",\n\t\t[]interface{}{attributeName},\n\t\t&returns,\n\t)\n\n\treturn returns\n}", "func (O *Object) GetAttribute(data *Data, name string) error {\n\tif O == nil || O.dpiObject == nil {\n\t\tpanic(\"nil dpiObject\")\n\t}\n\tattr, ok := O.Attributes[name]\n\tif !ok {\n\t\treturn errors.Errorf(\"%s: %w\", name, ErrNoSuchKey)\n\t}\n\n\tdata.reset()\n\tdata.NativeTypeNum = attr.NativeTypeNum\n\tdata.ObjectType = attr.ObjectType\n\tdata.implicitObj = true\n\t// the maximum length of that buffer must be supplied\n\t// in the value.asBytes.length attribute before calling this function.\n\tif attr.NativeTypeNum == C.DPI_NATIVE_TYPE_BYTES && attr.OracleTypeNum == C.DPI_ORACLE_TYPE_NUMBER {\n\t\tvar a [39]byte\n\t\tC.dpiData_setBytes(&data.dpiData, (*C.char)(unsafe.Pointer(&a[0])), C.uint32_t(len(a)))\n\t}\n\n\t//fmt.Printf(\"getAttributeValue(%p, %p, %d, %+v)\\n\", O.dpiObject, attr.dpiObjectAttr, data.NativeTypeNum, data.dpiData)\n\tif C.dpiObject_getAttributeValue(O.dpiObject, attr.dpiObjectAttr, data.NativeTypeNum, &data.dpiData) == C.DPI_FAILURE {\n\t\treturn errors.Errorf(\"getAttributeValue(%q, obj=%+v, attr=%+v, typ=%d): %w\", name, O, attr.dpiObjectAttr, data.NativeTypeNum, O.getError())\n\t}\n\t//fmt.Printf(\"getAttributeValue(%p, %q=%p, %d, %+v)\\n\", O.dpiObject, attr.Name, attr.dpiObjectAttr, data.NativeTypeNum, data.dpiData)\n\treturn nil\n}", "func (c *jsiiProxy_CfnLaunchProfile) GetAtt(attributeName *string) awscdk.Reference {\n\tvar returns awscdk.Reference\n\n\t_jsii_.Invoke(\n\t\tc,\n\t\t\"getAtt\",\n\t\t[]interface{}{attributeName},\n\t\t&returns,\n\t)\n\n\treturn returns\n}", "func (n *Use) Attributes() map[string]interface{} {\n\treturn nil\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *uint8) {\n\tsyscall.Syscall6(gpGetActiveSubroutineUniformName, 6, uintptr(program), uintptr(shadertype), uintptr(index), uintptr(bufsize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(name)))\n}", "func (m *IdentityUserFlowAttributeAssignment) GetUserAttribute()(IdentityUserFlowAttributeable) {\n return m.userAttribute\n}", "func (elem *remoteWE) GetAttribute(name string) (string, error) {\n\ttemplate := \"/session/%%s/element/%s/attribute/%s\"\n\turlTemplate := fmt.Sprintf(template, elem.id, name)\n\n\treturn elem.parent.stringCommand(urlTemplate)\n}", "func generateAttrib() int {\n\treturn random(8, 18)\n}", "func (c *jsiiProxy_CfnStudio) GetAtt(attributeName *string) awscdk.Reference {\n\tvar returns awscdk.Reference\n\n\t_jsii_.Invoke(\n\t\tc,\n\t\t\"getAtt\",\n\t\t[]interface{}{attributeName},\n\t\t&returns,\n\t)\n\n\treturn returns\n}", "func (gl *WebGL) GetAttribLocation(shaderProgram WebGLShaderProgram, attribute string) WebGLAttributeLocation {\n\treturn gl.context.Call(\"getAttribLocation\", shaderProgram, attribute).Int()\n}", "func (a *AttributeDefinition) Context() string {\n\treturn \"\"\n}", "func AttributeString(i interface{}) string {\n\tswitch v := i.(type) {\n\tcase fmt.Stringer:\n\t\treturn v.String()\n\tcase bool:\n\t\tif v {\n\t\t\treturn \"\" // boolean true\n\t\t} else {\n\t\t\treturn attributeFalse // Our special value to indicate to NOT print the attribute at all\n\t\t}\n\tcase string:\n\t\treturn v\n\tcase int:\n\t\treturn strconv.Itoa(v)\n\tdefault:\n\t\treturn fmt.Sprintf(\"%v\", i)\n\t}\n}", "func (t Type) GetAttrFrom(inst Instance, atomValue uint8) Value {\n\tfor instanceIndex, atomIndex := range t.Attributes {\n\t\tif atomIndex == atomValue {\n\t\t\treturn inst.Attributes[instanceIndex]\n\t\t}\n\t}\n\tpanic(\"Could not get attribute from instance!\")\n}", "func GetActiveUniform(program Uint, index Uint, bufSize Sizei, length *Sizei, size *Int, kind *Enum, name []byte) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcindex, _ := (C.GLuint)(index), cgoAllocsUnknown\n\tcbufSize, _ := (C.GLsizei)(bufSize), cgoAllocsUnknown\n\tclength, _ := (*C.GLsizei)(unsafe.Pointer(length)), cgoAllocsUnknown\n\tcsize, _ := (*C.GLint)(unsafe.Pointer(size)), cgoAllocsUnknown\n\tckind, _ := (*C.GLenum)(unsafe.Pointer(kind)), cgoAllocsUnknown\n\tcname, _ := (*C.GLchar)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&name)).Data)), cgoAllocsUnknown\n\tC.glGetActiveUniform(cprogram, cindex, cbufSize, clength, csize, ckind, cname)\n}", "func GetProgram(pid int64) (string, error) {\n\t// Readlink needs root permission\n\t// return os.Readlink(fmt.Sprintf(\"/proc/%d/exe\", pid))\n\n\trs, err := rawProcStatus(pid)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn rs.Name, nil\n}", "func (l *Loader) AttrReachable(i Sym) bool {\n\treturn l.attrReachable.Has(i)\n}", "func (c *jsiiProxy_CfnStudioComponent) GetAtt(attributeName *string) awscdk.Reference {\n\tvar returns awscdk.Reference\n\n\t_jsii_.Invoke(\n\t\tc,\n\t\t\"getAtt\",\n\t\t[]interface{}{attributeName},\n\t\t&returns,\n\t)\n\n\treturn returns\n}", "func (proc *Process) getDetails(cmdline string) error {\n\n\tmem := sigar.ProcMem{}\n\tif err := mem.Get(proc.Pid); err != nil {\n\t\treturn fmt.Errorf(\"error getting process mem for pid=%d: %v\", proc.Pid, err)\n\t}\n\tproc.Mem = &ProcMemStat{\n\t\tSize: mem.Size,\n\t\tRss: mem.Resident,\n\t\tShare: mem.Share,\n\t}\n\n\tcpu := sigar.ProcTime{}\n\tif err := cpu.Get(proc.Pid); err != nil {\n\t\treturn fmt.Errorf(\"error getting process cpu time for pid=%d: %v\", proc.Pid, err)\n\t}\n\tproc.Cpu = &ProcCpuTime{\n\t\tStart: cpu.FormatStartTime(),\n\t\tTotal: cpu.Total,\n\t\tUser: cpu.User,\n\t\tSystem: cpu.Sys,\n\t}\n\n\tif cmdline == \"\" {\n\t\targs := sigar.ProcArgs{}\n\t\tif err := args.Get(proc.Pid); err != nil {\n\t\t\treturn fmt.Errorf(\"error getting process arguments for pid=%d: %v\", proc.Pid, err)\n\t\t}\n\t\tproc.CmdLine = strings.Join(args.List, \" \")\n\t} else {\n\t\tproc.CmdLine = cmdline\n\t}\n\n\treturn nil\n}", "func (s *BaseCGListener) EnterAttribute(ctx *AttributeContext) {}", "func (m *ProgramControl) GetProgram()(Programable) {\n val, err := m.GetBackingStore().Get(\"program\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.(Programable)\n }\n return nil\n}", "func GetAttr(f *os.File) (int32, error) {\n\n\tattr := int32(-1)\n\tif runtime.GOARCH == \"amd64\" {\n\t\terr := ioctl(f, uintptr(0x80086601), &attr)\n\t\treturn attr, err\n\t} else {\n\t\terr := ioctl(f, uintptr(0x80046601), &attr)\n\t\treturn attr, err\n\t}\n}", "func (t *Dense) Info() *AP { return t.AP }", "func (s *Basegff3Listener) EnterAttribute(ctx *AttributeContext) {}", "func (fsys *FS) Getattr(path string, stat *fuse.Stat_t, fh uint64) (errc int) {\n\tdefer fs.Trace(path, \"fh=0x%X\", fh)(\"errc=%v\", &errc)\n\tnode, errc := fsys.getNode(path, fh)\n\tif errc == 0 {\n\t\terrc = fsys.stat(node, stat)\n\t}\n\treturn\n}", "func (c *jsiiProxy_CfnModuleVersion) GetAtt(attributeName *string) awscdk.Reference {\n\tvar returns awscdk.Reference\n\n\t_jsii_.Invoke(\n\t\tc,\n\t\t\"getAtt\",\n\t\t[]interface{}{attributeName},\n\t\t&returns,\n\t)\n\n\treturn returns\n}", "func AttributeList(attr int32) (list map[string]int32) {\n\tlist = map[string]int32{}\n\tfor bit, name := range VideoAttribute {\n\t\tlist[name] = int32(((attr >> bit) & 1))\n\t}\n\treturn\n}", "func (s *SparkCoreAdaptor) Variable(name string) (result string, err error) {\n\turl := fmt.Sprintf(\"%v/%s?access_token=%s\", s.deviceURL(), name, s.AccessToken)\n\tresp, err := s.requestToSpark(\"GET\", url, nil)\n\n\tif err != nil {\n\t\treturn\n\t}\n\n\tval := resp[\"result\"]\n\tswitch val.(type) {\n\tcase bool:\n\t\tresult = strconv.FormatBool(val.(bool))\n\tcase float64:\n\t\tresult = strconv.FormatFloat(val.(float64), 'f', -1, 64)\n\tcase string:\n\t\tresult = val.(string)\n\t}\n\n\treturn\n}", "func (m *Application) GetInfo()(InformationalUrlable) {\n return m.info\n}", "func (repo *Repository) GetAttr(path, name string, flags ...AttrFlag) (string, error) {\n\tvar value [1]int8\n\tcvalue := (*C.char)(&value[0])\n\tcpath := C.CString(path)\n\tdefer C.free(unsafe.Pointer(cpath))\n\tcname := C.CString(name)\n\tdefer C.free(unsafe.Pointer(cname))\n\n\tvar cflags C.uint32_t\n\tfor _, flag := range flags {\n\t\tcflags |= C.uint32_t(flag)\n\t}\n\n\tecode := C.git_attr_get(&cvalue, repo.git_repository, cflags, cpath, cname)\n\tif ecode != git_SUCCESS {\n\t\treturn \"\", gitError()\n\t}\n\treturn C.GoString(cvalue), nil\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (c *jsiiProxy_CfnPreset) GetAtt(attributeName *string) awscdk.Reference {\n\tvar returns awscdk.Reference\n\n\t_jsii_.Invoke(\n\t\tc,\n\t\t\"getAtt\",\n\t\t[]interface{}{attributeName},\n\t\t&returns,\n\t)\n\n\treturn returns\n}", "func (obj *declaration) Variable() string {\n\treturn obj.name\n}", "func readAttributeSelection(bytes *Bytes) (attributeSelection AttributeSelection, err error) {\n\terr = bytes.ReadSubBytes(classUniversal, tagSequence, attributeSelection.readComponents)\n\tif err != nil {\n\t\terr = LdapError{fmt.Sprintf(\"readAttributeSelection:\\n%s\", err.Error())}\n\t\treturn\n\t}\n\treturn\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n\tC.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n\tC.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))\n}", "func ReadConsoleOutputAttribute(hConsoleOutput HANDLE, lpAttribute *uint16, nLength DWORD, dwReadCoord COORD, lpNumberOfAttrsRead *uint32) bool {\n\tret1 := syscall6(readConsoleOutputAttribute, 5,\n\t\tuintptr(hConsoleOutput),\n\t\tuintptr(unsafe.Pointer(lpAttribute)),\n\t\tuintptr(nLength),\n\t\tgetUintptrFromCOORD(dwReadCoord),\n\t\tuintptr(unsafe.Pointer(lpNumberOfAttrsRead)),\n\t\t0)\n\treturn ret1 != 0\n}", "func GetProgrami(p Program, pname Enum) int {\n\tvar result int32\n\tgl.GetProgramiv(p.Value, uint32(pname), &result)\n\treturn int(result)\n}", "func findAttribute(nbAtt int) int {\n\treturn rand.Intn(nbAtt)\n\n}", "func readAttr(reader *bytes.Reader) AttrInfo {\n\tvar attrInfo AttrInfo\n\tsafeReadBinary(reader, binary.BigEndian, &attrInfo.NameIndex)\n\tsafeReadBinary(reader, binary.BigEndian, &attrInfo.AttrLength)\n\tattrInfo.AttrData = make([]byte, attrInfo.AttrLength)\n\tio.ReadFull(reader, attrInfo.AttrData)\n\treturn attrInfo\n}", "func BindAttribLocation(program uint32, index uint32, name *uint8) {\n\tsyscall.Syscall(gpBindAttribLocation, 3, uintptr(program), uintptr(index), uintptr(unsafe.Pointer(name)))\n}", "func BindAttribLocation(program uint32, index uint32, name *int8) {\n C.glowBindAttribLocation(gpBindAttribLocation, (C.GLuint)(program), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (s *SingleRuntime) GetInfo() (models.ProcessInfoHaproxy, error) {\n\tdataStr, err := s.ExecuteRaw(\"show info typed\")\n\tdata := models.ProcessInfoHaproxy{}\n\tif err != nil {\n\t\tfmt.Println(err.Error())\n\t\treturn data, err\n\t}\n\treturn parseInfo(dataStr)\n}" ]
[ "0.6906509", "0.6827671", "0.67486435", "0.66393787", "0.5941796", "0.5767653", "0.5604651", "0.5586529", "0.54104286", "0.5343276", "0.53275114", "0.5324031", "0.53187764", "0.5316906", "0.52768654", "0.52661026", "0.52353585", "0.5219576", "0.5219576", "0.51777595", "0.50613344", "0.50613344", "0.50586665", "0.5057142", "0.502945", "0.50281787", "0.50029874", "0.500286", "0.500286", "0.49972475", "0.49946573", "0.49317768", "0.49249882", "0.49249882", "0.49206573", "0.48369542", "0.4836729", "0.48365164", "0.47533053", "0.4751464", "0.47258493", "0.47244045", "0.47008517", "0.47008517", "0.4697427", "0.46923333", "0.46771085", "0.46771085", "0.46477556", "0.46288496", "0.46161535", "0.4613066", "0.46105805", "0.46102914", "0.45935628", "0.45933545", "0.45878544", "0.4583293", "0.4570399", "0.4563693", "0.45548046", "0.4547768", "0.45447308", "0.4542794", "0.45352945", "0.45276225", "0.4523713", "0.45180017", "0.45118922", "0.45109436", "0.44993132", "0.44877622", "0.44873485", "0.44870248", "0.44659662", "0.4456859", "0.445032", "0.44501716", "0.4449403", "0.44379264", "0.44335255", "0.44326943", "0.44316316", "0.44316012", "0.44301847", "0.44299918", "0.4422566", "0.4419434", "0.4417226", "0.4414745", "0.44084573", "0.44084573", "0.4407566", "0.44040114", "0.44007388", "0.4396672", "0.4395707", "0.43910632", "0.43904227" ]
0.66524315
4
query the name of an active shader subroutine
func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) { C.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *uint8) {\n\tsyscall.Syscall6(gpGetActiveSubroutineUniformName, 6, uintptr(program), uintptr(shadertype), uintptr(index), uintptr(bufsize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(name)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *uint8) {\n\tsyscall.Syscall6(gpGetActiveSubroutineName, 6, uintptr(program), uintptr(shadertype), uintptr(index), uintptr(bufsize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(name)))\n}", "func (sh *ShaderStd) Name() string { return sh.MtlName }", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *int8) int32 {\n ret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *int8) {\n C.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n C.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *int8) uint32 {\n ret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n return (uint32)(ret)\n}", "func (p *literalProcessor) name() string { return \"\" }", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformName, 5, uintptr(program), uintptr(uniformIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformName)), 0)\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tC.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tC.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *uint8) int32 {\n\tret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *uint8) int32 {\n\tret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformBlockName, 5, uintptr(program), uintptr(uniformBlockIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformBlockName)), 0)\n}", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetSubroutineUniformLocation, 3, uintptr(program), uintptr(shadertype), uintptr(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n\tsyscall.Syscall(gpActiveShaderProgram, 2, uintptr(pipeline), uintptr(program), 0)\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *uint8) uint32 {\n\tret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *uint8) uint32 {\n\tret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n\tC.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n\tC.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))\n}", "func ProcName(_ int, procName string) string { return procName }", "func ProcName(_ int, procName string) string { return procName }", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func LoadName(name uint32) {\n C.glowLoadName(gpLoadName, (C.GLuint)(name))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *int8) {\n C.glowGetProgramResourceName(gpGetProgramResourceName, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n C.glowGetShaderiv(gpGetShaderiv, (C.GLuint)(shader), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (r *reducer) name() string { return r.stmt.Source.(*Measurement).Name }", "func (am *Manager) GetShader(name string) (uint32, bool) {\n\tif shader, ok := am.Shaders[name]; ok {\n\t\treturn shader, true\n\t}\n\n\tif am.Parent != nil {\n\t\treturn am.Parent.GetShader(name)\n\t}\n\n\treturn 0, false\n}", "func GetUniformLocation(program uint32, name *int8) int32 {\n ret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func procName(shortName bool, level int) (name string, line int) {\n\tpc, _, line, _ := runtime.Caller(level)\n\tname = runtime.FuncForPC(pc).Name()\n\tif shortName {\n\t\tname = name[strings.Index(name, \".\")+1:]\n\t}\n\treturn name, line\n}", "func (f frame) name() string {\n\tfn := runtime.FuncForPC(f.pc())\n\tif fn == nil {\n\t\treturn \"unknown\"\n\t}\n\treturn fn.Name()\n}", "func GetShaderi(s Shader, pname Enum) int {\n\tvar result int32\n\tgl.GetShaderiv(s.Value, uint32(pname), &result)\n\treturn int(result)\n}", "func Name(ctx context.Context) string {\n\tf, ok := ctx.Value(stateKey).(*Func)\n\tif !ok {\n\t\treturn \"<Undefined>\"\n\t}\n\tname := runtime.FuncForPC(reflect.ValueOf(*f).Pointer()).Name()\n\treturn strings.TrimRight(nameRe.FindStringSubmatch(name)[1], \")\")\n}", "func (e *binaryExprEvaluator) name() string { return \"\" }", "func (f Frame) name() string {\n\tfn := runtime.FuncForPC(f.pc())\n\tif fn == nil {\n\t\treturn \"unknown\"\n\t}\n\treturn fn.Name()\n}", "func (self *TileSprite) Shader() *AbstractFilter{\n return &AbstractFilter{self.Object.Get(\"shader\")}\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func funcName(f interface{}) string {\n\tfi := ess.GetFunctionInfo(f)\n\treturn fi.Name\n}", "func GetShaderSource(s Shader) string {\n\tlog.Println(\"GetShaderSource: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)\")\n\tsourceLen := GetShaderi(s, gl.SHADER_SOURCE_LENGTH)\n\tif sourceLen == 0 {\n\t\treturn \"\"\n\t}\n\tbuf := make([]byte, sourceLen)\n\tgl.GetShaderSource(s.Value, int32(sourceLen), nil, &buf[0])\n\treturn string(buf)\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tsyscall.Syscall9(gpGetActiveUniform, 7, uintptr(program), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(xtype)), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetShaderiv, 3, uintptr(shader), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func IsShader(shader uint32) bool {\n ret := C.glowIsShader(gpIsShader, (C.GLuint)(shader))\n return ret == TRUE\n}", "func (s *Shader) Use() {\n\tgl.UseProgram(s.programID)\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveUniformsiv, 5, uintptr(program), uintptr(uniformCount), uintptr(unsafe.Pointer(uniformIndices)), uintptr(pname), uintptr(unsafe.Pointer(params)), 0)\n}", "func GetString(name GLenum) string {\n\ts := unsafe.Pointer(C.glGetString(C.GLenum(name)))\n\treturn C.GoString((*C.char)(s))\n}", "func funcName() string {\n\tpc, _, _, _ := runtime.Caller(1)\n\tcompleteFuncname := runtime.FuncForPC(pc).Name()\n\treturn strings.Split(completeFuncname, \".\")[len(strings.Split(completeFuncname, \".\"))-1]\n}", "func (sm *shaderManager) GetShaderProgram(id uint32) (Shader, bool) {\n\tsm.programLock.RLock()\n\tdefer sm.programLock.RUnlock()\n\tfor _, shader := range sm.shaders {\n\t\tif shader.ProgramID() == id {\n\t\t\treturn shader, true\n\t\t}\n\t}\n\n\treturn nil, false\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func funcName() string {\n\tpc, _, _, _ := runtime.Caller(1)\n\treturn runtime.FuncForPC(pc).Name()\n}", "func GetActiveUniform(p Program, index uint32) (name string, size int, ty Enum) {\n\tvar length, si int32\n\tvar typ uint32\n\tname = strings.Repeat(\"\\x00\", 256)\n\tcname := gl.Str(name)\n\tgl.GetActiveUniform(p.Value, uint32(index), int32(len(name)-1), &length, &si, &typ, cname)\n\tname = name[:strings.IndexRune(name, 0)]\n\treturn name, int(si), Enum(typ)\n}", "func (gl *WebGL) ShaderSource(shader WebGLShader, source string) {\n\tgl.context.Call(\"shaderSource\", shader, source)\n}", "func (s *Shader) ID() uint32 {\n\treturn s.program.obj\n}", "func (debugging *debuggingOpenGL) ShaderSource(shader uint32, source string) {\n\tdebugging.recordEntry(\"ShaderSource\", shader, source)\n\tdebugging.gl.ShaderSource(shader, source)\n\tdebugging.recordExit(\"ShaderSource\")\n}", "func ReleaseShaderCompiler() {\n C.glowReleaseShaderCompiler(gpReleaseShaderCompiler)\n}", "func (l *calcListener) getVarName(dec string) string {\r\n\tnoLet := strings.Replace(dec,\"let\",\"\",-1);\r\n\treturn strings.TrimSpace(strings.Split(noLet,\"=\")[0])\r\n}", "func (native *OpenGL) GLGetShaderiv(shader uint32, pname uint32, params *int32) {\n\tgl.GetShaderiv(shader, pname, params)\n}", "func (sm *shaderManager) GetShader(key string) (Shader, bool) {\n\n\tsm.programLock.RLock()\n\tdefer sm.programLock.RUnlock()\n\tprogram, status := sm.shaders[key]\n\n\treturn program, status\n}", "func (program Program) GetActiveUniforms() int32 {\n\tvar params int32\n\tgl.GetProgramiv(uint32(program), gl.ACTIVE_UNIFORMS, &params)\n\treturn params\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n C.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func (args *SPH_UDF_ARGS) arg_name(idx int) string {\n\treturn GoString((*C.char)(args.nameptr(idx)))\n}", "func (debugging *debuggingOpenGL) GetShaderInfoLog(shader uint32) string {\n\tdebugging.recordEntry(\"GetShaderInfoLog\", shader)\n\tresult := debugging.gl.GetShaderInfoLog(shader)\n\tdebugging.recordExit(\"GetShaderInfoLog\", result)\n\treturn result\n}", "func ShaderSource(shader uint32, count int32, xstring **int8, length *int32) {\n C.glowShaderSource(gpShaderSource, (C.GLuint)(shader), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(xstring)), (*C.GLint)(unsafe.Pointer(length)))\n}", "func (program Program) GetUniformLocation(name string) UniformLocation {\n\treturn UniformLocation(gl.GetUniformLocation(uint32(program), gl.Str(name+\"\\x00\")))\n}", "func GetFragDataIndex(program uint32, name *int8) int32 {\n ret := C.glowGetFragDataIndex(gpGetFragDataIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func (ps *GetProcedureState) Name() string {\n\treturn \"getProcedureResult\"\n}", "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func LoadName(name uint32) {\n\tC.glowLoadName(gpLoadName, (C.GLuint)(name))\n}", "func GetShaderSource(shader uint32, bufSize int32, length *int32, source *int8) {\n C.glowGetShaderSource(gpGetShaderSource, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(source)))\n}", "func (shader Shader) Source(source string) {\n\tcstrs, free := gl.Strs(source + \"\\x00\")\n\tgl.ShaderSource(uint32(shader), 1, cstrs, nil)\n\tfree()\n}", "func PushName(name uint32) {\n C.glowPushName(gpPushName, (C.GLuint)(name))\n}", "func (t BaseTechnique) GetName() string {\n\treturn t.Name\n}", "func ShaderSource(shader uint32, count int32, xstring **uint8, length *int32) {\n\tsyscall.Syscall6(gpShaderSource, 4, uintptr(shader), uintptr(count), uintptr(unsafe.Pointer(xstring)), uintptr(unsafe.Pointer(length)), 0, 0)\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n\tC.glowGetShaderiv(gpGetShaderiv, (C.GLuint)(shader), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n\tC.glowGetShaderiv(gpGetShaderiv, (C.GLuint)(shader), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func ShaderBinary(count int32, shaders *uint32, binaryformat uint32, binary unsafe.Pointer, length int32) {\n C.glowShaderBinary(gpShaderBinary, (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(shaders)), (C.GLenum)(binaryformat), binary, (C.GLsizei)(length))\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetUniformLocation, 2, uintptr(program), uintptr(unsafe.Pointer(name)), 0)\n\treturn (int32)(ret)\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *int8) uint32 {\n ret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n return (uint32)(ret)\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetString(name Enum) string {\n\tcname, _ := (C.GLenum)(name), cgoAllocsUnknown\n\t__ret := C.glGetString(cname)\n\t__v := packPUbyteString(__ret)\n\treturn __v\n}", "func (oe *OraErr) FunName() string { return oe.funName }", "func (f Function) GetName() string {\n\treturn f.ident.String()\n}", "func GetUniformLocation(p Program, name string) Uniform {\n\treturn Uniform{Value: gl.GetUniformLocation(p.Value, gl.Str(name+\"\\x00\"))}\n}", "func (p *param) Name() string {\n\treturn \"l0\"\n}", "func ShaderBinary(count int32, shaders *uint32, binaryformat uint32, binary unsafe.Pointer, length int32) {\n\tsyscall.Syscall6(gpShaderBinary, 5, uintptr(count), uintptr(unsafe.Pointer(shaders)), uintptr(binaryformat), uintptr(binary), uintptr(length), 0)\n}", "func GetProgramResourceIndex(program uint32, programInterface uint32, name *int8) uint32 {\n ret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (uint32)(ret)\n}", "func main() {\n\tfile,err := os.Open(\"RolanEngine/shader/Unlit.shader\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer file.Close()\n\n\t//// 使用ioutil读取文件所有内容\n\tb, err := ioutil.ReadAll(file)\n\t//fmt.Print(string(b))\n\ttracer := string(b)\n\t//comma的意思是从字符串tracer查找第一个 #ifdef FRAGMENT,然后返回他的位置,这里的每个中文是占3个字符,从0开始计算,那么#ifdef FRAGMENT的位置就是12\n\tcomma := strings.Index(tracer, \"#ifdef FRAGMENT\")\n\t//pos := strings.Index(string(b)[comma:], \"#ifdef FRAGMENT\")\n\tfmt.Println(tracer[comma:] + \" + \\\"\\x00\\\"\")\n\n\t//tracer[comma:]这个是的意思截取字符串tracer,从12开始,包括12\n}", "func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetProgramResourceName(gpGetProgramResourceName, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}" ]
[ "0.76302344", "0.75878644", "0.738225", "0.738225", "0.68392384", "0.66142386", "0.65548575", "0.6366298", "0.6356607", "0.6228019", "0.6209389", "0.6209389", "0.6122677", "0.6059526", "0.5981057", "0.5915964", "0.5811027", "0.5811027", "0.576799", "0.57553154", "0.57553154", "0.55850506", "0.5583029", "0.5523642", "0.5488878", "0.5488878", "0.5440238", "0.5440238", "0.5430189", "0.5430189", "0.54171866", "0.5398567", "0.53776455", "0.53776455", "0.53453344", "0.5309959", "0.53032166", "0.52840686", "0.5280578", "0.52782", "0.5258833", "0.52442485", "0.5210358", "0.5196947", "0.51863545", "0.5178371", "0.51769465", "0.5151344", "0.51186496", "0.5082594", "0.50563496", "0.5054164", "0.5029499", "0.5029366", "0.50021714", "0.5000071", "0.49990764", "0.49980485", "0.49980485", "0.4990517", "0.4985661", "0.49845123", "0.4978541", "0.49448872", "0.49363098", "0.49345332", "0.4934219", "0.49263397", "0.49251962", "0.49189112", "0.49148172", "0.49135426", "0.49059427", "0.49057838", "0.4893786", "0.48932296", "0.48901907", "0.48882127", "0.48868093", "0.48857602", "0.48799276", "0.4875402", "0.48645687", "0.48557708", "0.48557708", "0.48554018", "0.48282126", "0.4821113", "0.4820851", "0.4820851", "0.4819986", "0.4812233", "0.4811922", "0.47997117", "0.47938776", "0.47935763", "0.4787515", "0.47860354", "0.47819877" ]
0.7221739
5
query the name of an active shader subroutine uniform
func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) { C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *uint8) {\n\tsyscall.Syscall6(gpGetActiveSubroutineUniformName, 6, uintptr(program), uintptr(shadertype), uintptr(index), uintptr(bufsize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(name)))\n}", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *int8) int32 {\n ret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *int8) {\n C.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformName, 5, uintptr(program), uintptr(uniformIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformName)), 0)\n}", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *uint8) int32 {\n\tret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *uint8) int32 {\n\tret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetSubroutineUniformLocation, 3, uintptr(program), uintptr(shadertype), uintptr(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tC.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tC.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func GetUniformLocation(program uint32, name *int8) int32 {\n ret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformBlockName, 5, uintptr(program), uintptr(uniformBlockIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformBlockName)), 0)\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (program Program) GetUniformLocation(name string) UniformLocation {\n\treturn UniformLocation(gl.GetUniformLocation(uint32(program), gl.Str(name+\"\\x00\")))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n C.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetUniformLocation(p Program, name string) Uniform {\n\treturn Uniform{Value: gl.GetUniformLocation(p.Value, gl.Str(name+\"\\x00\"))}\n}", "func (sh *ShaderStd) Name() string { return sh.MtlName }", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (s *Shader) GetUniform(str string) *Uniform {\n\tif uid, ok := s.uniforms[str]; ok {\n\t\treturn uid\n\t}\n\ts.uniforms[str] = &Uniform{\n\t\tname: str,\n\t\tprogram: s.programID,\n\t}\n\treturn s.uniforms[str]\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *int8) uint32 {\n ret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n return (uint32)(ret)\n}", "func (native *OpenGL) GetUniformLocation(program uint32, name string) int32 {\n\treturn gl.GetUniformLocation(program, gl.Str(name+\"\\x00\"))\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetUniformLocation, 2, uintptr(program), uintptr(unsafe.Pointer(name)), 0)\n\treturn (int32)(ret)\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tsyscall.Syscall9(gpGetActiveUniform, 7, uintptr(program), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(xtype)), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tC.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tC.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *uint8) {\n\tsyscall.Syscall6(gpGetActiveSubroutineName, 6, uintptr(program), uintptr(shadertype), uintptr(index), uintptr(bufsize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(name)))\n}", "func (debugging *debuggingOpenGL) GetUniformLocation(program uint32, name string) int32 {\n\tdebugging.recordEntry(\"GetUniformLocation\", program, name)\n\tresult := debugging.gl.GetUniformLocation(program, name)\n\tdebugging.recordExit(\"GetUniformLocation\", result)\n\treturn result\n}", "func GetActiveUniform(p Program, index uint32) (name string, size int, ty Enum) {\n\tvar length, si int32\n\tvar typ uint32\n\tname = strings.Repeat(\"\\x00\", 256)\n\tcname := gl.Str(name)\n\tgl.GetActiveUniform(p.Value, uint32(index), int32(len(name)-1), &length, &si, &typ, cname)\n\tname = name[:strings.IndexRune(name, 0)]\n\treturn name, int(si), Enum(typ)\n}", "func (u *Uniform) Bind() {\n\tif u.id < 0 {\n\t\tu.id = gl.GetUniformLocation(u.program, glString(u.name))\n\t\tif u.id < 0 {\n\t\t\tpanic(fmt.Errorf(\"glGetUniformLocation for \\\"%s\\\" (program %d) returned -1, GL error: %d\", u.name, u.program, gl.GetError()))\n\t\t}\n\t}\n\tswitch value := u.value.(type) {\n\tcase uint32:\n\t\tgl.Uniform1ui(u.id, value)\n\tcase []uint32:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1uiv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2uiv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3uiv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4uiv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase int32:\n\t\tgl.Uniform1i(u.id, value)\n\tcase []int32:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1iv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2iv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3iv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4iv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase float32:\n\t\tgl.Uniform1f(u.id, value)\n\tcase []float32:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1fv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2fv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3fv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4fv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase float64:\n\t\tgl.Uniform1d(u.id, value)\n\tcase []float64:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1dv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2dv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3dv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4dv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase mgl32.Mat2:\n\t\tgl.UniformMatrix2fv(u.id, 1, false, &value[0])\n\tcase mgl32.Mat3:\n\t\tgl.UniformMatrix3fv(u.id, 1, false, &value[0])\n\tcase mgl32.Mat4:\n\t\tgl.UniformMatrix4fv(u.id, 1, false, &value[0])\n\tcase *Texture:\n\t\tvalue.Bind(0) //TODO support multiple textures per-shader\n\t\terr := value.SetUniform(u.id)\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\tcase color.Color:\n\t\tr, g, b, a := toGLColor(value)\n\t\tgl.Uniform4f(u.id, r, g, b, a)\n\tdefault:\n\t\tpanic(ErrUniformInvalidType)\n\t}\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *int8) uint32 {\n ret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n return (uint32)(ret)\n}", "func GetUniformLocation(program Uint, name string) Int {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcname, _ := unpackPCharString(name)\n\t__ret := C.glGetUniformLocation(cprogram, cname)\n\t__v := (Int)(__ret)\n\treturn __v\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tsyscall.Syscall(gpGetUniformfv, 3, uintptr(program), uintptr(location), uintptr(unsafe.Pointer(params)))\n}", "func GetActiveUniform(program Uint, index Uint, bufSize Sizei, length *Sizei, size *Int, kind *Enum, name []byte) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcindex, _ := (C.GLuint)(index), cgoAllocsUnknown\n\tcbufSize, _ := (C.GLsizei)(bufSize), cgoAllocsUnknown\n\tclength, _ := (*C.GLsizei)(unsafe.Pointer(length)), cgoAllocsUnknown\n\tcsize, _ := (*C.GLint)(unsafe.Pointer(size)), cgoAllocsUnknown\n\tckind, _ := (*C.GLenum)(unsafe.Pointer(kind)), cgoAllocsUnknown\n\tcname, _ := (*C.GLchar)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&name)).Data)), cgoAllocsUnknown\n\tC.glGetActiveUniform(cprogram, cindex, cbufSize, clength, csize, ckind, cname)\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveUniformsiv, 5, uintptr(program), uintptr(uniformCount), uintptr(unsafe.Pointer(uniformIndices)), uintptr(pname), uintptr(unsafe.Pointer(params)), 0)\n}", "func (s *Shader) getUniformLocation(name string) (location int32) {\n\t// if we already saved the location, return it\n\tif location, ok := s.uniformLocs[name]; ok {\n\t\treturn location\n\t}\n\n\t// if it's not in our location cache, get it from opengl and save it in the cache\n\tlocation = gl.GetUniformLocation(s.Program, gl.Str(name+\"\\x00\"))\n\tif location == -1 {\n\t\tfmt.Println(\"ERROR: Could not find uniform:\", name)\n\t\treturn\n\t}\n\n\ts.uniformLocs[name] = location\n\treturn\n}", "func (program Program) GetActiveUniforms() int32 {\n\tvar params int32\n\tgl.GetProgramiv(uint32(program), gl.ACTIVE_UNIFORMS, &params)\n\treturn params\n}", "func (s *Shader) UniformFormat() AttrFormat {\n\treturn s.uniformFmt\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func ProgramUniform1fv(program uint32, location int32, count int32, value *float32) {\n C.glowProgramUniform1fv(gpProgramUniform1fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func (native *OpenGL) GLGetUniformLocation(program uint32, name *uint8) int32 {\n\treturn gl.GetUniformLocation(program, name)\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n C.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n C.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func ProgramUniform1f(program uint32, location int32, v0 float32) {\n C.glowProgramUniform1f(gpProgramUniform1f, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0))\n}", "func LoadName(name uint32) {\n C.glowLoadName(gpLoadName, (C.GLuint)(name))\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gpUniform1ui, (C.GLint)(location), (C.GLuint)(v0))\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **int8, uniformIndices *uint32) {\n C.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func (p *literalProcessor) name() string { return \"\" }", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n\treturn (uint32)(ret)\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n\treturn (uint32)(ret)\n}", "func Uniform1f(location int32, v0 float32) {\n C.glowUniform1f(gpUniform1f, (C.GLint)(location), (C.GLfloat)(v0))\n}", "func Uniform1i(location int32, v0 int32) {\n C.glowUniform1i(gpUniform1i, (C.GLint)(location), (C.GLint)(v0))\n}", "func ProgramUniform1i(program uint32, location int32, v0 int32) {\n C.glowProgramUniform1i(gpProgramUniform1i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0))\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *uint8) uint32 {\n\tret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *uint8) uint32 {\n\tret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func ProgramUniform2fv(program uint32, location int32, count int32, value *float32) {\n C.glowProgramUniform2fv(gpProgramUniform2fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func (s *Shader) getUniformBlockLocation(name string) (index uint32) {\n\t// if we already saved the location, return it\n\tif index, ok := s.uniformBIndices[name]; ok {\n\t\treturn index\n\t}\n\n\t// if it's not in our index cache, get it from opengl and save it in the cache\n\tindex = gl.GetUniformBlockIndex(s.Program, gl.Str(name+\"\\x00\"))\n\ts.uniformBIndices[name] = index\n\treturn\n}", "func ProgramUniform1ui(program uint32, location int32, v0 uint32) {\n C.glowProgramUniform1ui(gpProgramUniform1ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0))\n}", "func GetShaderi(s Shader, pname Enum) int {\n\tvar result int32\n\tgl.GetShaderiv(s.Value, uint32(pname), &result)\n\treturn int(result)\n}", "func GetUniformfv(program Uint, location Int, params []Float) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tclocation, _ := (C.GLint)(location), cgoAllocsUnknown\n\tcparams, _ := (*C.GLfloat)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&params)).Data)), cgoAllocsUnknown\n\tC.glGetUniformfv(cprogram, clocation, cparams)\n}", "func (args *SPH_UDF_ARGS) arg_name(idx int) string {\n\treturn GoString((*C.char)(args.nameptr(idx)))\n}", "func Uniform1uiv(location int32, count int32, value *uint32) {\n C.glowUniform1uiv(gpUniform1uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func (debugging *debuggingOpenGL) Uniform1i(location int32, value int32) {\n\tdebugging.recordEntry(\"Uniform1i\", location, value)\n\tdebugging.gl.Uniform1i(location, value)\n\tdebugging.recordExit(\"Uniform1i\")\n}", "func Uniform1fv(location int32, count int32, value *float32) {\n C.glowUniform1fv(gpUniform1fv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func (gl *WebGL) GetUniformLocation(shaderProgram WebGLShaderProgram, location string) WebGLUniformLocation {\n\treturn gl.context.Call(\"getUniformLocation\", shaderProgram, location)\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform2f(program uint32, location int32, v0 float32, v1 float32) {\n C.glowProgramUniform2f(gpProgramUniform2f, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tC.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tC.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformBlockiv(gpGetActiveUniformBlockiv, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformBlockiv(gpGetActiveUniformBlockiv, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret, _, _ := syscall.Syscall(gpGetUniformBlockIndex, 2, uintptr(program), uintptr(unsafe.Pointer(uniformBlockName)), 0)\n\treturn (uint32)(ret)\n}", "func (am *Manager) GetShader(name string) (uint32, bool) {\n\tif shader, ok := am.Shaders[name]; ok {\n\t\treturn shader, true\n\t}\n\n\tif am.Parent != nil {\n\t\treturn am.Parent.GetShader(name)\n\t}\n\n\treturn 0, false\n}", "func ProgramUniform2ui(program uint32, location int32, v0 uint32, v1 uint32) {\n C.glowProgramUniform2ui(gpProgramUniform2ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func (self *AbstractFilter) SyncUniforms() {\n self.Object.Call(\"syncUniforms\")\n}", "func ProgramUniform1fv(program uint32, location int32, count int32, value *float32) {\n\tC.glowProgramUniform1fv(gpProgramUniform1fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func ProgramUniform1fv(program uint32, location int32, count int32, value *float32) {\n\tC.glowProgramUniform1fv(gpProgramUniform1fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n C.glowGetShaderiv(gpGetShaderiv, (C.GLuint)(shader), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (gl *WebGL) Uniform1i(location WebGLUniformLocation, value int) {\n\tgl.context.Call(\"uniform1i\", location, value)\n}", "func ProgramUniformMatrix2fv(program uint32, location int32, count int32, transpose bool, value *float32) {\n C.glowProgramUniformMatrix2fv(gpProgramUniformMatrix2fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func GetAttribLocation(program uint32, name *int8) int32 {\n ret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniformMatrix4x2fv(program uint32, location int32, count int32, transpose bool, value *float32) {\n C.glowProgramUniformMatrix4x2fv(gpProgramUniformMatrix4x2fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value)))\n}" ]
[ "0.7956281", "0.73926115", "0.7226152", "0.71209747", "0.6972427", "0.6972427", "0.68248636", "0.67904854", "0.6734527", "0.67019194", "0.67019194", "0.654478", "0.6482536", "0.6405335", "0.6405335", "0.63659436", "0.63659436", "0.6266825", "0.6263271", "0.62275076", "0.6205788", "0.6205788", "0.6101747", "0.60905826", "0.60558486", "0.5981748", "0.59689206", "0.59530383", "0.5919582", "0.5912289", "0.58868885", "0.5843695", "0.5839134", "0.5839134", "0.5807681", "0.5807681", "0.57997715", "0.57543945", "0.57422316", "0.5733864", "0.5697719", "0.5604423", "0.55891246", "0.5587329", "0.5582421", "0.55817086", "0.5550105", "0.5548347", "0.5512765", "0.5512765", "0.54572153", "0.5422968", "0.5412452", "0.5406796", "0.53857636", "0.5365368", "0.53506273", "0.5346518", "0.52976865", "0.5280895", "0.5274143", "0.52536637", "0.52536637", "0.52380663", "0.523426", "0.52240735", "0.52138734", "0.52138734", "0.5209628", "0.51940984", "0.5188638", "0.5172413", "0.51722276", "0.51633984", "0.5162243", "0.5131608", "0.5122786", "0.511393", "0.51089567", "0.5086973", "0.5086973", "0.50762814", "0.50702", "0.50702", "0.5065388", "0.5065388", "0.5064845", "0.5049144", "0.5026228", "0.50222355", "0.5021017", "0.5021017", "0.4994184", "0.49885032", "0.49646625", "0.49614862", "0.49586254", "0.49586254", "0.49456084" ]
0.7716004
2
Returns information about an active uniform variable for the specified program object
func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) { C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (program Program) GetActiveUniforms() int32 {\n\tvar params int32\n\tgl.GetProgramiv(uint32(program), gl.ACTIVE_UNIFORMS, &params)\n\treturn params\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformName, 5, uintptr(program), uintptr(uniformIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformName)), 0)\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tsyscall.Syscall9(gpGetActiveUniform, 7, uintptr(program), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(xtype)), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniform(p Program, index uint32) (name string, size int, ty Enum) {\n\tvar length, si int32\n\tvar typ uint32\n\tname = strings.Repeat(\"\\x00\", 256)\n\tcname := gl.Str(name)\n\tgl.GetActiveUniform(p.Value, uint32(index), int32(len(name)-1), &length, &si, &typ, cname)\n\tname = name[:strings.IndexRune(name, 0)]\n\treturn name, int(si), Enum(typ)\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveUniformsiv, 5, uintptr(program), uintptr(uniformCount), uintptr(unsafe.Pointer(uniformIndices)), uintptr(pname), uintptr(unsafe.Pointer(params)), 0)\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n C.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n C.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetActiveUniform(program Uint, index Uint, bufSize Sizei, length *Sizei, size *Int, kind *Enum, name []byte) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcindex, _ := (C.GLuint)(index), cgoAllocsUnknown\n\tcbufSize, _ := (C.GLsizei)(bufSize), cgoAllocsUnknown\n\tclength, _ := (*C.GLsizei)(unsafe.Pointer(length)), cgoAllocsUnknown\n\tcsize, _ := (*C.GLint)(unsafe.Pointer(size)), cgoAllocsUnknown\n\tckind, _ := (*C.GLenum)(unsafe.Pointer(kind)), cgoAllocsUnknown\n\tcname, _ := (*C.GLchar)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&name)).Data)), cgoAllocsUnknown\n\tC.glGetActiveUniform(cprogram, cindex, cbufSize, clength, csize, ckind, cname)\n}", "func (obj *alpha) Variable() string {\n\treturn obj.variable\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *int8) {\n C.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func ProgramUniform2ui(program uint32, location int32, v0 uint32, v1 uint32) {\n C.glowProgramUniform2ui(gpProgramUniform2ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *uint8) {\n\tsyscall.Syscall6(gpGetActiveSubroutineUniformName, 6, uintptr(program), uintptr(shadertype), uintptr(index), uintptr(bufsize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(name)))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tsyscall.Syscall(gpGetUniformfv, 3, uintptr(program), uintptr(location), uintptr(unsafe.Pointer(params)))\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func GetActiveAttrib(p Program, index uint32) (name string, size int, ty Enum) {\n\tvar length, si int32\n\tvar typ uint32\n\tname = strings.Repeat(\"\\x00\", 256)\n\tcname := gl.Str(name)\n\tgl.GetActiveAttrib(p.Value, uint32(index), int32(len(name)-1), &length, &si, &typ, cname)\n\tname = name[:strings.IndexRune(name, 0)]\n\treturn name, int(si), Enum(typ)\n}", "func GetUniformLocation(program uint32, name *int8) int32 {\n ret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tsyscall.Syscall9(gpGetActiveAttrib, 7, uintptr(program), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(xtype)), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n C.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))\n}", "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformBlockName, 5, uintptr(program), uintptr(uniformBlockIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformBlockName)), 0)\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tsyscall.Syscall(gpGetUniformiv, 3, uintptr(program), uintptr(location), uintptr(unsafe.Pointer(params)))\n}", "func ProgramUniform3uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform3uiv(gpProgramUniform3uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tC.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tC.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func (obj *declaration) Variable() string {\n\treturn obj.name\n}", "func ProgramUniform1ui(program uint32, location int32, v0 uint32) {\n C.glowProgramUniform1ui(gpProgramUniform1ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tC.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tC.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveUniformBlockiv, 4, uintptr(program), uintptr(uniformBlockIndex), uintptr(pname), uintptr(unsafe.Pointer(params)), 0, 0)\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n\tsyscall.Syscall6(gpProgramUniform2uiv, 4, uintptr(program), uintptr(location), uintptr(count), uintptr(unsafe.Pointer(value)), 0, 0)\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v1 uint32, v2 uint32) {\n C.glowProgramUniform3ui(gpProgramUniform3ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tC.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tC.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n\tsyscall.Syscall(gpActiveShaderProgram, 2, uintptr(pipeline), uintptr(program), 0)\n}", "func GetAttribLocation(program uint32, name *int8) int32 {\n ret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformBlockiv(gpGetActiveUniformBlockiv, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformBlockiv(gpGetActiveUniformBlockiv, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (s *SparkCoreAdaptor) Variable(name string) (result string, err error) {\n\turl := fmt.Sprintf(\"%v/%s?access_token=%s\", s.deviceURL(), name, s.AccessToken)\n\tresp, err := s.requestToSpark(\"GET\", url, nil)\n\n\tif err != nil {\n\t\treturn\n\t}\n\n\tval := resp[\"result\"]\n\tswitch val.(type) {\n\tcase bool:\n\t\tresult = strconv.FormatBool(val.(bool))\n\tcase float64:\n\t\tresult = strconv.FormatFloat(val.(float64), 'f', -1, 64)\n\tcase string:\n\t\tresult = val.(string)\n\t}\n\n\treturn\n}", "func (u *Uniform) Bind() {\n\tif u.id < 0 {\n\t\tu.id = gl.GetUniformLocation(u.program, glString(u.name))\n\t\tif u.id < 0 {\n\t\t\tpanic(fmt.Errorf(\"glGetUniformLocation for \\\"%s\\\" (program %d) returned -1, GL error: %d\", u.name, u.program, gl.GetError()))\n\t\t}\n\t}\n\tswitch value := u.value.(type) {\n\tcase uint32:\n\t\tgl.Uniform1ui(u.id, value)\n\tcase []uint32:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1uiv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2uiv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3uiv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4uiv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase int32:\n\t\tgl.Uniform1i(u.id, value)\n\tcase []int32:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1iv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2iv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3iv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4iv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase float32:\n\t\tgl.Uniform1f(u.id, value)\n\tcase []float32:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1fv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2fv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3fv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4fv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase float64:\n\t\tgl.Uniform1d(u.id, value)\n\tcase []float64:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1dv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2dv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3dv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4dv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase mgl32.Mat2:\n\t\tgl.UniformMatrix2fv(u.id, 1, false, &value[0])\n\tcase mgl32.Mat3:\n\t\tgl.UniformMatrix3fv(u.id, 1, false, &value[0])\n\tcase mgl32.Mat4:\n\t\tgl.UniformMatrix4fv(u.id, 1, false, &value[0])\n\tcase *Texture:\n\t\tvalue.Bind(0) //TODO support multiple textures per-shader\n\t\terr := value.SetUniform(u.id)\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\tcase color.Color:\n\t\tr, g, b, a := toGLColor(value)\n\t\tgl.Uniform4f(u.id, r, g, b, a)\n\tdefault:\n\t\tpanic(ErrUniformInvalidType)\n\t}\n}", "func (program Program) GetUniformLocation(name string) UniformLocation {\n\treturn UniformLocation(gl.GetUniformLocation(uint32(program), gl.Str(name+\"\\x00\")))\n}", "func ProgramUniform1i(program uint32, location int32, v0 int32) {\n C.glowProgramUniform1i(gpProgramUniform1i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0))\n}", "func UintVar(p *uint, name string, value uint, usage string) {\n\tCommandLine.VarP(newUintValue(value, p), name, \"\", usage)\n}", "func (program Program) GetActiveAttributes() int32 {\n\tvar params int32\n\tgl.GetProgramiv(uint32(program), gl.ACTIVE_ATTRIBUTES, &params)\n\treturn params\n}", "func ProgramUniform2ui(program uint32, location int32, v0 uint32, v1 uint32) {\n\tC.glowProgramUniform2ui(gpProgramUniform2ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func ProgramUniform2ui(program uint32, location int32, v0 uint32, v1 uint32) {\n\tC.glowProgramUniform2ui(gpProgramUniform2ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gpUniform1ui, (C.GLint)(location), (C.GLuint)(v0))\n}", "func UintVar(p *uint, name string, value uint, usage string) {\n\tEnvironment.UintVar(p, name, value, usage)\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetUniformLocation, 2, uintptr(program), uintptr(unsafe.Pointer(name)), 0)\n\treturn (int32)(ret)\n}", "func ProgramUniform3i(program uint32, location int32, v0 int32, v1 int32, v2 int32) {\n C.glowProgramUniform3i(gpProgramUniform3i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2))\n}", "func ProgramUniform3uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform3uiv(gpProgramUniform3uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform3uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform3uiv(gpProgramUniform3uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform4ui(program uint32, location int32, v0 uint32, v1 uint32, v2 uint32, v3 uint32) {\n C.glowProgramUniform4ui(gpProgramUniform4ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2), (C.GLuint)(v3))\n}", "func GetUniformLocation(p Program, name string) Uniform {\n\treturn Uniform{Value: gl.GetUniformLocation(p.Value, gl.Str(name+\"\\x00\"))}\n}", "func (debugging *debuggingOpenGL) GetUniformLocation(program uint32, name string) int32 {\n\tdebugging.recordEntry(\"GetUniformLocation\", program, name)\n\tresult := debugging.gl.GetUniformLocation(program, name)\n\tdebugging.recordExit(\"GetUniformLocation\", result)\n\treturn result\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func GetActiveAttrib(program Uint, index Uint, bufSize Sizei, length *Sizei, size *Int, kind *Enum, name []byte) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcindex, _ := (C.GLuint)(index), cgoAllocsUnknown\n\tcbufSize, _ := (C.GLsizei)(bufSize), cgoAllocsUnknown\n\tclength, _ := (*C.GLsizei)(unsafe.Pointer(length)), cgoAllocsUnknown\n\tcsize, _ := (*C.GLint)(unsafe.Pointer(size)), cgoAllocsUnknown\n\tckind, _ := (*C.GLenum)(unsafe.Pointer(kind)), cgoAllocsUnknown\n\tcname, _ := (*C.GLchar)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&name)).Data)), cgoAllocsUnknown\n\tC.glGetActiveAttrib(cprogram, cindex, cbufSize, clength, csize, ckind, cname)\n}", "func ProgramUniform2i(program uint32, location int32, v0 int32, v1 int32) {\n C.glowProgramUniform2i(gpProgramUniform2i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1))\n}", "func GetUniformLocation(program Uint, name string) Int {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcname, _ := unpackPCharString(name)\n\t__ret := C.glGetUniformLocation(cprogram, cname)\n\t__v := (Int)(__ret)\n\treturn __v\n}", "func (debugging *debuggingOpenGL) Uniform1i(location int32, value int32) {\n\tdebugging.recordEntry(\"Uniform1i\", location, value)\n\tdebugging.gl.Uniform1i(location, value)\n\tdebugging.recordExit(\"Uniform1i\")\n}", "func ProgramUniform3uiv(program uint32, location int32, count int32, value *uint32) {\n\tsyscall.Syscall6(gpProgramUniform3uiv, 4, uintptr(program), uintptr(location), uintptr(count), uintptr(unsafe.Pointer(value)), 0, 0)\n}", "func UintVar(p *uint, name string, value uint, usage string) {\n\tex.FlagSet.UintVar(p, name, value, usage)\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n\tC.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n\tC.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **int8, uniformIndices *uint32) {\n C.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func Uniform3ui(location int32, v0 uint32, v1 uint32, v2 uint32) {\n C.glowUniform3ui(gpUniform3ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2))\n}", "func Uniform2ui(location int32, v0 uint32, v1 uint32) {\n C.glowUniform2ui(gpUniform2ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func ProgramUniform4uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform4uiv(gpProgramUniform4uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform4i(program uint32, location int32, v0 int32, v1 int32, v2 int32, v3 int32) {\n C.glowProgramUniform4i(gpProgramUniform4i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2), (C.GLint)(v3))\n}", "func (obj *register) Variable() string {\n\treturn obj.variable\n}", "func (s *Shader) UniformFormat() AttrFormat {\n\treturn s.uniformFmt\n}", "func GetAttribLocation(program Uint, name string) Int {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcname, _ := unpackPCharString(name)\n\t__ret := C.glGetAttribLocation(cprogram, cname)\n\t__v := (Int)(__ret)\n\treturn __v\n}", "func GetAttribLocation(p Program, name string) Attrib {\n\treturn Attrib{Value: uint(gl.GetAttribLocation(p.Value, gl.Str(name+\"\\x00\")))}\n}", "func ProgramUniform2ui(program uint32, location int32, v0 uint32, v1 uint32) {\n\tsyscall.Syscall6(gpProgramUniform2ui, 4, uintptr(program), uintptr(location), uintptr(v0), uintptr(v1), 0, 0)\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *int8) uint32 {\n ret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n return (uint32)(ret)\n}", "func Uniform1i(location int32, v0 int32) {\n C.glowUniform1i(gpUniform1i, (C.GLint)(location), (C.GLint)(v0))\n}", "func (p *Program) getParameter(param uint32) int {\n\tvar v int32\n\tgl.GetProgramiv(uint32(p.glHandle), param, &v)\n\treturn int(v)\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n\tsyscall.Syscall6(gpProgramUniform1uiv, 4, uintptr(program), uintptr(location), uintptr(count), uintptr(unsafe.Pointer(value)), 0, 0)\n}", "func UintVar(p *uint, name string, value uint, usage string) {\n\tadd(name, newUintValue(value, p), usage)\n}", "func GetProgramiv(program uint32, pname uint32, params *int32) {\n C.glowGetProgramiv(gpGetProgramiv, (C.GLuint)(program), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func Uniform3uiv(location int32, count int32, value *uint32) {\n C.glowUniform3uiv(gpUniform3uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func (s *Shader) GetUniform(str string) *Uniform {\n\tif uid, ok := s.uniforms[str]; ok {\n\t\treturn uid\n\t}\n\ts.uniforms[str] = &Uniform{\n\t\tname: str,\n\t\tprogram: s.programID,\n\t}\n\treturn s.uniforms[str]\n}", "func GetProgrami(p Program, pname Enum) int {\n\tvar result int32\n\tgl.GetProgramiv(p.Value, uint32(pname), &result)\n\treturn int(result)\n}" ]
[ "0.6772707", "0.6606064", "0.6442605", "0.6442313", "0.6403555", "0.6375765", "0.6344598", "0.6344598", "0.6302104", "0.6131005", "0.5971688", "0.5971688", "0.58761233", "0.58415115", "0.5654211", "0.5642813", "0.56327254", "0.5568339", "0.55317503", "0.551761", "0.551761", "0.5505664", "0.55026937", "0.55026937", "0.5467234", "0.5460462", "0.54576665", "0.5390622", "0.53278303", "0.52918756", "0.5284073", "0.5263669", "0.52609754", "0.5257788", "0.52356976", "0.5224651", "0.5210598", "0.5210598", "0.5202246", "0.5202246", "0.51913273", "0.5180485", "0.517209", "0.517209", "0.5154981", "0.51521033", "0.5146144", "0.51447", "0.51447", "0.51418936", "0.51357865", "0.51283014", "0.51283014", "0.51256746", "0.5112822", "0.5111679", "0.5104821", "0.50595194", "0.50553787", "0.5051373", "0.5051373", "0.50429875", "0.50380343", "0.5030983", "0.502598", "0.5005267", "0.5005267", "0.5003356", "0.50011325", "0.49984112", "0.49916312", "0.49916312", "0.49662793", "0.49628863", "0.49609914", "0.49557027", "0.49481115", "0.49456707", "0.49368384", "0.49368384", "0.4932102", "0.49266174", "0.49194053", "0.49184704", "0.49139088", "0.49086994", "0.49002504", "0.4893833", "0.4884476", "0.4881642", "0.48755187", "0.4869643", "0.48679677", "0.4860967", "0.48584685", "0.48300096", "0.48004785", "0.47972858", "0.47946653" ]
0.63137263
9
retrieve the name of an active uniform block
func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) { C.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *int8) {\n C.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformBlockName, 5, uintptr(program), uintptr(uniformBlockIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformBlockName)), 0)\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *int8) uint32 {\n ret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n return (uint32)(ret)\n}", "func (s *Shader) getUniformBlockLocation(name string) (index uint32) {\n\t// if we already saved the location, return it\n\tif index, ok := s.uniformBIndices[name]; ok {\n\t\treturn index\n\t}\n\n\t// if it's not in our index cache, get it from opengl and save it in the cache\n\tindex = gl.GetUniformBlockIndex(s.Program, gl.Str(name+\"\\x00\"))\n\ts.uniformBIndices[name] = index\n\treturn\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformName, 5, uintptr(program), uintptr(uniformIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformName)), 0)\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformBlockiv(gpGetActiveUniformBlockiv, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformBlockiv(gpGetActiveUniformBlockiv, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveUniformBlockiv, 4, uintptr(program), uintptr(uniformBlockIndex), uintptr(pname), uintptr(unsafe.Pointer(params)), 0, 0)\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (block *RawBlockState) Name() string {\n\treturn block.name\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n\treturn (uint32)(ret)\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n\treturn (uint32)(ret)\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *uint8) {\n\tsyscall.Syscall6(gpGetActiveSubroutineUniformName, 6, uintptr(program), uintptr(shadertype), uintptr(index), uintptr(bufsize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(name)))\n}", "func (block *BasicBlock) GetName() string {\n\treturn block.Name\n}", "func GetActiveUniform(p Program, index uint32) (name string, size int, ty Enum) {\n\tvar length, si int32\n\tvar typ uint32\n\tname = strings.Repeat(\"\\x00\", 256)\n\tcname := gl.Str(name)\n\tgl.GetActiveUniform(p.Value, uint32(index), int32(len(name)-1), &length, &si, &typ, cname)\n\tname = name[:strings.IndexRune(name, 0)]\n\treturn name, int(si), Enum(typ)\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret, _, _ := syscall.Syscall(gpGetUniformBlockIndex, 2, uintptr(program), uintptr(unsafe.Pointer(uniformBlockName)), 0)\n\treturn (uint32)(ret)\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (sh *ShaderStd) Name() string { return sh.MtlName }", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tsyscall.Syscall9(gpGetActiveUniform, 7, uintptr(program), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(xtype)), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func (algorithm AnsiX98PinBlockAlgorithm) GetName() string {\n\treturn \"Ansi X9.8\"\n}", "func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) {\n C.glowUniformBlockBinding(gpUniformBlockBinding, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLuint)(uniformBlockBinding))\n}", "func (b *Block) Type() string {\n\ttypeNameObj := b.typeName.content.(*identifier)\n\treturn string(typeNameObj.token.Bytes)\n}", "func GetActiveUniform(program Uint, index Uint, bufSize Sizei, length *Sizei, size *Int, kind *Enum, name []byte) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcindex, _ := (C.GLuint)(index), cgoAllocsUnknown\n\tcbufSize, _ := (C.GLsizei)(bufSize), cgoAllocsUnknown\n\tclength, _ := (*C.GLsizei)(unsafe.Pointer(length)), cgoAllocsUnknown\n\tcsize, _ := (*C.GLint)(unsafe.Pointer(size)), cgoAllocsUnknown\n\tckind, _ := (*C.GLenum)(unsafe.Pointer(kind)), cgoAllocsUnknown\n\tcname, _ := (*C.GLchar)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&name)).Data)), cgoAllocsUnknown\n\tC.glGetActiveUniform(cprogram, cindex, cbufSize, clength, csize, ckind, cname)\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (self *StateStore) GetCurrentBlock() (common.Hash, uint64, error) {\n\tkey := self.getCurrentBlockKey()\n\tdata, err := self.store.Get(key)\n\tif err != nil {\n\t\treturn common.Hash{}, 0, err\n\t}\n\treader := bytes.NewReader(data)\n\tblockHash := common.Hash{}\n\terr = blockHash.Deserialize(reader)\n\tif err != nil {\n\t\treturn common.Hash{}, 0, err\n\t}\n\theight, err := serialization.ReadUint64(reader)\n\tif err != nil {\n\t\treturn common.Hash{}, 0, err\n\t}\n\treturn blockHash, height, nil\n}", "func (t T) Block() uint32 { return t.block }", "func (a *Arena) Name() string { return a.name }", "func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) {\n\tsyscall.Syscall(gpUniformBlockBinding, 3, uintptr(program), uintptr(uniformBlockIndex), uintptr(uniformBlockBinding))\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (*CreateCompleteBonding) Name() string {\n\treturn \"CreateBlockReward\"\n}", "func (bd *BlockDAG) GetName() string {\n\treturn bd.instance.GetName()\n}", "func (bo *BlockObject) toString() string {\n\treturn fmt.Sprintf(\"<Block: %s>\", bo.instructionSet.filename)\n}", "func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) {\n\tC.glowUniformBlockBinding(gpUniformBlockBinding, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLuint)(uniformBlockBinding))\n}", "func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) {\n\tC.glowUniformBlockBinding(gpUniformBlockBinding, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLuint)(uniformBlockBinding))\n}", "func getBlockNameFromUrl(rurl string) string {\n\tvar blk string\n\tif strings.Contains(rurl, \"replicas/cms/\") {\n\t\t// url/replicas/cms/blk/datasets\n\t\tparts := strings.Split(rurl, \"replicas/cms/\")\n\t\tif len(parts) > 1 {\n\t\t\tarr := strings.Split(parts[1], \"/datasets\")\n\t\t\tblk = arr[0]\n\t\t}\n\t} else if strings.Contains(rurl, \"dids/cms/\") {\n\t\t// url/dids/cms/blk/dids\n\t\tparts := strings.Split(rurl, \"dids/cms/\")\n\t\tif len(parts) > 1 {\n\t\t\tarr := strings.Split(parts[1], \"/dids\")\n\t\t\tblk = arr[0]\n\t\t}\n\t}\n\tb, err := url.QueryUnescape(blk)\n\tif err == nil {\n\t\treturn b\n\t}\n\treturn blk\n}", "func LoadName(name uint32) {\n C.glowLoadName(gpLoadName, (C.GLuint)(name))\n}", "func (w WeibullMin) GetName() string {\n\treturn \"Weibull Minimum\"\n}", "func GetUniformLocation(program uint32, name *int8) int32 {\n ret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func (s *Shader) UniformFormat() AttrFormat {\n\treturn s.uniformFmt\n}", "func (s *Shader) GetUniform(str string) *Uniform {\n\tif uid, ok := s.uniforms[str]; ok {\n\t\treturn uid\n\t}\n\ts.uniforms[str] = &Uniform{\n\t\tname: str,\n\t\tprogram: s.programID,\n\t}\n\treturn s.uniforms[str]\n}", "func (a *file_asset) Name() string {\n\treturn a.name\n}", "func (program Program) GetUniformLocation(name string) UniformLocation {\n\treturn UniformLocation(gl.GetUniformLocation(uint32(program), gl.Str(name+\"\\x00\")))\n}", "func (m *material) label() string { return m.name }", "func (p *literalProcessor) name() string { return \"\" }", "func (n *BindFnNode) Name() string { return n.name }", "func (b *Base) getName() string {\n\treturn b.name\n}", "func (s MpuSensor) GetName() string {\n\treturn \"Ac-Mg-Gy\"\n}", "func (h *MPU6050Driver) Name() string { return h.name }", "func ChainName() string {\n\tglobalData.RLock()\n\tdefer globalData.RUnlock()\n\treturn globalData.chain\n}", "func getAssetByName(assetName string){\n\n}", "func (bm BitMap) Name() string { return bm.name }", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveUniformsiv, 5, uintptr(program), uintptr(uniformCount), uintptr(unsafe.Pointer(uniformIndices)), uintptr(pname), uintptr(unsafe.Pointer(params)), 0)\n}", "func (b *Buffer) GetName() string {\n\treturn b.name\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (_Token *TokenCaller) Name(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Token.contract.Call(opts, &out, \"name\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}", "func (l *Loader) Name() string { return l.cfg.Name }", "func (app *BurrowMint) BeginBlock(hash []byte, header *abci.Header) {\n\n}", "func (s *Shader) getUniformLocation(name string) (location int32) {\n\t// if we already saved the location, return it\n\tif location, ok := s.uniformLocs[name]; ok {\n\t\treturn location\n\t}\n\n\t// if it's not in our location cache, get it from opengl and save it in the cache\n\tlocation = gl.GetUniformLocation(s.Program, gl.Str(name+\"\\x00\"))\n\tif location == -1 {\n\t\tfmt.Println(\"ERROR: Could not find uniform:\", name)\n\t\treturn\n\t}\n\n\ts.uniformLocs[name] = location\n\treturn\n}", "func (sys *System) GetProfileBlock(ctx *Context) (string, error) {\n\tLog(INFO, ctx, \"System.GetProfileBlock\")\n\tprofile := pprof.Lookup(\"block\")\n\tif profile == nil {\n\t\terr := fmt.Errorf(\"No block profile\")\n\t\tLog(ERROR, ctx, \"System.GetProfileBlock\", \"error\", err, \"when\", \"lookup\")\n\t\treturn \"\", err\n\t}\n\tbuf := new(bytes.Buffer)\n\terr := profile.WriteTo(buf, 0)\n\tif err != nil {\n\t\tLog(ERROR, ctx, \"System.GetProfileBlock\", \"error\", err, \"when\", \"writ\")\n\t\treturn \"\", err\n\t}\n\n\treturn buf.String(), nil\n}", "func (f LetFunction) Name() string {\n\treturn f.name\n}", "func (self Block) ToString() string {\n\treturn fmt.Sprintf(\"%x %s %s\", self.PrevHash, self.Name, self.Nonce)\n}", "func (r *Roster) Name() string { return ModuleName }", "func (s *StateA) Name() string {\n\treturn \"A\"\n}", "func (m *AreaMutation) Name() (r string, exists bool) {\n\tv := m.name\n\tif v == nil {\n\t\treturn\n\t}\n\treturn *v, true\n}", "func (program Program) GetActiveUniforms() int32 {\n\tvar params int32\n\tgl.GetProgramiv(uint32(program), gl.ACTIVE_UNIFORMS, &params)\n\treturn params\n}", "func (Tellurium) GetName() string {\n\treturn \"Tellurium\"\n}", "func (self *TileSprite) FrameName() string{\n return self.Object.Get(\"frameName\").String()\n}", "func (ba BytesAsset) UniqueName() string {\n\th := md5.New()\n\t_, err := bytes.NewBuffer(ba).WriteTo(h)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treturn fmt.Sprintf(\"%x\", h.Sum(nil))\n}", "func (b Block) ToString() string {\n\treturn fmt.Sprintf(\"Index: %d, TimeStamp: %s, BPM: %d, Hash: %x, PrevHash: %x\", b.Index, b.Timestamp, b.BPM, b.hash, b.prevHash)\n}", "func (wd *OpenSlots) GetName() string {\n\treturn \"open-slots\"\n}", "func (cs *ConsensusSet) currentBlockID() types.BlockID {\n\treturn cs.db.getPath(cs.height())\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *uint8) {\n\tsyscall.Syscall6(gpGetActiveSubroutineName, 6, uintptr(program), uintptr(shadertype), uintptr(index), uintptr(bufsize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(name)))\n}", "func newBlock(t nbt.Tag) BlockState {\r\n\tblock := BlockState{}\r\n\tblock.Name = t.Compound()[\"Name\"].String()\r\n\tblock.parseProperties(t)\r\n\treturn block\r\n}", "func (g grid) getRandomUnoccupiedPixelBlock() {\n\n}", "func (Samarium) GetName() string {\n\treturn \"Samarium\"\n}", "func (n NamedComponents) Name() string {\n\treturn n.uniqueComponent\n}", "func (r MemRegion) Name() string {\n\treturn r.name\n}", "func GetName() string {\n\treturn newX2ethereum().GetName()\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (g componentSourceGenerator) GetName() string {\n\treturn g.Name\n}", "func GetUniformLocation(p Program, name string) Uniform {\n\treturn Uniform{Value: gl.GetUniformLocation(p.Value, gl.Str(name+\"\\x00\"))}\n}", "func blocknum(s string) int64 {\n\tswitch s {\n\tcase \"earliest\":\n\t\treturn 0\n\tcase \"latest\":\n\t\treturn seth.Latest\n\tcase \"pending\":\n\t\treturn seth.Pending\n\tdefault:\n\t\tbn, err := strconv.ParseInt(s, 0, 64)\n\t\tif err != nil {\n\t\t\tfatalf(\"bad block specifier %q: %s\\n\", s, err)\n\t\t}\n\t\treturn bn\n\t}\n}", "func (m3 *DatatypeMapperMurmur3) Name() string {\n\treturn m3.name\n}", "func (d Dispatcher) LatestBlock() (string, error) {\n\tblock, err := d.GetBC().GetLatestBlock()\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tblockBytes, err := helpers.Serialize(block)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn string(blockBytes), nil\n}", "func (_StakingToken *StakingTokenCaller) Name(opts *bind.CallOpts) (string, error) {\n\tvar out []interface{}\n\terr := _StakingToken.contract.Call(opts, &out, \"name\")\n\n\tif err != nil {\n\t\treturn *new(string), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(string)).(*string)\n\n\treturn out0, err\n\n}", "func CurrentBlock() uint64 {\n\tblock, err := eth.BlockByNumber(context.TODO(), nil)\n\tif err != nil {\n\t\tfmt.Printf(\"Error fetching current block height: %v\\n\", err)\n\t\treturn 0\n\t}\n\treturn block.NumberU64()\n}", "func (s *Shader) SetUniformBlock(name string, value interface{}, size int) {\n\t// check if the uniform buffer object already exists\n\tubo, ok := s.uniformBOs[name]\n\tif !ok {\n\t\t// if not, generate one\n\t\tgl.GenBuffers(1, &ubo)\n\t\ts.uniformBOs[name] = ubo\n\t}\n\n\tgl.BindBuffer(gl.UNIFORM_BUFFER, ubo)\n\n\t// set the new data\n\tgl.BufferData(gl.UNIFORM_BUFFER, size, nil, gl.DYNAMIC_DRAW)\n\tgl.BindBufferBase(gl.UNIFORM_BUFFER, s.getUniformBlockLocation(name), ubo)\n}", "func (_ EntityHeadLook) Name() string { return \"*EntityHeadLook\" }", "func (mh *ModHasher) Name() string {\n\treturn fmt.Sprintf(\"ModHash[%d]\", mh.Buckets)\n}" ]
[ "0.8630054", "0.8145437", "0.71880054", "0.6902412", "0.6902412", "0.67754745", "0.6747403", "0.67416257", "0.667837", "0.64863706", "0.64863706", "0.64119375", "0.6393622", "0.6319386", "0.6319386", "0.6221709", "0.6167045", "0.6167045", "0.61140615", "0.61140615", "0.6101059", "0.6050986", "0.5973418", "0.5957147", "0.58406883", "0.58321583", "0.5723458", "0.5682531", "0.56020176", "0.5415167", "0.5412974", "0.5352752", "0.52888316", "0.5284432", "0.5283379", "0.52765536", "0.526843", "0.526843", "0.52212805", "0.52196664", "0.5217642", "0.5215391", "0.5215391", "0.5174954", "0.5170042", "0.5127944", "0.5124763", "0.51194906", "0.51146924", "0.51090723", "0.5092222", "0.5065624", "0.5064735", "0.50627244", "0.50592875", "0.505718", "0.5039387", "0.50275254", "0.5007513", "0.4999208", "0.49991307", "0.4993828", "0.49903548", "0.49903548", "0.49881795", "0.4979459", "0.49728066", "0.49715617", "0.49703315", "0.49645656", "0.4959593", "0.49434707", "0.49349812", "0.49285528", "0.49277487", "0.49225995", "0.49191275", "0.49182007", "0.49178252", "0.4916096", "0.49106085", "0.49068952", "0.4897349", "0.48957267", "0.48953843", "0.48933598", "0.48920283", "0.48839048", "0.4875109", "0.48724195", "0.48709038", "0.48679155", "0.48669812", "0.48627013", "0.48598742", "0.4856694", "0.48565048", "0.48503804", "0.48494375" ]
0.82788074
2
query information about an active uniform block
func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) { C.glowGetActiveUniformBlockiv(gpGetActiveUniformBlockiv, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *int8) {\n C.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveUniformBlockiv, 4, uintptr(program), uintptr(uniformBlockIndex), uintptr(pname), uintptr(unsafe.Pointer(params)), 0, 0)\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformBlockName, 5, uintptr(program), uintptr(uniformBlockIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformBlockName)), 0)\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tC.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tC.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *int8) uint32 {\n ret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n return (uint32)(ret)\n}", "func (s *Shader) getUniformBlockLocation(name string) (index uint32) {\n\t// if we already saved the location, return it\n\tif index, ok := s.uniformBIndices[name]; ok {\n\t\treturn index\n\t}\n\n\t// if it's not in our index cache, get it from opengl and save it in the cache\n\tindex = gl.GetUniformBlockIndex(s.Program, gl.Str(name+\"\\x00\"))\n\ts.uniformBIndices[name] = index\n\treturn\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (client *Client) QueryBlock(request *QueryBlockRequest) (response *QueryBlockResponse, err error) {\n\tresponse = CreateQueryBlockResponse()\n\terr = client.DoAction(request, response)\n\treturn\n}", "func (app *BurrowMint) BeginBlock(hash []byte, header *abci.Header) {\n\n}", "func getBlock(w http.ResponseWriter, req *http.Request, ps httprouter.Params) {\n\n\thash, err := chainhash.NewHashFromStr(ps.ByName(\"hash\"))\n\tif err != nil {\n\t\tlog.Printf(\"could not convert string to hash: %s\\n\", err)\n\t}\n\n\tblock, err := dao.GetBlock(hash)\n\tif err != nil {\n\t\tfmt.Fprintf(w, \"Not found\")\n\t\treturn\n\t}\n\t//block.Confirmations = getBlockConfirmations(block)\n\t//block.Confirmations = getBlockConfirmations(*block) // needs dynamic calculation\n\n\t//apiblock, err := insight.ConvertToInsightBlock(block)\n\n\tjson.NewEncoder(w).Encode(&block)\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tsyscall.Syscall9(gpGetActiveUniform, 7, uintptr(program), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(xtype)), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func (self *StateStore) GetCurrentBlock() (common.Hash, uint64, error) {\n\tkey := self.getCurrentBlockKey()\n\tdata, err := self.store.Get(key)\n\tif err != nil {\n\t\treturn common.Hash{}, 0, err\n\t}\n\treader := bytes.NewReader(data)\n\tblockHash := common.Hash{}\n\terr = blockHash.Deserialize(reader)\n\tif err != nil {\n\t\treturn common.Hash{}, 0, err\n\t}\n\theight, err := serialization.ReadUint64(reader)\n\tif err != nil {\n\t\treturn common.Hash{}, 0, err\n\t}\n\treturn blockHash, height, nil\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (t T) Block() uint32 { return t.block }", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n\treturn (uint32)(ret)\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n\treturn (uint32)(ret)\n}", "func getBlockToFetch(max_height uint32, cnt_in_progress, avg_block_size uint) (lowest_found *OneBlockToGet) {\r\n\tfor _, v := range BlocksToGet {\r\n\t\tif v.InProgress == cnt_in_progress && v.Block.Height <= max_height &&\r\n\t\t\t(lowest_found == nil || v.Block.Height < lowest_found.Block.Height) {\r\n\t\t\tlowest_found = v\r\n\t\t}\r\n\t}\r\n\treturn\r\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret, _, _ := syscall.Syscall(gpGetUniformBlockIndex, 2, uintptr(program), uintptr(unsafe.Pointer(uniformBlockName)), 0)\n\treturn (uint32)(ret)\n}", "func (c *SyscallService) QueryBlock(ctx context.Context, in *pb.QueryBlockRequest) (*pb.QueryBlockResponse, error) {\n\tnctx, ok := c.ctxmgr.Context(in.GetHeader().Ctxid)\n\tif !ok {\n\t\treturn nil, fmt.Errorf(\"bad ctx id:%d\", in.Header.Ctxid)\n\t}\n\n\trawBlockid, err := hex.DecodeString(in.Blockid)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tblock, err := nctx.Cache.QueryBlock(rawBlockid)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\ttxids := []string{}\n\tfor _, t := range block.Transactions {\n\t\ttxids = append(txids, hex.EncodeToString(t.Txid))\n\t}\n\n\tblocksdk := &pb.Block{\n\t\tBlockid: hex.EncodeToString(block.Blockid),\n\t\tPreHash: block.PreHash,\n\t\tProposer: block.Proposer,\n\t\tSign: block.Sign,\n\t\tPubkey: block.Pubkey,\n\t\tHeight: block.Height,\n\t\tTxids: txids,\n\t\tTxCount: block.TxCount,\n\t\tInTrunk: block.InTrunk,\n\t\tNextHash: block.NextHash,\n\t}\n\n\treturn &pb.QueryBlockResponse{\n\t\tBlock: blocksdk,\n\t}, nil\n}", "func (_AnchorChain *AnchorChainSession) ViewBlock(i *big.Int) (string, error) {\n\treturn _AnchorChain.Contract.ViewBlock(&_AnchorChain.CallOpts, i)\n}", "func GetActiveUniform(p Program, index uint32) (name string, size int, ty Enum) {\n\tvar length, si int32\n\tvar typ uint32\n\tname = strings.Repeat(\"\\x00\", 256)\n\tcname := gl.Str(name)\n\tgl.GetActiveUniform(p.Value, uint32(index), int32(len(name)-1), &length, &si, &typ, cname)\n\tname = name[:strings.IndexRune(name, 0)]\n\treturn name, int(si), Enum(typ)\n}", "func (_AnchorChain *AnchorChainCallerSession) ViewBlock(i *big.Int) (string, error) {\n\treturn _AnchorChain.Contract.ViewBlock(&_AnchorChain.CallOpts, i)\n}", "func (db *StakeDatabase) block(ind int64) (*dcrutil.Block, bool) {\n\tblock, ok := db.BlockCached(ind)\n\tif !ok {\n\t\tvar err error\n\t\tblock, err = getBlockByHeight(db.NodeClient, ind) // rpcutils.GetBlock(ind, db.NodeClient)\n\t\tif err != nil {\n\t\t\tlog.Error(err)\n\t\t\treturn nil, false\n\t\t}\n\t}\n\treturn block, ok\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveUniformsiv, 5, uintptr(program), uintptr(uniformCount), uintptr(unsafe.Pointer(uniformIndices)), uintptr(pname), uintptr(unsafe.Pointer(params)), 0)\n}", "func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) {\n C.glowUniformBlockBinding(gpUniformBlockBinding, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLuint)(uniformBlockBinding))\n}", "func (t *CAChaincode) query(stub shim.ChaincodeStubInterface, args []string) pb.Response {\n\tvar err error\n\tvar domainname string\n\tdomainname = args[0]\n\t//fmt.Println(domainname)\n\tblockdata, err := stub.GetState(domainname)\n\tif err != nil {\n\t\tfmt.Println(\"error in find the record\")\n\t\tshim.Error(\"error in find the record\")\n\t}\n\treturn shim.Success(blockdata)\n\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (_AnchorChain *AnchorChainCaller) ViewBlock(opts *bind.CallOpts, i *big.Int) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _AnchorChain.contract.Call(opts, out, \"viewBlock\", i)\n\treturn *ret0, err\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {}", "func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {}", "func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {}", "func GetActiveUniform(program Uint, index Uint, bufSize Sizei, length *Sizei, size *Int, kind *Enum, name []byte) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcindex, _ := (C.GLuint)(index), cgoAllocsUnknown\n\tcbufSize, _ := (C.GLsizei)(bufSize), cgoAllocsUnknown\n\tclength, _ := (*C.GLsizei)(unsafe.Pointer(length)), cgoAllocsUnknown\n\tcsize, _ := (*C.GLint)(unsafe.Pointer(size)), cgoAllocsUnknown\n\tckind, _ := (*C.GLenum)(unsafe.Pointer(kind)), cgoAllocsUnknown\n\tcname, _ := (*C.GLchar)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&name)).Data)), cgoAllocsUnknown\n\tC.glGetActiveUniform(cprogram, cindex, cbufSize, clength, csize, ckind, cname)\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformName, 5, uintptr(program), uintptr(uniformIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformName)), 0)\n}", "func (c *Client) GetCurrentBlock() (*rpctypes.ResultBlock, error) {\n\treturn c.GetBlockAt(0)\n}", "func (b *BrainFuck) cur() int {\n\treturn b.memory.cu\n}", "func (c *Client) GetBlockAt(height uint64) (block *rpctypes.ResultBlock, err error) {\n\tblock = new(rpctypes.ResultBlock)\n\tvar url string\n\tif height == 0 {\n\t\turl = c.URL(\"block/current\")\n\t} else {\n\t\turl = c.URL(\"block/height/%d\", height)\n\t}\n\terr = c.get(block, url)\n\terr = errors.Wrap(err, \"getting block by height\")\n\treturn\n}", "func (l *Channel) getBlock(blockNumber uint64) (*types.Block, error) {\n\tvar blockNumberInt *big.Int\n\tif blockNumber > 0 {\n\t\tblockNumberInt = big.NewInt(int64(blockNumber))\n\t}\n\n\td := time.Now().Add(5 * time.Second)\n\tctx, cancel := context.WithDeadline(context.Background(), d)\n\tdefer cancel()\n\n\tblock, err := l.client.BlockByNumber(ctx, blockNumberInt)\n\tif err != nil {\n\t\tif err.Error() == \"not found\" {\n\t\t\treturn nil, nil\n\t\t}\n\t\terr = errors.Wrap(err, \"Error getting block from geth\")\n\t\tl.log.WithField(\"block\", blockNumberInt.String()).Error(err)\n\t\treturn nil, err\n\t}\n\n\treturn block, nil\n}", "func (s *Service) BlockFilter(c context.Context, ui *model.UserInfo) (state int8, err error) {\n\tvar (\n\t\targs = &Args{ui: ui}\n\t\ths = []HandlerFunc{s.scoreLessHandler}\n\t\tblockNo = s.BlockNo(s.c.Property.Block.CycleTimes)\n\t)\n\tstate = ui.State\n\tif b := s.Verify(c, args, hs...); !b {\n\t\treturn\n\t}\n\tstate = model.StateBlock\n\ts.dao.AddBlockCache(c, ui.Mid, ui.Score, blockNo)\n\tif err = s.dao.AddPunishmentQueue(c, ui.Mid, blockNo); err != nil {\n\t\tlog.Error(\"s.dao.AddPunishmentQueue(%d) error(%v)\", ui.Mid, err)\n\t\treturn\n\t}\n\treturn\n}", "func (me TxsdPresentationAttributesGraphicsDisplay) IsBlock() bool { return me.String() == \"block\" }", "func (b AcceptedBlock) FullBlockTestInstance() {}", "func (b AcceptedBlock) FullBlockTestInstance() {}", "func (_Rootchain *RootchainSession) CurrentHeaderBlock() (*big.Int, error) {\n\treturn _Rootchain.Contract.CurrentHeaderBlock(&_Rootchain.CallOpts)\n}", "func (g grid) getRandomUnoccupiedPixelBlock() {\n\n}", "func (app AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {}", "func (bidb *BlockInfoStorage) GetBlockInfo(atTime time.Time) (common.BlockInfo, error) {\n\tvar (\n\t\tlogger = bidb.sugar.With(\n\t\t\t\"func\", caller.GetCurrentFunctionName(),\n\t\t\t\"time\", atTime.String(),\n\t\t)\n\t\tresult common.BlockInfo\n\t)\n\tconst selectStmt = `SELECT block, time FROM %[1]s WHERE time>$1 AND time<$2 Limit 1`\n\tquery := fmt.Sprintf(selectStmt, bidb.tableNames[blockInfoTable])\n\tlogger.Debugw(\"querying blockInfo...\", \"query\", query)\n\tif err := bidb.db.Get(&result, query, timeutil.Midnight(atTime), timeutil.Midnight(atTime).AddDate(0, 0, 1)); err != nil {\n\t\treturn common.BlockInfo{}, err\n\t}\n\treturn result, nil\n}", "func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) {\n}", "func\tprint_block(ant Ant, matrix [][]uint8, x int, y int) {\n\tif ant.X == x && ant.Y == y {\n\t\tgoterm.Printf(\"%s\", goterm.Color(\"*\", goterm.RED))\n\t} else if matrix[y][x] == 0 {\n\t\tgoterm.Printf(\"%s\", goterm.Color(\".\", goterm.WHITE))\n\t} else {\n\t\tgoterm.Printf(\"%s\", goterm.Color(\".\", goterm.BLACK))\n\t}\n}", "func (c *CoinTest) queryAsset(stub shim.ChaincodeStubInterface, args []string) pb.Response {\r\n\tvar A string // Entities\r\n\tvar err error\r\n\r\n\tif len(args) != 1 {\r\n\t\treturn shim.Error(\"Incorrect number of arguments. Expecting name of the person to query\")\r\n\t}\r\n\r\n\tA = args[0]\r\n\r\n\t// Get the state from the ledger\r\n\tAvalbytes, err := stub.GetState(A)\r\n\tif err != nil {\r\n\t\tjsonResp := \"{\\\"Error\\\":\\\"Failed to get state for \" + A + \"\\\"}\"\r\n\t\treturn shim.Error(jsonResp)\r\n\t}\r\n\r\n\tif Avalbytes == nil {\r\n\t\tjsonResp := \"{\\\"Error\\\":\\\"Nil amount for \" + A + \"\\\"}\"\r\n\t\treturn shim.Error(jsonResp)\r\n\t}\r\n\r\n\tjsonResp := \"{\\\"Name\\\":\\\"\" + A + \"\\\",\\\"Amount\\\":\\\"\" + string(Avalbytes) + \"\\\"}\"\r\n\tfmt.Printf(\"Query Response:%s\\n\", jsonResp)\r\n\treturn shim.Success(Avalbytes)\r\n}", "func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) {}", "func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) {}", "func AskForBlock(height int32, hash string) {\n\t//TODO -> TEST: Update this function to recursively ask\n\t// for all the missing predesessor blocks instead of only the parent block.\n\tPeers.Rebalance()\n\n\tfor key, _ := range Peers.Copy() {\n\t\tresp, err := http.Get(key + \"/block/\" + string(height) + \"/\" + hash)\n\t\tif err != nil {\n\t\t\tprintln(err)\n\t\t\tos.Exit(1)\n\t\t}\n\t\tif resp.StatusCode == 200 {\n\t\t\trespData, erro := ioutil.ReadAll(resp.Body)\n\t\t\tif erro != nil {\n\t\t\t\tprintln(err)\n\t\t\t\tos.Exit(1)\n\t\t\t}\n\t\t\trespBlc := p2.Block{}\n\t\t\trespBlc.DecodeFromJson(string(respData))\n\t\t\tif !SBC.CheckParentHash(respBlc) {\n\t\t\t\tAskForBlock(respBlc.GetHeight()-1, respBlc.GetParentHash())\n\t\t\t}\n\t\t\tSBC.Insert(respBlc)\n\t\t\tbreak\n\t\t}\n\t}\n\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (d *state) BlockSize() int { return d.rate }", "func (c *Client) CurrentBlock() (uint64, error) {\n\treturn c.ec.BlockNumber(context.Background())\n}", "func (_Rootchain *RootchainCallerSession) CurrentHeaderBlock() (*big.Int, error) {\n\treturn _Rootchain.Contract.CurrentHeaderBlock(&_Rootchain.CallOpts)\n}", "func TestBlock(t *testing.T) {\n\tet, err := createExplorerTester(\"TestStatistics\")\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tgb := et.cs.GenesisBlock()\n\tgbFetch, height, exists := et.explorer.Block(gb.ID())\n\tif !exists || height != 0 || gbFetch.ID() != gb.ID() {\n\t\tt.Error(\"call to 'Block' inside explorer failed\")\n\t}\n}", "func (_Lmc *LmcSession) UserInfo(arg0 common.Address) (struct {\n\tFirstStakedBlockNumber *big.Int\n\tAmountStaked *big.Int\n}, error) {\n\treturn _Lmc.Contract.UserInfo(&_Lmc.CallOpts, arg0)\n}", "func (h HTTPHandler) HandleBlockInfo(w http.ResponseWriter, r *http.Request) {\n\terr := processJWT(r, false, h.secret)\n\tif err != nil {\n\t\thttp.Error(w, \"{\\\"message\\\": \\\"\"+err.Error()+\"\\\"}\", 401)\n\t\treturn\n\t}\n\n\tvars := mux.Vars(r)\n\tblockId, err := hex.DecodeString(vars[\"blockId\"])\n\n\tif err != nil {\n\t\thttp.Error(w, \"{\\\"message\\\": \\\"invalid block ID\\\"}\", 400)\n\t\treturn\n\t}\n\n\tblockchainPeer, err := getBlockchainById(h.bf, vars[\"blockchainId\"])\n\n\tif err != nil {\n\t\thttp.Error(w, err.Error(), 400)\n\t\treturn\n\t}\n\n\tif blockchainPeer == nil {\n\t\thttp.Error(w, \"{\\\"message\\\": \\\"blockchain doesn't exist\\\"}\", 404)\n\t\treturn\n\t}\n\n\tvar block *blockchain.Block\n\n\terr = blockchainPeer.Db.View(func(dbtx *bolt.Tx) error {\n\t\tb := dbtx.Bucket([]byte(blockchain.BlocksBucket))\n\n\t\tif b == nil {\n\t\t\tlog.WithFields(log.Fields{\n\t\t\t\t\"route\": \"HandleBlockInfo\",\n\t\t\t\t\"address\": r.Header.Get(\"address\"),\n\t\t\t}).Warn(\"bucket doesn't exist\")\n\t\t\treturn errors.New(\"block doesn't exist\")\n\t\t}\n\n\t\tencodedBlock := b.Get(blockId)\n\n\t\tif encodedBlock == nil {\n\t\t\tlog.WithFields(log.Fields{\n\t\t\t\t\"route\": \"HandleBlockInfo\",\n\t\t\t\t\"address\": r.Header.Get(\"address\"),\n\t\t\t}).Error(\"block doesn't exist\")\n\t\t\treturn errors.New(\"block doesn't exist\")\n\t\t}\n\t\tblock = blockchain.DeserializeBlock(encodedBlock)\n\t\treturn nil\n\t})\n\n\tif err != nil {\n\t\thttp.Error(w, \"{\\\"message\\\": \\\"block doesn't exist\\\"}\", 404)\n\t\treturn\n\t}\n\n\tblockInfoResponse := BlockInfo{BlockchainId: vars[\"blockchainId\"], BlockId: fmt.Sprintf(\"%x\", block.Hash), PrevBlockId: fmt.Sprintf(\"%x\", block.PrevBlockHash), BlockHeight: block.Height, TotalTransactions: block.TotalTransactions}\n\n\tmustEncode(w, blockInfoResponse)\n}", "func (bc *Blockchain) PrintBlockInfo(index int) {\n block := bc.Chain[index]\n fmt.Println(\"Index of the block is \" + strconv.Itoa(block.Index))\n fmt.Println(\"Timestamp of the block is \" + time.Unix(block.Timestamp, 0).Format(time.UnixDate))\n fmt.Println(\"Proof of the block is \" + strconv.Itoa(block.Proof))\n fmt.Println(\"Hash of the previous block is \" + block.PreviousHash)\n fmt.Println(\"Hash of the current block is \" + bc.HashBlock(block))\n fmt.Println(\"Difficulty of the block is \" + block.Difficulty)\n fmt.Println(\"\\n\\n\")\n}", "func printblock(bb *BasicBlock) {\n\tfmt.Printf(\"basic block %d\\n\", bb.rpo)\n\tfmt.Printf(\"\\tpred:\")\n\tfor _, pred := range bb.pred {\n\t\tfmt.Printf(\" %d\", pred.rpo)\n\t}\n\tfmt.Printf(\"\\n\")\n\tfmt.Printf(\"\\tsucc:\")\n\tfor _, succ := range bb.succ {\n\t\tfmt.Printf(\" %d\", succ.rpo)\n\t}\n\tfmt.Printf(\"\\n\")\n\tfmt.Printf(\"\\tprog:\\n\")\n\tfor prog := bb.first; ; prog = prog.Link {\n\t\tfmt.Printf(\"\\t\\t%v\\n\", prog)\n\t\tif prog == bb.last {\n\t\t\tbreak\n\t\t}\n\t}\n}", "func BlockChainInfoValidation(Block *block.Block) (error) {\n ResponseBlock := block.ResponseBlock{}\n blockHash := ReverseEndian(Block.BlockHash)\n fmt.Println(\"block hash\", blockHash)\n resp, err := http.Get(BLOCKCHAININFOENDPOINT + blockHash)\n if err != nil {\n return err\n }\n defer resp.Body.Close()\n body, _ := ioutil.ReadAll(resp.Body)\n json.Unmarshal(body, &ResponseBlock)\n\n if blockHash == ResponseBlock.Hash {\n fmt.Println(\"Height: \", ResponseBlock.Height)\n return nil\n }\n return errors.New(\"Hashes do not match\")\n}", "func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) {\n\tsyscall.Syscall(gpUniformBlockBinding, 3, uintptr(program), uintptr(uniformBlockIndex), uintptr(uniformBlockBinding))\n}", "func (program Program) GetActiveUniforms() int32 {\n\tvar params int32\n\tgl.GetProgramiv(uint32(program), gl.ACTIVE_UNIFORMS, &params)\n\treturn params\n}", "func (_Rootchain *RootchainCaller) CurrentHeaderBlock(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _Rootchain.contract.Call(opts, out, \"currentHeaderBlock\")\n\treturn *ret0, err\n}", "func (rt *recvTxOut) Block() *BlockDetails {\n\treturn rt.block\n}", "func (a *Blocks) At(ctx context.Context, height uint64) (*Block, *Response, error) {\n\turl, err := joinUrl(a.options.BaseUrl, fmt.Sprintf(\"/blocks/at/%d\", height))\n\tif err != nil {\n\t\treturn nil, nil, err\n\t}\n\n\treq, err := http.NewRequest(\"GET\", url.String(), nil)\n\tif err != nil {\n\t\treturn nil, nil, err\n\t}\n\n\tout := new(Block)\n\tresponse, err := doHttp(ctx, a.options, req, out)\n\tif err != nil {\n\t\treturn nil, response, err\n\t}\n\treturn out, response, nil\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n C.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (_Lmc *LmcCaller) UserInfo(opts *bind.CallOpts, arg0 common.Address) (struct {\n\tFirstStakedBlockNumber *big.Int\n\tAmountStaked *big.Int\n}, error) {\n\tvar out []interface{}\n\terr := _Lmc.contract.Call(opts, &out, \"userInfo\", arg0)\n\n\toutstruct := new(struct {\n\t\tFirstStakedBlockNumber *big.Int\n\t\tAmountStaked *big.Int\n\t})\n\tif err != nil {\n\t\treturn *outstruct, err\n\t}\n\n\toutstruct.FirstStakedBlockNumber = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\toutstruct.AmountStaked = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)\n\n\treturn *outstruct, err\n\n}", "func (app *App) BeginBlock(req abci.RequestBeginBlock) abci.ResponseBeginBlock {\n\tres := app.BandApp.BeginBlock(req)\n\tapp.accsInBlock = make(map[string]bool)\n\tapp.accsInTx = make(map[string]bool)\n\tapp.msgs = []Message{}\n\tif app.emitStartState {\n\t\tapp.emitStartState = false\n\t\tapp.emitNonHistoricalState()\n\t} else {\n\t\t{\n\t\t\tfor _, val := range req.GetLastCommitInfo().Votes {\n\t\t\t\tvalidator := app.StakingKeeper.ValidatorByConsAddr(app.DeliverContext, val.GetValidator().Address)\n\t\t\t\tapp.Write(\"NEW_VALIDATOR_VOTE\", JsDict{\n\t\t\t\t\t\"consensus_address\": validator.GetConsAddr().String(),\n\t\t\t\t\t\"block_height\": req.Header.GetHeight() - 1,\n\t\t\t\t\t\"voted\": val.GetSignedLastBlock(),\n\t\t\t\t})\n\t\t\t\tapp.emitUpdateValidatorRewardAndAccumulatedCommission(validator.GetOperator())\n\t\t\t}\n\t\t}\n\t}\n\tapp.Write(\"NEW_BLOCK\", JsDict{\n\t\t\"height\": req.Header.GetHeight(),\n\t\t\"timestamp\": app.DeliverContext.BlockTime().UnixNano(),\n\t\t\"proposer\": sdk.ConsAddress(req.Header.GetProposerAddress()).String(),\n\t\t\"hash\": req.GetHash(),\n\t\t\"inflation\": app.MintKeeper.GetMinter(app.DeliverContext).Inflation.String(),\n\t\t\"supply\": app.SupplyKeeper.GetSupply(app.DeliverContext).GetTotal().String(),\n\t})\n\tfor _, event := range res.Events {\n\t\tapp.handleBeginBlockEndBlockEvent(event)\n\t}\n\n\treturn res\n}", "func (db *Database) QueryLatestBlock() (schema.Block, error) {\n\tvar block schema.Block\n\n\terr := db.Model(&block).\n\t\tLimit(1).\n\t\tOrder(\"id DESC\").\n\t\tSelect()\n\n\tif err == pg.ErrNoRows {\n\t\treturn schema.Block{}, fmt.Errorf(\"no rows in block table: %s\", err)\n\t}\n\n\tif err != nil {\n\t\treturn schema.Block{}, fmt.Errorf(\"unexpected database error: %s\", err)\n\t}\n\n\treturn block, nil\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) {\n\tC.glowUniformBlockBinding(gpUniformBlockBinding, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLuint)(uniformBlockBinding))\n}", "func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) {\n\tC.glowUniformBlockBinding(gpUniformBlockBinding, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLuint)(uniformBlockBinding))\n}", "func (env *Env) CheckBlock(pdu *libcoap.Pdu) (bool, *string, *libcoap.Block) {\n blockValue, err := pdu.GetOptionIntegerValue(libcoap.OptionBlock2)\n if err != nil {\n log.WithError(err).Warn(\"Get block2 option value failed.\")\n return false, nil, nil\n\t}\n block := libcoap.IntToBlock(int(blockValue))\n\n size2Value, err := pdu.GetOptionIntegerValue(libcoap.OptionSize2)\n\tif err != nil {\n\t\tlog.WithError(err).Warn(\"Get size 2 option value failed.\")\n return false, nil, nil\n }\n\n eTag := pdu.GetOptionOpaqueValue(libcoap.OptionEtag)\n\n if block != nil {\n isMoreBlock := true\n blockKey := eTag + string(pdu.Token)\n // If block.M = 1, block is more block. If block.M = 0, block is last block\n if block.M == libcoap.MORE_BLOCK {\n log.Debugf(\"Response block is comming (eTag=%+v, block=%+v, size2=%+v) for request (token=%+v), waiting for the next block.\", eTag, block.ToString(), size2Value, pdu.Token)\n if block.NUM == 0 {\n env.responseBlocks[blockKey] = pdu\n initialBlockSize := env.InitialRequestBlockSize()\n secondBlockSize := env.SecondRequestBlockSize()\n // Check what block_size is used for block2 option\n // If the initialBlockSize is set: client will always request with block2 option\n // If the initialBlockSize is not set and the secondBlockSize is set: if the secondBlockSize is greater than the\n // recommended block size -> use the recommended block size, reversely, use the configured block size\n // If both initialBlockSize and secondBlockSize are not set -> use the recommended block size\n if initialBlockSize == nil && secondBlockSize != nil {\n if *secondBlockSize > block.SZX {\n log.Warn(\"Second block size must not greater thans block size received from server\")\n block.NUM += 1\n } else {\n block.NUM = 1 << uint(block.SZX - *secondBlockSize)\n block.SZX = *secondBlockSize\n }\n } else {\n block.NUM += 1\n }\n } else {\n if data, ok := env.responseBlocks[blockKey]; ok {\n env.responseBlocks[blockKey].Data = append(data.Data, pdu.Data...)\n block.NUM += 1\n } else {\n log.Warnf(\"The block version is not unknown. Re-request from the first block\")\n delete(env.responseBlocks, blockKey)\n block.NUM = 0\n }\n }\n block.M = 0\n return isMoreBlock, &eTag, block\n } else if block.M == libcoap.LAST_BLOCK {\n log.Debugf(\"Response block is comming (eTag=%+v, block=%+v, size2=%+v), this is the last block.\", eTag, block.ToString(), size2Value)\n isMoreBlock = false\n if data, ok := env.responseBlocks[blockKey]; ok {\n env.responseBlocks[blockKey].Data = append(data.Data, pdu.Data...)\n } else if block.NUM > 0 {\n log.Warnf(\"The block version is not unknown. Re-request from the first block\")\n delete(env.responseBlocks, blockKey)\n block.NUM = 0\n isMoreBlock = true\n }\n return isMoreBlock, &eTag, block\n }\n }\n return false, nil, nil\n}", "func getBlockByHash(params interface{}) (interface{}, error) {\n\tp, ok := params.(*BlockHashParams)\n\tif !ok {\n\t\treturn nil, resp.BadRequestErr\n\t}\n\tdb := db.NewDB()\n\tdefer db.Close()\n\n\t// query block info\n\trow := db.QueryRow(\"SELECT height, hash, version, time, nonce, difficulty, prev, tx_root, status, sign, hex FROM blocks WHERE hash=?\", p.Hash)\n\tblock := &resp.Block{}\n\terr := row.Scan(&block.Height, &block.Hash, &block.Version, &block.Time, &block.Nonce, &block.Difficulty, &block.Prev, &block.TxRoot, &block.Status, &block.Sign, &block.Hex)\n\tif err != nil {\n\t\treturn nil, resp.NotFoundErr\n\t}\n\n\t// query next block hash\n\trow = db.QueryRow(\"SELECT hash FROM blocks WHERE height=?\", block.Height+1)\n\tvar next string\n\trow.Scan(&next)\n\tblock.Next = next\n\n\t// query block transactions\n\trows, err := db.Query(\"SELECT tx_id, version, type FROM transactions WHERE height=?\", block.Height)\n\tif err != nil {\n\t\treturn nil, resp.InternalServerErr\n\t}\n\tdefer rows.Close()\n\n\tfor rows.Next() {\n\t\tvar transaction = &resp.Transaction{}\n\t\terr := rows.Scan(&transaction.TxID, &transaction.Version, &transaction.Type)\n\t\tif err != nil {\n\t\t\treturn nil, resp.InternalServerErr\n\t\t}\n\t\terr = getTx(db, transaction)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tblock.Transactions = append(block.Transactions, *transaction)\n\t}\n\treturn block, nil\n}", "func (m *Mode) GetBlock(i uint64) state.State {\n\tbi := i % NBufferBlocks // in the current buffer block\n\treturn m.InBuffer[bi]\n}", "func BlockSubsidy(height uint64) uint64 {\n\tfor _, subsidy := range ActiveNetParams.ProducerSubsidys {\n\t\tif height >= subsidy.BeginBlock && height <= subsidy.EndBlock {\n\t\t\treturn subsidy.Subsidy\n\t\t}\n\t}\n\treturn 0\n}", "func (client *Client) QueryBlocks(query *Query) (*Response, error) {\n\tpath := \"/block\"\n\turi := fmt.Sprintf(\"%s%s\", client.apiBaseURL, path)\n\n\treq, err := http.NewRequest(\"GET\", uri, bytes.NewBuffer([]byte(\"\")))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbuildQuery(req, query)\n\tresp, err := client.performRequest(req, \"\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tvar results map[string][]Block\n\terr = json.Unmarshal(resp.Response.([]byte), &results)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tresp.Response = results\n\treturn resp, err\n}", "func (cs *ConsensusSet) currentBlockID() types.BlockID {\n\treturn cs.db.getPath(cs.height())\n}", "func blockDetails(block *btcutil.Block, txIndex int) *btcjson.BlockDetails {\n\tif block == nil {\n\t\treturn nil\n\t}\n\treturn &btcjson.BlockDetails{\n\t\tHeight: block.Height(),\n\t\tHash: block.Hash().String(),\n\t\tIndex: txIndex,\n\t\tTime: block.MsgBlock().Header.Timestamp.Unix(),\n\t}\n}", "func CurrentBlock() uint64 {\n\tblock, err := eth.BlockByNumber(context.TODO(), nil)\n\tif err != nil {\n\t\tfmt.Printf(\"Error fetching current block height: %v\\n\", err)\n\t\treturn 0\n\t}\n\treturn block.NumberU64()\n}", "func (l *Ledger) QueryBlockByHeight(height int64) (*pb.InternalBlock, error) {\n\tsHeight := []byte(fmt.Sprintf(\"%020d\", height))\n\tblockID, kvErr := l.heightTable.Get(sHeight)\n\tif kvErr != nil {\n\t\tif def.NormalizedKVError(kvErr) == def.ErrKVNotFound {\n\t\t\treturn nil, ErrBlockNotExist\n\t\t}\n\t\treturn nil, kvErr\n\t}\n\treturn l.QueryBlock(blockID)\n}", "func (l *Ledger) QueryBlock(blockid []byte) (*pb.InternalBlock, error) {\n\tblkInCache, exist := l.blockCache.Get(string(blockid))\n\tif exist {\n\t\tl.xlog.Debug(\"hit queryblock cache\", \"blkid\", utils.F(blockid))\n\t\treturn blkInCache.(*pb.InternalBlock), nil\n\t}\n\tblk, err := l.queryBlock(blockid, true)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tl.blockCache.Add(string(blockid), blk)\n\treturn blk, nil\n}", "func (_Lmc *LmcCallerSession) UserInfo(arg0 common.Address) (struct {\n\tFirstStakedBlockNumber *big.Int\n\tAmountStaked *big.Int\n}, error) {\n\treturn _Lmc.Contract.UserInfo(&_Lmc.CallOpts, arg0)\n}", "func (bc *Blockchain) CurrentBlock() *Block {\n\t// TODO(student)\n\treturn nil\n}", "func getBlkFromHash(hash [constants.HASHSIZE]byte) Block {\n\tvar retBlk Block\n\tsess, err := mgo.Dial(\"localhost\")\n\tcheckerror(err)\n\tdefer sess.Close()\n\thandle := sess.DB(\"Goin\").C(\"Blocks\")\n\tBlkQuery := handle.Find(bson.M{\"hash\": hash})\n\terr = BlkQuery.One(&retBlk)\n\tif err != nil {\n\t\treturn Block{}\n\t}\n\treturn retBlk\n}", "func (s *Storage) LastBlock() (int64, error) {\n\tvar (\n\t\tlastBlock int64\n\t\tlogger = s.sugar.With(\"func\", caller.GetCallerFunctionName())\n\t)\n\tquery := `SELECT to_block FROM reserve_rates ORDER BY timestamp DESC LIMIT 1;`\n\tlogger.Infow(\"Getting last block stored in db\", \"query\", query)\n\tif err := s.db.Get(&lastBlock, query); err != nil {\n\t\tif err == sql.ErrNoRows {\n\t\t\treturn lastBlock, nil\n\t\t}\n\t\treturn lastBlock, err\n\t}\n\treturn lastBlock, nil\n}", "func (blockchain *Blockchain) BeginBlock(req abciTypes.RequestBeginBlock) abciTypes.ResponseBeginBlock {\n\theight := uint64(req.Header.Height)\n\tblockchain.StatisticData().PushStartBlock(&statistics.StartRequest{Height: int64(height), Now: time.Now(), HeaderTime: req.Header.Time})\n\n\t// compute max gas\n\tmaxGas := blockchain.calcMaxGas()\n\tblockchain.stateDeliver.App.SetMaxGas(maxGas)\n\tblockchain.appDB.AddBlocksTime(req.Header.Time)\n\n\tblockchain.rewards.SetInt64(0)\n\n\t// clear absent candidates\n\tblockchain.lock.Lock()\n\tblockchain.validatorsStatuses = map[types.TmAddress]int8{}\n\t// give penalty to absent validators\n\tfor _, v := range req.LastCommitInfo.Votes {\n\t\tvar address types.TmAddress\n\t\tcopy(address[:], v.Validator.Address)\n\n\t\tif v.SignedLastBlock {\n\t\t\tblockchain.stateDeliver.Validators.SetValidatorPresent(height, address)\n\t\t\tblockchain.validatorsStatuses[address] = ValidatorPresent\n\t\t} else {\n\t\t\tblockchain.stateDeliver.Validators.SetValidatorAbsent(height, address, blockchain.grace)\n\t\t\tblockchain.validatorsStatuses[address] = ValidatorAbsent\n\t\t}\n\t}\n\tblockchain.lock.Unlock()\n\n\tblockchain.calculatePowers(blockchain.stateDeliver.Validators.GetValidators())\n\n\tif blockchain.isApplicationHalted(height) && !blockchain.grace.IsUpgradeBlock(height) {\n\t\tlog.Printf(\"Application halted at height %d\\n\", height)\n\t\tblockchain.stop()\n\t\treturn abciTypes.ResponseBeginBlock{}\n\t}\n\n\tversionName := blockchain.appDB.GetVersionName(height)\n\tif _, ok := blockchain.knownUpdates[versionName]; !ok {\n\t\tlog.Printf(\"Update your node binary to the latest version: %s\", versionName)\n\t\tblockchain.stop()\n\t\treturn abciTypes.ResponseBeginBlock{}\n\t}\n\n\tif versionName == v230 && height > updateBlockV240 {\n\t\tblockchain.executor = transaction.NewExecutor(transaction.GetDataV240)\n\t}\n\n\t// give penalty to Byzantine validators\n\tfor _, byzVal := range req.ByzantineValidators {\n\t\tvar address types.TmAddress\n\t\tcopy(address[:], byzVal.Validator.Address)\n\n\t\t// skip already offline candidates to prevent double punishing\n\t\tcandidate := blockchain.stateDeliver.Candidates.GetCandidateByTendermintAddress(address)\n\t\tif candidate == nil || candidate.Status == candidates.CandidateStatusOffline || blockchain.stateDeliver.Validators.GetByTmAddress(address) == nil {\n\t\t\tcontinue\n\t\t}\n\n\t\tblockchain.stateDeliver.FrozenFunds.PunishFrozenFundsWithID(height, height+types.GetUnbondPeriod(), candidate.ID)\n\t\tblockchain.stateDeliver.Validators.PunishByzantineValidator(address)\n\t\tblockchain.stateDeliver.Candidates.PunishByzantineCandidate(height, address)\n\t}\n\n\t// apply frozen funds (used for unbond stakes)\n\tfrozenFunds := blockchain.stateDeliver.FrozenFunds.GetFrozenFunds(height)\n\tif frozenFunds != nil {\n\t\tfor _, item := range frozenFunds.List {\n\t\t\tamount := item.Value\n\t\t\tblockchain.eventsDB.AddEvent(&eventsdb.UnbondEvent{\n\t\t\t\tAddress: item.Address,\n\t\t\t\tAmount: amount.String(),\n\t\t\t\tCoin: uint64(item.Coin),\n\t\t\t\tValidatorPubKey: item.CandidateKey,\n\t\t\t})\n\t\t\tblockchain.stateDeliver.Accounts.AddBalance(item.Address, item.Coin, amount)\n\t\t}\n\n\t\t// delete from db\n\t\tblockchain.stateDeliver.FrozenFunds.Delete(frozenFunds.Height())\n\t}\n\n\tblockchain.stateDeliver.Halts.Delete(height)\n\n\treturn abciTypes.ResponseBeginBlock{}\n}", "func (w WavesClient) GetInfo() (*transport.CoinState, error) {\n\tvar res WavesGetBlockResponse\n\n\terr := w.GET(\"/blocks/last\", nil, &res)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"error getting latest waves block\")\n\t}\n\n\treturn &transport.CoinState{\n\t\tData: transport.CoinData{\n\t\t\tChain: \"main\",\n\t\t\tBlockHeight: res.Height,\n\t\t\tCurrentBlock: fmt.Sprintf(\"%d\", res.Height),\n\t\t},\n\t}, nil\n}", "func livenessprintblock(lv *Liveness, bb *BasicBlock) {\n\tfmt.Printf(\"basic block %d\\n\", bb.rpo)\n\n\tfmt.Printf(\"\\tpred:\")\n\tfor _, pred := range bb.pred {\n\t\tfmt.Printf(\" %d\", pred.rpo)\n\t}\n\tfmt.Printf(\"\\n\")\n\n\tfmt.Printf(\"\\tsucc:\")\n\tfor _, succ := range bb.succ {\n\t\tfmt.Printf(\" %d\", succ.rpo)\n\t}\n\tfmt.Printf(\"\\n\")\n\n\tprintvars(\"\\tuevar\", bb.uevar, []*Node(lv.vars))\n\tprintvars(\"\\tvarkill\", bb.varkill, []*Node(lv.vars))\n\tprintvars(\"\\tlivein\", bb.livein, []*Node(lv.vars))\n\tprintvars(\"\\tliveout\", bb.liveout, []*Node(lv.vars))\n\tprintvars(\"\\tavarinit\", bb.avarinit, []*Node(lv.vars))\n\tprintvars(\"\\tavarinitany\", bb.avarinitany, []*Node(lv.vars))\n\tprintvars(\"\\tavarinitall\", bb.avarinitall, []*Node(lv.vars))\n\n\tfmt.Printf(\"\\tprog:\\n\")\n\tfor prog := bb.first; ; prog = prog.Link {\n\t\tfmt.Printf(\"\\t\\t%v\", prog)\n\t\tif prog.As == obj.APCDATA && prog.From.Offset == obj.PCDATA_StackMapIndex {\n\t\t\tpos := int32(prog.To.Offset)\n\t\t\tlive := lv.livepointers[pos]\n\t\t\tfmt.Printf(\" \")\n\t\t\tbvprint(live)\n\t\t}\n\n\t\tfmt.Printf(\"\\n\")\n\t\tif prog == bb.last {\n\t\t\tbreak\n\t\t}\n\t}\n}", "func (b Block) Light() uint8 {\n\tif l, ok := LightBlocks[b.ID]; ok {\n\t\treturn l\n\t}\n\treturn 0\n}", "func getBlockHeight (jsonByte []byte) int {\n\tblockHeightString := gjson.GetBytes(jsonByte, \"result.round_state.height/round/step\")\n\theight := strings.Split(fmt.Sprintf(\"%s\", blockHeightString), \"/\")[0] \n\ti, err := strconv.Atoi(height)\n\tif err != nil {\n \t\tlog.Fatal(err)\n\t}\n\treturn i\n}" ]
[ "0.6959001", "0.6742101", "0.6656129", "0.6628918", "0.6628918", "0.6014538", "0.58964103", "0.5838156", "0.5813824", "0.57412755", "0.56978554", "0.5639307", "0.5639307", "0.55373895", "0.54246676", "0.5410893", "0.5406934", "0.53791344", "0.5376639", "0.5376639", "0.5363043", "0.5340661", "0.5332535", "0.5320848", "0.522435", "0.5211585", "0.52084905", "0.5205512", "0.5180056", "0.5174979", "0.5138914", "0.5138914", "0.51351875", "0.5123904", "0.5123904", "0.51189536", "0.51189536", "0.51189536", "0.5095065", "0.50899476", "0.50549495", "0.5050553", "0.5022096", "0.500242", "0.4999622", "0.49930876", "0.4989975", "0.4989975", "0.4982646", "0.49797356", "0.49790674", "0.49767512", "0.49759817", "0.4975671", "0.4972955", "0.49647203", "0.49647203", "0.4958502", "0.49507102", "0.49474242", "0.4922451", "0.4914963", "0.4908027", "0.4903178", "0.49001646", "0.48981056", "0.4893594", "0.48919383", "0.4888056", "0.48786357", "0.48722398", "0.4871035", "0.48663545", "0.4858778", "0.48522252", "0.48515555", "0.48426732", "0.48372617", "0.48370647", "0.48370647", "0.4826953", "0.48262435", "0.48102978", "0.4808853", "0.4808212", "0.47987574", "0.4794436", "0.47937307", "0.4787698", "0.47808775", "0.47779134", "0.4772415", "0.4758032", "0.47478655", "0.47478494", "0.47476274", "0.4744447", "0.474214", "0.47380114" ]
0.6713051
3
query the name of an active uniform
func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) { C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformName, 5, uintptr(program), uintptr(uniformIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformName)), 0)\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *int8) {\n C.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tC.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tC.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformBlockName, 5, uintptr(program), uintptr(uniformBlockIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformBlockName)), 0)\n}", "func GetActiveUniform(p Program, index uint32) (name string, size int, ty Enum) {\n\tvar length, si int32\n\tvar typ uint32\n\tname = strings.Repeat(\"\\x00\", 256)\n\tcname := gl.Str(name)\n\tgl.GetActiveUniform(p.Value, uint32(index), int32(len(name)-1), &length, &si, &typ, cname)\n\tname = name[:strings.IndexRune(name, 0)]\n\treturn name, int(si), Enum(typ)\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tsyscall.Syscall9(gpGetActiveUniform, 7, uintptr(program), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(xtype)), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniform(program Uint, index Uint, bufSize Sizei, length *Sizei, size *Int, kind *Enum, name []byte) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcindex, _ := (C.GLuint)(index), cgoAllocsUnknown\n\tcbufSize, _ := (C.GLsizei)(bufSize), cgoAllocsUnknown\n\tclength, _ := (*C.GLsizei)(unsafe.Pointer(length)), cgoAllocsUnknown\n\tcsize, _ := (*C.GLint)(unsafe.Pointer(size)), cgoAllocsUnknown\n\tckind, _ := (*C.GLenum)(unsafe.Pointer(kind)), cgoAllocsUnknown\n\tcname, _ := (*C.GLchar)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&name)).Data)), cgoAllocsUnknown\n\tC.glGetActiveUniform(cprogram, cindex, cbufSize, clength, csize, ckind, cname)\n}", "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func (s *Shader) GetUniform(str string) *Uniform {\n\tif uid, ok := s.uniforms[str]; ok {\n\t\treturn uid\n\t}\n\ts.uniforms[str] = &Uniform{\n\t\tname: str,\n\t\tprogram: s.programID,\n\t}\n\treturn s.uniforms[str]\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gpUniform1ui, (C.GLint)(location), (C.GLuint)(v0))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *uint8) {\n\tsyscall.Syscall6(gpGetActiveSubroutineUniformName, 6, uintptr(program), uintptr(shadertype), uintptr(index), uintptr(bufsize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(name)))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (sh *ShaderStd) Name() string { return sh.MtlName }", "func (program Program) GetUniformLocation(name string) UniformLocation {\n\treturn UniformLocation(gl.GetUniformLocation(uint32(program), gl.Str(name+\"\\x00\")))\n}", "func GetUniformLocation(p Program, name string) Uniform {\n\treturn Uniform{Value: gl.GetUniformLocation(p.Value, gl.Str(name+\"\\x00\"))}\n}", "func GetUniformLocation(program uint32, name *int8) int32 {\n ret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n C.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func Uniform1ui(location int32, v0 uint32) {\n\tC.glowUniform1ui(gpUniform1ui, (C.GLint)(location), (C.GLuint)(v0))\n}", "func Uniform1ui(location int32, v0 uint32) {\n\tC.glowUniform1ui(gpUniform1ui, (C.GLint)(location), (C.GLuint)(v0))\n}", "func (u *Uniform) Bind() {\n\tif u.id < 0 {\n\t\tu.id = gl.GetUniformLocation(u.program, glString(u.name))\n\t\tif u.id < 0 {\n\t\t\tpanic(fmt.Errorf(\"glGetUniformLocation for \\\"%s\\\" (program %d) returned -1, GL error: %d\", u.name, u.program, gl.GetError()))\n\t\t}\n\t}\n\tswitch value := u.value.(type) {\n\tcase uint32:\n\t\tgl.Uniform1ui(u.id, value)\n\tcase []uint32:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1uiv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2uiv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3uiv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4uiv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase int32:\n\t\tgl.Uniform1i(u.id, value)\n\tcase []int32:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1iv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2iv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3iv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4iv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase float32:\n\t\tgl.Uniform1f(u.id, value)\n\tcase []float32:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1fv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2fv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3fv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4fv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase float64:\n\t\tgl.Uniform1d(u.id, value)\n\tcase []float64:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1dv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2dv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3dv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4dv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase mgl32.Mat2:\n\t\tgl.UniformMatrix2fv(u.id, 1, false, &value[0])\n\tcase mgl32.Mat3:\n\t\tgl.UniformMatrix3fv(u.id, 1, false, &value[0])\n\tcase mgl32.Mat4:\n\t\tgl.UniformMatrix4fv(u.id, 1, false, &value[0])\n\tcase *Texture:\n\t\tvalue.Bind(0) //TODO support multiple textures per-shader\n\t\terr := value.SetUniform(u.id)\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\tcase color.Color:\n\t\tr, g, b, a := toGLColor(value)\n\t\tgl.Uniform4f(u.id, r, g, b, a)\n\tdefault:\n\t\tpanic(ErrUniformInvalidType)\n\t}\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *int8) uint32 {\n ret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n return (uint32)(ret)\n}", "func Uniform1i(location int32, v0 int32) {\n C.glowUniform1i(gpUniform1i, (C.GLint)(location), (C.GLint)(v0))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveUniformsiv, 5, uintptr(program), uintptr(uniformCount), uintptr(unsafe.Pointer(uniformIndices)), uintptr(pname), uintptr(unsafe.Pointer(params)), 0)\n}", "func Uniform1uiv(location int32, count int32, value *uint32) {\n C.glowUniform1uiv(gpUniform1uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func (debugging *debuggingOpenGL) Uniform1i(location int32, value int32) {\n\tdebugging.recordEntry(\"Uniform1i\", location, value)\n\tdebugging.gl.Uniform1i(location, value)\n\tdebugging.recordExit(\"Uniform1i\")\n}", "func ProgramUniform1ui(program uint32, location int32, v0 uint32) {\n C.glowProgramUniform1ui(gpProgramUniform1ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func Uniform2ui(location int32, v0 uint32, v1 uint32) {\n C.glowUniform2ui(gpUniform2ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func (s *Shader) getUniformLocation(name string) (location int32) {\n\t// if we already saved the location, return it\n\tif location, ok := s.uniformLocs[name]; ok {\n\t\treturn location\n\t}\n\n\t// if it's not in our location cache, get it from opengl and save it in the cache\n\tlocation = gl.GetUniformLocation(s.Program, gl.Str(name+\"\\x00\"))\n\tif location == -1 {\n\t\tfmt.Println(\"ERROR: Could not find uniform:\", name)\n\t\treturn\n\t}\n\n\ts.uniformLocs[name] = location\n\treturn\n}", "func Uniform4ui(location int32, v0 uint32, v1 uint32, v2 uint32, v3 uint32) {\n C.glowUniform4ui(gpUniform4ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2), (C.GLuint)(v3))\n}", "func (native *OpenGL) GetUniformLocation(program uint32, name string) int32 {\n\treturn gl.GetUniformLocation(program, gl.Str(name+\"\\x00\"))\n}", "func (program Program) GetActiveUniforms() int32 {\n\tvar params int32\n\tgl.GetProgramiv(uint32(program), gl.ACTIVE_UNIFORMS, &params)\n\treturn params\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tC.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tC.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func uniform(rgba uint32) *image.Uniform {\n\treturn image.NewUniform(Hex(rgba))\n}", "func (s *Shader) UniformFormat() AttrFormat {\n\treturn s.uniformFmt\n}", "func Uniform1f(location int32, v0 float32) {\n C.glowUniform1f(gpUniform1f, (C.GLint)(location), (C.GLfloat)(v0))\n}", "func Uniform1uiv(location int32, count int32, value *uint32) {\n\tC.glowUniform1uiv(gpUniform1uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func Uniform1uiv(location int32, count int32, value *uint32) {\n\tC.glowUniform1uiv(gpUniform1uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform2ui(program uint32, location int32, v0 uint32, v1 uint32) {\n C.glowProgramUniform2ui(gpProgramUniform2ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func (debugging *debuggingOpenGL) GetUniformLocation(program uint32, name string) int32 {\n\tdebugging.recordEntry(\"GetUniformLocation\", program, name)\n\tresult := debugging.gl.GetUniformLocation(program, name)\n\tdebugging.recordExit(\"GetUniformLocation\", result)\n\treturn result\n}", "func (native *OpenGL) Uniform1i(location int32, value int32) {\n\tgl.Uniform1i(location, value)\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tsyscall.Syscall(gpGetUniformfv, 3, uintptr(program), uintptr(location), uintptr(unsafe.Pointer(params)))\n}", "func (gl *WebGL) Uniform1i(location WebGLUniformLocation, value int) {\n\tgl.context.Call(\"uniform1i\", location, value)\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetUniformLocation, 2, uintptr(program), uintptr(unsafe.Pointer(name)), 0)\n\treturn (int32)(ret)\n}", "func ProgramUniform1i(program uint32, location int32, v0 int32) {\n C.glowProgramUniform1i(gpProgramUniform1i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0))\n}", "func Uniform1i(location int32, v0 int32) {\n\tC.glowUniform1i(gpUniform1i, (C.GLint)(location), (C.GLint)(v0))\n}", "func Uniform1i(location int32, v0 int32) {\n\tC.glowUniform1i(gpUniform1i, (C.GLint)(location), (C.GLint)(v0))\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformBlockiv(gpGetActiveUniformBlockiv, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformBlockiv(gpGetActiveUniformBlockiv, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n C.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func Uniform3ui(location int32, v0 uint32, v1 uint32, v2 uint32) {\n C.glowUniform3ui(gpUniform3ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2))\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func ProgramUniform1ui(program uint32, location int32, v0 uint32) {\n\tC.glowProgramUniform1ui(gpProgramUniform1ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0))\n}", "func ProgramUniform1ui(program uint32, location int32, v0 uint32) {\n\tC.glowProgramUniform1ui(gpProgramUniform1ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0))\n}", "func Uniform1fv(location int32, count int32, value *float32) {\n C.glowUniform1fv(gpUniform1fv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func Uniform1i(location int32, v0 int32) {\n\tsyscall.Syscall(gpUniform1i, 2, uintptr(location), uintptr(v0), 0)\n}", "func (*unifinames) Name() string { return \"unifi-names\" }", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveUniformBlockiv, 4, uintptr(program), uintptr(uniformBlockIndex), uintptr(pname), uintptr(unsafe.Pointer(params)), 0, 0)\n}", "func ProgramUniform1fv(program uint32, location int32, count int32, value *float32) {\n C.glowProgramUniform1fv(gpProgramUniform1fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func ProgramUniform1f(program uint32, location int32, v0 float32) {\n C.glowProgramUniform1f(gpProgramUniform1f, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0))\n}", "func (g *Game) nameOf(x, y int) string {\n\treturn fmt.Sprintf(\"%s%d\", string('a'+x), y+1)\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func Uniform2uiv(location int32, count int32, value *uint32) {\n C.glowUniform2uiv(gpUniform2uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func GetUniformLocation(program Uint, name string) Int {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcname, _ := unpackPCharString(name)\n\t__ret := C.glGetUniformLocation(cprogram, cname)\n\t__v := (Int)(__ret)\n\treturn __v\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **int8, uniformIndices *uint32) {\n C.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n\treturn (uint32)(ret)\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n\treturn (uint32)(ret)\n}", "func LoadName(name uint32) {\n C.glowLoadName(gpLoadName, (C.GLuint)(name))\n}", "func ProgramUniform4ui(program uint32, location int32, v0 uint32, v1 uint32, v2 uint32, v3 uint32) {\n C.glowProgramUniform4ui(gpProgramUniform4ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2), (C.GLuint)(v3))\n}", "func Uniform1Int(location UniformLocation, v0 int32) {\n\tgl.Uniform1i(int32(location), v0)\n}", "func Uniform4uiv(location int32, count int32, value *uint32) {\n C.glowUniform4uiv(gpUniform4uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func Uniform2ui(location int32, v0 uint32, v1 uint32) {\n\tC.glowUniform2ui(gpUniform2ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func Uniform2ui(location int32, v0 uint32, v1 uint32) {\n\tC.glowUniform2ui(gpUniform2ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func Uniform1iv(location int32, count int32, value *int32) {\n C.glowUniform1iv(gpUniform1iv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value)))\n}", "func (s MpuSensor) GetName() string {\n\treturn \"Ac-Mg-Gy\"\n}", "func ProgramUniform4uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform4uiv(gpProgramUniform4uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n\tsyscall.Syscall6(gpProgramUniform1uiv, 4, uintptr(program), uintptr(location), uintptr(count), uintptr(unsafe.Pointer(value)), 0, 0)\n}", "func Name() string {\n\treturn getRandValue([]string{\"person\", \"first\"}) + \" \" + getRandValue([]string{\"person\", \"last\"})\n}", "func Uniform3uiv(location int32, count int32, value *uint32) {\n C.glowUniform3uiv(gpUniform3uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func Uniform1i(dst Uniform, v int) {\n\tgl.Uniform1i(dst.Value, int32(v))\n}", "func ProgramUniform1ui(program uint32, location int32, v0 uint32) {\n\tsyscall.Syscall(gpProgramUniform1ui, 3, uintptr(program), uintptr(location), uintptr(v0))\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n C.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tC.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}" ]
[ "0.7942499", "0.75794333", "0.7114119", "0.689965", "0.689965", "0.6887117", "0.66925883", "0.6691864", "0.6691864", "0.66465735", "0.6581218", "0.6530695", "0.63550633", "0.63550633", "0.6299961", "0.6296752", "0.62910396", "0.6189796", "0.6084295", "0.6062669", "0.6018193", "0.5924057", "0.5914866", "0.59101975", "0.5866008", "0.5819968", "0.5819968", "0.581079", "0.57937104", "0.57445616", "0.5741463", "0.57084733", "0.5687595", "0.56654793", "0.56650114", "0.56650114", "0.5591889", "0.5580876", "0.5564622", "0.5554294", "0.555335", "0.555059", "0.5550546", "0.5550546", "0.55105925", "0.55020064", "0.5497077", "0.54914707", "0.54914707", "0.5487056", "0.5458561", "0.5458561", "0.5438434", "0.5427173", "0.5421738", "0.53966016", "0.5391461", "0.5390638", "0.53834283", "0.53834283", "0.53803563", "0.53803563", "0.5379436", "0.53664076", "0.53418434", "0.53372985", "0.53326756", "0.53326756", "0.53229624", "0.5321536", "0.5321536", "0.5304786", "0.5301152", "0.5295488", "0.52868104", "0.5286441", "0.5274351", "0.5265626", "0.52600676", "0.5257185", "0.5244083", "0.52402884", "0.52402884", "0.5236033", "0.5221623", "0.5198549", "0.5189356", "0.51445115", "0.51445115", "0.51365644", "0.5131782", "0.5127773", "0.51130223", "0.5091264", "0.5085636", "0.50814694", "0.5080758", "0.5055189", "0.5050782" ]
0.7683819
2
Returns information about several active uniform variables for the specified program object
func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) { C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (program Program) GetActiveUniforms() int32 {\n\tvar params int32\n\tgl.GetProgramiv(uint32(program), gl.ACTIVE_UNIFORMS, &params)\n\treturn params\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveUniformsiv, 5, uintptr(program), uintptr(uniformCount), uintptr(unsafe.Pointer(uniformIndices)), uintptr(pname), uintptr(unsafe.Pointer(params)), 0)\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **int8, uniformIndices *uint32) {\n C.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tsyscall.Syscall9(gpGetActiveUniform, 7, uintptr(program), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(xtype)), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n C.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n C.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformName, 5, uintptr(program), uintptr(uniformIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformName)), 0)\n}", "func GetActiveUniform(p Program, index uint32) (name string, size int, ty Enum) {\n\tvar length, si int32\n\tvar typ uint32\n\tname = strings.Repeat(\"\\x00\", 256)\n\tcname := gl.Str(name)\n\tgl.GetActiveUniform(p.Value, uint32(index), int32(len(name)-1), &length, &si, &typ, cname)\n\tname = name[:strings.IndexRune(name, 0)]\n\treturn name, int(si), Enum(typ)\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **uint8, uniformIndices *uint32) {\n\tsyscall.Syscall6(gpGetUniformIndices, 4, uintptr(program), uintptr(uniformCount), uintptr(unsafe.Pointer(uniformNames)), uintptr(unsafe.Pointer(uniformIndices)), 0, 0)\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func ProgramUniform3uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform3uiv(gpProgramUniform3uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tsyscall.Syscall(gpGetUniformfv, 3, uintptr(program), uintptr(location), uintptr(unsafe.Pointer(params)))\n}", "func ProgramUniform2ui(program uint32, location int32, v0 uint32, v1 uint32) {\n C.glowProgramUniform2ui(gpProgramUniform2ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func Variables() {\n\tvar i int\n\tfmt.Println(i, c, python, java)\n}", "func ProgramUniform3uiv(program uint32, location int32, count int32, value *uint32) {\n\tsyscall.Syscall6(gpProgramUniform3uiv, 4, uintptr(program), uintptr(location), uintptr(count), uintptr(unsafe.Pointer(value)), 0, 0)\n}", "func (obj *application) Variables() variables.Variables {\n\treturn obj.variables\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n\tsyscall.Syscall6(gpProgramUniform2uiv, 4, uintptr(program), uintptr(location), uintptr(count), uintptr(unsafe.Pointer(value)), 0, 0)\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v1 uint32, v2 uint32) {\n C.glowProgramUniform3ui(gpProgramUniform3ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2))\n}", "func ProgramUniform3uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform3uiv(gpProgramUniform3uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform3uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform3uiv(gpProgramUniform3uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func (program Program) GetActiveAttributes() int32 {\n\tvar params int32\n\tgl.GetProgramiv(uint32(program), gl.ACTIVE_ATTRIBUTES, &params)\n\treturn params\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func main() {\n //run_variables()\n //run_strings()\n\n //var area, _ = rectProps(5, 3)\n //fmt.Println(area)\n}", "func freevars(s selection, args []string) {\n\tfmt.Println(runWithStdin(s.archive(), \"guru\", \"-modified\", \"freevars\", s.sel()))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tsyscall.Syscall(gpGetUniformiv, 3, uintptr(program), uintptr(location), uintptr(unsafe.Pointer(params)))\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform3i(program uint32, location int32, v0 int32, v1 int32, v2 int32) {\n C.glowProgramUniform3i(gpProgramUniform3i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2))\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **uint8, uniformIndices *uint32) {\n\tC.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **uint8, uniformIndices *uint32) {\n\tC.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func (bo BinaryOperator) Variables() []string {\n\tset := make(map[string]struct{})\n\tfor _, x := range bo.Left.Variables() {\n\t\tset[x] = struct{}{}\n\t}\n\tfor _, x := range bo.Right.Variables() {\n\t\tset[x] = struct{}{}\n\t}\n\tattrs := make([]string, 0, len(set))\n\tfor x := range set {\n\t\tattrs = append(attrs, x)\n\t}\n\treturn attrs\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tC.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tC.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func ProgramUniform4ui(program uint32, location int32, v0 uint32, v1 uint32, v2 uint32, v3 uint32) {\n C.glowProgramUniform4ui(gpProgramUniform4ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2), (C.GLuint)(v3))\n}", "func (o ValidatingAdmissionPolicySpecOutput) Variables() VariableArrayOutput {\n\treturn o.ApplyT(func(v ValidatingAdmissionPolicySpec) []Variable { return v.Variables }).(VariableArrayOutput)\n}", "func GetActiveUniform(program Uint, index Uint, bufSize Sizei, length *Sizei, size *Int, kind *Enum, name []byte) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcindex, _ := (C.GLuint)(index), cgoAllocsUnknown\n\tcbufSize, _ := (C.GLsizei)(bufSize), cgoAllocsUnknown\n\tclength, _ := (*C.GLsizei)(unsafe.Pointer(length)), cgoAllocsUnknown\n\tcsize, _ := (*C.GLint)(unsafe.Pointer(size)), cgoAllocsUnknown\n\tckind, _ := (*C.GLenum)(unsafe.Pointer(kind)), cgoAllocsUnknown\n\tcname, _ := (*C.GLchar)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&name)).Data)), cgoAllocsUnknown\n\tC.glGetActiveUniform(cprogram, cindex, cbufSize, clength, csize, ckind, cname)\n}", "func Uniform3ui(location int32, v0 uint32, v1 uint32, v2 uint32) {\n C.glowUniform3ui(gpUniform3ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2))\n}", "func Uniform3uiv(location int32, count int32, value *uint32) {\n C.glowUniform3uiv(gpUniform3uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform4uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform4uiv(gpProgramUniform4uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tC.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tC.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func ProgramUniform1ui(program uint32, location int32, v0 uint32) {\n C.glowProgramUniform1ui(gpProgramUniform1ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0))\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (u *Uniform) Bind() {\n\tif u.id < 0 {\n\t\tu.id = gl.GetUniformLocation(u.program, glString(u.name))\n\t\tif u.id < 0 {\n\t\t\tpanic(fmt.Errorf(\"glGetUniformLocation for \\\"%s\\\" (program %d) returned -1, GL error: %d\", u.name, u.program, gl.GetError()))\n\t\t}\n\t}\n\tswitch value := u.value.(type) {\n\tcase uint32:\n\t\tgl.Uniform1ui(u.id, value)\n\tcase []uint32:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1uiv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2uiv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3uiv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4uiv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase int32:\n\t\tgl.Uniform1i(u.id, value)\n\tcase []int32:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1iv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2iv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3iv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4iv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase float32:\n\t\tgl.Uniform1f(u.id, value)\n\tcase []float32:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1fv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2fv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3fv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4fv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase float64:\n\t\tgl.Uniform1d(u.id, value)\n\tcase []float64:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1dv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2dv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3dv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4dv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase mgl32.Mat2:\n\t\tgl.UniformMatrix2fv(u.id, 1, false, &value[0])\n\tcase mgl32.Mat3:\n\t\tgl.UniformMatrix3fv(u.id, 1, false, &value[0])\n\tcase mgl32.Mat4:\n\t\tgl.UniformMatrix4fv(u.id, 1, false, &value[0])\n\tcase *Texture:\n\t\tvalue.Bind(0) //TODO support multiple textures per-shader\n\t\terr := value.SetUniform(u.id)\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\tcase color.Color:\n\t\tr, g, b, a := toGLColor(value)\n\t\tgl.Uniform4f(u.id, r, g, b, a)\n\tdefault:\n\t\tpanic(ErrUniformInvalidType)\n\t}\n}", "func ProgramUniform3fv(program uint32, location int32, count int32, value *float32) {\n\tsyscall.Syscall6(gpProgramUniform3fv, 4, uintptr(program), uintptr(location), uintptr(count), uintptr(unsafe.Pointer(value)), 0, 0)\n}", "func ProgramUniform3i(program uint32, location int32, v0 int32, v1 int32, v2 int32) {\n\tsyscall.Syscall6(gpProgramUniform3i, 5, uintptr(program), uintptr(location), uintptr(v0), uintptr(v1), uintptr(v2), 0)\n}", "func ProgramUniform4i(program uint32, location int32, v0 int32, v1 int32, v2 int32, v3 int32) {\n C.glowProgramUniform4i(gpProgramUniform4i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2), (C.GLint)(v3))\n}", "func ProgramUniform3iv(program uint32, location int32, count int32, value *int32) {\n C.glowProgramUniform3iv(gpProgramUniform3iv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value)))\n}", "func (g *Game) Variables(sort *Sorting) (*VariableCollection, *Error) {\n\tif g.VariablesData == nil {\n\t\treturn fetchVariablesLink(firstLink(g, \"variables\"), nil, sort)\n\t}\n\n\treturn toVariableCollection(g.VariablesData), nil\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n C.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))\n}", "func printUsedValues() {\n\tfmt.Println(\"#### Running with values ####\")\n\tfmt.Println(\"tomlfile:\", *tomlfile)\n\tfmt.Println(\"remove:\", *removefiles)\n\tfmt.Println(\"log:\", *logfile)\n}", "func Uniform3uiv(location int32, count int32, value *uint32) {\n\tC.glowUniform3uiv(gpUniform3uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func Uniform3uiv(location int32, count int32, value *uint32) {\n\tC.glowUniform3uiv(gpUniform3uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform3fv(program uint32, location int32, count int32, value *float32) {\n C.glowProgramUniform3fv(gpProgramUniform3fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v1 uint32, v2 uint32) {\n\tsyscall.Syscall6(gpProgramUniform3ui, 5, uintptr(program), uintptr(location), uintptr(v0), uintptr(v1), uintptr(v2), 0)\n}", "func ProgramUniform3iv(program uint32, location int32, count int32, value *int32) {\n\tsyscall.Syscall6(gpProgramUniform3iv, 4, uintptr(program), uintptr(location), uintptr(count), uintptr(unsafe.Pointer(value)), 0, 0)\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n\tsyscall.Syscall6(gpProgramUniform1uiv, 4, uintptr(program), uintptr(location), uintptr(count), uintptr(unsafe.Pointer(value)), 0, 0)\n}", "func ProgramUniform2ui(program uint32, location int32, v0 uint32, v1 uint32) {\n\tC.glowProgramUniform2ui(gpProgramUniform2ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func ProgramUniform2ui(program uint32, location int32, v0 uint32, v1 uint32) {\n\tC.glowProgramUniform2ui(gpProgramUniform2ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func ProgramUniform3i(program uint32, location int32, v0 int32, v1 int32, v2 int32) {\n\tC.glowProgramUniform3i(gpProgramUniform3i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2))\n}", "func ProgramUniform3i(program uint32, location int32, v0 int32, v1 int32, v2 int32) {\n\tC.glowProgramUniform3i(gpProgramUniform3i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2))\n}", "func Uniform3i(location int32, v0 int32, v1 int32, v2 int32) {\n\tsyscall.Syscall6(gpUniform3i, 4, uintptr(location), uintptr(v0), uintptr(v1), uintptr(v2), 0, 0)\n}", "func ProgramUniform3f(program uint32, location int32, v0 float32, v1 float32, v2 float32) {\n C.glowProgramUniform3f(gpProgramUniform3f, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1), (C.GLfloat)(v2))\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v1 uint32, v2 uint32) {\n\tC.glowProgramUniform3ui(gpProgramUniform3ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2))\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v1 uint32, v2 uint32) {\n\tC.glowProgramUniform3ui(gpProgramUniform3ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2))\n}", "func ProgramUniform2ui(program uint32, location int32, v0 uint32, v1 uint32) {\n\tsyscall.Syscall6(gpProgramUniform2ui, 4, uintptr(program), uintptr(location), uintptr(v0), uintptr(v1), 0, 0)\n}", "func Uniform3Int(location UniformLocation, v0, v1, v2 int32) {\n\tgl.Uniform3i(int32(location), v0, v1, v2)\n}", "func ProgramUniform2i(program uint32, location int32, v0 int32, v1 int32) {\n C.glowProgramUniform2i(gpProgramUniform2i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1))\n}", "func getvariables(fn *Node) []*Node {\n\tresult := make([]*Node, 0, 0)\n\tfor ll := fn.Func.Dcl; ll != nil; ll = ll.Next {\n\t\tif ll.N.Op == ONAME {\n\t\t\t// In order for GODEBUG=gcdead=1 to work, each bitmap needs\n\t\t\t// to contain information about all variables covered by the bitmap.\n\t\t\t// For local variables, the bitmap only covers the stkptrsize\n\t\t\t// bytes in the frame where variables containing pointers live.\n\t\t\t// For arguments and results, the bitmap covers all variables,\n\t\t\t// so we must include all the variables, even the ones without\n\t\t\t// pointers.\n\t\t\t//\n\t\t\t// The Node.opt field is available for use by optimization passes.\n\t\t\t// We use it to hold the index of the node in the variables array, plus 1\n\t\t\t// (so that 0 means the Node is not in the variables array).\n\t\t\t// Each pass should clear opt when done, but you never know,\n\t\t\t// so clear them all ourselves too.\n\t\t\t// The Node.curfn field is supposed to be set to the current function\n\t\t\t// already, but for some compiler-introduced names it seems not to be,\n\t\t\t// so fix that here.\n\t\t\t// Later, when we want to find the index of a node in the variables list,\n\t\t\t// we will check that n->curfn == curfn and n->opt > 0. Then n->opt - 1\n\t\t\t// is the index in the variables list.\n\t\t\tll.N.Opt = nil\n\n\t\t\t// The compiler doesn't emit initializations for zero-width parameters or results.\n\t\t\tif ll.N.Type.Width == 0 {\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\tll.N.Curfn = Curfn\n\t\t\tswitch ll.N.Class {\n\t\t\tcase PAUTO:\n\t\t\t\tif haspointers(ll.N.Type) {\n\t\t\t\t\tll.N.Opt = int32(len(result))\n\t\t\t\t\tresult = append(result, ll.N)\n\t\t\t\t}\n\n\t\t\tcase PPARAM, PPARAMOUT:\n\t\t\t\tll.N.Opt = int32(len(result))\n\t\t\t\tresult = append(result, ll.N)\n\t\t\t}\n\t\t}\n\t}\n\n\treturn result\n}", "func GetAttribLocation(program uint32, name *int8) int32 {\n ret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n\tsyscall.Syscall(gpActiveShaderProgram, 2, uintptr(pipeline), uintptr(program), 0)\n}", "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func (p Predicate) variables() []Variable {\n\tres := make([]Variable, 0, len(p.parameters))\n\tfor _, v := range p.parameters {\n\t\tif isVar(v.name) {\n\t\t\tres = append(res, v)\n\t\t}\n\t}\n\treturn res\n}", "func ProgramUniform3iv(program uint32, location int32, count int32, value *int32) {\n\tC.glowProgramUniform3iv(gpProgramUniform3iv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value)))\n}", "func ProgramUniform3iv(program uint32, location int32, count int32, value *int32) {\n\tC.glowProgramUniform3iv(gpProgramUniform3iv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value)))\n}", "func GetActiveAttrib(p Program, index uint32) (name string, size int, ty Enum) {\n\tvar length, si int32\n\tvar typ uint32\n\tname = strings.Repeat(\"\\x00\", 256)\n\tcname := gl.Str(name)\n\tgl.GetActiveAttrib(p.Value, uint32(index), int32(len(name)-1), &length, &si, &typ, cname)\n\tname = name[:strings.IndexRune(name, 0)]\n\treturn name, int(si), Enum(typ)\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tsyscall.Syscall9(gpGetActiveAttrib, 7, uintptr(program), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(xtype)), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func ProgramUniform1i(program uint32, location int32, v0 int32) {\n C.glowProgramUniform1i(gpProgramUniform1i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0))\n}", "func GetProgramiv(program uint32, pname uint32, params *int32) {\n C.glowGetProgramiv(gpGetProgramiv, (C.GLuint)(program), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (app *registry) All() map[string]computable.Value {\n\treturn app.variables\n}", "func Uniform2uiv(location int32, count int32, value *uint32) {\n C.glowUniform2uiv(gpUniform2uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func (tbl *STable) Variables() []interface{} {\n\treturn []interface{}{}\n}", "func ProgramUniform3fv(program uint32, location int32, count int32, value *float32) {\n\tC.glowProgramUniform3fv(gpProgramUniform3fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func ProgramUniform3fv(program uint32, location int32, count int32, value *float32) {\n\tC.glowProgramUniform3fv(gpProgramUniform3fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func (s *BaseLittleDuckListener) EnterPrograma_vars(ctx *Programa_varsContext) {}", "func Uniform2ui(location int32, v0 uint32, v1 uint32) {\n C.glowUniform2ui(gpUniform2ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func (native *OpenGL) Uniform3i(location int32, v0 int32, v1 int32, v2 int32) {\n\tgl.Uniform3i(location, v0, v1, v2)\n}" ]
[ "0.65063447", "0.6350528", "0.6163658", "0.57142377", "0.5673352", "0.5645704", "0.5494669", "0.54394954", "0.53698814", "0.53698814", "0.53284395", "0.53249276", "0.529366", "0.5285841", "0.5273628", "0.5262108", "0.5262108", "0.5252404", "0.5212958", "0.51913226", "0.5181838", "0.51429236", "0.51340175", "0.51332194", "0.5124553", "0.50969255", "0.5091674", "0.5091674", "0.5072093", "0.50686616", "0.50686616", "0.50604844", "0.5051495", "0.5015214", "0.50084496", "0.5001338", "0.49866745", "0.4966101", "0.4966101", "0.4938368", "0.49045643", "0.49045643", "0.489014", "0.48790735", "0.48736197", "0.48700735", "0.48682165", "0.48387", "0.48277438", "0.48277438", "0.48204356", "0.48156795", "0.48156795", "0.48088798", "0.48067036", "0.48063222", "0.48040873", "0.47958386", "0.47928452", "0.479101", "0.47894946", "0.47857648", "0.47857648", "0.47798544", "0.47769666", "0.47760034", "0.47681177", "0.47681177", "0.47679928", "0.47667885", "0.47667885", "0.47488195", "0.47488195", "0.4747126", "0.47436395", "0.47386348", "0.47386348", "0.47330794", "0.47136128", "0.47120872", "0.4693544", "0.4691829", "0.46887678", "0.46857357", "0.468258", "0.46778417", "0.46778417", "0.46774063", "0.46725097", "0.46715096", "0.4661783", "0.46558577", "0.46541688", "0.46477738", "0.46322396", "0.46322396", "0.4629487", "0.46161824", "0.46156663" ]
0.60227525
4
Returns the handles of the shader objects attached to a program object
func GetAttachedShaders(program uint32, maxCount int32, count *int32, shaders *uint32) { C.glowGetAttachedShaders(gpGetAttachedShaders, (C.GLuint)(program), (C.GLsizei)(maxCount), (*C.GLsizei)(unsafe.Pointer(count)), (*C.GLuint)(unsafe.Pointer(shaders))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetAttachedShaders(program uint32, maxCount int32, count *int32, shaders *uint32) {\n C.glowGetAttachedShaders(gpGetAttachedShaders, (C.GLuint)(program), (C.GLsizei)(maxCount), (*C.GLsizei)(unsafe.Pointer(count)), (*C.GLuint)(unsafe.Pointer(shaders)))\n}", "func GetAttachedShaders(program uint32, maxCount int32, count *int32, shaders *uint32) {\n\tsyscall.Syscall6(gpGetAttachedShaders, 4, uintptr(program), uintptr(maxCount), uintptr(unsafe.Pointer(count)), uintptr(unsafe.Pointer(shaders)), 0, 0)\n}", "func GetAttachedShaders(p Program) []Shader {\n\tlog.Println(\"GetAttachedShaders: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)\")\n\tshadersLen := GetProgrami(p, ATTACHED_SHADERS)\n\tvar n int32\n\tbuf := make([]uint32, shadersLen)\n\tgl.GetAttachedShaders(uint32(p.Value), int32(shadersLen), &n, &buf[0])\n\tbuf = buf[:int(n)]\n\tshaders := make([]Shader, int(n))\n\tfor i, s := range buf {\n\t\tshaders[i] = Shader{Value: uint32(s)}\n\t}\n\treturn shaders\n}", "func (program Program) GetAttachedShaders() int32 {\n\tvar params int32\n\tgl.GetProgramiv(uint32(program), gl.ATTACHED_SHADERS, &params)\n\treturn params\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n C.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))\n}", "func GetAttachedShaders(program Uint, maxCount Sizei, count *Sizei, shaders []Uint) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcmaxCount, _ := (C.GLsizei)(maxCount), cgoAllocsUnknown\n\tccount, _ := (*C.GLsizei)(unsafe.Pointer(count)), cgoAllocsUnknown\n\tcshaders, _ := (*C.GLuint)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&shaders)).Data)), cgoAllocsUnknown\n\tC.glGetAttachedShaders(cprogram, cmaxCount, ccount, cshaders)\n}", "func (sm *shaderManager) GetShaderProgram(id uint32) (Shader, bool) {\n\tsm.programLock.RLock()\n\tdefer sm.programLock.RUnlock()\n\tfor _, shader := range sm.shaders {\n\t\tif shader.ProgramID() == id {\n\t\t\treturn shader, true\n\t\t}\n\t}\n\n\treturn nil, false\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n\tsyscall.Syscall(gpActiveShaderProgram, 2, uintptr(pipeline), uintptr(program), 0)\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n\tC.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n\tC.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))\n}", "func (s *Shader) Use() {\n\tgl.UseProgram(s.programID)\n}", "func DetachShader(program uint32, shader uint32) {\n C.glowDetachShader(gpDetachShader, (C.GLuint)(program), (C.GLuint)(shader))\n}", "func (s *Shader) Init(shader io.Reader) (err error) {\n\ts.uniformLocs = make(map[string]int32)\n\ts.uniformBIndices = make(map[string]uint32)\n\ts.uniformBOs = make(map[string]uint32)\n\tshaders := []uint32{}\n\n\treader := bufio.NewReader(shader)\n\n\tshaderTypeLine, err := reader.ReadString('\\n')\n\tif err != nil {\n\t\treturn err\n\t}\n\n\t// eof gets set to true if we reached the end of the file\n\teof := false\n\n\tfor {\n\t\tshader := \"\"\n\n\t\t// decide on the shader type\n\t\tvar shaderType uint32\n\t\ttypeStr := strings.Split(shaderTypeLine, \" \")[1]\n\t\tswitch strings.ToLower(typeStr) {\n\t\tcase \"vertex\\n\":\n\t\t\tshaderType = gl.VERTEX_SHADER\n\t\tcase \"fragment\\n\":\n\t\t\tshaderType = gl.FRAGMENT_SHADER\n\t\tdefault:\n\t\t\terr = errors.New(\"Shader type \" + typeStr + \" not known.\")\n\t\t\treturn err\n\t\t}\n\n\t\tfor {\n\t\t\tline, err := reader.ReadString('\\n')\n\t\t\tif err == io.EOF {\n\t\t\t\teof = true\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\t// start a new shader string with a new type if the line starts with \"#shader\"\n\t\t\tif strings.HasPrefix(line, \"#shader\") {\n\t\t\t\t// tell the next iteration the information on shader type we read\n\t\t\t\tshaderTypeLine = line\n\t\t\t\tbreak\n\t\t\t} else {\n\t\t\t\tshader += line\n\t\t\t}\n\t\t}\n\n\t\t// if the shader is not empty, compile it\n\t\tif len(shader) > 0 {\n\t\t\tshaderptr, err := s.compile(shader+\"\\x00\", shaderType)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tshaders = append(shaders, shaderptr)\n\t\t} else {\n\t\t\tbreak\n\t\t}\n\n\t\tif eof {\n\t\t\tbreak\n\t\t}\n\t}\n\n\t// link shaders\n\ts.Program = gl.CreateProgram()\n\tfor _, shader := range shaders {\n\t\tgl.AttachShader(s.Program, shader)\n\t}\n\tgl.LinkProgram(s.Program)\n\n\t// delete the singke shaders. we won't need them anymore\n\tfor _, shader := range shaders {\n\t\tgl.DeleteShader(shader)\n\t}\n\n\treturn\n}", "func (s *Shader) ID() uint32 {\n\treturn s.program.obj\n}", "func initOpenGL() (uint32, uint32) {\n\tif err := gl.Init(); err != nil {\n\t\tpanic(err)\n\t}\n\tversion := gl.GoStr(gl.GetString(gl.VERSION))\n\tlog.Println(\"OpenGL version\", version)\n\n\tgl.Enable(gl.CULL_FACE)\n\tgl.CullFace(gl.BACK)\n\tgl.FrontFace(gl.CW)\n\n\tvar reactProg, landProg uint32\n\treactProg, landProg = setupShaders()\n\n\t//---------------------------\n\n\tgl.GenVertexArrays(1, &VAO)\n\tgl.GenBuffers(1, &VBO)\n\tgl.GenBuffers(1, &EBO)\n\n\tgl.BindVertexArray(VAO)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, VBO)\n\tgl.BufferData(gl.ARRAY_BUFFER, 4*len(vertices), gl.Ptr(vertices), gl.STATIC_DRAW)\n\tgl.BindBuffer(gl.ELEMENT_ARRAY_BUFFER, EBO)\n\tgl.BufferData(gl.ELEMENT_ARRAY_BUFFER, 4*len(indices), gl.Ptr(indices), gl.STATIC_DRAW)\n\n\t// position attribute\n\tvar vOffset int = 0\n\tgl.EnableVertexAttribArray(0)\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(vOffset))\n\t// color attribute\n\tvar cOffset int = 3 * 4\n\tgl.EnableVertexAttribArray(1)\n\tgl.VertexAttribPointer(1, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(cOffset))\n\t// texture coord attribute\n\tvar tOffset int = 6 * 4\n\tgl.EnableVertexAttribArray(2)\n\tgl.VertexAttribPointer(2, 2, gl.FLOAT, false, 8*4, gl.PtrOffset(tOffset))\n\n\tgl.BindVertexArray(0) // Unbind\n\n\tgl.GenVertexArrays(1, &sqVAO)\n\tgl.GenBuffers(1, &sqVBO)\n\tgl.GenBuffers(1, &sqEBO)\n\n\tgl.BindVertexArray(sqVAO)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, sqVBO)\n\tgl.BufferData(gl.ARRAY_BUFFER, 4*len(vertices2), gl.Ptr(vertices2), gl.STATIC_DRAW)\n\tgl.BindBuffer(gl.ELEMENT_ARRAY_BUFFER, sqEBO)\n\tgl.BufferData(gl.ELEMENT_ARRAY_BUFFER, 4*len(indices2), gl.Ptr(indices2), gl.STATIC_DRAW)\n\n\t// position attribute\n\tvOffset = 0\n\tgl.EnableVertexAttribArray(0)\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(vOffset))\n\t// color attribute\n\tcOffset = 3 * 4\n\tgl.EnableVertexAttribArray(1)\n\tgl.VertexAttribPointer(1, 3, gl.FLOAT, false, 8*4, gl.PtrOffset(cOffset))\n\t// texture coord attribute\n\ttOffset = 6 * 4\n\tgl.EnableVertexAttribArray(2)\n\tgl.VertexAttribPointer(2, 2, gl.FLOAT, false, 8*4, gl.PtrOffset(tOffset))\n\n\tgl.BindVertexArray(0) // Unbind\n\n\t// Both FBO created here\n\tcreateFrameBuffers()\n\tif CheckGLErrors() {\n\t\tInfo.Println(\"InitGL Problems\")\n\t}\n\n\t// -==- Texture data -==-\n\tgl.GenTextures(1, &initTexture)\n\tgl.BindTexture(gl.TEXTURE_2D, initTexture)\n\t// set the texture wrapping/filtering options (on the currently bound texture object)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.REPEAT)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.REPEAT)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST)\n\n\tloadImage(1, data)\n\tgl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, cols, rows, 0, gl.RGBA, gl.UNSIGNED_BYTE, gl.Ptr(data))\n\tgl.GenerateMipmap(gl.TEXTURE_2D)\n\n\tif CheckGLErrors() {\n\t\tInfo.Println(\"InitGL Problems\")\n\t}\n\n\treturn reactProg, landProg\n}", "func AttachShader(program uint32, shader uint32) {\n C.glowAttachShader(gpAttachShader, (C.GLuint)(program), (C.GLuint)(shader))\n}", "func BindVertexArray(array uint32) {\n C.glowBindVertexArray(gpBindVertexArray, (C.GLuint)(array))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func DeleteShader(shader uint32) {\n C.glowDeleteShader(gpDeleteShader, (C.GLuint)(shader))\n}", "func UseProgramStages(pipeline uint32, stages uint32, program uint32) {\n C.glowUseProgramStages(gpUseProgramStages, (C.GLuint)(pipeline), (C.GLbitfield)(stages), (C.GLuint)(program))\n}", "func (vao *VAO) BuildBuffers(shaderProgramHandle uint32) {\n\tgl.BindVertexArray(vao.handle)\n\tfor _, vbo := range vao.vertexBuffers {\n\t\tvbo.BuildVertexAttributes(shaderProgramHandle)\n\t}\n\tgl.BindVertexArray(0)\n}", "func (am *Manager) LoadProgram(vfile, ffile, gfile string) (uint32, error) {\n\tvar (\n\t\tset ShaderSet\n\t\terr error\n\t)\n\n\tif set.Vs, err = am.LoadShader(gl.VERTEX_SHADER, vfile); err != nil {\n\t\treturn 0, err\n\t}\n\tif set.Fs, err = am.LoadShader(gl.FRAGMENT_SHADER, ffile); err != nil {\n\t\treturn 0, err\n\t}\n\tif len(gfile) > 0 {\n\t\tif set.Gs, err = am.LoadShader(gl.GEOMETRY_SHADER, gfile); err != nil {\n\t\t\treturn 0, err\n\t\t}\n\t}\n\n\tif prog, ok := am.GetProgram(set); ok {\n\t\treturn prog, nil\n\t}\n\n\tLogger.Printf(\"Manager: loading Program '%v'\\n\", set)\n\n\tvar prog = gl.CreateProgram()\n\tgl.AttachShader(prog, set.Vs)\n\tgl.AttachShader(prog, set.Fs)\n\tif set.Gs > 0 {\n\t\tgl.AttachShader(prog, set.Gs)\n\t}\n\tgl.LinkProgram(prog)\n\n\tvar infoLogLen int32\n\tgl.GetProgramiv(prog, gl.INFO_LOG_LENGTH, &infoLogLen)\n\n\tif infoLogLen > 1 {\n\t\tvar log = make([]uint8, infoLogLen)\n\t\tgl.GetProgramInfoLog(prog, infoLogLen, nil, &log[0])\n\t\treturn 0, errors.New(string(log))\n\t}\n\n\tam.AddProgram(set, prog)\n\n\treturn prog, nil\n}", "func (s *Shader) Destroy() {\n\ts.destroyVertexShader()\n\ts.destroyFragmentShader()\n\tif s.programID != 0 {\n\t\tgl.DeleteProgram(s.programID)\n\t\ts.programID = 0\n\t}\n}", "func LinkMultiProgram(gl interfaces.OpenGL, vertexShaderSource, tcsShaderSource, tesShaderSource, geomShaderSource, fragmentShaderSource string) (program uint32, err error) {\n\tvertexShader, vertexErr := CompileNewShader(gl, oglconsts.VERTEX_SHADER, vertexShaderSource)\n\tdefer gl.DeleteShader(vertexShader)\n\ttcsShader, tcsErr := CompileNewShader(gl, oglconsts.TESS_CONTROL_SHADER, tcsShaderSource)\n\tdefer gl.DeleteShader(tcsShader)\n\ttesShader, tesErr := CompileNewShader(gl, oglconsts.TESS_EVALUATION_SHADER, tesShaderSource)\n\tdefer gl.DeleteShader(tesShader)\n\tgeomShader, geomErr := CompileNewShader(gl, oglconsts.GEOMETRY_SHADER, geomShaderSource)\n\tdefer gl.DeleteShader(geomShader)\n\tfragmentShader, fragmentErr := CompileNewShader(gl, oglconsts.FRAGMENT_SHADER, fragmentShaderSource)\n\tdefer gl.DeleteShader(fragmentShader)\n\n\tif (vertexErr == nil) && (tcsErr == nil) && (tesErr == nil) && (geomErr == nil) && (fragmentErr == nil) {\n\t\tprogram, err = LinkNewProgram(gl, vertexShader, tcsShader, tesShader, geomShader, fragmentShader)\n\t} else {\n\t\terr = fmt.Errorf(\"[OpenGL Utils] Error compiling shaders:\\nVertex = %v\\nTSC = %v\\nTES = %v\\nGEOM = %v\\nFragment = %v\", vertexErr, tcsErr, tesErr, geomErr, fragmentErr)\n\t}\n\n\treturn\n}", "func finalizeShader(n *nativeShader) {\n\tn.r.Lock()\n\n\t// If the shader program is zero, it has already been free'd.\n\tif n.program == 0 {\n\t\tn.r.Unlock()\n\t\treturn\n\t}\n\tn.r.shaders = append(n.r.shaders, n)\n\tn.r.Unlock()\n}", "func BindVertexArray(array uint32) {\n\tC.glowBindVertexArray(gpBindVertexArray, (C.GLuint)(array))\n}", "func BindVertexArray(array uint32) {\n\tC.glowBindVertexArray(gpBindVertexArray, (C.GLuint)(array))\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n C.glowGetShaderiv(gpGetShaderiv, (C.GLuint)(shader), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func CreateShaderProgramv(xtype uint32, count int32, strings **int8) uint32 {\n ret := C.glowCreateShaderProgramv(gpCreateShaderProgramv, (C.GLenum)(xtype), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(strings)))\n return (uint32)(ret)\n}", "func ShaderBinary(count int32, shaders *uint32, binaryformat uint32, binary unsafe.Pointer, length int32) {\n C.glowShaderBinary(gpShaderBinary, (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(shaders)), (C.GLenum)(binaryformat), binary, (C.GLsizei)(length))\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **int8, uniformIndices *uint32) {\n C.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func GetShaderi(s Shader, pname Enum) int {\n\tvar result int32\n\tgl.GetShaderiv(s.Value, uint32(pname), &result)\n\treturn int(result)\n}", "func UseProgram(program uint32) {\n C.glowUseProgram(gpUseProgram, (C.GLuint)(program))\n}", "func GetProgramResourceIndex(program uint32, programInterface uint32, name *int8) uint32 {\n ret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (uint32)(ret)\n}", "func BindVertexArray(vao uint32) {\n\t//gl.BindVertexArrayAPPLE(vao)\n\tgl.BindVertexArray(vao)\n}", "func ShaderBinary(count int32, shaders *uint32, binaryformat uint32, binary unsafe.Pointer, length int32) {\n\tsyscall.Syscall6(gpShaderBinary, 5, uintptr(count), uintptr(unsafe.Pointer(shaders)), uintptr(binaryformat), uintptr(binary), uintptr(length), 0)\n}", "func (p *Prog) BuildProgram() {\n\tvar (\n\t\tprogram gl.Program\n\t\tvshader gl.Shader\n\t\tfshader gl.Shader\n\t)\n\tprogram = gl.CreateProgram()\n\t//vertex shader\n\tvshader = gl.CreateShader(gl.VERTEX_SHADER)\n\tgl.ShaderSource(vshader, p.Vs)\n\tgl.CompileShader(vshader)\n\tif gl.GetShaderi(vshader, gl.COMPILE_STATUS) == gl.FALSE {\n\t\tlog.Printf(\"glprog: VS compilation failed: %v\", gl.GetShaderInfoLog(vshader))\n\t}\n\t//fragment shader\n\tfshader = gl.CreateShader(gl.FRAGMENT_SHADER)\n\tgl.ShaderSource(fshader, p.Fs)\n\tgl.CompileShader(fshader)\n\tif gl.GetShaderi(fshader, gl.COMPILE_STATUS) == gl.FALSE {\n\t\tlog.Printf(\"glprog: FS compilation failed: %v\", gl.GetShaderInfoLog(fshader))\n\t}\n\t//link program\n\tgl.AttachShader(program, vshader)\n\tgl.AttachShader(program, fshader)\n\tgl.LinkProgram(program)\n\tif gl.GetProgrami(program, gl.LINK_STATUS) == gl.FALSE {\n\t\tlog.Printf(\"glprog: LinkProgram failed: %v\", gl.GetProgramInfoLog(program))\n\t\tgl.DeleteProgram(program)\n\t}\n\t//mark shaders for deletion when program is unlinked\n\tgl.DeleteShader(vshader)\n\tgl.DeleteShader(fshader)\n\n\tp.P = program\n\tfor i := range p.Uniforms {\n\t\tp.Uniforms[i].Location = gl.GetUniformLocation(p.P, p.Uniforms[i].Name)\n\t}\n}", "func LinkProgram(program uint32) {\n C.glowLinkProgram(gpLinkProgram, (C.GLuint)(program))\n}", "func DetachShader(program Uint, shader Uint) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcshader, _ := (C.GLuint)(shader), cgoAllocsUnknown\n\tC.glDetachShader(cprogram, cshader)\n}", "func (r *blockRenderer) Objects() []fyne.CanvasObject {\n\t// if r.el.Name == \"mainWin\" {\n\t// \tfmt.Println(\"--blockRenderer.Objects\", len(append(r.el.obs, r.el.kids...)))\n\t// }\n\n\treturn append(r.el.obs, r.el.kids...)\n}", "func BindProgramPipeline(pipeline uint32) {\n C.glowBindProgramPipeline(gpBindProgramPipeline, (C.GLuint)(pipeline))\n}", "func (program Program) GetActiveUniforms() int32 {\n\tvar params int32\n\tgl.GetProgramiv(uint32(program), gl.ACTIVE_UNIFORMS, &params)\n\treturn params\n}", "func (program Program) Use() {\n\tgl.UseProgram(uint32(program))\n}", "func (native *OpenGL) BindVertexArray(array uint32) {\n\tgl.BindVertexArray(array)\n}", "func ShaderSource(shader uint32, count int32, xstring **uint8, length *int32) {\n\tsyscall.Syscall6(gpShaderSource, 4, uintptr(shader), uintptr(count), uintptr(unsafe.Pointer(xstring)), uintptr(unsafe.Pointer(length)), 0, 0)\n}", "func UseProgram(program Uint) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tC.glUseProgram(cprogram)\n}", "func IsShader(shader uint32) bool {\n ret := C.glowIsShader(gpIsShader, (C.GLuint)(shader))\n return ret == TRUE\n}", "func GetShaders() Shaders {\n\treturn Shaders{\n\t\tregularShader,\n\t\tredShader,\n\t\tstormShader,\n\t\tgrayscaleShader,\n\t}\n}", "func ReleaseShaderCompiler() {\n C.glowReleaseShaderCompiler(gpReleaseShaderCompiler)\n}", "func ShaderBinary(count int32, shaders *uint32, binaryFormat uint32, binary unsafe.Pointer, length int32) {\n\tC.glowShaderBinary(gpShaderBinary, (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(shaders)), (C.GLenum)(binaryFormat), binary, (C.GLsizei)(length))\n}", "func ShaderBinary(count int32, shaders *uint32, binaryFormat uint32, binary unsafe.Pointer, length int32) {\n\tC.glowShaderBinary(gpShaderBinary, (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(shaders)), (C.GLenum)(binaryFormat), binary, (C.GLsizei)(length))\n}", "func (program Program) DetachShader(shader Shader) {\n\tgl.DetachShader(uint32(program), uint32(shader))\n}", "func DetachShader(program uint32, shader uint32) {\n\tsyscall.Syscall(gpDetachShader, 2, uintptr(program), uintptr(shader), 0)\n}", "func (f *Filter) Program() unsafe.Pointer {\n return unsafe.Pointer(&f.program)\n}", "func initOpenGL() uint32 {\n\tif err := gl.Init(); err != nil {\n\t\tpanic(err)\n\t}\n\tversion := gl.GoStr(gl.GetString(gl.VERSION))\n\tlog.Println(\"OpenGL version\", version)\n\n\tvertexShaderSource, err := files.ReadTextFile(vertexShaderFile)\n\tmust(err)\n\n\tvertexShaderSource += \"\\x00\"\n\n\tfragmentShaderSource, err := files.ReadTextFile(fragmentShaderFile)\n\tmust(err)\n\n\tfragmentShaderSource += \"\\x00\"\n\n\tvertexShader, err := compileShader(vertexShaderSource, gl.VERTEX_SHADER)\n\tmust(err)\n\n\tfragmentShader, err := compileShader(fragmentShaderSource, gl.FRAGMENT_SHADER)\n\tmust(err)\n\n\tprogram := gl.CreateProgram()\n\tgl.AttachShader(program, vertexShader)\n\tgl.AttachShader(program, fragmentShader)\n\tgl.LinkProgram(program)\n\n\tvar status int32\n\tgl.GetProgramiv(program, gl.LINK_STATUS, &status)\n\tif status == gl.FALSE {\n\t\tvar logLength int32\n\t\tgl.GetProgramiv(program, gl.INFO_LOG_LENGTH, &logLength)\n\n\t\tlog := strings.Repeat(\"\\x00\", int(logLength+1))\n\t\tgl.GetProgramInfoLog(program, logLength, nil, gl.Str(log))\n\n\t\terr := fmt.Errorf(\"failed to link program: %v\", log)\n\t\tpanic(err)\n\t}\n\n\tgl.DeleteShader(vertexShader)\n\tgl.DeleteShader(fragmentShader)\n\n\treturn program\n}", "func BindVertexArray(array uint32) {\n\tsyscall.Syscall(gpBindVertexArray, 1, uintptr(array), 0, 0)\n}", "func (c *Context) BindShader(shader *ShaderProgram) {\n\tif c.currentShaderProgram == nil || shader.id != c.currentShaderProgram.id {\n\t\tgl.UseProgram(shader.id)\n\t\tc.currentShaderProgram = shader\n\t}\n}", "func DetachShader(program uint32, shader uint32) {\n\tC.glowDetachShader(gpDetachShader, (C.GLuint)(program), (C.GLuint)(shader))\n}", "func DetachShader(program uint32, shader uint32) {\n\tC.glowDetachShader(gpDetachShader, (C.GLuint)(program), (C.GLuint)(shader))\n}", "func UseProgram() gl.Uint {\n\tprogram, err := CreateProgram(\n\t\tReadVertexShader(\"Demo.glsl\"),\n\t\tReadFragmentShader(\"Demo.glsl\"))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tgl.UseProgram(program)\n\n\treturn program\n}", "func (s *sqlService) Objects() (objects []definitions.ScenaryDefinition) {\n\ts.Lock()\n\tdefer s.Unlock()\n\ts.context = context.Background()\n\trows, err := s.connect(s.context).QueryContext(s.context, \"SELECT id, name, description, LOWER(command_one), LOWER(command_two), type, width, height, modelHeight FROM game_objects ORDER BY id\")\n\tif err != nil {\n\t\tlog.Warn(\"Couldn't load entity definitions from sqlService:\", err)\n\t\treturn\n\t}\n\tdefer rows.Close()\n\n\tfor rows.Next() {\n\t\tnextDef := definitions.ScenaryDefinition{}\n\t\trows.Scan(&nextDef.ID, &nextDef.Name, &nextDef.Description, &nextDef.Commands[0], &nextDef.Commands[1], &nextDef.SolidityType, &nextDef.W, &nextDef.H, &nextDef.ModelHeight)\n\t\tobjects = append(objects, nextDef)\n\t}\n\n\treturn\n}", "func (r *device) LoadShader(s *gfx.Shader, done chan *gfx.Shader) {\n\t// If we are sharing assets with another renderer, allow it to load the\n\t// shader instead.\n\tr.shared.RLock()\n\tif r.shared.device != nil {\n\t\tr.shared.device.LoadShader(s, done)\n\t\tr.shared.RUnlock()\n\t\treturn\n\t}\n\tr.shared.RUnlock()\n\n\t// Perform pre-load checks on the shader.\n\tdoLoad, err := glutil.PreLoadShader(s, done)\n\tif err != nil {\n\t\tr.warner.Warnf(\"%v\\n\", err)\n\t\treturn\n\t}\n\tif !doLoad {\n\t\treturn\n\t}\n\n\tr.renderExec <- func() bool {\n\t\tnative := &nativeShader{\n\t\t\tr: r.rsrcManager,\n\t\t}\n\n\t\t// Compile vertex shader.\n\t\tnative.vertex = gl.CreateShader(gl.VERTEX_SHADER)\n\t\tsources, free := gl.Strs(string(s.GLSL.Vertex) + \"\\x00\")\n\t\tgl.ShaderSource(native.vertex, 1, sources, nil) // TODO(slimsag): use length parameter instead of null terminator\n\t\tgl.CompileShader(native.vertex)\n\t\tfree()\n\n\t\t// Check if the shader compiled or not.\n\t\tlog, compiled := shaderCompilerLog(native.vertex)\n\t\tif !compiled {\n\t\t\t// Just for sanity.\n\t\t\tnative.vertex = 0\n\n\t\t\t// Append the errors.\n\t\t\ts.Error = append(s.Error, []byte(s.Name+\" | Vertex shader errors:\\n\")...)\n\t\t\ts.Error = append(s.Error, log...)\n\t\t}\n\t\tif len(log) > 0 {\n\t\t\t// Send the compiler log to the debug writer.\n\t\t\tr.warner.Warnf(\"%s | Vertex shader errors:\\n\", s.Name)\n\t\t\tr.warner.Warnf(string(log))\n\t\t}\n\n\t\t// Compile fragment shader.\n\t\tnative.fragment = gl.CreateShader(gl.FRAGMENT_SHADER)\n\t\tsources, free = gl.Strs(string(s.GLSL.Fragment) + \"\\x00\")\n\t\tgl.ShaderSource(native.fragment, 1, sources, nil) // TODO(slimsag): use length parameter instead of null terminator\n\t\tgl.CompileShader(native.fragment)\n\t\tfree()\n\n\t\t// Check if the shader compiled or not.\n\t\tlog, compiled = shaderCompilerLog(native.fragment)\n\t\tif !compiled {\n\t\t\t// Just for sanity.\n\t\t\tnative.fragment = 0\n\n\t\t\t// Append the errors.\n\t\t\ts.Error = append(s.Error, []byte(s.Name+\" | Fragment shader errors:\\n\")...)\n\t\t\ts.Error = append(s.Error, log...)\n\t\t}\n\t\tif len(log) > 0 {\n\t\t\t// Send the compiler log to the debug writer.\n\t\t\tr.warner.Warnf(\"%s | Fragment shader errors:\\n\", s.Name)\n\t\t\tr.warner.Warnf(string(log))\n\t\t}\n\n\t\t// Create the shader program if all went well with the vertex and\n\t\t// fragment shaders.\n\t\tif native.vertex != 0 && native.fragment != 0 {\n\t\t\tnative.program = gl.CreateProgram()\n\t\t\tgl.AttachShader(native.program, native.vertex)\n\t\t\tgl.AttachShader(native.program, native.fragment)\n\t\t\tgl.LinkProgram(native.program)\n\n\t\t\t// Grab the linker's log.\n\t\t\tvar (\n\t\t\t\tlogSize int32\n\t\t\t\tlog []byte\n\t\t\t)\n\t\t\tgl.GetProgramiv(native.program, gl.INFO_LOG_LENGTH, &logSize)\n\n\t\t\tif logSize > 0 {\n\t\t\t\tlog = make([]byte, logSize)\n\t\t\t\tgl.GetProgramInfoLog(native.program, logSize, nil, &log[0])\n\n\t\t\t\t// Strip the null-termination byte.\n\t\t\t\tlog = log[:len(log)-1]\n\t\t\t}\n\n\t\t\t// Check for linker errors.\n\t\t\tvar ok int32\n\t\t\tgl.GetProgramiv(native.program, gl.LINK_STATUS, &ok)\n\t\t\tif ok == 0 {\n\t\t\t\t// Just for sanity.\n\t\t\t\tnative.program = 0\n\n\t\t\t\t// Append the errors.\n\t\t\t\ts.Error = append(s.Error, []byte(s.Name+\" | Linker errors:\\n\")...)\n\t\t\t\ts.Error = append(s.Error, log...)\n\t\t\t}\n\t\t\tif len(log) > 0 {\n\t\t\t\t// Send the linker log to the debug writer.\n\t\t\t\tr.warner.Warnf(\"%s | Linker errors:\\n\", s.Name)\n\t\t\t\tr.warner.Warnf(string(log))\n\t\t\t}\n\t\t}\n\n\t\t// Mark the shader as loaded if there were no errors.\n\t\tif len(s.Error) == 0 {\n\t\t\tnative.LocationCache = &glutil.LocationCache{\n\t\t\t\tGetAttribLocation: func(name string) int {\n\t\t\t\t\treturn int(gl.GetAttribLocation(native.program, gl.Str(name+\"\\x00\")))\n\t\t\t\t},\n\t\t\t\tGetUniformLocation: func(name string) int {\n\t\t\t\t\treturn int(gl.GetUniformLocation(native.program, gl.Str(name+\"\\x00\")))\n\t\t\t\t},\n\t\t\t}\n\n\t\t\ts.Loaded = true\n\t\t\ts.NativeShader = native\n\t\t\ts.ClearData()\n\n\t\t\t// Attach a finalizer to the shader that will later free it.\n\t\t\truntime.SetFinalizer(native, finalizeShader)\n\t\t}\n\n\t\t// Finish not Flush, see http://higherorderfun.com/blog/2011/05/26/multi-thread-opengl-texture-loading/\n\t\tgl.Finish()\n\n\t\t// Signal completion and return.\n\t\tselect {\n\t\tcase done <- s:\n\t\tdefault:\n\t\t}\n\t\treturn false // no frame rendered.\n\t}\n}", "func (debugging *debuggingOpenGL) BindVertexArray(array uint32) {\n\tdebugging.recordEntry(\"BindVertexArray\", array)\n\tdebugging.gl.BindVertexArray(array)\n\tdebugging.recordExit(\"BindVertexArray\")\n}", "func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *int8) {\n C.glowGetShaderInfoLog(gpGetShaderInfoLog, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func AttachShader(program uint32, shader uint32) {\n\tsyscall.Syscall(gpAttachShader, 2, uintptr(program), uintptr(shader), 0)\n}", "func ShaderSource(shader uint32, count int32, xstring **int8, length *int32) {\n C.glowShaderSource(gpShaderSource, (C.GLuint)(shader), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(xstring)), (*C.GLint)(unsafe.Pointer(length)))\n}", "func UseProgramStages(pipeline uint32, stages uint32, program uint32) {\n\tC.glowUseProgramStages(gpUseProgramStages, (C.GLuint)(pipeline), (C.GLbitfield)(stages), (C.GLuint)(program))\n}", "func UseProgramStages(pipeline uint32, stages uint32, program uint32) {\n\tC.glowUseProgramStages(gpUseProgramStages, (C.GLuint)(pipeline), (C.GLbitfield)(stages), (C.GLuint)(program))\n}", "func (sh *ShaderStd) Name() string { return sh.MtlName }", "func NewShader(vertexFmt, uniformFmt AttrFormat, vertexShader, fragmentShader string) (*Shader, error) {\n\tshader := &Shader{\n\t\tprogram: binder{\n\t\t\trestoreLoc: gl.CURRENT_PROGRAM,\n\t\t\tbindFunc: func(obj uint32) {\n\t\t\t\tgl.UseProgram(obj)\n\t\t\t},\n\t\t},\n\t\tvertexFmt: vertexFmt,\n\t\tuniformFmt: uniformFmt,\n\t\tuniformLoc: make([]int32, len(uniformFmt)),\n\t}\n\n\tvar vshader, fshader uint32\n\n\t// vertex shader\n\t{\n\t\tvshader = gl.CreateShader(gl.VERTEX_SHADER)\n\t\tsrc, free := gl.Strs(vertexShader)\n\t\tdefer free()\n\t\tlength := int32(len(vertexShader))\n\t\tgl.ShaderSource(vshader, 1, src, &length)\n\t\tgl.CompileShader(vshader)\n\n\t\tvar success int32\n\t\tgl.GetShaderiv(vshader, gl.COMPILE_STATUS, &success)\n\t\tif success == gl.FALSE {\n\t\t\tvar logLen int32\n\t\t\tgl.GetShaderiv(vshader, gl.INFO_LOG_LENGTH, &logLen)\n\n\t\t\tinfoLog := make([]byte, logLen)\n\t\t\tgl.GetShaderInfoLog(vshader, logLen, nil, &infoLog[0])\n\t\t\treturn nil, fmt.Errorf(\"error compiling vertex shader: %s\", string(infoLog))\n\t\t}\n\n\t\tdefer gl.DeleteShader(vshader)\n\t}\n\n\t// fragment shader\n\t{\n\t\tfshader = gl.CreateShader(gl.FRAGMENT_SHADER)\n\t\tsrc, free := gl.Strs(fragmentShader)\n\t\tdefer free()\n\t\tlength := int32(len(fragmentShader))\n\t\tgl.ShaderSource(fshader, 1, src, &length)\n\t\tgl.CompileShader(fshader)\n\n\t\tvar success int32\n\t\tgl.GetShaderiv(fshader, gl.COMPILE_STATUS, &success)\n\t\tif success == gl.FALSE {\n\t\t\tvar logLen int32\n\t\t\tgl.GetShaderiv(fshader, gl.INFO_LOG_LENGTH, &logLen)\n\n\t\t\tinfoLog := make([]byte, logLen)\n\t\t\tgl.GetShaderInfoLog(fshader, logLen, nil, &infoLog[0])\n\t\t\treturn nil, fmt.Errorf(\"error compiling fragment shader: %s\", string(infoLog))\n\t\t}\n\n\t\tdefer gl.DeleteShader(fshader)\n\t}\n\n\t// shader program\n\t{\n\t\tshader.program.obj = gl.CreateProgram()\n\t\tgl.AttachShader(shader.program.obj, vshader)\n\t\tgl.AttachShader(shader.program.obj, fshader)\n\t\tgl.LinkProgram(shader.program.obj)\n\n\t\tvar success int32\n\t\tgl.GetProgramiv(shader.program.obj, gl.LINK_STATUS, &success)\n\t\tif success == gl.FALSE {\n\t\t\tvar logLen int32\n\t\t\tgl.GetProgramiv(shader.program.obj, gl.INFO_LOG_LENGTH, &logLen)\n\n\t\t\tinfoLog := make([]byte, logLen)\n\t\t\tgl.GetProgramInfoLog(shader.program.obj, logLen, nil, &infoLog[0])\n\t\t\treturn nil, fmt.Errorf(\"error linking shader program: %s\", string(infoLog))\n\t\t}\n\t}\n\n\t// uniforms\n\tfor i, uniform := range uniformFmt {\n\t\tloc := gl.GetUniformLocation(shader.program.obj, gl.Str(uniform.Name+\"\\x00\"))\n\t\tshader.uniformLoc[i] = loc\n\t}\n\n\truntime.SetFinalizer(shader, (*Shader).delete)\n\n\treturn shader, nil\n}", "func (native *OpenGL) GenRenderbuffers(n int32) []uint32 {\n\tids := make([]uint32, n)\n\tgl.GenRenderbuffers(n, &ids[0])\n\treturn ids\n}", "func (shader Shader) Delete() {\n\tgl.DeleteShader(uint32(shader))\n}", "func (native *OpenGL) GenFramebuffers(n int32) []uint32 {\n\tids := make([]uint32, n)\n\tgl.GenFramebuffers(n, &ids[0])\n\treturn ids\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *int8) int32 {\n ret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func IsVertexArray(array uint32) bool {\n ret := C.glowIsVertexArray(gpIsVertexArray, (C.GLuint)(array))\n return ret == TRUE\n}", "func ShaderBinary(count Sizei, shaders []Uint, binaryformat Enum, binary unsafe.Pointer, length Sizei) {\n\tccount, _ := (C.GLsizei)(count), cgoAllocsUnknown\n\tcshaders, _ := (*C.GLuint)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&shaders)).Data)), cgoAllocsUnknown\n\tcbinaryformat, _ := (C.GLenum)(binaryformat), cgoAllocsUnknown\n\tcbinary, _ := (unsafe.Pointer)(unsafe.Pointer(binary)), cgoAllocsUnknown\n\tclength, _ := (C.GLsizei)(length), cgoAllocsUnknown\n\tC.glShaderBinary(ccount, cshaders, cbinaryformat, cbinary, clength)\n}", "func (gui *GUI) createProgram() (uint32, error) {\n\tif err := gl.Init(); err != nil {\n\t\treturn 0, fmt.Errorf(\"Failed to initialise OpenGL: %s\", err)\n\t}\n\tgui.logger.Infof(\"OpenGL version %s\", gl.GoStr(gl.GetString(gl.VERSION)))\n\n\tgui.logger.Debugf(\"Compiling shaders...\")\n\n\tvertexShader, err := compileShader(vertexShaderSource, gl.VERTEX_SHADER)\n\tif err != nil {\n\t\treturn 0, err\n\t}\n\n\tfragmentShader, err := compileShader(fragmentShaderSource, gl.FRAGMENT_SHADER)\n\tif err != nil {\n\t\treturn 0, err\n\t}\n\n\tprog := gl.CreateProgram()\n\tgl.AttachShader(prog, vertexShader)\n\tgl.AttachShader(prog, fragmentShader)\n\tgl.LinkProgram(prog)\n\n\treturn prog, nil\n}", "func GetAttribLocation(program uint32, name *int8) int32 {\n ret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func DeleteShader(shader Uint) {\n\tcshader, _ := (C.GLuint)(shader), cgoAllocsUnknown\n\tC.glDeleteShader(cshader)\n}", "func (self *TileSprite) Shader() *AbstractFilter{\n return &AbstractFilter{self.Object.Get(\"shader\")}\n}", "func newShaderManager() ShaderManager {\n\tsm := shaderManager{\n\t\tshaders: make(map[string]Shader),\n\t}\n\treturn &sm\n}", "func MakeVertexArray(points []float32) uint32 {\n\tvar vbo uint32\n\tgl.GenBuffers(1, &vbo)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.BufferData(gl.ARRAY_BUFFER, 4*len(points), gl.Ptr(points), gl.STATIC_DRAW)\n\n\tvar vao uint32\n\tgl.GenVertexArrays(1, &vao)\n\tgl.BindVertexArray(vao)\n\tgl.EnableVertexAttribArray(0)\n\tgl.BindBuffer(gl.ARRAY_BUFFER, vbo)\n\tgl.VertexAttribPointer(0, 3, gl.FLOAT, false, 0, nil)\n\n\treturn vao\n}", "func GetShaderSource(shader uint32, bufSize int32, length *int32, source *int8) {\n C.glowGetShaderSource(gpGetShaderSource, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(source)))\n}", "func ShaderProgramImages(numImages int) *shaderir.Program {\n\tif numImages <= 0 {\n\t\tpanic(\"testing: numImages must be >= 1\")\n\t}\n\n\tvar exprs []string\n\tfor i := 0; i < numImages; i++ {\n\t\texprs = append(exprs, fmt.Sprintf(\"imageSrc%dUnsafeAt(texCoord)\", i))\n\t}\n\n\tir, err := graphics.CompileShader([]byte(fmt.Sprintf(`//kage:unit pixels\n\npackage main\n\nfunc Fragment(position vec4, texCoord vec2, color vec4) vec4 {\n\treturn %s\n}\n`, strings.Join(exprs, \" + \"))))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treturn ir\n}", "func GetProgramResourceLocation(program uint32, programInterface uint32, name *int8) int32 {\n ret := C.glowGetProgramResourceLocation(gpGetProgramResourceLocation, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GenerateVertexArray(n int32) uint32 {\n\tvar vao uint32\n\t//gl.GenVertexArraysAPPLE(n, &vao)\n\tgl.GenVertexArrays(n, &vao)\n\t/*if err := gl.GetError(); err != 0 {\n\t\tlog.Println(\"Error in GenVertexArrays!\", err)\n\t}*/\n\n\treturn vao\n}", "func ReadObj(filePath string, material Material) []Triangle {\n\tfile, err := os.Open(filePath)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer file.Close()\n\n\tvar verts []Vector3\n\tvar normals []Vector3\n\tvar triangles []Triangle\n\n\tscanner := bufio.NewScanner(file)\n\tfor scanner.Scan() {\n\t\tline := scanner.Text()\n\t\tswitch {\n\t\tcase strings.HasPrefix(line, \"v \"):\n\t\t\tverts = append(verts, parseVertex(line))\n\t\tcase strings.HasPrefix(line, \"vn \"):\n\t\t\tnormals = append(normals, parseNormal(line))\n\t\tcase strings.HasPrefix(line, \"f \"):\n\t\t\ttriangles = append(triangles, parseFace(line, verts, normals, material))\n\t\t}\n\t}\n\n\tif err := scanner.Err(); err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Printf(\"Parsed %s\\n%d triangles\\n\", filePath, len(triangles))\n\n\treturn triangles\n}", "func (program Program) AttachShader(shader Shader) {\n\tgl.AttachShader(uint32(program), uint32(shader))\n}", "func CreateShaderProgramv(xtype uint32, count int32, strings **uint8) uint32 {\n\tret, _, _ := syscall.Syscall(gpCreateShaderProgramv, 3, uintptr(xtype), uintptr(count), uintptr(unsafe.Pointer(strings)))\n\treturn (uint32)(ret)\n}", "func (gl *WebGL) NewProgram(shaders []WebGLShader) (WebGLShaderProgram, error) {\n\tprogram := gl.CreateProgram()\n\tfor _, shader := range shaders {\n\t\tgl.AttachShader(program, shader)\n\t}\n\n\terr := gl.LinkProgram(program)\n\treturn program, err\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetShaderiv, 3, uintptr(shader), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func IsShader(shader Uint) Boolean {\n\tcshader, _ := (C.GLuint)(shader), cgoAllocsUnknown\n\t__ret := C.glIsShader(cshader)\n\t__v := (Boolean)(__ret)\n\treturn __v\n}", "func GenProgramPipelines(n int32, pipelines *uint32) {\n C.glowGenProgramPipelines(gpGenProgramPipelines, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(pipelines)))\n}", "func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tsyscall.Syscall6(gpGetShaderInfoLog, 4, uintptr(shader), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(infoLog)), 0, 0)\n}", "func (program Program) Link() {\n\tgl.LinkProgram(uint32(program))\n}", "func BindProgramPipeline(pipeline uint32) {\n\tC.glowBindProgramPipeline(gpBindProgramPipeline, (C.GLuint)(pipeline))\n}", "func BindProgramPipeline(pipeline uint32) {\n\tC.glowBindProgramPipeline(gpBindProgramPipeline, (C.GLuint)(pipeline))\n}" ]
[ "0.67010254", "0.62943506", "0.6149418", "0.60632473", "0.59027565", "0.5817229", "0.55061173", "0.5458128", "0.53410524", "0.53410524", "0.51926047", "0.51864207", "0.5109115", "0.5105489", "0.509531", "0.5084683", "0.5078021", "0.50147635", "0.5009194", "0.49983925", "0.4993443", "0.49798882", "0.49648938", "0.49503276", "0.49284846", "0.49241525", "0.49241525", "0.4920344", "0.4910878", "0.48950544", "0.48765343", "0.4859435", "0.48478323", "0.4846685", "0.48453233", "0.48422697", "0.48296463", "0.48246917", "0.4806158", "0.47907326", "0.47865874", "0.47853288", "0.47640908", "0.47622895", "0.47553253", "0.4746045", "0.4745719", "0.47392824", "0.4732984", "0.4726671", "0.4726671", "0.47253805", "0.4723376", "0.4716015", "0.47152984", "0.47085357", "0.47020698", "0.46855316", "0.46855316", "0.46850657", "0.4679426", "0.46784657", "0.46757728", "0.46699205", "0.46694902", "0.4668919", "0.46601915", "0.46601915", "0.46597156", "0.46587697", "0.4647419", "0.4644226", "0.46376142", "0.46362156", "0.46204174", "0.46147215", "0.46123415", "0.459938", "0.45909384", "0.45905015", "0.45899266", "0.45896047", "0.4585151", "0.45791033", "0.45748714", "0.45716786", "0.45663327", "0.455854", "0.45541525", "0.45506155", "0.45446223", "0.45423064", "0.45423064", "0.45419395", "0.45364293", "0.4533126", "0.45261434", "0.4511426", "0.4511426" ]
0.6111844
4
Returns the location of an attribute variable
func GetAttribLocation(program uint32, name *uint8) int32 { ret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name))) return (int32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (program Program) GetAttribLocation(name string) int32 {\n\treturn gl.GetAttribLocation(uint32(program), gl.Str(name+\"\\x00\"))\n}", "func GetAttribLocation(p Program, name string) Attrib {\n\treturn Attrib{Value: uint(gl.GetAttribLocation(p.Value, gl.Str(name+\"\\x00\")))}\n}", "func GetAttribLocation(program uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetAttribLocation, 2, uintptr(program), uintptr(unsafe.Pointer(name)), 0)\n\treturn (int32)(ret)\n}", "func GetAttribLocation(program uint32, name *int8) int32 {\n ret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func (debugging *debuggingOpenGL) GetAttribLocation(program uint32, name string) int32 {\n\tdebugging.recordEntry(\"GetAttribLocation\", program, name)\n\tresult := debugging.gl.GetAttribLocation(program, name)\n\tdebugging.recordExit(\"GetAttribLocation\", result)\n\treturn result\n}", "func GetAttribLocation(program Uint, name string) Int {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcname, _ := unpackPCharString(name)\n\t__ret := C.glGetAttribLocation(cprogram, cname)\n\t__v := (Int)(__ret)\n\treturn __v\n}", "func (native *OpenGL) GetAttribLocation(program uint32, name string) int32 {\n\treturn gl.GetAttribLocation(program, gl.Str(name+\"\\x00\"))\n}", "func (d sumTypeDecl) Location() string {\n\treturn fmt.Sprintf(\"%s:%d\", d.Path, d.Line)\n}", "func (uni *Uniform) Location(gs *GLS) int32 {\n\n\tloc := gs.prog.GetUniformLocation(uni.name)\n\treturn loc\n}", "func (gl *WebGL) GetAttribLocation(shaderProgram WebGLShaderProgram, attribute string) WebGLAttributeLocation {\n\treturn gl.context.Call(\"getAttribLocation\", shaderProgram, attribute).Int()\n}", "func (graph *Graph) GetAttr(x, y int) byte {\n\treturn graph.Tiles[y][x].Attr\n}", "func (l *LocationCache) FindAttrib(name string) int {\n\t// Scan through the cache for it now.\n\tfor _, a := range l.attribs {\n\t\tif a.name != name {\n\t\t\tcontinue\n\t\t}\n\t\treturn a.location\n\t}\n\n\t// Query directly and store in the cache.\n\ti := l.GetAttribLocation(name)\n\tif i < 0 {\n\t\ti = -1\n\t}\n\tl.attribs = append(l.attribs, location{\n\t\tname: name,\n\t\tlocation: i,\n\t})\n\treturn i\n}", "func findAttribute(n *html.Node, key string) string {\n\tif a := n.Attr; a != nil {\n\t\tfor i := range a {\n\t\t\tif a[i].Key == key {\n\t\t\t\treturn a[i].Val\n\t\t\t}\n\t\t}\n\t}\n\treturn \"\"\n}", "func (obj *declaration) Variable() string {\n\treturn obj.name\n}", "func (i Ivar) Offset() uintptr {\n\treturn ivar_getOffset(i)\n}", "func (obj *alpha) Variable() string {\n\treturn obj.variable\n}", "func (s Starbase) Location() (int, int) {\n\treturn s.X, s.Y\n}", "func (p Meta) Location() string { return p.location }", "func getAttributeValue(attrs []xml.Attr, a string) string {\n\tfor _, attr := range attrs {\n\t\tif attr.Name.Local == a {\n\t\t\treturn attr.Value\n\t\t}\n\t}\n\treturn \"\"\n}", "func (native *OpenGL) GLGetAttribLocation(program uint32, name *uint8) int32 {\n\treturn gl.GetAttribLocation(program, name)\n}", "func (n *Argument) GetPosition() *position.Position {\n\treturn n.Position\n}", "func (h *HostExpr) Attribute() *AttributeExpr {\n\tif h.Variables == nil {\n\t\th.Variables = &AttributeExpr{Type: &Object{}}\n\t}\n\treturn h.Variables\n}", "func BindAttribLocation(p Program, a Attrib, name string) {\n\tgl.BindAttribLocation(p.Value, uint32(a.Value), gl.Str(name+\"\\x00\"))\n}", "func BindAttribLocation(program uint32, index uint32, name *uint8) {\n\tsyscall.Syscall(gpBindAttribLocation, 3, uintptr(program), uintptr(index), uintptr(unsafe.Pointer(name)))\n}", "func (e *Element) Attribute(key string) string {\n\treturn e.Attrs[key]\n}", "func (i *Resource) Location() string {\n\treturn i.data.Location\n}", "func (c *jsiiProxy_CfnEnvironment) GetAtt(attributeName *string) awscdk.Reference {\n\tvar returns awscdk.Reference\n\n\t_jsii_.Invoke(\n\t\tc,\n\t\t\"getAtt\",\n\t\t[]interface{}{attributeName},\n\t\t&returns,\n\t)\n\n\treturn returns\n}", "func (o WorkstationIamBindingOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *WorkstationIamBinding) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)\n}", "func (bi *BinaryInfo) Location(entry godwarf.Entry, attr dwarf.Attr, pc uint64, regs op.DwarfRegisters, mem MemoryReadWriter) (int64, []op.Piece, *locationExpr, error) {\n\tinstr, descr, err := bi.locationExpr(entry, attr, pc)\n\tif err != nil {\n\t\treturn 0, nil, nil, err\n\t}\n\treadMemory := op.ReadMemoryFunc(nil)\n\tif mem != nil {\n\t\treadMemory = mem.ReadMemory\n\t}\n\taddr, pieces, err := op.ExecuteStackProgram(regs, instr, bi.Arch.PtrSize(), readMemory)\n\treturn addr, pieces, descr, err\n}", "func (rule *Rule) Loc() *Location {\n\treturn rule.Location\n}", "func findAttribute(nbAtt int) int {\n\treturn rand.Intn(nbAtt)\n\n}", "func (o AccessLevelCustomExprOutput) Location() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v AccessLevelCustomExpr) *string { return v.Location }).(pulumi.StringPtrOutput)\n}", "func BindAttribLocation(program uint32, index uint32, name *int8) {\n C.glowBindAttribLocation(gpBindAttribLocation, (C.GLuint)(program), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (o DataExchangeIamPolicyOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *DataExchangeIamPolicy) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)\n}", "func (o ConnectionIamBindingOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *ConnectionIamBinding) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)\n}", "func (p *Parser) Loc() string {\n\tif p.fileName == \"<stdin>\" {\n\t\treturn \"\"\n\t}\n\treturn fmt.Sprintf(\"%s:%d: \", p.fileName, p.lineNum)\n}", "func (p *Parser) Loc() string {\n\tif p.fileName == \"<stdin>\" {\n\t\treturn \"\"\n\t}\n\treturn fmt.Sprintf(\"%s:%d: \", p.fileName, p.lineNum)\n}", "func getAttribute(name string,attrs []xml.Attr) (string) {\n\tval := \"\"\n\tfor _,attr := range attrs { if strings.EqualFold(attr.Name.Local,name) {val = attr.Value } }\n\treturn val\n}", "func (o ServiceIamMemberOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *ServiceIamMember) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)\n}", "func (o AccessLevelCustomExprPtrOutput) Location() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *AccessLevelCustomExpr) *string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.Location\n\t}).(pulumi.StringPtrOutput)\n}", "func (o ExprOutput) Location() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v Expr) *string { return v.Location }).(pulumi.StringPtrOutput)\n}", "func (o ExprOutput) Location() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v Expr) *string { return v.Location }).(pulumi.StringPtrOutput)\n}", "func (o ExprOutput) Location() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v Expr) *string { return v.Location }).(pulumi.StringPtrOutput)\n}", "func (o ExprOutput) Location() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v Expr) *string { return v.Location }).(pulumi.StringPtrOutput)\n}", "func (o ExprOutput) Location() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v Expr) *string { return v.Location }).(pulumi.StringPtrOutput)\n}", "func (o ExprOutput) Location() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v Expr) *string { return v.Location }).(pulumi.StringPtrOutput)\n}", "func (l *Loader) SymAttr(i Sym) uint8 {\n\tif l.IsExternal(i) {\n\t\t// TODO: do something? External symbols have different representation of attributes.\n\t\t// For now, ReflectMethod, NoSplit, GoType, and Typelink are used and they cannot be\n\t\t// set by external symbol.\n\t\treturn 0\n\t}\n\tr, li := l.toLocal(i)\n\treturn r.Sym(li).Flag()\n}", "func (n *Property) GetPosition() *position.Position {\n\treturn n.Position\n}", "func (*XMLDocument) Location() (location *location.Location) {\n\tmacro.Rewrite(\"$_.location\")\n\treturn location\n}", "func (o *Object) Attribute(name string) *AttributeExpr {\n\tfor _, nat := range *o {\n\t\tif nat.Name == name {\n\t\t\treturn nat.Attribute\n\t\t}\n\t}\n\treturn nil\n}", "func (f *File) loc(pos token.Pos) string {\n\tif pos == token.NoPos {\n\t\treturn \"\"\n\t}\n\t// Do not print columns. Because the pos often points to the start of an\n\t// expression instead of the inner part with the actual error, the\n\t// precision can mislead.\n\tposn := f.fset.Position(pos)\n\treturn fmt.Sprintf(\"%s:%d\", posn.Filename, posn.Line)\n}", "func BindAttribLocation(program uint32, index uint32, name *uint8) {\n\tC.glowBindAttribLocation(gpBindAttribLocation, (C.GLuint)(program), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func BindAttribLocation(program uint32, index uint32, name *uint8) {\n\tC.glowBindAttribLocation(gpBindAttribLocation, (C.GLuint)(program), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func AttributePathToPath(ap *tftypes.AttributePath) cty.Path {\n\tvar p cty.Path\n\tif ap == nil {\n\t\treturn p\n\t}\n\tfor _, step := range ap.Steps() {\n\t\tswitch step.(type) {\n\t\tcase tftypes.AttributeName:\n\t\t\tp = p.GetAttr(string(step.(tftypes.AttributeName)))\n\t\tcase tftypes.ElementKeyString:\n\t\t\tp = p.Index(cty.StringVal(string(step.(tftypes.ElementKeyString))))\n\t\tcase tftypes.ElementKeyInt:\n\t\t\tp = p.Index(cty.NumberIntVal(int64(step.(tftypes.ElementKeyInt))))\n\t\t}\n\t}\n\treturn p\n}", "func (o EndpointAttachmentOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *EndpointAttachment) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)\n}", "func (debugging *debuggingOpenGL) BindAttribLocation(program uint32, index uint32, name string) {\n\tdebugging.recordEntry(\"BindAttribLocation\", program, index, name)\n\tdebugging.gl.BindAttribLocation(program, index, name)\n\tdebugging.recordExit(\"BindAttribLocation\")\n}", "func (o AccessLevelsAccessLevelCustomExprPtrOutput) Location() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *AccessLevelsAccessLevelCustomExpr) *string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.Location\n\t}).(pulumi.StringPtrOutput)\n}", "func (v variable) AtVariable(index variable) interface{} {\n\tindexVal := core.Int(index)\n\tif indexVal == 0 {\n\t\treturn nil\n\t}\n\treturn v.At(indexVal)\n}", "func (stmt *Statement) Location() string {\n\tif stmt.File == \"\" && stmt.LineNo == 0 && stmt.CharNo == 0 {\n\t\treturn \"\"\n\t}\n\tif stmt.File == \"\" {\n\t\treturn fmt.Sprintf(\"unknown:%d:%d\", stmt.LineNo, stmt.CharNo)\n\t}\n\treturn fmt.Sprintf(\"%s:%d:%d\", stmt.File, stmt.LineNo, stmt.CharNo)\n}", "func (ref *UIElement) Position() Point {\n\tret, _ := ref.PointAttr(PositionAttribute)\n\treturn ret\n}", "func (ff *fftag) at(id int) (x, y int) { return id / ff.msize, id % ff.msize }", "func (s *ClusterScope) Location() string {\n\treturn s.AzureCluster.Spec.Location\n}", "func (o AccessLevelsAccessLevelCustomExprOutput) Location() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v AccessLevelsAccessLevelCustomExpr) *string { return v.Location }).(pulumi.StringPtrOutput)\n}", "func (d *FileDescriptor) VarName() string { return fmt.Sprintf(\"fileDescriptor%d\", d.index) }", "func (e *Entity) A(label string) attribute.Attribute {\n\tif a, err := e.Attribute(label); err == nil {\n\t\t// sweet .. it exists\n\t\treturn a\n\t}\n\tpanic(\"Attribute '\" + label + \"' not found\")\n}", "func (c *jsiiProxy_CfnStack) GetAtt(attributeName *string) awscdk.Reference {\n\tvar returns awscdk.Reference\n\n\t_jsii_.Invoke(\n\t\tc,\n\t\t\"getAtt\",\n\t\t[]interface{}{attributeName},\n\t\t&returns,\n\t)\n\n\treturn returns\n}", "func (c *jsiiProxy_CfnStack) GetAtt(attributeName *string) awscdk.Reference {\n\tvar returns awscdk.Reference\n\n\t_jsii_.Invoke(\n\t\tc,\n\t\t\"getAtt\",\n\t\t[]interface{}{attributeName},\n\t\t&returns,\n\t)\n\n\treturn returns\n}", "func (p *blockCtx) getCtxVar(name string) (addr iVar, err error) {\n\tv, ok := p.syms[name]\n\tif !ok {\n\t\treturn nil, ErrNotFound\n\t}\n\tif addr, ok = v.(iVar); ok {\n\t\treturn\n\t}\n\treturn nil, ErrSymbolNotVariable\n}", "func (mouse *Mouse) GetAttr(attr string) (interface{}, error) {\n\treturn 0, nil\n}", "func (a *PositionalAttribute) Key() string {\n\treturn AttrPositionalIndex + strconv.Itoa(a.Index)\n}", "func (attr *Attribute) Path() string {\n\treturn attr.path\n}", "func BindAttribLocation(program Program, index uint32, name string) {\n\tgl.BindAttribLocation(uint32(program), index, gl.Str(name+\"\\x00\"))\n}", "func (r *RedirectNode) Location() Expr { return r.location }", "func (c EntityObject) Attribute(key string) (interface{}, error) {\n\tif key == \"\" {\n\t\treturn nil, errors.New(\"Attribute key must be non-empty\")\n\t}\n\n\tif c.attributes == nil {\n\t\treturn nil, nil\n\t}\n\n\tvalue, found := c.attributes[key]\n\tif !found {\n\t\treturn nil, nil\n\t}\n\n\treturn value, nil\n}", "func (o ExprPtrOutput) Location() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *Expr) *string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.Location\n\t}).(pulumi.StringPtrOutput)\n}", "func (o ExprPtrOutput) Location() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *Expr) *string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.Location\n\t}).(pulumi.StringPtrOutput)\n}", "func (o ExprPtrOutput) Location() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *Expr) *string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.Location\n\t}).(pulumi.StringPtrOutput)\n}", "func (o ExprPtrOutput) Location() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *Expr) *string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.Location\n\t}).(pulumi.StringPtrOutput)\n}", "func (o ExprPtrOutput) Location() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *Expr) *string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.Location\n\t}).(pulumi.StringPtrOutput)\n}", "func (o ExprPtrOutput) Location() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *Expr) *string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.Location\n\t}).(pulumi.StringPtrOutput)\n}", "func GetCurrentAttitudeXYZ() (float64, float64, float64) {\r\n\treturn attitudeX, attitudeY, attitudeZ\r\n}", "func (o AnalyzerOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *Analyzer) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)\n}", "func (obj *register) Variable() string {\n\treturn obj.variable\n}", "func (f SettlLocationField) Tag() quickfix.Tag { return tag.SettlLocation }", "func Location() (string, error) {\n\tslice, err := loader(\"locations\")\n\tcheckErr(err)\n\treturn random(slice), nil\n}", "func Location() string {\n\tpc, _, _, ok := runtime.Caller(1)\n\tif !ok {\n\t\treturn \"?\"\n\t}\n\n\tfn := runtime.FuncForPC(pc)\n\txs := strings.SplitAfterN(fn.Name(), \"/\", 3) // nolint: gomnd\n\n\treturn xs[len(xs)-1]\n}", "func (p Profile) Address() *attribute.StringAttribute {\n\treturn p.GetStringAttribute(AttrConstAddress)\n}", "func (s *BasePlSqlParserListener) EnterAttribute_name(ctx *Attribute_nameContext) {}", "func getAttr(t html.Token, attr string) (ok bool, val string) {\n\t// Iterate over all of the Token's attributes until we find an \"href\"\n\tfor _, a := range t.Attr {\n\t\tif a.Key == attr {\n\t\t\tval = a.Val\n\t\t\tok = true\n\t\t}\n\t}\n\n\t// \"bare\" return will return the variables (ok, href) as defined in\n\t// the function definition\n\treturn\n}", "func (pkg *Package) Loc() *Location {\n\treturn pkg.Location\n}", "func (native *OpenGL) BindAttribLocation(program uint32, index uint32, name string) {\n\tgl.BindAttribLocation(program, index, gl.Str(name+\"\\x00\"))\n}", "func (c *jsiiProxy_CfnDetector) GetAtt(attributeName *string) awscdk.Reference {\n\tvar returns awscdk.Reference\n\n\t_jsii_.Invoke(\n\t\tc,\n\t\t\"getAtt\",\n\t\t[]interface{}{attributeName},\n\t\t&returns,\n\t)\n\n\treturn returns\n}", "func (tr *trooper) loc() (x, y, z float64) { return tr.part.At() }", "func (o CertificateOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *Certificate) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)\n}", "func (attr *Attribute) ID() string {\n\treturn attr.id\n}", "func (ctb *CreateTableBuilder) Var(arg interface{}) string {\n\treturn ctb.args.Add(arg)\n}", "func (l *Loader) AttrLocal(i Sym) bool {\n\treturn l.attrLocal.Has(i)\n}", "func (o JobIamPolicyOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *JobIamPolicy) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)\n}", "func (c *jsiiProxy_CfnStudioComponent) GetAtt(attributeName *string) awscdk.Reference {\n\tvar returns awscdk.Reference\n\n\t_jsii_.Invoke(\n\t\tc,\n\t\t\"getAtt\",\n\t\t[]interface{}{attributeName},\n\t\t&returns,\n\t)\n\n\treturn returns\n}" ]
[ "0.6506751", "0.63546234", "0.6226048", "0.6118068", "0.59911484", "0.59900725", "0.5908538", "0.58969384", "0.57796705", "0.57343066", "0.57136464", "0.56429917", "0.5562831", "0.55168617", "0.55066645", "0.5498909", "0.5490229", "0.5466277", "0.54159534", "0.54153496", "0.540916", "0.53384304", "0.53008693", "0.5264735", "0.52522355", "0.5220275", "0.5187549", "0.5182439", "0.51671535", "0.5132322", "0.51253366", "0.5114861", "0.50991994", "0.5096211", "0.5092023", "0.50884074", "0.50884074", "0.5074355", "0.50590813", "0.5054905", "0.5029913", "0.5029913", "0.5029913", "0.5029913", "0.5029913", "0.5029913", "0.5016443", "0.5001048", "0.49993277", "0.49924582", "0.4989242", "0.4989123", "0.4989123", "0.49876118", "0.49859688", "0.4981855", "0.49676397", "0.49660888", "0.49657804", "0.49589932", "0.4956676", "0.49499747", "0.49417126", "0.49363527", "0.49356443", "0.49219915", "0.49219915", "0.4921809", "0.49206236", "0.49005976", "0.48970902", "0.48936063", "0.48924902", "0.48883486", "0.48855188", "0.48855188", "0.48855188", "0.48855188", "0.48855188", "0.48855188", "0.48853335", "0.48799598", "0.4879639", "0.48677826", "0.48568466", "0.4843562", "0.48236865", "0.48208418", "0.48168096", "0.4813547", "0.48091274", "0.4806615", "0.4795528", "0.4793394", "0.47923732", "0.4784833", "0.47782388", "0.4777927", "0.47772437" ]
0.6050246
5
return parameters of a buffer object
func GetBufferParameteri64v(target uint32, pname uint32, params *int64) { C.glowGetBufferParameteri64v(gpGetBufferParameteri64v, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint64)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *Packet) Buffer() []byte {\n\treturn p.Buf\n}", "func (b *Buffer) Values() interface{} {\n return b.buffer.Slice(0, b.idx).Interface()\n}", "func (b *buffer) buffer() []byte {\n\treturn b.buf[b.offset:]\n}", "func (a *ChannelArea) Buffer() []byte {\n\treturn a.buffer\n}", "func (g *GrowingBuffer) Values() interface{} {\n return g.bufferPtr.Elem().Interface()\n}", "func (p Point) Buffer() *Buffer {\n\treturn p.buffer\n}", "func (al *AudioListener) getBuffer() []gumble.AudioPacket {\n\tal.Lock()\n\tdefer al.Unlock()\n\n\tbuf := al.buffer\n\tal.buffer = nil\n\treturn buf\n}", "func (d *decoder) buffer() []byte {\n\tif d.buf == nil {\n\t\td.buf = make([]byte, 8)\n\t}\n\treturn d.buf\n}", "func (b *mpgBuff) buffer() *concBuff {\n\tif !b.cur {\n\t\treturn b.bufA\n\t}\n\treturn b.bufB\n}", "func (c *common) Parameters() sbcon.Parameters { return c.params }", "func (b *Buffer) Buf() []byte { return b.buf }", "func (b *WString) Buffer() []uint16 {\n\tif b.empty() {\n\t\treturn nil\n\t}\n\treturn b.b\n}", "func (s *Secret) Buffer() []byte {\n\treturn s.buffer.Buffer()\n}", "func (b *Bitmap) Buffer() []byte {\n\tl := b.Rows() * b.Pitch()\n\treturn C.GoBytes(unsafe.Pointer(b.handle.buffer), C.int(l))\n}", "func NewBuffer(aSlice interface{}) *Buffer {\n return &Buffer{buffer: sliceValue(aSlice, false), handler: valueHandler{}}\n}", "func (p *movingAverageProcessor) getBufferData(index int, namespace string) interface{} {\n\n\treturn p.movingAverageMap[namespace].movingAverageBuf[index]\n}", "func (geom Geometry) Buffer(distance float64, segments int) Geometry {\n\tnewGeom := C.OGR_G_Buffer(geom.cval, C.double(distance), C.int(segments))\n\treturn Geometry{newGeom}\n}", "func (b *mpgBuff) BufferSize() int {\n\treturn b.size\n}", "func (p *Buffer) Bytes() []byte { return p.buf }", "func (self Source) GetBuffer() (buffer Buffer) {\n\treturn Buffer(self.Geti(AlBuffer))\n}", "func (m *Magic) Buffer(data []byte) (string, error) {\n\tif m.ptr == nil {\n\t\treturn \"\", ConnectionError\n\t}\n\n\tptr := unsafe.Pointer(&data)\n\tsz := C.size_t(len(data))\n\tcr := C.magic_buffer(m.ptr, ptr, sz)\n\n\tif cr == nil {\n\t\treturn \"\", m.check()\n\t}\n\n\tr := C.GoString(cr)\n\tC.free(unsafe.Pointer(cr))\n\treturn r, nil\n}", "func (w *Writer) Buffer() []byte {\n\tif w.err != nil {\n\t\treturn nil\n\t}\n\treturn append([]byte(nil), w.b...)\n}", "func (request *Request) Buffer() ([]byte, error) {\n\treturn json.Marshal(request)\n}", "func NewBuffer() Buffer {\n\treturn &buffer{}\n}", "func annotateBuffer(text *string) []Annotation {\n\ttextLength := primitives.Cursor(len(*text))\n\treturn []Annotation{\n\t\t{\n\t\t\tTag: BUFFER,\n\t\t\tRegion: primitives.Region{\n\t\t\t\tLeft: primitives.Span{A: 0, B: 0},\n\t\t\t\tRight: primitives.Span{A: textLength, B: textLength},\n\t\t\t},\n\t\t},\n\t}\n}", "func (b *Buffer) Bytes() []byte { return b.buf[:b.length] }", "func buffer(rd io.Reader) (buf []byte, endInd int, streamInd int, streamOffset int64, err error) {\n\n\t// process: # gen obj ... obj dict ... {stream ... data ... endstream} ... endobj\n\t// streamInd endInd\n\t// -1 if absent -1 if absent\n\n\t//log.Read.Println(\"buffer: begin\")\n\n\tendInd, streamInd = -1, -1\n\n\tfor endInd < 0 && streamInd < 0 {\n\n\t\tbuf, err = growBufBy(buf, defaultBufSize, rd)\n\t\tif err != nil {\n\t\t\treturn nil, 0, 0, 0, err\n\t\t}\n\n\t\tline := string(buf)\n\t\tendInd = strings.Index(line, \"endobj\")\n\t\tstreamInd = strings.Index(line, \"stream\")\n\n\t\tif endInd > 0 && (streamInd < 0 || streamInd > endInd) {\n\t\t\t// No stream marker in buf detected.\n\t\t\tbreak\n\t\t}\n\n\t\t// For very rare cases where \"stream\" also occurs within obj dict\n\t\t// we need to find the last \"stream\" marker before a possible end marker.\n\t\tfor streamInd > 0 && !keywordStreamRightAfterEndOfDict(line, streamInd) {\n\t\t\tlastStreamMarker(&streamInd, endInd, line)\n\t\t}\n\n\t\tlog.Read.Printf(\"buffer: endInd=%d streamInd=%d\\n\", endInd, streamInd)\n\n\t\tif streamInd > 0 {\n\n\t\t\t// streamOffset ... the offset where the actual stream data begins.\n\t\t\t// is right after the eol after \"stream\".\n\n\t\t\tslack := 10 // for optional whitespace + eol (max 2 chars)\n\t\t\tneed := streamInd + len(\"stream\") + slack\n\n\t\t\tif len(line) < need {\n\n\t\t\t\t// to prevent buffer overflow.\n\t\t\t\tbuf, err = growBufBy(buf, need-len(line), rd)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn nil, 0, 0, 0, err\n\t\t\t\t}\n\n\t\t\t\tline = string(buf)\n\t\t\t}\n\n\t\t\tstreamOffset = int64(nextStreamOffset(line, streamInd))\n\t\t}\n\t}\n\n\t//log.Read.Printf(\"buffer: end, returned bufsize=%d streamOffset=%d\\n\", len(buf), streamOffset)\n\n\treturn buf, endInd, streamInd, streamOffset, nil\n}", "func (g *GLTF) loadBuffer(bufIdx int) ([]byte, error) {\n\n\t// Check if provided buffer index is valid\n\tif bufIdx < 0 || bufIdx >= len(g.Buffers) {\n\t\treturn nil, fmt.Errorf(\"invalid buffer index\")\n\t}\n\tbufData := &g.Buffers[bufIdx]\n\t// Return cached if available\n\tif bufData.cache != nil {\n\t\tlog.Debug(\"Fetching Buffer %d (cached)\", bufIdx)\n\t\treturn bufData.cache, nil\n\t}\n\tlog.Debug(\"Loading Buffer %d\", bufIdx)\n\n\t// If buffer URI use the chunk data field\n\tif bufData.Uri == \"\" {\n\t\treturn g.data, nil\n\t}\n\n\t// Checks if buffer URI is a data URI\n\tvar data []byte\n\tvar err error\n\tif isDataURL(bufData.Uri) {\n\t\tdata, err = loadDataURL(bufData.Uri)\n\t} else {\n\t\t// Try to load buffer from file\n\t\tdata, err = g.loadFileBytes(bufData.Uri)\n\t}\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Checks data length\n\tif len(data) != bufData.ByteLength {\n\t\treturn nil, fmt.Errorf(\"buffer:%d read data length:%d expected:%d\", bufIdx, len(data), bufData.ByteLength)\n\t}\n\t// Cache buffer data\n\tg.Buffers[bufIdx].cache = data\n\tlog.Debug(\"cache data:%v\", len(bufData.cache))\n\treturn data, nil\n}", "func (b *Buffer) Data() []byte { return b.data }", "func (pkt *NrpePacket) ExtractCmdAndArgsFromBuffer() (string, []string, error) {\n\tvar err error\n\tvar buffer []string\n\tvar cmd string\n\tvar args []string = []string{}\n\n\t// splitting informed buffer based on exclamation marks, defualt for NRPE\n\tbuffer = strings.Split(pkt.Buffer, \"!\")\n\n\t// command will always be the first option, a nagios check name\n\tcmd = fmt.Sprintf(\"%s\", buffer[0])\n\n\t// checking how many items we have, at least one to compose a command\n\tswitch len(buffer) {\n\tcase 0:\n\t\terr = errors.New(\"Can't extract command from buffer:\" + pkt.Buffer)\n\t\treturn \"\", nil, err\n\tcase 1:\n\t\t// command is already been extracted\n\tdefault:\n\t\tcmd = fmt.Sprintf(\"%s\", buffer[0])\n\t\targs = buffer[1:]\n\t}\n\n\treturn cmd, args, nil\n}", "func newBuffer(b []byte) *buffer {\n\treturn &buffer{proto.NewBuffer(b), 0}\n}", "func (s *scanner) buffer() []byte {\n\tbuf := s.bytesPrealloc[:0]\n\ts.bytesPrealloc = nil\n\treturn buf\n}", "func (*CCParameters) Descriptor() ([]byte, []int) {\n\treturn file_fpc_fpc_proto_rawDescGZIP(), []int{0}\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetNamedBufferParameteriv, 3, uintptr(buffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func (*Parameters) Descriptor() ([]byte, []int) {\n\treturn file_proto_google_fhir_proto_r5_core_resources_parameters_proto_rawDescGZIP(), []int{0}\n}", "func GetBufferParameteri(target, pname Enum) int {\n\tvar params int32\n\tgl.GetBufferParameteriv(uint32(target), uint32(pname), &params)\n\treturn int(params)\n}", "func newBuffer(bits uint32) buffer {\n\tvar b buffer\n\tb.data = make([]unsafe.Pointer, 1<<bits)\n\tb.free = 1 << bits\n\tb.mask = 1<<bits - 1\n\tb.bits = bits\n\treturn b\n}", "func ReadBodyInfoByBuffer(body io.Reader) string {\n\t// 使用缓冲\n\tvar buffer bytes.Buffer\n\tfor {\n\t\ttemplate := make([]byte, 1024)\n\t\tn, err := body.Read(template)\n\t\tif err != nil {\n\t\t\tif err == io.EOF {\n\t\t\t\tif n > 0 {\n\t\t\t\t\tbuffer.Write(template[:n])\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t} else {\n\t\t\t\treturn \"\"\n\t\t\t}\n\t\t}\n\t\tif n > 0 {\n\t\t\tbuffer.Write(template[:n])\n\t\t}\n\t}\n\treturn buffer.String()\n}", "func newBuffer(buf []byte) *Buffer {\n\treturn &Buffer{data: buf}\n}", "func newBuffer(br *Reader) (*buffer, error) {\n\tn, err := io.ReadFull(br.r, br.buf[:4])\n\t// br.r.Chunk() is only valid after the call the Read(), so this\n\t// must come after the first read in the record.\n\ttx := br.r.Begin()\n\tdefer func() {\n\t\tbr.lastChunk = tx.End()\n\t}()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif n != 4 {\n\t\treturn nil, errors.New(\"bam: invalid record: short block size\")\n\t}\n\tb := &buffer{data: br.buf[:4]}\n\tsize := int(b.readInt32())\n\tif size == 0 {\n\t\treturn nil, io.EOF\n\t}\n\tif size < 0 {\n\t\treturn nil, errors.New(\"bam: invalid record: invalid block size\")\n\t}\n\tif size > cap(br.buf) {\n\t\tb.off, b.data = 0, make([]byte, size)\n\t} else {\n\t\tb.off, b.data = 0, br.buf[:size]\n\t\tb.shared = true\n\t}\n\tn, err = io.ReadFull(br.r, b.data)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif n != size {\n\t\treturn nil, errors.New(\"bam: truncated record\")\n\t}\n\treturn b, nil\n}", "func (*Params) Descriptor() ([]byte, []int) {\n\treturn file_cosmos_bank_v1beta1_bank_proto_rawDescGZIP(), []int{0}\n}", "func (h *TelemetryHandler) GetBuffersInfo(ctx context.Context) (*vppcalls.BuffersInfo, error) {\n\tdata, err := h.vpe.RunCli(context.TODO(), \"show buffers\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar items []vppcalls.BuffersItem\n\n\tfor i, line := range strings.Split(string(data), \"\\n\") {\n\t\t// Skip empty lines\n\t\tif strings.TrimSpace(line) == \"\" {\n\t\t\tcontinue\n\t\t}\n\t\t// Check first line\n\t\tif i == 0 {\n\t\t\tfields := strings.Fields(line)\n\t\t\t// Verify header\n\t\t\tif len(fields) != 11 || fields[0] != \"Pool\" {\n\t\t\t\treturn nil, fmt.Errorf(\"invalid header for `show buffers` received: %q\", line)\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\n\t\t// Parse lines using regexp\n\t\tmatches := buffersRe.FindStringSubmatch(line)\n\t\tif len(matches)-1 != 9 {\n\t\t\treturn nil, fmt.Errorf(\"parsing failed (%d matches) for `show buffers` line: %q\", len(matches), line)\n\t\t}\n\t\tfields := matches[1:]\n\n\t\titems = append(items, vppcalls.BuffersItem{\n\t\t\t// ThreadID: uint(strToUint64(fields[0])),\n\t\t\tName: fields[0],\n\t\t\tIndex: uint(strToUint64(fields[1])),\n\t\t\tSize: strToUint64(fields[3]),\n\t\t\tAlloc: strToUint64(fields[7]),\n\t\t\tFree: strToUint64(fields[5]),\n\t\t\t// NumAlloc: strToUint64(fields[6]),\n\t\t\t// NumFree: strToUint64(fields[7]),\n\t\t})\n\t}\n\n\tinfo := &vppcalls.BuffersInfo{\n\t\tItems: items,\n\t}\n\n\treturn info, nil\n}", "func (*ParameterInformation_Offset) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{121, 0}\n}", "func (def *Definition) ParseBuffer(helper *BufferHelper, option *BufferOption, prefix string) (res TraverseResult, err error) {\n\tif def.Values == nil {\n\t\tif Central.IsDebugLevel() {\n\t\t\tCentral.Log.Debugf(\"Parse buffer types...\")\n\t\t}\n\t\tdef.Values, err = parseBufferTypes(helper, option, def.activeFieldTree, 0)\n\t} else {\n\t\tif Central.IsDebugLevel() {\n\t\t\tdef.DumpTypes(true, true, \"Parse buffer type tree\")\n\t\t\tdef.DumpValues(true)\n\t\t\tCentral.Log.Debugf(\"Parse buffer values... avail.=%v\", (def.Values != nil))\n\t\t}\n\t\tx := parserBufferTr{helper: helper, option: option, prefix: prefix, definition: def}\n\t\tt := TraverserValuesMethods{EnterFunction: parseBufferValues}\n\t\tres, err = def.TraverseValues(t, &x)\n\t\tif err != nil {\n\t\t\tCentral.Log.Debugf(\"Error parsing buffer values... %v\", err)\n\t\t\treturn\n\t\t}\n\t\tif Central.IsDebugLevel() {\n\t\t\tCentral.Log.Debugf(\"End parse buffer values... %p avail.=%v\", def, (def.Values != nil))\n\t\t}\n\t}\n\n\treturn\n}", "func (pk PacketBufferPtr) ToBuffer() buffer.Buffer {\n\tb := pk.buf.Clone()\n\tb.TrimFront(int64(pk.headerOffset()))\n\treturn b\n}", "func NewBuffer() *Buffer { return globalPool.NewBuffer() }", "func (*ParameterInformation) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{121}\n}", "func new_buffer(conn *websocket.Conn, ctrl chan struct{}, txqueuelen int) *Buffer {\n\tbuf := Buffer{conn: conn}\n\tbuf.pending = make(chan []byte, txqueuelen)\n\tbuf.ctrl = ctrl\n\tbuf.cache = make([]byte, packet.PACKET_LIMIT+2)\n\treturn &buf\n}", "func buff(bs ...byte) *bytes.Reader {\n\treturn bytes.NewReader(bs)\n}", "func (body *luaBody) buffer() *bytes.Buffer {\n\tvar b bytes.Buffer\n\tif body.Reader == nil {\n\t\treturn &b\n\t}\n\n\tb.ReadFrom(body.Reader)\n\t_, err := body.Reader.(io.Seeker).Seek(0, 0)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\treturn &b\n}", "func newBuffer(r io.Reader, offset int64) *buffer {\n\treturn &buffer{\n\t\tr: r,\n\t\toffset: offset,\n\t\tbuf: make([]byte, 0, 4096),\n\t\tallowObjptr: true,\n\t\tallowStream: true,\n\t}\n}", "func GetBufferParameteriv(target uint32, pname uint32, params *int32) {\n C.glowGetBufferParameteriv(gpGetBufferParameteriv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func NewBuffer() *Buffer {\n\treturn &Buffer{Line: []byte{}, Val: make([]byte, 0, 32)}\n}", "func (s *Scanner) Buffer(buf []byte, max int)", "func NewBuffer() Buffer {\n\treturn Buffer{\n\t\tCellMap: make(map[image.Point]Cell),\n\t\tArea: image.Rectangle{}}\n}", "func (w *Writer) Buffer() audio.Buffer {\n\treturn w.buf.Clone()\n}", "func GetBufferParameteriv(target uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetBufferParameteriv, 3, uintptr(target), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func (v *TextView) BufferToWindowCoords(win TextWindowType, buffer_x, buffer_y int) (window_x, window_y int) {\n\tvar wx, wy C.gint\n\tC.gtk_text_view_buffer_to_window_coords(v.native(), C.GtkTextWindowType(win), C.gint(buffer_x), C.gint(buffer_y), &wx, &wy)\n\treturn int(wx), int(wy)\n}", "func createBuffer() *bytes.Buffer {\n\tbuf := bytes.Buffer{}\n\treturn &buf\n}", "func (p Plane) GetBuffers() ObjectBuffers {\n\treturn p.buffers\n}", "func (b *Buffer) bytes() []byte {\n\treturn b.data\n}", "func newBuffer() *buffer {\n\treturn &buffer{\n\t\tdata: make([]byte, 0),\n\t\tlen: 0,\n\t\tpkg: nil,\n\t\tconn: nil,\n\t\tpkgCh: make(chan *pkg),\n\t\tevCh: make(chan *pkg),\n\t\terrCh: make(chan error, 1),\n\t}\n}", "func NewBufferBuilder() *BufferBuilder {\n\treturn &BufferBuilder{}\n}", "func appendBuffer(elements []interface{}, buf *bytes.Buffer) ([]interface{}, *bytes.Buffer) {\n\tif buf.Len() > 0 {\n\t\ts, _ := NewStringElement(buf.String())\n\t\treturn append(elements, s), bytes.NewBuffer(nil)\n\t}\n\treturn elements, buf\n}", "func (*ClientMethod_Parameter) Descriptor() ([]byte, []int) {\n\treturn file_metadata_metadata_proto_rawDescGZIP(), []int{2, 0}\n}", "func (*Parameters_Parameter) Descriptor() ([]byte, []int) {\n\treturn file_proto_google_fhir_proto_r5_core_resources_parameters_proto_rawDescGZIP(), []int{0, 0}\n}", "func ParseParameter(cursor *bufio.Reader) []string {\n\tvar buffer []string\n\tbuffer = make([]string, 1)\n\tvar paramCount = 0\n\tfor {\n\t\tnextc, _, err := cursor.ReadRune()\n\t\t//fmt.Println(nextc)\n\t\tif strings.ContainsRune(\" \", nextc) {\n\t\t\tif strings.ContainsRune(\":\", rune(buffer[paramCount][0])) {\n\t\t\t\t// parameter starting with : can have spaces in it\n\t\t\t\tbuffer[paramCount] += string(nextc)\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\tparamCount++\n\t\t\tvar tmp = make([]string, paramCount+1)\n\t\t\tcopy(tmp, buffer)\n\t\t\tbuffer = tmp\n\t\t\tcontinue\n\t\t}\n\t\tif err != nil {\n\t\t\tif err == io.EOF {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tlog.Fatal(\"Error parsing command \", err)\n\t\t}\n\t\t//fmt.Println(paramCount)\n\t\tbuffer[paramCount] += string(nextc)\n\t}\n\t//for i, j := range buffer {\n\t//\tfmt.Printf(\"Parameter %d : %s\\n\", i+1, j)\n\t//}\n\treturn buffer\n}", "func (b *Buffer) Offset() int { return b.offset }", "func NewProxyWithBuffer(buffer *fbe.Buffer) *Proxy {\n proxy := &Proxy{\n fbe.NewReceiver(buffer, false),\n proto.NewProxyWithBuffer(buffer),\n NewStructSimpleModel(buffer),\n NewStructOptionalModel(buffer),\n NewStructNestedModel(buffer),\n NewStructBytesModel(buffer),\n NewStructArrayModel(buffer),\n NewStructVectorModel(buffer),\n NewStructListModel(buffer),\n NewStructSetModel(buffer),\n NewStructMapModel(buffer),\n NewStructHashModel(buffer),\n NewStructHashExModel(buffer),\n NewStructEmptyModel(buffer),\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n }\n proxy.SetupHandlerOnReceive(proxy)\n proxy.SetupHandlerOnProxyStructSimpleFunc(func(model *StructSimpleModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructOptionalFunc(func(model *StructOptionalModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructNestedFunc(func(model *StructNestedModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructBytesFunc(func(model *StructBytesModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructArrayFunc(func(model *StructArrayModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructVectorFunc(func(model *StructVectorModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructListFunc(func(model *StructListModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructSetFunc(func(model *StructSetModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructMapFunc(func(model *StructMapModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructHashFunc(func(model *StructHashModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructHashExFunc(func(model *StructHashExModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructEmptyFunc(func(model *StructEmptyModel, fbeType int, buffer []byte) {})\n return proxy\n}", "func (b *BaseImpl) BufInfo() (infos BufInfo) {\n\n\tinfos[0].Len = len(b.bytes)\n\tinfos[0].Cap = cap(b.bytes)\n\n\tinfos[1].Len = infos[0].Len\n\tinfos[1].Cap = infos[0].Cap\n\tfor _, diff := range b.Diffs {\n\t\tif len(diff.bytes)+diff.Offset > infos[1].Len {\n\t\t\tinfos[1].Len = diff.Offset + len(diff.bytes)\n\t\t}\n\t\tif cap(diff.bytes)+diff.Offset > infos[1].Cap {\n\t\t\tinfos[1].Cap = diff.Offset + cap(diff.bytes)\n\t\t}\n\t}\n\treturn\n}", "func (*BlockParams) Descriptor() ([]byte, []int) {\n\treturn file_tm_replay_proto_rawDescGZIP(), []int{11}\n}", "func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) {\n\tsyscall.Syscall(gpGetNamedBufferPointerv, 3, uintptr(buffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func (s *scanner) returnBuffer(buf []byte) {\n\tif len(buf) < cap(buf) {\n\t\ts.bytesPrealloc = buf[len(buf):]\n\t}\n}", "func (rr *responseRecorder) Buffer() *bytes.Buffer {\n\treturn rr.buf\n}", "func (*PDirectBuffer) Descriptor() ([]byte, []int) {\n\treturn file_v1_Stat_proto_rawDescGZIP(), []int{19}\n}", "func GetCommandArgs(ctx context.Context,\n\tcr *CommandReference,\n\ts *State) interface{} {\n\tswitch cr.Type {\n\tcase CommandType_cmd_vkCmdBeginRenderPass:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBeginRenderPass.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdEndRenderPass:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdEndRenderPass.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdNextSubpass:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdNextSubpass.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBindPipeline:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBindPipeline.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBindDescriptorSets:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBindDescriptorSets.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBindVertexBuffers:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBindVertexBuffers.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBindIndexBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBindIndexBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdPipelineBarrier:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdPipelineBarrier.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdWaitEvents:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdWaitEvents.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBeginQuery:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBeginQuery.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBlitImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBlitImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdClearAttachments:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdClearAttachments.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdClearColorImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdClearColorImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdClearDepthStencilImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdClearDepthStencilImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyBufferToImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyBufferToImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyImageToBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyImageToBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyQueryPoolResults:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyQueryPoolResults.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDispatch:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDispatch.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDispatchIndirect:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDispatchIndirect.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDraw:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDraw.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDrawIndexed:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDrawIndexed.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDrawIndexedIndirect:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDrawIndexedIndirect.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDrawIndirect:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDrawIndirect.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdEndQuery:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdEndQuery.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdExecuteCommands:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdExecuteCommands.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdFillBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdFillBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdPushConstants:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdPushConstants.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdResetQueryPool:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdResetQueryPool.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdResolveImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdResolveImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetBlendConstants:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetBlendConstants.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetDepthBias:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetDepthBias.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetDepthBounds:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetDepthBounds.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetEvent:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetEvent.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdResetEvent:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdResetEvent.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetLineWidth:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetLineWidth.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetScissor:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetScissor.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetStencilCompareMask:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetStencilCompareMask.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetStencilReference:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetStencilReference.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetStencilWriteMask:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetStencilWriteMask.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetViewport:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetViewport.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdUpdateBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdUpdateBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdWriteTimestamp:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdWriteTimestamp.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDebugMarkerBeginEXT:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDebugMarkerBeginEXT.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDebugMarkerEndEXT:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDebugMarkerEndEXT.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDebugMarkerInsertEXT:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDebugMarkerInsertEXT.Get(cr.MapIndex)\n\tdefault:\n\t\tx := fmt.Sprintf(\"Should not reach here: %T\", cr)\n\t\tpanic(x)\n\t}\n}", "func (*ResponseParameters) Descriptor() ([]byte, []int) {\n\treturn file_grpc_test_proto_rawDescGZIP(), []int{6}\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tC.glowGetNamedBufferParameteriv(gpGetNamedBufferParameteriv, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tC.glowGetNamedBufferParameteriv(gpGetNamedBufferParameteriv, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (c *connAttrs) BufferSize() int { c.mu.RLock(); defer c.mu.RUnlock(); return c._bufferSize }", "func (q Query) MakeBuffer() []interface{} {\n\tstrings := make([]sql.NullString, len(q.columns))\n\tresult := make([]interface{}, len(q.columns))\n\n\tfor i, v := range strings {\n\t\tresult[i] = &v\n\t}\n\n\treturn result\n}", "func (*Parameter) Descriptor() ([]byte, []int) {\n\treturn file_service_proto_rawDescGZIP(), []int{1}\n}", "func (*ParamType) Descriptor() ([]byte, []int) {\n\treturn file_keepsake_proto_rawDescGZIP(), []int{22}\n}", "func (b *Builder) Buffer(count int) value.Pointer {\n\tpointerSize := b.memoryLayout.GetPointer().GetSize()\n\tdynamic := false\n\tsize := 0\n\n\t// Examine the stack to see where these values came from\n\tfor i := 0; i < count; i++ {\n\t\te := b.stack[len(b.stack)-i-1]\n\t\top := b.instructions[e.idx]\n\t\tty := e.ty\n\t\tif _, isPush := op.(asm.Push); !isPush {\n\t\t\t// Values that have made their way on to the stack from non-constant\n\t\t\t// sources cannot be put in the constant buffer.\n\t\t\tdynamic = true\n\t\t}\n\t\tswitch ty {\n\t\tcase protocol.Type_ConstantPointer, protocol.Type_VolatilePointer:\n\t\t\t// Pointers cannot be put into the constant buffer as they are remapped\n\t\t\t// by the VM\n\t\t\tdynamic = true\n\t\t}\n\n\t\tsize += ty.Size(pointerSize)\n\t}\n\n\tif dynamic {\n\t\t// At least one of the values was not from a Push()\n\t\t// Build the buffer in temporary memory at replay time.\n\t\tbuf := b.AllocateTemporaryMemory(uint64(size))\n\t\toffset := size\n\t\tfor i := 0; i < count; i++ {\n\t\t\te := b.stack[len(b.stack)-1]\n\t\t\toffset -= e.ty.Size(pointerSize)\n\t\t\tb.Store(buf.Offset(uint64(offset)))\n\t\t}\n\t\treturn buf\n\t}\n\t// All the values are constant.\n\t// Move the pushed values into a constant memory buffer.\n\tvalues := make([]value.Value, count)\n\tfor i := 0; i < count; i++ {\n\t\te := b.stack[len(b.stack)-1]\n\t\tvalues[count-i-1] = b.instructions[e.idx].(asm.Push).Value\n\t\tb.removeInstruction(e.idx)\n\t\tb.popStack()\n\t}\n\treturn b.constantMemory.writeValues(values...)\n}", "func getBuffer() *bytes.Buffer {\n\treturn bufferPool.Get().(*bytes.Buffer)\n}", "func Buffer() string {\n\treturn C.GoString(C.rl_line_buffer)\n}", "func (pb *PageBuffer) Values() interface{} {\n offset := pb.pageOffset(pb.page_no)\n return pb.buffer.Slice(offset, offset + pb.idx).Interface()\n}", "func (m *Sink) Buffer() signal.Float64 {\n\treturn m.buffer\n}", "func ReadBuffer(mode uint32) {\n C.glowReadBuffer(gpReadBuffer, (C.GLenum)(mode))\n}", "func (file BaseFile) params() (map[string]string, error) {\n\tparams := make(map[string]string)\n\n\tif file.ChannelUsername != \"\" {\n\t\tparams[\"chat_id\"] = file.ChannelUsername\n\t} else {\n\t\tparams[\"chat_id\"] = strconv.FormatInt(file.ChatID, 10)\n\t}\n\n\tif file.ReplyToMessageID != 0 {\n\t\tparams[\"reply_to_message_id\"] = strconv.Itoa(file.ReplyToMessageID)\n\t}\n\n\tif file.ReplyMarkup != nil {\n\t\tdata, err := json.Marshal(file.ReplyMarkup)\n\t\tif err != nil {\n\t\t\treturn params, err\n\t\t}\n\n\t\tparams[\"reply_markup\"] = string(data)\n\t}\n\n\tif file.MimeType != \"\" {\n\t\tparams[\"mime_type\"] = file.MimeType\n\t}\n\n\tif file.FileSize > 0 {\n\t\tparams[\"file_size\"] = strconv.Itoa(file.FileSize)\n\t}\n\n\tparams[\"disable_notification\"] = strconv.FormatBool(file.DisableNotification)\n\n\treturn params, nil\n}", "func getAllocFreeParams(allocLen int) []string {\n\tsize := uint32(allocLen)\n\tstart := atomic.AddUint32(&startParamList, size)\n\tif (start + 10) >= uint32(len(paramsPosDummy)) {\n\t\tatomic.StoreUint32(&startParamList, 0)\n\t\treturn getAllocFreeParams(allocLen)\n\t}\n\tstart -= size\n\tallocLen += int(start)\n\tparams := paramsDummy[start:allocLen:allocLen]\n\treturn params\n}", "func (tr *CassandraKeySpace) GetParameters() (map[string]interface{}, error) {\n\tp, err := json.TFParser.Marshal(tr.Spec.ForProvider)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbase := map[string]interface{}{}\n\treturn base, json.TFParser.Unmarshal(p, &base)\n}", "func (r *Rx) Bytes() []byte {\n\treturn r.p.buffer\n}", "func NewBuffer(o *Options) (*Buffer, error) {\n\tif o == nil {\n\t\to = &Options{}\n\t}\n\tret := &Buffer{opts: *o} // copy o before normalizing it\n\n\tif err := ret.opts.normalize(); err != nil {\n\t\treturn nil, errors.Annotate(err, \"normalizing buffer.Options\").Err()\n\t}\n\n\tret.unleased.onlyID = o.FIFO\n\tret.batchItemsGuess = newMovingAverage(10, ret.opts.batchItemsGuess())\n\tret.liveLeases = map[*Batch]struct{}{}\n\tret.unAckedLeases = map[*Batch]struct{}{}\n\treturn ret, nil\n}", "func NewBuffer() *Buffer {\n\treturn &Buffer{B: &strings.Builder{}}\n}", "func (*PrepareArgs) Descriptor() ([]byte, []int) {\n\treturn file_lbbft_proto_rawDescGZIP(), []int{8}\n}", "func NewProxyWithBuffer(buffer *fbe.Buffer) *Proxy {\n proxy := &Proxy{\n fbe.NewReceiver(buffer, false),\n NewOrderModel(buffer),\n NewBalanceModel(buffer),\n NewAccountModel(buffer),\n nil,\n nil,\n nil,\n }\n proxy.SetupHandlerOnReceive(proxy)\n proxy.SetupHandlerOnProxyOrderFunc(func(model *OrderModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyBalanceFunc(func(model *BalanceModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyAccountFunc(func(model *AccountModel, fbeType int, buffer []byte) {})\n return proxy\n}", "func (b *Buf) Bytes() []byte { return b.b }", "func (m *MsgMemoryBuffer) GetAll() []interface{} {\n\tvar data []interface{}\n\tm.buff.Do(func(x interface{}) {\n\t\tif x != nil {\n\t\t\tdata = append(data, x)\n\t\t}\n\t})\n\treturn data\n}", "func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetNamedBufferSubData, 4, uintptr(buffer), uintptr(offset), uintptr(size), uintptr(data), 0, 0)\n}", "func GetBufferPointerv(target uint32, pname uint32, params *unsafe.Pointer) {\n\tsyscall.Syscall(gpGetBufferPointerv, 3, uintptr(target), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}" ]
[ "0.59277564", "0.57830817", "0.5781071", "0.57732254", "0.57248014", "0.5713533", "0.5704978", "0.5680736", "0.5673289", "0.564021", "0.5635625", "0.562202", "0.55879676", "0.55832255", "0.5570756", "0.5514081", "0.55023456", "0.54961616", "0.5447834", "0.54395765", "0.54268664", "0.54142207", "0.53650755", "0.5342737", "0.53299636", "0.53184056", "0.53145415", "0.5305379", "0.53041536", "0.5301557", "0.52996135", "0.5297414", "0.52961594", "0.5286182", "0.52684975", "0.52663445", "0.5257315", "0.5231435", "0.52277887", "0.5213996", "0.5212929", "0.5195002", "0.5172452", "0.5170476", "0.516427", "0.5161455", "0.516017", "0.5147554", "0.51244646", "0.5118771", "0.5099665", "0.50987756", "0.5094207", "0.5091877", "0.5090826", "0.508951", "0.5083891", "0.50829864", "0.5078764", "0.507643", "0.5070384", "0.5069355", "0.5053648", "0.5043483", "0.5036995", "0.50210375", "0.5019968", "0.5010406", "0.5003046", "0.49990752", "0.49909595", "0.4990359", "0.4989846", "0.49896365", "0.49873343", "0.4983508", "0.49744824", "0.49676207", "0.49676207", "0.4966864", "0.49658152", "0.49610984", "0.49598503", "0.4950361", "0.4946738", "0.49446583", "0.49391288", "0.49353665", "0.49340847", "0.49321964", "0.4931129", "0.49304917", "0.49267966", "0.4922583", "0.49139374", "0.49070895", "0.490462", "0.49033844", "0.49029076", "0.48949188", "0.48937932" ]
0.0
-1
return parameters of a buffer object
func GetBufferParameteriv(target uint32, pname uint32, params *int32) { C.glowGetBufferParameteriv(gpGetBufferParameteriv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *Packet) Buffer() []byte {\n\treturn p.Buf\n}", "func (b *Buffer) Values() interface{} {\n return b.buffer.Slice(0, b.idx).Interface()\n}", "func (b *buffer) buffer() []byte {\n\treturn b.buf[b.offset:]\n}", "func (a *ChannelArea) Buffer() []byte {\n\treturn a.buffer\n}", "func (g *GrowingBuffer) Values() interface{} {\n return g.bufferPtr.Elem().Interface()\n}", "func (p Point) Buffer() *Buffer {\n\treturn p.buffer\n}", "func (al *AudioListener) getBuffer() []gumble.AudioPacket {\n\tal.Lock()\n\tdefer al.Unlock()\n\n\tbuf := al.buffer\n\tal.buffer = nil\n\treturn buf\n}", "func (d *decoder) buffer() []byte {\n\tif d.buf == nil {\n\t\td.buf = make([]byte, 8)\n\t}\n\treturn d.buf\n}", "func (b *mpgBuff) buffer() *concBuff {\n\tif !b.cur {\n\t\treturn b.bufA\n\t}\n\treturn b.bufB\n}", "func (c *common) Parameters() sbcon.Parameters { return c.params }", "func (b *Buffer) Buf() []byte { return b.buf }", "func (b *WString) Buffer() []uint16 {\n\tif b.empty() {\n\t\treturn nil\n\t}\n\treturn b.b\n}", "func (s *Secret) Buffer() []byte {\n\treturn s.buffer.Buffer()\n}", "func (b *Bitmap) Buffer() []byte {\n\tl := b.Rows() * b.Pitch()\n\treturn C.GoBytes(unsafe.Pointer(b.handle.buffer), C.int(l))\n}", "func NewBuffer(aSlice interface{}) *Buffer {\n return &Buffer{buffer: sliceValue(aSlice, false), handler: valueHandler{}}\n}", "func (p *movingAverageProcessor) getBufferData(index int, namespace string) interface{} {\n\n\treturn p.movingAverageMap[namespace].movingAverageBuf[index]\n}", "func (geom Geometry) Buffer(distance float64, segments int) Geometry {\n\tnewGeom := C.OGR_G_Buffer(geom.cval, C.double(distance), C.int(segments))\n\treturn Geometry{newGeom}\n}", "func (b *mpgBuff) BufferSize() int {\n\treturn b.size\n}", "func (p *Buffer) Bytes() []byte { return p.buf }", "func (self Source) GetBuffer() (buffer Buffer) {\n\treturn Buffer(self.Geti(AlBuffer))\n}", "func (m *Magic) Buffer(data []byte) (string, error) {\n\tif m.ptr == nil {\n\t\treturn \"\", ConnectionError\n\t}\n\n\tptr := unsafe.Pointer(&data)\n\tsz := C.size_t(len(data))\n\tcr := C.magic_buffer(m.ptr, ptr, sz)\n\n\tif cr == nil {\n\t\treturn \"\", m.check()\n\t}\n\n\tr := C.GoString(cr)\n\tC.free(unsafe.Pointer(cr))\n\treturn r, nil\n}", "func (w *Writer) Buffer() []byte {\n\tif w.err != nil {\n\t\treturn nil\n\t}\n\treturn append([]byte(nil), w.b...)\n}", "func (request *Request) Buffer() ([]byte, error) {\n\treturn json.Marshal(request)\n}", "func NewBuffer() Buffer {\n\treturn &buffer{}\n}", "func annotateBuffer(text *string) []Annotation {\n\ttextLength := primitives.Cursor(len(*text))\n\treturn []Annotation{\n\t\t{\n\t\t\tTag: BUFFER,\n\t\t\tRegion: primitives.Region{\n\t\t\t\tLeft: primitives.Span{A: 0, B: 0},\n\t\t\t\tRight: primitives.Span{A: textLength, B: textLength},\n\t\t\t},\n\t\t},\n\t}\n}", "func (b *Buffer) Bytes() []byte { return b.buf[:b.length] }", "func buffer(rd io.Reader) (buf []byte, endInd int, streamInd int, streamOffset int64, err error) {\n\n\t// process: # gen obj ... obj dict ... {stream ... data ... endstream} ... endobj\n\t// streamInd endInd\n\t// -1 if absent -1 if absent\n\n\t//log.Read.Println(\"buffer: begin\")\n\n\tendInd, streamInd = -1, -1\n\n\tfor endInd < 0 && streamInd < 0 {\n\n\t\tbuf, err = growBufBy(buf, defaultBufSize, rd)\n\t\tif err != nil {\n\t\t\treturn nil, 0, 0, 0, err\n\t\t}\n\n\t\tline := string(buf)\n\t\tendInd = strings.Index(line, \"endobj\")\n\t\tstreamInd = strings.Index(line, \"stream\")\n\n\t\tif endInd > 0 && (streamInd < 0 || streamInd > endInd) {\n\t\t\t// No stream marker in buf detected.\n\t\t\tbreak\n\t\t}\n\n\t\t// For very rare cases where \"stream\" also occurs within obj dict\n\t\t// we need to find the last \"stream\" marker before a possible end marker.\n\t\tfor streamInd > 0 && !keywordStreamRightAfterEndOfDict(line, streamInd) {\n\t\t\tlastStreamMarker(&streamInd, endInd, line)\n\t\t}\n\n\t\tlog.Read.Printf(\"buffer: endInd=%d streamInd=%d\\n\", endInd, streamInd)\n\n\t\tif streamInd > 0 {\n\n\t\t\t// streamOffset ... the offset where the actual stream data begins.\n\t\t\t// is right after the eol after \"stream\".\n\n\t\t\tslack := 10 // for optional whitespace + eol (max 2 chars)\n\t\t\tneed := streamInd + len(\"stream\") + slack\n\n\t\t\tif len(line) < need {\n\n\t\t\t\t// to prevent buffer overflow.\n\t\t\t\tbuf, err = growBufBy(buf, need-len(line), rd)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn nil, 0, 0, 0, err\n\t\t\t\t}\n\n\t\t\t\tline = string(buf)\n\t\t\t}\n\n\t\t\tstreamOffset = int64(nextStreamOffset(line, streamInd))\n\t\t}\n\t}\n\n\t//log.Read.Printf(\"buffer: end, returned bufsize=%d streamOffset=%d\\n\", len(buf), streamOffset)\n\n\treturn buf, endInd, streamInd, streamOffset, nil\n}", "func (g *GLTF) loadBuffer(bufIdx int) ([]byte, error) {\n\n\t// Check if provided buffer index is valid\n\tif bufIdx < 0 || bufIdx >= len(g.Buffers) {\n\t\treturn nil, fmt.Errorf(\"invalid buffer index\")\n\t}\n\tbufData := &g.Buffers[bufIdx]\n\t// Return cached if available\n\tif bufData.cache != nil {\n\t\tlog.Debug(\"Fetching Buffer %d (cached)\", bufIdx)\n\t\treturn bufData.cache, nil\n\t}\n\tlog.Debug(\"Loading Buffer %d\", bufIdx)\n\n\t// If buffer URI use the chunk data field\n\tif bufData.Uri == \"\" {\n\t\treturn g.data, nil\n\t}\n\n\t// Checks if buffer URI is a data URI\n\tvar data []byte\n\tvar err error\n\tif isDataURL(bufData.Uri) {\n\t\tdata, err = loadDataURL(bufData.Uri)\n\t} else {\n\t\t// Try to load buffer from file\n\t\tdata, err = g.loadFileBytes(bufData.Uri)\n\t}\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Checks data length\n\tif len(data) != bufData.ByteLength {\n\t\treturn nil, fmt.Errorf(\"buffer:%d read data length:%d expected:%d\", bufIdx, len(data), bufData.ByteLength)\n\t}\n\t// Cache buffer data\n\tg.Buffers[bufIdx].cache = data\n\tlog.Debug(\"cache data:%v\", len(bufData.cache))\n\treturn data, nil\n}", "func (b *Buffer) Data() []byte { return b.data }", "func (pkt *NrpePacket) ExtractCmdAndArgsFromBuffer() (string, []string, error) {\n\tvar err error\n\tvar buffer []string\n\tvar cmd string\n\tvar args []string = []string{}\n\n\t// splitting informed buffer based on exclamation marks, defualt for NRPE\n\tbuffer = strings.Split(pkt.Buffer, \"!\")\n\n\t// command will always be the first option, a nagios check name\n\tcmd = fmt.Sprintf(\"%s\", buffer[0])\n\n\t// checking how many items we have, at least one to compose a command\n\tswitch len(buffer) {\n\tcase 0:\n\t\terr = errors.New(\"Can't extract command from buffer:\" + pkt.Buffer)\n\t\treturn \"\", nil, err\n\tcase 1:\n\t\t// command is already been extracted\n\tdefault:\n\t\tcmd = fmt.Sprintf(\"%s\", buffer[0])\n\t\targs = buffer[1:]\n\t}\n\n\treturn cmd, args, nil\n}", "func newBuffer(b []byte) *buffer {\n\treturn &buffer{proto.NewBuffer(b), 0}\n}", "func (s *scanner) buffer() []byte {\n\tbuf := s.bytesPrealloc[:0]\n\ts.bytesPrealloc = nil\n\treturn buf\n}", "func (*CCParameters) Descriptor() ([]byte, []int) {\n\treturn file_fpc_fpc_proto_rawDescGZIP(), []int{0}\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetNamedBufferParameteriv, 3, uintptr(buffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func (*Parameters) Descriptor() ([]byte, []int) {\n\treturn file_proto_google_fhir_proto_r5_core_resources_parameters_proto_rawDescGZIP(), []int{0}\n}", "func GetBufferParameteri(target, pname Enum) int {\n\tvar params int32\n\tgl.GetBufferParameteriv(uint32(target), uint32(pname), &params)\n\treturn int(params)\n}", "func newBuffer(bits uint32) buffer {\n\tvar b buffer\n\tb.data = make([]unsafe.Pointer, 1<<bits)\n\tb.free = 1 << bits\n\tb.mask = 1<<bits - 1\n\tb.bits = bits\n\treturn b\n}", "func ReadBodyInfoByBuffer(body io.Reader) string {\n\t// 使用缓冲\n\tvar buffer bytes.Buffer\n\tfor {\n\t\ttemplate := make([]byte, 1024)\n\t\tn, err := body.Read(template)\n\t\tif err != nil {\n\t\t\tif err == io.EOF {\n\t\t\t\tif n > 0 {\n\t\t\t\t\tbuffer.Write(template[:n])\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t} else {\n\t\t\t\treturn \"\"\n\t\t\t}\n\t\t}\n\t\tif n > 0 {\n\t\t\tbuffer.Write(template[:n])\n\t\t}\n\t}\n\treturn buffer.String()\n}", "func newBuffer(buf []byte) *Buffer {\n\treturn &Buffer{data: buf}\n}", "func newBuffer(br *Reader) (*buffer, error) {\n\tn, err := io.ReadFull(br.r, br.buf[:4])\n\t// br.r.Chunk() is only valid after the call the Read(), so this\n\t// must come after the first read in the record.\n\ttx := br.r.Begin()\n\tdefer func() {\n\t\tbr.lastChunk = tx.End()\n\t}()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif n != 4 {\n\t\treturn nil, errors.New(\"bam: invalid record: short block size\")\n\t}\n\tb := &buffer{data: br.buf[:4]}\n\tsize := int(b.readInt32())\n\tif size == 0 {\n\t\treturn nil, io.EOF\n\t}\n\tif size < 0 {\n\t\treturn nil, errors.New(\"bam: invalid record: invalid block size\")\n\t}\n\tif size > cap(br.buf) {\n\t\tb.off, b.data = 0, make([]byte, size)\n\t} else {\n\t\tb.off, b.data = 0, br.buf[:size]\n\t\tb.shared = true\n\t}\n\tn, err = io.ReadFull(br.r, b.data)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif n != size {\n\t\treturn nil, errors.New(\"bam: truncated record\")\n\t}\n\treturn b, nil\n}", "func (*Params) Descriptor() ([]byte, []int) {\n\treturn file_cosmos_bank_v1beta1_bank_proto_rawDescGZIP(), []int{0}\n}", "func (h *TelemetryHandler) GetBuffersInfo(ctx context.Context) (*vppcalls.BuffersInfo, error) {\n\tdata, err := h.vpe.RunCli(context.TODO(), \"show buffers\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar items []vppcalls.BuffersItem\n\n\tfor i, line := range strings.Split(string(data), \"\\n\") {\n\t\t// Skip empty lines\n\t\tif strings.TrimSpace(line) == \"\" {\n\t\t\tcontinue\n\t\t}\n\t\t// Check first line\n\t\tif i == 0 {\n\t\t\tfields := strings.Fields(line)\n\t\t\t// Verify header\n\t\t\tif len(fields) != 11 || fields[0] != \"Pool\" {\n\t\t\t\treturn nil, fmt.Errorf(\"invalid header for `show buffers` received: %q\", line)\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\n\t\t// Parse lines using regexp\n\t\tmatches := buffersRe.FindStringSubmatch(line)\n\t\tif len(matches)-1 != 9 {\n\t\t\treturn nil, fmt.Errorf(\"parsing failed (%d matches) for `show buffers` line: %q\", len(matches), line)\n\t\t}\n\t\tfields := matches[1:]\n\n\t\titems = append(items, vppcalls.BuffersItem{\n\t\t\t// ThreadID: uint(strToUint64(fields[0])),\n\t\t\tName: fields[0],\n\t\t\tIndex: uint(strToUint64(fields[1])),\n\t\t\tSize: strToUint64(fields[3]),\n\t\t\tAlloc: strToUint64(fields[7]),\n\t\t\tFree: strToUint64(fields[5]),\n\t\t\t// NumAlloc: strToUint64(fields[6]),\n\t\t\t// NumFree: strToUint64(fields[7]),\n\t\t})\n\t}\n\n\tinfo := &vppcalls.BuffersInfo{\n\t\tItems: items,\n\t}\n\n\treturn info, nil\n}", "func (*ParameterInformation_Offset) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{121, 0}\n}", "func (def *Definition) ParseBuffer(helper *BufferHelper, option *BufferOption, prefix string) (res TraverseResult, err error) {\n\tif def.Values == nil {\n\t\tif Central.IsDebugLevel() {\n\t\t\tCentral.Log.Debugf(\"Parse buffer types...\")\n\t\t}\n\t\tdef.Values, err = parseBufferTypes(helper, option, def.activeFieldTree, 0)\n\t} else {\n\t\tif Central.IsDebugLevel() {\n\t\t\tdef.DumpTypes(true, true, \"Parse buffer type tree\")\n\t\t\tdef.DumpValues(true)\n\t\t\tCentral.Log.Debugf(\"Parse buffer values... avail.=%v\", (def.Values != nil))\n\t\t}\n\t\tx := parserBufferTr{helper: helper, option: option, prefix: prefix, definition: def}\n\t\tt := TraverserValuesMethods{EnterFunction: parseBufferValues}\n\t\tres, err = def.TraverseValues(t, &x)\n\t\tif err != nil {\n\t\t\tCentral.Log.Debugf(\"Error parsing buffer values... %v\", err)\n\t\t\treturn\n\t\t}\n\t\tif Central.IsDebugLevel() {\n\t\t\tCentral.Log.Debugf(\"End parse buffer values... %p avail.=%v\", def, (def.Values != nil))\n\t\t}\n\t}\n\n\treturn\n}", "func (pk PacketBufferPtr) ToBuffer() buffer.Buffer {\n\tb := pk.buf.Clone()\n\tb.TrimFront(int64(pk.headerOffset()))\n\treturn b\n}", "func NewBuffer() *Buffer { return globalPool.NewBuffer() }", "func (*ParameterInformation) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{121}\n}", "func new_buffer(conn *websocket.Conn, ctrl chan struct{}, txqueuelen int) *Buffer {\n\tbuf := Buffer{conn: conn}\n\tbuf.pending = make(chan []byte, txqueuelen)\n\tbuf.ctrl = ctrl\n\tbuf.cache = make([]byte, packet.PACKET_LIMIT+2)\n\treturn &buf\n}", "func buff(bs ...byte) *bytes.Reader {\n\treturn bytes.NewReader(bs)\n}", "func (body *luaBody) buffer() *bytes.Buffer {\n\tvar b bytes.Buffer\n\tif body.Reader == nil {\n\t\treturn &b\n\t}\n\n\tb.ReadFrom(body.Reader)\n\t_, err := body.Reader.(io.Seeker).Seek(0, 0)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\treturn &b\n}", "func newBuffer(r io.Reader, offset int64) *buffer {\n\treturn &buffer{\n\t\tr: r,\n\t\toffset: offset,\n\t\tbuf: make([]byte, 0, 4096),\n\t\tallowObjptr: true,\n\t\tallowStream: true,\n\t}\n}", "func GetBufferParameteriv(target uint32, pname uint32, params *int32) {\n C.glowGetBufferParameteriv(gpGetBufferParameteriv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func NewBuffer() *Buffer {\n\treturn &Buffer{Line: []byte{}, Val: make([]byte, 0, 32)}\n}", "func (s *Scanner) Buffer(buf []byte, max int)", "func NewBuffer() Buffer {\n\treturn Buffer{\n\t\tCellMap: make(map[image.Point]Cell),\n\t\tArea: image.Rectangle{}}\n}", "func (w *Writer) Buffer() audio.Buffer {\n\treturn w.buf.Clone()\n}", "func GetBufferParameteriv(target uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetBufferParameteriv, 3, uintptr(target), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func (v *TextView) BufferToWindowCoords(win TextWindowType, buffer_x, buffer_y int) (window_x, window_y int) {\n\tvar wx, wy C.gint\n\tC.gtk_text_view_buffer_to_window_coords(v.native(), C.GtkTextWindowType(win), C.gint(buffer_x), C.gint(buffer_y), &wx, &wy)\n\treturn int(wx), int(wy)\n}", "func createBuffer() *bytes.Buffer {\n\tbuf := bytes.Buffer{}\n\treturn &buf\n}", "func (p Plane) GetBuffers() ObjectBuffers {\n\treturn p.buffers\n}", "func (b *Buffer) bytes() []byte {\n\treturn b.data\n}", "func newBuffer() *buffer {\n\treturn &buffer{\n\t\tdata: make([]byte, 0),\n\t\tlen: 0,\n\t\tpkg: nil,\n\t\tconn: nil,\n\t\tpkgCh: make(chan *pkg),\n\t\tevCh: make(chan *pkg),\n\t\terrCh: make(chan error, 1),\n\t}\n}", "func NewBufferBuilder() *BufferBuilder {\n\treturn &BufferBuilder{}\n}", "func appendBuffer(elements []interface{}, buf *bytes.Buffer) ([]interface{}, *bytes.Buffer) {\n\tif buf.Len() > 0 {\n\t\ts, _ := NewStringElement(buf.String())\n\t\treturn append(elements, s), bytes.NewBuffer(nil)\n\t}\n\treturn elements, buf\n}", "func (*ClientMethod_Parameter) Descriptor() ([]byte, []int) {\n\treturn file_metadata_metadata_proto_rawDescGZIP(), []int{2, 0}\n}", "func (*Parameters_Parameter) Descriptor() ([]byte, []int) {\n\treturn file_proto_google_fhir_proto_r5_core_resources_parameters_proto_rawDescGZIP(), []int{0, 0}\n}", "func ParseParameter(cursor *bufio.Reader) []string {\n\tvar buffer []string\n\tbuffer = make([]string, 1)\n\tvar paramCount = 0\n\tfor {\n\t\tnextc, _, err := cursor.ReadRune()\n\t\t//fmt.Println(nextc)\n\t\tif strings.ContainsRune(\" \", nextc) {\n\t\t\tif strings.ContainsRune(\":\", rune(buffer[paramCount][0])) {\n\t\t\t\t// parameter starting with : can have spaces in it\n\t\t\t\tbuffer[paramCount] += string(nextc)\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\tparamCount++\n\t\t\tvar tmp = make([]string, paramCount+1)\n\t\t\tcopy(tmp, buffer)\n\t\t\tbuffer = tmp\n\t\t\tcontinue\n\t\t}\n\t\tif err != nil {\n\t\t\tif err == io.EOF {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tlog.Fatal(\"Error parsing command \", err)\n\t\t}\n\t\t//fmt.Println(paramCount)\n\t\tbuffer[paramCount] += string(nextc)\n\t}\n\t//for i, j := range buffer {\n\t//\tfmt.Printf(\"Parameter %d : %s\\n\", i+1, j)\n\t//}\n\treturn buffer\n}", "func (b *Buffer) Offset() int { return b.offset }", "func NewProxyWithBuffer(buffer *fbe.Buffer) *Proxy {\n proxy := &Proxy{\n fbe.NewReceiver(buffer, false),\n proto.NewProxyWithBuffer(buffer),\n NewStructSimpleModel(buffer),\n NewStructOptionalModel(buffer),\n NewStructNestedModel(buffer),\n NewStructBytesModel(buffer),\n NewStructArrayModel(buffer),\n NewStructVectorModel(buffer),\n NewStructListModel(buffer),\n NewStructSetModel(buffer),\n NewStructMapModel(buffer),\n NewStructHashModel(buffer),\n NewStructHashExModel(buffer),\n NewStructEmptyModel(buffer),\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n }\n proxy.SetupHandlerOnReceive(proxy)\n proxy.SetupHandlerOnProxyStructSimpleFunc(func(model *StructSimpleModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructOptionalFunc(func(model *StructOptionalModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructNestedFunc(func(model *StructNestedModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructBytesFunc(func(model *StructBytesModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructArrayFunc(func(model *StructArrayModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructVectorFunc(func(model *StructVectorModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructListFunc(func(model *StructListModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructSetFunc(func(model *StructSetModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructMapFunc(func(model *StructMapModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructHashFunc(func(model *StructHashModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructHashExFunc(func(model *StructHashExModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructEmptyFunc(func(model *StructEmptyModel, fbeType int, buffer []byte) {})\n return proxy\n}", "func (b *BaseImpl) BufInfo() (infos BufInfo) {\n\n\tinfos[0].Len = len(b.bytes)\n\tinfos[0].Cap = cap(b.bytes)\n\n\tinfos[1].Len = infos[0].Len\n\tinfos[1].Cap = infos[0].Cap\n\tfor _, diff := range b.Diffs {\n\t\tif len(diff.bytes)+diff.Offset > infos[1].Len {\n\t\t\tinfos[1].Len = diff.Offset + len(diff.bytes)\n\t\t}\n\t\tif cap(diff.bytes)+diff.Offset > infos[1].Cap {\n\t\t\tinfos[1].Cap = diff.Offset + cap(diff.bytes)\n\t\t}\n\t}\n\treturn\n}", "func (*BlockParams) Descriptor() ([]byte, []int) {\n\treturn file_tm_replay_proto_rawDescGZIP(), []int{11}\n}", "func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) {\n\tsyscall.Syscall(gpGetNamedBufferPointerv, 3, uintptr(buffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func (s *scanner) returnBuffer(buf []byte) {\n\tif len(buf) < cap(buf) {\n\t\ts.bytesPrealloc = buf[len(buf):]\n\t}\n}", "func (rr *responseRecorder) Buffer() *bytes.Buffer {\n\treturn rr.buf\n}", "func (*PDirectBuffer) Descriptor() ([]byte, []int) {\n\treturn file_v1_Stat_proto_rawDescGZIP(), []int{19}\n}", "func GetCommandArgs(ctx context.Context,\n\tcr *CommandReference,\n\ts *State) interface{} {\n\tswitch cr.Type {\n\tcase CommandType_cmd_vkCmdBeginRenderPass:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBeginRenderPass.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdEndRenderPass:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdEndRenderPass.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdNextSubpass:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdNextSubpass.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBindPipeline:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBindPipeline.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBindDescriptorSets:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBindDescriptorSets.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBindVertexBuffers:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBindVertexBuffers.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBindIndexBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBindIndexBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdPipelineBarrier:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdPipelineBarrier.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdWaitEvents:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdWaitEvents.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBeginQuery:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBeginQuery.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBlitImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBlitImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdClearAttachments:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdClearAttachments.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdClearColorImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdClearColorImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdClearDepthStencilImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdClearDepthStencilImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyBufferToImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyBufferToImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyImageToBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyImageToBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyQueryPoolResults:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyQueryPoolResults.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDispatch:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDispatch.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDispatchIndirect:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDispatchIndirect.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDraw:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDraw.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDrawIndexed:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDrawIndexed.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDrawIndexedIndirect:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDrawIndexedIndirect.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDrawIndirect:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDrawIndirect.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdEndQuery:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdEndQuery.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdExecuteCommands:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdExecuteCommands.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdFillBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdFillBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdPushConstants:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdPushConstants.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdResetQueryPool:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdResetQueryPool.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdResolveImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdResolveImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetBlendConstants:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetBlendConstants.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetDepthBias:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetDepthBias.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetDepthBounds:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetDepthBounds.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetEvent:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetEvent.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdResetEvent:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdResetEvent.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetLineWidth:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetLineWidth.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetScissor:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetScissor.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetStencilCompareMask:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetStencilCompareMask.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetStencilReference:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetStencilReference.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetStencilWriteMask:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetStencilWriteMask.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetViewport:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetViewport.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdUpdateBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdUpdateBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdWriteTimestamp:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdWriteTimestamp.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDebugMarkerBeginEXT:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDebugMarkerBeginEXT.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDebugMarkerEndEXT:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDebugMarkerEndEXT.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDebugMarkerInsertEXT:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDebugMarkerInsertEXT.Get(cr.MapIndex)\n\tdefault:\n\t\tx := fmt.Sprintf(\"Should not reach here: %T\", cr)\n\t\tpanic(x)\n\t}\n}", "func (*ResponseParameters) Descriptor() ([]byte, []int) {\n\treturn file_grpc_test_proto_rawDescGZIP(), []int{6}\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tC.glowGetNamedBufferParameteriv(gpGetNamedBufferParameteriv, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tC.glowGetNamedBufferParameteriv(gpGetNamedBufferParameteriv, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (c *connAttrs) BufferSize() int { c.mu.RLock(); defer c.mu.RUnlock(); return c._bufferSize }", "func (q Query) MakeBuffer() []interface{} {\n\tstrings := make([]sql.NullString, len(q.columns))\n\tresult := make([]interface{}, len(q.columns))\n\n\tfor i, v := range strings {\n\t\tresult[i] = &v\n\t}\n\n\treturn result\n}", "func (*Parameter) Descriptor() ([]byte, []int) {\n\treturn file_service_proto_rawDescGZIP(), []int{1}\n}", "func (*ParamType) Descriptor() ([]byte, []int) {\n\treturn file_keepsake_proto_rawDescGZIP(), []int{22}\n}", "func (b *Builder) Buffer(count int) value.Pointer {\n\tpointerSize := b.memoryLayout.GetPointer().GetSize()\n\tdynamic := false\n\tsize := 0\n\n\t// Examine the stack to see where these values came from\n\tfor i := 0; i < count; i++ {\n\t\te := b.stack[len(b.stack)-i-1]\n\t\top := b.instructions[e.idx]\n\t\tty := e.ty\n\t\tif _, isPush := op.(asm.Push); !isPush {\n\t\t\t// Values that have made their way on to the stack from non-constant\n\t\t\t// sources cannot be put in the constant buffer.\n\t\t\tdynamic = true\n\t\t}\n\t\tswitch ty {\n\t\tcase protocol.Type_ConstantPointer, protocol.Type_VolatilePointer:\n\t\t\t// Pointers cannot be put into the constant buffer as they are remapped\n\t\t\t// by the VM\n\t\t\tdynamic = true\n\t\t}\n\n\t\tsize += ty.Size(pointerSize)\n\t}\n\n\tif dynamic {\n\t\t// At least one of the values was not from a Push()\n\t\t// Build the buffer in temporary memory at replay time.\n\t\tbuf := b.AllocateTemporaryMemory(uint64(size))\n\t\toffset := size\n\t\tfor i := 0; i < count; i++ {\n\t\t\te := b.stack[len(b.stack)-1]\n\t\t\toffset -= e.ty.Size(pointerSize)\n\t\t\tb.Store(buf.Offset(uint64(offset)))\n\t\t}\n\t\treturn buf\n\t}\n\t// All the values are constant.\n\t// Move the pushed values into a constant memory buffer.\n\tvalues := make([]value.Value, count)\n\tfor i := 0; i < count; i++ {\n\t\te := b.stack[len(b.stack)-1]\n\t\tvalues[count-i-1] = b.instructions[e.idx].(asm.Push).Value\n\t\tb.removeInstruction(e.idx)\n\t\tb.popStack()\n\t}\n\treturn b.constantMemory.writeValues(values...)\n}", "func getBuffer() *bytes.Buffer {\n\treturn bufferPool.Get().(*bytes.Buffer)\n}", "func Buffer() string {\n\treturn C.GoString(C.rl_line_buffer)\n}", "func (pb *PageBuffer) Values() interface{} {\n offset := pb.pageOffset(pb.page_no)\n return pb.buffer.Slice(offset, offset + pb.idx).Interface()\n}", "func (m *Sink) Buffer() signal.Float64 {\n\treturn m.buffer\n}", "func ReadBuffer(mode uint32) {\n C.glowReadBuffer(gpReadBuffer, (C.GLenum)(mode))\n}", "func (file BaseFile) params() (map[string]string, error) {\n\tparams := make(map[string]string)\n\n\tif file.ChannelUsername != \"\" {\n\t\tparams[\"chat_id\"] = file.ChannelUsername\n\t} else {\n\t\tparams[\"chat_id\"] = strconv.FormatInt(file.ChatID, 10)\n\t}\n\n\tif file.ReplyToMessageID != 0 {\n\t\tparams[\"reply_to_message_id\"] = strconv.Itoa(file.ReplyToMessageID)\n\t}\n\n\tif file.ReplyMarkup != nil {\n\t\tdata, err := json.Marshal(file.ReplyMarkup)\n\t\tif err != nil {\n\t\t\treturn params, err\n\t\t}\n\n\t\tparams[\"reply_markup\"] = string(data)\n\t}\n\n\tif file.MimeType != \"\" {\n\t\tparams[\"mime_type\"] = file.MimeType\n\t}\n\n\tif file.FileSize > 0 {\n\t\tparams[\"file_size\"] = strconv.Itoa(file.FileSize)\n\t}\n\n\tparams[\"disable_notification\"] = strconv.FormatBool(file.DisableNotification)\n\n\treturn params, nil\n}", "func getAllocFreeParams(allocLen int) []string {\n\tsize := uint32(allocLen)\n\tstart := atomic.AddUint32(&startParamList, size)\n\tif (start + 10) >= uint32(len(paramsPosDummy)) {\n\t\tatomic.StoreUint32(&startParamList, 0)\n\t\treturn getAllocFreeParams(allocLen)\n\t}\n\tstart -= size\n\tallocLen += int(start)\n\tparams := paramsDummy[start:allocLen:allocLen]\n\treturn params\n}", "func (tr *CassandraKeySpace) GetParameters() (map[string]interface{}, error) {\n\tp, err := json.TFParser.Marshal(tr.Spec.ForProvider)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbase := map[string]interface{}{}\n\treturn base, json.TFParser.Unmarshal(p, &base)\n}", "func (r *Rx) Bytes() []byte {\n\treturn r.p.buffer\n}", "func NewBuffer(o *Options) (*Buffer, error) {\n\tif o == nil {\n\t\to = &Options{}\n\t}\n\tret := &Buffer{opts: *o} // copy o before normalizing it\n\n\tif err := ret.opts.normalize(); err != nil {\n\t\treturn nil, errors.Annotate(err, \"normalizing buffer.Options\").Err()\n\t}\n\n\tret.unleased.onlyID = o.FIFO\n\tret.batchItemsGuess = newMovingAverage(10, ret.opts.batchItemsGuess())\n\tret.liveLeases = map[*Batch]struct{}{}\n\tret.unAckedLeases = map[*Batch]struct{}{}\n\treturn ret, nil\n}", "func NewBuffer() *Buffer {\n\treturn &Buffer{B: &strings.Builder{}}\n}", "func (*PrepareArgs) Descriptor() ([]byte, []int) {\n\treturn file_lbbft_proto_rawDescGZIP(), []int{8}\n}", "func NewProxyWithBuffer(buffer *fbe.Buffer) *Proxy {\n proxy := &Proxy{\n fbe.NewReceiver(buffer, false),\n NewOrderModel(buffer),\n NewBalanceModel(buffer),\n NewAccountModel(buffer),\n nil,\n nil,\n nil,\n }\n proxy.SetupHandlerOnReceive(proxy)\n proxy.SetupHandlerOnProxyOrderFunc(func(model *OrderModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyBalanceFunc(func(model *BalanceModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyAccountFunc(func(model *AccountModel, fbeType int, buffer []byte) {})\n return proxy\n}", "func (b *Buf) Bytes() []byte { return b.b }", "func (m *MsgMemoryBuffer) GetAll() []interface{} {\n\tvar data []interface{}\n\tm.buff.Do(func(x interface{}) {\n\t\tif x != nil {\n\t\t\tdata = append(data, x)\n\t\t}\n\t})\n\treturn data\n}", "func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetNamedBufferSubData, 4, uintptr(buffer), uintptr(offset), uintptr(size), uintptr(data), 0, 0)\n}", "func GetBufferPointerv(target uint32, pname uint32, params *unsafe.Pointer) {\n\tsyscall.Syscall(gpGetBufferPointerv, 3, uintptr(target), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}" ]
[ "0.59277564", "0.57830817", "0.5781071", "0.57732254", "0.57248014", "0.5713533", "0.5704978", "0.5680736", "0.5673289", "0.564021", "0.5635625", "0.562202", "0.55879676", "0.55832255", "0.5570756", "0.5514081", "0.55023456", "0.54961616", "0.5447834", "0.54395765", "0.54268664", "0.54142207", "0.53650755", "0.5342737", "0.53299636", "0.53184056", "0.53145415", "0.5305379", "0.53041536", "0.5301557", "0.52996135", "0.5297414", "0.52961594", "0.5286182", "0.52684975", "0.52663445", "0.5257315", "0.5231435", "0.52277887", "0.5213996", "0.5212929", "0.5195002", "0.5172452", "0.5170476", "0.516427", "0.5161455", "0.516017", "0.5147554", "0.51244646", "0.5118771", "0.5099665", "0.50987756", "0.5094207", "0.5091877", "0.5090826", "0.508951", "0.5083891", "0.50829864", "0.5078764", "0.507643", "0.5070384", "0.5069355", "0.5053648", "0.5043483", "0.5036995", "0.50210375", "0.5019968", "0.5010406", "0.5003046", "0.49990752", "0.49909595", "0.4990359", "0.4989846", "0.49896365", "0.49873343", "0.4983508", "0.49744824", "0.49676207", "0.49676207", "0.4966864", "0.49658152", "0.49610984", "0.49598503", "0.4950361", "0.4946738", "0.49446583", "0.49391288", "0.49353665", "0.49340847", "0.49321964", "0.4931129", "0.49304917", "0.49267966", "0.4922583", "0.49139374", "0.49070895", "0.490462", "0.49033844", "0.49029076", "0.48949188", "0.48937932" ]
0.0
-1
return the pointer to a mapped buffer object's data store
func GetBufferPointerv(target uint32, pname uint32, params *unsafe.Pointer) { C.glowGetBufferPointerv(gpGetBufferPointerv, (C.GLenum)(target), (C.GLenum)(pname), params) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Store) DataPointer() *Dict {\n\treturn s.data\n}", "func (p *movingAverageProcessor) getBufferData(index int, namespace string) interface{} {\n\n\treturn p.movingAverageMap[namespace].movingAverageBuf[index]\n}", "func (this *Data) Ptr() uintptr {\n\treturn this.buf\n}", "func (mp *Mempool) Ptr() unsafe.Pointer {\n\treturn unsafe.Pointer(mp)\n}", "func getWasmMemoryBufferPointer() *uint8 {\n\treturn &buffer[0]\n}", "func (image *Image2D) GetDataPointer() unsafe.Pointer {\n\treturn gl.Ptr(image.data)\n}", "func (gen *DataGen) Ptr() unsafe.Pointer {\n\treturn unsafe.Pointer(gen)\n}", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall(gpMapBuffer, 2, uintptr(target), uintptr(access), 0)\n\treturn (unsafe.Pointer)(ret)\n}", "func (_ BufferPtrPool1M) Get() *[]byte {\n\treturn GetBytesSlicePtr1M()\n}", "func (_ BufferPtrPool2M) Get() *[]byte {\n\treturn GetBytesSlicePtr2M()\n}", "func (t *Dense) Pointer() unsafe.Pointer {\n\treturn t.data\n}", "func (p Point) Buffer() *Buffer {\n\treturn p.buffer\n}", "func (s *MemStore) Get(key interface{}) interface{} {\n\ts.lock.RLock()\n\tdefer s.lock.RUnlock()\n\n\treturn s.data[key]\n}", "func (pk PacketBufferPtr) Data() PacketData {\n\treturn PacketData{pk: pk}\n}", "func (g *GLTF) loadBuffer(bufIdx int) ([]byte, error) {\n\n\t// Check if provided buffer index is valid\n\tif bufIdx < 0 || bufIdx >= len(g.Buffers) {\n\t\treturn nil, fmt.Errorf(\"invalid buffer index\")\n\t}\n\tbufData := &g.Buffers[bufIdx]\n\t// Return cached if available\n\tif bufData.cache != nil {\n\t\tlog.Debug(\"Fetching Buffer %d (cached)\", bufIdx)\n\t\treturn bufData.cache, nil\n\t}\n\tlog.Debug(\"Loading Buffer %d\", bufIdx)\n\n\t// If buffer URI use the chunk data field\n\tif bufData.Uri == \"\" {\n\t\treturn g.data, nil\n\t}\n\n\t// Checks if buffer URI is a data URI\n\tvar data []byte\n\tvar err error\n\tif isDataURL(bufData.Uri) {\n\t\tdata, err = loadDataURL(bufData.Uri)\n\t} else {\n\t\t// Try to load buffer from file\n\t\tdata, err = g.loadFileBytes(bufData.Uri)\n\t}\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Checks data length\n\tif len(data) != bufData.ByteLength {\n\t\treturn nil, fmt.Errorf(\"buffer:%d read data length:%d expected:%d\", bufIdx, len(data), bufData.ByteLength)\n\t}\n\t// Cache buffer data\n\tg.Buffers[bufIdx].cache = data\n\tlog.Debug(\"cache data:%v\", len(bufData.cache))\n\treturn data, nil\n}", "func (_ BufferPtrPool1K) Get() *[]byte {\n\treturn GetBytesSlicePtr1K()\n}", "func (_ BufferPtrPool4M) Get() *[]byte {\n\treturn GetBytesSlicePtr4M()\n}", "func (c *AdapterMemory) Data(ctx context.Context) (map[interface{}]interface{}, error) {\n\treturn c.data.Data()\n}", "func (_ BufferPtrPool2K) Get() *[]byte {\n\treturn GetBytesSlicePtr2K()\n}", "func (s *slice) Pointer() cu.DevicePtr { return s.ptr_ }", "func (_ BufferPtrPool32K) Get() *[]byte {\n\treturn GetBytesSlicePtr32K()\n}", "func (_ BufferPtrPool64K) Get() *[]byte {\n\treturn GetBytesSlicePtr64K()\n}", "func (k *Index) GetKeyPtr() unsafe.Pointer { return unsafe.Pointer(k) }", "func (b *buffer) read(loc Location) unsafe.Pointer {\n\treturn atomic.LoadPointer(b.index(loc.index()))\n}", "func BufferStorage(target uint32, size int, data unsafe.Pointer, flags uint32) {\n\tsyscall.Syscall6(gpBufferStorage, 4, uintptr(target), uintptr(size), uintptr(data), uintptr(flags), 0, 0)\n}", "func (mmap *File) GetMemoryPtr() unsafe.Pointer {\n\treturn mmap.mmap\n}", "func (m *Mmap) GetPointer() int64 {\n\treturn m.FilePointer\n}", "func BufferStorage(target uint32, size int, data unsafe.Pointer, flags uint32) {\n C.glowBufferStorage(gpBufferStorage, (C.GLenum)(target), (C.GLsizeiptr)(size), data, (C.GLbitfield)(flags))\n}", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n ret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access))\n return (unsafe.Pointer)(ret)\n}", "func (_ BufferPtrPool4K) Get() *[]byte {\n\treturn GetBytesSlicePtr4K()\n}", "func (r *SnpDerivedKeyRespABI) Pointer() unsafe.Pointer { return unsafe.Pointer(r) }", "func (mc *MemoryStorage) Get(key string) interface{} {\n\tmc.RLock()\n\n\t// Get in bucket\n\titem, inStack := mc.bucket[key]\n\tif !inStack {\n\t\tmc.RUnlock()\n\n\t\treturn nil\n\t}\n\tmc.RUnlock()\n\n\treturn item.object\n}", "func (native *OpenGL) Ptr(data interface{}) unsafe.Pointer {\n\treturn gl.Ptr(data)\n}", "func (sp *Space) GetData() interface{} {\n\n\tif len(*sp) > 0 {\n\t\treturn (*sp)[0].GetData()\n\t}\n\treturn nil\n\n}", "func (w *Writer) Ptr(index int64)", "func (handle *Handle) Pointer() unsafe.Pointer {\n\treturn unsafe.Pointer(handle.x)\n}", "func (_ BufferPtrPool16M) Get() *[]byte {\n\treturn GetBytesSlicePtr16M()\n}", "func (r *SnpDerivedKeyReqABI) Pointer() unsafe.Pointer { return unsafe.Pointer(r) }", "func (s *LDBStore) get(addr Address) (chunk *chunk, err error) {\n\tif s.closed {\n\t\treturn nil, ErrDBClosed\n\t}\n\tproximity := s.po(addr)\n\tindex, found := s.tryAccessIdx(addr, proximity)\n\tif found {\n\t\tvar data []byte\n\t\tif s.getDataFunc != nil {\n\t\t\t// if getDataFunc is defined, use it to retrieve the chunk data\n\t\t\tlog.Trace(\"ldbstore.get retrieve with getDataFunc\", \"key\", addr)\n\t\t\tdata, err = s.getDataFunc(addr)\n\t\t\tif err != nil {\n\t\t\t\treturn\n\t\t\t}\n\t\t} else {\n\t\t\t// default DbStore functionality to retrieve chunk data\n\t\t\tdatakey := getDataKey(index.Idx, proximity)\n\t\t\tdata, err = s.db.Get(datakey)\n\t\t\tlog.Trace(\"ldbstore.get retrieve\", \"key\", addr, \"indexkey\", index.Idx, \"datakey\", fmt.Sprintf(\"%x\", datakey), \"proximity\", proximity)\n\t\t\tif err != nil {\n\t\t\t\tlog.Trace(\"ldbstore.get chunk found but could not be accessed\", \"key\", addr, \"err\", err)\n\t\t\t\ts.deleteNow(index, getIndexKey(addr), s.po(addr))\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\n\t\treturn decodeData(addr, data)\n\t} else {\n\t\terr = ErrChunkNotFound\n\t}\n\n\treturn\n}", "func (bp *bufferPool) getBuffer() *buffer {\n\tbp.lock.Lock()\n\tb := bp.freeList\n\tif b != nil {\n\t\tbp.freeList = b.next\n\t\tbp.freeBufNum--\n\t}\n\tbp.lock.Unlock()\n\n\tif b == nil {\n\t\tb = new(buffer)\n\t\tb.Grow(512)\n\t} else {\n\t\tb.next = nil\n\t\tb.Reset()\n\t}\n\treturn b\n}", "func use(p unsafe.Pointer)", "func Get() *Buffer {\n\treturn freeList.get()\n}", "func (self *GameObjectCreator) BitmapData4O(width int, height int, key string, addToCache bool) *BitmapData{\n return &BitmapData{self.Object.Call(\"bitmapData\", width, height, key, addToCache)}\n}", "func (_ BufferPtrPool16K) Get() *[]byte {\n\treturn GetBytesSlicePtr16K()\n}", "func (m *TeamworkActivePeripherals) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) {\n return m.backingStore\n}", "func getBuffer() *bytes.Buffer {\n\treturn bufferPool.Get().(*bytes.Buffer)\n}", "func (_ BufferPtrPool512K) Get() *[]byte {\n\treturn GetBytesSlicePtr512K()\n}", "func (c *memoryCache) Get(key string) interface{} {\n\treturn c.data[key]\n}", "func (jbobject *ShuffleShuffleBlockResolver) GetBlockData(a StorageShuffleBlockIdInterface) *NetworkBufferManagedBuffer {\n\tconv_a := javabind.NewGoToJavaCallable()\n\tif err := conv_a.Convert(a); err != nil {\n\t\tpanic(err)\n\t}\n\tjret, err := jbobject.CallMethod(javabind.GetEnv(), \"getBlockData\", \"org/apache/spark/network/buffer/ManagedBuffer\", conv_a.Value().Cast(\"org/apache/spark/storage/ShuffleBlockId\"))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tconv_a.CleanUp()\n\tretconv := javabind.NewJavaToGoCallable()\n\tdst := &javabind.Callable{}\n\tretconv.Dest(dst)\n\tif err := retconv.Convert(javabind.ObjectRef(jret)); err != nil {\n\t\tpanic(err)\n\t}\n\tretconv.CleanUp()\n\tunique_x := &NetworkBufferManagedBuffer{}\n\tunique_x.Callable = dst\n\treturn unique_x\n}", "func (m *RelatedContact) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) {\n return m.backingStore\n}", "func (_ BufferPtrPool8M) Get() *[]byte {\n\treturn GetBytesSlicePtr8M()\n}", "func StorePointer(addr *unsafe.Pointer, val unsafe.Pointer)", "func MapNamedBuffer(buffer uint32, access uint32) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall(gpMapNamedBuffer, 2, uintptr(buffer), uintptr(access), 0)\n\treturn (unsafe.Pointer)(ret)\n}", "func (v DataDestroyObject) Ptr() *DataDestroyObject {\n\treturn &v\n}", "func (self *TileSprite) CanvasBuffer() *PIXICanvasBuffer{\n return &PIXICanvasBuffer{self.Object.Get(\"canvasBuffer\")}\n}", "func (server *StorageServer) copyToMemory(data []byte) int32 {\n\n\t// allocate memory in wasm\n\tptr, err := server.funcs[\"alloc\"].Call(int32(len(data)))\n\tcheck(err)\n\n\t// casting pointer to int32\n\tptr32 := ptr.(int32)\n\n\t//fmt.Printf(\"This is the pointer %v\\n\", ptr32)\n\n\t// return raw memory backed by the WebAssembly memory as a byte slice\n\tbuf := server.memory.UnsafeData()\n\tfor i, v := range data {\n\t\tbuf[ptr32+int32(i)] = v\n\t}\n\t// return the pointer\n\treturn ptr32\n}", "func (_ BufferPtrPool8K) Get() *[]byte {\n\treturn GetBytesSlicePtr8K()\n}", "func (native *OpenGL) BufferData(target uint32, size int, data interface{}, usage uint32) {\n\tdataPtr, isPtr := data.(unsafe.Pointer)\n\tif isPtr {\n\t\tgl.BufferData(target, size, dataPtr, usage)\n\t} else {\n\t\tgl.BufferData(target, size, gl.Ptr(data), usage)\n\t}\n}", "func (self *GameObjectCreator) BitmapData() *BitmapData{\n return &BitmapData{self.Object.Call(\"bitmapData\")}\n}", "func (self *Graphics) Data() interface{}{\n return self.Object.Get(\"data\")\n}", "func (b *Buffer) Data() []byte { return b.data }", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n\tret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access))\n\treturn (unsafe.Pointer)(ret)\n}", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n\tret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access))\n\treturn (unsafe.Pointer)(ret)\n}", "func (self *TileSprite) Data() interface{}{\n return self.Object.Get(\"data\")\n}", "func (m *SharepointIds) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) {\n return m.backingStore\n}", "func NewMemoryStorage() *MemoryStorage {\n return &MemoryStorage{tickets: make(map[string]*types.Ticket)}\n}", "func GetBuffer() Buffer {\n\treturn pool.get()\n}", "func NewPtrBuffer(aSlice interface{}) *Buffer {\n aSliceValue := sliceValue(aSlice, true)\n return &Buffer{\n buffer: aSliceValue,\n handler: overwriteNilPtrHandler{\n creater: newCreaterFunc(nil, aSliceValue.Type())}}\n}", "func (p *Process) read(addr uintptr, ptr interface{}) error {\n\t// Reflection magic!\n\tv := reflect.ValueOf(ptr)\n\tdataAddr := getDataAddr(v)\n\tdataSize := getDataSize(v)\n\n\t// Open the file mapped process memory.\n\tmem, err := os.Open(fmt.Sprintf(\"/proc/%d/mem\", p.PID))\n\tdefer mem.Close()\n\tif err != nil {\n\t\treturn errors.New(fmt.Sprintf(\"Error opening /proc/%d/mem. Are you root?\", p.PID))\n\t}\n\n\t// Create a buffer and read data into it.\n\tdataBuf := make([]byte, dataSize)\n\tn, err := mem.ReadAt(dataBuf, int64(addr))\n\tif n != int(dataSize) {\n\t\treturn errors.New(fmt.Sprintf(\"Tried to read %d bytes, actually read %d bytes\\n\", dataSize, n))\n\t} else if err != nil {\n\t\treturn err\n\t}\n\n\t// Unsafely cast to []byte to copy data into.\n\tbuf := (*[]byte)(unsafe.Pointer(&reflect.SliceHeader{\n\t\tData: dataAddr,\n\t\tLen: int(dataSize),\n\t\tCap: int(dataSize),\n\t}))\n\tcopy(*buf, dataBuf)\n\treturn nil\n}", "func ReadPointerFromBuffer(buf []byte) (Pointer, error) {\n\tvar p Pointer\n\n\theadString := string(buf)\n\tif !strings.HasPrefix(headString, MetaFileIdentifier) {\n\t\treturn p, ErrMissingPrefix\n\t}\n\n\tsplitLines := strings.Split(headString, \"\\n\")\n\tif len(splitLines) < 3 {\n\t\treturn p, ErrInvalidStructure\n\t}\n\n\toid := strings.TrimPrefix(splitLines[1], MetaFileOidPrefix)\n\tif len(oid) != 64 || !oidPattern.MatchString(oid) {\n\t\treturn p, ErrInvalidOIDFormat\n\t}\n\tsize, err := strconv.ParseInt(strings.TrimPrefix(splitLines[2], \"size \"), 10, 64)\n\tif err != nil {\n\t\treturn p, err\n\t}\n\n\tp.Oid = oid\n\tp.Size = size\n\n\treturn p, nil\n}", "func (b *Buffer) Handle() cl.Mem {\n\treturn b.bufHandle\n}", "func (p *bufferPool) Get() *bytes.Buffer {\n\tbuf := p.underlying.Get().(*bytes.Buffer)\n\tbuf.Reset()\n\treturn buf\n}", "func NamedBufferStorage(buffer uint32, size int, data unsafe.Pointer, flags uint32) {\n\tsyscall.Syscall6(gpNamedBufferStorage, 4, uintptr(buffer), uintptr(size), uintptr(data), uintptr(flags), 0, 0)\n}", "func (b *Builder) GetMappedTarget(ptr value.Pointer) (value.Pointer, error) {\n\tp, ok := ptr.(value.ObservedPointer)\n\tif !ok {\n\t\treturn ptr, fmt.Errorf(\"ptr %v is not type of value.ObservedPointer\", ptr)\n\t}\n\n\tidx := interval.IndexOf(&b.mappedMemory, uint64(p))\n\tif idx < 0 {\n\t\treturn ptr, fmt.Errorf(\"can not find ptr %v in mappedMemory\", ptr)\n\t}\n\n\tif b.mappedMemory[idx].Range.Base != uint64(p) {\n\t\treturn ptr, fmt.Errorf(\"the ptr %v is not the start of the mapped memory range\", ptr)\n\t}\n\n\treturn b.mappedMemory[idx].Target, nil\n}", "func (m *RecurrenceRange) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) {\n return m.backingStore\n}", "func (p *movingAverageProcessor) addBufferData(index int, data interface{}, namespace string) error {\n\tif _, ok := p.movingAverageMap[namespace]; ok {\n\t\tif index >= len(p.movingAverageMap[namespace].movingAverageBuf) {\n\t\t\treturn errors.New(\"Incorrect value of index, trying to access non-existing element of buffer\")\n\t\t}\n\t\tp.movingAverageMap[namespace].movingAverageBuf[index] = data\n\t\treturn nil\n\t} else {\n\t\treturn errors.New(\"Namespace is not present in the map\")\n\t}\n}", "func (mapper *Mapper) GetPtr(ptr unsafe.Pointer) (goValue interface{}) {\n\t// We don't use KeyFromPtr because the ptr may be a counting-pointer type.\n\tkey := Key{uintptr(ptr)}\n\treturn mapper.Get(key)\n}", "func (_ BufferPtrPool128K) Get() *[]byte {\n\treturn GetBytesSlicePtr128K()\n}", "func (x *FzKeyStorable) Ref() *C.fz_key_storable {\n\tif x == nil {\n\t\treturn nil\n\t}\n\treturn (*C.fz_key_storable)(unsafe.Pointer(x))\n}", "func (_ BufferPtrPool512) Get() *[]byte {\n\treturn GetBytesSlicePtr512()\n}", "func (s *Storage) Free(pooled []byte) {\n\n}", "func (m ConsistentType) Pointer() *ConsistentType {\n\treturn &m\n}", "func (self Source) GetBuffer() (buffer Buffer) {\n\treturn Buffer(self.Geti(AlBuffer))\n}", "func (m *AndroidEnrollmentCompanyCode) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) {\n return m.backingStore\n}", "func (x *FzKeyStorable) PassRef() *C.fz_key_storable {\n\tif x == nil {\n\t\tx = (*FzKeyStorable)(allocFzKeyStorableMemory(1))\n\t}\n\treturn (*C.fz_key_storable)(unsafe.Pointer(x))\n}", "func (m *PrinterLocation) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) {\n return m.backingStore\n}", "func (a *ChannelArea) Buffer() []byte {\n\treturn a.buffer\n}", "func (recv *Object) GetData(key string) uintptr {\n\tc_key := C.CString(key)\n\tdefer C.free(unsafe.Pointer(c_key))\n\n\tretC := C.g_object_get_data((*C.GObject)(recv.native), c_key)\n\tretGo := (uintptr)(unsafe.Pointer(retC))\n\n\treturn retGo\n}", "func MemAccess(p unsafe.Pointer, offset int) unsafe.Pointer {\n\treturn unsafe.Pointer(uintptr(p) + uintptr(offset))\n}", "func bufferToServerFdMap(buffer []byte) map[string]listenerFdMap {\n\tsfm := make(map[string]listenerFdMap)\n\tif len(buffer) > 0 {\n\t\tj, _ := gjson.LoadContent(buffer)\n\t\tfor k := range j.Var().Map() {\n\t\t\tm := make(map[string]string)\n\t\t\tfor k, v := range j.Get(k).Map() {\n\t\t\t\tm[k] = gconv.String(v)\n\t\t\t}\n\t\t\tsfm[k] = m\n\t\t}\n\t}\n\treturn sfm\n}", "func (o *SecretBagWritable) GetData() map[string]string {\n\tif o == nil {\n\t\tvar ret map[string]string\n\t\treturn ret\n\t}\n\n\treturn o.Data\n}", "func (s PointBuffer) Get(idx int) PointPtr {\n\tinBounds := idx >= 0 && idx < int(s.len)\n\tif !inBounds {\n\t\tpanic(fmt.Errorf(\n\t\t\t\"runtime error: index out of range [%d] with length %d\",\n\t\t\tidx, s.len,\n\t\t))\n\t}\n\tvar tVar Point\n\ttSize := unsafe.Sizeof(tVar)\n\ttype internalPtr struct {\n\t\toffset uintptr\n\t\tbucketIdx uint8\n\t\tarenaMask uint16\n\t}\n\tcurrentPtr := *(*internalPtr)(unsafe.Pointer(&s.data))\n\tnewPtr := internalPtr{\n\t\toffset: currentPtr.offset + uintptr(idx*int(tSize)),\n\t\tbucketIdx: currentPtr.bucketIdx,\n\t\tarenaMask: currentPtr.arenaMask,\n\t}\n\treturn PointPtr{\n\t\tptr: *(*arena.Ptr)(unsafe.Pointer(&newPtr)),\n\t}\n}", "func (bp bufferPool) get() *bytes.Buffer {\n\tbuf := bp.p.Get().(*bytes.Buffer)\n\treturn buf\n}", "func (m *MarkerIndexBranchIDMapping) ObjectStorageKey() []byte {\n\treturn m.sequenceID.Bytes()\n}", "func (d *DiskStorage) Get(key string) (interface{}, error) {\n\treturn d.memory.Get(key)\n}", "func (self *GameObjectCreator) BitmapData3O(width int, height int, key string) *BitmapData{\n return &BitmapData{self.Object.Call(\"bitmapData\", width, height, key)}\n}", "func (m *SmsLogRow) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) {\n return m.backingStore\n}", "func (m *Memory) GetChunk(cachedObject *Object, offset int64) ([]byte, error) {\n\tkey := cachedObject.abs() + \"-\" + strconv.FormatInt(offset, 10)\n\tvar data []byte\n\n\tif x, found := m.db.Get(key); found {\n\t\tdata = x.([]byte)\n\t\treturn data, nil\n\t}\n\n\treturn nil, fmt.Errorf(\"couldn't get cached object data at offset %v\", offset)\n}", "func (p *PersistentSyncMap) Get(key interface{}) interface{} {\n\tcacheLock.RLock()\n\tdefer cacheLock.RUnlock()\n\treturn p.storage[key]\n}", "func (p Plane) GetBuffers() ObjectBuffers {\n\treturn p.buffers\n}", "func (p *BufferPool) Get() []byte {\n\treturn p.p.Get().([]byte)\n}" ]
[ "0.625452", "0.59748036", "0.5886529", "0.57721245", "0.55234236", "0.549767", "0.5438491", "0.54131895", "0.5385202", "0.5369671", "0.53689384", "0.5357912", "0.5356822", "0.5346668", "0.53382593", "0.5337929", "0.532566", "0.5319772", "0.53143907", "0.52922195", "0.52713823", "0.5260296", "0.5259969", "0.5223943", "0.521329", "0.52123874", "0.52107966", "0.5190834", "0.5178103", "0.51646084", "0.516111", "0.51481223", "0.51329505", "0.51147276", "0.51125324", "0.51122737", "0.5086461", "0.5083561", "0.50716186", "0.50683016", "0.5061339", "0.50593007", "0.50574315", "0.5023055", "0.50186473", "0.5017865", "0.5002081", "0.50008845", "0.49994835", "0.49742225", "0.4968139", "0.4964992", "0.4961402", "0.4949644", "0.49494734", "0.49449748", "0.4944598", "0.4941437", "0.4940019", "0.49384937", "0.49351555", "0.4934732", "0.4934732", "0.49318218", "0.49313524", "0.4923298", "0.4908536", "0.49010384", "0.48988485", "0.4898766", "0.48983097", "0.48976612", "0.48966578", "0.48897195", "0.48850462", "0.48688754", "0.48600352", "0.4855568", "0.485519", "0.48517165", "0.48432842", "0.48373297", "0.4835049", "0.48331857", "0.4832652", "0.4831852", "0.48312306", "0.4829677", "0.4828542", "0.4811278", "0.47922203", "0.4791034", "0.47893578", "0.47885182", "0.47880927", "0.47824165", "0.4778964", "0.47699228", "0.47695494", "0.47649804", "0.4763681" ]
0.0
-1
returns a subset of a buffer object's data store
func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) { C.glowGetBufferSubData(gpGetBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (b *buffer) buffer() []byte {\n\treturn b.buf[b.offset:]\n}", "func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetBufferSubData, 4, uintptr(target), uintptr(offset), uintptr(size), uintptr(data), 0, 0)\n}", "func getSlice(p position) []byte {\n\ts, i := getChunkLocation(p.chunk)\n\tbufStart := int(i)*ChunkSize + p.chunkPos\n\tbufLen := ChunkSize - p.chunkPos\n\treturn slabs[s].memory[bufStart : bufStart+bufLen]\n}", "func (object MQObject) GetSlice(gomd *MQMD,\n\tgogmo *MQGMO, buffer []byte) ([]byte, int, error) {\n\trealDatalen, err := object.getInternal(gomd, gogmo, buffer, true)\n\n\t// The datalen will be set even if the buffer is too small - there\n\t// will be one of MQRC_TRUNCATED_MSG_ACCEPTED or _FAILED depending on the\n\t// GMO options. In any case, we return the available data along with the\n\t// error code but need to make sure that the real untruncated\n\t// message length is also returned. Also ensure we don't try to read past the\n\t// end of the buffer.\n\tdatalen := realDatalen\n\tif datalen > cap(buffer) {\n\t\tdatalen = cap(buffer)\n\t}\n\treturn buffer[0:datalen], realDatalen, err\n}", "func (iobuf *buf) slice(free, base, bound uint) *Slice {\n\tatomic.AddInt32(&iobuf.refcount, 1)\n\treturn &Slice{iobuf: iobuf, free: free, base: base, Contents: iobuf.Contents[base:bound]}\n}", "func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n C.glowGetBufferSubData(gpGetBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func (_ BufferPtrPool1M) Get() *[]byte {\n\treturn GetBytesSlicePtr1M()\n}", "func (_ BufferPtrPool1K) Get() *[]byte {\n\treturn GetBytesSlicePtr1K()\n}", "func (d *SliceDataStore) Get() []Record {\n\treturn d.slice\n}", "func (_ BufferPtrPool2K) Get() *[]byte {\n\treturn GetBytesSlicePtr2K()\n}", "func (b *Buffer) Slice() []byte {\n\t// Skip IP and UDP headers\n\treturn b[(ipv4HeaderSize + udp4HeaderSize):]\n}", "func (_ BufferPtrPool2M) Get() *[]byte {\n\treturn GetBytesSlicePtr2M()\n}", "func (g *GLTF) loadBuffer(bufIdx int) ([]byte, error) {\n\n\t// Check if provided buffer index is valid\n\tif bufIdx < 0 || bufIdx >= len(g.Buffers) {\n\t\treturn nil, fmt.Errorf(\"invalid buffer index\")\n\t}\n\tbufData := &g.Buffers[bufIdx]\n\t// Return cached if available\n\tif bufData.cache != nil {\n\t\tlog.Debug(\"Fetching Buffer %d (cached)\", bufIdx)\n\t\treturn bufData.cache, nil\n\t}\n\tlog.Debug(\"Loading Buffer %d\", bufIdx)\n\n\t// If buffer URI use the chunk data field\n\tif bufData.Uri == \"\" {\n\t\treturn g.data, nil\n\t}\n\n\t// Checks if buffer URI is a data URI\n\tvar data []byte\n\tvar err error\n\tif isDataURL(bufData.Uri) {\n\t\tdata, err = loadDataURL(bufData.Uri)\n\t} else {\n\t\t// Try to load buffer from file\n\t\tdata, err = g.loadFileBytes(bufData.Uri)\n\t}\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Checks data length\n\tif len(data) != bufData.ByteLength {\n\t\treturn nil, fmt.Errorf(\"buffer:%d read data length:%d expected:%d\", bufIdx, len(data), bufData.ByteLength)\n\t}\n\t// Cache buffer data\n\tg.Buffers[bufIdx].cache = data\n\tlog.Debug(\"cache data:%v\", len(bufData.cache))\n\treturn data, nil\n}", "func (bm ByteMap) Slice(includeKeys map[string]bool) ByteMap {\n\tresult, _ := bm.doSplit(false, includeKeys)\n\treturn result\n}", "func (p *movingAverageProcessor) getBufferData(index int, namespace string) interface{} {\n\n\treturn p.movingAverageMap[namespace].movingAverageBuf[index]\n}", "func BufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n\tsyscall.Syscall6(gpBufferSubData, 4, uintptr(target), uintptr(offset), uintptr(size), uintptr(data), 0, 0)\n}", "func (_ BufferPtrPool16M) Get() *[]byte {\n\treturn GetBytesSlicePtr16M()\n}", "func (s PointBuffer) SubSlice(low int, high int) PointBuffer {\n\tinBounds := low >= 0 && low <= high && high <= s.cap\n\tif !inBounds {\n\t\tpanic(fmt.Errorf(\n\t\t\t\"runtime error: slice bounds out of range [%d:%d] with capacity %d\",\n\t\t\tlow, high, s.cap,\n\t\t))\n\t}\n\tvar tVar Point\n\ttSize := unsafe.Sizeof(tVar)\n\ttype internalPtr struct {\n\t\toffset uintptr\n\t\tbucketIdx uint8\n\t\tarenaMask uint16\n\t}\n\tcurrentPtr := *(*internalPtr)(unsafe.Pointer(&s.data))\n\tnewPtr := internalPtr{\n\t\toffset: currentPtr.offset + uintptr(low*int(tSize)),\n\t\tbucketIdx: currentPtr.bucketIdx,\n\t\tarenaMask: currentPtr.arenaMask,\n\t}\n\treturn PointBuffer{\n\t\tdata: *(*arena.Ptr)(unsafe.Pointer(&newPtr)),\n\t\tlen: high - low,\n\t\tcap: s.cap - low,\n\t}\n}", "func (a *ChannelArea) Buffer() []byte {\n\treturn a.buffer\n}", "func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetNamedBufferSubData, 4, uintptr(buffer), uintptr(offset), uintptr(size), uintptr(data), 0, 0)\n}", "func BufferGTE(v []byte) predicate.User {\n\treturn predicate.User(func(s *sql.Selector) {\n\t\ts.Where(sql.GTE(s.C(FieldBuffer), v))\n\t})\n}", "func (al *AudioListener) getBuffer() []gumble.AudioPacket {\n\tal.Lock()\n\tdefer al.Unlock()\n\n\tbuf := al.buffer\n\tal.buffer = nil\n\treturn buf\n}", "func (_ BufferPtrPool4M) Get() *[]byte {\n\treturn GetBytesSlicePtr4M()\n}", "func (_ BufferPtrPool16K) Get() *[]byte {\n\treturn GetBytesSlicePtr16K()\n}", "func BufferGTE(v []byte) predicate.User {\n\treturn predicate.User(sql.FieldGTE(FieldBuffer, v))\n}", "func (_ BufferPtrPool64K) Get() *[]byte {\n\treturn GetBytesSlicePtr64K()\n}", "func (_ BufferPtrPool4K) Get() *[]byte {\n\treturn GetBytesSlicePtr4K()\n}", "func (_ BufferPtrPool8M) Get() *[]byte {\n\treturn GetBytesSlicePtr8M()\n}", "func (_ BufferPtrPool32K) Get() *[]byte {\n\treturn GetBytesSlicePtr32K()\n}", "func (_ BufferPtrPool8K) Get() *[]byte {\n\treturn GetBytesSlicePtr8K()\n}", "func (b *Buffer) Values() interface{} {\n return b.buffer.Slice(0, b.idx).Interface()\n}", "func (gl *WebGL) BufferSubData(target GLEnum, offset int, data interface{}) {\n\tvalues := sliceToTypedArray(data)\n\tgl.context.Call(\"bufferSubData\", target, offset, values)\n}", "func BufferSubData(target Enum, offset int, data []byte) {\n\tgl.BufferSubData(uint32(target), offset, int(len(data)), gl.Ptr(&data[0]))\n}", "func (in *InBuffer) Slice(n int) []byte {\n\tr := in.Data[in.ReadPos : in.ReadPos+n]\n\tin.ReadPos += n\n\treturn r\n}", "func (in *InBuffer) Slice(n int) []byte {\n\tr := in.Data[in.ReadPos : in.ReadPos+n]\n\tin.ReadPos += n\n\treturn r\n}", "func (this *byteBuffer) Get(seq int64) ([]byte, error) {\n\tslot := seq & int64(this.slotMask)\n\tindex := slot * int64(this.slotSize)\n\n\tn := int(binary.LittleEndian.Uint16(this.buffer[index : index+SlotOverhead]))\n\tif n > MaxDataSize {\n\t\treturn nil, ErrDataExceedsMaxSize\n\t}\n\n\tindex += SlotOverhead\n\n\tif index+int64(n) < this.bufferSize {\n\t\treturn this.buffer[index : index+int64(n)], nil\n\t}\n\n\tif n > len(this.tmpbuf) {\n\t\tthis.tmpbuf = make([]byte, n)\n\t}\n\tl, i := 0, 0\n\n\tfor n > 0 {\n\t\tl = copy(this.tmpbuf[i:], this.buffer[index:])\n\t\tn -= l\n\t\ti += l\n\n\t\tif n > 0 {\n\t\t\tindex = 0\n\t\t}\n\t}\n\n\treturn this.tmpbuf[:i], nil\n}", "func (i *Iter) returnSlice(a, b int) []byte {\n\tif i.rb.src.bytes == nil {\n\t\treturn i.buf[:copy(i.buf[:], i.rb.src.str[a:b])]\n\t}\n\treturn i.rb.src.bytes[a:b]\n}", "func Get() *Buffer {\n\treturn freeList.get()\n}", "func (b *BufferBatchGetter) BatchGet(ctx context.Context, keys []kv.Key) (map[string][]byte, error) {\n\tif b.buffer.Len() == 0 {\n\t\treturn b.snapshot.BatchGet(ctx, keys)\n\t}\n\tbufferValues := make([][]byte, len(keys))\n\tshrinkKeys := make([]kv.Key, 0, len(keys))\n\tfor i, key := range keys {\n\t\tval, err := b.buffer.Get(ctx, key)\n\t\tif err == nil {\n\t\t\tbufferValues[i] = val\n\t\t\tcontinue\n\t\t}\n\t\tif !kv.IsErrNotFound(err) {\n\t\t\treturn nil, errors.Trace(err)\n\t\t}\n\t\tif b.middle != nil {\n\t\t\tval, err = b.middle.Get(ctx, key)\n\t\t\tif err == nil {\n\t\t\t\tbufferValues[i] = val\n\t\t\t\tcontinue\n\t\t\t}\n\t\t}\n\t\tshrinkKeys = append(shrinkKeys, key)\n\t}\n\tstorageValues, err := b.snapshot.BatchGet(ctx, shrinkKeys)\n\tif err != nil {\n\t\treturn nil, errors.Trace(err)\n\t}\n\tfor i, key := range keys {\n\t\tif len(bufferValues[i]) == 0 {\n\t\t\tcontinue\n\t\t}\n\t\tstorageValues[string(key)] = bufferValues[i]\n\t}\n\treturn storageValues, nil\n}", "func (p *parser) sliceFrom(start savepoint) []byte {\n\treturn p.data[start.position.offset:p.pt.position.offset]\n}", "func (p *parser) sliceFrom(start savepoint) []byte {\n\treturn p.data[start.position.offset:p.pt.position.offset]\n}", "func (p *parser) sliceFrom(start savepoint) []byte {\n\treturn p.data[start.position.offset:p.pt.position.offset]\n}", "func (p *parser) sliceFrom(start savepoint) []byte {\n\treturn p.data[start.position.offset:p.pt.position.offset]\n}", "func (p *parser) sliceFrom(start savepoint) []byte {\n\treturn p.data[start.position.offset:p.pt.position.offset]\n}", "func (_ BufferPtrPool512K) Get() *[]byte {\n\treturn GetBytesSlicePtr512K()\n}", "func (_ BufferPtrPool128K) Get() *[]byte {\n\treturn GetBytesSlicePtr128K()\n}", "func (b *Buffer) Bytes() []byte { return b.buf[:b.length] }", "func (m *Memory) GetChunk(cachedObject *Object, offset int64) ([]byte, error) {\n\tkey := cachedObject.abs() + \"-\" + strconv.FormatInt(offset, 10)\n\tvar data []byte\n\n\tif x, found := m.db.Get(key); found {\n\t\tdata = x.([]byte)\n\t\treturn data, nil\n\t}\n\n\treturn nil, fmt.Errorf(\"couldn't get cached object data at offset %v\", offset)\n}", "func (DummyStore) GetSlice(key string) ([]interface{}, error) {\n\treturn nil, nil\n}", "func (s *SliceOfByte) GetSlice() *[]byte {\n\treturn &s.items\n}", "func (b *Blob) Slice(start, end int, contenttype string) *Blob {\n\tnewBlobObject := b.Call(\"slice\", start, end, contenttype)\n\treturn &Blob{\n\t\tObject: newBlobObject,\n\t}\n}", "func (w *Window) Slice() []float64 {\n\tw.mx.RLock()\n\t// 4 Times faster than \"defer Unlock\"\n\tret := w.base[w.start : w.start+w.Len]\n\tw.mx.RUnlock()\n\treturn ret\n}", "func (s *InMemorySender) Get() []message.Composer {\n\ts.mutex.RLock()\n\tdefer s.mutex.RUnlock()\n\n\tvar start int\n\tvar tmp []message.Composer\n\n\tstart = s.head - len(s.buffer)\n\tif start < 0 {\n\t\tstart = start + len(s.buffer)\n\t\ttmp = append(tmp, s.buffer[start:len(s.buffer)]...)\n\t\treturn append(tmp, s.buffer[:s.head]...)\n\t}\n\treturn append(tmp, s.buffer[start:s.head]...)\n}", "func subset(w http.ResponseWriter, r *http.Request) {\n \n key := r.FormValue(\"key\")\n \n fmt.Print(key)\n db, err := leveldb.OpenFile(\"db\", nil)\n \n if err != nil {\n fmt.Println(err)\n }\n iter := db.NewIterator([]byte(\"foo-\"), nil)\n for iter.Next() {\n fmt.Println(iter)\n }\n iter.Release()\n err = iter.Error()\n defer db.Close()\n\n}", "func Get(size int) *[]byte { return slice.Bytes.Get(size).(*[]byte) }", "func (d *Decoder) sliceOrScratch(n int) (buffer []byte, err error) {\n\tif d.s != nil {\n\t\treturn d.s.Slice(n)\n\t}\n\n\tbuffer = d.scratch[:n]\n\t_, err = d.r.Read(buffer)\n\treturn\n}", "func (b *Buffer) Get(n int) []interface{} {\n\t// reset any invalid values\n\tif n > b.size || n < 0 {\n\t\tn = b.size\n\t}\n\n\tb.RLock()\n\tdefer b.RUnlock()\n\n\t// create a delta\n\tdelta := b.size - n\n\n\t// if all the values are less than delta\n\tif len(b.vals) < delta {\n\t\treturn b.vals\n\t}\n\n\t// return the delta set\n\treturn b.vals[delta:]\n}", "func (_ BufferPtrPool512) Get() *[]byte {\n\treturn GetBytesSlicePtr512()\n}", "func (g *GeoTIFF) GetSlice(offset uint, size uint) (*DataSlice, error) {\n\tbuffer := make([]byte, size)\n\t_, err := g.source.ReadAt(buffer, int64(offset))\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"cannot read data from file due to %v\", err)\n\t}\n\tdataSlice := NewDataSlice(buffer, offset, g.littleEndian, g.bigTiff)\n\treturn dataSlice, nil\n}", "func Subset[T any](collection []T, offset int, length uint) []T {\n\tsize := len(collection)\n\n\tif offset < 0 {\n\t\toffset = size + offset\n\t\tif offset < 0 {\n\t\t\toffset = 0\n\t\t}\n\t}\n\n\tif offset > size {\n\t\treturn []T{}\n\t}\n\n\tif length > uint(size)-uint(offset) {\n\t\tlength = uint(size - offset)\n\t}\n\n\treturn collection[offset : offset+int(length)]\n}", "func getBuf(l int) []byte {\n\tx := bufPool.Get()\n\tif x == nil {\n\t\treturn make([]byte, l)\n\t}\n\tbuf := x.([]byte)\n\tif cap(buf) < l {\n\t\treturn make([]byte, l)\n\t}\n\treturn buf[:l]\n}", "func (c *poolConn) ReadBuffer(size int) ([]byte, error) {\n\tif c.mustRead == true {\n\t\terr := c.ReadTcpBlock()\n\t\tif err != nil {\n\t\t\tc.err = err\n\t\t\treturn nil, err\n\t\t}\n\t\tc.buffer.index = 0\n\t\tc.mustRead = false\n\t}\n\n\t//if size < c.buffer.size-c.buffer.index, normal stitching\n\t//if c.buffer.size-c.buffer.index < size < c.buffer.capacity-c.buffer.size+c.buffer.index, move usable data in buffer to front\n\t//if size > c.buffer.capacity, directly read the specified size\n\tif size+2 <= c.buffer.size-c.buffer.index {\n\n\t\tif c.buffer.realBuffer[c.buffer.index+size] == '\\r' && c.buffer.realBuffer[c.buffer.index+size+1] == '\\n' {\n\t\t\tcpy_index := c.buffer.index\n\t\t\tc.buffer.index = c.buffer.index + size + 2\n\t\t\tif c.buffer.index >= c.buffer.size {\n\t\t\t\tc.mustRead = true\n\t\t\t}\n\t\t\treturn c.buffer.realBuffer[cpy_index: cpy_index+size], nil\n\t\t} else {\n\t\t\treturn nil, errors.New(\"ReadBuffer is read wrong!\")\n\t\t}\n\t} else if size+2 <= c.buffer.capacity-c.buffer.size+c.buffer.index {\n\t\tc.ReadUnsafeBuffer()\n\t\tif c.buffer.realBuffer[c.buffer.index+size] == '\\r' && c.buffer.realBuffer[c.buffer.index+size+1] == '\\n' {\n\t\t\tc.buffer.index = c.buffer.index + size + 2\n\t\t\tif c.buffer.index >= c.buffer.size {\n\t\t\t\tc.mustRead = true\n\t\t\t}\n\t\t\treturn c.buffer.realBuffer[0:size], nil\n\t\t} else {\n\t\t\treturn nil, errors.New(\"ReadBuffer is read wrong!\")\n\t\t}\n\n\t} else {\n\t\tvar err error\n\t\tbigBuffer := make([]byte, size+2)\n\t\tcopy(bigBuffer, c.buffer.realBuffer[c.buffer.index:])\n\n\t\t//Make the results right , when the BigSize < buffer.capacity\n\t\tif len(bigBuffer) > c.buffer.size-c.buffer.index {\n\t\t\tbigBuffer, err = c.ReadTcpBigBlockLink(bigBuffer)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t}\n\n\t\t//judge weather the bigBuffer is right\n\t\tif bigBuffer[size] == '\\r' && bigBuffer[size+1] == '\\n' {\n\t\t\tc.buffer.index = c.buffer.index + size + 2\n\t\t\tif c.buffer.index >= c.buffer.size {\n\t\t\t\tc.mustRead = true\n\t\t\t}\n\t\t\treturn bigBuffer[:size], nil\n\t\t} else {\n\t\t\treturn nil, errors.New(\"bigBuffer is read wrong!\")\n\t\t}\n\t}\n}", "func BufferSubData(target Enum, offset Intptr, size Sizeiptr, data unsafe.Pointer) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcoffset, _ := (C.GLintptr)(offset), cgoAllocsUnknown\n\tcsize, _ := (C.GLsizeiptr)(size), cgoAllocsUnknown\n\tcdata, _ := (unsafe.Pointer)(unsafe.Pointer(data)), cgoAllocsUnknown\n\tC.glBufferSubData(ctarget, coffset, csize, cdata)\n}", "func (b *Buffer) Retrieve(length int) {\n\tif length < b.ReadableBytes() {\n\t\tb.readerIndex += length\n\t} else {\n\t\tb.RetrieveAll()\n\t}\n}", "func (s *LDBStore) get(addr Address) (chunk *chunk, err error) {\n\tif s.closed {\n\t\treturn nil, ErrDBClosed\n\t}\n\tproximity := s.po(addr)\n\tindex, found := s.tryAccessIdx(addr, proximity)\n\tif found {\n\t\tvar data []byte\n\t\tif s.getDataFunc != nil {\n\t\t\t// if getDataFunc is defined, use it to retrieve the chunk data\n\t\t\tlog.Trace(\"ldbstore.get retrieve with getDataFunc\", \"key\", addr)\n\t\t\tdata, err = s.getDataFunc(addr)\n\t\t\tif err != nil {\n\t\t\t\treturn\n\t\t\t}\n\t\t} else {\n\t\t\t// default DbStore functionality to retrieve chunk data\n\t\t\tdatakey := getDataKey(index.Idx, proximity)\n\t\t\tdata, err = s.db.Get(datakey)\n\t\t\tlog.Trace(\"ldbstore.get retrieve\", \"key\", addr, \"indexkey\", index.Idx, \"datakey\", fmt.Sprintf(\"%x\", datakey), \"proximity\", proximity)\n\t\t\tif err != nil {\n\t\t\t\tlog.Trace(\"ldbstore.get chunk found but could not be accessed\", \"key\", addr, \"err\", err)\n\t\t\t\ts.deleteNow(index, getIndexKey(addr), s.po(addr))\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\n\t\treturn decodeData(addr, data)\n\t} else {\n\t\terr = ErrChunkNotFound\n\t}\n\n\treturn\n}", "func BufferStorage(target uint32, size int, data unsafe.Pointer, flags uint32) {\n\tsyscall.Syscall6(gpBufferStorage, 4, uintptr(target), uintptr(size), uintptr(data), uintptr(flags), 0, 0)\n}", "func (g *GLTF) loadBufferView(bvIdx int) ([]byte, error) {\n\n\t// Check if provided buffer view index is valid\n\tif bvIdx < 0 || bvIdx >= len(g.BufferViews) {\n\t\treturn nil, fmt.Errorf(\"invalid buffer view index\")\n\t}\n\tbvData := g.BufferViews[bvIdx]\n\t// Return cached if available\n\tif bvData.cache != nil {\n\t\tlog.Debug(\"Fetching BufferView %d (cached)\", bvIdx)\n\t\treturn bvData.cache, nil\n\t}\n\tlog.Debug(\"Loading BufferView %d\", bvIdx)\n\n\t// Load buffer view buffer\n\tbuf, err := g.loadBuffer(bvData.Buffer)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Establish offset\n\toffset := 0\n\tif bvData.ByteOffset != nil {\n\t\toffset = *bvData.ByteOffset\n\t}\n\n\t// Compute and return offset slice\n\tbvBytes := buf[offset : offset+bvData.ByteLength]\n\n\t// Cache buffer view\n\tg.BufferViews[bvIdx].cache = bvBytes\n\n\treturn bvBytes, nil\n}", "func BufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n C.glowBufferSubData(gpBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func CopyBufferSubData(readTarget uint32, writeTarget uint32, readOffset int, writeOffset int, size int) {\n C.glowCopyBufferSubData(gpCopyBufferSubData, (C.GLenum)(readTarget), (C.GLenum)(writeTarget), (C.GLintptr)(readOffset), (C.GLintptr)(writeOffset), (C.GLsizeiptr)(size))\n}", "func (b *mpgBuff) buffer() *concBuff {\n\tif !b.cur {\n\t\treturn b.bufA\n\t}\n\treturn b.bufB\n}", "func (s SamplesC64) Slice(start, end int) Samples {\n\treturn s[start:end]\n}", "func ReadBytes(buffer []byte, offset int, size int) []byte {\n return buffer[offset:offset + size]\n}", "func (p *BufferPool) Get() []byte {\n\treturn p.p.Get().([]byte)\n}", "func (_ BufferPtrPool256K) Get() *[]byte {\n\treturn GetBytesSlicePtr256K()\n}", "func (self Source) GetBuffer() (buffer Buffer) {\n\treturn Buffer(self.Geti(AlBuffer))\n}", "func SliceBufferByEntries(entries []toc.MetadataEntry, buffer *Buffer) ([]string, string) {\n\tcontents := buffer.Contents()\n\thunks := make([]string, 0)\n\tlength := uint64(len(contents))\n\tvar end uint64\n\tfor _, entry := range entries {\n\t\tstart := entry.StartByte\n\t\tend = entry.EndByte\n\t\tif start > length {\n\t\t\tstart = length\n\t\t}\n\t\tif end > length {\n\t\t\tend = length\n\t\t}\n\t\thunks = append(hunks, string(contents[start:end]))\n\t}\n\treturn hunks, string(contents[end:])\n}", "func (jbobject *JavaNioCharBuffer) Slice() *JavaNioCharBuffer {\n\tjret, err := jbobject.CallMethod(javabind.GetEnv(), \"slice\", \"java/nio/CharBuffer\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tretconv := javabind.NewJavaToGoCallable()\n\tdst := &javabind.Callable{}\n\tretconv.Dest(dst)\n\tif err := retconv.Convert(javabind.ObjectRef(jret)); err != nil {\n\t\tpanic(err)\n\t}\n\tretconv.CleanUp()\n\tunique_x := &JavaNioCharBuffer{}\n\tunique_x.Callable = dst\n\treturn unique_x\n}", "func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) {\n\tC.glowGetNamedBufferSubData(gpGetNamedBufferSubData, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) {\n\tC.glowGetNamedBufferSubData(gpGetNamedBufferSubData, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func (p *Pool) Get(size int) (buf []byte) {\n\tif size <= 0 {\n\t\treturn nil\n\t}\n\tif size > math.MaxInt32 {\n\t\treturn make([]byte, size)\n\t}\n\tidx := index(uint32(size))\n\tptr, _ := p.pools[idx].Get().(unsafe.Pointer)\n\tif ptr == nil {\n\t\treturn make([]byte, 1<<idx)[:size]\n\t}\n\tsh := (*reflect.SliceHeader)(unsafe.Pointer(&buf))\n\tsh.Data = uintptr(ptr)\n\tsh.Len = size\n\tsh.Cap = 1 << idx\n\truntime.KeepAlive(ptr)\n\treturn\n}", "func (id GID) slice(start, end int) []byte {\n\tif len(id) != 12 {\n\t\tpanic(fmt.Sprintf(\"Invalid GID: %q\", string(id)))\n\t}\n\n\treturn id[start:end]\n}", "func (s *f64) Slice(start, end int) Floating {\n\tstart = s.BufferIndex(0, start)\n\tend = s.BufferIndex(0, end)\n\treturn &f64{\n\t\tchannels: s.channels,\n\t\tbuffer: s.buffer[start:end],\n\t}\n}", "func (bufferP *BufferPool) Get(size int) (data []byte, err error) {\n\tif size == util.PacketHeaderSize {\n\t\tatomic.AddInt64(&headBuffersCount, 1)\n\t\tid := atomic.AddUint64(&headBufAllocId, 1)\n\t\treturn bufferP.getHead(id), nil\n\t} else if size == util.BlockSize {\n\t\tatomic.AddInt64(&normalBuffersCount, 1)\n\t\tid := atomic.AddUint64(&normalBufAllocId, 1)\n\t\treturn bufferP.getNoraml(id), nil\n\t} else if size == util.DefaultTinySizeLimit {\n\t\tatomic.AddInt64(&tinyBuffersCount, 1)\n\t\treturn bufferP.tinyPool.Get().([]byte), nil\n\t}\n\treturn nil, fmt.Errorf(\"can only support 45 or 65536 bytes\")\n}", "func (d *decoder) buffer() []byte {\n\tif d.buf == nil {\n\t\td.buf = make([]byte, 8)\n\t}\n\treturn d.buf\n}", "func (c *cache) getChunk(s FileID) []byte {\n\tloc := c.chunks[s]\n\treturn c.buf[loc.offset : loc.offset+loc.size]\n}", "func CGet(size int) *[]byte { return slice.Bytes.CGet(size).(*[]byte) }", "func (bp *bufferPool) getBuffer() *buffer {\n\tbp.lock.Lock()\n\tb := bp.freeList\n\tif b != nil {\n\t\tbp.freeList = b.next\n\t\tbp.freeBufNum--\n\t}\n\tbp.lock.Unlock()\n\n\tif b == nil {\n\t\tb = new(buffer)\n\t\tb.Grow(512)\n\t} else {\n\t\tb.next = nil\n\t\tb.Reset()\n\t}\n\treturn b\n}", "func (s *SliceOfUint16) GetSlice() *[]uint16 {\n\treturn &s.items\n}", "func (m *MsgMemoryBuffer) GetAll() []interface{} {\n\tvar data []interface{}\n\tm.buff.Do(func(x interface{}) {\n\t\tif x != nil {\n\t\t\tdata = append(data, x)\n\t\t}\n\t})\n\treturn data\n}", "func (sb *SeekableBuffer) Bytes() []byte {\n\treturn sb.data\n\n}", "func (s *SliceOfUint32) GetSlice() *[]uint32 {\n\treturn &s.items\n}", "func (f *file) Slice(off int64, l int) ([]byte, error) {\n\t// return EOF if offset is larger than the file size\n\tif off >= f.sz {\n\t\treturn nil, io.EOF\n\t}\n\t// shorten the length, if necessary\n\tvar err error\n\tif off+int64(l) > f.sz {\n\t\tl = int(f.sz - off)\n\t\terr = io.EOF\n\t}\n\t// the slice falls entirely in the bof segment\n\tif off+int64(l) <= int64(initialRead) {\n\t\treturn f.peek[int(off) : int(off)+l], err\n\t}\n\tf.once.Do(func() {\n\t\tf.data = f.pool.get(f)\n\t})\n\tret := f.slice(off, l)\n\treturn ret, err\n}", "func (p *Packet) Buffer() []byte {\n\treturn p.Buf\n}", "func (s *SliceOfUint64) GetSlice() *[]uint64 {\n\treturn &s.items\n}", "func Subset(s Stream, t Type) Stream {\n\treturn subsetStream{t, s}\n}", "func (b *Buffer) Buf() []byte { return b.buf }", "func (d *Decoder) take(set *byteSet) []byte {\n\t// Note: use a relative index for start because absolute\n\t// indexes aren't stable (the contents of the buffer can be\n\t// moved when reading more data).\n\tstart := d.r1 - d.r0\nouter:\n\tfor {\n\t\tif !d.ensure(1) {\n\t\t\tbreak\n\t\t}\n\t\tbuf := d.buf[d.r1:]\n\t\tfor i, c := range buf {\n\t\t\tif !set.get(c) {\n\t\t\t\td.r1 += i\n\t\t\t\tbreak outer\n\t\t\t}\n\t\t}\n\t\td.r1 += len(buf)\n\t}\n\treturn d.buf[d.r0+start : d.r1]\n}", "func (p Point) Buffer() *Buffer {\n\treturn p.buffer\n}", "func Buffer(v []byte) predicate.User {\n\treturn predicate.User(func(s *sql.Selector) {\n\t\ts.Where(sql.EQ(s.C(FieldBuffer), v))\n\t})\n}" ]
[ "0.59749746", "0.59622097", "0.5950053", "0.581504", "0.5764334", "0.5763586", "0.5704699", "0.5659777", "0.5591769", "0.5555566", "0.5538419", "0.55325186", "0.5509957", "0.5478721", "0.5475454", "0.54440844", "0.5426589", "0.5415148", "0.54036397", "0.5402279", "0.5400035", "0.53836626", "0.5378919", "0.53783983", "0.5366753", "0.53617334", "0.5331046", "0.5330117", "0.5308643", "0.5306703", "0.5304931", "0.530344", "0.5301612", "0.52971804", "0.52971804", "0.52951837", "0.52586645", "0.52536315", "0.5252968", "0.5247109", "0.5247109", "0.5247109", "0.5247109", "0.5247109", "0.52385664", "0.52312046", "0.5166473", "0.5152423", "0.5149929", "0.5142073", "0.5137999", "0.5135714", "0.5130543", "0.5110076", "0.51027405", "0.5102365", "0.5100407", "0.50972676", "0.509297", "0.509158", "0.50906694", "0.5084298", "0.50773025", "0.5067432", "0.50504625", "0.5047794", "0.5046347", "0.5029108", "0.50221264", "0.50195557", "0.5015832", "0.5007826", "0.4995758", "0.499494", "0.4994536", "0.4985273", "0.49827316", "0.49678946", "0.49678946", "0.49646246", "0.4963356", "0.49632183", "0.49604762", "0.49582037", "0.4955834", "0.49556893", "0.4951308", "0.49499428", "0.49366108", "0.49358013", "0.49318054", "0.4929653", "0.4925258", "0.4922594", "0.49177903", "0.49118286", "0.49036357", "0.49018613", "0.48987347" ]
0.5542999
11
return the coefficients of the specified clipping plane
func GetClipPlane(plane uint32, equation *float64) { C.glowGetClipPlane(gpGetClipPlane, (C.GLenum)(plane), (*C.GLdouble)(unsafe.Pointer(equation))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetClipPlane(plane uint32, equation *float64) {\n C.glowGetClipPlane(gpGetClipPlane, (C.GLenum)(plane), (*C.GLdouble)(unsafe.Pointer(equation)))\n}", "func GetClipPlane(plane uint32, equation *float64) {\n\tsyscall.Syscall(gpGetClipPlane, 2, uintptr(plane), uintptr(unsafe.Pointer(equation)), 0)\n}", "func ClipPlane(plane uint32, equation *float64) {\n C.glowClipPlane(gpClipPlane, (C.GLenum)(plane), (*C.GLdouble)(unsafe.Pointer(equation)))\n}", "func ClipPlane(plane uint32, equation *float64) {\n\tsyscall.Syscall(gpClipPlane, 2, uintptr(plane), uintptr(unsafe.Pointer(equation)), 0)\n}", "func ClipPlane(plane uint32, equation *float64) {\n\tC.glowClipPlane(gpClipPlane, (C.GLenum)(plane), (*C.GLdouble)(unsafe.Pointer(equation)))\n}", "func findCoefficients(sphr sphere, direction, origin vector, verbosity bool) (float64, float64, float64) {\n\toffset := origin.sub(sphr.center)\n\ta := (direction.x * direction.x) + (direction.y * direction.y) + (direction.z * direction.z)\n\tb := 2 * (direction.x*(offset.x) + direction.y*(offset.y) + direction.z*(offset.z))\n\tc := (math.Pow((offset.x), 2) + math.Pow((offset.y), 2) + math.Pow((offset.z), 2) - (sphr.radius * sphr.radius))\n\n\tif verbosity {\n\t\tfmt.Printf(\"a:%f,\\nb:%f,\\nc:%f \\n\", a, b, c)\n\t}\n\treturn a, b, c\n}", "func (obj *Device) GetClipPlane(index uint32) (plane [4]float32, err Error) {\n\tret, _, _ := syscall.Syscall(\n\t\tobj.vtbl.GetClipPlane,\n\t\t3,\n\t\tuintptr(unsafe.Pointer(obj)),\n\t\tuintptr(index),\n\t\tuintptr(unsafe.Pointer(&plane[0])),\n\t)\n\terr = toErr(ret)\n\treturn\n}", "func convolvePlane(planePtr *[]float32, kernel *ConvKernel, width, height int, toPlaneCoords planeExtension) *[]float32 {\n\n\tplane := *planePtr\n\tradius := kernel.Radius\n\tdiameter := radius*2 + 1\n\tres := make([]float32, width*height)\n\n\t// for each pixel of the intensity plane:\n\tfor y := 0; y < height; y++ {\n\t\tfor x := 0; x < width; x++ {\n\t\t\tindex := y*width + x\n\n\t\t\t// compute convolved value of the pixel:\n\t\t\tresV := float32(0)\n\t\t\tfor yk := 0; yk < diameter; yk++ {\n\t\t\t\typ := toPlaneCoords(y+yk-radius, height)\n\t\t\t\tfor xk := 0; xk < diameter; xk++ {\n\t\t\t\t\txp := toPlaneCoords(x+xk-radius, width)\n\t\t\t\t\tplaneIndex := yp*width + xp\n\t\t\t\t\tkernelIndex := yk*diameter + xk\n\t\t\t\t\tresV += (plane[planeIndex] * kernel.Kernel[kernelIndex])\n\t\t\t\t}\n\t\t\t}\n\t\t\tres[index] = resV\n\t\t}\n\t}\n\n\treturn &res\n}", "func getCoefficient(name string, c ltx.Constraint) float64 {\n\tfor _, v := range c.LH {\n\t\tif v.Name == name {\n\t\t\treturn v.Coefficient\n\t\t}\n\t}\n\treturn 0.0\n}", "func (e Elem) getCoeff(i int) byte {\n\treturn (e.e[i/8] >> (uint(i) % 8)) & 1\n}", "func Cros(r1 [3]float64, r2 [3]float64) (result [3]float64) {\n result[0] = r1[1]*r2[2] - r1[2]*r2[1]\n result[1] = r1[2]*r2[0] - r1[0]*r2[2]\n result[2] = r1[0]*r2[1] - r1[1]*r2[0]\n\n return result\n}", "func (s *Trainer) Convex() {}", "func (a *AvcSPS) ConstraintFlags() byte {\n\treturn byte(a.ProfileCompatibility >> 4)\n}", "func IntersectPlane( plane_p, plane_n Vec3D, lineStart , lineEnd Vec3D ) Vec3D {\n plane_n = plane_n.Normalize()\n plane_d := -plane_n.Dot( plane_p)\n ad := lineStart.Dot(plane_n)\n bd := lineEnd.Dot(plane_n)\n t := (-plane_d - ad) / (bd - ad)\n lineStartToEnd := lineEnd.Sub(lineStart)\n lineToIntersect := lineStartToEnd.Mul(t)\n return lineStart.Add(lineToIntersect)\n}", "func make_plane(tWidth, tHeight uint32, vertices []float32, indices []uint32) {\n\t// width and height are the number of triangles across and down\n\t// plus one for the vertices to define them\n\ttWidth++\n\ttHeight++\n\n\tvar makeIsland = true\n\tvar heightMap = make([]float32, tWidth*tHeight)\n\tmake_height_map(tWidth, tHeight, heightMap, makeIsland)\n\tvar x, y uint32\n\tvar scale float32\n\tscale = 2.0 / float32(plane_rows)\n\thScale := scale * 2\n\t//var fbTexScale = float32(cols / width)\n\tvar fbTexScale = float32(1.0)\n\t// Set up vertices\n\tfor y = 0; y < tHeight; y++ {\n\t\tbase := y * tWidth\n\t\tfor x = 0; x < tWidth; x++ {\n\t\t\tindex := base + x\n\t\t\t// Position\n\t\t\tvertices[(8 * index)] = float32(x)*scale - 1.0\n\t\t\tvertices[(8*index)+1] = float32(y)*scale - 1.0\n\t\t\tvertices[(8*index)+2] = heightMap[index] * hScale\n\t\t\t// Colours\n\t\t\tvertices[(8*index)+3] = float32(1.0)\n\t\t\tvertices[(8*index)+4] = float32(1.0)\n\t\t\tvertices[(8*index)+5] = float32(1.0)\n\t\t\t// Texture\n\t\t\tvertices[(8*index)+6] = fbTexScale * float32(x) / float32(tWidth-1)\n\t\t\tvertices[(8*index)+7] = fbTexScale * float32(y) / float32(tHeight-1)\n\t\t\t/*fmt.Printf(\"%d: Ver ( %.2f, %.2f, %.2f ) / Col ( %.2f %.2f %.2f ) / Text ( %.2f, %.2f )\\n\",\n\t\t\tindex, vertices[(8*index)+0], vertices[(8*index)+1], vertices[(8*index)+2],\n\t\t\tvertices[(8*index)+3], vertices[(8*index)+4], vertices[(8*index)+5],\n\t\t\tvertices[(8*index)+6], vertices[(8*index)+7])*/\n\t\t}\n\t}\n\n\t// Set up indices\n\ti := 0\n\ttHeight--\n\tfor y = 0; y < tHeight; y++ {\n\t\tbase := y * tWidth\n\n\t\t//indices[i++] = (uint16)base;\n\t\tfor x = 0; x < tWidth; x++ {\n\t\t\tindices[i] = (uint32)(base + x)\n\t\t\ti += 1\n\t\t\tindices[i] = (uint32)(base + tWidth + x)\n\t\t\ti += 1\n\t\t}\n\t\t// add a degenerate triangle (except in a last row)\n\t\tif y < tHeight-1 {\n\t\t\tindices[i] = (uint32)((y+1)*tWidth + (tWidth - 1))\n\t\t\ti += 1\n\t\t\tindices[i] = (uint32)((y + 1) * tWidth)\n\t\t\ti += 1\n\t\t}\n\t}\n\n\t/*var ind int\n\tfor ind = 0; ind < i; ind++ {\n\t\tfmt.Printf(\"%d \", indices[ind])\n\t}\n\tfmt.Printf(\"\\nIn total %d indices\\n\", ind)*/\n}", "func (lcs LinearCoefficientSet) Coefficients() (m, b, stdev, avg float64) {\n\tm = lcs.M\n\tb = lcs.B\n\tstdev = lcs.StdDev\n\tavg = lcs.Avg\n\treturn\n}", "func coef(n int, t, y []Num) ([]Num, []Num) {\r\n\tsize := n + 1\r\n\ta := make([]Num, size)\r\n\th := make([]Num, size)\r\n\r\n\tfor i := 1; i <= n; i++ {\r\n\t\th[i] = t[i] - t[i-1]\r\n\t}\r\n\r\n\th[0] = h[1]\r\n\th[size] = h[n]\r\n\r\n\tdel := Num(-1)\r\n\tgam := 2 * y[0]\r\n\tp := del * gam\r\n\tq := Num(2)\r\n\r\n\tfor i := 0; i < n; i++ {\r\n\t\tr := h[i+1] / h[i]\r\n\t\tdel = Num(-1) * r * del\r\n\t\tgam = Num(-1)*gam + (r+1)*y[i]\r\n\t\tp = p + gam*del\r\n\t\tq = q + del*del\r\n\t}\r\n\r\n\ta[0] = (Num(-1) * p) / q\r\n\r\n\tfor i := 1; i < size; i++ {\r\n\t\ta[i] = ((h[i-1]+h[i])*y[i-1] - h[i]*a[i-1]) / h[i-1]\r\n\r\n\t}\r\n\r\n\treturn a[:], h[:]\r\n}", "func polyCBD3(outbuf []byte) Poly {\n\tvar t, d uint32\n\tvar a, b int16\n\tvar p Poly\n\n\tfor i := 0; i < n/4; i++ {\n\t\tt = load24LE(outbuf[3*i:])\n\t\td = t & 0x00249249\n\t\td += (t >> 1) & 0x00249249\n\t\td += (t >> 2) & 0x00249249\n\n\t\tfor j := 0; j < 4; j++ {\n\t\t\ta = int16((d >> (6*j + 0)) & 0x7)\n\t\t\tb = int16((d >> (6*j + 3)) & 0x7)\n\t\t\tp[4*i+j] = a - b\n\t\t}\n\t}\n\treturn p\n}", "func (m *World) LocalClusteringCoeffs() []float64 {\n\tlocalCoefficients := make([]float64, 0, 0)\n\n\tfor i := 0; i < m.n; i++ {\n\t\tlocalCoefficients = append(localCoefficients, m.localClusteringCoeffFor(i))\n\t}\n\treturn localCoefficients\n}", "func Vclip(input []float32, inputStride int, low, high float32, output []float32, outputStride int) {\n\tC.vDSP_vclip((*C.float)(&input[0]), C.vDSP_Stride(inputStride), (*C.float)(&low), (*C.float)(&high), (*C.float)(&output[0]), C.vDSP_Stride(outputStride), minLen(len(input)/inputStride, len(output)/outputStride))\n}", "func getContr(m map[int]int) contrArray {\n\tvar arr contrArray\n\tfor key, value := range m {\n\t\tarr[key] = value\n\t}\n\treturn arr\n}", "func (p *CubicPolynomial) f1Zeroes() []float64 {\n\tt, _ := quadratic(3*p.d, 2*p.c, p.b)\n\treturn t\n}", "func LinearCoefficients(m, b float64) LinearCoefficientSet {\n\treturn LinearCoefficientSet{\n\t\tM: m,\n\t\tB: b,\n\t}\n}", "func VRCPPS(mxy, xy operand.Op) { ctx.VRCPPS(mxy, xy) }", "func (r Rectangle) Clip(pts []Point) []Point {\n\tclipped := make([]Point, 0, len(pts))\n\tfor _, pt := range pts {\n\t\tif pt.In(r) {\n\t\t\tclipped = append(clipped, pt)\n\t\t}\n\t}\n\treturn clipped\n}", "func NewBPlane(o Orbit) BPlane {\n\t// Some of this is quite similar to RV2COE.\n\thHat := Unit(Cross(o.rVec, o.vVec))\n\tk := []float64{0, 0, 1}\n\tv := Norm(o.vVec)\n\tr := Norm(o.rVec)\n\teVec := make([]float64, 3, 3)\n\tfor i := 0; i < 3; i++ {\n\t\teVec[i] = ((v*v-o.Origin.μ/r)*o.rVec[i] - Dot(o.rVec, o.vVec)*o.vVec[i]) / o.Origin.μ\n\t}\n\te := Norm(eVec)\n\tξ := (v*v)/2 - o.Origin.μ/r\n\ta := -o.Origin.μ / (2 * ξ)\n\tc := a * e\n\tb := math.Sqrt(math.Pow(c, 2) - math.Pow(a, 2))\n\n\t// Compute B plane frame\n\theVec := Unit(Cross(hHat, eVec))\n\tβ := math.Acos(1 / e)\n\tsinβ, cosβ := math.Sincos(β)\n\tsHat := make([]float64, 3)\n\tfor i := 0; i < 3; i++ {\n\t\tsHat[i] = cosβ*eVec[i]/e + sinβ*heVec[i]\n\t}\n\ttHat := Unit(Cross(sHat, k))\n\trHat := Unit(Cross(sHat, tHat))\n\tbVec := Cross(sHat, hHat)\n\tfor i := 0; i < 3; i++ {\n\t\tbVec[i] *= b\n\t}\n\tbT := Dot(bVec, tHat)\n\tbR := Dot(bVec, rHat)\n\tνB := math.Pi/2 - β\n\tsinνB, cosνB := math.Sincos(νB)\n\tνR := math.Acos((-a*(e*e-1))/(r*e) - 1/e)\n\tsinνR, cosνR := math.Sincos(νR)\n\n\tfB := math.Asinh(sinνB*math.Sqrt(e*e-1)) / (1 + e*cosνB)\n\tfR := math.Asinh(sinνR*math.Sqrt(e*e-1)) / (1 + e*cosνR)\n\tltof := ((e*math.Sinh(fB) - fB) - (e*math.Sinh(fR) - fR)) / o.MeanAnomaly()\n\treturn BPlane{Orbit: o, BR: bR, BT: bT, LTOF: ltof, goalBT: math.NaN(), goalBR: math.NaN(), goalLTOF: math.NaN()}\n}", "func clampPlaneExtension(index, limit int) int {\n\tif index >= limit {\n\t\tindex = limit - 1\n\t} else if index < 0 {\n\t\tindex = 0\n\t}\n\treturn index\n}", "func control_estimate(ys []float64, xs [][]float64, alpha float64) *Estimate {\n\td := len(xs[0])\n\tN := len(ys)\n\tn := float64(N)\n\n\t// Compute the means of the control variates\n\tx_means := make([]float64, d)\n\tfor i, _ := range xs {\n\t\tfor j, _ := range x_means {\n\t\t\tx_means[j] += xs[i][j]\n\t\t}\n\t}\n\tfor j, _ := range x_means {\n\t\tx_means[j] /= n\n\t}\n\n\t// Compute the mean of the target\n\ty_mean := Mean(ys)\n\n\t// Compute the sample covariance of the control variates\n\tSx := matrix.MakeDenseMatrix(make([]float64, d*d), d, d)\n\tfor j := 0; j < d; j++ {\n\t\tfor k := 0; k < d; k++ {\n\t\t\tentry := 0.0\n\t\t\tfor i, _ := range xs {\n\t\t\t\tentry += xs[i][j]*xs[i][k] - n*x_means[j]*x_means[k]\n\t\t\t}\n\t\t\tentry /= n - 1\n\n\t\t\tSx.Set(j, k, entry)\n\t\t}\n\t}\n\n\t// Compute the sample covariance of the control variates and the\n\t// response\n\tSxy := matrix.MakeDenseMatrix(make([]float64, d), d, 1)\n\tfor j := 0; j < d; j++ {\n\t\tentry := 0.0\n\t\tfor i, _ := range ys {\n\t\t\tentry += xs[i][j]*ys[i] - n*x_means[j]*y_mean\n\t\t}\n\t\tentry /= n - 1\n\n\t\tSxy.Set(j, 0, entry)\n\t}\n\n\t// Compute the control variate weights\n\tb := matrix.Product(matrix.Inverse(Sx), Sxy)\n\n\t// Compute the offset estimates\n\tyoff := make([]float64, N)\n\tfor i, _ := range yoff {\n\t\tyoff[i] = ys[i]\n\n\t\tfor j := 0; j < d; j++ {\n\t\t\tyoff[i] -= b.Get(j, 0) * (xs[i][j] - x_means[j])\n\t\t}\n\t}\n\n\t// Compute the point estimate and sample variance of the offset\n\t// values\n\treturn create_estimate(yoff, alpha)\n}", "func polyCBD2(outbuf []byte) Poly {\n\tvar t, d uint32\n\tvar a, b int16\n\tvar p Poly\n\n\tfor i := 0; i < n/8; i++ {\n\t\tt = load32LE(outbuf[4*i:])\n\t\td = t & 0x55555555\n\t\td += (t >> 1) & 0x55555555\n\n\t\tfor j := 0; j < 8; j++ {\n\t\t\ta = int16((d >> (4*j + 0)) & 0x3)\n\t\t\tb = int16((d >> (4*j + 2)) & 0x3)\n\t\t\tp[8*i+j] = a - b\n\t\t}\n\t}\n\treturn p\n}", "func PlaneMonoFittingLeastSquare64(vlist []plyfile.VertexMono64) *Plane64 {\n\tn := len(vlist)\n\n\t// A : matrix of the size n rows and 3 columns. Rows are (xi, yi, 1) in which xi and yi are coordinates x and y of the points\n\tA := mat.NewDense(n, 3, nil)\n\t// B : matrix of the size n rows and 1 columns, (zi), the coordinates z of the points\n\tb := mat.NewDense(n, 1, nil)\n\t// initializing\n\tfor i := 0; i < n; i++ {\n\t\tA.Set(i, 0, vlist[i].X)\n\t\tA.Set(i, 1, vlist[i].Y)\n\t\tA.Set(i, 2, 1)\n\t\tb.Set(i, 0, vlist[i].Z)\n\t}\n\n\t// compute : A * x = b --> ATA * x = AT * b --> x = (ATA)^-1 * AT * b\n\n\tAT := A.T()\n\t// multiply A by AT at the left side to prepare for the inverse\n\tvar ATA mat.Dense\n\tATA.Mul(AT, A)\n\n\t// compute the inverse\n\tvar ATAInv mat.Dense\n\terr := ATAInv.Inverse(&ATA)\n\tif err != nil {\n\t\tlog.Fatalf(\"A is not invertible: %v\", err)\n\t}\n\n\tvar ATAInvAT mat.Dense\n\tATAInvAT.Mul(&ATAInv, AT)\n\tvar X mat.Dense\n\tX.Mul(&ATAInvAT, b)\n\n\tP := New_p64(X.At(0, 0), X.At(1, 0), -1, X.At(2, 0))\n\treturn P\n}", "func (c *Client) GetClip(qp ClipQueryParameter) ([]Clip, Cursor, error) {\n\tretClip := clipData{}\n\n\t// checking required fields\n\terr := checkRequiredFields(\"GetClip\", \"any\", qp.BroadcasterID, qp.GameID, qp.ID)\n\tif err != nil {\n\t\te := errors.New(\"GetClip: at least one id must be specified\")\n\t\treturn []Clip{}, Cursor{}, e\n\t}\n\n\tif !isEmpty(qp.First) && (qp.First > 100 || qp.First < 0) {\n\t\terr := errors.New(\"GetClip: first parameter must be between 0 and 100\")\n\t\treturn []Clip{}, Cursor{}, err\n\t}\n\n\t// creating the header\n\th := Header{\n\t\tField: \"Client-ID\",\n\t\tValue: c.ClientID,\n\t}\n\n\t// perform API call\n\turi := makeUri(BaseURL+ClipsEP, qp)\n\tres, err := c.apiCall(\"GET\", uri, h)\n\tif err != nil {\n\t\treturn []Clip{}, Cursor{}, err\n\t}\n\tdefer res.Body.Close()\n\n\t// parse result\n\tif res.Status != \"200 OK\" {\n\t\terr := errors.New(\"CreateClip returned status: \" + res.Status)\n\t\treturn []Clip{}, Cursor{}, err\n\t}\n\tif err := parseResult(res, &retClip); err != nil {\n\t\treturn []Clip{}, Cursor{}, err\n\t}\n\n\treturn retClip.Data, retClip.Cursor, nil\n}", "func polyFromMsg(msg []byte) Poly {\n\tvar p Poly\n\tfor i := 0; i < n/8; i++ {\n\t\tfor j := 0; j < 8; j++ {\n\t\t\tmask := -int16((msg[i] >> j) & 1)\n\t\t\tp[8*i+j] = mask & int16((q+1)/2)\n\t\t}\n\t}\n\treturn p\n}", "func (w *wire) interceptPoints(o wire) []point {\n\tvar interceptPoints []point\n\tfor i := 1; i < len(w.points); i++ {\n\t\tv1 := segment{\n\t\t\tfrom: w.points[i-1],\n\t\t\tto: w.points[i],\n\t\t}\n\t\tfor u := 1; u < len(o.points); u++ {\n\t\t\tv2 := segment{\n\t\t\t\tfrom: o.points[u-1],\n\t\t\t\tto: o.points[u],\n\t\t\t}\n\t\t\tintercept := v1.intercepts(v2)\n\t\t\tif intercept.x != 0 && intercept.y != 0 {\n\t\t\t\t// Calculate total wire length (both wires combined)\n\t\t\t\tintercept.wireLen = v1.from.wireLen + intercept.distanceToPoint(v1.from) +\n\t\t\t\t\tv2.from.wireLen + intercept.distanceToPoint(v2.from)\n\t\t\t\tinterceptPoints = append(interceptPoints, intercept)\n\t\t\t}\n\t\t}\n\t}\n\treturn interceptPoints\n}", "func (pp *privPath) adjustVertices() {\n\tpo := pp.Po\n\tm := len(po)\n\tpt := pp.Pt\n\tn := len(pt)\n\tx0, y0 := pp.Orig.X, pp.Orig.Y\n\n\tvar (\n\t\tctr = make([]Point, m)\n\t\tdir = make([]Point, m)\n\t\tq = make([]quadForm, m)\n\t\tv [3]float64\n\t\ts Point\n\t)\n\n\tpp.Curve = newPrivCurve(m)\n\n\t// calculate \"optimal\" point-slope representation for each line segment\n\tfor i := 0; i < m; i++ {\n\t\tj := po[mod(i+1, m)]\n\t\tj = mod(j-po[i], n) + po[i]\n\t\tctr[i], dir[i] = pointslope(pp, po[i], j)\n\t}\n\n\t// represent each line segment as a singular quadratic form; the\n\t// distance of a point (x,y) from the line segment will be\n\t// (x,y,1)Q(x,y,1)^t, where Q=q[i].\n\tfor i := 0; i < m; i++ {\n\t\td := dir[i].X*dir[i].X + dir[i].Y*dir[i].Y\n\t\tif d == 0.0 {\n\t\t\tfor j := 0; j < 3; j++ {\n\t\t\t\tfor k := 0; k < 3; k++ {\n\t\t\t\t\tq[i][j][k] = 0\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tv[0] = dir[i].Y\n\t\t\tv[1] = -dir[i].X\n\t\t\tv[2] = -v[1]*ctr[i].Y - v[0]*ctr[i].X\n\t\t\tfor l := 0; l < 3; l++ {\n\t\t\t\tfor k := 0; k < 3; k++ {\n\t\t\t\t\tq[i][l][k] = v[l] * v[k] / d\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// now calculate the \"intersections\" of consecutive segments.\n\t// Instead of using the actual intersection, we find the point\n\t// within a given unit square which minimizes the square distance to\n\t// the two lines.\n\tfor i := 0; i < m; i++ {\n\t\tvar (\n\t\t\tQ quadForm\n\t\t\tw Point\n\t\t\tdx, dy, det float64\n\t\t\tmin, cand float64 // minimum and candidate for minimum of quad. form\n\t\t\txmin, ymin float64 // coordinates of minimum\n\t\t\tz int\n\t\t)\n\n\t\t// let s be the vertex, in coordinates relative to x0/y0\n\t\ts.X = float64(pt[po[i]].X - x0)\n\t\ts.Y = float64(pt[po[i]].Y - y0)\n\n\t\t// intersect segments i-1 and i\n\n\t\tj := mod(i-1, m)\n\n\t\t// add quadratic forms\n\t\tfor l := 0; l < 3; l++ {\n\t\t\tfor k := 0; k < 3; k++ {\n\t\t\t\tQ[l][k] = q[j][l][k] + q[i][l][k]\n\t\t\t}\n\t\t}\n\n\t\tfor {\n\t\t\t// minimize the quadratic form Q on the unit square\n\t\t\t// find intersection\n\n\t\t\tdet = Q[0][0]*Q[1][1] - Q[0][1]*Q[1][0]\n\t\t\tif det != 0.0 {\n\t\t\t\tw.X = (-Q[0][2]*Q[1][1] + Q[1][2]*Q[0][1]) / det\n\t\t\t\tw.Y = (Q[0][2]*Q[1][0] - Q[1][2]*Q[0][0]) / det\n\t\t\t\tbreak\n\t\t\t}\n\n\t\t\t// matrix is singular - lines are parallel. Add another,\n\t\t\t// orthogonal axis, through the center of the unit square\n\t\t\tif Q[0][0] > Q[1][1] {\n\t\t\t\tv[0] = -Q[0][1]\n\t\t\t\tv[1] = Q[0][0]\n\t\t\t} else if Q[1][1] != 0 {\n\t\t\t\tv[0] = -Q[1][1]\n\t\t\t\tv[1] = Q[1][0]\n\t\t\t} else {\n\t\t\t\tv[0] = 1\n\t\t\t\tv[1] = 0\n\t\t\t}\n\t\t\td := v[0]*v[0] + v[1]*v[1]\n\t\t\tv[2] = -v[1]*float64(s.Y) - v[0]*float64(s.X)\n\t\t\tfor l := 0; l < 3; l++ {\n\t\t\t\tfor k := 0; k < 3; k++ {\n\t\t\t\t\tQ[l][k] += v[l] * v[k] / d\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdx = fabs(w.X - s.X)\n\t\tdy = fabs(w.Y - s.Y)\n\t\tif dx <= .5 && dy <= .5 {\n\t\t\tpp.Curve.segm[i].vertex.X = w.X + float64(x0)\n\t\t\tpp.Curve.segm[i].vertex.Y = w.Y + float64(y0)\n\t\t\tcontinue\n\t\t}\n\n\t\t// the minimum was not in the unit square; now minimize quadratic on boundary of square\n\t\tmin = quadform(Q, s)\n\t\txmin = s.X\n\t\tymin = s.Y\n\n\t\tif Q[0][0] == 0.0 {\n\t\t\tgoto fixx\n\t\t}\n\t\tfor z = 0; z < 2; z++ { // value of the y-coordinate\n\t\t\tw.Y = float64(s.Y) - 0.5 + float64(z)\n\t\t\tw.X = -(Q[0][1]*w.Y + Q[0][2]) / Q[0][0]\n\t\t\tdx = fabs(w.X - s.X)\n\t\t\tcand = quadform(Q, w)\n\t\t\tif dx <= .5 && cand < min {\n\t\t\t\tmin = cand\n\t\t\t\txmin = w.X\n\t\t\t\tymin = w.Y\n\t\t\t}\n\t\t}\n\tfixx:\n\t\tif Q[1][1] == 0.0 {\n\t\t\tgoto corners\n\t\t}\n\t\tfor z = 0; z < 2; z++ { // value of the x-coordinate\n\t\t\tw.X = s.X - 0.5 + float64(z)\n\t\t\tw.Y = -(Q[1][0]*w.X + Q[1][2]) / Q[1][1]\n\t\t\tdy = fabs(w.Y - s.Y)\n\t\t\tcand = quadform(Q, w)\n\t\t\tif dy <= .5 && cand < min {\n\t\t\t\tmin = cand\n\t\t\t\txmin = w.X\n\t\t\t\tymin = w.Y\n\t\t\t}\n\t\t}\n\tcorners:\n\t\t// check four corners\n\t\tfor l := 0; l < 2; l++ {\n\t\t\tfor k := 0; k < 2; k++ {\n\t\t\t\tw.X = s.X - 0.5 + float64(l)\n\t\t\t\tw.Y = s.Y - 0.5 + float64(k)\n\t\t\t\tcand = quadform(Q, w)\n\t\t\t\tif cand < min {\n\t\t\t\t\tmin = cand\n\t\t\t\t\txmin = w.X\n\t\t\t\t\tymin = w.Y\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tpp.Curve.segm[i].vertex.X = xmin + float64(x0)\n\t\tpp.Curve.segm[i].vertex.Y = ymin + float64(y0)\n\t\tcontinue\n\t}\n}", "func (o *GradientDescent) clipGrads() {\n\tif o.gradClipper == nil {\n\t\treturn\n\t}\n\tvar gs []mat.Matrix\n\tfor param := range o.observed {\n\t\tif param.HasGrad() { // don't consider grad at zero\n\t\t\tgs = append(gs, param.Grad())\n\t\t}\n\t}\n\to.gradClipper.Clip(gs)\n}", "func Poly(xvalues, yvalues []float64, degree int) ([]float64, error) {\n\tif len(xvalues) != len(yvalues) {\n\t\treturn nil, ErrPolyRegArraysSameLength\n\t}\n\n\tm := len(yvalues)\n\tn := degree + 1\n\ty := New(m, 1, yvalues...)\n\tx := Zero(m, n)\n\n\tfor i := 0; i < m; i++ {\n\t\tip := float64(1)\n\t\tfor j := 0; j < n; j++ {\n\t\t\tx.Set(i, j, ip)\n\t\t\tip *= xvalues[i]\n\t\t}\n\t}\n\n\tq, r := x.QR()\n\tqty, err := q.Transpose().Times(y)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tc := make([]float64, n)\n\tfor i := n - 1; i >= 0; i-- {\n\t\tc[i] = qty.Get(i, 0)\n\t\tfor j := i + 1; j < n; j++ {\n\t\t\tc[i] -= c[j] * r.Get(i, j)\n\t\t}\n\t\tc[i] /= r.Get(i, i)\n\t}\n\n\treturn c, nil\n}", "func (p Plane) GetBuffers() ObjectBuffers {\n\treturn p.buffers\n}", "func VPCMPISTRI(i, mx, x operand.Op) { ctx.VPCMPISTRI(i, mx, x) }", "func VPCMPESTRI(i, mx, x operand.Op) { ctx.VPCMPESTRI(i, mx, x) }", "func (m Mat2x2) c() C.cpMat2x2 {\n\tvar cp C.cpMat2x2\n\tcp.a = C.cpFloat(m.A)\n\tcp.b = C.cpFloat(m.B)\n\tcp.c = C.cpFloat(m.C)\n\tcp.d = C.cpFloat(m.D)\n\treturn cp\n}", "func (w *BlackmanHarris) Make(size int) []float64 {\n\tconst (\n\t\ta0 = 0.35875\n\t\ta1 = 0.48829\n\t\ta2 = 0.14128\n\t\ta3 = 0.01168\n\t)\n\n\tcoeff := make([]float64, size)\n\tsizeMinus1 := float64(size - 1)\n\n\tfor n := 0; n < size; n++ {\n\t\tnFlt := float64(n)\n\n\t\tcoeff[n] = a0 -\n\t\t\ta1*math.Cos((twoPi*nFlt)/sizeMinus1) +\n\t\t\ta2*math.Cos((fourPi*nFlt)/sizeMinus1) -\n\t\t\ta3*math.Cos((sixPi*nFlt)/sizeMinus1)\n\t}\n\n\treturn coeff\n}", "func (p thinPoly) Mul(c int32, v []int32) thinPoly {\n\tfor i := range v {\n\t\tp[i] = c * v[i]\n\t}\n\treturn p.Freeze()\n}", "func binomCoeff(n, k float64) float64 {\n\treturn fact(n) / (fact(k) * fact(n-k))\n}", "func Conj(p Point) Point {\n\treturn Point{cmplx.Conj(p.Z), cmplx.Conj(p.W)}\n}", "func zerrpo(path string, t *testing.T) {\n\tvar anrm float64\n\tvar i, j, nmax int\n\tvar err error\n\n\tnmax = 4\n\tb := cvf(4)\n\tw := cvf(2 * nmax)\n\tx := cvf(4)\n\tr := vf(4)\n\tr1 := vf(4)\n\tr2 := vf(4)\n\ta := cmf(4, 4, opts)\n\taf := cmf(4, 4, opts)\n\n\terrt := &gltest.Common.Infoc.Errt\n\tok := &gltest.Common.Infoc.Ok\n\tsrnamt := &gltest.Common.Srnamc.Srnamt\n\tc2 := path[1:3]\n\n\t// Set the variables to innocuous values.\n\tfor j = 1; j <= nmax; j++ {\n\t\tfor i = 1; i <= nmax; i++ {\n\t\t\ta.Set(i-1, j-1, complex(1./float64(i+j), -1./float64(i+j)))\n\t\t\taf.Set(i-1, j-1, complex(1./float64(i+j), -1./float64(i+j)))\n\t\t}\n\t\tb.Set(j-1, 0.)\n\t\tr1.Set(j-1, 0.)\n\t\tr2.Set(j-1, 0.)\n\t\tw.Set(j-1, 0.)\n\t\tx.Set(j-1, 0.)\n\t}\n\tanrm = 1.\n\t(*ok) = true\n\n\t// Test error exits of the routines that use the Cholesky\n\t// decomposition of a Hermitian positive definite matrix.\n\tif c2 == \"po\" {\n\t\t// Zpotrf\n\t\t*srnamt = \"Zpotrf\"\n\t\t*errt = fmt.Errorf(\"!upper && uplo != Lower: uplo=Unrecognized: /\")\n\t\t_, err = golapack.Zpotrf('/', 0, a.Off(0, 0).UpdateRows(1))\n\t\tchkxer2(\"Zpotrf\", err)\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\t_, err = golapack.Zpotrf(Upper, -1, a.Off(0, 0).UpdateRows(1))\n\t\tchkxer2(\"Zpotrf\", err)\n\t\t*errt = fmt.Errorf(\"a.Rows < max(1, n): a.Rows=1, n=2\")\n\t\t_, err = golapack.Zpotrf(Upper, 2, a.Off(0, 0).UpdateRows(1))\n\t\tchkxer2(\"Zpotrf\", err)\n\n\t\t// Zpotf2\n\t\t*srnamt = \"Zpotf2\"\n\t\t*errt = fmt.Errorf(\"!upper && uplo != Lower: uplo=Unrecognized: /\")\n\t\t_, err = golapack.Zpotf2('/', 0, a.Off(0, 0).UpdateRows(1))\n\t\tchkxer2(\"Zpotf2\", err)\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\t_, err = golapack.Zpotf2(Upper, -1, a.Off(0, 0).UpdateRows(1))\n\t\tchkxer2(\"Zpotf2\", err)\n\t\t*errt = fmt.Errorf(\"a.Rows < max(1, n): a.Rows=1, n=2\")\n\t\t_, err = golapack.Zpotf2(Upper, 2, a.Off(0, 0).UpdateRows(1))\n\t\tchkxer2(\"Zpotf2\", err)\n\n\t\t// Zpotri\n\t\t*srnamt = \"Zpotri\"\n\t\t*errt = fmt.Errorf(\"uplo != Upper && uplo != Lower: uplo=Unrecognized: /\")\n\t\t_, err = golapack.Zpotri('/', 0, a.Off(0, 0).UpdateRows(1))\n\t\tchkxer2(\"Zpotri\", err)\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\t_, err = golapack.Zpotri(Upper, -1, a.Off(0, 0).UpdateRows(1))\n\t\tchkxer2(\"Zpotri\", err)\n\t\t*errt = fmt.Errorf(\"a.Rows < max(1, n): a.Rows=1, n=2\")\n\t\t_, err = golapack.Zpotri(Upper, 2, a.Off(0, 0).UpdateRows(1))\n\t\tchkxer2(\"Zpotri\", err)\n\n\t\t// Zpotrs\n\t\t*srnamt = \"Zpotrs\"\n\t\t*errt = fmt.Errorf(\"!upper && uplo != Lower: uplo=Unrecognized: /\")\n\t\terr = golapack.Zpotrs('/', 0, 0, a.Off(0, 0).UpdateRows(1), b.CMatrix(1, opts))\n\t\tchkxer2(\"Zpotrs\", err)\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\terr = golapack.Zpotrs(Upper, -1, 0, a.Off(0, 0).UpdateRows(1), b.CMatrix(1, opts))\n\t\tchkxer2(\"Zpotrs\", err)\n\t\t*errt = fmt.Errorf(\"nrhs < 0: nrhs=-1\")\n\t\terr = golapack.Zpotrs(Upper, 0, -1, a.Off(0, 0).UpdateRows(1), b.CMatrix(1, opts))\n\t\tchkxer2(\"Zpotrs\", err)\n\t\t*errt = fmt.Errorf(\"a.Rows < max(1, n): a.Rows=1, n=2\")\n\t\terr = golapack.Zpotrs(Upper, 2, 1, a.Off(0, 0).UpdateRows(1), b.CMatrix(2, opts))\n\t\tchkxer2(\"Zpotrs\", err)\n\t\t*errt = fmt.Errorf(\"b.Rows < max(1, n): b.Rows=1, n=2\")\n\t\terr = golapack.Zpotrs(Upper, 2, 1, a.Off(0, 0).UpdateRows(2), b.CMatrix(1, opts))\n\t\tchkxer2(\"Zpotrs\", err)\n\n\t\t// Zporfs\n\t\t*srnamt = \"Zporfs\"\n\t\t*errt = fmt.Errorf(\"!upper && uplo != Lower: uplo=Unrecognized: /\")\n\t\terr = golapack.Zporfs('/', 0, 0, a.Off(0, 0).UpdateRows(1), af.Off(0, 0).UpdateRows(1), b.CMatrix(1, opts), x.CMatrix(1, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zporfs\", err)\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\terr = golapack.Zporfs(Upper, -1, 0, a.Off(0, 0).UpdateRows(1), af.Off(0, 0).UpdateRows(1), b.CMatrix(1, opts), x.CMatrix(1, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zporfs\", err)\n\t\t*errt = fmt.Errorf(\"nrhs < 0: nrhs=-1\")\n\t\terr = golapack.Zporfs(Upper, 0, -1, a.Off(0, 0).UpdateRows(1), af.Off(0, 0).UpdateRows(1), b.CMatrix(1, opts), x.CMatrix(1, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zporfs\", err)\n\t\t*errt = fmt.Errorf(\"a.Rows < max(1, n): a.Rows=1, n=2\")\n\t\terr = golapack.Zporfs(Upper, 2, 1, a.Off(0, 0).UpdateRows(1), af.Off(0, 0).UpdateRows(2), b.CMatrix(2, opts), x.CMatrix(2, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zporfs\", err)\n\t\t*errt = fmt.Errorf(\"af.Rows < max(1, n): af.Rows=1, n=2\")\n\t\terr = golapack.Zporfs(Upper, 2, 1, a.Off(0, 0).UpdateRows(2), af.Off(0, 0).UpdateRows(1), b.CMatrix(2, opts), x.CMatrix(2, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zporfs\", err)\n\t\t*errt = fmt.Errorf(\"b.Rows < max(1, n): b.Rows=1, n=2\")\n\t\terr = golapack.Zporfs(Upper, 2, 1, a.Off(0, 0).UpdateRows(2), af.Off(0, 0).UpdateRows(2), b.CMatrix(1, opts), x.CMatrix(2, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zporfs\", err)\n\t\t*errt = fmt.Errorf(\"x.Rows < max(1, n): x.Rows=1, n=2\")\n\t\terr = golapack.Zporfs(Upper, 2, 1, a.Off(0, 0).UpdateRows(2), af.Off(0, 0).UpdateRows(2), b.CMatrix(2, opts), x.CMatrix(1, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zporfs\", err)\n\n\t\t// Zpocon\n\t\t*srnamt = \"Zpocon\"\n\t\t*errt = fmt.Errorf(\"!upper && uplo != Lower: uplo=Unrecognized: /\")\n\t\t_, err = golapack.Zpocon('/', 0, a.Off(0, 0).UpdateRows(1), anrm, w, r)\n\t\tchkxer2(\"Zpocon\", err)\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\t_, err = golapack.Zpocon(Upper, -1, a.Off(0, 0).UpdateRows(1), anrm, w, r)\n\t\tchkxer2(\"Zpocon\", err)\n\t\t*errt = fmt.Errorf(\"a.Rows < max(1, n): a.Rows=1, n=2\")\n\t\t_, err = golapack.Zpocon(Upper, 2, a.Off(0, 0).UpdateRows(1), anrm, w, r)\n\t\tchkxer2(\"Zpocon\", err)\n\t\t*errt = fmt.Errorf(\"anorm < zero: anorm=-1\")\n\t\t_, err = golapack.Zpocon(Upper, 1, a.Off(0, 0).UpdateRows(1), -anrm, w, r)\n\t\tchkxer2(\"Zpocon\", err)\n\n\t\t// Zpoequ\n\t\t*srnamt = \"Zpoequ\"\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\t_, _, _, err = golapack.Zpoequ(-1, a.Off(0, 0).UpdateRows(1), r1)\n\t\tchkxer2(\"Zpoequ\", err)\n\t\t*errt = fmt.Errorf(\"a.Rows < max(1, n): a.Rows=1, n=2\")\n\t\t_, _, _, err = golapack.Zpoequ(2, a.Off(0, 0).UpdateRows(1), r1)\n\t\tchkxer2(\"Zpoequ\", err)\n\n\t\t// Test error exits of the routines that use the Cholesky\n\t\t// decomposition of a Hermitian positive definite packed matrix.\n\t} else if c2 == \"pp\" {\n\t\t// Zpptrf\n\t\t*srnamt = \"Zpptrf\"\n\t\t*errt = fmt.Errorf(\"!upper && uplo != Lower: uplo=Unrecognized: /\")\n\t\t_, err = golapack.Zpptrf('/', 0, a.CVector())\n\t\tchkxer2(\"Zpptrf\", err)\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\t_, err = golapack.Zpptrf(Upper, -1, a.CVector())\n\t\tchkxer2(\"Zpptrf\", err)\n\n\t\t// Zpptri\n\t\t*srnamt = \"Zpptri\"\n\t\t*errt = fmt.Errorf(\"!upper && uplo != Lower: uplo=Unrecognized: /\")\n\t\t_, err = golapack.Zpptri('/', 0, a.CVector())\n\t\tchkxer2(\"Zpptri\", err)\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\t_, err = golapack.Zpptri(Upper, -1, a.CVector())\n\t\tchkxer2(\"Zpptri\", err)\n\n\t\t// Zpptrs\n\t\t*srnamt = \"Zpptrs\"\n\t\t*errt = fmt.Errorf(\"!upper && uplo != Lower: uplo=Unrecognized: /\")\n\t\terr = golapack.Zpptrs('/', 0, 0, a.Off(0, 0).CVector(), b.CMatrix(1, opts))\n\t\tchkxer2(\"Zpptrs\", err)\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\terr = golapack.Zpptrs(Upper, -1, 0, a.Off(0, 0).CVector(), b.CMatrix(1, opts))\n\t\tchkxer2(\"Zpptrs\", err)\n\t\t*errt = fmt.Errorf(\"nrhs < 0: nrhs=-1\")\n\t\terr = golapack.Zpptrs(Upper, 0, -1, a.Off(0, 0).CVector(), b.CMatrix(1, opts))\n\t\tchkxer2(\"Zpptrs\", err)\n\t\t*errt = fmt.Errorf(\"b.Rows < max(1, n): b.Rows=1, n=2\")\n\t\terr = golapack.Zpptrs(Upper, 2, 1, a.Off(0, 0).CVector(), b.CMatrix(1, opts))\n\t\tchkxer2(\"Zpptrs\", err)\n\n\t\t// Zpprfs\n\t\t*srnamt = \"Zpprfs\"\n\t\t*errt = fmt.Errorf(\"!upper && uplo != Lower: uplo=Unrecognized: /\")\n\t\terr = golapack.Zpprfs('/', 0, 0, a.Off(0, 0).CVector(), af.Off(0, 0).CVector(), b.CMatrix(1, opts), x.CMatrix(1, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zpprfs\", err)\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\terr = golapack.Zpprfs(Upper, -1, 0, a.Off(0, 0).CVector(), af.Off(0, 0).CVector(), b.CMatrix(1, opts), x.CMatrix(1, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zpprfs\", err)\n\t\t*errt = fmt.Errorf(\"nrhs < 0: nrhs=-1\")\n\t\terr = golapack.Zpprfs(Upper, 0, -1, a.Off(0, 0).CVector(), af.Off(0, 0).CVector(), b.CMatrix(1, opts), x.CMatrix(1, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zpprfs\", err)\n\t\t*errt = fmt.Errorf(\"b.Rows < max(1, n): b.Rows=1, n=2\")\n\t\terr = golapack.Zpprfs(Upper, 2, 1, a.Off(0, 0).CVector(), af.Off(0, 0).CVector(), b.CMatrix(1, opts), x.CMatrix(2, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zpprfs\", err)\n\t\t*errt = fmt.Errorf(\"x.Rows < max(1, n): x.Rows=1, n=2\")\n\t\terr = golapack.Zpprfs(Upper, 2, 1, a.Off(0, 0).CVector(), af.Off(0, 0).CVector(), b.CMatrix(2, opts), x.CMatrix(1, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zpprfs\", err)\n\n\t\t// Zppcon\n\t\t*srnamt = \"Zppcon\"\n\t\t*errt = fmt.Errorf(\"!upper && uplo != Lower: uplo=Unrecognized: /\")\n\t\t_, err = golapack.Zppcon('/', 0, a.Off(0, 0).CVector(), anrm, w, r)\n\t\tchkxer2(\"Zppcon\", err)\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\t_, err = golapack.Zppcon(Upper, -1, a.Off(0, 0).CVector(), anrm, w, r)\n\t\tchkxer2(\"Zppcon\", err)\n\t\t*errt = fmt.Errorf(\"anorm < zero: anorm=-1\")\n\t\t_, err = golapack.Zppcon(Upper, 1, a.Off(0, 0).CVector(), -anrm, w, r)\n\t\tchkxer2(\"Zppcon\", err)\n\n\t\t// Zppequ\n\t\t*srnamt = \"Zppequ\"\n\t\t*errt = fmt.Errorf(\"!upper && uplo != Lower: uplo=Unrecognized: /\")\n\t\t_, _, _, err = golapack.Zppequ('/', 0, a.Off(0, 0).CVector(), r1)\n\t\tchkxer2(\"Zppequ\", err)\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\t_, _, _, err = golapack.Zppequ(Upper, -1, a.Off(0, 0).CVector(), r1)\n\t\tchkxer2(\"Zppequ\", err)\n\n\t\t// Test error exits of the routines that use the Cholesky\n\t\t// decomposition of a Hermitian positive definite band matrix.\n\t} else if c2 == \"pb\" {\n\t\t// Zpbtrf\n\t\t*srnamt = \"Zpbtrf\"\n\t\t*errt = fmt.Errorf(\"(uplo != Upper) && (uplo != Lower): uplo=Unrecognized: /\")\n\t\t_, err = golapack.Zpbtrf('/', 0, 0, a.Off(0, 0).UpdateRows(1))\n\t\tchkxer2(\"Zpbtrf\", err)\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\t_, err = golapack.Zpbtrf(Upper, -1, 0, a.Off(0, 0).UpdateRows(1))\n\t\tchkxer2(\"Zpbtrf\", err)\n\t\t*errt = fmt.Errorf(\"kd < 0: kd=-1\")\n\t\t_, err = golapack.Zpbtrf(Upper, 1, -1, a.Off(0, 0).UpdateRows(1))\n\t\tchkxer2(\"Zpbtrf\", err)\n\t\t*errt = fmt.Errorf(\"ab.Rows < kd+1: ab.Rows=1, kd=1\")\n\t\t_, err = golapack.Zpbtrf(Upper, 2, 1, a.Off(0, 0).UpdateRows(1))\n\t\tchkxer2(\"Zpbtrf\", err)\n\n\t\t// Zpbtf2\n\t\t*srnamt = \"Zpbtf2\"\n\t\t*errt = fmt.Errorf(\"!upper && uplo != Lower: uplo=Unrecognized: /\")\n\t\t_, err = golapack.Zpbtf2('/', 0, 0, a.Off(0, 0).UpdateRows(1))\n\t\tchkxer2(\"Zpbtf2\", err)\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\t_, err = golapack.Zpbtf2(Upper, -1, 0, a.Off(0, 0).UpdateRows(1))\n\t\tchkxer2(\"Zpbtf2\", err)\n\t\t*errt = fmt.Errorf(\"kd < 0: kd=-1\")\n\t\t_, err = golapack.Zpbtf2(Upper, 1, -1, a.Off(0, 0).UpdateRows(1))\n\t\tchkxer2(\"Zpbtf2\", err)\n\t\t*errt = fmt.Errorf(\"ab.Rows < kd+1: ab.Rows=1, kd=1\")\n\t\t_, err = golapack.Zpbtf2(Upper, 2, 1, a.Off(0, 0).UpdateRows(1))\n\t\tchkxer2(\"Zpbtf2\", err)\n\n\t\t// Zpbtrs\n\t\t*srnamt = \"Zpbtrs\"\n\t\t*errt = fmt.Errorf(\"!upper && uplo != Lower: uplo=Unrecognized: /\")\n\t\terr = golapack.Zpbtrs('/', 0, 0, 0, a.Off(0, 0).UpdateRows(1), b.CMatrix(1, opts))\n\t\tchkxer2(\"Zpbtrs\", err)\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\terr = golapack.Zpbtrs(Upper, -1, 0, 0, a.Off(0, 0).UpdateRows(1), b.CMatrix(1, opts))\n\t\tchkxer2(\"Zpbtrs\", err)\n\t\t*errt = fmt.Errorf(\"kd < 0: kd=-1\")\n\t\terr = golapack.Zpbtrs(Upper, 1, -1, 0, a.Off(0, 0).UpdateRows(1), b.CMatrix(1, opts))\n\t\tchkxer2(\"Zpbtrs\", err)\n\t\t*errt = fmt.Errorf(\"nrhs < 0: nrhs=-1\")\n\t\terr = golapack.Zpbtrs(Upper, 0, 0, -1, a.Off(0, 0).UpdateRows(1), b.CMatrix(1, opts))\n\t\tchkxer2(\"Zpbtrs\", err)\n\t\t*errt = fmt.Errorf(\"ab.Rows < kd+1: ab.Rows=1, kd=1\")\n\t\terr = golapack.Zpbtrs(Upper, 2, 1, 1, a.Off(0, 0).UpdateRows(1), b.CMatrix(1, opts))\n\t\tchkxer2(\"Zpbtrs\", err)\n\t\t*errt = fmt.Errorf(\"b.Rows < max(1, n): b.Rows=1, n=2\")\n\t\terr = golapack.Zpbtrs(Upper, 2, 0, 1, a.Off(0, 0).UpdateRows(1), b.CMatrix(1, opts))\n\t\tchkxer2(\"Zpbtrs\", err)\n\n\t\t// Zpbrfs\n\t\t*srnamt = \"Zpbrfs\"\n\t\t*errt = fmt.Errorf(\"!upper && uplo != Lower: uplo=Unrecognized: /\")\n\t\terr = golapack.Zpbrfs('/', 0, 0, 0, a.Off(0, 0).UpdateRows(1), af.Off(0, 0).UpdateRows(1), b.CMatrix(1, opts), x.CMatrix(1, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zpbrfs\", err)\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\terr = golapack.Zpbrfs(Upper, -1, 0, 0, a.Off(0, 0).UpdateRows(1), af.Off(0, 0).UpdateRows(1), b.CMatrix(1, opts), x.CMatrix(1, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zpbrfs\", err)\n\t\t*errt = fmt.Errorf(\"kd < 0: kd=-1\")\n\t\terr = golapack.Zpbrfs(Upper, 1, -1, 0, a.Off(0, 0).UpdateRows(1), af.Off(0, 0).UpdateRows(1), b.CMatrix(1, opts), x.CMatrix(1, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zpbrfs\", err)\n\t\t*errt = fmt.Errorf(\"nrhs < 0: nrhs=-1\")\n\t\terr = golapack.Zpbrfs(Upper, 0, 0, -1, a.Off(0, 0).UpdateRows(1), af.Off(0, 0).UpdateRows(1), b.CMatrix(1, opts), x.CMatrix(1, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zpbrfs\", err)\n\t\t*errt = fmt.Errorf(\"ab.Rows < kd+1: ab.Rows=1, kd=1\")\n\t\terr = golapack.Zpbrfs(Upper, 2, 1, 1, a.Off(0, 0).UpdateRows(1), af.Off(0, 0).UpdateRows(2), b.CMatrix(2, opts), x.CMatrix(2, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zpbrfs\", err)\n\t\t*errt = fmt.Errorf(\"afb.Rows < kd+1: afb.Rows=1, kd=1\")\n\t\terr = golapack.Zpbrfs(Upper, 2, 1, 1, a.Off(0, 0).UpdateRows(2), af.Off(0, 0).UpdateRows(1), b.CMatrix(2, opts), x.CMatrix(2, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zpbrfs\", err)\n\t\t*errt = fmt.Errorf(\"b.Rows < max(1, n): b.Rows=1, n=2\")\n\t\terr = golapack.Zpbrfs(Upper, 2, 0, 1, a.Off(0, 0).UpdateRows(1), af.Off(0, 0).UpdateRows(1), b.CMatrix(1, opts), x.CMatrix(2, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zpbrfs\", err)\n\t\t*errt = fmt.Errorf(\"x.Rows < max(1, n): x.Rows=1, n=2\")\n\t\terr = golapack.Zpbrfs(Upper, 2, 0, 1, a.Off(0, 0).UpdateRows(1), af.Off(0, 0).UpdateRows(1), b.CMatrix(2, opts), x.CMatrix(1, opts), r1, r2, w, r)\n\t\tchkxer2(\"Zpbrfs\", err)\n\n\t\t// Zpbcon\n\t\t*srnamt = \"Zpbcon\"\n\t\t*errt = fmt.Errorf(\"!upper && uplo != Lower: uplo=Unrecognized: /\")\n\t\t_, err = golapack.Zpbcon('/', 0, 0, a.Off(0, 0).UpdateRows(1), anrm, w, r)\n\t\tchkxer2(\"Zpbcon\", err)\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\t_, err = golapack.Zpbcon(Upper, -1, 0, a.Off(0, 0).UpdateRows(1), anrm, w, r)\n\t\tchkxer2(\"Zpbcon\", err)\n\t\t*errt = fmt.Errorf(\"kd < 0: kd=-1\")\n\t\t_, err = golapack.Zpbcon(Upper, 1, -1, a.Off(0, 0).UpdateRows(1), anrm, w, r)\n\t\tchkxer2(\"Zpbcon\", err)\n\t\t*errt = fmt.Errorf(\"ab.Rows < kd+1: ab.Rows=1, kd=1\")\n\t\t_, err = golapack.Zpbcon(Upper, 2, 1, a.Off(0, 0).UpdateRows(1), anrm, w, r)\n\t\tchkxer2(\"Zpbcon\", err)\n\t\t*errt = fmt.Errorf(\"anorm < zero: anorm=-1\")\n\t\t_, err = golapack.Zpbcon(Upper, 1, 0, a.Off(0, 0).UpdateRows(1), -anrm, w, r)\n\t\tchkxer2(\"Zpbcon\", err)\n\n\t\t// Zpbequ\n\t\t*srnamt = \"Zpbequ\"\n\t\t*errt = fmt.Errorf(\"!upper && uplo != Lower: uplo=Unrecognized: /\")\n\t\t_, _, _, err = golapack.Zpbequ('/', 0, 0, a.Off(0, 0).UpdateRows(1), r1)\n\t\tchkxer2(\"Zpbequ\", err)\n\t\t*errt = fmt.Errorf(\"n < 0: n=-1\")\n\t\t_, _, _, err = golapack.Zpbequ(Upper, -1, 0, a.Off(0, 0).UpdateRows(1), r1)\n\t\tchkxer2(\"Zpbequ\", err)\n\t\t*errt = fmt.Errorf(\"kd < 0: kd=-1\")\n\t\t_, _, _, err = golapack.Zpbequ(Upper, 1, -1, a.Off(0, 0).UpdateRows(1), r1)\n\t\tchkxer2(\"Zpbequ\", err)\n\t\t*errt = fmt.Errorf(\"ab.Rows < kd+1: ab.Rows=1, kd=1\")\n\t\t_, _, _, err = golapack.Zpbequ(Upper, 2, 1, a.Off(0, 0).UpdateRows(1), r1)\n\t\tchkxer2(\"Zpbequ\", err)\n\t}\n\n\t// Print a summary line.\n\t// alaesm(path, *ok)\n\n\tif !(*ok) {\n\t\tt.Fail()\n\t}\n}", "func VBLENDPS(i, mxy, xy, xy1 operand.Op) { ctx.VBLENDPS(i, mxy, xy, xy1) }", "func Zvphas(input DSPSplitComplex, inputStride int, output []float32, outputStride int) {\n\tvar srcC C.DSPSplitComplex\n\tsrcC.realp = (*C.float)(&input.Real[0])\n\tsrcC.imagp = (*C.float)(&input.Imag[0])\n\tC.vDSP_zvphas(&srcC, C.vDSP_Stride(inputStride), (*C.float)(&output[0]), C.vDSP_Stride(outputStride), C.vDSP_Length(len(output)))\n}", "func sub(a, b Poly) Poly {\n\tvar c Poly\n\tfor i := 0; i < n; i++ {\n\t\tc[i] = a[i] - b[i]\n\t}\n\treturn c\n}", "func coeffsToOctave(n int, coeffs []float64) string {\n\toct := make([]string, n)\n\ti := n\n\tfor r := 0; r < n; r++ {\n\t\trow := make([]string, n)\n\t\tfor c := 0; c < n; c++ {\n\t\t\tswitch {\n\t\t\tcase c < r:\n\t\t\t\t// Not in upper triangle\n\t\t\t\trow[c] = \"0\"\n\t\t\tcase c == r:\n\t\t\t\t// Linear term\n\t\t\t\trow[c] = fmt.Sprint(coeffs[c])\n\t\t\tdefault:\n\t\t\t\t// Quadratic term\n\t\t\t\trow[c] = fmt.Sprint(coeffs[i])\n\t\t\t\ti++\n\t\t\t}\n\t\t}\n\t\toct[r] = strings.Join(row, \" \")\n\t}\n\treturn \"[\" + strings.Join(oct, \" ; \") + \"]\"\n}", "func (o Orbit) H() []float64 {\n\treturn Cross(o.RV())\n}", "func decompressPoly(c []byte, d int) Poly {\n\tvar p Poly\n\tswitch d {\n\tcase 3:\n\t\tvar t [8]uint16\n\t\tid := 0\n\t\tfor i := 0; i < n/8; i++ {\n\t\t\tt[0] = uint16(c[id])\n\t\t\tt[1] = uint16(c[id]) >> 3\n\t\t\tt[2] = (uint16(c[id]) >> 6) | (uint16(c[id+1]) << 2)\n\t\t\tt[3] = uint16(c[id+1]) >> 1\n\t\t\tt[4] = uint16(c[id+1]) >> 4\n\t\t\tt[5] = (uint16(c[id+1]) >> 7) | (uint16(c[id+2]) << 1)\n\t\t\tt[6] = uint16(c[id+2]) >> 2\n\t\t\tt[7] = uint16(c[id+2]) >> 5\n\n\t\t\tfor j := 0; j < 8; j++ {\n\t\t\t\tp[8*i+j] = int16(((1 << 2) +\n\t\t\t\t\tuint32(t[j]&((1<<3)-1))*uint32(q)) >> 3)\n\t\t\t}\n\t\t\tid += 3\n\t\t}\n\tcase 4:\n\t\tfor i := 0; i < n/2; i++ {\n\t\t\tp[2*i] = int16(((1 << 3) +\n\t\t\t\tuint32(c[i]&15)*uint32(q)) >> 4)\n\t\t\tp[2*i+1] = int16(((1 << 3) +\n\t\t\t\tuint32(c[i]>>4)*uint32(q)) >> 4)\n\t\t}\n\tcase 5:\n\t\tvar t [8]uint16\n\t\tid := 0\n\t\tfor i := 0; i < n/8; i++ {\n\t\t\tt[0] = uint16(c[id])\n\t\t\tt[1] = (uint16(c[id]) >> 5) | (uint16(c[id+1] << 3))\n\t\t\tt[2] = uint16(c[id+1]) >> 2\n\t\t\tt[3] = (uint16(c[id+1]) >> 7) | (uint16(c[id+2] << 1))\n\t\t\tt[4] = (uint16(c[id+2]) >> 4) | (uint16(c[id+3] << 4))\n\t\t\tt[5] = uint16(c[id+3]) >> 1\n\t\t\tt[6] = (uint16(c[id+3]) >> 6) | (uint16(c[id+4] << 2))\n\t\t\tt[7] = uint16(c[id+4]) >> 3\n\n\t\t\tfor j := 0; j < 8; j++ {\n\t\t\t\tp[8*i+j] = int16(((1 << 4) +\n\t\t\t\t\tuint32(t[j]&((1<<5)-1))*uint32(q)) >> 5)\n\t\t\t}\n\t\t\tid += 5\n\t\t}\n\n\tcase 6:\n\t\tvar t [4]uint16\n\t\tid := 0\n\t\tfor i := 0; i < n/4; i++ {\n\t\t\tt[0] = uint16(c[id])\n\t\t\tt[1] = (uint16(c[id]) >> 6) | (uint16(c[id+1] << 2))\n\t\t\tt[2] = (uint16(c[id+1]) >> 4) | (uint16(c[id+2]) << 4)\n\t\t\tt[3] = uint16(c[id+2]) >> 2\n\n\t\t\tfor j := 0; j < 4; j++ {\n\t\t\t\tp[4*i+j] = int16(((1 << 5) +\n\t\t\t\t\tuint32(t[j]&((1<<6)-1))*uint32(q)) >> 6)\n\t\t\t}\n\t\t\tid += 3\n\t\t}\n\n\tcase 10:\n\t\tvar t [4]uint16\n\t\tid := 0\n\t\tfor i := 0; i < n/4; i++ {\n\t\t\tt[0] = uint16(c[id]) | (uint16(c[id+1]) << 8)\n\t\t\tt[1] = (uint16(c[id+1]) >> 2) | (uint16(c[id+2]) << 6)\n\t\t\tt[2] = (uint16(c[id+2]) >> 4) | (uint16(c[id+3]) << 4)\n\t\t\tt[3] = (uint16(c[id+3]) >> 6) | (uint16(c[id+4]) << 2)\n\n\t\t\tfor j := 0; j < 4; j++ {\n\t\t\t\tp[4*i+j] = int16(((1 << 9) +\n\t\t\t\t\tuint32(t[j]&((1<<10)-1))*uint32(q)) >> 10)\n\t\t\t}\n\n\t\t\tid += 5\n\t\t}\n\tcase 11:\n\t\tvar t [8]uint16\n\t\tid := 0\n\t\tfor i := 0; i < n/8; i++ {\n\t\t\tt[0] = uint16(c[id]) | (uint16(c[id+1]) << 8)\n\t\t\tt[1] = (uint16(c[id+1]) >> 3) | (uint16(c[id+2]) << 5)\n\t\t\tt[2] = (uint16(c[id+2]) >> 6) | (uint16(c[id+3]) << 2) | (uint16(c[id+4]) << 10)\n\t\t\tt[3] = (uint16(c[id+4]) >> 1) | (uint16(c[id+5]) << 7)\n\t\t\tt[4] = (uint16(c[id+5]) >> 4) | (uint16(c[id+6]) << 4)\n\t\t\tt[5] = (uint16(c[id+6]) >> 7) | (uint16(c[id+7]) << 1) | (uint16(c[id+8]) << 9)\n\t\t\tt[6] = (uint16(c[id+8]) >> 2) | (uint16(c[id+9]) << 6)\n\t\t\tt[7] = (uint16(c[id+9]) >> 5) | (uint16(c[id+10]) << 3)\n\n\t\t\tfor j := 0; j < 8; j++ {\n\t\t\t\tp[8*i+j] = int16(((1 << 10) +\n\t\t\t\t\tuint32(t[j]&((1<<11)-1))*uint32(q)) >> 11)\n\t\t\t}\n\n\t\t\tid += 11\n\t\t}\n\tdefault:\n\t\tpanic(\"bad d value\")\n\t}\n\treturn p\n}", "func ClipControl(origin uint32, depth uint32) {\n\tsyscall.Syscall(gpClipControl, 2, uintptr(origin), uintptr(depth), 0)\n}", "func (c *CPU) Cp_r(r Reg8) {\n\tget, _ := c.getReg8(r)\n\tvalR := get()\n\tsub := c.A - valR\n\n\t// flags\n\t// Z\n\tif sub == 0 {\n\t\tc.setFlagZ(true)\n\t} else {\n\t\tc.setFlagZ(false)\n\t}\n\t// N = 1\n\tc.setFlagN(true)\n\t// H\n\tc.setFlagH(subHalfCarriesByte(c.A, valR, false))\n\t// C\n\tc.setFlagC(subUnderflowsByte(c.A, valR, false))\n}", "func (v Vect) c() C.cpVect {\n\tvar cp C.cpVect\n\tcp.x = C.cpFloat(v.X)\n\tcp.y = C.cpFloat(v.Y)\n\treturn cp\n}", "func (n *NoOpVectorizer) Corpi(ctx context.Context, corpi []string) ([]float32, error) {\n\treturn []float32{}, nil\n}", "func CMOVWCC(mr, r operand.Op) { ctx.CMOVWCC(mr, r) }", "func VectorC(tst *testing.T, msg string, tol float64, res, correct []complex128) {\n\tzero := false\n\tif len(correct) == 0 {\n\t\tzero = true\n\t} else {\n\t\tif len(res) != len(correct) {\n\t\t\tPrintFail(\"%s error\\n\", msg)\n\t\t\ttst.Errorf(\"%s failed: res and correct matrices have different lengths. %d != %d\", msg, len(res), len(correct))\n\t\t\treturn\n\t\t}\n\t}\n\tvar diff, maxdiff float64\n\tvar diffz, maxdiffz float64\n\tfor i := 0; i < len(res); i++ {\n\t\tif zero {\n\t\t\tdiff = math.Abs(real(res[i]))\n\t\t\tdiffz = math.Abs(imag(res[i]))\n\t\t} else {\n\t\t\tdiff = math.Abs(real(res[i]) - real(correct[i]))\n\t\t\tdiffz = math.Abs(imag(res[i]) - imag(correct[i]))\n\t\t}\n\t\tif diff > maxdiff {\n\t\t\tmaxdiff = diff\n\t\t}\n\t\tif diffz > maxdiffz {\n\t\t\tmaxdiffz = diffz\n\t\t}\n\t}\n\tif maxdiff > tol || maxdiffz > tol {\n\t\tPrintFail(\"%s error |maxdiff| = %g, |maxdiffz| = %g\\n\", msg, maxdiff, maxdiffz)\n\t\ttst.Errorf(\"%s failed with |maxdiff| = %g, |maxdiffz| = %g\", msg, maxdiff, maxdiffz)\n\t\treturn\n\t}\n\tPrintOk(msg)\n}", "func (o *Orbit) Elements() (a, e, i, Ω, ω, ν, λ, tildeω, u float64) {\n\tif o.hashValid() {\n\t\treturn o.ccha, o.cche, o.cchi, o.cchΩ, o.cchω, o.cchν, o.cchλ, o.cchtildeω, o.cchu\n\t}\n\t// Algorithm from Vallado, 4th edition, page 113 (RV2COE).\n\thVec := Cross(o.rVec, o.vVec)\n\tn := Cross([]float64{0, 0, 1}, hVec)\n\tv := Norm(o.vVec)\n\tr := Norm(o.rVec)\n\tξ := (v*v)/2 - o.Origin.μ/r\n\ta = -o.Origin.μ / (2 * ξ)\n\teVec := make([]float64, 3, 3)\n\tfor i := 0; i < 3; i++ {\n\t\teVec[i] = ((v*v-o.Origin.μ/r)*o.rVec[i] - Dot(o.rVec, o.vVec)*o.vVec[i]) / o.Origin.μ\n\t}\n\te = Norm(eVec)\n\t// Prevent nil values for e\n\tif e < eccentricityε {\n\t\te = eccentricityε\n\t}\n\ti = math.Acos(hVec[2] / Norm(hVec))\n\tif i < angleε {\n\t\ti = angleε\n\t}\n\tω = math.Acos(Dot(n, eVec) / (Norm(n) * e))\n\tif math.IsNaN(ω) {\n\t\tω = 0\n\t}\n\tif eVec[2] < 0 {\n\t\tω = 2*math.Pi - ω\n\t}\n\tΩ = math.Acos(n[0] / Norm(n))\n\tif math.IsNaN(Ω) {\n\t\tΩ = angleε\n\t}\n\tif n[1] < 0 {\n\t\tΩ = 2*math.Pi - Ω\n\t}\n\tcosν := Dot(eVec, o.rVec) / (e * r)\n\tif abscosν := math.Abs(cosν); abscosν > 1 && floats.EqualWithinAbs(abscosν, 1, 1e-12) {\n\t\t// Welcome to the edge case which took about 1.5 hours of my time.\n\t\tcosν = Sign(cosν) // GTFO NaN!\n\t}\n\tν = math.Acos(cosν)\n\tif math.IsNaN(ν) {\n\t\tν = 0\n\t}\n\tif Dot(o.rVec, o.vVec) < 0 {\n\t\tν = 2*math.Pi - ν\n\t}\n\t// Fix rounding errors.\n\ti = math.Mod(i, 2*math.Pi)\n\tΩ = math.Mod(Ω, 2*math.Pi)\n\tω = math.Mod(ω, 2*math.Pi)\n\tν = math.Mod(ν, 2*math.Pi)\n\tλ = math.Mod(ω+Ω+ν, 2*math.Pi)\n\ttildeω = math.Mod(ω+Ω, 2*math.Pi)\n\tif e < eccentricityε {\n\t\t// Circular\n\t\tu = math.Acos(Dot(n, o.rVec) / (Norm(n) * r))\n\t} else {\n\t\tu = math.Mod(ν+ω, 2*math.Pi)\n\t}\n\t// Cache values\n\to.ccha = a\n\to.cche = e\n\to.cchi = i\n\to.cchΩ = Ω\n\to.cchω = ω\n\to.cchν = ν\n\to.cchλ = λ\n\to.cchtildeω = tildeω\n\to.cchu = u\n\to.computeHash()\n\treturn\n}", "func (b Bounds3) Corner(i int) Point3 {\n\tvar pX, pY, pZ float64\n\tif i&1 != 0 {\n\t\tpX = b.pMax.X\n\t} else {\n\t\tpX = b.pMin.X\n\t}\n\n\tif i&2 != 0 {\n\t\tpY = b.pMax.Y\n\t} else {\n\t\tpY = b.pMin.Y\n\t}\n\n\tif i&4 != 0 {\n\t\tpZ = b.pMax.Z\n\t} else {\n\t\tpZ = b.pMin.Z\n\t}\n\n\treturn Point3{X: pX, Y: pY, Z: pZ}\n}", "func (xyz XYZ) CIELab(ref XYZ) CIELab {\n\tX := xyz.X / ref.X\n\tY := xyz.Y / ref.Y\n\tZ := xyz.Z / ref.Z\n\n\tif X > 0.008856 {\n\t\tX = math.Pow(X, (1.0 / 3))\n\t} else {\n\t\tX = (7.787 * X) + (16.0 / 116)\n\t}\n\n\tif Y > 0.008856 {\n\t\tY = math.Pow(Y, (1.0 / 3))\n\t} else {\n\t\tY = (7.787 * Y) + (16.0 / 116)\n\t}\n\n\tif Z > 0.008856 {\n\t\tZ = math.Pow(Z, (1.0 / 3))\n\t} else {\n\t\tZ = (7.787 * Z) + (16.0 / 116)\n\t}\n\n\treturn CIELab{\n\t\tL: (116.0 * Y) - 16,\n\t\tA: 500.0 * (X - Y),\n\t\tB: 200.0 * (Y - Z),\n\t}\n}", "func getcondprop(x,y int, dots []lib.Dot, dim int) float32{\n\tif len(dots) < 1{\n\t\treturn 0\n\t\treturn 0\n\t}\n\tcounty := 0\n\tcountxy := 0\n\tfor i:=0; i<len(dots); i++{\n\t\tif int(dots[i].Value) == y{\n\t\t\tcounty++\n\t\t\tif dots[i].Corordinate[dim-1] == x{\n\t\t\t\tcountxy++\n\t\t\t}\n\t\t}\n\t}\n\t\n\treturn float32(countxy)/float32(county)\n}", "func (c *ControlPlaneClient) Get(ctx context.Context, location, name string) (*[]cloud.ControlPlaneInfo, error) {\n\treturn c.internal.Get(ctx, location, name)\n}", "func Linearize() {}", "func (T triangle) rasterize( C canvas) {\n\tmask:=make([][]bool,C.yres,C.yres)\n\tfor i := 0; i < C.yres; i++ {\n\t\tmaskpre:=make([]bool,C.xres,C.xres )\n\t\tmask[i]=maskpre\n\t}\n\tp0:=[2]float64{T.p0.x/T.p0.z*C.res,T.p0.y/T.p0.z*C.res}\n\tp1:=[2]float64{T.p1.x/T.p1.z*C.res,T.p1.y/T.p1.z*C.res}\n\tp2:=[2]float64{T.p2.x/T.p2.z*C.res,T.p2.y/T.p2.z*C.res}\n\tedges:=[3][2][2]float64{[2][2]float64{p0,p1},[2][2]float64{p1,p2},[2][2]float64{p2,p0}}\n\n\tminy,maxy:=2147483647,0\n\tfor _,edge := range edges {\n\t\tif edge[0][1]>edge[1][1] {\n\t\t\tedge[0],edge[1]=edge[1],edge[0]\n\t\t}\n\t\ty0:=int( edge[0][1]-0.5)-C.y0\n\t\ty1:=int( edge[1][1]-0.5)-C.y0\n\t\tif y0 < 0 {\n\t\t\ty0=0\n\t\t} else if y0 >= C.yres {\n\t\t\ty0=C.yres-1\n\t\t}\n\t\tif y1 <0 {\n\t\t\ty1=0\n\t\t} else if y1 >= C.yres {\n\t\t\ty1=C.yres-1\n\t\t}\n\t\tif y0<miny {\n\t\t\tminy=y0\n\t\t}\n\t\tif y1>maxy {\n\t\t\tmaxy=y1\n\t\t}\n\t\tfor i := y0; i <= y1; i++ {\n\t\t\tfloati:=float64(i+C.y0)+0.5\n\t \t\tslopeinv:= (edge[0][0]-edge[1][0])/(edge[0][1]-edge[1][1])\n\t\t\tcrosx:=edge[0][0]+slopeinv*(floati-edge[0][1])\n\t\t\txindex:=int(crosx+0.5)-C.x0\n\t\t\tif xindex<C.xres {\n\t\t\t\tif xindex>=0 {\n\t\t\t\t\tmask[i][xindex]= !mask[i][xindex]\n\t\t\t\t} else{\n\t\t\t\t\tmask[i][0]= !mask[i][0]\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor i :=miny ; i < maxy ; i++ {\n\t\tinside:=false\n\t\tfor j := 0; j < C.xres; j++ {\n\t\t\tif mask[i][j]{\n\t\t\t\tinside= !inside\n\t\t\t\tif !inside{\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\tif inside {\n\t\t\t\tz:=T.p0dotn/T.n.dot(vec3{float64(j+C.x0)/C.res,float64(i+C.y0)/C.res,1.})\n\t\t\t\tif z<C.z[i][j] {\n\t\t\t\t\tC.z[i][j]=z\n\t\t\t\t\tC.pic[i][j]=T.color\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "func (b Bounds3) Offset(p Point3) Vec3 {\n\to := p.SubtractP(b.pMin)\n\tif b.pMax.X > b.pMin.X {\n\t\to.X /= b.pMax.X - b.pMin.X\n\t}\n\tif b.pMax.Y > b.pMin.Y {\n\t\to.Y /= b.pMax.Y - b.pMin.Y\n\t}\n\tif b.pMax.Z > b.pMin.Z {\n\t\to.Z /= b.pMax.Z - b.pMin.Z\n\t}\n\treturn o\n}", "func (c *CurveOperations) RecoverCurveCoefficients3(cparams *ProjectiveCurveParameters, coefEq *CurveCoefficientsEquiv) {\n\tvar op = c.Params.Op\n\n\top.Add(&cparams.A, &coefEq.A, &coefEq.C)\n\t// cparams.A = 2*(A+2C+A-2C) = 4A\n\top.Add(&cparams.A, &cparams.A, &cparams.A)\n\t// cparams.C = (A+2C-A+2C) = 4C\n\top.Sub(&cparams.C, &coefEq.A, &coefEq.C)\n\treturn\n}", "func clip(x, a, b int) int {\n\tif x < a {\n\t\treturn a\n\t}\n\tif x > b-1 {\n\t\treturn b - 1\n\t}\n\treturn x\n}", "func (c ConvexPolytope) Mesh() *Mesh {\n\tm := NewMesh()\n\tepsilon := c.spatialEpsilon()\n\tnorms := make([]float64, len(c))\n\tfor i, l := range c {\n\t\tnorms[i] = l.Normal.Norm()\n\t}\n\tfor i1 := 0; i1 < len(c); i1++ {\n\t\tvertices := []Coord{}\n\t\tfor i2 := 0; i2 < len(c); i2++ {\n\t\t\tif i2 == i1 {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tvertex, found := c.vertex(i1, i2, norms, epsilon)\n\t\t\tif found {\n\t\t\t\tvertices = append(vertices, vertex)\n\t\t\t}\n\t\t}\n\t\tif len(vertices) > 1 {\n\t\t\taddConvexFace(m, vertices, c[i1].Normal)\n\t\t}\n\t}\n\n\t// Sometimes more than three planes intersect, in\n\t// which case a bunch of nearly duplicate faces are\n\t// created.\n\tm = m.Repair(epsilon)\n\n\t// Remove zero-length segments.\n\tm.Iterate(func(s *Segment) {\n\t\tif s[0] == s[1] {\n\t\t\tm.Remove(s)\n\t\t}\n\t})\n\n\treturn m\n}", "func (idx *Index) WOFPolygonToPolyclip(p *geo.Polygon) (*polyclip.Polygon, error) {\n\n\tpoly := new(polyclip.Polygon)\n\tcontour := new(polyclip.Contour)\n\n\tfor _, _pt := range p.Points() {\n\n\t\tpt := polyclip.Point{\n\t\t\tX: _pt.Lng(),\n\t\t\tY: _pt.Lat(),\n\t\t}\n\n\t\tcontour.Add(pt)\n\t}\n\n\tpoly.Add(*contour)\n\treturn poly, nil\n}", "func (c *Config) ControlPlanes() ReplicaList {\n\treturn c.controlPlanes\n}", "func calculateSet(a args) []int {\n\n\tc := make([]int, a.w*a.h)\n\trSize := (a.w * a.h) / a.nRoutines\n\n\tvar wg sync.WaitGroup\n\twg.Add(a.nRoutines)\n\n\tfor r := 0; r < a.nRoutines; r++ {\n\t\tgo func(id int, wg *sync.WaitGroup) {\n\n\t\t\tdx := (a.x2 - a.x1) / float64(a.w)\n\t\t\tdy := (a.y2 - a.y1) / float64(a.h)\n\n\t\t\tstart := id * rSize\n\t\t\tend := (id + 1) * rSize\n\t\t\tif end > len(c) {\n\t\t\t\tend = len(c)\n\t\t\t}\n\n\t\t\tfor i := start; i < end; i++ {\n\t\t\t\t// complex part of the equation\n\t\t\t\tcReal := (float64(i%a.w) * dx) + a.x1\n\t\t\t\tcImag := (float64(i/a.w) * dy) + a.y1\n\t\t\t\tzReal := 0.0\n\t\t\t\tzImag := 0.0\n\t\t\t\titer := 0\n\n\t\t\t\tsquared := func(x, y float64) float64 {\n\t\t\t\t\treturn (x * x) + (y * y)\n\t\t\t\t}\n\n\t\t\t\tfor squared(zReal, zImag) <= a.threshold && iter < a.nIter {\n\t\t\t\t\tnewR := (zReal * zReal) - (zImag * zImag) + cReal\n\t\t\t\t\tnewI := (2.0 * zReal * zImag) + cImag\n\t\t\t\t\tzReal = newR\n\t\t\t\t\tzImag = newI\n\t\t\t\t\titer++\n\t\t\t\t}\n\t\t\t\tc[i] = iter\n\t\t\t}\n\t\t\twg.Done()\n\t\t}(r, &wg)\n\t}\n\twg.Wait()\n\treturn c\n}", "func CollatzConjecture(n int) []int {\n\tsequence := make([]int, 0)\n\tcurrent := n\n\tfor current > 1 {\n\t\tsequence = append(sequence, current)\n\t\tif current%2 == 0 {\n\t\t\tcurrent = current / 2\n\t\t} else {\n\t\t\tcurrent = 3*current + 1\n\t\t}\n\t}\n\tsequence = append(sequence, current)\n\treturn sequence\n}", "func (m *World) LocalClusteringCoeffFor(n graph.Node) float64 {\n\treturn m.localClusteringCoeffFor(m.toInt[n.String()])\n}", "func (p plane) splitPolygon(poly polygon, coplanarFront, coplanarBack, front, back *[]polygon) {\n\tconst (\n\t\tcoplanarType = 0\n\t\tfrontType = 1\n\t\tbackType = 2\n\t\tspanningType = 3\n\t)\n\tpolygonType := 0\n\tvar types []int\n\tfor _, v := range poly.vertices {\n\t\tt := p.normal.dot(v.pos) - p.w\n\t\tvar pType int\n\t\tif t < -planeEpsilon {\n\t\t\tpType = backType\n\t\t} else {\n\t\t\tif t > planeEpsilon {\n\t\t\t\tpType = frontType\n\t\t\t} else {\n\t\t\t\tpType = coplanarType\n\t\t\t}\n\t\t}\n\t\tpolygonType |= pType\n\t\ttypes = append(types, pType)\n\t}\n\tswitch polygonType {\n\tcase coplanarType:\n\t\tif p.normal.dot(poly.plane.normal) > 0 {\n\t\t\t*coplanarFront = append(*coplanarFront, poly)\n\t\t} else {\n\t\t\t*coplanarBack = append(*coplanarBack, poly)\n\t\t}\n\tcase frontType:\n\t\t*front = append(*front, poly)\n\tcase backType:\n\t\t*back = append(*back, poly)\n\tcase spanningType:\n\t\tvar f, b []vertex\n\t\tfor i, vi := range poly.vertices {\n\t\t\tj := (i + 1) % len(poly.vertices) // next vertex of polygon (wraps over)\n\t\t\tti := types[i]\n\t\t\ttj := types[j]\n\t\t\tvj := poly.vertices[j]\n\t\t\tif ti != backType {\n\t\t\t\tf = append(f, vi)\n\t\t\t}\n\t\t\tif ti != frontType {\n\t\t\t\tb = append(b, vi)\n\t\t\t}\n\t\t\tif (ti | tj) == spanningType {\n\t\t\t\tt := (p.w - p.normal.dot(vi.pos)) / p.normal.dot(vj.pos.minus(vi.pos))\n\t\t\t\tv := vi.interpolated(vj, t)\n\t\t\t\tf = append(f, v)\n\t\t\t\tb = append(b, v)\n\t\t\t}\n\t\t}\n\t\tif len(f) >= 3 {\n\t\t\t*front = append(*front, newPolygon(f, poly.shared))\n\t\t}\n\t\tif len(b) >= 3 {\n\t\t\t*back = append(*back, newPolygon(b, poly.shared))\n\t\t}\n\t}\n}", "func (p asciiTable) Z(c, r int) float64 {\n\treturn p.grid[r][c]\n}", "func (r Ray) LineIntersect(s Ray) (point Vec) {\n\t/*\n\t\tequation is derived from system of equations with\n\t\ttwo unknowns where equations are r.Formula and s.Formula\n\t\tfrom which we can derive x of intersection point\n\n\t\tstarting with:\n\t\t\tr.V.Y*X - r.V.X*Y - r.V.Y*r.O.X + r.V.X*r.O.Y = 0\n\t\tand:\n\t\t\ts.V.Y*X - s.V.X*Y - s.V.Y*s.O.X + s.V.X*s.O.Y = 0\n\n\t\tget y from first one:\n\t\t\tr.V.Y*X - r.V.Y*r.O.X + r.V.X*r.O.Y = r.V.X*Y\n\t\t\t(r.V.Y*X - r.V.Y*r.O.X + r.V.X*r.O.Y)/r.V.X = Y\n\n\t\tthen we substitute and get x:\n\t\t\ts.V.Y*X - s.V.X * (r.V.Y*X - r.V.Y*r.O.X + r.V.X*r.O.Y) / r.V.X - s.V.Y*s.O.X + s.V.X*s.O.Y = 0 // * r.V.X\n\t\t\ts.V.Y*X*r.V.X - s.V.X*r.V.Y*X + s.V.X*r.V.Y*r.O.X - s.V.X*r.V.X*r.O.Y - s.V.Y*s.O.X*r.V.X + s.V.X*s.O.Y*r.V.X = 0 // - s.V.Y*X*r.V.X + s.V.X*r.V.Y*X\n\t\t\ts.V.X*r.V.Y*r.O.X - s.V.X*r.V.X*r.O.Y - s.V.Y*s.O.X*r.V.X + s.V.X*s.O.Y*r.V.X = s.V.X*r.V.Y*X - s.V.Y*X*r.V.X // simplify\n\t\t\ts.V.X * (r.V.Y*r.O.X + r.V.X * (s.O.Y - r.O.Y)) - s.V.Y*s.O.X*r.V.X = X * (s.V.X*r.V.Y - s.V.Y*r.V.X) // / (s.V.X*r.V.Y - s.V.Y*r.V.X)\n\t\t\t(s.V.X * (r.V.Y*r.O.X + r.V.X * (s.O.Y - r.O.Y)) - s.V.Y*s.O.X*r.V.X) / (s.V.X*r.V.Y - s.V.Y*r.V.X) = X\n\t*/\n\n\tpoint.X = (s.V.X*(r.V.Y*r.O.X+r.V.X*(s.O.Y-r.O.Y)) - s.V.Y*s.O.X*r.V.X) / (s.V.X*r.V.Y - s.V.Y*r.V.X)\n\n\tif r.V.X == 0 {\n\t\tpoint.Y = s.ProjectX(point.X)\n\t} else {\n\t\tpoint.Y = r.ProjectX(point.X)\n\t}\n\n\treturn\n}", "func (self *PhysicsP2) GetConstraints() []PhysicsP2Constraint{\n\tarray00 := self.Object.Call(\"getConstraints\")\n\tlength00 := array00.Length()\n\tout00 := make([]PhysicsP2Constraint, length00, length00)\n\tfor i00 := 0; i00 < length00; i00++ {\n\t\t\n\t\t\tout00[i00] = PhysicsP2Constraint{array00.Index(i00)}\n\t}\n\treturn out00\n}", "func poly(i int, u []byte) byte {\n\tvar r byte = 1\n\tfor j, m := 0, len(u); j < m; j++ {\n\t\tif j != i {\n\t\t\tr = mul(r, div(u[j], add(u[j], u[i])))\n\t\t}\n\t}\n\treturn r\n}", "func PCMPESTRI(i, mx, x operand.Op) { ctx.PCMPESTRI(i, mx, x) }", "func monoCubicInterpolate(xs []float64, ys []float64) func(float64) float64 {\n\tlength := len(xs)\n\n\t// Dealing with length issues\n\tswitch {\n\tcase length != len(ys):\n\t\tpanic(errors.New(\"need an equal count of xs and ys\"))\n\tcase length == 0:\n\t\treturn func(x float64) (float64) {\n\t\t\treturn 0\n\t\t}\n\tcase length == 1:\n\t\treturn func(x float64) (float64) {\n\t\t\treturn ys[0]\n\t\t}\n\t}\n\n\t// Get consecutive differences and slopes\n\tdys := make([]float64, length-1)\n\tdxs := make([]float64, length-1)\n\tms := make([]float64, length-1)\n\tfor i := 0; i < length-1; i++ {\n\t\tdx := xs[i+1] - xs[i]\n\t\tdy := ys[i+1] - ys[i]\n\t\tdxs[i], dys[i], ms[i] = dx, dy, dy/dx\n\t}\n\n\t// Get degree-1 coefficients\n\tc1s := make([]float64, length)\n\tc1s[0] = ms[0]\n\tfor i := 1; i < len(dxs); i++ {\n\t\tm, mNext := ms[i-1], ms[i]\n\t\tif m * mNext <= 0 {\n\t\t\tc1s[i] = 0\n\t\t} else {\n\t\t\tdx_, dxNext := dxs[i-1], dxs[i]\n\t\t\tcommon := dx_ + dxNext\n\t\t\tc1s[i] = 3 * common / ((common + dxNext)/m + (common + dx_)/mNext)\n\t\t}\n\t}\n\tc1s[length-1] = ms[len(ms)-1]\n\n\t// Get degree-2 and degree-3 coefficients\n\tc2s := make([]float64, length-1)\n\tc3s := make([]float64, length-1)\n\tfor i := 0; i < len(c1s)-1; i++ {\n\t\tc1, m_ := c1s[i], ms[i]\n\t\tinvDx, common_ := 1/dxs[i], c1 + c1s[i+1] - m_ - m_\n\t\tc2s[i] = (m_ - c1 - common_) * invDx\n\t\tc3s[i] = common_ * invDx * invDx\n\t}\n\n\t// Return interpolant function\n\treturn func(x float64) float64 {\n\t\t// The rightmost point in the dataset should give an exact result\n\t\ti := len(xs) - 1\n\t\tif x == xs[i] {\n\t\t\treturn ys[i]\n\t\t}\n\n\t\t// Search for the interval x is in, returning the corresponding y if x is one of the original xs\n\t\tlow, mid, high := 0, len(c3s)-1, len(c3s)-1\n\t\tfor low <= high {\n\t\t\tmid = int(math.Floor(0.5 * float64(low + high)))\n\t\t\txHere := xs[mid]\n\t\t\tif xHere < x {\n\t\t\t\tlow = mid + 1\n\t\t\t} else if xHere > x {\n\t\t\t\thigh = mid - 1\n\t\t\t} else {\n\t\t\t\treturn ys[mid]\n\t\t\t}\n\t\t}\n\t\ti = int(math.Max(0, float64(high)))\n\n\t\t// Interpolate\n\t\tdiff := x - xs[i]\n\t\tdiffSq := diff*diff\n\t\treturn ys[i] + c1s[i]*diff + c2s[i]*diffSq + c3s[i]*diff*diffSq\n\t}\n\n}", "func ControlPlane() *ControlPlaneContract {\n\tonceControlPlane.Do(func() {\n\t\tcontrolPlane = &ControlPlaneContract{}\n\t})\n\treturn controlPlane\n}", "func (z *polyGF2) Mul(a, b *polyGF2) *polyGF2 {\n\tvar out *polyGF2\n\tif z != a && z != b {\n\t\tout = z\n\t} else {\n\t\tout = &polyGF2{}\n\t}\n\n\tdx := a.Degree()\n\tvar bs big.Int\n\tfor i := 0; i <= dx; i++ {\n\t\tif a.coeff.Bit(i) != 0 {\n\t\t\tbs.Lsh(&b.coeff, uint(i))\n\t\t\tout.coeff.Xor(&out.coeff, &bs)\n\t\t}\n\t}\n\n\tif z != out {\n\t\tz.coeff.Set(&out.coeff)\n\t}\n\treturn z\n}", "func CMOVLPS(mr, r operand.Op) { ctx.CMOVLPS(mr, r) }", "func CMOVWPL(mr, r operand.Op) { ctx.CMOVWPL(mr, r) }", "func (p *CubicPolynomial) Set(y0, y1, D0, D1 float64) {\n\tp.a = y0\n\tp.b = D0\n\tp.c = 3*(y1-y0) - 2*D0 - D1\n\tp.d = 2*(y0-y1) + D0 + D1\n\t// Zero out any coefficients that are small relative to the others.\n\tsum := math.Abs(p.a) + math.Abs(p.b) + math.Abs(p.c) + math.Abs(p.d)\n\tp.a = ZeroSmall(p.a, sum, epsilon)\n\tp.b = ZeroSmall(p.b, sum, epsilon)\n\tp.c = ZeroSmall(p.c, sum, epsilon)\n\tp.d = ZeroSmall(p.d, sum, epsilon)\n}", "func VCMPPS(ops ...operand.Op) { ctx.VCMPPS(ops...) }", "func (pp *privPath) bestpolygon() {\n\t//int i, j, m, k;\n\tn := len(pp.Pt)\n\tvar (\n\t\tpen = make([]float64, n+1) // penalty vector\n\t\tprev = make([]int, n+1) // best path pointer vector\n\t\tclip0 = make([]int, n) // longest segment pointer, non-cyclic\n\t\tclip1 = make([]int, n+1) // backwards segment pointer, non-cyclic\n\t\tseg0 = make([]int, n+1) // forward segment bounds, m<=n\n\t\tseg1 = make([]int, n+1) // backward segment bounds, m<=n\n\t\tthispen float64\n\t\tbest float64\n\t\tc int\n\t)\n\n\t// calculate clipped paths\n\tfor i := 0; i < n; i++ {\n\t\tc = mod(pp.Lon[mod(i-1, n)]-1, n)\n\t\tif c == i {\n\t\t\tc = mod(i+1, n)\n\t\t}\n\t\tif c < i {\n\t\t\tclip0[i] = n\n\t\t} else {\n\t\t\tclip0[i] = c\n\t\t}\n\t}\n\n\t// calculate backwards path clipping, non-cyclic. j <= clip0[i] iff clip1[j] <= i, for i,j=0..n.\n\tj := 1\n\tfor i := 0; i < n; i++ {\n\t\tfor j <= clip0[i] {\n\t\t\tclip1[j] = i\n\t\t\tj++\n\t\t}\n\t}\n\n\t// calculate seg0[j] = longest path from 0 with j segments\n\ti := 0\n\tfor j = 0; i < n; j++ {\n\t\tseg0[j] = i\n\t\ti = clip0[i]\n\t}\n\tseg0[j] = n\n\tm := j\n\n\t// calculate seg1[j] = longest path to n with m-j segments\n\ti = n\n\tfor j = m; j > 0; j-- {\n\t\tseg1[j] = i\n\t\ti = clip1[i]\n\t}\n\tseg1[0] = 0\n\n\t// now find the shortest path with m segments, based on penalty3\n\t// note: the outer 2 loops jointly have at most n iterations, thus\n\t// the worst-case behavior here is quadratic. In practice, it is\n\t// close to linear since the inner loop tends to be short.\n\tpen[0] = 0\n\tfor j = 1; j <= m; j++ {\n\t\tfor i = seg1[j]; i <= seg0[j]; i++ {\n\t\t\tbest = -1\n\t\t\tfor k := seg0[j-1]; k >= clip1[i]; k-- {\n\t\t\t\tthispen = penalty3(pp, k, i) + pen[k]\n\t\t\t\tif best < 0 || thispen < best {\n\t\t\t\t\tprev[i] = k\n\t\t\t\t\tbest = thispen\n\t\t\t\t}\n\t\t\t}\n\t\t\tpen[i] = best\n\t\t}\n\t}\n\n\tpp.Po = make([]int, m)\n\n\t// read off shortest path\n\tfor i, j = n, m-1; i > 0; j-- {\n\t\ti = prev[i]\n\t\tpp.Po[j] = i\n\t}\n}", "func polyGetNoise(eta int, seed []byte, nonce byte) Poly {\n\toutbuf := make([]byte, eta*n/4)\n\tstate := sha3.NewShake256()\n\tstate.Write(seed[:])\n\tstate.Write([]byte{nonce})\n\tstate.Read(outbuf[:])\n\tvar p Poly\n\tif eta == 3 {\n\t\tp = polyCBD3(outbuf)\n\t}\n\tif eta == 2 {\n\t\tp = polyCBD2(outbuf)\n\t}\n\treturn p\n}", "func Cross(v1, v2 Vect) f.Float { return v1.X*v2.Y - v1.Y*v2.X }", "func polyBaseMul(a, b Poly) Poly {\n\tvar r Poly\n\tfor i := 0; i < n/4; i++ {\n\t\tcopy(r[4*i:4*i+2], basemul(a[4*i:4*i+2], b[4*i:4*i+2], zetas[64+i]))\n\t\tcopy(r[4*i+2:4*i+4], basemul(a[4*i+2:4*i+4], b[4*i+2:4*i+4], -zetas[64+i]))\n\t}\n\treturn r\n}", "func sm2P256PointSub(x1, y1, z1, x2, y2, z2, x3, y3, z3 *sm2P256FieldElement) {\n\tvar u1, u2, z22, z12, z23, z13, s1, s2, h, h2, r, r2, tm sm2P256FieldElement\n\ty:=sm2P256ToBig(y2)\n\tzero:=new(big.Int).SetInt64(0)\n\ty.Sub(zero,y)\n\tsm2P256FromBig(y2,y)\n\n\tif sm2P256ToBig(z1).Sign() == 0 {\n\t\tsm2P256Dup(x3, x2)\n\t\tsm2P256Dup(y3, y2)\n\t\tsm2P256Dup(z3, z2)\n\t\treturn\n\t}\n\n\tif sm2P256ToBig(z2).Sign() == 0 {\n\t\tsm2P256Dup(x3, x1)\n\t\tsm2P256Dup(y3, y1)\n\t\tsm2P256Dup(z3, z1)\n\t\treturn\n\t}\n\n\tsm2P256Square(&z12, z1) // z12 = z1 ^ 2\n\tsm2P256Square(&z22, z2) // z22 = z2 ^ 2\n\n\tsm2P256Mul(&z13, &z12, z1) // z13 = z1 ^ 3\n\tsm2P256Mul(&z23, &z22, z2) // z23 = z2 ^ 3\n\n\tsm2P256Mul(&u1, x1, &z22) // u1 = x1 * z2 ^ 2\n\tsm2P256Mul(&u2, x2, &z12) // u2 = x2 * z1 ^ 2\n\n\tsm2P256Mul(&s1, y1, &z23) // s1 = y1 * z2 ^ 3\n\tsm2P256Mul(&s2, y2, &z13) // s2 = y2 * z1 ^ 3\n\n\tif sm2P256ToBig(&u1).Cmp(sm2P256ToBig(&u2)) == 0 &&\n\t\tsm2P256ToBig(&s1).Cmp(sm2P256ToBig(&s2)) == 0 {\n\t\tsm2P256PointDouble(x1, y1, z1, x1, y1, z1)\n\t}\n\n\tsm2P256Sub(&h, &u2, &u1) // h = u2 - u1\n\tsm2P256Sub(&r, &s2, &s1) // r = s2 - s1\n\n\tsm2P256Square(&r2, &r) // r2 = r ^ 2\n\tsm2P256Square(&h2, &h) // h2 = h ^ 2\n\n\tsm2P256Mul(&tm, &h2, &h) // tm = h ^ 3\n\tsm2P256Sub(x3, &r2, &tm)\n\tsm2P256Mul(&tm, &u1, &h2)\n\tsm2P256Scalar(&tm, 2) // tm = 2 * (u1 * h ^ 2)\n\tsm2P256Sub(x3, x3, &tm) // x3 = r ^ 2 - h ^ 3 - 2 * u1 * h ^ 2\n\n\tsm2P256Mul(&tm, &u1, &h2) // tm = u1 * h ^ 2\n\tsm2P256Sub(&tm, &tm, x3) // tm = u1 * h ^ 2 - x3\n\tsm2P256Mul(y3, &r, &tm)\n\tsm2P256Mul(&tm, &h2, &h) // tm = h ^ 3\n\tsm2P256Mul(&tm, &tm, &s1) // tm = s1 * h ^ 3\n\tsm2P256Sub(y3, y3, &tm) // y3 = r * (u1 * h ^ 2 - x3) - s1 * h ^ 3\n\n\tsm2P256Mul(z3, z1, z2)\n\tsm2P256Mul(z3, z3, &h) // z3 = z1 * z3 * h\n}", "func CMOVWCS(mr, r operand.Op) { ctx.CMOVWCS(mr, r) }", "func (c *CPU) Cpl() {\n\tc.A ^= 0xFF\n\n\t// Z\n\t// do nothing\n\t// H\n\tc.setFlagH(true)\n\t// N\n\tc.setFlagN(true)\n\t// C\n\t// do nothing\n}", "func (d *createCluster) controlPlaneServiceCIDR() *net.IPNet {\n\tif d.cpServiceCIDR != nil {\n\t\treturn d.cpServiceCIDR\n\t}\n\tsvc, err := d.Kubernetes.CoreV1().Services(\"default\").Get(context.TODO(), \"kubernetes\", metav1.GetOptions{})\n\tif err != nil {\n\t\treturn nil\n\t}\n\t_, ipnet, err := net.ParseCIDR(svc.Spec.ClusterIP + \"/17\")\n\tif err != nil {\n\t\treturn nil\n\t}\n\td.cpServiceCIDR = ipnet\n\treturn d.cpServiceCIDR\n}", "func VBLENDPD(i, mxy, xy, xy1 operand.Op) { ctx.VBLENDPD(i, mxy, xy, xy1) }", "func Pow(A Matrix, p int) Matrix {\n\tm, n := A.Dimensions()\n\tswitch {\n\tcase m != n:\n\t\tpanic(\"matrix must be square\")\n\tcase p < -1:\n\t\tpanic(\"power must be non-negative, except for -1\")\n\tcase p == -1:\n\t\treturn A.Inverse()\n\t}\n\n\t// Yacca's method\n\tB := Identity(m, n)\n\tC := A.Copy()\n\tfor ; 0 < p; p >>= 1 {\n\t\tif p&1 == 1 {\n\t\t\tB = Multiply(B, C)\n\t\t}\n\n\t\tC = Multiply(C, C)\n\t}\n\n\treturn B\n}", "func Zpbtrf(uplo mat.MatUplo, n, kd int, ab *mat.CMatrix) (info int, err error) {\n\tvar cone complex128\n\tvar one, zero float64\n\tvar i, i2, i3, ib, ii, j, jj, ldwork, nb, nbmax int\n\n\tone = 1.0\n\tzero = 0.0\n\tcone = (1.0 + 0.0*1i)\n\tnbmax = 32\n\tldwork = nbmax + 1\n\twork := cmf(ldwork, 32, opts)\n\n\t// Test the input parameters.\n\tif (uplo != Upper) && (uplo != Lower) {\n\t\terr = fmt.Errorf(\"(uplo != Upper) && (uplo != Lower): uplo=%s\", uplo)\n\t} else if n < 0 {\n\t\terr = fmt.Errorf(\"n < 0: n=%v\", n)\n\t} else if kd < 0 {\n\t\terr = fmt.Errorf(\"kd < 0: kd=%v\", kd)\n\t} else if ab.Rows < kd+1 {\n\t\terr = fmt.Errorf(\"ab.Rows < kd+1: ab.Rows=%v, kd=%v\", ab.Rows, kd)\n\t}\n\tif err != nil {\n\t\tgltest.Xerbla2(\"Zpbtrf\", err)\n\t\treturn\n\t}\n\n\t// Quick return if possible\n\tif n == 0 {\n\t\treturn\n\t}\n\n\t// Determine the block size for this environment\n\tnb = Ilaenv(1, \"Zpbtrf\", []byte{uplo.Byte()}, n, kd, -1, -1)\n\n\t// The block size must not exceed the semi-bandwidth KD, and must not\n\t// exceed the limit set by the size of the local array WORK.\n\tnb = min(nb, nbmax)\n\n\tif nb <= 1 || nb > kd {\n\t\t// Use unblocked code\n\t\tif info, err = Zpbtf2(uplo, n, kd, ab); err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t} else {\n\t\t// Use blocked code\n\t\tif uplo == Upper {\n\t\t\t// Compute the Cholesky factorization of a Hermitian band\n\t\t\t// matrix, given the upper triangle of the matrix in band\n\t\t\t// storage.\n\t\t\t//\n\t\t\t// Zero the upper triangle of the work array.\n\t\t\tfor j = 1; j <= nb; j++ {\n\t\t\t\tfor i = 1; i <= j-1; i++ {\n\t\t\t\t\twork.SetRe(i-1, j-1, zero)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Process the band matrix one diagonal block at a time.\n\t\t\tfor i = 1; i <= n; i += nb {\n\t\t\t\tib = min(nb, n-i+1)\n\n\t\t\t\t// Factorize the diagonal block\n\t\t\t\tif ii, err = Zpotf2(uplo, ib, ab.Off(kd, i-1).UpdateRows(ab.Rows-1)); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\t\t\t\tif ii != 0 {\n\t\t\t\t\tinfo = i + ii - 1\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tif i+ib <= n {\n\t\t\t\t\t// Update the relevant part of the trailing submatrix.\n\t\t\t\t\t// If A11 denotes the diagonal block which has just been\n\t\t\t\t\t// factorized, then we need to update the remaining\n\t\t\t\t\t// blocks in the diagram:\n\t\t\t\t\t//\n\t\t\t\t\t// A11 A12 A13\n\t\t\t\t\t// A22 A23\n\t\t\t\t\t// A33\n\t\t\t\t\t//\n\t\t\t\t\t// The numbers of rows and columns in the partitioning\n\t\t\t\t\t// are IB, I2, I3 respectively. The blocks A12, A22 and\n\t\t\t\t\t// A23 are empty if IB = KD. The upper triangle of A13\n\t\t\t\t\t// lies outside the band.\n\t\t\t\t\ti2 = min(kd-ib, n-i-ib+1)\n\t\t\t\t\ti3 = min(ib, n-i-kd+1)\n\n\t\t\t\t\tif i2 > 0 {\n\t\t\t\t\t\t// Update A12\n\t\t\t\t\t\tif err = ab.Off(kd+1-ib-1, i+ib-1).UpdateRows(ab.Rows-1).Trsm(Left, Upper, ConjTrans, NonUnit, ib, i2, cone, ab.Off(kd, i-1).UpdateRows(ab.Rows-1)); err != nil {\n\t\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Update A22\n\t\t\t\t\t\tif err = ab.Off(kd, i+ib-1).UpdateRows(ab.Rows-1).Herk(Upper, ConjTrans, i2, ib, -one, ab.Off(kd+1-ib-1, i+ib-1).UpdateRows(ab.Rows-1), one); err != nil {\n\t\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif i3 > 0 {\n\t\t\t\t\t\t// Copy the lower triangle of A13 into the work array.\n\t\t\t\t\t\tfor jj = 1; jj <= i3; jj++ {\n\t\t\t\t\t\t\tfor ii = jj; ii <= ib; ii++ {\n\t\t\t\t\t\t\t\twork.Set(ii-1, jj-1, ab.Get(ii-jj, jj+i+kd-1-1))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Update A13 (in the work array).\n\t\t\t\t\t\tif err = work.Trsm(Left, Upper, ConjTrans, NonUnit, ib, i3, cone, ab.Off(kd, i-1).UpdateRows(ab.Rows-1)); err != nil {\n\t\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Update A23\n\t\t\t\t\t\tif i2 > 0 {\n\t\t\t\t\t\t\tif err = ab.Off(1+ib-1, i+kd-1).UpdateRows(ab.Rows-1).Gemm(ConjTrans, NoTrans, i2, i3, ib, -cone, ab.Off(kd+1-ib-1, i+ib-1).UpdateRows(ab.Rows-1), work, cone); err != nil {\n\t\t\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Update A33\n\t\t\t\t\t\tif err = ab.Off(kd, i+kd-1).UpdateRows(ab.Rows-1).Herk(Upper, ConjTrans, i3, ib, -one, work, one); err != nil {\n\t\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Copy the lower triangle of A13 back into place.\n\t\t\t\t\t\tfor jj = 1; jj <= i3; jj++ {\n\t\t\t\t\t\t\tfor ii = jj; ii <= ib; ii++ {\n\t\t\t\t\t\t\t\tab.Set(ii-jj, jj+i+kd-1-1, work.Get(ii-1, jj-1))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// Compute the Cholesky factorization of a Hermitian band\n\t\t\t// matrix, given the lower triangle of the matrix in band\n\t\t\t// storage.\n\t\t\t//\n\t\t\t// Zero the lower triangle of the work array.\n\t\t\tfor j = 1; j <= nb; j++ {\n\t\t\t\tfor i = j + 1; i <= nb; i++ {\n\t\t\t\t\twork.SetRe(i-1, j-1, zero)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Process the band matrix one diagonal block at a time.\n\t\t\tfor i = 1; i <= n; i += nb {\n\t\t\t\tib = min(nb, n-i+1)\n\n\t\t\t\t// Factorize the diagonal block\n\t\t\t\tif ii, err = Zpotf2(uplo, ib, ab.Off(0, i-1).UpdateRows(ab.Rows-1)); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\t\t\t\tif ii != 0 {\n\t\t\t\t\tinfo = i + ii - 1\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tif i+ib <= n {\n\t\t\t\t\t// Update the relevant part of the trailing submatrix.\n\t\t\t\t\t// If A11 denotes the diagonal block which has just been\n\t\t\t\t\t// factorized, then we need to update the remaining\n\t\t\t\t\t// blocks in the diagram:\n\t\t\t\t\t//\n\t\t\t\t\t// A11\n\t\t\t\t\t// A21 A22\n\t\t\t\t\t// A31 A32 A33\n\t\t\t\t\t//\n\t\t\t\t\t// The numbers of rows and columns in the partitioning\n\t\t\t\t\t// are IB, I2, I3 respectively. The blocks A21, A22 and\n\t\t\t\t\t// A32 are empty if IB = KD. The lower triangle of A31\n\t\t\t\t\t// lies outside the band.\n\t\t\t\t\ti2 = min(kd-ib, n-i-ib+1)\n\t\t\t\t\ti3 = min(ib, n-i-kd+1)\n\n\t\t\t\t\tif i2 > 0 {\n\t\t\t\t\t\t// Update A21\n\t\t\t\t\t\tif err = ab.Off(1+ib-1, i-1).UpdateRows(ab.Rows-1).Trsm(Right, Lower, ConjTrans, NonUnit, i2, ib, cone, ab.Off(0, i-1).UpdateRows(ab.Rows-1)); err != nil {\n\t\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Update A22\n\t\t\t\t\t\tif err = ab.Off(0, i+ib-1).UpdateRows(ab.Rows-1).Herk(Lower, NoTrans, i2, ib, -one, ab.Off(1+ib-1, i-1).UpdateRows(ab.Rows-1), one); err != nil {\n\t\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif i3 > 0 {\n\t\t\t\t\t\t// Copy the upper triangle of A31 into the work array.\n\t\t\t\t\t\tfor jj = 1; jj <= ib; jj++ {\n\t\t\t\t\t\t\tfor ii = 1; ii <= min(jj, i3); ii++ {\n\t\t\t\t\t\t\t\twork.Set(ii-1, jj-1, ab.Get(kd+1-jj+ii-1, jj+i-1-1))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Update A31 (in the work array).\n\t\t\t\t\t\tif err = work.Trsm(Right, Lower, ConjTrans, NonUnit, i3, ib, cone, ab.Off(0, i-1).UpdateRows(ab.Rows-1)); err != nil {\n\t\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Update A32\n\t\t\t\t\t\tif i2 > 0 {\n\t\t\t\t\t\t\tif err = ab.Off(1+kd-ib-1, i+ib-1).UpdateRows(ab.Rows-1).Gemm(NoTrans, ConjTrans, i3, i2, ib, -cone, work, ab.Off(1+ib-1, i-1).UpdateRows(ab.Rows-1), cone); err != nil {\n\t\t\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Update A33\n\t\t\t\t\t\tif err = ab.Off(0, i+kd-1).UpdateRows(ab.Rows-1).Herk(Lower, NoTrans, i3, ib, -one, work, one); err != nil {\n\t\t\t\t\t\t\tpanic(err)\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Copy the upper triangle of A31 back into place.\n\t\t\t\t\t\tfor jj = 1; jj <= ib; jj++ {\n\t\t\t\t\t\t\tfor ii = 1; ii <= min(jj, i3); ii++ {\n\t\t\t\t\t\t\t\tab.Set(kd+1-jj+ii-1, jj+i-1-1, work.Get(ii-1, jj-1))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn\n}", "func clipperPath(p data.Path) clipper.Path {\n\tvar result clipper.Path\n\tfor _, point := range p {\n\t\tresult = append(result, clipperPoint(point))\n\t}\n\n\treturn result\n}", "func (z *Perplex) Sub(x, y *Perplex) *Perplex {\n\tz.l.Sub(&x.l, &y.l)\n\tz.r.Sub(&x.r, &y.r)\n\treturn z\n}", "func (c *Coord) Z() float64 { return c[2] }" ]
[ "0.6642396", "0.6194028", "0.6152412", "0.59338206", "0.59205794", "0.57680917", "0.5627804", "0.5177157", "0.48436436", "0.45576042", "0.4531563", "0.44909936", "0.4485883", "0.44627756", "0.44470236", "0.44430253", "0.4424752", "0.4370667", "0.43042243", "0.425442", "0.42489645", "0.42403322", "0.42296982", "0.42258576", "0.41974455", "0.41973558", "0.41929266", "0.41786742", "0.41441357", "0.4143164", "0.41233194", "0.40810013", "0.4075572", "0.40489992", "0.40433702", "0.40397492", "0.40348643", "0.40250644", "0.40222484", "0.40115845", "0.40114442", "0.3999151", "0.39968628", "0.39958057", "0.39806542", "0.39794305", "0.39616233", "0.39552727", "0.39454374", "0.3941739", "0.39405704", "0.39286003", "0.39276546", "0.39040825", "0.3903437", "0.3883689", "0.38817006", "0.387648", "0.38763127", "0.38730973", "0.3863491", "0.3857963", "0.38504502", "0.38503397", "0.38487518", "0.3846825", "0.38459575", "0.38432118", "0.38396508", "0.38301188", "0.38266376", "0.3809648", "0.38043678", "0.37985483", "0.37982377", "0.3792649", "0.37912956", "0.37888962", "0.37865713", "0.37808934", "0.377621", "0.3774976", "0.3773689", "0.377342", "0.3770848", "0.37665078", "0.37594384", "0.37590057", "0.37540308", "0.37514758", "0.37446535", "0.37396923", "0.37393543", "0.37385407", "0.37376487", "0.37368813", "0.3736009", "0.3729828", "0.37262326", "0.3719083" ]
0.6073408
3
retrieve contents of a color lookup table
func GetColorTable(target uint32, format uint32, xtype uint32, table unsafe.Pointer) { C.glowGetColorTable(gpGetColorTable, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), table) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetColorTable(target uint32, format uint32, xtype uint32, table unsafe.Pointer) {\n C.glowGetColorTable(gpGetColorTable, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), table)\n}", "func ColorTable(target uint32, internalformat uint32, width int32, format uint32, xtype uint32, table unsafe.Pointer) {\n C.glowColorTable(gpColorTable, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), table)\n}", "func (this *Dcmp0_Chunk_TableLookupBody) LookupTable() (v [][]byte, err error) {\n\tif (this._f_lookupTable) {\n\t\treturn this.lookupTable, nil\n\t}\n\tthis.lookupTable = [][]byte([][]byte{[]uint8{0, 0}, []uint8{78, 186}, []uint8{0, 8}, []uint8{78, 117}, []uint8{0, 12}, []uint8{78, 173}, []uint8{32, 83}, []uint8{47, 11}, []uint8{97, 0}, []uint8{0, 16}, []uint8{112, 0}, []uint8{47, 0}, []uint8{72, 110}, []uint8{32, 80}, []uint8{32, 110}, []uint8{47, 46}, []uint8{255, 252}, []uint8{72, 231}, []uint8{63, 60}, []uint8{0, 4}, []uint8{255, 248}, []uint8{47, 12}, []uint8{32, 6}, []uint8{78, 237}, []uint8{78, 86}, []uint8{32, 104}, []uint8{78, 94}, []uint8{0, 1}, []uint8{88, 143}, []uint8{79, 239}, []uint8{0, 2}, []uint8{0, 24}, []uint8{96, 0}, []uint8{255, 255}, []uint8{80, 143}, []uint8{78, 144}, []uint8{0, 6}, []uint8{38, 110}, []uint8{0, 20}, []uint8{255, 244}, []uint8{76, 238}, []uint8{0, 10}, []uint8{0, 14}, []uint8{65, 238}, []uint8{76, 223}, []uint8{72, 192}, []uint8{255, 240}, []uint8{45, 64}, []uint8{0, 18}, []uint8{48, 46}, []uint8{112, 1}, []uint8{47, 40}, []uint8{32, 84}, []uint8{103, 0}, []uint8{0, 32}, []uint8{0, 28}, []uint8{32, 95}, []uint8{24, 0}, []uint8{38, 111}, []uint8{72, 120}, []uint8{0, 22}, []uint8{65, 250}, []uint8{48, 60}, []uint8{40, 64}, []uint8{114, 0}, []uint8{40, 110}, []uint8{32, 12}, []uint8{102, 0}, []uint8{32, 107}, []uint8{47, 7}, []uint8{85, 143}, []uint8{0, 40}, []uint8{255, 254}, []uint8{255, 236}, []uint8{34, 216}, []uint8{32, 11}, []uint8{0, 15}, []uint8{89, 143}, []uint8{47, 60}, []uint8{255, 0}, []uint8{1, 24}, []uint8{129, 225}, []uint8{74, 0}, []uint8{78, 176}, []uint8{255, 232}, []uint8{72, 199}, []uint8{0, 3}, []uint8{0, 34}, []uint8{0, 7}, []uint8{0, 26}, []uint8{103, 6}, []uint8{103, 8}, []uint8{78, 249}, []uint8{0, 36}, []uint8{32, 120}, []uint8{8, 0}, []uint8{102, 4}, []uint8{0, 42}, []uint8{78, 208}, []uint8{48, 40}, []uint8{38, 95}, []uint8{103, 4}, []uint8{0, 48}, []uint8{67, 238}, []uint8{63, 0}, []uint8{32, 31}, []uint8{0, 30}, []uint8{255, 246}, []uint8{32, 46}, []uint8{66, 167}, []uint8{32, 7}, []uint8{255, 250}, []uint8{96, 2}, []uint8{61, 64}, []uint8{12, 64}, []uint8{102, 6}, []uint8{0, 38}, []uint8{45, 72}, []uint8{47, 1}, []uint8{112, 255}, []uint8{96, 4}, []uint8{24, 128}, []uint8{74, 64}, []uint8{0, 64}, []uint8{0, 44}, []uint8{47, 8}, []uint8{0, 17}, []uint8{255, 228}, []uint8{33, 64}, []uint8{38, 64}, []uint8{255, 242}, []uint8{66, 110}, []uint8{78, 185}, []uint8{61, 124}, []uint8{0, 56}, []uint8{0, 13}, []uint8{96, 6}, []uint8{66, 46}, []uint8{32, 60}, []uint8{103, 12}, []uint8{45, 104}, []uint8{102, 8}, []uint8{74, 46}, []uint8{74, 174}, []uint8{0, 46}, []uint8{72, 64}, []uint8{34, 95}, []uint8{34, 0}, []uint8{103, 10}, []uint8{48, 7}, []uint8{66, 103}, []uint8{0, 50}, []uint8{32, 40}, []uint8{0, 9}, []uint8{72, 122}, []uint8{2, 0}, []uint8{47, 43}, []uint8{0, 5}, []uint8{34, 110}, []uint8{102, 2}, []uint8{229, 128}, []uint8{103, 14}, []uint8{102, 10}, []uint8{0, 80}, []uint8{62, 0}, []uint8{102, 12}, []uint8{46, 0}, []uint8{255, 238}, []uint8{32, 109}, []uint8{32, 64}, []uint8{255, 224}, []uint8{83, 64}, []uint8{96, 8}, []uint8{4, 128}, []uint8{0, 104}, []uint8{11, 124}, []uint8{68, 0}, []uint8{65, 232}, []uint8{72, 65}})\n\tthis._f_lookupTable = true\n\treturn this.lookupTable, nil\n}", "func ColorSubTable(target uint32, start int32, count int32, format uint32, xtype uint32, data unsafe.Pointer) {\n C.glowColorSubTable(gpColorSubTable, (C.GLenum)(target), (C.GLsizei)(start), (C.GLsizei)(count), (C.GLenum)(format), (C.GLenum)(xtype), data)\n}", "func ColorTable(target uint32, internalformat uint32, width int32, format uint32, xtype uint32, table unsafe.Pointer) {\n\tC.glowColorTable(gpColorTable, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), table)\n}", "func colorStr(value uint16) (key string) {\n\tfor k, v := range colorLookUp {\n\t\tif v == value {\n\t\t\tkey = k\n\t\t\treturn\n\t\t}\n\t}\n\treturn\n}", "func ReadColorMap(r io.Reader, h *FileHeader) (ColorMap, error) {\n\tvar m ColorMap = make([]Color, h.NumberOfColors)\n\n\t// Use NumOfColors instead of ColorMapEntries: https://gitlab.freedesktop.org/xorg/app/xwd/-/blob/master/xwd.c#L489\n\tvar i uint32\n\tvar err error\n\n\tbuf := make([]byte, colorSize)\n\n\tfor i = 0; i < h.ColorMapEntries; i++ {\n\t\t_, err = r.Read(buf)\n\t\tif err != nil {\n\t\t\treturn nil, &IOError{err, \"reading colormap\"}\n\t\t}\n\n\t\tm[i] = Color{\n\t\t\tbinary.BigEndian.Uint32(buf[0:4]), // << 8 seems to be wrong\n\t\t\tbinary.BigEndian.Uint16(buf[4:6]),\n\t\t\tbinary.BigEndian.Uint16(buf[6:8]),\n\t\t\tbinary.BigEndian.Uint16(buf[8:10]),\n\t\t\tbuf[10], buf[11],\n\t\t}\n\t}\n\n\treturn m, nil\n}", "func makeColorLookup(vals []int, length int) []int {\n\tres := make([]int, length)\n\n\tvi := 0\n\tfor i := 0; i < len(res); i++ {\n\t\tif vi+1 < len(vals) {\n\t\t\tif i <= (vals[vi]+vals[vi+1])/2 {\n\t\t\t\tres[i] = vi\n\t\t\t} else {\n\t\t\t\tvi++\n\t\t\t\tres[i] = vi\n\t\t\t}\n\t\t} else if vi < len(vals) {\n\t\t\t// only last vi is valid\n\t\t\tres[i] = vi\n\t\t}\n\t}\n\treturn res\n}", "func ColorSubTable(target uint32, start int32, count int32, format uint32, xtype uint32, data unsafe.Pointer) {\n\tC.glowColorSubTable(gpColorSubTable, (C.GLenum)(target), (C.GLsizei)(start), (C.GLsizei)(count), (C.GLenum)(format), (C.GLenum)(xtype), data)\n}", "func getOneColor(h string) Color {\n\t// creates a query to select all relevent data from color table by hex\n\tq := fmt.Sprint(`SELECT color, r, g, b, a, hex, creatorId, creatorHash FROM colors WHERE hex =\"`, h, `\";`)\n\t// Runs the query checking for errors\n\trows, err := db.Query(q)\n\t// check the errors\n\tcheck(err)\n\t// Creates a variable to store all color data\n\tvar name, r, g, b, a, hex, cID, cH string\n\tvar co Color\n\t// loops through each row retuened from the query\n\tfor rows.Next() {\n\t\t// sets each data piece to be what is in the row\n\t\terr = rows.Scan(&name, &r, &g, &b, &a, &hex, &cID, &cH)\n\t\t// saves data to color struct\n\t\tco = Color{\n\t\t\tname,\n\t\t\tr,\n\t\t\tg,\n\t\t\tb,\n\t\t\ta,\n\t\t\thex,\n\t\t\t0.,\n\t\t\tcID,\n\t\t\tcH,\n\t\t}\n\t}\n\t// returns the color\n\treturn co\n}", "func getColors(w http.ResponseWriter) {\n\t// creates a new slice of colors\n\tvar colors []Color\n\n\t// runs a query to pull data from the database\n\trows, err := db.Query(`SELECT color, r, g, b, a, hex, creatorId, creatorHash FROM colors ORDER BY g ASC, b ASC, hex;`)\n\t// checks the error\n\thtmlCheck(err, w, fmt.Sprint(\"There was an error \", err))\n\t// create variables to hold color properties\n\tvar name, r, g, b, a, hex, cID, cH string\n\t// for each color\n\tfor rows.Next() {\n\t\t// fill in the variables in given order\n\t\terr = rows.Scan(&name, &r, &g, &b, &a, &hex, &cID, &cH)\n\t\t// checks the error\n\t\thtmlCheck(err, w, fmt.Sprint(\"There was an error \", err))\n\t\t// creates a color with the rows details\n\t\tc := Color{\n\t\t\tname,\n\t\t\tr,\n\t\t\tg,\n\t\t\tb,\n\t\t\ta,\n\t\t\thex,\n\t\t\t0.,\n\t\t\tcID,\n\t\t\tcH,\n\t\t}\n\t\t// calculate the hue and add it to the color\n\t\tc.Hue = calcHue(c)\n\t\t// if the hue is not returned set it to zero\n\t\tif math.IsNaN(c.Hue) {\n\t\t\tc.Hue = 0.\n\t\t}\n\t\t// add the new color to the colors slice\n\t\tcolors = append(colors, c)\n\n\t}\n\t// encodes the colors array to json\n\terr = json.NewEncoder(w).Encode(getColorSorted(colors))\n\t// checks the error\n\thtmlCheck(err, w, fmt.Sprint(\"There was an error \", err))\n}", "func (e *Square10) Reference(modifiers map[int]api.Color, refPlayer int) map[int]api.Color {\n\treferenceBoard := make(map[int]api.Color, len(modifiers))\n\tfor tile, color := range modifiers {\n\t\ttargetID := refPlayer*99 - tile*(refPlayer*2-1)\n\t\treferenceBoard[targetID] = color\n\t}\n\treturn referenceBoard\n}", "func GetColors() map[int]string {\n\treturn colors\n}", "func (r *RSCodec) InitLookupTables() {\n\t// Precompute the logarithm and anti-log tables for faster computation, using the provided primitive polynomial.\n\t// The idea: b**(log_b(x), log_b(y)) == x * y, where b is the base or generator of the logarithm =>\n\t// we can use any b to precompute logarithm and anti-log tables to use for multiplying two numbers x and y.\n\tx := 1\n\tfor i := 0; i < 255; i++ {\n\t\texponents[i] = x\n\t\tlogs[x] = i\n\t\tx = russianPeasantMult(x, 2, r.Primitive, 256, true)\n\t}\n\n\tfor i := 255; i < 512; i++ {\n\t\texponents[i] = exponents[i-255]\n\t}\n}", "func (s *videoController) lookupTile(tileY, tileX uint8, tileNumber byte, tileDataSelect bool) uint8 {\n\t// 8800 addressing mode - tileNumber is signed\n\ttileAddress := offsetAddress(0x9000, 16*int16(int8(tileNumber)))\n\tif tileDataSelect {\n\t\t// 8000 addressing mode\n\t\ttileAddress = 0x8000 + 16*uint16(tileNumber)\n\t}\n\n\trowAddress := offsetAddress(tileAddress, 2*int16(tileY)) // 2 bytes for every row\n\tlowerByte := s.readVRAM(rowAddress)\n\thigherByte := s.readVRAM(rowAddress + 1)\n\n\t// The leftmost pixel is represented by the rightmost (index-0) bit, thus the \"7-\"\n\tlowerBit := readBitN(lowerByte, 7-tileX)\n\thigherBit := readBitN(higherByte, 7-tileX)\n\n\tcolorNum := uint8(0)\n\tcolorNum = writeBitN(colorNum, 0, lowerBit)\n\tcolorNum = writeBitN(colorNum, 1, higherBit)\n\n\treturn colorNum\n}", "func (pal *CGBPalette) get(palette byte, num byte) (uint8, uint8, uint8) {\n\tidx := (palette * 8) + (num * 2)\n\tcolour := uint16(pal.palette[idx]) | uint16(pal.palette[idx + 1]) << 8\n\tr := uint8(colour & 0x1F)\n\tg := uint8((colour >> 5) & 0x1F)\n\tb := uint8((colour >> 10) & 0x1F)\n\treturn colMap[r], colMap[g], colMap[b]\n}", "func getColor(w http.ResponseWriter, c string) {\n\t// querys the DB to select color props based on the given hex\n\tq := fmt.Sprint(`SELECT color, r, g, b, a, hex, creatorId, creatorHash FROM colors WHERE hex =\"`, c, `\";`)\n\t// queries the DB\n\trows, err := db.Query(q)\n\t// checks the error\n\thtmlCheck(err, w, fmt.Sprint(\"There was an error \", err))\n\t// creates variables to hold color information\n\tvar name, r, g, b, a, hex, cID, cH string\n\t// creates a color variable\n\tvar co Color\n\t// for each row\n\tfor rows.Next() {\n\t\t// fill in the variables in given order\n\t\terr = rows.Scan(&name, &r, &g, &b, &a, &hex, &cID, &cH)\n\t\t// checks the error\n\t\thtmlCheck(err, w, fmt.Sprint(\"There was an error \", err))\n\t\t// sets co to be the color with the given variables\n\t\tco = Color{\n\t\t\tname,\n\t\t\tr,\n\t\t\tg,\n\t\t\tb,\n\t\t\ta,\n\t\t\thex,\n\t\t\t0.,\n\t\t\tcID,\n\t\t\tcH,\n\t\t}\n\t}\n\t// if no color, color needs to be created\n\tif co.Color == \"\" {\n\t\t// writes the status to the response\n\t\tw.WriteHeader(http.StatusPartialContent)\n\t\tfmt.Fprintf(w, \"Color has to be created\")\n\t\treturn\n\t}\n\t// encodes the color as json\n\terr = json.NewEncoder(w).Encode(co)\n\t// checks the error\n\thtmlCheck(err, w, fmt.Sprint(\"There was an error \", err))\n\n}", "func printMap(c map[string]string) {\n\tfor color, hex := range c {\n\t\tfmt.Println(\"Hex code for\", color, \"is\", hex)\n\t}\n}", "func getTileFromColor(color *Color, tiles *[]TileImg, tolerance float64) *gmagick.MagickWand {\n\tvar matched = make([]int, 0)\n\t// compare color pixel with tolerance\n\tfor idx, tile := range *tiles {\n\t\tvar _matched = matchedPixels(color, tile.Color, tolerance)\n\t\tif _matched.Matched {\n\t\t\tmatched = append(matched, idx)\n\t\t}\n\t}\n\tif len(matched) > 0 {\n\t\tidx := getRandomItemIndex(len(matched))\n\t\tvar m = matched[idx]\n\t\treturn (*tiles)[m].Image\n\t}\n\treturn nil\n\n}", "func (e Color2) String() string {\n name, _ := color2Map[int32(e)]\n return name\n}", "func (r *renderer) lookup(name string, ln, col int, key []string) (reflect.Value, error) {\n\tv := lookupKeysStack(key, r.stack)\n\tif !v.IsValid() && r.template.ContextErrorsEnabled {\n\t\treturn v, fmt.Errorf(\"%s:%d:%d: cannot find value %s in context\", name, ln, col, strings.Join(key, \".\"))\n\t}\n\treturn v, nil\n}", "func loadColorBuckets(colorPath string) ([]colorBucket, string, string, error) {\n buckets := make([]colorBucket, 0)\n multiId := \"\"\n whiteId := \"\"\n\n colorFile, err := os.Open(colorPath)\n if err != nil { return buckets, multiId, whiteId, err}\n defer colorFile.Close()\n\n rdr := csv.NewReader(colorFile)\n idx := 0\n for {\n record, err := rdr.Read()\n if err == io.EOF { break }\n if err != nil { return buckets, multiId, whiteId, err }\n\n if len(record) != CSV_RECORD_LENGTH {\n return buckets, multiId, whiteId, errors.New(\"Malformed color csv file\")\n }\n\n if record[2] == MULTI_CODE {\n multiId = record[0]\n continue\n }\n if record[1] == \"White\" || record[1] == \"white\" {\n whiteId = record[0]\n }\n\n lab, err := converter.HexStringToLab(record[2])\n if err != nil { return buckets, multiId, whiteId, err }\n\n buckets = append(buckets, colorBucket{\n colorId: record[0],\n colorName: record[1],\n labColor: lab,\n })\n\n idx++\n }\n\n if multiId == \"\" { return buckets, multiId, whiteId, errors.New(\"No multival given\")}\n return buckets, multiId, whiteId, nil\n}", "func getColor(colorstr string) (*color.RGBA, error) {\n\tvar r, g, b uint8\n\tformat := \"%02x%02x%02x\"\n\t_, err := fmt.Sscanf(colorstr, format, &r, &g, &b)\n\tif err != nil {\n\t\treturn DefaultBackgroundColor, err\n\t}\n\treturn &color.RGBA{r, g, b, 255}, nil\n}", "func (c *Colorscheme) tcellColor(name string) tcell.Color {\n\tv, ok := c.colors[name].(string)\n\tif !ok {\n\t\treturn tcell.ColorDefault\n\t}\n\n\tif color, found := TcellColorschemeColorsMap[v]; found {\n\t\treturn color\n\t}\n\n\tcolor := tcell.GetColor(v)\n\tif color != tcell.ColorDefault {\n\t\treturn color\n\t}\n\n\t// find closest X11 color to RGB\n\t// if code, ok := HexToAnsi(v); ok {\n\t// \treturn tcell.PaletteColor(int(code) & 0xff)\n\t// }\n\treturn color\n}", "func (b *Buffer) Lookup(pattern string, conds map[string]interface{}) (res map[string]*influxdb.Series, err error) {\n\tres = make(map[string]*influxdb.Series)\n\n\tsers, err := b.matchSeries(pattern)\n\tif err != nil || len(sers) == 0 {\n\t\treturn\n\t}\n\n\t// Building reversed column index\n\tcolind := make(map[string]int)\n\tfor i, name := range sers[0].Columns {\n\t\tcolind[name] = i\n\t}\n\n\tfor _, s := range sers {\n\t\tfor _, row := range s.Points {\n\t\t\tgood := true\n\t\t\tfor key, val := range conds {\n\t\t\t\tif ki, _ := colind[key]; row[ki] != val {\n\t\t\t\t\tgood = false\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\tif good {\n\t\t\t\tif _, ok := res[s.Name]; !ok {\n\t\t\t\t\tres[s.Name] = &influxdb.Series{\n\t\t\t\t\t\tName: s.Name,\n\t\t\t\t\t\tColumns: s.Columns,\n\t\t\t\t\t\tPoints: [][]interface{}{},\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tres[s.Name].Points = append(res[s.Name].Points, row)\n\t\t\t}\n\t\t}\n\t}\n\n\treturn\n}", "func GetColors(c *fiber.Ctx) error {\n\tdb := database.DBConn\n\tvar colors []models.Color\n\tdb.Find(&colors)\n\treturn c.JSON(colors)\n}", "func CopyColorTable(target uint32, internalformat uint32, x int32, y int32, width int32) {\n C.glowCopyColorTable(gpCopyColorTable, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width))\n}", "func GetLayerPaletteEntries(hdc unsafe.Pointer, iLayerPlane unsafe.Pointer, iStart unsafe.Pointer, cEntries unsafe.Pointer, pcr unsafe.Pointer) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall6(gpGetLayerPaletteEntries, 5, uintptr(hdc), uintptr(iLayerPlane), uintptr(iStart), uintptr(cEntries), uintptr(pcr), 0)\n\treturn (unsafe.Pointer)(ret)\n}", "func (e Color) String() string {\n name, _ := colorMap[int32(e)]\n return name\n}", "func printMap(c map[string]string) {\n\t// Iterate over a map\n\tfor color, hex := range c {\n\t\tfmt.Println(\"Hex code for\", color, \"is\", hex)\n\t}\n}", "func (x *Index) Lookup(s []byte, n int) (result []int)", "func CopyColorSubTable(target uint32, start int32, x int32, y int32, width int32) {\n C.glowCopyColorSubTable(gpCopyColorSubTable, (C.GLenum)(target), (C.GLsizei)(start), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width))\n}", "func (x *Index) Lookup(s []byte, n int) (result []int) {}", "func printMap(m map[string]string) {\n\tfor color, hex := range m { //key, value\n\t\tfmt.Println(\"Hex code for\", color, \"is\", hex)\n\t}\n}", "func unpackedNibbleLookupTinyInplaceSSSE3Asm(main, tablePtr unsafe.Pointer)", "func lookupShadeInPlatter(platter byte, colorNum uint8) Shade {\n\treturn Shade((platter >> (2 * colorNum)) & 0x03)\n}", "func Lookup(k byte, x *[16]byte) int32", "func queryCore(r *bitrow, bits []bitrow, hashes []uint32)", "func GetColor(c *fiber.Ctx) error {\n\tdb := database.DBConn\n\tid := c.Params(\"id\")\n\n\tvar color models.Color\n\tdb.First(&color, id)\n\n\tif color.ID == 0 {\n\t\treturn c.Status(404).JSON(fiber.Map{\n\t\t\t\"detail\": \"color not found\",\n\t\t})\n\t}\n\treturn c.JSON(color)\n}", "func (h *Heuristics) ShowColors() {\n\t\n\tfmt.Println(\"colors :: \")\n\tfor k, v := range h.colors {\n\t\tif v == 0 {\n\t\t\tfmt.Println(\"Need[\", k+1, \"] = \", h.need[k], \" Utility[\", k+1, \"] = \", h.utility[k])\n\t\t} else {\n\t\t\tfmt.Print(\"Colors[\", k+1, \"] = \", h.colors[k], \"\\t\")\n\t\t\tneighbors := h.g.AdjList[k]\n\t\t\tfor _, value := range neighbors {\n\t\t\t\tfmt.Print(value, \"\\t\")\n\t\t\t}\n\t\t\tfmt.Print(\"\\n\")\n\t\t}\n\t}\n\tfmt.Print(\"\\n\")\n}", "func CopyColorTable(target uint32, internalformat uint32, x int32, y int32, width int32) {\n\tC.glowCopyColorTable(gpCopyColorTable, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width))\n}", "func getPieceColor(square uint8) int {\n\treturn int((square & ColorMask) >> 2)\n}", "func getColor(r Ray, world HittableList, depth int) mgl64.Vec3 {\n\thits := world.Hit(r, Epsilon, math.MaxFloat64)\n\tif len(hits) > 0 {\n\t\t// HittableList makes sure the first (and only) intersection\n\t\t// is the closest one:\n\t\thit := hits[0]\n\t\t// Simulate the light response of this material.\n\t\tisScattered, attenuation, scattered := hit.Mat.Scatter(r, hit)\n\t\t// If this ray is reflected off the surface, determine the response\n\t\t// of the scattered ray:\n\t\tif isScattered && depth < MaxBounces {\n\t\t\tresponse := getColor(scattered, world, depth+1)\n\n\t\t\treturn mgl64.Vec3{response.X() * attenuation.X(),\n\t\t\t\tresponse.Y() * attenuation.Y(),\n\t\t\t\tresponse.Z() * attenuation.Z()}\n\t\t}\n\t\t// Otherwise, the ray was absorbed, or we have exceeded the\n\t\t// maximum number of light bounces:\n\t\treturn mgl64.Vec3{0.0, 0.0, 0.0}\n\t}\n\t// If we don't intersect with anything, plot a background instead:\n\tunitDirection := r.Direction().Normalize()\n\tt := 0.5*unitDirection.Y() + 1.0\n\t// Linearly interpolate between white and blue:\n\tA := mgl64.Vec3{1.0, 1.0, 1.0}.Mul(1.0 - t)\n\tB := mgl64.Vec3{0.5, 0.7, 1.0}.Mul(t)\n\treturn A.Add(B)\n}", "func (Music *Music) getIndexLrc()(map[string]string){\n lrc, _ := os.OpenFile(Music.pathLrc, os.O_RDONLY, 0444)\n defer lrc.Close()\n bnr := bufio.NewReader(lrc)\n var lrcMap = make(map[string]string)\n for{\n line, err := bnr.ReadString('\\n')\n if err==io.EOF {\n break\n }\n geci := line[strings.LastIndex(line,\"]\")+1:]\n r := `\\[(\\d\\d:\\d\\d)\\.\\d\\d\\]`\n rr, _ := regexp.Compile(r)\n var resultsSearch [][]string = rr.FindAllStringSubmatch(line, 9)\n //resultsSearch[0]第一个匹配切片 resultsSearch[0][0]整体正则 resultsSearch[0][1]第一个括号 ...\n for _, v := range resultsSearch{\n lrcMap[v[1]] = geci\n }\n }\n return lrcMap\n}", "func p256Select(point, table []uint64, idx int)", "func p256Select(point, table []uint64, idx int)", "func (d *Database) GetColorForGroup(uid, eid string) (string, error) {\n\tclusterID, err := d.getClusterID(uid, eid)\n\tif err != nil {\n\t\tlog.Printf(\"Could not get cluster for %s:%s because \\\"%s\\\"\", eid, uid, err)\n\t\treturn \"\", err\n\t}\n\n\tresult := d.client.HGet(fmt.Sprintf(\"meta:%s\", eid), fmt.Sprintf(\"color:%.0f\", clusterID))\n\tif err := result.Err(); err != nil {\n\t\tlog.Printf(\"Could not get color for %s because \\\"%s\\\"\", eid, err)\n\t\treturn \"\", err\n\t}\n\n\treturn result.Val(), nil\n}", "func CopyColorSubTable(target uint32, start int32, x int32, y int32, width int32) {\n\tC.glowCopyColorSubTable(gpCopyColorSubTable, (C.GLenum)(target), (C.GLsizei)(start), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width))\n}", "func (*ColorInfo) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_retail_v2_common_proto_rawDescGZIP(), []int{1}\n}", "func colorsOf(nodes graph.Nodes, coloring map[int64]int) set.Ints {\n\tc := make(set.Ints, nodes.Len())\n\tfor nodes.Next() {\n\t\tused, ok := coloring[nodes.Node().ID()]\n\t\tif ok {\n\t\t\tc.Add(used)\n\t\t}\n\t}\n\treturn c\n}", "func (ppu *PPU) FetchColor(index byte) uint32 {\r\n\treturn ppu.colors[ppu.palette[index&0x1F]]\r\n}", "func lookup(p fuseops.InodeID, c string, lookupTree *iradix.Tree) (le lookupEntry, found bool, lk []byte) {\n\tlk = formLookupKey(p, c)\n\tval, found := lookupTree.Get(lk)\n\tif found {\n\t\tle = val.(lookupEntry)\n\t\treturn le, found, lk\n\t}\n\treturn lookupEntry{}, found, lk\n}", "func lookup(p fuseops.InodeID, c string, lookupTree *iradix.Tree) (le lookupEntry, found bool, lk []byte) {\n\tlk = formLookupKey(p, c)\n\tval, found := lookupTree.Get(lk)\n\tif found {\n\t\tle = val.(lookupEntry)\n\t\treturn le, found, lk\n\t}\n\treturn lookupEntry{}, found, lk\n}", "func Color() string {\n\treturn lookup(lang, \"colors\", true)\n}", "func (sc *simpleLRUStatsCache) Lookup(id int64) (*statistics.Table, bool) {\n\tsc.mu.Lock()\n\tdefer sc.mu.Unlock()\n\treturn sc.lookupUnsafe(id)\n}", "func getPixVal(c color.Color) float64 {\n\tr, _, _, _ := c.RGBA()\n\treturn float64(r >> 8)\n}", "func (m *ParentLabelDetails) GetColor()(*string) {\n val, err := m.GetBackingStore().Get(\"color\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.(*string)\n }\n return nil\n}", "func (dc *DigestCache) Lookup(hash []byte) []byte {\n\tif r, ok := dc.Records[string(hash)]; ok {\n\t\treturn r\n\t}\n\treturn nil\n}", "func GetColor(c *gin.Context) {\n\tid, err := strconv.Atoi(c.Param(\"id\"))\n\tif err != nil {\n\t\tc.AbortWithStatusJSON(http.StatusBadRequest, err.Error())\n\t\treturn\n\t}\n\tvar color RgbColor\n\tresult := Db.First(&color, id)\n\tif result.Error != nil {\n\t\tc.AbortWithStatusJSON(http.StatusNotFound, result.Error.Error())\n\t\treturn\n\t}\n\tc.JSON(200, color)\n}", "func LookupTable(ctx *pulumi.Context, args *LookupTableArgs, opts ...pulumi.InvokeOption) (*LookupTableResult, error) {\n\tvar rv LookupTableResult\n\terr := ctx.Invoke(\"google-native:bigquery/v2:getTable\", args, &rv, opts...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &rv, nil\n}", "func (c Color) String() string {\n\treturn colorMap[c].Color\n}", "func Get(img image.Image, n int) []color.Color {\n\tbuckets := gatherColorBuckets(img, defaultThreshold)\n\tsort.Sort(buckets)\n\n\tif len(buckets) > n {\n\t\tbuckets = buckets[:n]\n\t}\n\n\tcolors := make([]color.Color, len(buckets))\n\tfor idx, b := range buckets {\n\t\tcolors[idx] = b.mean()\n\t}\n\n\treturn colors\n}", "func getLookupCacheURLs(frame *rtda.Frame) {\n\tstack := frame.OperandStack()\n\tstack.PushNull()\n}", "func LookupTableFindV2(scope *Scope, table_handle tf.Output, keys tf.Output, default_value tf.Output) (values tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"LookupTableFindV2\",\n\t\tInput: []tf.Input{\n\t\t\ttable_handle, keys, default_value,\n\t\t},\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0)\n}", "func (gw2 *GW2Api) Colors() (res []int, err error) {\n\tver := \"v2\"\n\ttag := \"colors\"\n\terr = gw2.fetchEndpoint(ver, tag, nil, &res)\n\treturn\n}", "func (t *Table) Lookup(s string) (n uint32, ok bool) {\n\ti0 := int(murmurSeed(0).hash(s)) & t.level0Mask\n\tseed := t.level0[i0]\n\ti1 := int(murmurSeed(seed).hash(s)) & t.level1Mask\n\tn = t.level1[i1]\n\treturn n, s == t.keys[int(n)]\n}", "func FindColor(c Color, palette []Color) Color {\n\tmatch := Default\n\tdist := float64(0)\n\tr, g, b := ToRGB(c)\n\tc1 := RGB{\n\t\tR: float64(r) / 255.0,\n\t\tG: float64(g) / 255.0,\n\t\tB: float64(b) / 255.0,\n\t}\n\tfor _, d := range palette {\n\t\tr, g, b = ToRGB(d)\n\t\tc2 := RGB{\n\t\t\tR: float64(r) / 255.0,\n\t\t\tG: float64(g) / 255.0,\n\t\t\tB: float64(b) / 255.0,\n\t\t}\n\t\t// CIE94 is more accurate, but really-really expensive.\n\t\tnd := DistanceCIE76(c1, c2)\n\t\tif math.IsNaN(nd) {\n\t\t\tnd = math.Inf(1)\n\t\t}\n\t\tif match == Default || nd < dist {\n\t\t\tmatch = d\n\t\t\tdist = nd\n\t\t}\n\t}\n\treturn match\n}", "func colorPair(c color.Color) (hi, lo color.Color) {\n\tr, g, b, a := c.RGBA()\n\tr >>= 8\n\tg >>= 8\n\tb >>= 8\n\ta >>= 8\n\tmaxd := uint32(40)\n\tif r < maxd {\n\t\tmaxd = r\n\t}\n\tif g < maxd {\n\t\tmaxd = g\n\t}\n\tif b < maxd {\n\t\tmaxd = b\n\t}\n\tif r > 128 && (255-r) < maxd {\n\t\tmaxd = (255 - r)\n\t}\n\tif g > 128 && (255-g) < maxd {\n\t\tmaxd = (255 - g)\n\t}\n\tif b > 128 && (255-b) < maxd {\n\t\tmaxd = (255 - b)\n\t}\n\thi = color.RGBA{\n\t\tR: uint8(r + maxd),\n\t\tG: uint8(g + maxd),\n\t\tB: uint8(b + maxd),\n\t\tA: uint8(a),\n\t}\n\tlo = color.RGBA{\n\t\tR: uint8(r - maxd),\n\t\tG: uint8(g - maxd),\n\t\tB: uint8(b - maxd),\n\t\tA: uint8(a),\n\t}\n\treturn hi, lo\n}", "func getPalette(w, h, k, s int) int {\n\tif k < 1 || (s != 0 && s != 1) {\n\t\treturn 0\n\t}\n\n\tvar pixels, palette [][3]int\n\n\tpixels = helper.SubsamplingPixels(buffer, w, h)\n\n\tswitch s {\n\tcase 0:\n\t\tpalette = wu.QuantWu(pixels, k)\n\t\tbreak\n\tcase 1:\n\t\tpalette = wsm.WSM(pixels, k)\n\t\tbreak\n\tdefault:\n\t\treturn 0\n\t}\n\n\tfor i, v := range palette {\n\t\tpalettes[3*i], palettes[3*i+1], palettes[3*i+2] = uint8(v[0]), uint8(v[1]), uint8(v[2])\n\t}\n\treturn 1\n}", "func main() {\n\n\tvar colors = []string{\"Red\", \"Blue\", \"Yellow\", \"Pink\", \"Purple\", \"Brown\", \"Green\"}\n\n\tvar buckets = 7\n\n\tvar hashMap = make([]string, buckets)\n\n\tfor _, color := range colors {\n\t\thash := hashFunction(color, buckets)\n\t\thashMap[hash] = color\n\t}\n\tfmt.Println(hashMap[3])\n\n\tfmt.Println(hashMap)\n}", "func (c Color) GetContent() map[string]interface{} {\n\treturn map[string]interface{}{\n\t\t\"color\": c.Color,\n\t}\n}", "func (Color) EnumDescriptor() ([]byte, []int) {\n\treturn file_Chess_proto_rawDescGZIP(), []int{0}\n}", "func (r *tableReader) readTableV2(path string, fd uint32) *map[uint32]uint32 {\n\tpath = r.tablePath(path, fd)\n\tfp, err := os.OpenFile(path, os.O_RDONLY, 0666)\n\tstatus, err := os.Stat(path)\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"unable to get table file status, error: %v\", err))\n\t}\n\tdataRef, err := syscall.Mmap(int(fp.Fd()), int64(0), int(status.Size()), syscall.PROT_READ, syscall.MAP_PRIVATE)\n\tdefer r.release(dataRef)\n\tdefer fp.Close()\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"unable to mmap: %v\", err))\n\t}\n\tfi := &fileInfo{}\n\t// get file info\n\tfi.Decode(dataRef[status.Size()-32 : status.Size()])\n\tmetaBuf := new(bytes.Buffer)\n\t// metaBuf saved all map's entry in this table\n\tmetaBuf.Write(dataRef[fi.metaOffset : status.Size()-32])\n\toffsetMap := map[uint32]uint32{}\n\tdecoder := gob.NewDecoder(metaBuf)\n\terr = decoder.Decode(&offsetMap)\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"unable to decode map, error: %v\", err))\n\t}\n\treturn &offsetMap\n}", "func GetHueColors(nbColors int, imgData []byte) (colors []CIExyY, params string, err error) {\n\t// Decode data as image\n\timg, _, err := image.Decode(bytes.NewBuffer(imgData))\n\tif err != nil {\n\t\terr = fmt.Errorf(\"can't decode data as image: %v\", err)\n\t\treturn\n\t}\n\t// Create each set\n\tvar RGBcolors []prominentcolor.ColorItem\n\tpossibilities := make(ColorSets, len(prominentcolorsParams))\n\tfor index, param := range prominentcolorsParams {\n\t\t// Extract main colors with current params\n\t\tRGBcolors, err = prominentcolor.KmeansWithAll(nbColors, img, param,\n\t\t\tprominentcolor.DefaultSize, prominentcolor.GetDefaultMasks())\n\t\tif err != nil {\n\t\t\terr = fmt.Errorf(\"prominent colors extraction failed with params '%s': %v\", genPColorParamsString(param), err)\n\t\t\treturn\n\t\t}\n\t\t// Add them to the list\n\t\tpossibilities[index] = NewColorSet(RGBcolors, param)\n\t}\n\t// Get the set with the most differents colors\n\tsort.Sort(sort.Reverse(possibilities))\n\t// Build the answer\n\tparams = possibilities[0].GetPColorParamsString()\n\tcolors = make([]CIExyY, nbColors)\n\tfor index, color := range possibilities[0].GetColorfullSet() {\n\t\tcolors[index].X, colors[index].Y, colors[index].Luminance = color.Xyy()\n\t}\n\treturn\n}", "func lookup(url string) string {\n\tresponse, err := http.Get(url)\n\tif err != nil {\n\t\tfmt.Printf(\"The HTTP request failed with error %s\\n\", err)\n\t\tos.Exit(1)\n\t}\n\tdata, _ := ioutil.ReadAll(response.Body)\n\treturn string(data)\n}", "func (d *Driver) Lookup(id string) ([]byte, error) {\n\td.lockfile.Lock()\n\tdefer d.lockfile.Unlock()\n\n\tsecretData, err := d.getAllData()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif data, ok := secretData[id]; ok {\n\t\treturn data, nil\n\t}\n\treturn nil, fmt.Errorf(\"%s: %w\", id, errNoSecretData)\n}", "func GenColor(intr int) [][]uint8 {\n\toutput := [][]uint8{}\n\tfor i := 0; i <= 255; i += intr {\n\t\tfor j := 0; j <= 255; j += intr {\n\t\t\tfor k := 0; k <= 255; k += intr {\n\t\t\t\ta := []uint8{uint8(i), uint8(j), uint8(k)}\n\t\t\t\toutput = append(output, a)\n\n\t\t\t}\n\t\t}\n\t}\n\treturn output\n\n}", "func lookupPoly(blockSizeLength int) int {\n\tswitch (blockSizeLength * 8) {\n\tcase 64: return 0x1B;\n\tcase 128: return 0x87;\n\tcase 160: return 0x2D;\n\tcase 192: return 0x87;\n\tcase 224: return 0x309;\n\tcase 256: return 0x425;\n\tcase 320: return 0x1B;\n\tcase 384: return 0x100D;\n\tcase 448: return 0x851;\n\tcase 512: return 0x125;\n\tcase 768: return 0xA0011;\n\tcase 1024: return 0x80043;\n\tcase 2048: return 0x86001;\n }\n\treturn -1\n}", "func (uni *Uniform1fv) GetColor(pos int) math32.Color {\n\n\treturn math32.Color{uni.v[pos], uni.v[pos+1], uni.v[pos+2]}\n}", "func Lookup(dataset Sample) string {\n\tpattern := datasets[dataset]\n\treturn pattern\n}", "func colorcomp(s string) (red, green, blue, alpha float64) {\n\tif len(s) < 7 && s[0:0] != \"#\" {\n\t\treturn red, green, blue, alpha\n\t}\n\tvar av = make([]byte, 1)\n\trv, _ := hex.DecodeString(s[1:3])\n\tgv, _ := hex.DecodeString(s[3:5])\n\tbv, _ := hex.DecodeString(s[5:7])\n\n\tred = float64(rv[0])\n\tgreen = float64(gv[0])\n\tblue = float64(bv[0])\n\talpha = 255.0\n\n\tif len(s) == 9 {\n\t\tav, _ = hex.DecodeString(s[7:9])\n\t\talpha = float64(av[0])\n\t}\n\treturn red, green, blue, alpha\n}", "func printColored(boundaries []colored_data, data []byte) []string {\n\tgrouping := 2\n\tper_line := 16\n\t// 16 bytes per line, grouped by 2 bytes\n\tnlines := len(data) / 16\n\tif len(data) % 16 > 0 {\n\t\tnlines++\n\t}\n\t\n\tout := make([]string, nlines)\n\n\tkolo := \"\\x1B[0m\"\n\t\n\tfor line := 0; line < nlines; line++ {\n\t\ts := \"\\t0x\"\n\t\txy := make([]byte, 2)\n\t\tline_offset := line * per_line\n\t\txy[0] = byte(line_offset >> 8)\n\t\txy[1] = byte(line_offset & 0xff)\n\t\ts = s + hex.EncodeToString(xy) + \":\\t\" + kolo\n\n\n\t\tline_length := per_line\n\t\tif line == nlines - 1 && len(data) % 16 > 0 {\n\t\t\tline_length = len(data) % 16\n\t\t}\n\n\t\tfor b := 0; b < line_length; b++ {\n\t\t\ttotal_offset := line * per_line + b\n\n\t\t\t// inserting coulourings\n\t\t\tfor x := 0; x < len(boundaries); x++ {\n\t\t\t\t//fmt.Println(\"!\")\n\t\t\t\tif(boundaries[x].offset == uint16(total_offset)) {\n\t\t\t\t\ts = s + boundaries[x].color\n\t\t\t\t\tkolo = boundaries[x].color\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t// add byte from total_offset\n\t\t\txxx := make([]byte, 1)\n\t\t\txxx[0] = data[total_offset]\n\t\t\ts = s + hex.EncodeToString(xxx)\n\t\t\t\n\t\t\t// if b > 0 && b % grouping == 0, insert space\n\t\t\t\n\t\t\tif b > 0 && (b-1) % grouping == 0 {\n\t\t\t\ts = s + \" \"\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tout[line] = s + COLOR_NORMAL\n\t}\n\t\n\treturn out\n}", "func shortestDistanceColor(colors []int, queries [][]int) []int {\n\tr := make([]int, 0)\n\t//data structure\n\t// brain storm:\n\t// 1) linked list\n\t// 2) hash\n\t// map[value int] indexes []int | ordered?\n\t// loop through colors to create map\n\t// check if the value exist\n\t// loop through indexes to find the lowest difference\n\t//\n\t// optionb) only 3 values not too much sense to hash it.\n\t//\n\t// O(1*ln(M) + N)\n\t// 3) list\n\t// brute force loop forward and backward until match\n\t// O(N)\n\t// Probably going with this\n\n\tfor _, v := range queries {\n\t\tshortest := -1\n\t\tfunc() {\n\t\t\tfor i := v[0]; i < len(colors); i++ {\n\n\t\t\t\tif v[1] == colors[i] {\n\t\t\t\t\tdistance := i - v[0]\n\t\t\t\t\tshortest = distance\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor i := v[0]; i >= 0; i-- {\n\t\t\t\tdistance := v[0] - i\n\t\t\t\tif shortest != -1 {\n\t\t\t\t\tif distance < shortest {\n\t\t\t\t\t\tshortest = distance\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tshortest = distance\n\t\t\t\t}\n\t\t\t}\n\t\t}()\n\t\tr = append(r, shortest)\n\t}\n\n\treturn r\n}", "func getColorSorted(c []Color) []Color {\n\t// Sorts the colors by hue Ascending\n\tsort.Slice(c, func(i, j int) bool {\n\t\treturn c[i].Hue > c[j].Hue\n\t})\n\treturn c\n}", "func (b *BoardTest) TestQuickColors(t *C) {\n\tl := new(RGBLED, 9, 10, 11)\n\tvar cs = map[string][3]byte{\n\t\t\"red\": [3]byte{0xFF, 00, 00},\n\t\t\"green\": [3]byte{00, 0xFF, 00},\n\t\t\"blue\": [3]byte{00, 00, 0xFF},\n\t\t\"black\": [3]byte{00, 00, 00},\n\t\t\"white\": [3]byte{0xFF, 0xFF, 0xFF},\n\t}\n\tfor c, v := range cs {\n\t\tl.QuickColor(c)\n\t\tt.Check(l.Red, Equals, v[0])\n\t\tt.Check(l.Green, Equals, v[1])\n\t\tt.Check(l.Blue, Equals, v[2])\n\t}\n}", "func (vind *UTF8cihash) Map(_ VCursor, ids []interface{}) ([][]byte, error) {\n\tout := make([][]byte, 0, len(ids))\n\tfor _, id := range ids {\n\t\tdata, err := getutf8cihash(id)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"utf8cihash.Map :%v\", err)\n\t\t}\n\t\tout = append(out, data)\n\t}\n\treturn out, nil\n}", "func (c car) getColor() string {\n\treturn c.color\n}", "func (c car) getColor() string {\n\treturn c.color\n}", "func (parser *Parser) parseResourceTable() {\n\tchunk := parser.getLEWord(parser.ParserOffset + (1 * WORD_SIZE))\n\tparser.ResCount = (chunk / 4) - 2\n\n\tparser.ResourcesIds = make([]int, parser.ResCount)\n\tfor i := 0; i < parser.ResCount; i++ {\n\t\tparser.ResourcesIds[i] = parser.getLEWord(parser.ParserOffset + ((i + 2) * WORD_SIZE))\n\t}\n\n\tparser.ParserOffset += chunk\n}", "func GetGammaTableI3D(hDC unsafe.Pointer, iEntries unsafe.Pointer, puRed unsafe.Pointer, puGreen unsafe.Pointer, puBlue unsafe.Pointer) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall6(gpGetGammaTableI3D, 5, uintptr(hDC), uintptr(iEntries), uintptr(puRed), uintptr(puGreen), uintptr(puBlue), 0)\n\treturn (unsafe.Pointer)(ret)\n}", "func LookupTableExportV2(scope *Scope, table_handle tf.Output, Tkeys tf.DataType, Tvalues tf.DataType) (keys tf.Output, values tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"Tkeys\": Tkeys, \"Tvalues\": Tvalues}\n\topspec := tf.OpSpec{\n\t\tType: \"LookupTableExportV2\",\n\t\tInput: []tf.Input{\n\t\t\ttable_handle,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0), op.Output(1)\n}", "func formatToCsv(file string, colors []Hexcode) [4]string {\n\tvar data [4]string\n\tdata[0] = file\n\tfor k, v := range colors {\n\t\tdata[k+1] = v.Key\n\t}\n\treturn data\n}", "func (g *MyGame) GetTableInfo() *TableInfo {\n // Run the algorithm to generate a list of solutions!!!\n //length := getTableLen(g.CurTable)\n // TODO(dlluncor): Can't get solutions in this thread for some reason\n // so going back to the old GET request way of doing things, that seems\n // to work...\n //answers := \"cheese,potatoes\"\n //tableToSolve := strings.Replace(g.CurTable, \"*\", \"\", -1)\n //solveForWords(tableToSolve, length)\n info := &TableInfo{\n Table: g.CurTable,\n }\n return info\n}", "func (s *SecondStateMachine) Lookup(query []byte) []byte {\n\tresult := make([]byte, 8)\n\tbinary.LittleEndian.PutUint64(result, s.Count)\n\treturn result\n}", "func (uni *Uniform3fv) GetColor(idx int) math32.Color {\n\n\tpos := idx * 3\n\treturn math32.Color{uni.v[pos], uni.v[pos+1], uni.v[pos+2]}\n}", "func (o GoogleCloudRetailV2alphaColorInfoPtrOutput) Colors() pulumi.StringArrayOutput {\n\treturn o.ApplyT(func(v *GoogleCloudRetailV2alphaColorInfo) []string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.Colors\n\t}).(pulumi.StringArrayOutput)\n}", "func lookup(descriptions map[uint16]description, what uint16) description {\n\tv, ok := descriptions[what]\n\tif !ok {\n\t\tunknown := fmt.Sprintf(\"UNKNOWN_%x\", what)\n\t\treturn description{unknown, unknown, 0}\n\t}\n\treturn v\n}", "func (r *ImageRef) ColorSpace() Interpretation {\n\treturn r.Interpretation()\n}", "func (r *rdsRoute) Lookup(ns, topic string) ([]string, error) {\n\tkey := r.getRoutePrefix(ns, topic)\n\trds := r.rdc.Get(util.R, key)\n\tdefer rds.Close()\n\traws, err := redis.StringMap(rds.Do(\"HGETALL\", key))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\taddrs := make([]string, 0, len(raws))\n\tfor k, _ := range raws {\n\t\taddrs = append(addrs, k)\n\t}\n\treturn addrs, nil\n}", "func IndexLookup(x *suffixarray.Index, s []byte, n int) []int" ]
[ "0.6898136", "0.58602065", "0.5814576", "0.57028973", "0.5615421", "0.5601724", "0.5573298", "0.55557144", "0.54742765", "0.54075366", "0.534365", "0.5266686", "0.5260317", "0.5245375", "0.52274656", "0.5185882", "0.51822567", "0.5179281", "0.51356626", "0.51332706", "0.5102151", "0.50804776", "0.5035882", "0.50320053", "0.5012726", "0.49883738", "0.49665704", "0.49527523", "0.49391323", "0.49180716", "0.49044636", "0.48971254", "0.48762307", "0.48729676", "0.4850834", "0.4849514", "0.48475084", "0.48453864", "0.48292345", "0.48001727", "0.4734942", "0.47238725", "0.47213176", "0.4709919", "0.46892548", "0.46892548", "0.46742487", "0.46474892", "0.46360934", "0.46290454", "0.4623536", "0.46120203", "0.46120203", "0.46105376", "0.460084", "0.4597614", "0.459543", "0.45886245", "0.45808974", "0.45757014", "0.4574907", "0.4574468", "0.45674503", "0.45606804", "0.45570645", "0.45551112", "0.4543911", "0.45429602", "0.45395723", "0.45372763", "0.45248857", "0.45216238", "0.45085654", "0.45084363", "0.45078722", "0.45026278", "0.4500366", "0.44966248", "0.4478926", "0.4478122", "0.4459543", "0.44480467", "0.44471735", "0.44356054", "0.44279298", "0.44278303", "0.44268048", "0.44268048", "0.4420856", "0.44176775", "0.44109252", "0.44036093", "0.44030252", "0.43898565", "0.43883395", "0.43771866", "0.43769512", "0.43668896", "0.43653628", "0.43578655" ]
0.66787565
1
return a compressed texture image
func GetCompressedTexImage(target uint32, level int32, img unsafe.Pointer) { C.glowGetCompressedTexImage(gpGetCompressedTexImage, (C.GLenum)(target), (C.GLint)(level), img) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureImage(gpGetCompressedTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLsizei)(bufSize), pixels)\n}", "func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureImage(gpGetCompressedTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLsizei)(bufSize), pixels)\n}", "func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetCompressedTextureImage, 4, uintptr(texture), uintptr(level), uintptr(bufSize), uintptr(pixels), 0, 0)\n}", "func GetCompressedTexImage(target uint32, level int32, img unsafe.Pointer) {\n C.glowGetCompressedTexImage(gpGetCompressedTexImage, (C.GLenum)(target), (C.GLint)(level), img)\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureSubImage(gpGetCompressedTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(bufSize), pixels)\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureSubImage(gpGetCompressedTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(bufSize), pixels)\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpGetCompressedTextureSubImage, 10, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(bufSize), uintptr(pixels), 0, 0)\n}", "func GetCompressedTexImage(target uint32, level int32, img unsafe.Pointer) {\n\tsyscall.Syscall(gpGetCompressedTexImage, 3, uintptr(target), uintptr(level), uintptr(img))\n}", "func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage3D(gpCompressedTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage3D(gpCompressedTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall12(gpCompressedTextureSubImage3D, 11, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(imageSize), uintptr(data), 0)\n}", "func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage2D(gpCompressedTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage2D(gpCompressedTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTextureSubImage2D, 9, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(width), uintptr(height), uintptr(format), uintptr(imageSize), uintptr(data))\n}", "func CompressedTextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTextureSubImage1D, 7, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(width), uintptr(format), uintptr(imageSize), uintptr(data), 0, 0)\n}", "func CompressedTextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage1D(gpCompressedTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage1D(gpCompressedTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage2D(target uint32, level int32, internalformat uint32, width int32, height int32, border int32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexImage2D(gpCompressedTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage2D(target uint32, level int32, internalformat uint32, width int32, height int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTexImage2D, 8, uintptr(target), uintptr(level), uintptr(internalformat), uintptr(width), uintptr(height), uintptr(border), uintptr(imageSize), uintptr(data), 0)\n}", "func CompressedTexImage2D(target uint32, level int32, internalformat uint32, width int32, height int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexImage2D(gpCompressedTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage2D(target uint32, level int32, internalformat uint32, width int32, height int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexImage2D(gpCompressedTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage3D(target uint32, level int32, internalformat uint32, width int32, height int32, depth int32, border int32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexImage3D(gpCompressedTexImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexSubImage3D(gpCompressedTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage3D(target uint32, level int32, internalformat uint32, width int32, height int32, depth int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTexImage3D, 9, uintptr(target), uintptr(level), uintptr(internalformat), uintptr(width), uintptr(height), uintptr(depth), uintptr(border), uintptr(imageSize), uintptr(data))\n}", "func CompressedTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexSubImage2D(gpCompressedTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage1D(target uint32, level int32, internalformat uint32, width int32, border int32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexImage1D(gpCompressedTexImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexSubImage1D(gpCompressedTexSubImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage2D(target GLEnum, level int32, internalformat GLEnum, width, height, border, imageSize int32, pixels []float32) {\n\tgl.CompressedTexImage2D(uint32(target), level, uint32(internalformat), width, height, border, imageSize, unsafe.Pointer(&pixels[0]))\n}", "func CompressedTexImage3D(target uint32, level int32, internalformat uint32, width int32, height int32, depth int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexImage3D(gpCompressedTexImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage3D(target uint32, level int32, internalformat uint32, width int32, height int32, depth int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexImage3D(gpCompressedTexImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage2D(target Enum, level int, internalformat Enum, width, height, border int, data []byte) {\n\tgl.CompressedTexImage2D(uint32(target), int32(level), uint32(internalformat), int32(width), int32(height), int32(border), int32(len(data)), gl.Ptr(data))\n}", "func CompressedTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall12(gpCompressedTexSubImage3D, 11, uintptr(target), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(imageSize), uintptr(data), 0)\n}", "func CompressedTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexSubImage3D(gpCompressedTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexSubImage3D(gpCompressedTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage1D(target uint32, level int32, internalformat uint32, width int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTexImage1D, 7, uintptr(target), uintptr(level), uintptr(internalformat), uintptr(width), uintptr(border), uintptr(imageSize), uintptr(data), 0, 0)\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureSubImage(gpGetTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureSubImage(gpGetTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func CompressedTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTexSubImage2D, 9, uintptr(target), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(width), uintptr(height), uintptr(format), uintptr(imageSize), uintptr(data))\n}", "func CompressedTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexSubImage2D(gpCompressedTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexSubImage2D(gpCompressedTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func (self *Graphics) GenerateTexture3O(resolution int, scaleMode int, padding int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution, scaleMode, padding)}\n}", "func CompressedTexSubImage2D(target GLEnum, level, xoffset, yoffset, width, height int32, format GLEnum, imageSize int32, pixels []float32) {\n\tgl.CompressedTexSubImage2D(uint32(target), level, xoffset, yoffset, width, height, uint32(format), imageSize, unsafe.Pointer(&pixels[0]))\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpGetTextureSubImage, 12, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(xtype), uintptr(bufSize), uintptr(pixels))\n}", "func Make(width, height int, internalformat int32, format, pixelType uint32,\n\tdata unsafe.Pointer, min, mag, s, t int32) Texture {\n\n\ttexture := Texture{0, gl.TEXTURE_2D, 0}\n\n\t// generate and bind texture\n\tgl.GenTextures(1, &texture.handle)\n\ttexture.Bind(0)\n\n\t// set texture properties\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, min)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, mag)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, s)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, t)\n\n\t// specify a texture image\n\tgl.TexImage2D(gl.TEXTURE_2D, 0, internalformat, int32(width), int32(height),\n\t\t0, format, pixelType, data)\n\n\t// unbind texture\n\ttexture.Unbind()\n\n\treturn texture\n}", "func Read(src image.Image) (*Image, error) {\n\t// Use fallback conversion for unknown image formats.\n\trgba, ok := src.(*image.RGBA)\n\tif !ok {\n\t\treturn Read(fallback(src))\n\t}\n\t// Use fallback conversion for subimages.\n\twidth, height := rgba.Rect.Dx(), rgba.Rect.Dy()\n\tif rgba.Stride != 4*width {\n\t\treturn Read(fallback(src))\n\t}\n\t// Create a read-only texture based on the pixels of the src image.\n\tt := C.sfTexture_create(C.uint(width), C.uint(height))\n\tif t == nil {\n\t\treturn nil, fmt.Errorf(\"texture.Read: unable to create %dx%d texture\", width, height)\n\t}\n\ttex := &Image{\n\t\ttex: t,\n\t}\n\tpix := (*C.sfUint8)(unsafe.Pointer(&rgba.Pix[0]))\n\tC.sfTexture_updateFromPixels(tex.tex, pix, C.uint(width), C.uint(height), 0, 0)\n\t// Create a sprite for the texture.\n\tsprite := C.sfSprite_create()\n\tif sprite == nil {\n\t\treturn nil, errors.New(\"texture.Read: unable to create sprite\")\n\t}\n\ttex.sprite = sprite\n\tC.sfSprite_setTexture(tex.sprite, tex.tex, C.sfTrue)\n\treturn tex, nil\n}", "func (f *Font) GetTexture() *Texture { return f.texture }", "func CompressedTexImage1D(target uint32, level int32, internalformat uint32, width int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexImage1D(gpCompressedTexImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage1D(target uint32, level int32, internalformat uint32, width int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexImage1D(gpCompressedTexImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage2D(target Enum, level Int, internalformat Enum, width Sizei, height Sizei, border Int, imageSize Sizei, data unsafe.Pointer) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tclevel, _ := (C.GLint)(level), cgoAllocsUnknown\n\tcinternalformat, _ := (C.GLenum)(internalformat), cgoAllocsUnknown\n\tcwidth, _ := (C.GLsizei)(width), cgoAllocsUnknown\n\tcheight, _ := (C.GLsizei)(height), cgoAllocsUnknown\n\tcborder, _ := (C.GLint)(border), cgoAllocsUnknown\n\tcimageSize, _ := (C.GLsizei)(imageSize), cgoAllocsUnknown\n\tcdata, _ := (unsafe.Pointer)(unsafe.Pointer(data)), cgoAllocsUnknown\n\tC.glCompressedTexImage2D(ctarget, clevel, cinternalformat, cwidth, cheight, cborder, cimageSize, cdata)\n}", "func New(width uint16, height uint16) *Texture {\n\tt := &Texture{\n\t\twidth: width,\n\t\theight: height,\n\t\tpixels: make([]rgb565.Rgb565Color, width*height),\n\t}\n\n\tfor i := range t.pixels {\n\t\tt.pixels[i] = rgb565.New(0x00, 0x00, 0x00)\n\t}\n\n\treturn t\n}", "func (self *Graphics) GenerateTexture2O(resolution int, scaleMode int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution, scaleMode)}\n}", "func GetTextureImage(texture uint32, level int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureImage(gpGetTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func GetTextureImage(texture uint32, level int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureImage(gpGetTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func CompressedTexSubImage2D(target Enum, level, xoffset, yoffset, width, height int, format Enum, data []byte) {\n\tgl.CompressedTexSubImage2D(uint32(target), int32(level), int32(xoffset), int32(yoffset), int32(width), int32(height), uint32(format), int32(len(data)), gl.Ptr(data))\n}", "func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyTextureSubImage3D(gpCopyTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyTextureSubImage3D(gpCopyTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func CompressedTexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexSubImage1D(gpCompressedTexSubImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexSubImage1D(gpCompressedTexSubImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTexSubImage1D, 7, uintptr(target), uintptr(level), uintptr(xoffset), uintptr(width), uintptr(format), uintptr(imageSize), uintptr(data), 0, 0)\n}", "func (t Texture3D) GetData() []byte {\n\t// TODO do this in batches/stream to avoid memory limitations\n\tvar data = make([]byte, t.width*t.height*t.depth*t.texelSize)\n\tt.Bind()\n\tgl.PixelStorei(gl.PACK_ALIGNMENT, t.alignment)\n\tgl.GetTexImage(gl.TEXTURE_3D, 0, t.format, gl.UNSIGNED_BYTE, unsafe.Pointer(&data[0]))\n\tt.Unbind()\n\treturn data\n}", "func (bm Blendmap) Texture() *gl.Texture {\n\treturn bm.Map.id\n}", "func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n\tsyscall.Syscall9(gpCopyTextureSubImage3D, 9, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(x), uintptr(y), uintptr(width), uintptr(height))\n}", "func GetTextureImage(texture uint32, level int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetTextureImage, 6, uintptr(texture), uintptr(level), uintptr(format), uintptr(xtype), uintptr(bufSize), uintptr(pixels))\n}", "func (w *Worley) GenerateTexture(tex *texture.Texture) {\n\tgl.BindImageTexture(0, tex.GetHandle(), 0, false, 0, gl.READ_WRITE, gl.RGBA32F)\n\tgl.BindImageTexture(1, w.noisetexture.GetHandle(), 0, false, 0, gl.READ_ONLY, gl.RGBA32F)\n\n\tw.computeshader.Use()\n\tw.computeshader.UpdateInt32(\"uWidth\", w.width)\n\tw.computeshader.UpdateInt32(\"uHeight\", w.height)\n\tw.computeshader.UpdateInt32(\"uResolution\", w.resolution)\n\tw.computeshader.UpdateInt32(\"uOctaves\", w.octaves)\n\tw.computeshader.UpdateFloat32(\"uRadius\", w.radius)\n\tw.computeshader.UpdateFloat32(\"uRadiusScale\", w.radiusscale)\n\tw.computeshader.UpdateFloat32(\"uBrightness\", w.brightness)\n\tw.computeshader.UpdateFloat32(\"uContrast\", w.contrast)\n\tw.computeshader.UpdateFloat32(\"uScale\", w.scale)\n\tw.computeshader.UpdateFloat32(\"uPersistance\", w.persistance)\n\tw.computeshader.Compute(uint32(w.width), uint32(w.height), 1)\n\tw.computeshader.Compute(1024, 1024, 1)\n\tw.computeshader.Release()\n\n\tgl.MemoryBarrier(gl.ALL_BARRIER_BITS)\n\n\tgl.BindImageTexture(0, 0, 0, false, 0, gl.WRITE_ONLY, gl.RGBA32F)\n\tgl.BindImageTexture(1, 0, 0, false, 0, gl.READ_ONLY, gl.RGBA32F)\n}", "func (t *Three) Texture() *Texture {\n\tp := t.ctx.Get(\"Texture\")\n\treturn TextureFromJSObject(p)\n}", "func CompressedTexSubImage2D(target Enum, level Int, xoffset Int, yoffset Int, width Sizei, height Sizei, format Enum, imageSize Sizei, data unsafe.Pointer) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tclevel, _ := (C.GLint)(level), cgoAllocsUnknown\n\tcxoffset, _ := (C.GLint)(xoffset), cgoAllocsUnknown\n\tcyoffset, _ := (C.GLint)(yoffset), cgoAllocsUnknown\n\tcwidth, _ := (C.GLsizei)(width), cgoAllocsUnknown\n\tcheight, _ := (C.GLsizei)(height), cgoAllocsUnknown\n\tcformat, _ := (C.GLenum)(format), cgoAllocsUnknown\n\tcimageSize, _ := (C.GLsizei)(imageSize), cgoAllocsUnknown\n\tcdata, _ := (unsafe.Pointer)(unsafe.Pointer(data)), cgoAllocsUnknown\n\tC.glCompressedTexSubImage2D(ctarget, clevel, cxoffset, cyoffset, cwidth, cheight, cformat, cimageSize, cdata)\n}", "func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowGetTexImage(gpGetTexImage, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (self *GameObjectCreator) RenderTexture4O(width int, height int, key string, addToCache bool) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height, key, addToCache)}\n}", "func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpTextureSubImage3D, 11, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(xtype), uintptr(pixels), 0)\n}", "func (self *Graphics) GenerateTexture1O(resolution int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution)}\n}", "func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage3D(gpTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage3D(gpTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (c *Canvas) Texture() *glhf.Texture {\n\treturn c.gf.Texture()\n}", "func compressBlock(block *image.RGBA) []byte {\n\n\tvar minR, maxR, minG, maxG byte = 255, 0, 255, 0\n\tfor y := 0; y < 4; y++ {\n\t\tfor x := 0; x < 4; x++ {\n\t\t\tc := block.RGBAAt(x, y)\n\n\t\t\tif c.R < minR {\n\t\t\t\tminR = c.R\n\t\t\t}\n\t\t\tif c.R > maxR {\n\t\t\t\tmaxR = c.R\n\t\t\t}\n\n\t\t\tif c.G < minG {\n\t\t\t\tminG = c.G\n\t\t\t}\n\t\t\tif c.G > maxG {\n\t\t\t\tmaxG = c.G\n\t\t\t}\n\t\t}\n\t}\n\n\tpalR := generatePalette(normalize(minR), normalize(maxR))\n\tpalG := generatePalette(normalize(minG), normalize(maxG))\n\tnearest := func(pal [8]float64, v byte) byte {\n\t\tni := 0\n\t\tfor i := 0; i < 8; i++ {\n\t\t\tif math.Abs(pal[i]-normalize(v)) < math.Abs(pal[ni]-normalize(v)) {\n\t\t\t\tni = i\n\t\t\t}\n\t\t}\n\t\treturn byte(ni)\n\t}\n\n\t//Compare red and green values and select closest in palette\n\trIndexU, gIndexU := uint64(0), uint64(0)\n\tfor y := 0; y < 4; y++ {\n\t\tfor x := 0; x < 4; x++ {\n\t\t\tc := block.RGBAAt(x, y)\n\t\t\trIndexU = (rIndexU << 3) | uint64(nearest(palR, c.R))\n\t\t\tgIndexU = (gIndexU << 3) | uint64(nearest(palG, c.G))\n\t\t}\n\t}\n\n\trIxBytes, gIxBytes := make([]byte, 8), make([]byte, 8)\n\tbinary.BigEndian.PutUint64(rIxBytes, rIndexU)\n\tbinary.BigEndian.PutUint64(gIxBytes, gIndexU)\n\n\tblockBytes := make([]byte, 16)\n\tblockBytes[0] = denormalize(palR[0])\n\tblockBytes[1] = denormalize(palR[1])\n\tcopy(blockBytes[2:8], rIxBytes[2:8])\n\n\tblockBytes[8] = denormalize(palG[0])\n\tblockBytes[9] = denormalize(palG[1])\n\tcopy(blockBytes[10:], gIxBytes[2:8])\n\n\treturn blockBytes\n}", "func (self *TileSprite) TilingTexture() *PIXITexture{\n return &PIXITexture{self.Object.Get(\"tilingTexture\")}\n}", "func (self *TileSprite) Texture() *Texture{\n return &Texture{self.Object.Get(\"texture\")}\n}", "func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetTexImage, 5, uintptr(target), uintptr(level), uintptr(format), uintptr(xtype), uintptr(pixels), 0)\n}", "func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexSubImage3D(gpTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func pixelsToTexture(renderer *sdl.Renderer, pixels []byte, w, h int) *sdl.Texture {\n\t// AGBR is backwards from way we will be filling in out bytes\n\ttex, err := renderer.CreateTexture(sdl.PIXELFORMAT_ABGR8888, sdl.TEXTUREACCESS_STREAMING, int32(w), int32(h))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\ttex.Update(nil, pixels, w*4) // Can't provide a rectangle, pitch = 4 bytes per pixel\n\treturn tex\n}", "func TexImage3D(target uint32, level int32, internalformat int32, width int32, height int32, depth int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexImage3D(gpTexImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func NewTexture(scene *Scene, element *Element) *Texture {\n\tt := &Texture{\n\t\tObject: *NewObject(scene, element),\n\t}\n\treturn t\n}", "func (md MetalDrawable) Texture() mtl.Texture {\n\treturn mtl.NewTexture(C.MetalDrawable_Texture(md.metalDrawable))\n}", "func TexImage2D(target Enum, level int, width, height int, format Enum, ty Enum, data []byte) {\n\tp := unsafe.Pointer(nil)\n\tif len(data) > 0 {\n\t\tp = gl.Ptr(&data[0])\n\t}\n\tgl.TexImage2D(uint32(target), int32(level), int32(format), int32(width), int32(height), 0, uint32(format), uint32(ty), p)\n}", "func TexImage3D(target uint32, level int32, internalformat int32, width int32, height int32, depth int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpTexImage3D, 10, uintptr(target), uintptr(level), uintptr(internalformat), uintptr(width), uintptr(height), uintptr(depth), uintptr(border), uintptr(format), uintptr(xtype), uintptr(pixels), 0, 0)\n}", "func TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexImage2D(gpTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (self *Graphics) GenerateTexture() *Texture{\n return &Texture{self.Object.Call(\"generateTexture\")}\n}", "func YinYang(width uint16, height uint16) *Texture {\n\tt := New(width, height)\n\tfor y := uint16(0); y < height/2; y++ {\n\t\tfor x := uint16(0); x < width; x++ {\n\t\t\tt.Set(x, y, rgb565.New(0xFF, 0xFF, 0xFF))\n\t\t}\n\t}\n\tfor y := uint16(height/2) + 1; y < height; y++ {\n\t\tfor x := uint16(0); x < width; x++ {\n\t\t\tt.Set(x, y, rgb565.New(0x00, 0x00, 0x00))\n\t\t}\n\t}\n\treturn t\n}", "func (self *GameObjectCreator) RenderTexture2O(width int, height int) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height)}\n}", "func (self *TileSprite) TintedTexture() *Canvas{\n return &Canvas{self.Object.Get(\"tintedTexture\")}\n}", "func (x *FzCompressedImage) Ref() *C.fz_compressed_image {\n\tif x == nil {\n\t\treturn nil\n\t}\n\treturn (*C.fz_compressed_image)(unsafe.Pointer(x))\n}", "func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowGetTexImage(gpGetTexImage, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowGetTexImage(gpGetTexImage, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexImage2D(target GLEnum, level int32, internalformat GLEnum, width, height, border int32, format, xtype GLEnum, pixels []float32) {\n\tgl.TexImage2D(uint32(target), level, int32(internalformat), width, height, border, uint32(format), uint32(xtype), unsafe.Pointer(&pixels[0]))\n}", "func TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall9(gpTexImage2D, 9, uintptr(target), uintptr(level), uintptr(internalformat), uintptr(width), uintptr(height), uintptr(border), uintptr(format), uintptr(xtype), uintptr(pixels))\n}", "func (gstr *GlyphString) GetTexture() *Texture { return gstr.font.GetTexture() }", "func (self *GameObjectCreator) RenderTexture3O(width int, height int, key string) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height, key)}\n}", "func TextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall9(gpTextureSubImage1D, 7, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(width), uintptr(format), uintptr(xtype), uintptr(pixels), 0, 0)\n}", "func (fnt *Font) Texture() *Texture {\n\treturn fnt.texture\n}", "func GetTexParameteriv(dst []int32, target, pname Enum) {\n\tgl.GetTexParameteriv(uint32(target), uint32(pname), &dst[0])\n}" ]
[ "0.752569", "0.752569", "0.7429074", "0.69827163", "0.69083256", "0.69083256", "0.6807672", "0.6630492", "0.64481664", "0.64481664", "0.63997597", "0.61933315", "0.61933315", "0.6182891", "0.61170536", "0.6085721", "0.6085721", "0.6069289", "0.5932974", "0.5835475", "0.5835475", "0.5824646", "0.57773155", "0.5765082", "0.5757285", "0.5712679", "0.568835", "0.5643279", "0.5634396", "0.5634396", "0.5629634", "0.5623947", "0.5615976", "0.5615976", "0.55715525", "0.55143416", "0.55143416", "0.54823136", "0.5467294", "0.5467294", "0.5448307", "0.5436591", "0.5431756", "0.5428443", "0.5420738", "0.5406705", "0.538194", "0.538194", "0.53549176", "0.5338835", "0.53283536", "0.52523255", "0.52523255", "0.5248293", "0.5219693", "0.5219693", "0.5210404", "0.5210404", "0.52057016", "0.5204755", "0.5195729", "0.5182997", "0.51720864", "0.5171173", "0.51650214", "0.5150974", "0.5150939", "0.50813365", "0.5079786", "0.50686246", "0.5045119", "0.5045119", "0.50385165", "0.5034734", "0.5028743", "0.5025094", "0.5017673", "0.49454033", "0.49440882", "0.4931834", "0.49014774", "0.4900459", "0.48994422", "0.48974404", "0.48951933", "0.48929474", "0.48772106", "0.4865013", "0.48636416", "0.48514274", "0.48482236", "0.48482236", "0.48312712", "0.48286036", "0.48194554", "0.4812315", "0.48058435", "0.47964692", "0.47918478" ]
0.66595125
8
return a compressed texture image
func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) { C.glowGetCompressedTextureImage(gpGetCompressedTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLsizei)(bufSize), pixels) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetCompressedTextureImage, 4, uintptr(texture), uintptr(level), uintptr(bufSize), uintptr(pixels), 0, 0)\n}", "func GetCompressedTexImage(target uint32, level int32, img unsafe.Pointer) {\n C.glowGetCompressedTexImage(gpGetCompressedTexImage, (C.GLenum)(target), (C.GLint)(level), img)\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureSubImage(gpGetCompressedTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(bufSize), pixels)\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureSubImage(gpGetCompressedTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(bufSize), pixels)\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpGetCompressedTextureSubImage, 10, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(bufSize), uintptr(pixels), 0, 0)\n}", "func GetCompressedTexImage(target uint32, level int32, img unsafe.Pointer) {\n\tC.glowGetCompressedTexImage(gpGetCompressedTexImage, (C.GLenum)(target), (C.GLint)(level), img)\n}", "func GetCompressedTexImage(target uint32, level int32, img unsafe.Pointer) {\n\tC.glowGetCompressedTexImage(gpGetCompressedTexImage, (C.GLenum)(target), (C.GLint)(level), img)\n}", "func GetCompressedTexImage(target uint32, level int32, img unsafe.Pointer) {\n\tsyscall.Syscall(gpGetCompressedTexImage, 3, uintptr(target), uintptr(level), uintptr(img))\n}", "func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage3D(gpCompressedTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage3D(gpCompressedTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall12(gpCompressedTextureSubImage3D, 11, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(imageSize), uintptr(data), 0)\n}", "func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage2D(gpCompressedTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage2D(gpCompressedTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTextureSubImage2D, 9, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(width), uintptr(height), uintptr(format), uintptr(imageSize), uintptr(data))\n}", "func CompressedTextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTextureSubImage1D, 7, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(width), uintptr(format), uintptr(imageSize), uintptr(data), 0, 0)\n}", "func CompressedTextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage1D(gpCompressedTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage1D(gpCompressedTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage2D(target uint32, level int32, internalformat uint32, width int32, height int32, border int32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexImage2D(gpCompressedTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage2D(target uint32, level int32, internalformat uint32, width int32, height int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTexImage2D, 8, uintptr(target), uintptr(level), uintptr(internalformat), uintptr(width), uintptr(height), uintptr(border), uintptr(imageSize), uintptr(data), 0)\n}", "func CompressedTexImage2D(target uint32, level int32, internalformat uint32, width int32, height int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexImage2D(gpCompressedTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage2D(target uint32, level int32, internalformat uint32, width int32, height int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexImage2D(gpCompressedTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage3D(target uint32, level int32, internalformat uint32, width int32, height int32, depth int32, border int32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexImage3D(gpCompressedTexImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexSubImage3D(gpCompressedTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage3D(target uint32, level int32, internalformat uint32, width int32, height int32, depth int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTexImage3D, 9, uintptr(target), uintptr(level), uintptr(internalformat), uintptr(width), uintptr(height), uintptr(depth), uintptr(border), uintptr(imageSize), uintptr(data))\n}", "func CompressedTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexSubImage2D(gpCompressedTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage1D(target uint32, level int32, internalformat uint32, width int32, border int32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexImage1D(gpCompressedTexImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexSubImage1D(gpCompressedTexSubImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage2D(target GLEnum, level int32, internalformat GLEnum, width, height, border, imageSize int32, pixels []float32) {\n\tgl.CompressedTexImage2D(uint32(target), level, uint32(internalformat), width, height, border, imageSize, unsafe.Pointer(&pixels[0]))\n}", "func CompressedTexImage3D(target uint32, level int32, internalformat uint32, width int32, height int32, depth int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexImage3D(gpCompressedTexImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage3D(target uint32, level int32, internalformat uint32, width int32, height int32, depth int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexImage3D(gpCompressedTexImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage2D(target Enum, level int, internalformat Enum, width, height, border int, data []byte) {\n\tgl.CompressedTexImage2D(uint32(target), int32(level), uint32(internalformat), int32(width), int32(height), int32(border), int32(len(data)), gl.Ptr(data))\n}", "func CompressedTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall12(gpCompressedTexSubImage3D, 11, uintptr(target), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(imageSize), uintptr(data), 0)\n}", "func CompressedTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexSubImage3D(gpCompressedTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexSubImage3D(gpCompressedTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage1D(target uint32, level int32, internalformat uint32, width int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTexImage1D, 7, uintptr(target), uintptr(level), uintptr(internalformat), uintptr(width), uintptr(border), uintptr(imageSize), uintptr(data), 0, 0)\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureSubImage(gpGetTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureSubImage(gpGetTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func CompressedTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTexSubImage2D, 9, uintptr(target), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(width), uintptr(height), uintptr(format), uintptr(imageSize), uintptr(data))\n}", "func CompressedTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexSubImage2D(gpCompressedTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexSubImage2D(gpCompressedTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func (self *Graphics) GenerateTexture3O(resolution int, scaleMode int, padding int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution, scaleMode, padding)}\n}", "func CompressedTexSubImage2D(target GLEnum, level, xoffset, yoffset, width, height int32, format GLEnum, imageSize int32, pixels []float32) {\n\tgl.CompressedTexSubImage2D(uint32(target), level, xoffset, yoffset, width, height, uint32(format), imageSize, unsafe.Pointer(&pixels[0]))\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpGetTextureSubImage, 12, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(xtype), uintptr(bufSize), uintptr(pixels))\n}", "func Make(width, height int, internalformat int32, format, pixelType uint32,\n\tdata unsafe.Pointer, min, mag, s, t int32) Texture {\n\n\ttexture := Texture{0, gl.TEXTURE_2D, 0}\n\n\t// generate and bind texture\n\tgl.GenTextures(1, &texture.handle)\n\ttexture.Bind(0)\n\n\t// set texture properties\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, min)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, mag)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, s)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, t)\n\n\t// specify a texture image\n\tgl.TexImage2D(gl.TEXTURE_2D, 0, internalformat, int32(width), int32(height),\n\t\t0, format, pixelType, data)\n\n\t// unbind texture\n\ttexture.Unbind()\n\n\treturn texture\n}", "func Read(src image.Image) (*Image, error) {\n\t// Use fallback conversion for unknown image formats.\n\trgba, ok := src.(*image.RGBA)\n\tif !ok {\n\t\treturn Read(fallback(src))\n\t}\n\t// Use fallback conversion for subimages.\n\twidth, height := rgba.Rect.Dx(), rgba.Rect.Dy()\n\tif rgba.Stride != 4*width {\n\t\treturn Read(fallback(src))\n\t}\n\t// Create a read-only texture based on the pixels of the src image.\n\tt := C.sfTexture_create(C.uint(width), C.uint(height))\n\tif t == nil {\n\t\treturn nil, fmt.Errorf(\"texture.Read: unable to create %dx%d texture\", width, height)\n\t}\n\ttex := &Image{\n\t\ttex: t,\n\t}\n\tpix := (*C.sfUint8)(unsafe.Pointer(&rgba.Pix[0]))\n\tC.sfTexture_updateFromPixels(tex.tex, pix, C.uint(width), C.uint(height), 0, 0)\n\t// Create a sprite for the texture.\n\tsprite := C.sfSprite_create()\n\tif sprite == nil {\n\t\treturn nil, errors.New(\"texture.Read: unable to create sprite\")\n\t}\n\ttex.sprite = sprite\n\tC.sfSprite_setTexture(tex.sprite, tex.tex, C.sfTrue)\n\treturn tex, nil\n}", "func (f *Font) GetTexture() *Texture { return f.texture }", "func CompressedTexImage1D(target uint32, level int32, internalformat uint32, width int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexImage1D(gpCompressedTexImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage1D(target uint32, level int32, internalformat uint32, width int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexImage1D(gpCompressedTexImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage2D(target Enum, level Int, internalformat Enum, width Sizei, height Sizei, border Int, imageSize Sizei, data unsafe.Pointer) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tclevel, _ := (C.GLint)(level), cgoAllocsUnknown\n\tcinternalformat, _ := (C.GLenum)(internalformat), cgoAllocsUnknown\n\tcwidth, _ := (C.GLsizei)(width), cgoAllocsUnknown\n\tcheight, _ := (C.GLsizei)(height), cgoAllocsUnknown\n\tcborder, _ := (C.GLint)(border), cgoAllocsUnknown\n\tcimageSize, _ := (C.GLsizei)(imageSize), cgoAllocsUnknown\n\tcdata, _ := (unsafe.Pointer)(unsafe.Pointer(data)), cgoAllocsUnknown\n\tC.glCompressedTexImage2D(ctarget, clevel, cinternalformat, cwidth, cheight, cborder, cimageSize, cdata)\n}", "func New(width uint16, height uint16) *Texture {\n\tt := &Texture{\n\t\twidth: width,\n\t\theight: height,\n\t\tpixels: make([]rgb565.Rgb565Color, width*height),\n\t}\n\n\tfor i := range t.pixels {\n\t\tt.pixels[i] = rgb565.New(0x00, 0x00, 0x00)\n\t}\n\n\treturn t\n}", "func (self *Graphics) GenerateTexture2O(resolution int, scaleMode int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution, scaleMode)}\n}", "func GetTextureImage(texture uint32, level int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureImage(gpGetTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func GetTextureImage(texture uint32, level int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureImage(gpGetTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func CompressedTexSubImage2D(target Enum, level, xoffset, yoffset, width, height int, format Enum, data []byte) {\n\tgl.CompressedTexSubImage2D(uint32(target), int32(level), int32(xoffset), int32(yoffset), int32(width), int32(height), uint32(format), int32(len(data)), gl.Ptr(data))\n}", "func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyTextureSubImage3D(gpCopyTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyTextureSubImage3D(gpCopyTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func CompressedTexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexSubImage1D(gpCompressedTexSubImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexSubImage1D(gpCompressedTexSubImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTexSubImage1D, 7, uintptr(target), uintptr(level), uintptr(xoffset), uintptr(width), uintptr(format), uintptr(imageSize), uintptr(data), 0, 0)\n}", "func (t Texture3D) GetData() []byte {\n\t// TODO do this in batches/stream to avoid memory limitations\n\tvar data = make([]byte, t.width*t.height*t.depth*t.texelSize)\n\tt.Bind()\n\tgl.PixelStorei(gl.PACK_ALIGNMENT, t.alignment)\n\tgl.GetTexImage(gl.TEXTURE_3D, 0, t.format, gl.UNSIGNED_BYTE, unsafe.Pointer(&data[0]))\n\tt.Unbind()\n\treturn data\n}", "func (bm Blendmap) Texture() *gl.Texture {\n\treturn bm.Map.id\n}", "func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n\tsyscall.Syscall9(gpCopyTextureSubImage3D, 9, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(x), uintptr(y), uintptr(width), uintptr(height))\n}", "func GetTextureImage(texture uint32, level int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetTextureImage, 6, uintptr(texture), uintptr(level), uintptr(format), uintptr(xtype), uintptr(bufSize), uintptr(pixels))\n}", "func (w *Worley) GenerateTexture(tex *texture.Texture) {\n\tgl.BindImageTexture(0, tex.GetHandle(), 0, false, 0, gl.READ_WRITE, gl.RGBA32F)\n\tgl.BindImageTexture(1, w.noisetexture.GetHandle(), 0, false, 0, gl.READ_ONLY, gl.RGBA32F)\n\n\tw.computeshader.Use()\n\tw.computeshader.UpdateInt32(\"uWidth\", w.width)\n\tw.computeshader.UpdateInt32(\"uHeight\", w.height)\n\tw.computeshader.UpdateInt32(\"uResolution\", w.resolution)\n\tw.computeshader.UpdateInt32(\"uOctaves\", w.octaves)\n\tw.computeshader.UpdateFloat32(\"uRadius\", w.radius)\n\tw.computeshader.UpdateFloat32(\"uRadiusScale\", w.radiusscale)\n\tw.computeshader.UpdateFloat32(\"uBrightness\", w.brightness)\n\tw.computeshader.UpdateFloat32(\"uContrast\", w.contrast)\n\tw.computeshader.UpdateFloat32(\"uScale\", w.scale)\n\tw.computeshader.UpdateFloat32(\"uPersistance\", w.persistance)\n\tw.computeshader.Compute(uint32(w.width), uint32(w.height), 1)\n\tw.computeshader.Compute(1024, 1024, 1)\n\tw.computeshader.Release()\n\n\tgl.MemoryBarrier(gl.ALL_BARRIER_BITS)\n\n\tgl.BindImageTexture(0, 0, 0, false, 0, gl.WRITE_ONLY, gl.RGBA32F)\n\tgl.BindImageTexture(1, 0, 0, false, 0, gl.READ_ONLY, gl.RGBA32F)\n}", "func (t *Three) Texture() *Texture {\n\tp := t.ctx.Get(\"Texture\")\n\treturn TextureFromJSObject(p)\n}", "func CompressedTexSubImage2D(target Enum, level Int, xoffset Int, yoffset Int, width Sizei, height Sizei, format Enum, imageSize Sizei, data unsafe.Pointer) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tclevel, _ := (C.GLint)(level), cgoAllocsUnknown\n\tcxoffset, _ := (C.GLint)(xoffset), cgoAllocsUnknown\n\tcyoffset, _ := (C.GLint)(yoffset), cgoAllocsUnknown\n\tcwidth, _ := (C.GLsizei)(width), cgoAllocsUnknown\n\tcheight, _ := (C.GLsizei)(height), cgoAllocsUnknown\n\tcformat, _ := (C.GLenum)(format), cgoAllocsUnknown\n\tcimageSize, _ := (C.GLsizei)(imageSize), cgoAllocsUnknown\n\tcdata, _ := (unsafe.Pointer)(unsafe.Pointer(data)), cgoAllocsUnknown\n\tC.glCompressedTexSubImage2D(ctarget, clevel, cxoffset, cyoffset, cwidth, cheight, cformat, cimageSize, cdata)\n}", "func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowGetTexImage(gpGetTexImage, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (self *GameObjectCreator) RenderTexture4O(width int, height int, key string, addToCache bool) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height, key, addToCache)}\n}", "func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpTextureSubImage3D, 11, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(xtype), uintptr(pixels), 0)\n}", "func (self *Graphics) GenerateTexture1O(resolution int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution)}\n}", "func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage3D(gpTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage3D(gpTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (c *Canvas) Texture() *glhf.Texture {\n\treturn c.gf.Texture()\n}", "func compressBlock(block *image.RGBA) []byte {\n\n\tvar minR, maxR, minG, maxG byte = 255, 0, 255, 0\n\tfor y := 0; y < 4; y++ {\n\t\tfor x := 0; x < 4; x++ {\n\t\t\tc := block.RGBAAt(x, y)\n\n\t\t\tif c.R < minR {\n\t\t\t\tminR = c.R\n\t\t\t}\n\t\t\tif c.R > maxR {\n\t\t\t\tmaxR = c.R\n\t\t\t}\n\n\t\t\tif c.G < minG {\n\t\t\t\tminG = c.G\n\t\t\t}\n\t\t\tif c.G > maxG {\n\t\t\t\tmaxG = c.G\n\t\t\t}\n\t\t}\n\t}\n\n\tpalR := generatePalette(normalize(minR), normalize(maxR))\n\tpalG := generatePalette(normalize(minG), normalize(maxG))\n\tnearest := func(pal [8]float64, v byte) byte {\n\t\tni := 0\n\t\tfor i := 0; i < 8; i++ {\n\t\t\tif math.Abs(pal[i]-normalize(v)) < math.Abs(pal[ni]-normalize(v)) {\n\t\t\t\tni = i\n\t\t\t}\n\t\t}\n\t\treturn byte(ni)\n\t}\n\n\t//Compare red and green values and select closest in palette\n\trIndexU, gIndexU := uint64(0), uint64(0)\n\tfor y := 0; y < 4; y++ {\n\t\tfor x := 0; x < 4; x++ {\n\t\t\tc := block.RGBAAt(x, y)\n\t\t\trIndexU = (rIndexU << 3) | uint64(nearest(palR, c.R))\n\t\t\tgIndexU = (gIndexU << 3) | uint64(nearest(palG, c.G))\n\t\t}\n\t}\n\n\trIxBytes, gIxBytes := make([]byte, 8), make([]byte, 8)\n\tbinary.BigEndian.PutUint64(rIxBytes, rIndexU)\n\tbinary.BigEndian.PutUint64(gIxBytes, gIndexU)\n\n\tblockBytes := make([]byte, 16)\n\tblockBytes[0] = denormalize(palR[0])\n\tblockBytes[1] = denormalize(palR[1])\n\tcopy(blockBytes[2:8], rIxBytes[2:8])\n\n\tblockBytes[8] = denormalize(palG[0])\n\tblockBytes[9] = denormalize(palG[1])\n\tcopy(blockBytes[10:], gIxBytes[2:8])\n\n\treturn blockBytes\n}", "func (self *TileSprite) TilingTexture() *PIXITexture{\n return &PIXITexture{self.Object.Get(\"tilingTexture\")}\n}", "func (self *TileSprite) Texture() *Texture{\n return &Texture{self.Object.Get(\"texture\")}\n}", "func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetTexImage, 5, uintptr(target), uintptr(level), uintptr(format), uintptr(xtype), uintptr(pixels), 0)\n}", "func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexSubImage3D(gpTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func pixelsToTexture(renderer *sdl.Renderer, pixels []byte, w, h int) *sdl.Texture {\n\t// AGBR is backwards from way we will be filling in out bytes\n\ttex, err := renderer.CreateTexture(sdl.PIXELFORMAT_ABGR8888, sdl.TEXTUREACCESS_STREAMING, int32(w), int32(h))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\ttex.Update(nil, pixels, w*4) // Can't provide a rectangle, pitch = 4 bytes per pixel\n\treturn tex\n}", "func TexImage3D(target uint32, level int32, internalformat int32, width int32, height int32, depth int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexImage3D(gpTexImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func NewTexture(scene *Scene, element *Element) *Texture {\n\tt := &Texture{\n\t\tObject: *NewObject(scene, element),\n\t}\n\treturn t\n}", "func (md MetalDrawable) Texture() mtl.Texture {\n\treturn mtl.NewTexture(C.MetalDrawable_Texture(md.metalDrawable))\n}", "func TexImage2D(target Enum, level int, width, height int, format Enum, ty Enum, data []byte) {\n\tp := unsafe.Pointer(nil)\n\tif len(data) > 0 {\n\t\tp = gl.Ptr(&data[0])\n\t}\n\tgl.TexImage2D(uint32(target), int32(level), int32(format), int32(width), int32(height), 0, uint32(format), uint32(ty), p)\n}", "func TexImage3D(target uint32, level int32, internalformat int32, width int32, height int32, depth int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpTexImage3D, 10, uintptr(target), uintptr(level), uintptr(internalformat), uintptr(width), uintptr(height), uintptr(depth), uintptr(border), uintptr(format), uintptr(xtype), uintptr(pixels), 0, 0)\n}", "func TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexImage2D(gpTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (self *Graphics) GenerateTexture() *Texture{\n return &Texture{self.Object.Call(\"generateTexture\")}\n}", "func YinYang(width uint16, height uint16) *Texture {\n\tt := New(width, height)\n\tfor y := uint16(0); y < height/2; y++ {\n\t\tfor x := uint16(0); x < width; x++ {\n\t\t\tt.Set(x, y, rgb565.New(0xFF, 0xFF, 0xFF))\n\t\t}\n\t}\n\tfor y := uint16(height/2) + 1; y < height; y++ {\n\t\tfor x := uint16(0); x < width; x++ {\n\t\t\tt.Set(x, y, rgb565.New(0x00, 0x00, 0x00))\n\t\t}\n\t}\n\treturn t\n}", "func (self *GameObjectCreator) RenderTexture2O(width int, height int) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height)}\n}", "func (self *TileSprite) TintedTexture() *Canvas{\n return &Canvas{self.Object.Get(\"tintedTexture\")}\n}", "func (x *FzCompressedImage) Ref() *C.fz_compressed_image {\n\tif x == nil {\n\t\treturn nil\n\t}\n\treturn (*C.fz_compressed_image)(unsafe.Pointer(x))\n}", "func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowGetTexImage(gpGetTexImage, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowGetTexImage(gpGetTexImage, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexImage2D(target GLEnum, level int32, internalformat GLEnum, width, height, border int32, format, xtype GLEnum, pixels []float32) {\n\tgl.TexImage2D(uint32(target), level, int32(internalformat), width, height, border, uint32(format), uint32(xtype), unsafe.Pointer(&pixels[0]))\n}", "func TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall9(gpTexImage2D, 9, uintptr(target), uintptr(level), uintptr(internalformat), uintptr(width), uintptr(height), uintptr(border), uintptr(format), uintptr(xtype), uintptr(pixels))\n}", "func (gstr *GlyphString) GetTexture() *Texture { return gstr.font.GetTexture() }", "func (self *GameObjectCreator) RenderTexture3O(width int, height int, key string) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height, key)}\n}", "func TextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall9(gpTextureSubImage1D, 7, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(width), uintptr(format), uintptr(xtype), uintptr(pixels), 0, 0)\n}", "func (fnt *Font) Texture() *Texture {\n\treturn fnt.texture\n}", "func GetTexParameteriv(dst []int32, target, pname Enum) {\n\tgl.GetTexParameteriv(uint32(target), uint32(pname), &dst[0])\n}" ]
[ "0.7429074", "0.69827163", "0.69083256", "0.69083256", "0.6807672", "0.66595125", "0.66595125", "0.6630492", "0.64481664", "0.64481664", "0.63997597", "0.61933315", "0.61933315", "0.6182891", "0.61170536", "0.6085721", "0.6085721", "0.6069289", "0.5932974", "0.5835475", "0.5835475", "0.5824646", "0.57773155", "0.5765082", "0.5757285", "0.5712679", "0.568835", "0.5643279", "0.5634396", "0.5634396", "0.5629634", "0.5623947", "0.5615976", "0.5615976", "0.55715525", "0.55143416", "0.55143416", "0.54823136", "0.5467294", "0.5467294", "0.5448307", "0.5436591", "0.5431756", "0.5428443", "0.5420738", "0.5406705", "0.538194", "0.538194", "0.53549176", "0.5338835", "0.53283536", "0.52523255", "0.52523255", "0.5248293", "0.5219693", "0.5219693", "0.5210404", "0.5210404", "0.52057016", "0.5204755", "0.5195729", "0.5182997", "0.51720864", "0.5171173", "0.51650214", "0.5150974", "0.5150939", "0.50813365", "0.5079786", "0.50686246", "0.5045119", "0.5045119", "0.50385165", "0.5034734", "0.5028743", "0.5025094", "0.5017673", "0.49454033", "0.49440882", "0.4931834", "0.49014774", "0.4900459", "0.48994422", "0.48974404", "0.48951933", "0.48929474", "0.48772106", "0.4865013", "0.48636416", "0.48514274", "0.48482236", "0.48482236", "0.48312712", "0.48286036", "0.48194554", "0.4812315", "0.48058435", "0.47964692", "0.47918478" ]
0.752569
1
retrieve a subregion of a compressed texture image from a compressed texture object
func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) { C.glowGetCompressedTextureSubImage(gpGetCompressedTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(bufSize), pixels) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpGetCompressedTextureSubImage, 10, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(bufSize), uintptr(pixels), 0, 0)\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpGetTextureSubImage, 12, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(xtype), uintptr(bufSize), uintptr(pixels))\n}", "func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage2D(gpCompressedTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage2D(gpCompressedTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTextureSubImage2D, 9, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(width), uintptr(height), uintptr(format), uintptr(imageSize), uintptr(data))\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureSubImage(gpGetTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureSubImage(gpGetTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage3D(gpCompressedTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage3D(gpCompressedTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall12(gpCompressedTextureSubImage3D, 11, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(imageSize), uintptr(data), 0)\n}", "func CompressedTextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTextureSubImage1D, 7, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(width), uintptr(format), uintptr(imageSize), uintptr(data), 0, 0)\n}", "func CompressedTextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage1D(gpCompressedTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage1D(gpCompressedTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetCompressedTextureImage, 4, uintptr(texture), uintptr(level), uintptr(bufSize), uintptr(pixels), 0, 0)\n}", "func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyTextureSubImage3D(gpCopyTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyTextureSubImage3D(gpCopyTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpTextureSubImage3D, 11, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(xtype), uintptr(pixels), 0)\n}", "func TextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall9(gpTextureSubImage2D, 9, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(width), uintptr(height), uintptr(format), uintptr(xtype), uintptr(pixels))\n}", "func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n\tsyscall.Syscall9(gpCopyTextureSubImage3D, 9, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(x), uintptr(y), uintptr(width), uintptr(height))\n}", "func (tex Texture) Sub(ctx gl.Context, lvl int, width int, height int, data []byte) {\n\tctx.TexSubImage2D(gl.TEXTURE_2D, lvl, 0, 0, width, height, gl.RGBA, gl.UNSIGNED_BYTE, data)\n\tif lvl > 0 {\n\t\tctx.GenerateMipmap(gl.TEXTURE_2D)\n\t}\n}", "func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage3D(gpTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage3D(gpTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage2D(gpTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage2D(gpTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureImage(gpGetCompressedTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLsizei)(bufSize), pixels)\n}", "func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureImage(gpGetCompressedTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLsizei)(bufSize), pixels)\n}", "func GetCompressedTexImage(target uint32, level int32, img unsafe.Pointer) {\n C.glowGetCompressedTexImage(gpGetCompressedTexImage, (C.GLenum)(target), (C.GLint)(level), img)\n}", "func GetCompressedTexImage(target uint32, level int32, img unsafe.Pointer) {\n\tsyscall.Syscall(gpGetCompressedTexImage, 3, uintptr(target), uintptr(level), uintptr(img))\n}", "func CopyTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyTextureSubImage2D(gpCopyTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func CopyTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyTextureSubImage2D(gpCopyTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func TextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall9(gpTextureSubImage1D, 7, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(width), uintptr(format), uintptr(xtype), uintptr(pixels), 0, 0)\n}", "func CompressedTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexSubImage2D(gpCompressedTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTexSubImage2D, 9, uintptr(target), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(width), uintptr(height), uintptr(format), uintptr(imageSize), uintptr(data))\n}", "func CopyTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, x int32, y int32, width int32, height int32) {\n\tsyscall.Syscall9(gpCopyTextureSubImage2D, 8, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(x), uintptr(y), uintptr(width), uintptr(height), 0)\n}", "func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexSubImage3D(gpTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexSubImage2D(target Enum, level int, x, y, width, height int, format, ty Enum, data []byte) {\n\tgl.TexSubImage2D(uint32(target), int32(level), int32(x), int32(y), int32(width), int32(height), uint32(format), uint32(ty), gl.Ptr(&data[0]))\n}", "func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpTexSubImage3D, 11, uintptr(target), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(xtype), uintptr(pixels), 0)\n}", "func CompressedTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexSubImage2D(gpCompressedTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexSubImage2D(gpCompressedTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func TextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage1D(gpTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage1D(gpTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexSubImage2D(gpTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexSubImage3D(gpTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexSubImage3D(gpTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func CopyTextureSubImage1D(texture uint32, level int32, xoffset int32, x int32, y int32, width int32) {\n\tC.glowCopyTextureSubImage1D(gpCopyTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width))\n}", "func CopyTextureSubImage1D(texture uint32, level int32, xoffset int32, x int32, y int32, width int32) {\n\tC.glowCopyTextureSubImage1D(gpCopyTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width))\n}", "func TexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall9(gpTexSubImage2D, 9, uintptr(target), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(width), uintptr(height), uintptr(format), uintptr(xtype), uintptr(pixels))\n}", "func CompressedTexSubImage2D(target GLEnum, level, xoffset, yoffset, width, height int32, format GLEnum, imageSize int32, pixels []float32) {\n\tgl.CompressedTexSubImage2D(uint32(target), level, xoffset, yoffset, width, height, uint32(format), imageSize, unsafe.Pointer(&pixels[0]))\n}", "func TexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexSubImage2D(gpTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexSubImage2D(gpTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func CompressedTexSubImage2D(target Enum, level, xoffset, yoffset, width, height int, format Enum, data []byte) {\n\tgl.CompressedTexSubImage2D(uint32(target), int32(level), int32(xoffset), int32(yoffset), int32(width), int32(height), uint32(format), int32(len(data)), gl.Ptr(data))\n}", "func CopyTextureSubImage1D(texture uint32, level int32, xoffset int32, x int32, y int32, width int32) {\n\tsyscall.Syscall6(gpCopyTextureSubImage1D, 6, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(x), uintptr(y), uintptr(width))\n}", "func CompressedTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall12(gpCompressedTexSubImage3D, 11, uintptr(target), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(imageSize), uintptr(data), 0)\n}", "func GetCompressedTexImage(target uint32, level int32, img unsafe.Pointer) {\n\tC.glowGetCompressedTexImage(gpGetCompressedTexImage, (C.GLenum)(target), (C.GLint)(level), img)\n}", "func GetCompressedTexImage(target uint32, level int32, img unsafe.Pointer) {\n\tC.glowGetCompressedTexImage(gpGetCompressedTexImage, (C.GLenum)(target), (C.GLint)(level), img)\n}", "func CompressedTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexSubImage3D(gpCompressedTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexSubImage3D(gpCompressedTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexSubImage3D(gpCompressedTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func TexSubImage2D(target Enum, level Int, xoffset Int, yoffset Int, width Sizei, height Sizei, format Enum, kind Enum, pixels unsafe.Pointer) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tclevel, _ := (C.GLint)(level), cgoAllocsUnknown\n\tcxoffset, _ := (C.GLint)(xoffset), cgoAllocsUnknown\n\tcyoffset, _ := (C.GLint)(yoffset), cgoAllocsUnknown\n\tcwidth, _ := (C.GLsizei)(width), cgoAllocsUnknown\n\tcheight, _ := (C.GLsizei)(height), cgoAllocsUnknown\n\tcformat, _ := (C.GLenum)(format), cgoAllocsUnknown\n\tckind, _ := (C.GLenum)(kind), cgoAllocsUnknown\n\tcpixels, _ := (unsafe.Pointer)(unsafe.Pointer(pixels)), cgoAllocsUnknown\n\tC.glTexSubImage2D(ctarget, clevel, cxoffset, cyoffset, cwidth, cheight, cformat, ckind, cpixels)\n}", "func CompressedTexSubImage2D(target Enum, level Int, xoffset Int, yoffset Int, width Sizei, height Sizei, format Enum, imageSize Sizei, data unsafe.Pointer) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tclevel, _ := (C.GLint)(level), cgoAllocsUnknown\n\tcxoffset, _ := (C.GLint)(xoffset), cgoAllocsUnknown\n\tcyoffset, _ := (C.GLint)(yoffset), cgoAllocsUnknown\n\tcwidth, _ := (C.GLsizei)(width), cgoAllocsUnknown\n\tcheight, _ := (C.GLsizei)(height), cgoAllocsUnknown\n\tcformat, _ := (C.GLenum)(format), cgoAllocsUnknown\n\tcimageSize, _ := (C.GLsizei)(imageSize), cgoAllocsUnknown\n\tcdata, _ := (unsafe.Pointer)(unsafe.Pointer(data)), cgoAllocsUnknown\n\tC.glCompressedTexSubImage2D(ctarget, clevel, cxoffset, cyoffset, cwidth, cheight, cformat, cimageSize, cdata)\n}", "func TexSubImage2D(target GLEnum, level, xoffset, yoffset, width, height int32, format, xtype GLEnum, pixels []float32) {\n\tgl.TexSubImage2D(uint32(target), level, xoffset, yoffset, width, height, uint32(format), uint32(xtype), unsafe.Pointer(&pixels[0]))\n}", "func CompressedTexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexSubImage1D(gpCompressedTexSubImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func TexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexSubImage1D(gpTexSubImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (p *Alpha16) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &Alpha16{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &Alpha16{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func (self *TileSprite) Texture() *Texture{\n return &Texture{self.Object.Get(\"texture\")}\n}", "func TexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall9(gpTexSubImage1D, 7, uintptr(target), uintptr(level), uintptr(xoffset), uintptr(width), uintptr(format), uintptr(xtype), uintptr(pixels), 0, 0)\n}", "func CopyImageSubData(srcName uint32, srcTarget uint32, srcLevel int32, srcX int32, srcY int32, srcZ int32, dstName uint32, dstTarget uint32, dstLevel int32, dstX int32, dstY int32, dstZ int32, srcWidth int32, srcHeight int32, srcDepth int32) {\n C.glowCopyImageSubData(gpCopyImageSubData, (C.GLuint)(srcName), (C.GLenum)(srcTarget), (C.GLint)(srcLevel), (C.GLint)(srcX), (C.GLint)(srcY), (C.GLint)(srcZ), (C.GLuint)(dstName), (C.GLenum)(dstTarget), (C.GLint)(dstLevel), (C.GLint)(dstX), (C.GLint)(dstY), (C.GLint)(dstZ), (C.GLsizei)(srcWidth), (C.GLsizei)(srcHeight), (C.GLsizei)(srcDepth))\n}", "func TexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexSubImage1D(gpTexSubImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexSubImage1D(gpTexSubImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (self *TileSprite) TilePattern() *PIXITexture{\n return &PIXITexture{self.Object.Get(\"tilePattern\")}\n}", "func CompressedTexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTexSubImage1D, 7, uintptr(target), uintptr(level), uintptr(xoffset), uintptr(width), uintptr(format), uintptr(imageSize), uintptr(data), 0, 0)\n}", "func (p *Paletted) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &Paletted{\n\t\t\tPalette: p.Palette,\n\t\t}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &Paletted{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: p.Rect.Intersect(r),\n\t\tPalette: p.Palette,\n\t}\n}", "func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n C.glowGetBufferSubData(gpGetBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func (p *CMYK) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &CMYK{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &CMYK{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func (i *ImageBuf) SubImage() int {\n\tret := int(C.ImageBuf_subimage(i.ptr))\n\truntime.KeepAlive(i)\n\treturn ret\n}", "func (self *TileSprite) TilingTexture() *PIXITexture{\n return &PIXITexture{self.Object.Get(\"tilingTexture\")}\n}", "func (p *Alpha) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &Alpha{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &Alpha{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func CompressedTexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexSubImage1D(gpCompressedTexSubImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexSubImage1D(gpCompressedTexSubImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func (i *ImageBuf) ReadSubImage(subimage, miplevel int, force bool) error {\n\tret := i.ReadSubImageFormatCallback(subimage, miplevel, force, TypeUnknown, nil)\n\truntime.KeepAlive(i)\n\treturn ret\n}", "func CompressedTexImage2D(target uint32, level int32, internalformat uint32, width int32, height int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTexImage2D, 8, uintptr(target), uintptr(level), uintptr(internalformat), uintptr(width), uintptr(height), uintptr(border), uintptr(imageSize), uintptr(data), 0)\n}", "func (p *Image64) SubImage(r image.Rectangle) image.Image {\n\tr = r.Intersect(p.Rect)\n\tif r.Empty() {\n\t\treturn &Image64{}\n\t}\n\ti := (r.Min.Y-p.Rect.Min.Y)*p.Stride + (r.Min.X - p.Rect.Min.X)\n\treturn &Image64{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func (p *YCbCr) SubImage(r image.Rectangle) image.Image {\n\treturn ((*image.YCbCr)(p)).SubImage(r)\n}", "func (p *RGBA) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &RGBA{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &RGBA{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func (p *NRGBA) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &NRGBA{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &NRGBA{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func (p *FloatImage) SubImage(r image.Rectangle) image.Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &FloatImage{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &FloatImage{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func CopyTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n C.glowCopyTexSubImage3D(gpCopyTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func CompressedTexImage2D(target uint32, level int32, internalformat uint32, width int32, height int32, border int32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexImage2D(gpCompressedTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func (p *RGBAf) SubImage(r image.Rectangle) *RGBAf {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &RGBAf{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &RGBAf{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func CopyTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, x int32, y int32, width int32, height int32) {\n C.glowCopyTexSubImage2D(gpCopyTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func (i *ImageBuf) ReadSubImageCallback(subimage, miplevel int, force bool, progress *ProgressCallback) error {\n\tret := i.ReadSubImageFormatCallback(subimage, miplevel, force, TypeUnknown, progress)\n\truntime.KeepAlive(i)\n\truntime.KeepAlive(progress)\n\treturn ret\n}", "func CopyImageSubData(srcName uint32, srcTarget uint32, srcLevel int32, srcX int32, srcY int32, srcZ int32, dstName uint32, dstTarget uint32, dstLevel int32, dstX int32, dstY int32, dstZ int32, srcWidth int32, srcHeight int32, srcDepth int32) {\n\tC.glowCopyImageSubData(gpCopyImageSubData, (C.GLuint)(srcName), (C.GLenum)(srcTarget), (C.GLint)(srcLevel), (C.GLint)(srcX), (C.GLint)(srcY), (C.GLint)(srcZ), (C.GLuint)(dstName), (C.GLenum)(dstTarget), (C.GLint)(dstLevel), (C.GLint)(dstX), (C.GLint)(dstY), (C.GLint)(dstZ), (C.GLsizei)(srcWidth), (C.GLsizei)(srcHeight), (C.GLsizei)(srcDepth))\n}", "func CopyImageSubData(srcName uint32, srcTarget uint32, srcLevel int32, srcX int32, srcY int32, srcZ int32, dstName uint32, dstTarget uint32, dstLevel int32, dstX int32, dstY int32, dstZ int32, srcWidth int32, srcHeight int32, srcDepth int32) {\n\tC.glowCopyImageSubData(gpCopyImageSubData, (C.GLuint)(srcName), (C.GLenum)(srcTarget), (C.GLint)(srcLevel), (C.GLint)(srcX), (C.GLint)(srcY), (C.GLint)(srcZ), (C.GLuint)(dstName), (C.GLenum)(dstTarget), (C.GLint)(dstLevel), (C.GLint)(dstX), (C.GLint)(dstY), (C.GLint)(dstZ), (C.GLsizei)(srcWidth), (C.GLsizei)(srcHeight), (C.GLsizei)(srcDepth))\n}", "func (p *RGBA64) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &RGBA64{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &RGBA64{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func (p *Gray16) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &Gray16{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &Gray16{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func (p *NRGBA64) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &NRGBA64{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &NRGBA64{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func CompressedTexImage2D(target uint32, level int32, internalformat uint32, width int32, height int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexImage2D(gpCompressedTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func CompressedTexImage2D(target uint32, level int32, internalformat uint32, width int32, height int32, border int32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTexImage2D(gpCompressedTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLsizei)(imageSize), data)\n}", "func (p *Gray16) SubImage(r image.Rectangle) image.Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are image.Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &Gray16{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &Gray16{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}" ]
[ "0.7563522", "0.67046773", "0.6671293", "0.6671293", "0.6667756", "0.6652741", "0.6652741", "0.6642516", "0.6642516", "0.6613595", "0.6263772", "0.6244618", "0.6244618", "0.6126055", "0.5981851", "0.5981851", "0.5941103", "0.5929123", "0.59180456", "0.5888724", "0.58807015", "0.58807015", "0.5832948", "0.5832948", "0.58296406", "0.58296406", "0.58212113", "0.5731404", "0.5724864", "0.5724864", "0.571194", "0.5663388", "0.56626385", "0.563736", "0.5624295", "0.5620906", "0.5577442", "0.5570386", "0.5570386", "0.5568272", "0.5568272", "0.5557997", "0.55441135", "0.55441135", "0.5496847", "0.5496847", "0.5496342", "0.5485267", "0.54668546", "0.54668546", "0.5450325", "0.5440208", "0.5425482", "0.54158545", "0.54158545", "0.53855073", "0.5354205", "0.5354205", "0.529633", "0.5262115", "0.5258321", "0.5249959", "0.52294856", "0.51982963", "0.5195083", "0.5125698", "0.5108382", "0.51051253", "0.51051253", "0.51002127", "0.50829566", "0.508206", "0.50708276", "0.5067396", "0.50594425", "0.5057679", "0.5026719", "0.49974313", "0.49974313", "0.4997198", "0.49900594", "0.49850243", "0.49756417", "0.4973003", "0.4961259", "0.495588", "0.49482775", "0.4935015", "0.49259824", "0.4881677", "0.48614025", "0.4845915", "0.4845915", "0.48323405", "0.48160294", "0.47942254", "0.47862738", "0.47862738", "0.47783557" ]
0.7487113
2
get current 1D or 2D convolution filter kernel
func GetConvolutionFilter(target uint32, format uint32, xtype uint32, image unsafe.Pointer) { C.glowGetConvolutionFilter(gpGetConvolutionFilter, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), image) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetConvolutionFilter(target uint32, format uint32, xtype uint32, image unsafe.Pointer) {\n C.glowGetConvolutionFilter(gpGetConvolutionFilter, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), image)\n}", "func ConvolutionFilter2D(target uint32, internalformat uint32, width int32, height int32, format uint32, xtype uint32, image unsafe.Pointer) {\n C.glowConvolutionFilter2D(gpConvolutionFilter2D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), image)\n}", "func (p *Image64) Convolved(k Kernel64) *Image64 {\n\tswitch k.(type) {\n\tcase *separableKernel64:\n\t\treturn p.separableConvolution(k.(*separableKernel64))\n\tdefault:\n\t\treturn p.fullConvolution(k)\n\t}\n\tpanic(\"unreachable\")\n}", "func ConvolutionFilter2D(target uint32, internalformat uint32, width int32, height int32, format uint32, xtype uint32, image unsafe.Pointer) {\n\tC.glowConvolutionFilter2D(gpConvolutionFilter2D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), image)\n}", "func ConvolutionFilter1D(target uint32, internalformat uint32, width int32, format uint32, xtype uint32, image unsafe.Pointer) {\n C.glowConvolutionFilter1D(gpConvolutionFilter1D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), image)\n}", "func CopyConvolutionFilter2D(target uint32, internalformat uint32, x int32, y int32, width int32, height int32) {\n C.glowCopyConvolutionFilter2D(gpCopyConvolutionFilter2D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func CopyConvolutionFilter2D(target uint32, internalformat uint32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyConvolutionFilter2D(gpCopyConvolutionFilter2D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func ConvolutionFilter1D(target uint32, internalformat uint32, width int32, format uint32, xtype uint32, image unsafe.Pointer) {\n\tC.glowConvolutionFilter1D(gpConvolutionFilter1D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), image)\n}", "func CopyConvolutionFilter1D(target uint32, internalformat uint32, x int32, y int32, width int32) {\n C.glowCopyConvolutionFilter1D(gpCopyConvolutionFilter1D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width))\n}", "func createFilter(img image.Image, factor [2]float32, size int, kernel func(float32) float32) (f Filter) {\n\tsizeX := size * (int(math.Ceil(float64(factor[0]))))\n\tsizeY := size * (int(math.Ceil(float64(factor[1]))))\n\n\tswitch img.(type) {\n\tdefault:\n\t\tf = &filterModel{\n\t\t\t&genericConverter{img},\n\t\t\tfactor, kernel,\n\t\t\tmake([]colorArray, sizeX), make([]colorArray, sizeY),\n\t\t}\n\tcase *image.RGBA:\n\t\tf = &filterModel{\n\t\t\t&rgbaConverter{img.(*image.RGBA)},\n\t\t\tfactor, kernel,\n\t\t\tmake([]colorArray, sizeX), make([]colorArray, sizeY),\n\t\t}\n\tcase *image.RGBA64:\n\t\tf = &filterModel{\n\t\t\t&rgba64Converter{img.(*image.RGBA64)},\n\t\t\tfactor, kernel,\n\t\t\tmake([]colorArray, sizeX), make([]colorArray, sizeY),\n\t\t}\n\tcase *image.Gray:\n\t\tf = &filterModel{\n\t\t\t&grayConverter{img.(*image.Gray)},\n\t\t\tfactor, kernel,\n\t\t\tmake([]colorArray, sizeX), make([]colorArray, sizeY),\n\t\t}\n\tcase *image.Gray16:\n\t\tf = &filterModel{\n\t\t\t&gray16Converter{img.(*image.Gray16)},\n\t\t\tfactor, kernel,\n\t\t\tmake([]colorArray, sizeX), make([]colorArray, sizeY),\n\t\t}\n\tcase *image.YCbCr:\n\t\tf = &filterModel{\n\t\t\t&ycbcrConverter{img.(*image.YCbCr)},\n\t\t\tfactor, kernel,\n\t\t\tmake([]colorArray, sizeX), make([]colorArray, sizeY),\n\t\t}\n\t}\n\treturn\n}", "func (fir *FIR) Convolve(input []float64) ([]float64, error) {\n\tkernelSize := len(fir.kernel)\n\tn := len(input)\n\n\tif n <= kernelSize {\n\t\terr := fmt.Errorf(\"input size %d is not greater than kernel size %d\", n, kernelSize)\n\t\treturn []float64{}, err\n\t}\n\n\toutput := make([]float64, n)\n\n\t//\n\tfor i := 0; i < kernelSize; i++ {\n\t\tsum := 0.0\n\n\t\t// convolve the input with the filter kernel\n\t\tfor j := 0; j < i; j++ {\n\t\t\tsum += (input[j] * fir.kernel[kernelSize-(1+i-j)])\n\t\t}\n\n\t\toutput[i] = sum\n\t}\n\n\tfor i := kernelSize; i < n; i++ {\n\t\tsum := 0.0\n\n\t\t// convolve the input with the filter kernel\n\t\tfor j := 0; j < kernelSize; j++ {\n\t\t\tsum += (input[i-j] * fir.kernel[j])\n\t\t}\n\n\t\toutput[i] = sum\n\t}\n\n\treturn output, nil\n}", "func (t1 *Tensor) Convolve2D(kernel *Tensor, stride int) (*Tensor, error) {\n\toutTensor := NewTensor((t1.Size.X-kernel.Size.X)/stride+1, (t1.Size.Y-kernel.Size.Y)/stride+1, t1.Size.Z)\n\tfor x := 0; x < outTensor.Size.X; x++ {\n\t\tfor y := 0; y < outTensor.Size.Y; y++ {\n\t\t\tmappedX, mappedY := x*stride, y*stride\n\t\t\tfor i := 0; i < kernel.Size.X; i++ {\n\t\t\t\tfor j := 0; j < kernel.Size.X; j++ {\n\t\t\t\t\tfor z := 0; z < t1.Size.Z; z++ {\n\t\t\t\t\t\tf := kernel.Get(i, j, z)\n\t\t\t\t\t\tv := t1.Get(mappedX+i, mappedY+j, z)\n\t\t\t\t\t\toutTensor.SetAdd(x, y, z, f*v)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn outTensor, nil\n}", "func (e FusedOps) C() C.cudnnFusedOps_t { return C.cudnnFusedOps_t(e) }", "func ConstructedConv2D(m *Model, x tensor.Tensor, kernelH int, kernelW int, filters int) tensor.Tensor {\n\tslen := len(x.Shape())\n\tfAxis := slen - 1\n\twAxis := slen - 2\n\thAxis := slen - 3\n\tinFilters := x.Shape()[fAxis]\n\tinW := x.Shape()[wAxis]\n\tinH := x.Shape()[hAxis]\n\n\twShape := onesLike(x)\n\twShape[fAxis] = filters\n\twShape[wAxis] = inFilters * kernelH * kernelW\n\n\tbShape := onesLike(x)\n\tbShape[fAxis] = filters\n\n\tweight := m.AddWeight(wShape...)\n\tbias := m.AddBias(bShape...)\n\n\tslices := make([]tensor.Tensor, 0, kernelH*kernelW)\n\n\tfor hoff := 0; hoff < kernelH; hoff++ {\n\t\thslice := tensor.Slice(x, hAxis, hoff, inH-kernelH+1+hoff)\n\t\tfor woff := 0; woff < kernelW; woff++ {\n\t\t\twslice := tensor.Slice(hslice, wAxis, woff, inW-kernelW+1+woff)\n\t\t\tslices = append(slices, wslice)\n\t\t}\n\t}\n\n\tx = tensor.Concat(fAxis, slices...)\n\tx = tensor.MatMul(x, weight, wAxis, fAxis)\n\tx = tensor.Add(x, bias)\n\n\treturn x\n}", "func Convolve(src, dst []float64, kernel []float64, border Border) {\n\twidth := len(kernel)\n\thalfWidth := width / 2\n\tfor i := range dst {\n\t\tk := i - halfWidth\n\t\tvar sum float64\n\t\tif k >= 0 && k <= len(src)-width {\n\t\t\tfor j, x := range kernel {\n\t\t\t\tsum += src[k+j] * x\n\t\t\t}\n\t\t} else {\n\t\t\tfor j, x := range kernel {\n\t\t\t\tsum += border.Interpolate(src, k+j) * x\n\t\t\t}\n\t\t}\n\t\tdst[i] = sum\n\t}\n}", "func ConvDiff(geom *Geom, fltOn, fltOff *etensor.Float32, imgOn, imgOff, out *etensor.Float32, gain, gainOn float32) {\n\tfy := fltOn.Dim(0)\n\tfx := fltOn.Dim(1)\n\n\tgeom.FiltSz = image.Point{fx, fy}\n\tgeom.UpdtFilt()\n\n\timgSz := image.Point{imgOn.Dim(1), imgOn.Dim(0)}\n\tgeom.SetSize(imgSz)\n\toshp := []int{2, int(geom.Out.Y), int(geom.Out.X)}\n\tif !etensor.EqualInts(oshp, out.Shp) {\n\t\tout.SetShape(oshp, nil, []string{\"OnOff\", \"Y\", \"X\"})\n\t}\n\tncpu := nproc.NumCPU()\n\tnthrs, nper, rmdr := nproc.ThreadNs(ncpu, geom.Out.Y)\n\tvar wg sync.WaitGroup\n\tfor th := 0; th < nthrs; th++ {\n\t\twg.Add(1)\n\t\tyst := th * nper\n\t\tgo convDiffThr(&wg, geom, yst, nper, fltOn, fltOff, imgOn, imgOff, out, gain, gainOn)\n\t}\n\tif rmdr > 0 {\n\t\twg.Add(1)\n\t\tyst := nthrs * nper\n\t\tgo convDiffThr(&wg, geom, yst, rmdr, fltOn, fltOff, imgOn, imgOff, out, gain, gainOn)\n\t}\n\twg.Wait()\n}", "func (img *FloatImage) ConvolveWrap(kernel *ConvKernel) *FloatImage {\n\treturn img.convolve(kernel, wrapPlaneExtension)\n}", "func CopyConvolutionFilter1D(target uint32, internalformat uint32, x int32, y int32, width int32) {\n\tC.glowCopyConvolutionFilter1D(gpCopyConvolutionFilter1D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width))\n}", "func NewKernel(width, height int) *Kernel {\n\treturn &Kernel{make([]float64, width*height), width, height}\n}", "func Conv2D(t Tensor, k Tensor, hAxis int, wAxis int, fAxis int) Tensor {\n\tkh, kw := k.Shape()[0], k.Shape()[1]\n\treturn &Conv2DTensor{\n\t\tbaseTensor: base(conv2d(t, k, hAxis, wAxis, fAxis), 1, t, k),\n\t\tt: t,\n\t\tk: k,\n\t\thAxis: hAxis,\n\t\twAxis: wAxis,\n\t\tfAxis: fAxis,\n\t\tpadH: kh - 1,\n\t\tpadW: kw - 1,\n\t}\n}", "func (image *Image2D) getIdx(x, y int) int {\n\treturn (x + y*image.width) * image.channels\n}", "func (img *FloatImage) convolve(kernel *ConvKernel, px planeExtension) *FloatImage {\n\n\t// convolve each plane independently:\n\tres := new([3][]float32)\n\tfor i := 0; i < 3; i++ {\n\t\tconvolvePlane(&img.Ip[i], kernel, img.Width, img.Height, px)\n\t}\n\n\treturn &FloatImage{\n\t\tIp: *res,\n\t\tWidth: img.Width,\n\t\tHeight: img.Height,\n\t}\n}", "func applyConvolutionToPixel(im ImageMatrix, x int, y int, cmSize int, column []color.RGBA, cm ConvolutionMatrix, conFunc func(ImageMatrix, int, int, int, int, color.RGBA, float64) int) {\n\tcurrentColour := im[x][y]\n\tredTotal := 0\n\tgreenTotal := 0\n\tblueTotal := 0\n\tweight := 0\n\n\tkernelMatrix := im.GetKernelMatrix(x, y, cmSize)\n\n\tfor i, kernelColumn := range kernelMatrix {\n\t\tfor j, kernelPixelColour := range kernelColumn {\n\n\t\t\t// get the distance of the current pixel compared to the centre of the kernel\n\t\t\t// the centre one is the one we are modifying and saving to a new image/matrix of course...\n\t\t\tdistance := math.Sqrt(math.Pow(float64(cmSize-i), 2) + math.Pow(float64(cmSize-j), 2))\n\n\t\t\t// Call the function the user passed and get the return weight of how much influence\n\t\t\t// it should have over the centre pixel we want to change\n\t\t\t// We are multipling it by the weight in the convolution matrix as that way you can\n\t\t\t// control an aspect of the weight through the matrix as well (as well as the function that\n\t\t\t// we pass in of course :)\n\t\t\tcmValue := conFunc(im, x, y, i, j, kernelPixelColour, distance) * int(cm[i][j])\n\n\t\t\t// apply the influence / weight ... (eg. if cmValue was 0, then the current pixel would have\n\t\t\t// no influence over the pixel we are changing, if it was large in comparision to what we return\n\t\t\t// for the other kernel pixels, then it will have a large influence)\n\t\t\tredTotal += int(kernelPixelColour.R) * cmValue\n\t\t\tgreenTotal += int(kernelPixelColour.G) * cmValue\n\t\t\tblueTotal += int(kernelPixelColour.B) * cmValue\n\t\t\tweight += cmValue\n\t\t}\n\t}\n\n\t// If the convolution matrix normalised itself; aka, say it was something like:\n\t// { 0 -1 0}\n\t// {-1 4 -1}\n\t// { 0 -1 0}\n\t// then adding the entries (4 + (-1) + (-1) + (-1) + (-1)) results in a zero, in which case we leave\n\t// the weights alone (by setting the weight to divide by to 1) (aka, the weights do not have an impact,\n\t// but the pixels with a weight more more or less than 0 still do have an impact on the pixel\n\t// we are changing of course)\n\tif weight == 0 {\n\t\tweight = 1\n\t}\n\n\t// Normalise the values (based on the weight (total's in the matrix))\n\tnewRedValue := redTotal / weight\n\tnewGreenValue := greenTotal / weight\n\tnewBlueValue := blueTotal / weight\n\n\t// If the values are \"out of range\" (outside the colour range of 0-255) then set them to 0 (absence of that\n\t// colour) if they were negative or 255 (100% of that colour) if they were greater than the max allowed.\n\tif newRedValue < 0 {\n\t\tnewRedValue = 0\n\t} else if newRedValue > 255 {\n\t\tnewRedValue = 255\n\t}\n\n\tif newGreenValue < 0 {\n\t\tnewGreenValue = 0\n\t} else if newGreenValue > 255 {\n\t\tnewGreenValue = 255\n\t}\n\n\tif newBlueValue < 0 {\n\t\tnewBlueValue = 0\n\t} else if newBlueValue > 255 {\n\t\tnewBlueValue = 255\n\t}\n\n\t// Assign the new values to the pixel in the column 'column' at position y\n\tcolumn[y] = color.RGBA{uint8(newRedValue), uint8(newGreenValue), uint8(newBlueValue), currentColour.A}\n\t// fmt.Printf(\"[%v,%v] %v => %v\\n\", x, y, currentColour, column[y])\n}", "func (img *ImageTask) ApplyConvulusion(neighbors *Neighbors, kernel [9]float64) *Colors{\n\n\tvar blue float64\n\tvar green float64\n\tvar red float64\n\tfor r := 0; r < 9; r++ {\n\t\tred = red + (neighbors.inputs[r].Red * kernel[r])\n\t\tgreen = green + (neighbors.inputs[r].Green * kernel[r])\n\t\tblue = blue + (neighbors.inputs[r].Blue * kernel[r])\n\t}\n\n\treturned := Colors{Red: red, Green: green, Blue: blue, Alpha: neighbors.inputs[4].Alpha}\n\treturn &returned\n}", "func (e BatchNormOps) C() C.cudnnBatchNormOps_t { return C.cudnnBatchNormOps_t(e) }", "func (c *imageBinaryChannel) dev2n() float64 {\n\treturn c.integralImage.dev2nRect(0, 0, c.width-1, c.height-1)\n}", "func Conv(scope *Scope, input tf.Output, filter tf.Output, strides []int64, padding string, optional ...ConvAttr) (output tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"strides\": strides, \"padding\": padding}\n\tfor _, a := range optional {\n\t\ta(attrs)\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"Conv\",\n\t\tInput: []tf.Input{\n\t\t\tinput, filter,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0)\n}", "func (o *PerCPU) Kernel() float64 {\n\ts := o.System.ComputeRate()\n\tt := o.Total.ComputeRate()\n\tif s != math.NaN() && t != math.NaN() && t > 0 {\n\t\treturn (s / t)\n\t}\n\treturn math.NaN()\n}", "func (m *WeightedCluster_ClusterWeight) GetPerFilterConfig() map[string]*_struct.Struct {\n\tif m != nil {\n\t\treturn m.PerFilterConfig\n\t}\n\treturn nil\n}", "func (in *Kernel) DeepCopy() *Kernel {\n\tif in == nil {\n\t\treturn nil\n\t}\n\tout := new(Kernel)\n\tin.DeepCopyInto(out)\n\treturn out\n}", "func (s *CPUStat) Kernel() float64 {\n\treturn s.All.Kernel() * float64(len(s.cpus))\n}", "func (e NormOps) C() C.cudnnNormOps_t { return C.cudnnNormOps_t(e) }", "func (e SoftmaxMode) C() C.cudnnSoftmaxMode_t { return C.cudnnSoftmaxMode_t(e) }", "func (f *Filter) GetFilter() *Filter { return f }", "func (m *WeightedCluster_ClusterWeight) GetPerFilterConfig() map[string]*types.Struct {\n\tif m != nil {\n\t\treturn m.PerFilterConfig\n\t}\n\treturn nil\n}", "func (m *VirtualHost) GetPerFilterConfig() map[string]*_struct.Struct {\n\tif m != nil {\n\t\treturn m.PerFilterConfig\n\t}\n\treturn nil\n}", "func (m *Filter) GetConfig() *_struct.Struct {\n\tif x, ok := m.GetConfigType().(*Filter_Config); ok {\n\t\treturn x.Config\n\t}\n\treturn nil\n}", "func (o OceanFiltersOutput) MinGpu() pulumi.IntPtrOutput {\n\treturn o.ApplyT(func(v OceanFilters) *int { return v.MinGpu }).(pulumi.IntPtrOutput)\n}", "func ExampleConv2() {\n\n\tconv := cnns.NewConvLayer(&tensor.TDsize{X: 5, Y: 5, Z: 3}, 1, 3, 2)\n\trelu := cnns.NewReLULayer(conv.GetOutputSize())\n\tmaxpool := cnns.NewPoolingLayer(relu.GetOutputSize(), 2, 2, \"max\", \"valid\")\n\tfullyconnected := cnns.NewFullyConnectedLayer(maxpool.GetOutputSize(), 2)\n\n\tnet := cnns.WholeNet{\n\t\tLP: cnns.NewLearningParametersDefault(),\n\t}\n\tnet.Layers = append(net.Layers, conv)\n\tnet.Layers = append(net.Layers, relu)\n\tnet.Layers = append(net.Layers, maxpool)\n\tnet.Layers = append(net.Layers, fullyconnected)\n\n\tredChannel := mat.NewDense(5, 5, []float64{\n\t\t1, 0, 1, 0, 2,\n\t\t1, 1, 3, 2, 1,\n\t\t1, 1, 0, 1, 1,\n\t\t2, 3, 2, 1, 3,\n\t\t0, 2, 0, 1, 0,\n\t})\n\tgreenChannel := mat.NewDense(5, 5, []float64{\n\t\t1, 0, 0, 1, 0,\n\t\t2, 0, 1, 2, 0,\n\t\t3, 1, 1, 3, 0,\n\t\t0, 3, 0, 3, 2,\n\t\t1, 0, 3, 2, 1,\n\t})\n\tblueChannel := mat.NewDense(5, 5, []float64{\n\t\t2, 0, 1, 2, 1,\n\t\t3, 3, 1, 3, 2,\n\t\t2, 1, 1, 1, 0,\n\t\t3, 1, 3, 2, 0,\n\t\t1, 1, 2, 1, 1,\n\t})\n\n\tkernel1R := mat.NewDense(3, 3, []float64{\n\t\t0, 1, 0,\n\t\t0, 0, 2,\n\t\t0, 1, 0,\n\t})\n\tkernel1G := mat.NewDense(3, 3, []float64{\n\t\t2, 1, 0,\n\t\t0, 0, 0,\n\t\t0, 3, 0,\n\t})\n\tkernel1B := mat.NewDense(3, 3, []float64{\n\t\t1, 0, 0,\n\t\t1, 0, 0,\n\t\t0, 0, 2,\n\t})\n\n\tkernel2R := mat.NewDense(3, 3, []float64{\n\t\t0, -1, 0,\n\t\t0, 0, 2,\n\t\t0, 1, 0,\n\t})\n\tkernel2G := mat.NewDense(3, 3, []float64{\n\t\t2, 1, 0,\n\t\t0, 0, 0,\n\t\t0, -3, 0,\n\t})\n\tkernel2B := mat.NewDense(3, 3, []float64{\n\t\t1, 0, 0,\n\t\t1, 0, 0,\n\t\t0, 0, -2,\n\t})\n\n\timg2 := &mat.Dense{}\n\timg2.Stack(redChannel, greenChannel)\n\timage := &mat.Dense{}\n\timage.Stack(img2, blueChannel)\n\n\tkernel1 := &mat.Dense{}\n\tkernel1.Stack(kernel1R, kernel1G)\n\tconvCustomWeights1 := &mat.Dense{}\n\tconvCustomWeights1.Stack(kernel1, kernel1B)\n\n\tkernel2 := &mat.Dense{}\n\tkernel2.Stack(kernel2R, kernel2G)\n\tconvCustomWeights2 := &mat.Dense{}\n\tconvCustomWeights2.Stack(kernel2, kernel2B)\n\tconv.SetCustomWeights([]*mat.Dense{convCustomWeights1, convCustomWeights2})\n\n\tfcCustomWeights := mat.NewDense(2, maxpool.GetOutputSize().Total(), []float64{\n\t\t-0.19908814, 0.01521263,\n\t\t0.17908468, -0.28144695,\n\t})\n\tfullyconnected.SetCustomWeights([]*mat.Dense{fcCustomWeights})\n\n\tfmt.Printf(\"Layers weights:\\n\")\n\tfor i := range net.Layers {\n\t\tfmt.Printf(\"%s #%d weights:\\n\", net.Layers[i].GetType(), i)\n\t\tnet.Layers[i].PrintWeights()\n\t}\n\n\tfmt.Println(\"\\tDoing training....\")\n\tfor e := 0; e < 1; e++ {\n\t\terr := net.FeedForward(image)\n\t\tif err != nil {\n\t\t\tlog.Printf(\"Feedforward caused error: %s\", err.Error())\n\t\t\treturn\n\t\t}\n\n\t\tdesired := mat.NewDense(2, 1, []float64{0.15, 0.8})\n\t\terr = net.Backpropagate(desired)\n\t\tif err != nil {\n\t\t\tlog.Printf(\"Backpropagate caused error: %s\", err.Error())\n\t\t\treturn\n\t\t}\n\n\t\tfmt.Printf(\"Epoch #%d. New layers weights\\n\", e)\n\t\tfor i := range net.Layers {\n\t\t\tfmt.Printf(\"%s #%d weights on epoch #%d:\\n\", net.Layers[i].GetType(), i, e)\n\t\t\tnet.Layers[i].PrintWeights()\n\t\t}\n\t}\n}", "func (f *IndexFile) Filter() *bloom.Filter { return f.sblk.filter }", "func (img *Image) GetKernel(server string) string {\n\treturn fmt.Sprintf(\"http://%v%v\", server, img.kernel)\n}", "func NewConvolutionalLayer(\n\tinputSize, kernelSize, stride, padding []int,\n\tGPUDriver *driver.Driver,\n\tGPUCtx *driver.Context,\n\tTensorOperator *TensorOperator,\n) *Conv2D {\n\t// argumentsMustBeValid(inputSize, kernelSize, stride, padding)\n\n\tl := &Conv2D{\n\t\tinputSize: inputSize,\n\t\tkernelSize: kernelSize,\n\t\tstride: stride,\n\t\tpadding: padding,\n\t\tGPUDriver: GPUDriver,\n\t\tGPUCtx: GPUCtx,\n\t\tTensorOperator: TensorOperator,\n\t}\n\tl.calculateOutputSize()\n\tl.loadKernels()\n\tl.allocateMemory()\n\n\treturn l\n}", "func (o OceanFiltersPtrOutput) MinGpu() pulumi.IntPtrOutput {\n\treturn o.ApplyT(func(v *OceanFilters) *int {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.MinGpu\n\t}).(pulumi.IntPtrOutput)\n}", "func (m *VirtualHost) GetPerFilterConfig() map[string]*types.Struct {\n\tif m != nil {\n\t\treturn m.PerFilterConfig\n\t}\n\treturn nil\n}", "func NewConvKernel3(m11, m12, m13, m21, m22, m23, m31, m32, m33 float32) *ConvKernel {\n\treturn &ConvKernel{\n\t\tKernel: []float32{m11, m12, m13, m21, m22, m23, m31, m32, m33},\n\t\tRadius: 1, // 3x3 kernel has diameter=3, thus radius=1\n\t}\n}", "func OpenCL(index int32) Device {\n return Device{KDLOpenCL, index}\n}", "func newKernel(tcpConn io.ReadWriteCloser, stderr io.Writer) (*kernel, error) {\n\tstdoutReader, stdoutWriter := io.Pipe()\n\n\tgo func() {\n\t\terr := docker.SplitStream(tcpConn, stdoutWriter, stderr)\n\t\tstdoutWriter.CloseWithError(err)\n\t}()\n\n\tm := kernel{\n\t\tmu: new(sync.Mutex),\n\t\tconn: tcpConn,\n\t\tin: json.NewEncoder(tcpConn),\n\t\tout: json.NewDecoder(stdoutReader),\n\t}\n\n\tif err := m.online(); err != nil {\n\t\treturn nil, err\n\t}\n\treturn &m, nil\n}", "func SeparableFilter2D(target uint32, internalformat uint32, width int32, height int32, format uint32, xtype uint32, row unsafe.Pointer, column unsafe.Pointer) {\n C.glowSeparableFilter2D(gpSeparableFilter2D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), row, column)\n}", "func (l *Conv2D) Forward(inputTensor tensor.Tensor) tensor.Tensor {\n\tl.inputSizeMustMatch(inputTensor)\n\n\tsave := inputTensor.(*Tensor)\n\tl.saveInput(save)\n\n\tbatchSize := l.inputBatchSize(inputTensor)\n\n\tinput := save\n\toutputSize := []int{\n\t\tl.outputSize[0],\n\t\tbatchSize,\n\t\tl.outputSize[1],\n\t\tl.outputSize[2],\n\t}\n\n\toutputHeight := outputSize[2]\n\toutputWidth := outputSize[3]\n\n\tim2ColMatrixHeight := l.numChannels() * l.kernelWidth() * l.kernelHeight()\n\tim2ColMatrixWidth := outputWidth * outputHeight * batchSize\n\tim2ColMatrix := l.TensorOperator.CreateTensor(\n\t\t[]int{im2ColMatrixHeight, im2ColMatrixWidth})\n\tdefer l.TensorOperator.Free(im2ColMatrix)\n\n\tl.im2Col(input, im2ColMatrix,\n\t\t[2]int{l.kernelWidth(), l.kernelHeight()},\n\t\t[4]int{l.padding[0], l.padding[1], l.padding[2], l.padding[3]},\n\t\t[2]int{l.stride[0], l.stride[1]},\n\t\t[2]int{0, 0},\n\t)\n\n\tkernelMatrixWidth := l.kernelWidth() * l.kernelHeight() * l.numChannels()\n\tkernelMatrixHeight := l.numKernels()\n\tkernelMatrix := l.kernel.Reshape(\n\t\t[]int{kernelMatrixHeight, kernelMatrixWidth})\n\n\thKernelData := make([]float32, kernelMatrixWidth*kernelMatrixHeight)\n\tl.GPUDriver.MemCopyD2H(l.GPUCtx, hKernelData, kernelMatrix.ptr)\n\n\toutputMatrix := l.TensorOperator.CreateTensor(\n\t\t[]int{kernelMatrixHeight, im2ColMatrixWidth})\n\tbiasTensor := l.TensorOperator.CreateTensor(\n\t\t[]int{batchSize, l.outputSize[0], l.outputSize[1], l.outputSize[2]})\n\tbiasTensorTrans := l.TensorOperator.CreateTensor(\n\t\t[]int{l.outputSize[0], batchSize, l.outputSize[1], l.outputSize[2]})\n\tl.TensorOperator.Repeat(l.bias, biasTensor, batchSize)\n\tl.TensorOperator.TransposeTensor(biasTensor, biasTensorTrans,\n\t\t[]int{1, 0, 2, 3})\n\tbiasMatrix := biasTensorTrans.Reshape(\n\t\t[]int{l.numKernels(), im2ColMatrixWidth})\n\n\tl.TensorOperator.Gemm(\n\t\tfalse, false,\n\t\tkernelMatrixHeight,\n\t\tim2ColMatrixWidth,\n\t\tkernelMatrixWidth,\n\t\t1.0, 1.0,\n\t\tkernelMatrix, im2ColMatrix, biasMatrix, outputMatrix)\n\n\toutput := &Tensor{\n\t\tdriver: l.GPUDriver,\n\t\tctx: l.GPUCtx,\n\t\tsize: outputSize,\n\t\tptr: outputMatrix.ptr,\n\t\tdescriptor: \"CNHW\",\n\t}\n\n\ttransposedOutput := l.TensorOperator.CreateTensor([]int{\n\t\tbatchSize,\n\t\tl.outputSize[0],\n\t\tl.outputSize[1],\n\t\tl.outputSize[2]})\n\tl.TensorOperator.TransposeTensor(\n\t\toutput, transposedOutput, []int{1, 0, 2, 3})\n\n\tl.TensorOperator.Free(biasTensor)\n\tl.TensorOperator.Free(biasTensorTrans)\n\tl.TensorOperator.Free(output)\n\n\treturn transposedOutput\n}", "func GetSeparableFilter(target uint32, format uint32, xtype uint32, row unsafe.Pointer, column unsafe.Pointer, span unsafe.Pointer) {\n C.glowGetSeparableFilter(gpGetSeparableFilter, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), row, column, span)\n}", "func StepConvolution() *Step {\n\t// TODO\n\treturn nil\n}", "func New(c *Config) (*Filter, error) {\n\n\t//\n\t// dimensions\n\t//\n\n\trF, cF := c.F.Dims()\n\trG, cG := c.G.Dims()\n\trQ, cQ := c.Q.Dims()\n\trH, cH := c.H.Dims()\n\trR, cR := c.R.Dims()\n\n\t//\n\t// validate\n\t//\n\n\tif rF != cF {\n\t\treturn nil, errors.New(\"F must be square matrix\")\n\t}\n\n\tif rQ != cQ {\n\t\treturn nil, errors.New(\"Q must be square matrix\")\n\t}\n\n\tif rR != cR {\n\t\treturn nil, errors.New(\"R must be square matrix\")\n\t}\n\n\tif rF != rG {\n\t\treturn nil, errors.New(\"row dim of F must be matched to row dim of G\")\n\t}\n\n\tif cG != rQ {\n\t\treturn nil, errors.New(\"column dim of G must be matched to row dim of Q\")\n\t}\n\n\tif cH != cF {\n\t\treturn nil, errors.New(\"column dim of H must be matched to column dim of F\")\n\t}\n\n\tif rH != rR {\n\t\treturn nil, errors.New(\"row dim of H must be matched to row dim of R\")\n\t}\n\n\t// init internal states\n\n\tx := mat64.NewVector(cF, nil)\n\tv := mat64.NewDense(rF, cF, nil)\n\tident := mat64.NewDense(rF, cF, nil)\n\tfor i := 0; i < rF; i++ {\n\t\tident.Set(i, i, 1.0)\n\t}\n\n\treturn &Filter{\n\t\tConfig: *c,\n\t\tI: ident,\n\t\tX: x,\n\t\tV: v,\n\t}, nil\n}", "func convolutionMatrixSampleFunction(im ImageMatrix, imagePositionX int, imagePositionY int, kernelPixelX int, kernelPixel int, colour color.RGBA, distance float64) int {\n\tif distance < 1 {\n\t\treturn 1\n\t}\n\n\tif colour.R > 150 && colour.G < 100 && colour.B < 100 {\n\t\treturn int(5 * distance)\n\t}\n\n\treturn 5\n}", "func SeparableFilter2D(target uint32, internalformat uint32, width int32, height int32, format uint32, xtype uint32, row unsafe.Pointer, column unsafe.Pointer) {\n\tC.glowSeparableFilter2D(gpSeparableFilter2D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), row, column)\n}", "func GaussianKernel(dst []float64, sigma float64) {\n\tvar sum float64\n\tscale := -1.0 / (2 * sigma * sigma)\n\tfor i := range dst {\n\t\tx := float64(i - (len(dst)-1)/2)\n\t\tt := math.Exp(x * x * scale)\n\t\tdst[i] = t\n\t\tsum += t\n\t}\n\talpha := 1 / sum\n\tfor i := range dst {\n\t\tdst[i] *= alpha\n\t}\n}", "func DepthwiseConv2dNativeBackpropFilter(scope *Scope, input tf.Output, filter_sizes tf.Output, out_backprop tf.Output, strides []int64, padding string, optional ...DepthwiseConv2dNativeBackpropFilterAttr) (output tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"strides\": strides, \"padding\": padding}\n\tfor _, a := range optional {\n\t\ta(attrs)\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"DepthwiseConv2dNativeBackpropFilter\",\n\t\tInput: []tf.Input{\n\t\t\tinput, filter_sizes, out_backprop,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0)\n}", "func (img *FloatImage) convolveWith(kernel *ConvKernel, px planeExtension) {\n\n\t// convolve each plane independently:\n\tfor i := 0; i < 3; i++ {\n\t\timg.Ip[i] = *convolvePlane(&img.Ip[i], kernel, img.Width, img.Height, px)\n\t}\n}", "func GetCurrentDC() unsafe.Pointer {\n\tret, _, _ := syscall.Syscall(gpGetCurrentDC, 0, 0, 0, 0)\n\treturn (unsafe.Pointer)(ret)\n}", "func (_Harberger *HarbergerCallerSession) Kernel() (common.Address, error) {\n\treturn _Harberger.Contract.Kernel(&_Harberger.CallOpts)\n}", "func (v *Layer) CurrentLayer() *image.Layer {\n\treturn v.Layers[v.LayerIndex]\n}", "func FusedPadConv2D(scope *Scope, input tf.Output, paddings tf.Output, filter tf.Output, mode string, strides []int64, padding string) (output tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"mode\": mode, \"strides\": strides, \"padding\": padding}\n\topspec := tf.OpSpec{\n\t\tType: \"FusedPadConv2D\",\n\t\tInput: []tf.Input{\n\t\t\tinput, paddings, filter,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0)\n}", "func (e PointwiseMode) C() C.cudnnPointwiseMode_t { return C.cudnnPointwiseMode_t(e) }", "func Conv2DBackpropFilterV2UseCudnnOnGpu(value bool) Conv2DBackpropFilterV2Attr {\n\treturn func(m optionalAttr) {\n\t\tm[\"use_cudnn_on_gpu\"] = value\n\t}\n}", "func GetSeparableFilter(target uint32, format uint32, xtype uint32, row unsafe.Pointer, column unsafe.Pointer, span unsafe.Pointer) {\n\tC.glowGetSeparableFilter(gpGetSeparableFilter, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), row, column, span)\n}", "func (e OpTensorOp) C() C.cudnnOpTensorOp_t { return C.cudnnOpTensorOp_t(e) }", "func convolvePlane(planePtr *[]float32, kernel *ConvKernel, width, height int, toPlaneCoords planeExtension) *[]float32 {\n\n\tplane := *planePtr\n\tradius := kernel.Radius\n\tdiameter := radius*2 + 1\n\tres := make([]float32, width*height)\n\n\t// for each pixel of the intensity plane:\n\tfor y := 0; y < height; y++ {\n\t\tfor x := 0; x < width; x++ {\n\t\t\tindex := y*width + x\n\n\t\t\t// compute convolved value of the pixel:\n\t\t\tresV := float32(0)\n\t\t\tfor yk := 0; yk < diameter; yk++ {\n\t\t\t\typ := toPlaneCoords(y+yk-radius, height)\n\t\t\t\tfor xk := 0; xk < diameter; xk++ {\n\t\t\t\t\txp := toPlaneCoords(x+xk-radius, width)\n\t\t\t\t\tplaneIndex := yp*width + xp\n\t\t\t\t\tkernelIndex := yk*diameter + xk\n\t\t\t\t\tresV += (plane[planeIndex] * kernel.Kernel[kernelIndex])\n\t\t\t\t}\n\t\t\t}\n\t\t\tres[index] = resV\n\t\t}\n\t}\n\n\treturn &res\n}", "func (e SoftmaxAlgorithm) C() C.cudnnSoftmaxAlgorithm_t { return C.cudnnSoftmaxAlgorithm_t(e) }", "func CUDA(index int32) Device {\n return Device{kDLCUDA, index}\n}", "func (m *ListenerFilter) GetConfig() *_struct.Struct {\n\tif x, ok := m.GetConfigType().(*ListenerFilter_Config); ok {\n\t\treturn x.Config\n\t}\n\treturn nil\n}", "func Conv2DBackpropFilterUseCudnnOnGpu(value bool) Conv2DBackpropFilterAttr {\n\treturn func(m optionalAttr) {\n\t\tm[\"use_cudnn_on_gpu\"] = value\n\t}\n}", "func wslConfigGetKernelPath() (string, error) {\n\tcfg, err := wslConfigLoad()\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn cfg.Section(wsl2Section).Key(wsl2KernelKey).String(), nil\n}", "func (_Harberger *HarbergerSession) Kernel() (common.Address, error) {\n\treturn _Harberger.Contract.Kernel(&_Harberger.CallOpts)\n}", "func (m *ThriftFilter) GetConfig() *_struct.Struct {\n\tif x, ok := m.GetConfigType().(*ThriftFilter_Config); ok {\n\t\treturn x.Config\n\t}\n\treturn nil\n}", "func (k *Kernel) At(x, y int) float64 {\n\treturn k.Matrix[y*k.Width+x]\n}", "func (e BatchNormMode) C() C.cudnnBatchNormMode_t { return C.cudnnBatchNormMode_t(e) }", "func QuantizedConv2DPerChannel(scope *Scope, input tf.Output, filter tf.Output, min_input tf.Output, max_input tf.Output, min_filter tf.Output, max_filter tf.Output, strides []int64, padding string, optional ...QuantizedConv2DPerChannelAttr) (output tf.Output, min_output tf.Output, max_output tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"strides\": strides, \"padding\": padding}\n\tfor _, a := range optional {\n\t\ta(attrs)\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"QuantizedConv2DPerChannel\",\n\t\tInput: []tf.Input{\n\t\t\tinput, filter, min_input, max_input, min_filter, max_filter,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0), op.Output(1), op.Output(2)\n}", "func (n *Net) InputDim() int {\n\treturn n.inputDim\n}", "func (a API) GetCFilterChk() (isNew bool) {\n\tselect {\n\tcase o := <-a.Ch.(chan GetCFilterRes):\n\t\tif o.Err != nil {\n\t\t\ta.Result = o.Err\n\t\t} else {\n\t\t\ta.Result = o.Res\n\t\t}\n\t\tisNew = true\n\tdefault:\n\t}\n\treturn\n}", "func (_Harberger *HarbergerCaller) Kernel(opts *bind.CallOpts) (common.Address, error) {\n\tvar (\n\t\tret0 = new(common.Address)\n\t)\n\tout := ret0\n\terr := _Harberger.contract.Call(opts, out, \"kernel\")\n\treturn *ret0, err\n}", "func (f *filterImpl) Update(ctx *Context, z, ctrl mat.Vector) error {\n\t// kalman gain\n\t// K = P C^T (C P C^T + R)^-1\n\tctx.pct.Mul(ctx.P, f.Lti.C.T())\n\tctx.cpct.Mul(f.Lti.C, &ctx.pct)\n\tctx.denom.Add(&ctx.cpct, f.Nse.R)\n\n\t// calculation of Kalman gain with mat.Solve(..)\n\t// K = P C^T (C P C^T + R)^-1\n\t// K * (C P C^T + R) = P C^T\n\t// (C P C^T + R)^T K^T = (P C^T )^T\n\terr := ctx.kt.Solve(ctx.denom.T(), ctx.pct.T())\n\tif err != nil {\n\t\t//log.Println(err)\n\t\t//log.Println(\"setting Kalman gain to zero\")\n\t\tctx.denom.Zero()\n\t\tctx.k.Product(ctx.P, f.Lti.C.T(), &ctx.denom)\n\t} else {\n\t\tr, c := ctx.k.Dims()\n\t\tif r == 0 && c == 0 {\n\t\t\tctx.k.CloneFrom(ctx.kt.T())\n\t\t} else {\n\t\t\tctx.k.Copy(ctx.kt.T())\n\t\t}\n\t}\n\n\t// update state\n\t// X~_k = X_k + K * [z_k - C * X_k - D * ctrl ]\n\tctx.cxk.MulVec(f.Lti.C, ctx.X)\n\tctx.dCtrl.MulVec(f.Lti.D, ctrl)\n\tctx.bracket.SubVec(z, &ctx.cxk)\n\tctx.bracket.SubVec(&ctx.bracket, &ctx.dCtrl)\n\tctx.kupd.MulVec(&ctx.k, &ctx.bracket)\n\tctx.X.AddVec(ctx.X, &ctx.kupd)\n\n\t// update covariance\n\t// P~_k = P_k - K * [C * P_k]\n\tctx.kcp.Product(&ctx.k, f.Lti.C, ctx.P)\n\tctx.P.Sub(ctx.P, &ctx.kcp)\n\n\treturn nil\n}", "func (d *DcrwalletCSDriver) GetCFilter(ctx context.Context, height int32) (*chainhash.Hash, [16]byte, *gcs.FilterV2, error) {\n\t// Fast track when data is in memory.\n\tif height >= d.cacheStartHeight && height < d.cacheStartHeight+int32(len(d.cache)) {\n\t\ti := int(height - d.cacheStartHeight)\n\t\tc := &d.cache[i]\n\t\treturn &c.hash, c.key, c.filter, nil\n\t}\n\n\t// Read a bunch of cfilters in one go since it's likely we'll be\n\t// queried for the next few.\n\tstart := wallet.NewBlockIdentifierFromHeight(height)\n\ti := 0\n\td.cache = d.cache[:cap(d.cache)]\n\trangeFn := func(bh chainhash.Hash, key [16]byte, filter *gcs.FilterV2) (bool, error) {\n\t\td.cache[i] = cfilter{\n\t\t\thash: bh,\n\t\t\theight: height + int32(i),\n\t\t\tkey: key,\n\t\t\tfilter: filter,\n\t\t}\n\n\t\t// Stop if the cache has been filled.\n\t\ti++\n\t\treturn i >= cap(d.cache), nil\n\t}\n\terr := d.w.RangeCFiltersV2(ctx, start, nil, rangeFn)\n\tif err != nil {\n\t\treturn nil, [16]byte{}, nil, err\n\t}\n\n\t// If we didn't read any filters from the db, it means we were\n\t// requested a filter past the current mainchain tip. Inform the\n\t// appropriate error in this case.\n\tif i == 0 {\n\t\treturn nil, [16]byte{}, nil, chainscan.ErrBlockAfterTip{Height: height}\n\t}\n\n\t// Clear out unused entries so we don't keep a reference to the filters\n\t// forever.\n\tfor j := i; j < cap(d.cache); j++ {\n\t\td.cache[j].filter = nil\n\t}\n\n\t// Keep track of correct cache start and size.\n\td.cache = d.cache[:i]\n\td.cacheStartHeight = height\n\n\t// The desired filter is the first one.\n\tc := &d.cache[0]\n\treturn &c.hash, c.key, c.filter, nil\n}", "func (f *Filter) Program() unsafe.Pointer {\n return unsafe.Pointer(&f.program)\n}", "func (e RNNBiasMode) C() C.cudnnRNNBiasMode_t { return C.cudnnRNNBiasMode_t(e) }", "func (m *ExtensionFilter) GetConfig() *types.Struct {\n\tif x, ok := m.GetConfigType().(*ExtensionFilter_Config); ok {\n\t\treturn x.Config\n\t}\n\treturn nil\n}", "func (enc *JBIG2Encoder) GetFilterName() string {\n\treturn StreamEncodingFilterNameJBIG2\n}", "func (k *Kernel) Normalized() ConvolutionMatrix {\n\tsum := absum(k)\n\tw := k.Width\n\th := k.Height\n\tnk := NewKernel(w, h)\n\n\t// avoid division by 0\n\tif sum == 0 {\n\t\tsum = 1\n\t}\n\n\tfor i := 0; i < w*h; i++ {\n\t\tnk.Matrix[i] = k.Matrix[i] / sum\n\t}\n\n\treturn nk\n}", "func (e FoldingDirection) C() C.cudnnFoldingDirection_t { return C.cudnnFoldingDirection_t(e) }", "func IFFT2D(scope *Scope, input tf.Output) (output tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"IFFT2D\",\n\t\tInput: []tf.Input{\n\t\t\tinput,\n\t\t},\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0)\n}", "func (d *dataUpdateTracker) cycleFilter(ctx context.Context, req bloomFilterRequest) (*bloomFilterResponse, error) {\n\tif req.OldestClean != \"\" {\n\t\treturn &bloomFilterResponse{OldestIdx: d.latestWithDir(req.OldestClean)}, nil\n\t}\n\tcurrent := req.Current\n\toldest := req.Oldest\n\td.mu.Lock()\n\tdefer d.mu.Unlock()\n\tif current == 0 {\n\t\tif len(d.History) == 0 {\n\t\t\treturn d.filterFrom(ctx, d.Current.idx, d.Current.idx), nil\n\t\t}\n\t\td.History.sort()\n\t\tif oldest == 0 {\n\t\t\toldest = d.History[len(d.History)-1].idx\n\t\t}\n\t\treturn d.filterFrom(ctx, oldest, d.Current.idx), nil\n\t}\n\n\t// Move current to history if new one requested\n\tif d.Current.idx != current {\n\t\td.dirty = true\n\t\tif d.debug {\n\t\t\tconsole.Debugf(color.Green(\"dataUpdateTracker:\")+\" cycle bloom filter: %v -> %v\\n\", d.Current.idx, current)\n\t\t}\n\n\t\td.History = append(d.History, d.Current)\n\t\td.Current.idx = current\n\t\td.Current.bf = d.newBloomFilter()\n\t\tselect {\n\t\tcase d.save <- struct{}{}:\n\t\tdefault:\n\t\t}\n\t}\n\td.History.removeOlderThan(oldest)\n\treturn d.filterFrom(ctx, oldest, current), nil\n}", "func initContainerFilter() {\n\tvar err error\n\tif filter, err = containers.GetSharedMetricFilter(); err != nil {\n\t\tlog.Errorf(\"Error initializing container filtering: %s\", err)\n\t}\n}", "func GaussianFilter(src, dst []float64, width int, sigma float64, border Border) {\n\tif width <= 0 {\n\t\twidth = 1 + 2*int(math.Floor(sigma*4+0.5))\n\t}\n\tkernel := make([]float64, width)\n\tGaussianKernel(kernel, sigma)\n\tConvolve(src, dst, kernel, border)\n}", "func (f *Filter) Init(x *mat64.Vector, v mat64.Matrix) error {\n\n\trF, cF := f.F.Dims()\n\n\t//\n\t// X\n\t//\n\n\tif x == nil {\n\t\tf.X = mat64.NewVector(cF, nil)\n\n\t} else {\n\t\trX, _ := x.Dims()\n\t\tif rX != cF {\n\t\t\treturn errors.New(\"row dim of x must be matched to column dim of F\")\n\t\t}\n\t\tf.X = x\n\t}\n\n\t//\n\t// V\n\t//\n\n\tif v == nil {\n\t\tvar m *mat64.Dense\n\t\tm.Mul(f.G, f.Q)\n\t\tf.V.Mul(m, f.G.T())\n\n\t} else {\n\t\trV, cV := v.Dims()\n\t\tif rV != cV {\n\t\t\treturn errors.New(\"V must be square matrix\")\n\t\t}\n\t\tif rV != rF {\n\t\t\treturn errors.New(\"row dim of V must be matched to row dim of F\")\n\t\t}\n\n\t\tf.V = mat64.DenseCopyOf(v)\n\t}\n\n\treturn nil\n}", "func DepthwiseConv2dNativeBackpropInput(scope *Scope, input_sizes tf.Output, filter tf.Output, out_backprop tf.Output, strides []int64, padding string, optional ...DepthwiseConv2dNativeBackpropInputAttr) (output tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"strides\": strides, \"padding\": padding}\n\tfor _, a := range optional {\n\t\ta(attrs)\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"DepthwiseConv2dNativeBackpropInput\",\n\t\tInput: []tf.Input{\n\t\t\tinput_sizes, filter, out_backprop,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0)\n}", "func (image *Image2D) GetChannels() int {\n\treturn image.channels\n}", "func (o *DynamicFont) GetUseFilter() gdnative.Bool {\n\t//log.Println(\"Calling DynamicFont.GetUseFilter()\")\n\n\t// Build out the method's arguments\n\tptrArguments := make([]gdnative.Pointer, 0, 0)\n\n\t// Get the method bind\n\tmethodBind := gdnative.NewMethodBind(\"DynamicFont\", \"get_use_filter\")\n\n\t// Call the parent method.\n\t// bool\n\tretPtr := gdnative.NewEmptyBool()\n\tgdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)\n\n\t// If we have a return type, convert it from a pointer into its actual object.\n\tret := gdnative.NewBoolFromPointer(retPtr)\n\treturn ret\n}", "func (img *FloatImage) ConvolveWrapWith(kernel *ConvKernel, px planeExtension) {\n\timg.convolveWith(kernel, wrapPlaneExtension)\n}", "func Conv2DUseCudnnOnGpu(value bool) Conv2DAttr {\n\treturn func(m optionalAttr) {\n\t\tm[\"use_cudnn_on_gpu\"] = value\n\t}\n}", "func (a API) GetCFilter(cmd *btcjson.GetCFilterCmd) (e error) {\n\tRPCHandlers[\"getcfilter\"].Call <-API{a.Ch, cmd, nil}\n\treturn\n}", "func clientFilter(node *Node, isBuffered bool, udata userdata, push func(*Node, uint32),\n\tpushBuf func(*Node, interface{}, uint32)) error {\n\t//\n\tuserfunc := udata.filterdata.(Predicate)\n\tserial := udata.serial\n\tn, err := userfunc(node, node)\n\tif n != nil && err != nil {\n\t\tpush(n, serial) // forward filtered node to next pipeline stage\n\t}\n\treturn err\n}", "func (process *Process) GetOperationConduit() chan OperationMessager {\n\treturn process.operationConduit\n}" ]
[ "0.6487363", "0.59921056", "0.59116304", "0.58552146", "0.55752", "0.5445001", "0.53571665", "0.5301194", "0.52064353", "0.5146448", "0.5141581", "0.513883", "0.51336193", "0.5072139", "0.5044754", "0.5030966", "0.50287086", "0.4999617", "0.49639767", "0.49610165", "0.49603257", "0.49501252", "0.49133807", "0.48703903", "0.48036593", "0.48022926", "0.480167", "0.47547093", "0.4712378", "0.47115427", "0.46311334", "0.46214926", "0.46172523", "0.46029818", "0.45902205", "0.4588707", "0.4583091", "0.45539922", "0.45431572", "0.45224246", "0.45173472", "0.4505593", "0.44909087", "0.44904476", "0.44625628", "0.44481674", "0.4447632", "0.4443047", "0.44264773", "0.44024417", "0.43981233", "0.43746194", "0.43727195", "0.436281", "0.4331725", "0.4328566", "0.43247426", "0.43234393", "0.4310751", "0.4293418", "0.42831343", "0.42772144", "0.4259635", "0.4257228", "0.42291665", "0.4222878", "0.42164958", "0.42151132", "0.42151102", "0.4213866", "0.4206744", "0.4198102", "0.41719508", "0.41688183", "0.41656473", "0.4146442", "0.41401517", "0.41319627", "0.41168287", "0.4111", "0.41109785", "0.41101706", "0.4105526", "0.40900412", "0.4089637", "0.40880498", "0.40684325", "0.40519843", "0.4039994", "0.4033991", "0.40288776", "0.40179884", "0.399536", "0.3993345", "0.39893204", "0.39890674", "0.39874446", "0.39822185", "0.39785373", "0.3976872" ]
0.6071141
1
retrieve messages from the debug message log
func GetDebugMessageLog(count uint32, bufSize int32, sources *uint32, types *uint32, ids *uint32, severities *uint32, lengths *int32, messageLog *uint8) uint32 { ret := C.glowGetDebugMessageLog(gpGetDebugMessageLog, (C.GLuint)(count), (C.GLsizei)(bufSize), (*C.GLenum)(unsafe.Pointer(sources)), (*C.GLenum)(unsafe.Pointer(types)), (*C.GLuint)(unsafe.Pointer(ids)), (*C.GLenum)(unsafe.Pointer(severities)), (*C.GLsizei)(unsafe.Pointer(lengths)), (*C.GLchar)(unsafe.Pointer(messageLog))) return (uint32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetDebugMessageLog(count uint32, bufSize int32, sources *uint32, types *uint32, ids *uint32, severities *uint32, lengths *int32, messageLog *uint8) uint32 {\n\tret, _, _ := syscall.Syscall9(gpGetDebugMessageLog, 8, uintptr(count), uintptr(bufSize), uintptr(unsafe.Pointer(sources)), uintptr(unsafe.Pointer(types)), uintptr(unsafe.Pointer(ids)), uintptr(unsafe.Pointer(severities)), uintptr(unsafe.Pointer(lengths)), uintptr(unsafe.Pointer(messageLog)), 0)\n\treturn (uint32)(ret)\n}", "func GetDebugMessageLog(count uint32, bufSize int32, sources *uint32, types *uint32, ids *uint32, severities *uint32, lengths *int32, messageLog *int8) uint32 {\n ret := C.glowGetDebugMessageLog(gpGetDebugMessageLog, (C.GLuint)(count), (C.GLsizei)(bufSize), (*C.GLenum)(unsafe.Pointer(sources)), (*C.GLenum)(unsafe.Pointer(types)), (*C.GLuint)(unsafe.Pointer(ids)), (*C.GLenum)(unsafe.Pointer(severities)), (*C.GLsizei)(unsafe.Pointer(lengths)), (*C.GLchar)(unsafe.Pointer(messageLog)))\n return (uint32)(ret)\n}", "func (writer *erroneousSystemLogCaptureWriter) getCapturedMessages() []erroneousSystemLogInfo {\n\twriter.mutex.Lock()\n\tdefer writer.mutex.Unlock()\n\n\t// Defensive copy\n\tresult := []erroneousSystemLogInfo{}\n\tfor _, logInfo := range writer.logMessages {\n\t\tresult = append(result, logInfo)\n\t}\n\treturn result\n}", "func (l *MessageLogger) Debug(msg string) { l.logger.Debug(msg) }", "func (mc *MemCache) DEBUG_MSG(msg string) {\n\n\t// XXX STUB\n\n\treturn\n}", "func (m *Descriptor) GetMessages() []*Descriptor { return m.Messages }", "func (m *mLog) Debug() Entry {\n\te := mEntry{make([]Entry, len(m.ls))}\n\tfor i := range m.ls {\n\t\te.es[i] = m.ls[i].Debug()\n\t}\n\treturn &e\n}", "func (l *sinkInfo) getStartLines(now time.Time) []*buffer {\n\tf := l.formatter\n\tmessages := make([]*buffer, 0, 6)\n\tmessages = append(messages,\n\t\tmakeStartLine(f, \"file created at: %s\", Safe(now.Format(\"2006/01/02 15:04:05\"))),\n\t\tmakeStartLine(f, \"running on machine: %s\", host),\n\t\tmakeStartLine(f, \"binary: %s\", Safe(build.GetInfo().Short())),\n\t\tmakeStartLine(f, \"arguments: %s\", os.Args),\n\t)\n\n\tlogging.idMu.RLock()\n\tif logging.idMu.clusterID != \"\" {\n\t\tmessages = append(messages, makeStartLine(f, \"clusterID: %s\", logging.idMu.clusterID))\n\t}\n\tif logging.idMu.nodeID != 0 {\n\t\tmessages = append(messages, makeStartLine(f, \"nodeID: n%d\", logging.idMu.nodeID))\n\t}\n\tif logging.idMu.tenantID != \"\" {\n\t\tmessages = append(messages, makeStartLine(f, \"tenantID: %s\", logging.idMu.tenantID))\n\t}\n\tif logging.idMu.sqlInstanceID != 0 {\n\t\tmessages = append(messages, makeStartLine(f, \"instanceID: %d\", logging.idMu.sqlInstanceID))\n\t}\n\tlogging.idMu.RUnlock()\n\n\t// Including a non-ascii character in the first 1024 bytes of the log helps\n\t// viewers that attempt to guess the character encoding.\n\tmessages = append(messages,\n\t\tmakeStartLine(f, \"line format: [IWEF]yymmdd hh:mm:ss.uuuuuu goid file:line msg utf8=\\u2713\"))\n\treturn messages\n}", "func (log *PbftLog) Messages() mapset.Set {\n\treturn log.messages\n}", "func (f *FileDescriptor) GetMessages() []*Descriptor { return f.Messages }", "func LogMsgs() {\n\tlogrus.Debug(\"Sample debug 1.\")\n\tlogrus.WithFields(logrus.Fields{\"name\": CallerName(1), \"a\": \"b\", \"c\": 10}).Debug(\"Sample debug 2.\")\n\tlogrus.Info(\"Sample info 1.\")\n\tlogrus.WithFields(logrus.Fields{\"name\": CallerName(1), \"a\": \"b\", \"c\": 10}).Info(\"Sample info 2.\")\n\tlogrus.Warn(\"Sample warn 1.\")\n\tlogrus.WithFields(logrus.Fields{\"name\": CallerName(1), \"a\": \"b\", \"c\": 10}).Warn(\"Sample warn 2.\")\n\tlogrus.Error(\"Sample error 1.\")\n\tlogrus.WithFields(logrus.Fields{\"name\": CallerName(1), \"a\": \"b\", \"c\": 10}).Error(\"Sample error 2.\")\n}", "func DebugMsg(msg string) {\n\tusedLogger.Debug(msg)\n}", "func extractMessages(buf []byte) ([]*i18n.Message, error) {\n\tfset := token.NewFileSet()\n\tfile, err := parser.ParseFile(fset, \"\", buf, parser.AllErrors)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\textractor := newExtractor(file)\n\tast.Walk(extractor, file)\n\treturn extractor.messages, nil\n}", "func debugLog(msg ...interface{}) {\n\tlogLocker.Lock()\n\tdefer logLocker.Unlock()\n\tif *confVerbose {\n\t\tcolor.White(fmt.Sprint(time.Now().Format(\"02_01_06-15.04.05\"), \"[DEBUG] ->\", msg))\n\t}\n}", "func D(format string, args ...interface{}) { debugdeps(sentry.CaptureMessage, 3, format, args...) }", "func (this *FtpsClient) debugInfo(_Message_S string) {\n\n\tif this.FtpsParam_X.Debug_B {\n\t\tlog.Println(_Message_S)\n\t}\n}", "func (s *scribe) D() Logger { return s.L(Debug) }", "func D(message ...interface{}) {\n\tif LOG_DEBUG <= LOG_LEVEL {\n\t\tfmt.Println(message...)\n\t}\n}", "func (ml *messageLog) Get(id uuid.UUID) (*api.ServiceKey, *api.Message) {\r\n\tml.lock.Lock()\r\n\tdefer ml.lock.Unlock()\r\n\tentry := ml.log.findByID(id)\r\n\tif entry != nil {\r\n\t\treturn entry.ServiceKey, entry.Message\r\n\t}\r\n\treturn nil, nil\r\n}", "func (c *Message) GetMessages(db *gorm.DB, pid uint64) (*[]Message, error) {\n\n\tMessages := []Message{}\n\terr := db.Debug().Model(&Message{}).Where(\"mission_id = ?\", pid).Order(\"created_at desc\").Find(&Messages).Error\n\tif err != nil {\n\t\treturn &[]Message{}, err\n\t}\n\treturn &Messages, err\n}", "func printGlobalHistory() {\n rows, err := settings.DataBase.Query(\"SELECT Body FROM GlobalMessages ORDER BY Id\")\n utils.CheckError(err)\n\n var data string\n\n for rows.Next() {\n rows.Scan(&data)\n fmt.Println(\"|\", data)\n }\n\n rows.Close()\n}", "func Debug(msg ...interface{}) {\n\tif LevelDebug >= logLevel {\n\t\tsyslog.Println(\"D:\", msg)\n\t}\n}", "func DebugMessage(a ...interface{}) (n int, err error) {\n\tif VerboseLogging {\n\t\tn, err = MessageWithType(MsgDebug, a...)\n\t\treturn n, err\n\t}\n\treturn 0, nil\n}", "func LogMsgs() {\n\tlogger := logrus.WithField(\"name\", lcf.CallerName(1))\n\tlogger.Debug(\"Sample debug 1.\")\n\tlogger.WithFields(logrus.Fields{\"a\": \"b\", \"c\": 10}).Debug(\"Sample debug 2.\")\n\tlogger.Info(\"Sample info 1.\")\n\tlogger.WithFields(logrus.Fields{\"a\": \"b\", \"c\": 10}).Info(\"Sample info 2.\")\n\tlogger.Warn(\"Sample warn 1.\")\n\tlogger.WithFields(logrus.Fields{\"a\": \"b\", \"c\": 10}).Warn(\"Sample warn 2.\")\n\tlogger.Error(\"Sample error 1.\")\n\tlogger.WithFields(logrus.Fields{\"a\": \"b\", \"c\": 10}).Error(\"Sample error 2.\")\n}", "func DebugMessage(msg string, a ...interface{}) {\n\tif sliceExists(Levels, \"DEBUG\") {\n\t\tfmt.Printf(\"[FRAME DEBUG] %s\\n\", fmt.Sprintf(msg, a...))\n\t}\n}", "func (l nullLogger) Debug(msg string, ctx ...interface{}) {}", "func Debug(msg ...interface{}) {\n\tCurrent.Debug(msg...)\n}", "func getMessages() (Infos, error) {\n\t// Execute the query\n\trows, err := db.Query(\"SELECT username, email, message FROM messages INNER JOIN users ON users.id = messages.user_id ORDER BY messages.created_at asc LIMIT 100\")\n\tif err != nil {\n\t\tpanic(err.Error()) // proper error handling instead of panic in your app\n\t}\n\n\tvar messages Infos\n\tvar message Info\n\n\tfor rows.Next() {\n\t\t// for each row, scan the result into our tag composite object\n\t\terr = rows.Scan(&message.Username, &message.Email, &message.Message)\n\t\tif err != nil {\n\t\t\tpanic(err.Error()) // proper error handling instead of panic in your app\n\t\t}\n\t\t// and then print out the tag's Name attribute\n\t\tmessages = append(messages, message)\n\t}\n\n\treturn messages, err\n}", "func Debug(msg string) {\n\tif lvl <= deb {\n\t\tl.Print(\"[DEBUG]: \" + msg)\n\t}\n}", "func Debug(msg string) {\n log.Debug(msg)\n}", "func (f *FakeMounter) GetLog() []FakeAction {\n\tf.mutex.Lock()\n\tdefer f.mutex.Unlock()\n\n\treturn f.log\n}", "func (nl *NullLogger) LogDebug(m ...interface{}) {\n}", "func getLogMessagesOfType(t *testing.T, typ string, logOutput []byte) [][]byte {\n\tlines := bytes.Split(logOutput, []byte(\"\\n\"))\n\tvar logLines [][]byte\n\tfor _, line := range lines {\n\t\tif len(line) == 0 {\n\t\t\tcontinue\n\t\t}\n\t\tvar currEntry map[string]interface{}\n\t\tassert.NoError(t, json.Unmarshal(line, &currEntry), \"failed to parse json line %q\", string(line))\n\t\tif logLineType, ok := currEntry[\"type\"]; ok && logLineType == typ {\n\t\t\tlogLines = append(logLines, line)\n\t\t}\n\t}\n\treturn logLines\n}", "func (l LogrusGoKitLogger) extractLogElements(\n\tkeyVals ...interface{},\n) (logrus.Fields, logrus.Level, string) {\n\tmsg := \"\"\n\tfields := logrus.Fields{}\n\tlevel := logrus.DebugLevel\n\n\tfor i := 0; i < len(keyVals); i += 2 {\n\t\tfieldKey := fmt.Sprint(keyVals[i])\n\t\tif i+1 < len(keyVals) {\n\t\t\tfieldValue := fmt.Sprint(keyVals[i+1])\n\t\t\tswitch {\n\t\t\tcase (fieldKey == msgKey || fieldKey == messageKey) && msg == \"\":\n\t\t\t\t// if this is a \"msg\" key, store it separately so we can use it as the\n\t\t\t\t// main log message\n\t\t\t\tmsg = fieldValue\n\t\t\tcase fieldKey == errKey || fieldKey == errorKey:\n\t\t\t\t// if this is a \"err\" key, we should use the error message as\n\t\t\t\t// the main message and promote the level to Error\n\t\t\t\terr := fieldValue\n\t\t\t\tif err != \"\" {\n\t\t\t\t\tmsg = err\n\t\t\t\t\tlevel = logrus.ErrorLevel\n\t\t\t\t}\n\t\t\tcase fieldKey == levelKey || fieldKey == severityKey:\n\t\t\t\t// if this is a \"level\" key, it means GoKit logger is giving us\n\t\t\t\t// a hint to the logging level\n\t\t\t\tlevelStr := fieldValue\n\t\t\t\tparsedLevel, err := logrus.ParseLevel(levelStr)\n\t\t\t\tif err != nil || level < parsedLevel {\n\t\t\t\t\tlevel = logrus.ErrorLevel\n\t\t\t\t\tfields[levelKey] = levelStr\n\t\t\t\t} else {\n\t\t\t\t\tlevel = parsedLevel\n\t\t\t\t}\n\t\t\tdefault:\n\t\t\t\t// this is just regular log data, add it as a key:value pair\n\t\t\t\tfields[fieldKey] = keyVals[i+1]\n\t\t\t}\n\t\t} else {\n\t\t\t// odd pair key, with no matching value\n\t\t\tfields[fieldKey] = gokitlog.ErrMissingValue\n\t\t}\n\t}\n\treturn fields, level, msg\n}", "func (ss *sceneStub) D() Logger { return ss.L(Debug) }", "func (lc mockNotifyLogger) Debug(msg string, args ...interface{}) {\n}", "func (sysLogConn *Connection) ReadLogMessage() string {\n\treturn <-sysLogConn.logReader\n}", "func (d *DummyLogger) Debug(format string) {}", "func dmsg(level DebugLevel, f string, args ...interface{}) {\n\tif (debug & level) > 0 {\n\t\tfmt.Fprintf(os.Stderr, f, args...)\n\t}\n}", "func Debug(msg string){\n\tif IsDebug() {\n\t\tlog.Println(msg)\n\t}\n}", "func Debug(msg ...interface{}) {\n\tlog(defaultLogger, DEBUG, msg...)\n}", "func (w *PgxEntry) Debug(msg string, vars ...interface{}) {\n f := logrus.Fields{}\n for i := 0; i < len(vars)/2; i++ {\n f[vars[i*2].(string)] = vars[i*2+1]\n }\n (*logrus.Entry)(w).WithFields(f).Debug(msg)\n}", "func (m *Descriptor) GetMessageFields() []*FieldDescriptor { return m.Fields }", "func getMessages(w http.ResponseWriter, r *http.Request) {\n\tgetMessageResponse(w, messages, nil)\n}", "func (l MockLogger) Debug(msg string, fields ...interface{}) {\n}", "func (conn *Connection) debug(message string) {\n\tfmt.Println(\"Connection #\", conn.ID(), \"-\", message)\n\t//conn.SendInformation(message)\n}", "func DEBUG(m string) StackdriverMessage {\n\tlog := stackdriverLog{\n\t\tSeverity: \"DEBUG\",\n\t\tMessage: m,\n\t\tTimestamp: time.Now().Format(time.RFC3339),\n\t\tStatus: 100,\n\t}\n\treturn formatLog(log)\n}", "func (l *Logger) Debugw(msg string, keysAndValues ...interface{}) {\n\tl.sgLogger.Debugw(msg, keysAndValues...)\n\t_ = l.lg.Sync()\n}", "func (l *compositeLogger) Debug(msg string, fields ...zapcore.Field) {\n\tfor _, logger := range l.Logger {\n\t\tlogger.Debug(msg, fields...)\n\t}\n}", "func (n *PaxosNode) NextMessage() (*paxos.LogEntry, error) {\n\t// read the message from the log for the current slot nnumber and return its value to the player\n\t<-n.MessageAvailable\n\treadLog, _ := os.OpenFile(n.logFileName, os.O_RDWR, 0666)\n\treadLog.Seek(int64(n.readSlot*MAX_SLOT_BYTES), 0)\n\tvar buf []byte\n\tvar marshalledLogEntry []byte\n\tbuf = make([]byte, 1, 1)\n\tfor {\n\t\t_, err := readLog.Read(buf[0:1])\n\t\tif err == io.EOF {\n\t\t\t// do something here\n\t\t\t// fmt.Println(\"EOF in log\", string(marshalledLogEntry))\n\t\t\treturn nil, fmt.Errorf(\"File EOF occured\")\n\t\t} else if err != nil {\n\t\t\tLOGE.Println(\"some other error\", err)\n\t\t\treturn nil, err // if you return error\n\t\t} else {\n\t\t\tmarshalledLogEntry = append(marshalledLogEntry, buf[0])\n\t\t\tif buf[0] == '\\n' {\n\t\t\t\tif len(marshalledLogEntry) == 1 {\n\t\t\t\t\treturn nil, nil\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n\n\tvar entry *paxos.LogEntry\n\terr := json.Unmarshal(marshalledLogEntry, &entry)\n\tif err == nil {\n\t\tif entry.Committed == false {\n\t\t\treturn nil, nil\n\t\t}\n\t}\n\n\tn.readSlot++\n\treturn entry, nil\n}", "func (fl fieldLogger) Debug(msg string, fields ...Field) {\n\tfl.l.Debug(msg, unpack(fields...)...)\n}", "func ExampleDebug() {\n\tsetup()\n\tlog.Debug().Msg(\"hello world\")\n\n\t// Output: {\"level\":\"debug\",\"time\":1199811905,\"message\":\"hello world\"}\n}", "func (z *Logger) Debugw(msg string, keysandvalues ...interface{}) {\n\tz.SugaredLogger.Debugw(msg, keysandvalues...)\n}", "func (l *MemoryLogger) Debug(msg string, keyvals ...interface{}) {\n\tl.println(\"DEBUG\", msg, keyvals)\n}", "func lines2msg(lines []string) (msg *LogMsg, skipped, remlines []string) {\n\tif len(lines) == 0 {\n\t\treturn nil, nil, nil\n\t}\n\tskipped = make([]string, 0)\n\tmsg = &LogMsg{msg: \"\", kind: \"\"}\n\tok, n := false, -1\n\tfor i, line := range lines {\n\t\tif (msg.msg != \"\") && ((n > 0) || strings.HasPrefix(line, \" \")) {\n\t\t\tmsg.msg = msg.msg + \"\\n\" + line // amend with previous line\n\t\t\tn--\n\n\t\t} else if msg.msg != \"\" {\n\t\t\treturn msg, skipped, lines[i:]\n\n\t\t} else {\n\t\t\tmsg.msg = line\n\t\t\tif ok, n = msg.parseHeadLine(); !ok {\n\t\t\t\tmsg.msg = \"\"\n\t\t\t\tif strings.Trim(line, \"\\t \\r\\n\") != \"\" {\n\t\t\t\t\tskipped = append(skipped, line)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn msg, skipped, nil\n}", "func Debug(log string, v ...interface{}) {\n\tsyslog.Printf(\"DEBUG \"+log, v...)\n}", "func (_m *LoggerItf) Debug(msg string, fields ...zapcore.Field) {\n\t_va := make([]interface{}, len(fields))\n\tfor _i := range fields {\n\t\t_va[_i] = fields[_i]\n\t}\n\tvar _ca []interface{}\n\t_ca = append(_ca, msg)\n\t_ca = append(_ca, _va...)\n\t_m.Called(_ca...)\n}", "func logLine(message LiveLoggerMessage) {\n\tvar line string\n\tswitch message.eventType {\n\tcase \"NEW\":\n\t\tline = fmt.Sprintf(\"[ NEW ] - %s : %s\", message.source, message.message)\n\tcase \"DROP\":\n\t\tline = fmt.Sprintf(\"[ DROP ] - %s : %s\", message.source, message.message)\n\tcase \"START\":\n\t\tline = fmt.Sprintf(\"[ START ] - %s : %s\", message.source, message.message)\n\tcase \"UPDATE\":\n\t\tline = fmt.Sprintf(\"[ UPDATE ] - %s ( %6.2f %% ) : %s\", message.source, message.progress, message.message)\n\tcase \"END\":\n\t\tline = fmt.Sprintf(\"[ DONE ] - %s : %s\", message.source, message.message)\n\tdefault:\n\t\tline = fmt.Sprintf(\"%s : %s\", message.source, message.message)\n\t}\n\tfmt.Fprintln(os.Stdout, line)\n}", "func GetMessages(session *sessions.Session) (messages []string) {\n\tmessages = []string{}\n\tif flashes := session.Flashes(); len(flashes) > 0 {\n\t\tmessages = make([]string, len(flashes))\n\t\tfor i, f := range flashes {\n\t\t\tmessages[i] = f.(string)\n\t\t}\n\t}\n\treturn\n}", "func (u *Unpackerr) logCurrentQueue() {\n\tvar (\n\t\twaiting uint\n\t\tqueued uint\n\t\textracting uint\n\t\tfailed uint\n\t\textracted uint\n\t\timported uint\n\t\tdeleted uint\n\t\thookOK, hookFail = u.WebhookCounts()\n\t)\n\n\tfor name := range u.Map {\n\t\tswitch u.Map[name].Status {\n\t\tcase WAITING:\n\t\t\twaiting++\n\t\tcase QUEUED:\n\t\t\tqueued++\n\t\tcase EXTRACTING:\n\t\t\textracting++\n\t\tcase DELETEFAILED, EXTRACTFAILED:\n\t\t\tfailed++\n\t\tcase EXTRACTED:\n\t\t\textracted++\n\t\tcase DELETED, DELETING:\n\t\t\tdeleted++\n\t\tcase IMPORTED:\n\t\t\timported++\n\t\t}\n\t}\n\n\tu.Printf(\"[Unpackerr] Queue: [%d waiting] [%d queued] [%d extracting] [%d extracted] [%d imported]\"+\n\t\t\" [%d failed] [%d deleted]\", waiting, queued, extracting, extracted, imported, failed, deleted)\n\tu.Printf(\"[Unpackerr] Totals: [%d retries] [%d finished] [%d|%d webhooks] [%d stacks]\",\n\t\tu.Retries, u.Finished, hookOK, hookFail, len(u.folders.Events)+len(u.updates)+len(u.folders.Updates))\n\tu.updateTray(u.Retries, u.Finished, waiting, queued, extracting, failed, extracted, imported, deleted,\n\t\thookOK, hookFail, uint(len(u.folders.Events)+len(u.updates)+len(u.folders.Updates)))\n}", "func (testLog TestLog) Debug(msg ...interface{}) {\n\ttestLog.T.Log(\"[Debug]\", msg)\n}", "func (l *Logger) Debug(v ...interface{}) { l.lprint(DEBUG, v...) }", "func (m *ServiceAnnouncement) GetMessages()([]ServiceUpdateMessageable) {\n return m.messages\n}", "func getBuildLog(url string) string {\n\tresponse, err := http.Get(url)\n\tif url == \"\" {\n\t\treturn \"\"\n\t}\n\n\tdefer response.Body.Close()\n\n\tb, err := ioutil.ReadAll(response.Body)\n\tcheck(err)\n\n\t//only the last part of the log is relevant\n\te := len(b) - 1\n\ts := 0\n\tif e > lastBytes {\n\t\ts = e - lastBytes\n\t}\n\n\t//drop anything after the error message\n\tres := strings.SplitN(string(b[s:e]), endOfLog, 2)\n\n\t//keep only last 200 lines\n\tsplit := strings.Split(res[0], \"\\n\")\n\n\te = len(split) - 1\n\ts = 0\n\tif e > 200 {\n\t\ts = e - 200\n\t}\n\n\treturn strings.Join(split[s:e], \"\\n\")\n}", "func Debug(msg string, fields ...Field) {\n\tgetLogger().Debug(msg, fields...)\n}", "func (b *BandwidthCollector) LogRecvMessage(int64) {}", "func (s *SkipList) DebugPrint() []string {\n\tdebugData := make([]string, s.currentLevel+1)\n\tfor i := 0; i <= s.currentLevel; i++ {\n\t\tstrBuilder := strings.Builder{}\n\t\tstrBuilder.WriteString(strconv.Itoa(i) + \":\")\n\t\tcurrent := s.header.Next[i]\n\t\tfor current != nil {\n\t\t\tstrBuilder.WriteString(strconv.Itoa(current.Key) + \",\")\n\t\t\tcurrent = current.Next[i]\n\t\t}\n\t\tdebugData[i] = strBuilder.String()\n\t}\n\treturn debugData\n}", "func DebugMessageControl(source uint32, xtype uint32, severity uint32, count int32, ids *uint32, enabled bool) {\n\tsyscall.Syscall6(gpDebugMessageControl, 6, uintptr(source), uintptr(xtype), uintptr(severity), uintptr(count), uintptr(unsafe.Pointer(ids)), boolToUintptr(enabled))\n}", "func (l Logger) Debugw(msg string, fields log.Fields) {\n\tif l.Level <= log.DebugLevel {\n\t\tl.logger.Printf(\"[DEBUG] %s %s\", msg, handlFields(fields))\n\t}\n}", "func (f *firstLogger) Debug(message ...interface{}) {\n\ttransactionLog.WithFields(logrus.Fields{\n\t\t\"file\": f.Filename,\n\t}).Debug(message)\n\n}", "func (l *DolceLog) GetAll() ([]string, error) {\n\tl.logMutex.Lock()\n\tdefer l.logMutex.Unlock()\n\tvar i uint64\n\tvar result = make([]string, 0)\n\ti = 0\n\n\tf, err := os.Open(dlog.filename)\n\tdefer f.Close()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t\treturn nil, err\n\t}\n\n\tscanner := bufio.NewScanner(f)\n\n\tfor scanner.Scan() {\n\t\tresult = append(result, scanner.Text())\n\t\ti++\n\t}\n\n\tl.index = i\n\n\tif err := scanner.Err(); err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treturn result, nil\n}", "func (_LockProxy *LockProxyFilterer) ParseDebugBytes(log types.Log) (*LockProxyDebugBytes, error) {\n\tevent := new(LockProxyDebugBytes)\n\tif err := _LockProxy.contract.UnpackLog(event, \"DebugBytes\", log); err != nil {\n\t\treturn nil, err\n\t}\n\treturn event, nil\n}", "func (ml *messageLog) List(find defs.MessageFindFunc, filter defs.MessageFunc) int {\r\n\tml.lock.Lock()\r\n\tdefer ml.lock.Unlock()\r\n\r\n\tlength := len(ml.log.entries)\r\n\tindex, ok := find()\r\n\tif ok {\r\n\t\tfor index < length {\r\n\t\t\tif filter(index, ml.log.entries[index].ServiceKey, ml.log.entries[index].Message) {\r\n\t\t\t\tbreak\r\n\t\t\t}\r\n\t\t\tindex++\r\n\t\t}\r\n\t}\r\n\treturn length\r\n}", "func LogDebug(context string, module string, info string) {\n log.Debug().\n Str(\"Context\", context).\n Str(\"Module\", module).\n Msg(info)\n}", "func logDebug(text string, params ...interface{}) {\n\tif !*debug {\n\t\treturn\n\t}\n\tline := fmt.Sprintf(text, params...)\n\tlog.Printf(\"DEBUG: %s\", line)\n}", "func (s *SlcLogger) Debug(message interface{}, title ...string) error {\n\treturn s.sendNotification(LevelDebug, colorDebug, message, title)\n}", "func Debug(msg string, fields ...zapcore.Field) {\n\tinitLogger()\n\n\tlogger.Debug(msg, fields...)\n}", "func (s *session) log(info ...interface{}) {\n\tpreamble := fmt.Sprintf(\"IMAP (%s) \", s.id)\n\tmessage := []interface{}{preamble}\n\tmessage = append(message, info...)\n\tlog.Print(message...)\n}", "func getMessages(conn *websocket.Conn) {\n\n\terr := conn.SetReadDeadline(time.Now().Add(time.Second *\n\t\ttime.Duration(common.Cfg.ConsumerTimeout)))\n\tif err != nil {\n\t\tlog.Println(\"Failed to set read dead line\")\n\t}\n\n\tfor {\n\t\tvar resp common.NotificationToConsumer\n\t\t_, message, err := conn.ReadMessage()\n\t\tif err != nil {\n\t\t\tfmt.Println(\"Stopped reading messages\")\n\t\t\treturn\n\t\t}\n\t\toutput := bytes.NewReader(message)\n\t\terr = json.NewDecoder(output).Decode(&resp)\n\t\tif err != nil {\n\t\t\tlog.Println(\"Cannot decode a message\")\n\t\t} else {\n\t\t\tfmt.Printf(\"Received notification:\\n Name: %v\\n Version: %v\\n\"+\n\t\t\t\t\" Payload: %v\\n URN: %v\\n\",\n\t\t\t\tresp.Name, resp.Version, string(resp.Payload), resp.URN)\n\t\t}\n\t}\n}", "func Debugw(msg string, keysAndValues ...interface{}) {\n\tlog.Debugw(msg, keysAndValues...)\n}", "func (l *MemoryLogger) Lines() []string {\n\treturn *l.lines\n}", "func (l *Logger) Debug(msg string) {\n\t// check if level is in config\n\t// if not, return\n\tif DEBUG&l.levels == 0 {\n\t\treturn\n\t}\n\te := Entry{Level: DEBUG, Message: msg}\n\n\te.enc = BorrowEncoder(l.w)\n\n\t// if we do not require a context then we\n\t// format with formatter and return.\n\tif l.contextName == \"\" {\n\t\tl.beginEntry(e.Level, msg, e)\n\t\tl.runHook(e)\n\t} else {\n\t\tl.openEntry(e.enc)\n\t}\n\n\tl.closeEntry(e)\n\tl.finalizeIfContext(e)\n\n\te.enc.Release()\n}", "func (sys *HTTPConsoleLoggerSys) Content() (logs []log.Entry) {\n\tsys.RLock()\n\tsys.logBuf.Do(func(p interface{}) {\n\t\tif p != nil {\n\t\t\tlg, ok := p.(log.Info)\n\t\t\tif ok {\n\t\t\t\tif (lg.Entry != log.Entry{}) {\n\t\t\t\t\tlogs = append(logs, lg.Entry)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t})\n\tsys.RUnlock()\n\n\treturn\n}", "func dumpmd(md MessageData) {\n\tfmt.Printf(\"Command: %s\\n\", md.Message.Command)\n\tfmt.Println(\"Headers:\")\n\tfor i := 0; i < len(md.Message.Headers); i += 2 {\n\t\tfmt.Printf(\"key:%s\\t\\tvalue:%s\\n\",\n\t\t\tmd.Message.Headers[i], md.Message.Headers[i+1])\n\t}\n\tfmt.Printf(\"Body: %s\\n\", string(md.Message.Body))\n\tif md.Error != nil {\n\t\tfmt.Printf(\"Error: %s\\n\", md.Error.Error())\n\t} else {\n\t\tfmt.Println(\"Error: nil\")\n\t}\n}", "func (env *Env) getMessagesSince(channelID string, since time.Time) ([]chat.Message, error) {\n\treturn env.MessageRepo.GetMessagesSince(channelID, since)\n}", "func printDebug(msg string) {\n\tif Debug {\n\t\tfmt.Println(fmt.Sprintf(\"DEBUG %s: %s\", getFormattedTime(), msg))\n\t}\n}", "func printDebug(msg string) {\n\tif Debug {\n\t\tfmt.Println(fmt.Sprintf(\"DEBUG %s: %s\", getFormattedTime(), msg))\n\t}\n}", "func debugLog(msg interface{}) {\n fmt.Fprintln(os.Stderr, msg)\n}", "func (self *Subscribe) debugPrint() {\n\tself.dprint(\"\", 0)\n}", "func (msg *Message) Debug() string {\n\tbytes, _ := json.Marshal(msg) // Ignoring the error because it literally can't happen.\n\treturn string(bytes)\n}", "func LogContainerDebug(ociBin string, name string) string {\n\trr, err := containerInspect(ociBin, name)\n\tif err != nil {\n\t\tklog.Warningf(\"Failed to get postmortem inspect. %s :%v\", rr.Command(), err)\n\t} else {\n\t\tklog.Infof(\"Postmortem inspect (%q): %s\", rr.Command(), rr.Output())\n\t}\n\n\trr, err = containerLogs(ociBin, name)\n\tif err != nil {\n\t\tklog.Warningf(\"Failed to get postmortem logs. %s :%v\", rr.Command(), err)\n\t} else {\n\t\tklog.Infof(\"Postmortem logs (%q): %s\", rr.Command(), rr.Output())\n\t}\n\tif ociBin == Docker {\n\t\tdi, err := dockerSystemInfo()\n\t\tif err != nil {\n\t\t\tklog.Warningf(\"Failed to get postmortem docker info: %v\", err)\n\t\t} else {\n\t\t\tklog.Infof(\"postmortem docker info: %+v\", di)\n\t\t}\n\t\tlogDockerNetworkInspect(ociBin, name)\n\t} else {\n\t\tpi, err := podmanSystemInfo()\n\t\tif err != nil {\n\t\t\tklog.Warningf(\"couldn't get postmortem podman info: %v\", err)\n\t\t} else {\n\t\t\tklog.Infof(\"postmortem podman info: %+v\", pi)\n\t\t}\n\t\tlogDockerNetworkInspect(ociBin, name)\n\t}\n\n\tif rr.Stdout.Len() == 0 {\n\t\treturn \"\"\n\t}\n\n\t// If available, return an excerpt of the post-mortem logs for inclusion in error message\n\texcerpt := strings.Split(strings.TrimSpace(rr.Stdout.String()), \"\\n\")\n\tif len(excerpt) > 4 {\n\t\texcerpt = excerpt[len(excerpt)-4:]\n\t}\n\treturn strings.Join(excerpt, \"\\n\")\n}", "func Debug(l ...interface{}) {\n\tlog.WithFields(log.Fields{\n\t\t\"SERVICE\": \"WINGO\",\n\t}).Debugln(l...)\n}", "func logDebug(r *http.Request, msg string) {\n\tif Debug {\n\t\tlogEvent(r, \"debug\", msg)\n\t}\n}", "func (ml *MemoryLogger) LogDebug(m ...interface{}) {\n\tml.RingBuffer.Add(fmt.Sprintf(\"debug: %v\", fmt.Sprint(m...)))\n}", "func GetMsg(username string) []Message {\n\tvar msgs []Message\n\tDB.Raw(\"SELECT * FROM messages WHERE user_id = ?;\", username).Scan(&msgs)\n\treturn msgs\n}", "func (this *commonResult) GetMessages() []string {\n\treturn this.messages\n}", "func debug(message string) {\n if DebugMode {\n fmt.Fprintln(os.Stderr, \"DEBUG:\", message)\n }\n}", "func ParseMessage_KLog(boot_ts time.Time, data string) (syslog5424.Message,error) {\n\tlog.SetFlags(log.Ltime | log.Lshortfile)\n\n\tpart\t:= FieldsFuncN(data, 4, get_klog_tokenizer())\n\n\tif (len(part) < 4){\n\t\tlog.Println(data)\n\t\tfor pi := range part {\n\t\t\tlog.Println(part[pi])\n\t\t}\n\t}\n\n\tswitch len(part) {\n\n\tcase 2:\n\t\tprio, err := strconv.Atoi(part[0])\n\t\tif err != nil {\n\t\t\treturn syslog5424.EmptyMessage(),errors.New(\"Wrong Priority :\"+string(part[0]))\n\t\t}\n\n\t\treturn\tsyslog5424.CreateMessage(\"-\", syslog5424.Priority(prio), part[2]),nil\n\n\tcase 3:\n\t\t// (kern) 0 * 8 + 6 (info)\n\t\treturn\tsyslog5424.CreateMessage(\"-\", syslog5424.Priority(6), part[2]).Delta(boot_ts, part[0], part[1]),nil\n\n\tcase 4:\n\t\tprio, err := strconv.Atoi(part[0])\n\t\tif err != nil {\n\t\t\treturn syslog5424.EmptyMessage(),errors.New(\"Wrong Priority :\"+string(part[0]))\n\t\t}\n\t\treturn\tsyslog5424.CreateMessage(\"-\", syslog5424.Priority(prio), part[3]).Delta(boot_ts, part[1], part[2]),nil\n\n\tdefault:\n\t\t// (kern) 0 * 8 + 6 (info)\n\t\treturn\tsyslog5424.CreateMessage(\"-\", syslog5424.Priority(6), data),nil\n\t}\n}", "func DebugLog(content ...interface{}) {\n //DebugFlag, err := Cfg.GetValue(\"comm\", \"DebugFlag\")\n //CheckErr(err)\n DebugFlag := Cfg.MustBool(\"comm\", \"DebugFlag\")\n if DebugFlag {\n log.Println(content)\n }\n\n LogFlag := Cfg.MustBool(\"comm\", \"LogFlag\")\n if LogFlag {\n logFileHandle, err := os.OpenFile(LogFile, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0777)\n CheckErr(err)\n //_, _ = logFileHandle.WriteString(content.(string))\n //bcon := []byte(content)\n //_, _ = logFileHandle.Write(content.([]byte))\n sc := \"\"\n for _, v := range content {\n sc += v.(string)\n }\n _, _ = logFileHandle.Write([]byte(sc))\n }\n}" ]
[ "0.6500252", "0.62850815", "0.607292", "0.59578854", "0.5834896", "0.5703941", "0.56747705", "0.56293106", "0.5601963", "0.5591841", "0.5564205", "0.5558988", "0.5555857", "0.54972005", "0.542562", "0.5413353", "0.5406534", "0.5389215", "0.53886354", "0.5373902", "0.5360631", "0.5343328", "0.5313228", "0.528259", "0.5275092", "0.5273401", "0.52676827", "0.5259826", "0.52564156", "0.5243512", "0.5241388", "0.52382016", "0.5228204", "0.522379", "0.522085", "0.5220735", "0.52174824", "0.5190103", "0.5178188", "0.5175973", "0.51708496", "0.5163047", "0.5151713", "0.5129198", "0.51282567", "0.5121809", "0.51210237", "0.51079595", "0.5102744", "0.5098672", "0.5092897", "0.5048477", "0.50445044", "0.5041106", "0.5038309", "0.5030576", "0.5028215", "0.5025716", "0.5023249", "0.5020395", "0.5019765", "0.5015614", "0.50132483", "0.50101465", "0.5006937", "0.50062424", "0.5006019", "0.50038874", "0.49982375", "0.49960944", "0.4993916", "0.4987572", "0.49842978", "0.4983197", "0.49760947", "0.49751306", "0.49737936", "0.4973063", "0.49632952", "0.496297", "0.49584475", "0.49561793", "0.4954557", "0.49386564", "0.49357635", "0.49334997", "0.49334997", "0.49308324", "0.4925065", "0.4923039", "0.49208865", "0.49205106", "0.49153107", "0.49116153", "0.49090368", "0.49085507", "0.490786", "0.49023867", "0.49016747" ]
0.6386585
2
query the bindings of color indices to userdefined varying out variables
func GetFragDataIndex(program uint32, name *uint8) int32 { ret := C.glowGetFragDataIndex(gpGetFragDataIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name))) return (int32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **int8, uniformIndices *uint32) {\n C.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func makeColorLookup(vals []int, length int) []int {\n\tres := make([]int, length)\n\n\tvi := 0\n\tfor i := 0; i < len(res); i++ {\n\t\tif vi+1 < len(vals) {\n\t\t\tif i <= (vals[vi]+vals[vi+1])/2 {\n\t\t\t\tres[i] = vi\n\t\t\t} else {\n\t\t\t\tvi++\n\t\t\t\tres[i] = vi\n\t\t\t}\n\t\t} else if vi < len(vals) {\n\t\t\t// only last vi is valid\n\t\t\tres[i] = vi\n\t\t}\n\t}\n\treturn res\n}", "func getColorIndex(temp float64) int {\n\tif temp < *minTemp {\n\t\treturn 0\n\t}\n\tif temp > *maxTemp {\n\t\treturn len(colors) - 1\n\t}\n\treturn int((temp - *minTemp) * float64(len(colors)-1) / (*maxTemp - *minTemp))\n}", "func colorsOf(nodes graph.Nodes, coloring map[int64]int) set.Ints {\n\tc := make(set.Ints, nodes.Len())\n\tfor nodes.Next() {\n\t\tused, ok := coloring[nodes.Node().ID()]\n\t\tif ok {\n\t\t\tc.Add(used)\n\t\t}\n\t}\n\treturn c\n}", "func findAndIndex(abc *st.Art) (index1 int, index2 int) {\n\tsourse := abc.Flag.Color.ByIndex.Range\n\tlSourse := len(sourse)\n\n\tindex1 = sourse[0]\n\tindex2 = sourse[lSourse-1]\n\t// if wrong range, fix it\n\tif index1 > index2 {\n\t\tindex1, index2 = index2, index1\n\t}\n\treturn index1, index2\n}", "func BindFragDataLocationIndexed(program uint32, colorNumber uint32, index uint32, name *int8) {\n C.glowBindFragDataLocationIndexed(gpBindFragDataLocationIndexed, (C.GLuint)(program), (C.GLuint)(colorNumber), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **uint8, uniformIndices *uint32) {\n\tC.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **uint8, uniformIndices *uint32) {\n\tC.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func (uni *Uniform3fv) GetColor(idx int) math32.Color {\n\n\tpos := idx * 3\n\treturn math32.Color{uni.v[pos], uni.v[pos+1], uni.v[pos+2]}\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **uint8, uniformIndices *uint32) {\n\tsyscall.Syscall6(gpGetUniformIndices, 4, uintptr(program), uintptr(uniformCount), uintptr(unsafe.Pointer(uniformNames)), uintptr(unsafe.Pointer(uniformIndices)), 0, 0)\n}", "func (r *paintingRobot) scanColor() int {\n for _, p := range r.paintedPoints {\n if p.x == r.position.x && p.y == r.position.y {\n return p.color\n }\n }\n\n return 0\n}", "func (pb *Pbar) ToggleColor(arg interface{}) {\n\tswitch reflect.TypeOf(arg).Kind() {\n\tcase reflect.Slice:\n\t\tcol := reflect.ValueOf(arg)\n\t\tl := col.Len()\n\n\t\tif l < 0 || l > 4 {\n\t\t\tfmt.Println(\"Error: Must provide a number of colors between 0 - 4.\\nSwitching to b/w...\")\n\t\t\tpb.isColor = false\n\t\t\treturn\n\t\t}\n\n\t\tfor i := 0; i < col.Len(); i++ {\n\t\t\tcolStr := col.Index(i).String()\n\t\t\tif _, ok := colors[colStr]; !ok {\n\t\t\t\tfmt.Printf(\"'%s' is not a valid color. Switching to b/w...\\n\\n\", colStr)\n\t\t\t\tpb.isColor = false\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\n\t\tif l == 4 {\n\t\t\tpb.LOW = colors[(col.Index(0)).String()]\n\t\t\tpb.MEDIUM = colors[(col.Index(1)).String()]\n\t\t\tpb.HIGH = colors[(col.Index(2)).String()]\n\t\t\tpb.FULL = colors[(col.Index(3)).String()]\n\t\t} else if l == 3 {\n\t\t\tpb.LOW = colors[(col.Index(0)).String()]\n\t\t\tpb.MEDIUM = colors[(col.Index(1)).String()]\n\t\t\tpb.HIGH = colors[(col.Index(2)).String()]\n\t\t\tpb.FULL = colors[(col.Index(2)).String()]\n\t\t} else if l == 2 {\n\t\t\tpb.LOW = colors[(col.Index(0)).String()]\n\t\t\tpb.MEDIUM = colors[(col.Index(0)).String()]\n\t\t\tpb.HIGH = colors[(col.Index(1)).String()]\n\t\t\tpb.FULL = colors[(col.Index(1)).String()]\n\t\t} else if l == 1 {\n\t\t\tpb.LOW = colors[(col.Index(0)).String()]\n\t\t\tpb.MEDIUM = colors[(col.Index(0)).String()]\n\t\t\tpb.HIGH = colors[(col.Index(0)).String()]\n\t\t\tpb.FULL = colors[(col.Index(0)).String()]\n\t\t} else {\n\t\t\tpb.isColor = false\n\t\t\treturn\n\t\t}\n\t\tpb.isColor = true\n\tcase reflect.String:\n\t\tcol := reflect.ValueOf(arg)\n\t\tif _, ok := colors[col.String()]; ok {\n\t\t\tpb.LOW = colors[col.String()]\n\t\t\tpb.MEDIUM = colors[col.String()]\n\t\t\tpb.HIGH = colors[col.String()]\n\t\t\tpb.FULL = colors[col.String()]\n\t\t\tpb.isColor = true\n\t\t}\n\t}\n}", "func (g *Graph) OutNeighborsInt(v int) []uint32 {\n\treturn g.mx.GetRangeInt(v)\n}", "func GuiColorPanelEx(bounds Rectangle, color Color, hue float32) Color {\n\tcbounds, _ := *(*C.Rectangle)(unsafe.Pointer(&bounds)), cgoAllocsUnknown\n\tccolor, _ := *(*C.Color)(unsafe.Pointer(&color)), cgoAllocsUnknown\n\tchue, _ := (C.float)(hue), cgoAllocsUnknown\n\t__ret := C.GuiColorPanelEx(cbounds, ccolor, chue)\n\t__v := *newColorRef(unsafe.Pointer(&__ret)).convert()\n\treturn __v\n}", "func GetQueryIndexediv(target uint32, index uint32, pname uint32, params *int32) {\n C.glowGetQueryIndexediv(gpGetQueryIndexediv, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func getColor(r Ray, world HittableList, depth int) mgl64.Vec3 {\n\thits := world.Hit(r, Epsilon, math.MaxFloat64)\n\tif len(hits) > 0 {\n\t\t// HittableList makes sure the first (and only) intersection\n\t\t// is the closest one:\n\t\thit := hits[0]\n\t\t// Simulate the light response of this material.\n\t\tisScattered, attenuation, scattered := hit.Mat.Scatter(r, hit)\n\t\t// If this ray is reflected off the surface, determine the response\n\t\t// of the scattered ray:\n\t\tif isScattered && depth < MaxBounces {\n\t\t\tresponse := getColor(scattered, world, depth+1)\n\n\t\t\treturn mgl64.Vec3{response.X() * attenuation.X(),\n\t\t\t\tresponse.Y() * attenuation.Y(),\n\t\t\t\tresponse.Z() * attenuation.Z()}\n\t\t}\n\t\t// Otherwise, the ray was absorbed, or we have exceeded the\n\t\t// maximum number of light bounces:\n\t\treturn mgl64.Vec3{0.0, 0.0, 0.0}\n\t}\n\t// If we don't intersect with anything, plot a background instead:\n\tunitDirection := r.Direction().Normalize()\n\tt := 0.5*unitDirection.Y() + 1.0\n\t// Linearly interpolate between white and blue:\n\tA := mgl64.Vec3{1.0, 1.0, 1.0}.Mul(1.0 - t)\n\tB := mgl64.Vec3{0.5, 0.7, 1.0}.Mul(t)\n\treturn A.Add(B)\n}", "func GetColorTable(target uint32, format uint32, xtype uint32, table unsafe.Pointer) {\n C.glowGetColorTable(gpGetColorTable, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), table)\n}", "func BindFragDataLocationIndexed(program uint32, colorNumber uint32, index uint32, name *uint8) {\n\tsyscall.Syscall6(gpBindFragDataLocationIndexed, 4, uintptr(program), uintptr(colorNumber), uintptr(index), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func RandColor(dst inter.Adder, n, m, k int) {\n\tg := RandGraph(n, m)\n\tvar mkVar = func(n, c int) z.Var {\n\t\treturn z.Var(n*c + c + 1)\n\t}\n\tfor i := range g {\n\t\tfor j := 0; j < k; j++ {\n\t\t\tm := mkVar(i, j).Pos()\n\t\t\tdst.Add(m)\n\t\t}\n\t\tdst.Add(0)\n\t}\n\tfor a, es := range g {\n\t\tfor _, b := range es {\n\t\t\tif b >= a {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tfor c := 0; c < k; c++ {\n\t\t\t\ta := mkVar(a, c).Neg()\n\t\t\t\tb := mkVar(b, c).Neg()\n\t\t\t\tdst.Add(a)\n\t\t\t\tdst.Add(b)\n\t\t\t}\n\t\t\tdst.Add(0)\n\t\t}\n\t}\n}", "func ColorSubTable(target uint32, start int32, count int32, format uint32, xtype uint32, data unsafe.Pointer) {\n C.glowColorSubTable(gpColorSubTable, (C.GLenum)(target), (C.GLsizei)(start), (C.GLsizei)(count), (C.GLenum)(format), (C.GLenum)(xtype), data)\n}", "func GenColor(intr int) [][]uint8 {\n\toutput := [][]uint8{}\n\tfor i := 0; i <= 255; i += intr {\n\t\tfor j := 0; j <= 255; j += intr {\n\t\t\tfor k := 0; k <= 255; k += intr {\n\t\t\t\ta := []uint8{uint8(i), uint8(j), uint8(k)}\n\t\t\t\toutput = append(output, a)\n\n\t\t\t}\n\t\t}\n\t}\n\treturn output\n\n}", "func Uniform2uiv(location int32, count int32, value *uint32) {\n C.glowUniform2uiv(gpUniform2uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func (h *Heuristics) ShowColors() {\n\t\n\tfmt.Println(\"colors :: \")\n\tfor k, v := range h.colors {\n\t\tif v == 0 {\n\t\t\tfmt.Println(\"Need[\", k+1, \"] = \", h.need[k], \" Utility[\", k+1, \"] = \", h.utility[k])\n\t\t} else {\n\t\t\tfmt.Print(\"Colors[\", k+1, \"] = \", h.colors[k], \"\\t\")\n\t\t\tneighbors := h.g.AdjList[k]\n\t\t\tfor _, value := range neighbors {\n\t\t\t\tfmt.Print(value, \"\\t\")\n\t\t\t}\n\t\t\tfmt.Print(\"\\n\")\n\t\t}\n\t}\n\tfmt.Print(\"\\n\")\n}", "func (gw2 *GW2Api) ColorIds(lang string, ids ...int) (colors []Color, err error) {\n\tver := \"v2\"\n\ttag := \"colors\"\n\tparams := url.Values{}\n\tif lang != \"\" {\n\t\tparams.Add(\"lang\", lang)\n\t}\n\tparams.Add(\"ids\", commaList(stringSlice(ids)))\n\terr = gw2.fetchEndpoint(ver, tag, params, &colors)\n\treturn\n}", "func BindFragDataLocationIndexed(program uint32, colorNumber uint32, index uint32, name *uint8) {\n\tC.glowBindFragDataLocationIndexed(gpBindFragDataLocationIndexed, (C.GLuint)(program), (C.GLuint)(colorNumber), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func BindFragDataLocationIndexed(program uint32, colorNumber uint32, index uint32, name *uint8) {\n\tC.glowBindFragDataLocationIndexed(gpBindFragDataLocationIndexed, (C.GLuint)(program), (C.GLuint)(colorNumber), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (gw2 *GW2Api) Colors() (res []int, err error) {\n\tver := \"v2\"\n\ttag := \"colors\"\n\terr = gw2.fetchEndpoint(ver, tag, nil, &res)\n\treturn\n}", "func colors(w http.ResponseWriter, req *http.Request) {\n\t// if method is get\n\tif req.Method == http.MethodGet {\n\t\t// grabs the color hex from the request\n\t\tc := req.FormValue(\"color\")\n\t\t// if one color is not specified get them all\n\t\tif c == \"\" {\n\t\t\tgetColors(w)\n\t\t\treturn\n\t\t}\n\t\t// gets the specific color asked for\n\t\tgetColor(w, c)\n\t\treturn\n\t}\n\t// if the request is a post method, add the color to the db.\n\tif req.Method == http.MethodPost {\n\t\taddColor(w, req)\n\t\treturn\n\t}\n\t// if the Method is a patch methd update the color\n\tif req.Method == http.MethodPatch {\n\t\teditColor(w, req)\n\t\treturn\n\t}\n}", "func COLORSn(n uint) Component {\n\t//aiComponent_COLORSn(n) (1u << (n+20u))\n\treturn Component(1 << (n + 20))\n}", "func Uniform2i(location int32, v0 int32, v1 int32) {\n C.glowUniform2i(gpUniform2i, (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1))\n}", "func colorStr(value uint16) (key string) {\n\tfor k, v := range colorLookUp {\n\t\tif v == value {\n\t\t\tkey = k\n\t\t\treturn\n\t\t}\n\t}\n\treturn\n}", "func (self *Script) getOutputIdxByName(name string) int {\n for i, def := range self.OutputDefs {\n if def.Name == name {\n return i\n }\n }\n return -1\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GuiColorPanel(bounds Rectangle, color Color) Color {\n\tcbounds, _ := *(*C.Rectangle)(unsafe.Pointer(&bounds)), cgoAllocsUnknown\n\tccolor, _ := *(*C.Color)(unsafe.Pointer(&color)), cgoAllocsUnknown\n\t__ret := C.GuiColorPanel(cbounds, ccolor)\n\t__v := *newColorRef(unsafe.Pointer(&__ret)).convert()\n\treturn __v\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveUniformsiv, 5, uintptr(program), uintptr(uniformCount), uintptr(unsafe.Pointer(uniformIndices)), uintptr(pname), uintptr(unsafe.Pointer(params)), 0)\n}", "func getColors(w http.ResponseWriter) {\n\t// creates a new slice of colors\n\tvar colors []Color\n\n\t// runs a query to pull data from the database\n\trows, err := db.Query(`SELECT color, r, g, b, a, hex, creatorId, creatorHash FROM colors ORDER BY g ASC, b ASC, hex;`)\n\t// checks the error\n\thtmlCheck(err, w, fmt.Sprint(\"There was an error \", err))\n\t// create variables to hold color properties\n\tvar name, r, g, b, a, hex, cID, cH string\n\t// for each color\n\tfor rows.Next() {\n\t\t// fill in the variables in given order\n\t\terr = rows.Scan(&name, &r, &g, &b, &a, &hex, &cID, &cH)\n\t\t// checks the error\n\t\thtmlCheck(err, w, fmt.Sprint(\"There was an error \", err))\n\t\t// creates a color with the rows details\n\t\tc := Color{\n\t\t\tname,\n\t\t\tr,\n\t\t\tg,\n\t\t\tb,\n\t\t\ta,\n\t\t\thex,\n\t\t\t0.,\n\t\t\tcID,\n\t\t\tcH,\n\t\t}\n\t\t// calculate the hue and add it to the color\n\t\tc.Hue = calcHue(c)\n\t\t// if the hue is not returned set it to zero\n\t\tif math.IsNaN(c.Hue) {\n\t\t\tc.Hue = 0.\n\t\t}\n\t\t// add the new color to the colors slice\n\t\tcolors = append(colors, c)\n\n\t}\n\t// encodes the colors array to json\n\terr = json.NewEncoder(w).Encode(getColorSorted(colors))\n\t// checks the error\n\thtmlCheck(err, w, fmt.Sprint(\"There was an error \", err))\n}", "func (nv *NetView) UnitValColor(lay emer.Layer, idx1d int, raw float32, hasval bool) (scaled float32, clr gist.Color) {\n\tif nv.CurVarParams == nil || nv.CurVarParams.Var != nv.Var {\n\t\tok := false\n\t\tnv.CurVarParams, ok = nv.VarParams[nv.Var]\n\t\tif !ok {\n\t\t\treturn\n\t\t}\n\t}\n\tif !hasval {\n\t\tscaled = 0\n\t\tif lay.Name() == nv.Data.PrjnLay && idx1d == nv.Data.PrjnUnIdx {\n\t\t\tclr.SetUInt8(0x20, 0x80, 0x20, 0x80)\n\t\t} else {\n\t\t\tclr = NilColor\n\t\t}\n\t} else {\n\t\tclp := nv.CurVarParams.Range.ClipVal(raw)\n\t\tnorm := nv.CurVarParams.Range.NormVal(clp)\n\t\tvar op float32\n\t\tif nv.CurVarParams.ZeroCtr {\n\t\t\tscaled = float32(2*norm - 1)\n\t\t\top = (nv.Params.ZeroAlpha + (1-nv.Params.ZeroAlpha)*mat32.Abs(scaled))\n\t\t} else {\n\t\t\tscaled = float32(norm)\n\t\t\top = (nv.Params.ZeroAlpha + (1-nv.Params.ZeroAlpha)*0.8) // no meaningful alpha -- just set at 80\\%\n\t\t}\n\t\tclr = nv.ColorMap.Map(float64(norm))\n\t\tr, g, b, a := clr.ToNPFloat32()\n\t\tclr.SetNPFloat32(r, g, b, a*op)\n\t}\n\treturn\n}", "func Uniform2ui(location int32, v0 uint32, v1 uint32) {\n C.glowUniform2ui(gpUniform2ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func ShowColors() {\n\tfmt.Printf(\"%#v\\n\", colors)\n}", "func (uni *Uniform1fv) GetColor(pos int) math32.Color {\n\n\treturn math32.Color{uni.v[pos], uni.v[pos+1], uni.v[pos+2]}\n}", "func (s *Service) setColorPairs() {\n\tswitch s.primaryColor {\n\tcase \"green\":\n\t\tgc.InitPair(1, gc.C_GREEN, gc.C_BLACK)\n\tcase \"cyan\", \"blue\":\n\t\tgc.InitPair(1, gc.C_CYAN, gc.C_BLACK)\n\tcase \"magenta\", \"pink\", \"purple\":\n\t\tgc.InitPair(1, gc.C_MAGENTA, gc.C_BLACK)\n\tcase \"white\":\n\t\tgc.InitPair(1, gc.C_WHITE, gc.C_BLACK)\n\tcase \"red\":\n\t\tgc.InitPair(1, gc.C_RED, gc.C_BLACK)\n\tcase \"yellow\", \"orange\":\n\t\tgc.InitPair(1, gc.C_YELLOW, gc.C_BLACK)\n\tdefault:\n\t\tgc.InitPair(1, gc.C_WHITE, gc.C_BLACK)\n\t}\n\n\tgc.InitPair(2, gc.C_BLACK, gc.C_BLACK)\n\tgc.InitPair(3, gc.C_BLACK, gc.C_GREEN)\n\tgc.InitPair(4, gc.C_BLACK, gc.C_CYAN)\n\tgc.InitPair(5, gc.C_WHITE, gc.C_BLUE)\n\tgc.InitPair(6, gc.C_BLACK, -1)\n}", "func Uniform2uiv(location int32, count int32, value *uint32) {\n\tC.glowUniform2uiv(gpUniform2uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func Uniform2uiv(location int32, count int32, value *uint32) {\n\tC.glowUniform2uiv(gpUniform2uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func color(r geometry.Ray, world geometry.Hitable, depth int) geometry.Vector {\n\thit, record := world.CheckForHit(r, 0.001, math.MaxFloat64)\n\n\t// if hit {\n\t// \ttarget := record.Point.Add(record.Normal).Add(RandomInUnitSphere())\n\t// \treturn color(&geometry.Ray{Origin: record.Point, Direction: target.Subtract(record.P)}, world).Scale(0.5)\n\t// }\n\n\tif hit {\n\t\tif depth < 50 {\n\t\t\tscattered, scatteredRay := record.Scatter(r, record)\n\t\t\tif scattered {\n\t\t\t\tnewColor := color(scatteredRay, world, depth+1)\n\t\t\t\treturn record.Material.Albedo().Multiply(newColor)\n\t\t\t}\n\t\t}\n\t}\n\n\t// Make unit vector so y is between -1.0 and 1.0\n\tunitDirection := r.Direction.Normalize()\n\n\tvar t float64 = 0.5 * (unitDirection.Y + 1.0)\n\n\t// The two vectors here are what creates the sky(Blue to white gradient of the background)\n\treturn geometry.Vector{X: 1.0, Y: 1.0, Z: 1.0}.Scale(1.0 - t).Add(geometry.Vector{X: 0.5, Y: 0.7, Z: 1.0}.Scale(t))\n}", "func getColor[K, V any](n *Node[K, V]) Color {\n\tif n == nil {\n\t\treturn BLACK\n\t}\n\treturn n.color\n}", "func getColor(w http.ResponseWriter, c string) {\n\t// querys the DB to select color props based on the given hex\n\tq := fmt.Sprint(`SELECT color, r, g, b, a, hex, creatorId, creatorHash FROM colors WHERE hex =\"`, c, `\";`)\n\t// queries the DB\n\trows, err := db.Query(q)\n\t// checks the error\n\thtmlCheck(err, w, fmt.Sprint(\"There was an error \", err))\n\t// creates variables to hold color information\n\tvar name, r, g, b, a, hex, cID, cH string\n\t// creates a color variable\n\tvar co Color\n\t// for each row\n\tfor rows.Next() {\n\t\t// fill in the variables in given order\n\t\terr = rows.Scan(&name, &r, &g, &b, &a, &hex, &cID, &cH)\n\t\t// checks the error\n\t\thtmlCheck(err, w, fmt.Sprint(\"There was an error \", err))\n\t\t// sets co to be the color with the given variables\n\t\tco = Color{\n\t\t\tname,\n\t\t\tr,\n\t\t\tg,\n\t\t\tb,\n\t\t\ta,\n\t\t\thex,\n\t\t\t0.,\n\t\t\tcID,\n\t\t\tcH,\n\t\t}\n\t}\n\t// if no color, color needs to be created\n\tif co.Color == \"\" {\n\t\t// writes the status to the response\n\t\tw.WriteHeader(http.StatusPartialContent)\n\t\tfmt.Fprintf(w, \"Color has to be created\")\n\t\treturn\n\t}\n\t// encodes the color as json\n\terr = json.NewEncoder(w).Encode(co)\n\t// checks the error\n\thtmlCheck(err, w, fmt.Sprint(\"There was an error \", err))\n\n}", "func output3d(values []int) {\n\tfor _, v := range values {\n\t\tfmt.Printf(\"%03d \",v)\n\t}\n\tfmt.Println()\n}", "func (n *windowNode) replaceIndexedVars(s *renderNode) {\n\tivarHelper := parser.MakeIndexedVarHelper(n, s.ivarHelper.NumVars())\n\tn.ivarIdxMap = make(map[int]int)\n\tn.ivarSourceInfo = s.sourceInfo\n\n\tvarIdx := 0\n\tfor i, render := range n.windowRender {\n\t\tif render == nil {\n\t\t\tcontinue\n\t\t}\n\t\treplaceIdxVars := func(expr parser.VariableExpr) (ok bool, newExpr parser.Expr) {\n\t\t\tiv, ok := expr.(*parser.IndexedVar)\n\t\t\tif !ok {\n\t\t\t\treturn true, expr\n\t\t\t}\n\t\t\tif _, ok := n.ivarIdxMap[iv.Idx]; !ok {\n\t\t\t\t// We add a new render to the wrapped renderNode for each new IndexedVar we\n\t\t\t\t// see. We also register this mapping in the ivarIdxMap.\n\t\t\t\ts.addRenderColumn(iv, ResultColumn{Name: iv.String(), Typ: iv.ResolvedType()})\n\n\t\t\t\tn.ivarIdxMap[iv.Idx] = varIdx\n\t\t\t\tvarIdx++\n\t\t\t}\n\t\t\treturn true, ivarHelper.IndexedVar(iv.Idx)\n\t\t}\n\t\tn.windowRender[i] = exprConvertVars(render, replaceIdxVars)\n\t}\n}", "func permuteColors(nr, ng, nb uint8) []color.Model {\n\tvar colorModels []color.Model\n\tfor _, r := range iterate(nr) {\n\t\tfor _, g := range iterate(ng) {\n\t\t\tfor _, b := range iterate(nb) {\n\t\t\t\tcolorModels = append(colorModels, clrlib.Scaled{R: r, G: g, B: b})\n\t\t\t}\n\t\t}\n\t}\n\treturn colorModels\n}", "func (nv *NetView) VarsUpdate() {\n\tvl := nv.VarsLay()\n\tupdt := vl.UpdateStart()\n\tfor _, vbi := range *vl.Children() {\n\t\tvb := vbi.(*gi.Action)\n\t\tif vb.Text == nv.Var {\n\t\t\tvb.SetSelected()\n\t\t} else {\n\t\t\tvb.ClearSelected()\n\t\t}\n\t}\n\ttbar := nv.Toolbar()\n\tcmap := tbar.ChildByName(\"cmap\", 5).(*giv.ColorMapView)\n\tcmap.Map = nv.ColorMap\n\tcmap.UpdateSig()\n\tvl.UpdateEnd(updt)\n}", "func UniqueOutIdx(value tf.DataType) UniqueAttr {\n\treturn func(m optionalAttr) {\n\t\tm[\"out_idx\"] = value\n\t}\n}", "func ColorSubTable(target uint32, start int32, count int32, format uint32, xtype uint32, data unsafe.Pointer) {\n\tC.glowColorSubTable(gpColorSubTable, (C.GLenum)(target), (C.GLsizei)(start), (C.GLsizei)(count), (C.GLenum)(format), (C.GLenum)(xtype), data)\n}", "func Viridis(v, vmin, vmax float64) drawing.Color {\n\tnormalized := (v - vmin) / (vmax - vmin)\n\tindex := uint8(normalized * 255)\n\treturn viridisColors[index]\n}", "func GetColorTable(target uint32, format uint32, xtype uint32, table unsafe.Pointer) {\n\tC.glowGetColorTable(gpGetColorTable, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), table)\n}", "func Color(foreColor, backColor, mode gb.UINT8) {}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ListDiffOutIdx(value tf.DataType) ListDiffAttr {\n\treturn func(m optionalAttr) {\n\t\tm[\"out_idx\"] = value\n\t}\n}", "func ScissorIndexed(index uint32, left int32, bottom int32, width int32, height int32) {\n C.glowScissorIndexed(gpScissorIndexed, (C.GLuint)(index), (C.GLint)(left), (C.GLint)(bottom), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func findOrIndex(abc *st.Art, index int) bool {\n\tfor _, indexF := range abc.Flag.Color.ByIndex.Range {\n\t\tif index == indexF {\n\t\t\treturn true\n\t\t}\n\t}\n\treturn false\n}", "func GetQueryIndexediv(target uint32, index uint32, pname uint32, params *int32) {\n\tC.glowGetQueryIndexediv(gpGetQueryIndexediv, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetQueryIndexediv(target uint32, index uint32, pname uint32, params *int32) {\n\tC.glowGetQueryIndexediv(gpGetQueryIndexediv, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (e *Square10) Reference(modifiers map[int]api.Color, refPlayer int) map[int]api.Color {\n\treferenceBoard := make(map[int]api.Color, len(modifiers))\n\tfor tile, color := range modifiers {\n\t\ttargetID := refPlayer*99 - tile*(refPlayer*2-1)\n\t\treferenceBoard[targetID] = color\n\t}\n\treturn referenceBoard\n}", "func Uniform2ui(location int32, v0 uint32, v1 uint32) {\n\tC.glowUniform2ui(gpUniform2ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func Uniform2ui(location int32, v0 uint32, v1 uint32) {\n\tC.glowUniform2ui(gpUniform2ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func (c Color) Values() []float64 {\n\treturn c\n}", "func colorClique(clique []graph.Node) map[int64]int {\n\tcolors := make(map[int64]int, len(clique))\n\tfor c, u := range clique {\n\t\tcolors[u.ID()] = c\n\t}\n\treturn colors\n}", "func GetColors() map[int]string {\n\treturn colors\n}", "func colorIsland(grid [][]byte, color byte, nX, nY, x, y int) {\r\n\tif x < 0 || x >= nX || y < 0 || y >= nY || grid[y][x] != '1' {\r\n\t\treturn // no island found\r\n\t}\r\n\tgrid[y][x] = '0' // + byte(color) // // useful for debugging\r\n\t// check adjacent grid squares\r\n\tcolorIsland(grid, color, nX, nY, x - 1, y)\r\n\tcolorIsland(grid, color, nX, nY, x + 1, y)\r\n\tcolorIsland(grid, color, nX, nY, x, y - 1)\r\n\tcolorIsland(grid, color, nX, nY, x, y + 1)\r\n}", "func Uniform2i(location int32, v0 int32, v1 int32) {\n\tC.glowUniform2i(gpUniform2i, (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1))\n}", "func Uniform2i(location int32, v0 int32, v1 int32) {\n\tC.glowUniform2i(gpUniform2i, (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1))\n}", "func greedyColoringOf(g graph.Undirected, order graph.Nodes, partial map[int64]int) (k int, colors map[int64]int) {\n\tcolors = partial\n\tconstrained := false\n\tfor _, c := range colors {\n\t\tif c > k {\n\t\t\tk = c\n\t\t\tconstrained = true\n\t\t}\n\t}\n\n\t// Next nodes are chosen by the specified heuristic in order.\n\tfor order.Next() {\n\t\tuid := order.Node().ID()\n\t\tused := colorsOf(g.From(uid), colors)\n\t\tif c, ok := colors[uid]; ok {\n\t\t\tif used.Has(c) {\n\t\t\t\treturn -1, nil\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\t\t// Color the chosen vertex with the least possible\n\t\t// (lowest numbered) color.\n\t\tfor c := 0; c <= k+1; c++ {\n\t\t\tif !used.Has(c) {\n\t\t\t\tcolors[uid] = c\n\t\t\t\tif c > k {\n\t\t\t\t\tk = c\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n\n\tif !constrained {\n\t\treturn k + 1, colors\n\t}\n\tseen := make(set.Ints)\n\tfor _, c := range colors {\n\t\tseen.Add(c)\n\t}\n\treturn seen.Count(), colors\n}", "func (o *MultiMesh) X_GetColorArray() gdnative.PoolColorArray {\n\t//log.Println(\"Calling MultiMesh.X_GetColorArray()\")\n\n\t// Build out the method's arguments\n\tptrArguments := make([]gdnative.Pointer, 0, 0)\n\n\t// Get the method bind\n\tmethodBind := gdnative.NewMethodBind(\"MultiMesh\", \"_get_color_array\")\n\n\t// Call the parent method.\n\t// PoolColorArray\n\tretPtr := gdnative.NewEmptyPoolColorArray()\n\tgdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)\n\n\t// If we have a return type, convert it from a pointer into its actual object.\n\tret := gdnative.NewPoolColorArrayFromPointer(retPtr)\n\treturn ret\n}", "func (g *GMRES) vcol(j int) []float64 {\n\tldv := len(g.av)\n\treturn g.vt[j*ldv : (j+1)*ldv]\n}", "func PopStyleColorV(count int) {\n\timgui.PopStyleColorV(count)\n}", "func Get(img image.Image, n int) []color.Color {\n\tbuckets := gatherColorBuckets(img, defaultThreshold)\n\tsort.Sort(buckets)\n\n\tif len(buckets) > n {\n\t\tbuckets = buckets[:n]\n\t}\n\n\tcolors := make([]color.Color, len(buckets))\n\tfor idx, b := range buckets {\n\t\tcolors[idx] = b.mean()\n\t}\n\n\treturn colors\n}", "func ColorTable(target uint32, internalformat uint32, width int32, format uint32, xtype uint32, table unsafe.Pointer) {\n C.glowColorTable(gpColorTable, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), table)\n}", "func (pal *CGBPalette) get(palette byte, num byte) (uint8, uint8, uint8) {\n\tidx := (palette * 8) + (num * 2)\n\tcolour := uint16(pal.palette[idx]) | uint16(pal.palette[idx + 1]) << 8\n\tr := uint8(colour & 0x1F)\n\tg := uint8((colour >> 5) & 0x1F)\n\tb := uint8((colour >> 10) & 0x1F)\n\treturn colMap[r], colMap[g], colMap[b]\n}", "func (sd *saturationDegree) reset(colors map[int64]int) {\n\tsd.colors = colors\n\tfor i := range sd.nodes {\n\t\tsd.adjColors[i] = make(set.Ints)\n\t}\n\tfor uid, c := range colors {\n\t\tto := sd.g.From(uid)\n\t\tfor to.Next() {\n\t\t\tsd.adjColors[sd.indexOf[to.Node().ID()]].Add(c)\n\t\t}\n\t}\n}", "func getComponentVariables(variable *model.Variable) []string {\n\tcomponentVars := []string{}\n\tif variable.IsGrouping() {\n\t\tif model.IsGeoCoordinate(variable.Grouping.GetType()) {\n\t\t\tgcg := variable.Grouping.(*model.GeoCoordinateGrouping)\n\t\t\t// Include X and Y col\n\t\t\tcomponentVars = append(componentVars, gcg.XCol, gcg.YCol)\n\n\t\t\t// include the grouping sub-ids if the ID is created from mutliple columns\n\t\t\tcomponentVars = append(componentVars, variable.Grouping.GetSubIDs()...)\n\t\t\tif variable.Grouping.GetIDCol() != \"\" {\n\t\t\t\t// include the grouping ID if present and there were no sub IDs\n\t\t\t\tcomponentVars = append(componentVars, variable.Grouping.GetIDCol())\n\t\t\t}\n\t\t} else if model.IsMultiBandImage(variable.Grouping.GetType()) {\n\t\t\trsg := variable.Grouping.(*model.MultiBandImageGrouping)\n\t\t\tcomponentVars = append(componentVars, rsg.BandCol, rsg.IDCol, rsg.ImageCol)\n\t\t} else if model.IsTimeSeries(variable.Grouping.GetType()) {\n\t\t\ttsg := variable.Grouping.(*model.TimeseriesGrouping)\n\t\t\tcomponentVars = append(componentVars, tsg.XCol, tsg.YCol)\n\t\t} else if model.IsGeoBounds(variable.Grouping.GetType()) {\n\t\t\tcomponentVars = append(componentVars, variable.Grouping.GetHidden()...)\n\t\t}\n\t} else {\n\t\tcomponentVars = append(componentVars, variable.Key)\n\t}\n\n\treturn componentVars\n}", "func Uniform2iv(location int32, count int32, value *int32) {\n C.glowUniform2iv(gpUniform2iv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value)))\n}", "func Uniform3uiv(location int32, count int32, value *uint32) {\n C.glowUniform3uiv(gpUniform3uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func IndexMask(mask uint32) {\n C.glowIndexMask(gpIndexMask, (C.GLuint)(mask))\n}", "func UniqueV2OutIdx(value tf.DataType) UniqueV2Attr {\n\treturn func(m optionalAttr) {\n\t\tm[\"out_idx\"] = value\n\t}\n}", "func (mg *Graph) GetOutChannel(reqChan chan gdbi.ElementLookup, load bool, edgeLabels []string) chan gdbi.ElementLookup {\n\tbatches := make(chan []gdbi.ElementLookup, 100)\n\tgo func() {\n\t\tdefer close(batches)\n\t\to := make([]gdbi.ElementLookup, 0, mg.batchSize)\n\t\tfor req := range reqChan {\n\t\t\to = append(o, req)\n\t\t\tif len(o) >= mg.batchSize {\n\t\t\t\tbatches <- o\n\t\t\t\to = make([]gdbi.ElementLookup, 0, mg.batchSize)\n\t\t\t}\n\t\t}\n\t\tbatches <- o\n\t}()\n\n\to := make(chan gdbi.ElementLookup, 100)\n\tgo func() {\n\t\tdefer close(o)\n\t\tsession := mg.ar.session.Copy()\n\t\tdefer session.Close()\n\t\tfor batch := range batches {\n\t\t\tidBatch := make([]string, len(batch))\n\t\t\tbatchMap := make(map[string][]gdbi.ElementLookup, len(batch))\n\t\t\tfor i := range batch {\n\t\t\t\tidBatch[i] = batch[i].ID\n\t\t\t\tbatchMap[batch[i].ID] = append(batchMap[batch[i].ID], batch[i])\n\t\t\t}\n\t\t\tquery := []bson.M{{\"$match\": bson.M{\"from\": bson.M{\"$in\": idBatch}}}}\n\t\t\tif len(edgeLabels) > 0 {\n\t\t\t\tquery = append(query, bson.M{\"$match\": bson.M{\"label\": bson.M{\"$in\": edgeLabels}}})\n\t\t\t}\n\t\t\tvertCol := fmt.Sprintf(\"%s_vertices\", mg.graph)\n\t\t\tquery = append(query, bson.M{\"$lookup\": bson.M{\"from\": vertCol, \"localField\": \"to\", \"foreignField\": \"_id\", \"as\": \"dst\"}})\n\t\t\tquery = append(query, bson.M{\"$unwind\": \"$dst\"})\n\t\t\tif load {\n\t\t\t\tquery = append(query, bson.M{\"$project\": bson.M{\"from\": true, \"dst._id\": true, \"dst.label\": true, \"dst.data\": true}})\n\t\t\t} else {\n\t\t\t\tquery = append(query, bson.M{\"$project\": bson.M{\"from\": true, \"dst._id\": true, \"dst.label\": true}})\n\t\t\t}\n\n\t\t\teCol := mg.ar.EdgeCollection(session, mg.graph)\n\t\t\titer := eCol.Pipe(query).Iter()\n\t\t\tdefer iter.Close()\n\t\t\tresult := map[string]interface{}{}\n\t\t\tfor iter.Next(&result) {\n\t\t\t\tif dst, ok := result[\"dst\"].(map[string]interface{}); ok {\n\t\t\t\t\tv := UnpackVertex(dst)\n\t\t\t\t\tr := batchMap[result[\"from\"].(string)]\n\t\t\t\t\tfor _, ri := range r {\n\t\t\t\t\t\tri.Vertex = v\n\t\t\t\t\t\to <- ri\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tlog.WithFields(log.Fields{\"result\": result[\"dst\"]}).Error(\"GetOutChannel: unable to cast result to map[string]interface{}\")\n\t\t\t\t}\n\t\t\t}\n\t\t\tif err := iter.Close(); err != nil {\n\t\t\t\tlog.WithFields(log.Fields{\"error\": err}).Error(\"GetOutChannel: iter error\")\n\t\t\t}\n\t\t}\n\t}()\n\treturn o\n}", "func getvariables(fn *Node) []*Node {\n\tresult := make([]*Node, 0, 0)\n\tfor ll := fn.Func.Dcl; ll != nil; ll = ll.Next {\n\t\tif ll.N.Op == ONAME {\n\t\t\t// In order for GODEBUG=gcdead=1 to work, each bitmap needs\n\t\t\t// to contain information about all variables covered by the bitmap.\n\t\t\t// For local variables, the bitmap only covers the stkptrsize\n\t\t\t// bytes in the frame where variables containing pointers live.\n\t\t\t// For arguments and results, the bitmap covers all variables,\n\t\t\t// so we must include all the variables, even the ones without\n\t\t\t// pointers.\n\t\t\t//\n\t\t\t// The Node.opt field is available for use by optimization passes.\n\t\t\t// We use it to hold the index of the node in the variables array, plus 1\n\t\t\t// (so that 0 means the Node is not in the variables array).\n\t\t\t// Each pass should clear opt when done, but you never know,\n\t\t\t// so clear them all ourselves too.\n\t\t\t// The Node.curfn field is supposed to be set to the current function\n\t\t\t// already, but for some compiler-introduced names it seems not to be,\n\t\t\t// so fix that here.\n\t\t\t// Later, when we want to find the index of a node in the variables list,\n\t\t\t// we will check that n->curfn == curfn and n->opt > 0. Then n->opt - 1\n\t\t\t// is the index in the variables list.\n\t\t\tll.N.Opt = nil\n\n\t\t\t// The compiler doesn't emit initializations for zero-width parameters or results.\n\t\t\tif ll.N.Type.Width == 0 {\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\tll.N.Curfn = Curfn\n\t\t\tswitch ll.N.Class {\n\t\t\tcase PAUTO:\n\t\t\t\tif haspointers(ll.N.Type) {\n\t\t\t\t\tll.N.Opt = int32(len(result))\n\t\t\t\t\tresult = append(result, ll.N)\n\t\t\t\t}\n\n\t\t\tcase PPARAM, PPARAMOUT:\n\t\t\t\tll.N.Opt = int32(len(result))\n\t\t\t\tresult = append(result, ll.N)\n\t\t\t}\n\t\t}\n\t}\n\n\treturn result\n}", "func Num2DiaCol(pinyinWithNumbers string, colors []string, separator string) string {\n pinyinWithNumbers = strings.Replace(pinyinWithNumbers, \"v\", \"ü\", -1)\n pinyinWithNumbers = strings.Replace(pinyinWithNumbers, \"V\", \"Ü\", -1)\n\n splitString := splitNumbersString(pinyinWithNumbers)\n\n s := \"\"\n\n for i, w := range splitString {\n t := addDiacritic(w)\n if colors != nil {\n if w.tone != -1 {\n t = addHTMLColors(t, colors[w.tone])\n }\n }\n s += t\n if i < len(splitString)-1 {\n s += separator\n }\n }\n return s\n}", "func (a *APIGen) Indices(ctx context.Context, filter string) ([]Index, error) {\n\tpanic(\"Should Not Be Called from Gen Pattern.\")\n}", "func isGraphColouredProperly(graph [][]bool, V int, colour []int, v int, c int) bool {\n\tfor i := 0; i < V; i++ {\n\t\tif graph[v][i] && c == colour[i] {\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}", "func (c Color) At(idx int) float64 {\n\treturn c[idx]\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n C.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func extractSwatches(src *image.RGBA, numColors int) []colorful.Color {\n\tconst (\n\t\tW = 400\n\t\tH = 75\n\t)\n\tvar swatches []colorful.Color\n\tb := src.Bounds()\n\tsw := W / numColors\n\tfor i := 0; i < numColors; i++ {\n\t\tm := src.SubImage(trimRect(image.Rect(b.Min.X+i*sw, b.Max.Y-H, b.Min.X+(i+1)*sw, b.Max.Y), 10))\n\t\tswatches = append(swatches, toColorful(averageColor(m)))\n\t\tsavePNG(strconv.Itoa(i), m) // for debugging\n\t}\n\tconst dim = 50\n\tm := image.NewRGBA(image.Rect(0, 0, dim*len(swatches), dim))\n\tfor i, c := range swatches {\n\t\tr := image.Rect(i*dim, 0, (i+1)*dim, dim)\n\t\tdraw.Draw(m, r, &image.Uniform{fromColorful(c)}, image.ZP, draw.Src)\n\t}\n\tsavePNG(\"swatches\", m) // for debugging\n\treturn swatches\n}", "func (r *Ri) ColorSamples(n RtInt, nRGB RtFloatArray, RGBn RtFloatArray) error {\n\treturn r.writef(\"ColorSamples\", n, nRGB, RGBn)\n}", "func ProgramUniform2i(program uint32, location int32, v0 int32, v1 int32) {\n C.glowProgramUniform2i(gpProgramUniform2i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1))\n}", "func Uniform3i(location int32, v0 int32, v1 int32, v2 int32) {\n C.glowUniform3i(gpUniform3i, (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2))\n}", "func (b box) color() color.NRGBA {\n\treturn b.col\n}", "func DepthRangeIndexed(index uint32, n float64, f float64) {\n C.glowDepthRangeIndexed(gpDepthRangeIndexed, (C.GLuint)(index), (C.GLdouble)(n), (C.GLdouble)(f))\n}", "func getAmbientLighting(ambient Color, Ka []float64) Color {\n return Color{int(Ka[0] * float64(ambient.r)),\n int(Ka[1] * float64(ambient.g)),\n int(Ka[2] * float64(ambient.b))}\n}", "func (n *saturationDegreeIterator) Reset() { panic(\"coloring: invalid call to Reset\") }", "func (e IndicesType) C() C.cudnnIndicesType_t { return C.cudnnIndicesType_t(e) }" ]
[ "0.5372288", "0.53361255", "0.5061872", "0.500748", "0.49914035", "0.49897018", "0.49600843", "0.49600843", "0.49324697", "0.491289", "0.49032593", "0.49029914", "0.48560205", "0.48516244", "0.4829416", "0.48167485", "0.48096976", "0.4807236", "0.4806205", "0.4796751", "0.47895718", "0.47777048", "0.47578952", "0.47359458", "0.47072244", "0.47042307", "0.47042307", "0.46939006", "0.46935123", "0.4688984", "0.46780667", "0.4644596", "0.46377072", "0.46325433", "0.46325433", "0.4629525", "0.46093127", "0.46029618", "0.46006888", "0.45988947", "0.45943436", "0.45916778", "0.45904988", "0.4581189", "0.4581189", "0.4571019", "0.45555127", "0.45544603", "0.45513737", "0.45399153", "0.45367023", "0.4528042", "0.451905", "0.45137468", "0.4501704", "0.4485113", "0.44800866", "0.44771585", "0.44768953", "0.44727865", "0.44692677", "0.4468707", "0.4468707", "0.44463548", "0.44459084", "0.44459084", "0.4443774", "0.44302294", "0.44240996", "0.44177595", "0.44133136", "0.44133136", "0.44067225", "0.44055578", "0.44029644", "0.4400324", "0.43923074", "0.4382182", "0.43681118", "0.43657017", "0.4359971", "0.43595812", "0.43582913", "0.43530878", "0.43484622", "0.43387046", "0.43305764", "0.4317633", "0.43122488", "0.4311546", "0.4301858", "0.43000767", "0.4293482", "0.4286995", "0.42858422", "0.42852655", "0.42701954", "0.42697388", "0.4266223", "0.42635345", "0.42622107" ]
0.0
-1
query the bindings of color numbers to userdefined varying out variables
func GetFragDataLocation(program uint32, name *uint8) int32 { ret := C.glowGetFragDataLocation(gpGetFragDataLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name))) return (int32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (r *paintingRobot) scanColor() int {\n for _, p := range r.paintedPoints {\n if p.x == r.position.x && p.y == r.position.y {\n return p.color\n }\n }\n\n return 0\n}", "func GetColorTable(target uint32, format uint32, xtype uint32, table unsafe.Pointer) {\n C.glowGetColorTable(gpGetColorTable, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), table)\n}", "func makeColorLookup(vals []int, length int) []int {\n\tres := make([]int, length)\n\n\tvi := 0\n\tfor i := 0; i < len(res); i++ {\n\t\tif vi+1 < len(vals) {\n\t\t\tif i <= (vals[vi]+vals[vi+1])/2 {\n\t\t\t\tres[i] = vi\n\t\t\t} else {\n\t\t\t\tvi++\n\t\t\t\tres[i] = vi\n\t\t\t}\n\t\t} else if vi < len(vals) {\n\t\t\t// only last vi is valid\n\t\t\tres[i] = vi\n\t\t}\n\t}\n\treturn res\n}", "func getColor(w http.ResponseWriter, c string) {\n\t// querys the DB to select color props based on the given hex\n\tq := fmt.Sprint(`SELECT color, r, g, b, a, hex, creatorId, creatorHash FROM colors WHERE hex =\"`, c, `\";`)\n\t// queries the DB\n\trows, err := db.Query(q)\n\t// checks the error\n\thtmlCheck(err, w, fmt.Sprint(\"There was an error \", err))\n\t// creates variables to hold color information\n\tvar name, r, g, b, a, hex, cID, cH string\n\t// creates a color variable\n\tvar co Color\n\t// for each row\n\tfor rows.Next() {\n\t\t// fill in the variables in given order\n\t\terr = rows.Scan(&name, &r, &g, &b, &a, &hex, &cID, &cH)\n\t\t// checks the error\n\t\thtmlCheck(err, w, fmt.Sprint(\"There was an error \", err))\n\t\t// sets co to be the color with the given variables\n\t\tco = Color{\n\t\t\tname,\n\t\t\tr,\n\t\t\tg,\n\t\t\tb,\n\t\t\ta,\n\t\t\thex,\n\t\t\t0.,\n\t\t\tcID,\n\t\t\tcH,\n\t\t}\n\t}\n\t// if no color, color needs to be created\n\tif co.Color == \"\" {\n\t\t// writes the status to the response\n\t\tw.WriteHeader(http.StatusPartialContent)\n\t\tfmt.Fprintf(w, \"Color has to be created\")\n\t\treturn\n\t}\n\t// encodes the color as json\n\terr = json.NewEncoder(w).Encode(co)\n\t// checks the error\n\thtmlCheck(err, w, fmt.Sprint(\"There was an error \", err))\n\n}", "func Color(foreColor, backColor, mode gb.UINT8) {}", "func (s *Service) setColorPairs() {\n\tswitch s.primaryColor {\n\tcase \"green\":\n\t\tgc.InitPair(1, gc.C_GREEN, gc.C_BLACK)\n\tcase \"cyan\", \"blue\":\n\t\tgc.InitPair(1, gc.C_CYAN, gc.C_BLACK)\n\tcase \"magenta\", \"pink\", \"purple\":\n\t\tgc.InitPair(1, gc.C_MAGENTA, gc.C_BLACK)\n\tcase \"white\":\n\t\tgc.InitPair(1, gc.C_WHITE, gc.C_BLACK)\n\tcase \"red\":\n\t\tgc.InitPair(1, gc.C_RED, gc.C_BLACK)\n\tcase \"yellow\", \"orange\":\n\t\tgc.InitPair(1, gc.C_YELLOW, gc.C_BLACK)\n\tdefault:\n\t\tgc.InitPair(1, gc.C_WHITE, gc.C_BLACK)\n\t}\n\n\tgc.InitPair(2, gc.C_BLACK, gc.C_BLACK)\n\tgc.InitPair(3, gc.C_BLACK, gc.C_GREEN)\n\tgc.InitPair(4, gc.C_BLACK, gc.C_CYAN)\n\tgc.InitPair(5, gc.C_WHITE, gc.C_BLUE)\n\tgc.InitPair(6, gc.C_BLACK, -1)\n}", "func colors(w http.ResponseWriter, req *http.Request) {\n\t// if method is get\n\tif req.Method == http.MethodGet {\n\t\t// grabs the color hex from the request\n\t\tc := req.FormValue(\"color\")\n\t\t// if one color is not specified get them all\n\t\tif c == \"\" {\n\t\t\tgetColors(w)\n\t\t\treturn\n\t\t}\n\t\t// gets the specific color asked for\n\t\tgetColor(w, c)\n\t\treturn\n\t}\n\t// if the request is a post method, add the color to the db.\n\tif req.Method == http.MethodPost {\n\t\taddColor(w, req)\n\t\treturn\n\t}\n\t// if the Method is a patch methd update the color\n\tif req.Method == http.MethodPatch {\n\t\teditColor(w, req)\n\t\treturn\n\t}\n}", "func getColor[K, V any](n *Node[K, V]) Color {\n\tif n == nil {\n\t\treturn BLACK\n\t}\n\treturn n.color\n}", "func (nv *NetView) UnitValColor(lay emer.Layer, idx1d int, raw float32, hasval bool) (scaled float32, clr gist.Color) {\n\tif nv.CurVarParams == nil || nv.CurVarParams.Var != nv.Var {\n\t\tok := false\n\t\tnv.CurVarParams, ok = nv.VarParams[nv.Var]\n\t\tif !ok {\n\t\t\treturn\n\t\t}\n\t}\n\tif !hasval {\n\t\tscaled = 0\n\t\tif lay.Name() == nv.Data.PrjnLay && idx1d == nv.Data.PrjnUnIdx {\n\t\t\tclr.SetUInt8(0x20, 0x80, 0x20, 0x80)\n\t\t} else {\n\t\t\tclr = NilColor\n\t\t}\n\t} else {\n\t\tclp := nv.CurVarParams.Range.ClipVal(raw)\n\t\tnorm := nv.CurVarParams.Range.NormVal(clp)\n\t\tvar op float32\n\t\tif nv.CurVarParams.ZeroCtr {\n\t\t\tscaled = float32(2*norm - 1)\n\t\t\top = (nv.Params.ZeroAlpha + (1-nv.Params.ZeroAlpha)*mat32.Abs(scaled))\n\t\t} else {\n\t\t\tscaled = float32(norm)\n\t\t\top = (nv.Params.ZeroAlpha + (1-nv.Params.ZeroAlpha)*0.8) // no meaningful alpha -- just set at 80\\%\n\t\t}\n\t\tclr = nv.ColorMap.Map(float64(norm))\n\t\tr, g, b, a := clr.ToNPFloat32()\n\t\tclr.SetNPFloat32(r, g, b, a*op)\n\t}\n\treturn\n}", "func GuiColorPanelEx(bounds Rectangle, color Color, hue float32) Color {\n\tcbounds, _ := *(*C.Rectangle)(unsafe.Pointer(&bounds)), cgoAllocsUnknown\n\tccolor, _ := *(*C.Color)(unsafe.Pointer(&color)), cgoAllocsUnknown\n\tchue, _ := (C.float)(hue), cgoAllocsUnknown\n\t__ret := C.GuiColorPanelEx(cbounds, ccolor, chue)\n\t__v := *newColorRef(unsafe.Pointer(&__ret)).convert()\n\treturn __v\n}", "func colorsOf(nodes graph.Nodes, coloring map[int64]int) set.Ints {\n\tc := make(set.Ints, nodes.Len())\n\tfor nodes.Next() {\n\t\tused, ok := coloring[nodes.Node().ID()]\n\t\tif ok {\n\t\t\tc.Add(used)\n\t\t}\n\t}\n\treturn c\n}", "func (pb *Pbar) ToggleColor(arg interface{}) {\n\tswitch reflect.TypeOf(arg).Kind() {\n\tcase reflect.Slice:\n\t\tcol := reflect.ValueOf(arg)\n\t\tl := col.Len()\n\n\t\tif l < 0 || l > 4 {\n\t\t\tfmt.Println(\"Error: Must provide a number of colors between 0 - 4.\\nSwitching to b/w...\")\n\t\t\tpb.isColor = false\n\t\t\treturn\n\t\t}\n\n\t\tfor i := 0; i < col.Len(); i++ {\n\t\t\tcolStr := col.Index(i).String()\n\t\t\tif _, ok := colors[colStr]; !ok {\n\t\t\t\tfmt.Printf(\"'%s' is not a valid color. Switching to b/w...\\n\\n\", colStr)\n\t\t\t\tpb.isColor = false\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\n\t\tif l == 4 {\n\t\t\tpb.LOW = colors[(col.Index(0)).String()]\n\t\t\tpb.MEDIUM = colors[(col.Index(1)).String()]\n\t\t\tpb.HIGH = colors[(col.Index(2)).String()]\n\t\t\tpb.FULL = colors[(col.Index(3)).String()]\n\t\t} else if l == 3 {\n\t\t\tpb.LOW = colors[(col.Index(0)).String()]\n\t\t\tpb.MEDIUM = colors[(col.Index(1)).String()]\n\t\t\tpb.HIGH = colors[(col.Index(2)).String()]\n\t\t\tpb.FULL = colors[(col.Index(2)).String()]\n\t\t} else if l == 2 {\n\t\t\tpb.LOW = colors[(col.Index(0)).String()]\n\t\t\tpb.MEDIUM = colors[(col.Index(0)).String()]\n\t\t\tpb.HIGH = colors[(col.Index(1)).String()]\n\t\t\tpb.FULL = colors[(col.Index(1)).String()]\n\t\t} else if l == 1 {\n\t\t\tpb.LOW = colors[(col.Index(0)).String()]\n\t\t\tpb.MEDIUM = colors[(col.Index(0)).String()]\n\t\t\tpb.HIGH = colors[(col.Index(0)).String()]\n\t\t\tpb.FULL = colors[(col.Index(0)).String()]\n\t\t} else {\n\t\t\tpb.isColor = false\n\t\t\treturn\n\t\t}\n\t\tpb.isColor = true\n\tcase reflect.String:\n\t\tcol := reflect.ValueOf(arg)\n\t\tif _, ok := colors[col.String()]; ok {\n\t\t\tpb.LOW = colors[col.String()]\n\t\t\tpb.MEDIUM = colors[col.String()]\n\t\t\tpb.HIGH = colors[col.String()]\n\t\t\tpb.FULL = colors[col.String()]\n\t\t\tpb.isColor = true\n\t\t}\n\t}\n}", "func colorStr(value uint16) (key string) {\n\tfor k, v := range colorLookUp {\n\t\tif v == value {\n\t\t\tkey = k\n\t\t\treturn\n\t\t}\n\t}\n\treturn\n}", "func GenColor(intr int) [][]uint8 {\n\toutput := [][]uint8{}\n\tfor i := 0; i <= 255; i += intr {\n\t\tfor j := 0; j <= 255; j += intr {\n\t\t\tfor k := 0; k <= 255; k += intr {\n\t\t\t\ta := []uint8{uint8(i), uint8(j), uint8(k)}\n\t\t\t\toutput = append(output, a)\n\n\t\t\t}\n\t\t}\n\t}\n\treturn output\n\n}", "func ColorSubTable(target uint32, start int32, count int32, format uint32, xtype uint32, data unsafe.Pointer) {\n C.glowColorSubTable(gpColorSubTable, (C.GLenum)(target), (C.GLsizei)(start), (C.GLsizei)(count), (C.GLenum)(format), (C.GLenum)(xtype), data)\n}", "func (gw2 *GW2Api) Colors() (res []int, err error) {\n\tver := \"v2\"\n\ttag := \"colors\"\n\terr = gw2.fetchEndpoint(ver, tag, nil, &res)\n\treturn\n}", "func RandColor(dst inter.Adder, n, m, k int) {\n\tg := RandGraph(n, m)\n\tvar mkVar = func(n, c int) z.Var {\n\t\treturn z.Var(n*c + c + 1)\n\t}\n\tfor i := range g {\n\t\tfor j := 0; j < k; j++ {\n\t\t\tm := mkVar(i, j).Pos()\n\t\t\tdst.Add(m)\n\t\t}\n\t\tdst.Add(0)\n\t}\n\tfor a, es := range g {\n\t\tfor _, b := range es {\n\t\t\tif b >= a {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tfor c := 0; c < k; c++ {\n\t\t\t\ta := mkVar(a, c).Neg()\n\t\t\t\tb := mkVar(b, c).Neg()\n\t\t\t\tdst.Add(a)\n\t\t\t\tdst.Add(b)\n\t\t\t}\n\t\t\tdst.Add(0)\n\t\t}\n\t}\n}", "func HiRed(format string, a ...interface{}) { colorPrint(FgHiRed, format, a...) }", "func getColors(w http.ResponseWriter) {\n\t// creates a new slice of colors\n\tvar colors []Color\n\n\t// runs a query to pull data from the database\n\trows, err := db.Query(`SELECT color, r, g, b, a, hex, creatorId, creatorHash FROM colors ORDER BY g ASC, b ASC, hex;`)\n\t// checks the error\n\thtmlCheck(err, w, fmt.Sprint(\"There was an error \", err))\n\t// create variables to hold color properties\n\tvar name, r, g, b, a, hex, cID, cH string\n\t// for each color\n\tfor rows.Next() {\n\t\t// fill in the variables in given order\n\t\terr = rows.Scan(&name, &r, &g, &b, &a, &hex, &cID, &cH)\n\t\t// checks the error\n\t\thtmlCheck(err, w, fmt.Sprint(\"There was an error \", err))\n\t\t// creates a color with the rows details\n\t\tc := Color{\n\t\t\tname,\n\t\t\tr,\n\t\t\tg,\n\t\t\tb,\n\t\t\ta,\n\t\t\thex,\n\t\t\t0.,\n\t\t\tcID,\n\t\t\tcH,\n\t\t}\n\t\t// calculate the hue and add it to the color\n\t\tc.Hue = calcHue(c)\n\t\t// if the hue is not returned set it to zero\n\t\tif math.IsNaN(c.Hue) {\n\t\t\tc.Hue = 0.\n\t\t}\n\t\t// add the new color to the colors slice\n\t\tcolors = append(colors, c)\n\n\t}\n\t// encodes the colors array to json\n\terr = json.NewEncoder(w).Encode(getColorSorted(colors))\n\t// checks the error\n\thtmlCheck(err, w, fmt.Sprint(\"There was an error \", err))\n}", "func ShowColors() {\n\tfmt.Printf(\"%#v\\n\", colors)\n}", "func (h *Heuristics) ShowColors() {\n\t\n\tfmt.Println(\"colors :: \")\n\tfor k, v := range h.colors {\n\t\tif v == 0 {\n\t\t\tfmt.Println(\"Need[\", k+1, \"] = \", h.need[k], \" Utility[\", k+1, \"] = \", h.utility[k])\n\t\t} else {\n\t\t\tfmt.Print(\"Colors[\", k+1, \"] = \", h.colors[k], \"\\t\")\n\t\t\tneighbors := h.g.AdjList[k]\n\t\t\tfor _, value := range neighbors {\n\t\t\t\tfmt.Print(value, \"\\t\")\n\t\t\t}\n\t\t\tfmt.Print(\"\\n\")\n\t\t}\n\t}\n\tfmt.Print(\"\\n\")\n}", "func Num2DiaCol(pinyinWithNumbers string, colors []string, separator string) string {\n pinyinWithNumbers = strings.Replace(pinyinWithNumbers, \"v\", \"ü\", -1)\n pinyinWithNumbers = strings.Replace(pinyinWithNumbers, \"V\", \"Ü\", -1)\n\n splitString := splitNumbersString(pinyinWithNumbers)\n\n s := \"\"\n\n for i, w := range splitString {\n t := addDiacritic(w)\n if colors != nil {\n if w.tone != -1 {\n t = addHTMLColors(t, colors[w.tone])\n }\n }\n s += t\n if i < len(splitString)-1 {\n s += separator\n }\n }\n return s\n}", "func COLORSn(n uint) Component {\n\t//aiComponent_COLORSn(n) (1u << (n+20u))\n\treturn Component(1 << (n + 20))\n}", "func GetColorTable(target uint32, format uint32, xtype uint32, table unsafe.Pointer) {\n\tC.glowGetColorTable(gpGetColorTable, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), table)\n}", "func HiRedString(format string, a ...interface{}) string { return colorString(format, FgHiRed, a...) }", "func colorcomp(s string) (red, green, blue, alpha float64) {\n\tif len(s) < 7 && s[0:0] != \"#\" {\n\t\treturn red, green, blue, alpha\n\t}\n\tvar av = make([]byte, 1)\n\trv, _ := hex.DecodeString(s[1:3])\n\tgv, _ := hex.DecodeString(s[3:5])\n\tbv, _ := hex.DecodeString(s[5:7])\n\n\tred = float64(rv[0])\n\tgreen = float64(gv[0])\n\tblue = float64(bv[0])\n\talpha = 255.0\n\n\tif len(s) == 9 {\n\t\tav, _ = hex.DecodeString(s[7:9])\n\t\talpha = float64(av[0])\n\t}\n\treturn red, green, blue, alpha\n}", "func HiBlue(format string, a ...interface{}) { colorPrint(FgHiBlue, format, a...) }", "func colorPair(c color.Color) (hi, lo color.Color) {\n\tr, g, b, a := c.RGBA()\n\tr >>= 8\n\tg >>= 8\n\tb >>= 8\n\ta >>= 8\n\tmaxd := uint32(40)\n\tif r < maxd {\n\t\tmaxd = r\n\t}\n\tif g < maxd {\n\t\tmaxd = g\n\t}\n\tif b < maxd {\n\t\tmaxd = b\n\t}\n\tif r > 128 && (255-r) < maxd {\n\t\tmaxd = (255 - r)\n\t}\n\tif g > 128 && (255-g) < maxd {\n\t\tmaxd = (255 - g)\n\t}\n\tif b > 128 && (255-b) < maxd {\n\t\tmaxd = (255 - b)\n\t}\n\thi = color.RGBA{\n\t\tR: uint8(r + maxd),\n\t\tG: uint8(g + maxd),\n\t\tB: uint8(b + maxd),\n\t\tA: uint8(a),\n\t}\n\tlo = color.RGBA{\n\t\tR: uint8(r - maxd),\n\t\tG: uint8(g - maxd),\n\t\tB: uint8(b - maxd),\n\t\tA: uint8(a),\n\t}\n\treturn hi, lo\n}", "func ColorTable(target uint32, internalformat uint32, width int32, format uint32, xtype uint32, table unsafe.Pointer) {\n C.glowColorTable(gpColorTable, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), table)\n}", "func GuiColorPanel(bounds Rectangle, color Color) Color {\n\tcbounds, _ := *(*C.Rectangle)(unsafe.Pointer(&bounds)), cgoAllocsUnknown\n\tccolor, _ := *(*C.Color)(unsafe.Pointer(&color)), cgoAllocsUnknown\n\t__ret := C.GuiColorPanel(cbounds, ccolor)\n\t__v := *newColorRef(unsafe.Pointer(&__ret)).convert()\n\treturn __v\n}", "func getColor(r Ray, world HittableList, depth int) mgl64.Vec3 {\n\thits := world.Hit(r, Epsilon, math.MaxFloat64)\n\tif len(hits) > 0 {\n\t\t// HittableList makes sure the first (and only) intersection\n\t\t// is the closest one:\n\t\thit := hits[0]\n\t\t// Simulate the light response of this material.\n\t\tisScattered, attenuation, scattered := hit.Mat.Scatter(r, hit)\n\t\t// If this ray is reflected off the surface, determine the response\n\t\t// of the scattered ray:\n\t\tif isScattered && depth < MaxBounces {\n\t\t\tresponse := getColor(scattered, world, depth+1)\n\n\t\t\treturn mgl64.Vec3{response.X() * attenuation.X(),\n\t\t\t\tresponse.Y() * attenuation.Y(),\n\t\t\t\tresponse.Z() * attenuation.Z()}\n\t\t}\n\t\t// Otherwise, the ray was absorbed, or we have exceeded the\n\t\t// maximum number of light bounces:\n\t\treturn mgl64.Vec3{0.0, 0.0, 0.0}\n\t}\n\t// If we don't intersect with anything, plot a background instead:\n\tunitDirection := r.Direction().Normalize()\n\tt := 0.5*unitDirection.Y() + 1.0\n\t// Linearly interpolate between white and blue:\n\tA := mgl64.Vec3{1.0, 1.0, 1.0}.Mul(1.0 - t)\n\tB := mgl64.Vec3{0.5, 0.7, 1.0}.Mul(t)\n\treturn A.Add(B)\n}", "func (pal *CGBPalette) get(palette byte, num byte) (uint8, uint8, uint8) {\n\tidx := (palette * 8) + (num * 2)\n\tcolour := uint16(pal.palette[idx]) | uint16(pal.palette[idx + 1]) << 8\n\tr := uint8(colour & 0x1F)\n\tg := uint8((colour >> 5) & 0x1F)\n\tb := uint8((colour >> 10) & 0x1F)\n\treturn colMap[r], colMap[g], colMap[b]\n}", "func HiYellow(format string, a ...interface{}) { colorPrint(FgHiYellow, format, a...) }", "func permuteColors(nr, ng, nb uint8) []color.Model {\n\tvar colorModels []color.Model\n\tfor _, r := range iterate(nr) {\n\t\tfor _, g := range iterate(ng) {\n\t\t\tfor _, b := range iterate(nb) {\n\t\t\t\tcolorModels = append(colorModels, clrlib.Scaled{R: r, G: g, B: b})\n\t\t\t}\n\t\t}\n\t}\n\treturn colorModels\n}", "func getColor(colorstr string) (*color.RGBA, error) {\n\tvar r, g, b uint8\n\tformat := \"%02x%02x%02x\"\n\t_, err := fmt.Sscanf(colorstr, format, &r, &g, &b)\n\tif err != nil {\n\t\treturn DefaultBackgroundColor, err\n\t}\n\treturn &color.RGBA{r, g, b, 255}, nil\n}", "func HiGreen(format string, a ...interface{}) { colorPrint(FgHiGreen, format, a...) }", "func HiBlack(format string, a ...interface{}) { colorPrint(FgHiBlack, format, a...) }", "func Uniform2ui(location int32, v0 uint32, v1 uint32) {\n C.glowUniform2ui(gpUniform2ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func (c Color) Values() []float64 {\n\treturn c\n}", "func (gw2 *GW2Api) ColorIds(lang string, ids ...int) (colors []Color, err error) {\n\tver := \"v2\"\n\ttag := \"colors\"\n\tparams := url.Values{}\n\tif lang != \"\" {\n\t\tparams.Add(\"lang\", lang)\n\t}\n\tparams.Add(\"ids\", commaList(stringSlice(ids)))\n\terr = gw2.fetchEndpoint(ver, tag, params, &colors)\n\treturn\n}", "func color(r geometry.Ray, world geometry.Hitable, depth int) geometry.Vector {\n\thit, record := world.CheckForHit(r, 0.001, math.MaxFloat64)\n\n\t// if hit {\n\t// \ttarget := record.Point.Add(record.Normal).Add(RandomInUnitSphere())\n\t// \treturn color(&geometry.Ray{Origin: record.Point, Direction: target.Subtract(record.P)}, world).Scale(0.5)\n\t// }\n\n\tif hit {\n\t\tif depth < 50 {\n\t\t\tscattered, scatteredRay := record.Scatter(r, record)\n\t\t\tif scattered {\n\t\t\t\tnewColor := color(scatteredRay, world, depth+1)\n\t\t\t\treturn record.Material.Albedo().Multiply(newColor)\n\t\t\t}\n\t\t}\n\t}\n\n\t// Make unit vector so y is between -1.0 and 1.0\n\tunitDirection := r.Direction.Normalize()\n\n\tvar t float64 = 0.5 * (unitDirection.Y + 1.0)\n\n\t// The two vectors here are what creates the sky(Blue to white gradient of the background)\n\treturn geometry.Vector{X: 1.0, Y: 1.0, Z: 1.0}.Scale(1.0 - t).Add(geometry.Vector{X: 0.5, Y: 0.7, Z: 1.0}.Scale(t))\n}", "func (b box) color() color.NRGBA {\n\treturn b.col\n}", "func (uni *Uniform1fv) GetColor(pos int) math32.Color {\n\n\treturn math32.Color{uni.v[pos], uni.v[pos+1], uni.v[pos+2]}\n}", "func Uniform2uiv(location int32, count int32, value *uint32) {\n C.glowUniform2uiv(gpUniform2uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func (e *Square10) Reference(modifiers map[int]api.Color, refPlayer int) map[int]api.Color {\n\treferenceBoard := make(map[int]api.Color, len(modifiers))\n\tfor tile, color := range modifiers {\n\t\ttargetID := refPlayer*99 - tile*(refPlayer*2-1)\n\t\treferenceBoard[targetID] = color\n\t}\n\treturn referenceBoard\n}", "func Green(format string, a ...interface{}) { colorPrint(FgGreen, format, a...) }", "func (uni *Uniform3fv) GetColor(idx int) math32.Color {\n\n\tpos := idx * 3\n\treturn math32.Color{uni.v[pos], uni.v[pos+1], uni.v[pos+2]}\n}", "func HiMagenta(format string, a ...interface{}) { colorPrint(FgHiMagenta, format, a...) }", "func GSSingleColor(img Image, color int) (err error) {\n\t// Check color-parameter.\n\tif (color != RED) && (color != GREEN) && (color != BLUE) {\n\t\terr = errors.New(\"Unknown color-parameter\")\n\t\treturn\n\t}\n\t// Color.\n\tfor x := 0; x < img.Height; x++ {\n\t\tfor y := 0; y < img.Width; y++ {\n\t\t\tbrightness := 0\n\t\t\tif color == RED {\n\t\t\t\tbrightness = img.Pixels[x][y].R\n\t\t\t} else if color == GREEN {\n\t\t\t\tbrightness = img.Pixels[x][y].G\n\t\t\t} else if color == BLUE {\n\t\t\t\tbrightness = img.Pixels[x][y].B\n\t\t\t}\n\t\t\timg.Pixels[x][y].R = brightness\n\t\t\timg.Pixels[x][y].G = brightness\n\t\t\timg.Pixels[x][y].B = brightness\n\t\t}\n\t}\n\treturn\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **int8, uniformIndices *uint32) {\n C.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func PopStyleColorV(count int) {\n\timgui.PopStyleColorV(count)\n}", "func getColorIndex(temp float64) int {\n\tif temp < *minTemp {\n\t\treturn 0\n\t}\n\tif temp > *maxTemp {\n\t\treturn len(colors) - 1\n\t}\n\treturn int((temp - *minTemp) * float64(len(colors)-1) / (*maxTemp - *minTemp))\n}", "func Red(format string, a ...interface{}) { colorPrint(FgRed, format, a...) }", "func ColorSubTable(target uint32, start int32, count int32, format uint32, xtype uint32, data unsafe.Pointer) {\n\tC.glowColorSubTable(gpColorSubTable, (C.GLenum)(target), (C.GLsizei)(start), (C.GLsizei)(count), (C.GLenum)(format), (C.GLenum)(xtype), data)\n}", "func appendHLColor(hl []byte, n int, hlType byte) []byte {\n\treturn append(hl, bytes.Repeat([]byte{hlType}, n)...)\n}", "func Color(c color.Color) termbox.Attribute {\n\tswitch termbox.SetOutputMode(termbox.OutputCurrent) {\n\tcase termbox.OutputNormal:\n\t\treturn ColorNormal(c)\n\tcase termbox.Output256:\n\t\treturn Color256(c)\n\tcase termbox.Output216:\n\t\treturn Color216(c)\n\tcase termbox.OutputGrayscale:\n\t\treturn ColorGray(c)\n\tdefault:\n\t\tpanic(\"unexpected output mode\")\n\t}\n}", "func greedyColoringOf(g graph.Undirected, order graph.Nodes, partial map[int64]int) (k int, colors map[int64]int) {\n\tcolors = partial\n\tconstrained := false\n\tfor _, c := range colors {\n\t\tif c > k {\n\t\t\tk = c\n\t\t\tconstrained = true\n\t\t}\n\t}\n\n\t// Next nodes are chosen by the specified heuristic in order.\n\tfor order.Next() {\n\t\tuid := order.Node().ID()\n\t\tused := colorsOf(g.From(uid), colors)\n\t\tif c, ok := colors[uid]; ok {\n\t\t\tif used.Has(c) {\n\t\t\t\treturn -1, nil\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\t\t// Color the chosen vertex with the least possible\n\t\t// (lowest numbered) color.\n\t\tfor c := 0; c <= k+1; c++ {\n\t\t\tif !used.Has(c) {\n\t\t\t\tcolors[uid] = c\n\t\t\t\tif c > k {\n\t\t\t\t\tk = c\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n\n\tif !constrained {\n\t\treturn k + 1, colors\n\t}\n\tseen := make(set.Ints)\n\tfor _, c := range colors {\n\t\tseen.Add(c)\n\t}\n\treturn seen.Count(), colors\n}", "func dotColor(score float64, isBackground bool) string {\n\t// A float between 0.0 and 1.0, indicating the extent to which\n\t// colors should be shifted away from grey (to make positive and\n\t// negative values easier to distinguish, and to make more use of\n\t// the color range.)\n\tconst shift = 0.7\n\n\t// Saturation and value (in hsv colorspace) for background colors.\n\tconst bgSaturation = 0.1\n\tconst bgValue = 0.93\n\n\t// Saturation and value (in hsv colorspace) for foreground colors.\n\tconst fgSaturation = 1.0\n\tconst fgValue = 0.7\n\n\t// Choose saturation and value based on isBackground.\n\tvar saturation float64\n\tvar value float64\n\tif isBackground {\n\t\tsaturation = bgSaturation\n\t\tvalue = bgValue\n\t} else {\n\t\tsaturation = fgSaturation\n\t\tvalue = fgValue\n\t}\n\n\t// Limit the score values to the range [-1.0, 1.0].\n\tscore = math.Max(-1.0, math.Min(1.0, score))\n\n\t// Reduce saturation near score=0 (so it is colored grey, rather than yellow).\n\tif math.Abs(score) < 0.2 {\n\t\tsaturation *= math.Abs(score) / 0.2\n\t}\n\n\t// Apply 'shift' to move scores away from 0.0 (grey).\n\tif score > 0.0 {\n\t\tscore = math.Pow(score, (1.0 - shift))\n\t}\n\tif score < 0.0 {\n\t\tscore = -math.Pow(-score, (1.0 - shift))\n\t}\n\n\tvar r, g, b float64 // red, green, blue\n\tif score < 0.0 {\n\t\tg = value\n\t\tr = value * (1 + saturation*score)\n\t} else {\n\t\tr = value\n\t\tg = value * (1 - saturation*score)\n\t}\n\tb = value * (1 - saturation)\n\treturn fmt.Sprintf(\"#%02x%02x%02x\", uint8(r*255.0), uint8(g*255.0), uint8(b*255.0))\n}", "func QueryColor(color string, amount float64) []string {\n\tres, err := db.Query(\"SELECT DISTINCT filename FROM colors WHERE color = ? and amount >= ?\", color, amount)\n\tdefer res.Close()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\treturn getFilenamesFromRes(res)\n}", "func chooseColor(height int, lowColor bool) tl.Attr {\n\tif lowColor {\n\t\treturn tl.ColorGreen\n\t}\n\tidx := int(math.Sqrt(float64(height+1))) - 1\n\tif idx >= len(palette) {\n\t\tidx = len(palette) - 1\n\t}\n\treturn tl.Attr(palette[idx])\n}", "func TrueColor(r uint8, g uint8, b uint8) string {\n\treturn fmt.Sprintf(\"38;%d;%d;%d\", r, g, b)\n}", "func HiWhite(format string, a ...interface{}) { colorPrint(FgHiWhite, format, a...) }", "func printMap(c map[string]string) {\n\tfor color, hex := range c {\n\t\tfmt.Println(\"Hex code for\", color, \"is\", hex)\n\t}\n}", "func Uniform2ui(location int32, v0 uint32, v1 uint32) {\n\tC.glowUniform2ui(gpUniform2ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func Uniform2ui(location int32, v0 uint32, v1 uint32) {\n\tC.glowUniform2ui(gpUniform2ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func Yellow(format string, a ...interface{}) { colorPrint(FgYellow, format, a...) }", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GreenString(format string, a ...interface{}) string { return colorString(format, FgGreen, a...) }", "func ColorState(r *Redlight, t time.Time) int {\n\ttotalPatternDuration := func() (result int) {\n\t\tfor _, v := range r.pattern {\n\t\t\tresult += v[1]\n\t\t}\n\t\treturn\n\t}()\n\truntime := int(t.Sub(r.initialTime).Seconds())\n\ttimeInLoop := runtime % totalPatternDuration\n\n\tvar cumulatedTime int\n\tvar state int\n\tfor _, v := range r.pattern {\n\t\tif cumulatedTime > timeInLoop {\n\t\t\tbreak\n\t\t}\n\t\tcumulatedTime += v[1]\n\t\tstate = v[0]\n\t}\n\treturn state\n}", "func (r *Ri) ColorSamples(n RtInt, nRGB RtFloatArray, RGBn RtFloatArray) error {\n\treturn r.writef(\"ColorSamples\", n, nRGB, RGBn)\n}", "func Uniform2i(location int32, v0 int32, v1 int32) {\n C.glowUniform2i(gpUniform2i, (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1))\n}", "func GetColors() map[int]string {\n\treturn colors\n}", "func (e Color2) String() string {\n name, _ := color2Map[int32(e)]\n return name\n}", "func YellowString(format string, a ...interface{}) string { return colorString(format, FgYellow, a...) }", "func output3d(values []int) {\n\tfor _, v := range values {\n\t\tfmt.Printf(\"%03d \",v)\n\t}\n\tfmt.Println()\n}", "func RGB2VGAFg(r, g, b uint32) (bool, int) {\n\tred := r >> 8\n\tgreen := g >> 8\n\tblue := b >> 8\n\tswitch {\n\tcase red == 0 && green == 0 && blue == 0:\n\t\treturn true, 30\n\tcase red == 170 && green == 0 && blue == 0:\n\t\treturn true, 31\n\tcase red == 0 && green == 170 && blue == 0:\n\t\treturn true, 32\n\tcase red == 170 && green == 85 && blue == 0:\n\t\treturn true, 33\n\tcase red == 0 && green == 0 && blue == 170:\n\t\treturn true, 34\n\tcase red == 170 && green == 0 && blue == 170:\n\t\treturn true, 35\n\tcase red == 0 && green == 170 && blue == 170:\n\t\treturn true, 36\n\tcase red == 170 && green == 170 && blue == 170:\n\t\treturn true, 37\n\tcase red == 85 && green == 85 && blue == 85:\n\t\treturn true, 90\n\tcase red == 255 && green == 85 && blue == 85:\n\t\treturn true, 91\n\tcase red == 85 && green == 255 && blue == 85:\n\t\treturn true, 92\n\tcase red == 255 && green == 255 && blue == 85:\n\t\treturn true, 93\n\tcase red == 85 && green == 85 && blue == 255:\n\t\treturn true, 94\n\tcase red == 255 && green == 85 && blue == 255:\n\t\treturn true, 95\n\tcase red == 85 && green == 255 && blue == 255:\n\t\treturn true, 96\n\tcase red == 255 && green == 255 && blue == 255:\n\t\treturn true, 97\n\tdefault:\n\t\treturn false, 0\n\t}\n}", "func Blue(format string, a ...interface{}) { colorPrint(FgBlue, format, a...) }", "func hueToRGB(p, q, t float64) float64 {\n if t < 0 {\n t += 1\n }\n if t > 1 {\n t -= 1\n }\n if t < 1.0/6 {\n return p + (q-p)*6*t\n }\n if t < 0.5 {\n return q\n }\n if t < 2.0/3 {\n return p + (q-p)*(2.0/3-t)*6\n }\n return p\n}", "func GxOuterColor(value color.Color) *SimpleElement { return newSEColor(\"gx:outerColor\", value) }", "func BlueString(format string, a ...interface{}) string { return colorString(format, FgBlue, a...) }", "func nextcolor(c color.RGBA) color.RGBA {\n\tswitch {\n\tcase c.R == 255 && c.G == 0 && c.B == 0:\n\t\tc.G += 5\n\tcase c.R == 255 && c.G != 255 && c.B == 0:\n\t\tc.G += 5\n\tcase c.G == 255 && c.R != 0:\n\t\tc.R -= 5\n\tcase c.R == 0 && c.B != 255:\n\t\tc.B += 5\n\tcase c.B == 255 && c.G != 0:\n\t\tc.G -= 5\n\tcase c.G == 0 && c.R != 255:\n\t\tc.R += 5\n\tdefault:\n\t\tc.B -= 5\n\t}\n\treturn c\n}", "func BindFragDataLocationIndexed(program uint32, colorNumber uint32, index uint32, name *int8) {\n C.glowBindFragDataLocationIndexed(gpBindFragDataLocationIndexed, (C.GLuint)(program), (C.GLuint)(colorNumber), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (sphr sphere) color() color.NRGBA {\n\treturn sphr.col\n}", "func combineColor(color ColorName, isBackgroundColor bool) outPutSet {\n\tif color >= COLOR_BLACK && color <= COLOR_WHITE {\n\t\tif isBackgroundColor {\n\t\t\treturn COLOR_BACKGROUND + outPutSet(color)\n\t\t}\n\t\treturn COLOR_FOREGROUND + outPutSet(color)\n\t}\n\treturn 0\n}", "func Uniform2uiv(location int32, count int32, value *uint32) {\n\tC.glowUniform2uiv(gpUniform2uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func Uniform2uiv(location int32, count int32, value *uint32) {\n\tC.glowUniform2uiv(gpUniform2uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func WriteColor(w io.Writer, color *Vec3, samplesPerPixel int) error {\n\tr := color.X\n\tg := color.Y\n\tb := color.Z\n\n\t// Divide the color by the number of samples and gamma-correct for gamma = 2.0\n\tscale := 1.0 / float64(samplesPerPixel)\n\tr = math.Sqrt(r * scale)\n\tg = math.Sqrt(g * scale)\n\tb = math.Sqrt(b * scale)\n\n\t// Write the translated [0,255] value of each color component\n\toutput := fmt.Sprintf(\"%d %d %d\\n\", int(256*clamp(r, 0.0, 0.999)), int(256*clamp(g, 0.0, 0.999)), int(256*clamp(b, 0.0, 0.999)))\n\t_, err := w.Write([]byte(output))\n\tif err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}", "func GuiColorPicker(bounds Rectangle, color Color) Color {\n\tcbounds, _ := *(*C.Rectangle)(unsafe.Pointer(&bounds)), cgoAllocsUnknown\n\tccolor, _ := *(*C.Color)(unsafe.Pointer(&color)), cgoAllocsUnknown\n\t__ret := C.GuiColorPicker(cbounds, ccolor)\n\t__v := *newColorRef(unsafe.Pointer(&__ret)).convert()\n\treturn __v\n}", "func getOneColor(h string) Color {\n\t// creates a query to select all relevent data from color table by hex\n\tq := fmt.Sprint(`SELECT color, r, g, b, a, hex, creatorId, creatorHash FROM colors WHERE hex =\"`, h, `\";`)\n\t// Runs the query checking for errors\n\trows, err := db.Query(q)\n\t// check the errors\n\tcheck(err)\n\t// Creates a variable to store all color data\n\tvar name, r, g, b, a, hex, cID, cH string\n\tvar co Color\n\t// loops through each row retuened from the query\n\tfor rows.Next() {\n\t\t// sets each data piece to be what is in the row\n\t\terr = rows.Scan(&name, &r, &g, &b, &a, &hex, &cID, &cH)\n\t\t// saves data to color struct\n\t\tco = Color{\n\t\t\tname,\n\t\t\tr,\n\t\t\tg,\n\t\t\tb,\n\t\t\ta,\n\t\t\thex,\n\t\t\t0.,\n\t\t\tcID,\n\t\t\tcH,\n\t\t}\n\t}\n\t// returns the color\n\treturn co\n}", "func Magenta(format string, a ...interface{}) { colorPrint(FgMagenta, format, a...) }", "func printMap(m map[string]string) {\n\tfor color, hex := range m { //key, value\n\t\tfmt.Println(\"Hex code for\", color, \"is\", hex)\n\t}\n}", "func Viridis(v, vmin, vmax float64) drawing.Color {\n\tnormalized := (v - vmin) / (vmax - vmin)\n\tindex := uint8(normalized * 255)\n\treturn viridisColors[index]\n}", "func TrueColor(r, g, b uint8) string { return ui.TrueColor(r, g, b).String() }", "func colorClique(clique []graph.Node) map[int64]int {\n\tcolors := make(map[int64]int, len(clique))\n\tfor c, u := range clique {\n\t\tcolors[u.ID()] = c\n\t}\n\treturn colors\n}", "func ColorTable(target uint32, internalformat uint32, width int32, format uint32, xtype uint32, table unsafe.Pointer) {\n\tC.glowColorTable(gpColorTable, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), table)\n}", "func RedString(format string, a ...interface{}) string { return colorString(format, FgRed, a...) }", "func Green(x ...interface{}) {\n\tgreen.Println(x...)\n}", "func GetColorStringForInt(colorint int) string {\n\tfor str, idx := range ColorStrings {\n\t\tif idx == colorint {\n\t\t\treturn str\n\t\t}\n\t}\n\treturn \"\"\n}", "func findAndIndex(abc *st.Art) (index1 int, index2 int) {\n\tsourse := abc.Flag.Color.ByIndex.Range\n\tlSourse := len(sourse)\n\n\tindex1 = sourse[0]\n\tindex2 = sourse[lSourse-1]\n\t// if wrong range, fix it\n\tif index1 > index2 {\n\t\tindex1, index2 = index2, index1\n\t}\n\treturn index1, index2\n}", "func fitmApplyColors(verb fitm.Verb, val interface{}) (fitm.Verb, interface{}) {\n\tif highlighter, ok := val.(highlight.Highlight); ok {\n\t\tformatted := fmt.Sprintf(verb.String(), highlighter.Value())\n\t\thighlighted := highlighter.Apply(formatted)\n\n\t\treturn fitm.NewVerb(\"s\"), highlighted\n\t}\n\n\treturn verb, val\n}", "func ColorMaterial(face uint32, mode uint32) {\n\tsyscall.Syscall(gpColorMaterial, 2, uintptr(face), uintptr(mode), 0)\n}" ]
[ "0.53381085", "0.53316516", "0.52514553", "0.52260536", "0.5177907", "0.5177454", "0.5138584", "0.510305", "0.5101925", "0.50956035", "0.5077457", "0.50745106", "0.5063413", "0.5048377", "0.50391704", "0.50190264", "0.49889907", "0.49888062", "0.49886882", "0.49872914", "0.49846452", "0.49767843", "0.49718016", "0.4963314", "0.49575472", "0.49380347", "0.49010447", "0.48950607", "0.48944733", "0.48862642", "0.48750797", "0.48685935", "0.48621032", "0.48594704", "0.4830204", "0.48295027", "0.48249754", "0.48175752", "0.48143", "0.48054034", "0.48000777", "0.48000655", "0.4789799", "0.47875708", "0.47629315", "0.47624657", "0.4762358", "0.47578245", "0.4744156", "0.4743744", "0.47392967", "0.47378796", "0.4734254", "0.4728877", "0.469899", "0.46936232", "0.46881765", "0.4687277", "0.46834564", "0.46761173", "0.4654495", "0.46424073", "0.46365976", "0.4621259", "0.4621259", "0.46154094", "0.46145645", "0.46094173", "0.46080297", "0.46009985", "0.45982584", "0.45968765", "0.4596582", "0.459649", "0.45910373", "0.458907", "0.45864588", "0.4585243", "0.4584663", "0.45835334", "0.45829475", "0.45797518", "0.4577449", "0.45740193", "0.45697165", "0.45697165", "0.45693725", "0.45667732", "0.4563219", "0.45587283", "0.45575607", "0.45513475", "0.4542947", "0.4540863", "0.45404154", "0.45350024", "0.4529842", "0.45167667", "0.45136806", "0.45062125", "0.4503219" ]
0.0
-1
retrieve information about attachments of a bound framebuffer object
func GetFramebufferAttachmentParameteriv(target uint32, attachment uint32, pname uint32, params *int32) { C.glowGetFramebufferAttachmentParameteriv(gpGetFramebufferAttachmentParameteriv, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (API) GetFramebufferAttachmentInfo(state *api.State, thread uint64, attachment api.FramebufferAttachment) (width, height, index uint32, format *image.Format, err error) {\n\treturn 0, 0, 0, nil, fmt.Errorf(\"GVR does not support framebuffers\")\n}", "func GetFramebufferAttachmentParameteriv(target uint32, attachment uint32, pname uint32, params *int32) {\n C.glowGetFramebufferAttachmentParameteriv(gpGetFramebufferAttachmentParameteriv, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetNamedFramebufferAttachmentParameteriv(framebuffer uint32, attachment uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetNamedFramebufferAttachmentParameteriv, 4, uintptr(framebuffer), uintptr(attachment), uintptr(pname), uintptr(unsafe.Pointer(params)), 0, 0)\n}", "func GetFramebufferAttachmentParameteriv(target uint32, attachment uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetFramebufferAttachmentParameteriv, 4, uintptr(target), uintptr(attachment), uintptr(pname), uintptr(unsafe.Pointer(params)), 0, 0)\n}", "func GetNamedFramebufferAttachmentParameteriv(framebuffer uint32, attachment uint32, pname uint32, params *int32) {\n\tC.glowGetNamedFramebufferAttachmentParameteriv(gpGetNamedFramebufferAttachmentParameteriv, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetNamedFramebufferAttachmentParameteriv(framebuffer uint32, attachment uint32, pname uint32, params *int32) {\n\tC.glowGetNamedFramebufferAttachmentParameteriv(gpGetNamedFramebufferAttachmentParameteriv, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (f *Framebuffer) Object() interface{} {\n\treturn f.o\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tsyscall.Syscall(gpNamedFramebufferReadBuffer, 2, uintptr(framebuffer), uintptr(src), 0)\n}", "func (s *stencilOverdraw) getDepthAttachment(a arena.Arena,\n\trpInfo RenderPassObjectʳ,\n) (VkAttachmentDescription, uint32, error) {\n\tif rpInfo.SubpassDescriptions().Len() == 0 {\n\t\treturn NilVkAttachmentDescription, 0,\n\t\t\tfmt.Errorf(\"RenderPass %v has no subpasses\",\n\t\t\t\trpInfo.VulkanHandle())\n\t}\n\t// depth attachment: don't support them not all using the same one for now\n\tattachment0 := rpInfo.SubpassDescriptions().Get(0).DepthStencilAttachment()\n\tfor i := uint32(1); i < uint32(rpInfo.SubpassDescriptions().Len()); i++ {\n\t\tattachment := rpInfo.SubpassDescriptions().Get(i).DepthStencilAttachment()\n\t\tvar match bool\n\t\tif attachment0.IsNil() {\n\t\t\tmatch = attachment.IsNil()\n\t\t} else {\n\t\t\tmatch = !attachment.IsNil() &&\n\t\t\t\tattachment0.Attachment() == attachment.Attachment()\n\t\t}\n\t\tif !match {\n\t\t\t// TODO: Handle using separate depth attachments (make\n\t\t\t// a separate image for each one and combine them at\n\t\t\t// the end perhaps?)\n\t\t\treturn NilVkAttachmentDescription, 0, fmt.Errorf(\n\t\t\t\t\"The subpasses don't have matching depth attachments\")\n\t\t}\n\t}\n\tif attachment0.IsNil() ||\n\t\t// VK_ATTACHMENT_UNUSED\n\t\tattachment0.Attachment() == ^uint32(0) {\n\t\treturn NilVkAttachmentDescription, ^uint32(0), nil\n\t}\n\n\tattachmentDesc, ok := rpInfo.AttachmentDescriptions().Lookup(\n\t\tattachment0.Attachment(),\n\t)\n\tif !ok {\n\t\treturn NilVkAttachmentDescription, 0,\n\t\t\tfmt.Errorf(\"Invalid depth attachment\")\n\t}\n\n\treturn attachmentDesc, attachment0.Attachment(), nil\n}", "func GetFramebufferAttachmentParameteri(target, attachment, pname Enum) int {\n\tlog.Println(\"GetFramebufferAttachmentParameteri: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)\")\n\tvar param int32\n\tgl.GetFramebufferAttachmentParameteriv(uint32(target), uint32(attachment), uint32(pname), &param)\n\treturn int(param)\n}", "func GetBoundFramebuffer() Framebuffer {\n\tvar b int32\n\tgl.GetIntegerv(FRAMEBUFFER_BINDING, &b)\n\treturn Framebuffer{Value: uint32(b)}\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tC.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tC.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src))\n}", "func GetFramebufferAttachmentParameteriv(target Enum, attachment Enum, pname Enum, params []Int) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcattachment, _ := (C.GLenum)(attachment), cgoAllocsUnknown\n\tcpname, _ := (C.GLenum)(pname), cgoAllocsUnknown\n\tcparams, _ := (*C.GLint)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&params)).Data)), cgoAllocsUnknown\n\tC.glGetFramebufferAttachmentParameteriv(ctarget, cattachment, cpname, cparams)\n}", "func (*Attachment) Descriptor() ([]byte, []int) {\n\treturn file_chat_v1_messages_proto_rawDescGZIP(), []int{5}\n}", "func (*Attachment) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_support_v2_attachment_proto_rawDescGZIP(), []int{0}\n}", "func (*ListAttachmentsRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_support_v2_attachment_service_proto_rawDescGZIP(), []int{0}\n}", "func (*VolumeAttachment) Descriptor() ([]byte, []int) {\n\treturn file_msgType_proto_rawDescGZIP(), []int{9}\n}", "func (*Attachment) Descriptor() ([]byte, []int) {\n\treturn file_proto_google_fhir_proto_stu3_datatypes_proto_rawDescGZIP(), []int{21}\n}", "func (*Photo) Descriptor() ([]byte, []int) {\n\treturn file_chat_v1_messages_proto_rawDescGZIP(), []int{4}\n}", "func (r *FramebufferAttachmentBytesResolvable) Resolve(ctx context.Context) (interface{}, error) {\n\tc := path.FindCapture(r.After)\n\tctx = SetupContext(ctx, c, r.Config)\n\n\tintent := replay.Intent{\n\t\tDevice: r.ReplaySettings.Device,\n\t\tCapture: c,\n\t}\n\n\tafter, err := Cmd(ctx, r.After, r.Config)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tapi := after.API()\n\tif api == nil {\n\t\tlog.W(ctx, \"No API!\")\n\t\treturn nil, &service.ErrDataUnavailable{Reason: messages.ErrFramebufferUnavailable()}\n\t}\n\n\tquery, ok := api.(replay.QueryFramebufferAttachment)\n\tif !ok {\n\t\tlog.E(ctx, \"API %s does not implement QueryFramebufferAttachment\", api.Name())\n\t\treturn nil, &service.ErrDataUnavailable{Reason: messages.ErrFramebufferUnavailable()}\n\t}\n\n\tmgr := replay.GetManager(ctx)\n\n\tres, err := query.QueryFramebufferAttachment(\n\t\tctx,\n\t\tintent,\n\t\tmgr,\n\t\tr.After.Indices,\n\t\tr.Width,\n\t\tr.Height,\n\t\tr.Attachment,\n\t\tr.FramebufferIndex,\n\t\tr.DrawMode,\n\t\tr.ReplaySettings.DisableReplayOptimization,\n\t\tr.ReplaySettings.DisplayToSurface,\n\t\tr.Hints,\n\t)\n\tif err != nil {\n\t\tif _, ok := err.(*service.ErrDataUnavailable); ok {\n\t\t\treturn nil, err\n\t\t}\n\t\treturn nil, log.Err(ctx, err, \"Couldn't get framebuffer attachment\")\n\t}\n\n\tres, err = res.Convert(r.ImageFormat)\n\tif err != nil {\n\t\treturn nil, log.Err(ctx, err, \"Couldn't get framebuffer attachment\")\n\t}\n\n\treturn res.Bytes, nil\n}", "func (*ListAttachmentsResponse) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_support_v2_attachment_service_proto_rawDescGZIP(), []int{1}\n}", "func (*Attachment) Descriptor() ([]byte, []int) {\n\treturn file_patrol_proto_rawDescGZIP(), []int{0}\n}", "func (*GetPhotoRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_streetview_publish_v1_rpcmessages_proto_rawDescGZIP(), []int{1}\n}", "func (*Common_Attachment) Descriptor() ([]byte, []int) {\n\treturn file_proto_common_proto_rawDescGZIP(), []int{0, 3}\n}", "func (*Photo) Descriptor() ([]byte, []int) {\n\treturn file_google_streetview_publish_v1_resources_proto_rawDescGZIP(), []int{6}\n}", "func (*Snapshot) Descriptor() ([]byte, []int) {\n\treturn file_pkg_webview_view_proto_rawDescGZIP(), []int{12}\n}", "func (*PictureSearchResult) Descriptor() ([]byte, []int) {\n\treturn file_box_search_proto_rawDescGZIP(), []int{5}\n}", "func (*Backend) Descriptor() ([]byte, []int) {\n\treturn file_compact_activity_snapshot_proto_rawDescGZIP(), []int{1}\n}", "func (*RenderActorsResponse_ResponseItem_Snapshot) Descriptor() ([]byte, []int) {\n\treturn file_service_proto_rawDescGZIP(), []int{6, 0, 0}\n}", "func (*BoundingBox) Descriptor() ([]byte, []int) {\n\treturn file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescGZIP(), []int{7}\n}", "func (*RoomBillDetail) Descriptor() ([]byte, []int) {\n\treturn file_roomBillDetailService_proto_rawDescGZIP(), []int{1}\n}", "func (g GenericBackend) ReadFramebufferCount(ctx context.Context, width, height int) (framebuffers int, e error) {\n\tf, err := os.Open(fmt.Sprintf(genericFramebufferFilePattern, g.index))\n\tif err != nil {\n\t\treturn framebuffers, errors.Wrap(err, \"failed to open dri file\")\n\t}\n\n\ttext, err := ioutil.ReadAll(f)\n\tif err != nil {\n\t\treturn framebuffers, errors.Wrap(err, \"failed to read dri file\")\n\t}\n\tlines := strings.Split(string(text), \"\\n\")\n\tfor _, line := range lines {\n\t\t// The line we're looking for looks like \"...size=1920x1080\"\n\t\tvar fbWidth, fbHeight int\n\t\tif _, err := fmt.Sscanf(line, \" size=%dx%d\", &fbWidth, &fbHeight); err != nil {\n\t\t\tcontinue\n\t\t}\n\t\tif fbWidth == width && fbHeight == height {\n\t\t\tframebuffers++\n\t\t}\n\t}\n\treturn\n}", "func (emu *emuState) Framebuffer() []byte {\n\treturn emu.framebuffer()\n}", "func (*RaftSnapshotData) Descriptor() ([]byte, []int) {\n\treturn file_raft_serverpb_raft_serverpb_proto_rawDescGZIP(), []int{7}\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n C.glowFramebufferRenderbuffer(gpFramebufferRenderbuffer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func (*RoomInfo) Descriptor() ([]byte, []int) {\n\treturn file_msgdata_proto_rawDescGZIP(), []int{9}\n}", "func (f *Framebuffer) Renderbuffer(attachment gfx.FramebufferAttachment, buf gfx.Renderbuffer) {\n\tf.useState()\n\tf.ctx.O.Call(\n\t\t\"framebufferTexture2D\",\n\t\tf.ctx.FRAMEBUFFER,\n\t\tf.ctx.Enums[int(attachment)],\n\t\tf.ctx.RENDERBUFFER,\n\t\tbuf.Object().(*js.Object),\n\t\t0,\n\t)\n}", "func IsFramebuffer(framebuffer uint32) bool {\n ret := C.glowIsFramebuffer(gpIsFramebuffer, (C.GLuint)(framebuffer))\n return ret == TRUE\n}", "func (*SnapshotRequest) Descriptor() ([]byte, []int) {\n\treturn file_openfeed_proto_rawDescGZIP(), []int{53}\n}", "func (*RecordFrame) Descriptor() ([]byte, []int) {\n\treturn file_bastion_proto_rawDescGZIP(), []int{27}\n}", "func (*Activation) Descriptor() ([]byte, []int) {\n\treturn file_spacemesh_v1_types_proto_rawDescGZIP(), []int{11}\n}", "func (*Snapshot) Descriptor() ([]byte, []int) {\n\treturn file_scanner_proto_rawDescGZIP(), []int{2}\n}", "func (*SnapshotHighlight) Descriptor() ([]byte, []int) {\n\treturn file_pkg_webview_view_proto_rawDescGZIP(), []int{11}\n}", "func (*CMsgRecentMatchInfo) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_common_proto_rawDescGZIP(), []int{43}\n}", "func GetNamedFramebufferParameteriv(framebuffer uint32, pname uint32, param *int32) {\n\tsyscall.Syscall(gpGetNamedFramebufferParameteriv, 3, uintptr(framebuffer), uintptr(pname), uintptr(unsafe.Pointer(param)))\n}", "func (*CMsgDOTABotDebugInfo) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_common_proto_rawDescGZIP(), []int{41}\n}", "func (ctrl Attachment) List(ctx context.Context, r *request.AttachmentList) (interface{}, error) {\n\tif !auth.GetIdentityFromContext(ctx).Valid() {\n\t\treturn nil, errors.New(\"Unauthorized\")\n\t}\n\n\tf := types.AttachmentFilter{\n\t\tNamespaceID: r.NamespaceID,\n\t\tKind: r.Kind,\n\t\tModuleID: r.ModuleID,\n\t\tRecordID: r.RecordID,\n\t\tFieldName: r.FieldName,\n\t\t// Filter: r.Filter,\n\t\tPerPage: r.PerPage,\n\t\tPage: r.Page,\n\t\t// Sort: r.Sort,\n\t}\n\n\tset, filter, err := ctrl.attachment.With(ctx).Find(f)\n\treturn ctrl.makeFilterPayload(ctx, set, filter, err)\n}", "func (mgr *WatchController) getObservedAttachments(\n\twatch *unstructured.Unstructured,\n) (common.AnyUnstructRegistry, error) {\n\t// initialize the attachment registry\n\tattachmentRegistry := make(common.AnyUnstructRegistry)\n\tfor _, attachmentKind := range mgr.GCtlConfig.Spec.Attachments {\n\t\tattachmentInformer := mgr.attachmentInformers.Get(\n\t\t\tattachmentKind.APIVersion,\n\t\t\tattachmentKind.Resource,\n\t\t)\n\t\tif attachmentInformer == nil {\n\t\t\treturn nil,\n\t\t\t\terrors.Errorf(\n\t\t\t\t\t\"Can't find attachment informer for %q with version %q: Watch %s: %s\",\n\t\t\t\t\tattachmentKind.Resource,\n\t\t\t\t\tattachmentKind.APIVersion,\n\t\t\t\t\tcommon.DescObjectAsKey(watch),\n\t\t\t\t\tmgr,\n\t\t\t\t)\n\t\t}\n\t\tvar attachmentObjs []*unstructured.Unstructured\n\t\tvar err error\n\t\t// all possible attachment object for the given attachment kind\n\t\tattachmentObjs, err =\n\t\t\tattachmentInformer.Lister().List(labels.Everything())\n\t\tif err != nil {\n\t\t\treturn nil, errors.Wrapf(\n\t\t\t\terr,\n\t\t\t\t\"Can't list attachments for %s with version %s: Watch %s: %s\",\n\t\t\t\tattachmentKind.Resource,\n\t\t\t\tattachmentKind.APIVersion,\n\t\t\t\tcommon.DescObjectAsKey(watch),\n\t\t\t\tmgr,\n\t\t\t)\n\t\t}\n\t\tglog.V(7).Infof(\n\t\t\t\"%d attachment %s(s) listed with version %s: Watch %s: %s\",\n\t\t\tlen(attachmentObjs),\n\t\t\tattachmentKind.Resource,\n\t\t\tattachmentKind.APIVersion,\n\t\t\tcommon.DescObjectAsKey(watch),\n\t\t\tmgr,\n\t\t)\n\t\t// steps to initialize the attachment registry\n\n\t\tattachmentAPI := mgr.DynamicDiscovery.GetAPIForAPIVersionAndResource(\n\t\t\tattachmentKind.APIVersion,\n\t\t\tattachmentKind.Resource,\n\t\t)\n\t\tif attachmentAPI == nil {\n\t\t\tif glog.V(5) {\n\t\t\t\tglog.Warningf(\n\t\t\t\t\t\"Can't discover attachment api %s with version %s: Watch %s: %s\",\n\t\t\t\t\tattachmentKind.Resource,\n\t\t\t\t\tattachmentKind.APIVersion,\n\t\t\t\t\tcommon.DescObjectAsKey(watch),\n\t\t\t\t\tmgr,\n\t\t\t\t)\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\t\t// initialise this registry with this particular attachment resource\n\t\tattachmentRegistry.Init(\n\t\t\tattachmentKind.APIVersion,\n\t\t\tattachmentAPI.Kind,\n\t\t)\n\t\tfor _, attObj := range attachmentObjs {\n\t\t\tisMatch, err :=\n\t\t\t\tmgr.attachmentSelector.MatchAttachmentAgainstWatch(\n\t\t\t\t\tattObj,\n\t\t\t\t\twatch,\n\t\t\t\t)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, errors.Wrapf(\n\t\t\t\t\terr,\n\t\t\t\t\t\"Match failed for attachment %s against watch %s: %s\",\n\t\t\t\t\tcommon.DescObjectAsKey(attObj),\n\t\t\t\t\tcommon.DescObjectAsKey(watch),\n\t\t\t\t\tmgr,\n\t\t\t\t)\n\t\t\t}\n\t\t\tif !isMatch {\n\t\t\t\tglog.V(7).Infof(\n\t\t\t\t\t\"Selector doesn't match: Ignore attachment %s for watch %s: %s\",\n\t\t\t\t\tcommon.DescObjectAsKey(attObj),\n\t\t\t\t\tcommon.DescObjectAsKey(watch),\n\t\t\t\t\tmgr,\n\t\t\t\t)\n\t\t\t\t// Do not consider this attachment if it is not meant\n\t\t\t\t// to be\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tattachmentRegistry.Insert(attObj)\n\t\t}\n\t}\n\treturn attachmentRegistry, nil\n}", "func (*CMsgDOTABotDebugInfo_Bot) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_common_proto_rawDescGZIP(), []int{41, 0}\n}", "func FramebufferRenderbuffer(target, attachment, rbTarget Enum, rb Renderbuffer) {\n\tgl.FramebufferRenderbuffer(uint32(target), uint32(attachment), uint32(rbTarget), rb.Value)\n}", "func (*Room) Descriptor() ([]byte, []int) {\n\treturn file_msgdata_proto_rawDescGZIP(), []int{8}\n}", "func (almanac *Almanac) GetBindings() (bindings []Binding) {\n\tfor _, v := range almanac.Result.Data {\n\t\tbindings = append(bindings, v.Attachments.Bindings.Bindings...)\n\t}\n\treturn bindings\n}", "func (*CMsgScreenInformationChanged) Descriptor() ([]byte, []int) {\n\treturn file_steam_htmlmessages_proto_rawDescGZIP(), []int{112}\n}", "func (g I915Backend) ReadFramebufferCount(ctx context.Context, width, height int) (framebuffers int, e error) {\n\tf, err := os.Open(i915FramebufferFile)\n\tif err != nil {\n\t\treturn framebuffers, errors.Wrap(err, \"failed to open dri file\")\n\t}\n\ttext, err := ioutil.ReadAll(f)\n\tif err != nil {\n\t\treturn framebuffers, errors.Wrap(err, \"failed to read dri file\")\n\t}\n\tlines := strings.Split(string(text), \"\\n\")\n\tfor _, line := range lines {\n\t\t// The line we're looking for looks like \"user size: 1920 x 1080,...\"\n\t\tvar fbWidth, fbHeight int\n\t\tif _, err := fmt.Sscanf(line, \"user size: %d x %d\", &fbWidth, &fbHeight); err != nil {\n\t\t\tcontinue\n\t\t}\n\t\tif fbWidth == width && fbHeight == height {\n\t\t\tframebuffers++\n\t\t}\n\t}\n\treturn\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tsyscall.Syscall6(gpFramebufferRenderbuffer, 4, uintptr(target), uintptr(attachment), uintptr(renderbuffertarget), uintptr(renderbuffer), 0, 0)\n}", "func (*Content_AttachmentContent) Descriptor() ([]byte, []int) {\n\treturn file_chat_v1_messages_proto_rawDescGZIP(), []int{6, 2}\n}", "func (*CMsgMapStatsSnapshot) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_common_proto_rawDescGZIP(), []int{90}\n}", "func (*Photo) Descriptor() ([]byte, []int) {\n\treturn file_photo_proto_rawDescGZIP(), []int{0}\n}", "func (*CompactActivitySnapshot) Descriptor() ([]byte, []int) {\n\treturn file_compact_activity_snapshot_proto_rawDescGZIP(), []int{0}\n}", "func (*RoomBillDetailWhere) Descriptor() ([]byte, []int) {\n\treturn file_roomBillDetailService_proto_rawDescGZIP(), []int{0}\n}", "func (cs *cpuState) Framebuffer() []byte {\n\treturn cs.LCD.framebuffer[:]\n}", "func (*EnterRoom) Descriptor() ([]byte, []int) {\n\treturn file_msgdata_proto_rawDescGZIP(), []int{12}\n}", "func (*Room) Descriptor() ([]byte, []int) {\n\treturn file_chat_chat_proto_rawDescGZIP(), []int{0}\n}", "func (*Capture) Descriptor() ([]byte, []int) {\n\treturn file_cmd_proto_rawDescGZIP(), []int{3}\n}", "func (*GetCommittedVersionedBlobArtifactParts) Descriptor() ([]byte, []int) {\n\treturn file_modeldb_versioning_VersioningService_proto_rawDescGZIP(), []int{38}\n}", "func (*GetPhotoSequenceRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_streetview_publish_v1_rpcmessages_proto_rawDescGZIP(), []int{13}\n}", "func (*BdInformation) Descriptor() ([]byte, []int) {\n\treturn file_response_proto_rawDescGZIP(), []int{5}\n}", "func (*ActivationId) Descriptor() ([]byte, []int) {\n\treturn file_spacemesh_v1_types_proto_rawDescGZIP(), []int{5}\n}", "func (*DatabaseImageDataArchive) Descriptor() ([]byte, []int) {\n\treturn file_TSPDatabaseMessages_proto_rawDescGZIP(), []int{2}\n}", "func (*Contacts) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{4}\n}", "func (debugging *debuggingOpenGL) FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n\tdebugging.recordEntry(\"FramebufferTexture\", target, attachment, texture, level)\n\tdebugging.gl.FramebufferTexture(target, attachment, texture, level)\n\tdebugging.recordExit(\"FramebufferTexture\")\n}", "func (f *FileImage) getDescriptor(fns ...DescriptorSelectorFunc) (*rawDescriptor, error) {\n\tvar d *rawDescriptor\n\n\terr := f.withDescriptors(multiSelectorFunc(fns...), func(found *rawDescriptor) error {\n\t\tif d != nil {\n\t\t\treturn ErrMultipleObjectsFound\n\t\t}\n\t\td = found\n\t\treturn nil\n\t})\n\n\tif err == nil && d == nil {\n\t\terr = ErrObjectNotFound\n\t}\n\n\treturn d, err\n}", "func (*InboxBuf) Descriptor() ([]byte, []int) {\n\treturn file_structures_proto_rawDescGZIP(), []int{2}\n}", "func (*ListMatchesRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{62}\n}", "func (*Match) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{70}\n}", "func (*SnapshotCFFile) Descriptor() ([]byte, []int) {\n\treturn file_raft_serverpb_raft_serverpb_proto_rawDescGZIP(), []int{8}\n}", "func (*Contacts) Descriptor() ([]byte, []int) {\n\treturn file_API_proto_rawDescGZIP(), []int{5}\n}", "func FramebufferRenderbuffer(target Enum, attachment Enum, renderbuffertarget Enum, renderbuffer Uint) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcattachment, _ := (C.GLenum)(attachment), cgoAllocsUnknown\n\tcrenderbuffertarget, _ := (C.GLenum)(renderbuffertarget), cgoAllocsUnknown\n\tcrenderbuffer, _ := (C.GLuint)(renderbuffer), cgoAllocsUnknown\n\tC.glFramebufferRenderbuffer(ctarget, cattachment, crenderbuffertarget, crenderbuffer)\n}", "func (*DumpRIBRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_bio_routing_bio_rd_protocols_bgp_api_bgp_proto_rawDescGZIP(), []int{3}\n}", "func (debugging *debuggingOpenGL) FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tdebugging.recordEntry(\"FramebufferRenderbuffer\", target, attachment, renderbuffertarget, renderbuffer)\n\tdebugging.gl.FramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)\n\tdebugging.recordExit(\"FramebufferRenderbuffer\")\n}", "func NamedFramebufferRenderbuffer(framebuffer uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tsyscall.Syscall6(gpNamedFramebufferRenderbuffer, 4, uintptr(framebuffer), uintptr(attachment), uintptr(renderbuffertarget), uintptr(renderbuffer), 0, 0)\n}", "func (*FwdInfo) Descriptor() ([]byte, []int) {\n\treturn file_rpc_proto_rawDescGZIP(), []int{7}\n}", "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n C.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func (*MatchList) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{71}\n}", "func (*MsgPic) Descriptor() ([]byte, []int) {\n\treturn file_objmsg_proto_rawDescGZIP(), []int{0}\n}", "func (*GPU) Descriptor() ([]byte, []int) {\n\treturn file_proto_processor_message_proto_rawDescGZIP(), []int{1}\n}", "func (*CMsgGameOverlayTexturePaint) Descriptor() ([]byte, []int) {\n\treturn file_steam_htmlmessages_proto_rawDescGZIP(), []int{72}\n}", "func (*GetDBInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_threads_proto_rawDescGZIP(), []int{9}\n}", "func InvalidateSubFramebuffer(target uint32, numAttachments int32, attachments *uint32, x int32, y int32, width int32, height int32) {\n C.glowInvalidateSubFramebuffer(gpInvalidateSubFramebuffer, (C.GLenum)(target), (C.GLsizei)(numAttachments), (*C.GLenum)(unsafe.Pointer(attachments)), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func (m *ChatMessage) GetAttachments()([]ChatMessageAttachmentable) {\n return m.attachments\n}", "func (*PolicyBasedRoute_InterconnectAttachment) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_networkconnectivity_v1_policy_based_routing_proto_rawDescGZIP(), []int{0, 1}\n}", "func (em EventManager[A]) Snapshot() []A {\n\tem.evBufferCond.L.Lock()\n\tdefer em.evBufferCond.L.Unlock()\n\treturn append((*em.evBuffer)[:0:0], *em.evBuffer...)\n}", "func GetNamedFramebufferParameteriv(framebuffer uint32, pname uint32, param *int32) {\n\tC.glowGetNamedFramebufferParameteriv(gpGetNamedFramebufferParameteriv, (C.GLuint)(framebuffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param)))\n}", "func GetNamedFramebufferParameteriv(framebuffer uint32, pname uint32, param *int32) {\n\tC.glowGetNamedFramebufferParameteriv(gpGetNamedFramebufferParameteriv, (C.GLuint)(framebuffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param)))\n}", "func BpfBuflen(fd int) (int, error) {\n\tvar l int\n\terr := ioctlPtr(fd, BIOCGBLEN, unsafe.Pointer(&l))\n\tif err != nil {\n\t\treturn 0, err\n\t}\n\treturn l, nil\n}", "func (*JoinRequest) Descriptor() ([]byte, []int) {\n\treturn file_FillerGame_proto_rawDescGZIP(), []int{0}\n}", "func InvalidateNamedFramebufferSubData(framebuffer uint32, numAttachments int32, attachments *uint32, x int32, y int32, width int32, height int32) {\n\tsyscall.Syscall9(gpInvalidateNamedFramebufferSubData, 7, uintptr(framebuffer), uintptr(numAttachments), uintptr(unsafe.Pointer(attachments)), uintptr(x), uintptr(y), uintptr(width), uintptr(height), 0, 0)\n}", "func (*CMsgGCMatchDetailsRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{24}\n}" ]
[ "0.73380953", "0.6081883", "0.60110456", "0.5880238", "0.5824352", "0.5824352", "0.5762406", "0.5591199", "0.55728394", "0.5561609", "0.5554838", "0.5476264", "0.5476264", "0.5433022", "0.5352471", "0.53012013", "0.5299813", "0.52697986", "0.52668154", "0.525458", "0.52213323", "0.52081114", "0.51943016", "0.5106542", "0.50818896", "0.5076102", "0.5069987", "0.5054746", "0.5046885", "0.50434345", "0.50422394", "0.5041264", "0.50295067", "0.5027591", "0.5022131", "0.50162053", "0.5004021", "0.497471", "0.49703893", "0.49633208", "0.4954671", "0.49519774", "0.49518475", "0.49419853", "0.49328598", "0.49157542", "0.49117818", "0.49092197", "0.49036568", "0.49003172", "0.48937547", "0.48931918", "0.48870915", "0.48844367", "0.48808607", "0.48765367", "0.48736352", "0.4872432", "0.48723322", "0.48632672", "0.48602557", "0.48351422", "0.48330003", "0.48325002", "0.4829026", "0.48247907", "0.4815997", "0.4814208", "0.48128033", "0.48083138", "0.4798317", "0.4789509", "0.47833273", "0.47832385", "0.478102", "0.47801697", "0.47772264", "0.47667107", "0.47644317", "0.47623286", "0.47620162", "0.47524157", "0.47516254", "0.4744783", "0.47376066", "0.47368172", "0.47363693", "0.47317338", "0.47243363", "0.4722514", "0.4713014", "0.47096583", "0.4708086", "0.47060096", "0.47060096", "0.4703476", "0.47007337", "0.46996844", "0.46978822" ]
0.5686716
8
retrieve a named parameter from a framebuffer
func GetFramebufferParameteriv(target uint32, pname uint32, params *int32) { C.glowGetFramebufferParameteriv(gpGetFramebufferParameteriv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetNamedFramebufferParameteriv(framebuffer uint32, pname uint32, param *int32) {\n\tsyscall.Syscall(gpGetNamedFramebufferParameteriv, 3, uintptr(framebuffer), uintptr(pname), uintptr(unsafe.Pointer(param)))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tsyscall.Syscall(gpNamedFramebufferReadBuffer, 2, uintptr(framebuffer), uintptr(src), 0)\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tC.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tC.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src))\n}", "func NamedFramebufferParameteri(framebuffer uint32, pname uint32, param int32) {\n\tsyscall.Syscall(gpNamedFramebufferParameteri, 3, uintptr(framebuffer), uintptr(pname), uintptr(param))\n}", "func FramebufferParameteri(target uint32, pname uint32, param int32) {\n C.glowFramebufferParameteri(gpFramebufferParameteri, (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param))\n}", "func GetNamedFramebufferParameteriv(framebuffer uint32, pname uint32, param *int32) {\n\tC.glowGetNamedFramebufferParameteriv(gpGetNamedFramebufferParameteriv, (C.GLuint)(framebuffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param)))\n}", "func GetNamedFramebufferParameteriv(framebuffer uint32, pname uint32, param *int32) {\n\tC.glowGetNamedFramebufferParameteriv(gpGetNamedFramebufferParameteriv, (C.GLuint)(framebuffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param)))\n}", "func NamedFramebufferParameteri(framebuffer uint32, pname uint32, param int32) {\n\tC.glowNamedFramebufferParameteri(gpNamedFramebufferParameteri, (C.GLuint)(framebuffer), (C.GLenum)(pname), (C.GLint)(param))\n}", "func NamedFramebufferParameteri(framebuffer uint32, pname uint32, param int32) {\n\tC.glowNamedFramebufferParameteri(gpNamedFramebufferParameteri, (C.GLuint)(framebuffer), (C.GLenum)(pname), (C.GLint)(param))\n}", "func FramebufferParameteri(target uint32, pname uint32, param int32) {\n\tsyscall.Syscall(gpFramebufferParameteri, 3, uintptr(target), uintptr(pname), uintptr(param))\n}", "func getParam(memory []int, ip int, rb int, mode ParamMode) int {\n\tswitch mode {\n\tcase POSITION:\n\t\treturn memory[memory[ip]]\n\tcase IMMEDIATE:\n\t\treturn memory[ip]\n\tcase RELATIVE:\n\t\treturn memory[rb+memory[ip]]\n\tdefault:\n\t\tpanic(fmt.Errorf(\"Unknown parameter mode: %d\", mode))\n\t}\n\treturn 0\n}", "func GetRenderbufferParameteri(target, pname Enum) int {\n\tlog.Println(\"GetRenderbufferParameteri: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)\")\n\tvar result int32\n\tgl.GetRenderbufferParameteriv(uint32(target), uint32(pname), &result)\n\treturn int(result)\n}", "func (p *Program) getParameter(param uint32) int {\n\tvar v int32\n\tgl.GetProgramiv(uint32(p.glHandle), param, &v)\n\treturn int(v)\n}", "func GetNamedFramebufferAttachmentParameteriv(framebuffer uint32, attachment uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetNamedFramebufferAttachmentParameteriv, 4, uintptr(framebuffer), uintptr(attachment), uintptr(pname), uintptr(unsafe.Pointer(params)), 0, 0)\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func FramebufferParameteri(target uint32, pname uint32, param int32) {\n\tC.glowFramebufferParameteri(gpFramebufferParameteri, (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param))\n}", "func FramebufferParameteri(target uint32, pname uint32, param int32) {\n\tC.glowFramebufferParameteri(gpFramebufferParameteri, (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param))\n}", "func GetFramebufferAttachmentParameteri(target, attachment, pname Enum) int {\n\tlog.Println(\"GetFramebufferAttachmentParameteri: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)\")\n\tvar param int32\n\tgl.GetFramebufferAttachmentParameteriv(uint32(target), uint32(attachment), uint32(pname), &param)\n\treturn int(param)\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n C.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetNamedRenderbufferParameteriv(renderbuffer uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetNamedRenderbufferParameteriv, 3, uintptr(renderbuffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func GetNamedFramebufferAttachmentParameteriv(framebuffer uint32, attachment uint32, pname uint32, params *int32) {\n\tC.glowGetNamedFramebufferAttachmentParameteriv(gpGetNamedFramebufferAttachmentParameteriv, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetNamedFramebufferAttachmentParameteriv(framebuffer uint32, attachment uint32, pname uint32, params *int32) {\n\tC.glowGetNamedFramebufferAttachmentParameteriv(gpGetNamedFramebufferAttachmentParameteriv, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func TexParameterf(target, pname Enum, param float32) {\n\tgl.TexParameterf(uint32(target), uint32(pname), param)\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (f *linkFrame) GetParamStr(k string) (str []byte, err error) {\n v, ok := f.param[k]\n if ok {\n // we got it\n var s []byte\n switch v.(type) {\n case []byte:\n s = v.([]byte)\n str = make([]byte, len(s))\n copy(str, s)\n break\n default:\n err = errors.New(\"param value \"+k+\" not bytes\")\n }\n } else {\n err = errors.New(\"params don't have \"+k)\n }\n return\n}", "func GetMultisamplefv(pname uint32, index uint32, val *float32) {\n C.glowGetMultisamplefv(gpGetMultisamplefv, (C.GLenum)(pname), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(val)))\n}", "func GetFramebufferParameteriv(target uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetFramebufferParameteriv, 3, uintptr(target), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tsyscall.Syscall(gpNamedFramebufferDrawBuffer, 2, uintptr(framebuffer), uintptr(buf), 0)\n}", "func TexParameterf(target Enum, pname Enum, param Float) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcpname, _ := (C.GLenum)(pname), cgoAllocsUnknown\n\tcparam, _ := (C.GLfloat)(param), cgoAllocsUnknown\n\tC.glTexParameterf(ctarget, cpname, cparam)\n}", "func (handler Handler) GetParameter(r *http.Request, key string) string {\n\treturn r.URL.Query().Get(key)\n}", "func GetVertexAttribfv(index uint32, pname uint32, params *float32) {\n C.glowGetVertexAttribfv(gpGetVertexAttribfv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetParam(d []*commands.Data, name string) *commands.Data {\n\tfor _, element := range d {\n\t\tif strings.Compare(element.Name, name) == 0 {\n\t\t\treturn element\n\t\t}\n\t}\n\treturn nil\n}", "func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) {\n\tC.glowGetNamedBufferSubData(gpGetNamedBufferSubData, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) {\n\tC.glowGetNamedBufferSubData(gpGetNamedBufferSubData, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func GetNamedRenderbufferParameteriv(renderbuffer uint32, pname uint32, params *int32) {\n\tC.glowGetNamedRenderbufferParameteriv(gpGetNamedRenderbufferParameteriv, (C.GLuint)(renderbuffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetNamedRenderbufferParameteriv(renderbuffer uint32, pname uint32, params *int32) {\n\tC.glowGetNamedRenderbufferParameteriv(gpGetNamedRenderbufferParameteriv, (C.GLuint)(renderbuffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func TexParameterf(target, pname GLEnum, param float32) {\n\tgl.TexParameterf(uint32(target), uint32(pname), param)\n}", "func (API) GetFramebufferAttachmentInfo(state *api.State, thread uint64, attachment api.FramebufferAttachment) (width, height, index uint32, format *image.Format, err error) {\n\treturn 0, 0, 0, nil, fmt.Errorf(\"GVR does not support framebuffers\")\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetFramebufferAttachmentParameteriv(target uint32, attachment uint32, pname uint32, params *int32) {\n C.glowGetFramebufferAttachmentParameteriv(gpGetFramebufferAttachmentParameteriv, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (native *OpenGL) TexParameterf(target uint32, pname uint32, param float32) {\n\tgl.TexParameterf(target, pname, param)\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tC.glowNamedFramebufferDrawBuffer(gpNamedFramebufferDrawBuffer, (C.GLuint)(framebuffer), (C.GLenum)(buf))\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tC.glowNamedFramebufferDrawBuffer(gpNamedFramebufferDrawBuffer, (C.GLuint)(framebuffer), (C.GLenum)(buf))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *int8) {\n C.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func (debugging *debuggingOpenGL) GetProgramParameter(program uint32, param uint32) int32 {\n\tdebugging.recordEntry(\"GetProgramParameter\", program, param)\n\tresult := debugging.gl.GetProgramParameter(program, param)\n\tdebugging.recordExit(\"GetProgramParameter\", result)\n\treturn result\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tsyscall.Syscall(gpGetUniformfv, 3, uintptr(program), uintptr(location), uintptr(unsafe.Pointer(params)))\n}", "func GetBufferParameteri(target, pname Enum) int {\n\tvar params int32\n\tgl.GetBufferParameteriv(uint32(target), uint32(pname), &params)\n\treturn int(params)\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetNamedBufferParameteriv, 3, uintptr(buffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tC.glowGetNamedBufferParameteriv(gpGetNamedBufferParameteriv, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tC.glowGetNamedBufferParameteriv(gpGetNamedBufferParameteriv, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetRenderbufferParameteriv(target uint32, pname uint32, params *int32) {\n C.glowGetRenderbufferParameteriv(gpGetRenderbufferParameteriv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) {\n\tC.glowGetNamedBufferPointerv(gpGetNamedBufferPointerv, (C.GLuint)(buffer), (C.GLenum)(pname), params)\n}", "func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) {\n\tC.glowGetNamedBufferPointerv(gpGetNamedBufferPointerv, (C.GLuint)(buffer), (C.GLenum)(pname), params)\n}", "func Param(ctx context.Context, name string) string {\n\treturn Params(ctx).ByName(name)\n}", "func GetArg(b *Buffer) (string, int) {\n\tc := b.GetActiveCursor()\n\tl := b.LineBytes(c.Y)\n\tl = util.SliceStart(l, c.X)\n\n\targs := bytes.Split(l, []byte{' '})\n\tinput := string(args[len(args)-1])\n\targstart := 0\n\tfor i, a := range args {\n\t\tif i == len(args)-1 {\n\t\t\tbreak\n\t\t}\n\t\targstart += util.CharacterCount(a) + 1\n\t}\n\n\treturn input, argstart\n}", "func BindFragDataLocation(program uint32, color uint32, name *int8) {\n C.glowBindFragDataLocation(gpBindFragDataLocation, (C.GLuint)(program), (C.GLuint)(color), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetFragDataLocation(program uint32, name *int8) int32 {\n ret := C.glowGetFragDataLocation(gpGetFragDataLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func BlitNamedFramebuffer(readFramebuffer uint32, drawFramebuffer uint32, srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tsyscall.Syscall12(gpBlitNamedFramebuffer, 12, uintptr(readFramebuffer), uintptr(drawFramebuffer), uintptr(srcX0), uintptr(srcY0), uintptr(srcX1), uintptr(srcY1), uintptr(dstX0), uintptr(dstY0), uintptr(dstX1), uintptr(dstY1), uintptr(mask), uintptr(filter))\n}", "func GetMultisamplefv(pname uint32, index uint32, val *float32) {\n\tsyscall.Syscall(gpGetMultisamplefv, 3, uintptr(pname), uintptr(index), uintptr(unsafe.Pointer(val)))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tC.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tC.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) {\n\tsyscall.Syscall(gpGetNamedBufferPointerv, 3, uintptr(buffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func (native *OpenGL) GetProgramParameter(program uint32, param uint32) int32 {\n\tresult := int32(0)\n\tgl.GetProgramiv(program, param, &result)\n\treturn result\n}", "func GetNamedBufferParameteri64v(buffer uint32, pname uint32, params *int64) {\n\tC.glowGetNamedBufferParameteri64v(gpGetNamedBufferParameteri64v, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint64)(unsafe.Pointer(params)))\n}", "func GetNamedBufferParameteri64v(buffer uint32, pname uint32, params *int64) {\n\tC.glowGetNamedBufferParameteri64v(gpGetNamedBufferParameteri64v, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint64)(unsafe.Pointer(params)))\n}", "func NamedFramebufferRenderbuffer(framebuffer uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tsyscall.Syscall6(gpNamedFramebufferRenderbuffer, 4, uintptr(framebuffer), uintptr(attachment), uintptr(renderbuffertarget), uintptr(renderbuffer), 0, 0)\n}", "func GetNamedBufferParameteri64v(buffer uint32, pname uint32, params *int64) {\n\tsyscall.Syscall(gpGetNamedBufferParameteri64v, 3, uintptr(buffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func getParameter(request *http.Request, parameterName string) string {\n\tquery := request.URL.Query()\n\treturn query[parameterName][0]\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetAttribLocation(program uint32, name *int8) int32 {\n ret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func BlitNamedFramebuffer(readFramebuffer uint32, drawFramebuffer uint32, srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tC.glowBlitNamedFramebuffer(gpBlitNamedFramebuffer, (C.GLuint)(readFramebuffer), (C.GLuint)(drawFramebuffer), (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func BlitNamedFramebuffer(readFramebuffer uint32, drawFramebuffer uint32, srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tC.glowBlitNamedFramebuffer(gpBlitNamedFramebuffer, (C.GLuint)(readFramebuffer), (C.GLuint)(drawFramebuffer), (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformName, 5, uintptr(program), uintptr(uniformIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformName)), 0)\n}", "func (r *Request) GetParam(name string) string {\n if r.Params == nil || len(r.Params) == 0 {\n return \"\"\n }\n params, ok := r.Params[name]\n if !ok || len(params) == 0 {\n return \"\"\n }\n return params[0]\n}", "func GetTexParameterfv(dst []float32, target, pname Enum) {\n\tgl.GetTexParameterfv(uint32(target), uint32(pname), &dst[0])\n}", "func (hc *HTTPContext) GetParam(key string) string {\n\tparams := httprouter.ParamsFromContext(hc.R.Context())\n\treturn params.ByName(key)\n}", "func (c *Context)Param(key string) string{\n\tvalue, _ := c.Params[key]\n\treturn value\n}", "func GetMultisamplefv(pname uint32, index uint32, val *float32) {\n\tC.glowGetMultisamplefv(gpGetMultisamplefv, (C.GLenum)(pname), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(val)))\n}", "func GetMultisamplefv(pname uint32, index uint32, val *float32) {\n\tC.glowGetMultisamplefv(gpGetMultisamplefv, (C.GLenum)(pname), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(val)))\n}", "func (rc *RemoteConfig) GetParam(key string, def string) string {\n\tparam, ok := rc.Params[key]\n\tif !ok {\n\t\treturn def\n\t}\n\treturn param\n}", "func GetParam(www http.ResponseWriter, req *http.Request, name string, dflt string) (rv string) {\n\tfound := false\n\tvalue := dflt\n\n\tmethod := req.Method\n\tif dbFlag[\"GetVal\"] {\n\t\tfmt.Printf(\"GetVar name=%s req.Method %s AT:%s\\n\", name, method, godebug.LF())\n\t}\n\tif method == \"POST\" || method == \"PUT\" {\n\t\tif str := req.PostFormValue(name); str != \"\" {\n\t\t\tvalue = str\n\t\t\tfound = true\n\t\t}\n\t} else if method == \"GET\" || method == \"DELETE\" {\n\t\tif dbFlag[\"GetVal\"] {\n\t\t\tfmt.Printf(\"AT:%s\\n\", godebug.LF())\n\t\t}\n\t\tqq := req.URL.Query()\n\t\tstrArr, ok := qq[name]\n\t\tif dbFlag[\"GetVal\"] {\n\t\t\tfmt.Printf(\"AT:%s strArr = %s ok = %v\\n\", godebug.LF(), godebug.SVar(strArr), ok)\n\t\t}\n\t\tif ok {\n\t\t\tif dbFlag[\"GetVal\"] {\n\t\t\t\tfmt.Printf(\"AT:%s\\n\", godebug.LF())\n\t\t\t}\n\t\t\tif len(strArr) > 0 {\n\t\t\t\tif dbFlag[\"GetVal\"] {\n\t\t\t\t\tfmt.Printf(\"AT:%s\\n\", godebug.LF())\n\t\t\t\t}\n\t\t\t\tvalue = strArr[0]\n\t\t\t\tfound = true\n\t\t\t} else {\n\t\t\t\tif dbFlag[\"GetVal\"] {\n\t\t\t\t\tfmt.Printf(\"AT:%s\\n\", godebug.LF())\n\t\t\t\t}\n\t\t\t\tfmt.Fprintf(os.Stderr, \"Multiple values for [%s]\\n\", name)\n\t\t\t\tfound = false\n\t\t\t}\n\t\t}\n\t}\n\tif found {\n\t\trv = value\n\t}\n\treturn\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (c *Ctx) Param(name string) string {\n\n\tfor _, entry := range c.params {\n\t\tif entry.Key == name {\n\t\t\treturn entry.Value\n\t\t}\n\t}\n\n\treturn blank\n}", "func (c *Context) Param(name string) string {\n\tfor i, n := range c.pnames {\n\t\tif n == name {\n\t\t\treturn c.pvalues[i]\n\t\t}\n\t}\n\treturn \"\"\n}", "func GetFramebufferAttachmentParameteriv(target uint32, attachment uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetFramebufferAttachmentParameteriv, 4, uintptr(target), uintptr(attachment), uintptr(pname), uintptr(unsafe.Pointer(params)), 0, 0)\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tsyscall.Syscall9(gpGetActiveUniform, 7, uintptr(program), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(xtype)), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func (debugging *debuggingOpenGL) GetShaderParameter(shader uint32, param uint32) int32 {\n\tdebugging.recordEntry(\"GetShaderParameter\", shader, param)\n\tresult := debugging.gl.GetShaderParameter(shader, param)\n\tdebugging.recordExit(\"GetShaderParameter\", result)\n\treturn result\n}", "func BindFragDataLocationIndexed(program uint32, colorNumber uint32, index uint32, name *int8) {\n C.glowBindFragDataLocationIndexed(gpBindFragDataLocationIndexed, (C.GLuint)(program), (C.GLuint)(colorNumber), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (am AuthManager) readParam(name string, ctx *Ctx) (output string) {\n\tif cookie := ctx.Cookie(name); cookie != nil {\n\t\toutput = cookie.Value\n\t}\n\treturn\n}", "func (native *OpenGL) GetShaderParameter(shader uint32, param uint32) int32 {\n\tresult := int32(0)\n\tgl.GetShaderiv(shader, param, &result)\n\treturn result\n}", "func (c *Context) Param(name string) string {\n\treturn c.Params.Get(name)\n}", "func GetParam(name string, r *http.Request, index ...int) string {\n\tif params := r.Context().Value(ParamsKey); params != nil {\n\t\tparams := params.(Params)\n\t\tif name != \"*\" {\n\t\t\tname = \":\" + name\n\t\t}\n\t\tif param := params[name]; param != nil {\n\t\t\tswitch param := param.(type) {\n\t\t\tcase []string:\n\t\t\t\tif len(index) > 0 {\n\t\t\t\t\tif index[0] < len(param) {\n\t\t\t\t\t\treturn param[index[0]]\n\t\t\t\t\t}\n\t\t\t\t\treturn \"\"\n\t\t\t\t}\n\t\t\t\treturn param[0]\n\t\t\tdefault:\n\t\t\t\treturn param.(string)\n\t\t\t}\n\t\t}\n\t}\n\treturn \"\"\n}" ]
[ "0.64498115", "0.6416521", "0.63350266", "0.63350266", "0.6318298", "0.62438136", "0.61696744", "0.61696744", "0.6121792", "0.6121792", "0.5964519", "0.58307225", "0.5809268", "0.5780497", "0.57453966", "0.5676071", "0.56675863", "0.56675863", "0.5664864", "0.56345046", "0.5579424", "0.5539457", "0.5539457", "0.55327934", "0.5531088", "0.5500222", "0.5477897", "0.5453986", "0.5449059", "0.5448366", "0.54222786", "0.53873736", "0.53804344", "0.5370726", "0.5364326", "0.5361838", "0.5361838", "0.5353361", "0.5353361", "0.5348572", "0.53394574", "0.5323585", "0.5311914", "0.53093326", "0.53015864", "0.53015864", "0.5300751", "0.5293229", "0.52892435", "0.52847886", "0.52622277", "0.52597535", "0.52597535", "0.52483225", "0.52483225", "0.52336216", "0.52314854", "0.52314854", "0.5230167", "0.5214869", "0.5210677", "0.52097684", "0.5185287", "0.51828307", "0.51781833", "0.51781833", "0.5167613", "0.5165171", "0.5160691", "0.5160691", "0.51443374", "0.5138102", "0.5129528", "0.51270473", "0.51270473", "0.5117509", "0.51068825", "0.51068825", "0.5104075", "0.5103785", "0.508425", "0.50583786", "0.5046134", "0.5043179", "0.5043179", "0.50404465", "0.5039855", "0.5037054", "0.5037054", "0.5023666", "0.50190383", "0.5016392", "0.5015122", "0.5012993", "0.5012225", "0.5009522", "0.4998278", "0.4980466", "0.4967109" ]
0.50718176
82
check if the rendering context has not been lost due to software or hardware issues
func GetGraphicsResetStatus() uint32 { ret := C.glowGetGraphicsResetStatus(gpGetGraphicsResetStatus) return (uint32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (gpu GPU) IsStuck() bool {\n\treturn gpu.HashRate == 0\n}", "func (self *Graphics) PendingDestroy() bool{\n return self.Object.Get(\"pendingDestroy\").Bool()\n}", "func IsRenderbuffer(renderbuffer uint32) bool {\n ret := C.glowIsRenderbuffer(gpIsRenderbuffer, (C.GLuint)(renderbuffer))\n return ret == TRUE\n}", "func GlobalMemoryStatusEx(lpBuffer *MEMORYSTATUSEX) bool {\n\tret1 := syscall3(globalMemoryStatusEx, 1,\n\t\tuintptr(unsafe.Pointer(lpBuffer)),\n\t\t0,\n\t\t0)\n\treturn ret1 != 0\n}", "func (b *binding) isScreenUnlocked(ctx context.Context) (bool, error) {\n\tscreenState, err := b.getScreenState(ctx)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\treturn screenState == screenOnUnlocked, nil\n}", "func (gl *WebGL) IsUndefined() bool {\n\treturn gl.context.IsUndefined()\n}", "func (native *OpenGL) EndConditionalRender() {\n\tgl.EndConditionalRender()\n}", "func checkNotActive() error {\n\toperationDetails := activeOperation\n\tif operationDetails != nil {\n\t\tselect {\n\t\tcase <-operationDetails.exportDone:\n\t\t\t// nil-out any stale operation\n\t\t\tactiveOperation = nil\n\t\tdefault:\n\t\t\tif operationDetails.isRestore {\n\t\t\t\treturn fmt.Errorf(\"restore operation already in progress for height %d\", operationDetails.blockHeight)\n\t\t\t} else {\n\t\t\t\treturn fmt.Errorf(\"export operation already in progress for height %d\", operationDetails.blockHeight)\n\t\t\t}\n\t\t}\n\t}\n\treturn nil\n}", "func (renderbuffer Renderbuffer) IsRenderbuffer() bool {\n\treturn gl.IsRenderbuffer(uint32(renderbuffer))\n}", "func IsWin() bool { return false }", "func IsRenderbuffer(renderbuffer uint32) bool {\n\tret, _, _ := syscall.Syscall(gpIsRenderbuffer, 1, uintptr(renderbuffer), 0, 0)\n\treturn ret != 0\n}", "func IsRenderbuffer(renderbuffer Uint) Boolean {\n\tcrenderbuffer, _ := (C.GLuint)(renderbuffer), cgoAllocsUnknown\n\t__ret := C.glIsRenderbuffer(crenderbuffer)\n\t__v := (Boolean)(__ret)\n\treturn __v\n}", "func IsRenderbuffer(renderbuffer uint32) bool {\n\tret := C.glowIsRenderbuffer(gpIsRenderbuffer, (C.GLuint)(renderbuffer))\n\treturn ret == TRUE\n}", "func IsRenderbuffer(renderbuffer uint32) bool {\n\tret := C.glowIsRenderbuffer(gpIsRenderbuffer, (C.GLuint)(renderbuffer))\n\treturn ret == TRUE\n}", "func tryAddVboStock(vboBufferCheckTimestamp *time.Time) {\r\n\tif time.Since(*vboBufferCheckTimestamp) > time.Second {\r\n\t\t*vboBufferCheckTimestamp = time.Now()\r\n\t\tvboManager := graphics.GetVboManager()\r\n\t\tif vboManager.Len() < 16 {\r\n\t\t\tvboManager.Enlarge(32)\r\n\t\t}\r\n\t}\r\n}", "func compareGraphicsMemoryBeforeAfter(ctx context.Context, payload func() error, backend Backend, roundedWidth, roundedHeight int) (err error) {\n\tvar before, during, after int\n\n\tif before, err = readStableObjectCount(ctx, backend, roundedWidth, roundedHeight); err != nil {\n\t\treturn errors.Wrap(err, \"failed to get the framebuffer object count\")\n\t}\n\n\ttesting.ContextLog(ctx, \"Running the payload() and measuring the number of graphics objects during its execution\")\n\tc := make(chan error)\n\tgo func(c chan error) {\n\t\tc <- payload()\n\t}(c)\n\t// Note: We don't wait for the ReadFramebufferCount() to finish, just keep\n\t// measuring until we get a non-zero value in during, for further comparison\n\t// below.\n\tgo func() {\n\t\tconst pollTimeout = 10 * time.Second\n\t\tconst pollInterval = 100 * time.Millisecond\n\t\t_ = testing.Poll(ctx, func(ctx context.Context) error {\n\t\t\t// TODO(crbug.com/1047514): instead of blindly sampling the amount of\n\t\t\t// objects during the test and comparing them further down, verify them\n\t\t\t// here directly.\n\t\t\tif during, _ = backend.ReadFramebufferCount(ctx, roundedWidth, roundedHeight); during == before {\n\t\t\t\treturn errors.New(\"Still waiting for graphics objects\")\n\t\t\t}\n\t\t\treturn nil\n\t\t}, &testing.PollOptions{Timeout: pollTimeout, Interval: pollInterval})\n\t}()\n\terr = <-c\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif after, err = readStableObjectCount(ctx, backend, roundedWidth, roundedHeight); err != nil {\n\t\treturn errors.Wrap(err, \"failed to get the framebuffer object count\")\n\t}\n\tif before != after {\n\t\treturn errors.Wrapf(err, \"graphics objects of size %d x %d do not coincide: before=%d, after=%d\", roundedWidth, roundedHeight, before, after)\n\t}\n\tif during == before {\n\t\treturn errors.Wrapf(err, \"graphics objects of size %d x %d did not increase during play back: before=%d, during=%d\", roundedWidth, roundedHeight, before, during)\n\t}\n\ttesting.ContextLogf(ctx, \"Graphics objects of size %d x %d before=%d, during=%d, after=%d\", roundedWidth, roundedHeight, before, during, after)\n\treturn nil\n}", "func IsRenderbuffer(rb Renderbuffer) bool {\n\treturn gl.IsRenderbuffer(rb.Value)\n}", "func monitorGraphicsMemoryDuring(ctx context.Context, payload func() error, backend Backend, roundedSizes []Size, threshold int) (err error) {\n\ttesting.ContextLog(ctx, \"Running the payload() and measuring the number of graphics objects during its execution\")\n\tc := make(chan error)\n\tgo func(c chan error) {\n\t\tc <- payload()\n\t}(c)\n\n\tconst pollInterval = 1 * time.Second\n\tticker := time.NewTicker(pollInterval)\n\tfor {\n\t\tselect {\n\t\tcase <-ctx.Done():\n\t\t\tticker.Stop()\n\t\t\treturn errors.New(\"test timed out\")\n\t\tcase pErr := <-c:\n\t\t\tticker.Stop()\n\t\t\treturn pErr\n\t\tcase <-ticker.C:\n\t\t\tfor _, roundedSize := range roundedSizes {\n\t\t\t\tcount, _ := backend.ReadFramebufferCount(ctx, roundedSize.Width, roundedSize.Height)\n\t\t\t\tif count > threshold {\n\n\t\t\t\t\t// TODO(mcasas): find a way to kill payload() at this point.\n\t\t\t\t\tticker.Stop()\n\t\t\t\t\terr := errors.Errorf(\"too many objects of size %d x %d, got: %d, threshold: %d\", roundedSize.Width, roundedSize.Height, count, threshold)\n\n\t\t\t\t\tselect {\n\t\t\t\t\tcase <-c:\n\t\t\t\t\tcase <-ctx.Done():\n\t\t\t\t\t}\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "func IsRendered(wid fyne.Widget) bool {\n\trenderersLock.RLock()\n\t_, found := renderers[wid]\n\trenderersLock.RUnlock()\n\treturn found\n}", "func (e *errorCache) needsPrinting() bool {\n\tnow := time.Now()\n\tif now.Sub(e.lastPrinted) < (time.Duration(5) * time.Minute) {\n\t\treturn false\n\t}\n\te.lastPrinted = now\n\treturn false\n}", "func (self *Graphics) DestroyPhase() bool{\n return self.Object.Get(\"destroyPhase\").Bool()\n}", "func (c *cursor) usable() bool {\n\treturn atomic.LoadUint32(&c.useState) == 1\n}", "func (debugging *debuggingOpenGL) CheckFramebufferStatus(target uint32) uint32 {\n\tdebugging.recordEntry(\"CheckFramebufferStatus\", target)\n\tresult := debugging.gl.CheckFramebufferStatus(target)\n\tdebugging.recordExit(\"CheckFramebufferStatus\")\n\treturn result\n}", "func IsWindows() bool { return false }", "func (native *OpenGL) CheckFramebufferStatus(target uint32) uint32 {\n\treturn gl.CheckFramebufferStatus(target)\n}", "func IsAvailable() bool {\n\tif kernel32, kernel32Err := syscall.LoadDLL(\"kernel32.dll\"); kernel32Err == nil {\n\t\tif _, vAllocErr := kernel32.FindProc(\"VirtualAlloc\"); vAllocErr != nil {\n\t\t\tfmt.Printf(\"[-] VirtualAlloc error: %s\", vAllocErr.Error())\n\t\t\treturn false\n\t\t}\n\t\tif ntdll, ntdllErr := syscall.LoadDLL(\"ntdll.dll\"); ntdllErr == nil {\n\t\t\tif _, rtlCopyMemErr := ntdll.FindProc(\"RtlCopyMemory\"); rtlCopyMemErr == nil {\n\t\t\t\treturn true\n\t\t\t} else {\n\t\t\t\tfmt.Printf(\"[-] RtlCopyMemory error: %s\", rtlCopyMemErr.Error())\n\t\t\t}\n\t\t}\n\t} else {\n\t\tfmt.Printf(\"[-] LoadDLL error: %s\", kernel32Err.Error())\n\t}\n\treturn false\n}", "func WasInit() bool {\n\treturn int(C.TTF_WasInit()) != 0\n}", "func (i *Image) IsInvalidated() (bool, error) {\n\t// FlushCommands is required because c.offscreen.impl might not have an actual texture.\n\tif err := graphics.FlushCommands(); err != nil {\n\t\treturn false, err\n\t}\n\tif !IsRestoringEnabled() {\n\t\treturn false, nil\n\t}\n\n\treturn i.image.IsInvalidated(), nil\n}", "func (gWal *GenericWAL) IsLostOwnership() bool {\n // FIXME (bvk) This is not thread-safe.\n return gWal.lostOwnership\n}", "func (i *Image) hasDependency() bool {\n\tif i.stale {\n\t\treturn false\n\t}\n\treturn len(i.drawImageHistory) > 0\n}", "func (vs *ViewServer) isdead() bool {\n\treturn atomic.LoadInt32(&vs.dead) != 0\n}", "func (vs *ViewServer) isdead() bool {\n\treturn atomic.LoadInt32(&vs.dead) != 0\n}", "func (vs *ViewServer) isdead() bool {\n\treturn atomic.LoadInt32(&vs.dead) != 0\n}", "func (lw *LogWriter) Good() bool {\n\treturn lw.state == nil\n}", "func (b *binding) getScreenState(ctx context.Context) (int, error) {\n\tres, err := b.Shell(\"dumpsys\", \"window\").Call(ctx)\n\tif err != nil {\n\t\treturn -1, err\n\t}\n\n\tscreenStateMatch := screenStateRegex.FindStringSubmatch(res)\n\tscreenState := false\n\tswitch {\n\tcase screenStateMatch == nil:\n\t\treturn -1, log.Err(ctx, ErrScreenState, \"\")\n\tcase screenStateMatch[1] == \"true\":\n\t\tscreenState = true\n\t}\n\n\tlockStateMatch := lockStateRegex.FindStringSubmatch(res)\n\tlockState := false\n\tswitch {\n\tcase lockStateMatch == nil:\n\t\treturn -1, log.Err(ctx, ErrScreenState, \"Unable to determine lock state\")\n\tcase lockStateMatch[1] == \"true\":\n\t\tlockState = true\n\t}\n\n\tswitch {\n\tcase screenState && lockState:\n\t\treturn screenOnLocked, nil\n\tcase screenState:\n\t\treturn screenOnUnlocked, nil\n\tcase lockState:\n\t\treturn screenOffLocked, nil\n\tdefault:\n\t\treturn screenOffUnlocked, nil\n\t}\n}", "func IsAvailable() bool {\n\tvar kernel32Err, ntdllErr, rtlCopyMemErr, vAllocErr error\n\tkernel32, kernel32Err = syscall.LoadDLL(\"kernel32.dll\")\n\tntdll, ntdllErr = syscall.LoadDLL(\"ntdll.dll\")\n\tVirtualAlloc, vAllocErr = kernel32.FindProc(\"VirtualAlloc\")\n\tRtlCopyMemory, rtlCopyMemErr = ntdll.FindProc(\"RtlCopyMemory\")\n\tif kernel32Err != nil && ntdllErr != nil && rtlCopyMemErr != nil && vAllocErr != nil {\n\t\treturn false\n\t}\n\treturn true\n}", "func NeedFrame(name string) bool {\n\t_, ok := noFrameWindowFuncs[strings.ToLower(name)]\n\treturn !ok\n}", "func (self *Graphics) OutOfCameraBoundsKill() bool{\n return self.Object.Get(\"outOfCameraBoundsKill\").Bool()\n}", "func GetGraphicsResetStatus() uint32 {\n\tret, _, _ := syscall.Syscall(gpGetGraphicsResetStatus, 0, 0, 0, 0)\n\treturn (uint32)(ret)\n}", "func NeedsUpdate(stub string) bool {\n\treturn DefaultContext.NeedsUpdate(stub)\n}", "func fixMemorySwappiness(resources *containertypes.Resources) {\n\tif resources.MemorySwappiness != nil && *resources.MemorySwappiness == -1 {\n\t\tresources.MemorySwappiness = nil\n\t}\n}", "func CheckReloadProcess() bool {\n\treloadMutex.Lock()\n\tdefer reloadMutex.Unlock()\n\treturn reloadProcess\n}", "func (sb *shardBuffer) shouldBufferLocked(failoverDetected bool) bool {\n\tswitch s := sb.state; {\n\tcase s == stateIdle && !failoverDetected:\n\t\t// No failover in progress.\n\t\treturn false\n\tcase s == stateIdle && failoverDetected:\n\t\t// Not buffering yet, but new failover detected.\n\t\treturn true\n\tcase s == stateBuffering:\n\t\t// Failover in progress.\n\t\treturn true\n\tcase s == stateDraining && !failoverDetected:\n\t\t// Draining. Non-failover related requests can pass through.\n\t\treturn false\n\tcase s == stateDraining && failoverDetected:\n\t\t// Possible race between request which saw failover-related error and the\n\t\t// end of the failover. Do not buffer and let vtgate retry immediately.\n\t\treturn false\n\t}\n\tpanic(\"BUG: All possible states must be covered by the switch expression above.\")\n}", "func (s *windowState) Dispose() {\n\t// noop\n}", "func (px *Paxos) isdead() bool {\n return atomic.LoadInt32(&px.dead) != 0\n}", "func CheckUEFI() error {\n\tcmd := exec.Command(\"dmesg\")\n\n\tout, err := cmd.Output()\n\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tkernelRingBuffer := strings.Split(string(out),\"\\n\")\n\tkernelRingBuffer = kernelRingBuffer[:len(kernelRingBuffer)-1]\n\n\tfor _, line := range kernelRingBuffer {\n\t\tif strings.Contains(line, \"UEFI\") {\n\t\t\treturn nil\n\t\t}\n\t}\n\n\treturn fmt.Errorf(\"no entry in the kernel ring buffer refers to UEFI\")\n}", "func (this *Stats) LostAudioBuffers() int { return int(this.ptr.i_lost_abuffers) }", "func (b *GoGLBackendOffscreen) Delete() {\n\tgl.DeleteTextures(1, &b.offscrBuf.tex)\n\tgl.DeleteFramebuffers(1, &b.offscrBuf.frameBuf)\n\tgl.DeleteRenderbuffers(1, &b.offscrBuf.renderStencilBuf)\n}", "func _check_oom(tls *crt.TLS, _x unsafe.Pointer) {\n\tif _x == nil {\n\t\tcrt.Xfprintf(tls, (*crt.XFILE)(Xstderr), str(1151))\n\t\tcrt.Xexit(tls, int32(1))\n\t}\n}", "func isDraw(s Abs) bool {\n\tif s.err == nil {\n\t\treturn false\n\t}\n\t_, ok := s.err.(checkmateError)\n\treturn !ok\n}", "func IsHot() bool {\n\treturn js.Global.Get(\"hmrTrue\") != nil\n}", "func (engine *Engine) CheckMem() {\n\t// Todo test\n\tif !engine.initOptions.UseStore {\n\t\tlog.Println(\"Check virtualMemory...\")\n\n\t\tvmem, _ := mem.VirtualMemory()\n\t\tlog.Printf(\"Total: %v, Free: %v, UsedPercent: %f%%\\n\",\n\t\t\tvmem.Total, vmem.Free, vmem.UsedPercent)\n\n\t\tuseMem := fmt.Sprintf(\"%.2f\", vmem.UsedPercent)\n\t\tif useMem == \"99.99\" {\n\t\t\tengine.initOptions.UseStore = true\n\t\t\tengine.initOptions.StoreFolder = DefaultPath\n\t\t\t// os.MkdirAll(DefaultPath, 0777)\n\t\t}\n\t}\n}", "func qr_decoder_is_busy(p _QrDecoderHandle) int {\n\tv := C.qr_decoder_is_busy(C.QrDecoderHandle(p))\n\treturn int(v)\n}", "func (b *GoGLBackend) CanUseAsImage(b2 backendbase.Backend) bool {\n\t_, ok := b2.(*GoGLBackendOffscreen)\n\treturn ok\n}", "func VerifyGraphicsMemory(ctx context.Context, payload func() error, backend Backend, sizes []Size) (err error) {\n\ttesting.ContextLogf(ctx, \"Cooling down %v after log in\", coolDownTimeAfterLogin)\n\tif err := testing.Sleep(ctx, coolDownTimeAfterLogin); err != nil {\n\t\treturn errors.Wrap(err, \"error while cooling down after log in\")\n\t}\n\n\tvar roundedSizes []Size\n\tfor _, size := range sizes {\n\t\troundedSizes = append(roundedSizes, Size{Width: backend.Round(size.Width), Height: backend.Round(size.Height)})\n\t}\n\n\tif len(sizes) == 1 {\n\t\treturn compareGraphicsMemoryBeforeAfter(ctx, payload, backend, roundedSizes[0].Width, roundedSizes[0].Height)\n\t}\n\treturn monitorGraphicsMemoryDuring(ctx, payload, backend, roundedSizes, maxGraphicsObjects)\n}", "func IsLostOwnership(err error) bool {\n return err != nil && err.Error() == ErrLostOwnership.Error()\n}", "func (tv *TextView) NeedsRefresh() bool {\n\treturn tv.HasFlag(int(TextViewNeedsRefresh))\n}", "func (win *Window) IsDirty() bool {\n\tif win.dirty {\n\t\treturn true\n\t}\n\t// TODO loop child controls\n\treturn true\n}", "func (gm *GraphicsManager) ForceRender(compsToSend *common.Vector) {\n\thandlerIndex := 0\n\tdefer gm.handleClosedGraphicsHandler(handlerIndex)\n\n\tgm.Render(compsToSend)\n\tfor handlerIndex = range gm.resizelink {\n\t\tif gm.resizelink[handlerIndex] == nil {\n\t\t\tcontinue\n\t\t}\n\t\tgm.resizelink[handlerIndex] <- true\n\t}\n\n\tgm.justForcedARender = true\n\n}", "func (display smallEpd) waitUntilIdle() (err error) {\n\tlog.Debug(\"EPD42 WaitUntilIdle\")\n\tfor {\n\t\tbusy, err := display.driver.DigitalRead(display.BUSY)\n\t\tif !busy {\n\t\t\tbreak\n\t\t}\n\t\tif err != nil {\n\t\t\tfmt.Printf(\"Error checking bust %s\\n\", err.Error())\n\t\t}\n\t\tfmt.Printf(\".\")\n\t\ttime.Sleep(200 * time.Millisecond)\n\t}\n\tlog.Debug(\"EPD42 WaitUntilIdle End\")\n\treturn\n}", "func isUpdated() bool {\n\tupdated := true\n\tfor _, color := range rgb {\n\t\tif deviceTwinResult.Twin[color].Expected != nil &&\n\t\t\t((deviceTwinResult.Twin[color].Actual == nil && deviceTwinResult.Twin[color].Expected != nil) ||\n\t\t\t\tcompareValue(color)) {\n\t\t\tupdated = false\n\t\t\tbreak\n\t\t}\n\t}\n\treturn updated\n}", "func isInsufficientDevices(err error) bool {\n\treturn strings.Contains(err.Error(), \"Insufficient suitable allocatable extents for logical volume\")\n}", "func (c *Compiler) needsStackObjects() bool {\n\tif c.selectGC() != \"conservative\" {\n\t\treturn false\n\t}\n\tfor _, tag := range c.BuildTags {\n\t\tif tag == \"baremetal\" {\n\t\t\treturn false\n\t\t}\n\t}\n\n\treturn true\n}", "func (w *windowImpl) drawLoop() {\n\truntime.LockOSThread()\nouter:\n\tfor {\n\t\tselect {\n\t\tcase <-w.winClose:\n\t\t\tbreak outer\n\t\tcase <-w.publish:\n\t\t\tw.app.RunOnMain(func() {\n\t\t\t\ttheGPU.UseContext(w)\n\t\t\t\tgl.Flush()\n\t\t\t\tw.glw.SwapBuffers()\n\t\t\t\t// gl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)\n\t\t\t\ttheGPU.ClearContext(w)\n\t\t\t})\n\t\t\tw.publishDone <- oswin.PublishResult{}\n\t\t}\n\t}\n}", "func (i *InteractiveMode) Failed() bool {\n\treturn false\n}", "func (i *idlenessManagerImpl) tryEnterIdleMode() bool {\n\ti.idleMu.Lock()\n\tdefer i.idleMu.Unlock()\n\n\tif atomic.LoadInt32(&i.activeCallsCount) != -math.MaxInt32 {\n\t\t// We raced and lost to a new RPC. Very rare, but stop entering idle.\n\t\treturn false\n\t}\n\tif atomic.LoadInt32(&i.activeSinceLastTimerCheck) == 1 {\n\t\t// An very short RPC could have come in (and also finished) after we\n\t\t// checked for calls count and activity in handleIdleTimeout(), but\n\t\t// before the CAS operation. So, we need to check for activity again.\n\t\treturn false\n\t}\n\n\t// No new RPCs have come in since we last set the active calls count value\n\t// -math.MaxInt32 in the timer callback. And since we have the lock, it is\n\t// safe to enter idle mode now.\n\tif err := i.enforcer.enterIdleMode(); err != nil {\n\t\tlogger.Errorf(\"Failed to enter idle mode: %v\", err)\n\t\treturn false\n\t}\n\n\t// Successfully entered idle mode.\n\ti.actuallyIdle = true\n\treturn true\n}", "func isCursorExhausted(err error) bool {\n\treturn strings.Contains(err.Error(), \"EXHAUSTED_CURSOR\")\n}", "func (s *State) IsAbleToRecoverFromUnderstaffedState() bool {\n\ts.mtx.RLock()\n\tresult := len(s.ActivityProducers) >= s.chainParams.GeneralArbiters\n\ts.mtx.RUnlock()\n\treturn result\n}", "func (e *liveEngine) checkState() {\n\tfor _, inst := range e.currencyConversionEngine.conversionInstruments {\n\t\tif inst.Ask.Load() == 0.0 {\n\t\t\treturn\n\t\t}\n\t}\n\n\te.ready = true\n}", "func CheckFramebufferStatus(target uint32) uint32 {\n\tret, _, _ := syscall.Syscall(gpCheckFramebufferStatus, 1, uintptr(target), 0, 0)\n\treturn (uint32)(ret)\n}", "func (w *dewindow) realpaint(buf *demodel.CharBuffer, viewport *viewer.Viewport) {\n\tw.Lock()\n\tdefer w.Unlock()\n\n\tdefer func() {\n\t\tw.painting = false\n\t}()\n\tw.painting = true\n\n\tif w.buffer == nil {\n\t\treturn\n\t}\n\tdst := w.buffer.RGBA()\n\n\t// Fill the buffer with the window background colour before\n\t// drawing the web page on top of it.\n\t// This should logically be in the viewport code itself, but importing\n\t// kbmap to switch on the mode sentinals would result in a cyclical\n\t// import.\n\tif viewport.BackgroundMode != viewer.StableBackground {\n\t\tswitch viewport.GetKeyboardMode() {\n\t\tcase kbmap.InsertMode:\n\t\t\tdraw.Draw(dst, dst.Bounds(), &image.Uniform{renderer.InsertBackground}, image.ZP, draw.Src)\n\t\tcase kbmap.DeleteMode:\n\t\t\tdraw.Draw(dst, dst.Bounds(), &image.Uniform{renderer.DeleteBackground}, image.ZP, draw.Src)\n\t\tdefault:\n\t\t\tdraw.Draw(dst, dst.Bounds(), &image.Uniform{renderer.NormalBackground}, image.ZP, draw.Src)\n\t\t}\n\t} else {\n\t\tdraw.Draw(dst, dst.Bounds(), &image.Uniform{renderer.NormalBackground}, image.ZP, draw.Src)\n\t}\n\n\ts := w.sz.Size()\n\n\tcontentBounds := dst.Bounds()\n\ttagBounds := tagSize\n\t// ensure that the tag takes no more than half the window, so that the content doesn't get\n\t// drowned out by commands that output more to stderr than they should.\n\tif wHeight := s.Y; tagBounds.Max.Y > wHeight/2 {\n\t\ttagBounds.Max.Y = wHeight / 2\n\t}\n\tcontentBounds.Min.Y = tagBounds.Max.Y\n\n\ttagline.RenderInto(dst.SubImage(image.Rectangle{image.ZP, image.Point{s.X, tagBounds.Max.Y}}).(*image.RGBA), buf.Tagline, clipRectangle(w.sz, viewport))\n\tviewport.RenderInto(dst.SubImage(image.Rectangle{image.Point{0, tagBounds.Max.Y}, s}).(*image.RGBA), buf, clipRectangle(w.sz, viewport))\n\n\tw.Upload(image.Point{0, 0}, w.buffer, dst.Bounds())\n\tw.Publish()\n\treturn\n}", "func (ring *ringBuffer) isFull() bool {\n\tring.mutex.Lock()\n\tfull := !ring.spaceReady\n\tring.mutex.Unlock()\n\treturn full\n}", "func (obj *Device) GetSoftwareVertexProcessing() bool {\n\tret, _, _ := syscall.Syscall(\n\t\tobj.vtbl.GetSoftwareVertexProcessing,\n\t\t1,\n\t\tuintptr(unsafe.Pointer(obj)),\n\t\t0,\n\t\t0,\n\t)\n\treturn ret != 0\n}", "func pollEvents() {\n\tC.glfwPollEvents()\n}", "func (ils *idleLimitStrategy) idleMachinesScaleFactorExceeded() bool {\n\tidleScaleFactor := ils.config.Machine.GetIdleScaleFactor()\n\tif idleScaleFactor <= 0 {\n\t\treturn false\n\t}\n\n\tdesiredCapacity := int(float64(ils.data.InUse()) * idleScaleFactor)\n\n\treturn ils.data.Available() >= desiredCapacity\n}", "func (px *Paxos) isdead() bool {\n\treturn atomic.LoadInt32(&px.dead) != 0\n}", "func (px *Paxos) isdead() bool {\n\treturn atomic.LoadInt32(&px.dead) != 0\n}", "func (px *Paxos) isdead() bool {\n\treturn atomic.LoadInt32(&px.dead) != 0\n}", "func (px *Paxos) isdead() bool {\n\treturn atomic.LoadInt32(&px.dead) != 0\n}", "func (px *Paxos) isdead() bool {\n\treturn atomic.LoadInt32(&px.dead) != 0\n}", "func (px *Paxos) isdead() bool {\n\treturn atomic.LoadInt32(&px.dead) != 0\n}", "func (px *Paxos) isdead() bool {\n\treturn atomic.LoadInt32(&px.dead) != 0\n}", "func (px *Paxos) isdead() bool {\n\treturn atomic.LoadInt32(&px.dead) != 0\n}", "func (me TxsdPresentationAttributesGraphicsDisplay) IsRunIn() bool { return me.String() == \"run-in\" }", "func (u *VectorMemoryUnit) IsIdle() bool {\n\tu.isIdle = (u.numInstInFlight == 0) && (u.numTransactionInFlight == 0)\n\treturn u.isIdle\n}", "func isVfxtNotFoundReported(stdoutBuf bytes.Buffer, stderrBuf bytes.Buffer) bool {\n\tresultStr := GetErrorMatches(stdoutBuf, stderrBuf, matchVfxtNotFound)\n\treturn len(resultStr) > 0\n}", "func (m MinerInfo) StuckGPUs() int {\n\tvar total int\n\tfor _, gpu := range m.GPUS {\n\t\tif gpu.IsStuck() {\n\t\t\ttotal++\n\t\t}\n\t}\n\treturn total\n}", "func (w *GlfwWindow) PollEvents() {\n\n\tglfw.PollEvents()\n}", "func IsBuffer(buffer uint32) bool {\n ret := C.glowIsBuffer(gpIsBuffer, (C.GLuint)(buffer))\n return ret == TRUE\n}", "func (context *Context) Destroy() {\n\tcontext.destroyDeviceObjects(context.window.OpenGL())\n\tcontext.imguiContext.Destroy()\n}", "func isCommandStillInUse(id string) (bool, error) {\n\tdp, err := dbClient.GetDeviceProfilesByCommandId(id)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\tif len(dp) == 0 {\n\t\treturn false, err\n\t}\n\n\treturn true, err\n}", "func (g userGists) ComponentWillUnmount() {\n\tprintln(\"ComponentWillUnmount\")\n\t// TODO(bep): HTTP Cancelation\n}", "func (self *Graphics) OutOfBoundsKill() bool{\n return self.Object.Get(\"outOfBoundsKill\").Bool()\n}", "func IsBuffer(buffer Uint) Boolean {\n\tcbuffer, _ := (C.GLuint)(buffer), cgoAllocsUnknown\n\t__ret := C.glIsBuffer(cbuffer)\n\t__v := (Boolean)(__ret)\n\treturn __v\n}", "func (s *session) isLingering() bool {\n\ts.Lock()\n\tdefer s.Unlock()\n\treturn len(s.parties) == 0\n}", "func (kv *KVPaxos) isdead() bool {\n\treturn atomic.LoadInt32(&kv.dead) != 0\n}", "func (kv *KVPaxos) isdead() bool {\n\treturn atomic.LoadInt32(&kv.dead) != 0\n}", "func (p *Probe) isEnvoyReady() error {\n\tif p.NoEnvoy {\n\t\treturn nil\n\t}\n\tif p.Context == nil {\n\t\treturn p.checkEnvoyReadiness()\n\t}\n\tselect {\n\tcase <-p.Context.Done():\n\t\treturn fmt.Errorf(\"server is not live, current state is: %s\", admin.ServerInfo_DRAINING.String())\n\tdefault:\n\t\treturn p.checkEnvoyReadiness()\n\t}\n}", "func (context Context) IsUsingMouse() bool {\n\treturn imgui.CurrentIO().WantCaptureMouse()\n}", "func (DrawTexture) IsDrawAction() {}", "func (rc *ReconciliationContext) isReconcileFailed() bool {\n\treturn rc.syncCount == 0 && rc.deleteCount == 0 && rc.failCount > 0\n}" ]
[ "0.579846", "0.5629775", "0.54628766", "0.5373551", "0.5361275", "0.535214", "0.52925426", "0.52895516", "0.52871555", "0.5233222", "0.5172759", "0.51341826", "0.50674003", "0.50674003", "0.5044674", "0.4993991", "0.4954725", "0.49413443", "0.49400526", "0.49158683", "0.49027008", "0.48975933", "0.48953497", "0.48750183", "0.4832298", "0.48249665", "0.47885153", "0.477045", "0.4754316", "0.47508425", "0.4742584", "0.4742584", "0.4742584", "0.47422662", "0.47315404", "0.473026", "0.47294676", "0.47277668", "0.4725762", "0.47188333", "0.47174177", "0.47094914", "0.46866375", "0.4685379", "0.4680768", "0.46733683", "0.46710715", "0.46699715", "0.46648964", "0.46447384", "0.46349868", "0.46276814", "0.46260118", "0.4623397", "0.46170664", "0.46099976", "0.45984244", "0.45952842", "0.45898554", "0.45873317", "0.4581598", "0.45813608", "0.45631036", "0.45540816", "0.45436323", "0.4541391", "0.45393872", "0.45327237", "0.45099702", "0.45085108", "0.4507549", "0.45055303", "0.4504376", "0.45022863", "0.44965848", "0.44962552", "0.44962552", "0.44962552", "0.44962552", "0.44962552", "0.44962552", "0.44962552", "0.44962552", "0.44955626", "0.44926924", "0.4488898", "0.44840083", "0.44756114", "0.44742298", "0.4472552", "0.4472093", "0.4465591", "0.44631", "0.44546178", "0.44543454", "0.4451627", "0.4451627", "0.4439611", "0.44390517", "0.44334245", "0.4432919" ]
0.0
-1
retrieve information about implementationdependent support for internal formats
func GetInternalformativ(target uint32, internalformat uint32, pname uint32, count int32, params *int32) { C.glowGetInternalformativ(gpGetInternalformativ, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLenum)(pname), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func getSupportedInstrumentByName(name string) (iInfo instrumentInfo, err error) {\n\tfor _, i := range supportedInstruments {\n\t\tif i.name == name {\n\t\t\tiInfo = i\n\t\t\treturn\n\t\t}\n\t}\n\t// not found if we get to here\n\terr = fmt.Errorf(\"%s is not a supported instrument\", name)\n\treturn\n}", "func detectProvider(format string) (string, error) {\n\tswitch {\n\tcase format == FORMAT_SYSTEMD:\n\t\treturn FORMAT_SYSTEMD, nil\n\tcase format == FORMAT_UPSTART:\n\t\treturn FORMAT_UPSTART, nil\n\tcase os.Args[0] == \"systemd-exporter\":\n\t\treturn FORMAT_SYSTEMD, nil\n\tcase os.Args[0] == \"upstart-exporter\":\n\t\treturn FORMAT_UPSTART, nil\n\tcase env.Which(\"systemctl\") != \"\":\n\t\treturn FORMAT_SYSTEMD, nil\n\tcase env.Which(\"initctl\") != \"\":\n\t\treturn FORMAT_UPSTART, nil\n\tdefault:\n\t\treturn \"\", fmt.Errorf(\"Can't find init system provider\")\n\t}\n}", "func getSupportedExtensions() map[string][]string {\n\t// In future when list of extensions grow, it will make\n\t// more sense to populate it in a dynamic way.\n\n\t// These are RHCOS supported extensions.\n\t// Each extension keeps a list of packages required to get enabled on host.\n\treturn map[string][]string{\n\t\t\"wasm\": {\"crun-wasm\"},\n\t\t\"ipsec\": {\"NetworkManager-libreswan\", \"libreswan\"},\n\t\t\"usbguard\": {\"usbguard\"},\n\t\t\"kerberos\": {\"krb5-workstation\", \"libkadm5\"},\n\t\t\"kernel-devel\": {\"kernel-devel\", \"kernel-headers\"},\n\t\t\"sandboxed-containers\": {\"kata-containers\"},\n\t}\n}", "func Supported() bool { return true }", "func (oo *OnuDeviceEntry) GetPersIsExtOmciSupported() bool {\n\too.MutexPersOnuConfig.RLock()\n\tdefer oo.MutexPersOnuConfig.RUnlock()\n\tvalue := oo.SOnuPersistentData.PersIsExtOmciSupported\n\treturn value\n}", "func PlatformInfo() (platform, family, osVersion string, err error) {\n\tplatform, family, osVersion, err = host.PlatformInformation()\n\n\treturn\n}", "func (r Virtual_Disk_Image) GetSupportedHardware() (resp string, err error) {\n\terr = r.Session.DoRequest(\"SoftLayer_Virtual_Disk_Image\", \"getSupportedHardware\", nil, &r.Options, &resp)\n\treturn\n}", "func getPackageInfo(c nfpm.Config, format string) (*nfpm.Info, error) {\n\td, err := describeHead()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tv, err := getVersion(d)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tc.Version = v.String()\n\n\tinfo, err := c.Get(format)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tinfo = nfpm.WithDefaults(info)\n\n\tswitch format {\n\tcase \"deb\":\n\t\t// Ref: https://www.debian.org/doc/manuals/debian-faq/ch-pkg_basics.en.html#s-pkgname\n\t\tinfo.Target = fmt.Sprintf(\"%v_%v-%v_%v.%v\",\n\t\t\tinfo.Name,\n\t\t\tinfo.Version,\n\t\t\tinfo.Release,\n\t\t\tinfo.Arch,\n\t\t\tformat)\n\tcase \"rpm\":\n\t\t// Ref: http://ftp.rpm.org/max-rpm/ch-rpm-file-format.html\n\t\tinfo.Target = fmt.Sprintf(\"%v-%v-%v.%v.%v\",\n\t\t\tinfo.Name,\n\t\t\tinfo.Version,\n\t\t\tinfo.Release,\n\t\t\tinfo.Arch,\n\t\t\tformat)\n\tdefault:\n\t\treturn nil, fmt.Errorf(\"unknown package format: %v\", format)\n\t}\n\n\tif err = nfpm.Validate(info); err != nil {\n\t\treturn nil, err\n\t}\n\treturn info, nil\n}", "func GetCommonExtendedInfo() (map[string]string) {\n extendedInfo := map[string]string{\n \"csi_created_by_plugin_name\": CsiPluginName,\n \"csi_created_by_plugin_version\": Version,\n \"csi_created_by_plugin_git_hash\": Githash,\n \"csi_created_by_csi_version\": CsiVersion,\n }\n return extendedInfo\n}", "func GetInternalInfo(ctx context.Context, c *chrome.Conn) (*Info, error) {\n\tinfos, err := GetInfo(ctx, c)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tfor i := range infos {\n\t\tif infos[i].IsInternal {\n\t\t\treturn &infos[i], nil\n\t\t}\n\t}\n\treturn nil, errors.New(\"no internal display\")\n}", "func GetInternalformativ(target uint32, internalformat uint32, pname uint32, bufSize int32, params *int32) {\n\tsyscall.Syscall6(gpGetInternalformativ, 5, uintptr(target), uintptr(internalformat), uintptr(pname), uintptr(bufSize), uintptr(unsafe.Pointer(params)), 0)\n}", "func (s *Service) IsSupported() bool {\n\tfileExists := s.d.isFileExists(\"/data/local/tmp/minicap\")\n\tif !fileExists {\n\t\terr := s.Install()\n\t\tif err != nil {\n\t\t\treturn false\n\t\t}\n\t}\n\tout, err := s.d.shell(\"LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -i\")\n\tif err != nil {\n\t\treturn false\n\t}\n\tsupported := strings.Contains(out, \"height\") && strings.Contains(out, \"width\")\n\treturn supported\n}", "func (h *UnsupportedHandler) GetOperationalInfo() (info.DataSecAtRestStatus, string) {\n\treturn info.DataSecAtRestStatus_DATASEC_AT_REST_DISABLED,\n\t\t\"Current filesystem does not support encryption\"\n}", "func getHardwareInterface(name string) (string, []byte) { return \"\", nil }", "func (*Entity_CompatibilityStatus_Compatibility) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_dataplex_v1_metadata_proto_rawDescGZIP(), []int{11, 0, 0}\n}", "func moduleInfo(um *internal.UnitMeta) *internal.ModuleInfo {\n\treturn &internal.ModuleInfo{\n\t\tModulePath: um.ModulePath,\n\t\tVersion: um.Version,\n\t\tCommitTime: um.CommitTime,\n\t\tIsRedistributable: um.IsRedistributable,\n\t\tSourceInfo: um.SourceInfo,\n\t}\n}", "func IsSupported() bool {\n\treturn true\n}", "func IsSupported() bool {\n\treturn true\n}", "func GetOSInfo() (string, string, string) {\n\tid := \"debian\"\n\tversion := \"0.0\"\n\tcodename := \"none\"\n\tfile, err := os.Open(\"/etc/os-release\")\n\tif err != nil {\n\t\tfile, err = os.Open(\"/usr/lib/os-release\")\n\t\tif err != nil {\n\t\t\tfile, err = os.Open(\"../../data/os-release\")\n\t\t}\n\t}\n\n\tif err == nil {\n\t\tscanner := bufio.NewScanner(file)\n\t\tfor scanner.Scan() {\n\t\t\ttext := scanner.Text()\n\t\t\tif strings.HasPrefix(text, \"ID=\") {\n\t\t\t\tid = strings.TrimPrefix(text, \"ID=\")\n\t\t\t} else if strings.HasPrefix(text, \"VERSION_ID=\") {\n\t\t\t\tversion = strings.TrimPrefix(text, \"VERSION_ID=\\\"\")\n\t\t\t\tversion = version[0 : len(version)-1]\n\t\t\t} else if strings.HasPrefix(text, \"VERSION_CODENAME=\") {\n\t\t\t\tcodename = strings.TrimPrefix(text, \"VERSION_CODENAME=\")\n\t\t\t}\n\t\t}\n\n\t\tif err := scanner.Err(); err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t}\n\treturn id, version, codename\n}", "func getChecktypeInfo(imageURI string) (checktypeName string, checktypeVersion string) {\n\t// https://github.com/docker/distribution/blob/master/reference/reference.go#L1-L24\n\tre := regexp.MustCompile(`(?P<checktype_name>[a-z0-9]+(?:[-_.][a-z0-9]+)*):(?P<checktype_version>[\\w][\\w.-]{0,127})`)\n\n\tmatches := re.FindStringSubmatch(imageURI)\n\n\tchecktypeName = matches[1]\n\tchecktypeVersion = matches[2]\n\n\treturn\n}", "func DetectFormat(filePath string) (*FormatInfo, error) {\n\treturn detectFormat(filePath, ENCAPSULATION_NONE, true)\n}", "func hwinfo() string {\n\tb1, err := exec.Command(\"vcgencmd\", \"measure_clock\", \"arm\").Output()\n\tif err != nil {\n\t\tlog.Println(err)\n\t}\n\tb2, err := exec.Command(\"vcgencmd\", \"measure_clock\", \"core\").Output()\n\tif err != nil {\n\t\tlog.Println(err)\n\t}\n\tif len(b1) < 17 || len(b2) < 17 {\n\t\treturn \"bad len\"\n\t}\n\treturn fmt.Sprintf(\"arm=%sMhz core=%sMHz\", b1[14:17], b2[13:16])\n}", "func getDeviceInfo(nanos *ledger.NanoS) error {\n\terr := nanos.GetVersion()\n\tif err != nil {\n\t\tlog.Println(errGetAppVersion)\n\t\treturn err\n\t}\n\terr = nanos.GetConfiguration()\n\tif err != nil {\n\t\tlog.Println(errGetConfig)\n\t\treturn err\n\t}\n\treturn nil\n}", "func ImplementationWrapAlgInfo(pointer unsafe.Pointer) (AlgInfo, error) {\n\tctx := (*C.vscf_impl_t)(pointer)\n\tif !C.vscf_alg_info_is_implemented(ctx) {\n\t\treturn nil, &FoundationError{-1, \"Given C implementation does not implement interface AlgInfo.\"}\n\t}\n\n\timplTag := C.vscf_impl_tag(ctx)\n\tswitch implTag {\n\tcase C.vscf_impl_tag_COMPOUND_KEY_ALG_INFO:\n\t\treturn NewCompoundKeyAlgInfoWithCtx(unsafe.Pointer(ctx)), nil\n\tcase C.vscf_impl_tag_HYBRID_KEY_ALG_INFO:\n\t\treturn NewHybridKeyAlgInfoWithCtx(unsafe.Pointer(ctx)), nil\n\tcase C.vscf_impl_tag_SIMPLE_ALG_INFO:\n\t\treturn NewSimpleAlgInfoWithCtx(unsafe.Pointer(ctx)), nil\n\tcase C.vscf_impl_tag_HASH_BASED_ALG_INFO:\n\t\treturn NewHashBasedAlgInfoWithCtx(unsafe.Pointer(ctx)), nil\n\tcase C.vscf_impl_tag_CIPHER_ALG_INFO:\n\t\treturn NewCipherAlgInfoWithCtx(unsafe.Pointer(ctx)), nil\n\tcase C.vscf_impl_tag_SALTED_KDF_ALG_INFO:\n\t\treturn NewSaltedKdfAlgInfoWithCtx(unsafe.Pointer(ctx)), nil\n\tcase C.vscf_impl_tag_PBE_ALG_INFO:\n\t\treturn NewPbeAlgInfoWithCtx(unsafe.Pointer(ctx)), nil\n\tcase C.vscf_impl_tag_ECC_ALG_INFO:\n\t\treturn NewEccAlgInfoWithCtx(unsafe.Pointer(ctx)), nil\n\tdefault:\n\t\treturn nil, &FoundationError{-1, \"Unexpected C implementation cast to the Go implementation.\"}\n\t}\n}", "func IsSupported(p string) bool {\n\tswitch path.Ext(p) {\n\tcase \"\", \".gz\", \".bz2\", \".gpg\", \".xz\":\n\t\treturn true\n\t}\n\treturn false\n}", "func getSpecType(file *anypoint.ExchangeFile, specContent []byte) (string, error) {\n\tif file.Classifier == apic.Wsdl {\n\t\treturn apic.Wsdl, nil\n\t}\n\n\tif specContent != nil {\n\t\tjsonMap := make(map[string]interface{})\n\t\terr := json.Unmarshal(specContent, &jsonMap)\n\t\tif err != nil {\n\t\t\treturn \"\", err\n\t\t}\n\t\tif _, isSwagger := jsonMap[\"swagger\"]; isSwagger {\n\t\t\treturn apic.Oas2, nil\n\t\t} else if _, isOpenAPI := jsonMap[\"openapi\"]; isOpenAPI {\n\t\t\treturn apic.Oas3, nil\n\t\t}\n\t}\n\treturn \"\", nil\n}", "func getFormOfAvailableFormats(youtubeUrl string) map[string]map[string]string {\n\tyoutubeDownloader := GetConfVal(\"youtubeDownloader\")\n\tyoutubeDownloaderDir := GetConfVal(\"youtubeDownloaderDir\")\n\tcmd := exec.Command(youtubeDownloader,\n\t\t\"--cache-dir\", youtubeDownloaderDir,\n\t\t\"--no-playlist\",\n\t\t\"-F\", youtubeUrl)\n\texecCmd := NewExecCommand(cmd)\n\n\texecCmd.execCommandWithCancel()\n\n\tw := parseStatOutput(execCmd.totalStdout, execCmd.totalStderr, execCmd.err)\n\n\tselects := make(map[string]map[string]string)\n\n\tisChecked := true\n\tfor _, row := range w {\n\t\tdescr := toVideoDescription(row)\n\n\t\tname := descr[0]\n\n\t\tv := make(map[string]string)\n\t\tif isChecked {\n\t\t\tv[\"isChecked\"] = \"true\"\n\t\t}\n\t\tv[\"format\"] = descr[1]\n\t\tv[\"value\"] = descr[2]\n\t\tselects[name] = v\n\n\t\tisChecked = false\n\t}\n\n\treturn selects\n}", "func ExtractSpecInfo(spec []byte) (*SpecInfo, error) {\n\treturn ExtractSpecInfoWithDocumentCheck(spec, false)\n}", "func curate(file *pe.File) []byte {\n\n\tm := make(map[string]interface{})\n\tfields := make([]string, 0)\n\n\tif file.HasDOSHdr {\n\t\tm[\"dos_header\"] = file.DOSHeader\n\t\tfields = append(fields, \"dos_header\")\n\t}\n\n\tif file.HasRichHdr {\n\t\tm[\"rich_header\"] = file.RichHeader\n\t\tfields = append(fields, \"rich_header\")\n\t}\n\n\tif file.HasCOFF {\n\t\tm[\"coff\"] = file.COFF\n\t\tfields = append(fields, \"coff\")\n\t}\n\n\tif file.HasNTHdr {\n\t\tm[\"nt_header\"] = file.NtHeader\n\t\tfields = append(fields, \"nt_header\")\n\t}\n\n\tif file.HasSections {\n\t\tm[\"sections\"] = file.Sections\n\t\tfields = append(fields, \"sections\")\n\t}\n\n\tif file.HasExport {\n\t\tm[\"export\"] = file.Export\n\t\tfields = append(fields, \"export\")\n\t}\n\n\tif file.HasImport {\n\t\tm[\"import\"] = file.Imports\n\t\tfields = append(fields, \"import\")\n\t}\n\n\tif file.HasResource {\n\t\tm[\"resource\"] = file.Resources\n\t\tfields = append(fields, \"resource\")\n\t}\n\n\tif file.HasException {\n\t\tm[\"exception\"] = file.Exceptions\n\t\tfields = append(fields, \"exception\")\n\t}\n\n\tif file.HasReloc {\n\t\tm[\"reloc\"] = file.Relocations\n\t\tfields = append(fields, \"reloc\")\n\t}\n\n\tif file.HasDebug {\n\t\tm[\"debug\"] = file.Debugs\n\t\tfields = append(fields, \"debug\")\n\t}\n\n\tif file.HasGlobalPtr {\n\t\tm[\"global_ptr\"] = file.GlobalPtr\n\t\tfields = append(fields, \"global_ptr\")\n\t}\n\n\tif file.HasTLS {\n\t\tm[\"tls\"] = file.TLS\n\t\tfields = append(fields, \"tls\")\n\t}\n\n\tif file.HasLoadCFG {\n\t\tm[\"load_config\"] = file.LoadConfig\n\t\tfields = append(fields, \"load_config\")\n\t}\n\n\tif file.HasBoundImp {\n\t\tm[\"bound_import\"] = file.BoundImports\n\t\tfields = append(fields, \"bound_import\")\n\t}\n\n\tif file.HasIAT {\n\t\tm[\"iat\"] = file.IAT\n\t\tfields = append(fields, \"iat\")\n\t}\n\n\tif file.HasDelayImp {\n\t\tm[\"delay_import\"] = file.DelayImports\n\t\tfields = append(fields, \"delay_import\")\n\t}\n\n\tif file.HasCLR {\n\t\tm[\"clr\"] = file.CLR\n\t\tfields = append(fields, \"clr\")\n\t}\n\n\tif file.HasSecurity {\n\t\tm[\"security\"] = file.Certificates\n\t\tif file.IsSigned {\n\t\t\tif file.Certificates.Verified {\n\t\t\t\tm[\"signature\"] = \"Signed file, valid signature\"\n\t\t\t} else {\n\t\t\t\tm[\"signature\"] = \"Signed file, invalid signature\"\n\t\t\t}\n\t\t}\n\t\tfields = append(fields, \"security\")\n\t} else {\n\t\tm[\"signature\"] = \"File is not signed\"\n\t}\n\n\tm[\"meta\"] = fields\n\treturn toJSON(m)\n}", "func Info(name string) *Charset {\n\tfor _, f := range factories {\n\t\tif info := f.Info(name); info != nil {\n\t\t\treturn info\n\t\t}\n\t}\n\treturn nil\n}", "func ReadInfo(filename string) (info *Info, err error) {\n\treader, err := os.Open(filename)\n\tif err != nil {\n\t\treturn\n\t}\n\n\tdefer reader.Close()\n\n\tr := bufio.NewReader(reader)\n\n\t_, err = r.ReadString('\\n')\n\n\tif err != nil {\n\t\treturn\n\t}\n\n\tversion, err := r.ReadString('\\n')\n\n\tif err != nil {\n\t\treturn\n\t}\n\n\tkn, kv, err := decodeOption(version[:len(version)-1])\n\n\tif err != nil {\n\t\treturn\n\t}\n\n\tif kn != \"version\" {\n\t\terr = errors.New(\"Version missing (should be on second line)\")\n\t\treturn\n\t}\n\n\tif kv != \"2.4.2\" && kv != \"3.0.0\" && kv != \"2.4.2\\r\" &&kv != \"3.0.0\\r\"{ // \\r : fix the problem on windows\n\t\terr = errors.New(\"Stardict version should be either 2.4.2 or 3.0.0\")\n\t\treturn\n\t}\n\n\tinfo = new(Info)\n\n\tinfo.Version = kv\n\n\tinfo.Options = make(map[string]string)\n\n\tfor {\n\t\toption, err := r.ReadString('\\n')\n\n\t\tif err != nil && err != io.EOF {\n\t\t\treturn info, err\n\t\t}\n\n\t\tif err == io.EOF && len(option) == 0 {\n\t\t\tbreak\n\t\t}\n\n\t\tkn, kv, err = decodeOption(option[:len(option)-1])\n\n\t\tif err != nil {\n\t\t\treturn info, err\n\t\t}\n\n\t\tinfo.Options[kn] = kv\n\n\t\tif err == io.EOF {\n\t\t\tbreak\n\t\t}\n\t}\n\n\tif val, ok := info.Options[\"idxoffsetbits\"]; ok {\n\t\tif val == \"64\" {\n\t\t\tinfo.Is64 = true\n\t\t}\n\t} else {\n\t\tinfo.Is64 = false\n\t}\n\n\treturn\n}", "func (h *SupportAPI) GetSupportInfo(c *gin.Context) {\n\tctx := context.Background()\n\tinfo, err := h.SupportUsecase.GetSupportInfo(ctx)\n\tif err != nil {\n\t\tentities.SendValidationError(c, \"There has been an error while getting support contact information, please try again\", err)\n\t\treturn\n\t}\n\tc.JSON(200, gin.H{\n\t\t\"info\": info,\n\t})\n\treturn\n}", "func Supported(version string) bool {\n\treturn supportedMap[version]\n}", "func (*SystemGetInfo) Descriptor() ([]byte, []int) {\n\treturn file_system_proto_rawDescGZIP(), []int{2}\n}", "func (*PlatformSpec) Descriptor() ([]byte, []int) {\n\treturn file_protos_platformProduct_proto_rawDescGZIP(), []int{1}\n}", "func (*Entity_CompatibilityStatus) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_dataplex_v1_metadata_proto_rawDescGZIP(), []int{11, 0}\n}", "func IsSupported() bool {\n\treturn false\n}", "func GetPlatformInformation(rw http.ResponseWriter) error {\n\tplatform, family, version, err := host.PlatformInformation()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tp := struct {\n\t\tPlatform string\n\t\tFamily string\n\t\tVersion string\n\t}{\n\t\tplatform,\n\t\tfamily,\n\t\tversion,\n\t}\n\n\treturn share.JSONResponse(p, rw)\n}", "func (o *HighLoadCup2020API) Formats() strfmt.Registry {\n\treturn o.formats\n}", "func getImageInfo(image_path string) (w int, h int, kind string, err error) {\n\timf, err := os.Open(image_path)\n\tif err != nil {\n\t\treturn 0, 0, \"\", err\n\t}\n\tdefer imf.Close()\n\n\tconfig, kind, err := image.DecodeConfig(imf)\n\tif err != nil {\n\t\treturn 0, 0, \"\", err\n\t}\n\n\treturn config.Width, config.Height, kind, nil\n}", "func initCPUInfo() {\n\tif runtime.GOOS != \"linux\" {\n\t\t// Don't try to read Linux-specific /proc files or\n\t\t// warn about them not existing.\n\t\treturn\n\t}\n\tcpuinfob, err := ioutil.ReadFile(\"/proc/cpuinfo\")\n\tif err != nil {\n\t\t// Leave everything at 0, nothing can be done.\n\t\tlog.Warningf(\"Could not read /proc/cpuinfo: %v\", err)\n\t\treturn\n\t}\n\tcpuinfo := string(cpuinfob)\n\n\t// We get the value straight from host /proc/cpuinfo.\n\tfor _, line := range strings.Split(cpuinfo, \"\\n\") {\n\t\tswitch {\n\t\tcase strings.Contains(line, \"BogoMIPS\"):\n\t\t\tsplitMHz := strings.Split(line, \":\")\n\t\t\tif len(splitMHz) < 2 {\n\t\t\t\tlog.Warningf(\"Could not read /proc/cpuinfo: malformed BogoMIPS\")\n\t\t\t\tbreak\n\t\t\t}\n\n\t\t\t// If there was a problem, leave cpuFreqMHz as 0.\n\t\t\tvar err error\n\t\t\thostFeatureSet.cpuFreqMHz, err = strconv.ParseFloat(strings.TrimSpace(splitMHz[1]), 64)\n\t\t\tif err != nil {\n\t\t\t\thostFeatureSet.cpuFreqMHz = 0.0\n\t\t\t\tlog.Warningf(\"Could not parse BogoMIPS value %v: %v\", splitMHz[1], err)\n\t\t\t}\n\t\tcase strings.Contains(line, \"CPU implementer\"):\n\t\t\tsplitImpl := strings.Split(line, \":\")\n\t\t\tif len(splitImpl) < 2 {\n\t\t\t\tlog.Warningf(\"Could not read /proc/cpuinfo: malformed CPU implementer\")\n\t\t\t\tbreak\n\t\t\t}\n\n\t\t\t// If there was a problem, leave cpuImplHex as 0.\n\t\t\tvar err error\n\t\t\thostFeatureSet.cpuImplHex, err = strconv.ParseUint(strings.TrimSpace(splitImpl[1]), 0, 64)\n\t\t\tif err != nil {\n\t\t\t\thostFeatureSet.cpuImplHex = 0\n\t\t\t\tlog.Warningf(\"Could not parse CPU implementer value %v: %v\", splitImpl[1], err)\n\t\t\t}\n\t\tcase strings.Contains(line, \"CPU architecture\"):\n\t\t\tsplitArch := strings.Split(line, \":\")\n\t\t\tif len(splitArch) < 2 {\n\t\t\t\tlog.Warningf(\"Could not read /proc/cpuinfo: malformed CPU architecture\")\n\t\t\t\tbreak\n\t\t\t}\n\n\t\t\t// If there was a problem, leave cpuArchDec as 0.\n\t\t\tvar err error\n\t\t\thostFeatureSet.cpuArchDec, err = strconv.ParseUint(strings.TrimSpace(splitArch[1]), 0, 64)\n\t\t\tif err != nil {\n\t\t\t\thostFeatureSet.cpuArchDec = 0\n\t\t\t\tlog.Warningf(\"Could not parse CPU architecture value %v: %v\", splitArch[1], err)\n\t\t\t}\n\t\tcase strings.Contains(line, \"CPU variant\"):\n\t\t\tsplitVar := strings.Split(line, \":\")\n\t\t\tif len(splitVar) < 2 {\n\t\t\t\tlog.Warningf(\"Could not read /proc/cpuinfo: malformed CPU variant\")\n\t\t\t\tbreak\n\t\t\t}\n\n\t\t\t// If there was a problem, leave cpuVarHex as 0.\n\t\t\tvar err error\n\t\t\thostFeatureSet.cpuVarHex, err = strconv.ParseUint(strings.TrimSpace(splitVar[1]), 0, 64)\n\t\t\tif err != nil {\n\t\t\t\thostFeatureSet.cpuVarHex = 0\n\t\t\t\tlog.Warningf(\"Could not parse CPU variant value %v: %v\", splitVar[1], err)\n\t\t\t}\n\t\tcase strings.Contains(line, \"CPU part\"):\n\t\t\tsplitPart := strings.Split(line, \":\")\n\t\t\tif len(splitPart) < 2 {\n\t\t\t\tlog.Warningf(\"Could not read /proc/cpuinfo: malformed CPU part\")\n\t\t\t\tbreak\n\t\t\t}\n\n\t\t\t// If there was a problem, leave cpuPartHex as 0.\n\t\t\tvar err error\n\t\t\thostFeatureSet.cpuPartHex, err = strconv.ParseUint(strings.TrimSpace(splitPart[1]), 0, 64)\n\t\t\tif err != nil {\n\t\t\t\thostFeatureSet.cpuPartHex = 0\n\t\t\t\tlog.Warningf(\"Could not parse CPU part value %v: %v\", splitPart[1], err)\n\t\t\t}\n\t\tcase strings.Contains(line, \"CPU revision\"):\n\t\t\tsplitRev := strings.Split(line, \":\")\n\t\t\tif len(splitRev) < 2 {\n\t\t\t\tlog.Warningf(\"Could not read /proc/cpuinfo: malformed CPU revision\")\n\t\t\t\tbreak\n\t\t\t}\n\n\t\t\t// If there was a problem, leave cpuRevDec as 0.\n\t\t\tvar err error\n\t\t\thostFeatureSet.cpuRevDec, err = strconv.ParseUint(strings.TrimSpace(splitRev[1]), 0, 64)\n\t\t\tif err != nil {\n\t\t\t\thostFeatureSet.cpuRevDec = 0\n\t\t\t\tlog.Warningf(\"Could not parse CPU revision value %v: %v\", splitRev[1], err)\n\t\t\t}\n\t\t}\n\t}\n}", "func (*SystemInfo) Descriptor() ([]byte, []int) {\n\treturn file_proto_meme_proto_rawDescGZIP(), []int{13}\n}", "func (*PlatformSupport) Descriptor() ([]byte, []int) {\n\treturn file_interservice_notifications_service_events_proto_rawDescGZIP(), []int{5}\n}", "func DetermineSupport(ctx *context.Context) {\n\tsetResponseHeaders(ctx.Resp, &containerHeaders{\n\t\tStatus: http.StatusOK,\n\t})\n}", "func (e NotSupported) IsNotSupported() {}", "func (m *InformationalUrl) GetSupportUrl()(*string) {\n val, err := m.GetBackingStore().Get(\"supportUrl\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.(*string)\n }\n return nil\n}", "func (client *LocalRulestacksClient) getSupportInfoHandleResponse(resp *http.Response) (LocalRulestacksClientGetSupportInfoResponse, error) {\n\tresult := LocalRulestacksClientGetSupportInfoResponse{}\n\tif err := runtime.UnmarshalAsJSON(resp, &result.SupportInfo); err != nil {\n\t\treturn LocalRulestacksClientGetSupportInfoResponse{}, err\n\t}\n\treturn result, nil\n}", "func (*HisProviderResponse_HisProvider) Descriptor() ([]byte, []int) {\n\treturn file_src_h4u_proto_rawDescGZIP(), []int{6, 0}\n}", "func getProviderInfoReply(buf []byte) *GetProviderInfoReply {\n\tv := new(GetProviderInfoReply)\n\tb := 1 // skip reply determinant\n\n\tv.Status = buf[b]\n\tb += 1\n\n\tv.Sequence = xgb.Get16(buf[b:])\n\tb += 2\n\n\tv.Length = xgb.Get32(buf[b:]) // 4-byte units\n\tb += 4\n\n\tv.Timestamp = xproto.Timestamp(xgb.Get32(buf[b:]))\n\tb += 4\n\n\tv.Capabilities = xgb.Get32(buf[b:])\n\tb += 4\n\n\tv.NumCrtcs = xgb.Get16(buf[b:])\n\tb += 2\n\n\tv.NumOutputs = xgb.Get16(buf[b:])\n\tb += 2\n\n\tv.NumAssociatedProviders = xgb.Get16(buf[b:])\n\tb += 2\n\n\tv.NameLen = xgb.Get16(buf[b:])\n\tb += 2\n\n\tb += 8 // padding\n\n\tv.Crtcs = make([]Crtc, v.NumCrtcs)\n\tfor i := 0; i < int(v.NumCrtcs); i++ {\n\t\tv.Crtcs[i] = Crtc(xgb.Get32(buf[b:]))\n\t\tb += 4\n\t}\n\n\tb = (b + 3) & ^3 // alignment gap\n\n\tv.Outputs = make([]Output, v.NumOutputs)\n\tfor i := 0; i < int(v.NumOutputs); i++ {\n\t\tv.Outputs[i] = Output(xgb.Get32(buf[b:]))\n\t\tb += 4\n\t}\n\n\tb = (b + 3) & ^3 // alignment gap\n\n\tv.AssociatedProviders = make([]Provider, v.NumAssociatedProviders)\n\tfor i := 0; i < int(v.NumAssociatedProviders); i++ {\n\t\tv.AssociatedProviders[i] = Provider(xgb.Get32(buf[b:]))\n\t\tb += 4\n\t}\n\n\tb = (b + 3) & ^3 // alignment gap\n\n\tv.AssociatedCapability = make([]uint32, v.NumAssociatedProviders)\n\tfor i := 0; i < int(v.NumAssociatedProviders); i++ {\n\t\tv.AssociatedCapability[i] = xgb.Get32(buf[b:])\n\t\tb += 4\n\t}\n\n\t{\n\t\tbyteString := make([]byte, v.NameLen)\n\t\tcopy(byteString[:v.NameLen], buf[b:])\n\t\tv.Name = string(byteString)\n\t\tb += int(v.NameLen)\n\t}\n\n\treturn v\n}", "func Supported() bool {\n\treturn true\n}", "func (id ID) Info() Info {\n\t// note to avoid circular dependency these are hard coded\n\t// values are checked for non regression in code generation\n\tswitch id {\n\tcase BLS12_377:\n\t\treturn newInfo(&config.BLS12_377)\n\tcase BLS12_381:\n\t\treturn newInfo(&config.BLS12_381)\n\tcase BN254:\n\t\treturn newInfo(&config.BN254)\n\tcase BW6_761:\n\t\treturn newInfo(&config.BW6_761)\n\tcase BW6_633:\n\t\treturn newInfo(&config.BW6_633)\n\tcase BLS24_315:\n\t\treturn newInfo(&config.BLS24_315)\n\tdefault:\n\t\tpanic(\"unimplemented ecc ID\")\n\t}\n}", "func LanIsSupported(language string) bool {\n\t_, got := VersionMap[language]\n\treturn got\n}", "func GetProductInfo(dwOSMajorVersion DWORD, dwOSMinorVersion DWORD, dwSpMajorVersion DWORD, dwSpMinorVersion DWORD, pdwReturnedProductType *DWORD) bool {\n\tret1 := syscall6(getProductInfo, 5,\n\t\tuintptr(dwOSMajorVersion),\n\t\tuintptr(dwOSMinorVersion),\n\t\tuintptr(dwSpMajorVersion),\n\t\tuintptr(dwSpMinorVersion),\n\t\tuintptr(unsafe.Pointer(pdwReturnedProductType)),\n\t\t0)\n\treturn ret1 != 0\n}", "func (m *GroupPolicyDefinition) GetSupportedOn()(*string) {\n val, err := m.GetBackingStore().Get(\"supportedOn\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.(*string)\n }\n return nil\n}", "func (m *Manifest) unsupported(ref Reference, platforms []platform.Platform) []platform.Platform {\n\tvar result []platform.Platform\nplatformsNext:\n\tfor _, p := range platforms {\n\t\tlrs, _ := m.layers(ref, p.OS, p.Arch)\n\t\tfor _, l := range lrs {\n\t\t\tif l.Source != \"\" {\n\t\t\t\tcontinue platformsNext\n\t\t\t}\n\t\t}\n\t\tresult = append(result, p)\n\t}\n\treturn result\n}", "func (*SystemInfo) Descriptor() ([]byte, []int) {\n\treturn file_system_proto_rawDescGZIP(), []int{12}\n}", "func (*SystemInfo) Descriptor() ([]byte, []int) {\n\treturn file_system_proto_rawDescGZIP(), []int{0}\n}", "func AvailableFormatters() map[string]string {\n\tfmts := make(map[string]string, len(formatters))\n\n\tfor _, f := range formatters {\n\t\tfmts[f.name] = f.description\n\t}\n\n\treturn fmts\n}", "func Check(target *prog.Target) (*Features, error) {\n\tconst unsupported = \"support is not implemented in syzkaller\"\n\tres := &Features{\n\t\tFeatureCoverage: {Name: \"code coverage\", Reason: unsupported},\n\t\tFeatureComparisons: {Name: \"comparison tracing\", Reason: unsupported},\n\t\tFeatureExtraCoverage: {Name: \"extra coverage\", Reason: unsupported},\n\t\tFeatureSandboxSetuid: {Name: \"setuid sandbox\", Reason: unsupported},\n\t\tFeatureSandboxNamespace: {Name: \"namespace sandbox\", Reason: unsupported},\n\t\tFeatureSandboxAndroidUntrustedApp: {Name: \"Android sandbox\", Reason: unsupported},\n\t\tFeatureFaultInjection: {Name: \"fault injection\", Reason: unsupported},\n\t\tFeatureLeakChecking: {Name: \"leak checking\", Reason: unsupported},\n\t\tFeatureNetworkInjection: {Name: \"net packet injection\", Reason: unsupported},\n\t\tFeatureNetworkDevices: {Name: \"net device setup\", Reason: unsupported},\n\t}\n\tif target.OS == \"akaros\" || target.OS == \"test\" {\n\t\treturn res, nil\n\t}\n\tfor n, check := range checkFeature {\n\t\tif check == nil {\n\t\t\tcontinue\n\t\t}\n\t\tif reason := check(); reason == \"\" {\n\t\t\tres[n].Enabled = true\n\t\t\tres[n].Reason = \"enabled\"\n\t\t} else {\n\t\t\tres[n].Reason = reason\n\t\t}\n\t}\n\treturn res, nil\n}", "func (*ProviderInfo) Descriptor() ([]byte, []int) {\n\treturn file_api_hourglass_v1_provider_proto_rawDescGZIP(), []int{1}\n}", "func (o *ComputeBladeIdentityAllOf) GetFirmwareSupportabilityOk() (*string, bool) {\n\tif o == nil || o.FirmwareSupportability == nil {\n\t\treturn nil, false\n\t}\n\treturn o.FirmwareSupportability, true\n}", "func (o *StoragePhysicalDisk) GetIsPlatformSupportedOk() (*bool, bool) {\n\tif o == nil || o.IsPlatformSupported == nil {\n\t\treturn nil, false\n\t}\n\treturn o.IsPlatformSupported, true\n}", "func supportedSubsystems() []string {\n\t// Convert the subsystemLoggers map keys to a slice.\n\tsubsystems := make([]string, 0, len(subsystemLoggers))\n\tfor subsysID := range subsystemLoggers {\n\t\tsubsystems = append(subsystems, subsysID)\n\t}\n\n\t// Sort the subsystems for stable display.\n\tsort.Strings(subsystems)\n\treturn subsystems\n}", "func supportedSubsystems() []string {\n\t// Convert the subsystemLoggers map keys to a slice.\n\tsubsystems := make([]string, 0, len(subsystemLoggers))\n\tfor subsysID := range subsystemLoggers {\n\t\tsubsystems = append(subsystems, subsysID)\n\t}\n\n\t// Sort the subsystems for stable display.\n\tsort.Strings(subsystems)\n\treturn subsystems\n}", "func FormatSupportedParameters() (result string) {\n\tfor _, v := range GetSupportedParameters() {\n\t\tresult = result + v + \" - \" + supportedParameterDescriptions[v] + \"\\n\"\n\t}\n\treturn \"\\nAvailable Parameters:\\n\" + result\n}", "func isSupportedType(fileName string) bool {\n\tparts := strings.Split(fileName, \".\")\n\textension := parts[len(parts)-1]\n\tsupported := false\n\tif len(parts) > 1 && len(extension) > 0 {\n\t\tfor _, el := range supportedExtensions {\n\t\t\tif extension == el {\n\t\t\t\tsupported = true\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n\treturn supported\n}", "func (*SupportScript) Descriptor() ([]byte, []int) {\n\treturn file_healthzdata_proto_rawDescGZIP(), []int{4}\n}", "func (r *Resolver) GetInfo() *model.NodeInfo {\n\tioregOutput := runCommandOrFail(\"ioreg\", \"-rd1\", \"-c\", \"IOPlatformExpertDevice\")\n\thostname, _ := os.Hostname()\n\n\treturn &model.NodeInfo{\n\t\tVersion: r.version,\n\t\tUptime: 0,\n\t\tLabels: r.labels,\n\t\tArch: runtime.GOARCH,\n\t\tOS: runtime.GOOS,\n\t\tHostname: hostname,\n\t\tAddresses: getAddresses(),\n\t\tGrpcPort: r.grpcPort,\n\n\t\tMachineID: parseFieldFromIoregOutput(ioregOutput, \"IOPlatformSerialNumber\"),\n\t\tSystemUUID: parseFieldFromIoregOutput(ioregOutput, \"IOPlatformUUID\"),\n\t\tBootID: runCommandOrFail(\"/usr/bin/uuidgen\"),\n\n\t\tFilesystems: resolveFilesystems(),\n\t}\n}", "func getPreRPI2FromRevision(revision string) (info RpiInfoT, err error) {\n\tvision, err := strconv.ParseUint(revision, 16, 32) //hex number without 0x lea\n\tif err != nil {\n\t\treturn\n\t}\n\n\tencoded := (vision & (1 << 23)) >> 23\n\tif encoded != 0 {\n\t\terr = errors.New(\"the encoding flag must be 0 in pre PI2\")\n\t\treturn\n\t}\n\n\tinfo.revision = vision\n\n\twarantybit := (vision & (1 << 24)) >> 24\n\tif warantybit == 1 {\n\t\tinfo.overVolted = true\n\t}\n\n\tif len(revision) > 4 {\n\t\trevision = revision[len(revision)-4:] //keep the last 4 byte\n\t}\n\n\tinfo.processor = Broadcom2835\n\t// except revision \"0002\"/\"0003\" is I2C_0\n\tinfo.i2c = I2C_1\n\n\t// +----------+---------+---------+--------+-------------+\n\t// | Revision | Model | PCB Rev | Memory | Manufacture |\n\t// +----------+---------+---------+--------+-------------+\n\t// | 0000 | | | | |\n\t// | 0001 | | | | |\n\tswitch revision {\n\tcase \"0002\":\n\t\t// | 0002 | B | 1 | 256 MB | EGOMAN |\n\t\tinfo.manufacturer = MakerEgoman\n\t\tinfo.mem = Rpi256MB\n\t\tinfo.model = ModelB\n\t\tinfo.pcbRev = PcbRev1\n\t\tinfo.i2c = I2C_0\n\tcase \"0003\":\n\t\t// | 0003 | B | 1-1 | 256 MB | EGOMAN |\n\t\tinfo.manufacturer = MakerEgoman\n\t\tinfo.mem = Rpi256MB\n\t\tinfo.model = ModelB\n\t\tinfo.pcbRev = PcbRev1_1\n\t\tinfo.i2c = I2C_0\n\tcase \"0004\":\n\t\t// | 0004 | B | 1-2 | 256 MB | Sony |\n\t\tinfo.manufacturer = MakerSony\n\t\tinfo.mem = Rpi256MB\n\t\tinfo.model = ModelB\n\t\tinfo.pcbRev = PcbRev1_2\n\tcase \"0005\", \"0006\":\n\t\t// | 0005 | B | 1-2 | 256 MB | EGOMAN |\n\t\t// | 0006 | B | 1-2 | 256 MB | EGOMAN |\n\t\tinfo.manufacturer = MakerEgoman\n\t\tinfo.mem = Rpi256MB\n\t\tinfo.model = ModelB\n\t\tinfo.pcbRev = PcbRev1_2\n\tcase \"0007\":\n\t\t// | 0007 | A | 1-2 | 256 MB | Egoman |\n\t\tinfo.manufacturer = MakerEgoman\n\t\tinfo.mem = Rpi256MB\n\t\tinfo.model = ModelA\n\t\tinfo.pcbRev = PcbRev1_2\n\tcase \"0008\":\n\t\t// | 0008 | A | 1-2 | 256 MB | Sony |\n\t\tinfo.manufacturer = MakerSony\n\t\tinfo.mem = Rpi256MB\n\t\tinfo.model = ModelA\n\t\tinfo.pcbRev = PcbRev1_2\n\tcase \"0009\":\n\t\t// | 0009 | A | 1-2 | 256 MB | Egoman |\n\t\tinfo.manufacturer = MakerEgoman\n\t\tinfo.mem = Rpi256MB\n\t\tinfo.model = ModelA\n\t\tinfo.pcbRev = PcbRev1_2\n\tcase \"000d\":\n\t\t// | 000d | B | 1-2 | 512 MB | Egoman |\n\t\tinfo.manufacturer = MakerEgoman\n\t\tinfo.mem = Rpi512MB\n\t\tinfo.model = ModelB\n\t\tinfo.pcbRev = PcbRev1_2\n\tcase \"000e\":\n\t\t// | 000e | B | 1-2 | 512 MB | Sony |\n\t\tinfo.manufacturer = MakerSony\n\t\tinfo.mem = Rpi512MB\n\t\tinfo.model = ModelB\n\t\tinfo.pcbRev = PcbRev1_2\n\tcase \"000f\":\n\t\t// | 000f | B | 1-2 | 512 MB | Egoman |\n\t\tinfo.manufacturer = MakerEgoman\n\t\tinfo.mem = Rpi512MB\n\t\tinfo.model = ModelB\n\t\tinfo.pcbRev = PcbRev1_2\n\tcase \"0010\":\n\t\t// | 0010 | B+ | 1-2 | 512 MB | Sony |\n\t\tinfo.manufacturer = MakerSony\n\t\tinfo.mem = Rpi512MB\n\t\tinfo.model = ModelBPlus\n\t\tinfo.pcbRev = PcbRev1_2\n\tcase \"0011\":\n\t\t// | 0011 | compute | 1-1 | 512 MB | Sony |\n\t\tinfo.manufacturer = MakerSony\n\t\tinfo.mem = Rpi512MB\n\t\tinfo.model = ModelCM\n\t\tinfo.pcbRev = PcbRev1_1\n\tcase \"0012\":\n\t\t// | 0012 | A+ | 1-1 | 256 MB | Sony |\n\t\tinfo.manufacturer = MakerSony\n\t\tinfo.mem = Rpi256MB\n\t\tinfo.model = ModelAPlus\n\t\tinfo.pcbRev = PcbRev1_1\n\tcase \"0013\":\n\t\t// | 0013 | B+ | 1-2 | 512 MB | Embest |\n\t\tinfo.manufacturer = MakerEmbest\n\t\tinfo.mem = Rpi512MB\n\t\tinfo.model = ModelBPlus\n\t\tinfo.pcbRev = PcbRev1_2\n\tcase \"0014\":\n\t\t// | 0014 | compute | 1-1 | 512 MB | Embest |\n\t\tinfo.manufacturer = MakerEmbest\n\t\tinfo.mem = Rpi512MB\n\t\tinfo.model = ModelCM\n\t\tinfo.pcbRev = PcbRev1_1\n\tcase \"0015\":\n\t\t// | 0015 | A+ | 1-1 | 256 MB | Embest |\n\t\tinfo.manufacturer = MakerEmbest\n\t\tinfo.mem = Rpi256MB\n\t\tinfo.model = ModelAPlus\n\t\tinfo.pcbRev = PcbRev1_1\n\tcase \"0016\":\n\t\t// | 0016 | A+ | 1-1 | 256 MB | Embest |\n\t\tinfo.manufacturer = MakerEmbest\n\t\tinfo.mem = Rpi256MB\n\t\tinfo.model = ModelAPlus\n\t\tinfo.pcbRev = PcbRev1_1\n\tcase \"0017\":\n\t\t// | 0017 | compute | 1-1 | 512 MB | sony |\n\t\tinfo.manufacturer = MakerSony\n\t\tinfo.mem = Rpi512MB\n\t\tinfo.model = ModelCM\n\t\tinfo.pcbRev = PcbRev1_1\n\tcase \"0018\":\n\t\t// | 0018 | A+ | 1-1 | 256 MB | sony |\n\t\tinfo.manufacturer = MakerSony\n\t\tinfo.mem = Rpi256MB\n\t\tinfo.model = ModelAPlus\n\t\tinfo.pcbRev = PcbRev1_1\n\tcase \"0019\":\n\t\t// | 0019 | B+ | 1-2 | 512 MB | egoman |\n\t\tinfo.manufacturer = MakerEgoman\n\t\tinfo.mem = Rpi512MB\n\t\tinfo.model = ModelBPlus\n\t\tinfo.pcbRev = PcbRev1_2\n\tcase \"001a\":\n\t\t// | 001a | compute | 1-1 | 512 MB | egoman |\n\t\tinfo.manufacturer = MakerEgoman\n\t\tinfo.mem = Rpi512MB\n\t\tinfo.model = ModelCM\n\t\tinfo.pcbRev = PcbRev1_1\n\tcase \"001b\":\n\t\t// | 001b | A+ | 1-1 | 256 MB | egoman |\n\t\tinfo.manufacturer = MakerEgoman\n\t\tinfo.mem = Rpi256MB\n\t\tinfo.model = ModelAPlus\n\t\tinfo.pcbRev = PcbRev1_1\n\tdefault:\n\t\tinfo.manufacturer = MakerUnknown\n\t\tinfo.mem = RpiUnknownMB\n\t\tinfo.model = ModelUnknown\n\t\tinfo.pcbRev = PcbRevUnknown\n\t\tinfo.i2c = I2C_DeviceUnknown\n\t}\n\n\treturn\n}", "func getPostRPI2FromRevision(revision string) (info RpiInfoT, err error) {\n\tvision, err := strconv.ParseUint(revision, 16, 32) //hex number without 0x lea\n\tif err != nil {\n\t\treturn\n\t}\n\n\tencoded := (vision & (1 << 23)) >> 23\n\tif encoded != 1 {\n\t\terr = errors.New(\"the encoding flag must be 1 in post PI2\")\n\t\treturn\n\t}\n\n\tinfo.revision = vision\n\n\twarantybit := (vision & (1 << 25)) >> 25\n\tif warantybit == 1 {\n\t\tinfo.overVolted = true\n\t}\n\n\tmem := (vision & (7 << 20)) >> 20\n\tmemindex := MemoryT(mem)\n\tswitch memindex {\n\tcase Rpi256MB, Rpi512MB, Rpi1024MB, RpiUnknownMB:\n\tdefault:\n\t\tmemindex = RpiUnknownMB\n\t}\n\tinfo.mem = memindex\n\n\tManufacturer := (vision & (0xf << 16)) >> 16\n\tManufacturerindex := MakerT(Manufacturer)\n\tswitch Manufacturerindex {\n\tcase MakerSony, MakerEgoman, MakerEmbest, MakerSonyJapan, MakerEmbest1:\n\tdefault:\n\t\tManufacturerindex = MakerUnknown\n\n\t}\n\tinfo.manufacturer = Manufacturerindex\n\n\tprocess := (vision & (0xf << 12)) >> 12\n\tprocessindex := ProcessorT(process)\n\tswitch processindex {\n\tcase BroadcomUnknown, Broadcom2835, Broadcom2836, Broadcom2837:\n\tdefault:\n\t\tprocessindex = BroadcomUnknown\n\t}\n\tinfo.processor = processindex\n\n\tmodel := (vision & (0xff << 4)) >> 4\n\tmodelindex := ModelT(model)\n\tswitch modelindex {\n\tcase ModelA, ModelB, ModelAPlus, ModelBPlus, ModelAlpha, ModelCM, Model2B, ModelUnknown, Model3B, ModelZero, ModelCM3, ModelZeroW:\n\tdefault:\n\t\tmodelindex = ModelUnknown\n\t}\n\tinfo.model = modelindex\n\n\tpcbrev := (vision & (0xf))\n\tpcbrevindex := PcbRevT(pcbrev)\n\tswitch pcbrevindex {\n\tcase PcbRevUnknown, PcbRev1, PcbRev1_1, PcbRev1_2, PcbRev2:\n\tdefault:\n\t\tpcbrevindex = PcbRevUnknown\n\n\t}\n\tinfo.pcbRev = pcbrevindex\n\n\t// except revision \"0002\"/\"0003\"\n\tinfo.i2c = I2C_1\n\treturn\n}", "func SystemInfo() string {\n\n\tvar si SysInfo\n\tvar m runtime.MemStats\n\truntime.ReadMemStats(&m)\n\tsi.AllocMemory = m.Alloc\n\tsi.AllocMemoryMB = btomb(m.Alloc)\n\tsi.TotalAllocMemory = m.TotalAlloc\n\tsi.TotalAllocMemoryMB = btomb(m.TotalAlloc)\n\tsi.TotalSystemMemory = m.Sys\n\tsi.TotalSystemMemoryMB = btomb(m.Sys)\n\tc, _ := cpu.Info()\n\n\tsi.CPUs = c[0].Cores\n\n\tsi.GolangVersion = runtime.Version()\n\tsi.ContainerHostName, _ = os.Hostname()\n\tsi.CurrentUTC = time.Now().UTC()\n\n\tsi.CurrentLocalTime = time.Now().Local()\n\n\tconst (\n\t\tB = 1\n\t\tKB = 1024 * B\n\t\tMB = 1024 * KB\n\t\tGB = 1024 * MB\n\t)\n\n\tv, _ := mem.VirtualMemory()\n\tfmt.Printf(\"Total: %v, Free:%v, UsedPercent:%f%%\\n\", v.Total, v.Free, v.UsedPercent)\n\n\ttype InfoStat struct {\n\t\tHostname string `json:\"hostname\"`\n\t\tUptime uint64 `json:\"uptime\"`\n\t\tBootTime uint64 `json:\"bootTime\"`\n\t\tProcs uint64 `json:\"procs\"` // number of processes\n\t\tOS string `json:\"os\"` // ex: freebsd, linux\n\t\tPlatform string `json:\"platform\"` // ex: ubuntu, linuxmint\n\t\tPlatformFamily string `json:\"platformFamily\"` // ex: debian, rhel\n\t\tPlatformVersion string `json:\"platformVersion\"` // version of the complete OS\n\t\tKernelVersion string `json:\"kernelVersion\"` // version of the OS kernel (if available)\n\t\tVirtualizationSystem string `json:\"virtualizationSystem\"`\n\t\tVirtualizationRole string `json:\"virtualizationRole\"` // guest or host\n\t\tHostID string `json:\"hostid\"` // ex: uuid\n\t}\n\n\tvar his *host.InfoStat\n\this, _ = host.Info()\n\n\tsi.Uptime = his.Uptime\n\n\tsi.OperatingSystem = his.OS\n\tsi.Platform = his.Platform\n\tsi.PlatformFamily = his.PlatformFamily\n\tsi.PlatformVersion = his.PlatformVersion\n\tsi.VirtualSystem = his.VirtualizationSystem\n\tsi.VirtualRole = his.VirtualizationRole\n\tsi.HostID = his.HostID\n\tsi.HostName = his.Hostname\n\tsi.BootTime = strconv.FormatUint(his.BootTime, 10)\n\tsi.KernelVersion = his.KernelVersion\n\n\tsi.UptimeDays = si.Uptime / (60 * 60 * 24)\n\tsi.UptimeHours = (si.Uptime - (si.UptimeDays * 60 * 60 * 24)) / (60 * 60)\n\tsi.UptimeMinutes = ((si.Uptime - (si.UptimeDays * 60 * 60 * 24)) - (si.UptimeHours * 60 * 60)) / 60\n\tinterfaces, err := net.Interfaces()\n\n\tif err == nil {\n\t\tfor i, interfac := range interfaces {\n\t\t\tif interfac.Name == \"\" {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\taddrs := interfac.Addrs\n\t\t\tsi.NetworkInterfaces[i].Name = interfac.Name\n\t\t\tsi.NetworkInterfaces[i].HardwareAddress = string(interfac.HardwareAddr)\n\t\t\tfor x, addr := range addrs {\n\t\t\t\tif addr.String() != \"\" {\n\t\t\t\t\tsi.NetworkInterfaces[i].IPAddresses[x].IPAddress = addr.String()\n\t\t\t\t} else {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tvar paths [10]string\n\tpaths[0] = \"/\"\n\n\tfor i, path := range paths {\n\t\tdisk := DiskUsage(path)\n\t\tsi.Disk[i].Path = path\n\t\tsi.Disk[i].All = float64(disk.All) / float64(GB)\n\t\tsi.Disk[i].Used = float64(disk.Used) / float64(GB)\n\t\tsi.Disk[i].Free = float64(disk.Free) / float64(GB)\n\t}\n\n\tstrJSON, err := json.Marshal(si)\n\tcheckErr(err)\n\n\treturn string(strJSON)\n}", "func (o SiaFileInfo) Sys() interface{} {\n\treturn o.FileSys\n}", "func supportedSubsystems() []string {\n\t// Convert the subsystemLoggers map keys to a slice.\n\tsubsystems := make([]string, 0, len(subsystemLoggers))\n\tfor subsysID := range subsystemLoggers {\n\t\tsubsystems = append(subsystems, subsysID)\n\t}\n\n\t// Sort the subsytems for stable display.\n\tsort.Strings(subsystems)\n\treturn subsystems\n}", "func (self *TraitPixbufLoader) GetFormat() (return__ *C.GdkPixbufFormat) {\n\treturn__ = C.gdk_pixbuf_loader_get_format(self.CPointer)\n\treturn\n}", "func LibraryInfo() string {\n\tmessageSeparator := \"\\n----------------------------------------------------------------\\n\"\n\tinfo := fmt.Sprintf(\"\\t%s %s\", \"ThemeKit - Shopify Theme Utilities\", ThemeKitVersion.String())\n\treturn fmt.Sprintf(\"%s%s%s\", messageSeparator, info, messageSeparator)\n}", "func (*HisProviderResponse) Descriptor() ([]byte, []int) {\n\treturn file_src_h4u_proto_rawDescGZIP(), []int{6}\n}", "func (o *DataPlaneAPI) Formats() strfmt.Registry {\n\treturn o.formats\n}", "func getOSInfo(c context.Context, b *buildbotBuild, m *buildbotMaster) (\n\tfamily, version string) {\n\t// Fetch the master info from datastore if not provided.\n\tif m.Name == \"\" {\n\t\tlogging.Infof(c, \"Fetching info for master %s\", b.Master)\n\t\tentry := buildbotMasterEntry{Name: b.Master}\n\t\terr := ds.Get(c, &entry)\n\t\tif err != nil {\n\t\t\tlogging.WithError(err).Errorf(\n\t\t\t\tc, \"Encountered error while fetching entry for %s\", b.Master)\n\t\t\treturn\n\t\t}\n\t\terr = decodeMasterEntry(c, &entry, m)\n\t\tif err != nil {\n\t\t\tlogging.WithError(err).Warningf(\n\t\t\t\tc, \"Failed to decode master information for OS info on master %s\", b.Master)\n\t\t\treturn\n\t\t}\n\t\tif entry.Internal && !b.Internal {\n\t\t\tlogging.Errorf(c, \"Build references an internal master, but build is not internal.\")\n\t\t\treturn\n\t\t}\n\t}\n\n\ts, ok := m.Slaves[b.Slave]\n\tif !ok {\n\t\tlogging.Warningf(c, \"Could not find slave %s in master %s\", b.Slave, b.Master)\n\t\treturn\n\t}\n\thostInfo := map[string]string{}\n\tfor _, v := range strings.Split(s.Host, \"\\n\") {\n\t\tif info := strings.SplitN(v, \":\", 2); len(info) == 2 {\n\t\t\thostInfo[info[0]] = strings.TrimSpace(info[1])\n\t\t}\n\t}\n\t// Extract OS and OS Family\n\tif v, ok := hostInfo[\"os family\"]; ok {\n\t\tfamily = v\n\t}\n\tif v, ok := hostInfo[\"os version\"]; ok {\n\t\tversion = v\n\t}\n\treturn\n}", "func (this *Device) Info() IDeviceInfo {\n return this.info\n}", "func (o *CredentialProviderAPI) Formats() strfmt.Registry {\n\treturn o.formats\n}", "func (o *WeaviateAPI) Formats() strfmt.Registry {\n\treturn o.formats\n}", "func getUpgradeInfo() (*upgradeInfo, error) {\n\turl := fmt.Sprintf(infoURL, runtime.GOOS, runtime.GOARCH)\n\tresp, err := http.Get(url)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tdefer resp.Body.Close()\n\tif resp.StatusCode != http.StatusOK {\n\t\treturn nil, fmt.Errorf(\"Get upgrade information failed: %s\", resp.Status)\n\t}\n\tvar result upgradeInfo\n\tif err := json.NewDecoder(resp.Body).Decode(&result); err != nil {\n\t\treturn nil, err\n\t}\n\treturn &result, nil\n}", "func (m *SecureScoreControlProfile) GetComplianceInformation()([]ComplianceInformationable) {\n val, err := m.GetBackingStore().Get(\"complianceInformation\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.([]ComplianceInformationable)\n }\n return nil\n}", "func getSupportedResources(opRes []byte) []string {\n\tvar defaultInt []string\n\tvar opResInt map[string][]string\n\tcheckResource := make(map[string]bool)\n\tif len(opRes) > 0 {\n\t\terr := json.Unmarshal(opRes, &opResInt)\n\t\tif err != nil {\n\t\t\treturn defaultInt\n\t\t}\n\t\t// convert operation and resource object to supported resources format\n\t\t// (list of every resource)\n\t\tfor _, resArr := range opResInt {\n\t\t\tfor _, resource := range resArr {\n\t\t\t\tif _, ok := checkResource[resource]; !ok {\n\t\t\t\t\tcheckResource[resource] = true\n\t\t\t\t\tdefaultInt = append(defaultInt, resource)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn defaultInt\n}", "func (c *EcomClient) SysInfo() (*SysInfo, error) {\n\turi := c.endpoint + \"/sysinfo\"\n\treq, err := http.NewRequest(\"GET\", uri, nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"http new request failed: %w\", err)\n\t}\n\treq.Header.Set(\"Accept\", \"application/json\")\n\treq.Header.Set(\"Authorization\", \"Bearer \"+c.jwt)\n\treq.Header.Set(\"User-Agent\", fmt.Sprintf(\"ecom/%s\", Version))\n\tres, err := c.client.Do(req)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"HTTP GET to %v failed: %w\", uri, err)\n\t}\n\tdefer res.Body.Close()\n\n\tif res.StatusCode >= 400 {\n\t\treturn nil, fmt.Errorf(\"%s\", res.Status)\n\t}\n\n\tvar sysInfo SysInfo\n\tif err := json.NewDecoder(res.Body).Decode(&sysInfo); err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to decode url %s: %w\", uri, err)\n\t}\n\treturn &sysInfo, nil\n}", "func (*Info) Descriptor() ([]byte, []int) {\n\treturn file_helm_api_proto_rawDescGZIP(), []int{19}\n}", "func (*PlatformInstallment) Descriptor() ([]byte, []int) {\n\treturn file_protos_platformProduct_proto_rawDescGZIP(), []int{2}\n}", "func (o *ConvergedinfraServerComplianceDetailsAllOf) GetPlatformOk() (*string, bool) {\n\tif o == nil || o.Platform == nil {\n\t\treturn nil, false\n\t}\n\treturn o.Platform, true\n}", "func (*Matcher) IsSupportedManifestFormat(filename string) bool {\n\tlog.Debug().Msgf(\"Executing: IsSupportedManifestFormat\")\n\tbasename := filepath.Base(filename)\n\tmatch, _ := regexp.MatchString(\"pom.xml$\", basename)\n\tlog.Debug().Bool(\"regex\", match).Str(\"path\", filename).Msg(\"IsSupportedManifest\")\n\treturn match\n}", "func (ci converterInfo) AdditionalInfo() interface{} {\n\treturn ci.additionalInfo\n}", "func (*ProductInfo) Descriptor() ([]byte, []int) {\n\treturn file_product_proto_rawDescGZIP(), []int{0}\n}", "func (*PlatformTag) Descriptor() ([]byte, []int) {\n\treturn file_protos_platformProduct_proto_rawDescGZIP(), []int{0}\n}", "func Info() (types.System, error) {\n\tinfo, err := host.Info()\n\n\tif err != nil {\n\t\treturn types.System{}, err\n\t}\n\n\tsystem := types.System{\n\t\tArch: runtime.GOARCH,\n\t\tHostname: info.Hostname,\n\t\tOS: info.OS,\n\t\tPlatform: info.Platform,\n\t\tPlatformFamily: info.PlatformFamily,\n\t\tPlatformVersion: info.PlatformVersion,\n\t}\n\n\tif system.Hostname == \"\" {\n\t\tsystem.Hostname = defaultHostname\n\t}\n\n\tnetwork, err := NetworkInfo()\n\n\tif err == nil {\n\t\tsystem.Network = network\n\t}\n\n\treturn system, nil\n}", "func (*ShopMajorInfo) Descriptor() ([]byte, []int) {\n\treturn file_proto_micro_mall_shop_proto_shop_business_shop_business_proto_rawDescGZIP(), []int{1}\n}", "func (s *InfoService) Formats(ctx context.Context) (formats *Formats, resp *http.Response, err error) {\n\tu := \"/api/v1/infos/formats\"\n\treq, err := s.client.NewRequest(\"GET\", u, \"\")\n\tif err != nil {\n\t\treturn nil, nil, err\n\t}\n\n\tresp, err = s.client.Do(ctx, req, &formats)\n\tif err != nil {\n\t\treturn nil, resp, err\n\t}\n\treturn formats, resp, nil\n}", "func (*OpenconfigSystem_System_Cpus) IsYANGGoStruct() {}", "func (pce *ppdCacheEntry) getFields() (cdd.PrinterDescriptionSection, string, string, lib.DuplexVendorMap) {\n\tpce.mutex.Lock()\n\tdefer pce.mutex.Unlock()\n\treturn pce.description, pce.manufacturer, pce.model, pce.duplexMap\n}", "func PrintInfo() {\n\tPrint(GreenText(LibraryInfo()))\n}", "func decodeMultilib(base *ModuleBase, class OsClass) (multilib, extraMultilib string) {\n\t// First check the \"android.compile_multilib\" or \"host.compile_multilib\" properties.\n\tswitch class {\n\tcase Device:\n\t\tmultilib = String(base.commonProperties.Target.Android.Compile_multilib)\n\tcase Host:\n\t\tmultilib = String(base.commonProperties.Target.Host.Compile_multilib)\n\t}\n\n\t// If those aren't set, try the \"compile_multilib\" property.\n\tif multilib == \"\" {\n\t\tmultilib = String(base.commonProperties.Compile_multilib)\n\t}\n\n\t// If that wasn't set, use the default multilib set by the factory.\n\tif multilib == \"\" {\n\t\tmultilib = base.commonProperties.Default_multilib\n\t}\n\n\tif base.commonProperties.UseTargetVariants {\n\t\treturn multilib, \"\"\n\t} else {\n\t\t// For app modules a single arch variant will be created per OS class which is expected to handle all the\n\t\t// selected arches. Return the common-type as multilib and any Android.bp provided multilib as extraMultilib\n\t\tif multilib == base.commonProperties.Default_multilib {\n\t\t\tmultilib = \"first\"\n\t\t}\n\t\treturn base.commonProperties.Default_multilib, multilib\n\t}\n}" ]
[ "0.583027", "0.5749053", "0.56259465", "0.5624762", "0.5563811", "0.5454825", "0.5434691", "0.5421146", "0.5414532", "0.53728884", "0.53705376", "0.53693634", "0.53582764", "0.533921", "0.5327766", "0.5327084", "0.53180563", "0.53180563", "0.5300339", "0.5294666", "0.52619785", "0.5255544", "0.52346057", "0.5224835", "0.521821", "0.52132565", "0.5212761", "0.5196127", "0.5179968", "0.5135511", "0.5134459", "0.51238483", "0.5113492", "0.5113327", "0.5112995", "0.51129067", "0.5099638", "0.50984854", "0.5067886", "0.50507563", "0.50393003", "0.50316346", "0.50069916", "0.50032264", "0.50031847", "0.50030386", "0.5000749", "0.49977994", "0.4984959", "0.4983306", "0.4982506", "0.49691755", "0.496851", "0.49599648", "0.49565515", "0.49533117", "0.49486575", "0.4941168", "0.49371102", "0.49174097", "0.49162528", "0.49125987", "0.4909005", "0.4909005", "0.49076214", "0.4902477", "0.4901667", "0.48976794", "0.4897333", "0.48943564", "0.489297", "0.4888257", "0.48843172", "0.48731545", "0.48730126", "0.4870313", "0.48663935", "0.4865796", "0.48638284", "0.48621193", "0.48568204", "0.48480853", "0.48450932", "0.48425177", "0.48387924", "0.48352644", "0.48259476", "0.48253894", "0.4817974", "0.48177096", "0.481645", "0.48137277", "0.47986865", "0.47922248", "0.4792117", "0.47905445", "0.4789699", "0.4784275", "0.47826183" ]
0.51150966
33
get minimum and maximum pixel values
func GetMinmax(target uint32, reset bool, format uint32, xtype uint32, values unsafe.Pointer) { C.glowGetMinmax(gpGetMinmax, (C.GLenum)(target), (C.GLboolean)(boolToInt(reset)), (C.GLenum)(format), (C.GLenum)(xtype), values) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func minMax(values []float64) (x, y float64) {\n\tmin, max := numbers.MinMax(values)\n\tif math.IsNaN(min) {\n\t\tmin = 0\n\t}\n\tif math.IsNaN(max) {\n\t\tmax = 0\n\t}\n\treturn min, max\n}", "func minmax() (min float64, max float64) {\n\tmin = math.NaN()\n\tmax = math.NaN()\n\tfor i := 0; i < cells; i++ {\n\t\tfor j := 0; j < cells; j++ {\n\t\t\tfor xoff := 0; xoff <= 1; xoff++ {\n\t\t\t\tfor yoff := 0; yoff <= 1; yoff++ {\n\t\t\t\t\tx := xyrange * (float64(i+xoff)/cells - 0.5)\n\t\t\t\t\ty := xyrange * (float64(j+yoff)/cells - 0.5)\n\t\t\t\t\tz := f(x, y)\n\t\t\t\t\tif math.IsNaN(min) || z < min {\n\t\t\t\t\t\tmin = z\n\t\t\t\t\t}\n\t\t\t\t\tif math.IsNaN(max) || z > max {\n\t\t\t\t\t\tmax = z\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn\n}", "func (m mathUtil) MinAndMax(values ...float64) (min float64, max float64) {\n\tif len(values) == 0 {\n\t\treturn\n\t}\n\tmin = values[0]\n\tmax = values[0]\n\tfor _, v := range values {\n\t\tif max < v {\n\t\t\tmax = v\n\t\t}\n\t\tif min > v {\n\t\t\tmin = v\n\t\t}\n\t}\n\treturn\n}", "func MinMax(array []float64) (float64, float64) {\n\tmax := array[0] // set the first value of array as max\n\tmin := array[0] // set the first value of array as min\n\n\t// loop through all of the array rows\n\tfor _, value := range array {\n\n\t\t// getting the maximum value of an array\n\t\t// if the next value have a bigger value, set the next value as max\n\t\tif max < value {\n\t\t\tmax = value\n\t\t}\n\n\t\t// getting the minimum value of an array\n\t\t// if the next value have a smaller value, set the next value as min\n\t\tif min > value {\n\t\t\tmin = value\n\t\t}\n\t}\n\n\t// return min and max values as float\n\treturn min, max\n}", "func (p parseSpec) minMax() (int, int) {\n\tmaxVal := -math.MaxInt64\n\tminVal := math.MaxInt64\n\tfor _, v := range p {\n\t\tif v > maxVal {\n\t\t\tmaxVal = v\n\t\t} else if v < minVal {\n\t\t\tminVal = v\n\t\t}\n\t}\n\treturn minVal, maxVal\n}", "func maxYmin(numeros []int) (int, int) { //indicamos los tipos que va retornar (int, int)\n\tvar max, min int\n\n\tfor _, v := range numeros {\n\t\tif v > max {\n\t\t\tmax = v\n\t\t}\n\n\t\tif v < min {\n\t\t\tmin = v\n\t\t}\n\t}\n\n\treturn max, min //indicamos el orden en el que se debe retornar\n}", "func MinMax(x, min, max int) int { return x }", "func GetMinmax(target uint32, reset bool, format uint32, xtype uint32, values unsafe.Pointer) {\n C.glowGetMinmax(gpGetMinmax, (C.GLenum)(target), (C.GLboolean)(boolToInt(reset)), (C.GLenum)(format), (C.GLenum)(xtype), values)\n}", "func findMinAndMax(a []int) (min int, max int) {\n\tmin = a[0]\n\tmax = a[0]\n\tfor _, value := range a {\n\t\tif value < min {\n\t\t\tmin = value\n\t\t}\n\t\tif value > max {\n\t\t\tmax = value\n\t\t}\n\t}\n\treturn min, max\n}", "func MinMax(array []int64) (int64, int64) {\n\tvar max = array[0]\n\tvar min = array[0]\n\tfor _, value := range array {\n\t\tif max < value {\n\t\t\tmax = value\n\t\t}\n\t\tif min > value {\n\t\t\tmin = value\n\t\t}\n\t}\n\treturn min, max\n}", "func MinMax(array []int64) (int64, int64) {\n\tvar max = array[0]\n\tvar min = array[0]\n\tfor _, value := range array {\n\t\tif max < value {\n\t\t\tmax = value\n\t\t}\n\t\tif min > value {\n\t\t\tmin = value\n\t\t}\n\t}\n\treturn min, max\n}", "func MinMax(a []float64) (float64, float64) {\n\tmax := a[0]\n\tmin := a[0]\n\n\tfor _, v := range a {\n\t\tif max < v {\n\t\t\tmax = v\n\t\t}\n\t\tif min > v {\n\t\t\tmin = v\n\t\t}\n\t}\n\n\treturn min, max\n}", "func minmax(x, y, z int) (int, int) {\n\tvar min int\n\tvar max int\n\n\tif x > y && x > z {\n\t\tmax = x\n\t\tif y < z {\n\t\t\tmin = y\n\t\t} else {\n\t\t\tmin = z\n\t\t}\n\t} else if y > x && y > z {\n\t\tmax = y\n\t\tif x < z {\n\t\t\tmin = x\n\t\t} else {\n\t\t\tmin = z\n\t\t}\n\t} else {\n\t\tmax = z\n\t\tif x < y {\n\t\t\tmin = x\n\t\t} else {\n\t\t\tmin = y\n\t\t}\n\t}\n\treturn min, max\n}", "func MinMax(matrix [][]float64) (float64, float64) {\n\tmax := math.Inf(-1)\n\tmin := math.Inf(1)\n\tfor _, row := range matrix {\n\t\tfor _, value := range row {\n\t\t\tif value > max {\n\t\t\t\tmax = value\n\t\t\t}\n\t\t\tif value < min {\n\t\t\t\tmin = value\n\t\t\t}\n\t\t}\n\t}\n\treturn min, max\n}", "func maxYmin2(numeros []int) (max int, min int) { //indicamos los tipos y nombre que va retornar (int, int)\n\tfor _, v := range numeros {\n\t\tif v > max {\n\t\t\tmax = v\n\t\t}\n\n\t\tif v < min {\n\t\t\tmin = v\n\t\t}\n\t}\n\n\treturn //ya no necesita return porque ya le indicamos como va retornar y que orden\n}", "func MinMax(array []int) (int, int) {\n\tmax := array[0]\n\tmin := array[0]\n\tfor _, value := range array {\n\t\tif max < value {\n\t\t\tmax = value\n\t\t}\n\t\tif min > value {\n\t\t\tmin = value\n\t\t}\n\t}\n\treturn min, max\n}", "func getTileRange(zoom int, minlon float64, minlat float64, maxlon float64, maxlat float64) (int, int, int, int) {\n\t// Get the row/coumn of the top-left tile.\n\ttopLeft := tegola.Tile{Z: zoom, Long: minlon, Lat: maxlat}\n\tminx, miny := topLeft.Deg2Num()\n\n\t// Get the row/column of the bottom-right tile.\n\tbottomRight := tegola.Tile{Z: zoom, Long: maxlon, Lat: minlat}\n\tmaxx, maxy := bottomRight.Deg2Num()\n\treturn minx, miny, maxx, maxy\n}", "func minmax(a, b, c float64) float64 {\n\ta = math.Max(a, b)\n\ta = math.Min(a, c)\n\treturn a\n}", "func GetMinMax(x []float64) (float64, float64) {\n\tmin := 1000.0\n\tmax := 0.0\n\tfor _, a := range x {\n\t\tif a > max {\n\t\t\tmax = a\n\t\t}\n\t\tif a < min {\n\t\t\tmin = a\n\t\t}\n\t}\n\treturn min, max\n}", "func Bounds(xs []float64) (min, max float64) {\n\tif len(xs) == 0 {\n\t\treturn math.NaN(), math.NaN()\n\t}\n\tmin, max = xs[0], xs[0]\n\tfor _, x := range xs {\n\t\tif x < min {\n\t\t\tmin = x\n\t\t}\n\t\tif x > max {\n\t\t\tmax = x\n\t\t}\n\t}\n\treturn\n}", "func getRange(min, max int) int {\n\treturn max * min\n}", "func MinLodPixel(value int) *SimpleElement { return newSEInt(\"minLodPixels\", value) }", "func findMapRange(rm RobMap) (int, int, int, int) {\n\tvar minX, maxX, minY, maxY int\n\tfor coord := range rm {\n\t\tif int(real(coord)) < minX {\n\t\t\tminX = int(real(coord))\n\t\t}\n\t\tif int(real(coord)) > maxX {\n\t\t\tmaxX = int(real(coord))\n\t\t}\n\t\tif int(imag(coord)) < minY {\n\t\t\tminY = int(imag(coord))\n\t\t}\n\t\tif int(imag(coord)) > maxY {\n\t\t\tmaxY = int(imag(coord))\n\t\t}\n\t}\n\treturn minX, maxX, minY, maxY\n}", "func (this *ExDomain) GetMinAndMax() (int, int) {\n\tif this.IsEmpty() {\n\t\tlogger.If(\"Domain %s\", *this)\n\t\tdebug.PrintStack()\n\t\tpanic(\"GetMinMax on empty domain\")\n\t}\n\treturn this.Min, this.Max\n}", "func MaxLodPixel(value int) *SimpleElement { return newSEInt(\"maxLodPixels\", value) }", "func scale_pixel(x, y int) (float64, float64) {\n\tnewx := float64(x)/(float64(maxX)/3) - 2.0\n\tnewy := float64(y)/(float64(maxY)/2) - 0.0 \n\treturn newx, newy\n}", "func (mc MultiCursor) MinMaxRow() (minRow, maxRow int) {\n\tminRow = mc.cursors[0].row\n\tmaxRow = mc.cursors[0].row\n\tfor _, cursor := range mc.cursors {\n\t\tif cursor.row < minRow {\n\t\t\tminRow = cursor.row\n\t\t}\n\t\tif cursor.row > maxRow {\n\t\t\tmaxRow = cursor.row\n\t\t}\n\t}\n\treturn minRow, maxRow\n}", "func (img *Image) DataRange() (xmin, xmax, ymin, ymax float64) {\n\treturn img.xmin, img.xmax, img.ymin, img.ymax\n}", "func (g *Group) getBounds() (*algebra.Vector, *algebra.Vector) {\n\tvar min *algebra.Vector = nil\n\tvar max *algebra.Vector = nil\n\tif len(g.shapes) == 0 {\n\t\treturn min, max\n\t}\n\tminX := math.Inf(1)\n\tminY := math.Inf(1)\n\tminZ := math.Inf(1)\n\tmaxX := math.Inf(-1)\n\tmaxY := math.Inf(-1)\n\tmaxZ := math.Inf(-1)\n\n\tfor _, shape := range g.shapes {\n\t\ttempMin, tempMax := shape.GetBounds()\n\t\tif tempMin != nil {\n\t\t\tb := GetBoundsTransform(tempMin, tempMax, shape.GetTransform())\n\t\t\ttempMin = b.minimum\n\t\t\ttempMax = b.maximum\n\t\t\ttempMinX := tempMin.Get()[0]\n\t\t\ttempMinY := tempMin.Get()[1]\n\t\t\ttempMinZ := tempMin.Get()[2]\n\t\t\ttempMaxX := tempMax.Get()[0]\n\t\t\ttempMaxY := tempMax.Get()[1]\n\t\t\ttempMaxZ := tempMax.Get()[2]\n\t\t\tminX = math.Min(tempMinX, minX)\n\t\t\tminY = math.Min(tempMinY, minY)\n\t\t\tminZ = math.Min(tempMinZ, minZ)\n\t\t\tmaxX = math.Max(tempMaxX, maxX)\n\t\t\tmaxY = math.Max(tempMaxY, maxY)\n\t\t\tmaxZ = math.Max(tempMaxZ, maxZ)\n\t\t}\n\t}\n\tmin = algebra.NewPoint(minX, minY, minZ)\n\tmax = algebra.NewPoint(maxX, maxY, maxZ)\n\treturn min, max\n}", "func (p *analogPin) Range() (analog.Sample, analog.Sample) {\n\tmax := analog.Sample{Raw: math.MaxInt16, V: p.voltageMultiplier}\n\tmin := analog.Sample{Raw: -math.MaxInt16, V: -p.voltageMultiplier}\n\treturn min, max\n}", "func estimateHistMinMax(dp pmetric.HistogramDataPoint) (float64, float64) {\n\tbounds := dp.MExplicitBounds()\n\tcounts := dp.MBucketCounts()\n\n\t// Because we do not know the actual min and max, we estimate them based on the min and max non-empty bucket\n\tminIdx, maxIdx := -1, -1\n\tfor y := 0; y < len(counts); y++ {\n\t\tif counts[y] > 0 {\n\t\t\tif minIdx == -1 {\n\t\t\t\tminIdx = y\n\t\t\t}\n\t\t\tmaxIdx = y\n\t\t}\n\t}\n\n\tif minIdx == -1 || maxIdx == -1 {\n\t\treturn 0, 0\n\t}\n\n\tvar min, max float64\n\n\t// Use lower bound for min unless it is the first bucket which has no lower bound, then use upper\n\tif minIdx == 0 {\n\t\tmin = bounds[minIdx]\n\t} else {\n\t\tmin = bounds[minIdx-1]\n\t}\n\n\t// Use upper bound for max unless it is the last bucket which has no upper bound, then use lower\n\tif maxIdx == len(counts)-1 {\n\t\tmax = bounds[maxIdx-1]\n\t} else {\n\t\tmax = bounds[maxIdx]\n\t}\n\n\treturn min, max\n}", "func getMinMaxScores(scores framework.NodeScoreList) (int64, int64) {\n\tvar max int64 = math.MinInt64 // Set to min value\n\tvar min int64 = math.MaxInt64 // Set to max value\n\n\tfor _, nodeScore := range scores {\n\t\tif nodeScore.Score > max {\n\t\t\tmax = nodeScore.Score\n\t\t}\n\t\tif nodeScore.Score < min {\n\t\t\tmin = nodeScore.Score\n\t\t}\n\t}\n\t// return min and max scores\n\treturn min, max\n}", "func (img *Image64) Normalize() {\n\t// find min and max\n\ttype minMax struct {\n\t\tmin, max Color64\n\t}\n\tminMaxCh := make(chan minMax, goRoutines)\n\n\t// divide rows between go routines\n\tfor t := 0; t < goRoutines; t++ {\n\t\ti0, i1 := goRountineRanges(img.Rect.Min.Y, img.Rect.Max.Y, t)\n\t\tgo func(y0, y1 int) {\n\t\t\tmm := minMax{Color64(math.MaxFloat64), Color64(-math.MaxFloat64)}\n\n\t\t\t// for each pixel\n\t\t\tfor y := y0; y < y1; y++ {\n\t\t\t\tindex := (y - img.Rect.Min.Y) * img.Stride\n\t\t\t\tfor x := img.Rect.Min.X; x < img.Rect.Max.X; x++ {\n\n\t\t\t\t\t// check if pixel is new min or max\n\t\t\t\t\tv := img.Pix[index]\n\t\t\t\t\tif v < mm.min {\n\t\t\t\t\t\tmm.min = v\n\t\t\t\t\t} else if v > mm.max {\n\t\t\t\t\t\tmm.max = v\n\t\t\t\t\t}\n\n\t\t\t\t\tindex++\n\t\t\t\t}\n\t\t\t}\n\t\t\tminMaxCh <- mm\n\t\t}(i0, i1)\n\t}\n\n\t// collect results of go routines\n\tmm := <-minMaxCh\n\tfor t := 1; t < goRoutines; t++ {\n\t\tv := <-minMaxCh\n\t\tif v.min < mm.min {\n\t\t\tmm.min = v.min\n\t\t}\n\t\tif v.max > mm.max {\n\t\t\tmm.max = v.max\n\t\t}\n\t}\n\n\t// normalize\n\tscale := 1.0 / (mm.max - mm.min)\n\n\t// divide rows between go routines\n\tvar wg sync.WaitGroup\n\twg.Add(goRoutines)\n\tfor t := 0; t < goRoutines; t++ {\n\t\ti0, i1 := goRountineRanges(img.Rect.Min.Y, img.Rect.Max.Y, t)\n\t\tgo func(y0, y1 int) {\n\n\t\t\t// for each pixel\n\t\t\tfor y := y0; y < y1; y++ {\n\t\t\t\ti := (y - img.Rect.Min.Y) * img.Stride\n\t\t\t\tfor x := img.Rect.Min.X; x < img.Rect.Max.X; x++ {\n\n\t\t\t\t\t// normalize\n\t\t\t\t\timg.Pix[i] = (img.Pix[i] - mm.min) * scale\n\n\t\t\t\t\ti++\n\t\t\t\t}\n\t\t\t}\n\t\t\twg.Done()\n\t\t}(i0, i1)\n\t}\n\twg.Wait()\n}", "func extent(v []int) (min int, max int) {\n\tmax = len(v) - 1\n\tif max == -1 {\n\t\treturn 0, 0\n\t}\n\tfor ; min <= max; min++ {\n\t\tif v[min] != 0 {\n\t\t\tbreak\n\t\t}\n\t}\n\tfor ; max > 0; max-- {\n\t\tif v[max] != 0 {\n\t\t\tbreak\n\t\t}\n\t}\n\tif min > max {\n\t\treturn 0, 0\n\t}\n\treturn\n}", "func MinMaxInt8(x, min, max int8) int8 { return x }", "func min(co Coordinate) int {\n\tif co.horizontal < co.vertical {\n\t\treturn co.horizontal\n\t}\n\n\treturn co.vertical\n}", "func MinMaxInt32(x, min, max int32) int32 { return x }", "func dim(img image.Image) (w, h int) {\n\tw, h = img.Bounds().Max.X, img.Bounds().Max.Y\n\treturn\n}", "func extrema(data []float64) (float64, float64) {\n\tmin := largest\n\tmax := smallest\n\n\tfor _, d := range data {\n\t\tif d > max {\n\t\t\tmax = d\n\t\t}\n\t\tif d < min {\n\t\t\tmin = d\n\t\t}\n\t}\n\treturn min, max\n}", "func MinMaxUint32(x, min, max uint32) uint32 { return x }", "func normal2imageCoordinate(x, y int) (int, int) {\n\tx = x + maxX/3\n\ty = y + maxY/2\n\treturn x, y\n}", "func GetMinMax(limitRanges []*corev1.LimitRange, resourceName corev1.ResourceName) (minimum *resource.Quantity, maximum *resource.Quantity) {\n\tminList, maxList := findMinMaxLimits(limitRanges, resourceName)\n\n\tminimum = minQuantity(minList)\n\tmaximum = maxQuantity(maxList)\n\n\treturn\n}", "func (s Sample) Bounds() (min, max float64) {\n\tif len(s.Xs) == 0 || !s.Sorted {\n\t\treturn Bounds(s.Xs)\n\t}\n\n\treturn s.Xs[0], s.Xs[len(s.Xs)-1]\n}", "func MinMaxUint8(x, min, max uint8) uint8 { return x }", "func MinMaxUint64(x, min, max uint64) uint64 { return x }", "func getPixVal(c color.Color) float64 {\n\tr, _, _, _ := c.RGBA()\n\treturn float64(r >> 8)\n}", "func MinMaxUint(x, min, max uint) uint { return x }", "func MinMaxInt(min, max int) (int, int) {\n\tif min > max {\n\t\treturn max, min\n\t}\n\treturn min, max\n}", "func min(x, y int) int {\n\tif x > y {\n\t\treturn y\n\t}\n\treturn x\n}", "func Min(x, y int64) int64 {\n\treturn y + ((x - y) & ((x - y) >> 63))\n}", "func (self *ComponentScaleMinMax) ScaleMax() *Point{\n return &Point{self.Object.Get(\"scaleMax\")}\n}", "func min(x, y int) int {\n\tif x > y {\n\t\treturn y\n\t}\n\n\treturn x\n}", "func (lc *LineChart) yMinMax() (float64, float64) {\n\tvar (\n\t\tminimums []float64\n\t\tmaximums []float64\n\t)\n\tfor _, sv := range lc.series {\n\t\tminimums = append(minimums, sv.min)\n\t\tmaximums = append(maximums, sv.max)\n\t}\n\n\tif lc.opts.yAxisCustomScale != nil {\n\t\tminimums = append(minimums, lc.opts.yAxisCustomScale.min)\n\t\tmaximums = append(maximums, lc.opts.yAxisCustomScale.max)\n\t}\n\n\tmin, _ := minMax(minimums)\n\t_, max := minMax(maximums)\n\n\treturn min, max\n}", "func (r ShardTimeRanges) MinMax() (time.Time, time.Time) {\n\tmin, max := time.Time{}, time.Time{}\n\tfor _, ranges := range r {\n\t\tif ranges.IsEmpty() {\n\t\t\tcontinue\n\t\t}\n\t\tit := ranges.Iter()\n\t\tfor it.Next() {\n\t\t\tcurr := it.Value()\n\t\t\tif min.IsZero() || curr.Start.Before(min) {\n\t\t\t\tmin = curr.Start\n\t\t\t}\n\t\t\tif max.IsZero() || curr.End.After(max) {\n\t\t\t\tmax = curr.End\n\t\t\t}\n\t\t}\n\t}\n\treturn min, max\n}", "func min(x, y int64) int64 {\n\tif x > y {\n\t\treturn y\n\t}\n\treturn x\n}", "func (l Line) imageValueAt(x, y float64) (int, int, float64) {\n\ti, k := l.imageCoordsToIndexes(x, y)\n\tif i == -1 || k == -1 {\n\t\treturn 0, 0, math.NaN()\n\t}\n\tif i < 0 || i > len(l.Image) || k < 0 || k > len(l.Image[i]) {\n\t\treturn 0, 0, math.NaN()\n\t}\n\tz := xmath.Scale(float64(l.Image[i][k]), 0.0, 255.0, l.ImageMin, l.ImageMax)\n\treturn i, k, z\n}", "func (m mathUtil) MinAndMaxOfTime(values ...time.Time) (min time.Time, max time.Time) {\n\tif len(values) == 0 {\n\t\treturn\n\t}\n\n\tmin = values[0]\n\tmax = values[0]\n\n\tfor _, v := range values {\n\t\tif max.Before(v) {\n\t\t\tmax = v\n\t\t}\n\t\tif min.After(v) {\n\t\t\tmin = v\n\t\t}\n\t}\n\treturn\n}", "func main() {\n\tvar minMax = func(n []int) (int, int) {\n\t\tvar min, max int\n\n\t\tfor key, val := range n {\n\n\t\t\tif key == 0 {\n\t\t\t\tmin, max = val, val\n\t\t\t}\n\n\t\t\tif val < min {\n\t\t\t\tmin = val\n\t\t\t}\n\n\t\t\tif val > max {\n\t\t\t\tmax = val\n\t\t\t}\n\t\t}\n\n\t\treturn min, max\n\t}\n\n\tvar number = []int{10, 22, 3, 77, 1, 5}\n\n\tvar min, max = minMax(number)\n\n\tfmt.Printf(\"min : %d \", min)\n\tfmt.Printf(\"max : %d\", max)\n}", "func PeakDetect(vals []float64, delta float64) ([]int, []float64, []int, []float64) {\n\tminx := make([]int, 0, 0)\n\tmaxx := make([]int, 0, 0)\n\tminvals := make([]float64, 0, 0)\n\tmaxvals := make([]float64, 0, 0)\n\n\txvals := make([]int, len(vals), len(vals))\n\tfor i := 0; i < len(vals); i++ {\n\t\txvals[i] = i\n\t}\n\n\tif delta < 0 {\n\t\treturn minx, minvals, maxx, maxvals\n\t}\n\n\tmn := math.Inf(1)\n\tmx := math.Inf(-1)\n\tmnpos := int(math.NaN())\n\tmxpos := int(math.NaN())\n\n\tlookForMax := true\n\n\tfor i, val := range vals {\n\t\tif val > mx {\n\t\t\tmx = val\n\t\t\tmxpos = i\n\t\t}\n\t\tif val < mn {\n\t\t\tmn = val\n\t\t\tmnpos = i\n\t\t}\n\n\t\tif lookForMax {\n\t\t\tif val < mx-delta {\n\t\t\t\tmaxx = append(maxx, mxpos)\n\t\t\t\tmaxvals = append(maxvals, mx)\n\n\t\t\t\tmn = val\n\t\t\t\tmnpos = i\n\t\t\t\tlookForMax = false\n\t\t\t}\n\t\t} else {\n\t\t\tif val > mn+delta {\n\t\t\t\tminx = append(minx, mnpos)\n\t\t\t\tminvals = append(minvals, mn)\n\n\t\t\t\tmx = val\n\t\t\t\tmxpos = i\n\t\t\t\tlookForMax = true\n\t\t\t}\n\t\t}\n\t}\n\n\treturn minx, minvals, maxx, maxvals\n}", "func MinMax(times ...time.Time) (min time.Time, max time.Time) {\n\tif len(times) == 0 {\n\t\treturn\n\t}\n\tmin = times[0]\n\tmax = times[0]\n\n\tfor index := 1; index < len(times); index++ {\n\t\tif times[index].Before(min) {\n\t\t\tmin = times[index]\n\t\t}\n\t\tif times[index].After(max) {\n\t\t\tmax = times[index]\n\t\t}\n\t}\n\treturn\n}", "func (b *BarChart) DataRange() (xmin, xmax, ymin, ymax float64) {\n\n// fmt.Println (\"DataRange start \" )\n\n\n\tcatMin := b.XMin\n\tcatMax := catMin + float64(len(b.Values)-1)\n\n\tvalMin := math.Inf(1)\n\tvalMax := math.Inf(-1)\n\tfor i, val := range b.Values {\n\t\tvalBot := b.stackedOn.BarHeight(i)\n\t\tvalTop := valBot + val\n\t\tvalMin = math.Min(valMin, math.Min(valBot, valTop))\n\t\tvalMax = math.Max(valMax, math.Max(valBot, valTop))\n\t}\n\tif !b.Horizontal { // case normal\n\t\treturn catMin, catMax, valMin, valMax\n\t}\n//\tfmt.Println (\"DataRange valMin\" ,valMin)\n// fmt.Println (\"DataRange valMax\" ,valMax)\n// fmt.Println (\"DataRange catMin\" ,catMin)\n// fmt.Println (\"DataRange catMax\" ,catMax)\n\n// fmt.Println (\"DataRange end \" )\n\n\treturn valMin, valMax, catMin, catMax\n}", "func (r paintingRobot) getGridInfo() (int, int, point) {\n xMin, xMax, yMin, yMax := 0, 0, 0, 0\n for _, p := range r.paintedPoints {\n if p.x > xMax {\n xMax = p.x\n }\n if p.x < xMin {\n xMin = p.x\n }\n if p.y > yMax {\n yMax = p.y\n }\n if p.y < yMin {\n yMin = p.y\n }\n }\n\n return int(math.Abs(float64(xMin))) + xMax + 1, int(math.Abs(float64(yMin))) + yMax + 1,\n point{\n x: int(math.Abs(float64(xMin))),\n y: int(math.Abs(float64(yMin))),\n }\n}", "func (s Set) GetRange() float64 {\r\n\tmin, max := s[0], s[0]\r\n\tfor _, item := range s {\r\n\t\tif min > item {\r\n\t\t\tmin = item\r\n\t\t}\r\n\t\tif max < item {\r\n\t\t\tmax = item\r\n\t\t}\r\n\t}\r\n\treturn max - min\r\n}", "func min(x, y int) int {\n\tif x < y {\n\t\treturn x\n\t}\n\treturn y\n}", "func min(x, y int) int {\n\tif x < y {\n\t\treturn x\n\t}\n\treturn y\n}", "func min(x, y int) int {\n\tif x < y {\n\t\treturn x\n\t}\n\treturn y\n}", "func Min(x, y int) int {\n\tif x < y {\n\t\treturn x\n\t}\n\treturn y\n}", "func Min(x, y int) int {\n\tif x < y {\n\t\treturn x\n\t}\n\treturn y\n}", "func Min(x, y int) int {\n\tif x < y {\n\t\treturn x\n\t}\n\treturn y\n}", "func (s *scalerService) GetMinMaxReplicas(ctx context.Context, serviceName string) (uint64, uint64, error) {\n\n\tminReplicas := s.defaultMin\n\tmaxReplicas := s.defaultMax\n\n\tservice, _, err := s.c.ServiceInspectWithRaw(ctx, serviceName)\n\n\tif err != nil {\n\t\treturn minReplicas, maxReplicas, errors.Wrap(err, \"docker inspect failed in ScalerService\")\n\t}\n\n\tlabels := service.Spec.Labels\n\tminLabel := labels[s.minLabel]\n\tmaxLabel := labels[s.maxLabel]\n\n\tif len(minLabel) > 0 {\n\t\tminReplicasLabel, err := strconv.Atoi(minLabel)\n\t\tif err == nil {\n\t\t\tminReplicas = uint64(minReplicasLabel)\n\t\t}\n\t}\n\tif len(maxLabel) > 0 {\n\t\tmaxReplicasLabel, err := strconv.Atoi(maxLabel)\n\t\tif err == nil {\n\t\t\tmaxReplicas = uint64(maxReplicasLabel)\n\t\t}\n\t}\n\n\treturn minReplicas, maxReplicas, err\n}", "func (self *ComponentScaleMinMax) ScaleMin() *Point{\n return &Point{self.Object.Get(\"scaleMin\")}\n}", "func (o *Grid) Umin(idim int) float64 {\n\treturn o.umin[idim]\n}", "func MinRange(d []float64, l, r int) (m int) {\n\tmin := d[l]\n\tm = l\n\tfor l++; l < r; l++ {\n\t\tif d[l] <= min {\n\t\t\tmin = d[l]\n\t\t\tm = l\n\t\t}\n\t}\n\treturn\n}", "func getPosLimit(pos Point, max *Point, rv int32) (start, end Point) {\n\tif (pos.X - rv) < 0 {\n\t\tstart.X = 0\n\t\tend.X = 2 * rv\n\t} else if (pos.X + rv) > max.X {\n\t\tend.X = max.X\n\t\tstart.X = max.X - 2*rv\n\t} else {\n\t\tstart.X = pos.X - rv\n\t\tend.X = pos.X + rv\n\t}\n\n\tif (pos.Y - rv) < 0 {\n\t\tstart.Y = 0\n\t\tend.Y = 2 * rv\n\t} else if (pos.Y + rv) > max.Y {\n\t\tend.Y = max.Y\n\t\tstart.Y = max.Y - 2*rv\n\t} else {\n\t\tstart.Y = pos.Y - rv\n\t\tend.Y = pos.Y + rv\n\t}\n\n\tif start.X < 0 {\n\t\tstart.X = 0\n\t}\n\n\tif end.X > max.X {\n\t\tend.X = max.X\n\t}\n\n\tif start.Y < 0 {\n\t\tstart.Y = 0\n\t}\n\n\tif end.Y > max.Y {\n\t\tend.Y = max.Y\n\t}\n\n\treturn\n}", "func min(x, y int) int {\n\tif x < y {\n\t\treturn x\n\t} else {\n\t\treturn y\n\t}\n}", "func MinMaxInt(values ...int) (min int, max int) {\n\tsliceLen := len(values)\n\tif sliceLen == 0 {\n\t\treturn 0, 0\n\t}\n\n\tmin = values[0]\n\tmax = values[0]\n\tfor i := 0; i < sliceLen; i++ {\n\t\tif values[i] < min {\n\t\t\tmin = values[i]\n\t\t}\n\t\tif values[i] > max {\n\t\t\tmax = values[i]\n\t\t}\n\t}\n\n\treturn\n}", "func (g *Grid) Bounds() (topleft, bottonright Point) {\n\tmin := Point{BIG, BIG}\n\tmax := Point{-1 * BIG, -1 * BIG}\n\tfor _, p := range g.Points {\n\t\tif p[0] < min[0] {\n\t\t\tmin[0] = p[0]\n\t\t}\n\t\tif p[1] < min[1] {\n\t\t\tmin[1] = p[1]\n\t\t}\n\t\tif p[0] > max[0] {\n\t\t\tmax[0] = p[0]\n\t\t}\n\t\tif p[1] > max[1] {\n\t\t\tmax[1] = p[1]\n\t\t}\n\t}\n\t// add some padding\n\tmin[0] -= PAD\n\tmin[1] -= PAD\n\tmax[0] += PAD\n\tmax[1] += PAD\n\n\treturn min, max\n}", "func (gd Grid) Range() Range {\n\treturn gd.Rg.Sub(gd.Rg.Min)\n}", "func MinMaxInt16(x, min, max int16) int16 { return x }", "func (c RGB) Minh() float32 {\n\treturn m.Min(m.Min(c[0], c[1]), c[2])\n}", "func (p *Magnifier) Bounds() image.Rectangle {\n\tr := p.Image.Bounds()\n\tr.Min.X *= p.Sx\n\tr.Min.Y *= p.Sy\n\tr.Max.X *= p.Sx\n\tr.Max.Y *= p.Sy\n\treturn r\n}", "func Min(x, y float64) float64 {\n\n\treturn math.Min(x, y)\n}", "func MinMaxInt64(x, min, max int64) int64 { return x }", "func scale(val float64, min float64, max float64, outMin float64, outMax float64) float64 {\r\n\tdenom := 1.0\r\n\ty := 0.0\r\n\tif outMin - min != 0 {\r\n\t\tdenom = outMin - min\r\n\t\ty = (outMax - max) / denom * val - min + outMin\r\n\t} else {\r\n\t\ty = outMax / max * val - min + outMin\r\n\t}\r\n\treturn y\r\n}", "func (s *Slicer) MBB() (min, max [3]float32) {\n\tif s.irmf != nil {\n\t\tif len(s.irmf.Min) != 3 || len(s.irmf.Max) != 3 {\n\t\t\tlog.Fatalf(\"Bad IRMF model: min=%#v, max=%#v\", s.irmf.Min, s.irmf.Max)\n\t\t}\n\t\tmin[0], min[1], min[2] = s.irmf.Min[0], s.irmf.Min[1], s.irmf.Min[2]\n\t\tmax[0], max[1], max[2] = s.irmf.Max[0], s.irmf.Max[1], s.irmf.Max[2]\n\t}\n\treturn min, max\n}", "func funcClampMin(vals []parser.Value, args parser.Expressions, enh *EvalNodeHelper) Vector {\n\tvec := vals[0].(Vector)\n\tmin := vals[1].(Vector)[0].F\n\tfor _, el := range vec {\n\t\tenh.Out = append(enh.Out, Sample{\n\t\t\tMetric: enh.DropMetricName(el.Metric),\n\t\t\tF: math.Max(min, el.F),\n\t\t})\n\t}\n\treturn enh.Out\n}", "func testMaxMin(f interface{}) (passed, failed int, err error) {\n\tintArr := &pr.ArrayMatcher{M: &pr.KindMatcher{Kind: reflect.Int}}\n\twantFn := &pr.FuncMatcher{\n\t\tIn: []pr.TypeMatcher{intArr},\n\t\tOut: []pr.TypeMatcher{\n\t\t\t&pr.KindMatcher{Kind: reflect.Int},\n\t\t\t&pr.KindMatcher{Kind: reflect.Int},\n\t\t},\n\t}\n\tif !wantFn.MatchType(reflect.TypeOf(f)) {\n\t\treturn 0, 0, errors.New(\"want func([N]int)(min, max int)\")\n\t}\n\n\tvalF := reflect.ValueOf(f)\n\tcallF := func(in reflect.Value) (max, min int) {\n\t\targs := []reflect.Value{in.Elem()}\n\t\tret := valF.Call(args)\n\t\treturn int(ret[0].Int()), int(ret[1].Int())\n\t}\n\n\tal := intArr.Len\n\tbuilder := func() *pr.IntArrayBuilder {\n\t\treturn &pr.IntArrayBuilder{Count: al}\n\t}\n\n\tfor _, test := range []struct {\n\t\tname string\n\t\tin *pr.IntArrayBuilder\n\t\twantMin, wantMax int\n\t}{\n\t\t{name: \"zero value\", wantMin: 0, wantMax: 0, in: builder()},\n\t\t{name: \"straight up\", wantMin: 1, wantMax: al, in: builder().FillRange(1, 1)},\n\t\t{name: \"straight down\", wantMin: -al, wantMax: -1, in: builder().FillRange(-1, -1)},\n\t\t{name: \"shuffle\", wantMin: -al / 2, wantMax: -al/2 + al - 1, in: builder().FillRange(-al/2, 1).Shuffle()},\n\t} {\n\t\tactualMax, actualMin := callF(test.in.Build())\n\t\tif actualMin == test.wantMin && actualMax == test.wantMax {\n\t\t\tlog.Println(\"PASS:\", test.name)\n\t\t\tpassed++\n\t\t} else {\n\t\t\tlog.Println(\"FAIL:\", test.name)\n\t\t\tfailed++\n\t\t}\n\t}\n\treturn\n}", "func (spriteBatch *SpriteBatch) GetDrawRange() (int, int) {\n\tmin := 0\n\tmax := spriteBatch.count - 1\n\tif spriteBatch.rangeMax >= 0 {\n\t\tmax = int(math.Min(float64(spriteBatch.rangeMax), float64(max)))\n\t}\n\tif spriteBatch.rangeMin >= 0 {\n\t\tmin = int(math.Min(float64(spriteBatch.rangeMin), float64(max)))\n\t}\n\treturn min, max\n}", "func (p picReader) getAbsCoords() (int, int, error) {\n\tcode, err := p.bits.Read32(24)\n\tif err != nil {\n\t\treturn 0, 0, err\n\t}\n\tx := ((code & 0xF00000) >> 12) | ((code & 0xFF00) >> 8)\n\ty := ((code & 0x0F0000) >> 8) | ((code & 0x00FF) >> 0)\n\treturn int(x), int(y), nil\n}", "func Range(instructions []string) (int, int) {\n\tmax := 0\n\tmin := 4294967295\n\tfor _, instruction := range instructions {\n\t\tid := getID(instruction)\n\t\tif id > max {\n\t\t\tmax = id\n\t\t}\n\t\tif id < min {\n\t\t\tmin = id\n\t\t}\n\t}\n\treturn max, min\n}", "func MinMaxDiff(vals []string) int {\n\tmin, _ := strconv.Atoi(vals[0])\n\tmax := min\n\tfor _, v := range vals {\n\t\td, err := strconv.Atoi(v)\n\t\tif err != nil {\n\t\t\tpanic(\"could not parse number!\")\n\t\t}\n\t\tif int(d) < min {\n\t\t\tmin = int(d)\n\t\t} else if int(d) > max {\n\t\t\tmax = int(d)\n\t\t}\n\t}\n\n\treturn max - min\n}", "func (p *Param) GetRange() (min, max float64, err error) {\n\tvar ferr C.FMOD_RESULT\n\tvar cmin, cmax C.float\n\tbase.Thread(func() {\n\t\tferr = C.FMOD_EventParameter_GetRange(p.param, &cmin, &cmax)\n\t})\n\tmin = float64(cmin)\n\tmax = float64(cmax)\n\terr = base.ResultToError(ferr)\n\treturn\n}", "func Min(x int, y int) int {\n\tif x < y { return x }\n\treturn y\n}", "func Min(x, y int32) int32 {\n\treturn y + (((x - y) >> 31) & (x - y))\n}", "func TestGetMinMaxPositions(t *testing.T) {\n\tminPos, maxPos := getMinMaxPositions(rowIdentifier, datatypes.Position{X: 1, Y: 2})\n\tif (minPos != datatypes.Position{X: 1, Y: 0} || maxPos != datatypes.Position{X: 1, Y: 8}) {\n\t\tt.Error(\"Expected {1,0},{1,8}; got \", minPos, maxPos)\n\t}\n\tminPos, maxPos = getMinMaxPositions(colIdentifier, datatypes.Position{X: 1, Y: 2})\n\tif (minPos != datatypes.Position{X: 0, Y: 2} || maxPos != datatypes.Position{X: 8, Y: 2}) {\n\t\tt.Error(\"Expected {0,2},{8,2}; got \", minPos, maxPos)\n\t}\n\tminPos, maxPos = getMinMaxPositions(blockIdentifier, datatypes.Position{X: 1, Y: 2})\n\tif (minPos != datatypes.Position{X: 0, Y: 0} || maxPos != datatypes.Position{X: 2, Y: 2}) {\n\t\tt.Error(\"Expected {0,0},{2,2}; got \", minPos, maxPos)\n\t}\n}", "func (o *Grid) Xmax(idim int) float64 {\n\treturn o.xmax[idim]\n}", "func (g *Geometry) ComputeBoundingBox(force bool) (min, max []float64) {\n\tif !force && checkBoundingBox(g.BoundingBox) {\n\t\tdimension := len(g.BoundingBox) / 2\n\t\treturn g.BoundingBox[0:dimension], g.BoundingBox[dimension:]\n\t}\n\n\tbmin := make([]float64, 0, 16)\n\tbmax := make([]float64, 0, 16)\n\tswitch g.Type {\n\tcase GeometryPoint:\n\t\tbmin = append(bmin, g.Point...)\n\t\tbmax = append(bmax, g.Point...)\n\tcase GeometryMultiPoint:\n\t\tdimension := len(g.MultiPoint[0])\n\t\tbmin = append(bmin, g.MultiPoint[0]...)\n\t\tbmax = append(bmax, g.MultiPoint[0]...)\n\t\tfor i := 1; i < len(g.MultiPoint); i++ {\n\t\t\tfor d := 0; d < dimension; d++ {\n\t\t\t\tbmin[d] = math.Min(bmin[d], g.MultiPoint[i][d])\n\t\t\t\tbmax[d] = math.Max(bmax[d], g.MultiPoint[i][d])\n\t\t\t}\n\t\t}\n\tcase GeometryLineString:\n\t\tdimension := len(g.LineString[0])\n\t\tbmin = append(bmin, g.LineString[0]...)\n\t\tbmax = append(bmax, g.LineString[0]...)\n\t\tfor i := 1; i < len(g.LineString); i++ {\n\t\t\tfor d := 0; d < dimension; d++ {\n\t\t\t\tbmin[d] = math.Min(bmin[d], g.LineString[i][d])\n\t\t\t\tbmax[d] = math.Max(bmax[d], g.LineString[i][d])\n\t\t\t}\n\t\t}\n\tcase GeometryMultiLineString:\n\t\tdimension := len(g.MultiLineString[0][0])\n\t\tbmin = append(bmin, g.MultiLineString[0][0]...)\n\t\tbmax = append(bmax, g.MultiLineString[0][0]...)\n\t\tfor line := 0; line < len(g.MultiLineString); line++ {\n\t\t\tlinestring := g.MultiLineString[line]\n\t\t\tfor i := 0; i < len(linestring); i++ {\n\t\t\t\tfor d := 0; d < dimension; d++ {\n\t\t\t\t\tbmin[d] = math.Min(bmin[d], linestring[i][d])\n\t\t\t\t\tbmax[d] = math.Max(bmax[d], linestring[i][d])\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\tcase GeometryPolygon:\n\t\tdimension := len(g.Polygon[0][0])\n\t\tbmin = append(bmin, g.Polygon[0][0]...)\n\t\tbmax = append(bmax, g.Polygon[0][0]...)\n\t\tfor line := 0; line < len(g.Polygon); line++ {\n\t\t\tlinestring := g.Polygon[line]\n\t\t\tfor i := 0; i < len(linestring); i++ {\n\t\t\t\tfor d := 0; d < dimension; d++ {\n\t\t\t\t\tbmin[d] = math.Min(bmin[d], linestring[i][d])\n\t\t\t\t\tbmax[d] = math.Max(bmax[d], linestring[i][d])\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\tcase GeometryMultiPolygon:\n\t\tdimension := len(g.MultiPolygon[0][0][0])\n\t\tbmin = append(bmin, g.MultiPolygon[0][0][0]...)\n\t\tbmax = append(bmax, g.MultiPolygon[0][0][0]...)\n\t\tfor poly := 0; poly < len(g.MultiPolygon); poly++ {\n\t\t\tfor line := 0; line < len(g.MultiPolygon[poly]); line++ {\n\t\t\t\tlinestring := g.MultiPolygon[poly][line]\n\t\t\t\tfor i := 0; i < len(linestring); i++ {\n\t\t\t\t\tfor d := 0; d < dimension; d++ {\n\t\t\t\t\t\tbmin[d] = math.Min(bmin[d], linestring[i][d])\n\t\t\t\t\t\tbmax[d] = math.Max(bmax[d], linestring[i][d])\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\tcase GeometryCollection:\n\t\tif g.Geometries == nil || len(g.Geometries) == 0 {\n\t\t\treturn nil, nil\n\t\t}\n\t\tif bmin, bmax = g.Geometries[0].ComputeBoundingBox(force); bmin == nil {\n\t\t\treturn nil, nil\n\t\t}\n\t\tdimension := len(bmin)\n\t\tfor i := 1; i < len(g.Geometries); i++ {\n\t\t\ttmin, tmax := g.Geometries[i].ComputeBoundingBox(force)\n\t\t\tif tmin == nil || len(tmin) != dimension {\n\t\t\t\treturn nil, nil\n\t\t\t}\n\t\t\tfor d := 0; d < dimension; d++ {\n\t\t\t\tbmin[d] = math.Min(bmin[d], tmin[d])\n\t\t\t\tbmax[d] = math.Max(bmax[d], tmax[d])\n\t\t\t}\n\t\t}\n\t}\n\treturn bmin, bmax\n}", "func MinMaxUintptr(x, min, max uintptr) uintptr { return x }", "func minY(d []float64, x, y *int, r int, asc bool) {\n\tfor *x < r {\n\t\tif asc {\n\t\t\t*y = MinRange(d, *x, r)\n\t\t} else {\n\t\t\t*y = MaxRange(d, *x, r)\n\t\t}\n\n\t\tif *y != *x {\n\t\t\tbreak\n\t\t}\n\t\t(*x)++\n\t}\n}", "func MaxRange(d []float64, l, r int) (m int) {\n\tmaxv := d[l]\n\tm = l\n\tfor l++; l < r; l++ {\n\t\tif d[l] >= maxv {\n\t\t\tmaxv = d[l]\n\t\t\tm = l\n\t\t}\n\t}\n\treturn m\n}" ]
[ "0.71178883", "0.66849655", "0.6580342", "0.65483576", "0.65092385", "0.6477254", "0.64606416", "0.63938326", "0.63721234", "0.6366022", "0.6366022", "0.63419414", "0.6329853", "0.632956", "0.63209885", "0.62953013", "0.62588567", "0.6194446", "0.61617756", "0.6057746", "0.60416967", "0.6037889", "0.602708", "0.6002752", "0.5937907", "0.5936908", "0.5911895", "0.59116334", "0.59049106", "0.5856383", "0.5834716", "0.58188075", "0.57696193", "0.57572204", "0.5743575", "0.57372814", "0.5734608", "0.5728509", "0.5716862", "0.56828475", "0.56801134", "0.5671222", "0.5618465", "0.55786335", "0.5555307", "0.5554179", "0.5545401", "0.5537129", "0.553227", "0.55310535", "0.5525005", "0.5519165", "0.55135846", "0.55098945", "0.5509046", "0.5494686", "0.5493026", "0.5472497", "0.547082", "0.54408413", "0.5432529", "0.5431456", "0.54218626", "0.5421307", "0.5421307", "0.5421307", "0.5408831", "0.5408831", "0.5408831", "0.540617", "0.53883374", "0.53879166", "0.5376214", "0.53762066", "0.5369701", "0.5363244", "0.5354384", "0.5350143", "0.53483677", "0.53432006", "0.53383505", "0.5336648", "0.5333253", "0.532879", "0.5328692", "0.5323935", "0.53194255", "0.52972114", "0.5296421", "0.5295284", "0.52906257", "0.52877754", "0.5280936", "0.52755225", "0.52701867", "0.52687657", "0.5263742", "0.525843", "0.5227467", "0.522742" ]
0.61565
19
retrieve the location of a sample
func GetMultisamplefv(pname uint32, index uint32, val *float32) { C.glowGetMultisamplefv(gpGetMultisamplefv, (C.GLenum)(pname), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(val))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Location() (string, error) {\n\tslice, err := loader(\"locations\")\n\tcheckErr(err)\n\treturn random(slice), nil\n}", "func Sample() string {\n\treturn Samples[rand.Intn(len(Samples))]\n}", "func (m *Ruuvi) SampleConfig() string {\n\treturn sampleConfig\n}", "func (p Meta) Location() string { return p.location }", "func (n *Vspheretpgy) SampleConfig() string {\n\treturn sampleConfig\n}", "func (t *TestServer) LoadSample(name string) (data []byte) {\n\treturn LoadSampleDir(name, t.SampleDir, []byte(`{}`))\n}", "func (g Gen) Sample() (interface{}, bool) {\n\treturn g(DefaultGenParameters()).Retrieve()\n}", "func (i *Resource) Location() string {\n\treturn i.data.Location\n}", "func (pc *PMBusClient) Sample(payload string) (string, error) {\n\treq, err := DecodePMBUSOperationPayload(payload)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"decode pmbus operation payload failed, errmsg {%v}\", err)\n\t}\n\n\tframe, err := pc.EncodeRequest(req)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"encode request failed, errmsg {%v}\", err)\n\t}\n\n\tfmt.Printf(\"req: %v\\n\", string(frame))\n\tresp, err := pc.Request(frame)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"request for data failed, errmsg {%v}\", err)\n\t}\n\n\tdata, err := pc.DecodeResponse(resp)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"decode response failed, errmsg {%v}\", err)\n\t}\n\tfmt.Printf(\"resp: %v\\n\", string(data))\n\n\treturn string(data), nil\n}", "func (o LookupSharedImageResultOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v LookupSharedImageResult) string { return v.Location }).(pulumi.StringOutput)\n}", "func (f *File) SampleConfig() string {\n\treturn sampleConfig\n}", "func (b Bucket) GetLocation(args ...Params) (string, error) {\n\theader, query := getHeaderQuery(args)\n\tquery.Set(\"location\", \"\")\n\tvar location string\n\terr := b.Do(\"GET\", \"\", nil, &location, header, query)\n\treturn location, err\n}", "func (api InstagramAPI) Location(locationId string) Location {\n\tparams := getEmptyMap()\n\tresponse := api.DoRequest(\"locations/\" + locationId, params)\n\treturn LocationFromAPI(response.Object(\"data\"))\n}", "func (i *InfluxDB) SampleConfig() string {\n\treturn sampleConfig\n}", "func (l *Logger) Sample(s zerolog.Sampler) zerolog.Logger {\n\treturn l.logger.Sample(s)\n}", "func (self Source) GetOffsetSamples() int32 {\n\treturn self.Geti(AlSampleOffset)\n}", "func (o RunBookOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *RunBook) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)\n}", "func (o *OpcUA) SampleConfig() string {\n\treturn sampleConfig\n}", "func Location() string {\n\treturn locationDefault\n}", "func (dm *DCOSMetadata) SampleConfig() string {\n\treturn sampleConfig\n}", "func getLocation(loc string) *time.Location {\n\tl, _ := time.LoadLocation(loc)\n\treturn l\n}", "func (s Starbase) Location() (int, int) {\n\treturn s.X, s.Y\n}", "func (group *ResourceGroup) Location() string {\n\tif group.Spec.Location == nil {\n\t\treturn \"\"\n\t}\n\treturn *group.Spec.Location\n}", "func (group *ResourceGroup) Location() string {\n\tif group.Spec.Location == nil {\n\t\treturn \"\"\n\t}\n\treturn *group.Spec.Location\n}", "func (r *Reservoir) GetSample() []interface{} {\n\treturn r.sample\n}", "func (c *ClockHand) GetLocation() int64 {\n\treturn c.Stepper.GetStep()\n}", "func (uni *Uniform) Location(gs *GLS) int32 {\n\n\tloc := gs.prog.GetUniformLocation(uni.name)\n\treturn loc\n}", "func (search *Search) Location(lat, lng, location string) (*SearchResult, error) {\n\tinsta := search.inst\n\tq := map[string]string{\n\t\t\"rank_token\": insta.rankToken,\n\t\t\"latitude\": lat,\n\t\t\"longitude\": lng,\n\t\t\"ranked_content\": \"true\",\n\t}\n\n\tif location != \"\" {\n\t\tq[\"search_query\"] = location\n\t} else {\n\t\tq[\"timestamp\"] = strconv.FormatInt(time.Now().Unix(), 10)\n\t}\n\n\tbody, err := insta.sendRequest(\n\t\t&reqOptions{\n\t\t\tEndpoint: urlSearchLocation,\n\t\t\tQuery: q,\n\t\t},\n\t)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tres := &SearchResult{}\n\terr = json.Unmarshal(body, res)\n\treturn res, err\n}", "func (t *touch) GetLocation() Point {\n\treturn &point{t.Call(\"getLocation\")}\n}", "func (s *Stats) LastSample(category string) time.Duration {\n\ts.access.RLock()\n\tdefer s.access.RUnlock()\n\n\tsamples, ok := s.categories[category]\n\tif !ok {\n\t\treturn 0\n\t}\n\treturn samples[len(samples)-1]\n}", "func (f *Frame) Sample() (*Sample, int) {\n\tf.active.mu.Lock()\n\tdefer f.active.mu.Unlock()\n\treturn f.data, f.samples\n}", "func getLocation(name string) (int, error) {\n\tquery := fmt.Sprintf(\"https://www.metaweather.com/api/location/search/?query=%s\", name)\n\tresp, errGet := http.Get(query)\n\tif errGet != nil {\n\t\treturn 0, errGet\n\t}\n\tdefer resp.Body.Close()\n\tbody, errBody := ioutil.ReadAll(resp.Body)\n\tif errBody != nil {\n\t\treturn 0, errBody\n\t}\n\tlocations := []Location{}\n\terrJson := json.Unmarshal(body, &locations)\n\t// I feel lucky!\n\tif len(locations) < 1 {\n\t\treturn 0, fmt.Errorf(\"no location %s\", name)\n\t}\n\tlocaton := locations[0].Woeid\n\tfmt.Printf(\"%v\\n\", locations[0])\n\treturn locaton, errJson\n}", "func (db *LDB) Location() string {\n return db.path\n}", "func (v *Muxer) readSample() (s *SrsMp4Sample, err error) {\n if s, err = v.dec.readSample(v.mp4Url); err != nil {\n ol.E(nil, fmt.Sprintf(\"read mp4 sample failed, err is %v\", err))\n return\n }\n\n if s.handlerType == SrsMp4HandlerTypeForbidden {\n return nil, fmt.Errorf(\"invalid mp4 handler\")\n }\n\n if s.handlerType == SrsMp4HandlerTypeSOUN {\n s.codec = uint16(v.dec.acodec)\n s.sampleRate = uint8(v.dec.sampleRate)\n s.channels = uint8(v.dec.channels)\n s.soundBits = uint8(v.dec.soundBits)\n } else {\n s.codec = uint16(v.dec.vcodec)\n }\n\n ol.I(nil, fmt.Sprintf(\"read a mp4 sample:%v\", s))\n return\n}", "func (s *Sqlite) SampleConfig() string {\n\treturn sampleConfig\n}", "func (s Song) GetSamplesForTick(tickIndex int) (string, []string) {\n var trackNames []string\n var samplePaths []string\n\n for _, currentTrack := range s.TrackList {\n if currentTrack.ShouldSountAt(tickIndex) {\n trackNames = append(trackNames, currentTrack.Name)\n samplePaths = append(samplePaths, currentTrack.PathToSample)\n }\n }\n if len(trackNames) < 1 {\n return \"-\", nil\n }\n //Join the name of all the samples\n return strings.Join(trackNames, \"+\"), samplePaths\n}", "func (b *profileBuilder) pbSample(values []int64, locs []uint64, labels func()) {\n\tstart := b.pb.startMessage()\n\tb.pb.int64s(tagSample_Value, values)\n\tb.pb.uint64s(tagSample_Location, locs)\n\tif labels != nil {\n\t\tlabels()\n\t}\n\tb.pb.endMessage(tagProfile_Sample, start)\n\tb.flush()\n}", "func (o AnalyzerOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *Analyzer) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)\n}", "func (tr *trooper) loc() (x, y, z float64) { return tr.part.At() }", "func (g *gcs) GetLocation(ctx context.Context, remotePath string) (url string, err error) {\n\tattributes, err := g.bucket.Object(remotePath).Attrs(g.context)\n\tif err != nil {\n\t\treturn\n\t}\n\n\turl = attributes.MediaLink\n\n\treturn\n}", "func (o LookupSnapshotPolicyResultOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v LookupSnapshotPolicyResult) string { return v.Location }).(pulumi.StringOutput)\n}", "func (o BucketOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *Bucket) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)\n}", "func (otuTable *otuTable) GetSampleName(i int) (string, error) {\n\tif i > len(otuTable.sampleNames) {\n\t\treturn \"\", fmt.Errorf(\"sample index position > number of samples!\")\n\t}\n\treturn string(otuTable.sampleNames[i]), nil\n}", "func (az *Cloud) GetLocation() string {\n\treturn az.Location\n}", "func (r *Rook) Location() location.Location {\n\treturn r.loc\n}", "func watermarkGetLocation(location string, wand, logo *gm.MagickWand) (int, int, error) {\n\tvar (\n\t\tx uint = 0\n\t\ty uint = 0\n\t)\n\twidth, height, err := wand.Size()\n\tif err != nil {\n\t\treturn 0, 0, err\n\t}\n\n\tlogowidth, logoheight, err := logo.Size()\n\tif err != nil {\n\t\treturn 0, 0, err\n\t}\n\tswitch location {\n\tcase \"nw\":\n\t\tx, y = 0, 0\n\tcase \"north\":\n\t\tx, y = (width-logowidth)/2, 0\n\tcase \"ne\":\n\t\tx, y = width-logowidth, 0\n\tcase \"west\":\n\t\tx, y = 0, (height-logoheight)/2\n\tcase \"center\":\n\t\tx, y = (width-logowidth)/2, (height-logoheight)/2\n\tcase \"east\":\n\t\tx, y = width-logowidth, (height-logoheight)/2\n\tcase \"sw\":\n\t\tx, y = 0, height-logoheight\n\tcase \"south\":\n\t\tx, y = (width-logowidth)/2, height-logoheight\n\tdefault:\n\t\tx, y = width-logowidth, height-logoheight\n\t}\n\tif x < 0 {\n\t\tx = 0\n\t}\n\tif y < 0 {\n\t\ty = 0\n\t}\n\treturn int(x), int(y), nil\n}", "func (o GetServiceAdditionalLocationOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v GetServiceAdditionalLocation) string { return v.Location }).(pulumi.StringOutput)\n}", "func (o *SyntheticsTriggerCITestRunResult) GetLocation() int64 {\n\tif o == nil || o.Location == nil {\n\t\tvar ret int64\n\t\treturn ret\n\t}\n\treturn *o.Location\n}", "func (m *User) GetUsageLocation()(*string) {\n return m.usageLocation\n}", "func (m *ScheduleItem) GetLocation()(*string) {\n val, err := m.GetBackingStore().Get(\"location\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.(*string)\n }\n return nil\n}", "func (c *Config) Sample(dst io.Writer, path config.Path, ctx config.CtxMap) {\n\tconfig.WriteSample(dst, path, nil,\n\t\tconfig.StringSampler{\n\t\t\tText: fmt.Sprintf(loggingFileSample, ctx[config.ID]),\n\t\t\tName: \"file\",\n\t\t},\n\t\tconfig.StringSampler{\n\t\t\tText: loggingConsoleSample,\n\t\t\tName: \"console\",\n\t\t},\n\t)\n}", "func Location(file, ip string) (ip2location.IP2Locationrecord, error) {\n\tif _, err := os.Stat(file); os.IsNotExist(err) {\n\t\treturn ip2location.IP2Locationrecord{}, err\n\t }\n\n\tip2location.Open(file)\n\n\trecord := ip2location.Get_all(ip)\n\t\t\n\tip2location.Close()\n\n\treturn record, nil\n}", "func (be *s3) Location() string {\n\treturn be.bucketname\n}", "func (v Video) GetLocation() (string, bool) {\n\tif v.Path != \"\" {\n\t\treturn fmt.Sprintf(\"%v/%v\", v.Path, storage.MasterPlaylistName), false\n\t}\n\treturn v.RemotePath, true\n}", "func (a *CMP) SampleConfig() string {\n\treturn sampleConfig\n}", "func (s *SignalFx) SampleConfig() string {\n\treturn sampleConfig\n}", "func (body Body) Loc() *Location {\n\treturn body[0].Location\n}", "func Location() {}", "func getSampleVelocity(s string) string {\n\tre, _ := regexp.Compile(`([a-zA-Z0-9]{1,2}).wav`)\n\tmatch := re.FindStringSubmatch(s)\n\n\tif match == nil || len(match) < 2 {\n\t\ts = filepath.Base(s)\n\t\ts = strings.TrimSuffix(s, \".wav\")\n\t\tsplit := strings.Split(s, \" \")\n\t\ts = split[len(split)-1]\n\n\t\treturn s\n\t}\n\n\treturn match[1]\n}", "func (t table) Sample() string {\n\tr := rand.Intn(t.total)\n\treturn t.Pick(r)\n}", "func (l *GitLocation) GetLocation() *tmv1beta1.TestLocation {\n\treturn l.Info\n}", "func grabLocation(){\n\t//sends out an immediate request of closest people\n\n}", "func (p Provider) GetLocation() *time.Location {\n\tlocation, _ := time.LoadLocation(\"UTC\")\n\treturn location\n}", "func (o EndpointAttachmentOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *EndpointAttachment) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)\n}", "func Sample(slice interface{}) interface{} {\n\tif reflect.TypeOf(slice).Kind() != reflect.Slice {\n\t\tpanic(\"faker.Sample param must be a slice\")\n\t}\n\tsliceReflectValue := reflect.ValueOf(slice)\n\tif sliceReflectValue.IsNil() {\n\t\tpanic(\"faker.Sample param is nil\")\n\t}\n\tif sliceReflectValue.Len() == 0 {\n\t\tpanic(\"faker.Sample param is empty\")\n\t}\n\ti := IntInRange(0, sliceReflectValue.Len()-1)\n\treturn sliceReflectValue.Index(i).Interface()\n}", "func (dt DateTime) Location() *time.Location {\n\treturn dt.src.Location()\n}", "func (imp *Import) Loc() *Location {\n\treturn imp.Location\n}", "func (o IntegrationRuntimeManagedOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *IntegrationRuntimeManaged) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)\n}", "func (z *Zookeeper) SampleConfig() string {\n\treturn sampleConfig\n}", "func (m *LongRunningOperation) GetResourceLocation()(*string) {\n val, err := m.GetBackingStore().Get(\"resourceLocation\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.(*string)\n }\n return nil\n}", "func (b *fakeBosClient) GetBucketLocation(bucket string) (string, error) {\n\treturn \"\", fmt.Errorf(\"test\")\n}", "func (m *TeamsAsyncOperation) GetTargetResourceLocation()(*string) {\n return m.targetResourceLocation\n}", "func (w *File) NextSample() int16 {\n\tnext := w.Samples[w.startOffset]\n\tw.startOffset++\n\tif w.startOffset >= len(w.Samples) {\n\t\tw.startOffset = 0 // Loop\n\t}\n\treturn next\n}", "func (o LookupGroupResultOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v LookupGroupResult) string { return v.Location }).(pulumi.StringOutput)\n}", "func location() string {\n\tworkDir, _ := os.Getwd()\n\t_, fn, line, _ := runtime.Caller(depth)\n\tfn = strings.TrimPrefix(fn, workDir+\"/\")\n\treturn fmt.Sprintf(\"%s:%d\", fn, line)\n}", "func (config *CrocConfig) GetLocation(locationID int) (Location, error) {\n\tvar location Location\n\tendpoint := fmt.Sprintf(\"locations/%d\", locationID)\n\n\tlbytes, err := config.queryPanelAPI(endpoint, \"get\", nil)\n\tif err != nil {\n\t\treturn location, err\n\t}\n\n\t// Get node info from the panel\n\t// Unmarshal the bytes to a usable struct.\n\terr = json.Unmarshal(lbytes, &location)\n\tif err != nil {\n\t\treturn location, err\n\t}\n\n\treturn location, nil\n}", "func watermarkGetCustomLocation(x, y int, wand, logo *gm.MagickWand) (int, int, error) {\n\twidth, height, err := wand.Size()\n\tif err != nil {\n\t\treturn 0, 0, err\n\t}\n\tlogowidth, logoheight, err := logo.Size()\n\tif err != nil {\n\t\treturn 0, 0, err\n\t}\n\tif x >= 0 && y >= 0 && uint(x)+logowidth < width && uint(y)+logoheight < height {\n\t\treturn x, y, nil\n\t}\n\treturn 0, 0, nil\n}", "func (h *Hero) Location() *sdl.Rect {\n\th.mu.RLock()\n\tdefer h.mu.RUnlock()\n\treturn h.getShape()\n}", "func (c *ConfigurationFile) GetLocation() Location {\n\treturn c.location\n}", "func (s HTTPStore) Location() string {\n\treturn s.baseURL.Host\n}", "func Location() *time.Location {\n\treturn loc\n}", "func (d sumTypeDecl) Location() string {\n\treturn fmt.Sprintf(\"%s:%d\", d.Path, d.Line)\n}", "func (o ServiceAdditionalLocationOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v ServiceAdditionalLocation) string { return v.Location }).(pulumi.StringOutput)\n}", "func (r Virtual_Guest) GetLocation() (resp datatypes.Location, err error) {\n\terr = r.Session.DoRequest(\"SoftLayer_Virtual_Guest\", \"getLocation\", nil, &r.Options, &resp)\n\treturn\n}", "func location(city string) (string, string) {\n\tvar region, continent string\n\tswitch city {\n\tcase \"Indore\", \"Bhopal\", \"Ratlam\":\n\t\tregion, continent = \"India\", \"Asia\"\n\tcase \"Melbourne\":\n\t\tregion, continent = \"Victoria\", \"Australia\"\n\tdefault:\n\t\tregion, continent = \"unknown\", \"unknown\"\n\t}\n\treturn region, continent\n}", "func (i *Cassandra) SampleConfig() string {\n\treturn sampleConfig\n}", "func (s *ServiceSampler) Sample(serviceName string) (Sample, error) {\n\tvar sample Sample\n\n\t// execute the os command to get the status of the systemctl service\n\tc := exec.Command(\"systemctl\", \"--no-pager\", \"show\", serviceName)\n\tout, err := internal.CombinedOutputTimeout(c,\n\t\ttime.Second*time.Duration(2))\n\n\tif err != nil {\n\t\tsampleCmd := \"systemctl --no-pager show \" + serviceName\n\t\tlog.WithFields(log.Fields{\n\t\t\t\"InputPlugin\": \"systemctl\",\n\t\t\t\"SampleCommand\": sampleCmd,\n\t\t}).Error(\"Error executing the sample command\")\n\n\t\treturn sample, errors.New(\"error occured executing sample command\")\n\t}\n\n\t// parse the key value pairs in the command output to find the load, active and sub state keys\n\tvar loadState string\n\tvar activeState string\n\tvar subState string\n\tlines := strings.Split(string(out[:]), \"\\n\")\n\tfor _, line := range lines {\n\t\tparts := strings.Split(line, \"=\")\n\t\tif parts[0] == LoadStateKey {\n\t\t\tloadState = parts[1]\n\t\t} else if parts[0] == ActiveStateKey {\n\t\t\tactiveState = parts[1]\n\t\t} else if parts[0] == SubStateKey {\n\t\t\tsubState = parts[1]\n\t\t}\n\t}\n\n\t// create the current state as the concatination of the three states\n\t// load.active.sub\n\tvar b bytes.Buffer\n\tb.WriteString(loadState)\n\tb.WriteString(\".\")\n\tb.WriteString(activeState)\n\tb.WriteString(\".\")\n\tb.WriteString(subState)\n\n\t// create sample\n\ttimestamp := time.Now().UnixNano()\n\tsample = Sample{name: b.String(), timestamp: uint64(timestamp)}\n\n\tlog.WithFields(log.Fields{\n\t\t\"InputPlugin\": \"systemctl\",\n\t\t\"Sample state\": b.String(),\n\t\t\"Sample time\": uint64(timestamp),\n\t}).Debug(\"Collected Sample\")\n\n\treturn sample, nil\n}", "func Location(bucket, key string) string {\n\treturn fmt.Sprintf(\"s3://%s/%s\", bucket, key)\n}", "func (c *ACSKCluster) GetLocation() string {\n\treturn c.modelCluster.Location\n}", "func getLoc(skip int, level int32, subsystem string) (output string) {\n\t_, file, line, _ := runtime.Caller(skip)\n\tdefer func() {\n\t\tif r := recover(); r != nil {\n\t\t\tfmt.Fprintln(os.Stderr, \"getloc panic on subsystem\", subsystem, file)\n\t\t}\n\t}()\n\tsplit := strings.Split(file, subsystem)\n\tif len(split) < 2 {\n\t\toutput = fmt.Sprint(\n\t\t\tcolor.White.Sprint(subsystem),\n\t\t\tcolor.Gray.Sprint(\n\t\t\t\tfile, \":\", line,\n\t\t\t),\n\t\t)\n\t} else {\n\t\toutput = fmt.Sprint(\n\t\t\tcolor.White.Sprint(subsystem),\n\t\t\tcolor.Gray.Sprint(\n\t\t\t\tsplit[1], \":\", line,\n\t\t\t),\n\t\t)\n\t}\n\treturn\n}", "func (u *Usecase) findLocation(drone *models.Drone) float64 {\n\tif drone.Type == \"v2\" {\n\t\treturn u.findLocationAdvancedCoreLogic(drone)\n\t}\n\treturn u.findLocationCoreLogic(drone)\n}", "func (t *touch) GetStartLocation() Point {\n\treturn &point{t.Call(\"getStartLocation\")}\n}", "func (a *APIv1) GetLocation(id interface{}, qo *odata.QueryOptions, path string) (*entities.Location, error) {\n\t_, err := a.QueryOptionsSupported(qo, &entities.Location{})\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tl, err := a.db.GetLocation(id, qo)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\ta.ProcessGetRequest(l, qo)\n\treturn l, nil\n}", "func (o CertificateOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *Certificate) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)\n}", "func (bi *BinaryInfo) Location(entry godwarf.Entry, attr dwarf.Attr, pc uint64, regs op.DwarfRegisters, mem MemoryReadWriter) (int64, []op.Piece, *locationExpr, error) {\n\tinstr, descr, err := bi.locationExpr(entry, attr, pc)\n\tif err != nil {\n\t\treturn 0, nil, nil, err\n\t}\n\treadMemory := op.ReadMemoryFunc(nil)\n\tif mem != nil {\n\t\treadMemory = mem.ReadMemory\n\t}\n\taddr, pieces, err := op.ExecuteStackProgram(regs, instr, bi.Arch.PtrSize(), readMemory)\n\treturn addr, pieces, descr, err\n}", "func (bc *byteCounter) Sample() (int, int, int, int) {\n\tbc.m.Lock()\n\trp, tp, rb, tb := bc.rp, bc.tp, bc.rb, bc.tb\n\tbc.rp, bc.tp, bc.rb, bc.tb = 0, 0, 0, 0\n\tbc.m.Unlock()\n\treturn rp, tp, rb, tb\n}", "func (s *Shader) getUniformBlockLocation(name string) (index uint32) {\n\t// if we already saved the location, return it\n\tif index, ok := s.uniformBIndices[name]; ok {\n\t\treturn index\n\t}\n\n\t// if it's not in our index cache, get it from opengl and save it in the cache\n\tindex = gl.GetUniformBlockIndex(s.Program, gl.Str(name+\"\\x00\"))\n\ts.uniformBIndices[name] = index\n\treturn\n}", "func (s *InventoryApiService) GetLocation(id string, w http.ResponseWriter) error {\n\tctx := context.Background()\n\tr, err := s.db.GetLocation(ctx, id)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn EncodeJSONResponse(r, nil, w)\n}", "func (g *GeneratorJakes) NextSample() (float64, complex128) {\n\t// fmt.Printf(\"My SEED %v | \", g.seed())\n\tg.lastSampletime += g.tInterval\n\treturn g.lastSampletime, g.generate(g.lastSampletime)\n}", "func (o LookupOrchestratedVirtualMachineScaleSetResultOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v LookupOrchestratedVirtualMachineScaleSetResult) string { return v.Location }).(pulumi.StringOutput)\n}", "func (e *AnalyzeFastExec) getNextSampleKey(bo *tikv.Backoffer, startKey kv.Key) (kv.Key, error) {\n\tif len(e.sampTasks) == 0 {\n\t\te.scanTasks = e.scanTasks[:0]\n\t\treturn startKey, nil\n\t}\n\tsort.Slice(e.sampTasks, func(i, j int) bool {\n\t\treturn bytes.Compare(e.sampTasks[i].Location.StartKey, e.sampTasks[j].Location.StartKey) < 0\n\t})\n\t// The sample task should be consecutive with scan task.\n\tif len(e.scanTasks) > 0 && bytes.Equal(e.scanTasks[0].StartKey, startKey) && !bytes.Equal(e.scanTasks[0].EndKey, e.sampTasks[0].Location.StartKey) {\n\t\te.scanTasks = e.scanTasks[:0]\n\t\te.sampTasks = e.sampTasks[:0]\n\t\treturn startKey, nil\n\t}\n\tprefixLen := 0\n\tfor ; prefixLen < len(e.sampTasks)-1; prefixLen++ {\n\t\tif !bytes.Equal(e.sampTasks[prefixLen].Location.EndKey, e.sampTasks[prefixLen+1].Location.StartKey) {\n\t\t\tbreak\n\t\t}\n\t}\n\t// Find the last one that could align with region bound.\n\tfor ; prefixLen >= 0; prefixLen-- {\n\t\tloc, err := e.cache.LocateKey(bo, e.sampTasks[prefixLen].Location.EndKey)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tif bytes.Equal(loc.StartKey, e.sampTasks[prefixLen].Location.EndKey) {\n\t\t\tstartKey = loc.StartKey\n\t\t\tbreak\n\t\t}\n\t}\n\te.sampTasks = e.sampTasks[:prefixLen+1]\n\tfor i := len(e.scanTasks) - 1; i >= 0; i-- {\n\t\tif bytes.Compare(startKey, e.scanTasks[i].EndKey) < 0 {\n\t\t\te.scanTasks = e.scanTasks[:i]\n\t\t}\n\t}\n\treturn startKey, nil\n}" ]
[ "0.64570075", "0.6013364", "0.5695404", "0.56909317", "0.568184", "0.5661718", "0.566115", "0.5642224", "0.5575273", "0.5572425", "0.5529416", "0.55220824", "0.5518869", "0.5486501", "0.5452377", "0.5434089", "0.5427054", "0.54270273", "0.5426709", "0.5415492", "0.5407729", "0.5400754", "0.53997093", "0.53997093", "0.5358476", "0.53456026", "0.5332433", "0.53312", "0.5330235", "0.53209543", "0.53087723", "0.530529", "0.529905", "0.52745706", "0.52698314", "0.5258181", "0.52561253", "0.5250667", "0.52402556", "0.5234472", "0.5224086", "0.52195567", "0.5202277", "0.51996857", "0.5197713", "0.51895696", "0.51792645", "0.517623", "0.5174782", "0.5172503", "0.5157943", "0.5150875", "0.5144853", "0.5142501", "0.51344264", "0.51307327", "0.51202375", "0.51161367", "0.5115251", "0.511148", "0.50948066", "0.5090912", "0.50799215", "0.50745016", "0.5066367", "0.5064525", "0.5050677", "0.50506103", "0.50415725", "0.5038167", "0.50329", "0.50307244", "0.50273365", "0.50261915", "0.50154245", "0.50132316", "0.5005821", "0.50000226", "0.49994966", "0.49976647", "0.49953532", "0.49930975", "0.49888813", "0.4984885", "0.49802056", "0.49773276", "0.49745163", "0.4973473", "0.49686512", "0.49545914", "0.49464077", "0.49416733", "0.49333784", "0.49324018", "0.49303657", "0.49224484", "0.49184665", "0.49161875", "0.49121004", "0.49018577", "0.49000785" ]
0.0
-1
return parameters of a buffer object
func GetNamedBufferParameteri64v(buffer uint32, pname uint32, params *int64) { C.glowGetNamedBufferParameteri64v(gpGetNamedBufferParameteri64v, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint64)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *Packet) Buffer() []byte {\n\treturn p.Buf\n}", "func (b *Buffer) Values() interface{} {\n return b.buffer.Slice(0, b.idx).Interface()\n}", "func (b *buffer) buffer() []byte {\n\treturn b.buf[b.offset:]\n}", "func (a *ChannelArea) Buffer() []byte {\n\treturn a.buffer\n}", "func (g *GrowingBuffer) Values() interface{} {\n return g.bufferPtr.Elem().Interface()\n}", "func (p Point) Buffer() *Buffer {\n\treturn p.buffer\n}", "func (al *AudioListener) getBuffer() []gumble.AudioPacket {\n\tal.Lock()\n\tdefer al.Unlock()\n\n\tbuf := al.buffer\n\tal.buffer = nil\n\treturn buf\n}", "func (d *decoder) buffer() []byte {\n\tif d.buf == nil {\n\t\td.buf = make([]byte, 8)\n\t}\n\treturn d.buf\n}", "func (b *mpgBuff) buffer() *concBuff {\n\tif !b.cur {\n\t\treturn b.bufA\n\t}\n\treturn b.bufB\n}", "func (c *common) Parameters() sbcon.Parameters { return c.params }", "func (b *Buffer) Buf() []byte { return b.buf }", "func (b *WString) Buffer() []uint16 {\n\tif b.empty() {\n\t\treturn nil\n\t}\n\treturn b.b\n}", "func (s *Secret) Buffer() []byte {\n\treturn s.buffer.Buffer()\n}", "func (b *Bitmap) Buffer() []byte {\n\tl := b.Rows() * b.Pitch()\n\treturn C.GoBytes(unsafe.Pointer(b.handle.buffer), C.int(l))\n}", "func NewBuffer(aSlice interface{}) *Buffer {\n return &Buffer{buffer: sliceValue(aSlice, false), handler: valueHandler{}}\n}", "func (p *movingAverageProcessor) getBufferData(index int, namespace string) interface{} {\n\n\treturn p.movingAverageMap[namespace].movingAverageBuf[index]\n}", "func (geom Geometry) Buffer(distance float64, segments int) Geometry {\n\tnewGeom := C.OGR_G_Buffer(geom.cval, C.double(distance), C.int(segments))\n\treturn Geometry{newGeom}\n}", "func (b *mpgBuff) BufferSize() int {\n\treturn b.size\n}", "func (p *Buffer) Bytes() []byte { return p.buf }", "func (self Source) GetBuffer() (buffer Buffer) {\n\treturn Buffer(self.Geti(AlBuffer))\n}", "func (m *Magic) Buffer(data []byte) (string, error) {\n\tif m.ptr == nil {\n\t\treturn \"\", ConnectionError\n\t}\n\n\tptr := unsafe.Pointer(&data)\n\tsz := C.size_t(len(data))\n\tcr := C.magic_buffer(m.ptr, ptr, sz)\n\n\tif cr == nil {\n\t\treturn \"\", m.check()\n\t}\n\n\tr := C.GoString(cr)\n\tC.free(unsafe.Pointer(cr))\n\treturn r, nil\n}", "func (w *Writer) Buffer() []byte {\n\tif w.err != nil {\n\t\treturn nil\n\t}\n\treturn append([]byte(nil), w.b...)\n}", "func (request *Request) Buffer() ([]byte, error) {\n\treturn json.Marshal(request)\n}", "func NewBuffer() Buffer {\n\treturn &buffer{}\n}", "func annotateBuffer(text *string) []Annotation {\n\ttextLength := primitives.Cursor(len(*text))\n\treturn []Annotation{\n\t\t{\n\t\t\tTag: BUFFER,\n\t\t\tRegion: primitives.Region{\n\t\t\t\tLeft: primitives.Span{A: 0, B: 0},\n\t\t\t\tRight: primitives.Span{A: textLength, B: textLength},\n\t\t\t},\n\t\t},\n\t}\n}", "func (b *Buffer) Bytes() []byte { return b.buf[:b.length] }", "func buffer(rd io.Reader) (buf []byte, endInd int, streamInd int, streamOffset int64, err error) {\n\n\t// process: # gen obj ... obj dict ... {stream ... data ... endstream} ... endobj\n\t// streamInd endInd\n\t// -1 if absent -1 if absent\n\n\t//log.Read.Println(\"buffer: begin\")\n\n\tendInd, streamInd = -1, -1\n\n\tfor endInd < 0 && streamInd < 0 {\n\n\t\tbuf, err = growBufBy(buf, defaultBufSize, rd)\n\t\tif err != nil {\n\t\t\treturn nil, 0, 0, 0, err\n\t\t}\n\n\t\tline := string(buf)\n\t\tendInd = strings.Index(line, \"endobj\")\n\t\tstreamInd = strings.Index(line, \"stream\")\n\n\t\tif endInd > 0 && (streamInd < 0 || streamInd > endInd) {\n\t\t\t// No stream marker in buf detected.\n\t\t\tbreak\n\t\t}\n\n\t\t// For very rare cases where \"stream\" also occurs within obj dict\n\t\t// we need to find the last \"stream\" marker before a possible end marker.\n\t\tfor streamInd > 0 && !keywordStreamRightAfterEndOfDict(line, streamInd) {\n\t\t\tlastStreamMarker(&streamInd, endInd, line)\n\t\t}\n\n\t\tlog.Read.Printf(\"buffer: endInd=%d streamInd=%d\\n\", endInd, streamInd)\n\n\t\tif streamInd > 0 {\n\n\t\t\t// streamOffset ... the offset where the actual stream data begins.\n\t\t\t// is right after the eol after \"stream\".\n\n\t\t\tslack := 10 // for optional whitespace + eol (max 2 chars)\n\t\t\tneed := streamInd + len(\"stream\") + slack\n\n\t\t\tif len(line) < need {\n\n\t\t\t\t// to prevent buffer overflow.\n\t\t\t\tbuf, err = growBufBy(buf, need-len(line), rd)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn nil, 0, 0, 0, err\n\t\t\t\t}\n\n\t\t\t\tline = string(buf)\n\t\t\t}\n\n\t\t\tstreamOffset = int64(nextStreamOffset(line, streamInd))\n\t\t}\n\t}\n\n\t//log.Read.Printf(\"buffer: end, returned bufsize=%d streamOffset=%d\\n\", len(buf), streamOffset)\n\n\treturn buf, endInd, streamInd, streamOffset, nil\n}", "func (g *GLTF) loadBuffer(bufIdx int) ([]byte, error) {\n\n\t// Check if provided buffer index is valid\n\tif bufIdx < 0 || bufIdx >= len(g.Buffers) {\n\t\treturn nil, fmt.Errorf(\"invalid buffer index\")\n\t}\n\tbufData := &g.Buffers[bufIdx]\n\t// Return cached if available\n\tif bufData.cache != nil {\n\t\tlog.Debug(\"Fetching Buffer %d (cached)\", bufIdx)\n\t\treturn bufData.cache, nil\n\t}\n\tlog.Debug(\"Loading Buffer %d\", bufIdx)\n\n\t// If buffer URI use the chunk data field\n\tif bufData.Uri == \"\" {\n\t\treturn g.data, nil\n\t}\n\n\t// Checks if buffer URI is a data URI\n\tvar data []byte\n\tvar err error\n\tif isDataURL(bufData.Uri) {\n\t\tdata, err = loadDataURL(bufData.Uri)\n\t} else {\n\t\t// Try to load buffer from file\n\t\tdata, err = g.loadFileBytes(bufData.Uri)\n\t}\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Checks data length\n\tif len(data) != bufData.ByteLength {\n\t\treturn nil, fmt.Errorf(\"buffer:%d read data length:%d expected:%d\", bufIdx, len(data), bufData.ByteLength)\n\t}\n\t// Cache buffer data\n\tg.Buffers[bufIdx].cache = data\n\tlog.Debug(\"cache data:%v\", len(bufData.cache))\n\treturn data, nil\n}", "func (b *Buffer) Data() []byte { return b.data }", "func (pkt *NrpePacket) ExtractCmdAndArgsFromBuffer() (string, []string, error) {\n\tvar err error\n\tvar buffer []string\n\tvar cmd string\n\tvar args []string = []string{}\n\n\t// splitting informed buffer based on exclamation marks, defualt for NRPE\n\tbuffer = strings.Split(pkt.Buffer, \"!\")\n\n\t// command will always be the first option, a nagios check name\n\tcmd = fmt.Sprintf(\"%s\", buffer[0])\n\n\t// checking how many items we have, at least one to compose a command\n\tswitch len(buffer) {\n\tcase 0:\n\t\terr = errors.New(\"Can't extract command from buffer:\" + pkt.Buffer)\n\t\treturn \"\", nil, err\n\tcase 1:\n\t\t// command is already been extracted\n\tdefault:\n\t\tcmd = fmt.Sprintf(\"%s\", buffer[0])\n\t\targs = buffer[1:]\n\t}\n\n\treturn cmd, args, nil\n}", "func newBuffer(b []byte) *buffer {\n\treturn &buffer{proto.NewBuffer(b), 0}\n}", "func (s *scanner) buffer() []byte {\n\tbuf := s.bytesPrealloc[:0]\n\ts.bytesPrealloc = nil\n\treturn buf\n}", "func (*CCParameters) Descriptor() ([]byte, []int) {\n\treturn file_fpc_fpc_proto_rawDescGZIP(), []int{0}\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetNamedBufferParameteriv, 3, uintptr(buffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func (*Parameters) Descriptor() ([]byte, []int) {\n\treturn file_proto_google_fhir_proto_r5_core_resources_parameters_proto_rawDescGZIP(), []int{0}\n}", "func GetBufferParameteri(target, pname Enum) int {\n\tvar params int32\n\tgl.GetBufferParameteriv(uint32(target), uint32(pname), &params)\n\treturn int(params)\n}", "func newBuffer(bits uint32) buffer {\n\tvar b buffer\n\tb.data = make([]unsafe.Pointer, 1<<bits)\n\tb.free = 1 << bits\n\tb.mask = 1<<bits - 1\n\tb.bits = bits\n\treturn b\n}", "func ReadBodyInfoByBuffer(body io.Reader) string {\n\t// 使用缓冲\n\tvar buffer bytes.Buffer\n\tfor {\n\t\ttemplate := make([]byte, 1024)\n\t\tn, err := body.Read(template)\n\t\tif err != nil {\n\t\t\tif err == io.EOF {\n\t\t\t\tif n > 0 {\n\t\t\t\t\tbuffer.Write(template[:n])\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t} else {\n\t\t\t\treturn \"\"\n\t\t\t}\n\t\t}\n\t\tif n > 0 {\n\t\t\tbuffer.Write(template[:n])\n\t\t}\n\t}\n\treturn buffer.String()\n}", "func newBuffer(buf []byte) *Buffer {\n\treturn &Buffer{data: buf}\n}", "func newBuffer(br *Reader) (*buffer, error) {\n\tn, err := io.ReadFull(br.r, br.buf[:4])\n\t// br.r.Chunk() is only valid after the call the Read(), so this\n\t// must come after the first read in the record.\n\ttx := br.r.Begin()\n\tdefer func() {\n\t\tbr.lastChunk = tx.End()\n\t}()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif n != 4 {\n\t\treturn nil, errors.New(\"bam: invalid record: short block size\")\n\t}\n\tb := &buffer{data: br.buf[:4]}\n\tsize := int(b.readInt32())\n\tif size == 0 {\n\t\treturn nil, io.EOF\n\t}\n\tif size < 0 {\n\t\treturn nil, errors.New(\"bam: invalid record: invalid block size\")\n\t}\n\tif size > cap(br.buf) {\n\t\tb.off, b.data = 0, make([]byte, size)\n\t} else {\n\t\tb.off, b.data = 0, br.buf[:size]\n\t\tb.shared = true\n\t}\n\tn, err = io.ReadFull(br.r, b.data)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif n != size {\n\t\treturn nil, errors.New(\"bam: truncated record\")\n\t}\n\treturn b, nil\n}", "func (*Params) Descriptor() ([]byte, []int) {\n\treturn file_cosmos_bank_v1beta1_bank_proto_rawDescGZIP(), []int{0}\n}", "func (h *TelemetryHandler) GetBuffersInfo(ctx context.Context) (*vppcalls.BuffersInfo, error) {\n\tdata, err := h.vpe.RunCli(context.TODO(), \"show buffers\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar items []vppcalls.BuffersItem\n\n\tfor i, line := range strings.Split(string(data), \"\\n\") {\n\t\t// Skip empty lines\n\t\tif strings.TrimSpace(line) == \"\" {\n\t\t\tcontinue\n\t\t}\n\t\t// Check first line\n\t\tif i == 0 {\n\t\t\tfields := strings.Fields(line)\n\t\t\t// Verify header\n\t\t\tif len(fields) != 11 || fields[0] != \"Pool\" {\n\t\t\t\treturn nil, fmt.Errorf(\"invalid header for `show buffers` received: %q\", line)\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\n\t\t// Parse lines using regexp\n\t\tmatches := buffersRe.FindStringSubmatch(line)\n\t\tif len(matches)-1 != 9 {\n\t\t\treturn nil, fmt.Errorf(\"parsing failed (%d matches) for `show buffers` line: %q\", len(matches), line)\n\t\t}\n\t\tfields := matches[1:]\n\n\t\titems = append(items, vppcalls.BuffersItem{\n\t\t\t// ThreadID: uint(strToUint64(fields[0])),\n\t\t\tName: fields[0],\n\t\t\tIndex: uint(strToUint64(fields[1])),\n\t\t\tSize: strToUint64(fields[3]),\n\t\t\tAlloc: strToUint64(fields[7]),\n\t\t\tFree: strToUint64(fields[5]),\n\t\t\t// NumAlloc: strToUint64(fields[6]),\n\t\t\t// NumFree: strToUint64(fields[7]),\n\t\t})\n\t}\n\n\tinfo := &vppcalls.BuffersInfo{\n\t\tItems: items,\n\t}\n\n\treturn info, nil\n}", "func (*ParameterInformation_Offset) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{121, 0}\n}", "func (def *Definition) ParseBuffer(helper *BufferHelper, option *BufferOption, prefix string) (res TraverseResult, err error) {\n\tif def.Values == nil {\n\t\tif Central.IsDebugLevel() {\n\t\t\tCentral.Log.Debugf(\"Parse buffer types...\")\n\t\t}\n\t\tdef.Values, err = parseBufferTypes(helper, option, def.activeFieldTree, 0)\n\t} else {\n\t\tif Central.IsDebugLevel() {\n\t\t\tdef.DumpTypes(true, true, \"Parse buffer type tree\")\n\t\t\tdef.DumpValues(true)\n\t\t\tCentral.Log.Debugf(\"Parse buffer values... avail.=%v\", (def.Values != nil))\n\t\t}\n\t\tx := parserBufferTr{helper: helper, option: option, prefix: prefix, definition: def}\n\t\tt := TraverserValuesMethods{EnterFunction: parseBufferValues}\n\t\tres, err = def.TraverseValues(t, &x)\n\t\tif err != nil {\n\t\t\tCentral.Log.Debugf(\"Error parsing buffer values... %v\", err)\n\t\t\treturn\n\t\t}\n\t\tif Central.IsDebugLevel() {\n\t\t\tCentral.Log.Debugf(\"End parse buffer values... %p avail.=%v\", def, (def.Values != nil))\n\t\t}\n\t}\n\n\treturn\n}", "func (pk PacketBufferPtr) ToBuffer() buffer.Buffer {\n\tb := pk.buf.Clone()\n\tb.TrimFront(int64(pk.headerOffset()))\n\treturn b\n}", "func NewBuffer() *Buffer { return globalPool.NewBuffer() }", "func (*ParameterInformation) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{121}\n}", "func new_buffer(conn *websocket.Conn, ctrl chan struct{}, txqueuelen int) *Buffer {\n\tbuf := Buffer{conn: conn}\n\tbuf.pending = make(chan []byte, txqueuelen)\n\tbuf.ctrl = ctrl\n\tbuf.cache = make([]byte, packet.PACKET_LIMIT+2)\n\treturn &buf\n}", "func buff(bs ...byte) *bytes.Reader {\n\treturn bytes.NewReader(bs)\n}", "func (body *luaBody) buffer() *bytes.Buffer {\n\tvar b bytes.Buffer\n\tif body.Reader == nil {\n\t\treturn &b\n\t}\n\n\tb.ReadFrom(body.Reader)\n\t_, err := body.Reader.(io.Seeker).Seek(0, 0)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\treturn &b\n}", "func newBuffer(r io.Reader, offset int64) *buffer {\n\treturn &buffer{\n\t\tr: r,\n\t\toffset: offset,\n\t\tbuf: make([]byte, 0, 4096),\n\t\tallowObjptr: true,\n\t\tallowStream: true,\n\t}\n}", "func GetBufferParameteriv(target uint32, pname uint32, params *int32) {\n C.glowGetBufferParameteriv(gpGetBufferParameteriv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func NewBuffer() *Buffer {\n\treturn &Buffer{Line: []byte{}, Val: make([]byte, 0, 32)}\n}", "func (s *Scanner) Buffer(buf []byte, max int)", "func NewBuffer() Buffer {\n\treturn Buffer{\n\t\tCellMap: make(map[image.Point]Cell),\n\t\tArea: image.Rectangle{}}\n}", "func (w *Writer) Buffer() audio.Buffer {\n\treturn w.buf.Clone()\n}", "func GetBufferParameteriv(target uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetBufferParameteriv, 3, uintptr(target), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func (v *TextView) BufferToWindowCoords(win TextWindowType, buffer_x, buffer_y int) (window_x, window_y int) {\n\tvar wx, wy C.gint\n\tC.gtk_text_view_buffer_to_window_coords(v.native(), C.GtkTextWindowType(win), C.gint(buffer_x), C.gint(buffer_y), &wx, &wy)\n\treturn int(wx), int(wy)\n}", "func createBuffer() *bytes.Buffer {\n\tbuf := bytes.Buffer{}\n\treturn &buf\n}", "func (p Plane) GetBuffers() ObjectBuffers {\n\treturn p.buffers\n}", "func (b *Buffer) bytes() []byte {\n\treturn b.data\n}", "func newBuffer() *buffer {\n\treturn &buffer{\n\t\tdata: make([]byte, 0),\n\t\tlen: 0,\n\t\tpkg: nil,\n\t\tconn: nil,\n\t\tpkgCh: make(chan *pkg),\n\t\tevCh: make(chan *pkg),\n\t\terrCh: make(chan error, 1),\n\t}\n}", "func NewBufferBuilder() *BufferBuilder {\n\treturn &BufferBuilder{}\n}", "func appendBuffer(elements []interface{}, buf *bytes.Buffer) ([]interface{}, *bytes.Buffer) {\n\tif buf.Len() > 0 {\n\t\ts, _ := NewStringElement(buf.String())\n\t\treturn append(elements, s), bytes.NewBuffer(nil)\n\t}\n\treturn elements, buf\n}", "func (*ClientMethod_Parameter) Descriptor() ([]byte, []int) {\n\treturn file_metadata_metadata_proto_rawDescGZIP(), []int{2, 0}\n}", "func (*Parameters_Parameter) Descriptor() ([]byte, []int) {\n\treturn file_proto_google_fhir_proto_r5_core_resources_parameters_proto_rawDescGZIP(), []int{0, 0}\n}", "func ParseParameter(cursor *bufio.Reader) []string {\n\tvar buffer []string\n\tbuffer = make([]string, 1)\n\tvar paramCount = 0\n\tfor {\n\t\tnextc, _, err := cursor.ReadRune()\n\t\t//fmt.Println(nextc)\n\t\tif strings.ContainsRune(\" \", nextc) {\n\t\t\tif strings.ContainsRune(\":\", rune(buffer[paramCount][0])) {\n\t\t\t\t// parameter starting with : can have spaces in it\n\t\t\t\tbuffer[paramCount] += string(nextc)\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\tparamCount++\n\t\t\tvar tmp = make([]string, paramCount+1)\n\t\t\tcopy(tmp, buffer)\n\t\t\tbuffer = tmp\n\t\t\tcontinue\n\t\t}\n\t\tif err != nil {\n\t\t\tif err == io.EOF {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tlog.Fatal(\"Error parsing command \", err)\n\t\t}\n\t\t//fmt.Println(paramCount)\n\t\tbuffer[paramCount] += string(nextc)\n\t}\n\t//for i, j := range buffer {\n\t//\tfmt.Printf(\"Parameter %d : %s\\n\", i+1, j)\n\t//}\n\treturn buffer\n}", "func (b *Buffer) Offset() int { return b.offset }", "func NewProxyWithBuffer(buffer *fbe.Buffer) *Proxy {\n proxy := &Proxy{\n fbe.NewReceiver(buffer, false),\n proto.NewProxyWithBuffer(buffer),\n NewStructSimpleModel(buffer),\n NewStructOptionalModel(buffer),\n NewStructNestedModel(buffer),\n NewStructBytesModel(buffer),\n NewStructArrayModel(buffer),\n NewStructVectorModel(buffer),\n NewStructListModel(buffer),\n NewStructSetModel(buffer),\n NewStructMapModel(buffer),\n NewStructHashModel(buffer),\n NewStructHashExModel(buffer),\n NewStructEmptyModel(buffer),\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n }\n proxy.SetupHandlerOnReceive(proxy)\n proxy.SetupHandlerOnProxyStructSimpleFunc(func(model *StructSimpleModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructOptionalFunc(func(model *StructOptionalModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructNestedFunc(func(model *StructNestedModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructBytesFunc(func(model *StructBytesModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructArrayFunc(func(model *StructArrayModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructVectorFunc(func(model *StructVectorModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructListFunc(func(model *StructListModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructSetFunc(func(model *StructSetModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructMapFunc(func(model *StructMapModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructHashFunc(func(model *StructHashModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructHashExFunc(func(model *StructHashExModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructEmptyFunc(func(model *StructEmptyModel, fbeType int, buffer []byte) {})\n return proxy\n}", "func (b *BaseImpl) BufInfo() (infos BufInfo) {\n\n\tinfos[0].Len = len(b.bytes)\n\tinfos[0].Cap = cap(b.bytes)\n\n\tinfos[1].Len = infos[0].Len\n\tinfos[1].Cap = infos[0].Cap\n\tfor _, diff := range b.Diffs {\n\t\tif len(diff.bytes)+diff.Offset > infos[1].Len {\n\t\t\tinfos[1].Len = diff.Offset + len(diff.bytes)\n\t\t}\n\t\tif cap(diff.bytes)+diff.Offset > infos[1].Cap {\n\t\t\tinfos[1].Cap = diff.Offset + cap(diff.bytes)\n\t\t}\n\t}\n\treturn\n}", "func (*BlockParams) Descriptor() ([]byte, []int) {\n\treturn file_tm_replay_proto_rawDescGZIP(), []int{11}\n}", "func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) {\n\tsyscall.Syscall(gpGetNamedBufferPointerv, 3, uintptr(buffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func (s *scanner) returnBuffer(buf []byte) {\n\tif len(buf) < cap(buf) {\n\t\ts.bytesPrealloc = buf[len(buf):]\n\t}\n}", "func (rr *responseRecorder) Buffer() *bytes.Buffer {\n\treturn rr.buf\n}", "func (*PDirectBuffer) Descriptor() ([]byte, []int) {\n\treturn file_v1_Stat_proto_rawDescGZIP(), []int{19}\n}", "func GetCommandArgs(ctx context.Context,\n\tcr *CommandReference,\n\ts *State) interface{} {\n\tswitch cr.Type {\n\tcase CommandType_cmd_vkCmdBeginRenderPass:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBeginRenderPass.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdEndRenderPass:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdEndRenderPass.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdNextSubpass:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdNextSubpass.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBindPipeline:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBindPipeline.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBindDescriptorSets:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBindDescriptorSets.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBindVertexBuffers:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBindVertexBuffers.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBindIndexBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBindIndexBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdPipelineBarrier:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdPipelineBarrier.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdWaitEvents:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdWaitEvents.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBeginQuery:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBeginQuery.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBlitImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBlitImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdClearAttachments:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdClearAttachments.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdClearColorImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdClearColorImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdClearDepthStencilImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdClearDepthStencilImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyBufferToImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyBufferToImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyImageToBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyImageToBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyQueryPoolResults:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyQueryPoolResults.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDispatch:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDispatch.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDispatchIndirect:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDispatchIndirect.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDraw:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDraw.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDrawIndexed:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDrawIndexed.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDrawIndexedIndirect:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDrawIndexedIndirect.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDrawIndirect:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDrawIndirect.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdEndQuery:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdEndQuery.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdExecuteCommands:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdExecuteCommands.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdFillBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdFillBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdPushConstants:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdPushConstants.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdResetQueryPool:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdResetQueryPool.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdResolveImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdResolveImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetBlendConstants:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetBlendConstants.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetDepthBias:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetDepthBias.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetDepthBounds:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetDepthBounds.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetEvent:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetEvent.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdResetEvent:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdResetEvent.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetLineWidth:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetLineWidth.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetScissor:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetScissor.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetStencilCompareMask:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetStencilCompareMask.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetStencilReference:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetStencilReference.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetStencilWriteMask:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetStencilWriteMask.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetViewport:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetViewport.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdUpdateBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdUpdateBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdWriteTimestamp:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdWriteTimestamp.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDebugMarkerBeginEXT:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDebugMarkerBeginEXT.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDebugMarkerEndEXT:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDebugMarkerEndEXT.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDebugMarkerInsertEXT:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDebugMarkerInsertEXT.Get(cr.MapIndex)\n\tdefault:\n\t\tx := fmt.Sprintf(\"Should not reach here: %T\", cr)\n\t\tpanic(x)\n\t}\n}", "func (*ResponseParameters) Descriptor() ([]byte, []int) {\n\treturn file_grpc_test_proto_rawDescGZIP(), []int{6}\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tC.glowGetNamedBufferParameteriv(gpGetNamedBufferParameteriv, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tC.glowGetNamedBufferParameteriv(gpGetNamedBufferParameteriv, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (c *connAttrs) BufferSize() int { c.mu.RLock(); defer c.mu.RUnlock(); return c._bufferSize }", "func (q Query) MakeBuffer() []interface{} {\n\tstrings := make([]sql.NullString, len(q.columns))\n\tresult := make([]interface{}, len(q.columns))\n\n\tfor i, v := range strings {\n\t\tresult[i] = &v\n\t}\n\n\treturn result\n}", "func (*Parameter) Descriptor() ([]byte, []int) {\n\treturn file_service_proto_rawDescGZIP(), []int{1}\n}", "func (*ParamType) Descriptor() ([]byte, []int) {\n\treturn file_keepsake_proto_rawDescGZIP(), []int{22}\n}", "func (b *Builder) Buffer(count int) value.Pointer {\n\tpointerSize := b.memoryLayout.GetPointer().GetSize()\n\tdynamic := false\n\tsize := 0\n\n\t// Examine the stack to see where these values came from\n\tfor i := 0; i < count; i++ {\n\t\te := b.stack[len(b.stack)-i-1]\n\t\top := b.instructions[e.idx]\n\t\tty := e.ty\n\t\tif _, isPush := op.(asm.Push); !isPush {\n\t\t\t// Values that have made their way on to the stack from non-constant\n\t\t\t// sources cannot be put in the constant buffer.\n\t\t\tdynamic = true\n\t\t}\n\t\tswitch ty {\n\t\tcase protocol.Type_ConstantPointer, protocol.Type_VolatilePointer:\n\t\t\t// Pointers cannot be put into the constant buffer as they are remapped\n\t\t\t// by the VM\n\t\t\tdynamic = true\n\t\t}\n\n\t\tsize += ty.Size(pointerSize)\n\t}\n\n\tif dynamic {\n\t\t// At least one of the values was not from a Push()\n\t\t// Build the buffer in temporary memory at replay time.\n\t\tbuf := b.AllocateTemporaryMemory(uint64(size))\n\t\toffset := size\n\t\tfor i := 0; i < count; i++ {\n\t\t\te := b.stack[len(b.stack)-1]\n\t\t\toffset -= e.ty.Size(pointerSize)\n\t\t\tb.Store(buf.Offset(uint64(offset)))\n\t\t}\n\t\treturn buf\n\t}\n\t// All the values are constant.\n\t// Move the pushed values into a constant memory buffer.\n\tvalues := make([]value.Value, count)\n\tfor i := 0; i < count; i++ {\n\t\te := b.stack[len(b.stack)-1]\n\t\tvalues[count-i-1] = b.instructions[e.idx].(asm.Push).Value\n\t\tb.removeInstruction(e.idx)\n\t\tb.popStack()\n\t}\n\treturn b.constantMemory.writeValues(values...)\n}", "func getBuffer() *bytes.Buffer {\n\treturn bufferPool.Get().(*bytes.Buffer)\n}", "func Buffer() string {\n\treturn C.GoString(C.rl_line_buffer)\n}", "func (pb *PageBuffer) Values() interface{} {\n offset := pb.pageOffset(pb.page_no)\n return pb.buffer.Slice(offset, offset + pb.idx).Interface()\n}", "func (m *Sink) Buffer() signal.Float64 {\n\treturn m.buffer\n}", "func ReadBuffer(mode uint32) {\n C.glowReadBuffer(gpReadBuffer, (C.GLenum)(mode))\n}", "func (file BaseFile) params() (map[string]string, error) {\n\tparams := make(map[string]string)\n\n\tif file.ChannelUsername != \"\" {\n\t\tparams[\"chat_id\"] = file.ChannelUsername\n\t} else {\n\t\tparams[\"chat_id\"] = strconv.FormatInt(file.ChatID, 10)\n\t}\n\n\tif file.ReplyToMessageID != 0 {\n\t\tparams[\"reply_to_message_id\"] = strconv.Itoa(file.ReplyToMessageID)\n\t}\n\n\tif file.ReplyMarkup != nil {\n\t\tdata, err := json.Marshal(file.ReplyMarkup)\n\t\tif err != nil {\n\t\t\treturn params, err\n\t\t}\n\n\t\tparams[\"reply_markup\"] = string(data)\n\t}\n\n\tif file.MimeType != \"\" {\n\t\tparams[\"mime_type\"] = file.MimeType\n\t}\n\n\tif file.FileSize > 0 {\n\t\tparams[\"file_size\"] = strconv.Itoa(file.FileSize)\n\t}\n\n\tparams[\"disable_notification\"] = strconv.FormatBool(file.DisableNotification)\n\n\treturn params, nil\n}", "func getAllocFreeParams(allocLen int) []string {\n\tsize := uint32(allocLen)\n\tstart := atomic.AddUint32(&startParamList, size)\n\tif (start + 10) >= uint32(len(paramsPosDummy)) {\n\t\tatomic.StoreUint32(&startParamList, 0)\n\t\treturn getAllocFreeParams(allocLen)\n\t}\n\tstart -= size\n\tallocLen += int(start)\n\tparams := paramsDummy[start:allocLen:allocLen]\n\treturn params\n}", "func (tr *CassandraKeySpace) GetParameters() (map[string]interface{}, error) {\n\tp, err := json.TFParser.Marshal(tr.Spec.ForProvider)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbase := map[string]interface{}{}\n\treturn base, json.TFParser.Unmarshal(p, &base)\n}", "func (r *Rx) Bytes() []byte {\n\treturn r.p.buffer\n}", "func NewBuffer(o *Options) (*Buffer, error) {\n\tif o == nil {\n\t\to = &Options{}\n\t}\n\tret := &Buffer{opts: *o} // copy o before normalizing it\n\n\tif err := ret.opts.normalize(); err != nil {\n\t\treturn nil, errors.Annotate(err, \"normalizing buffer.Options\").Err()\n\t}\n\n\tret.unleased.onlyID = o.FIFO\n\tret.batchItemsGuess = newMovingAverage(10, ret.opts.batchItemsGuess())\n\tret.liveLeases = map[*Batch]struct{}{}\n\tret.unAckedLeases = map[*Batch]struct{}{}\n\treturn ret, nil\n}", "func NewBuffer() *Buffer {\n\treturn &Buffer{B: &strings.Builder{}}\n}", "func (*PrepareArgs) Descriptor() ([]byte, []int) {\n\treturn file_lbbft_proto_rawDescGZIP(), []int{8}\n}", "func NewProxyWithBuffer(buffer *fbe.Buffer) *Proxy {\n proxy := &Proxy{\n fbe.NewReceiver(buffer, false),\n NewOrderModel(buffer),\n NewBalanceModel(buffer),\n NewAccountModel(buffer),\n nil,\n nil,\n nil,\n }\n proxy.SetupHandlerOnReceive(proxy)\n proxy.SetupHandlerOnProxyOrderFunc(func(model *OrderModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyBalanceFunc(func(model *BalanceModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyAccountFunc(func(model *AccountModel, fbeType int, buffer []byte) {})\n return proxy\n}", "func (b *Buf) Bytes() []byte { return b.b }", "func (m *MsgMemoryBuffer) GetAll() []interface{} {\n\tvar data []interface{}\n\tm.buff.Do(func(x interface{}) {\n\t\tif x != nil {\n\t\t\tdata = append(data, x)\n\t\t}\n\t})\n\treturn data\n}", "func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetNamedBufferSubData, 4, uintptr(buffer), uintptr(offset), uintptr(size), uintptr(data), 0, 0)\n}", "func GetBufferPointerv(target uint32, pname uint32, params *unsafe.Pointer) {\n\tsyscall.Syscall(gpGetBufferPointerv, 3, uintptr(target), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}" ]
[ "0.59277564", "0.57830817", "0.5781071", "0.57732254", "0.57248014", "0.5713533", "0.5704978", "0.5680736", "0.5673289", "0.564021", "0.5635625", "0.562202", "0.55879676", "0.55832255", "0.5570756", "0.5514081", "0.55023456", "0.54961616", "0.5447834", "0.54395765", "0.54268664", "0.54142207", "0.53650755", "0.5342737", "0.53299636", "0.53184056", "0.53145415", "0.5305379", "0.53041536", "0.5301557", "0.52996135", "0.5297414", "0.52961594", "0.5286182", "0.52684975", "0.52663445", "0.5257315", "0.5231435", "0.52277887", "0.5213996", "0.5212929", "0.5195002", "0.5172452", "0.5170476", "0.516427", "0.5161455", "0.516017", "0.5147554", "0.51244646", "0.5118771", "0.5099665", "0.50987756", "0.5094207", "0.5091877", "0.5090826", "0.508951", "0.5083891", "0.50829864", "0.5078764", "0.507643", "0.5070384", "0.5069355", "0.5053648", "0.5043483", "0.5036995", "0.50210375", "0.5019968", "0.5010406", "0.5003046", "0.49990752", "0.49909595", "0.4990359", "0.4989846", "0.49896365", "0.49873343", "0.4983508", "0.49744824", "0.49676207", "0.49676207", "0.4966864", "0.49658152", "0.49610984", "0.49598503", "0.4950361", "0.4946738", "0.49446583", "0.49391288", "0.49353665", "0.49340847", "0.49321964", "0.4931129", "0.49304917", "0.49267966", "0.4922583", "0.49139374", "0.49070895", "0.490462", "0.49033844", "0.49029076", "0.48949188", "0.48937932" ]
0.0
-1
return parameters of a buffer object
func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) { C.glowGetNamedBufferParameteriv(gpGetNamedBufferParameteriv, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *Packet) Buffer() []byte {\n\treturn p.Buf\n}", "func (b *Buffer) Values() interface{} {\n return b.buffer.Slice(0, b.idx).Interface()\n}", "func (b *buffer) buffer() []byte {\n\treturn b.buf[b.offset:]\n}", "func (a *ChannelArea) Buffer() []byte {\n\treturn a.buffer\n}", "func (g *GrowingBuffer) Values() interface{} {\n return g.bufferPtr.Elem().Interface()\n}", "func (p Point) Buffer() *Buffer {\n\treturn p.buffer\n}", "func (al *AudioListener) getBuffer() []gumble.AudioPacket {\n\tal.Lock()\n\tdefer al.Unlock()\n\n\tbuf := al.buffer\n\tal.buffer = nil\n\treturn buf\n}", "func (d *decoder) buffer() []byte {\n\tif d.buf == nil {\n\t\td.buf = make([]byte, 8)\n\t}\n\treturn d.buf\n}", "func (b *mpgBuff) buffer() *concBuff {\n\tif !b.cur {\n\t\treturn b.bufA\n\t}\n\treturn b.bufB\n}", "func (c *common) Parameters() sbcon.Parameters { return c.params }", "func (b *Buffer) Buf() []byte { return b.buf }", "func (b *WString) Buffer() []uint16 {\n\tif b.empty() {\n\t\treturn nil\n\t}\n\treturn b.b\n}", "func (s *Secret) Buffer() []byte {\n\treturn s.buffer.Buffer()\n}", "func (b *Bitmap) Buffer() []byte {\n\tl := b.Rows() * b.Pitch()\n\treturn C.GoBytes(unsafe.Pointer(b.handle.buffer), C.int(l))\n}", "func NewBuffer(aSlice interface{}) *Buffer {\n return &Buffer{buffer: sliceValue(aSlice, false), handler: valueHandler{}}\n}", "func (p *movingAverageProcessor) getBufferData(index int, namespace string) interface{} {\n\n\treturn p.movingAverageMap[namespace].movingAverageBuf[index]\n}", "func (geom Geometry) Buffer(distance float64, segments int) Geometry {\n\tnewGeom := C.OGR_G_Buffer(geom.cval, C.double(distance), C.int(segments))\n\treturn Geometry{newGeom}\n}", "func (b *mpgBuff) BufferSize() int {\n\treturn b.size\n}", "func (p *Buffer) Bytes() []byte { return p.buf }", "func (self Source) GetBuffer() (buffer Buffer) {\n\treturn Buffer(self.Geti(AlBuffer))\n}", "func (m *Magic) Buffer(data []byte) (string, error) {\n\tif m.ptr == nil {\n\t\treturn \"\", ConnectionError\n\t}\n\n\tptr := unsafe.Pointer(&data)\n\tsz := C.size_t(len(data))\n\tcr := C.magic_buffer(m.ptr, ptr, sz)\n\n\tif cr == nil {\n\t\treturn \"\", m.check()\n\t}\n\n\tr := C.GoString(cr)\n\tC.free(unsafe.Pointer(cr))\n\treturn r, nil\n}", "func (w *Writer) Buffer() []byte {\n\tif w.err != nil {\n\t\treturn nil\n\t}\n\treturn append([]byte(nil), w.b...)\n}", "func (request *Request) Buffer() ([]byte, error) {\n\treturn json.Marshal(request)\n}", "func NewBuffer() Buffer {\n\treturn &buffer{}\n}", "func annotateBuffer(text *string) []Annotation {\n\ttextLength := primitives.Cursor(len(*text))\n\treturn []Annotation{\n\t\t{\n\t\t\tTag: BUFFER,\n\t\t\tRegion: primitives.Region{\n\t\t\t\tLeft: primitives.Span{A: 0, B: 0},\n\t\t\t\tRight: primitives.Span{A: textLength, B: textLength},\n\t\t\t},\n\t\t},\n\t}\n}", "func (b *Buffer) Bytes() []byte { return b.buf[:b.length] }", "func buffer(rd io.Reader) (buf []byte, endInd int, streamInd int, streamOffset int64, err error) {\n\n\t// process: # gen obj ... obj dict ... {stream ... data ... endstream} ... endobj\n\t// streamInd endInd\n\t// -1 if absent -1 if absent\n\n\t//log.Read.Println(\"buffer: begin\")\n\n\tendInd, streamInd = -1, -1\n\n\tfor endInd < 0 && streamInd < 0 {\n\n\t\tbuf, err = growBufBy(buf, defaultBufSize, rd)\n\t\tif err != nil {\n\t\t\treturn nil, 0, 0, 0, err\n\t\t}\n\n\t\tline := string(buf)\n\t\tendInd = strings.Index(line, \"endobj\")\n\t\tstreamInd = strings.Index(line, \"stream\")\n\n\t\tif endInd > 0 && (streamInd < 0 || streamInd > endInd) {\n\t\t\t// No stream marker in buf detected.\n\t\t\tbreak\n\t\t}\n\n\t\t// For very rare cases where \"stream\" also occurs within obj dict\n\t\t// we need to find the last \"stream\" marker before a possible end marker.\n\t\tfor streamInd > 0 && !keywordStreamRightAfterEndOfDict(line, streamInd) {\n\t\t\tlastStreamMarker(&streamInd, endInd, line)\n\t\t}\n\n\t\tlog.Read.Printf(\"buffer: endInd=%d streamInd=%d\\n\", endInd, streamInd)\n\n\t\tif streamInd > 0 {\n\n\t\t\t// streamOffset ... the offset where the actual stream data begins.\n\t\t\t// is right after the eol after \"stream\".\n\n\t\t\tslack := 10 // for optional whitespace + eol (max 2 chars)\n\t\t\tneed := streamInd + len(\"stream\") + slack\n\n\t\t\tif len(line) < need {\n\n\t\t\t\t// to prevent buffer overflow.\n\t\t\t\tbuf, err = growBufBy(buf, need-len(line), rd)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn nil, 0, 0, 0, err\n\t\t\t\t}\n\n\t\t\t\tline = string(buf)\n\t\t\t}\n\n\t\t\tstreamOffset = int64(nextStreamOffset(line, streamInd))\n\t\t}\n\t}\n\n\t//log.Read.Printf(\"buffer: end, returned bufsize=%d streamOffset=%d\\n\", len(buf), streamOffset)\n\n\treturn buf, endInd, streamInd, streamOffset, nil\n}", "func (g *GLTF) loadBuffer(bufIdx int) ([]byte, error) {\n\n\t// Check if provided buffer index is valid\n\tif bufIdx < 0 || bufIdx >= len(g.Buffers) {\n\t\treturn nil, fmt.Errorf(\"invalid buffer index\")\n\t}\n\tbufData := &g.Buffers[bufIdx]\n\t// Return cached if available\n\tif bufData.cache != nil {\n\t\tlog.Debug(\"Fetching Buffer %d (cached)\", bufIdx)\n\t\treturn bufData.cache, nil\n\t}\n\tlog.Debug(\"Loading Buffer %d\", bufIdx)\n\n\t// If buffer URI use the chunk data field\n\tif bufData.Uri == \"\" {\n\t\treturn g.data, nil\n\t}\n\n\t// Checks if buffer URI is a data URI\n\tvar data []byte\n\tvar err error\n\tif isDataURL(bufData.Uri) {\n\t\tdata, err = loadDataURL(bufData.Uri)\n\t} else {\n\t\t// Try to load buffer from file\n\t\tdata, err = g.loadFileBytes(bufData.Uri)\n\t}\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Checks data length\n\tif len(data) != bufData.ByteLength {\n\t\treturn nil, fmt.Errorf(\"buffer:%d read data length:%d expected:%d\", bufIdx, len(data), bufData.ByteLength)\n\t}\n\t// Cache buffer data\n\tg.Buffers[bufIdx].cache = data\n\tlog.Debug(\"cache data:%v\", len(bufData.cache))\n\treturn data, nil\n}", "func (b *Buffer) Data() []byte { return b.data }", "func (pkt *NrpePacket) ExtractCmdAndArgsFromBuffer() (string, []string, error) {\n\tvar err error\n\tvar buffer []string\n\tvar cmd string\n\tvar args []string = []string{}\n\n\t// splitting informed buffer based on exclamation marks, defualt for NRPE\n\tbuffer = strings.Split(pkt.Buffer, \"!\")\n\n\t// command will always be the first option, a nagios check name\n\tcmd = fmt.Sprintf(\"%s\", buffer[0])\n\n\t// checking how many items we have, at least one to compose a command\n\tswitch len(buffer) {\n\tcase 0:\n\t\terr = errors.New(\"Can't extract command from buffer:\" + pkt.Buffer)\n\t\treturn \"\", nil, err\n\tcase 1:\n\t\t// command is already been extracted\n\tdefault:\n\t\tcmd = fmt.Sprintf(\"%s\", buffer[0])\n\t\targs = buffer[1:]\n\t}\n\n\treturn cmd, args, nil\n}", "func newBuffer(b []byte) *buffer {\n\treturn &buffer{proto.NewBuffer(b), 0}\n}", "func (s *scanner) buffer() []byte {\n\tbuf := s.bytesPrealloc[:0]\n\ts.bytesPrealloc = nil\n\treturn buf\n}", "func (*CCParameters) Descriptor() ([]byte, []int) {\n\treturn file_fpc_fpc_proto_rawDescGZIP(), []int{0}\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetNamedBufferParameteriv, 3, uintptr(buffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func (*Parameters) Descriptor() ([]byte, []int) {\n\treturn file_proto_google_fhir_proto_r5_core_resources_parameters_proto_rawDescGZIP(), []int{0}\n}", "func GetBufferParameteri(target, pname Enum) int {\n\tvar params int32\n\tgl.GetBufferParameteriv(uint32(target), uint32(pname), &params)\n\treturn int(params)\n}", "func newBuffer(bits uint32) buffer {\n\tvar b buffer\n\tb.data = make([]unsafe.Pointer, 1<<bits)\n\tb.free = 1 << bits\n\tb.mask = 1<<bits - 1\n\tb.bits = bits\n\treturn b\n}", "func ReadBodyInfoByBuffer(body io.Reader) string {\n\t// 使用缓冲\n\tvar buffer bytes.Buffer\n\tfor {\n\t\ttemplate := make([]byte, 1024)\n\t\tn, err := body.Read(template)\n\t\tif err != nil {\n\t\t\tif err == io.EOF {\n\t\t\t\tif n > 0 {\n\t\t\t\t\tbuffer.Write(template[:n])\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t} else {\n\t\t\t\treturn \"\"\n\t\t\t}\n\t\t}\n\t\tif n > 0 {\n\t\t\tbuffer.Write(template[:n])\n\t\t}\n\t}\n\treturn buffer.String()\n}", "func newBuffer(buf []byte) *Buffer {\n\treturn &Buffer{data: buf}\n}", "func newBuffer(br *Reader) (*buffer, error) {\n\tn, err := io.ReadFull(br.r, br.buf[:4])\n\t// br.r.Chunk() is only valid after the call the Read(), so this\n\t// must come after the first read in the record.\n\ttx := br.r.Begin()\n\tdefer func() {\n\t\tbr.lastChunk = tx.End()\n\t}()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif n != 4 {\n\t\treturn nil, errors.New(\"bam: invalid record: short block size\")\n\t}\n\tb := &buffer{data: br.buf[:4]}\n\tsize := int(b.readInt32())\n\tif size == 0 {\n\t\treturn nil, io.EOF\n\t}\n\tif size < 0 {\n\t\treturn nil, errors.New(\"bam: invalid record: invalid block size\")\n\t}\n\tif size > cap(br.buf) {\n\t\tb.off, b.data = 0, make([]byte, size)\n\t} else {\n\t\tb.off, b.data = 0, br.buf[:size]\n\t\tb.shared = true\n\t}\n\tn, err = io.ReadFull(br.r, b.data)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif n != size {\n\t\treturn nil, errors.New(\"bam: truncated record\")\n\t}\n\treturn b, nil\n}", "func (*Params) Descriptor() ([]byte, []int) {\n\treturn file_cosmos_bank_v1beta1_bank_proto_rawDescGZIP(), []int{0}\n}", "func (h *TelemetryHandler) GetBuffersInfo(ctx context.Context) (*vppcalls.BuffersInfo, error) {\n\tdata, err := h.vpe.RunCli(context.TODO(), \"show buffers\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar items []vppcalls.BuffersItem\n\n\tfor i, line := range strings.Split(string(data), \"\\n\") {\n\t\t// Skip empty lines\n\t\tif strings.TrimSpace(line) == \"\" {\n\t\t\tcontinue\n\t\t}\n\t\t// Check first line\n\t\tif i == 0 {\n\t\t\tfields := strings.Fields(line)\n\t\t\t// Verify header\n\t\t\tif len(fields) != 11 || fields[0] != \"Pool\" {\n\t\t\t\treturn nil, fmt.Errorf(\"invalid header for `show buffers` received: %q\", line)\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\n\t\t// Parse lines using regexp\n\t\tmatches := buffersRe.FindStringSubmatch(line)\n\t\tif len(matches)-1 != 9 {\n\t\t\treturn nil, fmt.Errorf(\"parsing failed (%d matches) for `show buffers` line: %q\", len(matches), line)\n\t\t}\n\t\tfields := matches[1:]\n\n\t\titems = append(items, vppcalls.BuffersItem{\n\t\t\t// ThreadID: uint(strToUint64(fields[0])),\n\t\t\tName: fields[0],\n\t\t\tIndex: uint(strToUint64(fields[1])),\n\t\t\tSize: strToUint64(fields[3]),\n\t\t\tAlloc: strToUint64(fields[7]),\n\t\t\tFree: strToUint64(fields[5]),\n\t\t\t// NumAlloc: strToUint64(fields[6]),\n\t\t\t// NumFree: strToUint64(fields[7]),\n\t\t})\n\t}\n\n\tinfo := &vppcalls.BuffersInfo{\n\t\tItems: items,\n\t}\n\n\treturn info, nil\n}", "func (*ParameterInformation_Offset) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{121, 0}\n}", "func (def *Definition) ParseBuffer(helper *BufferHelper, option *BufferOption, prefix string) (res TraverseResult, err error) {\n\tif def.Values == nil {\n\t\tif Central.IsDebugLevel() {\n\t\t\tCentral.Log.Debugf(\"Parse buffer types...\")\n\t\t}\n\t\tdef.Values, err = parseBufferTypes(helper, option, def.activeFieldTree, 0)\n\t} else {\n\t\tif Central.IsDebugLevel() {\n\t\t\tdef.DumpTypes(true, true, \"Parse buffer type tree\")\n\t\t\tdef.DumpValues(true)\n\t\t\tCentral.Log.Debugf(\"Parse buffer values... avail.=%v\", (def.Values != nil))\n\t\t}\n\t\tx := parserBufferTr{helper: helper, option: option, prefix: prefix, definition: def}\n\t\tt := TraverserValuesMethods{EnterFunction: parseBufferValues}\n\t\tres, err = def.TraverseValues(t, &x)\n\t\tif err != nil {\n\t\t\tCentral.Log.Debugf(\"Error parsing buffer values... %v\", err)\n\t\t\treturn\n\t\t}\n\t\tif Central.IsDebugLevel() {\n\t\t\tCentral.Log.Debugf(\"End parse buffer values... %p avail.=%v\", def, (def.Values != nil))\n\t\t}\n\t}\n\n\treturn\n}", "func (pk PacketBufferPtr) ToBuffer() buffer.Buffer {\n\tb := pk.buf.Clone()\n\tb.TrimFront(int64(pk.headerOffset()))\n\treturn b\n}", "func NewBuffer() *Buffer { return globalPool.NewBuffer() }", "func (*ParameterInformation) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{121}\n}", "func new_buffer(conn *websocket.Conn, ctrl chan struct{}, txqueuelen int) *Buffer {\n\tbuf := Buffer{conn: conn}\n\tbuf.pending = make(chan []byte, txqueuelen)\n\tbuf.ctrl = ctrl\n\tbuf.cache = make([]byte, packet.PACKET_LIMIT+2)\n\treturn &buf\n}", "func buff(bs ...byte) *bytes.Reader {\n\treturn bytes.NewReader(bs)\n}", "func (body *luaBody) buffer() *bytes.Buffer {\n\tvar b bytes.Buffer\n\tif body.Reader == nil {\n\t\treturn &b\n\t}\n\n\tb.ReadFrom(body.Reader)\n\t_, err := body.Reader.(io.Seeker).Seek(0, 0)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\treturn &b\n}", "func newBuffer(r io.Reader, offset int64) *buffer {\n\treturn &buffer{\n\t\tr: r,\n\t\toffset: offset,\n\t\tbuf: make([]byte, 0, 4096),\n\t\tallowObjptr: true,\n\t\tallowStream: true,\n\t}\n}", "func GetBufferParameteriv(target uint32, pname uint32, params *int32) {\n C.glowGetBufferParameteriv(gpGetBufferParameteriv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func NewBuffer() *Buffer {\n\treturn &Buffer{Line: []byte{}, Val: make([]byte, 0, 32)}\n}", "func (s *Scanner) Buffer(buf []byte, max int)", "func NewBuffer() Buffer {\n\treturn Buffer{\n\t\tCellMap: make(map[image.Point]Cell),\n\t\tArea: image.Rectangle{}}\n}", "func (w *Writer) Buffer() audio.Buffer {\n\treturn w.buf.Clone()\n}", "func GetBufferParameteriv(target uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetBufferParameteriv, 3, uintptr(target), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func (v *TextView) BufferToWindowCoords(win TextWindowType, buffer_x, buffer_y int) (window_x, window_y int) {\n\tvar wx, wy C.gint\n\tC.gtk_text_view_buffer_to_window_coords(v.native(), C.GtkTextWindowType(win), C.gint(buffer_x), C.gint(buffer_y), &wx, &wy)\n\treturn int(wx), int(wy)\n}", "func createBuffer() *bytes.Buffer {\n\tbuf := bytes.Buffer{}\n\treturn &buf\n}", "func (p Plane) GetBuffers() ObjectBuffers {\n\treturn p.buffers\n}", "func (b *Buffer) bytes() []byte {\n\treturn b.data\n}", "func newBuffer() *buffer {\n\treturn &buffer{\n\t\tdata: make([]byte, 0),\n\t\tlen: 0,\n\t\tpkg: nil,\n\t\tconn: nil,\n\t\tpkgCh: make(chan *pkg),\n\t\tevCh: make(chan *pkg),\n\t\terrCh: make(chan error, 1),\n\t}\n}", "func NewBufferBuilder() *BufferBuilder {\n\treturn &BufferBuilder{}\n}", "func appendBuffer(elements []interface{}, buf *bytes.Buffer) ([]interface{}, *bytes.Buffer) {\n\tif buf.Len() > 0 {\n\t\ts, _ := NewStringElement(buf.String())\n\t\treturn append(elements, s), bytes.NewBuffer(nil)\n\t}\n\treturn elements, buf\n}", "func (*ClientMethod_Parameter) Descriptor() ([]byte, []int) {\n\treturn file_metadata_metadata_proto_rawDescGZIP(), []int{2, 0}\n}", "func (*Parameters_Parameter) Descriptor() ([]byte, []int) {\n\treturn file_proto_google_fhir_proto_r5_core_resources_parameters_proto_rawDescGZIP(), []int{0, 0}\n}", "func ParseParameter(cursor *bufio.Reader) []string {\n\tvar buffer []string\n\tbuffer = make([]string, 1)\n\tvar paramCount = 0\n\tfor {\n\t\tnextc, _, err := cursor.ReadRune()\n\t\t//fmt.Println(nextc)\n\t\tif strings.ContainsRune(\" \", nextc) {\n\t\t\tif strings.ContainsRune(\":\", rune(buffer[paramCount][0])) {\n\t\t\t\t// parameter starting with : can have spaces in it\n\t\t\t\tbuffer[paramCount] += string(nextc)\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\tparamCount++\n\t\t\tvar tmp = make([]string, paramCount+1)\n\t\t\tcopy(tmp, buffer)\n\t\t\tbuffer = tmp\n\t\t\tcontinue\n\t\t}\n\t\tif err != nil {\n\t\t\tif err == io.EOF {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tlog.Fatal(\"Error parsing command \", err)\n\t\t}\n\t\t//fmt.Println(paramCount)\n\t\tbuffer[paramCount] += string(nextc)\n\t}\n\t//for i, j := range buffer {\n\t//\tfmt.Printf(\"Parameter %d : %s\\n\", i+1, j)\n\t//}\n\treturn buffer\n}", "func (b *Buffer) Offset() int { return b.offset }", "func NewProxyWithBuffer(buffer *fbe.Buffer) *Proxy {\n proxy := &Proxy{\n fbe.NewReceiver(buffer, false),\n proto.NewProxyWithBuffer(buffer),\n NewStructSimpleModel(buffer),\n NewStructOptionalModel(buffer),\n NewStructNestedModel(buffer),\n NewStructBytesModel(buffer),\n NewStructArrayModel(buffer),\n NewStructVectorModel(buffer),\n NewStructListModel(buffer),\n NewStructSetModel(buffer),\n NewStructMapModel(buffer),\n NewStructHashModel(buffer),\n NewStructHashExModel(buffer),\n NewStructEmptyModel(buffer),\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n nil,\n }\n proxy.SetupHandlerOnReceive(proxy)\n proxy.SetupHandlerOnProxyStructSimpleFunc(func(model *StructSimpleModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructOptionalFunc(func(model *StructOptionalModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructNestedFunc(func(model *StructNestedModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructBytesFunc(func(model *StructBytesModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructArrayFunc(func(model *StructArrayModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructVectorFunc(func(model *StructVectorModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructListFunc(func(model *StructListModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructSetFunc(func(model *StructSetModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructMapFunc(func(model *StructMapModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructHashFunc(func(model *StructHashModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructHashExFunc(func(model *StructHashExModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyStructEmptyFunc(func(model *StructEmptyModel, fbeType int, buffer []byte) {})\n return proxy\n}", "func (b *BaseImpl) BufInfo() (infos BufInfo) {\n\n\tinfos[0].Len = len(b.bytes)\n\tinfos[0].Cap = cap(b.bytes)\n\n\tinfos[1].Len = infos[0].Len\n\tinfos[1].Cap = infos[0].Cap\n\tfor _, diff := range b.Diffs {\n\t\tif len(diff.bytes)+diff.Offset > infos[1].Len {\n\t\t\tinfos[1].Len = diff.Offset + len(diff.bytes)\n\t\t}\n\t\tif cap(diff.bytes)+diff.Offset > infos[1].Cap {\n\t\t\tinfos[1].Cap = diff.Offset + cap(diff.bytes)\n\t\t}\n\t}\n\treturn\n}", "func (*BlockParams) Descriptor() ([]byte, []int) {\n\treturn file_tm_replay_proto_rawDescGZIP(), []int{11}\n}", "func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) {\n\tsyscall.Syscall(gpGetNamedBufferPointerv, 3, uintptr(buffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func (s *scanner) returnBuffer(buf []byte) {\n\tif len(buf) < cap(buf) {\n\t\ts.bytesPrealloc = buf[len(buf):]\n\t}\n}", "func (rr *responseRecorder) Buffer() *bytes.Buffer {\n\treturn rr.buf\n}", "func (*PDirectBuffer) Descriptor() ([]byte, []int) {\n\treturn file_v1_Stat_proto_rawDescGZIP(), []int{19}\n}", "func GetCommandArgs(ctx context.Context,\n\tcr *CommandReference,\n\ts *State) interface{} {\n\tswitch cr.Type {\n\tcase CommandType_cmd_vkCmdBeginRenderPass:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBeginRenderPass.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdEndRenderPass:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdEndRenderPass.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdNextSubpass:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdNextSubpass.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBindPipeline:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBindPipeline.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBindDescriptorSets:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBindDescriptorSets.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBindVertexBuffers:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBindVertexBuffers.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBindIndexBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBindIndexBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdPipelineBarrier:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdPipelineBarrier.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdWaitEvents:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdWaitEvents.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBeginQuery:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBeginQuery.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdBlitImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdBlitImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdClearAttachments:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdClearAttachments.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdClearColorImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdClearColorImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdClearDepthStencilImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdClearDepthStencilImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyBufferToImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyBufferToImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyImageToBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyImageToBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdCopyQueryPoolResults:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdCopyQueryPoolResults.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDispatch:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDispatch.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDispatchIndirect:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDispatchIndirect.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDraw:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDraw.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDrawIndexed:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDrawIndexed.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDrawIndexedIndirect:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDrawIndexedIndirect.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDrawIndirect:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDrawIndirect.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdEndQuery:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdEndQuery.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdExecuteCommands:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdExecuteCommands.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdFillBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdFillBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdPushConstants:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdPushConstants.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdResetQueryPool:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdResetQueryPool.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdResolveImage:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdResolveImage.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetBlendConstants:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetBlendConstants.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetDepthBias:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetDepthBias.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetDepthBounds:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetDepthBounds.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetEvent:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetEvent.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdResetEvent:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdResetEvent.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetLineWidth:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetLineWidth.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetScissor:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetScissor.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetStencilCompareMask:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetStencilCompareMask.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetStencilReference:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetStencilReference.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetStencilWriteMask:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetStencilWriteMask.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdSetViewport:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdSetViewport.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdUpdateBuffer:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdUpdateBuffer.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdWriteTimestamp:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdWriteTimestamp.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDebugMarkerBeginEXT:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDebugMarkerBeginEXT.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDebugMarkerEndEXT:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDebugMarkerEndEXT.Get(cr.MapIndex)\n\tcase CommandType_cmd_vkCmdDebugMarkerInsertEXT:\n\t\treturn s.CommandBuffers.Get(cr.Buffer).BufferCommands.VkCmdDebugMarkerInsertEXT.Get(cr.MapIndex)\n\tdefault:\n\t\tx := fmt.Sprintf(\"Should not reach here: %T\", cr)\n\t\tpanic(x)\n\t}\n}", "func (*ResponseParameters) Descriptor() ([]byte, []int) {\n\treturn file_grpc_test_proto_rawDescGZIP(), []int{6}\n}", "func (c *connAttrs) BufferSize() int { c.mu.RLock(); defer c.mu.RUnlock(); return c._bufferSize }", "func (q Query) MakeBuffer() []interface{} {\n\tstrings := make([]sql.NullString, len(q.columns))\n\tresult := make([]interface{}, len(q.columns))\n\n\tfor i, v := range strings {\n\t\tresult[i] = &v\n\t}\n\n\treturn result\n}", "func (*Parameter) Descriptor() ([]byte, []int) {\n\treturn file_service_proto_rawDescGZIP(), []int{1}\n}", "func (*ParamType) Descriptor() ([]byte, []int) {\n\treturn file_keepsake_proto_rawDescGZIP(), []int{22}\n}", "func (b *Builder) Buffer(count int) value.Pointer {\n\tpointerSize := b.memoryLayout.GetPointer().GetSize()\n\tdynamic := false\n\tsize := 0\n\n\t// Examine the stack to see where these values came from\n\tfor i := 0; i < count; i++ {\n\t\te := b.stack[len(b.stack)-i-1]\n\t\top := b.instructions[e.idx]\n\t\tty := e.ty\n\t\tif _, isPush := op.(asm.Push); !isPush {\n\t\t\t// Values that have made their way on to the stack from non-constant\n\t\t\t// sources cannot be put in the constant buffer.\n\t\t\tdynamic = true\n\t\t}\n\t\tswitch ty {\n\t\tcase protocol.Type_ConstantPointer, protocol.Type_VolatilePointer:\n\t\t\t// Pointers cannot be put into the constant buffer as they are remapped\n\t\t\t// by the VM\n\t\t\tdynamic = true\n\t\t}\n\n\t\tsize += ty.Size(pointerSize)\n\t}\n\n\tif dynamic {\n\t\t// At least one of the values was not from a Push()\n\t\t// Build the buffer in temporary memory at replay time.\n\t\tbuf := b.AllocateTemporaryMemory(uint64(size))\n\t\toffset := size\n\t\tfor i := 0; i < count; i++ {\n\t\t\te := b.stack[len(b.stack)-1]\n\t\t\toffset -= e.ty.Size(pointerSize)\n\t\t\tb.Store(buf.Offset(uint64(offset)))\n\t\t}\n\t\treturn buf\n\t}\n\t// All the values are constant.\n\t// Move the pushed values into a constant memory buffer.\n\tvalues := make([]value.Value, count)\n\tfor i := 0; i < count; i++ {\n\t\te := b.stack[len(b.stack)-1]\n\t\tvalues[count-i-1] = b.instructions[e.idx].(asm.Push).Value\n\t\tb.removeInstruction(e.idx)\n\t\tb.popStack()\n\t}\n\treturn b.constantMemory.writeValues(values...)\n}", "func getBuffer() *bytes.Buffer {\n\treturn bufferPool.Get().(*bytes.Buffer)\n}", "func Buffer() string {\n\treturn C.GoString(C.rl_line_buffer)\n}", "func (pb *PageBuffer) Values() interface{} {\n offset := pb.pageOffset(pb.page_no)\n return pb.buffer.Slice(offset, offset + pb.idx).Interface()\n}", "func (m *Sink) Buffer() signal.Float64 {\n\treturn m.buffer\n}", "func ReadBuffer(mode uint32) {\n C.glowReadBuffer(gpReadBuffer, (C.GLenum)(mode))\n}", "func (file BaseFile) params() (map[string]string, error) {\n\tparams := make(map[string]string)\n\n\tif file.ChannelUsername != \"\" {\n\t\tparams[\"chat_id\"] = file.ChannelUsername\n\t} else {\n\t\tparams[\"chat_id\"] = strconv.FormatInt(file.ChatID, 10)\n\t}\n\n\tif file.ReplyToMessageID != 0 {\n\t\tparams[\"reply_to_message_id\"] = strconv.Itoa(file.ReplyToMessageID)\n\t}\n\n\tif file.ReplyMarkup != nil {\n\t\tdata, err := json.Marshal(file.ReplyMarkup)\n\t\tif err != nil {\n\t\t\treturn params, err\n\t\t}\n\n\t\tparams[\"reply_markup\"] = string(data)\n\t}\n\n\tif file.MimeType != \"\" {\n\t\tparams[\"mime_type\"] = file.MimeType\n\t}\n\n\tif file.FileSize > 0 {\n\t\tparams[\"file_size\"] = strconv.Itoa(file.FileSize)\n\t}\n\n\tparams[\"disable_notification\"] = strconv.FormatBool(file.DisableNotification)\n\n\treturn params, nil\n}", "func getAllocFreeParams(allocLen int) []string {\n\tsize := uint32(allocLen)\n\tstart := atomic.AddUint32(&startParamList, size)\n\tif (start + 10) >= uint32(len(paramsPosDummy)) {\n\t\tatomic.StoreUint32(&startParamList, 0)\n\t\treturn getAllocFreeParams(allocLen)\n\t}\n\tstart -= size\n\tallocLen += int(start)\n\tparams := paramsDummy[start:allocLen:allocLen]\n\treturn params\n}", "func (tr *CassandraKeySpace) GetParameters() (map[string]interface{}, error) {\n\tp, err := json.TFParser.Marshal(tr.Spec.ForProvider)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbase := map[string]interface{}{}\n\treturn base, json.TFParser.Unmarshal(p, &base)\n}", "func (r *Rx) Bytes() []byte {\n\treturn r.p.buffer\n}", "func NewBuffer(o *Options) (*Buffer, error) {\n\tif o == nil {\n\t\to = &Options{}\n\t}\n\tret := &Buffer{opts: *o} // copy o before normalizing it\n\n\tif err := ret.opts.normalize(); err != nil {\n\t\treturn nil, errors.Annotate(err, \"normalizing buffer.Options\").Err()\n\t}\n\n\tret.unleased.onlyID = o.FIFO\n\tret.batchItemsGuess = newMovingAverage(10, ret.opts.batchItemsGuess())\n\tret.liveLeases = map[*Batch]struct{}{}\n\tret.unAckedLeases = map[*Batch]struct{}{}\n\treturn ret, nil\n}", "func NewBuffer() *Buffer {\n\treturn &Buffer{B: &strings.Builder{}}\n}", "func (*PrepareArgs) Descriptor() ([]byte, []int) {\n\treturn file_lbbft_proto_rawDescGZIP(), []int{8}\n}", "func NewProxyWithBuffer(buffer *fbe.Buffer) *Proxy {\n proxy := &Proxy{\n fbe.NewReceiver(buffer, false),\n NewOrderModel(buffer),\n NewBalanceModel(buffer),\n NewAccountModel(buffer),\n nil,\n nil,\n nil,\n }\n proxy.SetupHandlerOnReceive(proxy)\n proxy.SetupHandlerOnProxyOrderFunc(func(model *OrderModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyBalanceFunc(func(model *BalanceModel, fbeType int, buffer []byte) {})\n proxy.SetupHandlerOnProxyAccountFunc(func(model *AccountModel, fbeType int, buffer []byte) {})\n return proxy\n}", "func (b *Buf) Bytes() []byte { return b.b }", "func (m *MsgMemoryBuffer) GetAll() []interface{} {\n\tvar data []interface{}\n\tm.buff.Do(func(x interface{}) {\n\t\tif x != nil {\n\t\t\tdata = append(data, x)\n\t\t}\n\t})\n\treturn data\n}", "func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetNamedBufferSubData, 4, uintptr(buffer), uintptr(offset), uintptr(size), uintptr(data), 0, 0)\n}", "func GetBufferPointerv(target uint32, pname uint32, params *unsafe.Pointer) {\n\tsyscall.Syscall(gpGetBufferPointerv, 3, uintptr(target), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}" ]
[ "0.59277564", "0.57830817", "0.5781071", "0.57732254", "0.57248014", "0.5713533", "0.5704978", "0.5680736", "0.5673289", "0.564021", "0.5635625", "0.562202", "0.55879676", "0.55832255", "0.5570756", "0.5514081", "0.55023456", "0.54961616", "0.5447834", "0.54395765", "0.54268664", "0.54142207", "0.53650755", "0.5342737", "0.53299636", "0.53184056", "0.53145415", "0.5305379", "0.53041536", "0.5301557", "0.52996135", "0.5297414", "0.52961594", "0.5286182", "0.52684975", "0.52663445", "0.5257315", "0.5231435", "0.52277887", "0.5213996", "0.5212929", "0.5195002", "0.5172452", "0.5170476", "0.516427", "0.5161455", "0.516017", "0.5147554", "0.51244646", "0.5118771", "0.5099665", "0.50987756", "0.5094207", "0.5091877", "0.5090826", "0.508951", "0.5083891", "0.50829864", "0.5078764", "0.507643", "0.5070384", "0.5069355", "0.5053648", "0.5043483", "0.5036995", "0.50210375", "0.5019968", "0.5010406", "0.5003046", "0.49990752", "0.49909595", "0.4990359", "0.4989846", "0.49896365", "0.49873343", "0.4983508", "0.49744824", "0.4966864", "0.49658152", "0.49610984", "0.49598503", "0.4950361", "0.4946738", "0.49446583", "0.49391288", "0.49353665", "0.49340847", "0.49321964", "0.4931129", "0.49304917", "0.49267966", "0.4922583", "0.49139374", "0.49070895", "0.490462", "0.49033844", "0.49029076", "0.48949188", "0.48937932" ]
0.49676207
78
return the pointer to a mapped buffer object's data store
func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) { C.glowGetNamedBufferPointerv(gpGetNamedBufferPointerv, (C.GLuint)(buffer), (C.GLenum)(pname), params) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Store) DataPointer() *Dict {\n\treturn s.data\n}", "func (p *movingAverageProcessor) getBufferData(index int, namespace string) interface{} {\n\n\treturn p.movingAverageMap[namespace].movingAverageBuf[index]\n}", "func (this *Data) Ptr() uintptr {\n\treturn this.buf\n}", "func (mp *Mempool) Ptr() unsafe.Pointer {\n\treturn unsafe.Pointer(mp)\n}", "func getWasmMemoryBufferPointer() *uint8 {\n\treturn &buffer[0]\n}", "func (image *Image2D) GetDataPointer() unsafe.Pointer {\n\treturn gl.Ptr(image.data)\n}", "func (gen *DataGen) Ptr() unsafe.Pointer {\n\treturn unsafe.Pointer(gen)\n}", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall(gpMapBuffer, 2, uintptr(target), uintptr(access), 0)\n\treturn (unsafe.Pointer)(ret)\n}", "func (_ BufferPtrPool1M) Get() *[]byte {\n\treturn GetBytesSlicePtr1M()\n}", "func (_ BufferPtrPool2M) Get() *[]byte {\n\treturn GetBytesSlicePtr2M()\n}", "func (t *Dense) Pointer() unsafe.Pointer {\n\treturn t.data\n}", "func (p Point) Buffer() *Buffer {\n\treturn p.buffer\n}", "func (s *MemStore) Get(key interface{}) interface{} {\n\ts.lock.RLock()\n\tdefer s.lock.RUnlock()\n\n\treturn s.data[key]\n}", "func (pk PacketBufferPtr) Data() PacketData {\n\treturn PacketData{pk: pk}\n}", "func (_ BufferPtrPool1K) Get() *[]byte {\n\treturn GetBytesSlicePtr1K()\n}", "func (g *GLTF) loadBuffer(bufIdx int) ([]byte, error) {\n\n\t// Check if provided buffer index is valid\n\tif bufIdx < 0 || bufIdx >= len(g.Buffers) {\n\t\treturn nil, fmt.Errorf(\"invalid buffer index\")\n\t}\n\tbufData := &g.Buffers[bufIdx]\n\t// Return cached if available\n\tif bufData.cache != nil {\n\t\tlog.Debug(\"Fetching Buffer %d (cached)\", bufIdx)\n\t\treturn bufData.cache, nil\n\t}\n\tlog.Debug(\"Loading Buffer %d\", bufIdx)\n\n\t// If buffer URI use the chunk data field\n\tif bufData.Uri == \"\" {\n\t\treturn g.data, nil\n\t}\n\n\t// Checks if buffer URI is a data URI\n\tvar data []byte\n\tvar err error\n\tif isDataURL(bufData.Uri) {\n\t\tdata, err = loadDataURL(bufData.Uri)\n\t} else {\n\t\t// Try to load buffer from file\n\t\tdata, err = g.loadFileBytes(bufData.Uri)\n\t}\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Checks data length\n\tif len(data) != bufData.ByteLength {\n\t\treturn nil, fmt.Errorf(\"buffer:%d read data length:%d expected:%d\", bufIdx, len(data), bufData.ByteLength)\n\t}\n\t// Cache buffer data\n\tg.Buffers[bufIdx].cache = data\n\tlog.Debug(\"cache data:%v\", len(bufData.cache))\n\treturn data, nil\n}", "func (_ BufferPtrPool4M) Get() *[]byte {\n\treturn GetBytesSlicePtr4M()\n}", "func (c *AdapterMemory) Data(ctx context.Context) (map[interface{}]interface{}, error) {\n\treturn c.data.Data()\n}", "func (_ BufferPtrPool2K) Get() *[]byte {\n\treturn GetBytesSlicePtr2K()\n}", "func (s *slice) Pointer() cu.DevicePtr { return s.ptr_ }", "func (_ BufferPtrPool32K) Get() *[]byte {\n\treturn GetBytesSlicePtr32K()\n}", "func (_ BufferPtrPool64K) Get() *[]byte {\n\treturn GetBytesSlicePtr64K()\n}", "func (k *Index) GetKeyPtr() unsafe.Pointer { return unsafe.Pointer(k) }", "func (b *buffer) read(loc Location) unsafe.Pointer {\n\treturn atomic.LoadPointer(b.index(loc.index()))\n}", "func (mmap *File) GetMemoryPtr() unsafe.Pointer {\n\treturn mmap.mmap\n}", "func BufferStorage(target uint32, size int, data unsafe.Pointer, flags uint32) {\n\tsyscall.Syscall6(gpBufferStorage, 4, uintptr(target), uintptr(size), uintptr(data), uintptr(flags), 0, 0)\n}", "func (m *Mmap) GetPointer() int64 {\n\treturn m.FilePointer\n}", "func BufferStorage(target uint32, size int, data unsafe.Pointer, flags uint32) {\n C.glowBufferStorage(gpBufferStorage, (C.GLenum)(target), (C.GLsizeiptr)(size), data, (C.GLbitfield)(flags))\n}", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n ret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access))\n return (unsafe.Pointer)(ret)\n}", "func (_ BufferPtrPool4K) Get() *[]byte {\n\treturn GetBytesSlicePtr4K()\n}", "func (r *SnpDerivedKeyRespABI) Pointer() unsafe.Pointer { return unsafe.Pointer(r) }", "func (mc *MemoryStorage) Get(key string) interface{} {\n\tmc.RLock()\n\n\t// Get in bucket\n\titem, inStack := mc.bucket[key]\n\tif !inStack {\n\t\tmc.RUnlock()\n\n\t\treturn nil\n\t}\n\tmc.RUnlock()\n\n\treturn item.object\n}", "func (native *OpenGL) Ptr(data interface{}) unsafe.Pointer {\n\treturn gl.Ptr(data)\n}", "func (sp *Space) GetData() interface{} {\n\n\tif len(*sp) > 0 {\n\t\treturn (*sp)[0].GetData()\n\t}\n\treturn nil\n\n}", "func (handle *Handle) Pointer() unsafe.Pointer {\n\treturn unsafe.Pointer(handle.x)\n}", "func (w *Writer) Ptr(index int64)", "func (_ BufferPtrPool16M) Get() *[]byte {\n\treturn GetBytesSlicePtr16M()\n}", "func (r *SnpDerivedKeyReqABI) Pointer() unsafe.Pointer { return unsafe.Pointer(r) }", "func (s *LDBStore) get(addr Address) (chunk *chunk, err error) {\n\tif s.closed {\n\t\treturn nil, ErrDBClosed\n\t}\n\tproximity := s.po(addr)\n\tindex, found := s.tryAccessIdx(addr, proximity)\n\tif found {\n\t\tvar data []byte\n\t\tif s.getDataFunc != nil {\n\t\t\t// if getDataFunc is defined, use it to retrieve the chunk data\n\t\t\tlog.Trace(\"ldbstore.get retrieve with getDataFunc\", \"key\", addr)\n\t\t\tdata, err = s.getDataFunc(addr)\n\t\t\tif err != nil {\n\t\t\t\treturn\n\t\t\t}\n\t\t} else {\n\t\t\t// default DbStore functionality to retrieve chunk data\n\t\t\tdatakey := getDataKey(index.Idx, proximity)\n\t\t\tdata, err = s.db.Get(datakey)\n\t\t\tlog.Trace(\"ldbstore.get retrieve\", \"key\", addr, \"indexkey\", index.Idx, \"datakey\", fmt.Sprintf(\"%x\", datakey), \"proximity\", proximity)\n\t\t\tif err != nil {\n\t\t\t\tlog.Trace(\"ldbstore.get chunk found but could not be accessed\", \"key\", addr, \"err\", err)\n\t\t\t\ts.deleteNow(index, getIndexKey(addr), s.po(addr))\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\n\t\treturn decodeData(addr, data)\n\t} else {\n\t\terr = ErrChunkNotFound\n\t}\n\n\treturn\n}", "func (bp *bufferPool) getBuffer() *buffer {\n\tbp.lock.Lock()\n\tb := bp.freeList\n\tif b != nil {\n\t\tbp.freeList = b.next\n\t\tbp.freeBufNum--\n\t}\n\tbp.lock.Unlock()\n\n\tif b == nil {\n\t\tb = new(buffer)\n\t\tb.Grow(512)\n\t} else {\n\t\tb.next = nil\n\t\tb.Reset()\n\t}\n\treturn b\n}", "func Get() *Buffer {\n\treturn freeList.get()\n}", "func use(p unsafe.Pointer)", "func (self *GameObjectCreator) BitmapData4O(width int, height int, key string, addToCache bool) *BitmapData{\n return &BitmapData{self.Object.Call(\"bitmapData\", width, height, key, addToCache)}\n}", "func (_ BufferPtrPool16K) Get() *[]byte {\n\treturn GetBytesSlicePtr16K()\n}", "func (m *TeamworkActivePeripherals) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) {\n return m.backingStore\n}", "func getBuffer() *bytes.Buffer {\n\treturn bufferPool.Get().(*bytes.Buffer)\n}", "func (_ BufferPtrPool512K) Get() *[]byte {\n\treturn GetBytesSlicePtr512K()\n}", "func (jbobject *ShuffleShuffleBlockResolver) GetBlockData(a StorageShuffleBlockIdInterface) *NetworkBufferManagedBuffer {\n\tconv_a := javabind.NewGoToJavaCallable()\n\tif err := conv_a.Convert(a); err != nil {\n\t\tpanic(err)\n\t}\n\tjret, err := jbobject.CallMethod(javabind.GetEnv(), \"getBlockData\", \"org/apache/spark/network/buffer/ManagedBuffer\", conv_a.Value().Cast(\"org/apache/spark/storage/ShuffleBlockId\"))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tconv_a.CleanUp()\n\tretconv := javabind.NewJavaToGoCallable()\n\tdst := &javabind.Callable{}\n\tretconv.Dest(dst)\n\tif err := retconv.Convert(javabind.ObjectRef(jret)); err != nil {\n\t\tpanic(err)\n\t}\n\tretconv.CleanUp()\n\tunique_x := &NetworkBufferManagedBuffer{}\n\tunique_x.Callable = dst\n\treturn unique_x\n}", "func (c *memoryCache) Get(key string) interface{} {\n\treturn c.data[key]\n}", "func (m *RelatedContact) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) {\n return m.backingStore\n}", "func (_ BufferPtrPool8M) Get() *[]byte {\n\treturn GetBytesSlicePtr8M()\n}", "func StorePointer(addr *unsafe.Pointer, val unsafe.Pointer)", "func MapNamedBuffer(buffer uint32, access uint32) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall(gpMapNamedBuffer, 2, uintptr(buffer), uintptr(access), 0)\n\treturn (unsafe.Pointer)(ret)\n}", "func (v DataDestroyObject) Ptr() *DataDestroyObject {\n\treturn &v\n}", "func (self *TileSprite) CanvasBuffer() *PIXICanvasBuffer{\n return &PIXICanvasBuffer{self.Object.Get(\"canvasBuffer\")}\n}", "func (_ BufferPtrPool8K) Get() *[]byte {\n\treturn GetBytesSlicePtr8K()\n}", "func (server *StorageServer) copyToMemory(data []byte) int32 {\n\n\t// allocate memory in wasm\n\tptr, err := server.funcs[\"alloc\"].Call(int32(len(data)))\n\tcheck(err)\n\n\t// casting pointer to int32\n\tptr32 := ptr.(int32)\n\n\t//fmt.Printf(\"This is the pointer %v\\n\", ptr32)\n\n\t// return raw memory backed by the WebAssembly memory as a byte slice\n\tbuf := server.memory.UnsafeData()\n\tfor i, v := range data {\n\t\tbuf[ptr32+int32(i)] = v\n\t}\n\t// return the pointer\n\treturn ptr32\n}", "func (native *OpenGL) BufferData(target uint32, size int, data interface{}, usage uint32) {\n\tdataPtr, isPtr := data.(unsafe.Pointer)\n\tif isPtr {\n\t\tgl.BufferData(target, size, dataPtr, usage)\n\t} else {\n\t\tgl.BufferData(target, size, gl.Ptr(data), usage)\n\t}\n}", "func (self *GameObjectCreator) BitmapData() *BitmapData{\n return &BitmapData{self.Object.Call(\"bitmapData\")}\n}", "func (self *Graphics) Data() interface{}{\n return self.Object.Get(\"data\")\n}", "func (b *Buffer) Data() []byte { return b.data }", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n\tret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access))\n\treturn (unsafe.Pointer)(ret)\n}", "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n\tret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access))\n\treturn (unsafe.Pointer)(ret)\n}", "func (m *SharepointIds) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) {\n return m.backingStore\n}", "func (self *TileSprite) Data() interface{}{\n return self.Object.Get(\"data\")\n}", "func NewMemoryStorage() *MemoryStorage {\n return &MemoryStorage{tickets: make(map[string]*types.Ticket)}\n}", "func GetBuffer() Buffer {\n\treturn pool.get()\n}", "func NewPtrBuffer(aSlice interface{}) *Buffer {\n aSliceValue := sliceValue(aSlice, true)\n return &Buffer{\n buffer: aSliceValue,\n handler: overwriteNilPtrHandler{\n creater: newCreaterFunc(nil, aSliceValue.Type())}}\n}", "func (p *bufferPool) Get() *bytes.Buffer {\n\tbuf := p.underlying.Get().(*bytes.Buffer)\n\tbuf.Reset()\n\treturn buf\n}", "func (p *Process) read(addr uintptr, ptr interface{}) error {\n\t// Reflection magic!\n\tv := reflect.ValueOf(ptr)\n\tdataAddr := getDataAddr(v)\n\tdataSize := getDataSize(v)\n\n\t// Open the file mapped process memory.\n\tmem, err := os.Open(fmt.Sprintf(\"/proc/%d/mem\", p.PID))\n\tdefer mem.Close()\n\tif err != nil {\n\t\treturn errors.New(fmt.Sprintf(\"Error opening /proc/%d/mem. Are you root?\", p.PID))\n\t}\n\n\t// Create a buffer and read data into it.\n\tdataBuf := make([]byte, dataSize)\n\tn, err := mem.ReadAt(dataBuf, int64(addr))\n\tif n != int(dataSize) {\n\t\treturn errors.New(fmt.Sprintf(\"Tried to read %d bytes, actually read %d bytes\\n\", dataSize, n))\n\t} else if err != nil {\n\t\treturn err\n\t}\n\n\t// Unsafely cast to []byte to copy data into.\n\tbuf := (*[]byte)(unsafe.Pointer(&reflect.SliceHeader{\n\t\tData: dataAddr,\n\t\tLen: int(dataSize),\n\t\tCap: int(dataSize),\n\t}))\n\tcopy(*buf, dataBuf)\n\treturn nil\n}", "func ReadPointerFromBuffer(buf []byte) (Pointer, error) {\n\tvar p Pointer\n\n\theadString := string(buf)\n\tif !strings.HasPrefix(headString, MetaFileIdentifier) {\n\t\treturn p, ErrMissingPrefix\n\t}\n\n\tsplitLines := strings.Split(headString, \"\\n\")\n\tif len(splitLines) < 3 {\n\t\treturn p, ErrInvalidStructure\n\t}\n\n\toid := strings.TrimPrefix(splitLines[1], MetaFileOidPrefix)\n\tif len(oid) != 64 || !oidPattern.MatchString(oid) {\n\t\treturn p, ErrInvalidOIDFormat\n\t}\n\tsize, err := strconv.ParseInt(strings.TrimPrefix(splitLines[2], \"size \"), 10, 64)\n\tif err != nil {\n\t\treturn p, err\n\t}\n\n\tp.Oid = oid\n\tp.Size = size\n\n\treturn p, nil\n}", "func (b *Buffer) Handle() cl.Mem {\n\treturn b.bufHandle\n}", "func NamedBufferStorage(buffer uint32, size int, data unsafe.Pointer, flags uint32) {\n\tsyscall.Syscall6(gpNamedBufferStorage, 4, uintptr(buffer), uintptr(size), uintptr(data), uintptr(flags), 0, 0)\n}", "func (b *Builder) GetMappedTarget(ptr value.Pointer) (value.Pointer, error) {\n\tp, ok := ptr.(value.ObservedPointer)\n\tif !ok {\n\t\treturn ptr, fmt.Errorf(\"ptr %v is not type of value.ObservedPointer\", ptr)\n\t}\n\n\tidx := interval.IndexOf(&b.mappedMemory, uint64(p))\n\tif idx < 0 {\n\t\treturn ptr, fmt.Errorf(\"can not find ptr %v in mappedMemory\", ptr)\n\t}\n\n\tif b.mappedMemory[idx].Range.Base != uint64(p) {\n\t\treturn ptr, fmt.Errorf(\"the ptr %v is not the start of the mapped memory range\", ptr)\n\t}\n\n\treturn b.mappedMemory[idx].Target, nil\n}", "func (m *RecurrenceRange) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) {\n return m.backingStore\n}", "func (p *movingAverageProcessor) addBufferData(index int, data interface{}, namespace string) error {\n\tif _, ok := p.movingAverageMap[namespace]; ok {\n\t\tif index >= len(p.movingAverageMap[namespace].movingAverageBuf) {\n\t\t\treturn errors.New(\"Incorrect value of index, trying to access non-existing element of buffer\")\n\t\t}\n\t\tp.movingAverageMap[namespace].movingAverageBuf[index] = data\n\t\treturn nil\n\t} else {\n\t\treturn errors.New(\"Namespace is not present in the map\")\n\t}\n}", "func (mapper *Mapper) GetPtr(ptr unsafe.Pointer) (goValue interface{}) {\n\t// We don't use KeyFromPtr because the ptr may be a counting-pointer type.\n\tkey := Key{uintptr(ptr)}\n\treturn mapper.Get(key)\n}", "func (_ BufferPtrPool128K) Get() *[]byte {\n\treturn GetBytesSlicePtr128K()\n}", "func (x *FzKeyStorable) Ref() *C.fz_key_storable {\n\tif x == nil {\n\t\treturn nil\n\t}\n\treturn (*C.fz_key_storable)(unsafe.Pointer(x))\n}", "func (_ BufferPtrPool512) Get() *[]byte {\n\treturn GetBytesSlicePtr512()\n}", "func (s *Storage) Free(pooled []byte) {\n\n}", "func (m ConsistentType) Pointer() *ConsistentType {\n\treturn &m\n}", "func (self Source) GetBuffer() (buffer Buffer) {\n\treturn Buffer(self.Geti(AlBuffer))\n}", "func (m *AndroidEnrollmentCompanyCode) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) {\n return m.backingStore\n}", "func (x *FzKeyStorable) PassRef() *C.fz_key_storable {\n\tif x == nil {\n\t\tx = (*FzKeyStorable)(allocFzKeyStorableMemory(1))\n\t}\n\treturn (*C.fz_key_storable)(unsafe.Pointer(x))\n}", "func (m *PrinterLocation) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) {\n return m.backingStore\n}", "func (a *ChannelArea) Buffer() []byte {\n\treturn a.buffer\n}", "func (recv *Object) GetData(key string) uintptr {\n\tc_key := C.CString(key)\n\tdefer C.free(unsafe.Pointer(c_key))\n\n\tretC := C.g_object_get_data((*C.GObject)(recv.native), c_key)\n\tretGo := (uintptr)(unsafe.Pointer(retC))\n\n\treturn retGo\n}", "func MemAccess(p unsafe.Pointer, offset int) unsafe.Pointer {\n\treturn unsafe.Pointer(uintptr(p) + uintptr(offset))\n}", "func bufferToServerFdMap(buffer []byte) map[string]listenerFdMap {\n\tsfm := make(map[string]listenerFdMap)\n\tif len(buffer) > 0 {\n\t\tj, _ := gjson.LoadContent(buffer)\n\t\tfor k := range j.Var().Map() {\n\t\t\tm := make(map[string]string)\n\t\t\tfor k, v := range j.Get(k).Map() {\n\t\t\t\tm[k] = gconv.String(v)\n\t\t\t}\n\t\t\tsfm[k] = m\n\t\t}\n\t}\n\treturn sfm\n}", "func (o *SecretBagWritable) GetData() map[string]string {\n\tif o == nil {\n\t\tvar ret map[string]string\n\t\treturn ret\n\t}\n\n\treturn o.Data\n}", "func (bp bufferPool) get() *bytes.Buffer {\n\tbuf := bp.p.Get().(*bytes.Buffer)\n\treturn buf\n}", "func (s PointBuffer) Get(idx int) PointPtr {\n\tinBounds := idx >= 0 && idx < int(s.len)\n\tif !inBounds {\n\t\tpanic(fmt.Errorf(\n\t\t\t\"runtime error: index out of range [%d] with length %d\",\n\t\t\tidx, s.len,\n\t\t))\n\t}\n\tvar tVar Point\n\ttSize := unsafe.Sizeof(tVar)\n\ttype internalPtr struct {\n\t\toffset uintptr\n\t\tbucketIdx uint8\n\t\tarenaMask uint16\n\t}\n\tcurrentPtr := *(*internalPtr)(unsafe.Pointer(&s.data))\n\tnewPtr := internalPtr{\n\t\toffset: currentPtr.offset + uintptr(idx*int(tSize)),\n\t\tbucketIdx: currentPtr.bucketIdx,\n\t\tarenaMask: currentPtr.arenaMask,\n\t}\n\treturn PointPtr{\n\t\tptr: *(*arena.Ptr)(unsafe.Pointer(&newPtr)),\n\t}\n}", "func (d *DiskStorage) Get(key string) (interface{}, error) {\n\treturn d.memory.Get(key)\n}", "func (m *MarkerIndexBranchIDMapping) ObjectStorageKey() []byte {\n\treturn m.sequenceID.Bytes()\n}", "func (self *GameObjectCreator) BitmapData3O(width int, height int, key string) *BitmapData{\n return &BitmapData{self.Object.Call(\"bitmapData\", width, height, key)}\n}", "func (m *SmsLogRow) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) {\n return m.backingStore\n}", "func (m *Memory) GetChunk(cachedObject *Object, offset int64) ([]byte, error) {\n\tkey := cachedObject.abs() + \"-\" + strconv.FormatInt(offset, 10)\n\tvar data []byte\n\n\tif x, found := m.db.Get(key); found {\n\t\tdata = x.([]byte)\n\t\treturn data, nil\n\t}\n\n\treturn nil, fmt.Errorf(\"couldn't get cached object data at offset %v\", offset)\n}", "func (p *PersistentSyncMap) Get(key interface{}) interface{} {\n\tcacheLock.RLock()\n\tdefer cacheLock.RUnlock()\n\treturn p.storage[key]\n}", "func (p Plane) GetBuffers() ObjectBuffers {\n\treturn p.buffers\n}", "func (p *BufferPool) Get() []byte {\n\treturn p.p.Get().([]byte)\n}" ]
[ "0.62568843", "0.59756076", "0.58883214", "0.57736844", "0.5525396", "0.54997057", "0.5439922", "0.5411588", "0.53874433", "0.53714955", "0.537001", "0.53588206", "0.53580296", "0.5349357", "0.5340092", "0.53391176", "0.53275615", "0.5322059", "0.5316111", "0.52929187", "0.5272715", "0.52621424", "0.5259912", "0.5224581", "0.52142894", "0.52130854", "0.5211722", "0.5191141", "0.5176725", "0.5166538", "0.51603955", "0.5148866", "0.51345307", "0.51165205", "0.51133335", "0.5113066", "0.5088139", "0.5083226", "0.5073002", "0.50703084", "0.5061944", "0.5061561", "0.50583154", "0.50247085", "0.5020819", "0.5019855", "0.50031686", "0.50020504", "0.5001421", "0.4975309", "0.4970132", "0.49637043", "0.4960013", "0.49510968", "0.49487686", "0.49465016", "0.49464574", "0.4942243", "0.49408957", "0.49401176", "0.49370283", "0.49330977", "0.49330977", "0.49330643", "0.49323884", "0.49250105", "0.49097836", "0.49014676", "0.48999047", "0.48991045", "0.48988578", "0.4897988", "0.4896443", "0.4889301", "0.48867127", "0.48682445", "0.4860719", "0.4857257", "0.4855331", "0.48528957", "0.4842888", "0.48389068", "0.4835936", "0.48341984", "0.48334318", "0.4833144", "0.48322698", "0.48315105", "0.4829348", "0.4810693", "0.47938997", "0.47917044", "0.4791696", "0.47899258", "0.47866058", "0.47827518", "0.4779538", "0.47711566", "0.47702032", "0.47667027", "0.47657952" ]
0.0
-1
returns a subset of a buffer object's data store
func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) { C.glowGetNamedBufferSubData(gpGetNamedBufferSubData, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (b *buffer) buffer() []byte {\n\treturn b.buf[b.offset:]\n}", "func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetBufferSubData, 4, uintptr(target), uintptr(offset), uintptr(size), uintptr(data), 0, 0)\n}", "func getSlice(p position) []byte {\n\ts, i := getChunkLocation(p.chunk)\n\tbufStart := int(i)*ChunkSize + p.chunkPos\n\tbufLen := ChunkSize - p.chunkPos\n\treturn slabs[s].memory[bufStart : bufStart+bufLen]\n}", "func (object MQObject) GetSlice(gomd *MQMD,\n\tgogmo *MQGMO, buffer []byte) ([]byte, int, error) {\n\trealDatalen, err := object.getInternal(gomd, gogmo, buffer, true)\n\n\t// The datalen will be set even if the buffer is too small - there\n\t// will be one of MQRC_TRUNCATED_MSG_ACCEPTED or _FAILED depending on the\n\t// GMO options. In any case, we return the available data along with the\n\t// error code but need to make sure that the real untruncated\n\t// message length is also returned. Also ensure we don't try to read past the\n\t// end of the buffer.\n\tdatalen := realDatalen\n\tif datalen > cap(buffer) {\n\t\tdatalen = cap(buffer)\n\t}\n\treturn buffer[0:datalen], realDatalen, err\n}", "func (iobuf *buf) slice(free, base, bound uint) *Slice {\n\tatomic.AddInt32(&iobuf.refcount, 1)\n\treturn &Slice{iobuf: iobuf, free: free, base: base, Contents: iobuf.Contents[base:bound]}\n}", "func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n C.glowGetBufferSubData(gpGetBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func (_ BufferPtrPool1M) Get() *[]byte {\n\treturn GetBytesSlicePtr1M()\n}", "func (_ BufferPtrPool1K) Get() *[]byte {\n\treturn GetBytesSlicePtr1K()\n}", "func (d *SliceDataStore) Get() []Record {\n\treturn d.slice\n}", "func (_ BufferPtrPool2K) Get() *[]byte {\n\treturn GetBytesSlicePtr2K()\n}", "func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n\tC.glowGetBufferSubData(gpGetBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n\tC.glowGetBufferSubData(gpGetBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func (b *Buffer) Slice() []byte {\n\t// Skip IP and UDP headers\n\treturn b[(ipv4HeaderSize + udp4HeaderSize):]\n}", "func (_ BufferPtrPool2M) Get() *[]byte {\n\treturn GetBytesSlicePtr2M()\n}", "func (g *GLTF) loadBuffer(bufIdx int) ([]byte, error) {\n\n\t// Check if provided buffer index is valid\n\tif bufIdx < 0 || bufIdx >= len(g.Buffers) {\n\t\treturn nil, fmt.Errorf(\"invalid buffer index\")\n\t}\n\tbufData := &g.Buffers[bufIdx]\n\t// Return cached if available\n\tif bufData.cache != nil {\n\t\tlog.Debug(\"Fetching Buffer %d (cached)\", bufIdx)\n\t\treturn bufData.cache, nil\n\t}\n\tlog.Debug(\"Loading Buffer %d\", bufIdx)\n\n\t// If buffer URI use the chunk data field\n\tif bufData.Uri == \"\" {\n\t\treturn g.data, nil\n\t}\n\n\t// Checks if buffer URI is a data URI\n\tvar data []byte\n\tvar err error\n\tif isDataURL(bufData.Uri) {\n\t\tdata, err = loadDataURL(bufData.Uri)\n\t} else {\n\t\t// Try to load buffer from file\n\t\tdata, err = g.loadFileBytes(bufData.Uri)\n\t}\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Checks data length\n\tif len(data) != bufData.ByteLength {\n\t\treturn nil, fmt.Errorf(\"buffer:%d read data length:%d expected:%d\", bufIdx, len(data), bufData.ByteLength)\n\t}\n\t// Cache buffer data\n\tg.Buffers[bufIdx].cache = data\n\tlog.Debug(\"cache data:%v\", len(bufData.cache))\n\treturn data, nil\n}", "func (bm ByteMap) Slice(includeKeys map[string]bool) ByteMap {\n\tresult, _ := bm.doSplit(false, includeKeys)\n\treturn result\n}", "func (p *movingAverageProcessor) getBufferData(index int, namespace string) interface{} {\n\n\treturn p.movingAverageMap[namespace].movingAverageBuf[index]\n}", "func BufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n\tsyscall.Syscall6(gpBufferSubData, 4, uintptr(target), uintptr(offset), uintptr(size), uintptr(data), 0, 0)\n}", "func (_ BufferPtrPool16M) Get() *[]byte {\n\treturn GetBytesSlicePtr16M()\n}", "func (s PointBuffer) SubSlice(low int, high int) PointBuffer {\n\tinBounds := low >= 0 && low <= high && high <= s.cap\n\tif !inBounds {\n\t\tpanic(fmt.Errorf(\n\t\t\t\"runtime error: slice bounds out of range [%d:%d] with capacity %d\",\n\t\t\tlow, high, s.cap,\n\t\t))\n\t}\n\tvar tVar Point\n\ttSize := unsafe.Sizeof(tVar)\n\ttype internalPtr struct {\n\t\toffset uintptr\n\t\tbucketIdx uint8\n\t\tarenaMask uint16\n\t}\n\tcurrentPtr := *(*internalPtr)(unsafe.Pointer(&s.data))\n\tnewPtr := internalPtr{\n\t\toffset: currentPtr.offset + uintptr(low*int(tSize)),\n\t\tbucketIdx: currentPtr.bucketIdx,\n\t\tarenaMask: currentPtr.arenaMask,\n\t}\n\treturn PointBuffer{\n\t\tdata: *(*arena.Ptr)(unsafe.Pointer(&newPtr)),\n\t\tlen: high - low,\n\t\tcap: s.cap - low,\n\t}\n}", "func (a *ChannelArea) Buffer() []byte {\n\treturn a.buffer\n}", "func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetNamedBufferSubData, 4, uintptr(buffer), uintptr(offset), uintptr(size), uintptr(data), 0, 0)\n}", "func BufferGTE(v []byte) predicate.User {\n\treturn predicate.User(func(s *sql.Selector) {\n\t\ts.Where(sql.GTE(s.C(FieldBuffer), v))\n\t})\n}", "func (al *AudioListener) getBuffer() []gumble.AudioPacket {\n\tal.Lock()\n\tdefer al.Unlock()\n\n\tbuf := al.buffer\n\tal.buffer = nil\n\treturn buf\n}", "func (_ BufferPtrPool4M) Get() *[]byte {\n\treturn GetBytesSlicePtr4M()\n}", "func (_ BufferPtrPool16K) Get() *[]byte {\n\treturn GetBytesSlicePtr16K()\n}", "func BufferGTE(v []byte) predicate.User {\n\treturn predicate.User(sql.FieldGTE(FieldBuffer, v))\n}", "func (_ BufferPtrPool64K) Get() *[]byte {\n\treturn GetBytesSlicePtr64K()\n}", "func (_ BufferPtrPool4K) Get() *[]byte {\n\treturn GetBytesSlicePtr4K()\n}", "func (_ BufferPtrPool8M) Get() *[]byte {\n\treturn GetBytesSlicePtr8M()\n}", "func (_ BufferPtrPool32K) Get() *[]byte {\n\treturn GetBytesSlicePtr32K()\n}", "func (_ BufferPtrPool8K) Get() *[]byte {\n\treturn GetBytesSlicePtr8K()\n}", "func (b *Buffer) Values() interface{} {\n return b.buffer.Slice(0, b.idx).Interface()\n}", "func (gl *WebGL) BufferSubData(target GLEnum, offset int, data interface{}) {\n\tvalues := sliceToTypedArray(data)\n\tgl.context.Call(\"bufferSubData\", target, offset, values)\n}", "func BufferSubData(target Enum, offset int, data []byte) {\n\tgl.BufferSubData(uint32(target), offset, int(len(data)), gl.Ptr(&data[0]))\n}", "func (in *InBuffer) Slice(n int) []byte {\n\tr := in.Data[in.ReadPos : in.ReadPos+n]\n\tin.ReadPos += n\n\treturn r\n}", "func (in *InBuffer) Slice(n int) []byte {\n\tr := in.Data[in.ReadPos : in.ReadPos+n]\n\tin.ReadPos += n\n\treturn r\n}", "func (this *byteBuffer) Get(seq int64) ([]byte, error) {\n\tslot := seq & int64(this.slotMask)\n\tindex := slot * int64(this.slotSize)\n\n\tn := int(binary.LittleEndian.Uint16(this.buffer[index : index+SlotOverhead]))\n\tif n > MaxDataSize {\n\t\treturn nil, ErrDataExceedsMaxSize\n\t}\n\n\tindex += SlotOverhead\n\n\tif index+int64(n) < this.bufferSize {\n\t\treturn this.buffer[index : index+int64(n)], nil\n\t}\n\n\tif n > len(this.tmpbuf) {\n\t\tthis.tmpbuf = make([]byte, n)\n\t}\n\tl, i := 0, 0\n\n\tfor n > 0 {\n\t\tl = copy(this.tmpbuf[i:], this.buffer[index:])\n\t\tn -= l\n\t\ti += l\n\n\t\tif n > 0 {\n\t\t\tindex = 0\n\t\t}\n\t}\n\n\treturn this.tmpbuf[:i], nil\n}", "func (i *Iter) returnSlice(a, b int) []byte {\n\tif i.rb.src.bytes == nil {\n\t\treturn i.buf[:copy(i.buf[:], i.rb.src.str[a:b])]\n\t}\n\treturn i.rb.src.bytes[a:b]\n}", "func Get() *Buffer {\n\treturn freeList.get()\n}", "func (b *BufferBatchGetter) BatchGet(ctx context.Context, keys []kv.Key) (map[string][]byte, error) {\n\tif b.buffer.Len() == 0 {\n\t\treturn b.snapshot.BatchGet(ctx, keys)\n\t}\n\tbufferValues := make([][]byte, len(keys))\n\tshrinkKeys := make([]kv.Key, 0, len(keys))\n\tfor i, key := range keys {\n\t\tval, err := b.buffer.Get(ctx, key)\n\t\tif err == nil {\n\t\t\tbufferValues[i] = val\n\t\t\tcontinue\n\t\t}\n\t\tif !kv.IsErrNotFound(err) {\n\t\t\treturn nil, errors.Trace(err)\n\t\t}\n\t\tif b.middle != nil {\n\t\t\tval, err = b.middle.Get(ctx, key)\n\t\t\tif err == nil {\n\t\t\t\tbufferValues[i] = val\n\t\t\t\tcontinue\n\t\t\t}\n\t\t}\n\t\tshrinkKeys = append(shrinkKeys, key)\n\t}\n\tstorageValues, err := b.snapshot.BatchGet(ctx, shrinkKeys)\n\tif err != nil {\n\t\treturn nil, errors.Trace(err)\n\t}\n\tfor i, key := range keys {\n\t\tif len(bufferValues[i]) == 0 {\n\t\t\tcontinue\n\t\t}\n\t\tstorageValues[string(key)] = bufferValues[i]\n\t}\n\treturn storageValues, nil\n}", "func (p *parser) sliceFrom(start savepoint) []byte {\n\treturn p.data[start.position.offset:p.pt.position.offset]\n}", "func (p *parser) sliceFrom(start savepoint) []byte {\n\treturn p.data[start.position.offset:p.pt.position.offset]\n}", "func (p *parser) sliceFrom(start savepoint) []byte {\n\treturn p.data[start.position.offset:p.pt.position.offset]\n}", "func (p *parser) sliceFrom(start savepoint) []byte {\n\treturn p.data[start.position.offset:p.pt.position.offset]\n}", "func (p *parser) sliceFrom(start savepoint) []byte {\n\treturn p.data[start.position.offset:p.pt.position.offset]\n}", "func (_ BufferPtrPool512K) Get() *[]byte {\n\treturn GetBytesSlicePtr512K()\n}", "func (_ BufferPtrPool128K) Get() *[]byte {\n\treturn GetBytesSlicePtr128K()\n}", "func (b *Buffer) Bytes() []byte { return b.buf[:b.length] }", "func (m *Memory) GetChunk(cachedObject *Object, offset int64) ([]byte, error) {\n\tkey := cachedObject.abs() + \"-\" + strconv.FormatInt(offset, 10)\n\tvar data []byte\n\n\tif x, found := m.db.Get(key); found {\n\t\tdata = x.([]byte)\n\t\treturn data, nil\n\t}\n\n\treturn nil, fmt.Errorf(\"couldn't get cached object data at offset %v\", offset)\n}", "func (DummyStore) GetSlice(key string) ([]interface{}, error) {\n\treturn nil, nil\n}", "func (s *SliceOfByte) GetSlice() *[]byte {\n\treturn &s.items\n}", "func (b *Blob) Slice(start, end int, contenttype string) *Blob {\n\tnewBlobObject := b.Call(\"slice\", start, end, contenttype)\n\treturn &Blob{\n\t\tObject: newBlobObject,\n\t}\n}", "func (w *Window) Slice() []float64 {\n\tw.mx.RLock()\n\t// 4 Times faster than \"defer Unlock\"\n\tret := w.base[w.start : w.start+w.Len]\n\tw.mx.RUnlock()\n\treturn ret\n}", "func (s *InMemorySender) Get() []message.Composer {\n\ts.mutex.RLock()\n\tdefer s.mutex.RUnlock()\n\n\tvar start int\n\tvar tmp []message.Composer\n\n\tstart = s.head - len(s.buffer)\n\tif start < 0 {\n\t\tstart = start + len(s.buffer)\n\t\ttmp = append(tmp, s.buffer[start:len(s.buffer)]...)\n\t\treturn append(tmp, s.buffer[:s.head]...)\n\t}\n\treturn append(tmp, s.buffer[start:s.head]...)\n}", "func subset(w http.ResponseWriter, r *http.Request) {\n \n key := r.FormValue(\"key\")\n \n fmt.Print(key)\n db, err := leveldb.OpenFile(\"db\", nil)\n \n if err != nil {\n fmt.Println(err)\n }\n iter := db.NewIterator([]byte(\"foo-\"), nil)\n for iter.Next() {\n fmt.Println(iter)\n }\n iter.Release()\n err = iter.Error()\n defer db.Close()\n\n}", "func Get(size int) *[]byte { return slice.Bytes.Get(size).(*[]byte) }", "func (d *Decoder) sliceOrScratch(n int) (buffer []byte, err error) {\n\tif d.s != nil {\n\t\treturn d.s.Slice(n)\n\t}\n\n\tbuffer = d.scratch[:n]\n\t_, err = d.r.Read(buffer)\n\treturn\n}", "func (b *Buffer) Get(n int) []interface{} {\n\t// reset any invalid values\n\tif n > b.size || n < 0 {\n\t\tn = b.size\n\t}\n\n\tb.RLock()\n\tdefer b.RUnlock()\n\n\t// create a delta\n\tdelta := b.size - n\n\n\t// if all the values are less than delta\n\tif len(b.vals) < delta {\n\t\treturn b.vals\n\t}\n\n\t// return the delta set\n\treturn b.vals[delta:]\n}", "func (_ BufferPtrPool512) Get() *[]byte {\n\treturn GetBytesSlicePtr512()\n}", "func (g *GeoTIFF) GetSlice(offset uint, size uint) (*DataSlice, error) {\n\tbuffer := make([]byte, size)\n\t_, err := g.source.ReadAt(buffer, int64(offset))\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"cannot read data from file due to %v\", err)\n\t}\n\tdataSlice := NewDataSlice(buffer, offset, g.littleEndian, g.bigTiff)\n\treturn dataSlice, nil\n}", "func Subset[T any](collection []T, offset int, length uint) []T {\n\tsize := len(collection)\n\n\tif offset < 0 {\n\t\toffset = size + offset\n\t\tif offset < 0 {\n\t\t\toffset = 0\n\t\t}\n\t}\n\n\tif offset > size {\n\t\treturn []T{}\n\t}\n\n\tif length > uint(size)-uint(offset) {\n\t\tlength = uint(size - offset)\n\t}\n\n\treturn collection[offset : offset+int(length)]\n}", "func getBuf(l int) []byte {\n\tx := bufPool.Get()\n\tif x == nil {\n\t\treturn make([]byte, l)\n\t}\n\tbuf := x.([]byte)\n\tif cap(buf) < l {\n\t\treturn make([]byte, l)\n\t}\n\treturn buf[:l]\n}", "func (c *poolConn) ReadBuffer(size int) ([]byte, error) {\n\tif c.mustRead == true {\n\t\terr := c.ReadTcpBlock()\n\t\tif err != nil {\n\t\t\tc.err = err\n\t\t\treturn nil, err\n\t\t}\n\t\tc.buffer.index = 0\n\t\tc.mustRead = false\n\t}\n\n\t//if size < c.buffer.size-c.buffer.index, normal stitching\n\t//if c.buffer.size-c.buffer.index < size < c.buffer.capacity-c.buffer.size+c.buffer.index, move usable data in buffer to front\n\t//if size > c.buffer.capacity, directly read the specified size\n\tif size+2 <= c.buffer.size-c.buffer.index {\n\n\t\tif c.buffer.realBuffer[c.buffer.index+size] == '\\r' && c.buffer.realBuffer[c.buffer.index+size+1] == '\\n' {\n\t\t\tcpy_index := c.buffer.index\n\t\t\tc.buffer.index = c.buffer.index + size + 2\n\t\t\tif c.buffer.index >= c.buffer.size {\n\t\t\t\tc.mustRead = true\n\t\t\t}\n\t\t\treturn c.buffer.realBuffer[cpy_index: cpy_index+size], nil\n\t\t} else {\n\t\t\treturn nil, errors.New(\"ReadBuffer is read wrong!\")\n\t\t}\n\t} else if size+2 <= c.buffer.capacity-c.buffer.size+c.buffer.index {\n\t\tc.ReadUnsafeBuffer()\n\t\tif c.buffer.realBuffer[c.buffer.index+size] == '\\r' && c.buffer.realBuffer[c.buffer.index+size+1] == '\\n' {\n\t\t\tc.buffer.index = c.buffer.index + size + 2\n\t\t\tif c.buffer.index >= c.buffer.size {\n\t\t\t\tc.mustRead = true\n\t\t\t}\n\t\t\treturn c.buffer.realBuffer[0:size], nil\n\t\t} else {\n\t\t\treturn nil, errors.New(\"ReadBuffer is read wrong!\")\n\t\t}\n\n\t} else {\n\t\tvar err error\n\t\tbigBuffer := make([]byte, size+2)\n\t\tcopy(bigBuffer, c.buffer.realBuffer[c.buffer.index:])\n\n\t\t//Make the results right , when the BigSize < buffer.capacity\n\t\tif len(bigBuffer) > c.buffer.size-c.buffer.index {\n\t\t\tbigBuffer, err = c.ReadTcpBigBlockLink(bigBuffer)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t}\n\n\t\t//judge weather the bigBuffer is right\n\t\tif bigBuffer[size] == '\\r' && bigBuffer[size+1] == '\\n' {\n\t\t\tc.buffer.index = c.buffer.index + size + 2\n\t\t\tif c.buffer.index >= c.buffer.size {\n\t\t\t\tc.mustRead = true\n\t\t\t}\n\t\t\treturn bigBuffer[:size], nil\n\t\t} else {\n\t\t\treturn nil, errors.New(\"bigBuffer is read wrong!\")\n\t\t}\n\t}\n}", "func BufferSubData(target Enum, offset Intptr, size Sizeiptr, data unsafe.Pointer) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcoffset, _ := (C.GLintptr)(offset), cgoAllocsUnknown\n\tcsize, _ := (C.GLsizeiptr)(size), cgoAllocsUnknown\n\tcdata, _ := (unsafe.Pointer)(unsafe.Pointer(data)), cgoAllocsUnknown\n\tC.glBufferSubData(ctarget, coffset, csize, cdata)\n}", "func (b *Buffer) Retrieve(length int) {\n\tif length < b.ReadableBytes() {\n\t\tb.readerIndex += length\n\t} else {\n\t\tb.RetrieveAll()\n\t}\n}", "func (s *LDBStore) get(addr Address) (chunk *chunk, err error) {\n\tif s.closed {\n\t\treturn nil, ErrDBClosed\n\t}\n\tproximity := s.po(addr)\n\tindex, found := s.tryAccessIdx(addr, proximity)\n\tif found {\n\t\tvar data []byte\n\t\tif s.getDataFunc != nil {\n\t\t\t// if getDataFunc is defined, use it to retrieve the chunk data\n\t\t\tlog.Trace(\"ldbstore.get retrieve with getDataFunc\", \"key\", addr)\n\t\t\tdata, err = s.getDataFunc(addr)\n\t\t\tif err != nil {\n\t\t\t\treturn\n\t\t\t}\n\t\t} else {\n\t\t\t// default DbStore functionality to retrieve chunk data\n\t\t\tdatakey := getDataKey(index.Idx, proximity)\n\t\t\tdata, err = s.db.Get(datakey)\n\t\t\tlog.Trace(\"ldbstore.get retrieve\", \"key\", addr, \"indexkey\", index.Idx, \"datakey\", fmt.Sprintf(\"%x\", datakey), \"proximity\", proximity)\n\t\t\tif err != nil {\n\t\t\t\tlog.Trace(\"ldbstore.get chunk found but could not be accessed\", \"key\", addr, \"err\", err)\n\t\t\t\ts.deleteNow(index, getIndexKey(addr), s.po(addr))\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\n\t\treturn decodeData(addr, data)\n\t} else {\n\t\terr = ErrChunkNotFound\n\t}\n\n\treturn\n}", "func BufferStorage(target uint32, size int, data unsafe.Pointer, flags uint32) {\n\tsyscall.Syscall6(gpBufferStorage, 4, uintptr(target), uintptr(size), uintptr(data), uintptr(flags), 0, 0)\n}", "func (g *GLTF) loadBufferView(bvIdx int) ([]byte, error) {\n\n\t// Check if provided buffer view index is valid\n\tif bvIdx < 0 || bvIdx >= len(g.BufferViews) {\n\t\treturn nil, fmt.Errorf(\"invalid buffer view index\")\n\t}\n\tbvData := g.BufferViews[bvIdx]\n\t// Return cached if available\n\tif bvData.cache != nil {\n\t\tlog.Debug(\"Fetching BufferView %d (cached)\", bvIdx)\n\t\treturn bvData.cache, nil\n\t}\n\tlog.Debug(\"Loading BufferView %d\", bvIdx)\n\n\t// Load buffer view buffer\n\tbuf, err := g.loadBuffer(bvData.Buffer)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Establish offset\n\toffset := 0\n\tif bvData.ByteOffset != nil {\n\t\toffset = *bvData.ByteOffset\n\t}\n\n\t// Compute and return offset slice\n\tbvBytes := buf[offset : offset+bvData.ByteLength]\n\n\t// Cache buffer view\n\tg.BufferViews[bvIdx].cache = bvBytes\n\n\treturn bvBytes, nil\n}", "func BufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n C.glowBufferSubData(gpBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func CopyBufferSubData(readTarget uint32, writeTarget uint32, readOffset int, writeOffset int, size int) {\n C.glowCopyBufferSubData(gpCopyBufferSubData, (C.GLenum)(readTarget), (C.GLenum)(writeTarget), (C.GLintptr)(readOffset), (C.GLintptr)(writeOffset), (C.GLsizeiptr)(size))\n}", "func (b *mpgBuff) buffer() *concBuff {\n\tif !b.cur {\n\t\treturn b.bufA\n\t}\n\treturn b.bufB\n}", "func (s SamplesC64) Slice(start, end int) Samples {\n\treturn s[start:end]\n}", "func ReadBytes(buffer []byte, offset int, size int) []byte {\n return buffer[offset:offset + size]\n}", "func (p *BufferPool) Get() []byte {\n\treturn p.p.Get().([]byte)\n}", "func (_ BufferPtrPool256K) Get() *[]byte {\n\treturn GetBytesSlicePtr256K()\n}", "func (self Source) GetBuffer() (buffer Buffer) {\n\treturn Buffer(self.Geti(AlBuffer))\n}", "func SliceBufferByEntries(entries []toc.MetadataEntry, buffer *Buffer) ([]string, string) {\n\tcontents := buffer.Contents()\n\thunks := make([]string, 0)\n\tlength := uint64(len(contents))\n\tvar end uint64\n\tfor _, entry := range entries {\n\t\tstart := entry.StartByte\n\t\tend = entry.EndByte\n\t\tif start > length {\n\t\t\tstart = length\n\t\t}\n\t\tif end > length {\n\t\t\tend = length\n\t\t}\n\t\thunks = append(hunks, string(contents[start:end]))\n\t}\n\treturn hunks, string(contents[end:])\n}", "func (jbobject *JavaNioCharBuffer) Slice() *JavaNioCharBuffer {\n\tjret, err := jbobject.CallMethod(javabind.GetEnv(), \"slice\", \"java/nio/CharBuffer\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tretconv := javabind.NewJavaToGoCallable()\n\tdst := &javabind.Callable{}\n\tretconv.Dest(dst)\n\tif err := retconv.Convert(javabind.ObjectRef(jret)); err != nil {\n\t\tpanic(err)\n\t}\n\tretconv.CleanUp()\n\tunique_x := &JavaNioCharBuffer{}\n\tunique_x.Callable = dst\n\treturn unique_x\n}", "func (p *Pool) Get(size int) (buf []byte) {\n\tif size <= 0 {\n\t\treturn nil\n\t}\n\tif size > math.MaxInt32 {\n\t\treturn make([]byte, size)\n\t}\n\tidx := index(uint32(size))\n\tptr, _ := p.pools[idx].Get().(unsafe.Pointer)\n\tif ptr == nil {\n\t\treturn make([]byte, 1<<idx)[:size]\n\t}\n\tsh := (*reflect.SliceHeader)(unsafe.Pointer(&buf))\n\tsh.Data = uintptr(ptr)\n\tsh.Len = size\n\tsh.Cap = 1 << idx\n\truntime.KeepAlive(ptr)\n\treturn\n}", "func (id GID) slice(start, end int) []byte {\n\tif len(id) != 12 {\n\t\tpanic(fmt.Sprintf(\"Invalid GID: %q\", string(id)))\n\t}\n\n\treturn id[start:end]\n}", "func (s *f64) Slice(start, end int) Floating {\n\tstart = s.BufferIndex(0, start)\n\tend = s.BufferIndex(0, end)\n\treturn &f64{\n\t\tchannels: s.channels,\n\t\tbuffer: s.buffer[start:end],\n\t}\n}", "func (bufferP *BufferPool) Get(size int) (data []byte, err error) {\n\tif size == util.PacketHeaderSize {\n\t\tatomic.AddInt64(&headBuffersCount, 1)\n\t\tid := atomic.AddUint64(&headBufAllocId, 1)\n\t\treturn bufferP.getHead(id), nil\n\t} else if size == util.BlockSize {\n\t\tatomic.AddInt64(&normalBuffersCount, 1)\n\t\tid := atomic.AddUint64(&normalBufAllocId, 1)\n\t\treturn bufferP.getNoraml(id), nil\n\t} else if size == util.DefaultTinySizeLimit {\n\t\tatomic.AddInt64(&tinyBuffersCount, 1)\n\t\treturn bufferP.tinyPool.Get().([]byte), nil\n\t}\n\treturn nil, fmt.Errorf(\"can only support 45 or 65536 bytes\")\n}", "func (d *decoder) buffer() []byte {\n\tif d.buf == nil {\n\t\td.buf = make([]byte, 8)\n\t}\n\treturn d.buf\n}", "func (c *cache) getChunk(s FileID) []byte {\n\tloc := c.chunks[s]\n\treturn c.buf[loc.offset : loc.offset+loc.size]\n}", "func CGet(size int) *[]byte { return slice.Bytes.CGet(size).(*[]byte) }", "func (bp *bufferPool) getBuffer() *buffer {\n\tbp.lock.Lock()\n\tb := bp.freeList\n\tif b != nil {\n\t\tbp.freeList = b.next\n\t\tbp.freeBufNum--\n\t}\n\tbp.lock.Unlock()\n\n\tif b == nil {\n\t\tb = new(buffer)\n\t\tb.Grow(512)\n\t} else {\n\t\tb.next = nil\n\t\tb.Reset()\n\t}\n\treturn b\n}", "func (s *SliceOfUint16) GetSlice() *[]uint16 {\n\treturn &s.items\n}", "func (m *MsgMemoryBuffer) GetAll() []interface{} {\n\tvar data []interface{}\n\tm.buff.Do(func(x interface{}) {\n\t\tif x != nil {\n\t\t\tdata = append(data, x)\n\t\t}\n\t})\n\treturn data\n}", "func (sb *SeekableBuffer) Bytes() []byte {\n\treturn sb.data\n\n}", "func (s *SliceOfUint32) GetSlice() *[]uint32 {\n\treturn &s.items\n}", "func (f *file) Slice(off int64, l int) ([]byte, error) {\n\t// return EOF if offset is larger than the file size\n\tif off >= f.sz {\n\t\treturn nil, io.EOF\n\t}\n\t// shorten the length, if necessary\n\tvar err error\n\tif off+int64(l) > f.sz {\n\t\tl = int(f.sz - off)\n\t\terr = io.EOF\n\t}\n\t// the slice falls entirely in the bof segment\n\tif off+int64(l) <= int64(initialRead) {\n\t\treturn f.peek[int(off) : int(off)+l], err\n\t}\n\tf.once.Do(func() {\n\t\tf.data = f.pool.get(f)\n\t})\n\tret := f.slice(off, l)\n\treturn ret, err\n}", "func (p *Packet) Buffer() []byte {\n\treturn p.Buf\n}", "func (s *SliceOfUint64) GetSlice() *[]uint64 {\n\treturn &s.items\n}", "func Subset(s Stream, t Type) Stream {\n\treturn subsetStream{t, s}\n}", "func (b *Buffer) Buf() []byte { return b.buf }", "func (d *Decoder) take(set *byteSet) []byte {\n\t// Note: use a relative index for start because absolute\n\t// indexes aren't stable (the contents of the buffer can be\n\t// moved when reading more data).\n\tstart := d.r1 - d.r0\nouter:\n\tfor {\n\t\tif !d.ensure(1) {\n\t\t\tbreak\n\t\t}\n\t\tbuf := d.buf[d.r1:]\n\t\tfor i, c := range buf {\n\t\t\tif !set.get(c) {\n\t\t\t\td.r1 += i\n\t\t\t\tbreak outer\n\t\t\t}\n\t\t}\n\t\td.r1 += len(buf)\n\t}\n\treturn d.buf[d.r0+start : d.r1]\n}", "func (p Point) Buffer() *Buffer {\n\treturn p.buffer\n}", "func Buffer(v []byte) predicate.User {\n\treturn predicate.User(func(s *sql.Selector) {\n\t\ts.Where(sql.EQ(s.C(FieldBuffer), v))\n\t})\n}" ]
[ "0.59749746", "0.59622097", "0.5950053", "0.581504", "0.5764334", "0.5763586", "0.5704699", "0.5659777", "0.5591769", "0.5555566", "0.5542999", "0.5542999", "0.5538419", "0.55325186", "0.5509957", "0.5478721", "0.5475454", "0.54440844", "0.5426589", "0.5415148", "0.54036397", "0.5402279", "0.5400035", "0.53836626", "0.5378919", "0.53783983", "0.5366753", "0.53617334", "0.5331046", "0.5330117", "0.5308643", "0.5306703", "0.5304931", "0.530344", "0.5301612", "0.52971804", "0.52971804", "0.52951837", "0.52586645", "0.52536315", "0.5252968", "0.5247109", "0.5247109", "0.5247109", "0.5247109", "0.5247109", "0.52385664", "0.52312046", "0.5166473", "0.5152423", "0.5149929", "0.5142073", "0.5137999", "0.5135714", "0.5130543", "0.5110076", "0.51027405", "0.5102365", "0.5100407", "0.50972676", "0.509297", "0.509158", "0.50906694", "0.5084298", "0.50773025", "0.5067432", "0.50504625", "0.5047794", "0.5046347", "0.5029108", "0.50221264", "0.50195557", "0.5015832", "0.5007826", "0.4995758", "0.499494", "0.4994536", "0.4985273", "0.49827316", "0.49646246", "0.4963356", "0.49632183", "0.49604762", "0.49582037", "0.4955834", "0.49556893", "0.4951308", "0.49499428", "0.49366108", "0.49358013", "0.49318054", "0.4929653", "0.4925258", "0.4922594", "0.49177903", "0.49118286", "0.49036357", "0.49018613", "0.48987347" ]
0.49678946
80
retrieve information about attachments of a framebuffer object
func GetNamedFramebufferAttachmentParameteriv(framebuffer uint32, attachment uint32, pname uint32, params *int32) { C.glowGetNamedFramebufferAttachmentParameteriv(gpGetNamedFramebufferAttachmentParameteriv, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (API) GetFramebufferAttachmentInfo(state *api.State, thread uint64, attachment api.FramebufferAttachment) (width, height, index uint32, format *image.Format, err error) {\n\treturn 0, 0, 0, nil, fmt.Errorf(\"GVR does not support framebuffers\")\n}", "func (f *Framebuffer) Object() interface{} {\n\treturn f.o\n}", "func GetFramebufferAttachmentParameteriv(target uint32, attachment uint32, pname uint32, params *int32) {\n C.glowGetFramebufferAttachmentParameteriv(gpGetFramebufferAttachmentParameteriv, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetNamedFramebufferAttachmentParameteriv(framebuffer uint32, attachment uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetNamedFramebufferAttachmentParameteriv, 4, uintptr(framebuffer), uintptr(attachment), uintptr(pname), uintptr(unsafe.Pointer(params)), 0, 0)\n}", "func (s *stencilOverdraw) getDepthAttachment(a arena.Arena,\n\trpInfo RenderPassObjectʳ,\n) (VkAttachmentDescription, uint32, error) {\n\tif rpInfo.SubpassDescriptions().Len() == 0 {\n\t\treturn NilVkAttachmentDescription, 0,\n\t\t\tfmt.Errorf(\"RenderPass %v has no subpasses\",\n\t\t\t\trpInfo.VulkanHandle())\n\t}\n\t// depth attachment: don't support them not all using the same one for now\n\tattachment0 := rpInfo.SubpassDescriptions().Get(0).DepthStencilAttachment()\n\tfor i := uint32(1); i < uint32(rpInfo.SubpassDescriptions().Len()); i++ {\n\t\tattachment := rpInfo.SubpassDescriptions().Get(i).DepthStencilAttachment()\n\t\tvar match bool\n\t\tif attachment0.IsNil() {\n\t\t\tmatch = attachment.IsNil()\n\t\t} else {\n\t\t\tmatch = !attachment.IsNil() &&\n\t\t\t\tattachment0.Attachment() == attachment.Attachment()\n\t\t}\n\t\tif !match {\n\t\t\t// TODO: Handle using separate depth attachments (make\n\t\t\t// a separate image for each one and combine them at\n\t\t\t// the end perhaps?)\n\t\t\treturn NilVkAttachmentDescription, 0, fmt.Errorf(\n\t\t\t\t\"The subpasses don't have matching depth attachments\")\n\t\t}\n\t}\n\tif attachment0.IsNil() ||\n\t\t// VK_ATTACHMENT_UNUSED\n\t\tattachment0.Attachment() == ^uint32(0) {\n\t\treturn NilVkAttachmentDescription, ^uint32(0), nil\n\t}\n\n\tattachmentDesc, ok := rpInfo.AttachmentDescriptions().Lookup(\n\t\tattachment0.Attachment(),\n\t)\n\tif !ok {\n\t\treturn NilVkAttachmentDescription, 0,\n\t\t\tfmt.Errorf(\"Invalid depth attachment\")\n\t}\n\n\treturn attachmentDesc, attachment0.Attachment(), nil\n}", "func (*Attachment) Descriptor() ([]byte, []int) {\n\treturn file_chat_v1_messages_proto_rawDescGZIP(), []int{5}\n}", "func (*Photo) Descriptor() ([]byte, []int) {\n\treturn file_chat_v1_messages_proto_rawDescGZIP(), []int{4}\n}", "func GetFramebufferAttachmentParameteriv(target uint32, attachment uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetFramebufferAttachmentParameteriv, 4, uintptr(target), uintptr(attachment), uintptr(pname), uintptr(unsafe.Pointer(params)), 0, 0)\n}", "func (*Attachment) Descriptor() ([]byte, []int) {\n\treturn file_proto_google_fhir_proto_stu3_datatypes_proto_rawDescGZIP(), []int{21}\n}", "func (*VolumeAttachment) Descriptor() ([]byte, []int) {\n\treturn file_msgType_proto_rawDescGZIP(), []int{9}\n}", "func (*Attachment) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_support_v2_attachment_proto_rawDescGZIP(), []int{0}\n}", "func (*Attachment) Descriptor() ([]byte, []int) {\n\treturn file_patrol_proto_rawDescGZIP(), []int{0}\n}", "func (*ListAttachmentsRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_support_v2_attachment_service_proto_rawDescGZIP(), []int{0}\n}", "func (*ListAttachmentsResponse) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_support_v2_attachment_service_proto_rawDescGZIP(), []int{1}\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tsyscall.Syscall(gpNamedFramebufferReadBuffer, 2, uintptr(framebuffer), uintptr(src), 0)\n}", "func GetFramebufferAttachmentParameteriv(target uint32, attachment uint32, pname uint32, params *int32) {\n\tC.glowGetFramebufferAttachmentParameteriv(gpGetFramebufferAttachmentParameteriv, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetFramebufferAttachmentParameteriv(target uint32, attachment uint32, pname uint32, params *int32) {\n\tC.glowGetFramebufferAttachmentParameteriv(gpGetFramebufferAttachmentParameteriv, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (*Common_Attachment) Descriptor() ([]byte, []int) {\n\treturn file_proto_common_proto_rawDescGZIP(), []int{0, 3}\n}", "func GetFramebufferAttachmentParameteri(target, attachment, pname Enum) int {\n\tlog.Println(\"GetFramebufferAttachmentParameteri: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)\")\n\tvar param int32\n\tgl.GetFramebufferAttachmentParameteriv(uint32(target), uint32(attachment), uint32(pname), &param)\n\treturn int(param)\n}", "func (*PictureSearchResult) Descriptor() ([]byte, []int) {\n\treturn file_box_search_proto_rawDescGZIP(), []int{5}\n}", "func (*RenderActorsResponse_ResponseItem_Snapshot) Descriptor() ([]byte, []int) {\n\treturn file_service_proto_rawDescGZIP(), []int{6, 0, 0}\n}", "func (*CMsgRecentMatchInfo) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_common_proto_rawDescGZIP(), []int{43}\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tC.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tC.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src))\n}", "func (*Backend) Descriptor() ([]byte, []int) {\n\treturn file_compact_activity_snapshot_proto_rawDescGZIP(), []int{1}\n}", "func (emu *emuState) Framebuffer() []byte {\n\treturn emu.framebuffer()\n}", "func (*RoomInfo) Descriptor() ([]byte, []int) {\n\treturn file_msgdata_proto_rawDescGZIP(), []int{9}\n}", "func (*RaftSnapshotData) Descriptor() ([]byte, []int) {\n\treturn file_raft_serverpb_raft_serverpb_proto_rawDescGZIP(), []int{7}\n}", "func (*Snapshot) Descriptor() ([]byte, []int) {\n\treturn file_pkg_webview_view_proto_rawDescGZIP(), []int{12}\n}", "func (*Photo) Descriptor() ([]byte, []int) {\n\treturn file_google_streetview_publish_v1_resources_proto_rawDescGZIP(), []int{6}\n}", "func (*Content_AttachmentContent) Descriptor() ([]byte, []int) {\n\treturn file_chat_v1_messages_proto_rawDescGZIP(), []int{6, 2}\n}", "func (*CompactActivitySnapshot) Descriptor() ([]byte, []int) {\n\treturn file_compact_activity_snapshot_proto_rawDescGZIP(), []int{0}\n}", "func (*Snapshot) Descriptor() ([]byte, []int) {\n\treturn file_scanner_proto_rawDescGZIP(), []int{2}\n}", "func (*GetPhotoRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_streetview_publish_v1_rpcmessages_proto_rawDescGZIP(), []int{1}\n}", "func (*CMsgScreenInformationChanged) Descriptor() ([]byte, []int) {\n\treturn file_steam_htmlmessages_proto_rawDescGZIP(), []int{112}\n}", "func (*Photo) Descriptor() ([]byte, []int) {\n\treturn file_photo_proto_rawDescGZIP(), []int{0}\n}", "func (r *FramebufferAttachmentBytesResolvable) Resolve(ctx context.Context) (interface{}, error) {\n\tc := path.FindCapture(r.After)\n\tctx = SetupContext(ctx, c, r.Config)\n\n\tintent := replay.Intent{\n\t\tDevice: r.ReplaySettings.Device,\n\t\tCapture: c,\n\t}\n\n\tafter, err := Cmd(ctx, r.After, r.Config)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tapi := after.API()\n\tif api == nil {\n\t\tlog.W(ctx, \"No API!\")\n\t\treturn nil, &service.ErrDataUnavailable{Reason: messages.ErrFramebufferUnavailable()}\n\t}\n\n\tquery, ok := api.(replay.QueryFramebufferAttachment)\n\tif !ok {\n\t\tlog.E(ctx, \"API %s does not implement QueryFramebufferAttachment\", api.Name())\n\t\treturn nil, &service.ErrDataUnavailable{Reason: messages.ErrFramebufferUnavailable()}\n\t}\n\n\tmgr := replay.GetManager(ctx)\n\n\tres, err := query.QueryFramebufferAttachment(\n\t\tctx,\n\t\tintent,\n\t\tmgr,\n\t\tr.After.Indices,\n\t\tr.Width,\n\t\tr.Height,\n\t\tr.Attachment,\n\t\tr.FramebufferIndex,\n\t\tr.DrawMode,\n\t\tr.ReplaySettings.DisableReplayOptimization,\n\t\tr.ReplaySettings.DisplayToSurface,\n\t\tr.Hints,\n\t)\n\tif err != nil {\n\t\tif _, ok := err.(*service.ErrDataUnavailable); ok {\n\t\t\treturn nil, err\n\t\t}\n\t\treturn nil, log.Err(ctx, err, \"Couldn't get framebuffer attachment\")\n\t}\n\n\tres, err = res.Convert(r.ImageFormat)\n\tif err != nil {\n\t\treturn nil, log.Err(ctx, err, \"Couldn't get framebuffer attachment\")\n\t}\n\n\treturn res.Bytes, nil\n}", "func (*Match) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{70}\n}", "func (*DatabaseImageDataArchive) Descriptor() ([]byte, []int) {\n\treturn file_TSPDatabaseMessages_proto_rawDescGZIP(), []int{2}\n}", "func (*SnapshotRequest) Descriptor() ([]byte, []int) {\n\treturn file_openfeed_proto_rawDescGZIP(), []int{53}\n}", "func (*RecordFrame) Descriptor() ([]byte, []int) {\n\treturn file_bastion_proto_rawDescGZIP(), []int{27}\n}", "func GetFramebufferAttachmentParameteriv(target Enum, attachment Enum, pname Enum, params []Int) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcattachment, _ := (C.GLenum)(attachment), cgoAllocsUnknown\n\tcpname, _ := (C.GLenum)(pname), cgoAllocsUnknown\n\tcparams, _ := (*C.GLint)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&params)).Data)), cgoAllocsUnknown\n\tC.glGetFramebufferAttachmentParameteriv(ctarget, cattachment, cpname, cparams)\n}", "func (*SnapshotHighlight) Descriptor() ([]byte, []int) {\n\treturn file_pkg_webview_view_proto_rawDescGZIP(), []int{11}\n}", "func (*MatchList) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{71}\n}", "func (*RenderEventResponse_ActorInfo) Descriptor() ([]byte, []int) {\n\treturn file_service_proto_rawDescGZIP(), []int{2, 0}\n}", "func (*Capture) Descriptor() ([]byte, []int) {\n\treturn file_cmd_proto_rawDescGZIP(), []int{3}\n}", "func (g GenericBackend) ReadFramebufferCount(ctx context.Context, width, height int) (framebuffers int, e error) {\n\tf, err := os.Open(fmt.Sprintf(genericFramebufferFilePattern, g.index))\n\tif err != nil {\n\t\treturn framebuffers, errors.Wrap(err, \"failed to open dri file\")\n\t}\n\n\ttext, err := ioutil.ReadAll(f)\n\tif err != nil {\n\t\treturn framebuffers, errors.Wrap(err, \"failed to read dri file\")\n\t}\n\tlines := strings.Split(string(text), \"\\n\")\n\tfor _, line := range lines {\n\t\t// The line we're looking for looks like \"...size=1920x1080\"\n\t\tvar fbWidth, fbHeight int\n\t\tif _, err := fmt.Sscanf(line, \" size=%dx%d\", &fbWidth, &fbHeight); err != nil {\n\t\t\tcontinue\n\t\t}\n\t\tif fbWidth == width && fbHeight == height {\n\t\t\tframebuffers++\n\t\t}\n\t}\n\treturn\n}", "func (*Room) Descriptor() ([]byte, []int) {\n\treturn file_msgdata_proto_rawDescGZIP(), []int{8}\n}", "func (*TextileRetrievalsInfo) Descriptor() ([]byte, []int) {\n\treturn file_api_mindexd_pb_mindexd_proto_rawDescGZIP(), []int{5}\n}", "func (*SnapshotCFFile) Descriptor() ([]byte, []int) {\n\treturn file_raft_serverpb_raft_serverpb_proto_rawDescGZIP(), []int{8}\n}", "func (*CMsgDOTABotDebugInfo) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_common_proto_rawDescGZIP(), []int{41}\n}", "func (*Contacts) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{4}\n}", "func (*TextileInfo) Descriptor() ([]byte, []int) {\n\treturn file_api_mindexd_pb_mindexd_proto_rawDescGZIP(), []int{2}\n}", "func (mgr *WatchController) getObservedAttachments(\n\twatch *unstructured.Unstructured,\n) (common.AnyUnstructRegistry, error) {\n\t// initialize the attachment registry\n\tattachmentRegistry := make(common.AnyUnstructRegistry)\n\tfor _, attachmentKind := range mgr.GCtlConfig.Spec.Attachments {\n\t\tattachmentInformer := mgr.attachmentInformers.Get(\n\t\t\tattachmentKind.APIVersion,\n\t\t\tattachmentKind.Resource,\n\t\t)\n\t\tif attachmentInformer == nil {\n\t\t\treturn nil,\n\t\t\t\terrors.Errorf(\n\t\t\t\t\t\"Can't find attachment informer for %q with version %q: Watch %s: %s\",\n\t\t\t\t\tattachmentKind.Resource,\n\t\t\t\t\tattachmentKind.APIVersion,\n\t\t\t\t\tcommon.DescObjectAsKey(watch),\n\t\t\t\t\tmgr,\n\t\t\t\t)\n\t\t}\n\t\tvar attachmentObjs []*unstructured.Unstructured\n\t\tvar err error\n\t\t// all possible attachment object for the given attachment kind\n\t\tattachmentObjs, err =\n\t\t\tattachmentInformer.Lister().List(labels.Everything())\n\t\tif err != nil {\n\t\t\treturn nil, errors.Wrapf(\n\t\t\t\terr,\n\t\t\t\t\"Can't list attachments for %s with version %s: Watch %s: %s\",\n\t\t\t\tattachmentKind.Resource,\n\t\t\t\tattachmentKind.APIVersion,\n\t\t\t\tcommon.DescObjectAsKey(watch),\n\t\t\t\tmgr,\n\t\t\t)\n\t\t}\n\t\tglog.V(7).Infof(\n\t\t\t\"%d attachment %s(s) listed with version %s: Watch %s: %s\",\n\t\t\tlen(attachmentObjs),\n\t\t\tattachmentKind.Resource,\n\t\t\tattachmentKind.APIVersion,\n\t\t\tcommon.DescObjectAsKey(watch),\n\t\t\tmgr,\n\t\t)\n\t\t// steps to initialize the attachment registry\n\n\t\tattachmentAPI := mgr.DynamicDiscovery.GetAPIForAPIVersionAndResource(\n\t\t\tattachmentKind.APIVersion,\n\t\t\tattachmentKind.Resource,\n\t\t)\n\t\tif attachmentAPI == nil {\n\t\t\tif glog.V(5) {\n\t\t\t\tglog.Warningf(\n\t\t\t\t\t\"Can't discover attachment api %s with version %s: Watch %s: %s\",\n\t\t\t\t\tattachmentKind.Resource,\n\t\t\t\t\tattachmentKind.APIVersion,\n\t\t\t\t\tcommon.DescObjectAsKey(watch),\n\t\t\t\t\tmgr,\n\t\t\t\t)\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\t\t// initialise this registry with this particular attachment resource\n\t\tattachmentRegistry.Init(\n\t\t\tattachmentKind.APIVersion,\n\t\t\tattachmentAPI.Kind,\n\t\t)\n\t\tfor _, attObj := range attachmentObjs {\n\t\t\tisMatch, err :=\n\t\t\t\tmgr.attachmentSelector.MatchAttachmentAgainstWatch(\n\t\t\t\t\tattObj,\n\t\t\t\t\twatch,\n\t\t\t\t)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, errors.Wrapf(\n\t\t\t\t\terr,\n\t\t\t\t\t\"Match failed for attachment %s against watch %s: %s\",\n\t\t\t\t\tcommon.DescObjectAsKey(attObj),\n\t\t\t\t\tcommon.DescObjectAsKey(watch),\n\t\t\t\t\tmgr,\n\t\t\t\t)\n\t\t\t}\n\t\t\tif !isMatch {\n\t\t\t\tglog.V(7).Infof(\n\t\t\t\t\t\"Selector doesn't match: Ignore attachment %s for watch %s: %s\",\n\t\t\t\t\tcommon.DescObjectAsKey(attObj),\n\t\t\t\t\tcommon.DescObjectAsKey(watch),\n\t\t\t\t\tmgr,\n\t\t\t\t)\n\t\t\t\t// Do not consider this attachment if it is not meant\n\t\t\t\t// to be\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tattachmentRegistry.Insert(attObj)\n\t\t}\n\t}\n\treturn attachmentRegistry, nil\n}", "func (*RoomBillDetail) Descriptor() ([]byte, []int) {\n\treturn file_roomBillDetailService_proto_rawDescGZIP(), []int{1}\n}", "func (*Amfpointer) Descriptor() ([]byte, []int) {\n\treturn file_e2sm_mho_go_v2_e2sm_v2_proto_rawDescGZIP(), []int{84}\n}", "func (*Contacts) Descriptor() ([]byte, []int) {\n\treturn file_API_proto_rawDescGZIP(), []int{5}\n}", "func (*CMsgPlayerRecentMatchInfo) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_common_proto_rawDescGZIP(), []int{51}\n}", "func (*MsgPic) Descriptor() ([]byte, []int) {\n\treturn file_objmsg_proto_rawDescGZIP(), []int{0}\n}", "func (*ListMatchesRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{62}\n}", "func (*Activation) Descriptor() ([]byte, []int) {\n\treturn file_spacemesh_v1_types_proto_rawDescGZIP(), []int{11}\n}", "func (*CMsgDOTABotDebugInfo_Bot) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_common_proto_rawDescGZIP(), []int{41, 0}\n}", "func (*EnterRoom) Descriptor() ([]byte, []int) {\n\treturn file_msgdata_proto_rawDescGZIP(), []int{12}\n}", "func (cs *cpuState) Framebuffer() []byte {\n\treturn cs.LCD.framebuffer[:]\n}", "func (*GetCommittedVersionedBlobArtifactParts) Descriptor() ([]byte, []int) {\n\treturn file_modeldb_versioning_VersioningService_proto_rawDescGZIP(), []int{38}\n}", "func (g I915Backend) ReadFramebufferCount(ctx context.Context, width, height int) (framebuffers int, e error) {\n\tf, err := os.Open(i915FramebufferFile)\n\tif err != nil {\n\t\treturn framebuffers, errors.Wrap(err, \"failed to open dri file\")\n\t}\n\ttext, err := ioutil.ReadAll(f)\n\tif err != nil {\n\t\treturn framebuffers, errors.Wrap(err, \"failed to read dri file\")\n\t}\n\tlines := strings.Split(string(text), \"\\n\")\n\tfor _, line := range lines {\n\t\t// The line we're looking for looks like \"user size: 1920 x 1080,...\"\n\t\tvar fbWidth, fbHeight int\n\t\tif _, err := fmt.Sscanf(line, \"user size: %d x %d\", &fbWidth, &fbHeight); err != nil {\n\t\t\tcontinue\n\t\t}\n\t\tif fbWidth == width && fbHeight == height {\n\t\t\tframebuffers++\n\t\t}\n\t}\n\treturn\n}", "func (*Actor) Descriptor() ([]byte, []int) {\n\treturn file_actor_proto_rawDescGZIP(), []int{0}\n}", "func (*ArticlePhoto) Descriptor() ([]byte, []int) {\n\treturn file_contents_v1_news_photo_proto_rawDescGZIP(), []int{0}\n}", "func (*CMsgProfileResponse_MatchInfo) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{276, 1}\n}", "func IsFramebuffer(framebuffer uint32) bool {\n ret := C.glowIsFramebuffer(gpIsFramebuffer, (C.GLuint)(framebuffer))\n return ret == TRUE\n}", "func (*BdInformation) Descriptor() ([]byte, []int) {\n\treturn file_response_proto_rawDescGZIP(), []int{5}\n}", "func GetAttachmentData() []*types.Attachment {\n\treturn []*types.Attachment{\n\t\t{\n\t\t\tID: \"fakeID0\",\n\t\t\tName: \"fakeName0\",\n\t\t\tUploadURL: \"fakeUploadURL0\",\n\t\t\tDownloadURL: \"fakeDownloadURL0\",\n\t\t\tUploaded: true,\n\t\t},\n\t\t{\n\t\t\tID: \"fakeID1\",\n\t\t\tName: \"fakeName1\",\n\t\t\tUploadURL: \"fakeUploadURL1\",\n\t\t\tDownloadURL: \"fakeDownloadURL1\",\n\t\t\tUploaded: false,\n\t\t},\n\t}\n}", "func (ctrl Attachment) List(ctx context.Context, r *request.AttachmentList) (interface{}, error) {\n\tif !auth.GetIdentityFromContext(ctx).Valid() {\n\t\treturn nil, errors.New(\"Unauthorized\")\n\t}\n\n\tf := types.AttachmentFilter{\n\t\tNamespaceID: r.NamespaceID,\n\t\tKind: r.Kind,\n\t\tModuleID: r.ModuleID,\n\t\tRecordID: r.RecordID,\n\t\tFieldName: r.FieldName,\n\t\t// Filter: r.Filter,\n\t\tPerPage: r.PerPage,\n\t\tPage: r.Page,\n\t\t// Sort: r.Sort,\n\t}\n\n\tset, filter, err := ctrl.attachment.With(ctx).Find(f)\n\treturn ctrl.makeFilterPayload(ctx, set, filter, err)\n}", "func (*Content_PhotoContent) Descriptor() ([]byte, []int) {\n\treturn file_chat_v1_messages_proto_rawDescGZIP(), []int{6, 3}\n}", "func (f *FileImage) getDescriptor(fns ...DescriptorSelectorFunc) (*rawDescriptor, error) {\n\tvar d *rawDescriptor\n\n\terr := f.withDescriptors(multiSelectorFunc(fns...), func(found *rawDescriptor) error {\n\t\tif d != nil {\n\t\t\treturn ErrMultipleObjectsFound\n\t\t}\n\t\td = found\n\t\treturn nil\n\t})\n\n\tif err == nil && d == nil {\n\t\terr = ErrObjectNotFound\n\t}\n\n\treturn d, err\n}", "func (m *ChatMessage) GetAttachments()([]ChatMessageAttachmentable) {\n return m.attachments\n}", "func (*MarketSnapshot) Descriptor() ([]byte, []int) {\n\treturn file_openfeed_proto_rawDescGZIP(), []int{8}\n}", "func (*CMsgGameOverlayTexturePaint) Descriptor() ([]byte, []int) {\n\treturn file_steam_htmlmessages_proto_rawDescGZIP(), []int{72}\n}", "func (*GetPhotoSequenceRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_streetview_publish_v1_rpcmessages_proto_rawDescGZIP(), []int{13}\n}", "func (*Cube) Descriptor() ([]byte, []int) {\n\treturn file_msgdata_proto_rawDescGZIP(), []int{21}\n}", "func (*Object) Descriptor() ([]byte, []int) {\n\treturn file_object_proto_rawDescGZIP(), []int{1}\n}", "func (*MultiFactor) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{166}\n}", "func (*Minithumbnail) Descriptor() ([]byte, []int) {\n\treturn file_chat_v1_messages_proto_rawDescGZIP(), []int{3}\n}", "func (*FetchMatchesRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_backend_proto_rawDescGZIP(), []int{1}\n}", "func (*Contact) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{3}\n}", "func GetDownloadAttachmentData() map[string]string {\n\treturn map[string]string{\n\t\t\"fakeEndpoint\": \"/blueprint/attachments/fakeID1\",\n\t\t\"fakeAttachmentDir\": \"/tmp/fakeFolderID1/attachments\",\n\t}\n}", "func (*ActivationId) Descriptor() ([]byte, []int) {\n\treturn file_spacemesh_v1_types_proto_rawDescGZIP(), []int{5}\n}", "func (f *Framebuffer) Renderbuffer(attachment gfx.FramebufferAttachment, buf gfx.Renderbuffer) {\n\tf.useState()\n\tf.ctx.O.Call(\n\t\t\"framebufferTexture2D\",\n\t\tf.ctx.FRAMEBUFFER,\n\t\tf.ctx.Enums[int(attachment)],\n\t\tf.ctx.RENDERBUFFER,\n\t\tbuf.Object().(*js.Object),\n\t\t0,\n\t)\n}", "func (*Room) Descriptor() ([]byte, []int) {\n\treturn file_chat_chat_proto_rawDescGZIP(), []int{0}\n}", "func (*MultiFactor) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{30}\n}", "func (*RecordingResult) Descriptor() ([]byte, []int) {\n\treturn file_livekit_webhook_proto_rawDescGZIP(), []int{1}\n}", "func (*GetDBInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_threads_proto_rawDescGZIP(), []int{9}\n}", "func (*DetailMovieRequest) Descriptor() ([]byte, []int) {\n\treturn file_src_search_proto_rawDescGZIP(), []int{3}\n}", "func (*RequestChatHistory) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{4}\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n C.glowFramebufferRenderbuffer(gpFramebufferRenderbuffer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func (*SocialMedia) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{4}\n}", "func (*GPU) Descriptor() ([]byte, []int) {\n\treturn file_proto_processor_message_proto_rawDescGZIP(), []int{1}\n}", "func (*CMsgDOTAPlayerMatchHistory) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{3}\n}", "func (*StorageObjects) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{83}\n}" ]
[ "0.727336", "0.58040345", "0.56897146", "0.5609355", "0.55586106", "0.5533713", "0.55108", "0.54928094", "0.5461061", "0.54438823", "0.5428382", "0.53778803", "0.5363267", "0.53584564", "0.5322047", "0.5289055", "0.5289055", "0.5284001", "0.5282446", "0.52625936", "0.5261093", "0.5235845", "0.52342075", "0.52342075", "0.5216374", "0.52078617", "0.5180452", "0.5173741", "0.5162058", "0.5155989", "0.5150998", "0.5136986", "0.5121673", "0.511198", "0.5110276", "0.51097834", "0.51007926", "0.50961757", "0.50867414", "0.5083055", "0.5077285", "0.5069603", "0.50629926", "0.50551164", "0.5048178", "0.5040791", "0.50251514", "0.50235194", "0.5017406", "0.50131994", "0.5004638", "0.49954572", "0.49916172", "0.4986372", "0.498554", "0.49786833", "0.49778056", "0.496707", "0.49624926", "0.49596897", "0.49570507", "0.4956907", "0.49448174", "0.49418053", "0.49364826", "0.49345282", "0.493369", "0.49321437", "0.4931656", "0.49277097", "0.49276605", "0.49274448", "0.49244782", "0.49244776", "0.4919011", "0.49149555", "0.491075", "0.49105784", "0.49078426", "0.49073887", "0.49061188", "0.49043027", "0.4896269", "0.48948488", "0.48932672", "0.48931912", "0.48874488", "0.48869085", "0.4885724", "0.48850536", "0.48821184", "0.48809907", "0.48805612", "0.48666033", "0.48652834", "0.4858953", "0.48578247", "0.4851948", "0.48458135" ]
0.54068834
12
query a named parameter of a framebuffer object
func GetNamedFramebufferParameteriv(framebuffer uint32, pname uint32, param *int32) { C.glowGetNamedFramebufferParameteriv(gpGetNamedFramebufferParameteriv, (C.GLuint)(framebuffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NamedFramebufferParameteri(framebuffer uint32, pname uint32, param int32) {\n\tsyscall.Syscall(gpNamedFramebufferParameteri, 3, uintptr(framebuffer), uintptr(pname), uintptr(param))\n}", "func NamedFramebufferParameteri(framebuffer uint32, pname uint32, param int32) {\n\tC.glowNamedFramebufferParameteri(gpNamedFramebufferParameteri, (C.GLuint)(framebuffer), (C.GLenum)(pname), (C.GLint)(param))\n}", "func NamedFramebufferParameteri(framebuffer uint32, pname uint32, param int32) {\n\tC.glowNamedFramebufferParameteri(gpNamedFramebufferParameteri, (C.GLuint)(framebuffer), (C.GLenum)(pname), (C.GLint)(param))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tsyscall.Syscall(gpNamedFramebufferReadBuffer, 2, uintptr(framebuffer), uintptr(src), 0)\n}", "func FramebufferParameteri(target uint32, pname uint32, param int32) {\n C.glowFramebufferParameteri(gpFramebufferParameteri, (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tC.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tC.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src))\n}", "func FramebufferParameteri(target uint32, pname uint32, param int32) {\n\tsyscall.Syscall(gpFramebufferParameteri, 3, uintptr(target), uintptr(pname), uintptr(param))\n}", "func GetNamedFramebufferParameteriv(framebuffer uint32, pname uint32, param *int32) {\n\tsyscall.Syscall(gpGetNamedFramebufferParameteriv, 3, uintptr(framebuffer), uintptr(pname), uintptr(unsafe.Pointer(param)))\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tsyscall.Syscall(gpNamedFramebufferDrawBuffer, 2, uintptr(framebuffer), uintptr(buf), 0)\n}", "func FramebufferParameteri(target uint32, pname uint32, param int32) {\n\tC.glowFramebufferParameteri(gpFramebufferParameteri, (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param))\n}", "func FramebufferParameteri(target uint32, pname uint32, param int32) {\n\tC.glowFramebufferParameteri(gpFramebufferParameteri, (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param))\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tC.glowNamedFramebufferDrawBuffer(gpNamedFramebufferDrawBuffer, (C.GLuint)(framebuffer), (C.GLenum)(buf))\n}", "func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) {\n\tC.glowNamedFramebufferDrawBuffer(gpNamedFramebufferDrawBuffer, (C.GLuint)(framebuffer), (C.GLenum)(buf))\n}", "func TexParameterf(target, pname Enum, param float32) {\n\tgl.TexParameterf(uint32(target), uint32(pname), param)\n}", "func GetRenderbufferParameteri(target, pname Enum) int {\n\tlog.Println(\"GetRenderbufferParameteri: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)\")\n\tvar result int32\n\tgl.GetRenderbufferParameteriv(uint32(target), uint32(pname), &result)\n\treturn int(result)\n}", "func GetFramebufferAttachmentParameteri(target, attachment, pname Enum) int {\n\tlog.Println(\"GetFramebufferAttachmentParameteri: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)\")\n\tvar param int32\n\tgl.GetFramebufferAttachmentParameteriv(uint32(target), uint32(attachment), uint32(pname), &param)\n\treturn int(param)\n}", "func TexParameterf(target Enum, pname Enum, param Float) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcpname, _ := (C.GLenum)(pname), cgoAllocsUnknown\n\tcparam, _ := (C.GLfloat)(param), cgoAllocsUnknown\n\tC.glTexParameterf(ctarget, cpname, cparam)\n}", "func BlitNamedFramebuffer(readFramebuffer uint32, drawFramebuffer uint32, srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tsyscall.Syscall12(gpBlitNamedFramebuffer, 12, uintptr(readFramebuffer), uintptr(drawFramebuffer), uintptr(srcX0), uintptr(srcY0), uintptr(srcX1), uintptr(srcY1), uintptr(dstX0), uintptr(dstY0), uintptr(dstX1), uintptr(dstY1), uintptr(mask), uintptr(filter))\n}", "func (p *Program) getParameter(param uint32) int {\n\tvar v int32\n\tgl.GetProgramiv(uint32(p.glHandle), param, &v)\n\treturn int(v)\n}", "func NamedFramebufferRenderbuffer(framebuffer uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tsyscall.Syscall6(gpNamedFramebufferRenderbuffer, 4, uintptr(framebuffer), uintptr(attachment), uintptr(renderbuffertarget), uintptr(renderbuffer), 0, 0)\n}", "func Param(ctx context.Context, name string) string {\n\treturn Params(ctx).ByName(name)\n}", "func (native *OpenGL) TexParameterf(target uint32, pname uint32, param float32) {\n\tgl.TexParameterf(target, pname, param)\n}", "func TexParameterf(target, pname GLEnum, param float32) {\n\tgl.TexParameterf(uint32(target), uint32(pname), param)\n}", "func GetNamedFramebufferAttachmentParameteriv(framebuffer uint32, attachment uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetNamedFramebufferAttachmentParameteriv, 4, uintptr(framebuffer), uintptr(attachment), uintptr(pname), uintptr(unsafe.Pointer(params)), 0, 0)\n}", "func BlitNamedFramebuffer(readFramebuffer uint32, drawFramebuffer uint32, srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tC.glowBlitNamedFramebuffer(gpBlitNamedFramebuffer, (C.GLuint)(readFramebuffer), (C.GLuint)(drawFramebuffer), (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func BlitNamedFramebuffer(readFramebuffer uint32, drawFramebuffer uint32, srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n\tC.glowBlitNamedFramebuffer(gpBlitNamedFramebuffer, (C.GLuint)(readFramebuffer), (C.GLuint)(drawFramebuffer), (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}", "func queryfb(device string) (uint16, uint16, error) {\n\tvar fbinfo C.struct_fb_var_screeninfo\n\n\tif C.query_fb(C.CString(device), &fbinfo) != 0 {\n\t\treturn 0, 0, fmt.Errorf(\"%s: permission denied\")\n\t}\n\n\treturn uint16(fbinfo.xres), uint16(fbinfo.yres), nil\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n C.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func QueryPbufferEXT(hPbuffer unsafe.Pointer, iAttribute unsafe.Pointer, piValue unsafe.Pointer) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall(gpQueryPbufferEXT, 3, uintptr(hPbuffer), uintptr(iAttribute), uintptr(piValue))\n\treturn (unsafe.Pointer)(ret)\n}", "func QueryPbufferARB(hPbuffer unsafe.Pointer, iAttribute unsafe.Pointer, piValue unsafe.Pointer) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall(gpQueryPbufferARB, 3, uintptr(hPbuffer), uintptr(iAttribute), uintptr(piValue))\n\treturn (unsafe.Pointer)(ret)\n}", "func getParam(memory []int, ip int, rb int, mode ParamMode) int {\n\tswitch mode {\n\tcase POSITION:\n\t\treturn memory[memory[ip]]\n\tcase IMMEDIATE:\n\t\treturn memory[ip]\n\tcase RELATIVE:\n\t\treturn memory[rb+memory[ip]]\n\tdefault:\n\t\tpanic(fmt.Errorf(\"Unknown parameter mode: %d\", mode))\n\t}\n\treturn 0\n}", "func NamedFramebufferDrawBuffers(framebuffer uint32, n int32, bufs *uint32) {\n\tsyscall.Syscall(gpNamedFramebufferDrawBuffers, 3, uintptr(framebuffer), uintptr(n), uintptr(unsafe.Pointer(bufs)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (s *BaseEvent) ExistsParam( name string ) (bool) {\n _,ok:=s.execParams[name]\n return ok\n}", "func GetNamedRenderbufferParameteriv(renderbuffer uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetNamedRenderbufferParameteriv, 3, uintptr(renderbuffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func BindFragDataLocation(program uint32, color uint32, name *int8) {\n C.glowBindFragDataLocation(gpBindFragDataLocation, (C.GLuint)(program), (C.GLuint)(color), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func (ctx *Context) BizParam(key string) string {\r\n\tvar value string\r\n\tvalue = ctx.pathParams.ByName(key)\r\n\tif len(value) > 0 {\r\n\t\treturn value\r\n\t}\r\n\tif ctx.R.Form == nil {\r\n\t\tctx.R.ParseMultipartForm(ctx.frame.config.multipartMaxMemory)\r\n\t}\r\n\treturn ctx.R.FormValue(key)\r\n}", "func GetNamedFramebufferAttachmentParameteriv(framebuffer uint32, attachment uint32, pname uint32, params *int32) {\n\tC.glowGetNamedFramebufferAttachmentParameteriv(gpGetNamedFramebufferAttachmentParameteriv, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetNamedFramebufferAttachmentParameteriv(framebuffer uint32, attachment uint32, pname uint32, params *int32) {\n\tC.glowGetNamedFramebufferAttachmentParameteriv(gpGetNamedFramebufferAttachmentParameteriv, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func BindFragDataLocationIndexed(program uint32, colorNumber uint32, index uint32, name *int8) {\n C.glowBindFragDataLocationIndexed(gpBindFragDataLocationIndexed, (C.GLuint)(program), (C.GLuint)(colorNumber), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (u *URL) QueryParam(name string) string {\n\tif u.query == nil {\n\t\tu.query = u.Query()\n\t}\n\treturn u.query.Get(name)\n}", "func GetParam(d []*commands.Data, name string) *commands.Data {\n\tfor _, element := range d {\n\t\tif strings.Compare(element.Name, name) == 0 {\n\t\t\treturn element\n\t\t}\n\t}\n\treturn nil\n}", "func (ctx *Context) QueryParam(key string) string {\r\n\tif ctx.queryParams == nil {\r\n\t\tctx.queryParams = ctx.R.URL.Query()\r\n\t}\r\n\treturn ctx.queryParams.Get(key)\r\n}", "func (ctx *Context) Param(name string) string {\n\treturn ctx.PathParams.ByName(name)\n}", "func (c *Context) Param(name string) string {\n\tfor i, n := range c.pnames {\n\t\tif n == name {\n\t\t\treturn c.pvalues[i]\n\t\t}\n\t}\n\treturn \"\"\n}", "func NamedFramebufferRenderbuffer(framebuffer uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tC.glowNamedFramebufferRenderbuffer(gpNamedFramebufferRenderbuffer, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func NamedFramebufferRenderbuffer(framebuffer uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tC.glowNamedFramebufferRenderbuffer(gpNamedFramebufferRenderbuffer, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func (gl *WebGL) TexParameterf(target GLEnum, param GLEnum, value float64) {\n\tgl.context.Call(\"texParameterf\", target, param, value)\n}", "func (c *Context) Param(name string) string {\n\treturn c.Params.Get(name)\n}", "func GetBufferParameteri(target, pname Enum) int {\n\tvar params int32\n\tgl.GetBufferParameteriv(uint32(target), uint32(pname), &params)\n\treturn int(params)\n}", "func BoundParam(ctx context.Context, name string) string {\n\treturn pat.Param(ctx, name)\n}", "func (c *Ctx) Param(name string) string {\n\n\tfor _, entry := range c.params {\n\t\tif entry.Key == name {\n\t\t\treturn entry.Value\n\t\t}\n\t}\n\n\treturn blank\n}", "func (c *C) Param(name string) string {\n\treturn c.params.ByName(name)\n}", "func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) {\n\tC.glowGetNamedBufferPointerv(gpGetNamedBufferPointerv, (C.GLuint)(buffer), (C.GLenum)(pname), params)\n}", "func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) {\n\tC.glowGetNamedBufferPointerv(gpGetNamedBufferPointerv, (C.GLuint)(buffer), (C.GLenum)(pname), params)\n}", "func NamedFramebufferDrawBuffers(framebuffer uint32, n int32, bufs *uint32) {\n\tC.glowNamedFramebufferDrawBuffers(gpNamedFramebufferDrawBuffers, (C.GLuint)(framebuffer), (C.GLsizei)(n), (*C.GLenum)(unsafe.Pointer(bufs)))\n}", "func NamedFramebufferDrawBuffers(framebuffer uint32, n int32, bufs *uint32) {\n\tC.glowNamedFramebufferDrawBuffers(gpNamedFramebufferDrawBuffers, (C.GLuint)(framebuffer), (C.GLsizei)(n), (*C.GLenum)(unsafe.Pointer(bufs)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (handler Handler) GetParameter(r *http.Request, key string) string {\n\treturn r.URL.Query().Get(key)\n}", "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetNamedRenderbufferParameteriv(renderbuffer uint32, pname uint32, params *int32) {\n\tC.glowGetNamedRenderbufferParameteriv(gpGetNamedRenderbufferParameteriv, (C.GLuint)(renderbuffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetNamedRenderbufferParameteriv(renderbuffer uint32, pname uint32, params *int32) {\n\tC.glowGetNamedRenderbufferParameteriv(gpGetNamedRenderbufferParameteriv, (C.GLuint)(renderbuffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetMultisamplefv(pname uint32, index uint32, val *float32) {\n C.glowGetMultisamplefv(gpGetMultisamplefv, (C.GLenum)(pname), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(val)))\n}", "func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) {\n\tsyscall.Syscall(gpGetNamedBufferPointerv, 3, uintptr(buffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func TexParameterfv(target, pname Enum, params []float32) {\n\tgl.TexParameterfv(uint32(target), uint32(pname), &params[0])\n}", "func Param(c context.Context, key string) string {\n\treturn C(c).Param(key)\n}", "func (r *InboundRequest) QueryParam(key string) (string, bool) {\n values, ok := r.URL.Query()[key]\n\n if !ok || len(values) == 0 {\n return \"\", false\n }\n\n return values[0], true\n}", "func SelectBuffer(size int32, buffer *uint32) {\n C.glowSelectBuffer(gpSelectBuffer, (C.GLsizei)(size), (*C.GLuint)(unsafe.Pointer(buffer)))\n}", "func getQueryParam(c *gin.Context, paramName string) (int64, error) {\n\tp := c.Query(\"target\")\n\n\tid, err := strconv.ParseInt(p, 10, 0)\n\tif err != nil {\n\t\treturn 0, models.ValidationError{\n\t\t\t\"target\": ErrParseError,\n\t\t}\n\t}\n\n\treturn id, nil\n}", "func (c *Context)Param(key string) string{\n\tvalue, _ := c.Params[key]\n\treturn value\n}", "func IsQuery(id uint32) bool {\n ret := C.glowIsQuery(gpIsQuery, (C.GLuint)(id))\n return ret == TRUE\n}", "func ProgramUniform2fv(program uint32, location int32, count int32, value *float32) {\n C.glowProgramUniform2fv(gpProgramUniform2fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func TexParameteri(target, pname Enum, param int) {\n\tgl.TexParameteri(uint32(target), uint32(pname), int32(param))\n}", "func GetFramebufferParameteriv(target uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetFramebufferParameteriv, 3, uintptr(target), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func (r *ClusterHibernateRequest) Parameter(name string, value interface{}) *ClusterHibernateRequest {\n\thelpers.AddValue(&r.query, name, value)\n\treturn r\n}", "func GetParam(www http.ResponseWriter, req *http.Request, name string, dflt string) (rv string) {\n\tfound := false\n\tvalue := dflt\n\n\tmethod := req.Method\n\tif dbFlag[\"GetVal\"] {\n\t\tfmt.Printf(\"GetVar name=%s req.Method %s AT:%s\\n\", name, method, godebug.LF())\n\t}\n\tif method == \"POST\" || method == \"PUT\" {\n\t\tif str := req.PostFormValue(name); str != \"\" {\n\t\t\tvalue = str\n\t\t\tfound = true\n\t\t}\n\t} else if method == \"GET\" || method == \"DELETE\" {\n\t\tif dbFlag[\"GetVal\"] {\n\t\t\tfmt.Printf(\"AT:%s\\n\", godebug.LF())\n\t\t}\n\t\tqq := req.URL.Query()\n\t\tstrArr, ok := qq[name]\n\t\tif dbFlag[\"GetVal\"] {\n\t\t\tfmt.Printf(\"AT:%s strArr = %s ok = %v\\n\", godebug.LF(), godebug.SVar(strArr), ok)\n\t\t}\n\t\tif ok {\n\t\t\tif dbFlag[\"GetVal\"] {\n\t\t\t\tfmt.Printf(\"AT:%s\\n\", godebug.LF())\n\t\t\t}\n\t\t\tif len(strArr) > 0 {\n\t\t\t\tif dbFlag[\"GetVal\"] {\n\t\t\t\t\tfmt.Printf(\"AT:%s\\n\", godebug.LF())\n\t\t\t\t}\n\t\t\t\tvalue = strArr[0]\n\t\t\t\tfound = true\n\t\t\t} else {\n\t\t\t\tif dbFlag[\"GetVal\"] {\n\t\t\t\t\tfmt.Printf(\"AT:%s\\n\", godebug.LF())\n\t\t\t\t}\n\t\t\t\tfmt.Fprintf(os.Stderr, \"Multiple values for [%s]\\n\", name)\n\t\t\t\tfound = false\n\t\t\t}\n\t\t}\n\t}\n\tif found {\n\t\trv = value\n\t}\n\treturn\n}", "func (modes Modes) Param(position int) Mode {\n\tdigit := digitAt(int(modes), position)\n\treturn Mode(digit)\n}", "func (rc *Ctx) Param(name string) (string, error) {\n\tif rc.routeParams != nil {\n\t\trouteValue := rc.routeParams.Get(name)\n\t\tif len(routeValue) > 0 {\n\t\t\treturn routeValue, nil\n\t\t}\n\t}\n\tif rc.request != nil {\n\t\tif rc.request.URL != nil {\n\t\t\tqueryValue := rc.request.URL.Query().Get(name)\n\t\t\tif len(queryValue) > 0 {\n\t\t\t\treturn queryValue, nil\n\t\t\t}\n\t\t}\n\t\tif rc.request.Header != nil {\n\t\t\theaderValue := rc.request.Header.Get(name)\n\t\t\tif len(headerValue) > 0 {\n\t\t\t\treturn headerValue, nil\n\t\t\t}\n\t\t}\n\n\t\tformValue := rc.request.FormValue(name)\n\t\tif len(formValue) > 0 {\n\t\t\treturn formValue, nil\n\t\t}\n\n\t\tcookie, cookieErr := rc.request.Cookie(name)\n\t\tif cookieErr == nil && len(cookie.Value) != 0 {\n\t\t\treturn cookie.Value, nil\n\t\t}\n\t}\n\n\treturn \"\", newParameterMissingError(name)\n}", "func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) {\n\tC.glowGetNamedBufferSubData(gpGetNamedBufferSubData, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) {\n\tC.glowGetNamedBufferSubData(gpGetNamedBufferSubData, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func BindFramebuffer(target uint32, framebuffer uint32) {\n C.glowBindFramebuffer(gpBindFramebuffer, (C.GLenum)(target), (C.GLuint)(framebuffer))\n}", "func GetVertexAttribfv(index uint32, pname uint32, params *float32) {\n C.glowGetVertexAttribfv(gpGetVertexAttribfv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func (r *Request) GetParam(name string) string {\n if r.Params == nil || len(r.Params) == 0 {\n return \"\"\n }\n params, ok := r.Params[name]\n if !ok || len(params) == 0 {\n return \"\"\n }\n return params[0]\n}", "func getParameter(request *http.Request, parameterName string) string {\n\tquery := request.URL.Query()\n\treturn query[parameterName][0]\n}", "func TexParameterfv(target Enum, pname Enum, params []Float) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcpname, _ := (C.GLenum)(pname), cgoAllocsUnknown\n\tcparams, _ := (*C.GLfloat)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&params)).Data)), cgoAllocsUnknown\n\tC.glTexParameterfv(ctarget, cpname, cparams)\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tsyscall.Syscall(gpGetUniformfv, 3, uintptr(program), uintptr(location), uintptr(unsafe.Pointer(params)))\n}", "func (p *ctx) Param(key string) string {\n\tval, _ := p.ParamOk(key)\n\treturn val\n}", "func QueryParameterFor(name string, description string) Parameter {\n\treturn ParameterFor(Query, name, description)\n}", "func (API) GetFramebufferAttachmentInfo(state *api.State, thread uint64, attachment api.FramebufferAttachment) (width, height, index uint32, format *image.Format, err error) {\n\treturn 0, 0, 0, nil, fmt.Errorf(\"GVR does not support framebuffers\")\n}", "func GetFramebufferAttachmentParameteriv(target uint32, attachment uint32, pname uint32, params *int32) {\n C.glowGetFramebufferAttachmentParameteriv(gpGetFramebufferAttachmentParameteriv, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetRenderbufferParameteriv(target uint32, pname uint32, params *int32) {\n C.glowGetRenderbufferParameteriv(gpGetRenderbufferParameteriv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tC.glowGetNamedBufferParameteriv(gpGetNamedBufferParameteriv, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tC.glowGetNamedBufferParameteriv(gpGetNamedBufferParameteriv, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (t Texture3D) SetParameter(paramName uint32, param int32) {\n\tt.Bind()\n\tgl.TexParameteri(gl.TEXTURE_3D, paramName, param)\n\tt.Unbind()\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetNamedBufferParameteriv, 3, uintptr(buffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {\n C.glowBlitFramebuffer(gpBlitFramebuffer, (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter))\n}" ]
[ "0.6478004", "0.62313914", "0.62313914", "0.6140384", "0.61338913", "0.6049214", "0.6049214", "0.59782106", "0.5916969", "0.5688791", "0.55981827", "0.55981827", "0.55113024", "0.55113024", "0.5477257", "0.53902215", "0.5318795", "0.5309334", "0.53014034", "0.5290708", "0.52697134", "0.52582735", "0.52518916", "0.5242095", "0.52240974", "0.521424", "0.521424", "0.52097756", "0.5182899", "0.5177884", "0.5167916", "0.5162745", "0.51301146", "0.51198316", "0.51150113", "0.5111834", "0.51080245", "0.5091391", "0.50884736", "0.5017172", "0.5017172", "0.5002345", "0.4999189", "0.49981764", "0.4981746", "0.49801767", "0.4968753", "0.49660417", "0.49660417", "0.49650392", "0.4954128", "0.49392545", "0.49381313", "0.49379528", "0.49310413", "0.49271634", "0.49271634", "0.49247438", "0.49247438", "0.49217555", "0.49171978", "0.4915049", "0.49117154", "0.49117154", "0.4911357", "0.49073038", "0.48983356", "0.48943216", "0.4893231", "0.48744768", "0.48716837", "0.48651376", "0.48642263", "0.48612013", "0.48502806", "0.48420432", "0.48350888", "0.48316762", "0.48301178", "0.48231912", "0.48105898", "0.48105898", "0.47977751", "0.4794815", "0.47941694", "0.4791081", "0.4786707", "0.47863847", "0.47696555", "0.47637138", "0.47634664", "0.4763229", "0.47382277", "0.4736411", "0.47326025", "0.47326025", "0.47275493", "0.47244638", "0.4723339" ]
0.56525505
11
query a named parameter of a renderbuffer object
func GetNamedRenderbufferParameteriv(renderbuffer uint32, pname uint32, params *int32) { C.glowGetNamedRenderbufferParameteriv(gpGetNamedRenderbufferParameteriv, (C.GLuint)(renderbuffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func tmplQueryParam(viewArgs map[string]interface{}, key string) interface{} {\n\tparams := viewArgs[keyRequestParams].(*ahttp.Params)\n\treturn sanatizeValue(params.QueryValue(key))\n}", "func BoundParam(ctx context.Context, name string) string {\n\treturn pat.Param(ctx, name)\n}", "func (p *Program) getParameter(param uint32) int {\n\tvar v int32\n\tgl.GetProgramiv(uint32(p.glHandle), param, &v)\n\treturn int(v)\n}", "func (c *Context)Param(key string) string{\n\tvalue, _ := c.Params[key]\n\treturn value\n}", "func (handler Handler) GetParameter(r *http.Request, key string) string {\n\treturn r.URL.Query().Get(key)\n}", "func (hc *HTTPContext) GetParam(key string) string {\n\tparams := httprouter.ParamsFromContext(hc.R.Context())\n\treturn params.ByName(key)\n}", "func GetNamedRenderbufferParameteriv(renderbuffer uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetNamedRenderbufferParameteriv, 3, uintptr(renderbuffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func (ctx *Context) BizParam(key string) string {\r\n\tvar value string\r\n\tvalue = ctx.pathParams.ByName(key)\r\n\tif len(value) > 0 {\r\n\t\treturn value\r\n\t}\r\n\tif ctx.R.Form == nil {\r\n\t\tctx.R.ParseMultipartForm(ctx.frame.config.multipartMaxMemory)\r\n\t}\r\n\treturn ctx.R.FormValue(key)\r\n}", "func (ctx *Context) QueryParam(key string) string {\r\n\tif ctx.queryParams == nil {\r\n\t\tctx.queryParams = ctx.R.URL.Query()\r\n\t}\r\n\treturn ctx.queryParams.Get(key)\r\n}", "func Param(ctx context.Context, name string) string {\n\treturn Params(ctx).ByName(name)\n}", "func GetRenderbufferParameteri(target, pname Enum) int {\n\tlog.Println(\"GetRenderbufferParameteri: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)\")\n\tvar result int32\n\tgl.GetRenderbufferParameteriv(uint32(target), uint32(pname), &result)\n\treturn int(result)\n}", "func (r *Request) GetParam(name string) string {\n if r.Params == nil || len(r.Params) == 0 {\n return \"\"\n }\n params, ok := r.Params[name]\n if !ok || len(params) == 0 {\n return \"\"\n }\n return params[0]\n}", "func getParameter(request *http.Request, parameterName string) string {\n\tquery := request.URL.Query()\n\treturn query[parameterName][0]\n}", "func Param(c context.Context, key string) string {\n\treturn C(c).Param(key)\n}", "func GetParam(name string, r *http.Request, index ...int) string {\n\tif params := r.Context().Value(ParamsKey); params != nil {\n\t\tparams := params.(Params)\n\t\tif name != \"*\" {\n\t\t\tname = \":\" + name\n\t\t}\n\t\tif param := params[name]; param != nil {\n\t\t\tswitch param := param.(type) {\n\t\t\tcase []string:\n\t\t\t\tif len(index) > 0 {\n\t\t\t\t\tif index[0] < len(param) {\n\t\t\t\t\t\treturn param[index[0]]\n\t\t\t\t\t}\n\t\t\t\t\treturn \"\"\n\t\t\t\t}\n\t\t\t\treturn param[0]\n\t\t\tdefault:\n\t\t\t\treturn param.(string)\n\t\t\t}\n\t\t}\n\t}\n\treturn \"\"\n}", "func (c *Context) Param(name string) string {\n\tfor i, n := range c.pnames {\n\t\tif n == name {\n\t\t\treturn c.pvalues[i]\n\t\t}\n\t}\n\treturn \"\"\n}", "func (c *Context) Param(name string) string {\n\treturn c.Params.Get(name)\n}", "func (c *Control) Get(name string) string {\n\tfor idx := range c.params {\n\t\tif c.params[idx].Key == name {\n\t\t\treturn c.params[idx].Value\n\t\t}\n\t}\n\n\treturn c.Request.URL.Query().Get(name)\n}", "func (c *C) Param(name string) string {\n\treturn c.params.ByName(name)\n}", "func getParam(memory []int, ip int, rb int, mode ParamMode) int {\n\tswitch mode {\n\tcase POSITION:\n\t\treturn memory[memory[ip]]\n\tcase IMMEDIATE:\n\t\treturn memory[ip]\n\tcase RELATIVE:\n\t\treturn memory[rb+memory[ip]]\n\tdefault:\n\t\tpanic(fmt.Errorf(\"Unknown parameter mode: %d\", mode))\n\t}\n\treturn 0\n}", "func QueryParameterFor(name string, description string) Parameter {\n\treturn ParameterFor(Query, name, description)\n}", "func GetNamedBufferParameteri64v(buffer uint32, pname uint32, params *int64) {\n\tsyscall.Syscall(gpGetNamedBufferParameteri64v, 3, uintptr(buffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func (r *InboundRequest) QueryParam(key string) (string, bool) {\n values, ok := r.URL.Query()[key]\n\n if !ok || len(values) == 0 {\n return \"\", false\n }\n\n return values[0], true\n}", "func GetParam(d []*commands.Data, name string) *commands.Data {\n\tfor _, element := range d {\n\t\tif strings.Compare(element.Name, name) == 0 {\n\t\t\treturn element\n\t\t}\n\t}\n\treturn nil\n}", "func getName(c *gin.Context) {\n firstname := c.DefaultQuery(\"firstname\", \"Guest\")\n lastName := c.Query(\"lastname\") //shortcut for: c.Request.URL.Query().Get(\"lastname\")\n c.String(http.StatusOK, \"hello %s %s\", firstname, lastName)\n}", "func (c *Context) Param(key string) string {\n\tvalue, _ := c.Params[key]\n\treturn value\n}", "func getQueryParam(c *gin.Context, paramName string) (int64, error) {\n\tp := c.Query(\"target\")\n\n\tid, err := strconv.ParseInt(p, 10, 0)\n\tif err != nil {\n\t\treturn 0, models.ValidationError{\n\t\t\t\"target\": ErrParseError,\n\t\t}\n\t}\n\n\treturn id, nil\n}", "func GetBufferParameteri(target, pname Enum) int {\n\tvar params int32\n\tgl.GetBufferParameteriv(uint32(target), uint32(pname), &params)\n\treturn int(params)\n}", "func TexParam(wrap TextureWrap, filter TextureFilter) TextureParameters {\n\treturn TextureParameters{wrap, wrap, filter, filter}\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tsyscall.Syscall(gpNamedFramebufferReadBuffer, 2, uintptr(framebuffer), uintptr(src), 0)\n}", "func (rc *Ctx) Param(name string) (string, error) {\n\tif rc.routeParams != nil {\n\t\trouteValue := rc.routeParams.Get(name)\n\t\tif len(routeValue) > 0 {\n\t\t\treturn routeValue, nil\n\t\t}\n\t}\n\tif rc.request != nil {\n\t\tif rc.request.URL != nil {\n\t\t\tqueryValue := rc.request.URL.Query().Get(name)\n\t\t\tif len(queryValue) > 0 {\n\t\t\t\treturn queryValue, nil\n\t\t\t}\n\t\t}\n\t\tif rc.request.Header != nil {\n\t\t\theaderValue := rc.request.Header.Get(name)\n\t\t\tif len(headerValue) > 0 {\n\t\t\t\treturn headerValue, nil\n\t\t\t}\n\t\t}\n\n\t\tformValue := rc.request.FormValue(name)\n\t\tif len(formValue) > 0 {\n\t\t\treturn formValue, nil\n\t\t}\n\n\t\tcookie, cookieErr := rc.request.Cookie(name)\n\t\tif cookieErr == nil && len(cookie.Value) != 0 {\n\t\t\treturn cookie.Value, nil\n\t\t}\n\t}\n\n\treturn \"\", newParameterMissingError(name)\n}", "func (ctx *Context) Param(key string) string {\r\n\tvar value string\r\n\tvalue = ctx.BizParam(key)\r\n\tif len(value) > 0 {\r\n\t\treturn value\r\n\t}\r\n\tvalue = ctx.R.Header.Get(key)\r\n\tif len(value) > 0 {\r\n\t\treturn value\r\n\t}\r\n\tif cookie, err := ctx.R.Cookie(key); err != nil {\r\n\t\treturn cookie.Value\r\n\t}\r\n\treturn value\r\n}", "func GetParam(www http.ResponseWriter, req *http.Request, name string, dflt string) (rv string) {\n\tfound := false\n\tvalue := dflt\n\n\tmethod := req.Method\n\tif dbFlag[\"GetVal\"] {\n\t\tfmt.Printf(\"GetVar name=%s req.Method %s AT:%s\\n\", name, method, godebug.LF())\n\t}\n\tif method == \"POST\" || method == \"PUT\" {\n\t\tif str := req.PostFormValue(name); str != \"\" {\n\t\t\tvalue = str\n\t\t\tfound = true\n\t\t}\n\t} else if method == \"GET\" || method == \"DELETE\" {\n\t\tif dbFlag[\"GetVal\"] {\n\t\t\tfmt.Printf(\"AT:%s\\n\", godebug.LF())\n\t\t}\n\t\tqq := req.URL.Query()\n\t\tstrArr, ok := qq[name]\n\t\tif dbFlag[\"GetVal\"] {\n\t\t\tfmt.Printf(\"AT:%s strArr = %s ok = %v\\n\", godebug.LF(), godebug.SVar(strArr), ok)\n\t\t}\n\t\tif ok {\n\t\t\tif dbFlag[\"GetVal\"] {\n\t\t\t\tfmt.Printf(\"AT:%s\\n\", godebug.LF())\n\t\t\t}\n\t\t\tif len(strArr) > 0 {\n\t\t\t\tif dbFlag[\"GetVal\"] {\n\t\t\t\t\tfmt.Printf(\"AT:%s\\n\", godebug.LF())\n\t\t\t\t}\n\t\t\t\tvalue = strArr[0]\n\t\t\t\tfound = true\n\t\t\t} else {\n\t\t\t\tif dbFlag[\"GetVal\"] {\n\t\t\t\t\tfmt.Printf(\"AT:%s\\n\", godebug.LF())\n\t\t\t\t}\n\t\t\t\tfmt.Fprintf(os.Stderr, \"Multiple values for [%s]\\n\", name)\n\t\t\t\tfound = false\n\t\t\t}\n\t\t}\n\t}\n\tif found {\n\t\trv = value\n\t}\n\treturn\n}", "func (c *Ctx) Param(name string) string {\n\n\tfor _, entry := range c.params {\n\t\tif entry.Key == name {\n\t\t\treturn entry.Value\n\t\t}\n\t}\n\n\treturn blank\n}", "func (options *Options) Param(pos int) interface{} {\n\tif len(options.params) > pos {\n\t\treturn options.params[pos]\n\t}\n\n\treturn nil\n}", "func GetQueryParam(r *http.Request, key string) string {\n\treturn r.URL.Query().Get(key)\n}", "func GetNamedBufferParameteri64v(buffer uint32, pname uint32, params *int64) {\n\tC.glowGetNamedBufferParameteri64v(gpGetNamedBufferParameteri64v, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint64)(unsafe.Pointer(params)))\n}", "func GetNamedBufferParameteri64v(buffer uint32, pname uint32, params *int64) {\n\tC.glowGetNamedBufferParameteri64v(gpGetNamedBufferParameteri64v, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint64)(unsafe.Pointer(params)))\n}", "func (s *BaseEvent) GetParamAsStr( name string ) (string,error) {\n if t,ok:=s.execParams[name]; ok {\n return t,nil\n } // if\n s.errString = fmt.Sprintf(\"GetParamAsStr execParams does not contain key:'%s'\",name)\n return \"\",s\n}", "func (am AuthManager) readParam(name string, ctx *Ctx) (output string) {\n\tif cookie := ctx.Cookie(name); cookie != nil {\n\t\toutput = cookie.Value\n\t}\n\treturn\n}", "func (p *ctx) Param(key string) string {\n\tval, _ := p.ParamOk(key)\n\treturn val\n}", "func (ctx *Context) Param(name string) string {\n\treturn ctx.PathParams.ByName(name)\n}", "func (c *Ctx) Param(k string) string {\n\treturn c.params[k]\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetNamedBufferParameteriv, 3, uintptr(buffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tC.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tC.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src))\n}", "func (c *Context) Query(key string) string {\n\treturn string(c.QueryArgs().Peek(key))\n}", "func NamedFramebufferParameteri(framebuffer uint32, pname uint32, param int32) {\n\tsyscall.Syscall(gpNamedFramebufferParameteri, 3, uintptr(framebuffer), uintptr(pname), uintptr(param))\n}", "func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) {\n\tC.glowGetNamedBufferSubData(gpGetNamedBufferSubData, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) {\n\tC.glowGetNamedBufferSubData(gpGetNamedBufferSubData, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func (p *HttpRequestParameterProvider) GetString(name string) string {\n\treturn p.URL.Query().Get(name)\n}", "func QueryPbufferEXT(hPbuffer unsafe.Pointer, iAttribute unsafe.Pointer, piValue unsafe.Pointer) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall(gpQueryPbufferEXT, 3, uintptr(hPbuffer), uintptr(iAttribute), uintptr(piValue))\n\treturn (unsafe.Pointer)(ret)\n}", "func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) {\n\tsyscall.Syscall(gpGetNamedBufferPointerv, 3, uintptr(buffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tC.glowGetNamedBufferParameteriv(gpGetNamedBufferParameteriv, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tC.glowGetNamedBufferParameteriv(gpGetNamedBufferParameteriv, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func query_param(query_data map[string][]string) *pagination.QueryParam {\n\tqp := new(pagination.QueryParam)\n\tif len(query_data[\"page\"]) > 0 {\n\t\tpage, err := strconv.Atoi(query_data[\"page\"][0])\n\t\tif err == nil {\n\t\t\tqp.Page = page\n\t\t}\n\t}\n\n\tif len(query_data[\"per_page\"]) > 0 {\n\t\tpage, err := strconv.Atoi(query_data[\"per_page\"][0])\n\t\tif err == nil {\n\t\t\tqp.Per_page = page\n\t\t}\n\t}\n\n\tif len(query_data[\"value\"]) > 0 {\n\t\tqp.Value = query_data[\"value\"][0]\n\t}\n\n\tif len(query_data[\"filter\"]) > 0 {\n\t\tqp.Filter, _ = strconv.ParseBool(query_data[\"filter\"][0])\n\t}\n\n\treturn qp\n}", "func (ctx *Context) Query(name string) string {\n\treturn ctx.QueryParams().Get(name)\n}", "func (c *Call) GetQueryParam(k string) string {\n\tu := c.req.URL\n\treturn u.Query().Get(k)\n}", "func Param(r *http.Request, key string) string {\n\tctx := r.Context()\n\tif p, ok := ctx.Value(paramKey).(map[string]string); ok {\n\t\treturn p[key]\n\t}\n\treturn \"\"\n}", "func QueryPbufferARB(hPbuffer unsafe.Pointer, iAttribute unsafe.Pointer, piValue unsafe.Pointer) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall(gpQueryPbufferARB, 3, uintptr(hPbuffer), uintptr(iAttribute), uintptr(piValue))\n\treturn (unsafe.Pointer)(ret)\n}", "func TexParameteri(target, pname Enum, param int) {\n\tgl.TexParameteri(uint32(target), uint32(pname), int32(param))\n}", "func (f *linkFrame) GetParamStr(k string) (str []byte, err error) {\n v, ok := f.param[k]\n if ok {\n // we got it\n var s []byte\n switch v.(type) {\n case []byte:\n s = v.([]byte)\n str = make([]byte, len(s))\n copy(str, s)\n break\n default:\n err = errors.New(\"param value \"+k+\" not bytes\")\n }\n } else {\n err = errors.New(\"params don't have \"+k)\n }\n return\n}", "func (ctx *Context) HeaderParam(key string) string {\r\n\treturn ctx.R.Header.Get(key)\r\n}", "func (cb *CacheBusters) AppendQueryParam(path string, name string) string {\n\ttoken := cb.get(path)\n\tif token == \"\" {\n\t\treturn path\n\t}\n\treturn path + \"?\" + name + \"=\" + token\n}", "func (u *URL) QueryParam(name string) string {\n\tif u.query == nil {\n\t\tu.query = u.Query()\n\t}\n\treturn u.query.Get(name)\n}", "func (p *MetricProvider) GetParam() event.MetricTemplate {\n\treturn p.template\n}", "func (rc *RemoteConfig) GetParam(key string, def string) string {\n\tparam, ok := rc.Params[key]\n\tif !ok {\n\t\treturn def\n\t}\n\treturn param\n}", "func (ctx *Context) PathParam(key string) string {\r\n\treturn ctx.pathParams.ByName(key)\r\n}", "func (d *DefaultContext) Param(key string) string {\n\treturn d.Params().Get(key)\n}", "func (input *BeegoInput) Query(key string) string {\n\tif val := input.Param(key); val != \"\" {\n\t\treturn val\n\t}\n\tif input.Context.Request.Form == nil {\n\t\tinput.dataLock.Lock()\n\t\tif input.Context.Request.Form == nil {\n\t\t\tinput.Context.Request.ParseForm()\n\t\t}\n\t\tinput.dataLock.Unlock()\n\t}\n\tinput.dataLock.RLock()\n\tdefer input.dataLock.RUnlock()\n\treturn input.Context.Request.Form.Get(key)\n}", "func (ctx *Context) URLParam(name string) string {\n\treturn ctx.urlParams[name]\n}", "func SelectBuffer(size int32, buffer *uint32) {\n C.glowSelectBuffer(gpSelectBuffer, (C.GLsizei)(size), (*C.GLuint)(unsafe.Pointer(buffer)))\n}", "func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) {\n\tC.glowGetNamedBufferPointerv(gpGetNamedBufferPointerv, (C.GLuint)(buffer), (C.GLenum)(pname), params)\n}", "func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) {\n\tC.glowGetNamedBufferPointerv(gpGetNamedBufferPointerv, (C.GLuint)(buffer), (C.GLenum)(pname), params)\n}", "func FramebufferParameteri(target uint32, pname uint32, param int32) {\n C.glowFramebufferParameteri(gpFramebufferParameteri, (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param))\n}", "func TexParameteri(target, pname GLEnum, param int32) {\n\tgl.TexParameteri(uint32(target), uint32(pname), param)\n}", "func (ctx *Context) Query(key string) string {\n\treturn ctx.Request.URL.Query().Get(key)\n}", "func NamedFramebufferParameteri(framebuffer uint32, pname uint32, param int32) {\n\tC.glowNamedFramebufferParameteri(gpNamedFramebufferParameteri, (C.GLuint)(framebuffer), (C.GLenum)(pname), (C.GLint)(param))\n}", "func NamedFramebufferParameteri(framebuffer uint32, pname uint32, param int32) {\n\tC.glowNamedFramebufferParameteri(gpNamedFramebufferParameteri, (C.GLuint)(framebuffer), (C.GLenum)(pname), (C.GLint)(param))\n}", "func (c *Context) Query(key string) string {\n\treturn c.Req.URL.Query().Get(key)\n}", "func FramebufferParameteri(target uint32, pname uint32, param int32) {\n\tsyscall.Syscall(gpFramebufferParameteri, 3, uintptr(target), uintptr(pname), uintptr(param))\n}", "func QueryStringVar(p *map[string]string, name string, value map[string]string, usage string) {\n\tEnvironment.QueryStringVar(p, name, value, usage)\n}", "func (debugging *debuggingOpenGL) TexParameteri(target uint32, pname uint32, param int32) {\n\tdebugging.recordEntry(\"TexParameteri\", target, pname, param)\n\tdebugging.gl.TexParameteri(target, pname, param)\n\tdebugging.recordExit(\"TexParameteri\")\n}", "func (c *CallRequest) PathParam(key string) string {\n\treturn c.Params[key]\n}", "func Query(req *http.Request, name string) string {\n\treturn req.URL.Query().Get(name)\n}", "func (ctx *Context) GetParam(key string) string {\n\treturn ctx.Params[key]\n}", "func (b RouteBuilder) ParameterNamed(name string) (p *Parameter) {\n\tfor _, each := range b.parameters {\n\t\tif each.Name == name {\n\t\t\treturn each\n\t\t}\n\t}\n\treturn p\n}", "func (ctx *serverRequestContextImpl) GetQueryParm(name string) string {\n\treturn ctx.req.URL.Query().Get(name)\n}", "func paramName(params *types.Tuple, pos int) string {\n\tname := params.At(pos).Name()\n\tif name == \"\" || name == \"_\" || paramRE.MatchString(name) {\n\t\tname = fmt.Sprintf(\"p%d\", pos)\n\t}\n\treturn name\n}", "func (ps Params) ByName(name string) (va string) {\n\tva, _ = ps.Get(name)\n\treturn\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (r *ManagedServiceGetRequest) Parameter(name string, value interface{}) *ManagedServiceGetRequest {\n\thelpers.AddValue(&r.query, name, value)\n\treturn r\n}", "func (r *Request) GetParam(name string) (interface{}, error) {\n\tval, ok := r.QueryResult.Parameters[name]\n\tif !ok {\n\t\treturn nil, errors.New(\"param not found\")\n\t}\n\treturn val, nil\n}", "func (ctx *RequestContext) QueryVar(v string) string {\n\tif ctx.queryValues == nil {\n\t\tctx.queryValues = ctx.Request.URL.Query()\n\t}\n\n\treturn ctx.queryValues.Get(v)\n}", "func TexParameterf(target, pname Enum, param float32) {\n\tgl.TexParameterf(uint32(target), uint32(pname), param)\n}", "func (config *Config) getRawParam(key string) interface{} {\n\tenvironment := os.Getenv(\"TEAM254_ENV\")\n\tif environment == \"\" {\n\t\tenvironment = \"dev\"\n\t}\n\n\t// Look in the environment-specific configs first.\n\tif _, ok := config.params[environment]; ok {\n\t\tvalue := config.params[environment][key]\n\t\tif value != nil {\n\t\t\treturn value\n\t\t}\n\t}\n\n\t// Look in the global configs.\n\tif _, ok := config.params[\"global\"]; ok {\n\t\tvalue := config.params[\"global\"][key]\n\t\tif value != nil {\n\t\t\treturn value\n\t\t}\n\t}\n\n\tlog.Fatalf(\"Error: No value found for config key '%s'.\", key)\n\treturn nil\n}", "func QueryParameterInt(c *gin.Context, name string) int64 {\n\tvalueArray := c.Request.URL.Query()[name]\n\tif valueArray == nil {\n\t\treturn 0\n\t}\n\n\tvalue, err := strconv.ParseInt(valueArray[0], 10, 64)\n\tif err != nil {\n\t\tc.JSON(axdb.RestStatusInvalid, map[string]string{})\n\t\treturn 0\n\t}\n\treturn value\n}", "func GetParam(args []string, key string) (string, error) {\n\tvar catched = false\n\tfor _, item := range args {\n\t\tif catched {\n\t\t\treturn item, nil\n\t\t}\n\t\tif item == key {\n\t\t\tcatched = true\n\t\t}\n\t}\n\treturn \"\", fmt.Errorf(\"%s value not found\", key)\n}", "func GetNamedFramebufferParameteriv(framebuffer uint32, pname uint32, param *int32) {\n\tsyscall.Syscall(gpGetNamedFramebufferParameteriv, 3, uintptr(framebuffer), uintptr(pname), uintptr(unsafe.Pointer(param)))\n}" ]
[ "0.5722602", "0.5634015", "0.56221366", "0.56104386", "0.5527982", "0.5471331", "0.54701203", "0.5464189", "0.54579765", "0.54560083", "0.54469216", "0.540972", "0.5361755", "0.53601706", "0.5351447", "0.5300994", "0.5297269", "0.5271588", "0.52710074", "0.5262035", "0.5250988", "0.5239558", "0.5231971", "0.5230657", "0.5224857", "0.52218926", "0.52190024", "0.5213621", "0.52120465", "0.5209361", "0.5199712", "0.51980585", "0.51756847", "0.5151559", "0.5141272", "0.5138205", "0.51381814", "0.51381814", "0.5137607", "0.5134527", "0.5119722", "0.51139945", "0.510965", "0.5103527", "0.50997555", "0.50997555", "0.50961834", "0.5093648", "0.5087337", "0.5087337", "0.5083755", "0.5082965", "0.5067873", "0.5055797", "0.5055797", "0.5046598", "0.5045516", "0.50391185", "0.50367975", "0.5035632", "0.50257146", "0.5013648", "0.4997772", "0.49814767", "0.49779394", "0.49691743", "0.49667996", "0.49604592", "0.4957371", "0.49540192", "0.49539578", "0.4950669", "0.4950457", "0.4950457", "0.49444556", "0.49377003", "0.49352866", "0.49351272", "0.49351272", "0.49246174", "0.49153197", "0.49042603", "0.48852533", "0.48782584", "0.4874101", "0.4869945", "0.48605925", "0.48602304", "0.48592037", "0.48554736", "0.48532167", "0.48477", "0.48317596", "0.4830098", "0.48222104", "0.48166612", "0.48092318", "0.4808696", "0.4808336" ]
0.52272105
25
retrieve the label of a named object identified within a namespace
func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *uint8) { C.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *uint8) {\n\tsyscall.Syscall6(gpGetObjectLabel, 5, uintptr(identifier), uintptr(name), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(label)), 0)\n}", "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *int8) {\n C.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func (obj *label) Name() string {\n\treturn obj.name\n}", "func GetObjectPtrLabel(ptr unsafe.Pointer, bufSize int32, length *int32, label *uint8) {\n\tsyscall.Syscall6(gpGetObjectPtrLabel, 4, uintptr(ptr), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(label)), 0, 0)\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) {\n\tsyscall.Syscall6(gpObjectLabel, 4, uintptr(identifier), uintptr(name), uintptr(length), uintptr(unsafe.Pointer(label)), 0, 0)\n}", "func (n Name) Label() *Label {\n\tif len(n) > 0 {\n\t\treturn n[0]\n\t}\n\treturn nil\n}", "func (obj *labelDeclaration) Name() string {\n\treturn obj.name\n}", "func GetObjectPtrLabel(ptr unsafe.Pointer, bufSize int32, length *int32, label *int8) {\n C.glowGetObjectPtrLabel(gpGetObjectPtrLabel, ptr, (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func label(r interface{}) string {\n\treturn strings.ToLower(migref.ToKind(r))\n}", "func GetObjectPtrLabel(ptr unsafe.Pointer, bufSize int32, length *int32, label *uint8) {\n\tC.glowGetObjectPtrLabel(gpGetObjectPtrLabel, ptr, (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func GetObjectPtrLabel(ptr unsafe.Pointer, bufSize int32, length *int32, label *uint8) {\n\tC.glowGetObjectPtrLabel(gpGetObjectPtrLabel, ptr, (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func (uem *UyuniEventMapper) Label() string {\n\tvalueOf := reflect.ValueOf(uem)\n\tif valueOf.Type().Kind() == reflect.Ptr {\n\t\treturn reflect.Indirect(valueOf).Type().Name()\n\t} else {\n\t\treturn valueOf.Type().Name()\n\t}\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *int8) {\n C.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func retrieveInventoryLabel(obj *unstructured.Unstructured) (string, error) {\n\tinventoryLabel, exists := obj.GetLabels()[common.InventoryLabel]\n\tif !exists {\n\t\treturn \"\", fmt.Errorf(\"inventory label does not exist for inventory object: %s\", common.InventoryLabel)\n\t}\n\treturn inventoryLabel, nil\n}", "func (nv *NetView) LabelByName(lab string) *gi3d.Text2D {\n\tvs := nv.Scene()\n\tlgp, err := vs.ChildByNameTry(\"Labels\", 1)\n\tif err != nil {\n\t\treturn nil\n\t}\n\ttxt, err := lgp.ChildByNameTry(lab, 0)\n\tif err != nil {\n\t\treturn nil\n\t}\n\treturn txt.(*gi3d.Text2D)\n}", "func (obj *languageLabelDeclaration) Name() string {\n\treturn obj.name\n}", "func (ls *Layers) ElemLabel(idx int) string {\n\treturn (*ls)[idx].Name()\n}", "func (api *objectAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ObjstoreV1().Object().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.Object\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleObjectEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) {\n\tC.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) {\n\tC.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func (api *bucketAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ObjstoreV1().Bucket().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.Bucket\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleBucketEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (o ResourceAnnotationOutput) Label() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v ResourceAnnotation) *string { return v.Label }).(pulumi.StringPtrOutput)\n}", "func (fxt *TestFixture) LabelByName(name string, spaceID ...uuid.UUID) *label.Label {\n\tfor _, l := range fxt.Labels {\n\t\tif l.Name == name && len(spaceID) > 0 && l.SpaceID == spaceID[0] {\n\t\t\treturn l\n\t\t} else if l.Name == name && len(spaceID) == 0 {\n\t\t\treturn l\n\t\t}\n\t}\n\treturn nil\n}", "func (api *nodeAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().Node().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.Node\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleNodeEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (o ResourceAnnotationPtrOutput) Label() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *ResourceAnnotation) *string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.Label\n\t}).(pulumi.StringPtrOutput)\n}", "func (api *snapshotrestoreAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().SnapshotRestore().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.SnapshotRestore\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleSnapshotRestoreEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (c *ContainerContext) Label(name string) string {\n\tif c.c.Labels == nil {\n\t\treturn \"\"\n\t}\n\treturn c.c.Labels[name]\n}", "func (m *Media) GetLabel()(*string) {\n return m.label\n}", "func (a *Agent) LabelFind(name string, label *Label) (err error) {\n\tspec := (&api.LabelSearchSpec{}).Init(name, 0)\n\tif err = a.pc.ExecuteApi(spec); err != nil {\n\t\treturn\n\t}\n\n\tif spec.Result.Total == 0 || spec.Result.List[0].Name != name {\n\t\terr = errors.ErrNotExist\n\t} else {\n\t\tli := spec.Result.List[0]\n\t\tlabel.Id = li.Id\n\t\tlabel.Name = li.Name\n\t\tlabel.Color = labelColorRevMap[li.Color]\n\t}\n\treturn\n}", "func (o NodeBalancerOutput) Label() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *NodeBalancer) pulumi.StringPtrOutput { return v.Label }).(pulumi.StringPtrOutput)\n}", "func (i *Instance) Label() string {\n\treturn i.Domain\n}", "func (o ResourceAnnotationResponsePtrOutput) Label() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *ResourceAnnotationResponse) *string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn &v.Label\n\t}).(pulumi.StringPtrOutput)\n}", "func (host *Server) getLabel(name string) string {\n\tif host.Labels == nil {\n\t\treturn \"\"\n\t}\n\treturn host.Labels[name]\n}", "func (l Label) Label() string { return string(l) }", "func (k *kubectlContext) Label(args ...string) (string, error) {\n\tout, err := k.do(append([]string{\"label\"}, args...)...)\n\treturn string(out), err\n}", "func (s *sound) label() string { return s.name }", "func (api *clusterAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().Cluster().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.Cluster\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleClusterEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (o *HyperflexVmSnapshotInfoAllOf) GetLabel() string {\n\tif o == nil || o.Label == nil {\n\t\tvar ret string\n\t\treturn ret\n\t}\n\treturn *o.Label\n}", "func namespaceNameFromObjectRef(or *v1.ObjectReference) types.NamespacedName {\n\treturn types.NamespacedName{\n\t\tNamespace: or.Namespace,\n\t\tName: or.Name,\n\t}\n}", "func GetLabel(key ResourceKey) string {\n\treturn Labels[key][CurrentLocale]\n}", "func (o *AddOn) GetLabel() (value string, ok bool) {\n\tok = o != nil && o.bitmap_&1024 != 0\n\tif ok {\n\t\tvalue = o.label\n\t}\n\treturn\n}", "func (o *WorkflowServiceItemDefinitionAllOf) GetLabel() string {\n\tif o == nil || o.Label == nil {\n\t\tvar ret string\n\t\treturn ret\n\t}\n\treturn *o.Label\n}", "func (o BoundingPolyOutput) Label() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v BoundingPoly) *string { return v.Label }).(pulumi.StringPtrOutput)\n}", "func (s *Store) TxLabel(ns walletdb.ReadBucket, txHash chainhash.Hash) (string,\n\terror) {\n\n\tlabel, err := FetchTxLabel(ns, txHash)\n\tswitch err {\n\t// If there are no saved labels yet (the bucket has not been created) or\n\t// there is not a label for this particular tx, we ignore the error.\n\tcase ErrNoLabelBucket:\n\t\tfallthrough\n\tcase ErrTxLabelNotFound:\n\t\treturn \"\", nil\n\n\t// If we found the label, we return it.\n\tcase nil:\n\t\treturn label, nil\n\t}\n\n\t// Otherwise, another error occurred while looking uo the label, so we\n\t// return it.\n\treturn \"\", err\n}", "func (api *dscprofileAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().DSCProfile().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.DSCProfile\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleDSCProfileEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (p *Provider) getLabel(application marathon.Application, label string, serviceName string) (string, bool) {\n\tif len(serviceName) > 0 {\n\t\tproperty := strings.TrimPrefix(label, types.LabelPrefix)\n\t\tif value, ok := getServiceProperty(application, serviceName, property); ok {\n\t\t\treturn value, true\n\t\t}\n\t}\n\tfor key, value := range *application.Labels {\n\t\tif key == label {\n\t\t\treturn value, true\n\t\t}\n\t}\n\treturn \"\", false\n}", "func getResourceLabelsForModel(namespace, name string) map[string]string {\n\tprojectId, _ := gce.ProjectID()\n\tlocation, _ := gce.InstanceAttributeValue(\"cluster-location\")\n\tlocation = strings.TrimSpace(location)\n\tclusterName, _ := gce.InstanceAttributeValue(\"cluster-name\")\n\tclusterName = strings.TrimSpace(clusterName)\n\treturn map[string]string{\n\t\t\"project_id\": projectId,\n\t\t\"location\": location,\n\t\t\"cluster_name\": clusterName,\n\t\t\"namespace_name\": namespace,\n\t\t\"pod_name\": name,\n\t}\n}", "func ObjectPtrLabel(ptr unsafe.Pointer, length int32, label *int8) {\n C.glowObjectPtrLabel(gpObjectPtrLabel, ptr, (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func (n *node) Label() string {\n\treturn n.lbl\n}", "func (p *Program) FindLabel(xp uint64) *Label {\n\ti := sort.Search(len(p.Labels), func(i int) bool {\n\t\treturn p.Labels[i].Offset >= xp\n\t})\n\tif i < len(p.Labels) && p.Labels[i].Offset == xp {\n\t\treturn p.Labels[i]\n\t}\n\treturn &Label{\n\t\tOffset: xp,\n\t\tPublic: false,\n\t\tName: fmt.Sprintf(\".ANON@%x\", xp),\n\t}\n}", "func k8sObjectName(doc *yaml.Node) (string, error) {\n\t// iterate over content\n\tit := yit.FromNode(doc.Content[0]).\n\t\t// Access nested 'metadata' attribute\n\t\tValuesForMap(\n\t\t\tyit.WithStringValue(\"metadata\"),\n\t\t\tyit.WithKind(yaml.MappingNode),\n\t\t).\n\t\t// Access nested 'name' attribute\n\t\tValuesForMap(\n\t\t\tyit.WithStringValue(\"name\"),\n\t\t\tyit.StringValue,\n\t\t)\n\n\t// no need to iterate in a loop here, the StringValue predicate\n\t// guarantees we get a single node\n\tnode, ok := it()\n\tif !ok || node.Value == \"\" {\n\t\treturn \"\", errors.New(\"missing metadata.name attribute\")\n\t}\n\n\treturn node.Value, nil\n}", "func (o *WorkflowCatalogServiceRequest) GetLabel() string {\n\tif o == nil || o.Label == nil {\n\t\tvar ret string\n\t\treturn ret\n\t}\n\treturn *o.Label\n}", "func (obj *instruction) Label() label_instruction.Instruction {\n\treturn obj.label\n}", "func GetObjNamespaceName(obj k8sruntime.Object) (result []interface{}) {\n\tmobj, ok := (obj).(metav1.Object)\n\tif !ok {\n\t\tresult = append(result, \"namespace\", \"unavailable\", \"name\", \"unavailable\")\n\n\t\treturn result\n\t}\n\n\tresult = append(result, \"namespace\", mobj.GetNamespace(), \"name\", mobj.GetName())\n\n\treturn result\n}", "func (c *Configuration) LabelFor(org, repo string) *TiCommunityLabel {\n\tfullName := fmt.Sprintf(\"%s/%s\", org, repo)\n\tfor _, label := range c.TiCommunityLabel {\n\t\tif !sets.NewString(label.Repos...).Has(fullName) {\n\t\t\tcontinue\n\t\t}\n\t\treturn &label\n\t}\n\t// If you don't find anything, loop again looking for an org config\n\tfor _, label := range c.TiCommunityLabel {\n\t\tif !sets.NewString(label.Repos...).Has(org) {\n\t\t\tcontinue\n\t\t}\n\t\treturn &label\n\t}\n\treturn &TiCommunityLabel{}\n}", "func GetObjKindNamespaceName(obj k8sruntime.Object) (result []interface{}) {\n\tif obj == nil {\n\t\tresult = append(result, \"obj\", \"nil\")\n\n\t\treturn result\n\t}\n\n\tgvk := obj.GetObjectKind().GroupVersionKind()\n\tresult = append(result, \"kind\", fmt.Sprintf(\"%s.%s\", gvk.Kind, gvk.Group))\n\tresult = append(result, GetObjNamespaceName(obj)...)\n\n\treturn result\n}", "func getLabelToMatchForKind(kind string) []string {\n\tswitch kind {\n\tcase \"apiservice\": // API Services are not namespaced\n\t\treturn []string{\"apiservice\"}\n\tcase \"customresourcedefinition\": // CRD are not namespaced\n\t\treturn []string{\"customresourcedefinition\"}\n\tcase \"job\": // job metrics use specific label\n\t\treturn []string{\"job_name\", \"namespace\"}\n\tcase \"node\": // persistent nodes are not namespaced\n\t\treturn []string{\"node\"}\n\tcase \"persistentvolume\": // persistent volumes are not namespaced\n\t\treturn []string{\"persistentvolume\"}\n\tdefault:\n\t\treturn []string{kind, \"namespace\"}\n\t}\n}", "func ObjectPtrLabel(ptr unsafe.Pointer, length int32, label *uint8) {\n\tsyscall.Syscall(gpObjectPtrLabel, 3, uintptr(ptr), uintptr(length), uintptr(unsafe.Pointer(label)))\n}", "func (o LookupLinkResultOutput) Label() pulumi.StringOutput {\n\treturn o.ApplyT(func(v LookupLinkResult) string { return v.Label }).(pulumi.StringOutput)\n}", "func (o *AddOn) Label() string {\n\tif o != nil && o.bitmap_&1024 != 0 {\n\t\treturn o.label\n\t}\n\treturn \"\"\n}", "func (o *WorkflowWorkflowDefinitionAllOf) GetLabel() string {\n\tif o == nil || o.Label == nil {\n\t\tvar ret string\n\t\treturn ret\n\t}\n\treturn *o.Label\n}", "func (l LabelDef) GetName() string {\n\treturn l.name\n}", "func (c *ContainerInfo) GetLabel(name string) (string, bool) {\n\tvalue, set := c.Data.Labels[name]\n\treturn value, set\n}", "func Label(name string) string {\n\treturn fmt.Sprintf(\"%s/%s\", LabelPrefix, name)\n}", "func getResourceName(object runtime.Object, kind string) string {\n\treflection := reflect.Indirect(reflect.ValueOf(object))\n\treturn reflection.FieldByName(\"ObjectMeta\").FieldByName(\"Name\").String()\n}", "func GetNameAndNamespace(object runtime.Object) (string, string, error) {\n\taccessor := meta.NewAccessor()\n\tname, err := accessor.Name(object)\n\tif err != nil {\n\t\treturn \"\", \"\", fmt.Errorf(\"failed to get name for object: %v\", err)\n\t}\n\tnamespace, err := accessor.Namespace(object)\n\tif err != nil {\n\t\treturn \"\", \"\", fmt.Errorf(\"failed to get namespace for object: %v\", err)\n\t}\n\treturn name, namespace, nil\n}", "func (api *versionAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().Version().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.Version\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleVersionEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (pi *PackageInfo) ObjectVName(obj types.Object) *spb.VName {\n\tif pkg, ok := obj.(*types.PkgName); ok {\n\t\treturn pi.PackageVName[pkg.Imported()]\n\t}\n\tsig := pi.Signature(obj)\n\tpkg := obj.Pkg()\n\tvar vname *spb.VName\n\tif base := pi.PackageVName[pkg]; base != nil {\n\t\tvname = proto.Clone(base).(*spb.VName)\n\t} else if pkg == nil {\n\t\treturn govname.Builtin(obj.Name())\n\t} else {\n\t\t// This is an indirect import, that is, a name imported but not\n\t\t// mentioned explicitly by the package being indexed.\n\t\t// TODO(#2383): This is a workaround, and may not be correct in all\n\t\t// cases; work out a more comprehensive solution (possibly during\n\t\t// extraction).\n\t\tvname = proto.Clone(pi.VName).(*spb.VName)\n\t\tvname.Path = strings.TrimPrefix(pkg.Path(), vname.Corpus+\"/\")\n\t}\n\n\tvname.Signature = sig\n\treturn vname\n}", "func GetMetricLabel(metric string) string {\n\treturn metricLabel[metric]\n}", "func NamespacedNameOf(r *corev1.ObjectReference) types.NamespacedName {\n\treturn types.NamespacedName{Namespace: r.Namespace, Name: r.Name}\n}", "func AssertLabel(t *testing.T, label string, expected string, objectMeta metav1.ObjectMeta, kindMessage string) {\n\tmessage := ObjectNameMessage(objectMeta, kindMessage)\n\tlabels := objectMeta.Labels\n\trequire.NotNil(t, labels, \"no labels for %s\", message)\n\tvalue := labels[label]\n\tassert.Equal(t, expected, value, \"label %s for %s\", label, message)\n\tt.Logf(\"%s has label %s=%s\", message, label, value)\n}", "func (obj *Frame) GetLabel() string {\n\treturn obj.Candy().Guify(\"gtk_frame_get_label\", obj).String()\n}", "func EvalLabelName(a Attrib) (labelName, error) {\n\tidentifier := string(a.(*token.Token).Lit)\n\tstart := &codegen.TargetEntry{\n\t\tTarget: fmt.Sprintf(\"_label_%s\", identifier),\n\t}\n\t// Associating identifier with some entry\n\terr := codegen.SymbolTable.InsertSymbol(identifier, start)\n\tend := &codegen.TargetEntry{\n\t\tTarget: fmt.Sprintf(\"_labelend_%s\", identifier),\n\t}\n\treturn labelName{start, end}, err\n}", "func (o *TppCredentialsParams) GetLabel() string {\n\tif o == nil {\n\t\tvar ret string\n\t\treturn ret\n\t}\n\n\treturn o.Label\n}", "func (api *hostAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().Host().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.Host\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleHostEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func PidLabel(pid int) (string, error) {\n\treturn pidLabel(pid)\n}", "func (api *tenantAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().Tenant().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.Tenant\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleTenantEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (l FuncNode) Label() *Label {\n\treturn l.label\n}", "func (ls LabelSet) Get(label string) string {\n\treturn ls[label]\n}", "func (l *Label) GetName() string {\n\tif l == nil || l.Name == nil {\n\t\treturn \"\"\n\t}\n\treturn *l.Name\n}", "func (api *distributedservicecardAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().DistributedServiceCard().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.DistributedServiceCard\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleDistributedServiceCardEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (k *Key) Label() string {\n\treturn strings.TrimPrefix(k.Path, \"/\")\n}", "func (api *licenseAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().License().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.License\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleLicenseEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (o GetRegionResultOutput) Label() pulumi.StringOutput {\n\treturn o.ApplyT(func(v GetRegionResult) string { return v.Label }).(pulumi.StringOutput)\n}", "func (v *MailView) GetLabel() (string, error) {\n\treturn v.envelope.GetHeader(\"Subject\"), nil\n}", "func (up *Upstream) Label() string {\n\treturn fmt.Sprintf(\"%s_%s_%s_%d\", up.Protocol, up.Name, up.Namespace, up.Port)\n}", "func (l *Label) Name() string {\n\treturn l.name\n}", "func (c *GlPushGroupMarkerEXT) Label(ctx context.Context, s *api.GlobalState) string {\n\treturn readString(ctx, c, s, c.Marker(), c.Length())\n}", "func ObjectPtrLabel(ptr unsafe.Pointer, length int32, label *uint8) {\n\tC.glowObjectPtrLabel(gpObjectPtrLabel, ptr, (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func ObjectPtrLabel(ptr unsafe.Pointer, length int32, label *uint8) {\n\tC.glowObjectPtrLabel(gpObjectPtrLabel, ptr, (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func (cc *ClusterContext) LabelNamespace(label string, value string) (err error) {\n\n\tpayload := fmt.Sprintf(`{\"metadata\": {\"labels\": {\"%v\": \"%v\"}}}`, label, value)\n\n\t_, err = cc.VanClient.KubeClient.CoreV1().Namespaces().Patch(context.TODO(), cc.Namespace, types.MergePatchType, []byte(payload), metav1.PatchOptions{})\n\n\treturn\n}", "func (pl *NodeLabel) Name() string {\n\treturn Name\n}", "func getClusterNameLabel() string {\n\tkey := fmt.Sprintf(\"%s/cluster-name\", getCAPIGroup())\n\treturn key\n}", "func (m *ParentLabelDetails) GetName()(*string) {\n val, err := m.GetBackingStore().Get(\"name\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.(*string)\n }\n return nil\n}", "func getNodename(ctx context.Context) (string, error) {\n\tif config.Datadog.GetBool(\"cloud_foundry\") {\n\t\tboshID := config.Datadog.GetString(\"bosh_id\")\n\t\tif boshID == \"\" {\n\t\t\treturn \"\", fmt.Errorf(\"configuration variable cloud_foundry is set to true, but bosh_id is empty, can't retrieve node name\")\n\t\t}\n\t\treturn boshID, nil\n\t}\n\tku, err := kubelet.GetKubeUtil()\n\tif err != nil {\n\t\tlog.Errorf(\"Cannot get kubeUtil object: %s\", err)\n\t\treturn \"\", err\n\t}\n\treturn ku.GetNodename(ctx)\n}", "func (o ResourceAnnotationResponseOutput) Label() pulumi.StringOutput {\n\treturn o.ApplyT(func(v ResourceAnnotationResponse) string { return v.Label }).(pulumi.StringOutput)\n}", "func ObjName(iface interface{}) string {\n\treturn filepath.Base(reflect.TypeOf(iface).PkgPath()) +\n\t\t\".\" + reflect.TypeOf(iface).Name()\n}", "func (o LookupDatabaseMysqlResultOutput) Label() pulumi.StringOutput {\n\treturn o.ApplyT(func(v LookupDatabaseMysqlResult) string { return v.Label }).(pulumi.StringOutput)\n}", "func (e *EDNS) Name() string { return name }" ]
[ "0.7130895", "0.6948563", "0.669161", "0.661509", "0.64927167", "0.64569795", "0.6390834", "0.6374128", "0.63515", "0.6294887", "0.6294887", "0.62909347", "0.6278038", "0.62506455", "0.6212739", "0.6185693", "0.61711854", "0.6170341", "0.6107784", "0.6107784", "0.610158", "0.60690314", "0.60254186", "0.6019951", "0.59812886", "0.5963813", "0.5959858", "0.59270704", "0.59151113", "0.59140056", "0.5898626", "0.58562976", "0.5844975", "0.5820466", "0.578911", "0.5773656", "0.5769949", "0.57669544", "0.5765523", "0.5763708", "0.5762333", "0.57483", "0.574279", "0.57398343", "0.5732017", "0.5728506", "0.5723922", "0.5717994", "0.5715958", "0.5710424", "0.56837004", "0.5668236", "0.5646786", "0.5643385", "0.56374764", "0.56366485", "0.5629353", "0.56286645", "0.56286204", "0.56280464", "0.562779", "0.5611186", "0.5610208", "0.56063294", "0.56061167", "0.5597754", "0.5595977", "0.55852604", "0.55739385", "0.55491877", "0.55456734", "0.5535455", "0.55326915", "0.5527873", "0.5508775", "0.5494771", "0.54924864", "0.54891306", "0.5482823", "0.5481112", "0.5480711", "0.54796845", "0.5478346", "0.5470598", "0.54652005", "0.5464878", "0.54634774", "0.54569", "0.5456247", "0.5456247", "0.5453812", "0.54528815", "0.54514605", "0.5450797", "0.5446243", "0.5421407", "0.54141814", "0.5411762", "0.54037845" ]
0.6899454
3
retrieve the label of a sync object identified by a pointer
func GetObjectPtrLabel(ptr unsafe.Pointer, bufSize int32, length *int32, label *uint8) { C.glowGetObjectPtrLabel(gpGetObjectPtrLabel, ptr, (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetObjectPtrLabel(ptr unsafe.Pointer, bufSize int32, length *int32, label *int8) {\n C.glowGetObjectPtrLabel(gpGetObjectPtrLabel, ptr, (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func GetObjectPtrLabel(ptr unsafe.Pointer, bufSize int32, length *int32, label *uint8) {\n\tsyscall.Syscall6(gpGetObjectPtrLabel, 4, uintptr(ptr), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(label)), 0, 0)\n}", "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *int8) {\n C.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *uint8) {\n\tsyscall.Syscall6(gpGetObjectLabel, 5, uintptr(identifier), uintptr(name), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(label)), 0)\n}", "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *uint8) {\n\tC.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *uint8) {\n\tC.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func ObjectPtrLabel(ptr unsafe.Pointer, length int32, label *int8) {\n C.glowObjectPtrLabel(gpObjectPtrLabel, ptr, (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func (m *Media) GetLabel()(*string) {\n return m.label\n}", "func ObjectPtrLabel(ptr unsafe.Pointer, length int32, label *uint8) {\n\tsyscall.Syscall(gpObjectPtrLabel, 3, uintptr(ptr), uintptr(length), uintptr(unsafe.Pointer(label)))\n}", "func ObjectPtrLabel(ptr unsafe.Pointer, length int32, label *uint8) {\n\tC.glowObjectPtrLabel(gpObjectPtrLabel, ptr, (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func ObjectPtrLabel(ptr unsafe.Pointer, length int32, label *uint8) {\n\tC.glowObjectPtrLabel(gpObjectPtrLabel, ptr, (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *int8) {\n C.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) {\n\tsyscall.Syscall6(gpObjectLabel, 4, uintptr(identifier), uintptr(name), uintptr(length), uintptr(unsafe.Pointer(label)), 0, 0)\n}", "func (uem *UyuniEventMapper) Label() string {\n\tvalueOf := reflect.ValueOf(uem)\n\tif valueOf.Type().Kind() == reflect.Ptr {\n\t\treturn reflect.Indirect(valueOf).Type().Name()\n\t} else {\n\t\treturn valueOf.Type().Name()\n\t}\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) {\n\tC.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) {\n\tC.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func (obj *label) Name() string {\n\treturn obj.name\n}", "func (l Label) Label() string { return string(l) }", "func (o BoundingPolyOutput) Label() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v BoundingPoly) *string { return v.Label }).(pulumi.StringPtrOutput)\n}", "func (o *HyperflexVmSnapshotInfoAllOf) GetLabel() string {\n\tif o == nil || o.Label == nil {\n\t\tvar ret string\n\t\treturn ret\n\t}\n\treturn *o.Label\n}", "func label(r interface{}) string {\n\treturn strings.ToLower(migref.ToKind(r))\n}", "func (c *GlPushGroupMarkerEXT) Label(ctx context.Context, s *api.GlobalState) string {\n\treturn readString(ctx, c, s, c.Marker(), c.Length())\n}", "func (o ResourceAnnotationPtrOutput) Label() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *ResourceAnnotation) *string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.Label\n\t}).(pulumi.StringPtrOutput)\n}", "func (c *GlInsertEventMarkerEXT) Label(ctx context.Context, s *api.GlobalState) string {\n\treturn readString(ctx, c, s, c.Marker(), c.Length())\n}", "func (c *GlPushDebugGroupKHR) Label(ctx context.Context, s *api.GlobalState) string {\n\t// This is incorrect, fudging for a bug in Unity which has been fixed but not\n\t// rolled out.\n\t// See https://github.com/google/gapid/issues/459 for reference.\n\t//\n\t// c.Length() should only be treated as null-terminated if c.Length() is < 0.\n\t//\n\t// TODO: Consider removing once the fixed version is mainstream.\n\treturn readString(ctx, c, s, c.Message(), c.Length())\n}", "func (o ResourceAnnotationOutput) Label() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v ResourceAnnotation) *string { return v.Label }).(pulumi.StringPtrOutput)\n}", "func (api *objectAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ObjstoreV1().Object().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.Object\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleObjectEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (o *Block) GetIdLabel(ctx context.Context) (idLabel string, err error) {\n\terr = o.object.CallWithContext(ctx, \"org.freedesktop.DBus.Properties.Get\", 0, InterfaceBlock, \"IdLabel\").Store(&idLabel)\n\treturn\n}", "func (obj *Frame) GetLabel() string {\n\treturn obj.Candy().Guify(\"gtk_frame_get_label\", obj).String()\n}", "func (o *TppCredentialsParams) GetLabel() string {\n\tif o == nil {\n\t\tvar ret string\n\t\treturn ret\n\t}\n\n\treturn o.Label\n}", "func (obj *instruction) Label() label_instruction.Instruction {\n\treturn obj.label\n}", "func (o *StatusDescriptorDTO) GetLabel() string {\n\tif o == nil || o.Label == nil {\n\t\tvar ret string\n\t\treturn ret\n\t}\n\treturn *o.Label\n}", "func (o ResourceAnnotationResponsePtrOutput) Label() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *ResourceAnnotationResponse) *string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn &v.Label\n\t}).(pulumi.StringPtrOutput)\n}", "func (n Name) Label() *Label {\n\tif len(n) > 0 {\n\t\treturn n[0]\n\t}\n\treturn nil\n}", "func (api *bucketAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ObjstoreV1().Bucket().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.Bucket\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleBucketEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (o NodeBalancerOutput) Label() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *NodeBalancer) pulumi.StringPtrOutput { return v.Label }).(pulumi.StringPtrOutput)\n}", "func PeerLabel(fd uintptr) (string, error) {\n\treturn peerLabel(fd)\n}", "func (c *Completer) GetLabel() string {\n\treturn c.label\n}", "func (i *Instance) Label() string {\n\treturn i.Domain\n}", "func (host *Server) getLabel(name string) string {\n\tif host.Labels == nil {\n\t\treturn \"\"\n\t}\n\treturn host.Labels[name]\n}", "func (api *nodeAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().Node().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.Node\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleNodeEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (o *AddOn) Label() string {\n\tif o != nil && o.bitmap_&1024 != 0 {\n\t\treturn o.label\n\t}\n\treturn \"\"\n}", "func (m *ParentLabelDetails) GetName()(*string) {\n val, err := m.GetBackingStore().Get(\"name\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.(*string)\n }\n return nil\n}", "func (o *WidgetMarker) GetLabel() string {\n\tif o == nil || o.Label == nil {\n\t\tvar ret string\n\t\treturn ret\n\t}\n\treturn *o.Label\n}", "func (o *AddOn) GetLabel() (value string, ok bool) {\n\tok = o != nil && o.bitmap_&1024 != 0\n\tif ok {\n\t\tvalue = o.label\n\t}\n\treturn\n}", "func (api *distributedservicecardAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().DistributedServiceCard().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.DistributedServiceCard\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleDistributedServiceCardEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (api *snapshotrestoreAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().SnapshotRestore().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.SnapshotRestore\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleSnapshotRestoreEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (up *Upstream) Label() string {\n\treturn fmt.Sprintf(\"%s_%s_%s_%d\", up.Protocol, up.Name, up.Namespace, up.Port)\n}", "func (api *clusterAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().Cluster().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.Cluster\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleClusterEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (c *GlPushDebugGroup) Label(ctx context.Context, s *api.GlobalState) string {\n\t// This is incorrect, fudging for a bug in Unity which has been fixed but not\n\t// rolled out.\n\t// See https://github.com/google/gapid/issues/459 for reference.\n\t//\n\t// c.Length() should only be treated as null-terminated if c.Length() is < 0.\n\t//\n\t// TODO: Consider removing once the fixed version is mainstream.\n\treturn readString(ctx, c, s, c.Message(), c.Length())\n}", "func (api *versionAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().Version().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.Version\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleVersionEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (k *Key) Label() string {\n\treturn strings.TrimPrefix(k.Path, \"/\")\n}", "func labelLonghornNode(nodeID string, obj runtime.Object) error {\n\tmetadata, err := meta.Accessor(obj)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tlabels := metadata.GetLabels()\n\tif labels == nil {\n\t\tlabels = map[string]string{}\n\t}\n\tlabels[types.GetLonghornLabelKey(types.LonghornLabelNode)] = nodeID\n\tmetadata.SetLabels(labels)\n\treturn nil\n}", "func (n *node) Label() string {\n\treturn n.lbl\n}", "func (api *configurationsnapshotAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().ConfigurationSnapshot().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.ConfigurationSnapshot\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleConfigurationSnapshotEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (s *sound) label() string { return s.name }", "func (s *Spot) GetLabel() string {\n\treturn s.label\n}", "func (l label) GetLabel() string {\n\treturn \"\"\n}", "func (o AppSharedCredentialsOutput) Label() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *AppSharedCredentials) pulumi.StringOutput { return v.Label }).(pulumi.StringOutput)\n}", "func (o *WorkflowWorkflowDefinitionAllOf) GetLabel() string {\n\tif o == nil || o.Label == nil {\n\t\tvar ret string\n\t\treturn ret\n\t}\n\treturn *o.Label\n}", "func PidLabel(pid int) (string, error) {\n\treturn pidLabel(pid)\n}", "func (v *Button) GetLabel() (string, error) {\n\tc := C.gtk_button_get_label(v.native())\n\tif c == nil {\n\t\treturn \"\", nilPtrErr\n\t}\n\treturn goString(c), nil\n}", "func (api *dscprofileAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().DSCProfile().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.DSCProfile\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleDSCProfileEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (w *AuthWorker) Label() string {\n\treturn w.label\n}", "func (nv *NetView) LabelByName(lab string) *gi3d.Text2D {\n\tvs := nv.Scene()\n\tlgp, err := vs.ChildByNameTry(\"Labels\", 1)\n\tif err != nil {\n\t\treturn nil\n\t}\n\ttxt, err := lgp.ChildByNameTry(lab, 0)\n\tif err != nil {\n\t\treturn nil\n\t}\n\treturn txt.(*gi3d.Text2D)\n}", "func (api *hostAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().Host().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.Host\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleHostEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (t *Timeline) GetLabel() *Label {\n\tif t == nil {\n\t\treturn nil\n\t}\n\treturn t.Label\n}", "func labelLonghornDiskUUID(diskUUID string, obj runtime.Object) error {\n\tmetadata, err := meta.Accessor(obj)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tlabels := metadata.GetLabels()\n\tif labels == nil {\n\t\tlabels = map[string]string{}\n\t}\n\tlabels[types.GetLonghornLabelKey(types.LonghornLabelDiskUUID)] = diskUUID\n\tmetadata.SetLabels(labels)\n\treturn nil\n}", "func (p *Program) Label() base.Label { return p.label }", "func (obj *labelDeclaration) Name() string {\n\treturn obj.name\n}", "func (m *ParentLabelDetails) GetId()(*string) {\n val, err := m.GetBackingStore().Get(\"id\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.(*string)\n }\n return nil\n}", "func (c *ContainerContext) Label(name string) string {\n\tif c.c.Labels == nil {\n\t\treturn \"\"\n\t}\n\treturn c.c.Labels[name]\n}", "func (c *ContainerInfo) GetLabel(name string) (string, bool) {\n\tvalue, set := c.Data.Labels[name]\n\treturn value, set\n}", "func (tv *TextView) Label() string {\n\treturn tv.Nm\n}", "func (h *descriptorHandler) keyLabel(key string) string {\n\tif h.descriptor == nil || h.descriptor.KeyLabel == nil {\n\t\treturn key\n\t}\n\tdefer trackDescMethod(h.descriptor.Name, \"KeyLabel\")()\n\treturn h.descriptor.KeyLabel(key)\n}", "func (m *material) label() string { return m.name }", "func (o *DeployKey) GetLabel() string {\n\tif o == nil || o.Label == nil {\n\t\tvar ret string\n\t\treturn ret\n\t}\n\treturn *o.Label\n}", "func (p *PKCS11) GetTokenLabel() (err error) {\n slots, err := p.Ctx.GetSlotList(false)\n if err != nil {\n return\n }\n\n if len(slots) > 1 {\n err = fmt.Errorf(\"err: %s\", \"Single token only\")\n return\n }\n\n if len(slots) == 0 {\n err = fmt.Errorf(\"err: %s\", \"No token\")\n return\n }\n\n slotID := slots[0]\n tokenInfo, err := p.Ctx.GetTokenInfo(slotID)\n if err != nil {\n return\n }\n\n p.SlotID = slotID\n p.Label = tokenInfo.Label\n return\n}", "func (fxt *TestFixture) LabelByName(name string, spaceID ...uuid.UUID) *label.Label {\n\tfor _, l := range fxt.Labels {\n\t\tif l.Name == name && len(spaceID) > 0 && l.SpaceID == spaceID[0] {\n\t\t\treturn l\n\t\t} else if l.Name == name && len(spaceID) == 0 {\n\t\t\treturn l\n\t\t}\n\t}\n\treturn nil\n}", "func (o LookupLinkResultOutput) Label() pulumi.StringOutput {\n\treturn o.ApplyT(func(v LookupLinkResult) string { return v.Label }).(pulumi.StringOutput)\n}", "func (o *WorkflowServiceItemDefinitionAllOf) GetLabel() string {\n\tif o == nil || o.Label == nil {\n\t\tvar ret string\n\t\treturn ret\n\t}\n\treturn *o.Label\n}", "func (api *credentialsAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().Credentials().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.Credentials\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleCredentialsEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}", "func (self Label) ToNative() unsafe.Pointer {\n\treturn unsafe.Pointer(self.object)\n}", "func unpackLabelPointer(b []byte, offset int) (label string, n int, err error) {\n\tpointerOffset := getPointerOffset(b, offset)\n\tif pointerOffset >= offset-1 {\n\t\treturn \"\", 0, ErrLabelPointerIllegal\n\t}\n\tl := int(b[pointerOffset])\n\tpointerOffset++\n\treturn string(b[pointerOffset : pointerOffset+l]), 2, err\n}", "func GetClassLabelFor(class uint8) (*Label, error) {\n\tclf := environ.ClfDefs[0]\n\treturn clf.GetLabelInfo(class)\n}", "func GetLabel(labelID uint) ([]byte, error) {\n\tlog.Trace.Printf(\"Getting the following label: %d\", labelID)\n\tvar ret []byte\n\tvar err error\n\n\tvar label types.Label\n\tif err = store.DB.First(&label, labelID).Error; err == nil {\n\t\tlog.Trace.Printf(\"Successfully got the following label: %+v\", label)\n\t\tret, err = json.Marshal(label)\n\t}\n\n\tif err != nil {\n\t\tlog.Warning.Printf(err.Error())\n\t}\n\n\treturn ret, err\n}", "func (l *LabelEvent) GetLabel() *Label {\n\tif l == nil {\n\t\treturn nil\n\t}\n\treturn l.Label\n}", "func (detach *LibcomposeDetachProperty) Label() string {\n\treturn \"Detach\"\n}", "func (o *StorageNetAppSnapshotPolicySchedule) GetLabel() string {\n\tif o == nil || o.Label == nil {\n\t\tvar ret string\n\t\treturn ret\n\t}\n\treturn *o.Label\n}", "func (s *Store) TxLabel(ns walletdb.ReadBucket, txHash chainhash.Hash) (string,\n\terror) {\n\n\tlabel, err := FetchTxLabel(ns, txHash)\n\tswitch err {\n\t// If there are no saved labels yet (the bucket has not been created) or\n\t// there is not a label for this particular tx, we ignore the error.\n\tcase ErrNoLabelBucket:\n\t\tfallthrough\n\tcase ErrTxLabelNotFound:\n\t\treturn \"\", nil\n\n\t// If we found the label, we return it.\n\tcase nil:\n\t\treturn label, nil\n\t}\n\n\t// Otherwise, another error occurred while looking uo the label, so we\n\t// return it.\n\treturn \"\", err\n}", "func getSdcGuidLabel(plug *sioPlugin) (string, error) {\n\tnodeLabels, err := plug.host.GetNodeLabels()\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tlabel, ok := nodeLabels[sdcGuidLabelName]\n\tif !ok {\n\t\tglog.V(4).Info(log(\"node label %s not found\", sdcGuidLabelName))\n\t\treturn \"\", nil\n\t}\n\n\tglog.V(4).Info(log(\"found node label %s=%s\", sdcGuidLabelName, label))\n\treturn label, nil\n}", "func (r *ReleaseAsset) GetLabel() string {\n\tif r == nil || r.Label == nil {\n\t\treturn \"\"\n\t}\n\treturn *r.Label\n}", "func (s *DatabaseServerV3) GetLabel(key string) (value string, ok bool) {\n\tif s.Spec.Database != nil {\n\t\tif v, ok := s.Spec.Database.GetLabel(key); ok {\n\t\t\treturn v, ok\n\t\t}\n\t}\n\n\tv, ok := s.Metadata.Labels[key]\n\treturn v, ok\n}", "func (o LookupDatabaseMysqlResultOutput) Label() pulumi.StringOutput {\n\treturn o.ApplyT(func(v LookupDatabaseMysqlResult) string { return v.Label }).(pulumi.StringOutput)\n}", "func (o *TppCertificateParams) GetLabel() string {\n\tif o == nil {\n\t\tvar ret string\n\t\treturn ret\n\t}\n\n\treturn o.Label\n}", "func (l FuncNode) Label() *Label {\n\treturn l.label\n}", "func (o AppIngressTrafficWeightOutput) Label() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v AppIngressTrafficWeight) *string { return v.Label }).(pulumi.StringPtrOutput)\n}", "func newLabelFromNative(obj unsafe.Pointer) interface{} {\n\tl := &Label{}\n\tl.object = C.to_GtkLabel(obj)\n\n\tif gobject.IsObjectFloating(l) {\n\t\tgobject.RefSink(l)\n\t} else {\n\t\tgobject.Ref(l)\n\t}\n\tl.Widget = NewWidget(unsafe.Pointer(l.object))\n\tlabelFinalizer(l)\n\n\treturn l\n}", "func (api *tenantAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clent. Err: %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t_, err = apicl.ClusterV1().Tenant().Label(context.Background(), obj)\n\t\treturn err\n\t}\n\n\tctkitObj, err := api.Find(obj.GetObjectMeta())\n\tif err != nil {\n\t\treturn err\n\t}\n\twriteObj := ctkitObj.Tenant\n\twriteObj.Labels = obj.Labels\n\n\tapi.ct.handleTenantEvent(&kvstore.WatchEvent{Object: &writeObj, Type: kvstore.Updated})\n\treturn nil\n}" ]
[ "0.74735075", "0.7403974", "0.7176024", "0.6977283", "0.69432217", "0.69432217", "0.68352187", "0.6733208", "0.66341096", "0.65453726", "0.65453726", "0.63958985", "0.6355293", "0.62533253", "0.61821944", "0.61821944", "0.6117806", "0.6067325", "0.60482144", "0.60478157", "0.6038191", "0.60351366", "0.6001845", "0.59944415", "0.59767956", "0.5940589", "0.59225655", "0.5866346", "0.5865606", "0.5851253", "0.5847411", "0.58455056", "0.584459", "0.5842446", "0.5831539", "0.5805689", "0.57870173", "0.57844067", "0.5777659", "0.5750723", "0.5742635", "0.5736375", "0.5724628", "0.5720959", "0.56934255", "0.56876016", "0.56850106", "0.5672229", "0.5639645", "0.56380373", "0.5620038", "0.560655", "0.5594473", "0.5594121", "0.55902374", "0.55887467", "0.5584507", "0.55782235", "0.55751747", "0.55492026", "0.5542955", "0.5538113", "0.55359817", "0.5527282", "0.5519575", "0.5517589", "0.55144334", "0.5510284", "0.549655", "0.54915667", "0.5488423", "0.5485042", "0.5479429", "0.5469458", "0.54694045", "0.546853", "0.5467882", "0.5437269", "0.543173", "0.5428645", "0.5421034", "0.53955287", "0.5385329", "0.537709", "0.5376154", "0.53700393", "0.5369402", "0.53682834", "0.5355602", "0.53533924", "0.53449595", "0.53434074", "0.53322846", "0.53305346", "0.53110117", "0.53097165", "0.53059167", "0.5298574", "0.52938116" ]
0.7228963
3
return the address of the specified pointer
func GetPointerv(pname uint32, params *unsafe.Pointer) { C.glowGetPointerv(gpGetPointerv, (C.GLenum)(pname), params) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func pointerOf(n interface{}) uintptr {\n\tif n == nil {\n\t\treturn 0\n\t}\n\tv := reflect.ValueOf(n)\n\tif v.IsNil() {\n\t\treturn 0\n\t}\n\treturn v.Pointer()\n}", "func LoadPointer(addr *unsafe.Pointer) (val unsafe.Pointer)", "func getPtr(b []byte) uintptr {\n\n\tswitch ptrOffset {\n\tcase 8:\n\t\treturn uintptr(b[7]) | uintptr(b[6])<<8 | uintptr(b[5])<<16 | uintptr(b[4])<<24 | uintptr(b[3])<<32 | uintptr(b[2])<<40 | uintptr(b[1])<<48 | uintptr(b[0])<<56\n\tcase 4:\n\t\treturn uintptr(b[3]) | uintptr(b[2])<<8 | uintptr(b[1])<<16 | uintptr(b[0])<<24\n\n\t}\n\tpanic(\"Invalid size detected\")\n}", "func (handle *Handle) Pointer() unsafe.Pointer {\n\treturn unsafe.Pointer(handle.x)\n}", "func IntPtr(v int) *int { return &v }", "func (obj *Value) GetPointer() string {\n\treturn obj.Candy().Guify(\"g_value_get_pointer\", obj).String()\n}", "func (b *WString) Pointer() *uint16 {\n\tif b.empty() {\n\t\treturn nil\n\t}\n\treturn &b.b[0]\n}", "func Ptr(data interface{}) unsafe.Pointer {\n\tif data == nil {\n\t\treturn unsafe.Pointer(nil)\n\t}\n\tvar addr unsafe.Pointer\n\tv := reflect.ValueOf(data)\n\tswitch v.Type().Kind() {\n\tcase reflect.Ptr:\n\t\te := v.Elem()\n\t\tswitch e.Kind() {\n\t\tcase\n\t\t\treflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64,\n\t\t\treflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64,\n\t\t\treflect.Float32, reflect.Float64:\n\t\t\taddr = unsafe.Pointer(e.UnsafeAddr())\n\t\tdefault:\n\t\t\tpanic(fmt.Errorf(\"unsupported pointer to type %s; must be a slice or pointer to a singular scalar value or the first element of an array or slice\", e.Kind()))\n\t\t}\n\tcase reflect.Uintptr:\n\t\taddr = unsafe.Pointer(data.(uintptr))\n\tcase reflect.Slice:\n\t\taddr = unsafe.Pointer(v.Index(0).UnsafeAddr())\n\tdefault:\n\t\tpanic(fmt.Errorf(\"unsupported type %s; must be a slice or pointer to a singular scalar value or the first element of an array or slice\", v.Type()))\n\t}\n\treturn addr\n}", "func (p PointerWrapper) Uintptr() uintptr {\n\treturn uintptr(p)\n}", "func returnPointer() *int {\n\ti := 5\n\treturn &i\n}", "func (m *Mmap) GetPointer() int64 {\n\treturn m.FilePointer\n}", "func (r *snpUserGuestRequestConversion) Pointer() unsafe.Pointer {\n\treturn unsafe.Pointer(&r.abi)\n}", "func StorePointer(addr *unsafe.Pointer, val unsafe.Pointer)", "func PtrOffset(offset int) unsafe.Pointer {\n\treturn unsafe.Pointer(uintptr(offset))\n}", "func IntPtr(literal int) *int {\n\treturn &literal\n}", "func (recv *Value) GetPointer() uintptr {\n\tretC := C.g_value_get_pointer((*C.GValue)(recv.native))\n\tretGo := (uintptr)(unsafe.Pointer(retC))\n\n\treturn retGo\n}", "func (s *ScaleInfo) GetPointer() int {\n\treturn s.pointer\n}", "func GetPointerv(pname uint32, params *unsafe.Pointer) {\n\tsyscall.Syscall(gpGetPointerv, 2, uintptr(pname), uintptr(unsafe.Pointer(params)), 0)\n}", "func GetPointerv(pname uint32, params *unsafe.Pointer) {\n C.glowGetPointerv(gpGetPointerv, (C.GLenum)(pname), params)\n}", "func (m IPType) Pointer() *IPType {\n\treturn &m\n}", "func (mp *Mempool) Ptr() unsafe.Pointer {\n\treturn unsafe.Pointer(mp)\n}", "func idPointer(id interface{}) (p *interface{}) {\n\tif id != nil {\n\t\tp = &id\n\t}\n\treturn\n}", "func (r *SnpReportReqABI) Pointer() unsafe.Pointer {\n\treturn unsafe.Pointer(r)\n}", "func (r *SnpExtendedReportReqABI) Pointer() unsafe.Pointer {\n\treturn unsafe.Pointer(r)\n}", "func (native *OpenGL) PtrOffset(offset int) unsafe.Pointer {\n\treturn gl.PtrOffset(offset)\n}", "func GetUintptrForPointer(p *program.Program, expr goast.Expr, exprType string) (goast.Expr, string, error) {\n\treturnType := \"long long\"\n\texpr, err := types.CastExpr(p, expr, exprType, \"void*\")\n\n\treturn util.NewCallExpr(\"int64\",\n\t\tutil.NewCallExpr(\"uintptr\",\n\t\t\texpr)), returnType, err\n}", "func (r *SnpReportRespABI) Pointer() unsafe.Pointer {\n\treturn unsafe.Pointer(r)\n}", "func fun_with_pointers() {\n var x int;\n var ptr *int;\n x = 7\n ptr = &x\n access_pointer(ptr)\n access_pointer(ptr)\n fmt.Printf(\"Now the value of x is %d\\n\", x)\n}", "func (f *FormationAssignment) GetAddress() uintptr {\n\treturn uintptr(unsafe.Pointer(f))\n}", "func (el epicList) getIDPtr(name string) *int64 {\n\tid := el.getID(name)\n\tif id == 0 {\n\t\treturn nil\n\t}\n\treturn &id\n}", "func (m VipType) Pointer() *VipType {\n\treturn &m\n}", "func UintPtr(v uint) *uint { return &v }", "func returnPointer() *int {\n\tmyLocalVar := 69 // local var on the heap\n\n\t// returning a reference to a local variable is OK. Golang uses garbage collection\n\treturn &myLocalVar\n}", "func (mmap *File) GetMemoryPtr() unsafe.Pointer {\n\treturn mmap.mmap\n}", "func Uint32Ptr(i uint32) *uint32 {\n\treturn &i\n}", "func NewPointerFromSignalArgument(obj SignalArgument) Pointer {\n\treturn Pointer{base: unsafe.Pointer(obj.getBase())}\n}", "func IntPtr(i int) *int {\n\treturn &i\n}", "func IntPtr(i int) *int {\n\treturn &i\n}", "func IntPtr(i int) *int {\n\treturn &i\n}", "func ToStringPointer(s string) *string {\n\treturn &s\n}", "func NewPointer(elem Type) *Pointer { return &Pointer{base: elem} }", "func IndexPointer(xtype uint32, stride int32, pointer unsafe.Pointer) {\n C.glowIndexPointer(gpIndexPointer, (C.GLenum)(xtype), (C.GLsizei)(stride), pointer)\n}", "func UintPtr(i uint) *uint {\n\treturn &i\n}", "func UintPtr(literal uint) *uint {\n\treturn &literal\n}", "func (d *decoder) pointer(name string, value reflect.Value, def string) error {\n\tif !d.getGlobalProvider().Get(name).HasValue() {\n\t\treturn nil\n\t}\n\n\tif value.IsNil() {\n\t\tvalue.Set(reflect.New(value.Type().Elem()))\n\t}\n\n\treturn d.unmarshal(name, value.Elem(), def)\n}", "func (r *SnpDerivedKeyReqABI) Pointer() unsafe.Pointer { return unsafe.Pointer(r) }", "func SwapPointer(addr *unsafe.Pointer, new unsafe.Pointer) (old unsafe.Pointer)", "func IntPointer(i int) *int {\n\treturn &i\n}", "func IntPointer(i int) *int {\n\treturn &i\n}", "func IntPointer(i int) *int {\n\treturn &i\n}", "func UInt32Ptr(i uint32) *uint32 {\n\treturn &i\n}", "func UInt32Ptr(i uint32) *uint32 {\n\treturn &i\n}", "func intPtr(val int32) *int32 {\n\treturn &val\n}", "func (m VMFirmware) Pointer() *VMFirmware {\n\treturn &m\n}", "func (gen *DataGen) Ptr() unsafe.Pointer {\n\treturn unsafe.Pointer(gen)\n}", "func (f Page) Address() uintptr {\n\treturn uintptr(f << PageShift)\n}", "func getArrElemAddr(arr unsafe.Pointer, elemSize uintptr, idx int) unsafe.Pointer {\n\tbase := uintptr(arr)\n\toff := uintptr(idx) * elemSize\n\tcur := base + off\n\treturn unsafe.Pointer(cur)\n}", "func getCodePointer(value *reflect.Value) unsafe.Pointer {\n\tp := getInternalPtrFromValue(value)\n\tif p != nil {\n\t\tp = *(*unsafe.Pointer)(p)\n\t}\n\treturn p\n}", "func (r *SnpDerivedKeyRespABI) Pointer() unsafe.Pointer { return unsafe.Pointer(r) }", "func IntPtr(myInt int) *int {\n\treturn &myInt\n}", "func Int32Pointer(i int32) *int32 {\n\treturn &i\n}", "func (mapper *Mapper) GetPtr(ptr unsafe.Pointer) (goValue interface{}) {\n\t// We don't use KeyFromPtr because the ptr may be a counting-pointer type.\n\tkey := Key{uintptr(ptr)}\n\treturn mapper.Get(key)\n}", "func IndexPointer(xtype uint32, stride int32, pointer unsafe.Pointer) {\n\tsyscall.Syscall(gpIndexPointer, 3, uintptr(xtype), uintptr(stride), uintptr(pointer))\n}", "func (t *Dense) Uintptr() uintptr {\n\treturn uintptr(t.data)\n}", "func Uint64Ptr(i uint64) *uint64 {\n\treturn &i\n}", "func Uint32Ptr(literal uint32) *uint32 {\n\treturn &literal\n}", "func GetDirectBufferAddress(env *C.JNIEnv, buf C.jobject) unsafe.Pointer {\n\treturn C._GoJniGetDirectBufferAddress(env, buf)\n}", "func ptrI32(i int32) *int32 {\n\treturn &i\n}", "func LoadUintptr(addr *uintptr) (val uintptr)", "func unsafePointerTo(obj reflect.Value) reflect.Value {\n\treturn reflect.NewAt(obj.Type(), unsafe.Pointer(obj.UnsafeAddr()))\n}", "func Pointer(v int64) *int64 {\n\treturn helpy.Pointer(v)\n}", "func BytesPointer(data []byte) unsafe.Pointer {\n\tif len(data) == 0 {\n\t\treturn nil\n\t}\n\treturn unsafe.Pointer(&data[0])\n}", "func (s *State) BytePointer() *byte {\n\treturn &(*s)[0]\n}", "func Uint32Ptr(v uint32) *uint32 { return &v }", "func TexCoordPointer(size int32, xtype uint32, stride int32, pointer unsafe.Pointer) {\n C.glowTexCoordPointer(gpTexCoordPointer, (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), pointer)\n}", "func ToPointer[T any](val T) *T {\n\treturn &val\n}", "func (native *OpenGL) Ptr(data interface{}) unsafe.Pointer {\n\treturn gl.Ptr(data)\n}", "func address(i interface{}) int {\n\taddr, err := strconv.ParseUint(fmt.Sprintf(\"%p\", i), 0, 0)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treturn int(addr)\n}", "func getPointer(n *int) {\n *n = *n * *n\n}", "func (m PartitionUsage) Pointer() *PartitionUsage {\n\treturn &m\n}", "func DefinePointer(htype *IHType) Pointer {\n\treturn Pointer{htype: htype}\n}", "func (recv *Value) PeekPointer() uintptr {\n\tretC := C.g_value_peek_pointer((*C.GValue)(recv.native))\n\tretGo := (uintptr)(unsafe.Pointer(retC))\n\n\treturn retGo\n}", "func UInt64Ptr(i uint64) *uint64 {\n\treturn &i\n}", "func UInt64Ptr(i uint64) *uint64 {\n\treturn &i\n}", "func Uint64Ptr(v uint64) *uint64 { return &v }", "func TexCoordPointer(size int32, xtype uint32, stride int32, pointer unsafe.Pointer) {\n\tsyscall.Syscall6(gpTexCoordPointer, 4, uintptr(size), uintptr(xtype), uintptr(stride), uintptr(pointer), 0, 0)\n}", "func Uint32Ptr(v uint32) *uint32 {\n\treturn &v\n}", "func pageAddress(pointer int, pagesize int) int {\n\tpageAddress := pointer % pagesize\n\tif pageAddress < 0 {\n\t\treturn pagesize + pageAddress\n\t}\n\treturn pageAddress\n}", "func (b BananaProcedure) Addr() uintptr {\n\treturn b.address\n}", "func Uint64Ptr(literal uint64) *uint64 {\n\treturn &literal\n}", "func ptr[T any](x T) *T {\n\treturn &x\n}", "func (indx AttribLocation) AttribPointerInternal(size uint, t gl.Enum, normalized bool, stride int, offset uintptr) {\n\tgl.VertexAttribPointer(gl.Uint(indx), gl.Int(size), gl.Enum(t), gl.GLBool(normalized), gl.Sizei(stride), gl.Pointer(offset))\n}", "func (m PinPolicy) Pointer() *PinPolicy {\n\treturn &m\n}", "func Pointer(v interface{}, q string) Proxy {\n\treturn pointer(New(v), q)\n}", "func (pcct *Pcct) Ptr() unsafe.Pointer {\n\treturn unsafe.Pointer(pcct)\n}", "func NewPointerFromSignal(obj Signal) Pointer {\n\treturn Pointer{base: unsafe.Pointer(obj.getBase())}\n}", "func (node *SimpleNode) Pointer() string {\n\tif node == nil {\n\t\treturn \"\"\n\t}\n\n\treturn node.pointer\n}", "func Uint64Ptr(v uint64) *uint64 {\n\treturn &v\n}", "func IndexPointer(xtype uint32, stride int32, pointer unsafe.Pointer) {\n\tC.glowIndexPointer(gpIndexPointer, (C.GLenum)(xtype), (C.GLsizei)(stride), pointer)\n}" ]
[ "0.72293895", "0.7122128", "0.65920454", "0.65836287", "0.65148", "0.646723", "0.6464707", "0.64520085", "0.64349633", "0.63866067", "0.63731205", "0.63730377", "0.63286304", "0.63032997", "0.6288753", "0.62820727", "0.626142", "0.6250339", "0.6226877", "0.6188186", "0.6183088", "0.6171192", "0.6148881", "0.6137068", "0.611086", "0.6109174", "0.61020446", "0.6087187", "0.60852164", "0.60842854", "0.6070293", "0.60698366", "0.60624725", "0.6060337", "0.60545313", "0.60463345", "0.60358953", "0.60358953", "0.60358953", "0.6009387", "0.60056937", "0.5999549", "0.5999389", "0.5996663", "0.59900373", "0.5981799", "0.5980424", "0.596749", "0.596749", "0.596749", "0.59655976", "0.59655976", "0.5964628", "0.596372", "0.5957717", "0.59549683", "0.5950388", "0.59234864", "0.591818", "0.5915678", "0.5912792", "0.5896654", "0.5893879", "0.58779997", "0.58744216", "0.58729726", "0.5872017", "0.586906", "0.58651376", "0.5863087", "0.5857918", "0.5850834", "0.58472234", "0.5842122", "0.58415264", "0.583888", "0.5831657", "0.5823633", "0.5815881", "0.5815472", "0.5814934", "0.581422", "0.5810764", "0.5810764", "0.580643", "0.5805287", "0.57980895", "0.57980144", "0.5796617", "0.5793304", "0.57921606", "0.57917875", "0.57742584", "0.57648283", "0.57606137", "0.5759647", "0.5756103", "0.57558066", "0.5754493" ]
0.59851897
46
return the polygon stipple pattern
func GetPolygonStipple(mask *uint8) { C.glowGetPolygonStipple(gpGetPolygonStipple, (*C.GLubyte)(unsafe.Pointer(mask))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func PolygonStipple(mask *uint8) {\n\tsyscall.Syscall(gpPolygonStipple, 1, uintptr(unsafe.Pointer(mask)), 0, 0)\n}", "func PolygonStipple(mask *uint8) {\n C.glowPolygonStipple(gpPolygonStipple, (*C.GLubyte)(unsafe.Pointer(mask)))\n}", "func PolygonStipple(mask *uint8) {\n\tC.glowPolygonStipple(gpPolygonStipple, (*C.GLubyte)(unsafe.Pointer(mask)))\n}", "func GetPolygonStipple(mask *uint8) {\n C.glowGetPolygonStipple(gpGetPolygonStipple, (*C.GLubyte)(unsafe.Pointer(mask)))\n}", "func GetPolygonStipple(mask *uint8) {\n\tsyscall.Syscall(gpGetPolygonStipple, 1, uintptr(unsafe.Pointer(mask)), 0, 0)\n}", "func (el *Fill) Polygon() {}", "func LineStipple(factor int32, pattern uint16) {\n C.glowLineStipple(gpLineStipple, (C.GLint)(factor), (C.GLushort)(pattern))\n}", "func LineStipple(factor int32, pattern uint16) {\n\tsyscall.Syscall(gpLineStipple, 2, uintptr(factor), uintptr(pattern), 0)\n}", "func LineStipple(factor int32, pattern uint16) {\n\tC.glowLineStipple(gpLineStipple, (C.GLint)(factor), (C.GLushort)(pattern))\n}", "func PolygonForRing(ctx context.Context, rng [][2]float64) (plyg [][][2]float64) {\n\tif debug {\n\t\tlog.Printf(\"turn ring into polygon.\")\n\t\tlog.Printf(\"ring: %v\", wkt.MustEncode(rng))\n\t}\n\n\tif len(rng) <= 2 {\n\t\treturn nil\n\t}\n\n\t// normalize ring\n\tcmppkg.RotateToLeftMostPoint(rng)\n\n\tpIdx := func(i int) int {\n\t\tif i == 0 {\n\t\t\treturn len(rng) - 1\n\t\t}\n\t\treturn i - 1\n\t}\n\tnIdx := func(i int) int {\n\t\tif i == len(rng)-1 {\n\t\t\treturn 0\n\t\t}\n\t\treturn i + 1\n\t}\n\n\t// Allocate space for the initial ring.\n\tplyg = make([][][2]float64, 1)\n\n\t// Remove bubbles. There are two types of bubbles we have to look for.\n\t// 1. ab … bc, in which case we need to hold on to b.\n\t// It is possible that b is absolutely not necessary. It could lie on the line between a and c, in which case\n\t// we should remove the extra point.\n\t// 2. ab … ba, which case we do not need to have b in the ring.\n\n\t// let's build an index of where the points that we are walking are. That way when we encounter the same\n\t// point we are able to “jump” to that point.\n\tptIndex := map[[2]float64]int{}\n\tvar ok bool\n\tvar idx int\n\n\t// Let's walk the points\n\tfor i := 0; i < len(rng); i++ {\n\t\t// Context has been cancelled.\n\t\tif ctx.Err() != nil {\n\t\t\treturn nil\n\t\t}\n\n\t\t// check to see if we have already seen this point.\n\t\tif idx, ok = ptIndex[rng[i]]; !ok {\n\t\t\tptIndex[rng[i]] = i\n\t\t\tcontinue\n\t\t}\n\n\t\t// ➠ what type of bubble are we dealing with\n\t\tpidx, nidx := pIdx(idx), nIdx(i)\n\n\t\t// clear out ptIndex of the values we are going to cut.\n\t\tfor j := idx; j <= i; j++ {\n\t\t\tdelete(ptIndex, rng[j])\n\t\t}\n\n\t\t// ab…ba ring. So we need to remove all the way to a.\n\t\tif nidx != pidx && cmp.PointEqual(rng[pidx], rng[nidx]) {\n\t\t\tif debug {\n\t\t\t\tlog.Printf(\"bubble type ab…ba: (% 5v)(% 5v) … (% 5v)(% 5v)\", pidx, idx, i, nidx)\n\t\t\t}\n\n\t\t\t// delete the ʽaʼ point as well from point index\n\t\t\tdelete(ptIndex, rng[pidx])\n\n\t\t\tsliver := cut(&rng, pidx, nidx)\n\t\t\t// remove the start ab\n\t\t\tsliver = sliver[2:]\n\t\t\tif len(sliver) >= 3 { // make a copy to free up memory.\n\t\t\t\tps := make([][2]float64, len(sliver))\n\t\t\t\tcopy(ps, sliver)\n\t\t\t\tcmppkg.RotateToLeftMostPoint(ps)\n\t\t\t\tif debug {\n\t\t\t\t\tlog.Printf(\"ring: %v\", wkt.MustEncode(rng))\n\t\t\t\t\tlog.Printf(\"sliver: %v\", wkt.MustEncode(sliver))\n\t\t\t\t}\n\t\t\t\tplyg = append(plyg, ps)\n\t\t\t}\n\n\t\t\tif i = idx - 1; i < 0 {\n\t\t\t\ti = 0\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\n\t\t// do a quick check to see if b is on ac\n\t\tremoveB := planar.IsPointOnLine(cmp, rng[i], rng[pidx], rng[nidx])\n\n\t\t// ab … bc The sliver is going to be from b … just before b. So, the ring will be …abc… or …ac… depending on removeB\n\t\tif debug {\n\t\t\tlog.Printf(\"bubble type ab…bc: (% 5v)(% 5v) … (% 5v)(% 5v) == %t\", pidx, idx, i, nidx, removeB)\n\t\t\tlog.Printf(\"ab..bc: [%v][%v]..[%v][%v]\",\n\t\t\t\twkt.MustEncode(geom.Point(rng[pidx])),\n\t\t\t\twkt.MustEncode(geom.Point(rng[idx])),\n\t\t\t\twkt.MustEncode(geom.Point(rng[i])),\n\t\t\t\twkt.MustEncode(geom.Point(rng[nidx])),\n\t\t\t)\n\t\t\tlog.Printf(\"%v , %v\",\n\t\t\t\twkt.MustEncode(geom.Point(rng[i])),\n\t\t\t\twkt.MustEncode(geom.Line{rng[pidx], rng[nidx]}),\n\t\t\t)\n\t\t}\n\n\t\t// Quick hack to remove extra bridges that are geting left over.\n\t\tsliver := removeBridge(cut(&rng, idx, i))\n\n\t\tif len(sliver) >= 3 {\n\t\t\tcmppkg.RotateToLeftMostPoint(sliver)\n\t\t\tif debug {\n\t\t\t\tlog.Printf(\"ring: %v\", wkt.MustEncode(rng))\n\t\t\t\tlog.Printf(\"sliver: %v\", wkt.MustEncode(sliver))\n\t\t\t}\n\t\t\tplyg = append(plyg, sliver)\n\t\t}\n\n\t\ti = idx\n\t\tif removeB {\n\t\t\tcut(&rng, idx, idx+1)\n\t\t\tif idx == 0 {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\ti = idx - 1\n\t\t}\n\t} // for\n\n\tif len(rng) <= 2 {\n\t\tif debug {\n\t\t\tlog.Println(\"rng:\", rng)\n\t\t\tlog.Println(\"plyg:\", plyg)\n\t\t\tpanic(\"main ring is not correct!\")\n\t\t}\n\t\treturn nil\n\t}\n\n\tplyg[0] = make([][2]float64, len(rng))\n\tcopy(plyg[0], rng)\n\tcmppkg.RotateToLeftMostPoint(plyg[0])\n\treturn plyg\n}", "func (win *window) Polygon(pt []image.Point, fill bool) {\n\tif len(pt) < 2 {\n\t\treturn\n\t}\n\tpts := make([]xgb.Point, len(pt))\n\tfor i, p := range pt {\n\t\tpts[i].X, pts[i].Y = int16(p.X), int16(p.Y)\n\t}\n\tif !fill {\n\t\tif !pt[0].Eq(pt[len(pt)-1]) {\n\t\t\tpts = append(pts, xgb.Point{int16(pt[0].X), int16(pt[0].Y)})\n\t\t}\n\t\txwin.PolyLine(xgb.CoordModeOrigin, win.id, win.gc, pts)\n\t\treturn\n\t}\n\txwin.FillPoly(win.id, win.gc, xgb.PolyShapeComplex, xgb.CoordModeOrigin, pts)\n}", "func (s *VisvalingamSimplifier) Polygon(p orb.Polygon) orb.Polygon {\n\treturn polygon(s, p)\n}", "func (el *Fill) Polyline() {}", "func (poly Polygon) Shift(x float64, y float64) Polygon {\r\n\treplica := poly\r\n\treplicatedArray := make([]linalg.Vector2f64, len(poly.vertices))\r\n\tcopy(replicatedArray, poly.vertices)\r\n\treplica.vertices = replicatedArray\r\n\tfor idx, vertice := range replica.vertices {\r\n\t\treplica.vertices[idx] = vertice.Add(linalg.NewVector2f64(x, y))\r\n\t}\r\n\treturn replica\r\n}", "func (dw *DrawingWand) PopPattern() {\n\tC.MagickDrawPopPattern(dw.dw)\n}", "func clipperPath(p data.Path) clipper.Path {\n\tvar result clipper.Path\n\tfor _, point := range p {\n\t\tresult = append(result, clipperPoint(point))\n\t}\n\n\treturn result\n}", "func (outer outer) Shape() []pos.Rel {\r\n\tl := make([]pos.Rel, 2*(outer.Xlen+outer.Ylen))\r\n\tfor i := 0; i < outer.Xlen; i++ {\r\n\t\tl[i] = pos.Rel{Z: i, W: -1}\r\n\t\tl[outer.Xlen+i] = pos.Rel{Z: i, W: outer.Ylen}\r\n\t}\r\n\tfor j := 0; j < outer.Ylen; j++ {\r\n\t\tl[2*outer.Xlen+j] = pos.Rel{Z: -1, W: j}\r\n\t\tl[2*outer.Xlen+outer.Ylen+j] = pos.Rel{Z: outer.Xlen, W: j}\r\n\t}\r\n\treturn l\r\n}", "func PBLENDW(i, mx, x operand.Op) { ctx.PBLENDW(i, mx, x) }", "func (s *Surface) StylePattern(t DrawType, p Pattern) {\n\tif p.Type == \"\" {\n\t\tp.Type = RepeatXY\n\t}\n\tpat := s.Ctx.Call(\"createPattern\", p.Source.Canvas, p.Type)\n\ts.Ctx.Set(string(t)+\"Style\", pat)\n}", "func (w *SVGWriter) Polygon(p *Polygon) {\n\tw.PolygonWithClass(p, \"\")\n}", "func (dw *DrawingWand) Polygon(coordinates []PointInfo) {\n\tccoordinates := [1 << 16]C.PointInfo{}\n\tfor k, v := range coordinates {\n\t\tccoordinates[k] = C.PointInfo{C.double(v.X), C.double(v.Y)}\n\t}\n\tC.MagickDrawPolygon(dw.dw, C.ulong(len(coordinates)), (*C.PointInfo)(&ccoordinates[0]))\n}", "func (pp *privPath) bestpolygon() {\n\t//int i, j, m, k;\n\tn := len(pp.Pt)\n\tvar (\n\t\tpen = make([]float64, n+1) // penalty vector\n\t\tprev = make([]int, n+1) // best path pointer vector\n\t\tclip0 = make([]int, n) // longest segment pointer, non-cyclic\n\t\tclip1 = make([]int, n+1) // backwards segment pointer, non-cyclic\n\t\tseg0 = make([]int, n+1) // forward segment bounds, m<=n\n\t\tseg1 = make([]int, n+1) // backward segment bounds, m<=n\n\t\tthispen float64\n\t\tbest float64\n\t\tc int\n\t)\n\n\t// calculate clipped paths\n\tfor i := 0; i < n; i++ {\n\t\tc = mod(pp.Lon[mod(i-1, n)]-1, n)\n\t\tif c == i {\n\t\t\tc = mod(i+1, n)\n\t\t}\n\t\tif c < i {\n\t\t\tclip0[i] = n\n\t\t} else {\n\t\t\tclip0[i] = c\n\t\t}\n\t}\n\n\t// calculate backwards path clipping, non-cyclic. j <= clip0[i] iff clip1[j] <= i, for i,j=0..n.\n\tj := 1\n\tfor i := 0; i < n; i++ {\n\t\tfor j <= clip0[i] {\n\t\t\tclip1[j] = i\n\t\t\tj++\n\t\t}\n\t}\n\n\t// calculate seg0[j] = longest path from 0 with j segments\n\ti := 0\n\tfor j = 0; i < n; j++ {\n\t\tseg0[j] = i\n\t\ti = clip0[i]\n\t}\n\tseg0[j] = n\n\tm := j\n\n\t// calculate seg1[j] = longest path to n with m-j segments\n\ti = n\n\tfor j = m; j > 0; j-- {\n\t\tseg1[j] = i\n\t\ti = clip1[i]\n\t}\n\tseg1[0] = 0\n\n\t// now find the shortest path with m segments, based on penalty3\n\t// note: the outer 2 loops jointly have at most n iterations, thus\n\t// the worst-case behavior here is quadratic. In practice, it is\n\t// close to linear since the inner loop tends to be short.\n\tpen[0] = 0\n\tfor j = 1; j <= m; j++ {\n\t\tfor i = seg1[j]; i <= seg0[j]; i++ {\n\t\t\tbest = -1\n\t\t\tfor k := seg0[j-1]; k >= clip1[i]; k-- {\n\t\t\t\tthispen = penalty3(pp, k, i) + pen[k]\n\t\t\t\tif best < 0 || thispen < best {\n\t\t\t\t\tprev[i] = k\n\t\t\t\t\tbest = thispen\n\t\t\t\t}\n\t\t\t}\n\t\t\tpen[i] = best\n\t\t}\n\t}\n\n\tpp.Po = make([]int, m)\n\n\t// read off shortest path\n\tfor i, j = n, m-1; i > 0; j-- {\n\t\ti = prev[i]\n\t\tpp.Po[j] = i\n\t}\n}", "func TestPointInPolygonWithHole(t *testing.T) {\n\tnsw := Contour{ { 150.703782730764544, -35.120441501962588 }, { 150.673521763018982, -35.124264010875365 }, { 150.636418085326397, -35.14446949567072 }, { 150.613055464931449, -35.187267234778744 }, { 150.61304772200009, -35.187269789999931 }, { 150.585948113000143, -35.196221612999878 }, { 150.55396569100003, -35.213555596999953 }, { 150.548106316000087, -35.221368096999939 }, { 150.543711785000028, -35.237969658999901 }, { 150.539724155000044, -35.247735283999944 }, { 150.534434441000087, -35.254978122999958 }, { 150.52312259200005, -35.26433684699991 }, { 150.49952233200014, -35.289727471999925 }, { 150.489105665000068, -35.305759372999916 }, { 150.484629754000082, -35.324314059999921 }, { 150.485036655000101, -35.350192966999927 }, { 150.488454623000109, -35.364515882999925 }, { 150.491872592000107, -35.369398695999891 }, { 150.492035352000073, -35.373142184999921 }, { 150.485036655000101, -35.384372653999918 }, { 150.455821160000028, -35.403985283999887 }, { 150.45093834700009, -35.408461195999863 }, { 150.445485873000052, -35.425469658999916 }, { 150.43295332100007, -35.440687757999896 }, { 150.41920006600003, -35.454522393999895 }, { 150.40992272200009, -35.466892184999921 }, { 150.406993035000028, -35.487399997999972 }, { 150.409353061000104, -35.538506768999952 }, { 150.406504754000082, -35.548760674999883 }, { 150.389659050000148, -35.557875257999882 }, { 150.372325066000087, -35.578871351999908 }, { 150.332530144000089, -35.639418226999908 }, { 150.306895379000025, -35.700290622999916 }, { 150.291677280000044, -35.722832940999893 }, { 150.273692254000025, -35.730645440999893 }, { 150.253428582000083, -35.726250908999901 }, { 150.231781446000014, -35.7133114559999 }, { 150.221934441000087, -35.717705987999892 }, { 150.19092858200014, -35.726820570999877 }, { 150.21810957100007, -35.751153252999941 }, { 150.225840691000087, -35.778903903999918 }, { 150.228688998000109, -35.785251559999949 }, { 150.238536004000025, -35.799493096999953 }, { 150.240977410000085, -35.809747002999885 }, { 150.238617384, -35.833103122999972 }, { 150.232432488000143, -35.843845309999978 }, { 150.21810957100007, -35.850192966999927 }, { 150.19092858200014, -35.857191664999903 }, { 150.189300977000016, -35.85955169099995 }, { 150.152598504000025, -35.893731377999941 }, { 150.149750196000014, -35.898207289999917 }, { 150.150238477000073, -35.9125302059999 }, { 150.160817905000044, -35.939711195999905 }, { 150.163422071000014, -35.956638278999975 }, { 150.156586134, -36.025079033999944 }, { 150.148692254000025, -36.062595309999963 }, { 150.129649285000028, -36.059502862999892 }, { 150.106781446000014, -36.048597914999903 }, { 150.087738477000016, -36.06267669099995 }, { 150.09115644600007, -36.070245049999897 }, { 150.090179884000065, -36.07529062299993 }, { 150.081553582000083, -36.083754164999874 }, { 150.087657097000033, -36.082777601999894 }, { 150.092539910000028, -36.08269622199991 }, { 150.097015821000014, -36.081312757999939 }, { 150.102061394000089, -36.076348565999893 }, { 150.119151238000086, -36.085056247999958 }, { 150.135752800000091, -36.097751559999935 }, { 150.143321160000085, -36.11443450299997 }, { 150.123057488000143, -36.152601820999934 }, { 150.121104363000086, -36.17376067499994 }, { 150.124196811000104, -36.195245049999969 }, { 150.144786004000025, -36.252862237999935 }, { 150.146494988000143, -36.273532809999949 }, { 150.132823113000086, -36.282403252999899 }, { 150.132823113000086, -36.286797783999887 }, { 150.140391472000033, -36.30974700299997 }, { 150.14234459700009, -36.320000908999901 }, { 150.13819420700014, -36.330010674999883 }, { 150.12842858200014, -36.338311455999957 }, { 150.108246290000011, -36.35133228999986 }, { 150.092295769000089, -36.367852471999925 }, { 150.079274936000104, -36.386000257999925 }, { 150.070485873000052, -36.406345309999921 }, { 150.067393425000148, -36.429294528999904 }, { 150.073008660000028, -36.453057549999912 }, { 150.074229363000143, -36.463311455999929 }, { 150.070974155000101, -36.470147393999952 }, { 150.056813998000109, -36.488946221999896 }, { 150.053558790000068, -36.500909112999935 }, { 150.063649936000104, -36.54314544099995 }, { 150.065765821000014, -36.566582940999936 }, { 150.056976759000065, -36.587172132999868 }, { 150.029063347000033, -36.624281507999882 }, { 149.99537194100003, -36.686455987999892 }, { 149.989105665000068, -36.704685153999961 }, { 149.986094597000033, -36.722914320999863 }, { 149.985362175000148, -36.744805596999896 }, { 149.979502800000091, -36.769952080999957 }, { 149.965098504000025, -36.794528903999975 }, { 149.94703209700009, -36.815687757999882 }, { 149.930023634000065, -36.830498955999957 }, { 149.939952019000145, -36.852959893999952 }, { 149.93482506600003, -36.870700778999947 }, { 149.90967858200014, -36.905531507999896 }, { 149.903819207000083, -36.928399346999896 }, { 149.91138756600003, -36.938571872999944 }, { 149.926524285000028, -36.944105726999865 }, { 149.943695509000065, -36.953383070999919 }, { 149.932139519000145, -36.96550872199991 }, { 149.92310631600003, -36.983493747999944 }, { 149.920176629000025, -37.002618096999925 }, { 149.926768425000091, -37.01824309699991 }, { 149.93482506600003, -37.026625257999868 }, { 149.939952019000145, -37.033868096999896 }, { 149.94288170700014, -37.04216887799997 }, { 149.943695509000065, -37.053399346999882 }, { 149.941579623000052, -37.06218840899993 }, { 149.93685957100007, -37.06894296699997 }, { 149.932302280000101, -37.07097747199991 }, { 149.930023634000065, -37.066338799999883 }, { 149.922536655000044, -37.061781507999925 }, { 149.90577233200014, -37.07097747199991 }, { 149.89031009200005, -37.084079684999963 }, { 149.885508660000028, -37.090508721999882 }, { 149.876149936000104, -37.095879815999936 }, { 149.88209069100003, -37.107598565999922 }, { 149.896657748000052, -37.119317315999922 }, { 149.913096550000148, -37.124688408999972 }, { 149.930186394000089, -37.122816664999903 }, { 149.938975457000083, -37.11980559699991 }, { 149.946055535000028, -37.119235934999935 }, { 149.95875084700009, -37.124688408999972 }, { 149.997569207000083, -37.150485934999907 }, { 150.005869988000086, -37.158868096999953 }, { 150.011403842000107, -37.173435153999989 }, { 150.014414910000028, -37.205336195999905 }, { 150.019541863000086, -37.220879815999908 }, { 150.053558790000068, -37.268731377999941 }, { 150.053558790000068, -37.276136976999922 }, { 150.030039910000085, -37.266045830999957 }, { 150.00733483200014, -37.259372653999904 }, { 149.985362175000148, -37.259047132999882 }, { 149.964366082000083, -37.268731377999941 }, { 149.951019727000073, -37.284274997999944 }, { 149.951345248000109, -37.299737237999963 }, { 149.971690300000091, -37.337579033999901 }, { 149.957286004000025, -37.377862237999892 }, { 149.956797722000033, -37.415459893999881 }, { 149.967133009000065, -37.453708591999927 }, { 149.985362175000148, -37.495863539999874 }, { 149.972097201, -37.51026783599994 }, { 149.972075076275758, -37.510291859955558 }, { 149.761070998227979, -37.425105483031643 }, { 149.544185012228468, -37.33756560546837 }, { 149.32729902622907, -37.249974053759516 }, { 149.110413039330297, -37.16238250115147 }, { 148.89357872927485, -37.074790947644061 }, { 148.676641067331389, -36.987199395036015 }, { 148.459806757275942, -36.899607842427969 }, { 148.242972447220609, -36.812016289819923 }, { 148.216824172197789, -36.801681003875245 }, { 148.160393507953927, -36.798373711977206 }, { 148.134658644980391, -36.792792656955527 }, { 148.123289830261456, -36.788245130708219 }, { 148.122979770999621, -36.784214369297715 }, { 148.195120070634744, -36.691196791298893 }, { 148.20617882699122, -36.672489923271286 }, { 148.21403364513651, -36.65130258564578 }, { 148.217030877772743, -36.628151544158442 }, { 148.214860468335928, -36.616886082226955 }, { 148.197962273639973, -36.585466810544887 }, { 148.185404901415097, -36.581591077865923 }, { 148.171400588366396, -36.57957569806004 }, { 148.161788771934198, -36.576630140468595 }, { 148.154812452932333, -36.569860527940989 }, { 148.150316604427644, -36.562470797789103 }, { 148.147836134829788, -36.554512627755557 }, { 148.146905958842979, -36.545830987310268 }, { 148.148766310816598, -36.504283136157866 }, { 148.146595901379669, -36.499632257122983 }, { 148.141893344602124, -36.494671318826292 }, { 148.13724246556734, -36.487798353511195 }, { 148.13403852825553, -36.46650766399749 }, { 148.13098961787648, -36.458859551427125 }, { 148.120809360663486, -36.446870619083782 }, { 148.085204298839244, -36.424856459158235 }, { 148.067582636429563, -36.409715264547771 }, { 148.05993452385917, -36.388217868559735 }, { 148.06303511018217, -36.377624200196664 }, { 148.076264275975575, -36.360364272093463 }, { 148.079261508611694, -36.354421481865899 }, { 148.077814568687359, -36.341915784685696 }, { 148.074352248057721, -36.332355645096925 }, { 148.065567254824941, -36.316542656918131 }, { 148.043398065268434, -36.258510024018349 }, { 148.042312859650735, -36.247657973236883 }, { 148.031925896862617, -36.237115980817876 }, { 148.034303012773762, -36.213344821706087 }, { 148.045465122817063, -36.172572116909677 }, { 148.035956659172427, -36.151746514490057 }, { 147.999473098204817, -36.130559176864452 }, { 147.991411573585253, -36.114177747904733 }, { 147.995752395156842, -36.087047620950941 }, { 148.001333449279173, -36.070304456785252 }, { 147.996889275819456, -36.059245700428733 }, { 147.970947707270852, -36.049013767271546 }, { 147.949346959394632, -36.045293064223486 }, { 147.94066531804998, -36.042605889949897 }, { 147.929296503330875, -36.035371188529552 }, { 147.921286655554752, -36.025345960947334 }, { 147.915963982951439, -36.014183851803338 }, { 147.909711135260636, -36.005037122465211 }, { 147.898600702060662, -36.001213066629674 }, { 147.871780634368804, -35.998370863624459 }, { 147.741297641672759, -35.945970960791229 }, { 147.731634149296497, -35.944575697710235 }, { 147.713805780412372, -35.939408053838662 }, { 147.703418816724934, -35.939769789044547 }, { 147.694737177178979, -35.94390390414182 }, { 147.677942336169849, -35.95687468751683 }, { 147.672361282047575, -35.959665215477273 }, { 147.556761102442977, -35.996355482919199 }, { 147.538932732659475, -35.990671075110029 }, { 147.533661736899603, -35.972429295075969 }, { 147.520122511844477, -35.958011569977984 }, { 147.502294142960352, -35.948813164695807 }, { 147.48369062682093, -35.945970960791229 }, { 147.475629104, -35.948399753545786 }, { 147.457490675853933, -35.957649834772013 }, { 147.446741977859972, -35.959665215477273 }, { 147.419560174962044, -35.957339775510192 }, { 147.408604771393016, -35.959665215477273 }, { 147.396615839049673, -35.966693210423372 }, { 147.382198113951802, -35.97961231875351 }, { 147.369175652834144, -35.994650159677121 }, { 147.360804070751215, -36.008086032844133 }, { 147.348246697626962, -36.062449639539196 }, { 147.340288527593486, -36.076350599800307 }, { 147.324010451421145, -36.061674493183304 }, { 147.306337112167967, -36.051959323963615 }, { 147.286751744097671, -36.049323825634005 }, { 147.272023960637171, -36.049013767271546 }, { 147.266701288033971, -36.0502540016209 }, { 147.215851678811873, -36.061519463552386 }, { 147.184329055241619, -36.064258314669488 }, { 147.165260451108963, -36.059245700428733 }, { 147.154046666020804, -36.047618504190567 }, { 147.144176467170212, -36.040487155557798 }, { 147.134719680368903, -36.039350273995922 }, { 147.124591099099916, -36.04560312258603 }, { 147.097719353665184, -36.07325001347732 }, { 147.093895297829704, -36.080071302848367 }, { 147.091879918023835, -36.086169121807558 }, { 147.082578159954096, -36.097899671732492 }, { 147.079632603261985, -36.103635755485726 }, { 147.079322544899469, -36.112110691255424 }, { 147.081647983967343, -36.118931979727094 }, { 147.084593540659341, -36.125133151473776 }, { 147.086453891733697, -36.131592705638838 }, { 147.090019566050103, -36.156242363893924 }, { 147.093791945941518, -36.168024590662384 }, { 147.100096469576386, -36.179393406280624 }, { 147.108933139652663, -36.189470309806907 }, { 147.11983686727757, -36.197428480739816 }, { 147.132859328395284, -36.203371270068018 }, { 147.147897170218187, -36.207298678691046 }, { 147.176835972302229, -36.206936943485161 }, { 147.18856652222712, -36.209469089926571 }, { 147.196317986685756, -36.22032113980876 }, { 147.106917758947418, -36.241198419071807 }, { 147.093895297829704, -36.23401539449489 }, { 147.05152062437736, -36.19536142319113 }, { 147.040978631958353, -36.173708997572177 }, { 147.038601516047038, -36.138413995009799 }, { 147.044906040581282, -36.107614840952095 }, { 147.01617394407225, -36.093042088021932 }, { 147.005321894190047, -36.090148207273927 }, { 146.990232374624384, -36.089993177643009 }, { 146.973799269720416, -36.09474740946537 }, { 146.966357863624467, -36.103015638760738 }, { 146.962327102213976, -36.111800631993518 }, { 146.956125929568032, -36.117898450952708 }, { 146.931114537006238, -36.115728040616631 }, { 146.906051466701797, -36.099604994075207 }, { 146.87876631101642, -36.087564385787829 }, { 146.84688195224021, -36.097434583739044 }, { 146.829311964875274, -36.080071302848367 }, { 146.82073367721739, -36.073611748683291 }, { 146.812723830340531, -36.06952931042936 }, { 146.785386997811656, -36.068909193704272 }, { 146.771124302344674, -36.066893812999112 }, { 146.75639651888423, -36.046326592997872 }, { 146.735829298883004, -36.04327768261895 }, { 146.710921259108829, -36.044052829874218 }, { 146.68921715664635, -36.042192477900514 }, { 146.670768671037308, -36.031495456749951 }, { 146.638005813117786, -36.000282891542227 }, { 146.624053176013263, -35.993771660533724 }, { 146.545194939794555, -35.993771660533724 }, { 146.535376417787404, -35.990154311172518 }, { 146.514550816267047, -35.976873467636409 }, { 146.504267206266491, -35.97392791094434 }, { 146.49656741775209, -35.97599496759365 }, { 146.484630162252074, -35.98540007845088 }, { 146.473209669790322, -35.987570488787057 }, { 146.464062942250962, -35.98509002008835 }, { 146.453314244256944, -35.980594170684384 }, { 146.442152134213586, -35.978682142766701 }, { 146.431920201056414, -35.983849785738997 }, { 146.385049677300685, -36.047463473660372 }, { 146.369495070640937, -36.052734469420244 }, { 146.301127150897287, -36.046068210579477 }, { 146.266607293791537, -36.035061131066385 }, { 146.243559605091605, -36.035371188529552 }, { 146.229245232781182, -36.037696628496633 }, { 146.222837356358809, -36.039505303626839 }, { 146.216222771663581, -36.055835055743216 }, { 146.198962843560366, -36.050409031251817 }, { 146.182736444231466, -36.042192477900514 }, { 146.15912031475068, -36.037644951653206 }, { 146.09685021396615, -36.033459160611784 }, { 146.076282993964981, -36.025139256271643 }, { 146.062330356860457, -36.017387790913801 }, { 146.03101443886527, -36.013873792541517 }, { 145.99225711477402, -36.01604420287768 }, { 145.98347212064175, -36.014287204590815 }, { 145.973550245847207, -36.006122328083023 }, { 145.96936445480577, -35.996200453288296 }, { 145.96631554622553, -35.985968520131095 }, { 145.959597609641946, -35.977028497267327 }, { 145.939753860052576, -35.96684824005419 }, { 145.918359816851989, -35.964057712993025 }, { 145.896138951351475, -35.967003268785817 }, { 145.829889765100575, -35.983488050533111 }, { 145.786946649068625, -35.979974053959396 }, { 145.744623650660856, -35.964936212136507 }, { 145.572592807711885, -35.843599948778603 }, { 145.536574334737679, -35.829130547736654 }, { 145.493786249235995, -35.828975519005013 }, { 145.450791457259925, -35.839569186468808 }, { 145.375963983351085, -35.872900486068559 }, { 145.334106072936891, -35.876001071492254 }, { 145.291421340222712, -35.869799899745573 }, { 145.250441928951773, -35.857242526621306 }, { 145.217937452551439, -35.851196383606265 }, { 145.120785761253899, -35.851196383606265 }, { 145.008441196703757, -35.867629490308687 }, { 144.993144973361723, -35.873985690786995 }, { 144.976401809196147, -35.88731821116653 }, { 144.971234166223837, -35.894811293206629 }, { 144.96244917209151, -35.953464043730591 }, { 144.939194777816795, -35.987673841574534 }, { 144.933923782056809, -36.005553888201376 }, { 144.945085891200847, -36.025139256271643 }, { 144.960485468229763, -36.039970391620287 }, { 144.977435337970405, -36.060175876415556 }, { 144.985858595997342, -36.081001478835176 }, { 144.975471633209338, -36.097434583739044 }, { 144.956248000344942, -36.099243258869336 }, { 144.910927769301111, -36.081311537197635 }, { 144.890153842825555, -36.076350599800307 }, { 144.872118768366363, -36.083636977164801 }, { 144.830984328364082, -36.118880303782944 }, { 144.810933873199644, -36.131592705638838 }, { 144.766905552449259, -36.136398614304625 }, { 144.740705600582999, -36.13500335122373 }, { 144.729078404344818, -36.127872002590877 }, { 144.728148228358009, -36.116554863815864 }, { 144.724479201254098, -36.111542249575123 }, { 144.717296176677166, -36.110302016125132 }, { 144.705513950808154, -36.110457044856759 }, { 144.705824009170726, -36.106581313077157 }, { 144.698020867868649, -36.097847995788356 }, { 144.681897821327311, -36.083792005896342 }, { 144.662519158832083, -36.078107598986449 }, { 144.620041131692801, -36.075162042294465 }, { 144.602781202690323, -36.066118665743829 }, { 144.49265872621919, -35.959665215477273 }, { 144.45255781499111, -35.947159519196433 }, { 144.435711298038029, -35.932173354216886 }, { 144.422585484132753, -35.913931573283449 }, { 144.37602501784022, -35.814351087432698 }, { 144.353287388402293, -35.777557468102657 }, { 144.324348586318195, -35.754199721040266 }, { 144.312669713236573, -35.751305841191623 }, { 144.288278435601285, -35.750479017992291 }, { 144.27659956341904, -35.747998549293669 }, { 144.268021274861951, -35.741797376647625 }, { 144.253293492300884, -35.724330742969371 }, { 144.238152296791043, -35.717096042448404 }, { 144.218928663926647, -35.700921319063639 }, { 144.215156284934551, -35.696477145603822 }, { 144.21107384668062, -35.689810885863693 }, { 144.201565383035984, -35.686090182815732 }, { 144.190093214630167, -35.683144627022855 }, { 144.180378046309841, -35.679113864713059 }, { 144.150974156232223, -35.650071709841498 }, { 144.100072870166741, -35.586768080282653 }, { 144.064932896336074, -35.569249769761058 }, { 144.020077753285648, -35.563720391582805 }, { 143.99842532766678, -35.55540048544411 }, { 143.980700310670727, -35.523361097936331 }, { 143.960753209193172, -35.513129163879768 }, { 143.899154901077736, -35.491735120679294 }, { 143.858433873124682, -35.470599460796407 }, { 143.835644565943937, -35.45132415108877 }, { 143.826342807874198, -35.445588066436173 }, { 143.816162550661147, -35.440833835513089 }, { 143.79476850835988, -35.436854750046635 }, { 143.788774042188265, -35.431893812649307 }, { 143.784639927090893, -35.425227552909277 }, { 143.776940138576549, -35.41840626353823 }, { 143.733790317868909, -35.401818129003459 }, { 143.65121137860217, -35.389312432722619 }, { 143.595504184770277, -35.360528660269452 }, { 143.585995722024904, -35.352932223643222 }, { 143.578864374291413, -35.342700290485951 }, { 143.576435582436147, -35.329006035799893 }, { 143.581241490202558, -35.32104786576636 }, { 143.587959425886822, -35.314536634757857 }, { 143.591370070572282, -35.305441583162533 }, { 143.591370070572282, -35.286372979029778 }, { 143.58919966023609, -35.267356051740435 }, { 143.581396518934184, -35.24942433006882 }, { 143.564601678824431, -35.233456313158314 }, { 143.547135045146206, -35.225911554274802 }, { 143.459905226844739, -35.209375094784789 }, { 143.437684361344225, -35.199556572777624 }, { 143.418357374793061, -35.188032728427658 }, { 143.406988560074012, -35.178834324044857 }, { 143.383837517687198, -35.14570973091935 }, { 143.363993768097885, -35.107210789246508 }, { 143.350196160624307, -35.066024671501424 }, { 143.34275475542762, -35.006648450565521 }, { 143.333452997357881, -34.979208266148561 }, { 143.331282587021803, -34.962826837188842 }, { 143.333194614939487, -34.955075371830986 }, { 143.342186313747334, -34.935283298185652 }, { 143.344925164864435, -34.924948012240975 }, { 143.343633253671726, -34.91859181086339 }, { 143.340274285829537, -34.911047051979878 }, { 143.337535434712436, -34.902003675429242 }, { 143.338052198649962, -34.890841567184523 }, { 143.341876255384875, -34.886965833606354 }, { 143.349110955905928, -34.882211602683284 }, { 143.35608727400853, -34.875752047618931 }, { 143.359187860331417, -34.866605320079458 }, { 143.358206008400543, -34.85911223714001 }, { 143.353400099734813, -34.845883070447314 }, { 143.351746454235467, -34.835599460446787 }, { 143.358412713975611, -34.81704762115082 }, { 143.360479770624806, -34.806247247212696 }, { 143.355467157283442, -34.801441338546908 }, { 143.328130323855362, -34.784388116018761 }, { 143.314074334862653, -34.782889500150304 }, { 143.296969436390384, -34.791106051702869 }, { 143.282706740024025, -34.792501315683211 }, { 143.276660597908176, -34.770693862231909 }, { 143.268754103818765, -34.75395069806622 }, { 143.251029086822939, -34.748007907838655 }, { 143.23221886600777, -34.743925469584809 }, { 143.221418492069688, -34.733176771590735 }, { 143.156719599429948, -34.702997735157311 }, { 143.142611932694535, -34.699018649690942 }, { 143.05011111863314, -34.692197361219272 }, { 143.012697381678834, -34.672870374668022 }, { 142.995747511938077, -34.668684583626685 }, { 142.988616164204586, -34.682275485525253 }, { 142.981381463683533, -34.690595391663948 }, { 142.96458662267446, -34.681241956750867 }, { 142.934045851934457, -34.658039238420102 }, { 142.921746861228598, -34.658039238420102 }, { 142.914925571857566, -34.66181161921088 }, { 142.909137811260962, -34.667082614970653 }, { 142.880354038807809, -34.679329928833184 }, { 142.878648715565816, -34.674834079429218 }, { 142.869191928764451, -34.66181161921088 }, { 142.864437697841538, -34.652458185197077 }, { 142.860045201225091, -34.629720553960397 }, { 142.855187615715863, -34.62083220794004 }, { 142.847074416051498, -34.614837741768412 }, { 142.817980585235773, -34.603468927049363 }, { 142.807231887241812, -34.591893405856055 }, { 142.799738804302365, -34.585433851690894 }, { 142.790023635082662, -34.582333266267185 }, { 142.779223261144637, -34.584193616442249 }, { 142.757157424375578, -34.593753756930312 }, { 142.745323520763861, -34.595975844109901 }, { 142.726099887899466, -34.603210544630969 }, { 142.716798129829726, -34.62088388388409 }, { 142.708116490283714, -34.665532322258841 }, { 142.705015903960827, -34.670544935600233 }, { 142.700158319350862, -34.675609225785124 }, { 142.695765822734586, -34.681396987281147 }, { 142.693853794816732, -34.689096774896299 }, { 142.696644321877898, -34.705219821437623 }, { 142.69886640815821, -34.712764581220412 }, { 142.700675084187765, -34.712661227533559 }, { 142.694680617116774, -34.730903008467095 }, { 142.687342563808215, -34.735657241188733 }, { 142.676438837082628, -34.733951917946641 }, { 142.659643996073612, -34.733176771590735 }, { 142.64005862890258, -34.734417005940088 }, { 142.630808546777018, -34.736329033857871 }, { 142.629206578121057, -34.743615411222265 }, { 142.632358840388065, -34.761082044900434 }, { 142.643727655107114, -34.778497002634538 }, { 142.642797479120304, -34.787643731073288 }, { 142.625537551017146, -34.795240166800312 }, { 142.608794386851457, -34.781442560225983 }, { 142.594531692283738, -34.777721856278632 }, { 142.578511997630585, -34.777411797916187 }, { 142.556601189593152, -34.774156182861489 }, { 142.547971225991205, -34.770900566907599 }, { 142.536654087216391, -34.764957777579312 }, { 142.526732212421678, -34.75767140111428 }, { 142.522494745436177, -34.750229994118882 }, { 142.52363162699794, -34.727440687837515 }, { 142.522494745436177, -34.719534193748032 }, { 142.494589472126393, -34.665532322258841 }, { 142.471645136214022, -34.643311455859049 }, { 142.467924433166047, -34.634164727420213 }, { 142.468647902678526, -34.62413949983808 }, { 142.470094842602862, -34.617783297561118 }, { 142.470404900965377, -34.611995537863748 }, { 142.467924433166047, -34.603468927049363 }, { 142.458570998252867, -34.591583346594135 }, { 142.394802280700674, -34.546934910018038 }, { 142.385758905049329, -34.533395684962898 }, { 142.371392856794841, -34.444718926737139 }, { 142.372323032781651, -34.42466847067341 }, { 142.378317498953379, -34.403171074685361 }, { 142.398057895755187, -34.373715508663778 }, { 142.40642947783806, -34.356403903717151 }, { 142.396455927099339, -34.338007094052173 }, { 142.38239993720731, -34.335681654984384 }, { 142.365036656316533, -34.340280857175827 }, { 142.344934524308769, -34.342761325874534 }, { 142.328191360143194, -34.334699802154134 }, { 142.305143671443318, -34.317129814789126 }, { 142.284886508905174, -34.297854505980666 }, { 142.272897576561832, -34.280439548246562 }, { 142.265869581615846, -34.277493991554493 }, { 142.258789910725852, -34.272843112519624 }, { 142.255637649357936, -34.263903089655841 }, { 142.253984002959328, -34.240493665750108 }, { 142.248816359987075, -34.218634534556102 }, { 142.238377720355459, -34.19625863942467 }, { 142.235122105300945, -34.191917819651707 }, { 142.224218377675925, -34.190367526939809 }, { 142.199775424995835, -34.192796318795089 }, { 142.190421990982031, -34.188197116603646 }, { 142.175952589940096, -34.171608982068861 }, { 142.164170364070969, -34.16246225363011 }, { 142.150114374178997, -34.158586520951147 }, { 142.128720330978524, -34.157811374595241 }, { 142.122932571281126, -34.159826756199863 }, { 142.105259231128628, -34.16881845500771 }, { 142.094252150716159, -34.170833835712955 }, { 142.077457309707029, -34.136675713813162 }, { 142.051257358740088, -34.115953464181018 }, { 142.025160760560652, -34.112232761133043 }, { 141.971210565015554, -34.123704928639498 }, { 141.960358515133294, -34.124635104626321 }, { 141.94940311066506, -34.124118340688895 }, { 141.938137648733459, -34.121637871990188 }, { 141.926665481226905, -34.116831964223778 }, { 141.905271438026375, -34.126598810286879 }, { 141.887391392298809, -34.13047454206648 }, { 141.840985955637279, -34.13047454206648 }, { 141.817008090950594, -34.126185398237496 }, { 141.770706007975832, -34.10742685246727 }, { 141.748536819318758, -34.103189385481784 }, { 141.706110468123597, -34.11001067485283 }, { 141.665906203208692, -34.127063896481602 }, { 141.630972934952979, -34.149078058205802 }, { 141.60451460156753, -34.170833835712955 }, { 141.581466912867654, -34.201943048133117 }, { 141.567927687812528, -34.213880303633104 }, { 141.546171910305361, -34.218634534556102 }, { 141.53733524022914, -34.215844007494937 }, { 141.529583774871298, -34.208660983817396 }, { 141.524054396693032, -34.198842461810131 }, { 141.518835076877338, -34.176569919466189 }, { 141.510670201268738, -34.172229098793849 }, { 141.459303827209908, -34.169180190213581 }, { 141.44628136609208, -34.164012547241285 }, { 141.415223829616082, -34.145770766307763 }, { 141.408970981925222, -34.140706476122958 }, { 141.391917759397131, -34.133678481176943 }, { 141.368663365122188, -34.13729583053815 }, { 141.345925734784885, -34.143652031915749 }, { 141.330784540174363, -34.144737236634185 }, { 141.321741163623813, -34.136210625819714 }, { 141.309545525705403, -34.114351494625794 }, { 141.299727003698251, -34.11001067485283 }, { 141.285774366593728, -34.105721531023832 }, { 141.274767287080635, -34.096316420166687 }, { 141.265827265116229, -34.086962986152884 }, { 141.258489210908408, -34.082673841424608 }, { 141.252753127155074, -34.081381931131205 }, { 141.241849400429544, -34.076007581684564 }, { 141.234614699009114, -34.07523243622795 }, { 141.228206821687479, -34.077557875295739 }, { 141.21415083179545, -34.086859632466115 }, { 141.206657749755379, -34.089495130795655 }, { 141.190121291164644, -34.089288425220687 }, { 141.181181268300861, -34.084379163767409 }, { 141.173016391792999, -34.077041110458865 }, { 141.158857050012784, -34.069031263581991 }, { 141.134104038970122, -34.063966974296378 }, { 141.045582310375266, -34.062209975110235 }, { 141.024084914387231, -34.051254570641916 }, { 141.000107049700546, -34.018543389565721 }, { 141.000107049700546, -33.711533704516853 }, { 141.000107049700546, -33.397444349477112 }, { 141.000107049700546, -33.083354993538094 }, { 141.000107049700546, -32.769213962554304 }, { 141.000107049700546, -32.455072930671236 }, { 141.000107049700546, -32.141035251575644 }, { 141.000107049700546, -31.826945895636626 }, { 141.000107049700546, -31.512804863753459 }, { 141.000107049700546, -31.198663831870377 }, { 141.000107049700546, -30.88457447683065 }, { 141.000107049700546, -30.570536797735059 }, { 141.000107049700546, -30.256344089008465 }, { 141.000107049700546, -29.942203058024674 }, { 141.000107049700546, -29.628165378929083 }, { 141.000107049700546, -29.314076022990065 }, { 141.000107049700546, -28.999934991106983 }, { 141.485865513382748, -28.999934991106983 }, { 141.971675653008901, -28.999934991106983 }, { 142.457434116691104, -28.999934991106983 }, { 142.943192580373193, -28.999934991106983 }, { 143.428899367212068, -28.999934991106983 }, { 143.914657830894157, -28.999934991106983 }, { 144.400519647363865, -28.999934991106983 }, { 144.886278111045954, -28.999934991106983 }, { 145.37203657382878, -28.999934991106983 }, { 145.857795038410245, -28.999934991106983 }, { 146.343553502092448, -28.999934991106983 }, { 146.829311964875274, -28.999934991106983 }, { 147.315070428557476, -28.999934991106983 }, { 147.800828892239565, -28.999934991106983 }, { 148.286587355921711, -28.999934991106983 }, { 148.772397496447297, -28.999934991106983 }, { 148.966339145635061, -28.999934991106983 }, { 148.971403435819866, -28.999728284632653 }, { 148.998171827567717, -28.977507420031401 }, { 149.024423456277475, -28.968050631431467 }, { 149.046489293046477, -28.954097996125583 }, { 149.063387485943679, -28.936321303185608 }, { 149.073877802418565, -28.915444023922547 }, { 149.083644646683069, -28.869193616891849 }, { 149.093566522377046, -28.848419692215018 }, { 149.11175662736639, -28.839738050870352 }, { 149.134597609591992, -28.836844171021625 }, { 149.157386915873474, -28.829196058451345 }, { 149.178625930342378, -28.818240654882302 }, { 149.196816034432402, -28.805579928970559 }, { 149.204670851678486, -28.795813083806721 }, { 149.210665317850101, -28.784547620975957 }, { 149.217589960008581, -28.775349215693694 }, { 149.237433709598008, -28.768114516072004 }, { 149.249939406778196, -28.760052991452326 }, { 149.260946487190665, -28.75002776476957 }, { 149.265649042169514, -28.740726006699816 }, { 149.275157504914944, -28.739330742719645 }, { 149.377166782620861, -28.691788424496167 }, { 149.399180943445742, -28.689514662271876 }, { 149.416337518761509, -28.68072966903901 }, { 149.432357213414662, -28.661040948181167 }, { 149.469357538319628, -28.594998467505221 }, { 149.484447056086765, -28.583939711148702 }, { 149.577878046134913, -28.572570895530447 }, { 149.595241327025576, -28.56538787185282 }, { 149.610175816060973, -28.577738538502743 }, { 149.614878371039993, -28.593861585943444 }, { 149.620872838110984, -28.607814223047967 }, { 149.639321323720139, -28.613808689219596 }, { 149.675339796694175, -28.610604750109133 }, { 149.690946080197364, -28.614015394794649 }, { 149.704485305252604, -28.627451267062298 }, { 149.730116815438635, -28.613808689219596 }, { 149.741744012576078, -28.609622898178174 }, { 149.759158970310182, -28.606987399848649 }, { 149.870573357974081, -28.604558607993368 }, { 149.907677036565929, -28.608899427766417 }, { 149.95087853411701, -28.600114434533552 }, { 149.971807489324135, -28.599184258546728 }, { 150.003278436050948, -28.602491549545405 }, { 150.019814894641684, -28.600114434533552 }, { 150.058468865945372, -28.583991387992128 }, { 150.1045642442445, -28.573914482667206 }, { 150.158514438890165, -28.554587497914696 }, { 150.173345575138171, -28.552107029215989 }, { 150.236132439860228, -28.556086113783152 }, { 150.258353306260062, -28.553140557990375 }, { 150.276801792768424, -28.542391859996386 }, { 150.298144159125684, -28.534950453000988 }, { 150.322432082174885, -28.543632093446377 }, { 150.361809523890315, -28.572829277948841 }, { 150.417826776084837, -28.625745944719583 }, { 150.449556106129364, -28.646468193452364 }, { 150.492137486056151, -28.654736422747717 }, { 150.62112186108493, -28.65892221378914 }, { 150.664116653061058, -28.654736422747717 }, { 150.752586704812586, -28.63597787877606 }, { 150.793514439239971, -28.635047702789251 }, { 150.834803907973878, -28.647915134276047 }, { 150.87133914578493, -28.670032646989085 }, { 150.890976189799346, -28.678662611490324 }, { 150.933557570625396, -28.687137547260022 }, { 150.948853794866693, -28.69891977312902 }, { 150.963013136646907, -28.712717379703278 }, { 150.979394565606697, -28.723672784171683 }, { 151.000530227288152, -28.727083428857114 }, { 151.02523156058794, -28.728323663206467 }, { 151.045902134276105, -28.73488657015902 }, { 151.054480421933818, -28.754368584542533 }, { 151.053550245947008, -28.788268324923209 }, { 151.055617304395071, -28.810644220054726 }, { 151.062128533604891, -28.828007500945418 }, { 151.07752811063375, -28.836947523809187 }, { 151.10078250490858, -28.840874932432214 }, { 151.140004917892668, -28.84165007878812 }, { 151.160520461050453, -28.846094252247937 }, { 151.181759474620037, -28.856946303029488 }, { 151.219121534731073, -28.883249606783949 }, { 151.287437779429865, -28.920818372469896 }, { 151.301855503628587, -28.984328708503071 }, { 151.309141880093705, -28.999934991106983 }, { 151.302113886047039, -29.010787041888449 }, { 151.302837355559461, -29.018331800771961 }, { 151.306816441025887, -29.024326266943675 }, { 151.309141880093705, -29.030682467421897 }, { 151.309141880093705, -29.06137826869211 }, { 151.315343051840273, -29.099257093639963 }, { 151.318753697425166, -29.105354912599168 }, { 151.335755243109986, -29.115018405874693 }, { 151.342628209324346, -29.122821547176699 }, { 151.344230177980307, -29.137445976950275 }, { 151.343455031624387, -29.153000583610037 }, { 151.350896437720451, -29.165454603946827 }, { 151.376114536756461, -29.170622246919109 }, { 151.384382766051829, -29.168555190269799 }, { 151.405156691628008, -29.159046725725801 }, { 151.422675002149674, -29.154550877221212 }, { 151.42536217732254, -29.148918144456815 }, { 151.426602410772603, -29.142148532828486 }, { 151.430788201814039, -29.136515801862743 }, { 151.45259565706391, -29.126335544649706 }, { 151.461845738290151, -29.120496108108895 }, { 151.467581822043371, -29.107887058141202 }, { 151.48261966386633, -29.085614515797261 }, { 151.492283157141969, -29.078121432857799 }, { 151.514038934649136, -29.066907646870376 }, { 151.520188429552377, -29.06137826869211 }, { 151.520963575908297, -29.05435027374611 }, { 151.520188429552377, -29.027271823635743 }, { 151.526544630929948, -29.008254897245678 }, { 151.549333938110806, -28.970014337091953 }, { 151.554294874608672, -28.955234876788182 }, { 151.55739546093173, -28.954563084119044 }, { 151.564423455877829, -28.950583997753299 }, { 151.572950066692215, -28.948103529953883 }, { 151.580856560781683, -28.946708265973697 }, { 151.587522821421032, -28.9461915020362 }, { 151.593052199599299, -28.944641208425026 }, { 151.610208774915066, -28.933737480800133 }, { 151.616720005024206, -28.931722100994151 }, { 151.623851352757697, -28.930636894477146 }, { 151.637493930600385, -28.930016777752073 }, { 151.643695103246444, -28.928879897089573 }, { 151.654392125296397, -28.925004163511318 }, { 151.664365676035175, -28.91993987422579 }, { 151.700435825852651, -28.896117039170036 }, { 151.715370314888162, -28.888778984962215 }, { 151.720382929128903, -28.88712533856355 }, { 151.725137160051872, -28.886660251469465 }, { 151.729167922361682, -28.888985690537183 }, { 151.762550897006292, -28.947586765117094 }, { 151.766271600953644, -28.951204116276941 }, { 151.770922479089108, -28.954149672069732 }, { 151.776090122960795, -28.956268405562469 }, { 151.782704705857498, -28.957508639911822 }, { 151.796088902181111, -28.957973727905184 }, { 151.802290073927679, -28.958955579836143 }, { 151.806785923331631, -28.961694430953244 }, { 151.81453738779021, -28.968670749955109 }, { 151.819033238093482, -28.971564629803837 }, { 151.824149205121671, -28.973580010509096 }, { 151.829626907355873, -28.971771336278181 }, { 151.833967727128936, -28.965621839576187 }, { 151.840789015600535, -28.938336683890853 }, { 151.847610304971568, -28.925314222773139 }, { 151.852726271999813, -28.919578139019919 }, { 151.858772414115663, -28.916322523965306 }, { 151.864508497868769, -28.914772231253494 }, { 151.870864700145773, -28.914307143260046 }, { 151.876910842261509, -28.914617200723214 }, { 151.897529739106119, -28.918337904670565 }, { 151.920060662969149, -28.9247457819923 }, { 151.924246454010586, -28.925469251504765 }, { 151.928742304313801, -28.925365898717203 }, { 151.933858270442784, -28.924280693998838 }, { 151.964399042082107, -28.910379733737742 }, { 151.975871209588604, -28.906917413108161 }, { 151.982744174903701, -28.906297295483796 }, { 151.99623172401482, -28.906297295483796 }, { 152.000469191899583, -28.905832207490349 }, { 152.004603306097749, -28.904643649984422 }, { 152.008944126769961, -28.902628269279163 }, { 152.013646681748924, -28.899217624593646 }, { 152.017832472790417, -28.894825127977256 }, { 152.021656528625897, -28.888055514550359 }, { 152.024343702899557, -28.882061049277937 }, { 152.025583938148202, -28.875704847900437 }, { 152.025583938148202, -28.850590101651818 }, { 152.026979201229096, -28.845215753104554 }, { 152.038606399265916, -28.820462742061892 }, { 152.042482131045404, -28.80961069128044 }, { 152.044032423757301, -28.795813083806721 }, { 152.043877395025675, -28.771628512645719 }, { 152.046202834093492, -28.746410413609709 }, { 152.04899336205392, -28.735455010940044 }, { 152.051163772390169, -28.73054574948678 }, { 152.054005976294661, -28.725894870451896 }, { 152.063927851089431, -28.713699232533514 }, { 152.066201614213071, -28.70904835349873 }, { 152.06702843561385, -28.703157241013869 }, { 152.064547967814406, -28.695819186806048 }, { 152.058450148855229, -28.686259047217277 }, { 152.030699905176505, -28.657940361858181 }, { 152.007703892420636, -28.639233493830673 }, { 152.003259718960805, -28.63365243880898 }, { 151.998402134350954, -28.625332532670285 }, { 151.99530154802801, -28.613963717951222 }, { 151.993131137691819, -28.598822524240134 }, { 151.985224643602351, -28.585490003860599 }, { 151.958404575910436, -28.560581964086396 }, { 151.959489780628815, -28.549264825311482 }, { 151.961040074240088, -28.544975680583207 }, { 151.963985630932086, -28.54006642002922 }, { 151.967551304349229, -28.536449069768736 }, { 151.973132359370879, -28.533503513076667 }, { 151.98041873583594, -28.531229749953013 }, { 151.991684197767427, -28.530454603597121 }, { 152.000882603049604, -28.528077487685891 }, { 152.010391066694297, -28.524098403118813 }, { 152.035195753681023, -28.507665296416292 }, { 152.040776808702788, -28.501825859875495 }, { 152.050388625134985, -28.489733574744676 }, { 152.163973423134962, -28.437075291291606 }, { 152.172345006117098, -28.43505990968707 }, { 152.187279494253175, -28.434233086487737 }, { 152.21828535388596, -28.437695408016694 }, { 152.225158319201057, -28.437230320023232 }, { 152.232703078084569, -28.434956556899593 }, { 152.24019616102396, -28.431080824220615 }, { 152.24980797835542, -28.423070976444464 }, { 152.267016228715931, -28.405914402028031 }, { 152.29171756381453, -28.38632903395775 }, { 152.300244174628972, -28.383073418903138 }, { 152.31311160701506, -28.380334567786036 }, { 152.357036574977883, -28.376148776744614 }, { 152.386957228992912, -28.365761813956524 }, { 152.403907098733669, -28.355736585475015 }, { 152.408557977768453, -28.351964206482904 }, { 152.412123651185595, -28.348191826591503 }, { 152.414914179145967, -28.343799329975113 }, { 152.429021844982117, -28.308504326513443 }, { 152.432587519298522, -28.304628594733842 }, { 152.447987095428118, -28.297548922944415 }, { 152.478217807805606, -28.269333591272272 }, { 152.487157830669275, -28.263390801943984 }, { 152.492170444910016, -28.261220391607722 }, { 152.500490351048825, -28.261685478701892 }, { 152.510825636993502, -28.265457858593294 }, { 152.528343948414488, -28.278221938191905 }, { 152.534855177624308, -28.287161961055673 }, { 152.537490675953904, -28.295171807932562 }, { 152.536767206441368, -28.307160740275975 }, { 152.537800735215683, -28.312690117554865 }, { 152.539971144652554, -28.31770273179562 }, { 152.543381789338071, -28.321578463575221 }, { 152.547412550748504, -28.324937433215965 }, { 152.552063429783459, -28.327986341796233 }, { 152.56415571491425, -28.332998956036988 }, { 152.574284296183237, -28.333774101493603 }, { 152.583275994991197, -28.331603692056717 }, { 152.594024692985158, -28.324472345222517 }, { 152.598313836814157, -28.318012791057441 }, { 152.600174187888513, -28.311501560048939 }, { 152.600949335143696, -28.305455417933175 }, { 152.603119744580454, -28.300649509267387 }, { 152.606323683691016, -28.296722100644445 }, { 152.610251093213435, -28.293363131902993 }, { 152.616658969635637, -28.293208103171452 }, { 152.622240024657401, -28.293569837477961 }, { 152.647044713442767, -28.316720879864661 }, { 152.655106236263691, -28.321836846892978 }, { 152.75101769411134, -28.358010348598754 }, { 152.757994013113205, -28.358630466223033 }, { 152.766934035077611, -28.358630466223033 }, { 152.781610141694614, -28.355064792805962 }, { 152.798198277128677, -28.353824557557246 }, { 152.825018344820705, -28.343954359606016 }, { 152.830909459104248, -28.339820244508658 }, { 152.84207156824823, -28.329123224257387 }, { 152.84630903523373, -28.32581593146007 }, { 152.854370558954088, -28.32364552202327 }, { 152.865687697729015, -28.322767021980511 }, { 152.887856887285466, -28.324472345222517 }, { 152.908217400812305, -28.328348077002119 }, { 152.934262323047733, -28.339820244508658 }, { 152.944184197842446, -28.341370538119833 }, { 153.000356479667744, -28.344109389236934 }, { 153.004387241977611, -28.345246269899434 }, { 153.010019972943439, -28.346331475517161 }, { 153.066140577925296, -28.34519459395537 }, { 153.075649041569989, -28.346486505148064 }, { 153.081385126222585, -28.348346856222506 }, { 153.091927117742216, -28.353204440832258 }, { 153.098748407113249, -28.354289645550693 }, { 153.10665490120266, -28.35387623529995 }, { 153.116886835259152, -28.350207208196039 }, { 153.131769646551902, -28.338890068521849 }, { 153.153525424958445, -28.307160740275975 }, { 153.162672154296388, -28.303853447478573 }, { 153.166496210132038, -28.301734713985837 }, { 153.170837029904988, -28.296463718225965 }, { 153.175694615414216, -28.288763929711635 }, { 153.180035435187165, -28.276930026999125 }, { 153.192489454624649, -28.259825127627551 }, { 153.217604200873097, -28.258584894177574 }, { 153.232331985232918, -28.260135185990094 }, { 153.312740513264032, -28.242875257886809 }, { 153.324987828025769, -28.241996758743426 }, { 153.354185011628942, -28.2500066056203 }, { 153.38250369698801, -28.237552586182886 }, { 153.472265659932248, -28.175282484499064 }, { 153.506524056145452, -28.149268634823883 }, { 153.531993035000028, -28.177911065999879 }, { 153.562510613000086, -28.174981377999941 }, { 153.570567254000025, -28.1937802059999 }, { 153.581228061000047, -28.246758721999939 }, { 153.591075066000087, -28.268487237999906 }, { 153.590830925000148, -28.318536065999922 }, { 153.563487175000148, -28.460870049999897 }, { 153.562510613000086, -28.504571221999882 }, { 153.576019727000073, -28.589613539999903 }, { 153.584239129000082, -28.608086846999925 }, { 153.620941602000073, -28.644463799999897 }, { 153.630625847000033, -28.661553643999937 }, { 153.629079623000109, -28.667250257999925 }, { 153.619883660000028, -28.686618747999944 }, { 153.61695397200009, -28.695733330999929 }, { 153.617523634000065, -28.705824476999908 }, { 153.619639519000089, -28.717543226999894 }, { 153.619639519000089, -28.729587497999901 }, { 153.601328972000033, -28.76140715899993 }, { 153.600108269000089, -28.78337981599995 }, { 153.610118035000085, -28.826104424999954 }, { 153.605967644000145, -28.867445570999905 }, { 153.582286004000025, -28.896091403999961 }, { 153.521332227000016, -28.943454684999907 }, { 153.475596550000091, -29.000176690999879 }, { 153.453786655000044, -29.035577080999886 }, { 153.438975457000083, -29.073011976999922 }, { 153.436208530000044, -29.085137627999913 }, { 153.435557488000086, -29.093845309999907 }, { 153.44507897200009, -29.140069268999909 }, { 153.445811394000089, -29.151625257999925 }, { 153.441416863000086, -29.155368747999958 }, { 153.422699415000068, -29.161065362999949 }, { 153.418304884000065, -29.164971612999935 }, { 153.415212436000104, -29.175957940999908 }, { 153.370860222000033, -29.241631768999909 }, { 153.350596550000148, -29.281019789999888 }, { 153.340342644000089, -29.322686455999943 }, { 153.349457227000016, -29.36109791499986 }, { 153.366709832000083, -29.38274505 }, { 153.369965040000068, -29.396661065999922 }, { 153.360118035000028, -29.412041924999954 }, { 153.356455925000091, -29.424004815999893 }, { 153.357595248000109, -29.443129164999874 }, { 153.36085045700014, -29.461521091999913 }, { 153.363780144000089, -29.470391533999958 }, { 153.352061394000089, -29.490004164999917 }, { 153.344004754000082, -29.535414320999919 }, { 153.32748457100007, -29.565036716999956 }, { 153.324473504000082, -29.575860283999944 }, { 153.322276238000086, -29.597588799999926 }, { 153.323252800000148, -29.602634372999958 }, { 153.32789147200009, -29.612074476999879 }, { 153.329112175000091, -29.618096612999878 }, { 153.326996290000011, -29.624444268999909 }, { 153.31771894600007, -29.635186455999929 }, { 153.315440300000148, -29.642266533999887 }, { 153.317881707000083, -29.666599216999956 }, { 153.323008660000028, -29.682305596999925 }, { 153.321625196000014, -29.697523695999905 }, { 153.296397332000083, -29.73503997199991 }, { 153.291188998000052, -29.75318775799991 }, { 153.288422071000014, -29.771254164999931 }, { 153.288096550000091, -29.78573984199997 }, { 153.294932488000086, -29.826592705999929 }, { 153.29078209700009, -29.835544528999947 }, { 153.276703321000014, -29.850762627999927 }, { 153.273773634, -29.857354424999912 }, { 153.271494988000143, -29.901625257999868 }, { 153.26734459700009, -29.924248955999929 }, { 153.260101759000065, -29.943291924999926 }, { 153.224457227000016, -29.986911716999927 }, { 153.219899936000104, -30.001397393999881 }, { 153.216563347000033, -30.007256768999923 }, { 153.20240319100003, -30.024672132999896 }, { 153.199229363000143, -30.03582122199991 }, { 153.200043165000068, -30.046563408999916 }, { 153.205577019000089, -30.073663018999952 }, { 153.203786655000101, -30.129164320999905 }, { 153.189626498000109, -30.174981377999899 }, { 153.137217644000089, -30.257989190999893 }, { 153.146494988000086, -30.286065362999892 }, { 153.132090691000087, -30.323825778999947 }, { 153.089366082000083, -30.388929945999891 }, { 153.082530144000089, -30.406426690999936 }, { 153.07545006600003, -30.438409112999935 }, { 153.05054772200009, -30.473321221999953 }, { 153.043142123000109, -30.493829033999916 }, { 153.023070386000143, -30.575506187999935 }, { 153.018077019000089, -30.633070570999891 }, { 153.007985873000109, -30.651625257999896 }, { 153.01099694100003, -30.65536874799993 }, { 152.987796365, -30.734633817999864 }, { 152.999859214000082, -30.751121505 }, { 153.005001433000075, -30.835814295999867 }, { 153.027517123000109, -30.875583591999956 }, { 153.034841342000107, -30.882500908999958 }, { 153.043142123000109, -30.88795338299991 }, { 153.054535352000073, -30.892998955999929 }, { 153.064626498000109, -30.893487237999921 }, { 153.068858269000145, -30.885511976999879 }, { 153.072113477000073, -30.881931247999901 }, { 153.079112175000148, -30.885918877999885 }, { 153.086273634, -30.894707940999936 }, { 153.089366082000083, -30.905694268999895 }, { 153.087901238000143, -30.926690362999935 }, { 153.085703972000033, -30.935153903999975 }, { 153.081879102000016, -30.943942966999941 }, { 153.063327253000068, -30.95959309 }, { 153.046599170000036, -30.992753975999861 }, { 153.039879977000112, -31.029965145999938 }, { 153.045923855000126, -31.046572868999888 }, { 153.057892177000156, -31.05163744799998 }, { 153.060919110000157, -31.06058328099995 }, { 153.05950072100012, -31.077209977999942 }, { 153.041631142000028, -31.0901026559999 }, { 153.008880172000147, -31.122248232999894 }, { 152.980615041000135, -31.16591475599995 }, { 152.97921828900013, -31.199245471999959 }, { 152.959894019000103, -31.24031530499991 }, { 152.970411879000039, -31.255676558999923 }, { 152.976735873000052, -31.320000908999916 }, { 152.93258908100006, -31.366007817999986 }, { 152.917828269000154, -31.395254330999933 }, { 152.916435393000029, -31.420656614999942 }, { 152.934354484000096, -31.438392126999929 }, { 152.93887444500001, -31.454869447999911 }, { 152.940381062000029, -31.46248367099993 }, { 152.934502086000066, -31.482810541999939 }, { 152.906297820000134, -31.505727677999928 }, { 152.876587434000101, -31.532446145999955 }, { 152.845380728000066, -31.569318604999907 }, { 152.849915115000044, -31.599780167999924 }, { 152.836561964, -31.625196178999914 }, { 152.848532646000081, -31.644220246999936 }, { 152.832146959000113, -31.655678984999909 }, { 152.812788211, -31.676031504999898 }, { 152.788948559, -31.704008613999875 }, { 152.803901470000028, -31.719226881999958 }, { 152.800929022000048, -31.733208108999918 }, { 152.77554759700007, -31.754852626999963 }, { 152.744185439000091, -31.793022631999889 }, { 152.736728193000147, -31.827349075999933 }, { 152.747215040000015, -31.842584729999956 }, { 152.715775884000095, -31.859170137999911 }, { 152.69288170700014, -31.88534921699997 }, { 152.664317254000082, -31.903497002999885 }, { 152.609255093, -31.945848262999917 }, { 152.546372674000054, -32.04367920499989 }, { 152.555345725000052, -32.071630892999892 }, { 152.528330925000091, -32.097100518999881 }, { 152.520274285000085, -32.115817966999941 }, { 152.51531009200005, -32.136488539999874 }, { 152.510082932000103, -32.161881366999893 }, { 152.51695268900005, -32.177392201999936 }, { 152.535678945000143, -32.183199517999938 }, { 152.545381547000034, -32.196888175999931 }, { 152.564787202000105, -32.20602140799987 }, { 152.569509311000104, -32.219333591999899 }, { 152.556651238000086, -32.232028903999947 }, { 152.546560092000107, -32.24627044099995 }, { 152.53998826600008, -32.259797076999874 }, { 152.533515488000091, -32.268907929999912 }, { 152.525957109000103, -32.281664572999972 }, { 152.524871412000039, -32.294425623999956 }, { 152.527042902000119, -32.312660829999913 }, { 152.539976734000049, -32.314488747999903 }, { 152.55445397200009, -32.321221612999906 }, { 152.55201256600003, -32.328057549999926 }, { 152.548350457000083, -32.332126559999978 }, { 152.54420006600003, -32.33570728999986 }, { 152.540782097000033, -32.341729424999954 }, { 152.536631707000083, -32.354587497999987 }, { 152.533946160000028, -32.369561455999929 }, { 152.524834943000144, -32.388305282999951 }, { 152.520499171000154, -32.410176412999903 }, { 152.521559969000066, -32.427494067999973 }, { 152.539886296000077, -32.442091940999973 }, { 152.402393537000137, -32.489428571999923 }, { 152.353559882000013, -32.514923347999868 }, { 152.294763900000021, -32.559588894999891 }, { 152.285929613000064, -32.588803960999968 }, { 152.264174174, -32.594256083999895 }, { 152.235861814000089, -32.60699906299989 }, { 152.210669949000078, -32.630738652999909 }, { 152.19198882, -32.652670384999908 }, { 152.187500835000094, -32.669135910999984 }, { 152.2037207300001, -32.686535898999935 }, { 152.219248894000145, -32.697198174999897 }, { 152.205577019000089, -32.697930596999925 }, { 152.202159050000091, -32.695896091999899 }, { 152.194102410000085, -32.687188408999916 }, { 152.190684441000087, -32.684258721999896 }, { 152.186045769000145, -32.683526299999954 }, { 152.17530358200014, -32.685153903999975 }, { 152.170746290000068, -32.684258721999896 }, { 152.145274285000085, -32.66659921699997 }, { 152.136729363000143, -32.663750908999944 }, { 152.135264519000089, -32.666680596999953 }, { 152.116709832000083, -32.680108330999957 }, { 152.109385613000086, -32.684258721999896 }, { 152.060883009, -32.697930596999925 }, { 152.086761915000011, -32.715915622999958 }, { 152.092295769000145, -32.718438408999887 }, { 152.16732832100007, -32.718438408999887 }, { 152.177989129000025, -32.720635674999883 }, { 152.190196160000085, -32.72527434699991 }, { 152.197764519000145, -32.729913018999923 }, { 152.194834832000083, -32.732110283999916 }, { 152.190928582000083, -32.736586195999891 }, { 152.189463738000143, -32.758558851999908 }, { 152.185069207000083, -32.766778252999899 }, { 152.174815300000148, -32.76921965899993 }, { 152.150157097000033, -32.766045830999957 }, { 152.14014733200014, -32.77019622199991 }, { 152.131195509, -32.780857028999932 }, { 152.127614780000044, -32.786553643999923 }, { 152.12256920700014, -32.790134372999901 }, { 152.109385613000086, -32.79412200299997 }, { 152.059428755000056, -32.785253865999934 }, { 151.984926879000056, -32.798745724999904 }, { 151.935188047, -32.815829072999946 }, { 151.875662482000052, -32.842087877999944 }, { 151.856219267000085, -32.855858949999927 }, { 151.834033071000079, -32.864967128999922 }, { 151.799237364000078, -32.893680377999956 }, { 151.803558790000068, -32.919366143999895 }, { 151.787852410000085, -32.931898695999891 }, { 151.772507057000155, -32.94560852899987 }, { 151.748863030000052, -32.957023378999935 }, { 151.737634974000059, -32.972001860999896 }, { 151.736035076, -32.993997022999906 }, { 151.734385613000143, -33.014825127999899 }, { 151.720535107000103, -33.019371191 }, { 151.703800128000012, -33.028521321999904 }, { 151.681488477000016, -33.049981377999956 }, { 151.670583530000044, -33.06113046699997 }, { 151.667002800000148, -33.073337497999944 }, { 151.665688671000055, -33.087343205999986 }, { 151.65291507500001, -33.110432838999955 }, { 151.646739129000025, -33.144707940999936 }, { 151.634938998000052, -33.158623955999914 }, { 151.629567905000044, -33.1742489559999 }, { 151.625987175000148, -33.191582940999893 }, { 151.61226343800007, -33.207550919999917 }, { 151.589994362000141, -33.218937254999943 }, { 151.568952752000087, -33.244224817999878 }, { 151.563181025000063, -33.265009942999953 }, { 151.576019727000016, -33.282484632999953 }, { 151.568957243, -33.292227829999902 }, { 151.53068564400013, -33.319118731999893 }, { 151.515341164000063, -33.327082411999953 }, { 151.515462610000156, -33.316666080999909 }, { 151.532258808000051, -33.302928752999961 }, { 151.540867400000025, -33.277541990999907 }, { 151.516109564000146, -33.261109454 }, { 151.491019552000012, -33.273611379999934 }, { 151.453795174, -33.304198934999903 }, { 151.452726539000139, -33.311514845999923 }, { 151.469737175000091, -33.328220309999963 }, { 151.456392368000024, -33.331088222999938 }, { 151.44270356200002, -33.33421552699987 }, { 151.444021030000044, -33.34563567499994 }, { 151.451228098000058, -33.355460507999894 }, { 151.459956624000085, -33.359611446999892 }, { 151.474545631000069, -33.363001254999872 }, { 151.488356783000143, -33.349290928999949 }, { 151.49529361000009, -33.339586503999911 }, { 151.50499521100005, -33.343743475999958 }, { 151.503829472000064, -33.360010111999927 }, { 151.489999895000096, -33.374534001999933 }, { 151.485846324000022, -33.394024524999921 }, { 151.457227378000141, -33.419805289999971 }, { 151.445300346000124, -33.435971567999985 }, { 151.451997768000069, -33.44498583499994 }, { 151.450910316000147, -33.453114441999972 }, { 151.439065499000094, -33.463584620999953 }, { 151.442760017000069, -33.478269724999876 }, { 151.447521446000053, -33.486453606999959 }, { 151.441595802000052, -33.491283239999888 }, { 151.427875703000097, -33.494413953999924 }, { 151.432465040000011, -33.509535414999903 }, { 151.430023634, -33.515069268999923 }, { 151.428884311000047, -33.521742445999891 }, { 151.424164259000065, -33.527764580999886 }, { 151.414317254000025, -33.532891533999901 }, { 151.406993035000028, -33.534600518999909 }, { 151.38648522200009, -33.533949476999865 }, { 151.380056186000047, -33.536797783999901 }, { 151.362681840000107, -33.532103319999877 }, { 151.353717429000085, -33.541796319999946 }, { 151.343109571000014, -33.548272393999937 }, { 151.320567254000025, -33.551364841999927 }, { 151.308767123000052, -33.547621351999894 }, { 151.28288821700005, -33.562107028999932 }, { 151.266449415000068, -33.561211846999939 }, { 151.25554446700005, -33.546807549999883 }, { 151.245941602000016, -33.521091403999932 }, { 151.230723504000025, -33.534926039999931 }, { 151.226817254000025, -33.554864190999922 }, { 151.23406009200005, -33.573337497999944 }, { 151.252777540000011, -33.582452080999929 }, { 151.248057488000086, -33.590101820999863 }, { 151.241953972000033, -33.595879815999922 }, { 151.234548373000052, -33.599867445999905 }, { 151.225596550000091, -33.602227471999953 }, { 151.225596550000091, -33.609063408999972 }, { 151.249522332000083, -33.606377862999892 }, { 151.28164068000001, -33.572901828999946 }, { 151.299338124000087, -33.570624204999973 }, { 151.309992612000144, -33.578874700999876 }, { 151.298736359000031, -33.606489340999886 }, { 151.291502, -33.636533019999959 }, { 151.295259821000059, -33.648780177999882 }, { 151.30909433000005, -33.637533463999958 }, { 151.317123143, -33.622147940999895 }, { 151.325471543000106, -33.592058408999932 }, { 151.340752909, -33.617465535999898 }, { 151.321341977000088, -33.66781743699994 }, { 151.309178674, -33.692972897999951 }, { 151.305674675000091, -33.720147393999966 }, { 151.304453972000033, -33.726169528999961 }, { 151.311778191000087, -33.736097914999874 }, { 151.31763756600003, -33.74675872199991 }, { 151.317149285000028, -33.757500908999916 }, { 151.308767123000052, -33.781019789999888 }, { 151.304698113000086, -33.825372002999913 }, { 151.291758660000085, -33.829847914999888 }, { 151.279144727000016, -33.827569268999909 }, { 151.266368035000085, -33.828383070999919 }, { 151.252777540000011, -33.842461846999953 }, { 151.246918165000068, -33.856377862999935 }, { 151.247325066000087, -33.867282809999921 }, { 151.254730665000068, -33.874200127999913 }, { 151.269867384000065, -33.876641533999944 }, { 151.280121290000011, -33.870700778999918 }, { 151.28467858200014, -33.860121351999879 }, { 151.287852410000028, -33.856377862999935 }, { 151.294444207000083, -33.870375257999896 }, { 151.29249108200014, -33.891778252999941 }, { 151.273692254000082, -33.937432549999883 }, { 151.281423373000109, -33.952325127999927 }, { 151.267425977000016, -33.981703382999939 }, { 151.260264519000089, -33.992608330999914 }, { 151.249359571000014, -34.003838799999912 }, { 151.241709832000083, -33.998630466999913 }, { 151.213145379000082, -33.966729424999897 }, { 151.201914910000085, -33.95916106599995 }, { 151.182302280000044, -33.963474216999956 }, { 151.177907748000052, -33.973809502999956 }, { 151.176036004000082, -33.987481377999899 }, { 151.164073113000143, -34.000746351999922 }, { 151.145355665000068, -34.00367603999986 }, { 151.12468509200005, -34.0004208309999 }, { 151.106293165000011, -34.000909112999892 }, { 151.095225457000083, -34.014418226999865 }, { 151.125498894000089, -34.020440362999878 }, { 151.132660352000016, -34.024102471999925 }, { 151.143565300000091, -34.032810153999904 }, { 151.149180535000085, -34.031996351999894 }, { 151.160329623000109, -34.01751067499994 }, { 151.221446160000085, -34.024997653999918 }, { 151.232269727000073, -34.024102471999925 }, { 151.231211785000028, -34.040459893999937 }, { 151.22584069100003, -34.047051690999908 }, { 151.179698113000143, -34.047946872999901 }, { 151.17554772200009, -34.046644789999903 }, { 151.172373894000145, -34.047946872999901 }, { 151.164073113000143, -34.054782809999921 }, { 151.158457879000025, -34.062595309999921 }, { 151.155039910000028, -34.070896091999899 }, { 151.149180535000085, -34.078301690999879 }, { 151.136078321000014, -34.082696221999953 }, { 151.146820509000065, -34.086032809999978 }, { 151.170420769000089, -34.086032809999978 }, { 151.17701256600003, -34.089532158999887 }, { 151.177093946000014, -34.100355726999879 }, { 151.168955925000091, -34.110121351999922 }, { 151.150401238000086, -34.124281507999939 }, { 151.112861003000035, -34.149470207999954 }, { 151.096117432000085, -34.162938379999915 }, { 151.068357135000099, -34.175111234999903 }, { 151.027957464, -34.200796095999934 }, { 151.009685907000062, -34.219916955999892 }, { 150.968952516000115, -34.262675193999925 }, { 150.940628388000107, -34.302159102999951 }, { 150.924918127000069, -34.330418880999957 }, { 150.928274759000089, -34.363486780999963 }, { 150.908050376000062, -34.407641400999907 }, { 150.903049563000081, -34.450860842999916 }, { 150.918867505000151, -34.486404115999932 }, { 150.897779177000075, -34.502081173999954 }, { 150.887217644000089, -34.530205987999906 }, { 150.873301629000025, -34.545505466999956 }, { 150.854991082000083, -34.5414364559999 }, { 150.867035352000016, -34.522556247999958 }, { 150.86085045700014, -34.513278903999918 }, { 150.848155144000145, -34.510511976999865 }, { 150.84131920700014, -34.510674737999921 }, { 150.835134311000047, -34.513767184999907 }, { 150.800954623000052, -34.548272393999923 }, { 150.805837436000047, -34.557224216999941 }, { 150.812185092000107, -34.561211846999925 }, { 150.820323113000086, -34.562107028999918 }, { 150.842051629000082, -34.561700127999913 }, { 150.854991082000083, -34.569919528999904 }, { 150.88233483200014, -34.592217705999943 }, { 150.897227410000028, -34.601169528999975 }, { 150.917002800000091, -34.60344817499994 }, { 150.883636915000068, -34.607028903999918 }, { 150.870453321000014, -34.626722914999874 }, { 150.847911004000025, -34.751722914999931 }, { 150.83375084700009, -34.782403252999927 }, { 150.810557488000143, -34.795179945999877 }, { 150.779307488000086, -34.806898695999877 }, { 150.753428582000083, -34.858086846999925 }, { 150.728688998000109, -34.86980559699991 }, { 150.727061394000089, -34.874118747999916 }, { 150.738780144000089, -34.883721612999892 }, { 150.754079623000052, -34.893324476999865 }, { 150.76319420700014, -34.897637627999956 }, { 150.778493686000104, -34.901625257999939 }, { 150.77686608200014, -34.910088799999883 }, { 150.764008009, -34.917413018999895 }, { 150.74577884200005, -34.918145440999922 }, { 150.754161004000025, -34.9281552059999 }, { 150.776133660000028, -34.935804945999934 }, { 150.787364129000025, -34.945489190999893 }, { 150.779795769000089, -34.952894789999888 }, { 150.787364129000025, -34.959730726999894 }, { 150.776215040000011, -34.986993096999896 }, { 150.796153191000087, -35.004001559999949 }, { 150.827647332000083, -35.012627862999949 }, { 150.851573113000086, -35.014906507999925 }, { 150.854991082000083, -35.021661065999965 }, { 150.843597852000016, -35.054131768999952 }, { 150.844737175000148, -35.077243747999901 }, { 150.832855665000011, -35.09091562299993 }, { 150.807139519000145, -35.110528252999899 }, { 150.798838738000086, -35.099379164999888 }, { 150.786143425000091, -35.089125257999953 }, { 150.778086785000085, -35.0785458309999 }, { 150.783539259, -35.066176039999874 }, { 150.792816602000073, -35.050469658999901 }, { 150.781260613000143, -35.028578382999868 }, { 150.787364129000025, -35.014906507999925 }, { 150.767588738000086, -35.007256768999895 }, { 150.748789910000028, -35.01034921699997 }, { 150.731455925000148, -35.017266533999887 }, { 150.695567254000082, -35.026136976999922 }, { 150.68702233200014, -35.038995049999954 }, { 150.677500847000033, -35.075778903999932 }, { 150.69695071700005, -35.079766533999916 }, { 150.701508009, -35.092868747999972 }, { 150.700938347000033, -35.109470309999935 }, { 150.703782730764544, -35.120441501962588 } } \n\tact := Contour{ { 148.848258498231132, -35.750479017992291 }, { 148.853529493990891, -35.749083754012034 }, { 148.857301873882307, -35.74567311022588 }, { 148.862572869642179, -35.736216322525223 }, { 148.865983515226958, -35.73208220742795 }, { 148.870324334999964, -35.728929946060106 }, { 148.876525506746702, -35.727586358023984 }, { 148.883036736855843, -35.727896417285805 }, { 148.887842644622367, -35.733167413045663 }, { 148.891408318938772, -35.742469171115332 }, { 148.892183466193956, -35.762261243861289 }, { 148.901020136270176, -35.818743584948464 }, { 148.907531366379487, -35.839775892943138 }, { 148.922724236933959, -35.867629490308687 }, { 148.92964887909244, -35.875794365917287 }, { 148.933627963659603, -35.879256686546867 }, { 148.93781375470104, -35.882357272869839 }, { 148.948149042444243, -35.887886651048106 }, { 149.006078322556561, -35.903699640126263 }, { 149.030314568762321, -35.917497246700592 }, { 149.035998976571477, -35.919357598674225 }, { 149.042406853893169, -35.919615981092619 }, { 149.04798790891482, -35.917962334693954 }, { 149.052483759218092, -35.914861749270258 }, { 149.055739374272662, -35.910624282284786 }, { 149.058529901333827, -35.905818372719722 }, { 149.065041132342344, -35.890832207740175 }, { 149.07108727355876, -35.881582126513933 }, { 149.074187859881818, -35.877551365103429 }, { 149.078063592560795, -35.873830662055369 }, { 149.082611118808074, -35.870575047000841 }, { 149.092222935240272, -35.864890639191586 }, { 149.096718784644167, -35.861479993606793 }, { 149.09950931170539, -35.856829115471285 }, { 149.101524693309955, -35.851558118812136 }, { 149.104625278733636, -35.839724216099711 }, { 149.106485629807992, -35.82742522629313 }, { 149.105968865870466, -35.815281263419607 }, { 149.096408726281709, -35.776678968959274 }, { 149.095168491932327, -35.765155124609294 }, { 149.095943638288247, -35.759470716800124 }, { 149.104005162008548, -35.731152031441042 }, { 149.104625278733636, -35.715028984899718 }, { 149.099664341336336, -35.684694919734739 }, { 149.087261997842973, -35.63038298898374 }, { 149.086435174643555, -35.610022474557567 }, { 149.090465936054159, -35.599790540501004 }, { 149.09780399026198, -35.591418958418245 }, { 149.126329380296625, -35.581962171616865 }, { 149.131393671380806, -35.571885268090597 }, { 149.130980259331409, -35.566200860281427 }, { 149.133254021555786, -35.557674248567665 }, { 149.14668989472284, -35.52873544648368 }, { 149.150255569039246, -35.518193454963949 }, { 149.151340773757624, -35.509976901612731 }, { 149.147930129072165, -35.498918145256212 }, { 149.146069777997809, -35.494990736633184 }, { 149.141212193388071, -35.488066094474661 }, { 149.137388136653158, -35.476128838974674 }, { 149.137801547803178, -35.473648370276052 }, { 149.139661899776797, -35.468532403247821 }, { 149.147930129072165, -35.456130059754457 }, { 149.146793248409608, -35.450445651945287 }, { 149.144932896436046, -35.445071302498576 }, { 149.141728957325427, -35.439128513170374 }, { 149.142659133312407, -35.434529310978931 }, { 149.14555301316102, -35.430343519937509 }, { 149.149583774571568, -35.427087904882896 }, { 149.154441360080682, -35.424142348190827 }, { 149.160332472565528, -35.418199557963263 }, { 149.166843702674669, -35.410086358298727 }, { 149.182346633390353, -35.386263523243059 }, { 149.186687453163415, -35.380682468221281 }, { 149.194955683357989, -35.374791354837143 }, { 149.200330031905423, -35.37262094450098 }, { 149.2064278508646, -35.371845798145074 }, { 149.212473992980392, -35.372724298187748 }, { 149.227356806071725, -35.380992526583825 }, { 149.23278283056311, -35.382542820194999 }, { 149.240430943133504, -35.380062350597015 }, { 149.244410027700667, -35.377116794804223 }, { 149.249112583578892, -35.366523125541789 }, { 149.263220250314248, -35.352002047656327 }, { 149.269163038743159, -35.350451755843793 }, { 149.277482944882024, -35.349056491863621 }, { 149.349933302879606, -35.359495130595775 }, { 149.359545119311804, -35.359030042602413 }, { 149.367038202251194, -35.357324721158889 }, { 149.381765984812318, -35.3487464326018 }, { 149.393083123587246, -35.340684909780776 }, { 149.404400263261437, -35.330194594205196 }, { 149.404400263261437, -35.327920831081457 }, { 149.403004999281279, -35.324045099301856 }, { 149.398509148978007, -35.321357924128904 }, { 149.349623243617771, -35.299912204984281 }, { 149.326988966967235, -35.292625827619872 }, { 149.318307325622584, -35.29148894605801 }, { 149.308643834145528, -35.289163506990207 }, { 149.258104283286002, -35.269268079658119 }, { 149.249422641941408, -35.263945407954196 }, { 149.244720086962388, -35.258364352932503 }, { 149.244720086962388, -35.252628269179283 }, { 149.245805291680767, -35.24694386226939 }, { 149.245805291680767, -35.241259453560943 }, { 149.242549676626311, -35.233766370621481 }, { 149.237123651235549, -35.230510755566868 }, { 149.229217157146081, -35.229167168430038 }, { 149.220380487069747, -35.228702080436676 }, { 149.2064278508646, -35.224619643082022 }, { 149.199296503131109, -35.220898940034047 }, { 149.194645624096268, -35.216041354524918 }, { 149.192888624910097, -35.211493829176902 }, { 149.192165155397618, -35.206429538992012 }, { 149.192165155397618, -35.203122247094058 }, { 149.193198684171932, -35.192166842625653 }, { 149.192268508185123, -35.185655612516442 }, { 149.189167921862065, -35.178524264782951 }, { 149.184982130820629, -35.174028416278347 }, { 149.180021194322649, -35.170514417906062 }, { 149.127104526652545, -35.139508559172683 }, { 149.102919957290226, -35.145864759650891 }, { 148.939519077943032, -35.248700859656978 }, { 148.82598595588712, -35.313348077252016 }, { 148.817717726591809, -35.320479424985507 }, { 148.809346145408199, -35.330866387773611 }, { 148.804178502435889, -35.339599705062341 }, { 148.801904739312249, -35.346162612014979 }, { 148.801284620788579, -35.352467135649775 }, { 148.802214796775388, -35.358099866615518 }, { 148.803765090386662, -35.363629245693147 }, { 148.805728795147786, -35.368848564609578 }, { 148.805728795147786, -35.376186618817414 }, { 148.803455032024146, -35.386263523243059 }, { 148.790225865331365, -35.414272148440872 }, { 148.7874353382702, -35.422592054579653 }, { 148.783869663953794, -35.447758477671613 }, { 148.770537143574302, -35.493285414290384 }, { 148.769451938855866, -35.506462905039015 }, { 148.772397496447297, -35.549457696115738 }, { 148.78262942870515, -35.581083672473483 }, { 148.782164340711688, -35.591987400098461 }, { 148.780148960905819, -35.606921889133858 }, { 148.773069289116449, -35.63741098392974 }, { 148.772552525178867, -35.651105238615884 }, { 148.774877964246571, -35.659786879061272 }, { 148.788365513357746, -35.669760430699341 }, { 148.791156041318231, -35.674307956946649 }, { 148.791879510830654, -35.679785659180851 }, { 148.790949334843845, -35.6922913545624 }, { 148.791156041318231, -35.699422703195182 }, { 148.792706334030072, -35.707277519541861 }, { 148.795600213878799, -35.712703545832014 }, { 148.799372592870839, -35.717096042448404 }, { 148.832445510052196, -35.744174492558756 }, { 148.837251417818607, -35.747275078881742 }, { 148.842522413578479, -35.749393813273855 }, { 148.848258498231132, -35.750479017992291 } } \n\t\n\t// Look at two contours\n\tcanberra := Point{149.128684300000030000, -35.2819998}\n\tisnsw := nsw.Contains(canberra)\n\tisact := act.Contains(canberra)\n\tif isnsw != true || isact != true {\n\t\tt.Error(\"Canberra should be in NSW and also in the sub-contour ACT state\")\n\t}\t\n\n\t// Using NSW as a multi-contour polygon\n\tnswmulti := Polygon{ Contour{ { 150.703782730764544, -35.120441501962588 }, { 150.673521763018982, -35.124264010875365 }, { 150.636418085326397, -35.14446949567072 }, { 150.613055464931449, -35.187267234778744 }, { 150.61304772200009, -35.187269789999931 }, { 150.585948113000143, -35.196221612999878 }, { 150.55396569100003, -35.213555596999953 }, { 150.548106316000087, -35.221368096999939 }, { 150.543711785000028, -35.237969658999901 }, { 150.539724155000044, -35.247735283999944 }, { 150.534434441000087, -35.254978122999958 }, { 150.52312259200005, -35.26433684699991 }, { 150.49952233200014, -35.289727471999925 }, { 150.489105665000068, -35.305759372999916 }, { 150.484629754000082, -35.324314059999921 }, { 150.485036655000101, -35.350192966999927 }, { 150.488454623000109, -35.364515882999925 }, { 150.491872592000107, -35.369398695999891 }, { 150.492035352000073, -35.373142184999921 }, { 150.485036655000101, -35.384372653999918 }, { 150.455821160000028, -35.403985283999887 }, { 150.45093834700009, -35.408461195999863 }, { 150.445485873000052, -35.425469658999916 }, { 150.43295332100007, -35.440687757999896 }, { 150.41920006600003, -35.454522393999895 }, { 150.40992272200009, -35.466892184999921 }, { 150.406993035000028, -35.487399997999972 }, { 150.409353061000104, -35.538506768999952 }, { 150.406504754000082, -35.548760674999883 }, { 150.389659050000148, -35.557875257999882 }, { 150.372325066000087, -35.578871351999908 }, { 150.332530144000089, -35.639418226999908 }, { 150.306895379000025, -35.700290622999916 }, { 150.291677280000044, -35.722832940999893 }, { 150.273692254000025, -35.730645440999893 }, { 150.253428582000083, -35.726250908999901 }, { 150.231781446000014, -35.7133114559999 }, { 150.221934441000087, -35.717705987999892 }, { 150.19092858200014, -35.726820570999877 }, { 150.21810957100007, -35.751153252999941 }, { 150.225840691000087, -35.778903903999918 }, { 150.228688998000109, -35.785251559999949 }, { 150.238536004000025, -35.799493096999953 }, { 150.240977410000085, -35.809747002999885 }, { 150.238617384, -35.833103122999972 }, { 150.232432488000143, -35.843845309999978 }, { 150.21810957100007, -35.850192966999927 }, { 150.19092858200014, -35.857191664999903 }, { 150.189300977000016, -35.85955169099995 }, { 150.152598504000025, -35.893731377999941 }, { 150.149750196000014, -35.898207289999917 }, { 150.150238477000073, -35.9125302059999 }, { 150.160817905000044, -35.939711195999905 }, { 150.163422071000014, -35.956638278999975 }, { 150.156586134, -36.025079033999944 }, { 150.148692254000025, -36.062595309999963 }, { 150.129649285000028, -36.059502862999892 }, { 150.106781446000014, -36.048597914999903 }, { 150.087738477000016, -36.06267669099995 }, { 150.09115644600007, -36.070245049999897 }, { 150.090179884000065, -36.07529062299993 }, { 150.081553582000083, -36.083754164999874 }, { 150.087657097000033, -36.082777601999894 }, { 150.092539910000028, -36.08269622199991 }, { 150.097015821000014, -36.081312757999939 }, { 150.102061394000089, -36.076348565999893 }, { 150.119151238000086, -36.085056247999958 }, { 150.135752800000091, -36.097751559999935 }, { 150.143321160000085, -36.11443450299997 }, { 150.123057488000143, -36.152601820999934 }, { 150.121104363000086, -36.17376067499994 }, { 150.124196811000104, -36.195245049999969 }, { 150.144786004000025, -36.252862237999935 }, { 150.146494988000143, -36.273532809999949 }, { 150.132823113000086, -36.282403252999899 }, { 150.132823113000086, -36.286797783999887 }, { 150.140391472000033, -36.30974700299997 }, { 150.14234459700009, -36.320000908999901 }, { 150.13819420700014, -36.330010674999883 }, { 150.12842858200014, -36.338311455999957 }, { 150.108246290000011, -36.35133228999986 }, { 150.092295769000089, -36.367852471999925 }, { 150.079274936000104, -36.386000257999925 }, { 150.070485873000052, -36.406345309999921 }, { 150.067393425000148, -36.429294528999904 }, { 150.073008660000028, -36.453057549999912 }, { 150.074229363000143, -36.463311455999929 }, { 150.070974155000101, -36.470147393999952 }, { 150.056813998000109, -36.488946221999896 }, { 150.053558790000068, -36.500909112999935 }, { 150.063649936000104, -36.54314544099995 }, { 150.065765821000014, -36.566582940999936 }, { 150.056976759000065, -36.587172132999868 }, { 150.029063347000033, -36.624281507999882 }, { 149.99537194100003, -36.686455987999892 }, { 149.989105665000068, -36.704685153999961 }, { 149.986094597000033, -36.722914320999863 }, { 149.985362175000148, -36.744805596999896 }, { 149.979502800000091, -36.769952080999957 }, { 149.965098504000025, -36.794528903999975 }, { 149.94703209700009, -36.815687757999882 }, { 149.930023634000065, -36.830498955999957 }, { 149.939952019000145, -36.852959893999952 }, { 149.93482506600003, -36.870700778999947 }, { 149.90967858200014, -36.905531507999896 }, { 149.903819207000083, -36.928399346999896 }, { 149.91138756600003, -36.938571872999944 }, { 149.926524285000028, -36.944105726999865 }, { 149.943695509000065, -36.953383070999919 }, { 149.932139519000145, -36.96550872199991 }, { 149.92310631600003, -36.983493747999944 }, { 149.920176629000025, -37.002618096999925 }, { 149.926768425000091, -37.01824309699991 }, { 149.93482506600003, -37.026625257999868 }, { 149.939952019000145, -37.033868096999896 }, { 149.94288170700014, -37.04216887799997 }, { 149.943695509000065, -37.053399346999882 }, { 149.941579623000052, -37.06218840899993 }, { 149.93685957100007, -37.06894296699997 }, { 149.932302280000101, -37.07097747199991 }, { 149.930023634000065, -37.066338799999883 }, { 149.922536655000044, -37.061781507999925 }, { 149.90577233200014, -37.07097747199991 }, { 149.89031009200005, -37.084079684999963 }, { 149.885508660000028, -37.090508721999882 }, { 149.876149936000104, -37.095879815999936 }, { 149.88209069100003, -37.107598565999922 }, { 149.896657748000052, -37.119317315999922 }, { 149.913096550000148, -37.124688408999972 }, { 149.930186394000089, -37.122816664999903 }, { 149.938975457000083, -37.11980559699991 }, { 149.946055535000028, -37.119235934999935 }, { 149.95875084700009, -37.124688408999972 }, { 149.997569207000083, -37.150485934999907 }, { 150.005869988000086, -37.158868096999953 }, { 150.011403842000107, -37.173435153999989 }, { 150.014414910000028, -37.205336195999905 }, { 150.019541863000086, -37.220879815999908 }, { 150.053558790000068, -37.268731377999941 }, { 150.053558790000068, -37.276136976999922 }, { 150.030039910000085, -37.266045830999957 }, { 150.00733483200014, -37.259372653999904 }, { 149.985362175000148, -37.259047132999882 }, { 149.964366082000083, -37.268731377999941 }, { 149.951019727000073, -37.284274997999944 }, { 149.951345248000109, -37.299737237999963 }, { 149.971690300000091, -37.337579033999901 }, { 149.957286004000025, -37.377862237999892 }, { 149.956797722000033, -37.415459893999881 }, { 149.967133009000065, -37.453708591999927 }, { 149.985362175000148, -37.495863539999874 }, { 149.972097201, -37.51026783599994 }, { 149.972075076275758, -37.510291859955558 }, { 149.761070998227979, -37.425105483031643 }, { 149.544185012228468, -37.33756560546837 }, { 149.32729902622907, -37.249974053759516 }, { 149.110413039330297, -37.16238250115147 }, { 148.89357872927485, -37.074790947644061 }, { 148.676641067331389, -36.987199395036015 }, { 148.459806757275942, -36.899607842427969 }, { 148.242972447220609, -36.812016289819923 }, { 148.216824172197789, -36.801681003875245 }, { 148.160393507953927, -36.798373711977206 }, { 148.134658644980391, -36.792792656955527 }, { 148.123289830261456, -36.788245130708219 }, { 148.122979770999621, -36.784214369297715 }, { 148.195120070634744, -36.691196791298893 }, { 148.20617882699122, -36.672489923271286 }, { 148.21403364513651, -36.65130258564578 }, { 148.217030877772743, -36.628151544158442 }, { 148.214860468335928, -36.616886082226955 }, { 148.197962273639973, -36.585466810544887 }, { 148.185404901415097, -36.581591077865923 }, { 148.171400588366396, -36.57957569806004 }, { 148.161788771934198, -36.576630140468595 }, { 148.154812452932333, -36.569860527940989 }, { 148.150316604427644, -36.562470797789103 }, { 148.147836134829788, -36.554512627755557 }, { 148.146905958842979, -36.545830987310268 }, { 148.148766310816598, -36.504283136157866 }, { 148.146595901379669, -36.499632257122983 }, { 148.141893344602124, -36.494671318826292 }, { 148.13724246556734, -36.487798353511195 }, { 148.13403852825553, -36.46650766399749 }, { 148.13098961787648, -36.458859551427125 }, { 148.120809360663486, -36.446870619083782 }, { 148.085204298839244, -36.424856459158235 }, { 148.067582636429563, -36.409715264547771 }, { 148.05993452385917, -36.388217868559735 }, { 148.06303511018217, -36.377624200196664 }, { 148.076264275975575, -36.360364272093463 }, { 148.079261508611694, -36.354421481865899 }, { 148.077814568687359, -36.341915784685696 }, { 148.074352248057721, -36.332355645096925 }, { 148.065567254824941, -36.316542656918131 }, { 148.043398065268434, -36.258510024018349 }, { 148.042312859650735, -36.247657973236883 }, { 148.031925896862617, -36.237115980817876 }, { 148.034303012773762, -36.213344821706087 }, { 148.045465122817063, -36.172572116909677 }, { 148.035956659172427, -36.151746514490057 }, { 147.999473098204817, -36.130559176864452 }, { 147.991411573585253, -36.114177747904733 }, { 147.995752395156842, -36.087047620950941 }, { 148.001333449279173, -36.070304456785252 }, { 147.996889275819456, -36.059245700428733 }, { 147.970947707270852, -36.049013767271546 }, { 147.949346959394632, -36.045293064223486 }, { 147.94066531804998, -36.042605889949897 }, { 147.929296503330875, -36.035371188529552 }, { 147.921286655554752, -36.025345960947334 }, { 147.915963982951439, -36.014183851803338 }, { 147.909711135260636, -36.005037122465211 }, { 147.898600702060662, -36.001213066629674 }, { 147.871780634368804, -35.998370863624459 }, { 147.741297641672759, -35.945970960791229 }, { 147.731634149296497, -35.944575697710235 }, { 147.713805780412372, -35.939408053838662 }, { 147.703418816724934, -35.939769789044547 }, { 147.694737177178979, -35.94390390414182 }, { 147.677942336169849, -35.95687468751683 }, { 147.672361282047575, -35.959665215477273 }, { 147.556761102442977, -35.996355482919199 }, { 147.538932732659475, -35.990671075110029 }, { 147.533661736899603, -35.972429295075969 }, { 147.520122511844477, -35.958011569977984 }, { 147.502294142960352, -35.948813164695807 }, { 147.48369062682093, -35.945970960791229 }, { 147.475629104, -35.948399753545786 }, { 147.457490675853933, -35.957649834772013 }, { 147.446741977859972, -35.959665215477273 }, { 147.419560174962044, -35.957339775510192 }, { 147.408604771393016, -35.959665215477273 }, { 147.396615839049673, -35.966693210423372 }, { 147.382198113951802, -35.97961231875351 }, { 147.369175652834144, -35.994650159677121 }, { 147.360804070751215, -36.008086032844133 }, { 147.348246697626962, -36.062449639539196 }, { 147.340288527593486, -36.076350599800307 }, { 147.324010451421145, -36.061674493183304 }, { 147.306337112167967, -36.051959323963615 }, { 147.286751744097671, -36.049323825634005 }, { 147.272023960637171, -36.049013767271546 }, { 147.266701288033971, -36.0502540016209 }, { 147.215851678811873, -36.061519463552386 }, { 147.184329055241619, -36.064258314669488 }, { 147.165260451108963, -36.059245700428733 }, { 147.154046666020804, -36.047618504190567 }, { 147.144176467170212, -36.040487155557798 }, { 147.134719680368903, -36.039350273995922 }, { 147.124591099099916, -36.04560312258603 }, { 147.097719353665184, -36.07325001347732 }, { 147.093895297829704, -36.080071302848367 }, { 147.091879918023835, -36.086169121807558 }, { 147.082578159954096, -36.097899671732492 }, { 147.079632603261985, -36.103635755485726 }, { 147.079322544899469, -36.112110691255424 }, { 147.081647983967343, -36.118931979727094 }, { 147.084593540659341, -36.125133151473776 }, { 147.086453891733697, -36.131592705638838 }, { 147.090019566050103, -36.156242363893924 }, { 147.093791945941518, -36.168024590662384 }, { 147.100096469576386, -36.179393406280624 }, { 147.108933139652663, -36.189470309806907 }, { 147.11983686727757, -36.197428480739816 }, { 147.132859328395284, -36.203371270068018 }, { 147.147897170218187, -36.207298678691046 }, { 147.176835972302229, -36.206936943485161 }, { 147.18856652222712, -36.209469089926571 }, { 147.196317986685756, -36.22032113980876 }, { 147.106917758947418, -36.241198419071807 }, { 147.093895297829704, -36.23401539449489 }, { 147.05152062437736, -36.19536142319113 }, { 147.040978631958353, -36.173708997572177 }, { 147.038601516047038, -36.138413995009799 }, { 147.044906040581282, -36.107614840952095 }, { 147.01617394407225, -36.093042088021932 }, { 147.005321894190047, -36.090148207273927 }, { 146.990232374624384, -36.089993177643009 }, { 146.973799269720416, -36.09474740946537 }, { 146.966357863624467, -36.103015638760738 }, { 146.962327102213976, -36.111800631993518 }, { 146.956125929568032, -36.117898450952708 }, { 146.931114537006238, -36.115728040616631 }, { 146.906051466701797, -36.099604994075207 }, { 146.87876631101642, -36.087564385787829 }, { 146.84688195224021, -36.097434583739044 }, { 146.829311964875274, -36.080071302848367 }, { 146.82073367721739, -36.073611748683291 }, { 146.812723830340531, -36.06952931042936 }, { 146.785386997811656, -36.068909193704272 }, { 146.771124302344674, -36.066893812999112 }, { 146.75639651888423, -36.046326592997872 }, { 146.735829298883004, -36.04327768261895 }, { 146.710921259108829, -36.044052829874218 }, { 146.68921715664635, -36.042192477900514 }, { 146.670768671037308, -36.031495456749951 }, { 146.638005813117786, -36.000282891542227 }, { 146.624053176013263, -35.993771660533724 }, { 146.545194939794555, -35.993771660533724 }, { 146.535376417787404, -35.990154311172518 }, { 146.514550816267047, -35.976873467636409 }, { 146.504267206266491, -35.97392791094434 }, { 146.49656741775209, -35.97599496759365 }, { 146.484630162252074, -35.98540007845088 }, { 146.473209669790322, -35.987570488787057 }, { 146.464062942250962, -35.98509002008835 }, { 146.453314244256944, -35.980594170684384 }, { 146.442152134213586, -35.978682142766701 }, { 146.431920201056414, -35.983849785738997 }, { 146.385049677300685, -36.047463473660372 }, { 146.369495070640937, -36.052734469420244 }, { 146.301127150897287, -36.046068210579477 }, { 146.266607293791537, -36.035061131066385 }, { 146.243559605091605, -36.035371188529552 }, { 146.229245232781182, -36.037696628496633 }, { 146.222837356358809, -36.039505303626839 }, { 146.216222771663581, -36.055835055743216 }, { 146.198962843560366, -36.050409031251817 }, { 146.182736444231466, -36.042192477900514 }, { 146.15912031475068, -36.037644951653206 }, { 146.09685021396615, -36.033459160611784 }, { 146.076282993964981, -36.025139256271643 }, { 146.062330356860457, -36.017387790913801 }, { 146.03101443886527, -36.013873792541517 }, { 145.99225711477402, -36.01604420287768 }, { 145.98347212064175, -36.014287204590815 }, { 145.973550245847207, -36.006122328083023 }, { 145.96936445480577, -35.996200453288296 }, { 145.96631554622553, -35.985968520131095 }, { 145.959597609641946, -35.977028497267327 }, { 145.939753860052576, -35.96684824005419 }, { 145.918359816851989, -35.964057712993025 }, { 145.896138951351475, -35.967003268785817 }, { 145.829889765100575, -35.983488050533111 }, { 145.786946649068625, -35.979974053959396 }, { 145.744623650660856, -35.964936212136507 }, { 145.572592807711885, -35.843599948778603 }, { 145.536574334737679, -35.829130547736654 }, { 145.493786249235995, -35.828975519005013 }, { 145.450791457259925, -35.839569186468808 }, { 145.375963983351085, -35.872900486068559 }, { 145.334106072936891, -35.876001071492254 }, { 145.291421340222712, -35.869799899745573 }, { 145.250441928951773, -35.857242526621306 }, { 145.217937452551439, -35.851196383606265 }, { 145.120785761253899, -35.851196383606265 }, { 145.008441196703757, -35.867629490308687 }, { 144.993144973361723, -35.873985690786995 }, { 144.976401809196147, -35.88731821116653 }, { 144.971234166223837, -35.894811293206629 }, { 144.96244917209151, -35.953464043730591 }, { 144.939194777816795, -35.987673841574534 }, { 144.933923782056809, -36.005553888201376 }, { 144.945085891200847, -36.025139256271643 }, { 144.960485468229763, -36.039970391620287 }, { 144.977435337970405, -36.060175876415556 }, { 144.985858595997342, -36.081001478835176 }, { 144.975471633209338, -36.097434583739044 }, { 144.956248000344942, -36.099243258869336 }, { 144.910927769301111, -36.081311537197635 }, { 144.890153842825555, -36.076350599800307 }, { 144.872118768366363, -36.083636977164801 }, { 144.830984328364082, -36.118880303782944 }, { 144.810933873199644, -36.131592705638838 }, { 144.766905552449259, -36.136398614304625 }, { 144.740705600582999, -36.13500335122373 }, { 144.729078404344818, -36.127872002590877 }, { 144.728148228358009, -36.116554863815864 }, { 144.724479201254098, -36.111542249575123 }, { 144.717296176677166, -36.110302016125132 }, { 144.705513950808154, -36.110457044856759 }, { 144.705824009170726, -36.106581313077157 }, { 144.698020867868649, -36.097847995788356 }, { 144.681897821327311, -36.083792005896342 }, { 144.662519158832083, -36.078107598986449 }, { 144.620041131692801, -36.075162042294465 }, { 144.602781202690323, -36.066118665743829 }, { 144.49265872621919, -35.959665215477273 }, { 144.45255781499111, -35.947159519196433 }, { 144.435711298038029, -35.932173354216886 }, { 144.422585484132753, -35.913931573283449 }, { 144.37602501784022, -35.814351087432698 }, { 144.353287388402293, -35.777557468102657 }, { 144.324348586318195, -35.754199721040266 }, { 144.312669713236573, -35.751305841191623 }, { 144.288278435601285, -35.750479017992291 }, { 144.27659956341904, -35.747998549293669 }, { 144.268021274861951, -35.741797376647625 }, { 144.253293492300884, -35.724330742969371 }, { 144.238152296791043, -35.717096042448404 }, { 144.218928663926647, -35.700921319063639 }, { 144.215156284934551, -35.696477145603822 }, { 144.21107384668062, -35.689810885863693 }, { 144.201565383035984, -35.686090182815732 }, { 144.190093214630167, -35.683144627022855 }, { 144.180378046309841, -35.679113864713059 }, { 144.150974156232223, -35.650071709841498 }, { 144.100072870166741, -35.586768080282653 }, { 144.064932896336074, -35.569249769761058 }, { 144.020077753285648, -35.563720391582805 }, { 143.99842532766678, -35.55540048544411 }, { 143.980700310670727, -35.523361097936331 }, { 143.960753209193172, -35.513129163879768 }, { 143.899154901077736, -35.491735120679294 }, { 143.858433873124682, -35.470599460796407 }, { 143.835644565943937, -35.45132415108877 }, { 143.826342807874198, -35.445588066436173 }, { 143.816162550661147, -35.440833835513089 }, { 143.79476850835988, -35.436854750046635 }, { 143.788774042188265, -35.431893812649307 }, { 143.784639927090893, -35.425227552909277 }, { 143.776940138576549, -35.41840626353823 }, { 143.733790317868909, -35.401818129003459 }, { 143.65121137860217, -35.389312432722619 }, { 143.595504184770277, -35.360528660269452 }, { 143.585995722024904, -35.352932223643222 }, { 143.578864374291413, -35.342700290485951 }, { 143.576435582436147, -35.329006035799893 }, { 143.581241490202558, -35.32104786576636 }, { 143.587959425886822, -35.314536634757857 }, { 143.591370070572282, -35.305441583162533 }, { 143.591370070572282, -35.286372979029778 }, { 143.58919966023609, -35.267356051740435 }, { 143.581396518934184, -35.24942433006882 }, { 143.564601678824431, -35.233456313158314 }, { 143.547135045146206, -35.225911554274802 }, { 143.459905226844739, -35.209375094784789 }, { 143.437684361344225, -35.199556572777624 }, { 143.418357374793061, -35.188032728427658 }, { 143.406988560074012, -35.178834324044857 }, { 143.383837517687198, -35.14570973091935 }, { 143.363993768097885, -35.107210789246508 }, { 143.350196160624307, -35.066024671501424 }, { 143.34275475542762, -35.006648450565521 }, { 143.333452997357881, -34.979208266148561 }, { 143.331282587021803, -34.962826837188842 }, { 143.333194614939487, -34.955075371830986 }, { 143.342186313747334, -34.935283298185652 }, { 143.344925164864435, -34.924948012240975 }, { 143.343633253671726, -34.91859181086339 }, { 143.340274285829537, -34.911047051979878 }, { 143.337535434712436, -34.902003675429242 }, { 143.338052198649962, -34.890841567184523 }, { 143.341876255384875, -34.886965833606354 }, { 143.349110955905928, -34.882211602683284 }, { 143.35608727400853, -34.875752047618931 }, { 143.359187860331417, -34.866605320079458 }, { 143.358206008400543, -34.85911223714001 }, { 143.353400099734813, -34.845883070447314 }, { 143.351746454235467, -34.835599460446787 }, { 143.358412713975611, -34.81704762115082 }, { 143.360479770624806, -34.806247247212696 }, { 143.355467157283442, -34.801441338546908 }, { 143.328130323855362, -34.784388116018761 }, { 143.314074334862653, -34.782889500150304 }, { 143.296969436390384, -34.791106051702869 }, { 143.282706740024025, -34.792501315683211 }, { 143.276660597908176, -34.770693862231909 }, { 143.268754103818765, -34.75395069806622 }, { 143.251029086822939, -34.748007907838655 }, { 143.23221886600777, -34.743925469584809 }, { 143.221418492069688, -34.733176771590735 }, { 143.156719599429948, -34.702997735157311 }, { 143.142611932694535, -34.699018649690942 }, { 143.05011111863314, -34.692197361219272 }, { 143.012697381678834, -34.672870374668022 }, { 142.995747511938077, -34.668684583626685 }, { 142.988616164204586, -34.682275485525253 }, { 142.981381463683533, -34.690595391663948 }, { 142.96458662267446, -34.681241956750867 }, { 142.934045851934457, -34.658039238420102 }, { 142.921746861228598, -34.658039238420102 }, { 142.914925571857566, -34.66181161921088 }, { 142.909137811260962, -34.667082614970653 }, { 142.880354038807809, -34.679329928833184 }, { 142.878648715565816, -34.674834079429218 }, { 142.869191928764451, -34.66181161921088 }, { 142.864437697841538, -34.652458185197077 }, { 142.860045201225091, -34.629720553960397 }, { 142.855187615715863, -34.62083220794004 }, { 142.847074416051498, -34.614837741768412 }, { 142.817980585235773, -34.603468927049363 }, { 142.807231887241812, -34.591893405856055 }, { 142.799738804302365, -34.585433851690894 }, { 142.790023635082662, -34.582333266267185 }, { 142.779223261144637, -34.584193616442249 }, { 142.757157424375578, -34.593753756930312 }, { 142.745323520763861, -34.595975844109901 }, { 142.726099887899466, -34.603210544630969 }, { 142.716798129829726, -34.62088388388409 }, { 142.708116490283714, -34.665532322258841 }, { 142.705015903960827, -34.670544935600233 }, { 142.700158319350862, -34.675609225785124 }, { 142.695765822734586, -34.681396987281147 }, { 142.693853794816732, -34.689096774896299 }, { 142.696644321877898, -34.705219821437623 }, { 142.69886640815821, -34.712764581220412 }, { 142.700675084187765, -34.712661227533559 }, { 142.694680617116774, -34.730903008467095 }, { 142.687342563808215, -34.735657241188733 }, { 142.676438837082628, -34.733951917946641 }, { 142.659643996073612, -34.733176771590735 }, { 142.64005862890258, -34.734417005940088 }, { 142.630808546777018, -34.736329033857871 }, { 142.629206578121057, -34.743615411222265 }, { 142.632358840388065, -34.761082044900434 }, { 142.643727655107114, -34.778497002634538 }, { 142.642797479120304, -34.787643731073288 }, { 142.625537551017146, -34.795240166800312 }, { 142.608794386851457, -34.781442560225983 }, { 142.594531692283738, -34.777721856278632 }, { 142.578511997630585, -34.777411797916187 }, { 142.556601189593152, -34.774156182861489 }, { 142.547971225991205, -34.770900566907599 }, { 142.536654087216391, -34.764957777579312 }, { 142.526732212421678, -34.75767140111428 }, { 142.522494745436177, -34.750229994118882 }, { 142.52363162699794, -34.727440687837515 }, { 142.522494745436177, -34.719534193748032 }, { 142.494589472126393, -34.665532322258841 }, { 142.471645136214022, -34.643311455859049 }, { 142.467924433166047, -34.634164727420213 }, { 142.468647902678526, -34.62413949983808 }, { 142.470094842602862, -34.617783297561118 }, { 142.470404900965377, -34.611995537863748 }, { 142.467924433166047, -34.603468927049363 }, { 142.458570998252867, -34.591583346594135 }, { 142.394802280700674, -34.546934910018038 }, { 142.385758905049329, -34.533395684962898 }, { 142.371392856794841, -34.444718926737139 }, { 142.372323032781651, -34.42466847067341 }, { 142.378317498953379, -34.403171074685361 }, { 142.398057895755187, -34.373715508663778 }, { 142.40642947783806, -34.356403903717151 }, { 142.396455927099339, -34.338007094052173 }, { 142.38239993720731, -34.335681654984384 }, { 142.365036656316533, -34.340280857175827 }, { 142.344934524308769, -34.342761325874534 }, { 142.328191360143194, -34.334699802154134 }, { 142.305143671443318, -34.317129814789126 }, { 142.284886508905174, -34.297854505980666 }, { 142.272897576561832, -34.280439548246562 }, { 142.265869581615846, -34.277493991554493 }, { 142.258789910725852, -34.272843112519624 }, { 142.255637649357936, -34.263903089655841 }, { 142.253984002959328, -34.240493665750108 }, { 142.248816359987075, -34.218634534556102 }, { 142.238377720355459, -34.19625863942467 }, { 142.235122105300945, -34.191917819651707 }, { 142.224218377675925, -34.190367526939809 }, { 142.199775424995835, -34.192796318795089 }, { 142.190421990982031, -34.188197116603646 }, { 142.175952589940096, -34.171608982068861 }, { 142.164170364070969, -34.16246225363011 }, { 142.150114374178997, -34.158586520951147 }, { 142.128720330978524, -34.157811374595241 }, { 142.122932571281126, -34.159826756199863 }, { 142.105259231128628, -34.16881845500771 }, { 142.094252150716159, -34.170833835712955 }, { 142.077457309707029, -34.136675713813162 }, { 142.051257358740088, -34.115953464181018 }, { 142.025160760560652, -34.112232761133043 }, { 141.971210565015554, -34.123704928639498 }, { 141.960358515133294, -34.124635104626321 }, { 141.94940311066506, -34.124118340688895 }, { 141.938137648733459, -34.121637871990188 }, { 141.926665481226905, -34.116831964223778 }, { 141.905271438026375, -34.126598810286879 }, { 141.887391392298809, -34.13047454206648 }, { 141.840985955637279, -34.13047454206648 }, { 141.817008090950594, -34.126185398237496 }, { 141.770706007975832, -34.10742685246727 }, { 141.748536819318758, -34.103189385481784 }, { 141.706110468123597, -34.11001067485283 }, { 141.665906203208692, -34.127063896481602 }, { 141.630972934952979, -34.149078058205802 }, { 141.60451460156753, -34.170833835712955 }, { 141.581466912867654, -34.201943048133117 }, { 141.567927687812528, -34.213880303633104 }, { 141.546171910305361, -34.218634534556102 }, { 141.53733524022914, -34.215844007494937 }, { 141.529583774871298, -34.208660983817396 }, { 141.524054396693032, -34.198842461810131 }, { 141.518835076877338, -34.176569919466189 }, { 141.510670201268738, -34.172229098793849 }, { 141.459303827209908, -34.169180190213581 }, { 141.44628136609208, -34.164012547241285 }, { 141.415223829616082, -34.145770766307763 }, { 141.408970981925222, -34.140706476122958 }, { 141.391917759397131, -34.133678481176943 }, { 141.368663365122188, -34.13729583053815 }, { 141.345925734784885, -34.143652031915749 }, { 141.330784540174363, -34.144737236634185 }, { 141.321741163623813, -34.136210625819714 }, { 141.309545525705403, -34.114351494625794 }, { 141.299727003698251, -34.11001067485283 }, { 141.285774366593728, -34.105721531023832 }, { 141.274767287080635, -34.096316420166687 }, { 141.265827265116229, -34.086962986152884 }, { 141.258489210908408, -34.082673841424608 }, { 141.252753127155074, -34.081381931131205 }, { 141.241849400429544, -34.076007581684564 }, { 141.234614699009114, -34.07523243622795 }, { 141.228206821687479, -34.077557875295739 }, { 141.21415083179545, -34.086859632466115 }, { 141.206657749755379, -34.089495130795655 }, { 141.190121291164644, -34.089288425220687 }, { 141.181181268300861, -34.084379163767409 }, { 141.173016391792999, -34.077041110458865 }, { 141.158857050012784, -34.069031263581991 }, { 141.134104038970122, -34.063966974296378 }, { 141.045582310375266, -34.062209975110235 }, { 141.024084914387231, -34.051254570641916 }, { 141.000107049700546, -34.018543389565721 }, { 141.000107049700546, -33.711533704516853 }, { 141.000107049700546, -33.397444349477112 }, { 141.000107049700546, -33.083354993538094 }, { 141.000107049700546, -32.769213962554304 }, { 141.000107049700546, -32.455072930671236 }, { 141.000107049700546, -32.141035251575644 }, { 141.000107049700546, -31.826945895636626 }, { 141.000107049700546, -31.512804863753459 }, { 141.000107049700546, -31.198663831870377 }, { 141.000107049700546, -30.88457447683065 }, { 141.000107049700546, -30.570536797735059 }, { 141.000107049700546, -30.256344089008465 }, { 141.000107049700546, -29.942203058024674 }, { 141.000107049700546, -29.628165378929083 }, { 141.000107049700546, -29.314076022990065 }, { 141.000107049700546, -28.999934991106983 }, { 141.485865513382748, -28.999934991106983 }, { 141.971675653008901, -28.999934991106983 }, { 142.457434116691104, -28.999934991106983 }, { 142.943192580373193, -28.999934991106983 }, { 143.428899367212068, -28.999934991106983 }, { 143.914657830894157, -28.999934991106983 }, { 144.400519647363865, -28.999934991106983 }, { 144.886278111045954, -28.999934991106983 }, { 145.37203657382878, -28.999934991106983 }, { 145.857795038410245, -28.999934991106983 }, { 146.343553502092448, -28.999934991106983 }, { 146.829311964875274, -28.999934991106983 }, { 147.315070428557476, -28.999934991106983 }, { 147.800828892239565, -28.999934991106983 }, { 148.286587355921711, -28.999934991106983 }, { 148.772397496447297, -28.999934991106983 }, { 148.966339145635061, -28.999934991106983 }, { 148.971403435819866, -28.999728284632653 }, { 148.998171827567717, -28.977507420031401 }, { 149.024423456277475, -28.968050631431467 }, { 149.046489293046477, -28.954097996125583 }, { 149.063387485943679, -28.936321303185608 }, { 149.073877802418565, -28.915444023922547 }, { 149.083644646683069, -28.869193616891849 }, { 149.093566522377046, -28.848419692215018 }, { 149.11175662736639, -28.839738050870352 }, { 149.134597609591992, -28.836844171021625 }, { 149.157386915873474, -28.829196058451345 }, { 149.178625930342378, -28.818240654882302 }, { 149.196816034432402, -28.805579928970559 }, { 149.204670851678486, -28.795813083806721 }, { 149.210665317850101, -28.784547620975957 }, { 149.217589960008581, -28.775349215693694 }, { 149.237433709598008, -28.768114516072004 }, { 149.249939406778196, -28.760052991452326 }, { 149.260946487190665, -28.75002776476957 }, { 149.265649042169514, -28.740726006699816 }, { 149.275157504914944, -28.739330742719645 }, { 149.377166782620861, -28.691788424496167 }, { 149.399180943445742, -28.689514662271876 }, { 149.416337518761509, -28.68072966903901 }, { 149.432357213414662, -28.661040948181167 }, { 149.469357538319628, -28.594998467505221 }, { 149.484447056086765, -28.583939711148702 }, { 149.577878046134913, -28.572570895530447 }, { 149.595241327025576, -28.56538787185282 }, { 149.610175816060973, -28.577738538502743 }, { 149.614878371039993, -28.593861585943444 }, { 149.620872838110984, -28.607814223047967 }, { 149.639321323720139, -28.613808689219596 }, { 149.675339796694175, -28.610604750109133 }, { 149.690946080197364, -28.614015394794649 }, { 149.704485305252604, -28.627451267062298 }, { 149.730116815438635, -28.613808689219596 }, { 149.741744012576078, -28.609622898178174 }, { 149.759158970310182, -28.606987399848649 }, { 149.870573357974081, -28.604558607993368 }, { 149.907677036565929, -28.608899427766417 }, { 149.95087853411701, -28.600114434533552 }, { 149.971807489324135, -28.599184258546728 }, { 150.003278436050948, -28.602491549545405 }, { 150.019814894641684, -28.600114434533552 }, { 150.058468865945372, -28.583991387992128 }, { 150.1045642442445, -28.573914482667206 }, { 150.158514438890165, -28.554587497914696 }, { 150.173345575138171, -28.552107029215989 }, { 150.236132439860228, -28.556086113783152 }, { 150.258353306260062, -28.553140557990375 }, { 150.276801792768424, -28.542391859996386 }, { 150.298144159125684, -28.534950453000988 }, { 150.322432082174885, -28.543632093446377 }, { 150.361809523890315, -28.572829277948841 }, { 150.417826776084837, -28.625745944719583 }, { 150.449556106129364, -28.646468193452364 }, { 150.492137486056151, -28.654736422747717 }, { 150.62112186108493, -28.65892221378914 }, { 150.664116653061058, -28.654736422747717 }, { 150.752586704812586, -28.63597787877606 }, { 150.793514439239971, -28.635047702789251 }, { 150.834803907973878, -28.647915134276047 }, { 150.87133914578493, -28.670032646989085 }, { 150.890976189799346, -28.678662611490324 }, { 150.933557570625396, -28.687137547260022 }, { 150.948853794866693, -28.69891977312902 }, { 150.963013136646907, -28.712717379703278 }, { 150.979394565606697, -28.723672784171683 }, { 151.000530227288152, -28.727083428857114 }, { 151.02523156058794, -28.728323663206467 }, { 151.045902134276105, -28.73488657015902 }, { 151.054480421933818, -28.754368584542533 }, { 151.053550245947008, -28.788268324923209 }, { 151.055617304395071, -28.810644220054726 }, { 151.062128533604891, -28.828007500945418 }, { 151.07752811063375, -28.836947523809187 }, { 151.10078250490858, -28.840874932432214 }, { 151.140004917892668, -28.84165007878812 }, { 151.160520461050453, -28.846094252247937 }, { 151.181759474620037, -28.856946303029488 }, { 151.219121534731073, -28.883249606783949 }, { 151.287437779429865, -28.920818372469896 }, { 151.301855503628587, -28.984328708503071 }, { 151.309141880093705, -28.999934991106983 }, { 151.302113886047039, -29.010787041888449 }, { 151.302837355559461, -29.018331800771961 }, { 151.306816441025887, -29.024326266943675 }, { 151.309141880093705, -29.030682467421897 }, { 151.309141880093705, -29.06137826869211 }, { 151.315343051840273, -29.099257093639963 }, { 151.318753697425166, -29.105354912599168 }, { 151.335755243109986, -29.115018405874693 }, { 151.342628209324346, -29.122821547176699 }, { 151.344230177980307, -29.137445976950275 }, { 151.343455031624387, -29.153000583610037 }, { 151.350896437720451, -29.165454603946827 }, { 151.376114536756461, -29.170622246919109 }, { 151.384382766051829, -29.168555190269799 }, { 151.405156691628008, -29.159046725725801 }, { 151.422675002149674, -29.154550877221212 }, { 151.42536217732254, -29.148918144456815 }, { 151.426602410772603, -29.142148532828486 }, { 151.430788201814039, -29.136515801862743 }, { 151.45259565706391, -29.126335544649706 }, { 151.461845738290151, -29.120496108108895 }, { 151.467581822043371, -29.107887058141202 }, { 151.48261966386633, -29.085614515797261 }, { 151.492283157141969, -29.078121432857799 }, { 151.514038934649136, -29.066907646870376 }, { 151.520188429552377, -29.06137826869211 }, { 151.520963575908297, -29.05435027374611 }, { 151.520188429552377, -29.027271823635743 }, { 151.526544630929948, -29.008254897245678 }, { 151.549333938110806, -28.970014337091953 }, { 151.554294874608672, -28.955234876788182 }, { 151.55739546093173, -28.954563084119044 }, { 151.564423455877829, -28.950583997753299 }, { 151.572950066692215, -28.948103529953883 }, { 151.580856560781683, -28.946708265973697 }, { 151.587522821421032, -28.9461915020362 }, { 151.593052199599299, -28.944641208425026 }, { 151.610208774915066, -28.933737480800133 }, { 151.616720005024206, -28.931722100994151 }, { 151.623851352757697, -28.930636894477146 }, { 151.637493930600385, -28.930016777752073 }, { 151.643695103246444, -28.928879897089573 }, { 151.654392125296397, -28.925004163511318 }, { 151.664365676035175, -28.91993987422579 }, { 151.700435825852651, -28.896117039170036 }, { 151.715370314888162, -28.888778984962215 }, { 151.720382929128903, -28.88712533856355 }, { 151.725137160051872, -28.886660251469465 }, { 151.729167922361682, -28.888985690537183 }, { 151.762550897006292, -28.947586765117094 }, { 151.766271600953644, -28.951204116276941 }, { 151.770922479089108, -28.954149672069732 }, { 151.776090122960795, -28.956268405562469 }, { 151.782704705857498, -28.957508639911822 }, { 151.796088902181111, -28.957973727905184 }, { 151.802290073927679, -28.958955579836143 }, { 151.806785923331631, -28.961694430953244 }, { 151.81453738779021, -28.968670749955109 }, { 151.819033238093482, -28.971564629803837 }, { 151.824149205121671, -28.973580010509096 }, { 151.829626907355873, -28.971771336278181 }, { 151.833967727128936, -28.965621839576187 }, { 151.840789015600535, -28.938336683890853 }, { 151.847610304971568, -28.925314222773139 }, { 151.852726271999813, -28.919578139019919 }, { 151.858772414115663, -28.916322523965306 }, { 151.864508497868769, -28.914772231253494 }, { 151.870864700145773, -28.914307143260046 }, { 151.876910842261509, -28.914617200723214 }, { 151.897529739106119, -28.918337904670565 }, { 151.920060662969149, -28.9247457819923 }, { 151.924246454010586, -28.925469251504765 }, { 151.928742304313801, -28.925365898717203 }, { 151.933858270442784, -28.924280693998838 }, { 151.964399042082107, -28.910379733737742 }, { 151.975871209588604, -28.906917413108161 }, { 151.982744174903701, -28.906297295483796 }, { 151.99623172401482, -28.906297295483796 }, { 152.000469191899583, -28.905832207490349 }, { 152.004603306097749, -28.904643649984422 }, { 152.008944126769961, -28.902628269279163 }, { 152.013646681748924, -28.899217624593646 }, { 152.017832472790417, -28.894825127977256 }, { 152.021656528625897, -28.888055514550359 }, { 152.024343702899557, -28.882061049277937 }, { 152.025583938148202, -28.875704847900437 }, { 152.025583938148202, -28.850590101651818 }, { 152.026979201229096, -28.845215753104554 }, { 152.038606399265916, -28.820462742061892 }, { 152.042482131045404, -28.80961069128044 }, { 152.044032423757301, -28.795813083806721 }, { 152.043877395025675, -28.771628512645719 }, { 152.046202834093492, -28.746410413609709 }, { 152.04899336205392, -28.735455010940044 }, { 152.051163772390169, -28.73054574948678 }, { 152.054005976294661, -28.725894870451896 }, { 152.063927851089431, -28.713699232533514 }, { 152.066201614213071, -28.70904835349873 }, { 152.06702843561385, -28.703157241013869 }, { 152.064547967814406, -28.695819186806048 }, { 152.058450148855229, -28.686259047217277 }, { 152.030699905176505, -28.657940361858181 }, { 152.007703892420636, -28.639233493830673 }, { 152.003259718960805, -28.63365243880898 }, { 151.998402134350954, -28.625332532670285 }, { 151.99530154802801, -28.613963717951222 }, { 151.993131137691819, -28.598822524240134 }, { 151.985224643602351, -28.585490003860599 }, { 151.958404575910436, -28.560581964086396 }, { 151.959489780628815, -28.549264825311482 }, { 151.961040074240088, -28.544975680583207 }, { 151.963985630932086, -28.54006642002922 }, { 151.967551304349229, -28.536449069768736 }, { 151.973132359370879, -28.533503513076667 }, { 151.98041873583594, -28.531229749953013 }, { 151.991684197767427, -28.530454603597121 }, { 152.000882603049604, -28.528077487685891 }, { 152.010391066694297, -28.524098403118813 }, { 152.035195753681023, -28.507665296416292 }, { 152.040776808702788, -28.501825859875495 }, { 152.050388625134985, -28.489733574744676 }, { 152.163973423134962, -28.437075291291606 }, { 152.172345006117098, -28.43505990968707 }, { 152.187279494253175, -28.434233086487737 }, { 152.21828535388596, -28.437695408016694 }, { 152.225158319201057, -28.437230320023232 }, { 152.232703078084569, -28.434956556899593 }, { 152.24019616102396, -28.431080824220615 }, { 152.24980797835542, -28.423070976444464 }, { 152.267016228715931, -28.405914402028031 }, { 152.29171756381453, -28.38632903395775 }, { 152.300244174628972, -28.383073418903138 }, { 152.31311160701506, -28.380334567786036 }, { 152.357036574977883, -28.376148776744614 }, { 152.386957228992912, -28.365761813956524 }, { 152.403907098733669, -28.355736585475015 }, { 152.408557977768453, -28.351964206482904 }, { 152.412123651185595, -28.348191826591503 }, { 152.414914179145967, -28.343799329975113 }, { 152.429021844982117, -28.308504326513443 }, { 152.432587519298522, -28.304628594733842 }, { 152.447987095428118, -28.297548922944415 }, { 152.478217807805606, -28.269333591272272 }, { 152.487157830669275, -28.263390801943984 }, { 152.492170444910016, -28.261220391607722 }, { 152.500490351048825, -28.261685478701892 }, { 152.510825636993502, -28.265457858593294 }, { 152.528343948414488, -28.278221938191905 }, { 152.534855177624308, -28.287161961055673 }, { 152.537490675953904, -28.295171807932562 }, { 152.536767206441368, -28.307160740275975 }, { 152.537800735215683, -28.312690117554865 }, { 152.539971144652554, -28.31770273179562 }, { 152.543381789338071, -28.321578463575221 }, { 152.547412550748504, -28.324937433215965 }, { 152.552063429783459, -28.327986341796233 }, { 152.56415571491425, -28.332998956036988 }, { 152.574284296183237, -28.333774101493603 }, { 152.583275994991197, -28.331603692056717 }, { 152.594024692985158, -28.324472345222517 }, { 152.598313836814157, -28.318012791057441 }, { 152.600174187888513, -28.311501560048939 }, { 152.600949335143696, -28.305455417933175 }, { 152.603119744580454, -28.300649509267387 }, { 152.606323683691016, -28.296722100644445 }, { 152.610251093213435, -28.293363131902993 }, { 152.616658969635637, -28.293208103171452 }, { 152.622240024657401, -28.293569837477961 }, { 152.647044713442767, -28.316720879864661 }, { 152.655106236263691, -28.321836846892978 }, { 152.75101769411134, -28.358010348598754 }, { 152.757994013113205, -28.358630466223033 }, { 152.766934035077611, -28.358630466223033 }, { 152.781610141694614, -28.355064792805962 }, { 152.798198277128677, -28.353824557557246 }, { 152.825018344820705, -28.343954359606016 }, { 152.830909459104248, -28.339820244508658 }, { 152.84207156824823, -28.329123224257387 }, { 152.84630903523373, -28.32581593146007 }, { 152.854370558954088, -28.32364552202327 }, { 152.865687697729015, -28.322767021980511 }, { 152.887856887285466, -28.324472345222517 }, { 152.908217400812305, -28.328348077002119 }, { 152.934262323047733, -28.339820244508658 }, { 152.944184197842446, -28.341370538119833 }, { 153.000356479667744, -28.344109389236934 }, { 153.004387241977611, -28.345246269899434 }, { 153.010019972943439, -28.346331475517161 }, { 153.066140577925296, -28.34519459395537 }, { 153.075649041569989, -28.346486505148064 }, { 153.081385126222585, -28.348346856222506 }, { 153.091927117742216, -28.353204440832258 }, { 153.098748407113249, -28.354289645550693 }, { 153.10665490120266, -28.35387623529995 }, { 153.116886835259152, -28.350207208196039 }, { 153.131769646551902, -28.338890068521849 }, { 153.153525424958445, -28.307160740275975 }, { 153.162672154296388, -28.303853447478573 }, { 153.166496210132038, -28.301734713985837 }, { 153.170837029904988, -28.296463718225965 }, { 153.175694615414216, -28.288763929711635 }, { 153.180035435187165, -28.276930026999125 }, { 153.192489454624649, -28.259825127627551 }, { 153.217604200873097, -28.258584894177574 }, { 153.232331985232918, -28.260135185990094 }, { 153.312740513264032, -28.242875257886809 }, { 153.324987828025769, -28.241996758743426 }, { 153.354185011628942, -28.2500066056203 }, { 153.38250369698801, -28.237552586182886 }, { 153.472265659932248, -28.175282484499064 }, { 153.506524056145452, -28.149268634823883 }, { 153.531993035000028, -28.177911065999879 }, { 153.562510613000086, -28.174981377999941 }, { 153.570567254000025, -28.1937802059999 }, { 153.581228061000047, -28.246758721999939 }, { 153.591075066000087, -28.268487237999906 }, { 153.590830925000148, -28.318536065999922 }, { 153.563487175000148, -28.460870049999897 }, { 153.562510613000086, -28.504571221999882 }, { 153.576019727000073, -28.589613539999903 }, { 153.584239129000082, -28.608086846999925 }, { 153.620941602000073, -28.644463799999897 }, { 153.630625847000033, -28.661553643999937 }, { 153.629079623000109, -28.667250257999925 }, { 153.619883660000028, -28.686618747999944 }, { 153.61695397200009, -28.695733330999929 }, { 153.617523634000065, -28.705824476999908 }, { 153.619639519000089, -28.717543226999894 }, { 153.619639519000089, -28.729587497999901 }, { 153.601328972000033, -28.76140715899993 }, { 153.600108269000089, -28.78337981599995 }, { 153.610118035000085, -28.826104424999954 }, { 153.605967644000145, -28.867445570999905 }, { 153.582286004000025, -28.896091403999961 }, { 153.521332227000016, -28.943454684999907 }, { 153.475596550000091, -29.000176690999879 }, { 153.453786655000044, -29.035577080999886 }, { 153.438975457000083, -29.073011976999922 }, { 153.436208530000044, -29.085137627999913 }, { 153.435557488000086, -29.093845309999907 }, { 153.44507897200009, -29.140069268999909 }, { 153.445811394000089, -29.151625257999925 }, { 153.441416863000086, -29.155368747999958 }, { 153.422699415000068, -29.161065362999949 }, { 153.418304884000065, -29.164971612999935 }, { 153.415212436000104, -29.175957940999908 }, { 153.370860222000033, -29.241631768999909 }, { 153.350596550000148, -29.281019789999888 }, { 153.340342644000089, -29.322686455999943 }, { 153.349457227000016, -29.36109791499986 }, { 153.366709832000083, -29.38274505 }, { 153.369965040000068, -29.396661065999922 }, { 153.360118035000028, -29.412041924999954 }, { 153.356455925000091, -29.424004815999893 }, { 153.357595248000109, -29.443129164999874 }, { 153.36085045700014, -29.461521091999913 }, { 153.363780144000089, -29.470391533999958 }, { 153.352061394000089, -29.490004164999917 }, { 153.344004754000082, -29.535414320999919 }, { 153.32748457100007, -29.565036716999956 }, { 153.324473504000082, -29.575860283999944 }, { 153.322276238000086, -29.597588799999926 }, { 153.323252800000148, -29.602634372999958 }, { 153.32789147200009, -29.612074476999879 }, { 153.329112175000091, -29.618096612999878 }, { 153.326996290000011, -29.624444268999909 }, { 153.31771894600007, -29.635186455999929 }, { 153.315440300000148, -29.642266533999887 }, { 153.317881707000083, -29.666599216999956 }, { 153.323008660000028, -29.682305596999925 }, { 153.321625196000014, -29.697523695999905 }, { 153.296397332000083, -29.73503997199991 }, { 153.291188998000052, -29.75318775799991 }, { 153.288422071000014, -29.771254164999931 }, { 153.288096550000091, -29.78573984199997 }, { 153.294932488000086, -29.826592705999929 }, { 153.29078209700009, -29.835544528999947 }, { 153.276703321000014, -29.850762627999927 }, { 153.273773634, -29.857354424999912 }, { 153.271494988000143, -29.901625257999868 }, { 153.26734459700009, -29.924248955999929 }, { 153.260101759000065, -29.943291924999926 }, { 153.224457227000016, -29.986911716999927 }, { 153.219899936000104, -30.001397393999881 }, { 153.216563347000033, -30.007256768999923 }, { 153.20240319100003, -30.024672132999896 }, { 153.199229363000143, -30.03582122199991 }, { 153.200043165000068, -30.046563408999916 }, { 153.205577019000089, -30.073663018999952 }, { 153.203786655000101, -30.129164320999905 }, { 153.189626498000109, -30.174981377999899 }, { 153.137217644000089, -30.257989190999893 }, { 153.146494988000086, -30.286065362999892 }, { 153.132090691000087, -30.323825778999947 }, { 153.089366082000083, -30.388929945999891 }, { 153.082530144000089, -30.406426690999936 }, { 153.07545006600003, -30.438409112999935 }, { 153.05054772200009, -30.473321221999953 }, { 153.043142123000109, -30.493829033999916 }, { 153.023070386000143, -30.575506187999935 }, { 153.018077019000089, -30.633070570999891 }, { 153.007985873000109, -30.651625257999896 }, { 153.01099694100003, -30.65536874799993 }, { 152.987796365, -30.734633817999864 }, { 152.999859214000082, -30.751121505 }, { 153.005001433000075, -30.835814295999867 }, { 153.027517123000109, -30.875583591999956 }, { 153.034841342000107, -30.882500908999958 }, { 153.043142123000109, -30.88795338299991 }, { 153.054535352000073, -30.892998955999929 }, { 153.064626498000109, -30.893487237999921 }, { 153.068858269000145, -30.885511976999879 }, { 153.072113477000073, -30.881931247999901 }, { 153.079112175000148, -30.885918877999885 }, { 153.086273634, -30.894707940999936 }, { 153.089366082000083, -30.905694268999895 }, { 153.087901238000143, -30.926690362999935 }, { 153.085703972000033, -30.935153903999975 }, { 153.081879102000016, -30.943942966999941 }, { 153.063327253000068, -30.95959309 }, { 153.046599170000036, -30.992753975999861 }, { 153.039879977000112, -31.029965145999938 }, { 153.045923855000126, -31.046572868999888 }, { 153.057892177000156, -31.05163744799998 }, { 153.060919110000157, -31.06058328099995 }, { 153.05950072100012, -31.077209977999942 }, { 153.041631142000028, -31.0901026559999 }, { 153.008880172000147, -31.122248232999894 }, { 152.980615041000135, -31.16591475599995 }, { 152.97921828900013, -31.199245471999959 }, { 152.959894019000103, -31.24031530499991 }, { 152.970411879000039, -31.255676558999923 }, { 152.976735873000052, -31.320000908999916 }, { 152.93258908100006, -31.366007817999986 }, { 152.917828269000154, -31.395254330999933 }, { 152.916435393000029, -31.420656614999942 }, { 152.934354484000096, -31.438392126999929 }, { 152.93887444500001, -31.454869447999911 }, { 152.940381062000029, -31.46248367099993 }, { 152.934502086000066, -31.482810541999939 }, { 152.906297820000134, -31.505727677999928 }, { 152.876587434000101, -31.532446145999955 }, { 152.845380728000066, -31.569318604999907 }, { 152.849915115000044, -31.599780167999924 }, { 152.836561964, -31.625196178999914 }, { 152.848532646000081, -31.644220246999936 }, { 152.832146959000113, -31.655678984999909 }, { 152.812788211, -31.676031504999898 }, { 152.788948559, -31.704008613999875 }, { 152.803901470000028, -31.719226881999958 }, { 152.800929022000048, -31.733208108999918 }, { 152.77554759700007, -31.754852626999963 }, { 152.744185439000091, -31.793022631999889 }, { 152.736728193000147, -31.827349075999933 }, { 152.747215040000015, -31.842584729999956 }, { 152.715775884000095, -31.859170137999911 }, { 152.69288170700014, -31.88534921699997 }, { 152.664317254000082, -31.903497002999885 }, { 152.609255093, -31.945848262999917 }, { 152.546372674000054, -32.04367920499989 }, { 152.555345725000052, -32.071630892999892 }, { 152.528330925000091, -32.097100518999881 }, { 152.520274285000085, -32.115817966999941 }, { 152.51531009200005, -32.136488539999874 }, { 152.510082932000103, -32.161881366999893 }, { 152.51695268900005, -32.177392201999936 }, { 152.535678945000143, -32.183199517999938 }, { 152.545381547000034, -32.196888175999931 }, { 152.564787202000105, -32.20602140799987 }, { 152.569509311000104, -32.219333591999899 }, { 152.556651238000086, -32.232028903999947 }, { 152.546560092000107, -32.24627044099995 }, { 152.53998826600008, -32.259797076999874 }, { 152.533515488000091, -32.268907929999912 }, { 152.525957109000103, -32.281664572999972 }, { 152.524871412000039, -32.294425623999956 }, { 152.527042902000119, -32.312660829999913 }, { 152.539976734000049, -32.314488747999903 }, { 152.55445397200009, -32.321221612999906 }, { 152.55201256600003, -32.328057549999926 }, { 152.548350457000083, -32.332126559999978 }, { 152.54420006600003, -32.33570728999986 }, { 152.540782097000033, -32.341729424999954 }, { 152.536631707000083, -32.354587497999987 }, { 152.533946160000028, -32.369561455999929 }, { 152.524834943000144, -32.388305282999951 }, { 152.520499171000154, -32.410176412999903 }, { 152.521559969000066, -32.427494067999973 }, { 152.539886296000077, -32.442091940999973 }, { 152.402393537000137, -32.489428571999923 }, { 152.353559882000013, -32.514923347999868 }, { 152.294763900000021, -32.559588894999891 }, { 152.285929613000064, -32.588803960999968 }, { 152.264174174, -32.594256083999895 }, { 152.235861814000089, -32.60699906299989 }, { 152.210669949000078, -32.630738652999909 }, { 152.19198882, -32.652670384999908 }, { 152.187500835000094, -32.669135910999984 }, { 152.2037207300001, -32.686535898999935 }, { 152.219248894000145, -32.697198174999897 }, { 152.205577019000089, -32.697930596999925 }, { 152.202159050000091, -32.695896091999899 }, { 152.194102410000085, -32.687188408999916 }, { 152.190684441000087, -32.684258721999896 }, { 152.186045769000145, -32.683526299999954 }, { 152.17530358200014, -32.685153903999975 }, { 152.170746290000068, -32.684258721999896 }, { 152.145274285000085, -32.66659921699997 }, { 152.136729363000143, -32.663750908999944 }, { 152.135264519000089, -32.666680596999953 }, { 152.116709832000083, -32.680108330999957 }, { 152.109385613000086, -32.684258721999896 }, { 152.060883009, -32.697930596999925 }, { 152.086761915000011, -32.715915622999958 }, { 152.092295769000145, -32.718438408999887 }, { 152.16732832100007, -32.718438408999887 }, { 152.177989129000025, -32.720635674999883 }, { 152.190196160000085, -32.72527434699991 }, { 152.197764519000145, -32.729913018999923 }, { 152.194834832000083, -32.732110283999916 }, { 152.190928582000083, -32.736586195999891 }, { 152.189463738000143, -32.758558851999908 }, { 152.185069207000083, -32.766778252999899 }, { 152.174815300000148, -32.76921965899993 }, { 152.150157097000033, -32.766045830999957 }, { 152.14014733200014, -32.77019622199991 }, { 152.131195509, -32.780857028999932 }, { 152.127614780000044, -32.786553643999923 }, { 152.12256920700014, -32.790134372999901 }, { 152.109385613000086, -32.79412200299997 }, { 152.059428755000056, -32.785253865999934 }, { 151.984926879000056, -32.798745724999904 }, { 151.935188047, -32.815829072999946 }, { 151.875662482000052, -32.842087877999944 }, { 151.856219267000085, -32.855858949999927 }, { 151.834033071000079, -32.864967128999922 }, { 151.799237364000078, -32.893680377999956 }, { 151.803558790000068, -32.919366143999895 }, { 151.787852410000085, -32.931898695999891 }, { 151.772507057000155, -32.94560852899987 }, { 151.748863030000052, -32.957023378999935 }, { 151.737634974000059, -32.972001860999896 }, { 151.736035076, -32.993997022999906 }, { 151.734385613000143, -33.014825127999899 }, { 151.720535107000103, -33.019371191 }, { 151.703800128000012, -33.028521321999904 }, { 151.681488477000016, -33.049981377999956 }, { 151.670583530000044, -33.06113046699997 }, { 151.667002800000148, -33.073337497999944 }, { 151.665688671000055, -33.087343205999986 }, { 151.65291507500001, -33.110432838999955 }, { 151.646739129000025, -33.144707940999936 }, { 151.634938998000052, -33.158623955999914 }, { 151.629567905000044, -33.1742489559999 }, { 151.625987175000148, -33.191582940999893 }, { 151.61226343800007, -33.207550919999917 }, { 151.589994362000141, -33.218937254999943 }, { 151.568952752000087, -33.244224817999878 }, { 151.563181025000063, -33.265009942999953 }, { 151.576019727000016, -33.282484632999953 }, { 151.568957243, -33.292227829999902 }, { 151.53068564400013, -33.319118731999893 }, { 151.515341164000063, -33.327082411999953 }, { 151.515462610000156, -33.316666080999909 }, { 151.532258808000051, -33.302928752999961 }, { 151.540867400000025, -33.277541990999907 }, { 151.516109564000146, -33.261109454 }, { 151.491019552000012, -33.273611379999934 }, { 151.453795174, -33.304198934999903 }, { 151.452726539000139, -33.311514845999923 }, { 151.469737175000091, -33.328220309999963 }, { 151.456392368000024, -33.331088222999938 }, { 151.44270356200002, -33.33421552699987 }, { 151.444021030000044, -33.34563567499994 }, { 151.451228098000058, -33.355460507999894 }, { 151.459956624000085, -33.359611446999892 }, { 151.474545631000069, -33.363001254999872 }, { 151.488356783000143, -33.349290928999949 }, { 151.49529361000009, -33.339586503999911 }, { 151.50499521100005, -33.343743475999958 }, { 151.503829472000064, -33.360010111999927 }, { 151.489999895000096, -33.374534001999933 }, { 151.485846324000022, -33.394024524999921 }, { 151.457227378000141, -33.419805289999971 }, { 151.445300346000124, -33.435971567999985 }, { 151.451997768000069, -33.44498583499994 }, { 151.450910316000147, -33.453114441999972 }, { 151.439065499000094, -33.463584620999953 }, { 151.442760017000069, -33.478269724999876 }, { 151.447521446000053, -33.486453606999959 }, { 151.441595802000052, -33.491283239999888 }, { 151.427875703000097, -33.494413953999924 }, { 151.432465040000011, -33.509535414999903 }, { 151.430023634, -33.515069268999923 }, { 151.428884311000047, -33.521742445999891 }, { 151.424164259000065, -33.527764580999886 }, { 151.414317254000025, -33.532891533999901 }, { 151.406993035000028, -33.534600518999909 }, { 151.38648522200009, -33.533949476999865 }, { 151.380056186000047, -33.536797783999901 }, { 151.362681840000107, -33.532103319999877 }, { 151.353717429000085, -33.541796319999946 }, { 151.343109571000014, -33.548272393999937 }, { 151.320567254000025, -33.551364841999927 }, { 151.308767123000052, -33.547621351999894 }, { 151.28288821700005, -33.562107028999932 }, { 151.266449415000068, -33.561211846999939 }, { 151.25554446700005, -33.546807549999883 }, { 151.245941602000016, -33.521091403999932 }, { 151.230723504000025, -33.534926039999931 }, { 151.226817254000025, -33.554864190999922 }, { 151.23406009200005, -33.573337497999944 }, { 151.252777540000011, -33.582452080999929 }, { 151.248057488000086, -33.590101820999863 }, { 151.241953972000033, -33.595879815999922 }, { 151.234548373000052, -33.599867445999905 }, { 151.225596550000091, -33.602227471999953 }, { 151.225596550000091, -33.609063408999972 }, { 151.249522332000083, -33.606377862999892 }, { 151.28164068000001, -33.572901828999946 }, { 151.299338124000087, -33.570624204999973 }, { 151.309992612000144, -33.578874700999876 }, { 151.298736359000031, -33.606489340999886 }, { 151.291502, -33.636533019999959 }, { 151.295259821000059, -33.648780177999882 }, { 151.30909433000005, -33.637533463999958 }, { 151.317123143, -33.622147940999895 }, { 151.325471543000106, -33.592058408999932 }, { 151.340752909, -33.617465535999898 }, { 151.321341977000088, -33.66781743699994 }, { 151.309178674, -33.692972897999951 }, { 151.305674675000091, -33.720147393999966 }, { 151.304453972000033, -33.726169528999961 }, { 151.311778191000087, -33.736097914999874 }, { 151.31763756600003, -33.74675872199991 }, { 151.317149285000028, -33.757500908999916 }, { 151.308767123000052, -33.781019789999888 }, { 151.304698113000086, -33.825372002999913 }, { 151.291758660000085, -33.829847914999888 }, { 151.279144727000016, -33.827569268999909 }, { 151.266368035000085, -33.828383070999919 }, { 151.252777540000011, -33.842461846999953 }, { 151.246918165000068, -33.856377862999935 }, { 151.247325066000087, -33.867282809999921 }, { 151.254730665000068, -33.874200127999913 }, { 151.269867384000065, -33.876641533999944 }, { 151.280121290000011, -33.870700778999918 }, { 151.28467858200014, -33.860121351999879 }, { 151.287852410000028, -33.856377862999935 }, { 151.294444207000083, -33.870375257999896 }, { 151.29249108200014, -33.891778252999941 }, { 151.273692254000082, -33.937432549999883 }, { 151.281423373000109, -33.952325127999927 }, { 151.267425977000016, -33.981703382999939 }, { 151.260264519000089, -33.992608330999914 }, { 151.249359571000014, -34.003838799999912 }, { 151.241709832000083, -33.998630466999913 }, { 151.213145379000082, -33.966729424999897 }, { 151.201914910000085, -33.95916106599995 }, { 151.182302280000044, -33.963474216999956 }, { 151.177907748000052, -33.973809502999956 }, { 151.176036004000082, -33.987481377999899 }, { 151.164073113000143, -34.000746351999922 }, { 151.145355665000068, -34.00367603999986 }, { 151.12468509200005, -34.0004208309999 }, { 151.106293165000011, -34.000909112999892 }, { 151.095225457000083, -34.014418226999865 }, { 151.125498894000089, -34.020440362999878 }, { 151.132660352000016, -34.024102471999925 }, { 151.143565300000091, -34.032810153999904 }, { 151.149180535000085, -34.031996351999894 }, { 151.160329623000109, -34.01751067499994 }, { 151.221446160000085, -34.024997653999918 }, { 151.232269727000073, -34.024102471999925 }, { 151.231211785000028, -34.040459893999937 }, { 151.22584069100003, -34.047051690999908 }, { 151.179698113000143, -34.047946872999901 }, { 151.17554772200009, -34.046644789999903 }, { 151.172373894000145, -34.047946872999901 }, { 151.164073113000143, -34.054782809999921 }, { 151.158457879000025, -34.062595309999921 }, { 151.155039910000028, -34.070896091999899 }, { 151.149180535000085, -34.078301690999879 }, { 151.136078321000014, -34.082696221999953 }, { 151.146820509000065, -34.086032809999978 }, { 151.170420769000089, -34.086032809999978 }, { 151.17701256600003, -34.089532158999887 }, { 151.177093946000014, -34.100355726999879 }, { 151.168955925000091, -34.110121351999922 }, { 151.150401238000086, -34.124281507999939 }, { 151.112861003000035, -34.149470207999954 }, { 151.096117432000085, -34.162938379999915 }, { 151.068357135000099, -34.175111234999903 }, { 151.027957464, -34.200796095999934 }, { 151.009685907000062, -34.219916955999892 }, { 150.968952516000115, -34.262675193999925 }, { 150.940628388000107, -34.302159102999951 }, { 150.924918127000069, -34.330418880999957 }, { 150.928274759000089, -34.363486780999963 }, { 150.908050376000062, -34.407641400999907 }, { 150.903049563000081, -34.450860842999916 }, { 150.918867505000151, -34.486404115999932 }, { 150.897779177000075, -34.502081173999954 }, { 150.887217644000089, -34.530205987999906 }, { 150.873301629000025, -34.545505466999956 }, { 150.854991082000083, -34.5414364559999 }, { 150.867035352000016, -34.522556247999958 }, { 150.86085045700014, -34.513278903999918 }, { 150.848155144000145, -34.510511976999865 }, { 150.84131920700014, -34.510674737999921 }, { 150.835134311000047, -34.513767184999907 }, { 150.800954623000052, -34.548272393999923 }, { 150.805837436000047, -34.557224216999941 }, { 150.812185092000107, -34.561211846999925 }, { 150.820323113000086, -34.562107028999918 }, { 150.842051629000082, -34.561700127999913 }, { 150.854991082000083, -34.569919528999904 }, { 150.88233483200014, -34.592217705999943 }, { 150.897227410000028, -34.601169528999975 }, { 150.917002800000091, -34.60344817499994 }, { 150.883636915000068, -34.607028903999918 }, { 150.870453321000014, -34.626722914999874 }, { 150.847911004000025, -34.751722914999931 }, { 150.83375084700009, -34.782403252999927 }, { 150.810557488000143, -34.795179945999877 }, { 150.779307488000086, -34.806898695999877 }, { 150.753428582000083, -34.858086846999925 }, { 150.728688998000109, -34.86980559699991 }, { 150.727061394000089, -34.874118747999916 }, { 150.738780144000089, -34.883721612999892 }, { 150.754079623000052, -34.893324476999865 }, { 150.76319420700014, -34.897637627999956 }, { 150.778493686000104, -34.901625257999939 }, { 150.77686608200014, -34.910088799999883 }, { 150.764008009, -34.917413018999895 }, { 150.74577884200005, -34.918145440999922 }, { 150.754161004000025, -34.9281552059999 }, { 150.776133660000028, -34.935804945999934 }, { 150.787364129000025, -34.945489190999893 }, { 150.779795769000089, -34.952894789999888 }, { 150.787364129000025, -34.959730726999894 }, { 150.776215040000011, -34.986993096999896 }, { 150.796153191000087, -35.004001559999949 }, { 150.827647332000083, -35.012627862999949 }, { 150.851573113000086, -35.014906507999925 }, { 150.854991082000083, -35.021661065999965 }, { 150.843597852000016, -35.054131768999952 }, { 150.844737175000148, -35.077243747999901 }, { 150.832855665000011, -35.09091562299993 }, { 150.807139519000145, -35.110528252999899 }, { 150.798838738000086, -35.099379164999888 }, { 150.786143425000091, -35.089125257999953 }, { 150.778086785000085, -35.0785458309999 }, { 150.783539259, -35.066176039999874 }, { 150.792816602000073, -35.050469658999901 }, { 150.781260613000143, -35.028578382999868 }, { 150.787364129000025, -35.014906507999925 }, { 150.767588738000086, -35.007256768999895 }, { 150.748789910000028, -35.01034921699997 }, { 150.731455925000148, -35.017266533999887 }, { 150.695567254000082, -35.026136976999922 }, { 150.68702233200014, -35.038995049999954 }, { 150.677500847000033, -35.075778903999932 }, { 150.69695071700005, -35.079766533999916 }, { 150.701508009, -35.092868747999972 }, { 150.700938347000033, -35.109470309999935 }, { 150.703782730764544, -35.120441501962588 } }, Contour{ { 148.848258498231132, -35.750479017992291 }, { 148.853529493990891, -35.749083754012034 }, { 148.857301873882307, -35.74567311022588 }, { 148.862572869642179, -35.736216322525223 }, { 148.865983515226958, -35.73208220742795 }, { 148.870324334999964, -35.728929946060106 }, { 148.876525506746702, -35.727586358023984 }, { 148.883036736855843, -35.727896417285805 }, { 148.887842644622367, -35.733167413045663 }, { 148.891408318938772, -35.742469171115332 }, { 148.892183466193956, -35.762261243861289 }, { 148.901020136270176, -35.818743584948464 }, { 148.907531366379487, -35.839775892943138 }, { 148.922724236933959, -35.867629490308687 }, { 148.92964887909244, -35.875794365917287 }, { 148.933627963659603, -35.879256686546867 }, { 148.93781375470104, -35.882357272869839 }, { 148.948149042444243, -35.887886651048106 }, { 149.006078322556561, -35.903699640126263 }, { 149.030314568762321, -35.917497246700592 }, { 149.035998976571477, -35.919357598674225 }, { 149.042406853893169, -35.919615981092619 }, { 149.04798790891482, -35.917962334693954 }, { 149.052483759218092, -35.914861749270258 }, { 149.055739374272662, -35.910624282284786 }, { 149.058529901333827, -35.905818372719722 }, { 149.065041132342344, -35.890832207740175 }, { 149.07108727355876, -35.881582126513933 }, { 149.074187859881818, -35.877551365103429 }, { 149.078063592560795, -35.873830662055369 }, { 149.082611118808074, -35.870575047000841 }, { 149.092222935240272, -35.864890639191586 }, { 149.096718784644167, -35.861479993606793 }, { 149.09950931170539, -35.856829115471285 }, { 149.101524693309955, -35.851558118812136 }, { 149.104625278733636, -35.839724216099711 }, { 149.106485629807992, -35.82742522629313 }, { 149.105968865870466, -35.815281263419607 }, { 149.096408726281709, -35.776678968959274 }, { 149.095168491932327, -35.765155124609294 }, { 149.095943638288247, -35.759470716800124 }, { 149.104005162008548, -35.731152031441042 }, { 149.104625278733636, -35.715028984899718 }, { 149.099664341336336, -35.684694919734739 }, { 149.087261997842973, -35.63038298898374 }, { 149.086435174643555, -35.610022474557567 }, { 149.090465936054159, -35.599790540501004 }, { 149.09780399026198, -35.591418958418245 }, { 149.126329380296625, -35.581962171616865 }, { 149.131393671380806, -35.571885268090597 }, { 149.130980259331409, -35.566200860281427 }, { 149.133254021555786, -35.557674248567665 }, { 149.14668989472284, -35.52873544648368 }, { 149.150255569039246, -35.518193454963949 }, { 149.151340773757624, -35.509976901612731 }, { 149.147930129072165, -35.498918145256212 }, { 149.146069777997809, -35.494990736633184 }, { 149.141212193388071, -35.488066094474661 }, { 149.137388136653158, -35.476128838974674 }, { 149.137801547803178, -35.473648370276052 }, { 149.139661899776797, -35.468532403247821 }, { 149.147930129072165, -35.456130059754457 }, { 149.146793248409608, -35.450445651945287 }, { 149.144932896436046, -35.445071302498576 }, { 149.141728957325427, -35.439128513170374 }, { 149.142659133312407, -35.434529310978931 }, { 149.14555301316102, -35.430343519937509 }, { 149.149583774571568, -35.427087904882896 }, { 149.154441360080682, -35.424142348190827 }, { 149.160332472565528, -35.418199557963263 }, { 149.166843702674669, -35.410086358298727 }, { 149.182346633390353, -35.386263523243059 }, { 149.186687453163415, -35.380682468221281 }, { 149.194955683357989, -35.374791354837143 }, { 149.200330031905423, -35.37262094450098 }, { 149.2064278508646, -35.371845798145074 }, { 149.212473992980392, -35.372724298187748 }, { 149.227356806071725, -35.380992526583825 }, { 149.23278283056311, -35.382542820194999 }, { 149.240430943133504, -35.380062350597015 }, { 149.244410027700667, -35.377116794804223 }, { 149.249112583578892, -35.366523125541789 }, { 149.263220250314248, -35.352002047656327 }, { 149.269163038743159, -35.350451755843793 }, { 149.277482944882024, -35.349056491863621 }, { 149.349933302879606, -35.359495130595775 }, { 149.359545119311804, -35.359030042602413 }, { 149.367038202251194, -35.357324721158889 }, { 149.381765984812318, -35.3487464326018 }, { 149.393083123587246, -35.340684909780776 }, { 149.404400263261437, -35.330194594205196 }, { 149.404400263261437, -35.327920831081457 }, { 149.403004999281279, -35.324045099301856 }, { 149.398509148978007, -35.321357924128904 }, { 149.349623243617771, -35.299912204984281 }, { 149.326988966967235, -35.292625827619872 }, { 149.318307325622584, -35.29148894605801 }, { 149.308643834145528, -35.289163506990207 }, { 149.258104283286002, -35.269268079658119 }, { 149.249422641941408, -35.263945407954196 }, { 149.244720086962388, -35.258364352932503 }, { 149.244720086962388, -35.252628269179283 }, { 149.245805291680767, -35.24694386226939 }, { 149.245805291680767, -35.241259453560943 }, { 149.242549676626311, -35.233766370621481 }, { 149.237123651235549, -35.230510755566868 }, { 149.229217157146081, -35.229167168430038 }, { 149.220380487069747, -35.228702080436676 }, { 149.2064278508646, -35.224619643082022 }, { 149.199296503131109, -35.220898940034047 }, { 149.194645624096268, -35.216041354524918 }, { 149.192888624910097, -35.211493829176902 }, { 149.192165155397618, -35.206429538992012 }, { 149.192165155397618, -35.203122247094058 }, { 149.193198684171932, -35.192166842625653 }, { 149.192268508185123, -35.185655612516442 }, { 149.189167921862065, -35.178524264782951 }, { 149.184982130820629, -35.174028416278347 }, { 149.180021194322649, -35.170514417906062 }, { 149.127104526652545, -35.139508559172683 }, { 149.102919957290226, -35.145864759650891 }, { 148.939519077943032, -35.248700859656978 }, { 148.82598595588712, -35.313348077252016 }, { 148.817717726591809, -35.320479424985507 }, { 148.809346145408199, -35.330866387773611 }, { 148.804178502435889, -35.339599705062341 }, { 148.801904739312249, -35.346162612014979 }, { 148.801284620788579, -35.352467135649775 }, { 148.802214796775388, -35.358099866615518 }, { 148.803765090386662, -35.363629245693147 }, { 148.805728795147786, -35.368848564609578 }, { 148.805728795147786, -35.376186618817414 }, { 148.803455032024146, -35.386263523243059 }, { 148.790225865331365, -35.414272148440872 }, { 148.7874353382702, -35.422592054579653 }, { 148.783869663953794, -35.447758477671613 }, { 148.770537143574302, -35.493285414290384 }, { 148.769451938855866, -35.506462905039015 }, { 148.772397496447297, -35.549457696115738 }, { 148.78262942870515, -35.581083672473483 }, { 148.782164340711688, -35.591987400098461 }, { 148.780148960905819, -35.606921889133858 }, { 148.773069289116449, -35.63741098392974 }, { 148.772552525178867, -35.651105238615884 }, { 148.774877964246571, -35.659786879061272 }, { 148.788365513357746, -35.669760430699341 }, { 148.791156041318231, -35.674307956946649 }, { 148.791879510830654, -35.679785659180851 }, { 148.790949334843845, -35.6922913545624 }, { 148.791156041318231, -35.699422703195182 }, { 148.792706334030072, -35.707277519541861 }, { 148.795600213878799, -35.712703545832014 }, { 148.799372592870839, -35.717096042448404 }, { 148.832445510052196, -35.744174492558756 }, { 148.837251417818607, -35.747275078881742 }, { 148.842522413578479, -35.749393813273855 }, { 148.848258498231132, -35.750479017992291 } } }\n\t\n\tisnsw = nswmulti.Contains(canberra)\n\tif isnsw == true {\n\t\tt.Error(\"Canberra should not be in NSW as it falls in the donut contour of the ACT\")\n\t}\n\n\tsydney := Point{151.209, -33.866}\n\tisnsw = nswmulti.Contains(sydney)\t\n\tif isnsw != true {\n\t\tt.Error(\"Sydney should be in NSW\")\n\t}\n\n\tlosangeles := Point{118.28333, 34.01667}\n\tisnsw = nswmulti.Contains(losangeles)\t\n\tif isnsw == true {\n\t\tt.Error(\"Los Angeles should not be in NSW\")\n\t} \n\n}", "func (c *container) Polygon(pts ...Point) *Polygon {\n\tp := &Polygon{Points: pts}\n\tc.contents = append(c.contents, p)\n\n\treturn p\n}", "func (p linear) getInfill(layerNr int, outline clipper.Path, holes clipper.Paths, overlap float32) clipper.Paths {\n\tvar result clipper.Paths\n\n\t// clip the paths with the lines using intersection\n\texset := clipper.Paths{outline}\n\n\tco := clipper.NewClipperOffset()\n\tcl := clipper.NewClipper(clipper.IoNone)\n\n\t// generate the ex-set for the overlap (only if needed)\n\tif overlap != 0 {\n\t\tco.AddPaths(exset, clipper.JtSquare, clipper.EtClosedPolygon)\n\t\tco.MiterLimit = 2\n\t\texset = co.Execute(float64(-overlap))\n\n\t\tco.Clear()\n\t\tco.AddPaths(holes, clipper.JtSquare, clipper.EtClosedPolygon)\n\t\tco.MiterLimit = 2\n\t\tholes = co.Execute(float64(overlap))\n\t}\n\n\t// clip the lines by the outline and holes\n\tcl.AddPaths(exset, clipper.PtClip, true)\n\tcl.AddPaths(holes, clipper.PtClip, true)\n\n\tif layerNr%2 == 0 {\n\t\tcl.AddPaths(p.verticalPaths, clipper.PtSubject, false)\n\t} else {\n\t\tcl.AddPaths(p.horizontalPaths, clipper.PtSubject, false)\n\t}\n\n\ttree, ok := cl.Execute2(clipper.CtIntersection, clipper.PftEvenOdd, clipper.PftEvenOdd)\n\tif !ok {\n\t\tfmt.Println(\"getLinearFill failed\")\n\t\treturn nil\n\t}\n\n\tfor _, c := range tree.Childs() {\n\t\tresult = append(result, c.Contour())\n\t}\n\n\treturn result\n}", "func CreatePolygon(polygon [][][]float64, minp, maxp int) *Poly {\n\twest, south, east, north := 180.0, 90.0, -180.0, -90.0\n\tmaxpmap := map[string]string{}\n\tfor _, cont := range polygon {\n\t\tfor _, pt := range cont {\n\t\t\tx, y := pt[0], pt[1]\n\t\t\t// can only be one condition\n\t\t\t// using else if reduces one comparison\n\t\t\tif x < west {\n\t\t\t\twest = x\n\t\t\t} else if x > east {\n\t\t\t\teast = x\n\t\t\t}\n\n\t\t\tif y < south {\n\t\t\t\tsouth = y\n\t\t\t} else if y > north {\n\t\t\t\tnorth = y\n\t\t\t}\n\t\t\tghash := Geohash(pt, maxp)\n\t\t\tmaxpmap[ghash] = \"\"\n\t\t}\n\t}\n\n\t// logic for creating the smaller maps of each geohash\n\tcurrentmap := maxpmap\n\ttotalmap := map[int]map[string]string{}\n\ttotalmap[maxp] = maxpmap\n\tfor i := maxp - 1; i >= minp; i-- {\n\t\tnewmap := map[string]string{}\n\t\tfor k := range currentmap {\n\t\t\tnewmap[k[:len(k)-1]] = \"\"\n\t\t}\n\t\ttotalmap[i] = newmap\n\t\tcurrentmap = newmap\n\t}\n\n\treturn &Poly{\n\t\tPolygon: polygon,\n\t\tExtrema: Extrema{N: north, S: south, E: east, W: west},\n\t\tMap: totalmap,\n\t\tMin: minp,\n\t\tMax: maxp,\n\t}\n}", "func PolyStyle(children ...Element) *CompoundElement { return newCE(\"PolyStyle\", children) }", "func Decode_Polygon(geom []uint32) [][][][]int {\n\tpos := 0\n\tcurrentpt := []int{0, 0}\n\tnewline := [][]int{}\n\tpolygons := [][][][]int{}\n\tfor pos < len(geom) {\n\t\tgeomval := geom[pos]\n\n\t\tcmd, length := Get_Command_Length(geomval)\n\n\t\t// conde for a move to cmd\n\t\tif cmd == 1 {\n\t\t\txdelta := DecodeDelta(geom[pos+1])\n\t\t\tydelta := DecodeDelta(geom[pos+2])\n\t\t\tcurrentpt = []int{currentpt[0] + xdelta, currentpt[1] + ydelta}\n\t\t\t//fmt.Println(firstpt)\n\t\t\tpos += 2\n\n\t\t} else if cmd == 2 {\n\t\t\tnewline = [][]int{currentpt}\n\t\t\tcurrentpos := pos + 1\n\t\t\tendpos := currentpos + int(length*2)\n\t\t\tfor currentpos < endpos {\n\t\t\t\txdelta := DecodeDelta(geom[currentpos])\n\t\t\t\tydelta := DecodeDelta(geom[currentpos+1])\n\t\t\t\tcurrentpt = []int{currentpt[0] + xdelta, currentpt[1] + ydelta}\n\t\t\t\tnewline = append(newline, currentpt)\n\t\t\t\tcurrentpos += 2\n\t\t\t}\n\n\t\t\tpos = currentpos - 1\n\n\t\t} else if cmd == 7 {\n\t\t\t//newline = append(newline,newline[0])\n\t\t\tif Exterior_Ring(newline) == false {\n\t\t\t\tpolygons = append(polygons, [][][]int{newline})\n\t\t\t\tnewline = [][]int{}\n\t\t\t} else {\n\t\t\t\tif len(polygons) == 0 {\n\t\t\t\t\tpolygons = append(polygons, [][][]int{newline})\n\n\t\t\t\t} else {\n\t\t\t\t\tpolygons[len(polygons)-1] = append(polygons[len(polygons)-1], newline)\n\n\t\t\t\t}\n\t\t\t\tnewline = [][]int{}\n\t\t\t}\n\n\t\t}\n\n\t\t//fmt.Println(cmd,length)\n\t\tpos += 1\n\t}\n\n\treturn polygons\n}", "func (p Polygon) Clone() Polygon {\n\tr := Polygon(make([]Contour, len(p)))\n\tfor i := range p {\n\t\tr[i] = p[i].Clone()\n\t}\n\treturn r\n}", "func (r *patternPainter) Paint(ss []raster.Span, done bool) {\n\tb := r.im.Bounds()\n\tfor _, s := range ss {\n\t\tif s.Y < b.Min.Y {\n\t\t\tcontinue\n\t\t}\n\t\tif s.Y >= b.Max.Y {\n\t\t\treturn\n\t\t}\n\t\tif s.X0 < b.Min.X {\n\t\t\ts.X0 = b.Min.X\n\t\t}\n\t\tif s.X1 > b.Max.X {\n\t\t\ts.X1 = b.Max.X\n\t\t}\n\t\tif s.X0 >= s.X1 {\n\t\t\tcontinue\n\t\t}\n\t\tconst m = 1<<16 - 1\n\t\ty := s.Y - r.im.Rect.Min.Y\n\t\tx0 := s.X0 - r.im.Rect.Min.X\n\t\t// RGBAPainter.Paint() in $GOPATH/src/github.com/golang/freetype/raster/paint.go\n\t\ti0 := (s.Y-r.im.Rect.Min.Y)*r.im.Stride + (s.X0-r.im.Rect.Min.X)*4\n\t\ti1 := i0 + (s.X1-s.X0)*4\n\t\tfor i, x := i0, x0; i < i1; i, x = i+4, x+1 {\n\t\t\tma := s.Alpha\n\t\t\tif r.mask != nil {\n\t\t\t\tma = ma * uint32(r.mask.AlphaAt(x, y).A) / 255\n\t\t\t\tif ma == 0 {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t}\n\t\t\tc := r.p.ColorAt(x, y)\n\t\t\tcr, cg, cb, ca := c.RGBA()\n\t\t\tdr := uint32(r.im.Pix[i+0])\n\t\t\tdg := uint32(r.im.Pix[i+1])\n\t\t\tdb := uint32(r.im.Pix[i+2])\n\t\t\tda := uint32(r.im.Pix[i+3])\n\t\t\ta := (m - (ca * ma / m)) * 0x101\n\t\t\tr.im.Pix[i+0] = uint8((dr*a + cr*ma) / m >> 8)\n\t\t\tr.im.Pix[i+1] = uint8((dg*a + cg*ma) / m >> 8)\n\t\t\tr.im.Pix[i+2] = uint8((db*a + cb*ma) / m >> 8)\n\t\t\tr.im.Pix[i+3] = uint8((da*a + ca*ma) / m >> 8)\n\t\t}\n\t}\n}", "func Polygon(children ...Element) *CompoundElement { return newCE(\"Polygon\", children) }", "func polyGetNoise(eta int, seed []byte, nonce byte) Poly {\n\toutbuf := make([]byte, eta*n/4)\n\tstate := sha3.NewShake256()\n\tstate.Write(seed[:])\n\tstate.Write([]byte{nonce})\n\tstate.Read(outbuf[:])\n\tvar p Poly\n\tif eta == 3 {\n\t\tp = polyCBD3(outbuf)\n\t}\n\tif eta == 2 {\n\t\tp = polyCBD2(outbuf)\n\t}\n\treturn p\n}", "func (imd *IMDraw) Polygon(thickness float64) {\n\tif thickness == 0 {\n\t\timd.fillPolygon()\n\t} else {\n\t\timd.polyline(thickness, true)\n\t}\n}", "func (w *Way) Polygon() bool {\n\tif len(w.Nodes) <= 3 {\n\t\t// need more than 3 nodes to be a polygon since first/last is repeated.\n\t\treturn false\n\t}\n\n\tif w.Nodes[0].ID != w.Nodes[len(w.Nodes)-1].ID {\n\t\t// must be closed\n\t\treturn false\n\t}\n\n\tif area := w.Tags.Find(\"area\"); area == \"no\" {\n\t\treturn false\n\t} else if area != \"\" {\n\t\treturn true\n\t}\n\n\tfor _, c := range polyConditions {\n\t\tv := w.Tags.Find(c.Key)\n\t\tif v == \"\" || v == \"no\" {\n\t\t\tcontinue\n\t\t}\n\n\t\tif c.Condition == conditionAll {\n\t\t\treturn true\n\t\t} else if c.Condition == conditionWhitelist {\n\t\t\tindex := sort.SearchStrings(c.Values, v)\n\t\t\tif index != len(c.Values) && c.Values[index] == v {\n\t\t\t\treturn true\n\t\t\t}\n\t\t} else if c.Condition == conditionBlacklist {\n\t\t\tindex := sort.SearchStrings(c.Values, v)\n\t\t\tif index == len(c.Values) || c.Values[index] != v {\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\t}\n\n\treturn false\n}", "func drip(in image.Image, out *image.RGBA, ltr int, ttb int, degree float64) {\n\trand.Seed(time.Now().UTC().UnixNano())\n\tw, h := in.Bounds().Max.X, in.Bounds().Max.Y\n\tfor y := 0; y < h; y++ {\n\t\tfor x := 0; x < w; x++ {\n\t\t\tif rand.Float64() < degree {\n\t\t\t\t//the pixel to drip from the in image\n\t\t\t\tif isInBounds(out, x+ltr, y+ttb) {\n\t\t\t\t\tout.Set(x, y, in.At(x+ltr, y+ttb))\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif isInBounds(out, x, y) {\n\t\t\t\t\tout.Set(x, y, in.At(x, y))\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "func simplify(landmarks []image.Point) []image.Point {\n\tvar out []image.Point\n\n\tfor i := 0; i < 17; i++ {\n\t\tout = append(out, landmarks[i])\n\t}\n\n\tfor i := 26; i >= 17; i-- {\n\t\tout = append(out, moveUp(landmarks[8], landmarks[i]))\n\t}\n\n\treturn out\n}", "func (p *HatchPattern) Tile(clip *Path) *Path {\n\tdst := clip.FastBounds()\n\n\t// find extremes along cell axes\n\tinvCell := p.cell.Inv()\n\tpoints := []Point{\n\t\tinvCell.Dot(Point{dst.X - p.Thickness, dst.Y - p.Thickness}),\n\t\tinvCell.Dot(Point{dst.X + dst.W + p.Thickness, dst.Y - p.Thickness}),\n\t\tinvCell.Dot(Point{dst.X + dst.W + p.Thickness, dst.Y + dst.H + p.Thickness}),\n\t\tinvCell.Dot(Point{dst.X - p.Thickness, dst.Y + dst.H + p.Thickness}),\n\t}\n\tx0, x1 := points[0].X, points[0].X\n\ty0, y1 := points[0].Y, points[0].Y\n\tfor _, point := range points[1:] {\n\t\tx0 = math.Min(x0, point.X)\n\t\tx1 = math.Max(x1, point.X)\n\t\ty0 = math.Min(y0, point.Y)\n\t\ty1 = math.Max(y1, point.Y)\n\t}\n\n\thatch := p.hatch(x0, y0, x1, y1)\n\thatch = hatch.Transform(p.cell)\n\thatch = hatch.And(clip)\n\tif p.Thickness != 0.0 {\n\t\thatch = hatch.Stroke(p.Thickness, ButtCap, MiterJoin, 0.01)\n\t}\n\treturn hatch\n}", "func StencilMaskSeparate(face uint32, mask uint32) {\n C.glowStencilMaskSeparate(gpStencilMaskSeparate, (C.GLenum)(face), (C.GLuint)(mask))\n}", "func (g *Circle) Polygon() Object {\n\treturn g.getObject()\n}", "func StencilMask(mask uint32) {\n C.glowStencilMask(gpStencilMask, (C.GLuint)(mask))\n}", "func fillPolygon(c vg.Canvas, clr color.Color, pts []vg.Point) {\n\tif len(pts) == 0 {\n\t\treturn\n\t}\n\n\tc.SetColor(clr)\n\tp := make(vg.Path, 0, len(pts)+1)\n\tp.Move(pts[0])\n\tfor _, pt := range pts[1:] {\n\t\tp.Line(pt)\n\t}\n\tp.Close()\n\tc.Fill(p)\n}", "func PolygonOffset(factor float32, units float32) {\n C.glowPolygonOffset(gpPolygonOffset, (C.GLfloat)(factor), (C.GLfloat)(units))\n}", "func BLENDPS(i, mx, x operand.Op) { ctx.BLENDPS(i, mx, x) }", "func (p PolygonZMS) LinearRings() struct {\n\tSrid uint32\n\tPolzm PolygonZM\n} {\n\treturn p\n}", "func (p PatternExprPair) Pattern() Pattern {\n\treturn p.pattern\n}", "func CreateFilterRing(m *model3d.Mesh) *model3d.Mesh {\n\tcollider := model3d.MeshToCollider(m)\n\n\t// Pick a z-axis where we can slice the ring.\n\tsliceZ := 2 + m.Min().Z\n\t// Scale up the bitmap to get accurate resolution.\n\tconst scale = 20\n\n\tlog.Println(\"Tracing ring outline...\")\n\tmin := m.Min()\n\tsize := m.Max().Sub(min)\n\tbitmap := model2d.NewBitmap(int(size.X*scale), int(size.Y*scale))\n\tfor y := 0; y < bitmap.Height; y++ {\n\t\tfor x := 0; x < bitmap.Width; x++ {\n\t\t\trealX := min.X + float64(x)/scale\n\t\t\trealY := min.Y + float64(y)/scale\n\t\t\tnumColl := collider.RayCollisions(&model3d.Ray{\n\t\t\t\tOrigin: model3d.XYZ(realX, realY, sliceZ),\n\t\t\t\tDirection: model3d.X(1),\n\t\t\t}, nil)\n\t\t\tnumColl1 := collider.RayCollisions(&model3d.Ray{\n\t\t\t\tOrigin: model3d.XYZ(realX, realY, sliceZ),\n\t\t\t\tDirection: model3d.Coord3D{X: -1},\n\t\t\t}, nil)\n\t\t\tbitmap.Set(x, y, numColl == 2 && numColl1 == 2)\n\t\t}\n\t}\n\n\tsolid := NewRingSolid(bitmap, scale)\n\tsqueeze := &toolbox3d.AxisSqueeze{\n\t\tAxis: toolbox3d.AxisZ,\n\t\tMin: 1,\n\t\tMax: 4.5,\n\t\tRatio: 0.1,\n\t}\n\tlog.Println(\"Creating mesh...\")\n\tmesh := model3d.MarchingCubesConj(solid, 0.1, 8, squeeze)\n\tlog.Println(\"Done creating mesh...\")\n\tmesh = mesh.FlattenBase(0)\n\tmesh = mesh.EliminateCoplanar(1e-8)\n\treturn mesh\n}", "func Exterior_Ring(coord [][]int) bool {\n\tcount := 0\n\tfirstpt := coord[0]\n\tweight := 0.0\n\tvar oldpt []int\n\tfor _, pt := range coord {\n\t\tif count == 0 {\n\t\t\tcount = 1\n\t\t} else {\n\t\t\tweight += float64((pt[0] - oldpt[0]) * (pt[1] + oldpt[1]))\n\t\t}\n\t\toldpt = pt\n\t}\n\n\tweight += float64((firstpt[0] - oldpt[0]) * (firstpt[1] + oldpt[1]))\n\treturn weight > 0\n}", "func (dw *DrawingWand) PushPattern(patternId string, x, y, width, height float64) {\n\tcstr := C.CString(patternId)\n\tdefer C.free(unsafe.Pointer(cstr))\n\tC.MagickDrawPushPattern(dw.dw, cstr, C.double(x), C.double(y), C.double(width), C.double(height))\n}", "func NewPolygon() *Polygon {\n\treturn &Polygon{}\n}", "func (T triangle) rasterize( C canvas) {\n\tmask:=make([][]bool,C.yres,C.yres)\n\tfor i := 0; i < C.yres; i++ {\n\t\tmaskpre:=make([]bool,C.xres,C.xres )\n\t\tmask[i]=maskpre\n\t}\n\tp0:=[2]float64{T.p0.x/T.p0.z*C.res,T.p0.y/T.p0.z*C.res}\n\tp1:=[2]float64{T.p1.x/T.p1.z*C.res,T.p1.y/T.p1.z*C.res}\n\tp2:=[2]float64{T.p2.x/T.p2.z*C.res,T.p2.y/T.p2.z*C.res}\n\tedges:=[3][2][2]float64{[2][2]float64{p0,p1},[2][2]float64{p1,p2},[2][2]float64{p2,p0}}\n\n\tminy,maxy:=2147483647,0\n\tfor _,edge := range edges {\n\t\tif edge[0][1]>edge[1][1] {\n\t\t\tedge[0],edge[1]=edge[1],edge[0]\n\t\t}\n\t\ty0:=int( edge[0][1]-0.5)-C.y0\n\t\ty1:=int( edge[1][1]-0.5)-C.y0\n\t\tif y0 < 0 {\n\t\t\ty0=0\n\t\t} else if y0 >= C.yres {\n\t\t\ty0=C.yres-1\n\t\t}\n\t\tif y1 <0 {\n\t\t\ty1=0\n\t\t} else if y1 >= C.yres {\n\t\t\ty1=C.yres-1\n\t\t}\n\t\tif y0<miny {\n\t\t\tminy=y0\n\t\t}\n\t\tif y1>maxy {\n\t\t\tmaxy=y1\n\t\t}\n\t\tfor i := y0; i <= y1; i++ {\n\t\t\tfloati:=float64(i+C.y0)+0.5\n\t \t\tslopeinv:= (edge[0][0]-edge[1][0])/(edge[0][1]-edge[1][1])\n\t\t\tcrosx:=edge[0][0]+slopeinv*(floati-edge[0][1])\n\t\t\txindex:=int(crosx+0.5)-C.x0\n\t\t\tif xindex<C.xres {\n\t\t\t\tif xindex>=0 {\n\t\t\t\t\tmask[i][xindex]= !mask[i][xindex]\n\t\t\t\t} else{\n\t\t\t\t\tmask[i][0]= !mask[i][0]\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor i :=miny ; i < maxy ; i++ {\n\t\tinside:=false\n\t\tfor j := 0; j < C.xres; j++ {\n\t\t\tif mask[i][j]{\n\t\t\t\tinside= !inside\n\t\t\t\tif !inside{\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\tif inside {\n\t\t\t\tz:=T.p0dotn/T.n.dot(vec3{float64(j+C.x0)/C.res,float64(i+C.y0)/C.res,1.})\n\t\t\t\tif z<C.z[i][j] {\n\t\t\t\t\tC.z[i][j]=z\n\t\t\t\t\tC.pic[i][j]=T.color\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "func stencil(a *apl.Apl, f, RO apl.Value) apl.Function {\n\tderived := func(a *apl.Apl, dummyL, R apl.Value) (apl.Value, error) {\n\t\t// Stencil derived function must be called monadically.\n\t\tif dummyL != nil {\n\t\t\treturn nil, fmt.Errorf(\"stencil: derived function cannot be called dyadically\")\n\t\t}\n\n\t\t// f is a Function\n\t\tf := f.(apl.Function)\n\n\t\t// RO is a 2 x rank R index array with rows that indicate stencil shape and movement.\n\t\tvar ai apl.IntArray\n\t\tif _, ok := RO.(apl.EmptyArray); ok {\n\t\t\tai = apl.IntArray{}\n\t\t} else {\n\t\t\tai = RO.(apl.IntArray)\n\t\t}\n\t\tis := ai.Shape()\n\t\tif len(is) > 2 {\n\t\t\treturn nil, fmt.Errorf(\"stencil: rank of RO is > 2: %d\", len(is))\n\t\t}\n\n\t\t// R is an array.\n\t\tar, ok := R.(apl.Array)\n\t\tif ok == false {\n\t\t\treturn nil, fmt.Errorf(\"stencil: right argument must be an array: %T\", R)\n\t\t}\n\t\trs := ar.Shape()\n\t\tif len(is) > 0 && is[len(is)-1] > len(rs) {\n\t\t\treturn nil, fmt.Errorf(\"stencil: shape of RO is too large: %v, max: [2 %d]\", is, len(rs))\n\t\t}\n\n\t\t// Default RO matrix.\n\t\tdef := apl.IntArray{Dims: []int{2, len(rs)}}\n\t\tdef.Ints = make([]int, 2*len(rs))\n\t\tfor i := range def.Ints {\n\t\t\tdef.Ints[i] = 1\n\t\t}\n\t\t// Overwrite default matrix with given values and swap.\n\t\tif len(is) == 1 {\n\t\t\tis = append([]int{1}, is[0])\n\t\t}\n\t\tic, idx := apl.NewIdxConverter(is)\n\t\tfor i := 0; i < apl.ArraySize(ai); i++ {\n\t\t\tdef.Ints[ic.Index(idx)] = int(ai.At(i).(apl.Int))\n\t\t\tapl.IncArrayIndex(idx, is)\n\t\t}\n\t\tai = def\n\t\tis = ai.Shape()\n\n\t\t// The result has the same shape as R.\n\t\tres := apl.MixedArray{Dims: apl.CopyShape(ar), Values: make([]apl.Value, apl.ArraySize(ar))}\n\n\t\t// The temporary array has the requested stencil shape, the first row of RO.\n\t\ttmp := apl.MixedArray{Dims: ai.Ints[:len(ai.Ints)/2]}\n\t\ttmp.Values = make([]apl.Value, apl.ArraySize(tmp))\n\t\tif apl.ArraySize(tmp) == 0 {\n\t\t\treturn nil, fmt.Errorf(\"stencil: stencil size is 0\")\n\t\t}\n\n\t\t// lvec is the left vector for the stencil function application,\n\t\t// which indicates the number of fill elements per axis.\n\t\tlvec := apl.IntArray{Dims: []int{len(rs)}}\n\t\tvec := make([]int, len(rs))\n\t\tlvec.Ints = vec\n\n\t\t// Apply the stencil to all elements of R.\n\t\tic, idx = apl.NewIdxConverter(rs)\n\t\tsdx := make([]int, len(tmp.Dims))\n\t\tdst := make([]int, len(idx))\n\t\tfor i := 0; i < len(res.Values); i++ {\n\n\t\t\t// Center the stencil on idx.\n\t\t\tic.Indexes(i, idx)\n\t\t\tcopy(dst, idx)\n\t\t\tfor k := range vec {\n\t\t\t\tvec[k] = 0\n\t\t\t}\n\t\t\tfor k := range tmp.Values {\n\t\t\t\tout := false\n\t\t\t\tfor d := range tmp.Dims {\n\t\t\t\t\tdst[d] = idx[d] + sdx[d] - tmp.Dims[d]/2\n\t\t\t\t\tif dst[d] < 0 || dst[d] >= res.Dims[d] {\n\t\t\t\t\t\tout = true\n\t\t\t\t\t}\n\t\t\t\t\tif v := dst[d]; v < 0 && -v > vec[d] {\n\t\t\t\t\t\t// Positive lvec value indicates the padding preceeds the array.\n\t\t\t\t\t\tvec[d] = -v\n\t\t\t\t\t} else if v = dst[d] + 1 - tmp.Dims[d]; v > 0 && -v < vec[d] {\n\t\t\t\t\t\t// Negative lvec value indicates padding follows the array values.\n\t\t\t\t\t\tvec[d] = -v\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif out {\n\t\t\t\t\ttmp.Values[k] = apl.Int(0)\n\t\t\t\t} else {\n\t\t\t\t\ttmp.Values[k] = ar.At(ic.Index(dst)) // TODO copy?\n\t\t\t\t}\n\n\t\t\t\tapl.IncArrayIndex(sdx, tmp.Dims)\n\t\t\t}\n\n\t\t\t// Apply the stencil and set the result.\n\t\t\tv, err := f.Call(a, lvec, tmp)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t\t// We only accept scalar results. Is that ok?\n\t\t\tif _, ok := v.(apl.Array); ok {\n\t\t\t\treturn nil, fmt.Errorf(\"stencil function must return a scalar, not an array\")\n\t\t\t}\n\t\t\tres.Values[i] = v\n\n\t\t\tapl.IncArrayIndex(idx, rs)\n\t\t}\n\t\treturn res, nil\n\t}\n\treturn function(derived)\n}", "func (s Shaper) Shape(text string, ppem uint16, direction Direction, script Script, language string, features string, variations string) []Glyph {\n\tglyphs := make([]Glyph, len([]rune(text)))\n\ti := 0\n\tvar prevIndex uint16\n\tfor cluster, r := range text {\n\t\tindex := s.sfnt.GlyphIndex(r)\n\t\tglyphs[i].Text = string(r)\n\t\tglyphs[i].ID = index\n\t\tglyphs[i].Cluster = uint32(cluster)\n\t\tglyphs[i].XAdvance = int32(s.sfnt.GlyphAdvance(index))\n\t\tif 0 < i {\n\t\t\tglyphs[i-1].XAdvance += int32(s.sfnt.Kerning(prevIndex, index))\n\t\t}\n\t\tprevIndex = index\n\t\ti++\n\t}\n\treturn glyphs\n}", "func (w *Walker) PolygonForTriangle(ctx context.Context, idx int, seen map[int]bool) (plyg [][][2]float64) {\n\t// Get the external ring for the given triangle.\n\tplyg4r := PolygonForRing(ctx, w.RingForTriangle(ctx, idx, seen))\n\treturn w.Order.RectifyPolygon(plyg4r)\n}", "func (el *Fill) Path() {}", "func getPizzaSlice(a, b Coordinate) stl.Triangle {\n\treturn stl.Triangle {\n\t\tNormal: stl.Vec3{ 0,0,1 },\n\t\tVertices: [3]stl.Vec3{\n\t\t\tstl.Vec3{ 0,0,0 },\n\t\t\tstl.Vec3{ float32(a.X), float32(a.Y), 0 },\n\t\t\tstl.Vec3{ float32(b.X), float32(b.Y), 0 },\n\t\t},\n\t}\n}", "func NewPolygon() *Polygon {\n\tthis := Polygon{}\n\treturn &this\n}", "func (s *CubicSplineSDF2) Polygonize(n int) *Polygon {\n\tp := NewPolygon()\n\tdt := float64(len(s.spline)) / float64(n-1)\n\tt := 0.0\n\tfor i := 0; i < n; i++ {\n\t\tp.AddV2(s.f0(t))\n\t\tt += dt\n\t}\n\treturn p\n}", "func StencilFuncSeparate(face uint32, xfunc uint32, ref int32, mask uint32) {\n C.glowStencilFuncSeparate(gpStencilFuncSeparate, (C.GLenum)(face), (C.GLenum)(xfunc), (C.GLint)(ref), (C.GLuint)(mask))\n}", "func (p plane) splitPolygon(poly polygon, coplanarFront, coplanarBack, front, back *[]polygon) {\n\tconst (\n\t\tcoplanarType = 0\n\t\tfrontType = 1\n\t\tbackType = 2\n\t\tspanningType = 3\n\t)\n\tpolygonType := 0\n\tvar types []int\n\tfor _, v := range poly.vertices {\n\t\tt := p.normal.dot(v.pos) - p.w\n\t\tvar pType int\n\t\tif t < -planeEpsilon {\n\t\t\tpType = backType\n\t\t} else {\n\t\t\tif t > planeEpsilon {\n\t\t\t\tpType = frontType\n\t\t\t} else {\n\t\t\t\tpType = coplanarType\n\t\t\t}\n\t\t}\n\t\tpolygonType |= pType\n\t\ttypes = append(types, pType)\n\t}\n\tswitch polygonType {\n\tcase coplanarType:\n\t\tif p.normal.dot(poly.plane.normal) > 0 {\n\t\t\t*coplanarFront = append(*coplanarFront, poly)\n\t\t} else {\n\t\t\t*coplanarBack = append(*coplanarBack, poly)\n\t\t}\n\tcase frontType:\n\t\t*front = append(*front, poly)\n\tcase backType:\n\t\t*back = append(*back, poly)\n\tcase spanningType:\n\t\tvar f, b []vertex\n\t\tfor i, vi := range poly.vertices {\n\t\t\tj := (i + 1) % len(poly.vertices) // next vertex of polygon (wraps over)\n\t\t\tti := types[i]\n\t\t\ttj := types[j]\n\t\t\tvj := poly.vertices[j]\n\t\t\tif ti != backType {\n\t\t\t\tf = append(f, vi)\n\t\t\t}\n\t\t\tif ti != frontType {\n\t\t\t\tb = append(b, vi)\n\t\t\t}\n\t\t\tif (ti | tj) == spanningType {\n\t\t\t\tt := (p.w - p.normal.dot(vi.pos)) / p.normal.dot(vj.pos.minus(vi.pos))\n\t\t\t\tv := vi.interpolated(vj, t)\n\t\t\t\tf = append(f, v)\n\t\t\t\tb = append(b, v)\n\t\t\t}\n\t\t}\n\t\tif len(f) >= 3 {\n\t\t\t*front = append(*front, newPolygon(f, poly.shared))\n\t\t}\n\t\tif len(b) >= 3 {\n\t\t\t*back = append(*back, newPolygon(b, poly.shared))\n\t\t}\n\t}\n}", "func Poly(p *sdf.Polygon, path string) error {\n\n\tvlist := p.Vertices()\n\tif vlist == nil {\n\t\treturn errors.New(\"no vertices\")\n\t}\n\n\tfmt.Printf(\"rendering %s\\n\", path)\n\td := NewDXF(path)\n\n\tfor i := 0; i < len(vlist)-1; i++ {\n\t\tp0 := vlist[i]\n\t\tp1 := vlist[i+1]\n\t\td.Line(p0, p1)\n\t}\n\n\tif p.Closed() {\n\t\tp0 := vlist[len(vlist)-1]\n\t\tp1 := vlist[0]\n\t\tif !p0.Equals(p1, tolerance) {\n\t\t\td.Line(p0, p1)\n\t\t}\n\t}\n\n\treturn d.Save()\n}", "func StencilFunc(xfunc uint32, ref int32, mask uint32) {\n C.glowStencilFunc(gpStencilFunc, (C.GLenum)(xfunc), (C.GLint)(ref), (C.GLuint)(mask))\n}", "func VPBLENDW(i, mxy, xy, xy1 operand.Op) { ctx.VPBLENDW(i, mxy, xy, xy1) }", "func GeneratePattern() {\n\tgeneratePattern()\n\n}", "func (p *Polygon) smoothVertex(i int) bool {\n\t// check the vertex\n\tv := p.vlist[i]\n\tif v.vtype != pvSmooth {\n\t\t// fixed point\n\t\treturn false\n\t}\n\t// get the next and previous points\n\tvn := p.nextVertex(i)\n\tvp := p.prevVertex(i)\n\tif vp == nil || vn == nil {\n\t\t// can't smooth the endpoints of an open polygon\n\t\treturn false\n\t}\n\t// work out the angle\n\tv0 := vp.vertex.Sub(v.vertex).Normalize()\n\tv1 := vn.vertex.Sub(v.vertex).Normalize()\n\ttheta := math.Acos(v0.Dot(v1))\n\t// distance from vertex to circle tangent\n\td1 := v.radius / math.Tan(theta/2.0)\n\tif d1 > vp.vertex.Sub(v.vertex).Length() || d1 > vn.vertex.Sub(v.vertex).Length() {\n\t\t// unable to smooth - radius is too large\n\t\treturn false\n\t}\n\t// tangent points\n\tp0 := v.vertex.Add(v0.MulScalar(d1))\n\t// distance from vertex to circle center\n\td2 := v.radius / math.Sin(theta/2.0)\n\t// center of circle\n\tvc := v0.Add(v1).Normalize()\n\tc := v.vertex.Add(vc.MulScalar(d2))\n\t// rotation angle\n\tdtheta := Sign(v1.Cross(v0)) * (Pi - theta) / float64(v.facets)\n\t// rotation matrix\n\trm := Rotate(dtheta)\n\t// radius vector\n\trv := p0.Sub(c)\n\t// work out the new points\n\tpoints := make([]PolygonVertex, v.facets+1)\n\tfor j := range points {\n\t\tpoints[j] = PolygonVertex{vertex: c.Add(rv)}\n\t\trv = rm.MulPosition(rv)\n\t}\n\t// replace the old point with the new points\n\tp.vlist = append(p.vlist[:i], append(points, p.vlist[i+1:]...)...)\n\treturn true\n}", "func NewPolygon(points ...Point) Polygon {\n\tvar poly Polygon\n\tfor _, p := range points {\n\t\tpoly.corners = append(poly.corners, p)\n\t}\n\treturn poly\n}", "func StencilOp(fail uint32, zfail uint32, zpass uint32) {\n C.glowStencilOp(gpStencilOp, (C.GLenum)(fail), (C.GLenum)(zfail), (C.GLenum)(zpass))\n}", "func VBLENDPS(i, mxy, xy, xy1 operand.Op) { ctx.VBLENDPS(i, mxy, xy, xy1) }", "func PolygonTile(tileid TileID) [][][]float64 {\n\tbds := Bounds(tileid)\n\treturn [][][]float64{\n\t\t{\n\t\t\t{bds.E, bds.N},\n\t\t\t{bds.E, bds.S},\n\t\t\t{bds.W, bds.S},\n\t\t\t{bds.W, bds.N},\n\t\t\t{bds.E, bds.N},\n\t\t},\n\t}\n\n}", "func rotateShape(s Shape) Shape {\n\tvar retShape Shape\n\tpivot := s[1]\n\tretShape[1] = pivot\n\tfor i := 0; i < 4; i++ {\n\t\t// Index 1 is the pivot point\n\t\tif i == 1 {\n\t\t\tcontinue\n\t\t}\n\t\tdRow := pivot.row - s[i].row\n\t\tdCol := pivot.col - s[i].col\n\t\tretShape[i].row = pivot.row + (dCol * -1)\n\t\tretShape[i].col = pivot.col + (dRow)\n\t}\n\treturn retShape\n}", "func Isogrids(w io.Writer, key string, colors []color.RGBA, size, lines int) {\n\tcanvas := svg.New(w)\n\tcanvas.Start(size, size)\n\n\tfringeSize := size / lines\n\tdistance := distanceTo3rdPoint(fringeSize)\n\tlines = size / fringeSize\n\toffset := ((fringeSize - distance) * lines) / 2\n\t// triangle grid here:\n\tfor xL := -1; xL < lines/2; xL++ {\n\t\tfor yL := -1; yL <= lines; yL++ {\n\t\t\tvar x1, x2, y1, y2, y3 int\n\t\t\tif (xL % 2) == 0 {\n\t\t\t\tx1, y1, x2, y2, _, y3 = right1stTriangle(xL, yL, fringeSize, distance)\n\t\t\t} else {\n\t\t\t\tx1, y1, x2, y2, _, y3 = left1stTriangle(xL, yL, fringeSize, distance)\n\t\t\t}\n\t\t\txs := []int{x2 + offset, x1 + offset, x2 + offset}\n\t\t\tys := []int{y1, y2, y3}\n\t\t\tfill1 := draw.FillFromRGBA(draw.PickColor(key, colors, (xL+3*yL+lines)%15))\n\t\t\tcanvas.Polygon(xs, ys, fill1)\n\n\t\t\txsMirror := mirrorCoordinates(xs, lines, distance, offset*2)\n\t\t\tcanvas.Polygon(xsMirror, ys, fill1)\n\n\t\t\tvar x11, x12, y11, y12, y13 int\n\t\t\tif (xL % 2) == 0 {\n\t\t\t\tx11, y11, x12, y12, _, y13 = left2ndTriangle(xL, yL, fringeSize, distance)\n\n\t\t\t\t// we make sure that the previous triangle and this one touch each other in this point.\n\t\t\t\ty12 = y3\n\t\t\t} else {\n\t\t\t\tx11, y11, x12, y12, _, y13 = right2ndTriangle(xL, yL, fringeSize, distance)\n\n\t\t\t\t// in order to have a perfect hexagon,\n\t\t\t\t// we make sure that the previous triangle and this one touch each other in this point.\n\t\t\t\ty12 = y1 + fringeSize\n\t\t\t}\n\t\t\txs1 := []int{x12 + offset, x11 + offset, x12 + offset}\n\t\t\tys1 := []int{y11, y12, y13}\n\t\t\tfill2 := draw.FillFromRGBA(draw.PickColor(key, colors, (xL+3*yL+1+lines)%15))\n\t\t\tcanvas.Polygon(xs1, ys1, fill2)\n\n\t\t\txs1 = mirrorCoordinates(xs1, lines, distance, offset*2)\n\t\t\tcanvas.Polygon(xs1, ys1, fill2)\n\t\t}\n\t}\n\tcanvas.End()\n}", "func BLENDPD(i, mx, x operand.Op) { ctx.BLENDPD(i, mx, x) }", "func StencilMask(mask uint) {\n\tC.glStencilMask(C.GLuint(mask))\n}", "func (order Order) RectifyPolygon(plyg2r [][][2]float64) [][][2]float64 {\n\tplyg := make([][][2]float64, 0, len(plyg2r))\n\treverse := func(idx int) {\n\t\tfor i := len(plyg[idx])/2 - 1; i >= 0; i-- {\n\t\t\topp := len(plyg[idx]) - 1 - i\n\t\t\tplyg[idx][i], plyg[idx][opp] = plyg[idx][opp], plyg[idx][i]\n\t\t}\n\t}\n\n\t// Let's make sure each of the rings have the correct windingorder.\n\n\tfor i := range plyg2r {\n\n\t\two := order.OfPoints(plyg2r[i]...)\n\n\t\t// Drop collinear rings\n\t\tif wo.IsColinear() {\n\t\t\tif i == 0 {\n\t\t\t\treturn nil\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\n\t\tplyg = append(plyg, plyg2r[i])\n\n\t\tif (i == 0 && wo.IsCounterClockwise()) || (i != 0 && wo.IsClockwise()) {\n\t\t\t// 0 ring should be clockwise.\n\t\t\t// all others should be conterclockwise\n\t\t\t// reverse the ring.\n\t\t\treverse(len(plyg) - 1)\n\t\t}\n\t}\n\treturn plyg\n}", "func (p *Poly) compress(d int) []byte {\n\tc := make([]byte, n*d/8)\n\tswitch d {\n\n\tcase 3:\n\t\tvar t [8]uint16\n\t\tid := 0\n\t\tfor i := 0; i < n/8; i++ {\n\t\t\tfor j := 0; j < 8; j++ {\n\t\t\t\tt[j] = uint16(((uint32(p[8*i+j])<<3)+uint32(q)/2)/\n\t\t\t\t\tuint32(q)) & ((1 << 3) - 1)\n\t\t\t}\n\t\t\tc[id] = byte(t[0]) | byte(t[1]<<3) | byte(t[2]<<6)\n\t\t\tc[id+1] = byte(t[2]>>2) | byte(t[3]<<1) | byte(t[4]<<4) | byte(t[5]<<7)\n\t\t\tc[id+2] = byte(t[5]>>1) | byte(t[6]<<2) | byte(t[7]<<5)\n\t\t\tid += 3\n\t\t}\n\n\tcase 4:\n\t\tvar t [8]uint16\n\t\tid := 0\n\t\tfor i := 0; i < n/8; i++ {\n\t\t\tfor j := 0; j < 8; j++ {\n\t\t\t\tt[j] = uint16(((uint32(p[8*i+j])<<4)+uint32(q)/2)/\n\t\t\t\t\tuint32(q)) & ((1 << 4) - 1)\n\t\t\t}\n\t\t\tc[id] = byte(t[0]) | byte(t[1]<<4)\n\t\t\tc[id+1] = byte(t[2]) | byte(t[3]<<4)\n\t\t\tc[id+2] = byte(t[4]) | byte(t[5]<<4)\n\t\t\tc[id+3] = byte(t[6]) | byte(t[7]<<4)\n\t\t\tid += 4\n\t\t}\n\n\tcase 5:\n\t\tvar t [8]uint16\n\t\tid := 0\n\t\tfor i := 0; i < n/8; i++ {\n\t\t\tfor j := 0; j < 8; j++ {\n\t\t\t\tt[j] = uint16(((uint32(p[8*i+j])<<5)+uint32(q)/2)/\n\t\t\t\t\tuint32(q)) & ((1 << 5) - 1)\n\t\t\t}\n\t\t\tc[id] = byte(t[0]) | byte(t[1]<<5)\n\t\t\tc[id+1] = byte(t[1]>>3) | byte(t[2]<<2) | byte(t[3]<<7)\n\t\t\tc[id+2] = byte(t[3]>>1) | byte(t[4]<<4)\n\t\t\tc[id+3] = byte(t[4]>>4) | byte(t[5]<<1) | byte(t[6]<<6)\n\t\t\tc[id+4] = byte(t[6]>>2) | byte(t[7]<<3)\n\t\t\tid += 5\n\t\t}\n\n\tcase 6:\n\t\tvar t [4]uint16\n\t\tid := 0\n\t\tfor i := 0; i < n/4; i++ {\n\t\t\tfor j := 0; j < 4; j++ {\n\t\t\t\tt[j] = uint16(((uint32(p[4*i+j])<<6)+uint32(q)/2)/\n\t\t\t\t\tuint32(q)) & ((1 << 6) - 1)\n\t\t\t}\n\t\t\tc[id] = byte(t[0]) | byte(t[1]<<6)\n\t\t\tc[id+1] = byte(t[1]>>2) | byte(t[2]<<4)\n\t\t\tc[id+2] = byte(t[2]>>2) | byte(t[3]<<2)\n\t\t\tid += 3\n\t\t}\n\n\tcase 10:\n\t\tvar t [4]uint16\n\t\tid := 0\n\t\tfor i := 0; i < n/4; i++ {\n\t\t\tfor j := 0; j < 4; j++ {\n\t\t\t\tt[j] = uint16(((uint32(p[4*i+j])<<10)+uint32(q)/2)/\n\t\t\t\t\tuint32(q)) & ((1 << 10) - 1)\n\t\t\t}\n\t\t\tc[id] = byte(t[0])\n\t\t\tc[id+1] = byte(t[0]>>8) | byte(t[1]<<2)\n\t\t\tc[id+2] = byte(t[1]>>6) | byte(t[2]<<4)\n\t\t\tc[id+3] = byte(t[2]>>4) | byte(t[3]<<6)\n\t\t\tc[id+4] = byte(t[3] >> 2)\n\t\t\tid += 5\n\t\t}\n\tcase 11:\n\t\tvar t [8]uint16\n\t\tid := 0\n\t\tfor i := 0; i < n/8; i++ {\n\t\t\tfor j := 0; j < 8; j++ {\n\t\t\t\tt[j] = uint16(((uint32(p[8*i+j])<<11)+uint32(q)/2)/\n\t\t\t\t\tuint32(q)) & ((1 << 11) - 1)\n\t\t\t}\n\t\t\tc[id] = byte(t[0])\n\t\t\tc[id+1] = byte(t[0]>>8) | byte(t[1]<<3)\n\t\t\tc[id+2] = byte(t[1]>>5) | byte(t[2]<<6)\n\t\t\tc[id+3] = byte(t[2] >> 2)\n\t\t\tc[id+4] = byte(t[2]>>10) | byte(t[3]<<1)\n\t\t\tc[id+5] = byte(t[3]>>7) | byte(t[4]<<4)\n\t\t\tc[id+6] = byte(t[4]>>4) | byte(t[5]<<7)\n\t\t\tc[id+7] = byte(t[5] >> 1)\n\t\t\tc[id+8] = byte(t[5]>>9) | byte(t[6]<<2)\n\t\t\tc[id+9] = byte(t[6]>>6) | byte(t[7]<<5)\n\t\t\tc[id+10] = byte(t[7] >> 3)\n\t\t\tid += 11\n\t\t}\n\tdefault:\n\t\tpanic(\"bad d value\")\n\t}\n\treturn c[:]\n}", "func (w *Walker) RingForTriangle(ctx context.Context, idx int, seen map[int]bool) (rng [][2]float64) {\n\tif w == nil {\n\t\treturn rng\n\t}\n\n\tvar ok bool\n\n\tif debug {\n\t\tlog.Printf(\"getting ring for triangle %v\", idx)\n\t}\n\n\tseen[idx] = true\n\n\t// This tracks the start of the ring.\n\t// The segment we are adding a point will be between the endpoint and the beginning of the ring.\n\t// This tracks the original beginning of the ring.\n\tvar headIdx int\n\n\trng = append(rng, w.Triangles[idx][:]...)\n\tcidxs := []int{idx, idx, idx}\n\tcidx := cidxs[len(cidxs)-1]\n\nRING_LOOP:\n\tfor {\n\t\t// A few sanity checks, were we cancelled, or reached the end of our walk.\n\t\tif ctx.Err() != nil || // We were told to come home.\n\t\t\theadIdx >= len(rng) || len(cidxs) == 0 { // we returned home.\n\t\t\treturn rng\n\t\t}\n\n\t\tif debug {\n\t\t\tlog.Printf(\"headIdx: %v -- len(rng): %v\", headIdx, len(rng))\n\t\t\tlog.Printf(\"ring: %v | %v\", rng[:headIdx], rng[headIdx:])\n\t\t\tlog.Printf(\"cidxs: %v\", cidxs)\n\t\t}\n\n\t\tif cidx, ok = w.indexForEdge(rng[0], rng[len(rng)-1], cidxs[len(cidxs)-1], seen); !ok {\n\t\t\t// We don't have a neighbor to walk to here. Let's move back one and see if there is a path we need to go down.\n\t\t\theadIdx += 1\n\t\t\tlpt := rng[len(rng)-1]\n\t\t\tcopy(rng[1:], rng)\n\t\t\trng[0] = lpt\n\t\t\tcidxs = cidxs[:len(cidxs)-1]\n\t\t\tcontinue\n\t\t}\n\n\t\tif cidx == idx {\n\t\t\t// We go back to our starting triangle. We need to stop.\n\t\t\treturn rng\n\t\t}\n\n\t\tif debug {\n\t\t\tlog.Printf(\"check to see if we have seen the triangle we are going to jump to.\")\n\t\t}\n\n\t\t// Check to see if we have reached the triangle before.\n\t\tfor i, pcidx := range cidxs {\n\t\t\tif pcidx != cidx {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tif debug {\n\t\t\t\tlog.Printf(\"we have encountered idx (%v) before at %v\", cidx, i)\n\t\t\t}\n\t\t\t// need to move all the points over\n\t\t\ttlen := len(rng) - (i + 1)\n\t\t\ttpts := make([][2]float64, tlen)\n\t\t\tcopy(tpts, rng[i+1:])\n\t\t\tcopy(rng[tlen:], rng[:i+1])\n\t\t\tcopy(rng, tpts)\n\t\t\theadIdx += tlen\n\n\t\t\tcidxs = cidxs[:i+1]\n\t\t\tcontinue RING_LOOP\n\t\t}\n\n\t\trng = append(rng, w.Triangles[cidx].ThirdPoint(rng[0], rng[len(rng)-1]))\n\n\t\tcidxs[len(cidxs)-1] = cidx\n\t\tcidxs = append(cidxs, cidx)\n\t\tseen[cidx] = true\n\n\t} // for loop\n\treturn rng\n}", "func PCMPESTRI(i, mx, x operand.Op) { ctx.PCMPESTRI(i, mx, x) }", "func (rs *RenderSystem) TogglePolygons() {\n\trs.drawPolygon = !rs.drawPolygon\n}", "func PolygonOffset(factor float32, units float32) {\n\tC.glowPolygonOffset(gpPolygonOffset, (C.GLfloat)(factor), (C.GLfloat)(units))\n}", "func PolygonOffset(factor float32, units float32) {\n\tC.glowPolygonOffset(gpPolygonOffset, (C.GLfloat)(factor), (C.GLfloat)(units))\n}", "func (self *TileSprite) TilePattern() *PIXITexture{\n return &PIXITexture{self.Object.Get(\"tilePattern\")}\n}", "func maskPII(S string) string {\n \n}", "func (p *PDF) Polygon(pts []gofpdf.PointType, opts ...PDFOption) {\n\n\tfor _, opt := range opts {\n\t\topt(p.fpdf)\n\t}\n\tp.fpdf.Polygon(pts, \"F\")\n}", "func createPointArray(array [][]bool) (points []Point) {\n\theight := len(array)\n\twidth := len(array[0])\n\n\tfor y := 0; y < height; y++ {\n\t\tfor x := 0; x < width; x++ {\n\t\t\tif array[y][x] {\n\t\t\t\tpoints = append(points, Point{x % width, y})\n\t\t\t}\n\t\t}\n\t}\n\treturn points[0:]\n}", "func StencilMask(mask uint32) {\n\tgl.StencilMask(mask)\n}", "func NewStrictPolygon(bounds floatgeom.Rect2, points ...floatgeom.Point2) (*Polygon, error) {\n\tif len(points) < 3 {\n\t\treturn nil, oakerr.InsufficientInputs{AtLeast: 3, InputName: \"points\"}\n\t}\n\treturn &Polygon{\n\t\tSprite: NewSprite(bounds.Min.X(), bounds.Min.Y(),\n\t\t\timage.NewRGBA(image.Rect(0, 0, int(bounds.W()), int(bounds.H())))),\n\t\tRect2: bounds,\n\t\tpoints: points,\n\t}, nil\n}", "func (node *PolygonExpr) formatFast(buf *TrackedBuffer) {\n\tbuf.WriteString(\"polygon(\")\n\tnode.LinestringParams.formatFast(buf)\n\tbuf.WriteByte(')')\n}", "func (dw *DrawingWand) PopClipPath() {\n\tC.DrawPopClipPath(dw.dw)\n}", "func cyclicPattern(length int) []byte {\n data := make([]byte, length + (3 - length % 3))\n\n // generate cyclic pattern\n x, y, z := byte(65), byte(97), byte(48)\n for i := 0; i < length; i += 3 {\n data[i] = x\n data[i + 1] = y\n data[i + 2] = z\n\n // get the next cycle\n x, y, z = nextCycle(x, y, z)\n }\n\n // since data is a multiple of 3, cut it to length\n return data[:length]\n}", "func Sharpen(img image.Image, sigma float64) *image.NRGBA {\n\tif sigma <= 0 {\n\t\t// sigma parameter must be positive!\n\t\treturn Clone(img)\n\t}\n\n\tsrc := toNRGBA(img)\n\tblurred := Blur(img, sigma)\n\n\twidth := src.Bounds().Max.X\n\theight := src.Bounds().Max.Y\n\tdst := image.NewNRGBA(image.Rect(0, 0, width, height))\n\n\tparallel(height, func(partStart, partEnd int) {\n\t\tfor y := partStart; y < partEnd; y++ {\n\t\t\tfor x := 0; x < width; x++ {\n\t\t\t\ti := y*src.Stride + x*4\n\t\t\t\tfor j := 0; j < 4; j++ {\n\t\t\t\t\tk := i + j\n\t\t\t\t\tval := int(src.Pix[k])<<1 - int(blurred.Pix[k])\n\t\t\t\t\tif val < 0 {\n\t\t\t\t\t\tval = 0\n\t\t\t\t\t} else if val > 255 {\n\t\t\t\t\t\tval = 255\n\t\t\t\t\t}\n\t\t\t\t\tdst.Pix[k] = uint8(val)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t})\n\n\treturn dst\n}", "func (p *Pattern) Rep(min, max int) *Pattern {\n\treturn Rep(p, min, max)\n}", "func pickWay(p []float64) int {\n\tvar sum float64\n\tfor _, j := range p {\n\t\tsum += j\n\t}\n\tr := rand.New(rand.NewSource(time.Now().UnixNano()))\n\trn := r.Float64() * sum\n\tsum = 0\n\tfor i, j := range p {\n\t\tif rn > sum && rn < sum+j {\n\t\t\treturn i\n\t\t}\n\t\tsum += j\n\t}\n\treturn -1\n}", "func (p *Polygon) Reverse() {\n\tp.reverse = true\n}", "func polyCBD3(outbuf []byte) Poly {\n\tvar t, d uint32\n\tvar a, b int16\n\tvar p Poly\n\n\tfor i := 0; i < n/4; i++ {\n\t\tt = load24LE(outbuf[3*i:])\n\t\td = t & 0x00249249\n\t\td += (t >> 1) & 0x00249249\n\t\td += (t >> 2) & 0x00249249\n\n\t\tfor j := 0; j < 4; j++ {\n\t\t\ta = int16((d >> (6*j + 0)) & 0x7)\n\t\t\tb = int16((d >> (6*j + 3)) & 0x7)\n\t\t\tp[4*i+j] = a - b\n\t\t}\n\t}\n\treturn p\n}", "func VBLENDPD(i, mxy, xy, xy1 operand.Op) { ctx.VBLENDPD(i, mxy, xy, xy1) }", "func (el *Fill) Ellipse() {}", "func (self *Graphics) DrawPolygon(path interface{}) *Graphics{\n return &Graphics{self.Object.Call(\"drawPolygon\", path)}\n}", "func Horspool(pattern string, text *string) ([]int) {\n matches := []int{}\n\n if len(pattern) == 0 || len(*text) == 0 {\n return matches\n }\n\n shiftMap := horspoolShiftMap(pattern)\n\n // find match\n for textI := 0; textI < len(*text) - len(pattern) + 1; {\n\n // loop over pattern\n match := false\n for pPos, tPos := 0, textI; pPos < len(pattern); pPos++ {\n if pattern[pPos] == (*text)[tPos] {\n match = true\n } else {\n match = false\n pPos = len(pattern)\n }\n tPos++\n }\n\n if match {\n matches = append(matches, textI)\n }\n\n // shift\n shiftAmount, found := shiftMap[(*text)[textI + len(pattern) - 1]]\n if found {\n textI += shiftAmount\n } else {\n textI += len(pattern)\n }\n }\n\n return matches\n}", "func StencilOpSeparate(face uint32, sfail uint32, dpfail uint32, dppass uint32) {\n C.glowStencilOpSeparate(gpStencilOpSeparate, (C.GLenum)(face), (C.GLenum)(sfail), (C.GLenum)(dpfail), (C.GLenum)(dppass))\n}", "func PINSRW(i, mr, x operand.Op) { ctx.PINSRW(i, mr, x) }", "func StencilMask(mask uint32) {\n\tC.glowStencilMask(gpStencilMask, (C.GLuint)(mask))\n}" ]
[ "0.72549754", "0.7168082", "0.71214205", "0.70565206", "0.6920959", "0.60248524", "0.597781", "0.5559133", "0.5510609", "0.5378341", "0.5274266", "0.5145449", "0.5142737", "0.5141642", "0.49679974", "0.49563867", "0.49064812", "0.48827505", "0.48102474", "0.48015314", "0.4787326", "0.478379", "0.4749757", "0.47129303", "0.47006276", "0.4648362", "0.4633955", "0.46048355", "0.45953664", "0.45943162", "0.45939586", "0.45937815", "0.4571969", "0.45593446", "0.45538172", "0.45174316", "0.45116144", "0.45066082", "0.45057535", "0.44973344", "0.44839823", "0.44778278", "0.44638827", "0.44513366", "0.4430683", "0.44000834", "0.43960035", "0.43839407", "0.4370866", "0.43652594", "0.436513", "0.43637452", "0.4335294", "0.4317774", "0.42952302", "0.42848945", "0.42846078", "0.42831093", "0.4277559", "0.4276646", "0.42637265", "0.42584744", "0.4251908", "0.4226088", "0.4218564", "0.42019385", "0.41939548", "0.41859066", "0.4184965", "0.41783258", "0.41750124", "0.41716367", "0.41693997", "0.4164114", "0.4161901", "0.41602263", "0.41597378", "0.41587323", "0.41587323", "0.4146633", "0.4137344", "0.41373038", "0.41369787", "0.41262946", "0.41122207", "0.41093805", "0.41049343", "0.4104014", "0.4100887", "0.40994456", "0.40984407", "0.40905097", "0.40822667", "0.4080617", "0.40803173", "0.40791026", "0.40779138", "0.40734038", "0.40666908", "0.4066446" ]
0.6926972
4
return a binary representation of a program object's compiled and linked executable source
func GetProgramBinary(program uint32, bufSize int32, length *int32, binaryFormat *uint32, binary unsafe.Pointer) { C.glowGetProgramBinary(gpGetProgramBinary, (C.GLuint)(program), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLenum)(unsafe.Pointer(binaryFormat)), binary) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func getGoSourceProgram() string {\n\tcontents := `\npackage main\n\nimport \"time\"\nimport \"io/ioutil\"\n\nfunc main() {\n\tioutil.WriteFile(\"STARTED\", []byte(\"STARTED\\n\"), 0644)\n\t// Ensure it wont exit immediately\n\ttime.Sleep(10 * time.Minute)\n\tioutil.WriteFile(\"FINISHED\", []byte(\"FINISHED\\n\"), 0644)\n\n}\n\t`\n\treturn contents\n}", "func GetProgramBinary(program uint32, bufSize int32, length *int32, binaryFormat *uint32, binary unsafe.Pointer) {\n C.glowGetProgramBinary(gpGetProgramBinary, (C.GLuint)(program), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLenum)(unsafe.Pointer(binaryFormat)), binary)\n}", "func compileBytecodeAndRun(program *ast.RootNode) object.Object {\n\tcomp := compiler.New()\n\n\terr := comp.Compile(program)\n\tif err != nil {\n\t\tfmt.Printf(\"compiler error: %s\", err)\n\t}\n\n\tvm := vm.New(comp.Bytecode())\n\n\terr = vm.Run()\n\tif err != nil {\n\t\tfmt.Printf(\"vm error: %s\", err)\n\t}\n\n\treturn vm.LastPoppedStackElement()\n}", "func compileToObjectFile(inFile, outputDir, filename, inHash string, additionalFlags, kernelHeaders []string) (CompiledOutput, CompilationResult, error) {\n\tflags, flagHash := computeFlagsAndHash(additionalFlags)\n\n\toutputFile, err := getOutputFilePath(outputDir, filename, inHash, flagHash)\n\tif err != nil {\n\t\treturn nil, outputFileErr, fmt.Errorf(\"unable to get output file path: %w\", err)\n\t}\n\n\tvar result CompilationResult\n\tif _, err := os.Stat(outputFile); err != nil {\n\t\tif !os.IsNotExist(err) {\n\t\t\treturn nil, outputFileErr, fmt.Errorf(\"error stat-ing output file %s: %w\", outputFile, err)\n\t\t}\n\n\t\tkv, err := kernel.HostVersion()\n\t\tif err != nil {\n\t\t\treturn nil, kernelVersionErr, fmt.Errorf(\"unable to get kernel version: %w\", err)\n\t\t}\n\t\t_, family, _, err := host.PlatformInformation()\n\t\tif err != nil {\n\t\t\treturn nil, kernelVersionErr, fmt.Errorf(\"unable to get kernel family: %w\", err)\n\t\t}\n\n\t\t// RHEL platforms back-ported the __BPF_FUNC_MAPPER macro, so we can always use the dynamic method there\n\t\tif kv >= kernel.VersionCode(4, 10, 0) || family == \"rhel\" {\n\t\t\tvar helperPath string\n\t\t\thelperPath, err = includeHelperAvailability(kernelHeaders)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, compilationErr, fmt.Errorf(\"error getting helper availability: %w\", err)\n\t\t\t}\n\t\t\tdefer os.Remove(helperPath)\n\t\t\tflags = append(flags, fmt.Sprintf(\"-include%s\", helperPath))\n\t\t}\n\n\t\tif err := compiler.CompileToObjectFile(inFile, outputFile, flags, kernelHeaders); err != nil {\n\t\t\treturn nil, compilationErr, fmt.Errorf(\"failed to compile runtime version of %s: %s\", filename, err)\n\t\t}\n\n\t\tlog.Infof(\"successfully compiled runtime version of %s\", filename)\n\t\tresult = compilationSuccess\n\t} else {\n\t\tlog.Infof(\"found previously compiled runtime version of %s\", filename)\n\t\tresult = compiledOutputFound\n\t}\n\n\terr = bytecode.VerifyAssetPermissions(outputFile)\n\tif err != nil {\n\t\treturn nil, outputFileErr, err\n\t}\n\n\tout, err := os.Open(outputFile)\n\tif err != nil {\n\t\treturn nil, resultReadErr, err\n\t}\n\treturn out, result, nil\n}", "func Executable() (string, error)", "func GetProgramBinary(program uint32, bufSize int32, length *int32, binaryFormat *uint32, binary unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetProgramBinary, 5, uintptr(program), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(binaryFormat)), uintptr(binary), 0)\n}", "func serializeProgram(prgrm *CXProgram, s *SerializedCXProgram) {\n\ts.Program = serializedProgram{}\n\tsPrgrm := &s.Program\n\tsPrgrm.PackagesOffset = int64(0)\n\tsPrgrm.PackagesSize = int64(len(prgrm.Packages))\n\n\tif pkgOff, found := s.PackagesMap[prgrm.CurrentPackage.Name]; found {\n\t\tsPrgrm.CurrentPackageOffset = int64(pkgOff)\n\t} else {\n\t\tpanic(\"package reference not found\")\n\t}\n\n\tsPrgrm.InputsOffset, sPrgrm.InputsSize = serializeSliceOfArguments(prgrm.ProgramInput, s)\n\tsPrgrm.OutputsOffset, sPrgrm.OutputsSize = serializeSliceOfArguments(prgrm.ProgramOutput, s)\n\n\tsPrgrm.CallStackOffset, sPrgrm.CallStackSize = serializeCalls(prgrm.CallStack[:prgrm.CallCounter], s)\n\n\tsPrgrm.CallCounter = int64(prgrm.CallCounter)\n\n\tsPrgrm.MemoryOffset = int64(0)\n\tsPrgrm.MemorySize = int64(len(PROGRAM.Memory))\n\n\tsPrgrm.HeapPointer = int64(prgrm.HeapPointer)\n\tsPrgrm.StackPointer = int64(prgrm.StackPointer)\n\tsPrgrm.StackSize = int64(prgrm.StackSize)\n\tsPrgrm.DataSegmentSize = int64(prgrm.DataSegmentSize)\n\tsPrgrm.DataSegmentStartsAt = int64(prgrm.DataSegmentStartsAt)\n\tsPrgrm.HeapSize = int64(prgrm.HeapSize)\n\tsPrgrm.HeapStartsAt = int64(prgrm.HeapStartsAt)\n\n\tsPrgrm.Terminated = serializeBoolean(prgrm.Terminated)\n\tsPrgrm.VersionOffset, sPrgrm.VersionSize = serializeString(prgrm.Version, s)\n}", "func (p *Program) String() string {\n\tvar buf bytes.Buffer\n\n\tbuf.WriteString(fmt.Sprintf(`//\n//\tPackage - transpiled by c4go\n//\n//\tIf you have found any issues, please raise an issue at:\n//\thttps://github.com/Konstantin8105/c4go/\n//\n\n`))\n\n\t// Simplification from :\n\t//\tvar cc int32 = int32(uint8((func() []byte {\n\t//\t\tdefer func() {\n\t//\t\t\tfunc() []byte {\n\t//\t\t\t\ttempVarUnary := ss\n\t//\t\t\t\tdefer func() {\n\t//\t\t\t\t\tss = ss[0+1:]\n\t//\t\t\t\t}()\n\t//\t\t\t\treturn tempVarUnary\n\t//\t\t\t}()\n\t//\t\t}()\n\t//\t\treturn ss\n\t//\t}())[0]))\n\t//\n\t// to:\n\t//\tvar cc int32 = int32(uint8((func() []byte {\n\t//\t\tdefer func() {\n\t//\t\t\tss = ss[0+1:]\n\t//\t\t}()\n\t//\t\treturn ss\n\t//\t}())[0]))\n\tgoast.Walk(new(simpleDefer), p.File)\n\n\t// Only for debugging\n\t// goast.Walk(new(nilWalker), p.File)\n\n\t// First write all the messages. The double newline afterwards is important\n\t// so that the package statement has a newline above it so that the warnings\n\t// are not part of the documentation for the package.\n\tbuf.WriteString(strings.Join(p.messages, \"\\n\") + \"\\n\\n\")\n\n\tif err := format.Node(&buf, p.FileSet, p.File); err != nil {\n\t\t// Printing the entire AST will generate a lot of output. However, it is\n\t\t// the only way to debug this type of error. Hopefully the error\n\t\t// (printed immediately afterwards) will give a clue.\n\t\t//\n\t\t// You may see an error like:\n\t\t//\n\t\t// panic: format.Node internal error (692:23: expected selector or\n\t\t// type assertion, found '[')\n\t\t//\n\t\t// This means that when Go was trying to convert the Go AST to source\n\t\t// code it has come across a value or attribute that is illegal.\n\t\t//\n\t\t// The line number it is referring to (in this case, 692) is not helpful\n\t\t// as it references the internal line number of the Go code which you\n\t\t// will never see.\n\t\t//\n\t\t// The \"[\" means that there is a bracket in the wrong place. Almost\n\t\t// certainly in an identifer, like:\n\t\t//\n\t\t// noarch.IntTo[]byte(\"foo\")\n\t\t//\n\t\t// The \"[]\" which is obviously not supposed to be in the function name\n\t\t// is causing the syntax error. However, finding the original code that\n\t\t// produced this can be tricky.\n\t\t//\n\t\t// The first step is to filter down the AST output to probably lines.\n\t\t// In the error message it said that there was a misplaced \"[\" so that's\n\t\t// what we will search for. Using the original command (that generated\n\t\t// thousands of lines) we will add two grep filters:\n\t\t//\n\t\t// go test ... | grep \"\\[\" | grep -v '{$'\n\t\t// # | |\n\t\t// # | ^ This excludes lines that end with \"{\"\n\t\t// # | which almost certainly won't be what\n\t\t// # | we are looking for.\n\t\t// # |\n\t\t// # ^ This is the character we are looking for.\n\t\t//\n\t\t// Hopefully in the output you should see some lines, like (some lines\n\t\t// removed for brevity):\n\t\t//\n\t\t// 9083 . . . . . . . . . . Name: \"noarch.[]byteTo[]int\"\n\t\t// 9190 . . . . . . . . . Name: \"noarch.[]intTo[]byte\"\n\t\t//\n\t\t// These two lines are clearly the error because a name should not look\n\t\t// like this.\n\t\t//\n\t\t// Looking at the full output of the AST (thousands of lines) and\n\t\t// looking at those line numbers should give you a good idea where the\n\t\t// error is coming from; by looking at the parents of the bad lines.\n\t\t_ = goast.Print(p.FileSet, p.File)\n\n\t\tpanic(err)\n\t}\n\n\t// Add comments at the end C file\n\tfor file, beginLine := range p.commentLine {\n\t\tfor i := range p.PreprocessorFile.GetComments() {\n\t\t\tif p.PreprocessorFile.GetComments()[i].File == file {\n\t\t\t\tif beginLine.line < p.PreprocessorFile.GetComments()[i].Line {\n\t\t\t\t\tbuf.WriteString(\n\t\t\t\t\t\tfmt.Sprintln(\n\t\t\t\t\t\t\tp.PreprocessorFile.GetComments()[i].Comment))\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// simplify Go code. Example :\n\t// Before:\n\t// func compare(a interface {\n\t// }, b interface {\n\t// }) (c4goDefaultReturn int) {\n\t// After :\n\t// func compare(a interface {}, b interface {}) (c4goDefaultReturn int) {\n\treg := util.GetRegex(\"interface( )?{(\\r*)\\n(\\t*)}\")\n\ts := string(reg.ReplaceAll(buf.Bytes(), []byte(\"interface {}\")))\n\n\tsp := strings.Split(s, \"\\n\")\n\tfor i := range sp {\n\t\tif strings.HasSuffix(sp[i], \"-= 1\") {\n\t\t\tsp[i] = strings.TrimSuffix(sp[i], \"-= 1\") + \"--\"\n\t\t}\n\t\tif strings.HasSuffix(sp[i], \"+= 1\") {\n\t\t\tsp[i] = strings.TrimSuffix(sp[i], \"+= 1\") + \"++\"\n\t\t}\n\t}\n\n\treturn strings.Join(sp, \"\\n\")\n}", "func ProgramBinary(program uint32, binaryFormat uint32, binary unsafe.Pointer, length int32) {\n C.glowProgramBinary(gpProgramBinary, (C.GLuint)(program), (C.GLenum)(binaryFormat), binary, (C.GLsizei)(length))\n}", "func ProgramBinary(program uint32, binaryFormat uint32, binary unsafe.Pointer, length int32) {\n\tsyscall.Syscall6(gpProgramBinary, 4, uintptr(program), uintptr(binaryFormat), uintptr(binary), uintptr(length), 0, 0)\n}", "func loadBinary(provider fsProviderFn, c Config) string {\n\tlog.Printf(\"Encoding project: %s\", c.Project)\n\tfs, err := provider(c)\n\tif err != nil {\n\t\tlog.Printf(\"Failed creating filesystem %q: %s\", c.Project, err)\n\t\treturn \"\"\n\t}\n\tb, err := encode(fs)\n\tif err != nil {\n\t\tlog.Printf(\"Failed encoding filesystem %q: %s\", c.Project, err)\n\t\treturn \"\"\n\t}\n\treturn string(b)\n}", "func (c *Config) Binary() []byte {\n\t// TODO: ensure this is sorted?\n\tout, _ := json.MarshalIndent(&Binary{\n\t\tName: c.BinaryName,\n\t\tRepo: c.BuildRepo,\n\t\tBuild: c.BuildCommand,\n\t\tVersion: c.BuildVersion,\n\t}, \"\", \" \")\n\treturn out\n}", "func objdump(target *targets.Target, obj string) ([2][]uint64, error) {\n\tvar pcs [2][]uint64\n\tcmd := osutil.Command(target.Objdump, \"-d\", \"--no-show-raw-insn\", obj)\n\tstdout, err := cmd.StdoutPipe()\n\tif err != nil {\n\t\treturn pcs, err\n\t}\n\tdefer stdout.Close()\n\tstderr, err := cmd.StderrPipe()\n\tif err != nil {\n\t\treturn pcs, err\n\t}\n\tdefer stderr.Close()\n\tif err := cmd.Start(); err != nil {\n\t\treturn pcs, fmt.Errorf(\"failed to run objdump on %v: %v\", obj, err)\n\t}\n\tdefer func() {\n\t\tcmd.Process.Kill()\n\t\tcmd.Wait()\n\t}()\n\ts := bufio.NewScanner(stdout)\n\tcallInsns, traceFuncs := archCallInsn(target)\n\tfor s.Scan() {\n\t\tif pc := parseLine(callInsns, traceFuncs, s.Bytes()); pc != 0 {\n\t\t\tpcs[0] = append(pcs[0], pc)\n\t\t}\n\t}\n\tstderrOut, _ := ioutil.ReadAll(stderr)\n\tif err := cmd.Wait(); err != nil {\n\t\treturn pcs, fmt.Errorf(\"failed to run objdump on %v: %v\\n%s\", obj, err, stderrOut)\n\t}\n\tif err := s.Err(); err != nil {\n\t\treturn pcs, fmt.Errorf(\"failed to run objdump on %v: %v\\n%s\", obj, err, stderrOut)\n\t}\n\treturn pcs, nil\n}", "func (l *loader) compile(name string) (string, error) {\n // Copy the file to the objects directory with a different name\n // each time, to avoid retrieving the cached version.\n // Apparently the cache key is the path of the file compiled and\n // there's no way to invalidate it.\n\n f, err := ioutil.ReadFile(filepath.Join(l.pluginsDir, name + \".go\"))\n if err != nil {\n return \"\", fmt.Errorf(\"Cannot read %s.go: %v\", name, err)\n }\n\n name = fmt.Sprintf(\"%d.go\", rand.Int())\n srcPath := filepath.Join(l.objectsDir, name)\n if err := ioutil.WriteFile(srcPath, f, 0666); err != nil {\n return \"\", fmt.Errorf(\"Cannot write %s: %v\", name, err)\n }\n\n objectPath := srcPath[:len(srcPath)-3] + \".so\"\n\n cmd := exec.Command(\"go\", \"build\", \"-buildmode=plugin\", \"-o=\"+objectPath, srcPath)\n cmd.Stderr = os.Stderr\n cmd.Stdout = os.Stdout\n if err := cmd.Run(); err != nil {\n return \"\", fmt.Errorf(\"Cannot compile %s: %v\", name, err)\n }\n\n return objectPath, nil\n}", "func buildAndCopyProgram(src io.Reader) error {\n\t// FIXME: BuildProgram should probably be in some other package,\n\t// so that it can be used by both the compiler tests and the\n\t// command line client.\n\td, err := ioutil.TempDir(\"\", \"langbuild\")\n\tif err != nil {\n\t\treturn err\n\t}\n\tif debug {\n\t\tlog.Println(\"Using temporary directory\", d, \"(WARNING: will not automatically delete in debug mode)\")\n\t}\n\tif !debug {\n\t\tdefer os.RemoveAll(d)\n\t}\n\texe, err := codegen.BuildProgram(d, src)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif exe == \"\" {\n\t\treturn fmt.Errorf(\"No executable built.\")\n\t}\n\tcwd, err := os.Getwd()\n\tif err != nil {\n\t\treturn err\n\t}\n\tname := path.Base(cwd)\n\tif name == \".\" || name == \"\" || name == \"/\" {\n\t\tlog.Fatal(\"Could not determine appropriate executable name.\")\n\t}\n\treturn copyFile(d+\"/\"+exe, \"./\"+name)\n}", "func (cd *CloudStorage) GetPrecompiledObjectOutput(ctx context.Context, precompiledObjectPath, bucketName string) (string, error) {\n\tdata, err := cd.getFileFromBucket(ctx, precompiledObjectPath, OutputExtension, bucketName)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tresult := string(data)\n\treturn result, nil\n}", "func (emitter *Emitter) EmitExecutable(executable string) (err error) {\n\tobjfile := fmt.Sprintf(\"%s.tmp.o\", executable)\n\tobj, err := emitter.EmitObject()\n\tif err != nil {\n\t\treturn\n\t}\n\tif err = ioutil.WriteFile(objfile, obj, 0666); err != nil {\n\t\treturn\n\t}\n\tdefer os.Remove(objfile)\n\tlinker := newDefaultLinker(emitter.LinkerFlags)\n\terr = linker.link(executable, []string{objfile})\n\t// Linker link runtime and make an executable\n\treturn\n}", "func readELFInterpreter(f *elf.File) string {\n\tconst pathMax = 4096\n\tfor _, p := range f.Progs {\n\t\tif p.Type == elf.PT_INTERP {\n\t\t\tr := p.Open()\n\t\t\tm := p.Filesz\n\t\t\tif m > pathMax {\n\t\t\t\tm = pathMax\n\t\t\t}\n\t\t\tb := make([]byte, m)\n\t\t\tr.Read(b)\n\t\t\treturn strings.TrimRight(string(b), \"\\x00\")\n\t\t}\n\t}\n\treturn \"\"\n}", "func ProgramBinary(program uint32, binaryFormat uint32, binary unsafe.Pointer, length int32) {\n\tC.glowProgramBinary(gpProgramBinary, (C.GLuint)(program), (C.GLenum)(binaryFormat), binary, (C.GLsizei)(length))\n}", "func ProgramBinary(program uint32, binaryFormat uint32, binary unsafe.Pointer, length int32) {\n\tC.glowProgramBinary(gpProgramBinary, (C.GLuint)(program), (C.GLenum)(binaryFormat), binary, (C.GLsizei)(length))\n}", "func loadELF(ctx context.Context, args LoadArgs) (loadedELF, *arch.Context64, error) {\n\tbin, ac, err := loadInitialELF(ctx, args.MemoryManager, args.Features, args.File)\n\tif err != nil {\n\t\tctx.Infof(\"Error loading binary: %v\", err)\n\t\treturn loadedELF{}, nil, err\n\t}\n\n\tvar interp loadedELF\n\tif bin.interpreter != \"\" {\n\t\t// Even if we do not allow the final link of the script to be\n\t\t// resolved, the interpreter should still be resolved if it is\n\t\t// a symlink.\n\t\targs.ResolveFinal = true\n\t\t// Refresh the traversal limit.\n\t\t*args.RemainingTraversals = linux.MaxSymlinkTraversals\n\t\targs.Filename = bin.interpreter\n\t\tintFile, err := openPath(ctx, args)\n\t\tif err != nil {\n\t\t\tctx.Infof(\"Error opening interpreter %s: %v\", bin.interpreter, err)\n\t\t\treturn loadedELF{}, nil, err\n\t\t}\n\t\tdefer intFile.DecRef(ctx)\n\n\t\tinterp, err = loadInterpreterELF(ctx, args.MemoryManager, intFile, bin)\n\t\tif err != nil {\n\t\t\tctx.Infof(\"Error loading interpreter: %v\", err)\n\t\t\treturn loadedELF{}, nil, err\n\t\t}\n\n\t\tif interp.interpreter != \"\" {\n\t\t\t// No recursive interpreters!\n\t\t\tctx.Infof(\"Interpreter requires an interpreter\")\n\t\t\treturn loadedELF{}, nil, linuxerr.ENOEXEC\n\t\t}\n\t}\n\n\t// ELF-specific auxv entries.\n\tbin.auxv = arch.Auxv{\n\t\tarch.AuxEntry{linux.AT_PHDR, bin.phdrAddr},\n\t\tarch.AuxEntry{linux.AT_PHENT, hostarch.Addr(bin.phdrSize)},\n\t\tarch.AuxEntry{linux.AT_PHNUM, hostarch.Addr(bin.phdrNum)},\n\t\tarch.AuxEntry{linux.AT_ENTRY, bin.entry},\n\t}\n\tif bin.interpreter != \"\" {\n\t\tbin.auxv = append(bin.auxv, arch.AuxEntry{linux.AT_BASE, interp.start})\n\n\t\t// Start in the interpreter.\n\t\t// N.B. AT_ENTRY above contains the *original* entry point.\n\t\tbin.entry = interp.entry\n\t} else {\n\t\t// Always add AT_BASE even if there is no interpreter.\n\t\tbin.auxv = append(bin.auxv, arch.AuxEntry{linux.AT_BASE, 0})\n\t}\n\n\treturn bin, ac, nil\n}", "func (cd *CloudStorage) GetPrecompiledObjectCode(ctx context.Context, precompiledObjectPath, bucketName string) (string, error) {\n\textension, err := getFileExtensionBySdk(precompiledObjectPath)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tdata, err := cd.getFileFromBucket(ctx, precompiledObjectPath, extension, bucketName)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tresult := string(data)\n\treturn result, nil\n}", "func (self *Build) exec(moduleLabel core.Label, fileType core.FileType) error {\n\tthread := createThread(self, moduleLabel, fileType)\n\n\tsourceData, err := self.sourceFileReader(moduleLabel)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to execute %v: read failed: %v\", moduleLabel, err)\n\t}\n\n\t_, err = starlark.ExecFile(thread, moduleLabel.String(), sourceData,\n\t\tbuiltins.InitialGlobals(fileType))\n\treturn err\n}", "func compileAndRun(code []byte) (string, error) {\n\tconst name = \"tmp\"\n\tos.RemoveAll(name)\n\terr := os.Mkdir(name, 0700)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\t// write src\n\terr = ioutil.WriteFile(name+\"/main.go\", code, 0700)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\t// compile\n\tcmd := exec.Command(\"sh\", \"-c\", \"go build\")\n\tcmd.Dir = name\n\tout, err := cmd.CombinedOutput()\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"%v: %s\", err, out)\n\t}\n\n\t// execute\n\tcmd = exec.Command(\"sh\", \"-c\", \"./\"+name)\n\tcmd.Dir = name\n\tout, err = cmd.CombinedOutput()\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"%v: %s\", err, out)\n\t}\n\n\tos.RemoveAll(name)\n\treturn string(out), nil\n}", "func RunCompiled(inv Invocation, exePath string, errlog *log.Logger) int {\n\tdebug.Println(\"running binary\", exePath)\n\tc := exec.Command(exePath, inv.Args...)\n\tc.Stderr = inv.Stderr\n\tc.Stdout = inv.Stdout\n\tc.Stdin = inv.Stdin\n\tc.Dir = inv.Dir\n\tif inv.WorkDir != inv.Dir {\n\t\tc.Dir = inv.WorkDir\n\t}\n\t// intentionally pass through unaltered os.Environ here.. your magefile has\n\t// to deal with it.\n\tc.Env = os.Environ()\n\tif inv.Verbose {\n\t\tc.Env = append(c.Env, \"MAGEFILE_VERBOSE=1\")\n\t}\n\tif inv.List {\n\t\tc.Env = append(c.Env, \"MAGEFILE_LIST=1\")\n\t}\n\tif inv.Help {\n\t\tc.Env = append(c.Env, \"MAGEFILE_HELP=1\")\n\t}\n\tif inv.Debug {\n\t\tc.Env = append(c.Env, \"MAGEFILE_DEBUG=1\")\n\t}\n\tif inv.GoCmd != \"\" {\n\t\tc.Env = append(c.Env, fmt.Sprintf(\"MAGEFILE_GOCMD=%s\", inv.GoCmd))\n\t}\n\tif inv.Timeout > 0 {\n\t\tc.Env = append(c.Env, fmt.Sprintf(\"MAGEFILE_TIMEOUT=%s\", inv.Timeout.String()))\n\t}\n\tdebug.Print(\"running magefile with mage vars:\\n\", strings.Join(filter(c.Env, \"MAGEFILE\"), \"\\n\"))\n\t// catch SIGINT to allow magefile to handle them\n\tsigCh := make(chan os.Signal, 1)\n\tsignal.Notify(sigCh, syscall.SIGINT)\n\tdefer signal.Stop(sigCh)\n\terr := c.Run()\n\tif !sh.CmdRan(err) {\n\t\terrlog.Printf(\"failed to run compiled magefile: %v\", err)\n\t}\n\treturn sh.ExitStatus(err)\n}", "func (f *Filter) Program() unsafe.Pointer {\n return unsafe.Pointer(&f.program)\n}", "func objdumpAndSymbolize(obj, arch string) ([]symbolizer.Frame, error) {\n\terrc := make(chan error)\n\tpcchan := make(chan []uint64, 10)\n\tvar frames []symbolizer.Frame\n\tgo func() {\n\t\tsymb := symbolizer.NewSymbolizer()\n\t\tdefer symb.Close()\n\t\tvar err error\n\t\tfor pcs := range pcchan {\n\t\t\tif err != nil {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tframes1, err1 := symb.SymbolizeArray(obj, pcs)\n\t\t\tif err1 != nil {\n\t\t\t\terr = fmt.Errorf(\"failed to symbolize: %v\", err1)\n\t\t\t}\n\t\t\tframes = append(frames, frames1...)\n\t\t}\n\t\terrc <- err\n\t}()\n\tcmd := osutil.Command(\"objdump\", \"-d\", \"--no-show-raw-insn\", obj)\n\tstdout, err := cmd.StdoutPipe()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tdefer stdout.Close()\n\tif err := cmd.Start(); err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to run objdump on %v: %v\", obj, err)\n\t}\n\tdefer func() {\n\t\tcmd.Process.Kill()\n\t\tcmd.Wait()\n\t}()\n\ts := bufio.NewScanner(stdout)\n\tcallInsnS, traceFuncS := archCallInsn(arch)\n\tcallInsn, traceFunc := []byte(callInsnS), []byte(traceFuncS)\n\tvar pcs []uint64\n\tfor s.Scan() {\n\t\tln := s.Bytes()\n\t\tif pos := bytes.Index(ln, callInsn); pos == -1 {\n\t\t\tcontinue\n\t\t} else if !bytes.Contains(ln[pos:], traceFunc) {\n\t\t\tcontinue\n\t\t}\n\t\tfor len(ln) != 0 && ln[0] == ' ' {\n\t\t\tln = ln[1:]\n\t\t}\n\t\tcolon := bytes.IndexByte(ln, ':')\n\t\tif colon == -1 {\n\t\t\tcontinue\n\t\t}\n\t\tpc, err := strconv.ParseUint(string(ln[:colon]), 16, 64)\n\t\tif err != nil {\n\t\t\tcontinue\n\t\t}\n\t\tpcs = append(pcs, pc)\n\t\tif len(pcs) == 100 {\n\t\t\tpcchan <- pcs\n\t\t\tpcs = nil\n\t\t}\n\t}\n\tif len(pcs) != 0 {\n\t\tpcchan <- pcs\n\t}\n\tclose(pcchan)\n\tif err := s.Err(); err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to run objdump output: %v\", err)\n\t}\n\tif err := <-errc; err != nil {\n\t\treturn nil, err\n\t}\n\treturn frames, nil\n}", "func (controller *playgroundController) GetPrecompiledObjectOutput(ctx context.Context, info *pb.GetPrecompiledObjectRequest) (*pb.GetRunOutputResponse, error) {\n\tcd := cloud_bucket.New()\n\toutput, err := cd.GetPrecompiledObjectOutput(ctx, info.GetCloudPath())\n\tif err != nil {\n\t\tlogger.Errorf(\"%s: GetPrecompiledObjectOutput(): cloud storage error: %s\", err.Error())\n\t\treturn nil, errors.InternalError(\"GetPrecompiledObjectOutput(): \", err.Error())\n\t}\n\tresponse := pb.GetRunOutputResponse{Output: *output}\n\treturn &response, nil\n}", "func bin() string {\n\t_, filename, _, _ := runtime.Caller(1)\n\treturn filepath.Join(filepath.Dir(filename), \"../../bin\")\n}", "func Build(target *prog.Target, lang, src string) (string, error) {\n\tbin, err := ioutil.TempFile(\"\", \"syzkaller\")\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"failed to create temp file: %v\", err)\n\t}\n\tbin.Close()\n\tsysTarget := targets.List[target.OS][target.Arch]\n\tcompiler := sysTarget.CCompilerPrefix + \"gcc\"\n\tif _, err := exec.LookPath(compiler); err != nil {\n\t\treturn \"\", NoCompilerErr\n\t}\n\tflags := []string{\n\t\t\"-x\", lang, \"-Wall\", \"-Werror\", \"-O1\", \"-g\", \"-o\", bin.Name(),\n\t\tsrc, \"-pthread\",\n\t}\n\tflags = append(flags, sysTarget.CrossCFlags...)\n\tif sysTarget.PtrSize == 4 {\n\t\t// We do generate uint64's for syscall arguments that overflow longs on 32-bit archs.\n\t\tflags = append(flags, \"-Wno-overflow\")\n\t}\n\tout, err := exec.Command(compiler, append(flags, \"-static\")...).CombinedOutput()\n\tif err != nil {\n\t\t// Some distributions don't have static libraries.\n\t\tout, err = exec.Command(compiler, flags...).CombinedOutput()\n\t}\n\tif err != nil {\n\t\tos.Remove(bin.Name())\n\t\tdata, _ := ioutil.ReadFile(src)\n\t\treturn \"\", fmt.Errorf(\"failed to build program:\\n%s\\n%s\\ncompiler invocation: %v %v\\n\",\n\t\t\tdata, out, compiler, flags)\n\t}\n\treturn bin.Name(), nil\n}", "func archiveBinary(exe string) ([]byte, *layerMetadata, error) {\n\tf, err := os.Open(exe)\n\tif err != nil {\n\t\treturn nil, nil, err\n\t}\n\tdefer f.Close()\n\tfi, err := f.Stat()\n\tif err != nil {\n\t\treturn nil, nil, err\n\t}\n\touterDigest, innerDigest := sha256.New(), sha256.New()\n\tbuf := new(bytes.Buffer)\n\tgw := gzip.NewWriter(io.MultiWriter(buf, outerDigest))\n\ttw := tar.NewWriter(io.MultiWriter(gw, innerDigest))\n\tif err := tw.WriteHeader(&tar.Header{\n\t\tName: strings.TrimPrefix(insideContainerPath, \"/\"),\n\t\tMode: 0755,\n\t\tModTime: fi.ModTime(),\n\t\tSize: fi.Size(),\n\t}); err != nil {\n\t\treturn nil, nil, err\n\t}\n\tif _, err := io.Copy(tw, f); err != nil {\n\t\treturn nil, nil, err\n\t}\n\tif err := tw.Close(); err != nil {\n\t\treturn nil, nil, err\n\t}\n\tif err := gw.Close(); err != nil {\n\t\treturn nil, nil, err\n\t}\n\treturn buf.Bytes(), &layerMetadata{\n\t\touterDigest: fmt.Sprintf(\"sha256:%x\", outerDigest.Sum(nil)),\n\t\tinnerDigest: fmt.Sprintf(\"sha256:%x\", innerDigest.Sum(nil)),\n\t\touterSize: buf.Len(),\n\t}, nil\n}", "func (a Arguments) Binary() string {\n\treturn a.bin\n}", "func GenerateBinaries(c Calls, provider fsProviderFn) map[string]string {\n\t// Load all binaries\n\tbinaries := make(map[string]string)\n\tfor project, config := range c {\n\t\tbinaries[project] = loadBinary(provider, *config)\n\t}\n\treturn binaries\n}", "func (p *Program) String() string {\n\tvar out bytes.Buffer\n\n\tfor _, s := range p.Statements {\n\t\tout.WriteString(s.String())\n\t}\n\n\treturn out.String()\n}", "func (p *Program) String() string {\n\tvar out bytes.Buffer\n\n\tfor _, s := range p.Statements {\n\t\tout.WriteString(s.String())\n\t}\n\n\treturn out.String()\n}", "func (p *Program) String() string {\n\tvar out bytes.Buffer\n\tfor _, stmt := range p.Statements {\n\t\tout.WriteString(stmt.String())\n\t}\n\treturn out.String()\n}", "func loadBinaryInfoElf(bi *BinaryInfo, image *Image, path string, addr uint64, wg *sync.WaitGroup) error {\n\texe, err := os.OpenFile(path, 0, os.ModePerm)\n\tif err != nil {\n\t\treturn err\n\t}\n\timage.closer = exe\n\telfFile, err := elf.NewFile(exe)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif !supportedLinuxArch[elfFile.Machine] {\n\t\treturn &ErrUnsupportedArch{os: \"linux\", cpuArch: elfFile.Machine}\n\t}\n\n\tif image.index == 0 {\n\t\t// adding executable file:\n\t\t// - addr is entryPoint therefore staticBase needs to be calculated by\n\t\t// subtracting the entry point specified in the executable file from addr.\n\t\t// - memory address of the .dynamic section needs to be recorded in\n\t\t// BinaryInfo so that we can find loaded libraries.\n\t\tif addr != 0 {\n\t\t\timage.StaticBase = addr - elfFile.Entry\n\t\t} else if elfFile.Type == elf.ET_DYN {\n\t\t\treturn ErrCouldNotDetermineRelocation\n\t\t}\n\t\tif dynsec := elfFile.Section(\".dynamic\"); dynsec != nil {\n\t\t\tbi.ElfDynamicSection.Addr = dynsec.Addr + image.StaticBase\n\t\t\tbi.ElfDynamicSection.Size = dynsec.Size\n\t\t}\n\t} else {\n\t\timage.StaticBase = addr\n\t}\n\n\tdwarfFile := elfFile\n\n\tbi.loadBuildID(image, elfFile)\n\tvar debugInfoBytes []byte\n\tvar dwerr error\n\timage.dwarf, dwerr = elfFile.DWARF()\n\tif dwerr != nil {\n\t\tvar sepFile *os.File\n\t\tvar serr error\n\t\tsepFile, dwarfFile, serr = bi.openSeparateDebugInfo(image, elfFile, bi.DebugInfoDirectories)\n\t\tif serr != nil {\n\t\t\tif len(bi.Images) <= 1 {\n\t\t\t\tfmt.Fprintln(os.Stderr, \"Warning: no debug info found, some functionality will be missing such as stack traces and variable evaluation.\")\n\t\t\t}\n\t\t\tsymTable, err := readPcLnTableElf(elfFile, path)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"could not read debug info (%v) and could not read go symbol table (%v)\", dwerr, err)\n\t\t\t}\n\t\t\timage.symTable = symTable\n\t\t\tfor _, f := range image.symTable.Funcs {\n\t\t\t\tcu := &compileUnit{}\n\t\t\t\tcu.image = image\n\t\t\t\tfn := Function{Name: f.Name, Entry: f.Entry + image.StaticBase, End: f.End + image.StaticBase, cu: cu}\n\t\t\t\tbi.Functions = append(bi.Functions, fn)\n\t\t\t}\n\t\t\tfor f := range image.symTable.Files {\n\t\t\t\tbi.Sources = append(bi.Sources, f)\n\t\t\t}\n\t\t\treturn nil\n\t\t}\n\t\timage.sepDebugCloser = sepFile\n\t\timage.dwarf, err = dwarfFile.DWARF()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\tdebugInfoBytes, err = godwarf.GetDebugSectionElf(dwarfFile, \"info\")\n\tif err != nil {\n\t\treturn err\n\t}\n\n\timage.dwarfReader = image.dwarf.Reader()\n\n\tdebugLineBytes, err := godwarf.GetDebugSectionElf(dwarfFile, \"line\")\n\tif err != nil {\n\t\treturn err\n\t}\n\tdebugLocBytes, _ := godwarf.GetDebugSectionElf(dwarfFile, \"loc\")\n\timage.loclist2 = loclist.NewDwarf2Reader(debugLocBytes, bi.Arch.PtrSize())\n\tdebugLoclistBytes, _ := godwarf.GetDebugSectionElf(dwarfFile, \"loclists\")\n\timage.loclist5 = loclist.NewDwarf5Reader(debugLoclistBytes)\n\tdebugAddrBytes, _ := godwarf.GetDebugSectionElf(dwarfFile, \"addr\")\n\timage.debugAddr = godwarf.ParseAddr(debugAddrBytes)\n\tdebugLineStrBytes, _ := godwarf.GetDebugSectionElf(dwarfFile, \"line_str\")\n\timage.debugLineStr = debugLineStrBytes\n\n\twg.Add(3)\n\tgo bi.parseDebugFrameElf(image, dwarfFile, elfFile, debugInfoBytes, wg)\n\tgo bi.loadDebugInfoMaps(image, debugInfoBytes, debugLineBytes, wg, nil)\n\tgo bi.loadSymbolName(image, elfFile, wg)\n\tif image.index == 0 {\n\t\t// determine g struct offset only when loading the executable file\n\t\twg.Add(1)\n\t\tgo bi.setGStructOffsetElf(image, dwarfFile, wg)\n\t}\n\treturn nil\n}", "func (*VirtualMachineRunCommandScriptSource) Descriptor() ([]byte, []int) {\n\treturn file_moc_common_computecommon_proto_rawDescGZIP(), []int{5}\n}", "func loadExecutable(filename string, data []byte) (*Exec, error) {\n\t// Use initMutex to synchronize file operations by this process\n\tinitMutex.Lock()\n\tdefer initMutex.Unlock()\n\n\tvar err error\n\tif !filepath.IsAbs(filename) {\n\t\tfilename, err = inStandardDir(filename)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\tfilename = renameExecutable(filename)\n\n\tif data != nil {\n\t\tlog.Tracef(\"Placing executable in %s\", filename)\n\t\tif err := filepersist.Save(filename, data, NewFileMode); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tlog.Trace(\"File saved, returning new Exec\")\n\t} else {\n\t\tlog.Tracef(\"Loading executable from %s\", filename)\n\t}\n\treturn newExec(filename)\n}", "func BuildBinary(name string, mode os.FileMode, body io.Reader) (*Binary, error) {\n\tsum, err := checksum(body)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &Binary{\n\t\tName: name,\n\t\tChecksum: sum,\n\t\tMode: mode,\n\t\tBody: body,\n\t}, nil\n}", "func (*Program) Descriptor() ([]byte, []int) {\n\treturn file_data_proto_rawDescGZIP(), []int{2}\n}", "func Compile(state *lua.LState, moonscriptCode string) (string, error) {\n\tmoonbundle, err := Asset(\"moon-bundle.lua\")\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\tstate.SetGlobal(\"_moonbundle_code\", lua.LString(moonbundle))\n\tstate.SetGlobal(\"__moonscript_code\", lua.LString(moonscriptCode))\n\n\terr = state.DoString(`\n package.loaded.moonscript = loadstring(_moonbundle_code)()\n\n local moonparse = require(\"moonscript.parse\")\n local mooncompile = require(\"moonscript.compile\")\n\n local tree, err = moonparse.string(__moonscript_code)\n if not tree then\n print(\"gmoonscript error: unable to parse moonscript, check formatting!\")\n else\n __output_lua_code_, err = mooncompile.tree(tree)\n end\n\n -- remove all created modules and vars\n package.loaded.moonscript = nil\n moonparse = nil\n mooncompile = nil\n\n _moonbundle_code = nil\n __moonscript_code = nil\n collectgarbage()\n `)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\tluaOutput := state.GetGlobal(\"__output_lua_code_\")\n\tstate.SetGlobal(\"__output_lua_code\", lua.LNil)\n\n\treturn luaOutput.String(), nil\n}", "func yasm(instr []byte) ([]byte, error) {\n\n\ttmpfile, err := ioutil.TempFile(\"\", \"asm2plan9s\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tasmFile := tmpfile.Name() + \".asm\"\n\tobjFile := tmpfile.Name() + \".obj\"\n\tos.Rename(tmpfile.Name(), asmFile)\n\tdefer os.Remove(asmFile)\n\n\tif _, err := tmpfile.Write(append([]byte(\"[bits 64]\\n\"), instr...)); err != nil {\n\t\treturn nil, err\n\t}\n\tif err := tmpfile.Close(); err != nil {\n\t\treturn nil, err\n\t}\n\n\tapp := \"yasm\"\n\targ0 := \"-o\" + objFile\n\tcmd := exec.Command(app, arg0, asmFile)\n\n\tdefer os.Remove(objFile) // output file created by yasm\n\tcmb, err := cmd.CombinedOutput()\n\tif err != nil {\n\t\tyasmErr := bytes.Replace(cmb, []byte(asmFile+\":2:\"), []byte(\"\\t\"), -1)\n\t\treturn nil, errors.Errorf(\"YASM error on '%s':\\n %s\", bytes.TrimSpace(instr), yasmErr)\n\t}\n\n\tobjcode, err := ioutil.ReadFile(objFile)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn objcode, nil\n}", "func Compile(ctx context.Context, ui *ui.UI, discovered *discover.Discovered) (*Binaries, error) {\n\tegrp, ctx := errgroup.WithContext(ctx)\n\tbinaries := &Binaries{}\n\tif discovered.Local != nil {\n\t\tegrp.Go(func() error {\n\t\t\tpath, err := compile(ctx, ui, discovered.Local)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tbinaries.Local = Binary{Path: path}\n\t\t\treturn nil\n\t\t})\n\t}\n\tif discovered.Plan != nil {\n\t\tegrp.Go(func() error {\n\t\t\tpath, err := compile(ctx, ui, discovered.Plan)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tbinaries.Plan = Binary{Path: path}\n\t\t\treturn nil\n\t\t})\n\t}\n\n\tif err := egrp.Wait(); err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn binaries, nil\n}", "func BinaryName() string {\n\treturn fmt.Sprintf(\"epinio-%s-%s\", runtime.GOOS, runtime.GOARCH)\n}", "func objcopy(infile, outfile string) error {\n\tf, err := os.OpenFile(outfile, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer f.Close()\n\n\t// Read the .text segment.\n\taddr, data, err := extractROM(infile)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\t// Write to the file, in the correct format.\n\tswitch filepath.Ext(outfile) {\n\tcase \".gba\":\n\t\t// The address is not stored in a .gba file.\n\t\t_, err := f.Write(data)\n\t\treturn err\n\tcase \".bin\":\n\t\t// The address is not stored in a .bin file (therefore you\n\t\t// should use .hex files in most cases).\n\t\t_, err := f.Write(data)\n\t\treturn err\n\tcase \".hex\":\n\t\tmem := gohex.NewMemory()\n\t\terr := mem.AddBinary(uint32(addr), data)\n\t\tif err != nil {\n\t\t\treturn objcopyError{\"failed to create .hex file\", err}\n\t\t}\n\t\tmem.DumpIntelHex(f, 16) // TODO: handle error\n\t\treturn nil\n\tdefault:\n\t\tpanic(\"unreachable\")\n\t}\n}", "func (s CreateProgramOutput) String() string {\n\treturn awsutil.Prettify(s)\n}", "func (app *application) Execute(script linkers.Script) (middle.Program, error) {\n\tlangRef := script.Language()\n\tlang := langRef.Language()\n\tlangApp := lang.Application()\n\tinVariable := langRef.Input()\n\toutVariable := langRef.Output()\n\tcode := script.Code()\n\n\tcodeValue, err := app.computableBuilder.Create().WithString(code).Now()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tinput := map[string]computable.Value{\n\t\tinVariable: codeValue,\n\t}\n\n\tlinkedProgram, err := app.programBuilder.Create().WithApplication(langApp).Now()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tinterpreter, err := app.interpreterBuilder.Create().WithProgram(linkedProgram).Now()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif !interpreter.IsApplication() {\n\t\treturn nil, errors.New(\"the interpreter was expected to be an application interpreter\")\n\t}\n\n\tstackFrame, err := interpreter.Application().Execute(input)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tcomputedCodeValue, err := stackFrame.Current().Fetch(outVariable)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif !computedCodeValue.IsString() {\n\t\tstr := fmt.Sprintf(\"the output variable (%s) was expected to contain code and therefore be a string\", outVariable)\n\t\treturn nil, errors.New(str)\n\t}\n\n\tpOutputCode := computedCodeValue.String()\n\tprogramIns, err := app.parser.ExecuteScript(*pOutputCode)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif parsedProgram, ok := programIns.(parsers.Program); ok {\n\t\treturn app.middleAdapter.ToProgram(parsedProgram)\n\t}\n\n\treturn nil, errors.New(\"the parsed compiled output was expected to contain a parsers.Program instance\")\n}", "func Binary() []byte {\n\tonceBinary.Do(func() {\n\t\t// untar the binary.\n\t\tgzr, err := gzip.NewReader(bytes.NewReader(data.Binary()))\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t\tdefer gzr.Close()\n\n\t\ttr := tar.NewReader(gzr)\n\n\t\tif _, err := tr.Next(); err != nil {\n\t\t\tpanic(err)\n\t\t}\n\n\t\tif binary, err = io.ReadAll(tr); err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t})\n\n\treturn binary\n}", "func toSSA(source io.Reader, fileName, packageName string, debug bool) ([]byte, error) {\n\t// adopted from saa package example\n\n\tconf := loader.Config{\n\t\tBuild: &build.Default,\n\t}\n\n\tfile, err := conf.ParseFile(fileName, source)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tconf.CreateFromFiles(\"main.go\", file)\n\n\tprog, err := conf.Load()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tssaProg := ssautil.CreateProgram(prog, ssa.NaiveForm|ssa.BuildSerially)\n\tssaProg.Build()\n\tmainPkg := ssaProg.Package(prog.InitialPackages()[0].Pkg)\n\n\tout := new(bytes.Buffer)\n\tmainPkg.SetDebugMode(debug)\n\tmainPkg.WriteTo(out)\n\tmainPkg.Build()\n\n\t// grab just the functions\n\tfuncs := members([]ssa.Member{})\n\tfor _, obj := range mainPkg.Members {\n\t\tif obj.Token() == token.FUNC {\n\t\t\tfuncs = append(funcs, obj)\n\t\t}\n\t}\n\t// sort by Pos()\n\tsort.Sort(funcs)\n\tfor _, f := range funcs {\n\t\tmainPkg.Func(f.Name()).WriteTo(out)\n\t}\n\treturn out.Bytes(), nil\n}", "func (g *GitHub) Binary() string {\n\treturn g.binary\n}", "func (controller *playgroundController) GetPrecompiledObjectCode(ctx context.Context, info *pb.GetPrecompiledObjectRequest) (*pb.GetPrecompiledObjectCodeResponse, error) {\n\tcd := cloud_bucket.New()\n\tcodeString, err := cd.GetPrecompiledObject(ctx, info.GetCloudPath())\n\tif err != nil {\n\t\tlogger.Errorf(\"%s: GetPrecompiledObject(): cloud storage error: %s\", err.Error())\n\t\treturn nil, errors.InternalError(\"GetPrecompiledObjects(): \", err.Error())\n\t}\n\tresponse := pb.GetPrecompiledObjectCodeResponse{Code: *codeString}\n\treturn &response, nil\n}", "func (d *Distro) ExecutableSubPath() string {\n\treturn filepath.Join(d.Arch, d.BinaryName())\n}", "func (s *Server) Compiled(ctx context.Context, request *proto.Request) (*proto.Response, error) {\n\t// extract the code URL, args, and stdin from request\n\tcodeURL, args, stdin := request.GetCodeURL(), request.GetArgs(), request.GetStdin()\n\n\t/*\n\t\tCode has to be downloaded in\n\t\t/home/${whoami}/remote/ruby/code-#{time.Now()}.rb\n\t*/\n\n\t// get home directory of current user\n\tcurrentUser, err := user.Current()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// get and format current time for every request\n\tt := time.Now().Format(\"20060102150405\")\n\n\t// generate string for destination (in UNIX based systems)\n\tdestinationString := fmt.Sprintf(\"%s/rpc/ruby/code-%s.rb\", currentUser.HomeDir, t)\n\n\t// download file in the provided destination\n\twget.Wget(codeURL, destinationString)\n\n\t/*\n\t\tIf no arguments were provided, only leave the\n\t\tdestinationString in the args slice otherwise\n\t\tappend location of file to arguments list\n\t*/\n\tif args[0] == \"\" {\n\t\targs = []string{destinationString}\n\t} else {\n\t\targs = append(args, destinationString)\n\t}\n\n\t// get Command struct instance by passing command name and arguments\n\tcmd := exec.Command(\"ruby\", args...)\n\n\t// provide stdin to command\n\tcmd.Stdin = bytes.NewReader(stdin)\n\n\t// store cmd.Stdout in a Bytes buffer\n\tvar Stdout bytes.Buffer\n\tcmd.Stdout = &Stdout\n\n\t// run the command\n\terr = cmd.Run()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// delete the code file\n\terr = os.Remove(destinationString)\n\tif err != nil {\n\t\tlog.Println(err)\n\t}\n\n\t// return full response\n\treturn &proto.Response{Body: Stdout.Bytes()}, nil\n}", "func (*Program) Descriptor() ([]byte, []int) {\n\treturn file_proto_common_proto_rawDescGZIP(), []int{1}\n}", "func (controller *playgroundController) GetPrecompiledObjectOutput(ctx context.Context, info *pb.GetPrecompiledObjectOutputRequest) (*pb.GetPrecompiledObjectOutputResponse, error) {\n\tif err := controller.verifyRouter(); err != nil {\n\t\tlogger.Errorf(\"GetPrecompiledObjectOutput() error: %s\", err.Error())\n\t\treturn nil, err\n\t}\n\texampleId := info.GetCloudPath()\n\toutput, err := controller.db.GetExampleOutput(ctx, exampleId)\n\tif err != nil {\n\t\tswitch err {\n\t\tcase datastore.ErrNoSuchEntity:\n\t\t\treturn nil, cerrors.NotFoundError(errorTitleGetExampleOutput, resourceNotFoundErrMsg)\n\t\tdefault:\n\t\t\treturn nil, cerrors.InternalError(errorTitleGetExampleOutput, userCloudConnectionErrMsg)\n\t\t}\n\t}\n\tresponse := pb.GetPrecompiledObjectOutputResponse{Output: output}\n\treturn &response, nil\n}", "func NewExecBinary(name FileName) ExecBinary {\n\treturn ExecBinary{\n\t\tName: name,\n\t}\n}", "func crossCompile(binName string) (string, error) {\n\ttmpDir, err := ioutil.TempDir(\"\", \"\")\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\toutputPath := filepath.Join(tmpDir, binName)\n\n\targs := []string{\n\t\t\"build\",\n\t\t\"-o\", outputPath,\n\t\t\"-ldflags\", \"-s -w\",\n\t\t\".\",\n\t}\n\tcmd := exec.Command(\"go\", args...)\n\n\tcmd.Env = append(os.Environ(), \"GOOS=linux\")\n\n\tcombinedOut, err := cmd.CombinedOutput()\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"%s\\n%s\", err, combinedOut)\n\t}\n\n\treturn outputPath, nil\n}", "func (g getPythonBinaryRequestType) StarlarkFunctionBody() string {\n\treturn \"return providers(target)['FilesToRunProvider'].executable.path\"\n}", "func (m *generateCommon) hostBinOuts(mctx blueprint.ModuleContext) (string, []string, tgtType) {\n\t// No host_bin provided\n\tif m.Properties.Host_bin == nil {\n\t\treturn \"\", []string{}, tgtTypeUnknown\n\t}\n\n\thostBinOut := \"\"\n\thostBinSharedLibsDeps := []string{}\n\thostBinTarget := tgtTypeUnknown\n\thostBinFound := false\n\n\tmctx.WalkDeps(func(child blueprint.Module, parent blueprint.Module) bool {\n\t\tdepTag := mctx.OtherModuleDependencyTag(child)\n\n\t\tif parent == mctx.Module() && depTag == hostToolBinTag {\n\t\t\tvar outputs []string\n\t\t\thostBinFound = true\n\n\t\t\tif b, ok := child.(*binary); ok {\n\t\t\t\toutputs = b.outputs()\n\t\t\t\thostBinTarget = b.getTarget()\n\t\t\t} else if gb, ok := child.(*generateBinary); ok {\n\t\t\t\toutputs = gb.outputs()\n\t\t\t} else {\n\t\t\t\tmctx.PropertyErrorf(\"host_bin\", \"%s is not a `bob_binary` nor `bob_generate_binary`\", parent.Name())\n\t\t\t\treturn false\n\t\t\t}\n\n\t\t\tif len(outputs) != 1 {\n\t\t\t\tmctx.OtherModuleErrorf(child, \"outputs() returned %d outputs\", len(outputs))\n\t\t\t} else {\n\t\t\t\thostBinOut = outputs[0]\n\t\t\t}\n\n\t\t\treturn true // keep visiting\n\t\t} else if parent != mctx.Module() && depTag == sharedDepTag {\n\t\t\tif l, ok := child.(*sharedLibrary); ok {\n\t\t\t\thostBinSharedLibsDeps = append(hostBinSharedLibsDeps, l.outputs()...)\n\t\t\t}\n\n\t\t\treturn true // keep visiting\n\t\t} else {\n\t\t\treturn false // stop visiting\n\t\t}\n\t})\n\n\tif !hostBinFound {\n\t\tmctx.ModuleErrorf(\"Could not find module specified by `host_bin: %v`\", m.Properties.Host_bin)\n\t}\n\n\treturn hostBinOut, hostBinSharedLibsDeps, hostBinTarget\n}", "func (e *explorer) decompGo(funcName string, prims []*primitive.Primitive) (string, error) {\n\t// Create temporary directory used for decompilation.\n\ttmpDir, err := ioutil.TempDir(\"\", \"decomp-\")\n\tif err != nil {\n\t\treturn \"\", errors.WithStack(err)\n\t}\n\tdefer os.RemoveAll(tmpDir)\n\t// Copy LLVM IR assembly file to temp dir.\n\ttmpLLPath := filepath.Join(tmpDir, filepath.Base(e.llPath))\n\tif err := dircopy.Copy(e.llPath, tmpLLPath); err != nil {\n\t\treturn \"\", errors.WithStack(err)\n\t}\n\t// Write prims in JSON format to temp dir.\n\tllName := pathutil.FileName(e.llPath)\n\ttmpDotDir := filepath.Join(tmpDir, fmt.Sprintf(\"%s_graphs\", llName))\n\tif err := os.MkdirAll(tmpDotDir, 0755); err != nil {\n\t\treturn \"\", errors.WithStack(err)\n\t}\n\tjsonName := fmt.Sprintf(\"%s.json\", funcName)\n\tjsonPath := filepath.Join(tmpDotDir, jsonName)\n\tif err := jsonutil.WriteFile(jsonPath, prims); err != nil {\n\t\treturn \"\", errors.WithStack(err)\n\t}\n\t// Execute decompiler command.\n\tfuncs := funcName\n\tcmd := exec.Command(\"ll2go2\", \"-funcs\", funcs, tmpLLPath)\n\tbuf := &bytes.Buffer{}\n\tcmd.Stdin = os.Stdin\n\tcmd.Stdout = buf\n\tcmd.Stderr = os.Stderr\n\t// Set current working directory to temp dir.\n\tcmd.Dir = tmpDir\n\tif err := cmd.Run(); err != nil {\n\t\treturn \"\", errors.WithStack(err)\n\t}\n\treturn buf.String(), nil\n}", "func getToolContents() ([]byte, error) {\n\t// Get hold of the binary contents, if we haven't yet.\n\tgetToolContents_Once.Do(func() {\n\t\tgetToolContents_Contents, getToolContents_Err = getToolContentsImpl()\n\t})\n\n\treturn getToolContents_Contents, getToolContents_Err\n}", "func OpenExecutable(path string) (*Executable, error) {\n\tif path == \"\" {\n\t\treturn nil, fmt.Errorf(\"path cannot be empty\")\n\t}\n\n\tf, err := os.Open(path)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"open file '%s': %w\", path, err)\n\t}\n\tdefer f.Close()\n\n\tse, err := internal.NewSafeELFFile(f)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"parse ELF file: %w\", err)\n\t}\n\n\tif se.Type != elf.ET_EXEC && se.Type != elf.ET_DYN {\n\t\t// ELF is not an executable or a shared object.\n\t\treturn nil, errors.New(\"the given file is not an executable or a shared object\")\n\t}\n\n\tex := Executable{\n\t\tpath: path,\n\t\taddresses: make(map[string]uint64),\n\t}\n\n\tif err := ex.load(se); err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn &ex, nil\n}", "func getToolContentsImpl() ([]byte, error) {\n\t// Fast path: has the user set the flag?\n\tif *fToolPath != \"\" {\n\t\tcontents, err := ioutil.ReadFile(*fToolPath)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"Reading mount_sample contents: %v\", err)\n\t\t}\n\n\t\treturn contents, err\n\t}\n\n\t// Create a temporary directory into which we will compile the tool.\n\ttempDir, err := ioutil.TempDir(\"\", \"sample_test\")\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"TempDir: %v\", err)\n\t}\n\n\ttoolPath := path.Join(tempDir, \"mount_sample\")\n\n\t// Ensure that we kill the temporary directory when we're finished here.\n\tdefer os.RemoveAll(tempDir)\n\n\t// Run \"go build\".\n\tcmd := exec.Command(\n\t\t\"go\",\n\t\t\"build\",\n\t\t\"-o\",\n\t\ttoolPath,\n\t\t\"github.com/jacobsa/fuse/samples/mount_sample\")\n\n\toutput, err := cmd.CombinedOutput()\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\n\t\t\t\"mount_sample exited with %v, output:\\n%s\",\n\t\t\terr,\n\t\t\tstring(output))\n\t}\n\n\t// Slurp the tool contents.\n\tcontents, err := ioutil.ReadFile(toolPath)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"ReadFile: %v\", err)\n\t}\n\n\treturn contents, nil\n}", "func (controller *playgroundController) GetPrecompiledObjectCode(ctx context.Context, info *pb.GetPrecompiledObjectCodeRequest) (*pb.GetPrecompiledObjectCodeResponse, error) {\n\tif err := controller.verifyRouter(); err != nil {\n\t\tlogger.Errorf(\"GetPrecompiledObjectCode() error: %s\", err.Error())\n\t\treturn nil, err\n\t}\n\texampleId := info.GetCloudPath()\n\tfiles, err := controller.db.GetExampleCode(ctx, exampleId)\n\tif err != nil {\n\t\tswitch err {\n\t\tcase datastore.ErrNoSuchEntity:\n\t\t\treturn nil, cerrors.NotFoundError(errorTitleGetExampleCode, resourceNotFoundErrMsg)\n\t\tdefault:\n\t\t\treturn nil, cerrors.InternalError(errorTitleGetExampleCode, userCloudConnectionErrMsg)\n\t\t}\n\t}\n\tif len(files) == 0 {\n\t\treturn nil, cerrors.NotFoundError(errorTitleGetExampleCode, resourceNotFoundErrMsg)\n\t}\n\tresponse := pb.GetPrecompiledObjectCodeResponse{}\n\tfor _, file := range files {\n\t\tresponse.Files = append(response.Files, &pb.SnippetFile{\n\t\t\tName: file.Name,\n\t\t\tContent: file.Content,\n\t\t\tIsMain: file.IsMain,\n\t\t})\n\t\tif file.IsMain {\n\t\t\tresponse.Code = file.Content\n\t\t}\n\t}\n\tif len(response.Files) == 0 || response.Code == \"\" {\n\t\treturn nil, cerrors.InternalError(errorTitleGetExampleCode, resourceInconsistentErrMsg)\n\t}\n\treturn &response, nil\n}", "func crateSource(ctx android.SingletonContext, rModule *Module, comp *baseCompiler) (string, bool) {\n\t// Basic libraries, executables and tests.\n\tsrcs := comp.Properties.Srcs\n\tif len(srcs) != 0 {\n\t\treturn path.Join(ctx.ModuleDir(rModule), srcs[0]), true\n\t}\n\t// SourceProvider libraries.\n\tif rModule.sourceProvider != nil {\n\t\treturn sourceProviderSource(ctx, rModule)\n\t}\n\treturn \"\", false\n}", "func evalProgram(prog *ast.Program, e *object.Env) object.Object {\n\tvar result object.Object\n\n\tfor _, stmt := range prog.Statements {\n\t\tresult = Eval(stmt, e)\n\t\tif result == nil {\n\t\t\treturn &object.Error{\n\t\t\t\tMessage: \"NULL encounterd.\",\n\t\t\t}\n\t\t}\n\t\tif result.Type() == object.ReturnObject {\n\t\t\treturn result.(*object.Return).Value\n\t\t}\n\t}\n\n\treturn result\n}", "func main() {\n\n\tvar dwarfData\t\t\t*dwarf.Data;\n\tvar theFile\t\t\t\t*macho.File;\n\tvar theErr\t\t\t\tos.Error;\n\tvar relativeAddress\t\tuint64;\n\tvar runtimeAddress\t\tuint64;\n\tvar loadAddress\t\t\tuint64;\n\tvar segmentAddress\t\tuint64;\n\tvar pathMacho\t\t\tstring;\n\tvar pathDsym\t\t\tstring;\n\n\n\n\t// Parse our arguments\n\tflag.Uint64Var(&runtimeAddress, \"raddr\", 0, \"\");\n\tflag.Uint64Var(&loadAddress, \"laddr\", 0, \"\");\n\tflag.StringVar(&pathMacho, \"macho\", \"\", \"\");\n\tflag.StringVar(&pathDsym, \"dsym\", \"\", \"\");\n\tflag.Parse();\n\n\tif (runtimeAddress == 0 || loadAddress == 0 || pathMacho == \"\" || pathDsym == \"\") {\n\t\tprintHelp();\n\t}\n\n\n\n\t// Find the text segment address\n\ttheFile, theErr = macho.Open(pathMacho);\n\tif (theErr != nil) {\n\t\tfatalError(\"Can't open Mach-O file: \" + theErr.String());\n\t}\n\n\tsegmentAddress = theFile.Segment(\"__TEXT\").Addr;\n\n\ttheFile.Close();\n\n\n\n\t// Calculate the target address\n\trelativeAddress = runtimeAddress - loadAddress;\n\tgTargetAddress = segmentAddress + relativeAddress;\n\n\n\n\t// Find the target\n\ttheFile, theErr = macho.Open(pathDsym);\n\tif (theErr != nil) {\n\t\tfatalError(\"Can't open .dsym file: \" + theErr.String());\n\t}\n\n\tdwarfData, theErr = theFile.DWARF();\n\tif (theErr != nil) {\n\t\tfatalError(\"Can't find DWARF info: \" + theErr.String());\n\t}\n\n\tprocessChildren(dwarfData.Reader(), 0, false);\n\n\ttheFile.Close();\n}", "func (cfg *Config) genBinarySpec(t xsd.Builtin) ([]spec, error) {\n\tcfg.debugf(\"generating Go source for binary type %q\", xsd.XMLName(t).Local)\n\ts := spec{\n\t\texpr: builtinExpr(t),\n\t\tname: xsd.XMLName(t).Local,\n\t\txsdType: t,\n\t}\n\tmarshal := gen.Func(\"MarshalText\").Receiver(\"b \"+s.name).Returns(\"[]byte\", \"error\")\n\tunmarshal := gen.Func(\"UnmarshalText\").Receiver(\"b \" + s.name).Args(\"text []byte\").\n\t\tReturns(\"err error\")\n\n\tswitch t {\n\tcase xsd.HexBinary:\n\t\tunmarshal.Body(`\n\t\t\t*b, err = hex.DecodeString(string(text))\n\t\t\treturn err\n\t\t`)\n\t\tmarshal.Body(`\n\t\t\tn := hex.EncodedLen([]byte(b))\n\t\t\tbuf := make([]byte, n)\n\t\t\thex.Encode(buf, []byte(b))\n\t\t\treturn buf, nil\n\t\t`)\n\tcase xsd.Base64Binary:\n\t\tunmarshal.Body(`\n\t\t\t*b, err = base64.StdEncoding.DecodeString(string(text))\n\t\t\treturn err\n\t\t`)\n\t\tmarshal.Body(`\n\t\t\tvar buf bytes.Buffer\n\t\t\tenc := base64.NewEncoder(base64.StdEncoding, &buf)\n\t\t\tenc.Write([]byte(b))\n\t\t\tenc.Close()\n\t\t\treturn buf.Bytes()\n\t\t`)\n\t}\n\tmarshalFn, err := marshal.Decl()\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"MarshalText %s: %v\", s.name, err)\n\t}\n\tunmarshalFn, err := unmarshal.Decl()\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"UnmarshalText %s: %v\", s.name, err)\n\t}\n\ts.methods = append(s.methods, unmarshalFn, marshalFn)\n\treturn []spec{s}, nil\n}", "func buildExecutable() {\n\tvar executables []string\n\tvar execFilled int\n\n\t// check if there's a main package:\n\tif goPackages.GetMainCount() == 0 {\n\t\tlogger.Error(\"No main package found.\\n\")\n\t\tos.Exit(1)\n\t}\n\n\t// multiple main, no command file from command line and no -a -> error\n\tif (goPackages.GetMainCount() > 1) && (flag.NArg() == 0) && !*flagBuildAll {\n\t\tlogger.Error(\"Multiple files found with main function.\\n\")\n\t\tlogger.ErrorContinue(\"Please specify one or more as command line parameter or\\n\")\n\t\tlogger.ErrorContinue(\"run gobuild with -a. Available main files are:\\n\")\n\t\tfor _, fn := range goPackages.GetMainFilenames() {\n\t\t\tlogger.ErrorContinue(\"\\t %s\\n\", fn)\n\t\t}\n\t\tos.Exit(1)\n\t}\n\n\t// compile all needed packages\n\tif flag.NArg() > 0 {\n\t\tif *flagRunExec {\n\t\t\texecutables = make([]string, flag.NArg())\n\t\t}\n\t\tfor _, fn := range flag.Args() {\n\t\t\tmainPack, exists := goPackages.GetMain(fn, !*flagSingleMainFile)\n\t\t\tif !exists {\n\t\t\t\tlogger.Error(\"File %s not found.\\n\", fn)\n\t\t\t\treturn // or os.Exit?\n\t\t\t}\n\n\t\t\tif compile(mainPack) {\n\t\t\t\t// link everything together\n\t\t\t\tif link(mainPack) {\n\t\t\t\t\tif *flagRunExec {\n\t\t\t\t\t\texecutables[execFilled] = outputDirPrefix + mainPack.OutputFile\n\t\t\t\t\t\texecFilled++\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tlinkErrors = true\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.Error(\"Can't link executable because of compile errors.\\n\")\n\t\t\t\tcompileErrors = true\n\t\t\t}\n\t\t}\n\t} else {\n\t\tif *flagRunExec {\n\t\t\texecutables = make([]string, goPackages.GetMainCount())\n\t\t}\n\t\tfor _, mainPack := range goPackages.GetMainPackages(!*flagSingleMainFile) {\n\n\t\t\tif compile(mainPack) {\n\t\t\t\tif link(mainPack) {\n\t\t\t\t\tif *flagRunExec {\n\t\t\t\t\t\texecutables[execFilled] = outputDirPrefix + mainPack.OutputFile\n\t\t\t\t\t\texecFilled++\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tlinkErrors = true\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.Error(\"Can't link executable because of compile errors.\\n\")\n\t\t\t\tcompileErrors = true\n\t\t\t}\n\t\t}\n\t}\n\n\tif *flagRunExec && !linkErrors && !compileErrors {\n\t\tfor i := 0; i < execFilled; i++ {\n\t\t\trunExec([]string{executables[i]})\n\t\t}\n\t}\n}", "func main() {\n\tInitVars()\n\ttfmBins := InitTfmBins(&OsPath)\n\tverConstraints, err := ParseTfmConfigs(\"./\")\n\tif err != nil {\n\t\tfmt.Fprintf(os.Stderr, \"[ERROR] %s\", err.Error())\n\t\tos.Exit(1)\n\t}\n\ttfmBinFile := SelectTfmBin(verConstraints, tfmBins)\n\tmyDebug(\"Calling: %s\", tfmBinFile)\n\tif tfmBinFile == \"\" {\n\t\tfmt.Println(\"[ERROR] there is no file to execute\")\n\t\tos.Exit(1)\n\t}\n\tout, err := exec.Command(tfmBinFile, os.Args[1:]...).CombinedOutput()\n\tfmt.Println(string(out[:]))\n\tif err != nil {\n\t\tos.Exit(1)\n\t}\n}", "func (c *Compiler) Bytecode() *Bytecode {\n\treturn &Bytecode{\n\t\tInstructions: c.currentInstructions(),\n\t\tConstants: c.constants,\n\t\tTable: c.symbolTable,\n\t}\n}", "func ShaderBinary(count int32, shaders *uint32, binaryformat uint32, binary unsafe.Pointer, length int32) {\n\tsyscall.Syscall6(gpShaderBinary, 5, uintptr(count), uintptr(unsafe.Pointer(shaders)), uintptr(binaryformat), uintptr(binary), uintptr(length), 0)\n}", "func (c *Compiler) Bytecode() *Bytecode {\n\treturn &Bytecode{\n\t\tInstructions: c.currentInstructions(),\n\t\tConstants: c.constants,\n\t}\n}", "func (appConfig *AppConfiguration) Executable() string {\n\n\tkey := \"executable\"\n\n\tif appConfig.viper.IsSet(key) {\n\t\treturn appConfig.viper.GetString(key)\n\t}\n\n\treturn \"\"\n}", "func (chrome *Chrome) Binary() string {\n\tif \"\" == chrome.binary {\n\t\tchrome.binary = \"/usr/bin/google-chrome\"\n\t}\n\treturn chrome.binary\n}", "func (*ExecutableStagePayload) Descriptor() ([]byte, []int) {\n\treturn file_org_apache_beam_model_pipeline_v1_beam_runner_api_proto_rawDescGZIP(), []int{62}\n}", "func NewProgram(data []byte) *Program {\n\tp := new(Program)\n\tp.data = make([]byte, len(data))\n\tcopy(data, p.data)\n\tp.Pc = 0\n\treturn p\n}", "func (ip *Interpreter) Load(prog []byte) {\n\tcopy(ip.memory[memoryOffsetProgram:], prog)\n}", "func (c *Tool) Exec() ([]byte, error) {\n\treturn c.Run()\n}", "func SerializeCXProgram(prgrm *CXProgram, includeMemory bool) (b []byte) {\n\ts := SerializedCXProgram{}\n\tinitSerialization(prgrm, &s, includeMemory)\n\n\t// serialize cx program's packages,\n\t// structs, functions, etc.\n\tserializeCXProgramElements(prgrm, &s)\n\n\t// serialize cx program's program\n\tserializeProgram(prgrm, &s)\n\n\t// serializing everything\n\tb = encoder.Serialize(s)\n\n\treturn b\n}", "func (vm *vm) instrumentedExec(code *Code, env *frame) (*Object, error) {\n\tstack := make([]*Object, vm.stackSize) // stack\n\tsp := vm.stackSize // stack pointer\n\tops := code.ops // opcodes\n\tpc := 0 // program counter\n\tvar err error // error\n\tfor {\n\t\top := ops[pc]\n\t\tif op == opcodeCall { // CALL\n//\t\t\tprintln(\"call\")\n\t\t\tif trace {\n\t\t\t\tshowInstruction(pc, op, fmt.Sprintf(\"%d\", ops[pc+1]), stack, sp)\n\t\t\t}\n\t\t\targc := ops[pc+1]\n\t\t\tfun := stack[sp]\n\t\t\tif fun.primitive != nil {\n\t\t\t\tnextSp := sp + argc\n\t\t\t\tval, err := vm.callPrimitive(fun.primitive, stack[sp+1:nextSp+1])\n\t\t\t\tif err != nil {\n\t\t\t\t\tops, pc, sp, env, err = vm.catch(err, stack, env)\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\treturn nil, err\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tstack[nextSp] = val\n\t\t\t\t\tsp = nextSp\n\t\t\t\t\tpc += 2\n\t\t\t\t}\n\t\t\t} else if fun.Type == FunctionType {\n\t\t\t\tops, pc, sp, env, err = vm.funcall(fun, argc, ops, pc+2, stack, sp+1, env)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn nil, err\n\t\t\t\t}\n\t\t\t} else if fun.Type == KeywordType {\n\t\t\t\tpc, sp, err = vm.keywordCall(fun, argc, pc+2, stack, sp+1)\n\t\t\t\tif err != nil {\n\t\t\t\t\tops, pc, sp, env, err = vm.catch(err, stack, env)\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\treturn nil, err\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\terr := Error(ArgumentErrorKey, \"Not callable: \", fun)\n\t\t\t\tops, pc, sp, env, err = vm.catch(err, stack, env)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn nil, err\n\t\t\t\t}\n\t\t\t}\n\t\t} else if op == opcodeGlobal { // GObjectAL\n\t\t\tsym := constants[ops[pc+1]]\n\t\t\tif sym.car == nil {\n//\t\t\t\tfmt.Printf(\"runtime.go checkpoint opcodeGlobal: %v and %T\", sym.car)\n\t\t\t\terr := Error(ErrorKey, \"Undefined symbol: \", sym)\n\t\t\t\tops, pc, sp, env, err = vm.catch(err, stack, env)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn nil, err\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif trace {\n\t\t\t\t\tshowInstruction(pc, op, sym.text, stack, sp)\n\t\t\t\t}\n\t\t\t\tsp--\n\t\t\t\tstack[sp] = sym.car\n\t\t\t\tpc += 2\n\t\t\t}\n\t\t} else if op == opcodeLocal {\n\t\t\tif trace {\n\t\t\t\tshowInstruction(pc, op, fmt.Sprintf(\"%d, %d\", ops[pc+1], ops[pc+2]), stack, sp)\n\t\t\t}\n\t\t\ttmpEnv := env\n\t\t\ti := ops[pc+1]\n\t\t\tfor i > 0 {\n\t\t\t\ttmpEnv = tmpEnv.locals\n\t\t\t\ti--\n\t\t\t}\n\t\t\tj := ops[pc+2]\n\t\t\tval := tmpEnv.elements[j]\n//\t\t\tfmt.Printf(\"\\n\\n opcodeLocal runtime.go checkpoint val: %v and %T \\n\\n\", val, val)\n\t\t\tsp--\n\t\t\tstack[sp] = val\n\t\t\tpc += 3\n\t\t} else if op == opcodeJumpFalse {\n\t\t\tif trace {\n\t\t\t\tshowInstruction(pc, op, fmt.Sprintf(\"%d\", pc+ops[pc+1]), stack, sp)\n\t\t\t}\n\t\t\tb := stack[sp]\n\t\t\tsp++\n\t\t\tif b == False {\n\t\t\t\tpc += ops[pc+1]\n\t\t\t} else {\n\t\t\t\tpc += 2\n\t\t\t}\n\t\t} else if op == opcodePop {\n\t\t\tif trace {\n\t\t\t\tshowInstruction(pc, op, \"\", stack, sp)\n\t\t\t}\n\t\t\tsp++\n\t\t\tpc++\n\t\t} else if op == opcodeTailCall {\n\t\t\tif interrupted || checkInterrupt() {\n\t\t\t\treturn nil, addContext(env, Error(InterruptKey)) // not catchable\n\t\t\t}\n\t\t\tif trace {\n\t\t\t\tshowInstruction(pc, op, fmt.Sprintf(\"%d\", ops[pc+1]), stack, sp)\n\t\t\t}\n\t\t\tfun := stack[sp]\n\t\t\targc := ops[pc+1]\n\t\t\tif fun.primitive != nil {\n\t\t\t\tnextSp := sp + argc\n\t\t\t\tval, err := vm.callPrimitive(fun.primitive, stack[sp+1:nextSp+1])\n\t\t\t\tif err != nil {\n\t\t\t\t\tops, pc, sp, env, err = vm.catch(err, stack, env)\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\treturn nil, err\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tstack[nextSp] = val\n\t\t\t\t\tsp = nextSp\n\t\t\t\t\tops = env.ops\n\t\t\t\t\tpc = env.pc\n\t\t\t\t\tenv = env.previous\n\t\t\t\t\tif env == nil {\n\t\t\t\t\t\treturn stack[sp], nil\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if fun.Type == FunctionType {\n\t\t\t\tops, pc, sp, env, err = vm.tailcall(fun, argc, ops, stack, sp+1, env)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn nil, err\n\t\t\t\t}\n\t\t\t\tif env == nil {\n\t\t\t\t\treturn stack[sp], nil\n\t\t\t\t}\n\t\t\t} else if fun.Type == KeywordType {\n\t\t\t\tops, pc, sp, env, err = vm.keywordTailcall(fun, argc, ops, stack, sp+1, env)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn nil, err\n\t\t\t\t}\n\t\t\t\tif env.previous == nil {\n\t\t\t\t\treturn stack[sp], nil\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn nil, addContext(env, Error(ArgumentErrorKey, \"Not callable: \", fun))\n\t\t\t}\n\t\t} else if op == opcodeLiteral {\n\t\t\tif trace {\n\t\t\t\tshowInstruction(pc, op, Write(constants[ops[pc+1]].Type), stack, sp)\n\t\t\t}\n\t\t\tsp--\n\t\t\tstack[sp] = constants[ops[pc+1]]\n\t\t\tpc += 2\n\t\t} else if op == opcodeSetLocal {\n\t\t\tif trace {\n\t\t\t\tshowInstruction(pc, op, fmt.Sprintf(\"%d, %d\", ops[pc+1], ops[pc+2]), stack, sp)\n\t\t\t}\n\t\t\ttmpEnv := env\n\t\t\ti := ops[pc+1]\n\t\t\tfor i > 0 {\n\t\t\t\ttmpEnv = tmpEnv.locals\n\t\t\t\ti--\n\t\t\t}\n\t\t\tj := ops[pc+2]\n\t\t\ttmpEnv.elements[j] = stack[sp]\n\t\t\tpc += 3\n\t\t} else if op == opcodeClosure {\n\t\t\tif trace {\n\t\t\t\tshowInstruction(pc, op, \"\", stack, sp)\n\t\t\t}\n\t\t\tsp--\n\t\t\tstack[sp] = Closure(constants[ops[pc+1]].code, env)\n\t\t\tpc = pc + 2\n\t\t} else if op == opcodeReturn {\n\t\t\tif interrupted || checkInterrupt() {\n\t\t\t\treturn nil, addContext(env, Error(InterruptKey)) // not catchable\n\t\t\t}\n\t\t\tif trace {\n\t\t\t\tshowInstruction(pc, op, \"\", stack, sp)\n\t\t\t}\n\t\t\tif env.previous == nil {\n\t\t\t\treturn stack[sp], nil\n\t\t\t}\n\t\t\tops = env.ops\n\t\t\tpc = env.pc\n\t\t\tenv = env.previous\n\t\t} else if op == opcodeJump {\n\t\t\tif trace {\n\t\t\t\tshowInstruction(pc, op, fmt.Sprintf(\"%d\", pc+ops[pc+1]), stack, sp)\n\t\t\t}\n\t\t\tpc += ops[pc+1]\n\t\t} else if op == opcodeDefGlobal {\n\t\t\tsym := constants[ops[pc+1]]\n\t\t\tif trace {\n\t\t\t\tshowInstruction(pc, op, sym.text, stack, sp)\n\t\t\t}\n\t\t\tdefGlobal(sym, stack[sp])\n\t\t\tpc += 2\n\t\t} else if op == opcodeUndefGlobal {\n\t\t\tsym := constants[ops[pc+1]]\n\t\t\tif trace {\n\t\t\t\tshowInstruction(pc, op, sym.text, stack, sp)\n\t\t\t}\n\t\t\tundefGlobal(sym)\n\t\t\tpc += 2\n\t\t} else if op == opcodeDefMacro {\n\t\t\tsym := constants[ops[pc+1]]\n\t\t\tif trace {\n\t\t\t\tshowInstruction(pc, op, sym.text, stack, sp)\n\t\t\t}\n\t\t\tdefMacro(sym, stack[sp])\n\t\t\tstack[sp] = sym\n\t\t\tpc += 2\n\t\t} else if op == opcodeImport {\n\t\t\tsym := constants[ops[pc+1]]\n\t\t\tif trace {\n\t\t\t\tshowInstruction(pc, op, sym.text, stack, sp)\n\t\t\t}\n\t\t\terr := Import(sym)\n\t\t\tif err != nil {\n\t\t\t\tops, pc, sp, env, err = vm.catch(err, stack, env)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn nil, err\n\t\t\t\t}\n\t\t\t}\n\t\t\tsp--\n\t\t\tstack[sp] = sym\n\t\t\tpc += 2\n\t\t} else if op == opcodeVector {\n\t\t\tif trace {\n\t\t\t\tshowInstruction(pc, op, fmt.Sprintf(\"%d\", ops[pc+1]), stack, sp)\n\t\t\t}\n\t\t\tvlen := ops[pc+1]\n\t\t\tv := Vector(stack[sp : sp+vlen]...)\n\t\t\tsp = sp + vlen - 1\n\t\t\tstack[sp] = v\n\t\t\tpc += 2\n\t\t} else if op == opcodeStruct {\n\t\t\tif trace {\n\t\t\t\tshowInstruction(pc, op, fmt.Sprintf(\"%d\", ops[pc+1]), stack, sp)\n\t\t\t}\n\t\t\tvlen := ops[pc+1]\n\t\t\tv, _ := Struct(stack[sp : sp+vlen])\n\t\t\tsp = sp + vlen - 1\n\t\t\tstack[sp] = v\n\t\t\tpc += 2\n\t\t} else {\n\t\t\tpanic(\"Bad instruction\")\n\t\t}\n\t}\n}", "func (s *service) getExecutable(w http.ResponseWriter, r *http.Request, p httprouter.Params) {\n\tf, err := s.store.Executable(p.ByName(\"hash\"))\n\tif err != nil {\n\t\twriteError(w, http.StatusInternalServerError, err)\n\t\treturn\n\t}\n\tdefer f.Close()\n\n\t// We ignore the error here, because the zero-value is fine in case of\n\t// error.\n\tinfo, _ := f.Stat()\n\thttp.ServeContent(w, r, info.Name(), info.ModTime(), f)\n}", "func ExecProgram(file string) {\n\tctx := exec.NewContext()\n\tscope := exec.NewRootScope()\n\tin, errF := lex.NewFileStream(file)\n\tif errF != nil {\n\t\tfmt.Println(errF.Display())\n\t\treturn\n\t}\n\n\tresult := ctx.ExecuteCode(in, scope)\n\t// when exec program, unlike REPL, it's not necessary to print last executed value\n\tif result.HasError {\n\t\tfmt.Println(result.Error.Display())\n\t}\n}", "func buildCommandLine(ctx *gcp.Context) (string, error) {\n\tjar, err := java.ExecutableJar(ctx)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"finding executable jar: %w\", err)\n\t}\n\n\ttempImagePath := filepath.Join(ctx.TempDir(\"native-image\"), \"native-app\")\n\n\t// This may generate extra files (*.o and *.build_artifacts.txt)\n\t// alongside the binary in the temp layer.\n\tcommand := []string{\n\t\t\"native-image\",\n\t\t\"--no-fallback\", \"--no-server\",\n\t\t\"-H:+StaticExecutableWithDynamicLibC\",\n\t\t\"-jar\", jar,\n\t\ttempImagePath,\n\t}\n\n\tctx.Exec(command, gcp.WithUserAttribution)\n\n\tnativeLayer := ctx.Layer(\"native-image\", gcp.LaunchLayer)\n\tfinalImage := filepath.Join(nativeLayer.Path, \"bin\", \"native-app\")\n\n\tctx.MkdirAll(path.Dir(finalImage), 0755)\n\tctx.Rename(tempImagePath, finalImage)\n\n\treturn finalImage, nil\n}", "func binaryDemo() {\n\tbin := []byte(\"jackson\")\n\tfmt.Println(bin)\n\n\tstr := string(bin)\n\tfmt.Println(str)\n}", "func (*ScriptOutput) Descriptor() ([]byte, []int) {\n\treturn file_sandbox_proto_rawDescGZIP(), []int{1}\n}", "func main() {\n\tvar dir string\n\tvar b *bytes.Buffer\n\n\tdir, err := os.Getwd()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tb = &bytes.Buffer{}\n\tCodegen(dir, b, \"./local/generated.go\")\n}", "func getFullFilePath(objectDir string, extension string) string {\n\tprecompiledObjectName := filepath.Base(objectDir) //the base of the object's directory matches the name of the file\n\tfileName := strings.Join([]string{precompiledObjectName, extension}, \".\")\n\tfilePath := filepath.Join(objectDir, fileName)\n\treturn filePath\n}", "func (s DescribeProgramOutput) String() string {\n\treturn awsutil.Prettify(s)\n}", "func (r *Eval) Run(ctx context.Context, script []byte) (Object, *Bytecode, error) {\n\tbytecode, err := Compile(script, r.Opts)\n\tif err != nil {\n\t\treturn nil, nil, err\n\t}\n\n\tbytecode.Main.NumParams = bytecode.Main.NumLocals\n\tr.Opts.Constants = bytecode.Constants\n\tr.fixOpPop(bytecode)\n\tr.VM.SetBytecode(bytecode)\n\n\tif ctx == nil {\n\t\tctx = context.Background()\n\t}\n\n\tr.VM.modulesCache = r.ModulesCache\n\tret, err := r.run(ctx)\n\tr.ModulesCache = r.VM.modulesCache\n\tr.Locals = r.VM.GetLocals(r.Locals)\n\tr.VM.Clear()\n\n\tif err != nil {\n\t\treturn nil, bytecode, err\n\t}\n\treturn ret, bytecode, nil\n}", "func main() {\n\t\tif len(os.Args) < 2 {\n\t\t\tfmt.Println(\"Please select a shellcode file. (E.g.: hideit beacon.bin)\")\n\t\t\treturn\n\t\t}\n\t\tfilename := os.Args[1]\n\t\tpayload, err := ioutil.ReadFile(filename)\n\t\tif err != nil {\n\t\t\tfmt.Println(err)\n\t\t}\n\n\t\tencode := b64.StdEncoding.EncodeToString(payload)\n\t\thexencode := hex.EncodeToString([]byte(encode))\n\t\tciphertext := useful.Encrypt([]byte(hexencode), \"D00mfist\")\n\t\thexcipher := hex.EncodeToString(ciphertext)\n\n\t\tf, err := os.Create(\"shelly.go\")\n\t\tif err != nil {\n\t\t\tfmt.Println(err)\n\t\t\treturn\n\t\t}\n\t\tdefer f.Close()\n\t\ta, err := os.OpenFile(\"shelly.go\", os.O_WRONLY|os.O_APPEND, 0644)\n\t\ta.WriteString(\"package shelly\\n\" + \"var Sc =\" + strconv.Quote(hexcipher))\n\t\tif err != nil {\n\t\t\tfmt.Println(err)\n\t\t\treturn\n\t\t}\n\t\tuseful.MoveFile(\"shelly.go\", \"../../pkg/shelly/shelly.go\")\n\n\t\tfmt.Println(\"Encrypted Shellcode Written to shelly.go. It should be already placed at Go4aRun\\\\pkg\\\\shelly\\\\shelly.go \\nIf not then manually place there before building Go4it\")\n\n}", "func (c Chain) Program() (Program, error) {\n\t// Sanity checks.\n\tif len(c) == 0 {\n\t\treturn nil, errors.New(\"chain empty\")\n\t}\n\n\tif c[0].Cmp(big.NewInt(1)) != 0 {\n\t\treturn nil, errors.New(\"chain must start with 1\")\n\t}\n\n\tif bigints.Contains(bigint.Zero(), c) {\n\t\treturn nil, errors.New(\"chain contains zero\")\n\t}\n\n\tfor i := 0; i < len(c); i++ {\n\t\tfor j := i + 1; j < len(c); j++ {\n\t\t\tif bigint.Equal(c[i], c[j]) {\n\t\t\t\treturn nil, fmt.Errorf(\"chain contains duplicate: %v at positions %d and %d\", c[i], i, j)\n\t\t\t}\n\t\t}\n\t}\n\n\t// Produce the program.\n\tp := Program{}\n\tfor k := 1; k < len(c); k++ {\n\t\top, err := c.Op(k)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tp = append(p, op)\n\t}\n\n\treturn p, nil\n}", "func (builder *GoBuider) Executable() string {\n\toutputPath := filepath.Join(\n\t\tbuilder.OutputFolderPath, builder.BuildFileName)\n\tif runtime.GOOS == \"windows\" {\n\t\toutputPath += \".exe\"\n\t}\n\treturn outputPath\n}", "func main() {\n\tfmt.Println(\"Generate\")\n\n\tp := B\n\tfmt.Println(p.String())\n}", "func (vm FstVM) String() string {\n\tret := \"\"\n\tfor pc, end := 0, len(vm.prog); pc < end; {\n\t\tp := pc\n\t\top := instOp(vm.prog[pc] & instMask)\n\t\tsz := int(vm.prog[pc] & valMask)\n\t\tpc++\n\t\tif op == instAccept {\n\t\t\tif sz == 0 {\n\t\t\t\tret += fmt.Sprintf(\"%3d %v\\n\", p, op)\n\t\t\t} else {\n\t\t\t\ts := toInt(vm.prog[pc : pc+sz])\n\t\t\t\tpc += sz\n\t\t\t\tsz = int(vm.prog[pc])\n\t\t\t\tpc++\n\t\t\t\te := toInt(vm.prog[pc : pc+sz])\n\t\t\t\tvar tails []string\n\t\t\t\tfor i := s; i < e; i++ {\n\t\t\t\t\th := i\n\t\t\t\t\tfor vm.data[i] != 0 {\n\t\t\t\t\t\ti++\n\t\t\t\t\t}\n\t\t\t\t\ttails = append(tails, vm.data[h:i])\n\t\t\t\t}\n\t\t\t\tret += fmt.Sprintf(\"%3d %v %v\\n\", p, op, tails)\n\t\t\t\tfor j := p + 1; j <= pc; j++ {\n\t\t\t\t\tret += fmt.Sprintf(\"%3d [TIL addr=%d:%d]\\n\", j, s, e)\n\t\t\t\t}\n\t\t\t\tpc += sz\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\t\tinp := vm.prog[pc]\n\t\tpc++\n\t\tbuf := vm.prog[pc : pc+sz]\n\t\tv := toInt(buf)\n\t\tret += fmt.Sprintf(\"%3d %v %X %d (sz:%d)\\n\", p, op, inp, v, sz)\n\t\tfor j := p + 1; j < pc+sz; j++ {\n\t\t\tret += fmt.Sprintf(\"%3d [%v %X %d]\\n\", j, op, inp, v)\n\t\t}\n\t\tpc += sz\n\t\tif op == instOutput || op == instOutputBreak {\n\t\t\tp := pc\n\t\t\tsz := int(vm.prog[pc])\n\t\t\tpc++\n\t\t\tbuf := vm.prog[pc : pc+sz]\n\t\t\tv := toInt(buf)\n\t\t\tpc += sz\n\t\t\tfor j := p; j < pc; j++ {\n\t\t\t\tret += fmt.Sprintf(\"%3d [OUT addr=%d]\\n\", j, v)\n\t\t\t}\n\n\t\t}\n\t}\n\treturn ret\n}", "func Run(input, executableName string) {\n\tcode := generator.Generate(input)\n\twriteCode(code)\n\n\t// Generate the executable using gcc\n\tcmd := exec.Command(\"gcc\", \"main.c\", \"-L.\", \"-lpaco\", \"-o\", executableName)\n\tcmd.Dir = \"core\"\n\tif err := cmd.Run(); err != nil {\n\t\tlog.Fatalf(\"Run() failed with %s\\n\", err)\n\t}\n\n\t// Moves the executable and deletes the source file\n\tmovesExecutable(executableName)\n\tdeleteFile(\"main.c\")\n}", "func GoBinCommandText(w io.Writer, cmdName string, arguments ...string) {\n\tcmd := exec.Command(cmdName, arguments...) // nolint: gosec\n\tcmd.Stdin = os.Stdin\n\tcmd.Stdout = w\n\tcmd.Stderr = os.Stderr\n\terr := cmd.Run()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n}", "func executableLocation(updateDirectory string, binary string) string {\n\tswitch runtime.GOOS {\n\tcase \"darwin\":\n\t\tswitch binary {\n\t\tcase \"launcher\":\n\t\t\treturn filepath.Join(updateDirectory, \"Kolide.app\", \"Contents\", \"MacOS\", binary)\n\t\tcase \"osqueryd\":\n\t\t\treturn filepath.Join(updateDirectory, binary)\n\t\tdefault:\n\t\t\treturn \"\"\n\t\t}\n\tcase \"windows\":\n\t\treturn filepath.Join(updateDirectory, fmt.Sprintf(\"%s.exe\", binary))\n\tcase \"linux\":\n\t\treturn filepath.Join(updateDirectory, binary)\n\tdefault:\n\t\treturn filepath.Join(updateDirectory, binary)\n\t}\n}" ]
[ "0.58753484", "0.5743218", "0.5723123", "0.5689298", "0.5603382", "0.55278224", "0.5483564", "0.5412284", "0.54051167", "0.54045653", "0.5392839", "0.5382993", "0.5311779", "0.5280285", "0.5218291", "0.52023333", "0.51829815", "0.5178313", "0.5163336", "0.5163336", "0.516333", "0.51263565", "0.5115247", "0.5088144", "0.5070952", "0.5059621", "0.5058051", "0.5050838", "0.50464416", "0.50436187", "0.503359", "0.50265574", "0.5015395", "0.50139654", "0.50139654", "0.49930984", "0.49857792", "0.49807313", "0.49773693", "0.49735376", "0.49670696", "0.49417093", "0.4923854", "0.49236697", "0.4916233", "0.49040094", "0.4888667", "0.48821038", "0.4880309", "0.48722154", "0.486074", "0.48371705", "0.48354268", "0.4828309", "0.4820575", "0.48197702", "0.4819584", "0.4817264", "0.4803486", "0.47992417", "0.47979948", "0.47966674", "0.4795761", "0.4770087", "0.4767532", "0.47667855", "0.4764021", "0.47631517", "0.47593498", "0.47520605", "0.47507873", "0.47489795", "0.47378808", "0.4727121", "0.4723273", "0.4715861", "0.4711483", "0.47075546", "0.4693284", "0.46914127", "0.46852237", "0.46678334", "0.46661347", "0.46601138", "0.46501994", "0.4644792", "0.46376616", "0.4632615", "0.46286705", "0.4623535", "0.46205616", "0.46142575", "0.4611195", "0.4608096", "0.4605118", "0.46044934", "0.4603433", "0.45958856", "0.45949647" ]
0.53635967
13
Returns the information log for a program object
func GetProgramInfoLog(program uint32, bufSize int32, length *int32, infoLog *uint8) { C.glowGetProgramInfoLog(gpGetProgramInfoLog, (C.GLuint)(program), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetProgramInfoLog(p Program) string {\n\tvar logLength int32\n\tgl.GetProgramiv(p.Value, gl.INFO_LOG_LENGTH, &logLength)\n\tif logLength == 0 {\n\t\treturn \"\"\n\t}\n\n\tlogBuffer := make([]uint8, logLength)\n\tgl.GetProgramInfoLog(p.Value, logLength, nil, &logBuffer[0])\n\treturn gl.GoStr(&logBuffer[0])\n}", "func GetProgramInfoLog(program uint32, bufSize int32, length *int32, infoLog *int8) {\n C.glowGetProgramInfoLog(gpGetProgramInfoLog, (C.GLuint)(program), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func (program Program) GetInfoLog() string {\n\tvar bufSize int32\n\tgl.GetProgramiv(uint32(program), gl.INFO_LOG_LENGTH, &bufSize)\n\tinfoLog := strings.Repeat(\"\\x00\", int(bufSize+1))\n\tgl.GetProgramInfoLog(uint32(program), bufSize, nil, gl.Str(infoLog))\n\treturn infoLog\n}", "func GetProgramInfoLog(program uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tsyscall.Syscall6(gpGetProgramInfoLog, 4, uintptr(program), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(infoLog)), 0, 0)\n}", "func (debugging *debuggingOpenGL) GetProgramInfoLog(program uint32) string {\n\tdebugging.recordEntry(\"GetProgramInfoLog\", program)\n\tresult := debugging.gl.GetProgramInfoLog(program)\n\tdebugging.recordExit(\"GetProgramInfoLog\", result)\n\treturn result\n}", "func GetProgramInfoLog(program Uint, bufSize Sizei, length *Sizei, infoLog []byte) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcbufSize, _ := (C.GLsizei)(bufSize), cgoAllocsUnknown\n\tclength, _ := (*C.GLsizei)(unsafe.Pointer(length)), cgoAllocsUnknown\n\tcinfoLog, _ := (*C.GLchar)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&infoLog)).Data)), cgoAllocsUnknown\n\tC.glGetProgramInfoLog(cprogram, cbufSize, clength, cinfoLog)\n}", "func (native *OpenGL) GetProgramInfoLog(program uint32) string {\n\tlogLength := native.GetProgramParameter(program, gl.INFO_LOG_LENGTH)\n\tlog := strings.Repeat(\"\\x00\", int(logLength+1))\n\tgl.GetProgramInfoLog(program, logLength, nil, gl.Str(log))\n\treturn log\n}", "func (gl *WebGL) GetProgramInfoLog(shaderProgram WebGLShaderProgram) string {\n\treturn gl.context.Call(\"getProgramInfoLog\", shaderProgram).String()\n}", "func GetProgramPipelineInfoLog(pipeline uint32, bufSize int32, length *int32, infoLog *int8) {\n C.glowGetProgramPipelineInfoLog(gpGetProgramPipelineInfoLog, (C.GLuint)(pipeline), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func GetProgramPipelineInfoLog(pipeline uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tsyscall.Syscall6(gpGetProgramPipelineInfoLog, 4, uintptr(pipeline), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(infoLog)), 0, 0)\n}", "func (native *OpenGL) GLGetProgramInfoLog(program uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tgl.GetProgramInfoLog(program, bufSize, length, infoLog)\n}", "func GetProgramPipelineInfoLog(pipeline uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tC.glowGetProgramPipelineInfoLog(gpGetProgramPipelineInfoLog, (C.GLuint)(pipeline), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func GetProgramPipelineInfoLog(pipeline uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tC.glowGetProgramPipelineInfoLog(gpGetProgramPipelineInfoLog, (C.GLuint)(pipeline), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func Info() string {\n\treturn fmt.Sprintf(\"%s %s git commit %s go version %s build date %s\", Application, Version, Revision, GoVersion, BuildRFC3339)\n}", "func showApplicationInfo(app, ver, gitRev string) {\n\tfmtutil.Separator(false, \"APPLICATION INFO\")\n\n\tprintInfo(7, \"Name\", app)\n\tprintInfo(7, \"Version\", ver)\n\n\tprintInfo(7, \"Go\", fmtc.Sprintf(\n\t\t\"%s {s}(%s/%s){!}\",\n\t\tstrings.TrimLeft(runtime.Version(), \"go\"),\n\t\truntime.GOOS, runtime.GOARCH,\n\t))\n\n\tif gitRev != \"\" {\n\t\tif !fmtc.DisableColors && fmtc.IsTrueColorSupported() {\n\t\t\tprintInfo(7, \"Git SHA\", gitRev+getHashColorBullet(gitRev))\n\t\t} else {\n\t\t\tprintInfo(7, \"Git SHA\", gitRev)\n\t\t}\n\t}\n\n\tbin, _ := os.Executable()\n\tbinSHA := hash.FileHash(bin)\n\n\tif binSHA != \"\" {\n\t\tbinSHA = strutil.Head(binSHA, 7)\n\t\tif !fmtc.DisableColors && fmtc.IsTrueColorSupported() {\n\t\t\tprintInfo(7, \"Bin SHA\", binSHA+getHashColorBullet(binSHA))\n\t\t} else {\n\t\t\tprintInfo(7, \"Bin SHA\", binSHA)\n\t\t}\n\t}\n}", "func LogInfo(context string, module string, info string) {\n log.Info().\n Str(\"Context\", context).\n Str(\"Module\", module).\n Msg(info)\n}", "func LogRawInfo(app string) {\n\tlog.Infof(\"Welcome to %s.\", app)\n\tlog.Infof(\"Release Version: %s\", Version)\n\tlog.Infof(\"Git Commit Hash: %s\", GitHash)\n\tlog.Infof(\"Git Branch: %s\", GitBranch)\n\tlog.Infof(\"UTC Build Time: %s\", BuildTS)\n}", "func Info(msg string) {\n log.Info(msg)\n}", "func getEventLogInfo(parsedEventLogEntry types.TpmEvent) types.EventLog {\n\n\tlog.Trace(\"vmware_host_connector:getEventLogInfo() Entering\")\n\tdefer log.Trace(\"vmware_host_connector:getEventLogInfo() Leaving\")\n\teventLog := types.EventLog{Measurement: intArrayToHexString(parsedEventLogEntry.EventDetails.DataHash)}\n\n\tif parsedEventLogEntry.EventDetails.VibName != nil {\n\t\teventLog.TypeID = VIB_NAME_TYPE_ID\n\t\teventLog.TypeName = *parsedEventLogEntry.EventDetails.ComponentName\n\t\teventLog.Tags = append(eventLog.Tags, COMPONENT_PREFIX+*parsedEventLogEntry.EventDetails.ComponentName)\n\t\tif *parsedEventLogEntry.EventDetails.VibName != \"\" {\n\t\t\teventLog.Tags = append(eventLog.Tags, VIM_API_PREFIX+TPM_SOFTWARE_COMPONENT_EVENT_TYPE+DETAILS_SUFFIX+\"_\"+*parsedEventLogEntry.EventDetails.VibName+\"_\"+*parsedEventLogEntry.EventDetails.VibVendor)\n\t\t} else {\n\t\t\teventLog.Tags = append(eventLog.Tags, VIM_API_PREFIX+TPM_SOFTWARE_COMPONENT_EVENT_TYPE+DETAILS_SUFFIX)\n\t\t}\n\t} else if parsedEventLogEntry.EventDetails.CommandLine != nil {\n\t\teventLog.TypeID = COMMANDLINE_TYPE_ID\n\t\tuuid := getBootUUIDFromCL(*parsedEventLogEntry.EventDetails.CommandLine)\n\t\tif uuid != \"\" {\n\t\t\teventLog.Tags = append(eventLog.Tags, COMMANDLINE_PREFIX)\n\t\t} else {\n\t\t\teventLog.Tags = append(eventLog.Tags, COMMANDLINE_PREFIX+*parsedEventLogEntry.EventDetails.CommandLine)\n\t\t}\n\t\teventLog.TypeName = *parsedEventLogEntry.EventDetails.CommandLine\n\t\teventLog.Tags = append(eventLog.Tags, VIM_API_PREFIX+TPM_COMMAND_EVENT_TYPE+DETAILS_SUFFIX)\n\n\t} else if parsedEventLogEntry.EventDetails.OptionsFileName != nil {\n\t\teventLog.TypeID = OPTIONS_FILE_NAME_TYPE_ID\n\t\teventLog.TypeName = *parsedEventLogEntry.EventDetails.OptionsFileName\n\t\teventLog.Tags = append(eventLog.Tags, BOOT_OPTIONS_PREFIX+*parsedEventLogEntry.EventDetails.OptionsFileName)\n\t\teventLog.Tags = append(eventLog.Tags, VIM_API_PREFIX+TPM_OPTION_EVENT_TYPE+DETAILS_SUFFIX)\n\n\t} else if parsedEventLogEntry.EventDetails.BootSecurityOption != nil {\n\t\teventLog.TypeID = BOOT_SECURITY_OPTION_TYPE_ID\n\t\teventLog.TypeName = *parsedEventLogEntry.EventDetails.BootSecurityOption\n\t\teventLog.Tags = append(eventLog.Tags, BOOT_SECURITY_OPTIONS_PREFIX+*parsedEventLogEntry.EventDetails.BootSecurityOption)\n\t\teventLog.Tags = append(eventLog.Tags, VIM_API_PREFIX+TPM_BOOT_SECURITY_OPTION_EVENT_TYPE+DETAILS_SUFFIX)\n\t} else {\n\t\tlog.Warn(\"Unrecognized event in module event log\")\n\t}\n\n\treturn eventLog\n}", "func Info() [][2]string {\n\treturn runtimeInfoVar\n}", "func Info() string {\n\treturn fmt.Sprintf(\"(version=%s, branch=%s, revision=%s)\", version, branch, revision)\n}", "func (g *Gameboi) GetProgram() []string {\n\tout := make([]string, len(g.program))\n\tfor i, line := range g.program {\n\t\tout[i] = fmt.Sprintf(\"%d: %#v\", i, line)\n\t}\n\n\treturn out\n}", "func Info(args ...interface{}) {\n LoggerOf(default_id).Info(args...)\n}", "func (e Employee) info() {\n\tfmt.Printf(\"name: %v\\nID: %v\\n\", e.name, e.id)\n}", "func (o Options) info() string {\n\tmsg := fmt.Sprintf(\"pipelineName=%v, runID=%v\", o.PipelineName, o.RunID)\n\tif o.Task.GetTaskInfo().GetName() != \"\" {\n\t\tmsg = msg + fmt.Sprintf(\", task=%q\", o.Task.GetTaskInfo().GetName())\n\t}\n\tif o.Task.GetComponentRef().GetName() != \"\" {\n\t\tmsg = msg + fmt.Sprintf(\", component=%q\", o.Task.GetComponentRef().GetName())\n\t}\n\tif o.DAGExecutionID != 0 {\n\t\tmsg = msg + fmt.Sprintf(\", dagExecutionID=%v\", o.DAGExecutionID)\n\t}\n\tif o.IterationIndex >= 0 {\n\t\tmsg = msg + fmt.Sprintf(\", iterationIndex=%v\", o.IterationIndex)\n\t}\n\tif o.RuntimeConfig != nil {\n\t\tmsg = msg + \", runtimeConfig\" // this only means runtimeConfig is not empty\n\t}\n\tif o.Component.GetImplementation() != nil {\n\t\tmsg = msg + \", componentSpec\" // this only means componentSpec is not empty\n\t}\n\treturn msg\n}", "func (m *Application) GetInfo()(InformationalUrlable) {\n return m.info\n}", "func Info(l interface{}) {\n\tlog.WithFields(log.Fields{\n\t\t\"SERVICE\": \"WINGO\",\n\t}).Infoln(l)\n}", "func (p Plane) GetProgramInfo() (ProgramInfo, error) {\n\tif (p.programInfo != ProgramInfo{}) {\n\t\treturn p.programInfo, nil\n\t}\n\treturn ProgramInfo{}, errors.New(\"No program info\")\n}", "func ExampleInfo() {\n\tsetup()\n\tlog.Info().Msg(\"hello world\")\n\n\t// Output: {\"level\":\"info\",\"time\":1199811905,\"message\":\"hello world\"}\n}", "func infoLog(v ...interface{}) {\n\t// if source info is enabled, prepend the log data with source information\n\tif enableSourceInfo {\n\t\tv = append([]interface{}{getSourceInfo(), s}, v...)\n\t}\n\n\tlog.Print(v...)\n}", "func (*ApplicationInfo) Descriptor() ([]byte, []int) {\n\treturn file_proto_v1_squzy_application_monitoring_proto_rawDescGZIP(), []int{4}\n}", "func logInfo() {\n\tlogFile := path.Join(configFolder, logFileName)\n\tfile, err := os.OpenFile(logFile, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0600)\n\tif err != nil {\n\t\tfmt.Printf(\"Failed to open log file %s. Error was: %s\\n\", logFile, err)\n\t\treturn\n\t}\n\tdefer file.Close()\n\n\tdata := fmt.Sprintf(\"Date: [%s], Domain: [%s], Special Characters: [%v], AdditionalInfo: [%s]\\n\", time.Now().Format(time.RFC3339), domain, addSpecialChars, additionalInfo)\n\t_, err = file.WriteString(data)\n\n\tif err != nil {\n\t\tfmt.Printf(\"Failed to write to log file %s. Error was: %s\\n\", logFile, err)\n\t\treturn\n\t}\n\n\tfmt.Printf(\"Useful information about the password successfully stored to %s\\n\", logFile)\n}", "func (shader Shader) GetInfoLog() string {\n\tvar bufSize int32\n\tgl.GetShaderiv(uint32(shader), gl.INFO_LOG_LENGTH, &bufSize)\n\tinfoLog := strings.Repeat(\"\\x00\", int(bufSize+1))\n\tgl.GetShaderInfoLog(uint32(shader), bufSize, nil, gl.Str(infoLog))\n\treturn infoLog\n}", "func (t *Task) Info() string {\n\treturn t.info\n}", "func InfoLogWithDetails(args ...interface{}) {\n\tlogrus.Infoln(args, getProgDetails())\n}", "func infoLog(msg ...interface{}) {\n\tlogLocker.Lock()\n\tdefer logLocker.Unlock()\n\tif *confVerbose {\n\t\tcolor.Cyan(fmt.Sprint(time.Now().Format(\"02_01_06-15.04.05\"), \"[INFOR] ->\", msg))\n\t}\n}", "func (d *Descriptor) Log() *log.Entry {\n\treturn d.log\n}", "func GetInfo() string {\n\treturn fmt.Sprintf(\"version: %s, commit: %s\", Version, GitCommit)\n}", "func info() string {\n\tgoVersion := runtime.Version()\n\ttstamp := time.Now()\n\treturn fmt.Sprintf(\"Build: git={{VERSION}} go=%s date=%s\", goVersion, tstamp)\n}", "func GetInformation(ctx *routing.Context) error {\n\t// var path string = \"/Users/Calvincs/Duplicati/inodexia/testing.dat\"\n\t// data := database.ReadFromWAL(path)\n\n\tfmt.Fprintf(ctx, \"stuff %s\", ctx.Path())\n\treturn nil\n}", "func (debugging *debuggingOpenGL) GetShaderInfoLog(shader uint32) string {\n\tdebugging.recordEntry(\"GetShaderInfoLog\", shader)\n\tresult := debugging.gl.GetShaderInfoLog(shader)\n\tdebugging.recordExit(\"GetShaderInfoLog\", result)\n\treturn result\n}", "func (_LvRecording *LvRecordingTransactor) LogProgramId(opts *bind.TransactOpts, programId string, programStart *big.Int, programEnd *big.Int, programTitle string, signature [][1]byte) (*types.Transaction, error) {\n\treturn _LvRecording.contract.Transact(opts, \"logProgramId\", programId, programStart, programEnd, programTitle, signature)\n}", "func (l *LogItem) Info() string {\n\treturn fmt.Sprintf(\"%q::%q\", l.Pod, l.Container)\n}", "func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tsyscall.Syscall6(gpGetShaderInfoLog, 4, uintptr(shader), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(infoLog)), 0, 0)\n}", "func (nl *NullLogger) LogInfo(m ...interface{}) {\n}", "func (p Person) info() string {\n\treturn \"the person's info is \" + p.name\n}", "func doLog(ctx context.Context) {\n\t_, file, line, _ := runtime.Caller(0)\n\tlogPos.File, logPos.Line = file, line+2\n\tdlog.Infof(ctx, \"grep for this\")\n}", "func (s *scribe) I() Logger { return s.L(Info) }", "func (m *mLog) Info() Entry {\n\te := mEntry{make([]Entry, len(m.ls))}\n\tfor i := range m.ls {\n\t\te.es[i] = m.ls[i].Info()\n\t}\n\treturn &e\n}", "func (gl *WebGL) GetShaderInfoLog(shader WebGLShader) string {\n\treturn gl.context.Call(\"getShaderInfoLog\", shader).String()\n}", "func printUsage() {\n\tmessage := `\napt_json_extractor: Extracts the latest JSON record for the item\nidentified by param identifier from the JSON log and prints it to\nstdout. You'll normally want to pipe the output to a file, since\nit can be large. JSON log data is always at least current with, and\noften ahead of data in WorkItemState.State. For some items where\nprocessing has stalled or failed, you may want to overwrite\nWorkItemState.state with the JSON data from the logs, and then\nrestart processing.\n\nUsage: apt_json_extractor -log=<path to JSON log file> -identifier=<identifier>\n\nParam pathToLogFile should be an absolute path to a JSON log file,\nsuch as /mnt/efs/apt/logs/apt_recorder.json.\n\nParam identifier is the identifier that can locate the record. This\nvaries according to the log you're searching. Log files and their\ncorresponding identifiers are as follows:\n\napt_restore.json -> IntellectualObject.Identifier\ne.g. virginia.edu/bag_o_goodies\n\napt_fetch.json, apt_store.json, apt_record.json -> S3 bucket and key\ne.g. aptrust.receiving.virginia.edu/bag_o_goodies.tar\n\n`\n\tfmt.Println(message)\n}", "func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *int8) {\n C.glowGetShaderInfoLog(gpGetShaderInfoLog, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func (c Client) GetProgramInfo(programIDs []string) ([]ProgramInfo, error) {\n\turl := fmt.Sprint(DefaultBaseURL, APIVersion, \"/programs\")\n\tfmt.Println(\"URL:>\", url)\n\n\t// buffer to store the json request\n\tvar buffer bytes.Buffer\n\n\t// creating the request\n\tbuffer.WriteString(\"[\")\n\tfor index, program := range programIDs {\n\t\t//fmt.Println(program) //debug\n\t\tif(program != \"\") {\n\t\tbuffer.WriteString(`\"`)\n\t\tbuffer.WriteString(program)\n\t\tbuffer.WriteString(`\"`)\n\t\tif index != len(programIDs)-1 {\n\t\t\tbuffer.WriteString(\",\")\n\t\t}\n\t\t}\n\t}\n\tbuffer.WriteString(\"]\")\n\n\t// setup the request\n\treq, err := http.NewRequest(\"POST\", url, &buffer)\n\t//req.Header.Set(\"Content-Type\", \"application/json\")\n\treq.Header.Set(\"Accept-Encoding\", \"deflate,gzip\")\n\treq.Header.Set(\"token\", c.Token)\n\n\tclient := &http.Client{}\n\tresp, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t\treturn nil, err\n\t}\n\tif resp.StatusCode != http.StatusOK {\n\t\tlog.Fatal(resp.Status)\n\t\treturn nil, err\n\t}\n\tdefer resp.Body.Close() //resp.Body.Close() will run when we're finished.\n\n\t// Copy the body to Stdout\n\t//_, err = io.Copy(os.Stdout, resp.Body)\n // debug code\t\n //body, _ := ioutil.ReadAll(resp.Body)\n\t //fmt.Println(string(body))\n\n\t// create the programs slice\n\tvar allPrograms []ProgramInfo\n\n \n\t// // decode the body\n\t// err = json.NewDecoder(resp.Body).Decode(&allPrograms)\n\t// if err != nil {\n\t// \tfmt.Println(\"Error parsing programs response\")\n\t// \tlog.Fatal(err)\n\t// \treturn nil, err\n\t// }\n\n\t//readbuffer := bytes.NewBuffer(resp.Body)\n\treader := bufio.NewReader(resp.Body)\n\n\t// we need to increase the default reader size to get this in one shot\n\tbufio.NewReaderSize(reader, 65536)\n\t// there are a few possible loop termination\n\t// conditions, so just start with an infinite loop.\n\tfor {\n\t\t// ReadString because Schedules Direct puts each schedule on it's own line\n\t\t// each line is a complete json object but not the whole response.\n\t\tline, err := reader.ReadString('\\n')\n\n\t\t//debug\n\t\t//fmt.Println(line)\n\n\t\t// loop termination condition 1: EOF.\n\t\t// this is the normal loop termination condition.\n\t\tif err == io.EOF {\n\t\t\tbreak\n\t\t}\n\n\t\t// loop termination condition 2: some other error.\n\t\t// Errors happen, so check for them and do something with them.\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\n\t\t// create a Schedule variable\n\t\t//var s ProgramInfo\n\n\t\t// decode the scanner bytes into the schedule\n\t\terrUnmarshal := json.Unmarshal([]byte(line), &allPrograms)\n\t\tif errUnmarshal != nil {\n\t\t\tlog.Printf(\"error unmarshaling program: %s\\n\", errUnmarshal)\n\t\t} else {\n\t\t\t//allPrograms = append(allPrograms, s)\n\t\t}\n\t}\n\n\treturn allPrograms, err\n}", "func Info(args ...interface{}) {\n\tlogWithFilename().Info(args...)\n}", "func lInfo(v ...interface{}) {\n\tinfoLogger.Println(v...)\n}", "func PrintRawInfo(app string) {\n\tfmt.Printf(\"Release Version (%s): %s\\n\", app, Version)\n\tfmt.Printf(\"Git Commit Hash: %s\\n\", GitHash)\n\tfmt.Printf(\"Git Branch: %s\\n\", GitBranch)\n\tfmt.Printf(\"UTC Build Time: %s\\n\", BuildTS)\n}", "func GetShaderInfoLog(s Shader) string {\n\tvar logLength int32\n\tgl.GetShaderiv(s.Value, gl.INFO_LOG_LENGTH, &logLength)\n\tif logLength == 0 {\n\t\treturn \"\"\n\t}\n\n\tlogBuffer := make([]uint8, logLength)\n\tgl.GetShaderInfoLog(s.Value, logLength, nil, &logBuffer[0])\n\treturn gl.GoStr(&logBuffer[0])\n}", "func (ep *epInfoCache) Logger(subsystem string) *logrus.Entry {\n\treturn ep.endpoint.Logger(subsystem)\n}", "func (zw *zerologWrapper) Info(ctx context.Context, format string, args ...interface{}) {\n\tnewEntry(zw, false, zw.cfg.staticFields).Info(ctx, format, args...)\n}", "func (p *Person) Info() string {\n return fmt.Sprintf(\"%v %v (%v)\", p.Firstname, p.Lastname, p.Phone)\n}", "func CallInfo(lv int) string {\n\tpc, file, line, ok := runtime.Caller(lv)\n\tif !ok {\n\t\treturn \"\"\n\t}\n\tfile = callerShortfile(file)\n\tfuncName := runtime.FuncForPC(pc).Name()\n\tfuncName = callerShortfile(funcName)\n\tfn := callerShortfile(funcName, ')')\n\tif len(fn) < len(funcName) {\n\t\tif len(fn) > 1 && fn[0] == '.' {\n\t\t\tfn = fn[1:]\n\t\t}\n\t\tfuncName = fn\n\t} else {\n\t\tfuncName = callerShortfile(funcName, '.')\n\t}\n\ts := fmt.Sprintf(\"%s:%d(%s)\", file, line, funcName)\n\treturn s\n}", "func (l *Logger) BuildInfoString() string {\n\treturn l.staticOptions.BuildInfoString()\n}", "func (l Mylog) Info(ctx context.Context, msg string, data ...interface{}) {\n\tl.ServiceLog.Info(msg, data)\n\t//if l.LogLevel >= Info {\n\t//\tl.Printf(l.infoStr+msg, append([]interface{}{utils.FileWithLineNum()}, data...)...)\n\t//}\n}", "func (p *Pvr) GetApplicationInfo(appname string) error {\n\tsrcFilePath := filepath.Join(p.Dir, appname, \"src.json\")\n\tif _, err := os.Stat(srcFilePath); err != nil {\n\t\treturn errors.New(\"App '\" + appname + \"' doesn't exist\")\n\t}\n\tsrc, _ := ioutil.ReadFile(srcFilePath)\n\tvar fileData interface{}\n\terr := pvjson.Unmarshal(src, &fileData)\n\tif err != nil {\n\t\treturn err\n\t}\n\tjsonData, err := json.MarshalIndent(fileData, \"\", \" \")\n\tif err != nil {\n\t\treturn err\n\t}\n\tfmt.Println(string(jsonData))\n\treturn nil\n}", "func (l *LoggerInstance) Info() *zerolog.Event {\n\treturn l.DefaultContext().Info()\n}", "func (s *Solo) Info() (map[string]string, error) {\n\tinfo := map[string]string{\n\t\t\"type\": \"solo\",\n\t\t\"tx_index\": strconv.Itoa(s.txIndex),\n\t}\n\treturn info, nil\n}", "func (l *Logger) Info() *zerolog.Event {\n\treturn l.logger.Info()\n}", "func (a *App) LogInfo(args ...interface{}) {\n\ta.logger.Info(args...)\n}", "func (ss *sceneStub) I() Logger { return ss.L(Info) }", "func (a *App) printAppInfo() {\n\tversionString := a.Info().Version\n\tif _, err := goversion.NewSemver(a.Info().Version); err == nil {\n\t\t// version is a valid SemVer => release version\n\t\tversionString = \"v\" + versionString\n\t} else {\n\t\t// version is not a valid SemVer => maybe self-compiled\n\t\tversionString = \"commit: \" + versionString\n\t}\n\n\tfmt.Printf(\">>>>> Starting %s %s <<<<<\\n\\n\", a.Info().Name, versionString)\n}", "func (sle *SystemLogGenerator) Info(msg string, args ...interface{}) *Event {\n\treturn NewSystemLog(sle.taskID, sle.attempt, sle.index, \"info\", msg, fields(args...))\n}", "func (base Base) Info() (result map[string]string) {\n\treturn\n}", "func (*Application) Descriptor() ([]byte, []int) {\n\treturn file_proto_v1_squzy_application_monitoring_proto_rawDescGZIP(), []int{3}\n}", "func (context *context) SystemInfo() string {\n\treturn fmt.Sprintf(\"system_info: n_threads = %d / %d | %s\\n\",\n\t\tcontext.params.Threads(),\n\t\truntime.NumCPU(),\n\t\twhisper.Whisper_print_system_info(),\n\t)\n}", "func ReportSingleApp(appName, infoFlag string) {\n\tif err := common.VerifyAppName(appName); err != nil {\n\t\tcommon.LogFail(err.Error())\n\t}\n\n\tresources, err := common.PropertyGetAll(\"resource\", appName)\n\tif err != nil {\n\t\treturn\n\t}\n\n\tflags := []string{}\n\tinfoFlags := map[string]string{}\n\tfor key, value := range resources {\n\t\tflag := fmt.Sprintf(\"--resource-%v\", key)\n\t\tflags = append(flags, flag)\n\t\tinfoFlags[flag] = value\n\t}\n\tsort.Strings(flags)\n\n\tif len(infoFlag) == 0 {\n\t\tcommon.LogInfo2Quiet(fmt.Sprintf(\"%s resource information\", appName))\n\t\tfor _, k := range flags {\n\t\t\tv := infoFlags[k]\n\t\t\tkey := strings.Replace(strings.Replace(strings.TrimPrefix(k, \"--resource-\"), \"-\", \" \", -1), \".\", \" \", -1)\n\t\t\tcommon.LogVerbose(fmt.Sprintf(\"%s%s\", Right(fmt.Sprintf(\"%s:\", key), 31, \" \"), v))\n\t\t}\n\t\treturn\n\t}\n\n\tfor _, k := range flags {\n\t\tv := infoFlags[k]\n\t\tif infoFlag == k {\n\t\t\tfmt.Fprintln(os.Stdout, v)\n\t\t\treturn\n\t\t}\n\t}\n\n\tkeys := reflect.ValueOf(infoFlags).MapKeys()\n\tstrkeys := make([]string, len(keys))\n\tfor i := 0; i < len(keys); i++ {\n\t\tstrkeys[i] = keys[i].String()\n\t}\n\tcommon.LogFail(fmt.Sprintf(\"Invalid flag passed, valid flags: %s\", strings.Join(strkeys, \", \")))\n}", "func Info(args ...interface{}) {\n\tif !rtLogConf.showFileInfo {\n\t\tlogrus.Info(args...)\n\t\treturn\n\t}\n\n\tif pc, file, line, ok := runtime.Caller(1); ok {\n\t\tfileName, funcName := getBaseName(file, runtime.FuncForPC(pc).Name())\n\t\tlogrus.WithField(fileTag, fileName).WithField(lineTag, line).WithField(funcTag, funcName).Info(args...)\n\t} else {\n\t\tlogrus.Info(args...)\n\t}\n}", "func Info(text string) {\n\tprintLog(\"info\", text)\n}", "func toLog(context string, str string) {\n\tnow := time.Now()\n\n\tfmt.Println(\"[\" + now.Format(time.RFC822) + \"] \" + context + \": \" + str)\n}", "func TestInfo(t *testing.T) {\n\tvar data = []byte(`Log this!`)\n\tapolog.Info(data)\n}", "func (proc *Process) getDetails(cmdline string) error {\n\n\tmem := sigar.ProcMem{}\n\tif err := mem.Get(proc.Pid); err != nil {\n\t\treturn fmt.Errorf(\"error getting process mem for pid=%d: %v\", proc.Pid, err)\n\t}\n\tproc.Mem = &ProcMemStat{\n\t\tSize: mem.Size,\n\t\tRss: mem.Resident,\n\t\tShare: mem.Share,\n\t}\n\n\tcpu := sigar.ProcTime{}\n\tif err := cpu.Get(proc.Pid); err != nil {\n\t\treturn fmt.Errorf(\"error getting process cpu time for pid=%d: %v\", proc.Pid, err)\n\t}\n\tproc.Cpu = &ProcCpuTime{\n\t\tStart: cpu.FormatStartTime(),\n\t\tTotal: cpu.Total,\n\t\tUser: cpu.User,\n\t\tSystem: cpu.Sys,\n\t}\n\n\tif cmdline == \"\" {\n\t\targs := sigar.ProcArgs{}\n\t\tif err := args.Get(proc.Pid); err != nil {\n\t\t\treturn fmt.Errorf(\"error getting process arguments for pid=%d: %v\", proc.Pid, err)\n\t\t}\n\t\tproc.CmdLine = strings.Join(args.List, \" \")\n\t} else {\n\t\tproc.CmdLine = cmdline\n\t}\n\n\treturn nil\n}", "func DisplayInfo(projectType string) {\n\tfmt.Println(Info(\"Attention please\"))\n\tfmt.Println()\n\tif strings.Contains(projectType, \"http\") || strings.Contains(projectType, \"grpc\") {\n\t\tfmt.Println(Warn(\"port information\"))\n\t\tfmt.Println(Details(\"readyGo does not know whether the port is available or not.\"))\n\t\tfmt.Println(Details(\"User has to make sure that the port is available and not behind firewall\"))\n\t}\n\tfmt.Println()\n\tif strings.Contains(projectType, \"grpc\") {\n\t\tfmt.Println(Warn(\"grpc protocol buffer information\"))\n\t\tfmt.Println(Details(\"readyGo does not generate proto buffer go files for you.\"))\n\t\tfmt.Println(Details(\"User has to make sure that protoc , proto_gen_go and protoc_gen_go_grpc tools are installed w.r.t the OS\"))\n\t}\n\tfmt.Println()\n\tif strings.Contains(projectType, \"mongo\") {\n\t\tfmt.Println(Warn(\"mongo database information\"))\n\t\tfmt.Println(Details(\"readyGo does not start the database.\"))\n\t\tfmt.Println(Details(\"Make sure your mongodb database is started , up and running\"))\n\t}\n\tfmt.Println()\n\tif strings.Contains(projectType, \"sql\") {\n\t\tfmt.Println(Warn(\"sql database information\"))\n\t\tfmt.Println(Details(\"readyGo does not start the database.\"))\n\t\tfmt.Println(Details(\"Make sure your sql database is started , up and running\"))\n\t}\n\tfmt.Println()\n}", "func LogInfo(msg string) error {\n\n\tt := getTime()\n\n\tf, err := prepFile()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif _, err := f.Write([]byte(t + \";\" + \"INFO; \" + msg + \"\\r\\n\")); err != nil {\n\t\treturn err\n\t}\n\n\tif err := f.Close(); err != nil {\n\t\treturn err\n\t}\n\n\treturn err\n}", "func (l LogItems) Info() error {\n\th, _ := os.Hostname()\n\tm := wrapBuildGraylogMessage(l.ShortMsg, l.FullMsg, 6, l.ExtraFields, h)\n\n\tsendGraylogMessageV2(m)\n\n\treturn nil\n}", "func Info(file *os.File) *log.Logger {\n\tLogInfo := log.New(file, \"INFO: \", log.Ldate|log.Ltime|log.Lshortfile)\n\treturn LogInfo\n}", "func (f *Fridge) Log() *log.Entry {\n\tr := f.GetStatusReport()\n\n\treturn log.WithFields(log.Fields{\n\t\t\"eco\": r.EcoMode,\n\t\t\"input\": f.VoltageStr(),\n\t\t\"lck\": r.Locked,\n\t\t\"on\": r.On,\n\t\t\"set-temp\": r.TempSet,\n\t\t\"temp\": r.Temp,\n\t})\n}", "func Info(args ...interface{}) {\n\tlog.Println(args...)\n}", "func Logger() *log.Entry {\n\tif conf.Config.Profile == \"production\" {\n\t\treturn logger\n\t}\n\t_, file, line, ok := runtime.Caller(1)\n\tif !ok {\n\t\tfile = \"<???>\"\n\t\tline = 1\n\t} else {\n\t\tslash := strings.LastIndex(file, \"/\")\n\t\tfile = file[slash+1:]\n\t}\n\treturn log.WithField(\"source\", fmt.Sprintf(\"%s:%d\", file, line))\n}", "func Info(v ...interface{}) string {\n\treturn logr.Info(v...)\n}", "func (j DSGit) Info() string {\n\treturn fmt.Sprintf(\"%+v\", j)\n}", "func Info() *Logger {\n\treturn infoLogger\n}", "func GetProgram(id string) (program model.Program, err error) {\n\trows, err := db.Query(\"SELECT name, versions, path, exceptions FROM programs WHERE id=?\", id)\n\tif err != nil {\n\t\treturn\n\t}\n\n\tdefer rows.Close()\n\n\tprogram.ID = id\n\n\tif rows.Next() {\n\t\tvar versionsJSON, exceptionsJSON string\n\n\t\terr = rows.Scan(&program.Name, &versionsJSON, &program.Path, &exceptionsJSON)\n\t\tif err != nil {\n\t\t\treturn\n\t\t}\n\n\t\terr = json.Unmarshal([]byte(versionsJSON), &program.Versions)\n\t\tif err != nil {\n\t\t\treturn\n\t\t}\n\n\t\terr = json.Unmarshal([]byte(exceptionsJSON), &program.Exceptions)\n\t}\n\n\treturn\n}", "func Info(m ...interface{}) {\n\tpc := make([]uintptr, 15)\n\tn := runtime.Callers(2, pc)\n\tframes := runtime.CallersFrames(pc[:n])\n\tframe, _ := frames.Next()\n\tlog.Printf(\"INFO [%v] %v\", frame.Function, fmt.Sprintln(m...))\n}", "func Info(data []byte) {\n\tlog.Print(\"INFO: \", string(data))\n}", "func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tC.glowGetShaderInfoLog(gpGetShaderInfoLog, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tC.glowGetShaderInfoLog(gpGetShaderInfoLog, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func lCondInfo(on bool, v ...interface{}) {\n\tif on {\n\t\tinfoLogger.Println(v...)\n\t}\n}", "func prolog(t string, arg ...interface{}) {\n\tif len(arg) > 0 {\n\t\tt = fmt.Sprintf(t, arg...)\n\t}\n\n\tappendLog(LEVEL_PROLOG, ColorDefault, GetRuntimeInfo(1), t, nil)\n}", "func (l Log) ShowLog () {\n fmt.Printf(\"\\n\\n----------------------------------------------------------------------------\\n\")\n fmt.Printf(\" ACTIVITY LOG \\n\")\n for i := range l.Action {\n fmt.Printf(\"%s\\n\", l.Action[i])\n }\n fmt.Printf(\"____________________________________________________________________________\\n\")\n}", "func (logger *Logger) Info(message string) {\n\t_, fn, line, _ := runtime.Caller(1)\n\tlog.WithFields(logger.getLogFields(fn, line)).Info(message)\n}" ]
[ "0.70187396", "0.6920675", "0.6859655", "0.6804434", "0.67825824", "0.6489667", "0.638938", "0.6307945", "0.6124964", "0.60662705", "0.60222703", "0.6004799", "0.6004799", "0.5802153", "0.5670778", "0.56189114", "0.5589105", "0.5368169", "0.5360374", "0.52914023", "0.52869856", "0.52755064", "0.525697", "0.52492744", "0.52452594", "0.5244797", "0.52359414", "0.52344847", "0.5232066", "0.5213388", "0.51965916", "0.51776665", "0.51736915", "0.516688", "0.51613486", "0.5135936", "0.51247686", "0.511252", "0.5108383", "0.5103691", "0.50952536", "0.5080642", "0.5066767", "0.50586575", "0.5057341", "0.50359374", "0.50344145", "0.50259966", "0.50130886", "0.5010173", "0.49951366", "0.4994761", "0.49897233", "0.49896353", "0.49848893", "0.49842557", "0.49740404", "0.4963252", "0.49522018", "0.49441", "0.4942813", "0.49366927", "0.4935661", "0.49319974", "0.4927387", "0.49268314", "0.49266645", "0.4921565", "0.49171108", "0.49037355", "0.48967814", "0.48913464", "0.48885727", "0.4886736", "0.48851085", "0.48838404", "0.48793226", "0.4878942", "0.48764482", "0.48641536", "0.48631206", "0.48558804", "0.48526138", "0.48479277", "0.48289487", "0.48246625", "0.48244908", "0.4822281", "0.48209545", "0.48141047", "0.48134318", "0.4810705", "0.4808872", "0.48071307", "0.48071307", "0.48034313", "0.4802543", "0.48024854", "0.4798948" ]
0.67981184
5
retrieve the info log string from a program pipeline object
func GetProgramPipelineInfoLog(pipeline uint32, bufSize int32, length *int32, infoLog *uint8) { C.glowGetProgramPipelineInfoLog(gpGetProgramPipelineInfoLog, (C.GLuint)(pipeline), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetProgramPipelineInfoLog(pipeline uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tsyscall.Syscall6(gpGetProgramPipelineInfoLog, 4, uintptr(pipeline), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(infoLog)), 0, 0)\n}", "func GetProgramPipelineInfoLog(pipeline uint32, bufSize int32, length *int32, infoLog *int8) {\n C.glowGetProgramPipelineInfoLog(gpGetProgramPipelineInfoLog, (C.GLuint)(pipeline), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func GetProgramInfoLog(p Program) string {\n\tvar logLength int32\n\tgl.GetProgramiv(p.Value, gl.INFO_LOG_LENGTH, &logLength)\n\tif logLength == 0 {\n\t\treturn \"\"\n\t}\n\n\tlogBuffer := make([]uint8, logLength)\n\tgl.GetProgramInfoLog(p.Value, logLength, nil, &logBuffer[0])\n\treturn gl.GoStr(&logBuffer[0])\n}", "func (program Program) GetInfoLog() string {\n\tvar bufSize int32\n\tgl.GetProgramiv(uint32(program), gl.INFO_LOG_LENGTH, &bufSize)\n\tinfoLog := strings.Repeat(\"\\x00\", int(bufSize+1))\n\tgl.GetProgramInfoLog(uint32(program), bufSize, nil, gl.Str(infoLog))\n\treturn infoLog\n}", "func (debugging *debuggingOpenGL) GetProgramInfoLog(program uint32) string {\n\tdebugging.recordEntry(\"GetProgramInfoLog\", program)\n\tresult := debugging.gl.GetProgramInfoLog(program)\n\tdebugging.recordExit(\"GetProgramInfoLog\", result)\n\treturn result\n}", "func GetProgramInfoLog(program uint32, bufSize int32, length *int32, infoLog *int8) {\n C.glowGetProgramInfoLog(gpGetProgramInfoLog, (C.GLuint)(program), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func GetProgramInfoLog(program uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tsyscall.Syscall6(gpGetProgramInfoLog, 4, uintptr(program), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(infoLog)), 0, 0)\n}", "func (o Options) info() string {\n\tmsg := fmt.Sprintf(\"pipelineName=%v, runID=%v\", o.PipelineName, o.RunID)\n\tif o.Task.GetTaskInfo().GetName() != \"\" {\n\t\tmsg = msg + fmt.Sprintf(\", task=%q\", o.Task.GetTaskInfo().GetName())\n\t}\n\tif o.Task.GetComponentRef().GetName() != \"\" {\n\t\tmsg = msg + fmt.Sprintf(\", component=%q\", o.Task.GetComponentRef().GetName())\n\t}\n\tif o.DAGExecutionID != 0 {\n\t\tmsg = msg + fmt.Sprintf(\", dagExecutionID=%v\", o.DAGExecutionID)\n\t}\n\tif o.IterationIndex >= 0 {\n\t\tmsg = msg + fmt.Sprintf(\", iterationIndex=%v\", o.IterationIndex)\n\t}\n\tif o.RuntimeConfig != nil {\n\t\tmsg = msg + \", runtimeConfig\" // this only means runtimeConfig is not empty\n\t}\n\tif o.Component.GetImplementation() != nil {\n\t\tmsg = msg + \", componentSpec\" // this only means componentSpec is not empty\n\t}\n\treturn msg\n}", "func (native *OpenGL) GetProgramInfoLog(program uint32) string {\n\tlogLength := native.GetProgramParameter(program, gl.INFO_LOG_LENGTH)\n\tlog := strings.Repeat(\"\\x00\", int(logLength+1))\n\tgl.GetProgramInfoLog(program, logLength, nil, gl.Str(log))\n\treturn log\n}", "func GetProgramInfoLog(program uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tC.glowGetProgramInfoLog(gpGetProgramInfoLog, (C.GLuint)(program), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func GetProgramInfoLog(program uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tC.glowGetProgramInfoLog(gpGetProgramInfoLog, (C.GLuint)(program), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func Info() string {\n\treturn fmt.Sprintf(\"%s %s git commit %s go version %s build date %s\", Application, Version, Revision, GoVersion, BuildRFC3339)\n}", "func getPipelineInfo(etcdClient *etcd.Client, pachClient *client.APIClient, appEnv *appEnv) (*pps.PipelineInfo, error) {\n\tctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)\n\tdefer cancel()\n\tresp, err := etcdClient.Get(ctx, path.Join(appEnv.PPSPrefix, \"pipelines\", appEnv.PPSPipelineName))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif len(resp.Kvs) != 1 {\n\t\treturn nil, fmt.Errorf(\"expected to find 1 pipeline (%s), got %d: %v\", appEnv.PPSPipelineName, len(resp.Kvs), resp)\n\t}\n\tvar pipelinePtr pps.EtcdPipelineInfo\n\tif err := pipelinePtr.Unmarshal(resp.Kvs[0].Value); err != nil {\n\t\treturn nil, err\n\t}\n\tpachClient.SetAuthToken(pipelinePtr.AuthToken)\n\t// Notice we use the SpecCommitID from our env, not from etcd. This is\n\t// because the value in etcd might get updated while the worker pod is\n\t// being created and we don't want to run the transform of one version of\n\t// the pipeline in the image of a different verison.\n\tpipelinePtr.SpecCommit.ID = appEnv.PPSSpecCommitID\n\treturn ppsutil.GetPipelineInfo(pachClient, &pipelinePtr)\n}", "func (gl *WebGL) GetProgramInfoLog(shaderProgram WebGLShaderProgram) string {\n\treturn gl.context.Call(\"getProgramInfoLog\", shaderProgram).String()\n}", "func (l *Logger) BuildInfoString() string {\n\treturn l.staticOptions.BuildInfoString()\n}", "func GetProgramInfoLog(program Uint, bufSize Sizei, length *Sizei, infoLog []byte) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcbufSize, _ := (C.GLsizei)(bufSize), cgoAllocsUnknown\n\tclength, _ := (*C.GLsizei)(unsafe.Pointer(length)), cgoAllocsUnknown\n\tcinfoLog, _ := (*C.GLchar)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&infoLog)).Data)), cgoAllocsUnknown\n\tC.glGetProgramInfoLog(cprogram, cbufSize, clength, cinfoLog)\n}", "func Info() string {\n\treturn fmt.Sprintf(\"(version=%s, branch=%s, revision=%s)\", version, branch, revision)\n}", "func info() string {\n\tgoVersion := runtime.Version()\n\ttstamp := time.Now()\n\treturn fmt.Sprintf(\"Build: git={{VERSION}} go=%s date=%s\", goVersion, tstamp)\n}", "func LogInfo(context string, module string, info string) {\n log.Info().\n Str(\"Context\", context).\n Str(\"Module\", module).\n Msg(info)\n}", "func GetInfo() string {\n\treturn fmt.Sprintf(\"version: %s, commit: %s\", Version, GitCommit)\n}", "func (p *ProcessInfo) String() string { return p.rendered.Resolve() }", "func LogRawInfo(app string) {\n\tlog.Infof(\"Welcome to %s.\", app)\n\tlog.Infof(\"Release Version: %s\", Version)\n\tlog.Infof(\"Git Commit Hash: %s\", GitHash)\n\tlog.Infof(\"Git Branch: %s\", GitBranch)\n\tlog.Infof(\"UTC Build Time: %s\", BuildTS)\n}", "func LogStringer(logInfo *TransactionLogInfo) string {\n\n\tlogString := fmt.Sprintf(\"RefCode:%s\", logInfo.RefCode)\n\tif logInfo.URL != \"\" {\n\t\tlogString += fmt.Sprintf(\" URL:%s\", logInfo.URL)\n\t}\n\n\tif logInfo.Method != \"\" {\n\t\tlogString += fmt.Sprintf(\" Method:%s\", logInfo.Method)\n\t}\n\n\tif logInfo.Body != \"\" {\n\t\tlogString += fmt.Sprintf(\" Body:%s\", logInfo.Body)\n\t}\n\n\tif logInfo.Input != \"\" {\n\t\tlogString += fmt.Sprintf(\" Request:%s\", logInfo.Input)\n\t}\n\n\tif logInfo.StatusCode != 0 {\n\t\tlogString += fmt.Sprintf(\" StatusCode:%d\", logInfo.StatusCode)\n\t}\n\n\tif logInfo.Output != \"\" {\n\t\tlogString += fmt.Sprintf(\" Response:%s\", logInfo.Output)\n\t}\n\n\treturn logString\n}", "func (l *LogItem) Info() string {\n\treturn fmt.Sprintf(\"%q::%q\", l.Pod, l.Container)\n}", "func extendLoggerWithPipelineRunInfo(logger logr.Logger, pipelineRun *v1alpha1.PipelineRun) logr.Logger {\n\tkvs := getPipelineRunInfoForLogging(pipelineRun)\n\treturn logger.WithValues(kvs...)\n}", "func (o LookupPipelineResultOutput) PipelineId() pulumi.StringOutput {\n\treturn o.ApplyT(func(v LookupPipelineResult) string { return v.PipelineId }).(pulumi.StringOutput)\n}", "func GetShaderInfoLog(s Shader) string {\n\tvar logLength int32\n\tgl.GetShaderiv(s.Value, gl.INFO_LOG_LENGTH, &logLength)\n\tif logLength == 0 {\n\t\treturn \"\"\n\t}\n\n\tlogBuffer := make([]uint8, logLength)\n\tgl.GetShaderInfoLog(s.Value, logLength, nil, &logBuffer[0])\n\treturn gl.GoStr(&logBuffer[0])\n}", "func (native *OpenGL) GLGetProgramInfoLog(program uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tgl.GetProgramInfoLog(program, bufSize, length, infoLog)\n}", "func extractPipelineNumber(config *backend.Config) string {\n\treturn config.Stages[0].Steps[0].Environment[\"CI_PIPELINE_NUMBER\"]\n}", "func (debugging *debuggingOpenGL) GetShaderInfoLog(shader uint32) string {\n\tdebugging.recordEntry(\"GetShaderInfoLog\", shader)\n\tresult := debugging.gl.GetShaderInfoLog(shader)\n\tdebugging.recordExit(\"GetShaderInfoLog\", result)\n\treturn result\n}", "func (shader Shader) GetInfoLog() string {\n\tvar bufSize int32\n\tgl.GetShaderiv(uint32(shader), gl.INFO_LOG_LENGTH, &bufSize)\n\tinfoLog := strings.Repeat(\"\\x00\", int(bufSize+1))\n\tgl.GetShaderInfoLog(uint32(shader), bufSize, nil, gl.Str(infoLog))\n\treturn infoLog\n}", "func (t *Task) Info() string {\n\treturn t.info\n}", "func Info(msg string) {\n log.Info(msg)\n}", "func (o *Options) BuildInfoString() string {\n\treturn fmt.Sprintf(\"(%v v%v, Release: %s)\", o.BinaryName, o.Version, o.Release)\n}", "func getLogstashOutputMessage(output string, log string) string {\n\tvar message string\n\tif output != \"\" {\n\t\tmessage += fmt.Sprintf(\"\\nProcess output:\\n%s\", output)\n\t} else {\n\t\tmessage += \"\\nThe process wrote nothing to stdout or stderr.\"\n\t}\n\tif log != \"\" {\n\t\tmessage += fmt.Sprintf(\"\\nLog:\\n%s\", log)\n\t} else {\n\t\tmessage += \"\\nThe process wrote nothing to its logfile.\"\n\t}\n\treturn message\n}", "func (proc *Process) getDetails(cmdline string) error {\n\n\tmem := sigar.ProcMem{}\n\tif err := mem.Get(proc.Pid); err != nil {\n\t\treturn fmt.Errorf(\"error getting process mem for pid=%d: %v\", proc.Pid, err)\n\t}\n\tproc.Mem = &ProcMemStat{\n\t\tSize: mem.Size,\n\t\tRss: mem.Resident,\n\t\tShare: mem.Share,\n\t}\n\n\tcpu := sigar.ProcTime{}\n\tif err := cpu.Get(proc.Pid); err != nil {\n\t\treturn fmt.Errorf(\"error getting process cpu time for pid=%d: %v\", proc.Pid, err)\n\t}\n\tproc.Cpu = &ProcCpuTime{\n\t\tStart: cpu.FormatStartTime(),\n\t\tTotal: cpu.Total,\n\t\tUser: cpu.User,\n\t\tSystem: cpu.Sys,\n\t}\n\n\tif cmdline == \"\" {\n\t\targs := sigar.ProcArgs{}\n\t\tif err := args.Get(proc.Pid); err != nil {\n\t\t\treturn fmt.Errorf(\"error getting process arguments for pid=%d: %v\", proc.Pid, err)\n\t\t}\n\t\tproc.CmdLine = strings.Join(args.List, \" \")\n\t} else {\n\t\tproc.CmdLine = cmdline\n\t}\n\n\treturn nil\n}", "func (process *Process) process() string {\n\treturn (\"Process \" + process.name)\n}", "func getPlCodeFromApplication(application *model.Application) string {\n\tnames := make([]string, len(application.Services))\n\tservicesDescr := make([]string, len(application.Services))\n\tflowsDescr := make([]string, len(application.Flows))\n\tmaxLatenciesDescr := make([]string, len(application.MaxLatencies))\n\n\tfor idx, s := range application.Services {\n\t\tnames[idx] = s.Id\n\t\tservicesDescr[idx] = fmt.Sprintf(\"service(%s, %d, %d, [%s], [%s]).\", s.Id, s.TProc, s.HWReqs, strings.Join(s.IoTReqs, \",\"), strings.Join(s.SecReqs, \",\"))\n\t}\n\n\tfor idx, f := range application.Flows {\n\t\tflowsDescr[idx] = fmt.Sprintf(\"flow(%s, %s, %d).\", f.Src, f.Dst, f.Bandwidth)\n\t}\n\n\tfor idx, l := range application.MaxLatencies {\n\t\tmaxLatenciesDescr[idx] = fmt.Sprintf(\"maxLatency([%s], %d).\", strings.Join(l.Chain, \", \"), l.Value)\n\t}\n\n\treturn fmt.Sprintf(\"%%%% Application: %s\\nchain(%s, [%s]).\\n%s\\n%s\\n%s\\n\",\n\t\tapplication.Name,\n\t\tapplication.Name,\n\t\tstrings.Join(names, \", \"),\n\t\tstrings.Join(servicesDescr, \"\\n\"),\n\t\tstrings.Join(flowsDescr, \"\\n\"),\n\t\tstrings.Join(maxLatenciesDescr, \"\\n\"),\n\t)\n}", "func showApplicationInfo(app, ver, gitRev string) {\n\tfmtutil.Separator(false, \"APPLICATION INFO\")\n\n\tprintInfo(7, \"Name\", app)\n\tprintInfo(7, \"Version\", ver)\n\n\tprintInfo(7, \"Go\", fmtc.Sprintf(\n\t\t\"%s {s}(%s/%s){!}\",\n\t\tstrings.TrimLeft(runtime.Version(), \"go\"),\n\t\truntime.GOOS, runtime.GOARCH,\n\t))\n\n\tif gitRev != \"\" {\n\t\tif !fmtc.DisableColors && fmtc.IsTrueColorSupported() {\n\t\t\tprintInfo(7, \"Git SHA\", gitRev+getHashColorBullet(gitRev))\n\t\t} else {\n\t\t\tprintInfo(7, \"Git SHA\", gitRev)\n\t\t}\n\t}\n\n\tbin, _ := os.Executable()\n\tbinSHA := hash.FileHash(bin)\n\n\tif binSHA != \"\" {\n\t\tbinSHA = strutil.Head(binSHA, 7)\n\t\tif !fmtc.DisableColors && fmtc.IsTrueColorSupported() {\n\t\t\tprintInfo(7, \"Bin SHA\", binSHA+getHashColorBullet(binSHA))\n\t\t} else {\n\t\t\tprintInfo(7, \"Bin SHA\", binSHA)\n\t\t}\n\t}\n}", "func (g *Gameboi) GetProgram() []string {\n\tout := make([]string, len(g.program))\n\tfor i, line := range g.program {\n\t\tout[i] = fmt.Sprintf(\"%d: %#v\", i, line)\n\t}\n\n\treturn out\n}", "func (s *scribe) I() Logger { return s.L(Info) }", "func CallInfo(lv int) string {\n\tpc, file, line, ok := runtime.Caller(lv)\n\tif !ok {\n\t\treturn \"\"\n\t}\n\tfile = callerShortfile(file)\n\tfuncName := runtime.FuncForPC(pc).Name()\n\tfuncName = callerShortfile(funcName)\n\tfn := callerShortfile(funcName, ')')\n\tif len(fn) < len(funcName) {\n\t\tif len(fn) > 1 && fn[0] == '.' {\n\t\t\tfn = fn[1:]\n\t\t}\n\t\tfuncName = fn\n\t} else {\n\t\tfuncName = callerShortfile(funcName, '.')\n\t}\n\ts := fmt.Sprintf(\"%s:%d(%s)\", file, line, funcName)\n\treturn s\n}", "func (gl *WebGL) GetShaderInfoLog(shader WebGLShader) string {\n\treturn gl.context.Call(\"getShaderInfoLog\", shader).String()\n}", "func toLog(context string, str string) {\n\tnow := time.Now()\n\n\tfmt.Println(\"[\" + now.Format(time.RFC822) + \"] \" + context + \": \" + str)\n}", "func extendContextLoggerWithPipelineRunInfo(ctx context.Context, pipelineRun *v1alpha1.PipelineRun) (context.Context, logr.Logger) {\n\tlogger, err := logr.FromContext(ctx)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tlogger = extendLoggerWithPipelineRunInfo(logger, pipelineRun)\n\treturn klog.NewContext(ctx, logger), logger\n}", "func (client *Client) GetPipeline(ctx context.Context, id string) (\n\t*graylog.Pipeline, *ErrorInfo, error,\n) {\n\tpipe := &graylog.Pipeline{}\n\tei, err := client.callGet(ctx, client.Endpoints().Pipeline(id), nil, pipe)\n\treturn pipe, ei, err\n}", "func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tsyscall.Syscall6(gpGetShaderInfoLog, 4, uintptr(shader), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(infoLog)), 0, 0)\n}", "func (info Info) String() (out string) {\n\tif info.Release {\n\t\tout += fmt.Sprintln(\"Release build\")\n\t} else {\n\t\tout += fmt.Sprintln(\"Development build\")\n\t}\n\n\tif !info.Version.IsZero() {\n\t\tout += fmt.Sprintln(\"Version:\", info.Version.String())\n\t}\n\tif !info.Timestamp.IsZero() {\n\t\tout += fmt.Sprintln(\"Build timestamp:\", info.Timestamp.Format(time.RFC822))\n\t}\n\tif info.CommitHash != \"\" {\n\t\tout += fmt.Sprintln(\"Git commit:\", info.CommitHash)\n\t}\n\tif info.Modified {\n\t\tout += fmt.Sprintln(\"Modified (dirty): true\")\n\t}\n\treturn out\n}", "func PrintRawInfo(app string) {\n\tfmt.Printf(\"Release Version (%s): %s\\n\", app, Version)\n\tfmt.Printf(\"Git Commit Hash: %s\\n\", GitHash)\n\tfmt.Printf(\"Git Branch: %s\\n\", GitBranch)\n\tfmt.Printf(\"UTC Build Time: %s\\n\", BuildTS)\n}", "func getSubject(alertCtx AlertContext) string {\n\tswitch alertCtx.AlertRequest.Trigger {\n\tcase alertrecord.FirstVersionFailureId:\n\t\treturn fmt.Sprintf(\"First Task Failure: %s on %s // %s @ %s\",\n\t\t\talertCtx.Task.DisplayName,\n\t\t\talertCtx.Build.DisplayName,\n\t\t\talertCtx.ProjectRef.DisplayName,\n\t\t\talertCtx.Version.Revision[0:8])\n\tcase alertrecord.FirstVariantFailureId:\n\t\treturn fmt.Sprintf(\"Variant Failure: %s // %s @ %s\",\n\t\t\talertCtx.Build.DisplayName,\n\t\t\talertCtx.ProjectRef.DisplayName,\n\t\t\talertCtx.Version.Revision[0:8],\n\t\t)\n\tcase alertrecord.SpawnHostTwoHourWarning:\n\t\treturn fmt.Sprintf(\"Your %s host (%s) will expire in two hours.\",\n\t\t\talertCtx.Host.Distro.Id, alertCtx.Host.Id)\n\tcase alertrecord.SpawnHostTwelveHourWarning:\n\t\treturn fmt.Sprintf(\"Your %s host (%s) will expire in twelve hours.\",\n\t\t\talertCtx.Host.Distro.Id, alertCtx.Host.Id)\n\t\t// TODO(EVG-224) alertrecord.SpawnHostExpired:\n\t}\n\treturn taskFailureSubject(alertCtx)\n}", "func callerInfo(skip int) string {\n\t_, file, line, _ := runtime.Caller(skip)\n\treturn fmt.Sprintf(\"%v:%v\", file, line)\n}", "func (j DSGit) Info() string {\n\treturn fmt.Sprintf(\"%+v\", j)\n}", "func (l *Lgr) BuildableInfo(buildableLogKey string, args ...interface{}) {\n msg := fmt.Sprint(args...)\n l.Logger.Info(msg)\n l.newStreamEntry(buildableLogKey, msg, InfoLevel, false)\n}", "func GetPipelineInfo(pachClient *client.APIClient, ptr *pps.EtcdPipelineInfo) (*pps.PipelineInfo, error) {\n\tbuf := bytes.Buffer{}\n\tif err := pachClient.GetFile(ppsconsts.SpecRepo, ptr.SpecCommit.ID, ppsconsts.SpecFile, 0, 0, &buf); err != nil {\n\t\treturn nil, fmt.Errorf(\"could not read existing PipelineInfo from PFS: %v\", err)\n\t}\n\tresult := &pps.PipelineInfo{}\n\tif err := result.Unmarshal(buf.Bytes()); err != nil {\n\t\treturn nil, fmt.Errorf(\"could not unmarshal PipelineInfo bytes from PFS: %v\", err)\n\t}\n\tresult.State = ptr.State\n\tresult.Reason = ptr.Reason\n\tresult.JobCounts = ptr.JobCounts\n\tresult.SpecCommit = ptr.SpecCommit\n\treturn result, nil\n}", "func (ss *sceneStub) I() Logger { return ss.L(Info) }", "func (p Person) info() string {\n\treturn \"the person's info is \" + p.name\n}", "func (native *OpenGL) GetShaderInfoLog(shader uint32) string {\n\tlogLength := native.GetShaderParameter(shader, gl.INFO_LOG_LENGTH)\n\tlog := strings.Repeat(\"\\x00\", int(logLength+1))\n\tgl.GetShaderInfoLog(shader, logLength, nil, gl.Str(log))\n\treturn log\n}", "func (context *context) SystemInfo() string {\n\treturn fmt.Sprintf(\"system_info: n_threads = %d / %d | %s\\n\",\n\t\tcontext.params.Threads(),\n\t\truntime.NumCPU(),\n\t\twhisper.Whisper_print_system_info(),\n\t)\n}", "func processOnMining(cmd string,args []string,obj interface{})string{\n switch cmd {\n case \"node\":\n if len(args)!=1 {\n return \"invalid arguments\"\n }\n err := obj.(*miner.Miner).AddNode(args[0])\n if err!=nil { return fmt.Sprint(err) }\n return \"Added \"+args[0]+\" in list of miners\"\n case \"nodes\":\n return strings.Join(obj.(*miner.Miner).GetConnected(),\"\\n\")\n case \"status\":\n return \"<current status>\" // TODO: implement later\n }\n return \"invalid cmd\"\n}", "func (srv *Server) CmdInfo(stdin io.ReadCloser, stdout io.Writer, args ...string) error {\n\timages, _ := srv.runtime.graph.All()\n\tvar imgcount int\n\tif images == nil {\n\t\timgcount = 0\n\t} else {\n\t\timgcount = len(images)\n\t}\n\tcmd := rcli.Subcmd(stdout, \"info\", \"\", \"Display system-wide information.\")\n\tif err := cmd.Parse(args); err != nil {\n\t\treturn nil\n\t}\n\tif cmd.NArg() > 0 {\n\t\tcmd.Usage()\n\t\treturn nil\n\t}\n\tfmt.Fprintf(stdout, \"containers: %d\\nversion: %s\\nimages: %d\\n\",\n\t\tlen(srv.runtime.List()),\n\t\tVERSION,\n\t\timgcount)\n\n\tif !rcli.DEBUG_FLAG {\n\t\treturn nil\n\t}\n\tfmt.Fprintln(stdout, \"debug mode enabled\")\n\tfmt.Fprintf(stdout, \"fds: %d\\ngoroutines: %d\\n\", getTotalUsedFds(), runtime.NumGoroutine())\n\treturn nil\n}", "func (i Info) String() string {\n\treturn fmt.Sprintf(\"%v.%v.%v+%v\", i.Major, i.Minor, i.Patch, i.GitCommit)\n}", "func Info(args ...interface{}) {\n LoggerOf(default_id).Info(args...)\n}", "func lCondInfo(on bool, v ...interface{}) {\n\tif on {\n\t\tinfoLogger.Println(v...)\n\t}\n}", "func callProblog(code string) (string, error) {\n\tcmdString := \"echo \\\"\" + code + \"\\\"\"\n\n\tlog.Println(cmdString)\n\n\tcmd := exec.Command(\"bash\", \"-c\", cmdString+\" | problog\")\n\tout, err := cmd.CombinedOutput()\n\tif err != nil {\n\t\tlog.Println(string(out))\n\t\treturn \"\", err\n\t}\n\n\treturn string(out), nil\n}", "func (a *apiServer) inspectPipeline(ctx context.Context, pipeline *pps.Pipeline, details bool) (*pps.PipelineInfo, error) {\n\tvar info *pps.PipelineInfo\n\tif err := a.txnEnv.WithReadContext(ctx, func(txnCtx *txncontext.TransactionContext) error {\n\t\tvar err error\n\t\tinfo, err = a.InspectPipelineInTransaction(txnCtx, pipeline)\n\t\treturn err\n\t}); err != nil {\n\t\treturn nil, err\n\t}\n\n\tif err := a.getLatestJobState(ctx, info); err != nil {\n\t\treturn nil, err\n\t}\n\tif !details {\n\t\tinfo.Details = nil // preserve old behavior\n\t} else {\n\t\tkubeClient := a.env.KubeClient\n\t\tif info.Details.Service != nil {\n\t\t\trcName := ppsutil.PipelineRcName(info)\n\t\t\tservice, err := kubeClient.CoreV1().Services(a.namespace).Get(ctx, fmt.Sprintf(\"%s-user\", rcName), metav1.GetOptions{})\n\t\t\tif err != nil {\n\t\t\t\tif !errutil.IsNotFoundError(err) {\n\t\t\t\t\treturn nil, errors.EnsureStack(err)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif info.Details.Service.Type == \"LoadBalancer\" {\n\t\t\t\t\t//GCP: service.Status.LoadBalancer.Ingress[0].IP\n\t\t\t\t\t//AWS: service.Status.LoadBalancer.Ingress[0].Hostname\n\t\t\t\t\tif len(service.Status.LoadBalancer.Ingress) == 1 {\n\t\t\t\t\t\tif service.Status.LoadBalancer.Ingress[0].IP != \"\" {\n\t\t\t\t\t\t\tinfo.Details.Service.Ip = service.Status.LoadBalancer.Ingress[0].IP\n\t\t\t\t\t\t} else if service.Status.LoadBalancer.Ingress[0].Hostname != \"\" {\n\t\t\t\t\t\t\tinfo.Details.Service.Ip = service.Status.LoadBalancer.Ingress[0].Hostname\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tinfo.Details.Service.Ip = service.Spec.ClusterIP\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tworkerStatus, err := workerserver.Status(ctx, info, a.env.EtcdClient, a.etcdPrefix, a.workerGrpcPort)\n\t\tif err != nil {\n\t\t\tlog.Error(ctx, \"failed to get worker status\", zap.Error(err))\n\t\t} else {\n\t\t\tinfo.Details.WorkersAvailable = int64(len(workerStatus))\n\t\t\tinfo.Details.WorkersRequested = int64(info.Parallelism)\n\t\t}\n\t\ttasks, claims, err := task.Count(ctx, a.env.TaskService, driver.TaskNamespace(info), \"\")\n\t\tif err != nil {\n\t\t\treturn nil, errors.EnsureStack(err)\n\t\t}\n\t\tinfo.Details.UnclaimedTasks = tasks - claims\n\t}\n\n\treturn info, nil\n}", "func printUsage() {\n\tmessage := `\napt_json_extractor: Extracts the latest JSON record for the item\nidentified by param identifier from the JSON log and prints it to\nstdout. You'll normally want to pipe the output to a file, since\nit can be large. JSON log data is always at least current with, and\noften ahead of data in WorkItemState.State. For some items where\nprocessing has stalled or failed, you may want to overwrite\nWorkItemState.state with the JSON data from the logs, and then\nrestart processing.\n\nUsage: apt_json_extractor -log=<path to JSON log file> -identifier=<identifier>\n\nParam pathToLogFile should be an absolute path to a JSON log file,\nsuch as /mnt/efs/apt/logs/apt_recorder.json.\n\nParam identifier is the identifier that can locate the record. This\nvaries according to the log you're searching. Log files and their\ncorresponding identifiers are as follows:\n\napt_restore.json -> IntellectualObject.Identifier\ne.g. virginia.edu/bag_o_goodies\n\napt_fetch.json, apt_store.json, apt_record.json -> S3 bucket and key\ne.g. aptrust.receiving.virginia.edu/bag_o_goodies.tar\n\n`\n\tfmt.Println(message)\n}", "func (param *LoadParams) Info() string {\n\treturn fmt.Sprintf(\"current loader[qps=%d, durations=%v,timeout=%v]\", param.QPS, param.Duration, param.Timeout)\n}", "func infoLog(v ...interface{}) {\n\t// if source info is enabled, prepend the log data with source information\n\tif enableSourceInfo {\n\t\tv = append([]interface{}{getSourceInfo(), s}, v...)\n\t}\n\n\tlog.Print(v...)\n}", "func (e *ProgramChangeEvent) String() string {\n\treturn fmt.Sprintf(\"&ProgramChangeEvent{channel: %v, program: %v}\", e.channel, e.program)\n}", "func (c *Client) Info(payload string) string {\n\tvar result string\n\tif err := c.ClientRPC.Call(\"Server.Info\", payload, &result); err != nil {\n\t\tlog.Println(err)\n\t}\n\treturn result\n}", "func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *int8) {\n C.glowGetShaderInfoLog(gpGetShaderInfoLog, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func (o EipAddressOutput) LogProject() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *EipAddress) pulumi.StringPtrOutput { return v.LogProject }).(pulumi.StringPtrOutput)\n}", "func (hook *Hook) Getinfo() (map[string]string, error) {\n\tcmd := exec.Command(\"svnlook\", \"info\", hook.repospath)\n\tstdout, err := cmd.StdoutPipe()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif err = cmd.Start(); err != nil {\n\t\treturn nil, err\n\t}\n\tinfo, err := ioutil.ReadAll(stdout)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tsplitinfo := strings.SplitN(string(info), \"\\n\", -1)\n\tinfomap := make(map[string]string)\n\tinfomap[\"author\"] = splitinfo[0]\n\tinfomap[\"timestamp\"] = splitinfo[1]\n\tinfomap[\"logsize\"] = splitinfo[2]\n\tinfomap[\"log\"] = splitinfo[3]\n\treturn infomap, nil\n}", "func getEventLogInfo(parsedEventLogEntry types.TpmEvent) types.EventLog {\n\n\tlog.Trace(\"vmware_host_connector:getEventLogInfo() Entering\")\n\tdefer log.Trace(\"vmware_host_connector:getEventLogInfo() Leaving\")\n\teventLog := types.EventLog{Measurement: intArrayToHexString(parsedEventLogEntry.EventDetails.DataHash)}\n\n\tif parsedEventLogEntry.EventDetails.VibName != nil {\n\t\teventLog.TypeID = VIB_NAME_TYPE_ID\n\t\teventLog.TypeName = *parsedEventLogEntry.EventDetails.ComponentName\n\t\teventLog.Tags = append(eventLog.Tags, COMPONENT_PREFIX+*parsedEventLogEntry.EventDetails.ComponentName)\n\t\tif *parsedEventLogEntry.EventDetails.VibName != \"\" {\n\t\t\teventLog.Tags = append(eventLog.Tags, VIM_API_PREFIX+TPM_SOFTWARE_COMPONENT_EVENT_TYPE+DETAILS_SUFFIX+\"_\"+*parsedEventLogEntry.EventDetails.VibName+\"_\"+*parsedEventLogEntry.EventDetails.VibVendor)\n\t\t} else {\n\t\t\teventLog.Tags = append(eventLog.Tags, VIM_API_PREFIX+TPM_SOFTWARE_COMPONENT_EVENT_TYPE+DETAILS_SUFFIX)\n\t\t}\n\t} else if parsedEventLogEntry.EventDetails.CommandLine != nil {\n\t\teventLog.TypeID = COMMANDLINE_TYPE_ID\n\t\tuuid := getBootUUIDFromCL(*parsedEventLogEntry.EventDetails.CommandLine)\n\t\tif uuid != \"\" {\n\t\t\teventLog.Tags = append(eventLog.Tags, COMMANDLINE_PREFIX)\n\t\t} else {\n\t\t\teventLog.Tags = append(eventLog.Tags, COMMANDLINE_PREFIX+*parsedEventLogEntry.EventDetails.CommandLine)\n\t\t}\n\t\teventLog.TypeName = *parsedEventLogEntry.EventDetails.CommandLine\n\t\teventLog.Tags = append(eventLog.Tags, VIM_API_PREFIX+TPM_COMMAND_EVENT_TYPE+DETAILS_SUFFIX)\n\n\t} else if parsedEventLogEntry.EventDetails.OptionsFileName != nil {\n\t\teventLog.TypeID = OPTIONS_FILE_NAME_TYPE_ID\n\t\teventLog.TypeName = *parsedEventLogEntry.EventDetails.OptionsFileName\n\t\teventLog.Tags = append(eventLog.Tags, BOOT_OPTIONS_PREFIX+*parsedEventLogEntry.EventDetails.OptionsFileName)\n\t\teventLog.Tags = append(eventLog.Tags, VIM_API_PREFIX+TPM_OPTION_EVENT_TYPE+DETAILS_SUFFIX)\n\n\t} else if parsedEventLogEntry.EventDetails.BootSecurityOption != nil {\n\t\teventLog.TypeID = BOOT_SECURITY_OPTION_TYPE_ID\n\t\teventLog.TypeName = *parsedEventLogEntry.EventDetails.BootSecurityOption\n\t\teventLog.Tags = append(eventLog.Tags, BOOT_SECURITY_OPTIONS_PREFIX+*parsedEventLogEntry.EventDetails.BootSecurityOption)\n\t\teventLog.Tags = append(eventLog.Tags, VIM_API_PREFIX+TPM_BOOT_SECURITY_OPTION_EVENT_TYPE+DETAILS_SUFFIX)\n\t} else {\n\t\tlog.Warn(\"Unrecognized event in module event log\")\n\t}\n\n\treturn eventLog\n}", "func getSourceInfo() (sourceInfo string) {\n\n\t// retrieve source file info and format it\n\tif _, fileName, lineNumber, ok := runtime.Caller(callStackDepth); ok {\n\t\tsourceInfo = strings.Join([]string{filepath.Base(fileName),\n\t\t\tstrconv.FormatInt(int64(lineNumber), 10)}, \":\")\n\t}\n\treturn\n}", "func (p *Person) Info() string {\n return fmt.Sprintf(\"%v %v (%v)\", p.Firstname, p.Lastname, p.Phone)\n}", "func Info(v ...interface{}) string {\n\treturn logr.Info(v...)\n}", "func GetRawInfo() string {\n\tvar info string\n\tinfo += fmt.Sprintf(\"Release Version: %s\\n\", ReleaseVersion)\n\tinfo += fmt.Sprintf(\"Git Commit Hash: %s\\n\", GitHash)\n\tinfo += fmt.Sprintf(\"Git Branch: %s\\n\", GitBranch)\n\tinfo += fmt.Sprintf(\"UTC Build Time: %s\\n\", BuildTS)\n\tinfo += fmt.Sprintf(\"Go Version: %s\\n\", GoVersion)\n\treturn info\n}", "func getBuildLog(url string) string {\n\tresponse, err := http.Get(url)\n\tif url == \"\" {\n\t\treturn \"\"\n\t}\n\n\tdefer response.Body.Close()\n\n\tb, err := ioutil.ReadAll(response.Body)\n\tcheck(err)\n\n\t//only the last part of the log is relevant\n\te := len(b) - 1\n\ts := 0\n\tif e > lastBytes {\n\t\ts = e - lastBytes\n\t}\n\n\t//drop anything after the error message\n\tres := strings.SplitN(string(b[s:e]), endOfLog, 2)\n\n\t//keep only last 200 lines\n\tsplit := strings.Split(res[0], \"\\n\")\n\n\te = len(split) - 1\n\ts = 0\n\tif e > 200 {\n\t\ts = e - 200\n\t}\n\n\treturn strings.Join(split[s:e], \"\\n\")\n}", "func (j DSGitHub) Info() string {\n\treturn fmt.Sprintf(\"%+v\", j)\n}", "func lInfo(v ...interface{}) {\n\tinfoLogger.Println(v...)\n}", "func (d *Device) infoString() string {\n\treturn fmt.Sprintf(\"%04X:%04X:%04X\", d.Data.Bus, d.Data.VendorID, d.Data.ProductID)\n}", "func (info Info) String() string {\n\treturn info.GitVersion\n}", "func (info Info) String() string {\n\treturn info.GitVersion\n}", "func Info() [][2]string {\n\treturn runtimeInfoVar\n}", "func (i *info) String() string {\n\tif len(i.detail.StackTrace) == 0 {\n\t\ti.prepare()\n\t\ti.detail = i.getDetail()\n\t}\n\n\treturn i.detail.String()\n}", "func prolog(t string, arg ...interface{}) {\n\tif len(arg) > 0 {\n\t\tt = fmt.Sprintf(t, arg...)\n\t}\n\n\tappendLog(LEVEL_PROLOG, ColorDefault, GetRuntimeInfo(1), t, nil)\n}", "func buildInfo(c *cli.Context) error {\n\trepo := c.Args().First()\n\towner, name, err := parseRepo(repo)\n\tif err != nil {\n\t\treturn err\n\t}\n\tnumber, err := strconv.Atoi(c.Args().Get(1))\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tclient, err := newClient(c)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tbuild, err := client.Build(owner, name, number)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\ttmpl, err := template.New(\"_\").Parse(c.String(\"format\"))\n\tif err != nil {\n\t\treturn err\n\t}\n\treturn tmpl.Execute(os.Stdout, build)\n}", "func getLoc(skip int, level int32, subsystem string) (output string) {\n\t_, file, line, _ := runtime.Caller(skip)\n\tdefer func() {\n\t\tif r := recover(); r != nil {\n\t\t\tfmt.Fprintln(os.Stderr, \"getloc panic on subsystem\", subsystem, file)\n\t\t}\n\t}()\n\tsplit := strings.Split(file, subsystem)\n\tif len(split) < 2 {\n\t\toutput = fmt.Sprint(\n\t\t\tcolor.White.Sprint(subsystem),\n\t\t\tcolor.Gray.Sprint(\n\t\t\t\tfile, \":\", line,\n\t\t\t),\n\t\t)\n\t} else {\n\t\toutput = fmt.Sprint(\n\t\t\tcolor.White.Sprint(subsystem),\n\t\t\tcolor.Gray.Sprint(\n\t\t\t\tsplit[1], \":\", line,\n\t\t\t),\n\t\t)\n\t}\n\treturn\n}", "func (o LaunchOutput) Project() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *Launch) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput)\n}", "func (o TimelineOutput) ProgramText() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *Timeline) pulumi.StringOutput { return v.ProgramText }).(pulumi.StringOutput)\n}", "func (j DSRocketchat) Info() string {\n\treturn fmt.Sprintf(\"%+v\", j)\n}", "func (self *ContainerCtx) GetContainerLog() {\n\n}", "func TestInfo(t *testing.T) {\n\tr, w, _ := os.Pipe()\n\tSetOutputs(Output{\n\t\tName: \"test\",\n\t\tWriter: w,\n\t\tLevels: level.Default,\n\t})\n\n\tInfo(\"Test info\")\n\toutC := make(chan string)\n\tgo ioCopy(r, outC)\n\tw.Close()\n\tout := <-outC\n\n\texpected := \"Test info\"\n\tn := level.Labels[level.Info]\n\tif !strings.Contains(out, expected) || !strings.Contains(out, n) {\n\t\tt.Errorf(\"Result `%s` doesn't contains `%s` and `%s`\",\n\t\t\tout, expected, n)\n\t}\n}", "func (w *pipeError) Stage() string { return w.stage }", "func Info(s string) {\n\tlogInfo(&loggers.Loggers[0], s)\n}", "func (t *tracer) buildMessage() string {\n\tif t.IsNull() {\n\t\treturn \"\"\n\t}\n\n\t// Note: this value is very important, it makes sure the internal calls of this package would not interfere with the real caller we want to catch\n\t// badly set and you will get a line number that does not match with the one corresponding to the call\n\tconst skipCallers int = 2\n\n\tmessage := t.taskSig\n\tif _, _, line, ok := runtime.Caller(skipCallers); ok {\n\t\tmessage += \" \" + t.funcName + t.callerParams + \" [\" + t.fileName + \":\" + strconv.Itoa(line) + \"]\"\n\t}\n\treturn message\n}", "func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tC.glowGetShaderInfoLog(gpGetShaderInfoLog, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tC.glowGetShaderInfoLog(gpGetShaderInfoLog, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}" ]
[ "0.74301153", "0.7414963", "0.66963136", "0.6338134", "0.614125", "0.60964996", "0.60168636", "0.5964571", "0.5963335", "0.59458375", "0.59458375", "0.5915985", "0.59098065", "0.5865459", "0.58564144", "0.57441735", "0.5610272", "0.55776787", "0.55754703", "0.5570645", "0.55106235", "0.5492664", "0.54410756", "0.54170734", "0.53468645", "0.5336239", "0.53360564", "0.52916515", "0.5225589", "0.52212423", "0.52197486", "0.52007294", "0.5177727", "0.5159282", "0.51334006", "0.51249695", "0.5110604", "0.50862116", "0.508023", "0.50672925", "0.5063738", "0.5063449", "0.50588363", "0.5051298", "0.5033798", "0.50227356", "0.5019671", "0.5000986", "0.49999928", "0.4994928", "0.49944186", "0.49790215", "0.49580377", "0.49512166", "0.49502572", "0.494829", "0.49470362", "0.49463645", "0.49462256", "0.49454767", "0.49421555", "0.49405748", "0.49404833", "0.49224538", "0.49199516", "0.4917602", "0.49128634", "0.49029693", "0.48945877", "0.4889825", "0.4878626", "0.48519796", "0.48459262", "0.48453623", "0.48314866", "0.4825102", "0.48225123", "0.48224938", "0.48104334", "0.48098302", "0.48083508", "0.48050565", "0.4803229", "0.4803229", "0.48014522", "0.48005205", "0.47990844", "0.4794247", "0.4791646", "0.47677034", "0.4766934", "0.4763689", "0.47621572", "0.47617936", "0.47576776", "0.4731714", "0.4719815", "0.47173372", "0.47173372" ]
0.72862494
3
query the index of a named resource within a program
func GetProgramResourceIndex(program uint32, programInterface uint32, name *uint8) uint32 { ret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name))) return (uint32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetProgramResourceIndex(program uint32, programInterface uint32, name *int8) uint32 {\n ret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (uint32)(ret)\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *int8) int32 {\n ret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetProgramResourceLocationIndex, 3, uintptr(program), uintptr(programInterface), uintptr(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetProgramResourceIndex(program uint32, programInterface uint32, name *uint8) uint32 {\n\tret, _, _ := syscall.Syscall(gpGetProgramResourceIndex, 3, uintptr(program), uintptr(programInterface), uintptr(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *uint8) int32 {\n\tret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *uint8) int32 {\n\tret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetIndexOIDForResource(resource string) string {\n\treturn resourceIndex[resource]\n}", "func (resource *Resource) GetResourceIndex(component Component) int {\n\tfor i, currentResource := range component.GetResources() {\n\t\tif currentResource.Group == resource.Group && currentResource.Version == resource.Version && currentResource.Kind == resource.Kind {\n\t\t\tif currentResource.Name == resource.Name && currentResource.Namespace == resource.Namespace {\n\t\t\t\treturn i\n\t\t\t}\n\t\t}\n\t}\n\n\treturn -1\n}", "func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *int8) {\n C.glowGetProgramResourceName(gpGetProgramResourceName, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func getProgramIndex(indexString string) (int, int, error) {\n\t// Try to convert it from a string to an integer.\n\tprogramIndex, err := strconv.Atoi(indexString)\n\n\t// Was it a valid index?\n\tif err == nil {\n\t\t// Make sure the program index is valid.\n\t\tvar numPrograms = len(config.Programs)\n\t\tif programIndex >= 0 && programIndex < numPrograms {\n\t\t\t// Program index is valid.\n\t\t\treturn programIndex, http.StatusOK, nil\n\t\t} else {\n\t\t\t// Program index is out of bounds.\n\t\t\tvar errMsg = \"Program index is out of bounds: \" + indexString\n\t\t\treturn programIndex, http.StatusNotFound,\n\t\t\t\terrors.New(errMsg)\n\t\t}\n\t} else {\n\t\t// It was an invalid program index.\n\t\treturn -1, http.StatusBadRequest,\n\t\t\terrors.New(\"Invalid program index: \" + indexString)\n\t}\n}", "func getAppIndexInShelf(items []*ash.ShelfItem, name string) (int, error) {\n\tfor index, item := range items {\n\t\tif item.Title == name {\n\t\t\treturn index, nil\n\t\t}\n\t}\n\n\treturn -1, errors.New(\"Not found\")\n}", "func QueryForResource(resource, version string) string {\n\treturn fmt.Sprintf(\"data.%s\", ResourcePolicyModuleName(resource, version))\n}", "func IndexResourcesByName(items []types.Resource) map[string]types.Resource {\n\tindexed := make(map[string]types.Resource, len(items))\n\tfor _, item := range items {\n\t\tindexed[GetResourceName(item)] = item\n\t}\n\treturn indexed\n}", "func (self *OCSPResponder) getIndexEntry(s *big.Int) (*IndexEntry, error) {\n\tlog.Println(fmt.Sprintf(\"Looking for serial 0x%x\", s))\n\tif err := self.parseIndex(); err != nil {\n\t\treturn nil, err\n\t}\n\tfor _, ent := range self.IndexEntries {\n\t\tif ent.Serial.Cmp(s) == 0 {\n\t\t\treturn &ent, nil\n\t\t}\n\t}\n\treturn nil, errors.New(fmt.Sprintf(\"Serial 0x%x not found\", s))\n}", "func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tsyscall.Syscall6(gpGetProgramResourceName, 6, uintptr(program), uintptr(programInterface), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(name)))\n}", "func GetProgramResourceLocation(program uint32, programInterface uint32, name *int8) int32 {\n ret := C.glowGetProgramResourceLocation(gpGetProgramResourceLocation, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetProgramResourceName(gpGetProgramResourceName, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetProgramResourceName(gpGetProgramResourceName, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (pi *PackageIndexer) Query(name string) string {\n\t// query indexer for package \n\tif _, ok := pi.packs[name]; ok {\t\t\t\t\t\t\t\n return OK \t\t\t\t\t\t\t\t\t\t\t\t\n }\n\n return FAIL\t\t\t\t\t\t\t\t\t\t\t\t\t\n}", "func (s *SmartContract) queryByIndex(stub shim.ChaincodeStubInterface, args []string) pb.Response {\n\n\t// 0\n\t// \"queryString\"\n\tif len(args) < 1 {\n\t\treturn shim.Error(ArgsMismatch)\n\t}\n\n\tqueryString := args[0]\n\n\tqueryResults, err := GetQueryResultForQueryString(stub, queryString)\n\tif err != nil {\n\t\treturn shim.Error(QueryError)\n\t}\n\treturn shim.Success(queryResults)\n}", "func GetQueryIndexediv(target uint32, index uint32, pname uint32, params *int32) {\n C.glowGetQueryIndexediv(gpGetQueryIndexediv, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func IndexResourcesByName(items []envoy_types.ResourceWithTTL) map[string]envoy_types.ResourceWithTTL {\n\tindexed := make(map[string]envoy_types.ResourceWithTTL, len(items))\n\tfor _, item := range items {\n\t\tkey := GetResourceName(item.Resource)\n\t\tindexed[key] = item\n\t}\n\treturn indexed\n}", "func indexRead(key string) (*pkg, bool) {\n\tlocker.RLock()\n\tdefer locker.RUnlock()\n\n\tp, ok := indexedPkgs[key]\n\treturn p, ok\n}", "func (c Client) QueryByShortname(name string) (model.Pivio, error) {\n\turl := c.buildShortnameQueryURL(name)\n\n\tlog.Printf(\"accessing %s\\n\", url)\n\tres, err := http.Get(url)\n\tif err != nil {\n\t\treturn model.Pivio{}, err\n\t}\n\tdefer res.Body.Close()\n\n\t// dump, err := httputil.DumpResponse(res, true)\n\t// if err != nil {\n\t// \tlog.Fatal(err)\n\t// }\n\n\t// fmt.Printf(\"%q\", dump)\n\n\tvar pivios = []model.Pivio{}\n\tpivios, err = model.ReadJSONMultiple(res.Body)\n\tif err != nil || len(pivios) < 1 {\n\t\treturn model.Pivio{}, err\n\t}\n\treturn pivios[0], nil\n}", "func GetProgramResourceLocation(program uint32, programInterface uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetProgramResourceLocation, 3, uintptr(program), uintptr(programInterface), uintptr(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func execResourceCommand(c *cli.Context) {\n\ttable := uitable.New()\n\ttable.MaxColWidth = 80\n\ttable.AddRow(\"RESOURCE\", \"DESCRIPTION\")\n\n\tfor _, item := range resource.Registry {\n\t\ttable.AddRow(item.Name, item.Description)\n\t}\n\n\tfmt.Println(table)\n}", "func getResource(name string, taskInfo *mesos.TaskInfo) *mesos.Resource {\n\tfor _, resource := range taskInfo.Resources {\n\t\tif *resource.Name == name {\n\t\t\treturn resource\n\t\t}\n\t}\n\n\treturn nil\n}", "func GetQueryIndexediv(target uint32, index uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetQueryIndexediv, 4, uintptr(target), uintptr(index), uintptr(pname), uintptr(unsafe.Pointer(params)), 0, 0)\n}", "func GetProgramResourceLocation(program uint32, programInterface uint32, name *uint8) int32 {\n\tret := C.glowGetProgramResourceLocation(gpGetProgramResourceLocation, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetProgramResourceLocation(program uint32, programInterface uint32, name *uint8) int32 {\n\tret := C.glowGetProgramResourceLocation(gpGetProgramResourceLocation, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func (p *ThriftHiveMetastoreClient) GetIndexByName(ctx context.Context, db_name string, tbl_name string, index_name string) (r *Index, err error) {\n var _args112 ThriftHiveMetastoreGetIndexByNameArgs\n _args112.DbName = db_name\n _args112.TblName = tbl_name\n _args112.IndexName = index_name\n var _result113 ThriftHiveMetastoreGetIndexByNameResult\n if err = p.Client_().Call(ctx, \"get_index_by_name\", &_args112, &_result113); err != nil {\n return\n }\n switch {\n case _result113.O1!= nil:\n return r, _result113.O1\n case _result113.O2!= nil:\n return r, _result113.O2\n }\n\n return _result113.GetSuccess(), nil\n}", "func (idx Resource) GetIndex(w http.ResponseWriter, r *http.Request) {\n\tidx.logger.Info(\"Hitting the index page\")\n\n\tsess, _ := idx.store.GetSession(r)\n\n\tidx.logger.Infof(\"Returning user is %v\", sess.Values[\"user\"])\n\terr := idx.templateList.Public.ExecuteWriter(nil, w)\n\tif err != nil {\n\t\tidx.logger.Info(\"Failed to serve the index page\")\n\t\thttp.Error(w, http.StatusText(http.StatusInternalServerError),\n\t\t\thttp.StatusInternalServerError)\n\t}\n}", "func FindPhysicalIndexes(url string, alias string) []string {\n\tindexResponse := infoResponse{}\n\t_, err := MakeJSONRequest(http.MethodGet, fmt.Sprintf(\"%s/%s\", url, alias), \"\", &indexResponse)\n\tindexes := make([]string, 0)\n\n\t// error could mean a variety of things, but we'll figure that out later\n\tif err != nil {\n\t\treturn indexes\n\t}\n\n\t// our top level key is our physical index name\n\tfor key := range indexResponse {\n\t\tindexes = append(indexes, key)\n\t}\n\n\t// reverse sort order should put our newest index first\n\tsort.Sort(sort.Reverse(sort.StringSlice(indexes)))\n\treturn indexes\n}", "func (es ES) QueryToolByName(name string) ([]globals.Perco, error) {\n\tquery := elastic.NewTermQuery(\"name.keyword\", name)\n\n\tsearchResult, err := es.Client.Search().\n\t\tIndex(\"tools\").\n\t\tQuery(query).\n\t\tFrom(0).Size(1000).\n\t\tPretty(true).\n\t\tDo(es.Context)\n\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar tools []globals.Perco\n\tif searchResult.Hits.TotalHits > 0 {\n\t\tfmt.Printf(\"Found a total of %d tools\\n\", searchResult.Hits.TotalHits)\n\t\tfor _, hit := range searchResult.Hits.Hits {\n\t\t\tvar tool globals.Perco\n\t\t\terr := json.Unmarshal(*hit.Source, &tool)\n\t\t\ttool.ID = hit.Id\n\t\t\tif err != nil {\n\t\t\t\tlog.Errorf(\"Unable to deserialize source into answer : %s\", err)\n\t\t\t}\n\t\t\ttools = append(tools, tool)\n\t\t}\n\t}\n\n\treturn tools, nil\n}", "func queryDB(i string, name string) string {\n\tdberr := pool.QueryRow(\"select \" + i + \" from provision where name ='\" + name + \"'\").Scan(&i)\n\tif dberr != nil {\n\t\tfmt.Println(dberr.Error())\n\t\treturn \"\"\n\t}\n\treturn i\n}", "func (s *Sync) loadIdx(name string, fetchIdx idxFunc) (*index.Index, error) {\n\tpath := filepath.Join(s.opts.WorkDir, name)\n\tf, err := os.Open(path)\n\tif os.IsNotExist(err) {\n\t\tidx, err := fetchIdx()\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\treturn idx, index.SaveIndex(idx, path)\n\t} else if err != nil {\n\t\treturn nil, err\n\t}\n\tdefer f.Close()\n\n\tidx := index.NewIndex()\n\treturn idx, json.NewDecoder(f).Decode(idx)\n}", "func (p TreeWriter) index(nodes []*yaml.RNode) map[string][]*yaml.RNode {\n\t// index the ResourceNodes by package\n\tindexByPackage := map[string][]*yaml.RNode{}\n\tfor i := range nodes {\n\t\tmeta, err := nodes[i].GetMeta()\n\t\tif err != nil || meta.Kind == \"\" {\n\t\t\t// not a resource\n\t\t\tcontinue\n\t\t}\n\t\tpkg := filepath.Dir(meta.Annotations[kioutil.PathAnnotation])\n\t\tindexByPackage[pkg] = append(indexByPackage[pkg], nodes[i])\n\t}\n\treturn indexByPackage\n}", "func query(pkg *pkg) error {\n\t// check the indexed packages to see if this new pkg exists\n\tpkg, ok := indexRead(pkg.Name)\n\n\tif !ok {\n\t\treturn missingPackage\n\t}\n\treturn nil\n}", "func (a *annotator) getIndex(w http.ResponseWriter, ps httprouter.Params) int {\n\tidxparam := ps.ByName(\"index\")\n\ti, err := strconv.Atoi(idxparam)\n\n\tif err != nil || i < 0 || i >= len(a.occs) {\n\t\thttp.Error(w, fmt.Sprintf(\"invalid index %q\", idxparam), http.StatusNotFound)\n\t\treturn -1\n\t}\n\treturn i\n}", "func index(w http.ResponseWriter, req *http.Request, ctx httputil.Context) (e *httputil.Error) {\n\tif req.URL.Path != \"/\" {\n\t\tnotFound(w, req)\n\t\treturn\n\t}\n\tm := newManager(ctx)\n\n\tres, err := m.Index()\n\tif err != nil {\n\t\te = httputil.Errorf(err, \"couldn't query for test results\")\n\t\treturn\n\t}\n\n\tw.Header().Set(\"Content-Type\", \"text/html\")\n\tif err := T(\"index/index.html\").Execute(w, res); err != nil {\n\t\te = httputil.Errorf(err, \"error executing index template\")\n\t}\n\treturn\n}", "func (e Es) Query(index string, doc string, query string) (*SearchResult, error) {\n\tif doc != \"\" {\n\t\tdoc = \"/\" + doc\n\t}\n\tbody, err := e.getJSONWithBody(fmt.Sprintf(\"%s%s/_search\", index, doc), query)\n\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\terr = checkError(body)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tallhits, ok := body[\"hits\"].(map[string]interface{})\n\tif !ok {\n\t\treturn nil, fmt.Errorf(\"Failed to retrieve hits from response\")\n\t}\n\n\ttotal := int(allhits[\"total\"].(float64))\n\thits := allhits[\"hits\"].([]interface{})\n\n\tresult := make([]string, len(hits))\n\ti := 0\n\tfor _, hit := range hits {\n\t\trecord, err := utils.MapToYaml(hit)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tresult[i] = record\n\t\ti++\n\t}\n\n\treturn &SearchResult{\n\t\tTotal: total,\n\t\tHits: result,\n\t}, nil\n}", "func (h Helper) ScriptIndexByName(name string) int {\n\tfor i, s := range h.ScriptNames {\n\t\tif s == name {\n\t\t\treturn i\n\t\t}\n\t}\n\treturn -1\n}", "func (m *Main) Query(index, rawQuery, query string) (string, error) {\n\tresp := MustDo(\"POST\", m.URL()+fmt.Sprintf(\"/index/%s/query?\", index)+rawQuery, query)\n\tif resp.StatusCode != http.StatusOK {\n\t\treturn \"\", fmt.Errorf(\"invalid status: %d, body=%s\", resp.StatusCode, resp.Body)\n\t}\n\treturn resp.Body, nil\n}", "func (client *esClient) Query(index, typeName string, queryStrings ...string) (*elastic.SearchResult, error) {\n\tvar queryString string\n\tif len(queryStrings) > 0 {\n\t\tqueryString = queryStrings[0]\n\t}\n\t// 根据名字查询\n\tquery := elastic.NewQueryStringQuery(queryString)\n\tresult, err := client.Search().Index(index).Type(typeName).Query(query).Do(client.ctx)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif result.Hits.TotalHits > 0 {\n\t\treturn result, nil\n\t}\n\treturn nil, errors.New(\"query the result is null\")\n}", "func (c *Monitor) ProfIndex(command string) revel.Result {\n var profs []string\n\n if command != \"\" {\n buf := bytes.NewBuffer([]byte{})\n\n toolbox.ProcessInput(command, buf)\n\n prof := buf.String()\n profs = strings.Split(prof, \"\\n\")\n }\n\n return c.Render(command, profs)\n}", "func getConceptByString(searchTerm string, resultLimit string) string {\n\turl := baseUrl + edition + \"/\" + version + \"/concepts?term=\" + searchTerm + \"&activeFilter=true&offset=0&limit=\" + resultLimit\n\treturn lookup(url)\n}", "func index(w http.ResponseWriter, r *http.Request){\n\terr := templ.ExecuteTemplate(w, \"index\", nil)\n\tif err != nil {\n\t\tfmt.Print(err.Error())\n\t}\n}", "func findIndexInstId(topology *client.IndexTopology, defnId common.IndexDefnId) (common.IndexInstId, error) {\n\n\tfor _, defnRef := range topology.Definitions {\n\t\tif defnRef.DefnId == uint64(defnId) {\n\t\t\tfor _, inst := range defnRef.Instances {\n\t\t\t\treturn common.IndexInstId(inst.InstId), nil\n\t\t\t}\n\t\t}\n\t}\n\n\treturn common.IndexInstId(0), errors.New(fmt.Sprintf(\"Cannot find index instance id for defnition %v\", defnId))\n}", "func ReadIndex(output http.ResponseWriter, reader *http.Request) {\n\tfmt.Fprintln(output, \"ImageManagerAPI v1.0\")\n\tLog(\"info\", \"Endpoint Hit: ReadIndex\")\n}", "func waitForIndex(bucket *base.CouchbaseBucketGoCB, indexName string, queryStatement string) error {\n\n\tfor {\n\t\t_, err := bucket.Query(queryStatement, nil, gocb.RequestPlus, true)\n\t\t// Retry on timeout error, otherwise return\n\t\tif err == nil {\n\t\t\treturn nil\n\t\t}\n\t\tif err == base.ErrViewTimeoutError {\n\t\t\tbase.Logf(\"Timeout waiting for index %q to be ready for bucket %q - retrying...\", base.MD(indexName), base.MD(bucket.GetName()))\n\t\t} else {\n\t\t\treturn err\n\t\t}\n\t}\n\n}", "func searchExact(w http.ResponseWriter, r *http.Request, db *mgo.Database, argPos int) {\n\tkey := r.FormValue(\"key\")\n\tval := r.FormValue(\"val\")\n\n\tcontext := make([]appResult, 0, 10)\n\tvar res *appResult\n\n\tc := db.C(\"machines\")\n\tvar usePath bool\n\tif key == \"apps.path\" {\n\t\tusePath = true\n\t}\n\n\terr := c.Find(bson.M{key: val}).\n\t\tSelect(bson.M{\n\t\t\"hostname\": 1,\n\t\t\"apps\": 1,\n\t\t\"_id\": 1}).\n\t\tSort(\"hostname\").\n\t\tFor(&res, func() error {\n\t\tres.Apps = filter_apps(val, res.Apps, usePath)\n\t\tcontext = append(context, *res)\n\t\treturn nil\n\t})\n\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\thttp.NotFound(w, r)\n\t\treturn\n\t}\n\tset.ExecuteTemplate(w, \"searchresults\", context)\n}", "func GetQueryIndexediv(target uint32, index uint32, pname uint32, params *int32) {\n\tC.glowGetQueryIndexediv(gpGetQueryIndexediv, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetQueryIndexediv(target uint32, index uint32, pname uint32, params *int32) {\n\tC.glowGetQueryIndexediv(gpGetQueryIndexediv, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func Lookup(name string) string {\n\treturn index[name]\n}", "func getIndexName(url string) string {\n\ttokens := strings.Split(url, \"/\")\n\treturn tokens[len(tokens)-2]\n}", "func main() {\n\tif len(os.Args) == 1 {\n\t\tlog.Fatal(\"search term missing\")\n\t\tos.Exit(1)\n\t}\n\tclient, err := xkcd.NewClient()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tclient.Index.Update()\n\tr := client.Search(strings.Join(os.Args[1:], \" \"))\n\n\tfmt.Printf(\"\\n%d comics found\\n\\n\", len(r.Comics))\n\tfor _, comic := range r.Comics {\n\t\tfmt.Println(comic.Title)\n\t\tfmt.Println(comic.Link)\n\t\tfmt.Printf(\"%s\\n\\n--------------\\n\\n\", comic.Transcript)\n\t}\n}", "func resourceShortFormFor(resource string) (string, bool) {\n\tvar alias string\n\texists := false\n\tfor k, val := range shortForms {\n\t\tif val == resource {\n\t\t\talias = k\n\t\t\texists = true\n\t\t\tbreak\n\t\t}\n\t}\n\treturn alias, exists\n}", "func ResourceShortFormFor(resource string) (string, bool) {\n\tvar alias string\n\texists := false\n\tfor _, item := range ResourcesShortcutStatic {\n\t\tif item.LongForm.Resource == resource {\n\t\t\talias = item.ShortForm.Resource\n\t\t\texists = true\n\t\t\tbreak\n\t\t}\n\t}\n\treturn alias, exists\n}", "func (s *scanCoordinator) findIndexInstance(\n\tdefnID uint64, partitionIds []common.PartitionId) (*common.IndexInst, []IndexReaderContext, error) {\n\n\thasIndex := false\n\tisPartition := false\n\n\tctx := make([]IndexReaderContext, len(partitionIds))\n\tmissing := make(map[common.IndexInstId][]common.PartitionId)\n\n\tindexInstMap := s.indexInstMap\n\tindexPartnMap := s.indexPartnMap\n\n\t// Get all instanceId's of interest\n\tinstIdList := s.indexDefnMap[common.IndexDefnId(defnID)]\n\n\tfor _, instId := range instIdList {\n\t\tinst := indexInstMap[instId]\n\t\t// Allow REBAL_PENDING to be scanned. During merge partition, the metadata is updated before inst map is broadcasted. So\n\t\t// there is a chance that cbq is aware of the metadata change ahead of scan coorindator.\n\t\tif inst.State != common.INDEX_STATE_ACTIVE || (inst.RState != common.REBAL_ACTIVE && inst.RState != common.REBAL_PENDING) {\n\t\t\tcontinue\n\t\t}\n\t\tif inst.Defn.DefnId == common.IndexDefnId(defnID) {\n\t\t\thasIndex = true\n\t\t\tisPartition = common.IsPartitioned(inst.Defn.PartitionScheme)\n\t\t\tif pmap, ok := indexPartnMap[inst.InstId]; ok {\n\t\t\t\tfound := true\n\t\t\t\tfor i, partnId := range partitionIds {\n\t\t\t\t\tif partition, ok := pmap[partnId]; ok {\n\t\t\t\t\t\tctx[i] = partition.Sc.GetSliceById(0).GetReaderContext()\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfound = false\n\t\t\t\t\t\tmissing[inst.InstId] = append(missing[inst.InstId], partnId)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif found {\n\t\t\t\t\treturn &inst, ctx, nil\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif hasIndex {\n\t\tif isPartition {\n\t\t\tif content, err := json.Marshal(&missing); err == nil {\n\t\t\t\treturn nil, nil, fmt.Errorf(\"%v:%v\", ErrNotMyPartition, string(content))\n\t\t\t}\n\t\t\treturn nil, nil, ErrNotMyPartition\n\t\t} else {\n\t\t\treturn nil, nil, ErrNotMyIndex\n\t\t}\n\t}\n\n\tif s.isBootstrapMode() {\n\t\t// Since madhatter, scanning of warmed up index during indexer bootstrap\n\t\t// is allowed. If indexer is in bootstrap and index is not found, it implies\n\t\t// index is not warmed up yet. Return IndexNotReady error.\n\t\treturn nil, nil, common.ErrIndexNotReady\n\t}\n\n\treturn nil, nil, common.ErrIndexNotFound\n}", "func (b *Blueprint) indexCommand(typ string, columns []string, index string, algorithm string) *Blueprint {\n\t// if no name was specified for this index, we will create one using a bsaic\n\t// convention of the table name, followed by the columns, followd by an\n\t// index type, such as primary or index, which makes the index unique.\n\tif index == \"\" {\n\t\tindex = b.createIndexName(typ, columns)\n\t}\n\n\treturn b.addCommand(typ, &CommandOptions{\n\t\tIndex: index,\n\t\tColumns: columns,\n\t\tAlgorithm: algorithm,\n\t})\n}", "func ShowIndex(ctx context.Context, db QueryExecutor, schemaName string, table string) ([]*IndexInfo, error) {\n\t/*\n\t\tshow index example result:\n\t\tmysql> show index from test;\n\t\t+-------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+\n\t\t| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |\n\t\t+-------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+\n\t\t| test | 0 | PRIMARY | 1 | id | A | 0 | NULL | NULL | | BTREE | | |\n\t\t| test | 0 | aid | 1 | aid | A | 0 | NULL | NULL | YES | BTREE | | |\n\t\t+-------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+\n\t*/\n\tindices := make([]*IndexInfo, 0, 3)\n\tquery := fmt.Sprintf(\"SHOW INDEX FROM %s\", TableName(schemaName, table))\n\trows, err := db.QueryContext(ctx, query)\n\tif err != nil {\n\t\treturn nil, errors.Trace(err)\n\t}\n\tdefer rows.Close()\n\n\tfor rows.Next() {\n\t\tfields, err1 := ScanRow(rows)\n\t\tif err1 != nil {\n\t\t\treturn nil, errors.Trace(err1)\n\t\t}\n\t\tseqInIndex, err1 := strconv.Atoi(string(fields[\"Seq_in_index\"].Data))\n\t\tif err1 != nil {\n\t\t\treturn nil, errors.Trace(err1)\n\t\t}\n\t\tcardinality, err1 := strconv.Atoi(string(fields[\"Cardinality\"].Data))\n\t\tif err1 != nil {\n\t\t\treturn nil, errors.Trace(err1)\n\t\t}\n\t\tindex := &IndexInfo{\n\t\t\tTable: string(fields[\"Table\"].Data),\n\t\t\tNoneUnique: string(fields[\"Non_unique\"].Data) == \"1\",\n\t\t\tKeyName: string(fields[\"Key_name\"].Data),\n\t\t\tColumnName: string(fields[\"Column_name\"].Data),\n\t\t\tSeqInIndex: seqInIndex,\n\t\t\tCardinality: cardinality,\n\t\t}\n\t\tindices = append(indices, index)\n\t}\n\n\treturn indices, nil\n}", "func (as *API) Index(ctx context.Context, req *pbreq.Index) (*pbresp.Index, error) {\n\tswitch req.GetType() {\n\tcase \"ipld\":\n\t\tbreak\n\tdefault:\n\t\treturn nil, fmt.Errorf(\"invalid data type '%s'\", req.GetType())\n\t}\n\n\tvar name = req.GetIdentifier()\n\tvar reindex = req.GetReindex()\n\tmetaData, err := as.lens.Magnify(name, reindex)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to perform indexing for '%s': %s\",\n\t\t\tname, err.Error())\n\t}\n\n\tvar resp *lens.Object\n\tif !reindex {\n\t\tif resp, err = as.lens.Store(name, metaData); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t} else {\n\t\tb, err := as.lens.Get(name)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to find ID for object '%s'\", name)\n\t\t}\n\t\tid, err := uuid.FromBytes(b)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"invalid uuid found for '%s' ('%s'): %s\",\n\t\t\t\tname, string(b), err.Error())\n\t\t}\n\t\tif resp, err = as.lens.Update(id, name, metaData); err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to update object: %s\", err.Error())\n\t\t}\n\t}\n\n\treturn &pbresp.Index{\n\t\tId: resp.LensID.String(),\n\t\tKeywords: metaData.Summary,\n\t}, nil\n}", "func (m *Command) Query(t testing.TB, index, rawQuery, query string) (string, error) {\n\tresp := Do(t, \"POST\", fmt.Sprintf(\"%s/index/%s/query?%s\", m.URL(), index, rawQuery), query)\n\tif resp.StatusCode != gohttp.StatusOK {\n\t\treturn \"\", fmt.Errorf(\"invalid status: %d, body=%s\", resp.StatusCode, resp.Body)\n\t}\n\treturn resp.Body, nil\n}", "func (m MatchedResources) Query(client *ApiClient, namespace string) (map[string][]byte, error) {\n\tvar err error\n\tresult := make(map[string][]byte)\n\n\tfor res, object := range m.WantRes{\n\t\tfor namespaced, g := range m.Gvr {\n\t\t\tfor _, gvr := range g {\n\t\t\t\tif res != gvr.Resource {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\tj := 0\n\t\t\t\tfor _, k := range object{\n\t\t\t\t\tif namespaced {\n\t\t\t\t\t\tf, err = client.DynClient.Resource(gvr).Namespace(namespace).Get(context.TODO(), k, metav1.GetOptions{})\n\t\t\t\t\t\tif err != nil {\n\t\t\t\t\t\t\treturn nil, err\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tf, err = client.DynClient.Resource(gvr).Get(context.TODO(), k, metav1.GetOptions{})\n\t\t\t\t\t\tif err != nil {\n\t\t\t\t\t\t\treturn nil, err\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\terr = deepCleaning(f)\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\treturn nil, err\n\t\t\t\t\t}\n\n\t\t\t\t\toutput, err := utils.GetPrettyYaml(f)\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\treturn nil, err\n\t\t\t\t\t}\n\t\t\t\t\tresult[fmt.Sprintf(\"%s-%v\", res, j)] = output\n\n\t\t\t\t\tj++\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n\treturn result, nil\n\n}", "func GetIdxFile(ctx *context.Context) {\n\th := httpBase(ctx)\n\tif h != nil {\n\t\th.setHeaderCacheForever()\n\t\th.sendFile(\"application/x-git-packed-objects-toc\", \"objects/pack/pack-\"+ctx.Params(\"file\")+\".idx\")\n\t}\n}", "func (es ES) QueryToolByID(id string) (globals.Perco, error) {\n\tvar tool globals.Perco\n\tsearchResult, err := es.Client.Get().\n\t\tIndex(\"tools\").\n\t\tId(id).\n\t\tDo(es.Context)\n\n\tif err != nil {\n\t\treturn tool, err\n\t}\n\n\tif searchResult.Found {\n\t\tlog.Debug(\"Found a tool matching this ID\")\n\t\terr := json.Unmarshal(*searchResult.Source, &tool)\n\t\ttool.ID = searchResult.Id\n\t\tif err != nil {\n\t\t\treturn tool, err\n\t\t}\n\t}\n\n\treturn tool, nil\n}", "func (c *Context) QueryInt(name string) int {\n\ti, _ := strconv.Atoi(c.Query(name))\n\treturn i\n}", "func getIndexStats(clusterUrl string, plan *Plan) error {\n\n\tcinfo, err := clusterInfoCache(clusterUrl)\n\tif err != nil {\n\t\tlogging.Errorf(\"Planner::getIndexStats: Error from connecting to cluster at %v. Error = %v\", clusterUrl, err)\n\t\treturn err\n\t}\n\n\t// find all nodes that has a index http service\n\tnids := cinfo.GetNodesByServiceType(common.INDEX_HTTP_SERVICE)\n\n\tfor _, nid := range nids {\n\n\t\t// Find the indexer host name\n\t\tnodeId, err := getIndexerHost(cinfo, nid)\n\t\tif err != nil {\n\t\t\tlogging.Errorf(\"Planner::getIndexStats: Error from initializing indexer node. Error = %v\", err)\n\t\t\treturn err\n\t\t}\n\n\t\t// obtain the admin port for the indexer node\n\t\taddr, err := cinfo.GetServiceAddress(nid, common.INDEX_HTTP_SERVICE)\n\t\tif err != nil {\n\t\t\tlogging.Errorf(\"Planner::getIndexStats: Error from getting service address for node %v. Error = %v\", nodeId, err)\n\t\t\treturn err\n\t\t}\n\n\t\t// Read the index stats from the indexer node.\n\t\tstats, err := getLocalStats(addr)\n\t\tif err != nil {\n\t\t\tlogging.Errorf(\"Planner::getIndexStats: Error from reading index stats for node %v. Error = %v\", nodeId, err)\n\t\t\treturn err\n\t\t}\n\n\t\t// look up the corresponding indexer object based on the nodeId\n\t\tindexer := findIndexerByNodeId(plan.Placement, nodeId)\n\t\tstatsMap := stats.ToMap()\n\n\t\t/*\n\t\t\tCpuUsage uint64 `json:\"cpuUsage,omitempty\"`\n\t\t\tDiskUsage uint64 `json:\"diskUsage,omitempty\"`\n\t\t*/\n\n\t\tvar actualStorageMem uint64\n\t\t// memory_used_storage constains the total storage consumption,\n\t\t// including fdb overhead, main index and back index. This also\n\t\t// includes overhead (skip list / back index).\n\t\tif memUsedStorage, ok := statsMap[\"memory_used_storage\"]; ok {\n\t\t\tactualStorageMem = uint64(memUsedStorage.(float64))\n\t\t}\n\n\t\t// memory_used is the memory used by indexer. This includes\n\t\t// golang in-use heap space, golang idle heap space, and\n\t\t// storage memory manager space (e.g. jemalloc heap space).\n\t\tvar actualTotalMem uint64\n\t\tif memUsed, ok := statsMap[\"memory_used\"]; ok {\n\t\t\tactualTotalMem = uint64(memUsed.(float64))\n\t\t}\n\n\t\t// memory_quota is user specified memory quota.\n\t\tif memQuota, ok := statsMap[\"memory_quota\"]; ok {\n\t\t\tplan.MemQuota = uint64(memQuota.(float64))\n\t\t}\n\n\t\t// uptime\n\t\tvar elapsed uint64\n\t\tif uptimeStat, ok := statsMap[\"uptime\"]; ok {\n\t\t\tuptime := uptimeStat.(string)\n\t\t\tif duration, err := time.ParseDuration(uptime); err == nil {\n\t\t\t\telapsed = uint64(duration.Seconds())\n\t\t\t}\n\t\t}\n\n\t\t// cpu core in host. This is the actual num of cpu core, not cpu quota.\n\t\t/*\n\t\t\tvar actualCpuCore uint64\n\t\t\tif cpuCore, ok := statsMap[\"num_cpu_core\"]; ok {\n\t\t\t\tactualCpuCore = uint64(cpuCore.(float64))\n\t\t\t}\n\t\t*/\n\n\t\t// cpu utilization for the indexer process\n\t\tvar actualCpuUtil float64\n\t\tif cpuUtil, ok := statsMap[\"cpu_utilization\"]; ok {\n\t\t\tactualCpuUtil = cpuUtil.(float64) / 100\n\t\t}\n\n\t\tvar totalDataSize uint64\n\t\tvar totalMutation uint64\n\t\tvar totalScan uint64\n\t\tfor _, index := range indexer.Indexes {\n\n\t\t\t/*\n\t\t\t\tCpuUsage uint64 `json:\"cpuUsage,omitempty\"`\n\t\t\t\tDiskUsage uint64 `json:\"diskUsage,omitempty\"`\n\t\t\t*/\n\n\t\t\tvar key string\n\n\t\t\tindexName := index.GetDisplayName()\n\n\t\t\t// items_count captures number of key per index\n\t\t\tkey = fmt.Sprintf(\"%v:%v:items_count\", index.Bucket, indexName)\n\t\t\tif itemsCount, ok := statsMap[key]; ok {\n\t\t\t\tindex.NumOfDocs = uint64(itemsCount.(float64))\n\t\t\t}\n\n\t\t\t// data_size is the total key size of index, excluding back index overhead.\n\t\t\t// Therefore data_size is typically smaller than index sizing equation which\n\t\t\t// includes overhead for back-index.\n\t\t\tkey = fmt.Sprintf(\"%v:%v:data_size\", index.Bucket, indexName)\n\t\t\tif dataSize, ok := statsMap[key]; ok {\n\t\t\t\tindex.ActualMemUsage = uint64(dataSize.(float64))\n\t\t\t\ttotalDataSize += index.ActualMemUsage\n\t\t\t}\n\n\t\t\t// avg_sec_key_size is currently unavailable in 4.5. To estimate,\n\t\t\t// the key size, it divides index data_size by items_count. This\n\t\t\t// contains sec key size + doc key size + main index overhead (74 bytes).\n\t\t\t// Subtract 74 bytes to get sec key size.\n\t\t\tkey = fmt.Sprintf(\"%v:%v:avg_sec_key_size\", index.Bucket, indexName)\n\t\t\tif avgSecKeySize, ok := statsMap[key]; ok {\n\t\t\t\tindex.AvgSecKeySize = uint64(avgSecKeySize.(float64))\n\t\t\t} else if !index.IsPrimary {\n\t\t\t\t// Aproximate AvgSecKeySize. AvgSecKeySize includes both\n\t\t\t\t// sec key len + doc key len\n\t\t\t\tif index.NumOfDocs != 0 && index.ActualMemUsage != 0 {\n\t\t\t\t\tindex.ActualKeySize = index.ActualMemUsage / index.NumOfDocs\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// These stats are currently unavailable in 4.5.\n\t\t\tkey = fmt.Sprintf(\"%v:%v:avg_doc_key_size\", index.Bucket, indexName)\n\t\t\tif avgDocKeySize, ok := statsMap[key]; ok {\n\t\t\t\tindex.AvgDocKeySize = uint64(avgDocKeySize.(float64))\n\t\t\t} else if index.IsPrimary {\n\t\t\t\t// Aproximate AvgDocKeySize. Subtract 74 bytes for main\n\t\t\t\t// index overhead\n\t\t\t\tif index.NumOfDocs != 0 && index.ActualMemUsage != 0 {\n\t\t\t\t\tindex.ActualKeySize = index.ActualMemUsage / index.NumOfDocs\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// These stats are currently unavailable in 4.5.\n\t\t\tkey = fmt.Sprintf(\"%v:%v:avg_arr_size\", index.Bucket, indexName)\n\t\t\tif avgArrSize, ok := statsMap[key]; ok {\n\t\t\t\tindex.AvgArrSize = uint64(avgArrSize.(float64))\n\t\t\t}\n\n\t\t\t// These stats are currently unavailable in 4.5.\n\t\t\tkey = fmt.Sprintf(\"%v:%v:avg_arr_key_size\", index.Bucket, indexName)\n\t\t\tif avgArrKeySize, ok := statsMap[key]; ok {\n\t\t\t\tindex.AvgArrKeySize = uint64(avgArrKeySize.(float64))\n\t\t\t}\n\n\t\t\t// These stats are currently unavailable in 4.5.\n\t\t\tkey = fmt.Sprintf(\"%v:%v:avg_drain_rate\", index.Bucket, indexName)\n\t\t\tif avgMutationRate, ok := statsMap[key]; ok {\n\t\t\t\tindex.MutationRate = uint64(avgMutationRate.(float64))\n\t\t\t\ttotalMutation += index.MutationRate\n\t\t\t} else {\n\t\t\t\tkey = fmt.Sprintf(\"%v:%v:num_flush_queued\", index.Bucket, indexName)\n\t\t\t\tif flushQueuedStat, ok := statsMap[key]; ok {\n\t\t\t\t\tflushQueued := uint64(flushQueuedStat.(float64))\n\n\t\t\t\t\tif flushQueued != 0 {\n\t\t\t\t\t\tindex.MutationRate = flushQueued / elapsed\n\t\t\t\t\t\ttotalMutation += index.MutationRate\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// These stats are currently unavailable in 4.5.\n\t\t\tkey = fmt.Sprintf(\"%v:%v:avg_scan_rate\", index.Bucket, indexName)\n\t\t\tif avgScanRate, ok := statsMap[key]; ok {\n\t\t\t\tindex.ScanRate = uint64(avgScanRate.(float64))\n\t\t\t\ttotalScan += index.ScanRate\n\t\t\t} else {\n\t\t\t\tkey = fmt.Sprintf(\"%v:%v:num_rows_returned\", index.Bucket, indexName)\n\t\t\t\tif rowReturnedStat, ok := statsMap[key]; ok {\n\t\t\t\t\trowReturned := uint64(rowReturnedStat.(float64))\n\n\t\t\t\t\tif rowReturned != 0 {\n\t\t\t\t\t\tindex.ScanRate = rowReturned / elapsed\n\t\t\t\t\t\ttotalScan += index.ScanRate\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// compute the estimated memory usage for each index. This also computes\n\t\t// the aggregated indexer mem usage. Mem usage can be 0 if\n\t\t// 1) there is no index stats\n\t\t// 2) index has no data (datasize = 0) (e.g. deferred index)\n\t\tfor _, index := range indexer.Indexes {\n\t\t\tratio := float64(0)\n\t\t\tif totalDataSize != 0 {\n\t\t\t\tratio = float64(index.ActualMemUsage) / float64(totalDataSize)\n\t\t\t}\n\n\t\t\tindex.ActualMemUsage = uint64(float64(actualStorageMem) * ratio)\n\n\t\t\tif actualTotalMem > actualStorageMem {\n\t\t\t\tindex.ActualMemOverhead = uint64(float64(actualTotalMem-actualStorageMem) * ratio)\n\t\t\t} else {\n\t\t\t\tindex.ActualMemOverhead = 0\n\t\t\t}\n\n\t\t\tif index.ActualMemUsage != 0 {\n\t\t\t\tindex.NoUsage = false\n\t\t\t}\n\n\t\t\tindexer.ActualMemUsage += index.ActualMemUsage\n\t\t\tindexer.ActualMemOverhead += index.ActualMemOverhead\n\t\t}\n\n\t\t// compute the estimated cpu usage for each index. This also computes the\n\t\t// aggregated indexer cpu usage. CPU usge can be 0 if\n\t\t// 1) there is no index stats\n\t\t// 2) index has no scan or mutation (e.g. deferred index)\n\t\tfor _, index := range indexer.Indexes {\n\n\t\t\tmutationRatio := float64(0)\n\t\t\tif totalMutation != 0 {\n\t\t\t\tmutationRatio = float64(index.MutationRate) / float64(totalMutation)\n\t\t\t}\n\n\t\t\tscanRatio := float64(0)\n\t\t\tif totalScan != 0 {\n\t\t\t\tscanRatio = float64(index.ScanRate) / float64(totalScan)\n\t\t\t}\n\n\t\t\tratio := mutationRatio\n\t\t\tif scanRatio != 0 {\n\t\t\t\tif mutationRatio != 0 {\n\t\t\t\t\t// mutation uses 5 times less cpu than scan\n\t\t\t\t\tratio = ((mutationRatio / 5) + scanRatio) / 2\n\t\t\t\t} else {\n\t\t\t\t\tratio = scanRatio\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tusage := float64(actualCpuUtil) * ratio\n\n\t\t\tif usage > 0 {\n\t\t\t\tindex.ActualCpuUsage = usage\n\t\t\t\tindex.NoUsage = false\n\t\t\t}\n\n\t\t\tindexer.ActualCpuUsage += index.ActualCpuUsage\n\t\t}\n\t}\n\n\treturn nil\n}", "func (s *service) lookupExecutable(w http.ResponseWriter, r *http.Request, p httprouter.Params) {\n\texists, err := s.store.ExecutableExists(p.ByName(\"hash\"))\n\tif err != nil {\n\t\ts.logger.Warn(\"looking up executable\", \"hash\", p.ByName(\"hash\"), \"err\", err)\n\t\twriteError(w, http.StatusInternalServerError, err)\n\t\treturn\n\t}\n\n\tif !exists {\n\t\twriteError(w, http.StatusNotFound, errors.New(`not found`))\n\t\treturn\n\t}\n\n\twrite(w, http.StatusOK, map[string]interface{}{\"found\": true})\n}", "func (m *Module) indexNamedConst(goConst *ssa.NamedConst) error {\n\t// TODO: index named constant as LLVM IR constant global variable.\n\tpanic(\"not yet implemented\")\n}", "func (q *QueryGVR) resourceExists(resources []*metav1.APIResourceList) bool {\n\tif len(resources) == 0 {\n\t\treturn false\n\t}\n\tfor i := range resources {\n\t\tif resources[i] != nil {\n\t\t\tfor j := range resources[i].APIResources {\n\t\t\t\tif resources[i].APIResources[j].Name == q.resource.String {\n\t\t\t\t\treturn true\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn false\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *int8) uint32 {\n ret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n return (uint32)(ret)\n}", "func (i indexer) Index(ctx context.Context, req IndexQuery) (\n\tresp *IndexResult, err error) {\n\n\tlog.Info(\"index [%v] root [%v] len_dirs=%v len_files=%v\",\n\t\treq.Key, req.Root, len(req.Dirs), len(req.Files))\n\tstart := time.Now()\n\t// Setup the response\n\tresp = NewIndexResult()\n\tif err = req.Normalize(); err != nil {\n\t\tlog.Info(\"index [%v] error: %v\", req.Key, err)\n\t\tresp.Error = errs.NewStructError(err)\n\t\treturn\n\t}\n\n\t// create index shards\n\tvar nshards int\n\tif nshards = i.cfg.NumShards; nshards == 0 {\n\t\tnshards = 1\n\t}\n\tnshards = utils.MinInt(nshards, maxShards)\n\ti.shards = make([]index.IndexWriter, nshards)\n\ti.root = getRoot(i.cfg, &req)\n\n\tfor n := range i.shards {\n\t\tname := path.Join(i.root, shardName(req.Key, n))\n\t\tixw, err := getIndexWriter(ctx, name)\n\t\tif err != nil {\n\t\t\tresp.Error = errs.NewStructError(err)\n\t\t\treturn resp, nil\n\t\t}\n\t\ti.shards[n] = ixw\n\t}\n\n\tfs := getFileSystem(ctx, i.root)\n\trepo := newRepoFromQuery(&req, i.root)\n\trepo.SetMeta(i.cfg.RepoMeta, req.Meta)\n\tresp.Repo = repo\n\n\t// Add query Files and scan Dirs for files to index\n\tnames, err := i.scanner(fs, &req)\n\tch := make(chan int, nshards)\n\tchnames := make(chan string, 100)\n\tgo func() {\n\t\tfor _, name := range names {\n\t\t\tchnames <- name\n\t\t}\n\t\tclose(chnames)\n\t}()\n\treqch := make(chan par.RequestFunc, nshards)\n\tfor _, shard := range i.shards {\n\t\treqch <- indexShard(&i, &req, shard, fs, chnames, ch)\n\t}\n\tclose(reqch)\n\terr = par.Requests(reqch).WithConcurrency(nshards).DoWithContext(ctx)\n\tclose(ch)\n\n\t// Await results, each indicating the number of files scanned\n\tfor num := range ch {\n\t\trepo.NumFiles += num\n\t}\n\n\trepo.NumShards = len(i.shards)\n\t// Flush our index shard files\n\tfor _, shard := range i.shards {\n\t\tshard.Flush()\n\t\trepo.SizeIndex += ByteSize(shard.IndexBytes())\n\t\trepo.SizeData += ByteSize(shard.DataBytes())\n\t\tlog.Debug(\"index flush %v (data) %v (index)\",\n\t\t\trepo.SizeData, repo.SizeIndex)\n\t}\n\trepo.ElapsedIndexing = time.Since(start)\n\trepo.TimeUpdated = time.Now().UTC()\n\n\tvar msg string\n\tif err != nil {\n\t\trepo.State = ERROR\n\t\tresp.SetError(err)\n\t\tmsg = \"error: \" + resp.Error.Error()\n\t} else {\n\t\trepo.State = OK\n\t\tmsg = \"ok \" + fmt.Sprintf(\n\t\t\t\"(%v files, %v data, %v index)\",\n\t\t\trepo.NumFiles, repo.SizeData, repo.SizeIndex)\n\t}\n\tlog.Info(\"index [%v] %v [%v]\", req.Key, msg, repo.ElapsedIndexing)\n\treturn\n}", "func getIndexContent(name string) string {\n\treturn fmt.Sprintf(`export { default } from \"./%s\";`, name)\n}", "func fetchIndex(url string) (*index.Index, error) {\n\tresp, err := req.Request{URL: url + \"/\" + INDEX_NAME}.Get()\n\n\tif err != nil {\n\t\treturn nil, fmtc.Errorf(\"Can't fetch repository index: %v\", err)\n\t}\n\n\tif resp.StatusCode != 200 {\n\t\treturn nil, fmtc.Errorf(\"Can't fetch repository index: server return status code %d\", resp.StatusCode)\n\t}\n\n\trepoIndex := &index.Index{}\n\terr = resp.JSON(repoIndex)\n\n\tif err != nil {\n\t\treturn nil, fmtc.Errorf(\"Can't decode repository index: %v\", err)\n\t}\n\n\treturn repoIndex, nil\n}", "func TestLookupByIndex(t *testing.T) {\n\t// Constants\n\tconst (\n\t\tifName0 = \"if0\"\n\t\tipAddr0 = \"192.168.0.1/24\"\n\t\tipAddr1 = \"192.168.1.1/24\"\n\t\tidx0 uint32 = 0\n\t)\n\n\t_, index, interfaces := testInitialization(t, map[string][]string{\n\t\tifName0: {ipAddr0, ipAddr1},\n\t})\n\n\tif0 := interfaces[0]\n\tindex.RegisterName(if0.Name, idx0, if0)\n\n\tfoundIdx, metadata, exist := index.LookupIdx(ifName0)\n\tExpect(exist).To(BeTrue())\n\tExpect(foundIdx).To(Equal(idx0))\n\tExpect(metadata).To(Equal(if0))\n}", "func (self *Script) getOutputIdxByName(name string) int {\n for i, def := range self.OutputDefs {\n if def.Name == name {\n return i\n }\n }\n return -1\n}", "func getCmdIndex(search *parse.CommandNode, into *parse.PipeNode) int {\n\tfor i, cmd := range into.Cmds {\n\t\tif search == cmd {\n\t\t\treturn i\n\t\t}\n\t}\n\treturn -1\n}", "func (c *Client) ItemTypeIndex() (*response.ItemTypeIndex, error) {\n\tvar data *d3.ItemTypeIndex\n\n\tep := endpointItemTypeIndex(c.region)\n\n\tq, err := c.get(ep, &data)\n\n\tif nil != err {\n\t\treturn nil, err\n\t}\n\n\treturn &response.ItemTypeIndex{\n\t\tData: data,\n\t\tEndpoint: ep,\n\t\tQuota: q,\n\t\tRegion: c.region,\n\t}, nil\n}", "func TestGetIndexPath(t *testing.T) {\n\tr := GetIndexPath(*TestProject)\n\tt.Logf(\"Result:%v\\n\", r)\n}", "func Find(name string) (string, bool) { q, ok := queries[name]; return q, ok }", "func (h Helper) ScriptIndexByPath(path string) int {\n\tfor i, s := range h.ScriptNames {\n\t\tif JoinPath(h.Worspace, s) == path {\n\t\t\treturn i\n\t\t}\n\t}\n\treturn -1\n}", "func (_Storage *StorageCaller) PermissionIndexOf(opts *bind.CallOpts, kind uint8, addr common.Address) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _Storage.contract.Call(opts, out, \"permissionIndexOf\", kind, addr)\n\treturn *ret0, err\n}", "func (p *NoteStoreClient) GetResourceSearchText(ctx context.Context, authenticationToken string, guid Types.Guid) (r string, userException *Errors.EDAMUserException, systemException *Errors.EDAMSystemException, notFoundException *Errors.EDAMNotFoundException, err error) {\n\tif err = p.sendGetResourceSearchText(ctx, authenticationToken, guid); err != nil {\n\t\treturn\n\t}\n\treturn p.recvGetResourceSearchText(ctx)\n}", "func (r *AWSGatewayReconciler) SearchResourceID(input util.TerraVars) util.TerraVars {\n\toutput := input\n\n\tif input.VPCName != \"\" && input.VPCID == \"\" {\n\t\tvpc := &terraformv1alpha1.AWSVPC{}\n\t\tr.Get(context.TODO(), types.NamespacedName{Name: input.VPCName, Namespace: input.Namespace}, vpc)\n\t\toutput.VPCID = vpc.Spec.ID\n\t}\n\n\treturn output\n}", "func ExampleTerm_GetAllByIndex() {\n\t// Fetch the row from the database\n\tres, err := DB(\"examples\").Table(\"heroes\").GetAllByIndex(\"code_name\", \"man_of_steel\").Run(session)\n\tif err != nil {\n\t\tfmt.Print(err)\n\t\treturn\n\t}\n\tdefer res.Close()\n\n\tif res.IsNil() {\n\t\tfmt.Print(\"Row not found\")\n\t\treturn\n\t}\n\n\tvar hero map[string]interface{}\n\terr = res.One(&hero)\n\tif err != nil {\n\t\tfmt.Printf(\"Error scanning database result: %s\", err)\n\t\treturn\n\t}\n\tfmt.Print(hero[\"name\"])\n\n\t// Output: Superman\n}", "func (x *Index) Lookup(s []byte, n int) (result []int) {}", "func main() {\n\tresult, err := xkcd.SearchSingle()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Println(result.Items[0].Title)\n\tif err := report.Execute(os.Stdout, result); err != nil {\n\t\tlog.Fatal(err)\n\t}\n}", "func (*SearchRes) Descriptor() ([]byte, []int) {\n\treturn file_helm_api_proto_rawDescGZIP(), []int{25}\n}", "func getResource(mapping *meta.RESTMapping, config *rest.Config, group string,\n\tversion string, namespace string, name string) error {\n\trestClient, err := getRESTClient(config, group, version)\n\tif err != nil {\n\t\treturn &kfapis.KfError{\n\t\t\tCode: int(kfapis.INVALID_ARGUMENT),\n\t\t\tMessage: fmt.Sprintf(\"getResource error: %v\", err),\n\t\t}\n\t}\n\n\tif _, err = restClient.\n\t\tGet().\n\t\tResource(mapping.Resource.Resource).\n\t\tNamespaceIfScoped(namespace, mapping.Scope.Name() == \"namespace\").\n\t\tName(name).\n\t\tDo().\n\t\tGet(); err == nil {\n\t\treturn nil\n\t} else {\n\t\treturn &kfapis.KfError{\n\t\t\tCode: int(kfapis.INVALID_ARGUMENT),\n\t\t\tMessage: fmt.Sprintf(\"getResource error: %v\", err),\n\t\t}\n\t}\n}", "func (s ConsoleIndexStore) GetIndex(string) (i Index, e error) {\n\treturn IndexFromReader(os.Stdin)\n}", "func GetResByName(name string) Res {\n\tfor _, r := range resources {\n\t\tif r.GetName() == name {\n\t\t\treturn r\n\t\t}\n\t}\n\n\treturn nil\n}", "func (sw *scanWrap) Index(name string) Scan {\n\treturn &scanWrap{\n\t\tscan: sw.scan.Index(name),\n\t}\n}", "func GetIndex(ctx context.Context) (string, error) {\n\tclient := urlfetch.Client(ctx)\n\n\tresp, err := client.Get(\"http://jsonplaceholder.typicode.com/posts\")\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\tbody, err := ioutil.ReadAll(resp.Body)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\treturn string(body), nil\n}", "func index(w http.ResponseWriter, r *http.Request) {\n\tfmt.Fprint(w, \"index de uma função\")\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **int8, uniformIndices *uint32) {\n C.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func GetProgrami(p Program, pname Enum) int {\n\tvar result int32\n\tgl.GetProgramiv(p.Value, uint32(pname), &result)\n\treturn int(result)\n}", "func (p *program) getAddrIndex(n int) int {\n\tparameter := p.mem[p.pc+n]\n\tmode := p.instructionMode(n)\n\n\tif mode == 0 {\n\t\treturn parameter\n\t} else if mode == 2 {\n\t\treturn p.base + parameter\n\t} else {\n\t\tpanic(\"unsupported immediate mode for writing\")\n\t}\n}", "func main() {\n // perform the search for the specified term\n search.Run(\"president\")\n}" ]
[ "0.6828582", "0.66980857", "0.65937686", "0.6591589", "0.64495003", "0.64495003", "0.63328", "0.6178024", "0.59371805", "0.58702815", "0.5733078", "0.5699194", "0.5602976", "0.5578931", "0.5531932", "0.5522852", "0.5485733", "0.5485733", "0.5485393", "0.5458875", "0.53872293", "0.535358", "0.5311572", "0.5280971", "0.5228748", "0.52078265", "0.51733685", "0.51615894", "0.5154194", "0.5154194", "0.51263726", "0.5125651", "0.506696", "0.5057992", "0.50404495", "0.5039229", "0.502696", "0.5020843", "0.5009639", "0.5006844", "0.4986772", "0.4983973", "0.49787962", "0.49709707", "0.49530438", "0.4952796", "0.4932296", "0.4924844", "0.4910575", "0.49062976", "0.48942643", "0.4892744", "0.4892744", "0.4879935", "0.4876012", "0.48732498", "0.48701414", "0.48457447", "0.4842321", "0.4831159", "0.48310885", "0.48306203", "0.4820793", "0.48132613", "0.48089948", "0.4808558", "0.4793591", "0.4793551", "0.47930896", "0.47895563", "0.47792754", "0.47628254", "0.47581923", "0.4758052", "0.47531575", "0.47390833", "0.47359893", "0.47291204", "0.4726104", "0.4721413", "0.4714792", "0.47139338", "0.4711063", "0.47069076", "0.47001234", "0.46990883", "0.46937466", "0.46903774", "0.46839842", "0.46700504", "0.46698412", "0.4669585", "0.466846", "0.46679744", "0.46668008", "0.4661759", "0.4659507", "0.46558225", "0.46550155" ]
0.64880383
5
query the location of a named resource within a program
func GetProgramResourceLocation(program uint32, programInterface uint32, name *uint8) int32 { ret := C.glowGetProgramResourceLocation(gpGetProgramResourceLocation, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name))) return (int32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetProgramResourceLocation(program uint32, programInterface uint32, name *int8) int32 {\n ret := C.glowGetProgramResourceLocation(gpGetProgramResourceLocation, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetProgramResourceLocation(program uint32, programInterface uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetProgramResourceLocation, 3, uintptr(program), uintptr(programInterface), uintptr(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *int8) int32 {\n ret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetProgramResourceLocationIndex, 3, uintptr(program), uintptr(programInterface), uintptr(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *int8) {\n C.glowGetProgramResourceName(gpGetProgramResourceName, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *uint8) int32 {\n\tret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *uint8) int32 {\n\tret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tsyscall.Syscall6(gpGetProgramResourceName, 6, uintptr(program), uintptr(programInterface), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(name)))\n}", "func (m *LongRunningOperation) GetResourceLocation()(*string) {\n val, err := m.GetBackingStore().Get(\"resourceLocation\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.(*string)\n }\n return nil\n}", "func DetermineResourcePath(staticDir string, resourceDir string, devDir string) (string, error) {\n\t//check \"dev\" directory first\n\tappLoc := filepath.Join(staticDir, devDir)\n\t// if !strings.HasPrefix(appLoc, \"/\") {\n\t// \t// Prepend the binary's directory path if appLoc is relative\n\t// \tdir, err := filepath.Abs(filepath.Dir(os.Args[0]))\n\t// \tif err != nil {\n\t// \t\treturn \"\", err\n\t// \t}\n\n\t// \tappLoc = filepath.Join(dir, appLoc)\n\t// }\n\tif _, err := os.Stat(appLoc); os.IsNotExist(err) {\n\t\t//check dist directory\n\t\tappLoc = filepath.Join(staticDir, resourceDir)\n\t\t// if !strings.HasPrefix(appLoc, \"/\") {\n\t\t// \t// Prepend the binary's directory path if appLoc is relative\n\t\t// \tdir, err := filepath.Abs(filepath.Dir(os.Args[0]))\n\t\t// \tif err != nil {\n\t\t// \t\treturn \"\", err\n\t\t// \t}\n\n\t\t// \tappLoc = filepath.Join(dir, appLoc)\n\t\t// }\n\n\t\tif _, err := os.Stat(appLoc); os.IsNotExist(err) {\n\t\t\treturn \"\", err\n\t\t}\n\t}\n\n\treturn appLoc, nil\n}", "func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetProgramResourceName(gpGetProgramResourceName, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetProgramResourceName(gpGetProgramResourceName, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func Resource(p ...string) string {\n\treturn path.Join(append([]string{home}, p...)...)\n}", "func GetProgramResourceIndex(program uint32, programInterface uint32, name *int8) uint32 {\n ret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (uint32)(ret)\n}", "func getResource(name string, taskInfo *mesos.TaskInfo) *mesos.Resource {\n\tfor _, resource := range taskInfo.Resources {\n\t\tif *resource.Name == name {\n\t\t\treturn resource\n\t\t}\n\t}\n\n\treturn nil\n}", "func (r *REST) ResourceLocation(ctx api.Context, id string) (*url.URL, http.RoundTripper, error) {\n\treturn node.ResourceLocation(r, r, r.proxyTransport, ctx, id)\n}", "func (i *Resource) Location() string {\n\treturn i.data.Location\n}", "func LocateAppResource(helmer helm.Helmer, chartDir string, appName string) (*jenkinsv1.App,\n\tstring, error) {\n\n\ttemplateWorkDir := filepath.Join(chartDir, \"output\")\n\ttemplateWorkDirExists, err := util.DirExists(templateWorkDir)\n\tif err != nil {\n\t\treturn nil, \"\", err\n\t}\n\tif !templateWorkDirExists {\n\t\terr = os.Mkdir(templateWorkDir, os.ModePerm)\n\t\tif err != nil {\n\t\t\treturn nil, \"\", errors.Wrapf(err, \"creating template work dir %s\", templateWorkDir)\n\t\t}\n\t}\n\tdefaultApp := &jenkinsv1.App{\n\t\tTypeMeta: metav1.TypeMeta{\n\t\t\tKind: \"App\",\n\t\t\tAPIVersion: jenkinsio.GroupName + \"/\" + jenkinsio.Version,\n\t\t},\n\t\tObjectMeta: metav1.ObjectMeta{\n\t\t\tName: appName,\n\t\t},\n\t\tSpec: jenkinsv1.AppSpec{},\n\t}\n\terr = helmer.Template(chartDir, appName, \"\", templateWorkDir, false, make([]string, 0), make([]string, 0), make([]string, 0))\n\tif err != nil {\n\t\ttemplateWorkDir = chartDir\n\t}\n\tcompletedTemplatesDir := filepath.Join(templateWorkDir, appName, \"templates\")\n\ttemplates, _ := ioutil.ReadDir(completedTemplatesDir)\n\n\tfilename := \"app.yaml\"\n\tpossibles := make([]string, 0)\n\tapp := &jenkinsv1.App{}\n\tfor _, template := range templates {\n\t\tappBytes, err := ioutil.ReadFile(filepath.Join(completedTemplatesDir, template.Name()))\n\t\tif err != nil {\n\t\t\treturn nil, \"\", errors.Wrapf(err, \"reading file %s\", filename)\n\t\t}\n\t\terr = yaml.Unmarshal(appBytes, app)\n\t\tif err == nil {\n\t\t\tif app.Kind == \"App\" {\n\t\t\t\t// Use the first located resource\n\t\t\t\tfilename = template.Name()\n\t\t\t\tpossibles = append(possibles, app.Name)\n\t\t\t}\n\t\t}\n\t}\n\n\tswitch size := len(possibles); {\n\tcase size > 1:\n\t\treturn nil, \"\", errors.Errorf(\"at most one resource of Kind: App can be specified but found %v\", possibles)\n\tcase size == 0:\n\t\t//If we are adding a generated app, we need the placeholder to be the App object, otherwise a random one\n\t\t//from templates is going to be used instead\n\t\tapp = defaultApp\n\t}\n\n\treturn app, filename, nil\n}", "func GetResourcePath(p string) string {\n\tif dir, exists := os.LookupEnv(testSrcDir); exists {\n\t\treturn filepath.Join(dir, \"workspace\", p)\n\t}\n\tbinPath, err := os.Executable()\n\tif err != nil {\n\t\tglog.Warning(\"Cannot find excutable path\")\n\t\treturn p\n\t}\n\treturn filepath.Join(binPath+runfilesSuffix, pathPrefix, p)\n}", "func QueryForResource(resource, version string) string {\n\treturn fmt.Sprintf(\"data.%s\", ResourcePolicyModuleName(resource, version))\n}", "func GetProgramResourceIndex(program uint32, programInterface uint32, name *uint8) uint32 {\n\tret, _, _ := syscall.Syscall(gpGetProgramResourceIndex, 3, uintptr(program), uintptr(programInterface), uintptr(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func (m *WorkbookOperation) GetResourceLocation()(*string) {\n return m.resourceLocation\n}", "func GetProgramResourceIndex(program uint32, programInterface uint32, name *uint8) uint32 {\n\tret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func GetProgramResourceIndex(program uint32, programInterface uint32, name *uint8) uint32 {\n\tret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func (api *API) FindLocation(name string) (*models.LocationResource, error) {\n\tqueryParams := make(map[string]string)\n\tqueryParams[\"name\"] = name\n\tcontents, getErr := api.getResource(\"location\", queryParams)\n\tif getErr != nil {\n\t\tlog.Print(\"Error making api call to find location\")\n\t\treturn nil, getErr\n\t}\n\n\tdata := &models.LocationBundle{}\n\tif err := json.Unmarshal(contents, data); err != nil {\n\t\tlog.Print(\"Error unmarshalling locations\")\n\t\treturn nil, err\n\t}\n\n\tif len(data.Entry) != 1 {\n\t\treturn nil, nil\n\t}\n\n\treturn &data.Entry[0].Resource, nil\n}", "func lookupPath(exe string) string {\n\texePath, ok := commandPaths[exe]\n\tif ok {\n\t\treturn exePath\n\t}\n\n\tvar err error\n\texePath, err = exec.LookPath(exe)\n\tif err != nil {\n\t\tlog.Fatalf(\"Not installed: %s\\n\", exe)\n\t}\n\tcommandPaths[exe] = exePath\n\treturn exePath\n}", "func (m *TeamsAsyncOperation) GetTargetResourceLocation()(*string) {\n return m.targetResourceLocation\n}", "func (k LocalClient) LookPath() (string, error) { return exec.LookPath(Command) }", "func (c *client) LocateResource(resource ResourceName) (string, error) {\n\tconn, _, err := zk.Connect(c.zks, c.sessionTimeout)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"error connecting to ZooKeeper at %v: %s\", c.zks, err)\n\t}\n\tdefer conn.Close()\n\n\tbuf, _, err := conn.Get(string(resource))\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"failed to read the %s znode: %s\", resource, err)\n\t}\n\tif len(buf) == 0 {\n\t\tlog.Fatalf(\"%s was empty!\", resource)\n\t} else if buf[0] != 0xFF {\n\t\treturn \"\", fmt.Errorf(\"the first byte of %s was 0x%x, not 0xFF\", resource, buf[0])\n\t}\n\tmetadataLen := binary.BigEndian.Uint32(buf[1:])\n\tif metadataLen < 1 || metadataLen > 65000 {\n\t\treturn \"\", fmt.Errorf(\"invalid metadata length for %s: %d\", resource, metadataLen)\n\t}\n\tbuf = buf[1+4+metadataLen:]\n\tmagic := binary.BigEndian.Uint32(buf)\n\tconst pbufMagic = 1346524486 // 4 bytes: \"PBUF\"\n\tif magic != pbufMagic {\n\t\treturn \"\", fmt.Errorf(\"invalid magic number for %s: %d\", resource, magic)\n\t}\n\tbuf = buf[4:]\n\tvar server *pb.ServerName\n\tif resource == Meta {\n\t\tmeta := &pb.MetaRegionServer{}\n\t\terr = proto.Unmarshal(buf, meta)\n\t\tif err != nil {\n\t\t\treturn \"\",\n\t\t\t\tfmt.Errorf(\"failed to deserialize the MetaRegionServer entry from ZK: %s\", err)\n\t\t}\n\t\tserver = meta.Server\n\t} else {\n\t\tmaster := &pb.Master{}\n\t\terr = proto.Unmarshal(buf, master)\n\t\tif err != nil {\n\t\t\treturn \"\",\n\t\t\t\tfmt.Errorf(\"failed to deserialize the Master entry from ZK: %s\", err)\n\t\t}\n\t\tserver = master.Master\n\t}\n\treturn net.JoinHostPort(*server.HostName, fmt.Sprint(*server.Port)), nil\n}", "func ResourceShortFormFor(resource string) (string, bool) {\n\tvar alias string\n\texists := false\n\tfor _, item := range ResourcesShortcutStatic {\n\t\tif item.LongForm.Resource == resource {\n\t\t\talias = item.ShortForm.Resource\n\t\t\texists = true\n\t\t\tbreak\n\t\t}\n\t}\n\treturn alias, exists\n}", "func (sys *System) findLocation(ctx *Context, name string, check bool) (*Location, error) {\n\tLog(DEBUG, ctx, \"System.findLocation\", \"name\", name, \"check\", check)\n\tcheck = check && sys.checkingExistence(ctx)\n\treturn sys.CachedLocations.Open(ctx, sys, name, check)\n}", "func (db *LDB) Location() string {\n return db.path\n}", "func resourceShortFormFor(resource string) (string, bool) {\n\tvar alias string\n\texists := false\n\tfor k, val := range shortForms {\n\t\tif val == resource {\n\t\t\talias = k\n\t\t\texists = true\n\t\t\tbreak\n\t\t}\n\t}\n\treturn alias, exists\n}", "func GetResByPath(path string) Res {\n\tfor _, r := range resources {\n\t\tif r.GetPath() == path {\n\t\t\treturn r\n\t\t}\n\t}\n\n\treturn nil\n}", "func (jid JID) Resource() string {\n\tif i := strings.Index(string(jid), \"/\"); i != -1 {\n\t\treturn string(jid[i+1:])\n\t}\n\treturn \"\"\n}", "func Location() (string, error) {\n\tslice, err := loader(\"locations\")\n\tcheckErr(err)\n\treturn random(slice), nil\n}", "func getResourceDirectoryPath() (directory string, err error) {\n\t_, filename, _, ok := runtime.Caller(0)\n\n\tif !ok {\n\t\treturn \"\", fmt.Errorf(\"could not derive directory path\")\n\t}\n\n\treturn fmt.Sprintf(\"%s/%s\", path.Dir(filename), \"../../resource\"), nil\n}", "func LookPath(file string) (string, error) {}", "func (c ComponentDescriptor) GetLocalResource(rtype, name, version string) (Resource, error) {\n\tfor _, res := range c.Resources {\n\t\tif res.Relation == LocalRelation &&\n\t\t\tres.GetType() == rtype && res.GetName() == name && res.GetVersion() == version {\n\t\t\treturn res, nil\n\t\t}\n\t}\n\treturn Resource{}, NotFound\n}", "func (f *Finding) Resource() string {\n\taff := f.etd.JSONPayload.AffectedResources\n\tif len(aff) == 0 {\n\t\treturn \"\"\n\t}\n\tm := extractResource.FindStringSubmatch(aff[0].GCPResourceName)\n\tif m == nil {\n\t\treturn \"\"\n\t}\n\treturn m[1]\n\n}", "func lookupProjPath(protoAbs string) (result string) {\n\tlastIndex := len(protoAbs)\n\tcurPath := protoAbs\n\n\tfor lastIndex > 0 {\n\t\tif fileExist(curPath+\"/cmd\") && fileExist(curPath+\"/api\") {\n\t\t\tresult = curPath\n\t\t\treturn\n\t\t}\n\t\tlastIndex = strings.LastIndex(curPath, string(os.PathSeparator))\n\t\tcurPath = protoAbs[:lastIndex]\n\t}\n\tresult = \"\"\n\treturn\n}", "func getResource(mapping *meta.RESTMapping, config *rest.Config, group string,\n\tversion string, namespace string, name string) error {\n\trestClient, err := getRESTClient(config, group, version)\n\tif err != nil {\n\t\treturn &kfapis.KfError{\n\t\t\tCode: int(kfapis.INVALID_ARGUMENT),\n\t\t\tMessage: fmt.Sprintf(\"getResource error: %v\", err),\n\t\t}\n\t}\n\n\tif _, err = restClient.\n\t\tGet().\n\t\tResource(mapping.Resource.Resource).\n\t\tNamespaceIfScoped(namespace, mapping.Scope.Name() == \"namespace\").\n\t\tName(name).\n\t\tDo().\n\t\tGet(); err == nil {\n\t\treturn nil\n\t} else {\n\t\treturn &kfapis.KfError{\n\t\t\tCode: int(kfapis.INVALID_ARGUMENT),\n\t\t\tMessage: fmt.Sprintf(\"getResource error: %v\", err),\n\t\t}\n\t}\n}", "func resolve(c string) (string, error) {\n _, err := os.Stat(c)\n if err != nil {\n if !os.IsNotExist(err) {\n return \"\", err\n }\n c, err = exec.LookPath(c)\n if err != nil {\n return \"\", err\n }\n }\n return c, nil\n}", "func (m *Module) ResourceByAddr(addr addrs.Resource) *Resource {\n\tkey := addr.String()\n\tswitch addr.Mode {\n\tcase addrs.ManagedResourceMode:\n\t\treturn m.ManagedResources[key]\n\tcase addrs.DataResourceMode:\n\t\treturn m.DataResources[key]\n\tdefault:\n\t\treturn nil\n\t}\n}", "func (c *Config) Lookup() string {\n\treturn c.RunDir + \"/lookup.txt\"\n}", "func (m *ProgramControl) GetResource()(ProgramResourceable) {\n val, err := m.GetBackingStore().Get(\"resource\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.(ProgramResourceable)\n }\n return nil\n}", "func getLocation(name string) (int, error) {\n\tquery := fmt.Sprintf(\"https://www.metaweather.com/api/location/search/?query=%s\", name)\n\tresp, errGet := http.Get(query)\n\tif errGet != nil {\n\t\treturn 0, errGet\n\t}\n\tdefer resp.Body.Close()\n\tbody, errBody := ioutil.ReadAll(resp.Body)\n\tif errBody != nil {\n\t\treturn 0, errBody\n\t}\n\tlocations := []Location{}\n\terrJson := json.Unmarshal(body, &locations)\n\t// I feel lucky!\n\tif len(locations) < 1 {\n\t\treturn 0, fmt.Errorf(\"no location %s\", name)\n\t}\n\tlocaton := locations[0].Woeid\n\tfmt.Printf(\"%v\\n\", locations[0])\n\treturn locaton, errJson\n}", "func location() string {\n\tworkDir, _ := os.Getwd()\n\t_, fn, line, _ := runtime.Caller(depth)\n\tfn = strings.TrimPrefix(fn, workDir+\"/\")\n\treturn fmt.Sprintf(\"%s:%d\", fn, line)\n}", "func computeProgramDirectory() string {\n\tlocation := js.Global().Get(\"location\")\n\turl := location.Get(\"href\").String()\n\turl = filepath.Dir(url)\n\turl = strings.TrimPrefix(url, \"file:/\")\n\tif strings.HasPrefix(url, \"http:/\") {\n\t\turl = strings.TrimPrefix(url, \"http:/\")\n\t\turl = \"http://\" + url\n\t}\n\tif strings.HasPrefix(url, \"https:/\") {\n\t\turl = strings.TrimPrefix(url, \"https:/\")\n\t\turl = \"https://\" + url\n\t}\n\treturn url\n}", "func (group *ResourceGroup) Location() string {\n\tif group.Spec.Location == nil {\n\t\treturn \"\"\n\t}\n\treturn *group.Spec.Location\n}", "func (group *ResourceGroup) Location() string {\n\tif group.Spec.Location == nil {\n\t\treturn \"\"\n\t}\n\treturn *group.Spec.Location\n}", "func getResource(path string) ([]byte, error) {\n\tfor _, entry := range RESOURCES {\n\t\t//\n\t\t// We found the file contents.\n\t\t//\n\t\tif entry.Filename == path {\n\t\t\tvar raw bytes.Buffer\n\t\t\tvar err error\n\n\t\t\t// Decode the data.\n\t\t\tin, err := hex.DecodeString(entry.Contents)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\n\t\t\t// Gunzip the data to the client\n\t\t\tgr, err := gzip.NewReader(bytes.NewBuffer(in))\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t\tdefer gr.Close()\n\t\t\tdata, err := ioutil.ReadAll(gr)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t\t_, err = raw.Write(data)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\n\t\t\t// Return it.\n\t\t\treturn raw.Bytes(), nil\n\t\t}\n\t}\n\treturn nil, fmt.Errorf(\"failed to find resource '%s'\", path)\n}", "func (o RunBookOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *RunBook) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)\n}", "func (fctx *AvFormatContext) AvFindProgramFromStream(last *AvProgram, streamIdx int) *AvProgram {\n\treturn (*AvProgram)(C.av_find_program_from_stream((*C.struct_AVFormatContext)(fctx),\n\t\t(*C.struct_AVProgram)(last), C.int(streamIdx)))\n}", "func findTerraformExecPath(ctx context.Context, path, ver string) (string, func(), error) {\n\tcleanup := func() {}\n\ti := hcinstall.NewInstaller()\n\tvar execPath string\n\tvar err error\n\n\tif path != \"\" {\n\t\texecPath, err = i.Ensure(context.Background(), []src.Source{\n\t\t\t&fs.AnyVersion{\n\t\t\t\tExactBinPath: path,\n\t\t\t},\n\t\t})\n\t} else if ver != \"\" {\n\t\ttfver := version.Must(version.NewVersion(ver))\n\t\texecPath, err = i.Ensure(context.Background(), []src.Source{\n\t\t\t&releases.ExactVersion{\n\t\t\t\tProduct: product.Terraform,\n\t\t\t\tVersion: tfver,\n\t\t\t},\n\t\t})\n\t} else {\n\t\texecPath, err = i.Ensure(context.Background(), []src.Source{\n\t\t\t&releases.LatestVersion{\n\t\t\t\tProduct: product.Terraform,\n\t\t\t},\n\t\t})\n\t}\n\n\tif err != nil {\n\t\treturn \"\", cleanup, err\n\t}\n\n\treturn execPath, cleanup, nil\n}", "func (o LinuxWebAppOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *LinuxWebApp) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)\n}", "func (s *service) lookupExecutable(w http.ResponseWriter, r *http.Request, p httprouter.Params) {\n\texists, err := s.store.ExecutableExists(p.ByName(\"hash\"))\n\tif err != nil {\n\t\ts.logger.Warn(\"looking up executable\", \"hash\", p.ByName(\"hash\"), \"err\", err)\n\t\twriteError(w, http.StatusInternalServerError, err)\n\t\treturn\n\t}\n\n\tif !exists {\n\t\twriteError(w, http.StatusNotFound, errors.New(`not found`))\n\t\treturn\n\t}\n\n\twrite(w, http.StatusOK, map[string]interface{}{\"found\": true})\n}", "func (o LookupSharedImageResultOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v LookupSharedImageResult) string { return v.Location }).(pulumi.StringOutput)\n}", "func cliLocation() string {\n\tprofilePath, err := azcli.ProfilePath()\n\tif err != nil {\n\t\treturn \"\"\n\t}\n\tcfg, err := ini.Load(filepath.Join(filepath.Dir(profilePath), \"config\"))\n\tif err != nil {\n\t\treturn \"\"\n\t}\n\treturn cfg.Section(\"defaults\").Key(\"location\").Value()\n}", "func resourceName(ID string) (string, error) {\n\tparts := strings.Split(ID, \"/\")\n\tname := parts[len(parts)-1]\n\tif len(name) == 0 {\n\t\treturn \"\", fmt.Errorf(\"resource name was missing from identifier\")\n\t}\n\n\treturn name, nil\n}", "func (s SourceFilesystems) StatResource(lang, filename string) (fi os.FileInfo, fs afero.Fs, err error) {\n\tfor _, fsToCheck := range []afero.Fs{s.StaticFs(lang), s.Assets.Fs, s.Content.Fs} {\n\t\tfs = fsToCheck\n\t\tfi, err = fs.Stat(filename)\n\t\tif err == nil || !herrors.IsNotExist(err) {\n\t\t\treturn\n\t\t}\n\t}\n\t// Not found.\n\treturn\n}", "func getKeptnResource(myKeptn *keptn.Keptn, resource string, uniqueFilePrefix string) (string, error) {\n\n\t// we create our uniqueFileName with the prefix\n\t// here some examples on what that looks like\n\t// myfile.txt -> PREFIX_myfile.txt\n\t// folder/myfile.txt -> folder/PREFIX_myfile.txt\n\tuniqueFileName := strings.Replace(resource, \"/\", \"/\"+uniqueFilePrefix+\"_\", 1)\n\tif uniqueFilePrefix != \"\" {\n\t\tos.RemoveAll(uniqueFileName)\n\t}\n\n\t// if we run in a runlocal mode we are just getting the file from the local disk\n\tif KeptnOptions.UseLocalFileSystem {\n\t\treturn _getKeptnResourceFromLocal(resource, uniqueFileName)\n\t}\n\n\tresourceHandler := api.NewResourceHandler(KeptnOptions.ConfigurationServiceURL)\n\n\t// SERVICE-LEVEL: lets try to find it on service level\n\trequestedResource, err := resourceHandler.GetServiceResource(myKeptn.KeptnBase.Project, myKeptn.KeptnBase.Stage, myKeptn.KeptnBase.Service, resource)\n\tif err != nil || requestedResource.ResourceContent == \"\" {\n\t\t// STAGE-LEVEL: not found on service level - lets search one level up on stage level\n\t\trequestedResource, err = resourceHandler.GetStageResource(myKeptn.KeptnBase.Project, myKeptn.KeptnBase.Stage, resource)\n\t\tif err != nil || requestedResource.ResourceContent == \"\" {\n\t\t\t// PROJECT-LEVEL: not found on the stage level - lets search one level up on project level\n\t\t\trequestedResource, err = resourceHandler.GetProjectResource(myKeptn.KeptnBase.Project, resource)\n\n\t\t\tif err != nil || requestedResource.ResourceContent == \"\" {\n\t\t\t\t// myKeptn.Logger.Debug(fmt.Sprintf(\"Keptn Resource not found or empty: %s/%s/%s/%s - %s\", myKeptn.KeptnBase.Project, myKeptn.KeptnBase.Stage, myKeptn.KeptnBase.Service, resource, err))\n\t\t\t\treturn \"\", err\n\t\t\t}\n\n\t\t\tmyKeptn.Logger.Debug(\"Found \" + resource + \" on project level\")\n\t\t} else {\n\t\t\tmyKeptn.Logger.Debug(\"Found \" + resource + \" on stage level\")\n\t\t}\n\t} else {\n\t\tmyKeptn.Logger.Debug(\"Found \" + resource + \" on service level\")\n\t}\n\n\t// now store that file on the same directory structure locally\n\tpathArr := strings.Split(uniqueFileName, \"/\")\n\tdirectory := \"\"\n\tfor _, pathItem := range pathArr[0 : len(pathArr)-1] {\n\t\tdirectory += pathItem + \"/\"\n\t}\n\n\terr = os.MkdirAll(directory, os.ModePerm)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tresourceFile, err := os.Create(uniqueFileName)\n\tif err != nil {\n\t\tmyKeptn.Logger.Error(err.Error())\n\t\treturn \"\", err\n\t}\n\tdefer resourceFile.Close()\n\n\t_, err = resourceFile.Write([]byte(requestedResource.ResourceContent))\n\n\tif err != nil {\n\t\tmyKeptn.Logger.Error(err.Error())\n\t\treturn \"\", err\n\t}\n\n\t// if the downloaded file is a shell script we also change the permissions\n\tif strings.HasSuffix(uniqueFileName, \".sh\") {\n\t\tos.Chmod(uniqueFileName, 0777)\n\t}\n\n\treturn uniqueFileName, nil\n}", "func Resource() parameter.Parameter {\n\treturn parameter.Single(CUTYPE, \"RESOURCE\")\n}", "func (module *ResourceModule) GetResourceByName(name string) (*Resource, error) {\n\tv, ok := (*module.ResourceMap)[name]\n\tif ok {\n\t\treturn &v, nil\n\t}\n\n\treturn nil, errors.New(\"Resource does not exist \")\n}", "func addressResourcePart(addr string) string {\n\tp := strings.Split(addr, \".\")\n\n\tif len(p) >= 3 && p[len(p)-3] == \"data\" {\n\t\treturn strings.Join(p[len(p)-3:], \".\")\n\t}\n\n\treturn strings.Join(p[len(p)-2:], \".\")\n}", "func nameFromResourceUrl(link string) string {\n\tparts := strings.Split(link, \"/\")\n\treturn parts[len(parts)-1]\n}", "func (sys *System) GetLocation(ctx *Context, name string) (*Location, error) {\n\treturn sys.findLocation(ctx, name, false)\n}", "func (c *Client) GetResource(state, module, name string) (st storage.Resource, err error) {\n\terr = c.get(&st, \"resources/\"+state+\"/\"+module+\"/\"+name, nil)\n\tif err != nil {\n\t\treturn st, fmt.Errorf(\"failed to retrieve resource: %v\", err)\n\t}\n\n\treturn\n}", "func getLocation(loc string) *time.Location {\n\tl, _ := time.LoadLocation(loc)\n\treturn l\n}", "func getLoc(skip int, level int32, subsystem string) (output string) {\n\t_, file, line, _ := runtime.Caller(skip)\n\tdefer func() {\n\t\tif r := recover(); r != nil {\n\t\t\tfmt.Fprintln(os.Stderr, \"getloc panic on subsystem\", subsystem, file)\n\t\t}\n\t}()\n\tsplit := strings.Split(file, subsystem)\n\tif len(split) < 2 {\n\t\toutput = fmt.Sprint(\n\t\t\tcolor.White.Sprint(subsystem),\n\t\t\tcolor.Gray.Sprint(\n\t\t\t\tfile, \":\", line,\n\t\t\t),\n\t\t)\n\t} else {\n\t\toutput = fmt.Sprint(\n\t\t\tcolor.White.Sprint(subsystem),\n\t\t\tcolor.Gray.Sprint(\n\t\t\t\tsplit[1], \":\", line,\n\t\t\t),\n\t\t)\n\t}\n\treturn\n}", "func GetResourcePath() string {\n\tif env := os.Getenv(\"RESOURCE_PATH\"); len(env) != 0 {\n\t\treturn env\n\t}\n\n\tif env := os.Getenv(\"GOPATH\"); env != \"\" {\n\t\tgopaths := strings.Split(env, \":\")\n\t\tfor _, gp := range gopaths {\n\t\t\tcheck := path.Join(gp, \"src\", ResourcePath)\n\t\t\tif _, err := os.Stat(check); err == nil {\n\t\t\t\treturn check\n\t\t\t}\n\t\t}\n\t}\n\n\tglog.Fatalf(\"Cannot find resource path for %q\\n\", ResourcePath)\n\treturn \"\"\n}", "func (c ComponentDescriptor) GetResource(rtype, name, version string) (Resource, error) {\n\tfor _, res := range c.Resources {\n\t\tif res.GetType() == rtype && res.GetName() == name && res.GetVersion() == version {\n\t\t\treturn res, nil\n\t\t}\n\t}\n\treturn Resource{}, NotFound\n}", "func (o JobIamPolicyOutput) Location() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *JobIamPolicy) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)\n}", "func (c serverResources) findResourceFromResourceName(gvr schema.GroupVersionResource) (schema.GroupVersionKind, error) {\n\t_, serverGroupsAndResources, err := c.cachedClient.ServerGroupsAndResources()\n\tif err != nil && !strings.Contains(err.Error(), \"Got empty response for\") {\n\t\tif discovery.IsGroupDiscoveryFailedError(err) {\n\t\t\tlogDiscoveryErrors(err)\n\t\t} else if isServerCurrentlyUnableToHandleRequest(err) {\n\t\t\tlogger.V(3).Info(\"failed to find preferred resource version\", \"error\", err.Error())\n\t\t} else {\n\t\t\tlogger.Error(err, \"failed to find preferred resource version\")\n\t\t\treturn schema.GroupVersionKind{}, err\n\t\t}\n\t}\n\tapiResource, err := findResourceFromResourceName(gvr, serverGroupsAndResources)\n\tif err != nil {\n\t\treturn schema.GroupVersionKind{}, err\n\t}\n\treturn schema.GroupVersionKind{Group: apiResource.Group, Version: apiResource.Version, Kind: apiResource.Kind}, err\n}", "func discoverExecName() string {\n\tif DEBUG {\n\t\tlog.Print(\"Debug: discoverExecName\\n\")\n\t}\n\n\tf := os.Args[0]\n\tif path.IsAbs(f) {\n\t\treturn f\n\t}\n\n\twd, err := os.Getwd()\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"Getwd failed: %s\", err))\n\t}\n\n\t_, err = os.Stat(f)\n\tif err == nil { // relative file exists\n\t\treturn path.Clean(path.Join(wd, f))\n\t} // not exists? lookup in path\n\n\tf2, err := exec.LookPath(f)\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"lookpath failed: %s\", err))\n\t}\n\n\tif path.IsAbs(f2) {\n\t\treturn f2\n\t}\n\n\treturn path.Clean(path.Join(wd, f2))\n}", "func GetProgram(pid int64) (string, error) {\n\t// Readlink needs root permission\n\t// return os.Readlink(fmt.Sprintf(\"/proc/%d/exe\", pid))\n\n\trs, err := rawProcStatus(pid)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn rs.Name, nil\n}", "func GetResource(dao *Dao, state data.Map, URL string) *url.Resource {\n\tfor _, candidate := range getURLs(URL) {\n\t\tresource := url.NewResource(candidate)\n\t\tstorageService, err := storage.NewServiceForURL(resource.URL, \"\")\n\t\tif err != nil {\n\t\t\treturn nil\n\t\t}\n\t\texists, _ := storageService.Exists(resource.URL)\n\t\tif exists {\n\t\t\treturn resource\n\t\t}\n\t}\n\tif strings.Contains(URL, \":/\") || strings.HasPrefix(URL, \"/\") {\n\t\treturn nil\n\t}\n\t//Lookup shared workflow\n\tfor _, candidate := range getURLs(URL) {\n\t\tresource, err := dao.NewRepoResource(state, fmt.Sprintf(\"workflow/%v\", candidate))\n\t\tif err != nil {\n\t\t\tcontinue\n\t\t}\n\t\tstorageService, err := storage.NewServiceForURL(resource.URL, \"\")\n\t\tif err != nil {\n\t\t\treturn nil\n\t\t}\n\t\tif exists, _ := storageService.Exists(resource.URL); exists {\n\t\t\treturn resource\n\t\t}\n\t}\n\treturn nil\n}", "func (r *ImageRegistryResource) locationKey() string {\n\treturn common.StringID(r.Name)\n}", "func lookupPathMap(pathMaps *[]n.ApplicationGatewayURLPathMap, resourceID *string) *n.ApplicationGatewayURLPathMap {\n\tfor idx, pathMap := range *pathMaps {\n\t\tif *pathMap.ID == *resourceID {\n\t\t\treturn &(*pathMaps)[idx]\n\t\t}\n\t}\n\n\treturn nil\n}", "func (t *Tool) QueryLocation() *LocationQuery {\n\treturn (&ToolClient{config: t.config}).QueryLocation(t)\n}", "func execResourceCommand(c *cli.Context) {\n\ttable := uitable.New()\n\ttable.MaxColWidth = 80\n\ttable.AddRow(\"RESOURCE\", \"DESCRIPTION\")\n\n\tfor _, item := range resource.Registry {\n\t\ttable.AddRow(item.Name, item.Description)\n\t}\n\n\tfmt.Println(table)\n}", "func (r *Resource) FindByURI(_ context.Context, rawURI string) (*flare.Resource, error) {\n\tr.mutex.Lock()\n\tdefer r.mutex.Unlock()\n\n\tif !strings.HasPrefix(rawURI, \"http\") {\n\t\trawURI = \"//\" + rawURI\n\t}\n\n\turi, err := url.Parse(rawURI)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, fmt.Sprintf(\"error during url.Parse with '%s'\", rawURI))\n\t}\n\n\tresources, err := r.findResourcesByHost(uri)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"error during resource search\")\n\t}\n\n\tresource, err := r.selectResouceByHost(uri, resources)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"error during resource select\")\n\t}\n\tif resource != nil {\n\t\treturn resource, nil\n\t}\n\treturn nil, &errMemory{\n\t\tnotFound: true, message: fmt.Sprintf(\"could not found a resource for this uri '%s'\", rawURI),\n\t}\n}", "func executableLocation(updateDirectory string, binary string) string {\n\tswitch runtime.GOOS {\n\tcase \"darwin\":\n\t\tswitch binary {\n\t\tcase \"launcher\":\n\t\t\treturn filepath.Join(updateDirectory, \"Kolide.app\", \"Contents\", \"MacOS\", binary)\n\t\tcase \"osqueryd\":\n\t\t\treturn filepath.Join(updateDirectory, binary)\n\t\tdefault:\n\t\t\treturn \"\"\n\t\t}\n\tcase \"windows\":\n\t\treturn filepath.Join(updateDirectory, fmt.Sprintf(\"%s.exe\", binary))\n\tcase \"linux\":\n\t\treturn filepath.Join(updateDirectory, binary)\n\tdefault:\n\t\treturn filepath.Join(updateDirectory, binary)\n\t}\n}", "func lookup(url string) string {\n\tresponse, err := http.Get(url)\n\tif err != nil {\n\t\tfmt.Printf(\"The HTTP request failed with error %s\\n\", err)\n\t\tos.Exit(1)\n\t}\n\tdata, _ := ioutil.ReadAll(response.Body)\n\treturn string(data)\n}", "func findResourceFromResourceName(gvr schema.GroupVersionResource, serverGroupsAndResources []*metav1.APIResourceList) (*metav1.APIResource, error) {\n\tfor _, list := range serverGroupsAndResources {\n\t\tgv, err := schema.ParseGroupVersion(list.GroupVersion)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tif gv.Group == gvr.Group && gv.Version == gvr.Version {\n\t\t\tfor _, resource := range list.APIResources {\n\t\t\t\tif resource.Name == gvr.Resource {\n\t\t\t\t\t// if the matched resource has group or version set we don't need to copy from the parent list\n\t\t\t\t\tif resource.Group != \"\" || resource.Version != \"\" {\n\t\t\t\t\t\treturn &resource, nil\n\t\t\t\t\t}\n\t\t\t\t\tresult := resource.DeepCopy()\n\t\t\t\t\tresult.Group = gv.Group\n\t\t\t\t\tresult.Version = gv.Version\n\t\t\t\t\treturn result, nil\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn nil, fmt.Errorf(\"resource %s not found in group %s\", gvr.Resource, gvr.GroupVersion())\n}", "func getEvalationByPath() {\n\tres, err := http.Get(\"https://blog.syhlion.tw/sitemap.xml\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\tsitemap, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Printf(\"%s\", sitemap)\n}", "func (d *Dao) getExternalResource(context *tagContext, URI string) (*url.Resource, error) {\n\tif URI == \"\" {\n\t\treturn nil, fmt.Errorf(\"resource was empty\")\n\t}\n\tURI = strings.TrimSpace(URI)\n\tif strings.HasPrefix(URI, \"@\") || strings.HasPrefix(URI, \"#\") {\n\t\tURI = string(URI[1:])\n\t}\n\n\tif strings.Contains(URI, \"://\") || strings.HasPrefix(URI, \"/\") {\n\t\treturn url.NewResource(URI, context.source.Credentials), nil\n\t}\n\townerURL, URL := buildURLWithOwnerURL(context.source, context.tag.Subpath, URI)\n\tservice, err := storage.NewServiceForURL(URL, context.source.Credentials)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\texists, _ := service.Exists(URL)\n\tif !exists {\n\t\tif d.remoteResourceRepo != \"\" {\n\t\t\tfallbackResource, err := d.NewRepoResource(context.context, URI)\n\t\t\tif err == nil {\n\t\t\t\tservice, _ = storage.NewServiceForURL(fallbackResource.URL, context.source.Credentials)\n\t\t\t\tif exists, _ = service.Exists(fallbackResource.URL); exists {\n\t\t\t\t\tURL = fallbackResource.URL\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif !exists && context.tag.Subpath != \"\" {\n\t\t\tfileCandidate := path.Join(ownerURL, context.tag.Subpath, URI)\n\t\t\tURL = toolbox.FileSchema + fileCandidate\n\t\t}\n\t}\n\treturn url.NewResource(URL, context.source.Credentials), nil\n}", "func getLoggedResourceName(name string) (string, error) {\n\tnameTokens := LoggedResourceFileRegExp.FindStringSubmatch(name)\n\n\tif len(nameTokens) != 7 {\n\t\tlog.Errorf(\"%d %s\", len(nameTokens), name)\n\t\treturn \"\", errResourceIdName\n\t}\n\treturn nameTokens[1], nil\n}", "func origLookup(path string) (io.ReadCloser, error) {\n\tcmd := exec.Command(\"go\", \"list\", \"-json\", \"-export\", path)\n\tdir := os.Getenv(\"GARBLE_DIR\")\n\tif dir == \"\" {\n\t\treturn nil, fmt.Errorf(\"$GARBLE_DIR unset; did you run via 'garble build'?\")\n\t}\n\tcmd.Dir = dir\n\tout, err := cmd.CombinedOutput()\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"go list error: %v: %s\", err, out)\n\t}\n\tvar res struct {\n\t\tExport string\n\t}\n\tif err := json.Unmarshal(out, &res); err != nil {\n\t\treturn nil, err\n\t}\n\treturn os.Open(res.Export)\n}", "func GetFullPathOfApp(chain uint64, name []byte) string {\n\tnameStr := hex.EncodeToString(name)\n\tnameStr = \"z\" + nameStr\n\tnameStr = path.Join(projectRoot, fmt.Sprintf(\"chain%d\", chain), nameStr)\n\treturn nameStr\n}", "func getResource(path string) ([]byte, error) {\n\tif entry, ok := RESOURCES[path]; ok {\n\t\tvar raw bytes.Buffer\n\t\tvar err error\n\n\t\t// Decode the data.\n\t\tin, err := base64.StdEncoding.DecodeString(entry.Contents)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\t// Gunzip the data to the client\n\t\tgr, err := gzip.NewReader(bytes.NewBuffer(in))\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tdefer gr.Close()\n\t\tdata, err := ioutil.ReadAll(gr)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\t_, err = raw.Write(data)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\t// Return it.\n\t\treturn raw.Bytes(), nil\n\t}\n\treturn nil, fmt.Errorf(\"failed to find resource '%s'\", path)\n}", "func LookUp() (string, error) {\n\tbin, err := exec.LookPath(Command)\n\tif err != nil {\n\t\treturn bin, fmt.Errorf(\n\t\t\t\"could not find %s binary in path. Build and copy it to path\",\n\t\t\tCommand,\n\t\t)\n\t}\n\treturn bin, nil\n}", "func programName() string {\n\treturn filepath.Base(os.Args[0])\n}", "func (c *Client) Resource(path string) *Resource {\n\tr := &Resource{u: c.URL()}\n\tif !isAPI(path) {\n\t\tpath = Path + path\n\t}\n\tr.u.Path = path\n\treturn r\n}", "func getSection(uri string) (string, error) {\n\tsectionSplit := strings.Split(uri, \"/\")\n\tif len(sectionSplit) < 2 {\n\t\treturn \"\", errors.New(\"Invalid resource format\")\n\t}\n\treturn strings.Join(sectionSplit[:2], \"/\"), nil\n}", "func getFullPath(fileName string) (string, error) {\n\t//from where i am calling the program\n\tworkingDir, err := os.Getwd()\n\tif err != nil {\n\t\treturn \"\", errors.New(\"Invalid working dir\")\n\t}\n\n\treturn workingDir + \"/\" + fileName, nil\n}", "func (p *SASQueryParameters) Resource() string {\n\treturn p.resource\n}", "func GetResource(resourceName string) (string, error) {\n\tenvName, err := findEnvironmentName()\n\tif err != nil {\n\t\treturn envName, err\n\t}\n\n\t// Ensure the env and resource resourceName are separated by '-'\n\tif resourceName[:1] != \"-\" {\n\t\tresourceName = \"-\" + resourceName\n\t}\n\n\treturn envName + resourceName, nil\n}", "func ResolveResourceDirectory(path string) string {\n\tworkDir, err := filepath.Abs(filepath.Dir(os.Args[0]))\n\tif err != nil {\n\t\tlogger.Panic(err)\n\t}\n\n\t_, rtFilename, _, _ := runtime.Caller(1)\n\trtDirectory := filepath.Dir(rtFilename)\n\n\tpathAbs, err := filepath.Abs(path)\n\tif err != nil {\n\t\tlogger.Panic(err)\n\t}\n\tfmt.Println(\"abs path:\", pathAbs)\n\n\tfmt.Printf(\"runtime.Caller= %s \\n\", rtFilename)\n\t//fmt.Printf(\"Filepath Raw= %s \\n\")\n\tfmt.Printf(\"Filepath Directory= %s \\n\", filepath.Dir(path))\n\tfmt.Printf(\"Filepath Absolute Directory= %s \\n\", pathAbs)\n\n\tfmt.Printf(\"Working Directory= %s \\n\", workDir)\n\tfmt.Printf(\"Runtime Filename= %s \\n\", rtFilename)\n\tfmt.Printf(\"Runtime Directory= %s \\n\", rtDirectory)\n\n\t//dir1 := filepath.Join(workDir, filepath.Dir(path))\n\t//fmt.Printf(\"Dir1= %s \\n\", dir1)\n\n\tdirs := []string{\n\t\tpathAbs, //try direct path first\n\t\tfilepath.Join(workDir, filepath.Dir(path)), //default\n\t\t//filepath.Join(rt_directory, \"./\", filepath.Dir(path)),\n\t\tfilepath.Join(rtDirectory, \"./\", filepath.Dir(path)),\n\t\tfilepath.Join(rtDirectory, \"../\", filepath.Dir(path)),\n\t\tfilepath.Join(rtDirectory, \"../../\", filepath.Dir(path)),\n\t\tfilepath.Join(rtDirectory, \"../../../\", filepath.Dir(path)),\n\t}\n\n\t//for i, dir := range dirs {\n\t//\tfmt.Printf(\"Dir[%d]= %s \\n\", i, dir)\n\t//}\n\n\t//must be an absolute path\n\t//error and problem and crash if not absolute path\n\tfor i := range dirs {\n\t\tabsPath, _ := filepath.Abs(dirs[i])\n\t\tdirs[i] = absPath\n\t}\n\n\tfor _, dir := range dirs {\n\t\tif _, err := os.Stat(dir); !os.IsNotExist(err) {\n\t\t\tfmt.Printf(\"ResolveResourceDirectory: static resource dir= %s \\n\", dir)\n\t\t\treturn dir\n\t\t}\n\t}\n\tlogger.Panic(\"GUI directory not found\")\n\treturn \"\"\n}" ]
[ "0.7165393", "0.7057274", "0.6568164", "0.6473002", "0.64382833", "0.62936705", "0.62936705", "0.6222997", "0.6214327", "0.611755", "0.6074522", "0.6074522", "0.6062982", "0.5987221", "0.59680426", "0.58867496", "0.5884546", "0.5779265", "0.576209", "0.5761118", "0.57487494", "0.56742203", "0.5640023", "0.5640023", "0.5631029", "0.56074524", "0.55981123", "0.5548537", "0.5480016", "0.54424447", "0.5422986", "0.5395385", "0.53708255", "0.53413504", "0.5337666", "0.5326178", "0.53253573", "0.53202397", "0.5320014", "0.5305866", "0.5272779", "0.52725667", "0.5269099", "0.52487767", "0.5233079", "0.5214747", "0.5201497", "0.5200253", "0.51977366", "0.51329917", "0.51329917", "0.5116873", "0.5090504", "0.50785834", "0.5026056", "0.50250685", "0.5024722", "0.50211525", "0.5005682", "0.5002241", "0.49965665", "0.4985141", "0.49846426", "0.49766526", "0.497021", "0.496867", "0.49616322", "0.496098", "0.4956043", "0.49524054", "0.49428567", "0.49422538", "0.49387783", "0.49352166", "0.4930064", "0.49267778", "0.4922952", "0.4921796", "0.49003872", "0.48928145", "0.48926666", "0.48913646", "0.48906195", "0.48896727", "0.4877288", "0.48752797", "0.48681828", "0.48673174", "0.48616788", "0.48576468", "0.48570582", "0.48537648", "0.48514727", "0.485079", "0.48490632", "0.48486248", "0.4844289", "0.48423427", "0.48406443" ]
0.69328004
3
query the fragment color index of a named variable within a program
func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *uint8) int32 { ret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name))) return (int32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetFragDataIndex(program uint32, name *int8) int32 {\n ret := C.glowGetFragDataIndex(gpGetFragDataIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func BindFragDataLocationIndexed(program uint32, colorNumber uint32, index uint32, name *int8) {\n C.glowBindFragDataLocationIndexed(gpBindFragDataLocationIndexed, (C.GLuint)(program), (C.GLuint)(colorNumber), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetFragDataLocation(program uint32, name *int8) int32 {\n ret := C.glowGetFragDataLocation(gpGetFragDataLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func getColorIndex(temp float64) int {\n\tif temp < *minTemp {\n\t\treturn 0\n\t}\n\tif temp > *maxTemp {\n\t\treturn len(colors) - 1\n\t}\n\treturn int((temp - *minTemp) * float64(len(colors)-1) / (*maxTemp - *minTemp))\n}", "func GetFragDataIndex(program uint32, name *uint8) int32 {\n\tret := C.glowGetFragDataIndex(gpGetFragDataIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetFragDataIndex(program uint32, name *uint8) int32 {\n\tret := C.glowGetFragDataIndex(gpGetFragDataIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetFragDataIndex(program uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetFragDataIndex, 2, uintptr(program), uintptr(unsafe.Pointer(name)), 0)\n\treturn (int32)(ret)\n}", "func BindFragDataLocationIndexed(program uint32, colorNumber uint32, index uint32, name *uint8) {\n\tsyscall.Syscall6(gpBindFragDataLocationIndexed, 4, uintptr(program), uintptr(colorNumber), uintptr(index), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func findAndIndex(abc *st.Art) (index1 int, index2 int) {\n\tsourse := abc.Flag.Color.ByIndex.Range\n\tlSourse := len(sourse)\n\n\tindex1 = sourse[0]\n\tindex2 = sourse[lSourse-1]\n\t// if wrong range, fix it\n\tif index1 > index2 {\n\t\tindex1, index2 = index2, index1\n\t}\n\treturn index1, index2\n}", "func BindFragDataLocationIndexed(program uint32, colorNumber uint32, index uint32, name *uint8) {\n\tC.glowBindFragDataLocationIndexed(gpBindFragDataLocationIndexed, (C.GLuint)(program), (C.GLuint)(colorNumber), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func BindFragDataLocationIndexed(program uint32, colorNumber uint32, index uint32, name *uint8) {\n\tC.glowBindFragDataLocationIndexed(gpBindFragDataLocationIndexed, (C.GLuint)(program), (C.GLuint)(colorNumber), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func BindFragDataLocation(program uint32, color uint32, name *int8) {\n C.glowBindFragDataLocation(gpBindFragDataLocation, (C.GLuint)(program), (C.GLuint)(color), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *int8) uint32 {\n ret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n return (uint32)(ret)\n}", "func (r *paintingRobot) scanColor() int {\n for _, p := range r.paintedPoints {\n if p.x == r.position.x && p.y == r.position.y {\n return p.color\n }\n }\n\n return 0\n}", "func getVarGlobalIndex(index int) []byte {\n\tvar buf []byte\n\tif index <= 31 {\n\t\tbuf = make([]byte, 1)\n\t\tbuf[0] = uint8(index) | 0x60\n\t} else if index <= 255 {\n\t\tbuf = make([]byte, 1)\n\t\tbuf[0] = 0xE1\n\t\tbuf[1] = uint8(index)\n\t} else if index <= 65535 {\n\t\tbuf = make([]byte, 1)\n\t\tbuf[0] = 0xE2\n\t\tbuf[1] = uint8(index) & 0xFF\n\t\tbuf[2] = uint8(index>>8) & 0xFF\n\t} else {\n\t\tbuf = make([]byte, 1)\n\t\tbuf[0] = 0xE3\n\t\tbuf[1] = uint8(index) & 0xFF\n\t\tbuf[2] = uint8(index>>8) & 0xFF\n\t\tbuf[3] = uint8(index>>16) & 0xFF\n\t\tbuf[4] = uint8(index>>24) & 0xFF\n\t}\n\treturn buf\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *int8) int32 {\n ret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func (pal *CGBPalette) readIndex() byte {\n\treturn pal.index\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func getIndexOfCmdWithVariable(node *parse.PipeNode) (int, *parse.VariableNode) {\n\tfor i, cmd := range node.Cmds {\n\t\tif len(cmd.Args) == 1 { // not sure about that, worth to be restrictive.\n\t\t\tif s, ok := cmd.Args[0].(*parse.VariableNode); ok {\n\t\t\t\treturn i, s\n\t\t\t}\n\t\t}\n\t}\n\treturn -1, nil\n}", "func GetFragDataLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetFragDataLocation(gpGetFragDataLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetFragDataLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetFragDataLocation(gpGetFragDataLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func (self *Script) getOutputIdxByName(name string) int {\n for i, def := range self.OutputDefs {\n if def.Name == name {\n return i\n }\n }\n return -1\n}", "func (s *Shader) getUniformBlockLocation(name string) (index uint32) {\n\t// if we already saved the location, return it\n\tif index, ok := s.uniformBIndices[name]; ok {\n\t\treturn index\n\t}\n\n\t// if it's not in our index cache, get it from opengl and save it in the cache\n\tindex = gl.GetUniformBlockIndex(s.Program, gl.Str(name+\"\\x00\"))\n\ts.uniformBIndices[name] = index\n\treturn\n}", "func GetAttribLocation(program uint32, name *int8) int32 {\n ret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func findOrIndex(abc *st.Art, index int) bool {\n\tfor _, indexF := range abc.Flag.Color.ByIndex.Range {\n\t\tif index == indexF {\n\t\t\treturn true\n\t\t}\n\t}\n\treturn false\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *int8) uint32 {\n ret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n return (uint32)(ret)\n}", "func GetProgramResourceIndex(program uint32, programInterface uint32, name *int8) uint32 {\n ret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (uint32)(ret)\n}", "func (s *Simplex) findVariableColumn(name string) int {\n\tfor index, value := range s.Variables {\n\t\tif value == name {\n\t\t\treturn index\n\t\t}\n\t}\n\treturn -1\n}", "func getIndex() string {\n\treturn fmt.Sprintf(frame, \"\")\n}", "func SSARegNum(v *ssa.Value) int16", "func (ppu *PPU) FetchColor(index byte) uint32 {\r\n\treturn ppu.colors[ppu.palette[index&0x1F]]\r\n}", "func colorStr(value uint16) (key string) {\n\tfor k, v := range colorLookUp {\n\t\tif v == value {\n\t\t\tkey = k\n\t\t\treturn\n\t\t}\n\t}\n\treturn\n}", "func (p *program) getAddrIndex(n int) int {\n\tparameter := p.mem[p.pc+n]\n\tmode := p.instructionMode(n)\n\n\tif mode == 0 {\n\t\treturn parameter\n\t} else if mode == 2 {\n\t\treturn p.base + parameter\n\t} else {\n\t\tpanic(\"unsupported immediate mode for writing\")\n\t}\n}", "func (uni *Uniform3fv) GetColor(idx int) math32.Color {\n\n\tpos := idx * 3\n\treturn math32.Color{uni.v[pos], uni.v[pos+1], uni.v[pos+2]}\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **int8, uniformIndices *uint32) {\n C.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func ShaderProgramFill(r, g, b, a byte) *shaderir.Program {\n\tir, err := graphics.CompileShader([]byte(fmt.Sprintf(`//kage:unit pixels\n\npackage main\n\nfunc Fragment(position vec4, texCoord vec2, color vec4) vec4 {\n\treturn vec4(%0.9f, %0.9f, %0.9f, %0.9f)\n}\n`, float64(r)/0xff, float64(g)/0xff, float64(b)/0xff, float64(a)/0xff)))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treturn ir\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *int8) {\n C.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetQueryIndexediv(target uint32, index uint32, pname uint32, params *int32) {\n C.glowGetQueryIndexediv(gpGetQueryIndexediv, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveUniformsiv, 5, uintptr(program), uintptr(uniformCount), uintptr(unsafe.Pointer(uniformIndices)), uintptr(pname), uintptr(unsafe.Pointer(params)), 0)\n}", "func (f *Font) Index(r rune) uint16 {\n\t// log.Printf(\"r %v\", r)\n\t// log.Printf(\"len %v\", len(f.cmap_entry_array))\n\tcm_len := len(f.cmap_entry_array)\n\n\tx := uint32(r)\n\tfor lo, hi := 0, cm_len; lo < hi; {\n\t\tmi := lo + (hi-lo)/2\n\t\t// log.Printf(\"lo hi mi %v %v %v\", lo, hi, mi)\n\t\tcm := &f.cmap_entry_array[mi]\n\t\t// log.Printf(\"cm %v\", cm)\n\t\tif x < cm.start_code {\n\t\t\thi = mi\n\t\t} else if cm.end_code < x {\n\t\t\tlo = mi + 1\n\t\t} else if cm.id_range_offset == 0 {\n\t\t\t// log.Printf(\"x id_delta %v %v\", x, cm.id_delta)\n\t\t\treturn uint16(x + cm.id_delta)\n\t\t} else {\n\t\t\toffset := int(cm.id_range_offset) + 2*(mi-cm_len+int(x-cm.start_code))\n\t\t\treturn uint16(octets_to_u16(f.cmap_index_array, offset))\n\t\t}\n\t}\n\n\treturn 0\n}", "func (h Helper) ScriptIndexByName(name string) int {\n\tfor i, s := range h.ScriptNames {\n\t\tif s == name {\n\t\t\treturn i\n\t\t}\n\t}\n\treturn -1\n}", "func GetUniformLocation(program uint32, name *int8) int32 {\n ret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func BindFragDataLocation(program uint32, color uint32, name *uint8) {\n\tC.glowBindFragDataLocation(gpBindFragDataLocation, (C.GLuint)(program), (C.GLuint)(color), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func BindFragDataLocation(program uint32, color uint32, name *uint8) {\n\tC.glowBindFragDataLocation(gpBindFragDataLocation, (C.GLuint)(program), (C.GLuint)(color), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n C.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n C.glowGetShaderiv(gpGetShaderiv, (C.GLuint)(shader), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (uni *Uniform1fv) GetColor(pos int) math32.Color {\n\n\treturn math32.Color{uni.v[pos], uni.v[pos+1], uni.v[pos+2]}\n}", "func (feature Feature) FieldIndex(name string) int {\n\tcName := C.CString(name)\n\tdefer C.free(unsafe.Pointer(cName))\n\tindex := C.OGR_F_GetFieldIndex(feature.cval, cName)\n\treturn int(index)\n}", "func Color(foreColor, backColor, mode gb.UINT8) {}", "func DepthRangeIndexed(index uint32, n float64, f float64) {\n C.glowDepthRangeIndexed(gpDepthRangeIndexed, (C.GLuint)(index), (C.GLdouble)(n), (C.GLdouble)(f))\n}", "func (p *Program) getParameter(param uint32) int {\n\tvar v int32\n\tgl.GetProgramiv(uint32(p.glHandle), param, &v)\n\treturn int(v)\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (cpu *Cpu) ind() int {\n\taddr := cpu.mem.Read(cpu.pc) & 0xFF\n\tcpu.pc++\n\n\treturn cpu.mem.Read(addr) | (cpu.mem.Read(addr+1) << 8)\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n C.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func getColor(colorstr string) (*color.RGBA, error) {\n\tvar r, g, b uint8\n\tformat := \"%02x%02x%02x\"\n\t_, err := fmt.Sscanf(colorstr, format, &r, &g, &b)\n\tif err != nil {\n\t\treturn DefaultBackgroundColor, err\n\t}\n\treturn &color.RGBA{r, g, b, 255}, nil\n}", "func hashColor(s string) string {\n\th := fnv.New32a()\n\th.Write([]byte(s))\n\ti := h.Sum32() % 6\n\treturn fmt.Sprintf(\"\\033[1;3%dm%s\\033[0m\", i+1, s)\n}", "func GetColorStringForInt(colorint int) string {\n\tfor str, idx := range ColorStrings {\n\t\tif idx == colorint {\n\t\t\treturn str\n\t\t}\n\t}\n\treturn \"\"\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n\treturn (uint32)(ret)\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n\treturn (uint32)(ret)\n}", "func GetShaderi(s Shader, pname Enum) int {\n\tvar result int32\n\tgl.GetShaderiv(s.Value, uint32(pname), &result)\n\treturn int(result)\n}", "func ColorCode(color string) int {\n\tfor code, codedColor := range Colors() {\n\t\tif color == codedColor {\n\t\t\treturn code\n\t\t}\n\t}\n\n\treturn -1\n}", "func (pal *CGBPalette) updateIndex(value byte) {\n\tpal.index = value & 0x3F\n\tpal.inc = bits.Test(value, 7)\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func (e Color) String() string {\n name, _ := colorMap[int32(e)]\n return name\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *uint8) uint32 {\n\tret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *uint8) uint32 {\n\tret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func ColorMaterial(face uint32, mode uint32) {\n\tsyscall.Syscall(gpColorMaterial, 2, uintptr(face), uintptr(mode), 0)\n}", "func main() {\n\tfile,err := os.Open(\"RolanEngine/shader/Unlit.shader\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer file.Close()\n\n\t//// 使用ioutil读取文件所有内容\n\tb, err := ioutil.ReadAll(file)\n\t//fmt.Print(string(b))\n\ttracer := string(b)\n\t//comma的意思是从字符串tracer查找第一个 #ifdef FRAGMENT,然后返回他的位置,这里的每个中文是占3个字符,从0开始计算,那么#ifdef FRAGMENT的位置就是12\n\tcomma := strings.Index(tracer, \"#ifdef FRAGMENT\")\n\t//pos := strings.Index(string(b)[comma:], \"#ifdef FRAGMENT\")\n\tfmt.Println(tracer[comma:] + \" + \\\"\\x00\\\"\")\n\n\t//tracer[comma:]这个是的意思截取字符串tracer,从12开始,包括12\n}", "func ReadFragmentShader(path string) string {\n\treturn readShader(\"fragment\", path)\n}", "func (fb FrameBuffer) ColorAt(x int, y int) color.Color {\n\tc := fb.img.At(x, y)\n\treturn c\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetAttribLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetAttribLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func getRed(ftemp float64) int {\n\t//range from 0 to 20 now\n\tftempConv := ftemp - min\n\tred := (ftempConv / diff) * 255\n\treturn int(red)\n}", "func (fr *Frame) getHexValue(first int, last ...int) string {\n\tif len(last) == 1 {\n\t\treturn fr.Value[(first*2)-2 : (last[0] * 2)]\n\t}\n\treturn fr.Value[(first*2)-2 : (first * 2)]\n}", "func (program Program) GetAttribLocation(name string) int32 {\n\treturn gl.GetAttribLocation(uint32(program), gl.Str(name+\"\\x00\"))\n}", "func (m *Module) indexNamedConst(goConst *ssa.NamedConst) error {\n\t// TODO: index named constant as LLVM IR constant global variable.\n\tpanic(\"not yet implemented\")\n}", "func colorcomp(s string) (red, green, blue, alpha float64) {\n\tif len(s) < 7 && s[0:0] != \"#\" {\n\t\treturn red, green, blue, alpha\n\t}\n\tvar av = make([]byte, 1)\n\trv, _ := hex.DecodeString(s[1:3])\n\tgv, _ := hex.DecodeString(s[3:5])\n\tbv, _ := hex.DecodeString(s[5:7])\n\n\tred = float64(rv[0])\n\tgreen = float64(gv[0])\n\tblue = float64(bv[0])\n\talpha = 255.0\n\n\tif len(s) == 9 {\n\t\tav, _ = hex.DecodeString(s[7:9])\n\t\talpha = float64(av[0])\n\t}\n\treturn red, green, blue, alpha\n}", "func (l *LocationCache) FindUniform(name string) int {\n\t// Scan through the cache for it now.\n\tfor _, u := range l.uniforms {\n\t\tif u.name != name {\n\t\t\tcontinue\n\t\t}\n\t\treturn u.location\n\t}\n\n\t// Query directly and store in the cache.\n\ti := l.GetUniformLocation(name)\n\tif i < 0 {\n\t\ti = -1\n\t}\n\tl.uniforms = append(l.uniforms, location{\n\t\tname: name,\n\t\tlocation: i,\n\t})\n\treturn i\n}", "func greedyColoringOf(g graph.Undirected, order graph.Nodes, partial map[int64]int) (k int, colors map[int64]int) {\n\tcolors = partial\n\tconstrained := false\n\tfor _, c := range colors {\n\t\tif c > k {\n\t\t\tk = c\n\t\t\tconstrained = true\n\t\t}\n\t}\n\n\t// Next nodes are chosen by the specified heuristic in order.\n\tfor order.Next() {\n\t\tuid := order.Node().ID()\n\t\tused := colorsOf(g.From(uid), colors)\n\t\tif c, ok := colors[uid]; ok {\n\t\t\tif used.Has(c) {\n\t\t\t\treturn -1, nil\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\t\t// Color the chosen vertex with the least possible\n\t\t// (lowest numbered) color.\n\t\tfor c := 0; c <= k+1; c++ {\n\t\t\tif !used.Has(c) {\n\t\t\t\tcolors[uid] = c\n\t\t\t\tif c > k {\n\t\t\t\t\tk = c\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n\n\tif !constrained {\n\t\treturn k + 1, colors\n\t}\n\tseen := make(set.Ints)\n\tfor _, c := range colors {\n\t\tseen.Add(c)\n\t}\n\treturn seen.Count(), colors\n}", "func print_color(chunks []Chunk) {\n\tc := 1\n\tfor i := range chunks {\n\t\tpayload := chunks[i].payload\n\t\ttag := chunks[i].tag\n\t\tvar x int\n\t\tif tag == \"\" {\n\t\t\tx = 7 // white\n\t\t} else {\n\t\t\tx = c\n\t\t\tc++\n\t\t\tif c > 6 {\n\t\t\t\tc = 1\n\t\t\t}\n\t\t}\n\t\tcolor := \"\\x1b[3\" + strconv.Itoa(x) + \"m\"\n\t\tfmt.Printf(\"%s%s\", color, payload)\n\t}\n\tfmt.Println()\n}", "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func findAndSymbol(abc *st.Art) (symbol1 rune, symbol2 rune) {\n\tfor _, word := range abc.Flag.Color.BySymbol.Range {\n\t\tfor _, symbol := range word {\n\t\t\tif symbol1 == 0 {\n\t\t\t\tsymbol1 = symbol\n\t\t\t}\n\t\t\tsymbol2 = symbol\n\t\t}\n\t}\n\t// if wrong range, fix it\n\tif symbol1 > symbol2 {\n\t\tsymbol1, symbol2 = symbol2, symbol1\n\t}\n\treturn symbol1, symbol2\n}", "func getPieceColor(square uint8) int {\n\treturn int((square & ColorMask) >> 2)\n}", "func indexFragment(s string) int {\n\tmax := -1\n\tfor _, sep := range []string{\". \", \": \", \"; \", \", \", \"! \", \"? \", \"\\\" \", \"' \"} {\n\t\tif idx := strings.LastIndex(s, sep); idx > max {\n\t\t\tmax = idx\n\t\t}\n\t}\n\tif max > 0 {\n\t\treturn max + 2\n\t}\n\tif idx := strings.LastIndex(s, \" \"); idx > 0 {\n\t\treturn idx + 1\n\t}\n\treturn -1\n}", "func (d *Database) GetColorForGroup(uid, eid string) (string, error) {\n\tclusterID, err := d.getClusterID(uid, eid)\n\tif err != nil {\n\t\tlog.Printf(\"Could not get cluster for %s:%s because \\\"%s\\\"\", eid, uid, err)\n\t\treturn \"\", err\n\t}\n\n\tresult := d.client.HGet(fmt.Sprintf(\"meta:%s\", eid), fmt.Sprintf(\"color:%.0f\", clusterID))\n\tif err := result.Err(); err != nil {\n\t\tlog.Printf(\"Could not get color for %s because \\\"%s\\\"\", eid, err)\n\t\treturn \"\", err\n\t}\n\n\treturn result.Val(), nil\n}", "func GetProgramResourceIndex(program uint32, programInterface uint32, name *uint8) uint32 {\n\tret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func GetProgramResourceIndex(program uint32, programInterface uint32, name *uint8) uint32 {\n\tret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func (d *FileDescriptor) VarName() string { return fmt.Sprintf(\"fileDescriptor%d\", d.index) }", "func (native *OpenGL) BindFragDataLocation(program uint32, color uint32, name string) {\n\tgl.BindFragDataLocation(program, color, gl.Str(name+\"\\x00\"))\n}", "func (c *compiler) numIndex(n float64) int {\n\tif index, ok := c.indexes.nums[n]; ok {\n\t\treturn index // reuse existing constant\n\t}\n\tindex := len(c.program.Nums)\n\tc.program.Nums = append(c.program.Nums, n)\n\tc.indexes.nums[n] = index\n\treturn index\n}", "func ColorString(mode RenderMode, px Pixel) string {\n\tif px.alpha < TRANSPARENCY_THRESHOLD {\n\t\treturn \"\" // sentinel for transparent colors\n\t}\n\tif mode == term24bit {\n\t\tr, g, b := px.color.RGB255()\n\t\treturn fmt.Sprintf(\"%d;%d;%d\", r, g, b)\n\t}\n\tresult := 0\n\tlast := len(colors[mode]) - 1\n\tdist := ColorDistance(mode, px.color, colors[mode][last])\n\t// start from the end so higher color indices are favored in the irc palette\n\tfor i := last - 1; i >= 0; i-- {\n\t\td := ColorDistance(mode, px.color, colors[mode][i])\n\t\tif d < dist {\n\t\t\tdist = d\n\t\t\tresult = i\n\t\t}\n\t}\n\treturn strconv.Itoa(result)\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetShaderiv, 3, uintptr(shader), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func ColorState(r *Redlight, t time.Time) int {\n\ttotalPatternDuration := func() (result int) {\n\t\tfor _, v := range r.pattern {\n\t\t\tresult += v[1]\n\t\t}\n\t\treturn\n\t}()\n\truntime := int(t.Sub(r.initialTime).Seconds())\n\ttimeInLoop := runtime % totalPatternDuration\n\n\tvar cumulatedTime int\n\tvar state int\n\tfor _, v := range r.pattern {\n\t\tif cumulatedTime > timeInLoop {\n\t\t\tbreak\n\t\t}\n\t\tcumulatedTime += v[1]\n\t\tstate = v[0]\n\t}\n\treturn state\n}" ]
[ "0.6252214", "0.6208652", "0.57627785", "0.5612784", "0.55778563", "0.55778563", "0.55746984", "0.5547789", "0.5537641", "0.55326444", "0.55326444", "0.550868", "0.540856", "0.5394617", "0.5379951", "0.5290347", "0.524688", "0.52168596", "0.52167517", "0.5212959", "0.5212959", "0.5207361", "0.5152743", "0.5144665", "0.513863", "0.5135054", "0.51263756", "0.51200056", "0.5042884", "0.5042631", "0.50308317", "0.50303143", "0.49968743", "0.49937746", "0.4987309", "0.49810177", "0.49589285", "0.49480686", "0.4911706", "0.49017802", "0.49005577", "0.48967707", "0.48947787", "0.48933744", "0.48867884", "0.4879856", "0.4879856", "0.48620865", "0.48566267", "0.48561004", "0.4847957", "0.4837988", "0.4834816", "0.48247546", "0.47970346", "0.47970346", "0.4789548", "0.47892693", "0.4788454", "0.47713524", "0.4766541", "0.476326", "0.476326", "0.47602105", "0.474501", "0.47393984", "0.47259283", "0.47259283", "0.47238287", "0.4711197", "0.4711197", "0.4699862", "0.46987298", "0.4689625", "0.46883085", "0.4683299", "0.46777496", "0.46777496", "0.4659725", "0.46531302", "0.46517363", "0.4649629", "0.46430612", "0.46358812", "0.46283272", "0.46274862", "0.46173942", "0.461192", "0.4605577", "0.46037856", "0.4603047", "0.45949668", "0.45949668", "0.45939848", "0.45925438", "0.45804945", "0.45802498", "0.457764", "0.4575525" ]
0.48227704
55
query the name of an indexed resource within a program
func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *uint8) { C.glowGetProgramResourceName(gpGetProgramResourceName, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetProgramResourceIndex(program uint32, programInterface uint32, name *int8) uint32 {\n ret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (uint32)(ret)\n}", "func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *int8) {\n C.glowGetProgramResourceName(gpGetProgramResourceName, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *int8) int32 {\n ret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func QueryForResource(resource, version string) string {\n\treturn fmt.Sprintf(\"data.%s\", ResourcePolicyModuleName(resource, version))\n}", "func GetProgramResourceIndex(program uint32, programInterface uint32, name *uint8) uint32 {\n\tret, _, _ := syscall.Syscall(gpGetProgramResourceIndex, 3, uintptr(program), uintptr(programInterface), uintptr(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetProgramResourceLocationIndex, 3, uintptr(program), uintptr(programInterface), uintptr(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetProgramResourceIndex(program uint32, programInterface uint32, name *uint8) uint32 {\n\tret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func GetProgramResourceIndex(program uint32, programInterface uint32, name *uint8) uint32 {\n\tret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tsyscall.Syscall6(gpGetProgramResourceName, 6, uintptr(program), uintptr(programInterface), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(name)))\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *uint8) int32 {\n\tret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *uint8) int32 {\n\tret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetIndexOIDForResource(resource string) string {\n\treturn resourceIndex[resource]\n}", "func (resource *Resource) GetResourceIndex(component Component) int {\n\tfor i, currentResource := range component.GetResources() {\n\t\tif currentResource.Group == resource.Group && currentResource.Version == resource.Version && currentResource.Kind == resource.Kind {\n\t\t\tif currentResource.Name == resource.Name && currentResource.Namespace == resource.Namespace {\n\t\t\t\treturn i\n\t\t\t}\n\t\t}\n\t}\n\n\treturn -1\n}", "func GetProgramResourceLocation(program uint32, programInterface uint32, name *int8) int32 {\n ret := C.glowGetProgramResourceLocation(gpGetProgramResourceLocation, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func (pi *PackageIndexer) Query(name string) string {\n\t// query indexer for package \n\tif _, ok := pi.packs[name]; ok {\t\t\t\t\t\t\t\n return OK \t\t\t\t\t\t\t\t\t\t\t\t\n }\n\n return FAIL\t\t\t\t\t\t\t\t\t\t\t\t\t\n}", "func (c Client) QueryByShortname(name string) (model.Pivio, error) {\n\turl := c.buildShortnameQueryURL(name)\n\n\tlog.Printf(\"accessing %s\\n\", url)\n\tres, err := http.Get(url)\n\tif err != nil {\n\t\treturn model.Pivio{}, err\n\t}\n\tdefer res.Body.Close()\n\n\t// dump, err := httputil.DumpResponse(res, true)\n\t// if err != nil {\n\t// \tlog.Fatal(err)\n\t// }\n\n\t// fmt.Printf(\"%q\", dump)\n\n\tvar pivios = []model.Pivio{}\n\tpivios, err = model.ReadJSONMultiple(res.Body)\n\tif err != nil || len(pivios) < 1 {\n\t\treturn model.Pivio{}, err\n\t}\n\treturn pivios[0], nil\n}", "func resourceShortFormFor(resource string) (string, bool) {\n\tvar alias string\n\texists := false\n\tfor k, val := range shortForms {\n\t\tif val == resource {\n\t\t\talias = k\n\t\t\texists = true\n\t\t\tbreak\n\t\t}\n\t}\n\treturn alias, exists\n}", "func getResource(name string, taskInfo *mesos.TaskInfo) *mesos.Resource {\n\tfor _, resource := range taskInfo.Resources {\n\t\tif *resource.Name == name {\n\t\t\treturn resource\n\t\t}\n\t}\n\n\treturn nil\n}", "func getConceptByString(searchTerm string, resultLimit string) string {\n\turl := baseUrl + edition + \"/\" + version + \"/concepts?term=\" + searchTerm + \"&activeFilter=true&offset=0&limit=\" + resultLimit\n\treturn lookup(url)\n}", "func IndexResourcesByName(items []types.Resource) map[string]types.Resource {\n\tindexed := make(map[string]types.Resource, len(items))\n\tfor _, item := range items {\n\t\tindexed[GetResourceName(item)] = item\n\t}\n\treturn indexed\n}", "func (api *Api) ResourceName() string {\n\treturn fmt.Sprintf(\"projects/%s/apis/%s\", api.ProjectID, api.ApiID)\n}", "func (p *PortForward) getResourceName(ctx context.Context) (string, error) {\n\tvar err error\n\tif p.Name == \"\" {\n\t\tp.Name, err = p.findResourceByLabels(ctx)\n\t}\n\treturn p.Name, err\n}", "func ResourceShortFormFor(resource string) (string, bool) {\n\tvar alias string\n\texists := false\n\tfor _, item := range ResourcesShortcutStatic {\n\t\tif item.LongForm.Resource == resource {\n\t\t\talias = item.ShortForm.Resource\n\t\t\texists = true\n\t\t\tbreak\n\t\t}\n\t}\n\treturn alias, exists\n}", "func (c *Cache) GetResourceName(ctx context.Context, req *config.ResourceRequest) (*config.ResourceReply, error) {\n\t// if the cache is not ready we return an empty response\n\tif !c.GetReady() {\n\t\treturn &config.ResourceReply{}, nil\n\t}\n\n\tc.log.Debug(\"Config GetResourceName...\", \"Path\", req.GetPath())\n\n\t// provide a string from the gnmi Path\n\treqPath := *c.parser.ConfigGnmiPathToXPath(req.GetPath(), true)\n\t// initialize the variables which are used to keep track of the matched strings\n\tmatchedResourceName := \"\"\n\tmatchedResourcePath := \"\"\n\t// loop over the cache\n\tfor _, resourceData := range c.Data {\n\t\tfor resourceName, resourceStatus := range resourceData {\n\t\t\tresourcePath := *c.parser.ConfigGnmiPathToXPath(resourceStatus.Path, true)\n\t\t\t// check if the string is contained in the path\n\t\t\tif strings.Contains(reqPath, resourcePath) {\n\t\t\t\t// if there is a better match we use the better match\n\t\t\t\tif len(resourcePath) > len(matchedResourcePath) {\n\t\t\t\t\tmatchedResourcePath = resourcePath\n\t\t\t\t\tmatchedResourceName = resourceName\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tc.log.Debug(\"Config GetResourceName...\", \"ResourceName\", matchedResourceName)\n\treturn &config.ResourceReply{\n\t\tName: matchedResourceName,\n\t}, nil\n}", "func getProgramIndex(indexString string) (int, int, error) {\n\t// Try to convert it from a string to an integer.\n\tprogramIndex, err := strconv.Atoi(indexString)\n\n\t// Was it a valid index?\n\tif err == nil {\n\t\t// Make sure the program index is valid.\n\t\tvar numPrograms = len(config.Programs)\n\t\tif programIndex >= 0 && programIndex < numPrograms {\n\t\t\t// Program index is valid.\n\t\t\treturn programIndex, http.StatusOK, nil\n\t\t} else {\n\t\t\t// Program index is out of bounds.\n\t\t\tvar errMsg = \"Program index is out of bounds: \" + indexString\n\t\t\treturn programIndex, http.StatusNotFound,\n\t\t\t\terrors.New(errMsg)\n\t\t}\n\t} else {\n\t\t// It was an invalid program index.\n\t\treturn -1, http.StatusBadRequest,\n\t\t\terrors.New(\"Invalid program index: \" + indexString)\n\t}\n}", "func getIndexName(url string) string {\n\ttokens := strings.Split(url, \"/\")\n\treturn tokens[len(tokens)-2]\n}", "func (i *Index) Name() string { return i.name }", "func IndexResourcesByName(items []envoy_types.ResourceWithTTL) map[string]envoy_types.ResourceWithTTL {\n\tindexed := make(map[string]envoy_types.ResourceWithTTL, len(items))\n\tfor _, item := range items {\n\t\tkey := GetResourceName(item.Resource)\n\t\tindexed[key] = item\n\t}\n\treturn indexed\n}", "func DiscoverResourceName(client *discovery.DiscoveryClient, group, version, kind string) string {\n\tvar gv string\n\tif group != \"\" {\n\t\tgv = fmt.Sprintf(\"%s/%s\", group, version)\n\t} else {\n\t\tgv = version\n\t}\n\tresources, err := client.ServerResourcesForGroupVersion(gv)\n\tif err != nil {\n\t\treturn \"\"\n\t}\n\tfor i := range resources.APIResources {\n\t\tapires := &resources.APIResources[i]\n\t\tif apires.Kind == kind {\n\t\t\treturn apires.Name\n\t\t}\n\t}\n\treturn \"\"\n}", "func getAppIndexInShelf(items []*ash.ShelfItem, name string) (int, error) {\n\tfor index, item := range items {\n\t\tif item.Title == name {\n\t\t\treturn index, nil\n\t\t}\n\t}\n\n\treturn -1, errors.New(\"Not found\")\n}", "func GetProgramResourceLocation(program uint32, programInterface uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetProgramResourceLocation, 3, uintptr(program), uintptr(programInterface), uintptr(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func (es ES) QueryToolByName(name string) ([]globals.Perco, error) {\n\tquery := elastic.NewTermQuery(\"name.keyword\", name)\n\n\tsearchResult, err := es.Client.Search().\n\t\tIndex(\"tools\").\n\t\tQuery(query).\n\t\tFrom(0).Size(1000).\n\t\tPretty(true).\n\t\tDo(es.Context)\n\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar tools []globals.Perco\n\tif searchResult.Hits.TotalHits > 0 {\n\t\tfmt.Printf(\"Found a total of %d tools\\n\", searchResult.Hits.TotalHits)\n\t\tfor _, hit := range searchResult.Hits.Hits {\n\t\t\tvar tool globals.Perco\n\t\t\terr := json.Unmarshal(*hit.Source, &tool)\n\t\t\ttool.ID = hit.Id\n\t\t\tif err != nil {\n\t\t\t\tlog.Errorf(\"Unable to deserialize source into answer : %s\", err)\n\t\t\t}\n\t\t\ttools = append(tools, tool)\n\t\t}\n\t}\n\n\treturn tools, nil\n}", "func GetProgramResourceLocation(program uint32, programInterface uint32, name *uint8) int32 {\n\tret := C.glowGetProgramResourceLocation(gpGetProgramResourceLocation, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetProgramResourceLocation(program uint32, programInterface uint32, name *uint8) int32 {\n\tret := C.glowGetProgramResourceLocation(gpGetProgramResourceLocation, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func ResourceName(meta *admin.Meta) string {\n\t// follow ptr && slice\n\telemType := meta.FieldStruct.Struct.Type\n\tfor elemType.Kind() == reflect.Slice || elemType.Kind() == reflect.Ptr {\n\t\telemType = elemType.Elem()\n\t}\n\n\t// get empty struct\n\tvalue := reflect.New(elemType).Interface()\n\n\treturn getResourceNameByValue(value)\n}", "func (f *Finding) Resource() string {\n\taff := f.etd.JSONPayload.AffectedResources\n\tif len(aff) == 0 {\n\t\treturn \"\"\n\t}\n\tm := extractResource.FindStringSubmatch(aff[0].GCPResourceName)\n\tif m == nil {\n\t\treturn \"\"\n\t}\n\treturn m[1]\n\n}", "func (p *SASQueryParameters) Resource() string {\n\treturn p.resource\n}", "func getResource(mapping *meta.RESTMapping, config *rest.Config, group string,\n\tversion string, namespace string, name string) error {\n\trestClient, err := getRESTClient(config, group, version)\n\tif err != nil {\n\t\treturn &kfapis.KfError{\n\t\t\tCode: int(kfapis.INVALID_ARGUMENT),\n\t\t\tMessage: fmt.Sprintf(\"getResource error: %v\", err),\n\t\t}\n\t}\n\n\tif _, err = restClient.\n\t\tGet().\n\t\tResource(mapping.Resource.Resource).\n\t\tNamespaceIfScoped(namespace, mapping.Scope.Name() == \"namespace\").\n\t\tName(name).\n\t\tDo().\n\t\tGet(); err == nil {\n\t\treturn nil\n\t} else {\n\t\treturn &kfapis.KfError{\n\t\t\tCode: int(kfapis.INVALID_ARGUMENT),\n\t\t\tMessage: fmt.Sprintf(\"getResource error: %v\", err),\n\t\t}\n\t}\n}", "func Lookup(name string) string {\n\treturn index[name]\n}", "func execResourceCommand(c *cli.Context) {\n\ttable := uitable.New()\n\ttable.MaxColWidth = 80\n\ttable.AddRow(\"RESOURCE\", \"DESCRIPTION\")\n\n\tfor _, item := range resource.Registry {\n\t\ttable.AddRow(item.Name, item.Description)\n\t}\n\n\tfmt.Println(table)\n}", "func resourceName(ID string) (string, error) {\n\tparts := strings.Split(ID, \"/\")\n\tname := parts[len(parts)-1]\n\tif len(name) == 0 {\n\t\treturn \"\", fmt.Errorf(\"resource name was missing from identifier\")\n\t}\n\n\treturn name, nil\n}", "func getResourceName(object runtime.Object, kind string) string {\n\treflection := reflect.Indirect(reflect.ValueOf(object))\n\treturn reflection.FieldByName(\"ObjectMeta\").FieldByName(\"Name\").String()\n}", "func GetResByName(name string) Res {\n\tfor _, r := range resources {\n\t\tif r.GetName() == name {\n\t\t\treturn r\n\t\t}\n\t}\n\n\treturn nil\n}", "func (qb QueryBuilder) getResourceNames() []string {\n\tif qb.translator.useNewResourceModel {\n\t\t// new resource model\n\t\tif !qb.pods.isPodValuesEmpty() {\n\t\t\t// pods\n\t\t\treturn qb.pods.getQuotedPodNames()\n\t\t}\n\t\t// nodes\n\t\treturn qb.nodes.getNodeNames()\n\t}\n\t// legacy resource model\n\treturn qb.pods.getPodIDs()\n}", "func (p *Provider) queryMainDomain(ctx context.Context, name string) (string, string, error) {\n\tp.client.mutex.Lock()\n\tdefer p.client.mutex.Unlock()\n\tp.getClient()\n\tp.client.aClient.addReqBody(\"Action\", \"GetMainDomainName\")\n\tp.client.aClient.addReqBody(\"InputString\", strings.Trim(name, \".\"))\n\trs := aliResult{}\n\terr := p.doAPIRequest(ctx, &rs)\n\tif err != nil {\n\t\treturn \"\", \"\", err\n\t}\n\treturn rs.Rr, rs.DName, err\n}", "func (r *Subresource) Addr() string {\n\treturn fmt.Sprintf(\"%s.%d\", r.srtype, r.Index)\n}", "func GetQueryIndexediv(target uint32, index uint32, pname uint32, params *int32) {\n C.glowGetQueryIndexediv(gpGetQueryIndexediv, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func Resource(p ...string) string {\n\treturn path.Join(append([]string{home}, p...)...)\n}", "func queryDB(i string, name string) string {\n\tdberr := pool.QueryRow(\"select \" + i + \" from provision where name ='\" + name + \"'\").Scan(&i)\n\tif dberr != nil {\n\t\tfmt.Println(dberr.Error())\n\t\treturn \"\"\n\t}\n\treturn i\n}", "func (p *ThriftHiveMetastoreClient) GetIndexByName(ctx context.Context, db_name string, tbl_name string, index_name string) (r *Index, err error) {\n var _args112 ThriftHiveMetastoreGetIndexByNameArgs\n _args112.DbName = db_name\n _args112.TblName = tbl_name\n _args112.IndexName = index_name\n var _result113 ThriftHiveMetastoreGetIndexByNameResult\n if err = p.Client_().Call(ctx, \"get_index_by_name\", &_args112, &_result113); err != nil {\n return\n }\n switch {\n case _result113.O1!= nil:\n return r, _result113.O1\n case _result113.O2!= nil:\n return r, _result113.O2\n }\n\n return _result113.GetSuccess(), nil\n}", "func (client *esClient) Query(index, typeName string, queryStrings ...string) (*elastic.SearchResult, error) {\n\tvar queryString string\n\tif len(queryStrings) > 0 {\n\t\tqueryString = queryStrings[0]\n\t}\n\t// 根据名字查询\n\tquery := elastic.NewQueryStringQuery(queryString)\n\tresult, err := client.Search().Index(index).Type(typeName).Query(query).Do(client.ctx)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif result.Hits.TotalHits > 0 {\n\t\treturn result, nil\n\t}\n\treturn nil, errors.New(\"query the result is null\")\n}", "func (setup *FabricSetup) Query(key string) (string, error) {\n\tresponse, err := setup.QueryRaw(key)\n\treturn string(response), err\n}", "func GetQueryIndexediv(target uint32, index uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetQueryIndexediv, 4, uintptr(target), uintptr(index), uintptr(pname), uintptr(unsafe.Pointer(params)), 0, 0)\n}", "func (s *SmartContract) queryByIndex(stub shim.ChaincodeStubInterface, args []string) pb.Response {\n\n\t// 0\n\t// \"queryString\"\n\tif len(args) < 1 {\n\t\treturn shim.Error(ArgsMismatch)\n\t}\n\n\tqueryString := args[0]\n\n\tqueryResults, err := GetQueryResultForQueryString(stub, queryString)\n\tif err != nil {\n\t\treturn shim.Error(QueryError)\n\t}\n\treturn shim.Success(queryResults)\n}", "func Find(name string) (string, bool) { q, ok := queries[name]; return q, ok }", "func (self *OCSPResponder) getIndexEntry(s *big.Int) (*IndexEntry, error) {\n\tlog.Println(fmt.Sprintf(\"Looking for serial 0x%x\", s))\n\tif err := self.parseIndex(); err != nil {\n\t\treturn nil, err\n\t}\n\tfor _, ent := range self.IndexEntries {\n\t\tif ent.Serial.Cmp(s) == 0 {\n\t\t\treturn &ent, nil\n\t\t}\n\t}\n\treturn nil, errors.New(fmt.Sprintf(\"Serial 0x%x not found\", s))\n}", "func (p *NoteStoreClient) GetResourceSearchText(ctx context.Context, authenticationToken string, guid Types.Guid) (r string, userException *Errors.EDAMUserException, systemException *Errors.EDAMSystemException, notFoundException *Errors.EDAMNotFoundException, err error) {\n\tif err = p.sendGetResourceSearchText(ctx, authenticationToken, guid); err != nil {\n\t\treturn\n\t}\n\treturn p.recvGetResourceSearchText(ctx)\n}", "func main() {\n // perform the search for the specified term\n search.Run(\"president\")\n}", "func (impl *Server) ResourceName() string {\n\treturn \"server\"\n}", "func (ii *IndexInfo) Name() string {\n\treturn ii.Index\n}", "func getKindRefID(params GetResourceParams) (string, error) {\n\tres, err := Get(params.GetParams)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\tvar refID string\n\tswitch params.Kind {\n\tcase util.Apm:\n\t\tfor _, resource := range res.Resources.Apm {\n\t\t\trefID = *resource.RefID\n\t\t}\n\tcase util.Kibana:\n\t\tfor _, resource := range res.Resources.Kibana {\n\t\t\trefID = *resource.RefID\n\t\t}\n\tcase util.Elasticsearch:\n\t\tfor _, resource := range res.Resources.Elasticsearch {\n\t\t\trefID = *resource.RefID\n\t\t}\n\tcase util.Appsearch:\n\t\tfor _, resource := range res.Resources.Appsearch {\n\t\t\trefID = *resource.RefID\n\t\t}\n\tcase util.EnterpriseSearch:\n\t\tfor _, resource := range res.Resources.EnterpriseSearch {\n\t\t\trefID = *resource.RefID\n\t\t}\n\t}\n\n\tif refID == \"\" {\n\t\treturn \"\", fmt.Errorf(\"deployment get: resource kind %s is not available\", params.Kind)\n\t}\n\n\treturn refID, nil\n}", "func readIndexerNameAndVersion() (string, string, error) {\n\tfile, err := os.Open(codeintelUploadFlags.file)\n\tif err != nil {\n\t\treturn \"\", \"\", err\n\t}\n\tdefer file.Close()\n\n\treturn upload.ReadIndexerNameAndVersion(file)\n}", "func (d DocLanguageHelper) GetResourceFunctionResultName(modName string, f *schema.Function) string {\n\tfuncName := d.GetFunctionName(modName, f)\n\treturn title(funcName) + \"Result\"\n}", "func (q *QueryGVR) resourceExists(resources []*metav1.APIResourceList) bool {\n\tif len(resources) == 0 {\n\t\treturn false\n\t}\n\tfor i := range resources {\n\t\tif resources[i] != nil {\n\t\t\tfor j := range resources[i].APIResources {\n\t\t\t\tif resources[i].APIResources[j].Name == q.resource.String {\n\t\t\t\t\treturn true\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn false\n}", "func (c *applicationOperator) getHelmAppByName(workspace, name string) (*v1alpha1.HelmApplication, error) {\n\tls := map[string]string{\n\t\tconstants.WorkspaceLabelKey: workspace,\n\t}\n\n\tlist, err := c.appLister.List(labels.SelectorFromSet(ls))\n\n\tif err != nil && !apierrors.IsNotFound(err) {\n\t\treturn nil, err\n\t}\n\n\tif len(list) > 0 {\n\t\tfor _, a := range list {\n\t\t\tif a.GetTrueName() == name {\n\t\t\t\treturn a, nil\n\t\t\t}\n\t\t}\n\t}\n\n\treturn nil, nil\n}", "func (d DocLanguageHelper) GetResourceFunctionResultName(modName string, f *schema.Function) string {\n\treturn title(tokenToName(f.Token)) + \"Result\"\n}", "func (m KubedgeBaseManager) ResourceName() string {\n\treturn m.PhaseName\n}", "func (i *Resource) Name() string {\n\treturn i.data.Name\n}", "func (m MatchedResources) Query(client *ApiClient, namespace string) (map[string][]byte, error) {\n\tvar err error\n\tresult := make(map[string][]byte)\n\n\tfor res, object := range m.WantRes{\n\t\tfor namespaced, g := range m.Gvr {\n\t\t\tfor _, gvr := range g {\n\t\t\t\tif res != gvr.Resource {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\tj := 0\n\t\t\t\tfor _, k := range object{\n\t\t\t\t\tif namespaced {\n\t\t\t\t\t\tf, err = client.DynClient.Resource(gvr).Namespace(namespace).Get(context.TODO(), k, metav1.GetOptions{})\n\t\t\t\t\t\tif err != nil {\n\t\t\t\t\t\t\treturn nil, err\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tf, err = client.DynClient.Resource(gvr).Get(context.TODO(), k, metav1.GetOptions{})\n\t\t\t\t\t\tif err != nil {\n\t\t\t\t\t\t\treturn nil, err\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\terr = deepCleaning(f)\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\treturn nil, err\n\t\t\t\t\t}\n\n\t\t\t\t\toutput, err := utils.GetPrettyYaml(f)\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\treturn nil, err\n\t\t\t\t\t}\n\t\t\t\t\tresult[fmt.Sprintf(\"%s-%v\", res, j)] = output\n\n\t\t\t\t\tj++\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n\treturn result, nil\n\n}", "func QueryName(handle handle.Handle, typ string, withTimeout bool) (string, htypes.Meta, error) {\n\tswitch typ {\n\tcase File:\n\t\tif !withTimeout {\n\t\t\treturn \"\", nil, nil\n\t\t}\n\t\t// delegate the name resolution to the deadlock aware handle timeout\n\t\tname, err := GetHandleWithTimeout(handle, 500)\n\t\tif err != nil {\n\t\t\treturn \"\", nil, err\n\t\t}\n\t\tname = devMapper.Convert(name)\n\t\tfileInfo := &htypes.FileInfo{IsDirectory: file.IsPathDirectory(name)}\n\t\treturn name, fileInfo, nil\n\tcase ALPCPort:\n\t\tport, err := GetAlpcPort(handle)\n\t\tif err != nil {\n\t\t\treturn \"\", nil, nil\n\t\t}\n\t\treturn \"\", port, nil\n\tcase Process:\n\t\tname, err := process.QueryFullImageName(handle)\n\t\tif err != nil {\n\t\t\treturn \"\", nil, nil\n\t\t}\n\t\treturn name, nil, nil\n\tcase Mutant:\n\t\tmutant, err := GetMutant(handle)\n\t\tif err != nil {\n\t\t\treturn \"\", nil, nil\n\t\t}\n\t\treturn \"\", mutant, nil\n\tdefault:\n\t\tname, err := queryObjectName(handle)\n\t\tif err != nil {\n\t\t\treturn \"\", nil, err\n\t\t}\n\t\tswitch typ {\n\t\tcase Key:\n\t\t\tkey, subkey := FormatKey(name)\n\t\t\trootKey := key.String()\n\t\t\tif key == registry.InvalidKey {\n\t\t\t\treturn name, nil, nil\n\t\t\t}\n\t\t\tif subkey != \"\" {\n\t\t\t\treturn rootKey + \"\\\\\" + subkey, nil, nil\n\t\t\t}\n\t\t\treturn key.String(), nil, nil\n\t\tdefault:\n\t\t\treturn name, nil, nil\n\t\t}\n\t}\n}", "func readIndexerNameFromFile(f *os.File) (string, error) {\n\t_, err1 := f.Seek(0, 0)\n\tname, err2 := readIndexerName(f)\n\t_, err3 := f.Seek(0, 0)\n\n\tfor _, err := range []error{err1, err2, err3} {\n\t\tif err != nil {\n\t\t\treturn \"\", err\n\t\t}\n\t}\n\n\treturn name, nil\n}", "func (es ES) QueryToolByID(id string) (globals.Perco, error) {\n\tvar tool globals.Perco\n\tsearchResult, err := es.Client.Get().\n\t\tIndex(\"tools\").\n\t\tId(id).\n\t\tDo(es.Context)\n\n\tif err != nil {\n\t\treturn tool, err\n\t}\n\n\tif searchResult.Found {\n\t\tlog.Debug(\"Found a tool matching this ID\")\n\t\terr := json.Unmarshal(*searchResult.Source, &tool)\n\t\ttool.ID = searchResult.Id\n\t\tif err != nil {\n\t\t\treturn tool, err\n\t\t}\n\t}\n\n\treturn tool, nil\n}", "func getConceptByDescription(descriptionId string) string {\n\turl := baseUrl + edition + \"/\" + version + \"/descriptions/\" + descriptionId\n\treturn lookup(url)\n\n}", "func (jid JID) Resource() string {\n\tif i := strings.Index(string(jid), \"/\"); i != -1 {\n\t\treturn string(jid[i+1:])\n\t}\n\treturn \"\"\n}", "func indexRead(key string) (*pkg, bool) {\n\tlocker.RLock()\n\tdefer locker.RUnlock()\n\n\tp, ok := indexedPkgs[key]\n\treturn p, ok\n}", "func (q *gcpQuery) queryNameServer(gcpClient gcpclient.Client, managedZone string, domain string) (sets.String, error) {\n\tlistOutput, err := gcpClient.ListResourceRecordSets(\n\t\tmanagedZone,\n\t\tgcpclient.ListResourceRecordSetsOptions{\n\t\t\tMaxResults: 1,\n\t\t\tName: controllerutils.Dotted(domain),\n\t\t\tType: \"NS\",\n\t\t},\n\t)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif len(listOutput.Rrsets) == 0 {\n\t\treturn nil, nil\n\t}\n\tvalues := sets.NewString()\n\tfor _, v := range listOutput.Rrsets[0].Rrdatas {\n\t\tvalues.Insert(controllerutils.Undotted(v))\n\t}\n\treturn values, nil\n}", "func getLoggedResourceName(name string) (string, error) {\n\tnameTokens := LoggedResourceFileRegExp.FindStringSubmatch(name)\n\n\tif len(nameTokens) != 7 {\n\t\tlog.Errorf(\"%d %s\", len(nameTokens), name)\n\t\treturn \"\", errResourceIdName\n\t}\n\treturn nameTokens[1], nil\n}", "func (j JID) Resourcepart() string {\n\treturn string(j.data[j.locallen+j.domainlen:])\n}", "func (*SearchRes) Descriptor() ([]byte, []int) {\n\treturn file_helm_api_proto_rawDescGZIP(), []int{25}\n}", "func query(pkg *pkg) error {\n\t// check the indexed packages to see if this new pkg exists\n\tpkg, ok := indexRead(pkg.Name)\n\n\tif !ok {\n\t\treturn missingPackage\n\t}\n\treturn nil\n}", "func main() {\n\tif len(os.Args) == 1 {\n\t\tlog.Fatal(\"search term missing\")\n\t\tos.Exit(1)\n\t}\n\tclient, err := xkcd.NewClient()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tclient.Index.Update()\n\tr := client.Search(strings.Join(os.Args[1:], \" \"))\n\n\tfmt.Printf(\"\\n%d comics found\\n\\n\", len(r.Comics))\n\tfor _, comic := range r.Comics {\n\t\tfmt.Println(comic.Title)\n\t\tfmt.Println(comic.Link)\n\t\tfmt.Printf(\"%s\\n\\n--------------\\n\\n\", comic.Transcript)\n\t}\n}", "func (c serverResources) findResourceFromResourceName(gvr schema.GroupVersionResource) (schema.GroupVersionKind, error) {\n\t_, serverGroupsAndResources, err := c.cachedClient.ServerGroupsAndResources()\n\tif err != nil && !strings.Contains(err.Error(), \"Got empty response for\") {\n\t\tif discovery.IsGroupDiscoveryFailedError(err) {\n\t\t\tlogDiscoveryErrors(err)\n\t\t} else if isServerCurrentlyUnableToHandleRequest(err) {\n\t\t\tlogger.V(3).Info(\"failed to find preferred resource version\", \"error\", err.Error())\n\t\t} else {\n\t\t\tlogger.Error(err, \"failed to find preferred resource version\")\n\t\t\treturn schema.GroupVersionKind{}, err\n\t\t}\n\t}\n\tapiResource, err := findResourceFromResourceName(gvr, serverGroupsAndResources)\n\tif err != nil {\n\t\treturn schema.GroupVersionKind{}, err\n\t}\n\treturn schema.GroupVersionKind{Group: apiResource.Group, Version: apiResource.Version, Kind: apiResource.Kind}, err\n}", "func (*ApplicationSearchQuery) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{104}\n}", "func (*ApplicationSearchQuery) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{107}\n}", "func (module *ResourceModule) GetResourceByName(name string) (*Resource, error) {\n\tv, ok := (*module.ResourceMap)[name]\n\tif ok {\n\t\treturn &v, nil\n\t}\n\n\treturn nil, errors.New(\"Resource does not exist \")\n}", "func qryApp(cmd marcopolo.CmdMsg, srvConn *marcopolo.ServerConn) {\n\tappName := cmd.AppNameParam.AppName\n\tfmt.Println(\"qry app \", appName)\n\n\t// look for a regd app w. this name\n\tfoundApp, found := apps[appName]\n\tif found {\n\t\t//TODO: ping app to confirm it is still there (&unreg if no answer)!\n\t\t// or do we leave this to caller ?\n\t\t// the problem I see w. pign here is that since we use UDP,\n\t\t// the caller might do a sendQry/tryToGetResp loop .. as we would do here !\n\t\t// Which would mean we would get multiple/dup queries from same caller,\n\t\t// which we would need to know how to hanle (recognize & skip,\n\t\t// or keep list of callers for an app name & send all answers back: not as clean but simpler)\n\t\tfmt.Printf(\"qryapp, found @ %s\\n\", foundApp.appAddr)\n\n\t\t// send back answer to caller\n\t\tsrvConn.SendRespQryApp(foundApp.appAddr, cmd.UdpPacket.RemoteAddr)\n\t} else {\n\t\t// send back error to caller\n\t\tfmt.Println(\"qryapp, not found\")\n\n\t\terrMsg := fmt.Errorf(\"qryapp, '%s' not found \", appName)\n\t\tsrvConn.SendRespQryAppErr(errMsg, cmd.UdpPacket.RemoteAddr)\n\t}\n}", "func (o *AddOn) ResourceName() string {\n\tif o != nil && o.bitmap_&65536 != 0 {\n\t\treturn o.resourceName\n\t}\n\treturn \"\"\n}", "func (n *namest) getName(db *sql.DB) error {\n return db.QueryRow(\"SELECT name FROM names WHERE name=$1\",\n n.Name).Scan(&n.Name)\n}", "func main() {\n\tresult, err := xkcd.SearchSingle()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Println(result.Items[0].Title)\n\tif err := report.Execute(os.Stdout, result); err != nil {\n\t\tlog.Fatal(err)\n\t}\n}", "func readIndexerName(r io.Reader) (string, error) {\n\tgzipReader, err := gzip.NewReader(r)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\tline, isPrefix, err := bufio.NewReader(gzipReader).ReadLine()\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tif isPrefix {\n\t\treturn \"\", errors.New(\"metaData vertex exceeds buffer\")\n\t}\n\n\tmeta := metaDataVertex{}\n\tif err := json.Unmarshal(line, &meta); err != nil {\n\t\treturn \"\", ErrInvalidMetaDataVertex\n\t}\n\n\tif meta.Label != \"metaData\" || meta.ToolInfo.Name == \"\" {\n\t\treturn \"\", ErrInvalidMetaDataVertex\n\t}\n\n\treturn meta.ToolInfo.Name, nil\n}", "func (r *Resource) Name() string {\n\treturn Name\n}", "func (r *Resource) Name() string {\n\treturn Name\n}", "func (r *Resource) Name() string {\n\treturn Name\n}", "func getIndexContent(name string) string {\n\treturn fmt.Sprintf(`export { default } from \"./%s\";`, name)\n}", "func Query(req *http.Request, name string) string {\n\treturn req.URL.Query().Get(name)\n}", "func (r Resource) Name() string {\n\treturn r.name\n}", "func getNameRegEntry(t *testing.T, client client.RPCClient, name string) *core_types.NameRegEntry {\n\tentry, err := edbcli.GetName(client, name)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\treturn entry\n}", "func (*GetResourceByNameRequest) Descriptor() ([]byte, []int) {\n\treturn file_buf_alpha_registry_v1alpha1_resource_proto_rawDescGZIP(), []int{1}\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}" ]
[ "0.65009373", "0.6491565", "0.6370381", "0.6344517", "0.6182114", "0.6165916", "0.61575943", "0.61575943", "0.6114555", "0.60896236", "0.60896236", "0.608252", "0.5633525", "0.55932236", "0.55820435", "0.553354", "0.55016506", "0.5490271", "0.547159", "0.5469203", "0.5457936", "0.5426896", "0.5414031", "0.5396104", "0.5338804", "0.5331193", "0.53268045", "0.5300547", "0.52772105", "0.5256738", "0.52377594", "0.5220749", "0.5217519", "0.5217519", "0.5194032", "0.51224786", "0.50709563", "0.5058137", "0.50560987", "0.50454116", "0.5038229", "0.50035167", "0.4995047", "0.49932766", "0.4991936", "0.4991094", "0.4990927", "0.49858868", "0.49791735", "0.49790102", "0.49627635", "0.49581623", "0.49575374", "0.49566895", "0.49429938", "0.49217817", "0.4917062", "0.49145594", "0.49021727", "0.48964554", "0.48956043", "0.48903736", "0.4879439", "0.48740366", "0.48727328", "0.48689392", "0.48688245", "0.48669404", "0.4863226", "0.4861932", "0.4858853", "0.48563856", "0.48560277", "0.48512304", "0.48441488", "0.483799", "0.4830657", "0.48296863", "0.48289526", "0.48263657", "0.48213997", "0.48193252", "0.48149595", "0.47925228", "0.47923002", "0.4791372", "0.47891343", "0.4784101", "0.47774687", "0.47745648", "0.47720206", "0.47720206", "0.47720206", "0.4770085", "0.47631648", "0.4761142", "0.47562957", "0.4748751", "0.47476423" ]
0.61201185
9
Returns a parameter from a program object
func GetProgramiv(program uint32, pname uint32, params *int32) { C.glowGetProgramiv(gpGetProgramiv, (C.GLuint)(program), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *Program) getParameter(param uint32) int {\n\tvar v int32\n\tgl.GetProgramiv(uint32(p.glHandle), param, &v)\n\treturn int(v)\n}", "func (debugging *debuggingOpenGL) GetProgramParameter(program uint32, param uint32) int32 {\n\tdebugging.recordEntry(\"GetProgramParameter\", program, param)\n\tresult := debugging.gl.GetProgramParameter(program, param)\n\tdebugging.recordExit(\"GetProgramParameter\", result)\n\treturn result\n}", "func (native *OpenGL) GetProgramParameter(program uint32, param uint32) int32 {\n\tresult := int32(0)\n\tgl.GetProgramiv(program, param, &result)\n\treturn result\n}", "func (gl *WebGL) GetProgramParameter(shaderProgram WebGLShaderProgram, param GLEnum) js.Value {\n\treturn gl.context.Call(\"getProgramParameter\", shaderProgram, param)\n}", "func ProgramParameteri(program uint32, pname uint32, value int32) {\n\tsyscall.Syscall(gpProgramParameteri, 3, uintptr(program), uintptr(pname), uintptr(value))\n}", "func (d *KfDef) GetApplicationParameter(appName string, paramName string) (string, bool) {\n\t// First we check applications for an application with the specified name.\n\tif d.Spec.Applications != nil {\n\t\tfor _, a := range d.Spec.Applications {\n\t\t\tif a.Name == appName {\n\t\t\t\treturn getParameter(a.KustomizeConfig.Parameters, paramName)\n\t\t\t}\n\t\t}\n\t}\n\n\t// Since an application with the specified name wasn't found check the deprecated componentParams\n\tif _, ok := d.Spec.ComponentParams[appName]; ok {\n\t\treturn getParameter(d.Spec.ComponentParams[appName], paramName)\n\t}\n\n\treturn \"\", false\n}", "func (m *ProgramControl) GetProgram()(Programable) {\n val, err := m.GetBackingStore().Get(\"program\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.(Programable)\n }\n return nil\n}", "func getParam(memory []int, ip int, rb int, mode ParamMode) int {\n\tswitch mode {\n\tcase POSITION:\n\t\treturn memory[memory[ip]]\n\tcase IMMEDIATE:\n\t\treturn memory[ip]\n\tcase RELATIVE:\n\t\treturn memory[rb+memory[ip]]\n\tdefault:\n\t\tpanic(fmt.Errorf(\"Unknown parameter mode: %d\", mode))\n\t}\n\treturn 0\n}", "func (options *Options) Param(pos int) interface{} {\n\tif len(options.params) > pos {\n\t\treturn options.params[pos]\n\t}\n\n\treturn nil\n}", "func (m *ProgramControl) GetProgramId()(*string) {\n val, err := m.GetBackingStore().Get(\"programId\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.(*string)\n }\n return nil\n}", "func Param(ctx context.Context, name string) string {\n\treturn Params(ctx).ByName(name)\n}", "func (s *BaseEvent) GetParamAsStr( name string ) (string,error) {\n if t,ok:=s.execParams[name]; ok {\n return t,nil\n } // if\n s.errString = fmt.Sprintf(\"GetParamAsStr execParams does not contain key:'%s'\",name)\n return \"\",s\n}", "func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *int8) {\n C.glowGetProgramResourceName(gpGetProgramResourceName, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (modes Modes) Param(position int) Mode {\n\tdigit := digitAt(int(modes), position)\n\treturn Mode(digit)\n}", "func ProgramParameteri(program uint32, pname uint32, value int32) {\n\tC.glowProgramParameteri(gpProgramParameteri, (C.GLuint)(program), (C.GLenum)(pname), (C.GLint)(value))\n}", "func ProgramParameteri(program uint32, pname uint32, value int32) {\n\tC.glowProgramParameteri(gpProgramParameteri, (C.GLuint)(program), (C.GLenum)(pname), (C.GLint)(value))\n}", "func (s *Instruction) Param() *Param {\n\tif len(s.Params) > 0 {\n\t\treturn s.Params[0]\n\t}\n\treturn nil\n}", "func (c *Context) Param(name string) string {\n\treturn c.Params.Get(name)\n}", "func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tsyscall.Syscall6(gpGetProgramResourceName, 6, uintptr(program), uintptr(programInterface), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(name)))\n}", "func GetProgram(id string) (program model.Program, err error) {\n\trows, err := db.Query(\"SELECT name, versions, path, exceptions FROM programs WHERE id=?\", id)\n\tif err != nil {\n\t\treturn\n\t}\n\n\tdefer rows.Close()\n\n\tprogram.ID = id\n\n\tif rows.Next() {\n\t\tvar versionsJSON, exceptionsJSON string\n\n\t\terr = rows.Scan(&program.Name, &versionsJSON, &program.Path, &exceptionsJSON)\n\t\tif err != nil {\n\t\t\treturn\n\t\t}\n\n\t\terr = json.Unmarshal([]byte(versionsJSON), &program.Versions)\n\t\tif err != nil {\n\t\t\treturn\n\t\t}\n\n\t\terr = json.Unmarshal([]byte(exceptionsJSON), &program.Exceptions)\n\t}\n\n\treturn\n}", "func GetProgrami(p Program, pname Enum) int {\n\tvar result int32\n\tgl.GetProgramiv(p.Value, uint32(pname), &result)\n\treturn int(result)\n}", "func (c *C) Param(name string) string {\n\treturn c.params.ByName(name)\n}", "func getParameterFromOpenAPISchema(openAPISchema []byte) ([]byte, error) {\n\tvar schema OpenAPISchema\n\tvar parameterJSON []byte\n\tvar err error\n\tif err = json.Unmarshal(openAPISchema, &schema); err != nil {\n\t\treturn nil, err\n\t}\n\n\tparameter := schema.Components.Schemas.Parameter\n\tif parameterJSON, err = json.Marshal(parameter); err != nil {\n\t\treturn nil, err\n\t}\n\treturn parameterJSON, nil\n}", "func (s *BaseEvent) GetScriptParamAsStr( i int ) (string,error) {\n if i < len(s.execArray) {\n return s.execArray[i],nil\n } // if\n s.errString = fmt.Sprintf(\"GetScriptParamAsStr i:%v > len\", i, len(s.execArray) )\n return \"\",s\n}", "func (rc *Ctx) Param(name string) (string, error) {\n\tif rc.routeParams != nil {\n\t\trouteValue := rc.routeParams.Get(name)\n\t\tif len(routeValue) > 0 {\n\t\t\treturn routeValue, nil\n\t\t}\n\t}\n\tif rc.request != nil {\n\t\tif rc.request.URL != nil {\n\t\t\tqueryValue := rc.request.URL.Query().Get(name)\n\t\t\tif len(queryValue) > 0 {\n\t\t\t\treturn queryValue, nil\n\t\t\t}\n\t\t}\n\t\tif rc.request.Header != nil {\n\t\t\theaderValue := rc.request.Header.Get(name)\n\t\t\tif len(headerValue) > 0 {\n\t\t\t\treturn headerValue, nil\n\t\t\t}\n\t\t}\n\n\t\tformValue := rc.request.FormValue(name)\n\t\tif len(formValue) > 0 {\n\t\t\treturn formValue, nil\n\t\t}\n\n\t\tcookie, cookieErr := rc.request.Cookie(name)\n\t\tif cookieErr == nil && len(cookie.Value) != 0 {\n\t\t\treturn cookie.Value, nil\n\t\t}\n\t}\n\n\treturn \"\", newParameterMissingError(name)\n}", "func GetProgram(pid int64) (string, error) {\n\t// Readlink needs root permission\n\t// return os.Readlink(fmt.Sprintf(\"/proc/%d/exe\", pid))\n\n\trs, err := rawProcStatus(pid)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn rs.Name, nil\n}", "func (c *Context) Param(name string) string {\n\tfor i, n := range c.pnames {\n\t\tif n == name {\n\t\t\treturn c.pvalues[i]\n\t\t}\n\t}\n\treturn \"\"\n}", "func GetProgramResourceLocation(program uint32, programInterface uint32, name *int8) int32 {\n ret := C.glowGetProgramResourceLocation(gpGetProgramResourceLocation, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func execNewParam(_ int, p *gop.Context) {\n\targs := p.GetArgs(4)\n\tret := types.NewParam(token.Pos(args[0].(int)), args[1].(*types.Package), args[2].(string), args[3].(types.Type))\n\tp.Ret(4, ret)\n}", "func (config *Config) getRawParam(key string) interface{} {\n\tenvironment := os.Getenv(\"TEAM254_ENV\")\n\tif environment == \"\" {\n\t\tenvironment = \"dev\"\n\t}\n\n\t// Look in the environment-specific configs first.\n\tif _, ok := config.params[environment]; ok {\n\t\tvalue := config.params[environment][key]\n\t\tif value != nil {\n\t\t\treturn value\n\t\t}\n\t}\n\n\t// Look in the global configs.\n\tif _, ok := config.params[\"global\"]; ok {\n\t\tvalue := config.params[\"global\"][key]\n\t\tif value != nil {\n\t\t\treturn value\n\t\t}\n\t}\n\n\tlog.Fatalf(\"Error: No value found for config key '%s'.\", key)\n\treturn nil\n}", "func (c *Context) Param(key string) string {\n\tvalue, _ := c.Params[key]\n\treturn value\n}", "func (p *ctx) Param(key string) string {\n\tval, _ := p.ParamOk(key)\n\treturn val\n}", "func (f *Filter) Program() unsafe.Pointer {\n return unsafe.Pointer(&f.program)\n}", "func Param(c context.Context, key string) string {\n\treturn C(c).Param(key)\n}", "func GetProgramBinary(program uint32, bufSize int32, length *int32, binaryFormat *uint32, binary unsafe.Pointer) {\n C.glowGetProgramBinary(gpGetProgramBinary, (C.GLuint)(program), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLenum)(unsafe.Pointer(binaryFormat)), binary)\n}", "func (p *Parameter) Read(name string, defaultVal interface{}) (interface{}, bool) {\n\tvalI, okI := p.parameters.Load(name)\n\tif okI {\n\t\treturn valI, true\n\t}\n\tenvVal, found := os.LookupEnv(name)\n\tif found {\n\t\treturn envVal, true\n\t}\n\treturn defaultVal, false\n}", "func (c *Context)Param(key string) string{\n\tvalue, _ := c.Params[key]\n\treturn value\n}", "func (m Message) GetCPProgram(f *field.CPProgramField) quickfix.MessageRejectError {\n\treturn m.Body.Get(f)\n}", "func (m Message) GetCPProgram(f *field.CPProgramField) quickfix.MessageRejectError {\n\treturn m.Body.Get(f)\n}", "func GetProgramiv(program uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetProgramiv, 3, uintptr(program), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func evalProgram(prog *ast.Program, e *object.Env) object.Object {\n\tvar result object.Object\n\n\tfor _, stmt := range prog.Statements {\n\t\tresult = Eval(stmt, e)\n\t\tif result == nil {\n\t\t\treturn &object.Error{\n\t\t\t\tMessage: \"NULL encounterd.\",\n\t\t\t}\n\t\t}\n\t\tif result.Type() == object.ReturnObject {\n\t\t\treturn result.(*object.Return).Value\n\t\t}\n\t}\n\n\treturn result\n}", "func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetProgramResourceName(gpGetProgramResourceName, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetProgramResourceName(gpGetProgramResourceName, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func getParameterItemName(previousLine string) (string, error) {\n\t// parse property name, like from `\"cmd\": {\\n`\n\ttempPropertyName := strings.Split(previousLine, \"\\\"\")\n\tif len(tempPropertyName) <= 1 {\n\t\treturn \"\", fmt.Errorf(\"could not get property name from: %s\", previousLine)\n\t}\n\tpropertyName := strings.Split(tempPropertyName[1], \"\\\"\")[0]\n\treturn propertyName, nil\n}", "func getArg(c *cli.Context, idx int, prompt string) (string, error) {\n\targ := c.Args().Get(0)\n\tif arg != \"\" {\n\t\treturn arg, nil\n\t}\n\tfmt.Printf(\"%s: \", prompt)\n\treader := bufio.NewReader(os.Stdin)\n\targ, err := reader.ReadString('\\n')\n\tif err != nil {\n\t\treturn arg, err\n\t}\n\targ = strings.TrimSpace(arg)\n\treturn arg, nil\n}", "func GetCmdQueryProgram(queryRoute string, cdc *codec.Codec) *cobra.Command {\n\tcmd := &cobra.Command{\n\t\tUse: \"program [program-id]\",\n\t\tArgs: cobra.ExactArgs(1),\n\t\tShort: \"Query details of a single program\",\n\t\tLong: strings.TrimSpace(`\nQuery details for a program. \n\nYou can find the program-id of active programs by running terracli query budget actives\nYou can find the program-id of inactive (candidate) programs by running terracli query budget candidates\n\n$ terracli query budget program 1\n`),\n\t\tRunE: func(cmd *cobra.Command, args []string) error {\n\t\t\tcliCtx := context.NewCLIContext().WithCodec(cdc)\n\n\t\t\t// validate that the program id is a uint\n\t\t\tprogramID, err := strconv.ParseUint(args[0], 10, 64)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"program-id %s not a valid uint, please input a valid program-id\", args[0])\n\t\t\t}\n\n\t\t\tres, err := cliCtx.QueryWithData(fmt.Sprintf(\"custom/%s/%s/%d\", queryRoute, budget.QueryProgram, programID), nil)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tvar program budget.Program\n\t\t\terr = cdc.UnmarshalJSON(res, &program)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\treturn cliCtx.PrintOutput(program)\n\t\t},\n\t}\n\n\treturn cmd\n}", "func GetProgramBinary(program uint32, bufSize int32, length *int32, binaryFormat *uint32, binary unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetProgramBinary, 5, uintptr(program), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(binaryFormat)), uintptr(binary), 0)\n}", "func (d *DefaultContext) Param(key string) string {\n\treturn d.Params().Get(key)\n}", "func GetProgramResourceLocation(program uint32, programInterface uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetProgramResourceLocation, 3, uintptr(program), uintptr(programInterface), uintptr(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func (app *application) readIDParam(r *http.Request) (int64, error) {\n\tparams := httprouter.ParamsFromContext(r.Context())\n\n\tid, err := strconv.ParseInt(params.ByName(\"id\"), 10, 64)\n\tif err != nil || id < 1 {\n\t\treturn 0, errors.New(\"invalid id parameter\")\n\t}\n\treturn id, nil\n}", "func (app *application) readIDParam(r *http.Request) (int64, error) {\n\tparams := httprouter.ParamsFromContext(r.Context())\n\n\tid, err := strconv.ParseInt(params.ByName(\"id\"), 10, 64)\n\tif err != nil || id < 1 {\n\t\treturn 0, errors.New(\"invalid id parameter\")\n\t}\n\n\treturn id, nil\n}", "func (fctx *AvFormatContext) AvFindProgramFromStream(last *AvProgram, streamIdx int) *AvProgram {\n\treturn (*AvProgram)(C.av_find_program_from_stream((*C.struct_AVFormatContext)(fctx),\n\t\t(*C.struct_AVProgram)(last), C.int(streamIdx)))\n}", "func (ppr *ProcedureParamReference) Get(name string) (interface{}, error) {\n\tname = strings.ToLower(name)\n\tparamRefVal, ok := ppr.nameToParam[name]\n\tif !ok {\n\t\treturn nil, fmt.Errorf(\"cannot find value for parameter `%s`\", name)\n\t}\n\treturn paramRefVal.Value, nil\n}", "func ParameterValue(opcodes map[int64]int64, ptr int64, parameter int64, relativeBase int64) int64 {\n\tj := int64(10)\n\tfor i := int64(0); i < parameter; i++ {\n\t\tj *= 10\n\t}\n\tparameterMode := (opcodes[ptr] / j) % 10\n\n\tswitch parameterMode {\n\tcase 0:\n\t\t// Position mode (return value at the position of parameter)\n\t\t// return GetMemory(opcodes, GetMemory(opcodes, ptr+parameter))\n\t\treturn opcodes[opcodes[ptr+parameter]]\n\tcase 1:\n\t\t// Immediate mode (return value of parameter)\n\t\t// return GetMemory(opcodes, ptr+parameter)\n\t\treturn opcodes[ptr+parameter]\n\tcase 2:\n\t\t// Relative mode\n\t\t// return GetMemory(opcodes, GetMemory(opcodes, ptr+parameter)+relativeBase)\n\t\treturn opcodes[opcodes[ptr+parameter]+relativeBase]\n\tdefault:\n\t\tpanic(fmt.Errorf(\"Unexpected parameter mode %d for opcode %d at position %d\", parameterMode, opcodes[ptr], ptr))\n\t}\n}", "func GetProgramResourceIndex(program uint32, programInterface uint32, name *int8) uint32 {\n ret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (uint32)(ret)\n}", "func GetProgramiv(program uint32, pname uint32, params *int32) {\n C.glowGetProgramiv(gpGetProgramiv, (C.GLuint)(program), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (ctx *Context) Param(name string) string {\n\treturn ctx.PathParams.ByName(name)\n}", "func parse(program string) interface{} {\r\n tokens := tokenize(program)\r\n s, _ := readFromTokens(tokens)\r\n return s\r\n}", "func (ctx *Context) ParamByIndex(index int) string {\n\treturn ctx.PathParams.ByIndex(index)\n}", "func (word ControlWord) Parameter() uint32 {\n\treturn (uint32(word) >> 0) & ControlWordParamLimit\n}", "func (rc *RemoteConfig) GetParam(key string, def string) string {\n\tparam, ok := rc.Params[key]\n\tif !ok {\n\t\treturn def\n\t}\n\treturn param\n}", "func GetParam(name string) string {\n\tif i == false {\n\t\tInitParams()\n\t}\n\n\tv := os.Getenv(name)\n\n\tif v == \"\" {\n\t\tlog.Fatalf(\"Unable to retrieve value for parameter: \" + v)\n\t}\n\n\treturn v\n}", "func getProgramIndex(indexString string) (int, int, error) {\n\t// Try to convert it from a string to an integer.\n\tprogramIndex, err := strconv.Atoi(indexString)\n\n\t// Was it a valid index?\n\tif err == nil {\n\t\t// Make sure the program index is valid.\n\t\tvar numPrograms = len(config.Programs)\n\t\tif programIndex >= 0 && programIndex < numPrograms {\n\t\t\t// Program index is valid.\n\t\t\treturn programIndex, http.StatusOK, nil\n\t\t} else {\n\t\t\t// Program index is out of bounds.\n\t\t\tvar errMsg = \"Program index is out of bounds: \" + indexString\n\t\t\treturn programIndex, http.StatusNotFound,\n\t\t\t\terrors.New(errMsg)\n\t\t}\n\t} else {\n\t\t// It was an invalid program index.\n\t\treturn -1, http.StatusBadRequest,\n\t\t\terrors.New(\"Invalid program index: \" + indexString)\n\t}\n}", "func inputParameter(parameter string) string {\n\treturn fmt.Sprintf(\"{{inputs.parameters.%s}}\", parameter)\n}", "func (d *DSP) ParameterInt(index C.int, value *C.int, valuestr *C.char, valuestrlen C.int) error {\n\t//FMOD_RESULT F_API FMOD_DSP_GetParameterInt(FMOD_DSP *dsp, int index, int *value, char *valuestr, int valuestrlen);\n\treturn ErrNoImpl\n}", "func (s *SsmService) GetParameterValue(ctx context.Context, param *string, withDecryption bool) *string {\n\tlog.Printf(\"Get Parameter Value of %s from SSM\\n\", *param)\n\n\tinput := &ssm.GetParameterInput{\n\t\tName: param,\n\t\tWithDecryption: withDecryption,\n\t}\n\n\toutput, err := s.client.GetParameter(ctx, input)\n\n\tif err != nil {\n\t\tlog.Printf(\"Error getting Parameter Value of %s from SSM - %s\", *param, err.Error())\n\t\treturn nil\n\t}\n\treturn output.Parameter.Value\n}", "func getQueryParam(c *gin.Context, paramName string) (int64, error) {\n\tp := c.Query(\"target\")\n\n\tid, err := strconv.ParseInt(p, 10, 0)\n\tif err != nil {\n\t\treturn 0, models.ValidationError{\n\t\t\t\"target\": ErrParseError,\n\t\t}\n\t}\n\n\treturn id, nil\n}", "func getParameter(request *http.Request, parameterName string) string {\n\tquery := request.URL.Query()\n\treturn query[parameterName][0]\n}", "func (p Plane) GetProgramInfo() (ProgramInfo, error) {\n\tif (p.programInfo != ProgramInfo{}) {\n\t\treturn p.programInfo, nil\n\t}\n\treturn ProgramInfo{}, errors.New(\"No program info\")\n}", "func (t *Task) GetInputParameter(inputKey string) (*Parameter, error) {\n\tfor _, input := range t.Inputs {\n\t\tif input.Key == inputKey {\n\t\t\treturn input, nil\n\t\t}\n\t}\n\treturn nil, &TaskInputNotFoundError{\n\t\tTaskKey: t.Key,\n\t\tTaskInputKey: inputKey,\n\t\tServiceName: t.serviceName,\n\t}\n}", "func GetParam(d []*commands.Data, name string) *commands.Data {\n\tfor _, element := range d {\n\t\tif strings.Compare(element.Name, name) == 0 {\n\t\t\treturn element\n\t\t}\n\t}\n\treturn nil\n}", "func (am *Manager) GetProgram(set ShaderSet) (uint32, bool) {\n\tif prog, ok := am.Programs[set]; ok {\n\t\treturn prog, true\n\t}\n\n\tif am.Parent != nil {\n\t\treturn am.Parent.GetProgram(set)\n\t}\n\n\treturn 0, false\n}", "func GetProgramResourceLocation(program uint32, programInterface uint32, name *uint8) int32 {\n\tret := C.glowGetProgramResourceLocation(gpGetProgramResourceLocation, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetProgramResourceLocation(program uint32, programInterface uint32, name *uint8) int32 {\n\tret := C.glowGetProgramResourceLocation(gpGetProgramResourceLocation, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetProgramResourceIndex(program uint32, programInterface uint32, name *uint8) uint32 {\n\tret, _, _ := syscall.Syscall(gpGetProgramResourceIndex, 3, uintptr(program), uintptr(programInterface), uintptr(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func GetParam(www http.ResponseWriter, req *http.Request, name string, dflt string) (rv string) {\n\tfound := false\n\tvalue := dflt\n\n\tmethod := req.Method\n\tif dbFlag[\"GetVal\"] {\n\t\tfmt.Printf(\"GetVar name=%s req.Method %s AT:%s\\n\", name, method, godebug.LF())\n\t}\n\tif method == \"POST\" || method == \"PUT\" {\n\t\tif str := req.PostFormValue(name); str != \"\" {\n\t\t\tvalue = str\n\t\t\tfound = true\n\t\t}\n\t} else if method == \"GET\" || method == \"DELETE\" {\n\t\tif dbFlag[\"GetVal\"] {\n\t\t\tfmt.Printf(\"AT:%s\\n\", godebug.LF())\n\t\t}\n\t\tqq := req.URL.Query()\n\t\tstrArr, ok := qq[name]\n\t\tif dbFlag[\"GetVal\"] {\n\t\t\tfmt.Printf(\"AT:%s strArr = %s ok = %v\\n\", godebug.LF(), godebug.SVar(strArr), ok)\n\t\t}\n\t\tif ok {\n\t\t\tif dbFlag[\"GetVal\"] {\n\t\t\t\tfmt.Printf(\"AT:%s\\n\", godebug.LF())\n\t\t\t}\n\t\t\tif len(strArr) > 0 {\n\t\t\t\tif dbFlag[\"GetVal\"] {\n\t\t\t\t\tfmt.Printf(\"AT:%s\\n\", godebug.LF())\n\t\t\t\t}\n\t\t\t\tvalue = strArr[0]\n\t\t\t\tfound = true\n\t\t\t} else {\n\t\t\t\tif dbFlag[\"GetVal\"] {\n\t\t\t\t\tfmt.Printf(\"AT:%s\\n\", godebug.LF())\n\t\t\t\t}\n\t\t\t\tfmt.Fprintf(os.Stderr, \"Multiple values for [%s]\\n\", name)\n\t\t\t\tfound = false\n\t\t\t}\n\t\t}\n\t}\n\tif found {\n\t\trv = value\n\t}\n\treturn\n}", "func (c *Ctx) Param(name string) string {\n\n\tfor _, entry := range c.params {\n\t\tif entry.Key == name {\n\t\t\treturn entry.Value\n\t\t}\n\t}\n\n\treturn blank\n}", "func ProgramName() string {\n\t_, progName := filepath.Split(os.Args[0])\n\treturn progName\n}", "func (g *Gameboi) GetProgram() []string {\n\tout := make([]string, len(g.program))\n\tfor i, line := range g.program {\n\t\tout[i] = fmt.Sprintf(\"%d: %#v\", i, line)\n\t}\n\n\treturn out\n}", "func programName() string {\n\treturn filepath.Base(os.Args[0])\n}", "func PrefabParameterFor(name string, description string) Parameter {\n\treturn ParameterFor(Prefab, name, description)\n}", "func (s *ProgramMap) Get(key string) (*Program, bool) {\n\t//s.lock.RLock()\n\t//defer s.lock.RUnlock()\n\tvalue, ok := s.m[key]\n\treturn value, ok\n}", "func (s *Script) Param(name string, value interface{}) *Script {\n\tif s.params == nil {\n\t\ts.params = make(map[string]interface{})\n\t}\n\ts.params[name] = value\n\treturn s\n}", "func (o *InlineObject4) GetParam() string {\n\tif o == nil || o.Param == nil {\n\t\tvar ret string\n\t\treturn ret\n\t}\n\treturn *o.Param\n}", "func (f *linkFrame) GetParamInt(k string) (i int64, err error) {\n v, ok := f.param[k]\n if ok {\n switch v.(type) {\n case int64:\n i = v.(int64)\n break\n default:\n err = errors.New(\"param value \"+k+\" not int\")\n }\n } else {\n err = errors.New(\"params don't have \"+k)\n }\n return\n}", "func (r *Request) Param(name string) *validation.Value {\n\treturn r.Input[name]\n}", "func main() {\n\n argsWithProg := os.Args\n argsWithoutProg := os.Args[1:]\n\n arg := os.Args[3]\n\n fmt.Println(argsWithProg)\n fmt.Println(argsWithoutProg)\n fmt.Println(arg)\n}", "func getParameterFromURL(wildcard string, context *gin.Context) int64 {\n\tparsedWildcard, err := strconv.ParseInt(context.Param(wildcard), 10, 64)\n\tif err != nil {\n\t\tcontext.JSON(http.StatusBadRequest, gin.H{\"error\": \"Invalid Parameter\" + wildcard})\n\t\treturn -1\n\t}\n\treturn parsedWildcard\n}", "func (p Parameter) viewParameter(viewrule bool) {\n\tfmt.Println(\"Parameter-----\")\n\tfmt.Println(\"Delay:\", p.Delay, \"Arity:\", p.Arity)\n\n\tfmt.Print(\"Transcript=\")\n\tfmt.Print(p.Transcript.Arr)\n\tfmt.Println(\"\")\n\n\tif viewrule {\n\t\tfmt.Println(\"Ruleset={\")\n\t\tfor b1 := 1; b1 <= 132; b1++ {\n\t\t\tr2s, ok := p.Rule.rule[strconv.Itoa(b1)]\n\t\t\tif ok {\n\t\t\t\tsort.Strings(r2s)\n\t\t\t\tfor _, r2 := range r2s {\n\t\t\t\t\tb2, ok2 := strconv.Atoi(r2)\n\t\t\t\t\tif ok2 == nil && b1 <= b2 {\n\t\t\t\t\t\tfmt.Println(\"(\" + strconv.Itoa(b1) + \",\" + strconv.Itoa(b2) + \"),\")\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfmt.Println(\"}----end\")\n\t\t/*\n\t\t\tfmt.Println(\"Ruleset={\")\n\t\t\tfor b1, v := range p.Rule.rule {\n\t\t\t\tfor _, b2 := range v {\n\t\t\t\t\tfmt.Println(\" -(\", b1, b2, \")\")\n\t\t\t\t}\n\t\t\t}\n\t\t\tfmt.Println(\"}----end\")\n\t\t*/\n\t}\n}", "func (parser *Parser) parameter() (*Declaration, error) {\n\tparser.trace(\"PARAMETER\")\n\tdefer parser.untrace()\n\tdataTypeTok, err, found := parser.match(fxsymbols.DataType)\n\tif err != nil {\n\t\t// return ErrSyntax\n\t\treturn nil, err\n\t}\n\tif !found {\n\t\treturn nil, ErrNoMatch\n\t}\n\tdataIdTok, _, found := parser.match(fxsymbols.Id)\n\tif !found {\n\t\treturn nil, parser.Errorf(ErrNoId)\n\t}\n\tif parser.symbEnvs.GetSymb(dataIdTok.Lex) != nil {\n\t\treturn nil, fxsymbols.ErrVarExists\n\t}\n\tparser.symbEnvs.PutVar(dataIdTok)\n\treturn NewDeclaration(dataIdTok.Lex, fxlex.DataTypeConst(dataTypeTok.Val)), nil\n}", "func (c Config) GetParameter(name string) (Parameter, bool) {\n\tfor i, v := range c.Parameters {\n\t\tif v.Name == name {\n\t\t\treturn c.Parameters[i], true\n\t\t}\n\t}\n\treturn Parameter{}, false\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *int8) int32 {\n ret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func (c *Ctx) Param(k string) string {\n\treturn c.params[k]\n}", "func getParameterDefault(c *gin.Context, name string, defaultValue int) int {\n\tval, err := strconv.Atoi(c.Request.URL.Query().Get(name))\n\tif err != nil {\n\t\tlog.Println(err)\n\t\treturn defaultValue\n\t}\n\treturn val\n}", "func (r *Request) GetParam(name string) string {\n if r.Params == nil || len(r.Params) == 0 {\n return \"\"\n }\n params, ok := r.Params[name]\n if !ok || len(params) == 0 {\n return \"\"\n }\n return params[0]\n}", "func structFromProg(prog *loader.Program, packageName, objectName string) (*types.Struct, error) {\n\t// Lookup package.\n\tpkg := prog.Package(packageName)\n\tif pkg == nil {\n\t\treturn nil, errors.Errorf(\"Package %s not found\", packageName)\n\t}\n\n\t// Lookup struct object.\n\tobj := pkg.Pkg.Scope().Lookup(objectName)\n\tif obj == nil {\n\t\treturn nil, errors.Errorf(\"Definition %s.%s not found\", packageName, objectName)\n\t}\n\tobjType := obj.Type().Underlying()\n\tstructType, ok := objType.(*types.Struct)\n\tif !ok {\n\t\treturn nil, errors.Errorf(\"%s type is %T, want *types.Struct\", obj.Id(), objType)\n\t}\n\treturn structType, nil\n}", "func getValue(valueField string, as *args.Store) (result *string) {\n\t// No input? No result!\n\tif !utils.IsSet(valueField) {\n\t\treturn nil\n\t}\n\n\t// check whether a parameter reference was provided, i.e. something like \"param:<name>\"\n\tparamName := regexParamValue.FindStringSubmatch(valueField)\n\tif len(paramName) > 0 {\n\t\tutils.Assert(len(paramName) == 2, \"Should contain the matching text plus a single capturing group\")\n\n\t\targValue, exists := as.Get(paramName[1])\n\t\tif exists {\n\t\t\treturn &argValue\n\t\t}\n\t\treturn nil\n\t}\n\n\t// else assume that provided value was a static text\n\treturn &valueField\n}", "func GetProgramBinary(program uint32, bufSize int32, length *int32, binaryFormat *uint32, binary unsafe.Pointer) {\n\tC.glowGetProgramBinary(gpGetProgramBinary, (C.GLuint)(program), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLenum)(unsafe.Pointer(binaryFormat)), binary)\n}", "func GetProgramBinary(program uint32, bufSize int32, length *int32, binaryFormat *uint32, binary unsafe.Pointer) {\n\tC.glowGetProgramBinary(gpGetProgramBinary, (C.GLuint)(program), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLenum)(unsafe.Pointer(binaryFormat)), binary)\n}", "func inputValue(parameter string) string {\n\treturn fmt.Sprintf(\"{{inputs.parameters.%s}}\", parameter)\n}", "func main() {\n\tobj := Constructor()\n\tparam := obj.Book(3, 5)\n\tparam = obj.Book(1, 4)\n\tfmt.Println(param)\n}" ]
[ "0.67674", "0.63108605", "0.6308981", "0.6076313", "0.58229876", "0.574072", "0.56942314", "0.56788146", "0.56115144", "0.5599755", "0.5577602", "0.5442812", "0.54316425", "0.5383527", "0.5359924", "0.5359924", "0.5329997", "0.53089535", "0.5291027", "0.52659416", "0.52482194", "0.5243285", "0.5237434", "0.523635", "0.52262384", "0.5225042", "0.52186316", "0.52177596", "0.52055043", "0.5204702", "0.516259", "0.515644", "0.5144754", "0.5088417", "0.5072397", "0.5072025", "0.50716823", "0.5071546", "0.5071546", "0.5068845", "0.5064192", "0.50573736", "0.50573736", "0.50562215", "0.5042072", "0.5034748", "0.5023587", "0.50032157", "0.49940175", "0.49935207", "0.4992789", "0.49927312", "0.4979933", "0.4978918", "0.49748963", "0.49738693", "0.49703363", "0.497019", "0.49592823", "0.49429598", "0.4937292", "0.4927722", "0.49196932", "0.4908132", "0.49073508", "0.48948076", "0.48938897", "0.48910555", "0.48904452", "0.4884491", "0.48783642", "0.48733842", "0.487257", "0.487257", "0.4871278", "0.48594612", "0.48496142", "0.48472828", "0.48430768", "0.48402202", "0.48267245", "0.48241284", "0.4820344", "0.4790597", "0.47868997", "0.47848728", "0.47829807", "0.47810388", "0.47794956", "0.47748962", "0.47732472", "0.47666478", "0.47583726", "0.47569203", "0.47567695", "0.47519192", "0.47489226", "0.47485247", "0.47485247", "0.4744417", "0.47345248" ]
0.0
-1
return parameters of an indexed query object target
func GetQueryIndexediv(target uint32, index uint32, pname uint32, params *int32) { C.glowGetQueryIndexediv(gpGetQueryIndexediv, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetQueryIndexediv(target uint32, index uint32, pname uint32, params *int32) {\n C.glowGetQueryIndexediv(gpGetQueryIndexediv, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (o ApiOperationRequestOutput) QueryParameters() ApiOperationRequestQueryParameterArrayOutput {\n\treturn o.ApplyT(func(v ApiOperationRequest) []ApiOperationRequestQueryParameter { return v.QueryParameters }).(ApiOperationRequestQueryParameterArrayOutput)\n}", "func (c *Client) Query(query interface{}, indexList []string, typeList []string, httpMethod string, extraArgs url.Values) (*Response, error) {\n\tr := Request{\n\t\tQuery: query,\n\t\tIndexList: indexList,\n\t\tTypeList: typeList,\n\t\tMethod: httpMethod,\n\t\tAPI: \"_query\",\n\t\tExtraArgs: extraArgs,\n\t}\n\n\treturn c.Do(&r)\n}", "func GetQueryIndexediv(target uint32, index uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetQueryIndexediv, 4, uintptr(target), uintptr(index), uintptr(pname), uintptr(unsafe.Pointer(params)), 0, 0)\n}", "func (b *builder) queryArguments() (string, error) {\n\targs := []string{}\n\n\tif argsStructType := argumentsStructType(reflect.TypeOf(b.query)); argsStructType != nil {\n\t\tfor i := 0; i < argsStructType.NumField(); i++ {\n\t\t\tfield := argsStructType.Field(i)\n\t\t\tb.args = append(b.args, argSpec{field})\n\t\t}\n\t}\n\n\tfor _, spec := range b.args {\n\t\tvarName := spec.variableName()\n\t\tif varName == \"\" {\n\t\t\tcontinue\n\t\t}\n\t\ttypeName, err := b.typeName(spec.field.Type)\n\t\tif err != nil {\n\t\t\treturn \"\", err\n\t\t}\n\t\tparam := fmt.Sprintf(\"%s: %s\", varName, typeName)\n\t\tif getTag(spec.field, 1) == \"notnull\" {\n\t\t\tparam += \"!\"\n\t\t}\n\t\targs = append(args, param)\n\t}\n\n\tif len(args) == 0 {\n\t\treturn \"\", nil\n\t}\n\n\tsort.Strings(args)\n\n\treturn \"(\" + strings.Join(args, \", \") + \")\", nil\n}", "func queryForParams(params SearchParams) string {\n\tif len(params.RawQuery) > 0 {\n\t\treturn params.RawQuery\n\t}\n\n\tbuilder := jiraquery.AndBuilder()\n\n\tif len(params.Project) > 0 {\n\t\tbuilder.Project(params.Project)\n\t}\n\n\tif len(params.IssueType) > 0 {\n\t\tbuilder.IssueType(params.IssueType)\n\t}\n\n\tif len(params.Status) > 0 {\n\t\tbuilder.Eq(jiraquery.Word(\"status\"), jiraquery.Word(params.Status))\n\t}\n\n\tif len(params.StatusCategory) > 0 {\n\t\tbuilder.Eq(\n\t\t\tjiraquery.Word(\"statusCategory\"),\n\t\t\tjiraquery.Word(fmt.Sprintf(\"%q\", params.StatusCategory)))\n\t}\n\n\tif len(params.Labels) > 0 {\n\t\tif len(params.Labels) == 1 {\n\t\t\tbuilder.Eq(jiraquery.Word(\"labels\"), jiraquery.Word(params.Labels[0]))\n\t\t} else {\n\t\t\tbuilder.In(jiraquery.Word(\"labels\"), jiraquery.List(params.Labels...))\n\t\t}\n\t}\n\n\tif len(params.Components) > 0 {\n\t\tif len(params.Components) == 1 {\n\t\t\tbuilder.Eq(\n\t\t\t\tjiraquery.Word(\"component\"),\n\t\t\t\tjiraquery.Word(fmt.Sprintf(\"%q\", params.Components[0])))\n\t\t} else {\n\t\t\tbuilder.In(jiraquery.Word(\"component\"), jiraquery.List(params.Components...))\n\t\t}\n\t}\n\n\tif params.CreatedAfter != nil {\n\t\tbuilder.GreaterThan(\n\t\t\tjiraquery.Word(\"created\"),\n\t\t\tjiraquery.Word(fmt.Sprintf(\"%q\", params.CreatedAfter.Format(\"2006-1-2 04:05\"))))\n\t}\n\n\tif params.CreatedBefore != nil {\n\t\tbuilder.LessThan(\n\t\t\tjiraquery.Word(\"created\"),\n\t\t\tjiraquery.Word(fmt.Sprintf(\"%q\", params.CreatedBefore.Format(\"2006-1-2 04:05\"))))\n\t}\n\n\treturn builder.Value().String()\n}", "func QueryParameters(val interface{}) string {\n\tif val == nil || (reflect.ValueOf(val).Kind() == reflect.Ptr && reflect.ValueOf(val).IsNil()) {\n\t\treturn \"\"\n\t}\n\n\tvar query []string\n\n\ts := structs.New(val)\n\tm := s.Map()\n\n\tfor k, v := range m {\n\t\tf := s.Field(k)\n\t\tt := f.Tag(\"query\")\n\n\t\tif !f.IsZero() {\n\t\t\tquery = append(query, fmt.Sprintf(\"%v=%v\", t, v))\n\t\t}\n\t}\n\n\tif len(query) == 0 {\n\t\treturn \"\"\n\t}\n\n\treturn \"?\" + strings.Join(query, \"&\")\n}", "func (q *PercolatorQuery) Source() (interface{}, error) {\n\tif len(q.field) == 0 {\n\t\treturn nil, errors.New(\"elastic: Field is required in PercolatorQuery\")\n\t}\n\tif len(q.documentType) == 0 {\n\t\treturn nil, errors.New(\"elastic: DocumentType is required in PercolatorQuery\")\n\t}\n\tif q.document == nil {\n\t\treturn nil, errors.New(\"elastic: Document is required in PercolatorQuery\")\n\t}\n\n\t// {\n\t// \"percolate\" : { ... }\n\t// }\n\tsource := make(map[string]interface{})\n\tparams := make(map[string]interface{})\n\tsource[\"percolate\"] = params\n\tparams[\"field\"] = q.field\n\tparams[\"document_type\"] = q.documentType\n\tparams[\"document\"] = q.document\n\tif len(q.indexedDocumentIndex) > 0 {\n\t\tparams[\"index\"] = q.indexedDocumentIndex\n\t}\n\tif len(q.indexedDocumentType) > 0 {\n\t\tparams[\"type\"] = q.indexedDocumentType\n\t}\n\tif len(q.indexedDocumentId) > 0 {\n\t\tparams[\"id\"] = q.indexedDocumentId\n\t}\n\tif len(q.indexedDocumentRouting) > 0 {\n\t\tparams[\"routing\"] = q.indexedDocumentRouting\n\t}\n\tif len(q.indexedDocumentPreference) > 0 {\n\t\tparams[\"preference\"] = q.indexedDocumentPreference\n\t}\n\tif q.indexedDocumentVersion != nil {\n\t\tparams[\"version\"] = *q.indexedDocumentVersion\n\t}\n\treturn source, nil\n}", "func (sc SearchClient) QueryParams() url.Values {\n\tparams := url.Values{}\n\n\tif sc.FilterID > 0 {\n\t\tparams.Add(\"filter_id\", strconv.Itoa(sc.FilterID))\n\t}\n\n\tif sc.PerPage > 1 && sc.PerPage != 25 {\n\t\tparams.Add(\"per_page\", strconv.Itoa(sc.PerPage))\n\t}\n\n\tif len(sc.Key) > 0 {\n\t\tparams.Add(\"key\", sc.Key)\n\t}\n\n\tif len(sc.SortDirection) > 0 {\n\t\tparams.Add(\"sd\", sc.SortDirection)\n\t}\n\n\tif len(sc.SortField) > 0 {\n\t\tparams.Add(\"sf\", sc.SortField)\n\t}\n\n\treturn params\n}", "func (o ApiOperationRequestPtrOutput) QueryParameters() ApiOperationRequestQueryParameterArrayOutput {\n\treturn o.ApplyT(func(v *ApiOperationRequest) []ApiOperationRequestQueryParameter {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.QueryParameters\n\t}).(ApiOperationRequestQueryParameterArrayOutput)\n}", "func (req *request) Query(key string) []string {\n return req.query[key]\n}", "func (req *SimilarityLookupRequest) Query() map[string]interface{} {\n\tq := map[string]interface{}{}\n\tif string(req.Parameters.Condition) != \"\" {\n\t\tq[\"Condition\"] = req.Parameters.Condition\n\t}\n\tif req.Parameters.MerchantID != \"\" {\n\t\tq[\"MerchantId\"] = req.Parameters.MerchantID\n\t}\n\tif string(req.Parameters.SimilarityType) != \"\" {\n\t\tq[\"SimilarityType\"] = string(req.Parameters.SimilarityType)\n\t}\n\tq[\"ItemId\"] = strings.Join(req.Parameters.ItemIDs, \",\")\n\tq[\"ResponseGroup\"] = req.Parameters.ResponseGroups\n\treturn q\n}", "func buildElasticsearchBaseQuery(index string, req map[string]interface{}) (query map[string]interface{}, err error) {\n\n\tfilterOps := []interface{}{}\n\n\tfor k, v := range req {\n\t\tswitch v.(type) {\n\t\tcase string:\n\t\t\tval, _ := v.(string)\n\t\t\tval = strings.TrimSpace(val)\n\t\t\tif strings.HasPrefix(val, \">\") || strings.HasPrefix(val, \"<\") {\n\t\t\t\t// Parse number\n\t\t\t\taVal := \"\"\n\t\t\t\tif strings.HasPrefix(val, \">=\") || strings.HasPrefix(val, \"<=\") {\n\t\t\t\t\taVal = strings.TrimSpace(val[2:])\n\t\t\t\t} else {\n\t\t\t\t\taVal = strings.TrimSpace(val[1:])\n\t\t\t\t}\n\t\t\t\t// Parse number for comparison\n\t\t\t\tvar nVal interface{}\n\t\t\t\tnVal, ierr := strconv.ParseInt(aVal, 10, 64)\n\t\t\t\tif ierr != nil {\n\t\t\t\t\tierr = nil\n\t\t\t\t\tif nVal, ierr = strconv.ParseFloat(aVal, 64); ierr != nil {\n\t\t\t\t\t\terr = ierr\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Add range filterop\n\t\t\t\tif strings.HasPrefix(val, \">\") {\n\t\t\t\t\tfilterOps = append(filterOps, elastigo.Range().Field(k).Gt(nVal))\n\t\t\t\t} else {\n\t\t\t\t\tfilterOps = append(filterOps, elastigo.Range().Field(k).Lt(nVal))\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tif isRegexSearch(val) {\n\t\t\t\t\tfilterOps = append(filterOps, regexFilter(k, val))\n\t\t\t\t} else {\n\t\t\t\t\tfilterOps = append(filterOps, map[string]interface{}{\n\t\t\t\t\t\t\"term\": map[string]string{k: val},\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak\n\t\tcase int:\n\t\t\tbreak\n\t\tcase int64:\n\t\t\tbreak\n\t\tcase float64:\n\t\t\tbreak\n\t\tcase []interface{}:\n\t\t\tbreak\n\t\tcase interface{}:\n\t\t\tbreak\n\t\tdefault:\n\t\t\terr = fmt.Errorf(\"invalid type: %#v\", v)\n\t\t\treturn\n\t\t}\n\t}\n\n\tif len(filterOps) > 0 {\n\t\tquery = map[string]interface{}{\n\t\t\t\"query\": map[string]interface{}{\n\t\t\t\t\"filtered\": elastigo.Search(index).Filter(filterOps...),\n\t\t\t},\n\t\t}\n\t} else {\n\t\t// Empty query i.e. return everything\n\t\tquery = map[string]interface{}{}\n\t}\n\n\treturn\n}", "func (m *EqOp) Args() []Query {\n\treturn m.argsField\n}", "func (this *DefMethod) GetParamNameAndWhere(indx int) (string, int) {\n\tfor _, v := range this.Paras {\n\t\tif v.Indx == indx {\n\t\t\t//return v.name, v.where\n\t\t\tif strings.EqualFold(v.Where, \"query\") {\n\t\t\t\treturn v.Name, InQuery\n\t\t\t} else {\n\t\t\t\treturn v.Name, InBody\n\t\t\t}\n\t\t}\n\t}\n\treturn \"\", InQuery\n}", "func (w *Where) Parameters() []interface{} {\n\treturn w.params\n}", "func (d Document) AsParams() (params []Param) {\n\tfor key, val := range d {\n\t\tparams = append(params, Param{key, val})\n\t}\n\treturn\n}", "func (r *Elasticsearch) Query(collections []string, term string, bbox []float64, timeVal []time.Time, from int, size int, sr *search.Results) error {\n\tvar mr metadata.Record\n\t//\tvar query elastic.Query\n\tctx := context.Background()\n\n\tquery := elastic.NewBoolQuery()\n\n\tif term == \"\" {\n\t\tquery = query.Must(elastic.NewMatchAllQuery())\n\t} else {\n\t\tquery = query.Must(elastic.NewQueryStringQuery(term))\n\t}\n\tif len(timeVal) > 0 {\n\t\tif len(timeVal) == 1 { // exact match\n\t\t\tquery = query.Must(elastic.NewTermQuery(\"properties.product_info.acquisition_date\", timeVal[0]))\n\t\t} else if len(timeVal) == 2 { // range\n\t\t\trangeQuery := elastic.NewRangeQuery(\"properties.product_info.acquisition_date\").\n\t\t\t\tFrom(timeVal[0]).\n\t\t\t\tTo(timeVal[1])\n\t\t\tquery = query.Must(rangeQuery)\n\t\t}\n\t}\n\tif len(bbox) == 4 {\n\t\t// workaround for issuing a RawStringQuery until\n\t\t// GeoShape queries are supported (https://github.com/olivere/elastic/pull/276)\n\t\tvar tpl bytes.Buffer\n\t\tvars := map[string]interface{}{\n\t\t\t\"bbox\": bbox,\n\t\t\t\"field\": \"geometry\",\n\t\t}\n\t\trawStringQueryTemplate, _ := template.New(\"geo_shape_query\").Parse(`{ \n \"geo_shape\": {\n \"{{ .field }}\": {\n \"shape\": {\n \"type\": \"envelope\",\n \"coordinates\": [\n [ \n {{ index .bbox 0 }}, \n {{ index .bbox 1 }}\n ], \n [ \n {{ index .bbox 2 }}, \n {{ index .bbox 3 }}\n ] \n ]\n },\n \"relation\": \"within\"\n } \n } \n }`)\n\t\trawStringQueryTemplate.Execute(&tpl, vars)\n\n\t\tquery = query.Must(elastic.NewRawStringQuery(tpl.String()))\n\t}\n\tif len(collections) > 0 {\n\t\tc := make([]interface{}, len(collections))\n\t\tfor i, s := range collections {\n\t\t\tc[i] = s\n\t\t}\n\t\tquery = query.Must(elastic.NewTermsQuery(\"properties.product_info.collection\", c...))\n\t}\n\n\t//src, err := query.Source()\n\t//data, err := json.Marshal(src)\n\t//fmt.Println(string(data))\n\n\tsearchResult, err := r.Index.Search().\n\t\tIndex(r.IndexName).\n\t\tType(r.TypeName).\n\t\tFrom(from).\n\t\tSize(size).\n\t\tQuery(query).Do(ctx)\n\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\tfmt.Println(\"JJJJ\")\n\t\treturn err\n\t}\n\n\tsr.ElapsedTime = int(searchResult.TookInMillis)\n\tsr.Matches = int(searchResult.TotalHits())\n\tsr.Returned = size\n\tsr.NextRecord = size + 1\n\n\tif sr.Matches < size {\n\t\tsr.Returned = sr.Matches\n\t\tsr.NextRecord = 0\n\t}\n\n\tfor _, item := range searchResult.Each(reflect.TypeOf(mr)) {\n\t\tif t, ok := item.(metadata.Record); ok {\n\t\t\tsr.Records = append(sr.Records, t)\n\t\t}\n\t}\n\n\treturn nil\n}", "func (c *common) Parameters() sbcon.Parameters { return c.params }", "func (store *HexastoreDB) QueryXXX() *[]Triple {\n\tres := []Triple{}\n\n\tfor subjID, propMap := range store.SPO {\n\t\tfor propID, objMap := range propMap {\n\t\t\tfor objID, value := range objMap {\n\t\t\t\tcurrTriple := MakeTriple(subjID, propID, objID, value)\n\t\t\t\tres = append(res, *currTriple)\n\t\t\t}\n\t\t}\n\t}\n\n\treturn &res\n}", "func (s *SmartContract) queryByIndex(stub shim.ChaincodeStubInterface, args []string) pb.Response {\n\n\t// 0\n\t// \"queryString\"\n\tif len(args) < 1 {\n\t\treturn shim.Error(ArgsMismatch)\n\t}\n\n\tqueryString := args[0]\n\n\tqueryResults, err := GetQueryResultForQueryString(stub, queryString)\n\tif err != nil {\n\t\treturn shim.Error(QueryError)\n\t}\n\treturn shim.Success(queryResults)\n}", "func (m *Main) Query(index, rawQuery, query string) (string, error) {\n\tresp := MustDo(\"POST\", m.URL()+fmt.Sprintf(\"/index/%s/query?\", index)+rawQuery, query)\n\tif resp.StatusCode != http.StatusOK {\n\t\treturn \"\", fmt.Errorf(\"invalid status: %d, body=%s\", resp.StatusCode, resp.Body)\n\t}\n\treturn resp.Body, nil\n}", "func (r InboundRequest) QueryParams() map[string][]string {\n return r.URL.Query()\n}", "func (client *esClient) Query(index, typeName string, queryStrings ...string) (*elastic.SearchResult, error) {\n\tvar queryString string\n\tif len(queryStrings) > 0 {\n\t\tqueryString = queryStrings[0]\n\t}\n\t// 根据名字查询\n\tquery := elastic.NewQueryStringQuery(queryString)\n\tresult, err := client.Search().Index(index).Type(typeName).Query(query).Do(client.ctx)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif result.Hits.TotalHits > 0 {\n\t\treturn result, nil\n\t}\n\treturn nil, errors.New(\"query the result is null\")\n}", "func (req *ItemLookupRequest) Query() map[string]interface{} {\n\tq := map[string]interface{}{}\n\tif string(req.Parameters.Condition) != \"\" {\n\t\tq[\"Condition\"] = string(req.Parameters.Condition)\n\t}\n\tq[\"IdType\"] = string(req.Parameters.IDType)\n\tq[\"ItemId\"] = strings.Join(req.Parameters.ItemIDs, \",\")\n\tif req.Parameters.IncludeReviewsSummary != nil {\n\t\tq[\"IncludeReviewsSummary\"] = *req.Parameters.IncludeReviewsSummary\n\t}\n\tif req.Parameters.MerchantID != \"\" {\n\t\tq[\"MerchantId\"] = req.Parameters.MerchantID\n\t}\n\tif req.Parameters.RelatedItemPage > 0 {\n\t\tq[\"RelatedItemPage\"] = req.Parameters.RelatedItemPage\n\t}\n\tif req.Parameters.RelationshipType != \"\" {\n\t\tq[\"RelationshipType\"] = req.Parameters.RelationshipType\n\t}\n\tif req.Parameters.SearchIndex != \"\" {\n\t\tq[\"SearchIndex\"] = req.Parameters.SearchIndex\n\t}\n\tif req.Parameters.TruncateReviewsAt != nil {\n\t\tq[\"TruncateReviewsAt\"] = *req.Parameters.TruncateReviewsAt\n\t}\n\tif req.Parameters.VariationPage > 0 {\n\t\tq[\"VariationPage\"] = req.Parameters.VariationPage\n\t}\n\tq[\"ResponseGroup\"] = req.Parameters.ResponseGroups\n\treturn q\n}", "func QueryParameters(f *cli.Fixtures, flags ...string) types.Params {\n\tcmd := fmt.Sprintf(\"%s query distribution params %v\", f.SimcliBinary, f.Flags())\n\tout, errStr := tests.ExecuteT(f.T, cli.AddFlags(cmd, flags), \"\")\n\trequire.Empty(f.T, errStr)\n\n\tvar params types.Params\n\trequire.NoError(f.T, f.Cdc.UnmarshalJSON([]byte(out), &params))\n\treturn params\n}", "func (p ContentSearchParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func queryString(keySize, arraySize int) string {\n\tif arraySize <= 0 || keySize <= 0 {\n\t\tpanic(\"Bulk Query requires size of element tuple and number of elements to be greater than 0\")\n\t}\n\tkeys := make([]string, 0, arraySize)\n\tfor i := 0; i < arraySize; i++ {\n\t\tkey := make([]string, keySize)\n\t\tfor j := 0; j < keySize; j++ {\n\t\t\tkey[j] = fmt.Sprintf(\"$%d\", i*keySize+j+1)\n\t\t}\n\t\tkeys = append(keys, fmt.Sprintf(\"(%s)\", strings.Join(key, \",\")))\n\t}\n\treturn strings.Join(keys, \",\")\n}", "func (q *ParsedRawQuery) RawDocSourceFieldIndex() int { return 1 }", "func (q publisherSearchIdxQuery) All(ctx context.Context, exec boil.ContextExecutor) (PublisherSearchIdxSlice, error) {\n\tvar o []*PublisherSearchIdx\n\n\terr := q.Bind(ctx, exec, &o)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"models: failed to assign all query results to PublisherSearchIdx slice\")\n\t}\n\n\tif len(publisherSearchIdxAfterSelectHooks) != 0 {\n\t\tfor _, obj := range o {\n\t\t\tif err := obj.doAfterSelectHooks(ctx, exec); err != nil {\n\t\t\t\treturn o, err\n\t\t\t}\n\t\t}\n\t}\n\n\treturn o, nil\n}", "func (m *Command) Query(t testing.TB, index, rawQuery, query string) (string, error) {\n\tresp := Do(t, \"POST\", fmt.Sprintf(\"%s/index/%s/query?%s\", m.URL(), index, rawQuery), query)\n\tif resp.StatusCode != gohttp.StatusOK {\n\t\treturn \"\", fmt.Errorf(\"invalid status: %d, body=%s\", resp.StatusCode, resp.Body)\n\t}\n\treturn resp.Body, nil\n}", "func (e Es) Query(index string, doc string, query string) (*SearchResult, error) {\n\tif doc != \"\" {\n\t\tdoc = \"/\" + doc\n\t}\n\tbody, err := e.getJSONWithBody(fmt.Sprintf(\"%s%s/_search\", index, doc), query)\n\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\terr = checkError(body)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tallhits, ok := body[\"hits\"].(map[string]interface{})\n\tif !ok {\n\t\treturn nil, fmt.Errorf(\"Failed to retrieve hits from response\")\n\t}\n\n\ttotal := int(allhits[\"total\"].(float64))\n\thits := allhits[\"hits\"].([]interface{})\n\n\tresult := make([]string, len(hits))\n\ti := 0\n\tfor _, hit := range hits {\n\t\trecord, err := utils.MapToYaml(hit)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tresult[i] = record\n\t\ti++\n\t}\n\n\treturn &SearchResult{\n\t\tTotal: total,\n\t\tHits: result,\n\t}, nil\n}", "func (r *Request) QueryValues() url.Values {\n\treturn r.queryValues\n}", "func (client *BaseClient) Query(filter map[string]interface{}) map[string]string {\n\ttmp := make(map[string]interface{})\n\tbyt, _ := json.Marshal(filter)\n\t_ = json.Unmarshal(byt, &tmp)\n\n\tresult := make(map[string]string)\n\tfor key, value := range tmp {\n\t\tfilterValue := reflect.ValueOf(value)\n\t\tflatRepeatedList(filterValue, result, key)\n\t}\n\n\treturn result\n}", "func (m *Command) Queryf(t *testing.T, index, rawQuery, query string, params ...interface{}) (string, error) {\n\tquery = fmt.Sprintf(query, params...)\n\tresp := Do(t, \"POST\", fmt.Sprintf(\"%s/index/%s/query?%s\", m.URL(), index, rawQuery), query)\n\tif resp.StatusCode != gohttp.StatusOK {\n\t\treturn \"\", fmt.Errorf(\"invalid status: %d, body=%s\", resp.StatusCode, resp.Body)\n\t}\n\treturn resp.Body, nil\n}", "func (r *Document) Parameters() pulumi.ArrayOutput {\n\treturn (pulumi.ArrayOutput)(r.s.State[\"parameters\"])\n}", "func (o *SearchKeywordChunkedParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {\n\n\tif err := r.SetTimeout(o.timeout); err != nil {\n\t\treturn err\n\t}\n\tvar res []error\n\n\t// query param fields\n\tqrFields := o.Fields\n\tqFields := qrFields\n\tif qFields != \"\" {\n\t\tif err := r.SetQueryParam(\"fields\", qFields); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\tif o.Filter != nil {\n\n\t\t// query param filter\n\t\tvar qrFilter string\n\t\tif o.Filter != nil {\n\t\t\tqrFilter = *o.Filter\n\t\t}\n\t\tqFilter := qrFilter\n\t\tif qFilter != \"\" {\n\t\t\tif err := r.SetQueryParam(\"filter\", qFilter); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\n\t}\n\n\t// query param keyword\n\tqrKeyword := o.Keyword\n\tqKeyword := qrKeyword\n\tif qKeyword != \"\" {\n\t\tif err := r.SetQueryParam(\"keyword\", qKeyword); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\tif o.Limit != nil {\n\n\t\t// query param limit\n\t\tvar qrLimit int64\n\t\tif o.Limit != nil {\n\t\t\tqrLimit = *o.Limit\n\t\t}\n\t\tqLimit := swag.FormatInt64(qrLimit)\n\t\tif qLimit != \"\" {\n\t\t\tif err := r.SetQueryParam(\"limit\", qLimit); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\n\t}\n\n\tif o.Offset != nil {\n\n\t\t// query param offset\n\t\tvar qrOffset int64\n\t\tif o.Offset != nil {\n\t\t\tqrOffset = *o.Offset\n\t\t}\n\t\tqOffset := swag.FormatInt64(qrOffset)\n\t\tif qOffset != \"\" {\n\t\t\tif err := r.SetQueryParam(\"offset\", qOffset); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\n\t}\n\n\t// query param query\n\tqrQuery := o.Query\n\tqQuery := qrQuery\n\tif qQuery != \"\" {\n\t\tif err := r.SetQueryParam(\"query\", qQuery); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}", "func (ctx *Context) QueryAll(key string) []string {\n\treturn ctx.Request.URL.Query()[key]\n}", "func (p *Param) QueryTo() (sqlbuilder.Iterator, error) {\n\treturn p.T().QueryTo(p)\n}", "func (c ResolverGetIndexByIDFuncCall) Results() []interface{} {\n\treturn []interface{}{c.Result0, c.Result1, c.Result2}\n}", "func (ctx *Context) QueryParamAll() url.Values {\r\n\tif ctx.queryParams == nil {\r\n\t\tctx.queryParams = ctx.R.URL.Query()\r\n\t}\r\n\treturn ctx.queryParams\r\n}", "func (c AutoIndexingServiceGetIndexByIDFuncCall) Results() []interface{} {\n\treturn []interface{}{c.Result0, c.Result1, c.Result2}\n}", "func (f FindOptions) QueryParams() map[string][]string {\n\tqp := map[string][]string{\n\t\t\"descending\": {strconv.FormatBool(f.Descending)},\n\t\t\"offset\": {strconv.Itoa(f.Offset)},\n\t}\n\n\tif f.Limit > 0 {\n\t\tqp[\"limit\"] = []string{strconv.Itoa(f.Limit)}\n\t}\n\n\tif f.SortBy != \"\" {\n\t\tqp[\"sortBy\"] = []string{f.SortBy}\n\t}\n\n\treturn qp\n}", "func prepareInsertArguments(q Queryer) []interface{} {\n\tv := reflect.ValueOf(q)\n\targuments := []interface{}{}\n\tfor i := 0; i < v.NumField(); i++ {\n\t\targuments = append(arguments, v.Field(i).Interface())\n\t}\n\treturn arguments\n}", "func (i *Index) Search(q query.Query) ([]index.Document, int, error) {\n Flag_highlight := false\n\teq := elastic.NewMatchQuery(\"body\", q.Term).Analyzer(\"whitespace\").Operator(\"and\") //Simple AND query\n if (q.Term[0] == '\"') {\n q.Term = q.Term[1:len(q.Term)-1]\n eq = elastic.NewMatchPhraseQuery(\"body\", q.Term).Analyzer(\"whitespace\").Slop(0) //Phrase Query\n }\n\t//eq := elastic.NewQueryStringQuery(q.Term)\n\t//eq := elastic.NewMatchQuery(\"body\", q.Term).Analyzer(\"whitespace\").Operator(\"and\") //Simple AND query\n //eq := elastic.NewMatchPhraseQuery(\"body\", q.Term).Analyzer(\"whitespace\").Slop(0) //Phrase Query\n\t//eq := elastic.NewMatchPhraseQuery(\"body\", q.Term).Analyzer(\"whitespace\").Slop(100000) //Proximity Query\n\n // Specify highlighter\n hl := elastic.NewHighlight()\n hl = hl.Fields(elastic.NewHighlighterField(\"body\"))\n hl = hl.HighlighterType(\"unified\")\n hl = hl.PreTags(\"<em>\").PostTags(\"</em>\")\n //src, err := hl.Source()\n //j_src, _ := json.MarshalIndent(&src, \"\", \" \")\n //fmt.Println(string(j_src))\n //fmt.Println(\"offset: \", q.Paging.Offset, \"max size: \", q.Paging.Num)\n var res *elastic.SearchResult\n var err error\n // to get latency distribution of each query\n //st_latency := time.Now()\n\n\n if Flag_highlight == true {\n res, err = i.conn.Search(i.name).Type(\"doc\").\n Query(eq).\n\t\tHighlight(hl).\n\t\tFrom(q.Paging.Offset).\n\t\tSize(q.Paging.Num).\n\t\tDo()\n } else {\n res, err = i.conn.Search(i.name).Type(\"doc\").\n Query(eq).\n\t\t//Highlight(hl).\n\t\tFrom(q.Paging.Offset).\n\t\tSize(q.Paging.Num).\n FetchSource(false).\n\t\tDo()\n }\n\n //j, _ := json.MarshalIndent(&res, \"\", \" \")\n //fmt.Println(string(j))\n //fmt.Println(\"=======\", res.Hits.TotalHits)\n //fmt.Println(\"======= took \", res.TookInMillis, \" ms\\n\\n\")\n\tif err != nil {\n\t\treturn nil, 0, err\n\t}\n\n\tret := make([]index.Document, 0, q.Paging.Num)\n\tfor _, h := range res.Hits.Hits {\n\t\tif h != nil {\n\t\t\td := index.NewDocument(h.Id, float32(*h.Score))\n\t\t\t//json.Unmarshal(*h.Source, &d.Properties);\n\t\t\tret = append(ret, d)\n\t\t\t//if err := json.Unmarshal(*h.Source, &d.Properties); err == nil {\n\t\t\t//\tret = append(ret, d)\n\t\t\t//}\n\t\t}\n\n\t}\n\n\t//return ret, int(res.TotalHits()), err\n\treturn ret, int(res.TookInMillis*10), err\n}", "func (d *Dao) TargetsByQuery(c context.Context, where string) (res []*model.Target, err error) {\n\tvar rows *xsql.Rows\n\tif rows, err = d.db.Query(c, _targetQuerySQL+where); err != nil {\n\t\tlog.Error(\"d.TargetsByQuery.Query error(%+v), sql(%s)\", err, _targetQuerySQL+where)\n\t\treturn\n\t}\n\tdefer rows.Close()\n\tfor rows.Next() {\n\t\tvar t = &model.Target{}\n\t\tif err = rows.Scan(&t.ID, &t.SubEvent, &t.Event, &t.Product, &t.Source, &t.GroupIDs, &t.Threshold, &t.Duration, &t.State, &t.Ctime, &t.Mtime); err != nil {\n\t\t\tlog.Error(\"d.TargetsByQuery.Scan error(%+v), sql(%s)\", err, _targetQuerySQL+where)\n\t\t\treturn\n\t\t}\n\t\tif t.GroupIDs != \"\" {\n\t\t\tvar gids []int64\n\t\t\tif gids, err = xstr.SplitInts(t.GroupIDs); err != nil {\n\t\t\t\tlog.Error(\"d.Product.SplitInts error(%+v), group ids(%s)\", err, t.GroupIDs)\n\t\t\t\treturn\n\t\t\t}\n\t\t\tif t.Groups, err = d.Groups(c, gids); err != nil {\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\t\tres = append(res, t)\n\t}\n\treturn\n}", "func (d *Dao) Index(c context.Context, tp int32, oid, dmid int64) (dm *model.DM, err error) {\n\tdm = &model.DM{}\n\trow := d.dmMetaReader.QueryRow(c, fmt.Sprintf(_idxSQL, d.hitIndex(oid)), dmid, oid, tp)\n\tif err = row.Scan(&dm.ID, &dm.Type, &dm.Oid, &dm.Mid, &dm.Progress, &dm.State, &dm.Pool, &dm.Attr, &dm.Ctime, &dm.Mtime); err != nil {\n\t\tif err == sql.ErrNoRows {\n\t\t\tdm = nil\n\t\t\terr = nil\n\t\t} else {\n\t\t\tlog.Error(\"row.Scan() error(%v)\", err)\n\t\t}\n\t}\n\treturn\n}", "func (p SearchParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func (i *Index) getList(tr fdb.ReadTransaction, q *Query) ([]*needObject, error) {\n\tsub, iterator := i.getIterator(tr, q)\n\n\tprimaryLen := len(i.object.primaryFields)\n\tvalues := []*needObject{}\n\tfor iterator.Advance() {\n\t\tkv, err := iterator.Get()\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tfullTuple, err := sub.Unpack(kv.Key)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tif len(fullTuple)-primaryLen < 0 {\n\t\t\treturn nil, errors.New(\"invalid data: key too short\")\n\t\t}\n\t\tkey := fullTuple[len(fullTuple)-primaryLen:]\n\n\t\tvalues = append(values, i.object.need(tr, i.object.sub(key)))\n\t}\n\treturn values, nil\n}", "func findOptionParams(opts ...influxdb.FindOptions) [][2]string {\n\tvar out [][2]string\n\tfor _, o := range opts {\n\t\tfor k, vals := range o.QueryParams() {\n\t\t\tfor _, v := range vals {\n\t\t\t\tout = append(out, [2]string{k, v})\n\t\t\t}\n\t\t}\n\t}\n\treturn out\n}", "func (q *QueryInputs) buildParams() bson.D {\n\tp := bson.D{}\n\n\tif len(q.Params) != 0 {\n\t\tp = buildD(q.Params)\n\t}\n\n\treturn p\n}", "func IndexIn(vs ...int) predicate.Step {\n\tv := make([]interface{}, len(vs))\n\tfor i := range v {\n\t\tv[i] = vs[i]\n\t}\n\treturn predicate.Step(func(s *sql.Selector) {\n\t\t// if not arguments were provided, append the FALSE constants,\n\t\t// since we can't apply \"IN ()\". This will make this predicate falsy.\n\t\tif len(v) == 0 {\n\t\t\ts.Where(sql.False())\n\t\t\treturn\n\t\t}\n\t\ts.Where(sql.In(s.C(FieldIndex), v...))\n\t})\n}", "func (i *Index) Search(q query.Query) (docs []index.Document, total int, err error) {\n\tconn := i.getConn()\n\tdefer conn.Close()\n\n\targs := redis.Args{i.name, q.Term, \"LIMIT\", q.Paging.Offset, q.Paging.Num, \"WITHSCORES\"}\n\t//if q.Flags&query.QueryVerbatim != 0 {\n\targs = append(args, \"VERBATIM\")\n\t//}\n\tif q.Flags&query.QueryNoContent != 0 {\n\t\targs = append(args, \"NOCONTENT\")\n\t}\n\n\tif q.HighlightOpts != nil {\n\t\targs = args.Add(\"HIGHLIGHT\")\n\t\tif q.HighlightOpts.Fields != nil && len(q.HighlightOpts.Fields) > 0 {\n\t\t\targs = args.Add(\"FIELDS\", len(q.HighlightOpts.Fields))\n\t\t\targs = args.AddFlat(q.HighlightOpts.Fields)\n\t\t}\n\t\targs = args.Add(\"TAGS\", q.HighlightOpts.Tags[0], q.HighlightOpts.Tags[1])\n\t}\n\n\tif q.SummarizeOpts != nil {\n\t\targs = args.Add(\"SUMMARIZE\")\n\t\tif q.SummarizeOpts.Fields != nil && len(q.SummarizeOpts.Fields) > 0 {\n\t\t\targs = args.Add(\"FIELDS\", len(q.SummarizeOpts.Fields))\n\t\t\targs = args.AddFlat(q.SummarizeOpts.Fields)\n\t\t}\n\t\tif q.SummarizeOpts.FragmentLen > 0 {\n\t\t\targs = args.Add(\"LEN\", q.SummarizeOpts.FragmentLen)\n\t\t}\n\t\tif q.SummarizeOpts.NumFragments > 0 {\n\t\t\targs = args.Add(\"FRAGS\", q.SummarizeOpts.NumFragments)\n\t\t}\n\t\tif q.SummarizeOpts.Separator != \"\" {\n\t\t\targs = args.Add(\"SEPARATOR\", q.SummarizeOpts.Separator)\n\t\t}\n\t}\n\n\tif err := conn.Send(i.commandPrefix+\".SEARCH\", args...); err != nil {\n\t\tpanic(err)\n\t}\n\n\tif err := conn.Flush(); err != nil {\n\t\tpanic(err)\n\t}\n\n\tif _, err := conn.Receive(); err != nil {\n\t\tpanic(err)\n\t}\n\n\tres, err := redis.Values(conn.Do(i.commandPrefix+\".SEARCH\", args...))\n\tif err != nil {\n\t\treturn nil, 0, err\n\t}\n\n\tif total, err = redis.Int(res[0], nil); err != nil {\n\t\treturn nil, 0, err\n\t}\n\n\tdocs = make([]index.Document, 0, len(res)-1)\n\n\tif len(res) > 2 {\n\t\tfor i := 1; i < len(res); i += 2 {\n\n\t\t\tvar fields interface{} = []interface{}{}\n\t\t\tif q.Flags&query.QueryNoContent == 0 {\n\t\t\t\tfields = res[i+2]\n\n\t\t\t}\n\t\t\tif d, e := loadDocument(res[i], res[i+1], fields); e == nil {\n\t\t\t\tdocs = append(docs, d)\n\t\t\t}\n\t\t\tif q.Flags&query.QueryNoContent == 0 {\n\t\t\t\ti++\n\t\t\t}\n\t\t}\n\t}\n\treturn docs, len(docs), nil\n}", "func (o *PhoneSearchOptions) getParameters() (params map[string]string, err error) {\n\t// create an empty map of options\n\tparams = make(map[string]string)\n\n\t// reflect over the properties in o, adding parameters to the global map\n\tval := reflect.ValueOf(o).Elem()\n\tfor i := 0; i < val.NumField(); i++ {\n\t\tif !val.Field(i).IsNil() {\n\t\t\to := val.Field(i).Interface().(OptionProvider)\n\t\t\tfieldParams, err := o.getParameters()\n\t\t\tif err != nil {\n\t\t\t\treturn params, err\n\t\t\t}\n\t\t\tfor k, v := range fieldParams {\n\t\t\t\tparams[k] = v\n\t\t\t}\n\t\t}\n\t}\n\treturn params, nil\n}", "func (ix *Reindexer) Query(q Query) *Reindexer {\n\tix.query = q\n\treturn ix\n}", "func (k *Kuzzle) Query(query *types.KuzzleRequest, options types.QueryOptions, responseChannel chan<- *types.KuzzleResponse) {\n\tu := uuid.New()\n\trequestId := u.String()\n\n\tif query.RequestId == \"\" {\n\t\tquery.RequestId = requestId\n\t}\n\n\tif query.Body == nil {\n\t\tquery.Body = json.RawMessage(\"{}\")\n\t}\n\n\tif options == nil {\n\t\toptions = types.NewQueryOptions()\n\t}\n\n\tif options.Volatile() != nil {\n\t\tquery.Volatile = options.Volatile()\n\n\t\tmapped := make(map[string]interface{})\n\t\t_ = json.Unmarshal(query.Volatile, &mapped)\n\n\t\tmapped[\"sdkName\"] = version\n\n\t\tquery.Volatile, _ = json.Marshal(mapped)\n\n\t} else {\n\t\tvol := fmt.Sprintf(`{\"sdkName\": \"%s\"}`, version)\n\t\tquery.Volatile = types.VolatileData(vol)\n\t}\n\n\tjsonRequest, _ := json.Marshal(query)\n\n\tout := map[string]interface{}{}\n\terr := json.Unmarshal(jsonRequest, &out)\n\n\tif err != nil {\n\t\tif responseChannel != nil {\n\t\t\tresponseChannel <- &types.KuzzleResponse{Error: types.NewError(err.Error())}\n\t\t}\n\t\treturn\n\t}\n\n\trefresh := options.Refresh()\n\tif refresh != \"\" {\n\t\tout[\"refresh\"] = refresh\n\t}\n\n\tout[\"from\"] = options.From()\n\tout[\"size\"] = options.Size()\n\n\tscroll := options.Scroll()\n\tif scroll != \"\" {\n\t\tout[\"scroll\"] = scroll\n\t}\n\n\tscrollId := options.ScrollId()\n\tif scrollId != \"\" {\n\t\tout[\"scrollId\"] = scrollId\n\t}\n\n\tretryOnConflict := options.RetryOnConflict()\n\tif retryOnConflict > 0 {\n\t\tout[\"retryOnConflict\"] = retryOnConflict\n\t}\n\n\tjwt := k.Jwt()\n\tif jwt != \"\" {\n\t\tout[\"jwt\"] = jwt\n\t}\n\n\tif len(query.CustomArgs) != 0 {\n\t\tfor k, v := range query.CustomArgs {\n\t\t\tout[k] = v\n\t\t}\n\t}\n\n\tfinalRequest, err := json.Marshal(out)\n\n\tif err != nil {\n\t\tif responseChannel != nil {\n\t\t\tresponseChannel <- &types.KuzzleResponse{Error: types.NewError(err.Error())}\n\t\t}\n\t\treturn\n\t}\n\n\tqueueable := options == nil || options.Queuable()\n\tqueueable = queueable && k.queueFilter(finalRequest)\n\n\tif k.queuing {\n\t\tif queueable {\n\t\t\tk.cleanQueue()\n\t\t\tqo := &types.QueryObject{\n\t\t\t\tTimestamp: time.Now(),\n\t\t\t\tResChan: responseChannel,\n\t\t\t\tQuery: finalRequest,\n\t\t\t\tRequestId: requestId,\n\t\t\t\tOptions: options,\n\t\t\t}\n\t\t\tk.offlineQueue = append(k.offlineQueue, qo)\n\t\t\tk.EmitEvent(event.OfflineQueuePush, qo)\n\t\t\treturn\n\t\t}\n\n\t\tk.EmitEvent(event.Discarded, finalRequest)\n\t\tif responseChannel != nil {\n\t\t\tresponseChannel <- &types.KuzzleResponse{Status: 400, Error: types.NewError(\"Unable to execute request: not connected to a Kuzzle server.\\nDiscarded request: \"+string(finalRequest), 400)}\n\t\t}\n\t\treturn\n\t}\n\n\terr = k.protocol.Send(finalRequest, options, responseChannel, requestId)\n\n\tif err != nil {\n\t\tif responseChannel != nil {\n\t\t\tresponseChannel <- &types.KuzzleResponse{Error: types.NewError(err.Error())}\n\t\t}\n\t\treturn\n\t}\n}", "func namedPqParams(numFields int, numEntities int) string {\n\tparamGroups := make([]string, 0, numEntities)\n\tparams := make([]string, 0, numFields)\n\tnumTotalParams := numEntities * numFields\n\n\tfor i := 0; i < numTotalParams; i++ {\n\t\tparams = append(params, fmt.Sprintf(\"$%v\", i+1))\n\n\t\t//when we reach the number of fields, group the params\n\t\tif (i+1)%numFields == 0 {\n\t\t\tparamGroup := fmt.Sprintf(\"(%s)\", strings.Join(params, \",\"))\n\t\t\tparamGroups = append(paramGroups, paramGroup)\n\t\t\tparams = make([]string, 0, numFields)\n\t\t}\n\t}\n\treturn strings.Join(paramGroups, \",\")\n}", "func (q *Query) Range(indexName string, start, end interface{}) *Query {\n\t// For an index range search,\n\t// it is non-sensical to pass two nils\n\t// Set the error and return the query unchanged\n\tif start == nil && end == nil {\n\t\tq.err = errors.New(ErrNilInputsRangeIndexQuery)\n\t\treturn q\n\t}\n\tq.start = start\n\tq.end = end\n\tq.isIndexQuery = true\n\tq.indexName = []byte(indexName)\n\treturn q\n}", "func getPagedQueryTerms(r *http.Request) (string, string, ServerResponse) {\n\n\tquery := r.URL.Query()\n\n\tif len(query) == 0 {\n\t\tresponseObject := createEmptyServerResponseWithError(MalformedPagedBySenderURL)\n\t\treturn \"\", \"\", responseObject\n\t}\n\n\tsenderQ := query[\"sender\"]\n\tif len(senderQ) == 0 {\n\n\t\tresponseObject := createEmptyServerResponseWithError(SenderEmpty)\n\t\treturn \"\", \"\", responseObject\n\t}\n\n\tsender := senderQ[0]\n\n\tif sender == \"\" {\n\t\tresponseObject := createEmptyServerResponseWithError(SenderEmpty)\n\t\treturn \"\", \"\", responseObject\n\t}\n\n\tstartingIdQ := query[\"startAt\"]\n\tvar startingId string\n\tif len(startingIdQ) == 0 {\n\t\tstartingId = \"\"\n\t} else {\n\t\tstartingId = startingIdQ[0]\n\t}\n\n\treturn sender, startingId, ServerResponse{}\n}", "func (c ResolverGetIndexByIDFuncCall) Args() []interface{} {\n\treturn []interface{}{c.Arg0, c.Arg1}\n}", "func (q *Query) Params() interface{} {\n\treturn q.Request.Params\n}", "func getParamsAndValues(b *ingestcommon.BenchData) ([]paramtools.Params, []float32, paramtools.ParamSet) {\n\tparams := []paramtools.Params{}\n\tvalues := []float32{}\n\tps := paramtools.ParamSet{}\n\tfor testName, allConfigs := range b.Results {\n\t\tfor configName, result := range allConfigs {\n\t\t\tkey := paramtools.Params(b.Key).Copy()\n\t\t\tkey[\"test\"] = testName\n\t\t\tkey[\"config\"] = configName\n\t\t\tkey.Add(paramtools.Params(b.Options))\n\n\t\t\t// If there is an options map inside the result add it to the params.\n\t\t\tif resultOptions, ok := result[\"options\"]; ok {\n\t\t\t\tif opts, ok := resultOptions.(map[string]interface{}); ok {\n\t\t\t\t\tfor k, vi := range opts {\n\t\t\t\t\t\t// Ignore the very long and not useful GL_ values, we can retrieve\n\t\t\t\t\t\t// them later via ptracestore.Details.\n\t\t\t\t\t\tif strings.HasPrefix(k, \"GL_\") {\n\t\t\t\t\t\t\tcontinue\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif s, ok := vi.(string); ok {\n\t\t\t\t\t\t\tkey[k] = s\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor k, vi := range result {\n\t\t\t\tif k == \"options\" || k == \"samples\" {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\tkey[\"sub_result\"] = k\n\t\t\t\tfloatVal, ok := vi.(float64)\n\t\t\t\tif !ok {\n\t\t\t\t\tsklog.Errorf(\"Found a non-float64 in %v\", result)\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\tkey = query.ForceValid(key)\n\t\t\t\tparams = append(params, key.Copy())\n\t\t\t\tvalues = append(values, float32(floatVal))\n\t\t\t\tps.AddParams(key)\n\t\t\t}\n\t\t}\n\t}\n\tps.Normalize()\n\treturn params, values, ps\n}", "func (c *Client) query(endpoint string, out interface{}, q *QueryOptions) (*QueryMeta, error) {\n\tr, err := c.newRequest(\"GET\", endpoint)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tr.setQueryOptions(q)\n\trtt, resp, err := requireOK(c.doRequest(r))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tdefer resp.Body.Close()\n\n\tqm := &QueryMeta{}\n\tparseQueryMeta(resp, qm)\n\tqm.RequestTime = rtt\n\n\tif err := decodeBody(resp, out); err != nil {\n\t\treturn nil, err\n\t}\n\treturn qm, nil\n}", "func (self *TStatement) generate_query(vals map[string]interface{}, includeVersion bool, includeUpdated bool, includeNil bool,\r\n\tincludeAutoIncr bool, allUseBool bool, useAllCols bool, unscoped bool, mustColumnMap map[string]bool) (res_clause string, res_params []interface{}) {\r\n\t//res_domain = utils.NewStringList()\r\n\tlClauses := make([]string, 0)\r\n\tres_params = make([]interface{}, 0)\r\n\r\n\tvar (\r\n\t\t//\t\tfield *TField\r\n\t\tcol IField\r\n\t\t//left, oprator, right string\r\n\r\n\t\tlIsRequiredField bool\r\n\t\tlFieldType reflect.Type\r\n\t\tlFieldVal reflect.Value\r\n\t)\r\n\r\n\tfor name, val := range vals {\r\n\r\n\t\t//field = self.session.model.FieldByName(name)\r\n\t\tcol = self.model.GetFieldByName(name) // field.column\r\n\t\tif col == nil {\r\n\t\t\tcontinue\r\n\t\t}\r\n\r\n\t\tif !includeVersion && col.IsVersion() {\r\n\t\t\tcontinue\r\n\t\t}\r\n\r\n\t\tif !includeUpdated && col.IsUpdated() {\r\n\t\t\tcontinue\r\n\t\t}\r\n\r\n\t\tif !includeAutoIncr && col.IsAutoIncrement() {\r\n\t\t\tcontinue\r\n\t\t}\r\n\r\n\t\tif self.session.orm.dialect.DBType() == MSSQL && col.SQLType().Name == Text {\r\n\t\t\tcontinue\r\n\t\t}\r\n\t\tif col.SQLType().IsJson() {\r\n\t\t\tcontinue\r\n\t\t}\r\n\r\n\t\tif val == nil {\r\n\t\t\tcontinue\r\n\t\t}\r\n\r\n\t\tlFieldType = reflect.TypeOf(val)\r\n\t\tlFieldVal = reflect.ValueOf(val)\r\n\t\tlIsRequiredField = useAllCols\r\n\t\t// 强制过滤已经设定的字段是否作为Query使用\r\n\t\tif b, ok := mustColumnMap[strings.ToLower(col.Name())]; ok {\r\n\t\t\tif b {\r\n\t\t\t\tlIsRequiredField = true\r\n\t\t\t} else {\r\n\t\t\t\tcontinue\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// 处理指针结构\r\n\t\tif lFieldType.Kind() == reflect.Ptr {\r\n\t\t\tif val == nil {\r\n\t\t\t\tif includeNil {\r\n\t\t\t\t\t//args = append(args, nil)\r\n\t\t\t\t\t//colNames = append(colNames, fmt.Sprintf(\"%v %s ?\", colName, engine.dialect.EqStr()))\r\n\t\t\t\t\tlClauses = append(lClauses, fmt.Sprintf(\"%v %s ?\", name, self.session.orm.dialect.EqStr()))\r\n\t\t\t\t\t//res_domain.AddSubList(name, self.session.orm.dialect.EqStr(), \"?\")\r\n\t\t\t\t\tres_params = append(res_params, nil)\r\n\t\t\t\t}\r\n\t\t\t\tcontinue\r\n\r\n\t\t\t} else {\r\n\t\t\t\t// dereference ptr type to instance type\r\n\t\t\t\tlFieldVal = lFieldVal.Elem()\r\n\t\t\t\tlFieldType = reflect.TypeOf(lFieldVal.Interface())\r\n\t\t\t\tlIsRequiredField = true\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tswitch lFieldType.Kind() {\r\n\t\tcase reflect.Bool:\r\n\t\t\tif !allUseBool || !lIsRequiredField {\r\n\t\t\t\t// if a bool in a struct, it will not be as a condition because it default is false,\r\n\t\t\t\t// please use Where() instead\r\n\t\t\t\tcontinue\r\n\t\t\t}\r\n\t\tcase reflect.String:\r\n\t\t\t/*if !requiredField && fieldValue.String() == \"\" {\r\n\t\t\t\tcontinue\r\n\t\t\t}\r\n\t\t\t// for MyString, should convert to string or panic\r\n\t\t\tif fieldType.String() != reflect.String.String() {\r\n\t\t\t\tval = fieldValue.String()\r\n\t\t\t} else {\r\n\t\t\t\tval = fieldValue.Interface()\r\n\t\t\t}*/\r\n\t\tcase reflect.Int8, reflect.Int16, reflect.Int, reflect.Int32, reflect.Int64:\r\n\t\t\t/*if !requiredField && fieldValue.Int() == 0 {\r\n\t\t\t\tcontinue\r\n\t\t\t}\r\n\t\t\tval = fieldValue.Interface()*/\r\n\t\tcase reflect.Float32, reflect.Float64:\r\n\t\t\t/*if !requiredField && fieldValue.Float() == 0.0 {\r\n\t\t\t\tcontinue\r\n\t\t\t}\r\n\t\t\tval = fieldValue.Interface()*/\r\n\t\tcase reflect.Uint8, reflect.Uint16, reflect.Uint, reflect.Uint32, reflect.Uint64:\r\n\t\t\t/*if !requiredField && fieldValue.Uint() == 0 {\r\n\t\t\t\tcontinue\r\n\t\t\t}\r\n\t\t\tt := int64(fieldValue.Uint())\r\n\t\t\tval = reflect.ValueOf(&t).Interface()*/\r\n\t\tcase reflect.Struct:\r\n\t\t\tif lFieldType.ConvertibleTo(TimeType) {\r\n\t\t\t\tt := lFieldVal.Convert(TimeType).Interface().(time.Time)\r\n\t\t\t\tif !lIsRequiredField && (t.IsZero() || !lFieldVal.IsValid()) {\r\n\t\t\t\t\tcontinue\r\n\t\t\t\t}\r\n\t\t\t\tval = self.session.orm.FormatTime(col.SQLType().Name, t)\r\n\t\t\t} else if _, ok := reflect.New(lFieldType).Interface().(Conversion); ok {\r\n\t\t\t\tcontinue\r\n\r\n\t\t\t\t/*} else if valNul, ok := fieldValue.Interface().(driver.Valuer); ok {\r\n\t\t\t\tval, _ = valNul.Value()\r\n\t\t\t\tif val == nil {\r\n\t\t\t\t\tcontinue\r\n\t\t\t\t}*/\r\n\t\t\t} else {\r\n\t\t\t\tif col.SQLType().IsJson() {\r\n\t\t\t\t\tif col.SQLType().IsText() {\r\n\t\t\t\t\t\tbytes, err := json.Marshal(val)\r\n\t\t\t\t\t\tif err != nil {\r\n\t\t\t\t\t\t\tlog.Err(\"adas\", err)\r\n\t\t\t\t\t\t\tcontinue\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tval = string(bytes)\r\n\t\t\t\t\t} else if col.SQLType().IsBlob() {\r\n\t\t\t\t\t\tvar bytes []byte\r\n\t\t\t\t\t\tvar err error\r\n\t\t\t\t\t\tbytes, err = json.Marshal(val)\r\n\t\t\t\t\t\tif err != nil {\r\n\t\t\t\t\t\t\tlog.Errf(\"asdf\", err)\r\n\t\t\t\t\t\t\tcontinue\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tval = bytes\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// any other\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\tcase reflect.Array, reflect.Slice, reflect.Map:\r\n\t\t\tif lFieldVal == reflect.Zero(lFieldType) {\r\n\t\t\t\tcontinue\r\n\t\t\t}\r\n\t\t\tif lFieldVal.IsNil() || !lFieldVal.IsValid() || lFieldVal.Len() == 0 {\r\n\t\t\t\tcontinue\r\n\t\t\t}\r\n\r\n\t\t\tif col.SQLType().IsText() {\r\n\t\t\t\tbytes, err := json.Marshal(lFieldVal.Interface())\r\n\t\t\t\tif err != nil {\r\n\t\t\t\t\tlog.Errf(\"generate_query:\", err)\r\n\t\t\t\t\tcontinue\r\n\t\t\t\t}\r\n\t\t\t\tval = string(bytes)\r\n\t\t\t} else if col.SQLType().IsBlob() {\r\n\t\t\t\tvar bytes []byte\r\n\t\t\t\tvar err error\r\n\t\t\t\tif (lFieldType.Kind() == reflect.Array || lFieldType.Kind() == reflect.Slice) &&\r\n\t\t\t\t\tlFieldType.Elem().Kind() == reflect.Uint8 {\r\n\t\t\t\t\tif lFieldVal.Len() > 0 {\r\n\t\t\t\t\t\tval = lFieldVal.Bytes()\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcontinue\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbytes, err = json.Marshal(lFieldVal.Interface())\r\n\t\t\t\t\tif err != nil {\r\n\t\t\t\t\t\tlog.Err(\"1\", err)\r\n\t\t\t\t\t\tcontinue\r\n\t\t\t\t\t}\r\n\t\t\t\t\tval = bytes\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tcontinue\r\n\t\t\t}\r\n\t\tdefault:\r\n\t\t\t//val = lFieldVal.Interface()\r\n\t\t}\r\n\r\n\t\tvar Clause string\r\n\t\tif col.IsPrimaryKey() && self.session.orm.dialect.DBType() == \"ql\" {\r\n\t\t\t//condi = \"id() == ?\"\r\n\t\t\tClause = \"id() == ?\"\r\n\t\t\t//left = \"id()\"\r\n\t\t\t//oprator = \"=\"\r\n\t\t\t//right = \"?\"\r\n\r\n\t\t} else {\r\n\t\t\t//condi = fmt.Sprintf(\"%v %s ?\", colName, self.session.orm.dialect.EqStr())\r\n\t\t\tClause = fmt.Sprintf(\"%v %s ?\", name, self.session.orm.dialect.EqStr())\r\n\t\t\t//left = name\r\n\t\t\t//oprator = \"=\"\r\n\t\t\t//right = \"?\"\r\n\t\t}\r\n\t\tlClauses = append(lClauses, Clause)\r\n\t\t//res_domain.AddSubList(right, oprator, left)\r\n\t\tres_params = append(res_params, val)\r\n\t}\r\n\r\n\tres_clause = strings.Join(lClauses, \" \"+self.session.orm.dialect.AndStr()+\" \")\r\n\treturn\r\n}", "func (r *BaseRequest) Query() url.Values {\n\tif r.query == nil {\n\t\tr.query = url.Values{}\n\t}\n\treturn r.query\n}", "func getQueryParam(c *gin.Context, paramName string) (int64, error) {\n\tp := c.Query(\"target\")\n\n\tid, err := strconv.ParseInt(p, 10, 0)\n\tif err != nil {\n\t\treturn 0, models.ValidationError{\n\t\t\t\"target\": ErrParseError,\n\t\t}\n\t}\n\n\treturn id, nil\n}", "func (z RequestData) Query() interface{} {\n\treturn z.q\n}", "func ByQuery(c *gin.Context, pagenum int, withUser bool, deleted bool, hidden bool) (TorrentParam, []models.Torrent, int, error) {\n\tvar torrentParam TorrentParam\n\ttorrentParam.FromRequest(c)\n\ttorrentParam.Offset = uint32(pagenum)\n\ttorrentParam.Hidden = hidden\n\ttorrentParam.Full = withUser\n\ttorrentParam.Deleted = deleted\n\tif found, ok := cache.C.Get(torrentParam.Identifier()); ok {\n\t\tlog.Infof(\"Retrieve results from Cache in %s\", torrentParam.Identifier())\n\t\ttorrentCache := found.(*TorrentCache)\n\t\treturn torrentParam, torrentCache.Torrents, torrentCache.Count, nil\n\t}\n\tif config.Get().Search.EnableElasticSearch && models.ElasticSearchClient != nil && !deleted {\n\t\ttor, totalHits, err := torrentParam.FindES(c, models.ElasticSearchClient)\n\t\t// If there are results no errors from ES search we use the ES client results\n\t\tif totalHits > 0 && err == nil {\n\t\t\t// Since we have results, we cache them so we don't ask everytime ES for the same results\n\t\t\tcache.C.Set(torrentParam.Identifier(), &TorrentCache{tor, int(totalHits)}, 5*time.Minute)\n\t\t\t// we return the results\n\t\t\t// Convert back to non-json torrents\n\t\t\treturn torrentParam, tor, int(totalHits), nil\n\t\t}\n\t\t// Errors from ES should be managed in the if condition. Log is triggered only if err != nil (checkError behaviour)\n\t\tlog.CheckErrorWithMessage(err, \"ES_ERROR_MSG: Seems like ES was not reachable whereas it was when starting the app. Error: '%s'\")\n\t}\n\t// We fallback to PG, if ES gives error or no results or if ES is disabled in config or if deleted search is enabled\n\tlog.Errorf(\"Falling back to postgresql query\")\n\ttor, totalHits, err := torrentParam.FindDB(c)\n\tif totalHits > 0 && err == nil {\n\t\tcache.C.Set(torrentParam.Identifier(), &TorrentCache{tor, int(totalHits)}, 5*time.Minute)\n\t}\n\treturn torrentParam, tor, int(totalHits), err\n}", "func (store *HexastoreDB) QueryXXO(objID int) *[]Triple {\n\tres := []Triple{}\n\trelevant := store.OPS[objID]\n\n\tif relevant == nil {\n\t\treturn &[]Triple{}\n\t}\n\n\tfor propID, subjMap := range relevant {\n\t\tfor subjID, value := range subjMap {\n\t\t\tcurrTriple := MakeTriple(subjID, propID, objID, value)\n\t\t\tres = append(res, *currTriple)\n\t\t}\n\t}\n\n\treturn &res\n}", "func (store *HexastoreDB) QuerySXX(subjID int) *[]Triple {\n\tres := []Triple{}\n\trelevant := store.SPO[subjID]\n\n\tif relevant == nil {\n\t\treturn &[]Triple{}\n\t}\n\n\tfor prop, objMap := range relevant {\n\t\tfor obj, value := range objMap {\n\t\t\tcurrTriple := MakeTriple(subjID, prop, obj, value)\n\t\t\tres = append(res, *currTriple)\n\t\t}\n\t}\n\n\treturn &res\n}", "func buildQueryURL(prefix, prop string, titles []string, cont string) string {\n\tvalues := url.Values{}\n\tvalues.Add(\"format\", \"json\")\n\tvalues.Add(\"action\", \"query\")\n\tvalues.Add(\"titles\", strings.Join(titles, \"|\"))\n\tvalues.Add(\"prop\", prop)\n\tvalues.Add(fmt.Sprintf(\"%snamespace\", prefix), namespace)\n\tvalues.Add(fmt.Sprintf(\"%slimit\", prefix), \"max\")\n\tif len(cont) > 0 {\n\t\tvalues.Add(fmt.Sprintf(\"%scontinue\", prefix), cont)\n\t}\n\treturn fmt.Sprintf(\"%s?%s\", apiEndpoint, values.Encode())\n}", "func (args ForecastArgs) QueryParams() url.Values {\n\tq := make(url.Values)\n\tif args.Location != nil {\n\t\tfor k, v := range args.Location.LocationQueryParams() {\n\t\t\tq[k] = v\n\t\t}\n\t}\n\n\tif !args.Start.IsZero() {\n\t\tq.Add(\"start_time\", args.Start.Format(time.RFC3339))\n\t}\n\tif !args.End.IsZero() {\n\t\tq.Add(\"end_time\", args.End.Format(time.RFC3339))\n\t}\n\tif args.Timestep > 0 {\n\t\tq.Add(\"timestep\", strconv.Itoa(args.Timestep))\n\t}\n\tif args.UnitSystem != \"\" {\n\t\tq.Add(\"unit_system\", args.UnitSystem)\n\t}\n\tif len(args.Fields) > 0 {\n\t\tq.Add(\"fields\", strings.Join(args.Fields, \",\"))\n\t}\n\treturn q\n}", "func (this *NamedParameterQuery) setQuery(queryText string) {\n\n\tvar revisedBuilder bytes.Buffer\n\tvar parameterBuilder bytes.Buffer\n\tvar position []int\n\tvar character rune\n\tvar parameterName string\n\tvar width int\n\tvar positionIndex int\n\n\tthis.originalQuery = queryText\n\tpositionIndex = 0\n\n\tfor i := 0; i < len(queryText); {\n\n\t\tcharacter, width = utf8.DecodeRuneInString(queryText[i:])\n\t\ti += width\n\n\t\t// if it's a colon, do not write to builder, but grab name\n\t\tif(character == ':') {\n\n\t\t\tfor ;; {\n\n\t\t\t\tcharacter, width = utf8.DecodeRuneInString(queryText[i:])\n\t\t\t\ti += width\n\n\t\t\t\tif unicode.IsLetter(character) || unicode.IsDigit(character) {\n\t\t\t\t\tparameterBuilder.WriteString(string(character))\n\t\t\t\t} else {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// add to positions\n\t\t\tparameterName = parameterBuilder.String()\n\t\t\tposition = this.positions[parameterName]\n\t\t\tthis.positions[parameterName] = append(position, positionIndex)\n\t\t\tpositionIndex++\n\n\t\t\trevisedBuilder.WriteString(\"?\")\n\t\t\tparameterBuilder.Reset()\n\n\t\t\tif(width <= 0) {\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\n\t\t// otherwise write.\n\t\trevisedBuilder.WriteString(string(character))\n\n\t\t// if it's a quote, continue writing to builder, but do not search for parameters.\n\t\tif(character == '\\'') {\n\n\t\t\tfor ;; {\n\n\t\t\t\tcharacter, width = utf8.DecodeRuneInString(queryText[i:])\n\t\t\t\ti += width\n\t\t\t\trevisedBuilder.WriteString(string(character))\n\n\t\t\t\tif(character == '\\'') {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tthis.revisedQuery = revisedBuilder.String()\n\tthis.parameters = make([]interface{}, positionIndex)\n}", "func (c ResolverGetIndexesByIDsFuncCall) Results() []interface{} {\n\treturn []interface{}{c.Result0, c.Result1}\n}", "func (c *HTTPClient) Query(q *Query, timeout time.Duration) (\n res *QueryResponse, err error) {\n\n if q == nil {\n err = fmt.Errorf(\"kairosdb: nil query passed\")\n return\n }\n payload, err := json.Marshal(q)\n if err != nil {\n return\n }\n\n res = &QueryResponse{}\n glog.V(3).Infof(\"querying metric: %s\", string(payload))\n reader := ioutil.NopCloser(bytes.NewReader(payload))\n err = c.backend.Call(\"POST\", c.url+\"/api/v1/datapoints/query\", reader,\n timeout, http.StatusOK, res)\n if err != nil {\n return\n }\n\n glog.V(3).Infof(\"response from query: %+v\", res)\n return\n}", "func (p ContentIDParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func (t *queryExecFormatter) formattedResult() (pathResults map[string]interface{}, err error) {\n\tr, err := t.queryAndVerify()\n\tif err != nil {\n\t\treturn\n\t}\n\n\t// query path results are set against the index\n\tpathResults = map[string]interface{}{\n\t\tt.index: r,\n\t}\n\treturn\n}", "func (this *NamedParameterQuery) GetParsedParameters() ([]interface{}) {\n\treturn this.parameters\n}", "func (c *Client) Search(query interface{}, indexList []string, typeList []string, extraArgs url.Values) (*Response, error) {\n\tr := Request{\n\t\tQuery: query,\n\t\tIndexList: indexList,\n\t\tTypeList: typeList,\n\t\tMethod: \"POST\",\n\t\tAPI: \"_search\",\n\t\tExtraArgs: extraArgs,\n\t}\n\n\treturn c.Do(&r)\n}", "func (t *SmartContract) query_all(stub shim.ChaincodeStubInterface, args []string) pb.Response {\n\n\tif len(args) != 0 {\n\t\treturn shim.Error(\"Incorrect number of arguments. Expecting 0\")\n\t}\n\n resultsIterator, err := stub.GetStateByRange(\"\",\"\")\n if err != nil {\n return shim.Error(err.Error())\n }\n defer resultsIterator.Close()\n\n // buffer is a JSON array containing QueryResults\n var buffer bytes.Buffer\n buffer.WriteString(\"\\n[\")\n\n\tbArrayMemberAlreadyWritten := false\n for resultsIterator.HasNext() {\n queryResponse, err := resultsIterator.Next()\n if err != nil {\n return shim.Error(err.Error())\n }\n // Add a comma before array members, suppress it for the first array member\n if bArrayMemberAlreadyWritten == true {\n buffer.WriteString(\",\")\n }\n buffer.WriteString(\"{\\\"Key\\\":\")\n buffer.WriteString(\"\\\"\")\n buffer.WriteString(queryResponse.Key)\n buffer.WriteString(\"\\\"\")\n\n buffer.WriteString(\", \\\"Record\\\":\")\n // Record is a JSON object, so we write as-is\n buffer.WriteString(string(queryResponse.Value))\n buffer.WriteString(\"}\")\n bArrayMemberAlreadyWritten = true\n }\n buffer.WriteString(\"]\\n\")\n return shim.Success(buffer.Bytes())\n}", "func (t *IPDCChaincode) query_by_id_and_status(stub shim.ChaincodeStubInterface, args []string) pb.Response {\r\n\r\n\tfmt.Println(\"***********Entering query_by_id_and_status***********\")\r\n\tif len(args) < 4 {\r\n\t\treturn shim.Error(\"Incorrect number of arguments. Expecting 4\")\r\n\t}\r\n\r\n\tdocType := args[0]\r\n\tkey := args[1]\r\n\tvalue := args[2]\r\n\tstatusVal := args[3]\r\n\r\n\tqueryString := fmt.Sprintf(\"{\\\"selector\\\":{\\\"docType\\\":%s,%s:%s,\\\"status\\\":%s}}\", docType, key, value, statusVal)\r\n\r\n\tqueryResults, err := getQueryResultForQueryString(stub, queryString)\r\n\tif err != nil {\r\n\t\treturn shim.Error(err.Error())\r\n\t}\r\n\treturn shim.Success(queryResults)\r\n}", "func (ctx *Context) ParamByIndex(index int) string {\n\treturn ctx.PathParams.ByIndex(index)\n}", "func (p ContentParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func newQuery(t reflect.Type, itself goshua.Variable, readerValues map[string]interface{}) goshua.Query {\n\tq := query{\n\t\tstructType: t,\n\t\titself: itself,\n\t\tmatchers: make(map[string]interface{}),\n\t}\n\tfor name, val := range readerValues {\n\t\tif method, ok := t.MethodByName(name); ok {\n\t\t\tq.matchers[matchersKey(method)] = val\n\t\t} else {\n\t\t\t/* Show available methods\n\t\t\tfor i := 0; i < t.NumMethod(); i++ {\n\t\t\t\tm := t.Method(i)\n\t\t\t\tlog.Printf(\"%d: method %s.%s\", i, m.PkgPath, m.Name)\n\t\t\t}\n\t\t\t*/\n\t\t\tpanic(fmt.Sprintf(\"No method %s for type %v\", name, t))\n\t\t}\n\t}\n\treturn &q\n}", "func (s *SearchService) Context(opts map[string]interface{}, page models.Page) ([]map[string]interface{}, error) {\n\tvar err error\n\terr = s.resetESClient()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\toffsetLabel := config.LogOffsetLabel()\n\toffset_, ok := opts[offsetLabel]\n\tif !ok {\n\t\treturn nil, errors.New(\"offset should not be nil\")\n\t}\n\n\tdelete(opts, offsetLabel)\n\toffset, err := strconv.ParseInt(offset_.(string), 10, 64)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar results []map[string]interface{}\n\tvar querys []elastic.Query\n\tfor k, v := range opts {\n\t\tquerys = append(querys, elastic.NewTermQuery(k, v))\n\t}\n\n\tif page.PageFrom == 0 {\n\t\tbquery := elastic.NewBoolQuery().\n\t\t\tFilter(elastic.NewRangeQuery(offsetLabel).Lt(offset)).\n\t\t\tMust(querys...)\n\n\t\tresult, err := s.ESClient.Search().\n\t\t\tIndex(\"dataman-*\").\n\t\t\tQuery(bquery).\n\t\t\tSort(\"logtime.sort\", false).\n\t\t\tFrom(0).\n\t\t\tSize(page.PageSize).\n\t\t\tPretty(true).\n\t\t\tDo()\n\n\t\tif err != nil && err.(*elastic.Error).Status == http.StatusNotFound {\n\t\t\treturn nil, nil\n\t\t}\n\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tfor i := len(result.Hits.Hits) - 1; i >= 0; i-- {\n\t\t\tdata := make(map[string]interface{})\n\t\t\tjson.Unmarshal(*result.Hits.Hits[i].Source, &data)\n\t\t\tresults = append(results, data)\n\t\t}\n\t}\n\n\tbquery := elastic.NewBoolQuery().\n\t\tFilter(elastic.NewRangeQuery(offsetLabel).Gte(offset)).\n\t\tMust(querys...)\n\n\tresult, err := s.ESClient.Search().\n\t\tIndex(\"dataman-*\").\n\t\tQuery(bquery).\n\t\tSort(\"logtime.sort\", true).\n\t\tFrom(page.PageFrom).\n\t\tSize(page.PageSize).\n\t\tPretty(true).\n\t\tDo()\n\n\tif err != nil && err.(*elastic.Error).Status == http.StatusNotFound {\n\t\treturn nil, nil\n\t}\n\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tfor _, hit := range result.Hits.Hits {\n\t\tdata := make(map[string]interface{})\n\t\tjson.Unmarshal(*hit.Source, &data)\n\t\tresults = append(results, data)\n\t}\n\n\treturn results, nil\n}", "func (p *MyServiceChannelClient) Query(ctx context.Context, s *module0.MyStruct, i *includes1.Included) (err error) {\n args := MyServiceQueryArgs{\n S : s,\n I : i,\n }\n var __result MyServiceQueryResult\n err = p.RequestChannel.Call(ctx, \"query\", &args, &__result)\n if err != nil { return }\n\n return nil\n}", "func (r *InboundRequest) QueryParamMultiple(key string) ([]string, bool) {\n value, ok := r.URL.Query()[key]\n\n return value, ok\n}", "func (req *request) Params() *EntrySet {\n return req.params\n}", "func extractQuery(c *gin.Context, tag string) (string, []string, error) {\n\tname, required, defaultVal, err := parseTagKey(tag)\n\tif err != nil {\n\t\treturn \"\", nil, err\n\t}\n\tvar params []string\n\tquery := c.Request.URL.Query()[name]\n\n\tif c.GetBool(ExplodeTag) {\n\t\t// Delete empty elements so default and required arguments\n\t\t// will play nice together. Append to a new collection to\n\t\t// preserve order without too much copying.\n\t\tparams = make([]string, 0, len(query))\n\t\tfor i := range query {\n\t\t\tif query[i] != \"\" {\n\t\t\t\tparams = append(params, query[i])\n\t\t\t}\n\t\t}\n\t} else {\n\t\tsplitFn := func(c rune) bool {\n\t\t\treturn c == ','\n\t\t}\n\t\tif len(query) > 1 {\n\t\t\treturn name, nil, errors.New(\"repeating values not supported: use comma-separated list\")\n\t\t} else if len(query) == 1 {\n\t\t\tparams = strings.FieldsFunc(query[0], splitFn)\n\t\t}\n\t}\n\n\t// XXX: deprecated, use of \"default\" tag is preferred\n\tif len(params) == 0 && defaultVal != \"\" {\n\t\treturn name, []string{defaultVal}, nil\n\t}\n\t// XXX: deprecated, use of \"validate\" tag is preferred\n\tif len(params) == 0 && required {\n\t\treturn \"\", nil, fmt.Errorf(\"missing query parameter: %s\", name)\n\t}\n\treturn name, params, nil\n}", "func (sch *schema) Index(page, count int, selectData []string, filter []byte) []bson.M {\n\tif page < 1 {\n\t\tpage = 1\n\t}\n\tskip := count * (page - 1)\n\tvar filterQuery interface{}\n\tbson.UnmarshalJSON(filter, &filterQuery)\n\tquery := sch.Collection.Find(filterQuery).Sort(\"_id\").Skip(skip).Limit(count)\n\n\tif len(selectData) > 1 {\n\t\tselectQuery := bson.M{}\n\t\tfor _, v := range selectData {\n\t\t\tselectQuery[v] = 1\n\t\t}\n\t\tquery = query.Select(selectQuery)\n\t}\n\n\tr := query.Iter()\n\tvar resultSet []bson.M\n\tvar p interface{}\n\tfor {\n\t\tflag := r.Next(&p)\n\t\tif !flag {\n\t\t\tbreak\n\t\t}\n\t\tresultSet = append(resultSet, p.(bson.M))\n\t}\n\n\treturn resultSet\n}", "func getTargetFromReq(m map[string]interface{}) (s []string, err error) {\r\n\ttargets, _ := dproxy.New(m).M(\"targets\").Array()\r\n\ts = make([]string, len(targets))\r\n\r\n\tfor i, v := range targets {\r\n\t\ts[i], _ = dproxy.New(v).M(\"target\").String()\r\n\t\t\r\n\t}\r\n\r\n\treturn s, nil\r\n}", "func (r *Request) VersionedParams(v interface{}) *Request {\n\tif r.err != nil {\n\t\treturn r\n\t}\n\n\tr.c.Client.Query(v)\n\n\treturn r\n}", "func (q *CommonTermsQuery) Source() (interface{}, error) {\n\t// {\n\t// \"common\": {\n\t// \"body\": {\n\t// \"query\": \"this is bonsai cool\",\n\t// \"cutoff_frequency\": 0.001\n\t// }\n\t// }\n\t// }\n\tsource := make(map[string]interface{})\n\tbody := make(map[string]interface{})\n\tquery := make(map[string]interface{})\n\n\tsource[\"common\"] = body\n\tbody[q.name] = query\n\tquery[\"query\"] = q.text\n\n\tif q.cutoffFreq != nil {\n\t\tquery[\"cutoff_frequency\"] = *q.cutoffFreq\n\t}\n\tif q.highFreq != nil {\n\t\tquery[\"high_freq\"] = *q.highFreq\n\t}\n\tif q.highFreqOp != \"\" {\n\t\tquery[\"high_freq_operator\"] = q.highFreqOp\n\t}\n\tif q.lowFreq != nil {\n\t\tquery[\"low_freq\"] = *q.lowFreq\n\t}\n\tif q.lowFreqOp != \"\" {\n\t\tquery[\"low_freq_operator\"] = q.lowFreqOp\n\t}\n\tif q.lowFreqMinimumShouldMatch != \"\" || q.highFreqMinimumShouldMatch != \"\" {\n\t\tmm := make(map[string]interface{})\n\t\tif q.lowFreqMinimumShouldMatch != \"\" {\n\t\t\tmm[\"low_freq\"] = q.lowFreqMinimumShouldMatch\n\t\t}\n\t\tif q.highFreqMinimumShouldMatch != \"\" {\n\t\t\tmm[\"high_freq\"] = q.highFreqMinimumShouldMatch\n\t\t}\n\t\tquery[\"minimum_should_match\"] = mm\n\t}\n\tif q.analyzer != \"\" {\n\t\tquery[\"analyzer\"] = q.analyzer\n\t}\n\tif q.boost != nil {\n\t\tquery[\"boost\"] = *q.boost\n\t}\n\tif q.queryName != \"\" {\n\t\tquery[\"_name\"] = q.queryName\n\t}\n\n\treturn source, nil\n}", "func (c AutoIndexingServiceGetIndexesByIDsFuncCall) Results() []interface{} {\n\treturn []interface{}{c.Result0, c.Result1}\n}", "func QueryParameterFor(name string, description string) Parameter {\n\treturn ParameterFor(Query, name, description)\n}", "func (af *filtBase) GetParams() (int, float64, []float64) {\n\treturn af.n, af.mu, af.w.RawRowView(0)\n}", "func (o ApiSubscriptionKeyParameterNamesOutput) Query() pulumi.StringOutput {\n\treturn o.ApplyT(func(v ApiSubscriptionKeyParameterNames) string { return v.Query }).(pulumi.StringOutput)\n}", "func (q *Query) Match(indexName string, param interface{}) *Query {\n\t// For a single parameter 'exact match' search, it is non sensical to pass nil\n\t// Set the error and return the query unchanged\n\tif param == nil {\n\t\tq.err = errors.New(ErrNilInputMatchIndexQuery)\n\t\treturn q\n\t}\n\n\t// If we are matching a string, lower-case it\n\tswitch param.(type) {\n\tcase string:\n\t\tparam = strings.ToLower(param.(string))\n\t}\n\n\tq.start = param\n\tq.end = param\n\tq.isIndexQuery = true\n\tq.indexName = []byte(strings.ToLower(indexName))\n\treturn q\n}", "func outputParams(cmd *cobra.Command) error {\n\tclientCtx, err := client.GetClientQueryContext(cmd)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tqueryClient := types.NewQueryClient(clientCtx)\n\tres, err := queryClient.Params(context.Background(), &types.QueryParamsRequest{})\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif !includeRequest {\n\t\tres.Request = nil\n\t}\n\n\treturn clientCtx.PrintProto(res)\n}" ]
[ "0.5663018", "0.53849363", "0.53648394", "0.535334", "0.5284361", "0.5198098", "0.5184258", "0.5175222", "0.51030713", "0.5101337", "0.5083553", "0.50599575", "0.5041807", "0.5039665", "0.5033205", "0.50144786", "0.4970204", "0.49540907", "0.49535236", "0.49151078", "0.49141198", "0.48943406", "0.4878961", "0.4876389", "0.48709178", "0.48415768", "0.4832934", "0.48210827", "0.48148343", "0.47749907", "0.47469035", "0.47300047", "0.4714095", "0.4703498", "0.46987537", "0.46858278", "0.46843565", "0.46808892", "0.46751702", "0.46750078", "0.46735138", "0.46622056", "0.4632851", "0.46307528", "0.46035817", "0.45999047", "0.45871198", "0.45811325", "0.45766503", "0.45714304", "0.4568319", "0.4564837", "0.45640355", "0.45623502", "0.45623493", "0.45585594", "0.45542264", "0.45506278", "0.45240718", "0.45189598", "0.45170534", "0.451392", "0.45123035", "0.45063657", "0.45042244", "0.45024955", "0.44836748", "0.44757447", "0.44725266", "0.44645408", "0.44627336", "0.4460843", "0.44584593", "0.44512662", "0.44504982", "0.4448217", "0.44468635", "0.44430843", "0.44347492", "0.44327202", "0.44308504", "0.4425816", "0.44241157", "0.44228354", "0.44201186", "0.44197774", "0.4418321", "0.4417467", "0.4416364", "0.44163036", "0.43995705", "0.43977347", "0.4391002", "0.43887585", "0.43842232", "0.43823448", "0.43817946", "0.43805316", "0.4379333" ]
0.52517825
6
return parameters of a query object
func GetQueryObjectuiv(id uint32, pname uint32, params *uint32) { C.glowGetQueryObjectuiv(gpGetQueryObjectuiv, (C.GLuint)(id), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func QueryParameters(val interface{}) string {\n\tif val == nil || (reflect.ValueOf(val).Kind() == reflect.Ptr && reflect.ValueOf(val).IsNil()) {\n\t\treturn \"\"\n\t}\n\n\tvar query []string\n\n\ts := structs.New(val)\n\tm := s.Map()\n\n\tfor k, v := range m {\n\t\tf := s.Field(k)\n\t\tt := f.Tag(\"query\")\n\n\t\tif !f.IsZero() {\n\t\t\tquery = append(query, fmt.Sprintf(\"%v=%v\", t, v))\n\t\t}\n\t}\n\n\tif len(query) == 0 {\n\t\treturn \"\"\n\t}\n\n\treturn \"?\" + strings.Join(query, \"&\")\n}", "func (b *builder) queryArguments() (string, error) {\n\targs := []string{}\n\n\tif argsStructType := argumentsStructType(reflect.TypeOf(b.query)); argsStructType != nil {\n\t\tfor i := 0; i < argsStructType.NumField(); i++ {\n\t\t\tfield := argsStructType.Field(i)\n\t\t\tb.args = append(b.args, argSpec{field})\n\t\t}\n\t}\n\n\tfor _, spec := range b.args {\n\t\tvarName := spec.variableName()\n\t\tif varName == \"\" {\n\t\t\tcontinue\n\t\t}\n\t\ttypeName, err := b.typeName(spec.field.Type)\n\t\tif err != nil {\n\t\t\treturn \"\", err\n\t\t}\n\t\tparam := fmt.Sprintf(\"%s: %s\", varName, typeName)\n\t\tif getTag(spec.field, 1) == \"notnull\" {\n\t\t\tparam += \"!\"\n\t\t}\n\t\targs = append(args, param)\n\t}\n\n\tif len(args) == 0 {\n\t\treturn \"\", nil\n\t}\n\n\tsort.Strings(args)\n\n\treturn \"(\" + strings.Join(args, \", \") + \")\", nil\n}", "func (o ApiOperationRequestOutput) QueryParameters() ApiOperationRequestQueryParameterArrayOutput {\n\treturn o.ApplyT(func(v ApiOperationRequest) []ApiOperationRequestQueryParameter { return v.QueryParameters }).(ApiOperationRequestQueryParameterArrayOutput)\n}", "func (sc SearchClient) QueryParams() url.Values {\n\tparams := url.Values{}\n\n\tif sc.FilterID > 0 {\n\t\tparams.Add(\"filter_id\", strconv.Itoa(sc.FilterID))\n\t}\n\n\tif sc.PerPage > 1 && sc.PerPage != 25 {\n\t\tparams.Add(\"per_page\", strconv.Itoa(sc.PerPage))\n\t}\n\n\tif len(sc.Key) > 0 {\n\t\tparams.Add(\"key\", sc.Key)\n\t}\n\n\tif len(sc.SortDirection) > 0 {\n\t\tparams.Add(\"sd\", sc.SortDirection)\n\t}\n\n\tif len(sc.SortField) > 0 {\n\t\tparams.Add(\"sf\", sc.SortField)\n\t}\n\n\treturn params\n}", "func (o ApiOperationRequestPtrOutput) QueryParameters() ApiOperationRequestQueryParameterArrayOutput {\n\treturn o.ApplyT(func(v *ApiOperationRequest) []ApiOperationRequestQueryParameter {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.QueryParameters\n\t}).(ApiOperationRequestQueryParameterArrayOutput)\n}", "func QueryParameters(f *cli.Fixtures, flags ...string) types.Params {\n\tcmd := fmt.Sprintf(\"%s query distribution params %v\", f.SimcliBinary, f.Flags())\n\tout, errStr := tests.ExecuteT(f.T, cli.AddFlags(cmd, flags), \"\")\n\trequire.Empty(f.T, errStr)\n\n\tvar params types.Params\n\trequire.NoError(f.T, f.Cdc.UnmarshalJSON([]byte(out), &params))\n\treturn params\n}", "func (q Query) GetParams() (params Parameters) {\n\tif q != nil {\n\t\tparams, _ = q[paramsKey].(Parameters)\n\t}\n\treturn\n}", "func (w *Where) Parameters() []interface{} {\n\treturn w.params\n}", "func (q *Query) Params() interface{} {\n\treturn q.Request.Params\n}", "func (r InboundRequest) QueryParams() map[string][]string {\n return r.URL.Query()\n}", "func query_param(query_data map[string][]string) *pagination.QueryParam {\n\tqp := new(pagination.QueryParam)\n\tif len(query_data[\"page\"]) > 0 {\n\t\tpage, err := strconv.Atoi(query_data[\"page\"][0])\n\t\tif err == nil {\n\t\t\tqp.Page = page\n\t\t}\n\t}\n\n\tif len(query_data[\"per_page\"]) > 0 {\n\t\tpage, err := strconv.Atoi(query_data[\"per_page\"][0])\n\t\tif err == nil {\n\t\t\tqp.Per_page = page\n\t\t}\n\t}\n\n\tif len(query_data[\"value\"]) > 0 {\n\t\tqp.Value = query_data[\"value\"][0]\n\t}\n\n\tif len(query_data[\"filter\"]) > 0 {\n\t\tqp.Filter, _ = strconv.ParseBool(query_data[\"filter\"][0])\n\t}\n\n\treturn qp\n}", "func (z RequestData) ParamQuery() string {\n\tl := esl.Default()\n\tif z.q == nil {\n\t\treturn \"\"\n\t}\n\tq, err := query.Values(z.q)\n\tif err != nil {\n\t\tl.Debug(\"unable to make query\", esl.Error(err), esl.Any(\"q\", z.q))\n\t\treturn \"\"\n\t} else {\n\t\treturn \"?\" + q.Encode()\n\t}\n}", "func (f FindOptions) QueryParams() map[string][]string {\n\tqp := map[string][]string{\n\t\t\"descending\": {strconv.FormatBool(f.Descending)},\n\t\t\"offset\": {strconv.Itoa(f.Offset)},\n\t}\n\n\tif f.Limit > 0 {\n\t\tqp[\"limit\"] = []string{strconv.Itoa(f.Limit)}\n\t}\n\n\tif f.SortBy != \"\" {\n\t\tqp[\"sortBy\"] = []string{f.SortBy}\n\t}\n\n\treturn qp\n}", "func (ctx *Context) QueryParamAll() url.Values {\r\n\tif ctx.queryParams == nil {\r\n\t\tctx.queryParams = ctx.R.URL.Query()\r\n\t}\r\n\treturn ctx.queryParams\r\n}", "func queryForParams(params SearchParams) string {\n\tif len(params.RawQuery) > 0 {\n\t\treturn params.RawQuery\n\t}\n\n\tbuilder := jiraquery.AndBuilder()\n\n\tif len(params.Project) > 0 {\n\t\tbuilder.Project(params.Project)\n\t}\n\n\tif len(params.IssueType) > 0 {\n\t\tbuilder.IssueType(params.IssueType)\n\t}\n\n\tif len(params.Status) > 0 {\n\t\tbuilder.Eq(jiraquery.Word(\"status\"), jiraquery.Word(params.Status))\n\t}\n\n\tif len(params.StatusCategory) > 0 {\n\t\tbuilder.Eq(\n\t\t\tjiraquery.Word(\"statusCategory\"),\n\t\t\tjiraquery.Word(fmt.Sprintf(\"%q\", params.StatusCategory)))\n\t}\n\n\tif len(params.Labels) > 0 {\n\t\tif len(params.Labels) == 1 {\n\t\t\tbuilder.Eq(jiraquery.Word(\"labels\"), jiraquery.Word(params.Labels[0]))\n\t\t} else {\n\t\t\tbuilder.In(jiraquery.Word(\"labels\"), jiraquery.List(params.Labels...))\n\t\t}\n\t}\n\n\tif len(params.Components) > 0 {\n\t\tif len(params.Components) == 1 {\n\t\t\tbuilder.Eq(\n\t\t\t\tjiraquery.Word(\"component\"),\n\t\t\t\tjiraquery.Word(fmt.Sprintf(\"%q\", params.Components[0])))\n\t\t} else {\n\t\t\tbuilder.In(jiraquery.Word(\"component\"), jiraquery.List(params.Components...))\n\t\t}\n\t}\n\n\tif params.CreatedAfter != nil {\n\t\tbuilder.GreaterThan(\n\t\t\tjiraquery.Word(\"created\"),\n\t\t\tjiraquery.Word(fmt.Sprintf(\"%q\", params.CreatedAfter.Format(\"2006-1-2 04:05\"))))\n\t}\n\n\tif params.CreatedBefore != nil {\n\t\tbuilder.LessThan(\n\t\t\tjiraquery.Word(\"created\"),\n\t\t\tjiraquery.Word(fmt.Sprintf(\"%q\", params.CreatedBefore.Format(\"2006-1-2 04:05\"))))\n\t}\n\n\treturn builder.Value().String()\n}", "func (c *common) Parameters() sbcon.Parameters { return c.params }", "func (this *NamedParameterQuery) GetParsedParameters() ([]interface{}) {\n\treturn this.parameters\n}", "func (o *PhoneSearchOptions) getParameters() (params map[string]string, err error) {\n\t// create an empty map of options\n\tparams = make(map[string]string)\n\n\t// reflect over the properties in o, adding parameters to the global map\n\tval := reflect.ValueOf(o).Elem()\n\tfor i := 0; i < val.NumField(); i++ {\n\t\tif !val.Field(i).IsNil() {\n\t\t\to := val.Field(i).Interface().(OptionProvider)\n\t\t\tfieldParams, err := o.getParameters()\n\t\t\tif err != nil {\n\t\t\t\treturn params, err\n\t\t\t}\n\t\t\tfor k, v := range fieldParams {\n\t\t\t\tparams[k] = v\n\t\t\t}\n\t\t}\n\t}\n\treturn params, nil\n}", "func (r *Request) QueryValues() url.Values {\n\treturn r.queryValues\n}", "func queryConstructor(params map[string]string) string {\n\tquery := \"SELECT songs.artist, songs.song, genres.name, songs.length FROM songs LEFT OUTER JOIN genres ON songs.genre = genres.ID AND songs.genre LIKE genres.id\"\n\tparameters := parameterFilter(params)\n\n\tif len(parameters) > 0 {\n\t\tquery += \" WHERE \"\n\t}\n\n\tfor column, value := range parameters {\n\t\tquery += parameterConstructor(column, value)\n\t\tdelete(parameters, column)\n\t\tif len(parameters) > 0 {\n\t\t\tquery += \" AND \"\n\t\t}\n\t}\n\n\treturn query\n}", "func (q *QueryInputs) buildParams() bson.D {\n\tp := bson.D{}\n\n\tif len(q.Params) != 0 {\n\t\tp = buildD(q.Params)\n\t}\n\n\treturn p\n}", "func (tr *MongoDatabase) GetParameters() (map[string]interface{}, error) {\n\tp, err := json.TFParser.Marshal(tr.Spec.ForProvider)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbase := map[string]interface{}{}\n\treturn base, json.TFParser.Unmarshal(p, &base)\n}", "func (w *Wrapper) paramToQuery(data interface{}, parentheses ...bool) (param string) {\n\tswitch v := data.(type) {\n\tcase *Wrapper:\n\t\tif len(parentheses) > 0 {\n\t\t\tif parentheses[0] == false {\n\t\t\t\tparam = fmt.Sprintf(\"%s\", v.query)\n\t\t\t}\n\t\t} else {\n\t\t\tparam = fmt.Sprintf(\"(%s)\", v.query)\n\t\t}\n\tcase function:\n\t\tparam = v.query\n\tcase nil:\n\t\tparam = \"NULL\"\n\tdefault:\n\t\tparam = \"?\"\n\t}\n\treturn\n}", "func (r *BaseRequest) Query() url.Values {\n\tif r.query == nil {\n\t\tr.query = url.Values{}\n\t}\n\treturn r.query\n}", "func (o DiagnosticBackendRequestDataMaskingOutput) QueryParams() DiagnosticBackendRequestDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v DiagnosticBackendRequestDataMasking) []DiagnosticBackendRequestDataMaskingQueryParam {\n\t\treturn v.QueryParams\n\t}).(DiagnosticBackendRequestDataMaskingQueryParamArrayOutput)\n}", "func (o DiagnosticBackendRequestDataMaskingPtrOutput) QueryParams() DiagnosticBackendRequestDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v *DiagnosticBackendRequestDataMasking) []DiagnosticBackendRequestDataMaskingQueryParam {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.QueryParams\n\t}).(DiagnosticBackendRequestDataMaskingQueryParamArrayOutput)\n}", "func (req *request) Query(key string) []string {\n return req.query[key]\n}", "func (o ApiDiagnosticBackendRequestDataMaskingOutput) QueryParams() ApiDiagnosticBackendRequestDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v ApiDiagnosticBackendRequestDataMasking) []ApiDiagnosticBackendRequestDataMaskingQueryParam {\n\t\treturn v.QueryParams\n\t}).(ApiDiagnosticBackendRequestDataMaskingQueryParamArrayOutput)\n}", "func (tr *SQLDatabase) GetParameters() (map[string]interface{}, error) {\n\tp, err := json.TFParser.Marshal(tr.Spec.ForProvider)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbase := map[string]interface{}{}\n\treturn base, json.TFParser.Unmarshal(p, &base)\n}", "func (tr *GremlinDatabase) GetParameters() (map[string]interface{}, error) {\n\tp, err := json.TFParser.Marshal(tr.Spec.ForProvider)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbase := map[string]interface{}{}\n\treturn base, json.TFParser.Unmarshal(p, &base)\n}", "func (r *Request) QueryParams(params map[string]string) *Request {\n\tfor k, v := range params {\n\t\tr.query[k] = append(r.query[k], v)\n\t}\n\treturn r\n}", "func (o DiagnosticBackendResponseDataMaskingOutput) QueryParams() DiagnosticBackendResponseDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v DiagnosticBackendResponseDataMasking) []DiagnosticBackendResponseDataMaskingQueryParam {\n\t\treturn v.QueryParams\n\t}).(DiagnosticBackendResponseDataMaskingQueryParamArrayOutput)\n}", "func (o ApiDiagnosticBackendRequestDataMaskingPtrOutput) QueryParams() ApiDiagnosticBackendRequestDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v *ApiDiagnosticBackendRequestDataMasking) []ApiDiagnosticBackendRequestDataMaskingQueryParam {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.QueryParams\n\t}).(ApiDiagnosticBackendRequestDataMaskingQueryParamArrayOutput)\n}", "func (tr *SQLContainer) GetParameters() (map[string]interface{}, error) {\n\tp, err := json.TFParser.Marshal(tr.Spec.ForProvider)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbase := map[string]interface{}{}\n\treturn base, json.TFParser.Unmarshal(p, &base)\n}", "func queryProfileParams(ctx sdk.Context, _ abci.RequestQuery, keeper Keeper) ([]byte, error) {\n\tprofileParams := keeper.GetParams(ctx)\n\n\tbz, err := codec.MarshalJSONIndent(keeper.Cdc, &profileParams)\n\tif err != nil {\n\t\tpanic(\"could not marshal result to JSON\")\n\t}\n\n\treturn bz, nil\n}", "func (o ApiDiagnosticBackendResponseDataMaskingOutput) QueryParams() ApiDiagnosticBackendResponseDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v ApiDiagnosticBackendResponseDataMasking) []ApiDiagnosticBackendResponseDataMaskingQueryParam {\n\t\treturn v.QueryParams\n\t}).(ApiDiagnosticBackendResponseDataMaskingQueryParamArrayOutput)\n}", "func (o DiagnosticBackendResponseDataMaskingPtrOutput) QueryParams() DiagnosticBackendResponseDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v *DiagnosticBackendResponseDataMasking) []DiagnosticBackendResponseDataMaskingQueryParam {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.QueryParams\n\t}).(DiagnosticBackendResponseDataMaskingQueryParamArrayOutput)\n}", "func (q querier) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {\n\tctx := sdk.UnwrapSDKContext(c)\n\treturn &types.QueryParamsResponse{Params: q.GetParams(ctx)}, nil\n}", "func queryToMap(query url.Values, m map[string]interface{}) map[string]interface{} {\n\t// no-op if query is empty, do not create the key m[\"query\"]\n\tif len(query) == 0 {\n\t\treturn m\n\t}\n\n\t/* 'parameter' will represent url.Values\n\tmap[string]interface{}{\n\t\t\"parameter-a\": []interface{}{\n\t\t\t\"a\",\n\t\t\t\"b\",\n\t\t},\n\t\t\"parameter-b\": []interface{}{\n\t\t\t\"x\",\n\t\t\t\"y\",\n\t\t},\n\t}\n\t*/\n\tparameters := map[string]interface{}{}\n\tfor param, values := range query {\n\t\tparameters[param] = queryParamValuesToMap(values)\n\t}\n\tm[\"query\"] = parameters\n\treturn m\n}", "func (ctx *Context) QueryParams(key string) []string {\r\n\tif ctx.queryParams == nil {\r\n\t\tctx.queryParams = ctx.R.URL.Query()\r\n\t}\r\n\treturn ctx.queryParams[key]\r\n}", "func prepareInsertArguments(q Queryer) []interface{} {\n\tv := reflect.ValueOf(q)\n\targuments := []interface{}{}\n\tfor i := 0; i < v.NumField(); i++ {\n\t\targuments = append(arguments, v.Field(i).Interface())\n\t}\n\treturn arguments\n}", "func (q queryServer) Params(ctx context.Context, req *v1.QueryParamsRequest) (*v1.QueryParamsResponse, error) {\n\tif req == nil {\n\t\treturn nil, status.Error(codes.InvalidArgument, \"invalid request\")\n\t}\n\n\tparams, err := q.k.Params.Get(ctx)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tresponse := &v1.QueryParamsResponse{}\n\n\t//nolint:staticcheck // needed for legacy parameters\n\tswitch req.ParamsType {\n\tcase v1.ParamDeposit:\n\t\tdepositParams := v1.NewDepositParams(params.MinDeposit, params.MaxDepositPeriod)\n\t\tresponse.DepositParams = &depositParams\n\n\tcase v1.ParamVoting:\n\t\tvotingParams := v1.NewVotingParams(params.VotingPeriod)\n\t\tresponse.VotingParams = &votingParams\n\n\tcase v1.ParamTallying:\n\t\ttallyParams := v1.NewTallyParams(params.Quorum, params.Threshold, params.VetoThreshold)\n\t\tresponse.TallyParams = &tallyParams\n\tdefault:\n\t\tif len(req.ParamsType) > 0 {\n\t\t\treturn nil, status.Errorf(codes.InvalidArgument, \"unknown params type: %s\", req.ParamsType)\n\t\t}\n\t}\n\tresponse.Params = &params\n\n\treturn response, nil\n}", "func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {\n\tdefer telemetry.MeasureSince(time.Now(), types.ModuleName, \"query\", \"Params\")\n\tctx := sdk.UnwrapSDKContext(c)\n\tvar params types.Params\n\tk.paramSpace.GetParamSet(ctx, &params)\n\n\treturn &types.QueryParamsResponse{Params: params, Request: req}, nil\n}", "func (req *SimilarityLookupRequest) Query() map[string]interface{} {\n\tq := map[string]interface{}{}\n\tif string(req.Parameters.Condition) != \"\" {\n\t\tq[\"Condition\"] = req.Parameters.Condition\n\t}\n\tif req.Parameters.MerchantID != \"\" {\n\t\tq[\"MerchantId\"] = req.Parameters.MerchantID\n\t}\n\tif string(req.Parameters.SimilarityType) != \"\" {\n\t\tq[\"SimilarityType\"] = string(req.Parameters.SimilarityType)\n\t}\n\tq[\"ItemId\"] = strings.Join(req.Parameters.ItemIDs, \",\")\n\tq[\"ResponseGroup\"] = req.Parameters.ResponseGroups\n\treturn q\n}", "func (o ApiDiagnosticBackendResponseDataMaskingPtrOutput) QueryParams() ApiDiagnosticBackendResponseDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v *ApiDiagnosticBackendResponseDataMasking) []ApiDiagnosticBackendResponseDataMaskingQueryParam {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.QueryParams\n\t}).(ApiDiagnosticBackendResponseDataMaskingQueryParamArrayOutput)\n}", "func (s SelectStatement) QueryAndValues() (string, []interface{}) {\n\tvalues := make([]interface{}, 0)\n\tquery := []string{\n\t\t\"SELECT\",\n\t\tstrings.Join(s.fields, \", \"),\n\t\tfmt.Sprintf(\"FROM %s.%s\", s.Keyspace(), s.Table()),\n\t}\n\n\twhereCQL, whereValues := generateWhereCQL(s.Relations())\n\tif whereCQL != \"\" {\n\t\tquery = append(query, \"WHERE\", whereCQL)\n\t\tvalues = append(values, whereValues...)\n\t}\n\n\torderByCQL := generateOrderByCQL(s.OrderBy())\n\tif orderByCQL != \"\" {\n\t\tquery = append(query, \"ORDER BY\", orderByCQL)\n\t}\n\n\tif s.Limit() > 0 {\n\t\tquery = append(query, \"LIMIT ?\")\n\t\tvalues = append(values, s.limit)\n\t}\n\n\tif s.AllowFiltering() {\n\t\tquery = append(query, \"ALLOW FILTERING\")\n\t}\n\n\treturn strings.Join(query, \" \"), values\n}", "func (p *GetAllParams) QueryString() string {\n\turlValues := &url.Values{}\n\n\turlvalues.AddStringSliceToURLValues(urlValues, p.Statuses, \"statuses\")\n\tif p.Limit > 0 {\n\t\turlValues.Add(\"limit\", strconv.Itoa(p.Limit))\n\t}\n\turlvalues.AddTimeToURLValues(urlValues, p.CreatedAfter, \"created_after\")\n\turlvalues.AddTimeToURLValues(urlValues, p.CreatedBefore, \"created_before\")\n\turlvalues.AddTimeToURLValues(urlValues, p.PaidAfter, \"paid_after\")\n\turlvalues.AddTimeToURLValues(urlValues, p.PaidBefore, \"paid_before\")\n\turlvalues.AddTimeToURLValues(urlValues, p.PaidBefore, \"paid_before\")\n\turlvalues.AddTimeToURLValues(urlValues, p.ExpiredAfter, \"expired_after\")\n\turlvalues.AddTimeToURLValues(urlValues, p.ExpiredBefore, \"expired_before\")\n\turlvalues.AddStringSliceToURLValues(urlValues, p.ClientTypes, \"client_types\")\n\turlvalues.AddStringSliceToURLValues(urlValues, p.PaymentChannels, \"payment_channels\")\n\tif p.OnDemandLink != \"\" {\n\t\turlValues.Add(\"on_demand\", p.OnDemandLink)\n\t}\n\tif p.RecurringPaymentID != \"\" {\n\t\turlValues.Add(\"recurring_payment_id\", p.RecurringPaymentID)\n\t}\n\n\treturn urlValues.Encode()\n}", "func (tr *MongoCollection) GetParameters() (map[string]interface{}, error) {\n\tp, err := json.TFParser.Marshal(tr.Spec.ForProvider)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbase := map[string]interface{}{}\n\treturn base, json.TFParser.Unmarshal(p, &base)\n}", "func (client *BaseClient) Query(filter map[string]interface{}) map[string]string {\n\ttmp := make(map[string]interface{})\n\tbyt, _ := json.Marshal(filter)\n\t_ = json.Unmarshal(byt, &tmp)\n\n\tresult := make(map[string]string)\n\tfor key, value := range tmp {\n\t\tfilterValue := reflect.ValueOf(value)\n\t\tflatRepeatedList(filterValue, result, key)\n\t}\n\n\treturn result\n}", "func (o DiagnosticFrontendRequestDataMaskingPtrOutput) QueryParams() DiagnosticFrontendRequestDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v *DiagnosticFrontendRequestDataMasking) []DiagnosticFrontendRequestDataMaskingQueryParam {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.QueryParams\n\t}).(DiagnosticFrontendRequestDataMaskingQueryParamArrayOutput)\n}", "func (p UserParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func get_s3_select_time_params(query *Query) *s3.SelectObjectContentInput {\n\tif query.Format != \"JSON\" || query.JSONTimeField == \"\" || query.JSONTimeBucket <= 0 {\n\t\treturn nil\n\t}\n\n\tparams := &s3.SelectObjectContentInput{\n\t\tBucket: aws.String(query.Bucket),\n\t\tKey: aws.String(query.Path),\n\t\tExpressionType: aws.String(s3.ExpressionTypeSql),\n\t\tExpression: aws.String(query.JSONTimeField),\n\t\tInputSerialization: &s3.InputSerialization{\n\t\t\tJSON: &s3.JSONInput{\n\t\t\t\tType: aws.String(query.JSONType),\n\t\t\t},\n\t\t\tCompressionType: aws.String(query.Compression),\n\t\t},\n\t\tOutputSerialization: &s3.OutputSerialization{\n\t\t\tJSON: &s3.JSONOutput{\n\t\t\t\tRecordDelimiter: aws.String(\",\"),\n\t\t\t},\n\t\t},\n\t}\n\n\treturn params\n}", "func extractQuery(c *gin.Context, tag string) (string, []string, error) {\n\tname, required, defaultVal, err := parseTagKey(tag)\n\tif err != nil {\n\t\treturn \"\", nil, err\n\t}\n\tvar params []string\n\tquery := c.Request.URL.Query()[name]\n\n\tif c.GetBool(ExplodeTag) {\n\t\t// Delete empty elements so default and required arguments\n\t\t// will play nice together. Append to a new collection to\n\t\t// preserve order without too much copying.\n\t\tparams = make([]string, 0, len(query))\n\t\tfor i := range query {\n\t\t\tif query[i] != \"\" {\n\t\t\t\tparams = append(params, query[i])\n\t\t\t}\n\t\t}\n\t} else {\n\t\tsplitFn := func(c rune) bool {\n\t\t\treturn c == ','\n\t\t}\n\t\tif len(query) > 1 {\n\t\t\treturn name, nil, errors.New(\"repeating values not supported: use comma-separated list\")\n\t\t} else if len(query) == 1 {\n\t\t\tparams = strings.FieldsFunc(query[0], splitFn)\n\t\t}\n\t}\n\n\t// XXX: deprecated, use of \"default\" tag is preferred\n\tif len(params) == 0 && defaultVal != \"\" {\n\t\treturn name, []string{defaultVal}, nil\n\t}\n\t// XXX: deprecated, use of \"validate\" tag is preferred\n\tif len(params) == 0 && required {\n\t\treturn \"\", nil, fmt.Errorf(\"missing query parameter: %s\", name)\n\t}\n\treturn name, params, nil\n}", "func (o DiagnosticFrontendRequestDataMaskingOutput) QueryParams() DiagnosticFrontendRequestDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v DiagnosticFrontendRequestDataMasking) []DiagnosticFrontendRequestDataMaskingQueryParam {\n\t\treturn v.QueryParams\n\t}).(DiagnosticFrontendRequestDataMaskingQueryParamArrayOutput)\n}", "func (p ContentParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func GetParams(q url.Values, schema *SchemaVersion) (*Params, error) {\n\tstartDate, err := cleanDateString(q.Get(\"startDate\"))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tendDate, err := cleanDateString(q.Get(\"endDate\"))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tcarelink := false\n\tif values, ok := q[\"carelink\"]; ok {\n\t\tif len(values) < 1 {\n\t\t\treturn nil, errors.New(\"carelink parameter not valid\")\n\t\t}\n\t\tcarelink, err = strconv.ParseBool(values[len(values)-1])\n\t\tif err != nil {\n\t\t\treturn nil, errors.New(\"carelink parameter not valid\")\n\t\t}\n\t}\n\n\tdexcom := false\n\tif values, ok := q[\"dexcom\"]; ok {\n\t\tif len(values) < 1 {\n\t\t\treturn nil, errors.New(\"dexcom parameter not valid\")\n\t\t}\n\t\tdexcom, err = strconv.ParseBool(values[len(values)-1])\n\t\tif err != nil {\n\t\t\treturn nil, errors.New(\"dexcom parameter not valid\")\n\t\t}\n\t}\n\n\tlatest := false\n\tif values, ok := q[\"latest\"]; ok {\n\t\tif len(values) < 1 {\n\t\t\treturn nil, errors.New(\"latest parameter not valid\")\n\t\t}\n\t\tlatest, err = strconv.ParseBool(values[len(values)-1])\n\t\tif err != nil {\n\t\t\treturn nil, errors.New(\"latest parameter not valid\")\n\t\t}\n\t}\n\n\tmedtronic := false\n\tif values, ok := q[\"medtronic\"]; ok {\n\t\tif len(values) < 1 {\n\t\t\treturn nil, errors.New(\"medtronic parameter not valid\")\n\t\t}\n\t\tmedtronic, err = strconv.ParseBool(values[len(values)-1])\n\t\tif err != nil {\n\t\t\treturn nil, errors.New(\"medtronic parameter not valid\")\n\t\t}\n\t}\n\n\tp := &Params{\n\t\tUserID: q.Get(\":userID\"),\n\t\tDeviceID: q.Get(\"deviceId\"),\n\t\tUploadID: q.Get(\"uploadId\"),\n\t\t//the query params for type and subtype can contain multiple values seperated\n\t\t//by a comma e.g. \"type=smbg,cbg\" so split them out into an array of values\n\t\tTypes: strings.Split(q.Get(\"type\"), \",\"),\n\t\tSubTypes: strings.Split(q.Get(\"subType\"), \",\"),\n\t\tDate: Date{startDate, endDate},\n\t\tSchemaVersion: schema,\n\t\tCarelink: carelink,\n\t\tDexcom: dexcom,\n\t\tLatest: latest,\n\t\tMedtronic: medtronic,\n\t}\n\n\treturn p, nil\n\n}", "func (this *DefMethod) GetParamNameAndWhere(indx int) (string, int) {\n\tfor _, v := range this.Paras {\n\t\tif v.Indx == indx {\n\t\t\t//return v.name, v.where\n\t\t\tif strings.EqualFold(v.Where, \"query\") {\n\t\t\t\treturn v.Name, InQuery\n\t\t\t} else {\n\t\t\t\treturn v.Name, InBody\n\t\t\t}\n\t\t}\n\t}\n\treturn \"\", InQuery\n}", "func getPageQuery(r *http.Request, disablePairValidation bool) (db2.PageQuery, error) {\n\tcursor, err := getCursor(r)\n\tif err != nil {\n\t\treturn db2.PageQuery{}, errors.Wrap(err, \"getting param cursor\")\n\t}\n\n\torder, err := getOrder(r)\n\tif err != nil {\n\t\treturn db2.PageQuery{}, errors.Wrap(err, \"getting param order\")\n\t}\n\n\tlimit, err := getLimit(r, db2.DefaultPageSize, db2.MaxPageSize)\n\tif err != nil {\n\t\treturn db2.PageQuery{}, errors.Wrap(err, \"getting param limit\")\n\t}\n\n\tpq := db2.PageQuery{\n\t\tCursor: cursor,\n\t\tOrder: order,\n\t\tLimit: limit,\n\t}\n\tif !disablePairValidation {\n\t\t_, _, err = pq.CursorInt64Pair(db2.DefaultPairSep)\n\t\tif err != nil {\n\t\t\treturn db2.PageQuery{}, problem.MakeInvalidFieldProblem(actions.ParamCursor, db2.ErrInvalidCursor)\n\t\t}\n\t}\n\n\treturn pq, nil\n}", "func (o ApiDiagnosticFrontendRequestDataMaskingOutput) QueryParams() ApiDiagnosticFrontendRequestDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v ApiDiagnosticFrontendRequestDataMasking) []ApiDiagnosticFrontendRequestDataMaskingQueryParam {\n\t\treturn v.QueryParams\n\t}).(ApiDiagnosticFrontendRequestDataMaskingQueryParamArrayOutput)\n}", "func get_s3_select_query_params(query *Query) *s3.SelectObjectContentInput {\n\tparams := &s3.SelectObjectContentInput{\n\t\tBucket: aws.String(query.Bucket),\n\t\tKey: aws.String(query.Path),\n\t\tExpressionType: aws.String(s3.ExpressionTypeSql),\n\t\tExpression: aws.String(query.Query),\n\t\tInputSerialization: &s3.InputSerialization{\n\t\t\tCompressionType: aws.String(query.Compression),\n\t\t},\n\t\tOutputSerialization: &s3.OutputSerialization{\n\t\t\tJSON: &s3.JSONOutput{\n\t\t\t\tRecordDelimiter: aws.String(\",\"),\n\t\t\t},\n\t\t},\n\t}\n\n\tswitch query.Format {\n\tcase \"CSV\":\n\t\tparams.InputSerialization.CSV = &s3.CSVInput{}\n\t\tparams.InputSerialization.CSV.AllowQuotedRecordDelimiter = aws.Bool(query.CSVAllowQuotedRecordDelimiter)\n\t\tparams.InputSerialization.CSV.FileHeaderInfo = aws.String(query.CSVFileHeaderInfo)\n\n\t\tif query.CSVComments != \"\" {\n\t\t\tparams.InputSerialization.CSV.Comments = aws.String(query.CSVComments)\n\t\t}\n\t\tif query.CSVFieldDelimiter != \"\" {\n\t\t\tparams.InputSerialization.CSV.FieldDelimiter = aws.String(query.CSVFieldDelimiter)\n\t\t}\n\t\tif query.CSVQuoteCharacter != \"\" {\n\t\t\tparams.InputSerialization.CSV.QuoteCharacter = aws.String(query.CSVQuoteCharacter)\n\t\t}\n\t\tif query.CSVQuoteEscapeCharacter != \"\" {\n\t\t\tparams.InputSerialization.CSV.QuoteEscapeCharacter = aws.String(query.CSVQuoteEscapeCharacter)\n\t\t}\n\t\tif query.CSVRecordDelimiter != \"\" {\n\t\t\tparams.InputSerialization.CSV.RecordDelimiter = aws.String(query.CSVRecordDelimiter)\n\t\t}\n\tcase \"JSON\":\n\t\tparams.InputSerialization.JSON = &s3.JSONInput{}\n\t\tif query.JSONType != \"\" {\n\t\t\tparams.InputSerialization.JSON.Type = aws.String(query.JSONType)\n\t\t}\n\t}\n\n\treturn params\n}", "func getDBQuery(r *http.Request, config rql.Config) (*rql.Params, error) {\n\tvar (\n\t\tb []byte\n\t\terr error\n\t)\n\tif v := r.URL.Query().Get(\"query\"); v != \"\" {\n\t\tb, err = base64.StdEncoding.DecodeString(v)\n\t} else {\n\t\tb, err = ioutil.ReadAll(io.LimitReader(r.Body, 1<<12))\n\t}\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif b == nil || len(b) == 0 {\n\t\tb = []byte(\"{}\")\n\t}\n\t// MustNewParser panics if the configuration is invalid.\n\tQueryParser := rql.MustNewParser(config)\n\treturn QueryParser.Parse(b)\n}", "func (o ApiDiagnosticFrontendRequestDataMaskingPtrOutput) QueryParams() ApiDiagnosticFrontendRequestDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v *ApiDiagnosticFrontendRequestDataMasking) []ApiDiagnosticFrontendRequestDataMaskingQueryParam {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.QueryParams\n\t}).(ApiDiagnosticFrontendRequestDataMaskingQueryParamArrayOutput)\n}", "func (z RequestData) Query() interface{} {\n\treturn z.q\n}", "func (args ForecastArgs) QueryParams() url.Values {\n\tq := make(url.Values)\n\tif args.Location != nil {\n\t\tfor k, v := range args.Location.LocationQueryParams() {\n\t\t\tq[k] = v\n\t\t}\n\t}\n\n\tif !args.Start.IsZero() {\n\t\tq.Add(\"start_time\", args.Start.Format(time.RFC3339))\n\t}\n\tif !args.End.IsZero() {\n\t\tq.Add(\"end_time\", args.End.Format(time.RFC3339))\n\t}\n\tif args.Timestep > 0 {\n\t\tq.Add(\"timestep\", strconv.Itoa(args.Timestep))\n\t}\n\tif args.UnitSystem != \"\" {\n\t\tq.Add(\"unit_system\", args.UnitSystem)\n\t}\n\tif len(args.Fields) > 0 {\n\t\tq.Add(\"fields\", strings.Join(args.Fields, \",\"))\n\t}\n\treturn q\n}", "func QueryParams() *cobra.Command {\n\treturn qflags(&cobra.Command{\n\t\tUse: \"params\",\n\t\tShort: \"Query the current ecocredit module parameters\",\n\t\tLong: strings.TrimSpace(\n\t\t\tfmt.Sprintf(`Query the current ecocredit module parameters\n\t\t\t\nExamples:\n$%s query %s params\n$%s q %s params\n\t\t\t`, version.AppName, ecocredit.ModuleName, version.AppName, ecocredit.ModuleName),\n\t\t),\n\t\tRunE: func(cmd *cobra.Command, args []string) error {\n\t\t\tc, ctx, err := mkQueryClient(cmd)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tres, err := c.Params(cmd.Context(), &ecocredit.QueryParamsRequest{})\n\t\t\treturn print(ctx, res, err)\n\t\t},\n\t})\n}", "func (req *request) Params() *EntrySet {\n return req.params\n}", "func (r *BasicRequest) QueryArgs() (url.Values, error) {\n\treturn url.ParseQuery(r.Query)\n}", "func (p WatchParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func GetParameters(ctx *gin.Context) (time.Time, time.Time, string, error) {\n\tvar errorMsg = \"\"\n\n\tartist := ctx.Query(\"artist\")\n\n\tfrom, err := time.Parse(Parse_Layout, ctx.Query(\"from\"))\n\tif err != nil && errorMsg == \"\" {\n\t\terrorMsg = \"Invalid or missing 'From' parameter\"\n\t}\n\n\tuntil, err := time.Parse(Parse_Layout, ctx.Query(\"until\"))\n\tif err != nil && errorMsg == \"\" {\n\t\terrorMsg = \"Invalid or missing 'Until' parameter\"\n\t}\n\n\tif from.After(until) && errorMsg == \"\" {\n\t\terrorMsg = \"'from' is greater than 'until'\"\n\t}\n\tif errorMsg != \"\" {\n\t\treturn from, until, artist, errors.New(errorMsg)\n\t} else {\n\t\treturn from, until, artist, nil\n\t}\n\n}", "func (tr *SQLFunction) GetParameters() (map[string]interface{}, error) {\n\tp, err := json.TFParser.Marshal(tr.Spec.ForProvider)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbase := map[string]interface{}{}\n\treturn base, json.TFParser.Unmarshal(p, &base)\n}", "func (o ApiDiagnosticFrontendResponseDataMaskingOutput) QueryParams() ApiDiagnosticFrontendResponseDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v ApiDiagnosticFrontendResponseDataMasking) []ApiDiagnosticFrontendResponseDataMaskingQueryParam {\n\t\treturn v.QueryParams\n\t}).(ApiDiagnosticFrontendResponseDataMaskingQueryParamArrayOutput)\n}", "func namedPqParams(numFields int, numEntities int) string {\n\tparamGroups := make([]string, 0, numEntities)\n\tparams := make([]string, 0, numFields)\n\tnumTotalParams := numEntities * numFields\n\n\tfor i := 0; i < numTotalParams; i++ {\n\t\tparams = append(params, fmt.Sprintf(\"$%v\", i+1))\n\n\t\t//when we reach the number of fields, group the params\n\t\tif (i+1)%numFields == 0 {\n\t\t\tparamGroup := fmt.Sprintf(\"(%s)\", strings.Join(params, \",\"))\n\t\t\tparamGroups = append(paramGroups, paramGroup)\n\t\t\tparams = make([]string, 0, numFields)\n\t\t}\n\t}\n\treturn strings.Join(paramGroups, \",\")\n}", "func (o DiagnosticFrontendResponseDataMaskingPtrOutput) QueryParams() DiagnosticFrontendResponseDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v *DiagnosticFrontendResponseDataMasking) []DiagnosticFrontendResponseDataMaskingQueryParam {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.QueryParams\n\t}).(DiagnosticFrontendResponseDataMaskingQueryParamArrayOutput)\n}", "func (o DiagnosticFrontendResponseDataMaskingOutput) QueryParams() DiagnosticFrontendResponseDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v DiagnosticFrontendResponseDataMasking) []DiagnosticFrontendResponseDataMaskingQueryParam {\n\t\treturn v.QueryParams\n\t}).(DiagnosticFrontendResponseDataMaskingQueryParamArrayOutput)\n}", "func (r *InboundRequest) QueryParamMultiple(key string) ([]string, bool) {\n value, ok := r.URL.Query()[key]\n\n return value, ok\n}", "func Params(r *http.Request, allowOwner bool) (*SearchParams, error) {\n\tqs, err := url.ParseQuery(r.URL.RawQuery)\n\tif err != nil {\n\t\treturn nil, errors.New(\"invalid query parameters\")\n\t}\n\tps := SearchParams{\tDatabaseParams: db.DatabaseParams{Pagination: &chassis.Pagination{},}}\n\n\t// Pagination parameters.\n\tif err := chassis.PaginationParams(qs, &ps.Pagination.Page, &ps.Pagination.PerPage); err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Format parameter.\n\tswitch qs.Get(\"format\") {\n\tcase \"full\":\n\t\tps.Format = FullResults\n\tcase \"summary\", \"\":\n\t\tps.Format = SummaryResults\n\tdefault:\n\t\treturn nil, errors.New(\"invalid format parameter\")\n\t}\n\n\t// Filtering parameters.\n\tif ps.PostTypes, err = PostTypeParam(qs); err != nil {\n\t\treturn nil, err\n\t}\n\n\tif err = chassis.SortingParam(qs,\"sort_by\", &ps.SortBy); err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn &ps, nil\n}", "func collectParameters(r *http.Request, oauthParams map[string]string) map[string]string {\n\tparams := map[string]string{}\n\tfor key, value := range r.URL.Query() {\n\t\tparams[key] = value[0]\n\t}\n\tfor key, value := range oauthParams {\n\t\tparams[key] = value\n\t}\n\treturn params\n}", "func (d Document) AsParams() (params []Param) {\n\tfor key, val := range d {\n\t\tparams = append(params, Param{key, val})\n\t}\n\treturn\n}", "func (tr *CassandraTable) GetParameters() (map[string]interface{}, error) {\n\tp, err := json.TFParser.Marshal(tr.Spec.ForProvider)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbase := map[string]interface{}{}\n\treturn base, json.TFParser.Unmarshal(p, &base)\n}", "func (p ContentSearchParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func (o ApiDiagnosticFrontendResponseDataMaskingPtrOutput) QueryParams() ApiDiagnosticFrontendResponseDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v *ApiDiagnosticFrontendResponseDataMasking) []ApiDiagnosticFrontendResponseDataMaskingQueryParam {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.QueryParams\n\t}).(ApiDiagnosticFrontendResponseDataMaskingQueryParamArrayOutput)\n}", "func findRequestQuery(req UserAccountFindRequest) (*sqlbuilder.SelectBuilder, []interface{}) {\n\tquery := selectQuery()\n\tif req.Where != \"\" {\n\t\tquery.Where(query.And(req.Where))\n\t}\n\tif len(req.Order) > 0 {\n\t\tquery.OrderBy(req.Order...)\n\t}\n\tif req.Limit != nil {\n\t\tquery.Limit(int(*req.Limit))\n\t}\n\tif req.Offset != nil {\n\t\tquery.Offset(int(*req.Offset))\n\t}\n\n\treturn query, req.Args\n}", "func (p SearchParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func findOptionParams(opts ...influxdb.FindOptions) [][2]string {\n\tvar out [][2]string\n\tfor _, o := range opts {\n\t\tfor k, vals := range o.QueryParams() {\n\t\t\tfor _, v := range vals {\n\t\t\t\tout = append(out, [2]string{k, v})\n\t\t\t}\n\t\t}\n\t}\n\treturn out\n}", "func GetQueryes(r *http.Request) url.Values {\n\treturn r.URL.Query()\n}", "func (q *Query) ParamsAsMap() map[string]interface{} {\n\tif paramsMap, ok := q.Params().(map[string]interface{}); ok {\n\t\treturn paramsMap\n\t}\n\treturn nil\n}", "func (u *URL) QueryParams() map[string][]string {\n\tif u.query == nil {\n\t\tu.query = u.Query()\n\t}\n\treturn map[string][]string(u.query)\n}", "func parseUrlEncodedQueryParams(rawQuery string) (bson.M, map[string]interface{}) {\n\t\n\tqueryMap, _ := url.ParseQuery(rawQuery)\n\tvar query map[string]interface{}\n\tfor key, value := range queryMap {\n\t\tswitch key {\n\t\tdefault:\n\t\t\treturn bson.M{}, nil\n\t\tcase \"where\":\n\t\t\tif len(value) == 1 {\n\t\t\t\t\n\t\t\t\terr := json.Unmarshal([]byte(value[0]), &query)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn bson.M{}, map[string]interface{}{\"code\": helpers.INVALID_JSON, \"error\": \"invalid JSON\"}\n\t\t\t\t}\n\n\t\t\t} \n\t\tcase \"order\":\n\t\tcase \"limit\":\n\t\tcase \"skip\":\n\t\tcase \"keys\":\n\t\tcase \"include\":\n\t\t}\n\t}\n\t// fmt.Println(findObjectWithKey(query, \"$select\"))\n\t_ = parseWhereQuery(query)\n\terrMap := formatObjectQuery(query)\n\t// map can be used as bson.M for return\n\treturn query, errMap\n}", "func (ctx *Context) QueryParams() url.Values {\n\tif ctx.queryParams == nil {\n\t\tctx.queryParams = ctx.Request.URL.Query()\n\t}\n\treturn ctx.queryParams\n}", "func (s *Select) Query() (query string, args []interface{}) {\n\twhere, args, _ := s.filterQuery(1)\n\tquery = s.initialQuery() + where + s.orderByQuery()\n\tif s.limit > 0 {\n\t\tquery += \" LIMIT \" + strconv.Itoa(s.limit)\n\t}\n\tif s.offset > 0 {\n\t\tquery += \" OFFSET \" + strconv.Itoa(s.offset)\n\t}\n\treturn query, args\n}", "func (k Querier) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {\n\tctx := sdk.UnwrapSDKContext(c)\n\tvar params types.Params\n\tk.paramSpace.GetParamSet(ctx, &params)\n\treturn &types.QueryParamsResponse{Params: params}, nil\n}", "func Query(query string, args ...interface{}) (*sql.Rows, error) {\n rows, err := db.Query(query, args...)\n if err != nil && !debug{ \n log.Println(err)\n }\n return rows, err\n}", "func (ctx *SimpleContext) QueryParams(typ interface{}) error {\n\tq := ctx.request.URL.Query()\n\terr := query.Unmarshal(q, typ)\n\tif nil != err {\n\t\treturn err\n\t}\n\treturn ctx.validate(typ)\n}", "func (p ContentIDParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func queryParamValuesToMap(values []string) []interface{} {\n\tv := make([]interface{}, len(values))\n\tfor i, value := range values {\n\t\tv[i] = value\n\t}\n\treturn v\n}", "func Query(ptp protocol.PointToPoint, tempFields ...interface{}) (t container.Tuple, b bool) {\n\tt, b = getAndQuery(ptp, protocol.QueryRequest, tempFields...)\n\treturn t, b\n}", "func outputParams(cmd *cobra.Command) error {\n\tclientCtx, err := client.GetClientQueryContext(cmd)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tqueryClient := types.NewQueryClient(clientCtx)\n\tres, err := queryClient.Params(context.Background(), &types.QueryParamsRequest{})\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif !includeRequest {\n\t\tres.Request = nil\n\t}\n\n\treturn clientCtx.PrintProto(res)\n}", "func (p *Param) Query() (*sql.Rows, error) {\n\treturn p.T().Query(p)\n}", "func (this *NamedParameterQuery) setQuery(queryText string) {\n\n\tvar revisedBuilder bytes.Buffer\n\tvar parameterBuilder bytes.Buffer\n\tvar position []int\n\tvar character rune\n\tvar parameterName string\n\tvar width int\n\tvar positionIndex int\n\n\tthis.originalQuery = queryText\n\tpositionIndex = 0\n\n\tfor i := 0; i < len(queryText); {\n\n\t\tcharacter, width = utf8.DecodeRuneInString(queryText[i:])\n\t\ti += width\n\n\t\t// if it's a colon, do not write to builder, but grab name\n\t\tif(character == ':') {\n\n\t\t\tfor ;; {\n\n\t\t\t\tcharacter, width = utf8.DecodeRuneInString(queryText[i:])\n\t\t\t\ti += width\n\n\t\t\t\tif unicode.IsLetter(character) || unicode.IsDigit(character) {\n\t\t\t\t\tparameterBuilder.WriteString(string(character))\n\t\t\t\t} else {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// add to positions\n\t\t\tparameterName = parameterBuilder.String()\n\t\t\tposition = this.positions[parameterName]\n\t\t\tthis.positions[parameterName] = append(position, positionIndex)\n\t\t\tpositionIndex++\n\n\t\t\trevisedBuilder.WriteString(\"?\")\n\t\t\tparameterBuilder.Reset()\n\n\t\t\tif(width <= 0) {\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\n\t\t// otherwise write.\n\t\trevisedBuilder.WriteString(string(character))\n\n\t\t// if it's a quote, continue writing to builder, but do not search for parameters.\n\t\tif(character == '\\'') {\n\n\t\t\tfor ;; {\n\n\t\t\t\tcharacter, width = utf8.DecodeRuneInString(queryText[i:])\n\t\t\t\ti += width\n\t\t\t\trevisedBuilder.WriteString(string(character))\n\n\t\t\t\tif(character == '\\'') {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tthis.revisedQuery = revisedBuilder.String()\n\tthis.parameters = make([]interface{}, positionIndex)\n}", "func (mock *DownloaderMock) QueryParametersCalls() []struct {\n} {\n\tvar calls []struct {\n\t}\n\tlockDownloaderMockQueryParameters.RLock()\n\tcalls = mock.calls.QueryParameters\n\tlockDownloaderMockQueryParameters.RUnlock()\n\treturn calls\n}", "func (p *Param) QueryTo() (sqlbuilder.Iterator, error) {\n\treturn p.T().QueryTo(p)\n}" ]
[ "0.69895643", "0.6590795", "0.64438885", "0.6404702", "0.63685286", "0.6275892", "0.6211839", "0.6189698", "0.61574095", "0.61267674", "0.60933495", "0.6058503", "0.60518664", "0.6013239", "0.60047907", "0.59623885", "0.5857148", "0.57942426", "0.5777455", "0.5734295", "0.56998074", "0.5672978", "0.5647833", "0.5641045", "0.56370485", "0.56247324", "0.5622101", "0.5595915", "0.5594083", "0.5585764", "0.55796", "0.5557872", "0.5555972", "0.5549805", "0.55472213", "0.5546954", "0.55460554", "0.554381", "0.5543378", "0.55406487", "0.5531421", "0.5526093", "0.5505854", "0.55052316", "0.5492771", "0.5487065", "0.5479475", "0.5478577", "0.5474077", "0.5465713", "0.54642653", "0.5459826", "0.5457257", "0.5457191", "0.54570246", "0.54561484", "0.5453683", "0.54500234", "0.54414994", "0.5424763", "0.5424215", "0.54236645", "0.54230833", "0.54212123", "0.5420518", "0.541951", "0.5419329", "0.5419106", "0.5418553", "0.54178", "0.5403763", "0.5402591", "0.5402523", "0.54017717", "0.5393043", "0.53914464", "0.53897977", "0.53730446", "0.53721464", "0.5370549", "0.5367784", "0.5356916", "0.5354393", "0.53404784", "0.5340332", "0.5337672", "0.5331628", "0.532541", "0.53237784", "0.5317655", "0.529486", "0.52896094", "0.5280467", "0.52786726", "0.52773654", "0.5276555", "0.5270023", "0.52633595", "0.52623576", "0.52547973", "0.52544725" ]
0.0
-1
return parameters of a query object target
func GetQueryiv(target uint32, pname uint32, params *int32) { C.glowGetQueryiv(gpGetQueryiv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (o ApiOperationRequestOutput) QueryParameters() ApiOperationRequestQueryParameterArrayOutput {\n\treturn o.ApplyT(func(v ApiOperationRequest) []ApiOperationRequestQueryParameter { return v.QueryParameters }).(ApiOperationRequestQueryParameterArrayOutput)\n}", "func QueryParameters(val interface{}) string {\n\tif val == nil || (reflect.ValueOf(val).Kind() == reflect.Ptr && reflect.ValueOf(val).IsNil()) {\n\t\treturn \"\"\n\t}\n\n\tvar query []string\n\n\ts := structs.New(val)\n\tm := s.Map()\n\n\tfor k, v := range m {\n\t\tf := s.Field(k)\n\t\tt := f.Tag(\"query\")\n\n\t\tif !f.IsZero() {\n\t\t\tquery = append(query, fmt.Sprintf(\"%v=%v\", t, v))\n\t\t}\n\t}\n\n\tif len(query) == 0 {\n\t\treturn \"\"\n\t}\n\n\treturn \"?\" + strings.Join(query, \"&\")\n}", "func (b *builder) queryArguments() (string, error) {\n\targs := []string{}\n\n\tif argsStructType := argumentsStructType(reflect.TypeOf(b.query)); argsStructType != nil {\n\t\tfor i := 0; i < argsStructType.NumField(); i++ {\n\t\t\tfield := argsStructType.Field(i)\n\t\t\tb.args = append(b.args, argSpec{field})\n\t\t}\n\t}\n\n\tfor _, spec := range b.args {\n\t\tvarName := spec.variableName()\n\t\tif varName == \"\" {\n\t\t\tcontinue\n\t\t}\n\t\ttypeName, err := b.typeName(spec.field.Type)\n\t\tif err != nil {\n\t\t\treturn \"\", err\n\t\t}\n\t\tparam := fmt.Sprintf(\"%s: %s\", varName, typeName)\n\t\tif getTag(spec.field, 1) == \"notnull\" {\n\t\t\tparam += \"!\"\n\t\t}\n\t\targs = append(args, param)\n\t}\n\n\tif len(args) == 0 {\n\t\treturn \"\", nil\n\t}\n\n\tsort.Strings(args)\n\n\treturn \"(\" + strings.Join(args, \", \") + \")\", nil\n}", "func (o ApiOperationRequestPtrOutput) QueryParameters() ApiOperationRequestQueryParameterArrayOutput {\n\treturn o.ApplyT(func(v *ApiOperationRequest) []ApiOperationRequestQueryParameter {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.QueryParameters\n\t}).(ApiOperationRequestQueryParameterArrayOutput)\n}", "func (w *Where) Parameters() []interface{} {\n\treturn w.params\n}", "func (r InboundRequest) QueryParams() map[string][]string {\n return r.URL.Query()\n}", "func QueryParameters(f *cli.Fixtures, flags ...string) types.Params {\n\tcmd := fmt.Sprintf(\"%s query distribution params %v\", f.SimcliBinary, f.Flags())\n\tout, errStr := tests.ExecuteT(f.T, cli.AddFlags(cmd, flags), \"\")\n\trequire.Empty(f.T, errStr)\n\n\tvar params types.Params\n\trequire.NoError(f.T, f.Cdc.UnmarshalJSON([]byte(out), &params))\n\treturn params\n}", "func (ctx *Context) QueryParamAll() url.Values {\r\n\tif ctx.queryParams == nil {\r\n\t\tctx.queryParams = ctx.R.URL.Query()\r\n\t}\r\n\treturn ctx.queryParams\r\n}", "func (p *Param) QueryTo() (sqlbuilder.Iterator, error) {\n\treturn p.T().QueryTo(p)\n}", "func (sc SearchClient) QueryParams() url.Values {\n\tparams := url.Values{}\n\n\tif sc.FilterID > 0 {\n\t\tparams.Add(\"filter_id\", strconv.Itoa(sc.FilterID))\n\t}\n\n\tif sc.PerPage > 1 && sc.PerPage != 25 {\n\t\tparams.Add(\"per_page\", strconv.Itoa(sc.PerPage))\n\t}\n\n\tif len(sc.Key) > 0 {\n\t\tparams.Add(\"key\", sc.Key)\n\t}\n\n\tif len(sc.SortDirection) > 0 {\n\t\tparams.Add(\"sd\", sc.SortDirection)\n\t}\n\n\tif len(sc.SortField) > 0 {\n\t\tparams.Add(\"sf\", sc.SortField)\n\t}\n\n\treturn params\n}", "func (q *Query) Params() interface{} {\n\treturn q.Request.Params\n}", "func (c *common) Parameters() sbcon.Parameters { return c.params }", "func (req *Request) ParamsBySource() (map[string]url.Values, error) {\n\tparams := map[string]url.Values{\n\t\t\"url\": req.MuxVariables(),\n\t\t\"query\": req.Request.URL.Query(),\n\t\t\"form\": url.Values{},\n\t}\n\n\tform, err := req.JSONBody()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tparams[\"form\"] = form\n\n\treturn params, nil\n}", "func (o *PhoneSearchOptions) getParameters() (params map[string]string, err error) {\n\t// create an empty map of options\n\tparams = make(map[string]string)\n\n\t// reflect over the properties in o, adding parameters to the global map\n\tval := reflect.ValueOf(o).Elem()\n\tfor i := 0; i < val.NumField(); i++ {\n\t\tif !val.Field(i).IsNil() {\n\t\t\to := val.Field(i).Interface().(OptionProvider)\n\t\t\tfieldParams, err := o.getParameters()\n\t\t\tif err != nil {\n\t\t\t\treturn params, err\n\t\t\t}\n\t\t\tfor k, v := range fieldParams {\n\t\t\t\tparams[k] = v\n\t\t\t}\n\t\t}\n\t}\n\treturn params, nil\n}", "func outputParams(cmd *cobra.Command) error {\n\tclientCtx, err := client.GetClientQueryContext(cmd)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tqueryClient := types.NewQueryClient(clientCtx)\n\tres, err := queryClient.Params(context.Background(), &types.QueryParamsRequest{})\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif !includeRequest {\n\t\tres.Request = nil\n\t}\n\n\treturn clientCtx.PrintProto(res)\n}", "func (p ContentParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func (r *Request) QueryValues() url.Values {\n\treturn r.queryValues\n}", "func queryForParams(params SearchParams) string {\n\tif len(params.RawQuery) > 0 {\n\t\treturn params.RawQuery\n\t}\n\n\tbuilder := jiraquery.AndBuilder()\n\n\tif len(params.Project) > 0 {\n\t\tbuilder.Project(params.Project)\n\t}\n\n\tif len(params.IssueType) > 0 {\n\t\tbuilder.IssueType(params.IssueType)\n\t}\n\n\tif len(params.Status) > 0 {\n\t\tbuilder.Eq(jiraquery.Word(\"status\"), jiraquery.Word(params.Status))\n\t}\n\n\tif len(params.StatusCategory) > 0 {\n\t\tbuilder.Eq(\n\t\t\tjiraquery.Word(\"statusCategory\"),\n\t\t\tjiraquery.Word(fmt.Sprintf(\"%q\", params.StatusCategory)))\n\t}\n\n\tif len(params.Labels) > 0 {\n\t\tif len(params.Labels) == 1 {\n\t\t\tbuilder.Eq(jiraquery.Word(\"labels\"), jiraquery.Word(params.Labels[0]))\n\t\t} else {\n\t\t\tbuilder.In(jiraquery.Word(\"labels\"), jiraquery.List(params.Labels...))\n\t\t}\n\t}\n\n\tif len(params.Components) > 0 {\n\t\tif len(params.Components) == 1 {\n\t\t\tbuilder.Eq(\n\t\t\t\tjiraquery.Word(\"component\"),\n\t\t\t\tjiraquery.Word(fmt.Sprintf(\"%q\", params.Components[0])))\n\t\t} else {\n\t\t\tbuilder.In(jiraquery.Word(\"component\"), jiraquery.List(params.Components...))\n\t\t}\n\t}\n\n\tif params.CreatedAfter != nil {\n\t\tbuilder.GreaterThan(\n\t\t\tjiraquery.Word(\"created\"),\n\t\t\tjiraquery.Word(fmt.Sprintf(\"%q\", params.CreatedAfter.Format(\"2006-1-2 04:05\"))))\n\t}\n\n\tif params.CreatedBefore != nil {\n\t\tbuilder.LessThan(\n\t\t\tjiraquery.Word(\"created\"),\n\t\t\tjiraquery.Word(fmt.Sprintf(\"%q\", params.CreatedBefore.Format(\"2006-1-2 04:05\"))))\n\t}\n\n\treturn builder.Value().String()\n}", "func (p ContentSearchParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func (f FindOptions) QueryParams() map[string][]string {\n\tqp := map[string][]string{\n\t\t\"descending\": {strconv.FormatBool(f.Descending)},\n\t\t\"offset\": {strconv.Itoa(f.Offset)},\n\t}\n\n\tif f.Limit > 0 {\n\t\tqp[\"limit\"] = []string{strconv.Itoa(f.Limit)}\n\t}\n\n\tif f.SortBy != \"\" {\n\t\tqp[\"sortBy\"] = []string{f.SortBy}\n\t}\n\n\treturn qp\n}", "func getQueryParam(c *gin.Context, paramName string) (int64, error) {\n\tp := c.Query(\"target\")\n\n\tid, err := strconv.ParseInt(p, 10, 0)\n\tif err != nil {\n\t\treturn 0, models.ValidationError{\n\t\t\t\"target\": ErrParseError,\n\t\t}\n\t}\n\n\treturn id, nil\n}", "func (p WatchParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func (r *BaseRequest) Query() url.Values {\n\tif r.query == nil {\n\t\tr.query = url.Values{}\n\t}\n\treturn r.query\n}", "func (this *NamedParameterQuery) GetParsedParameters() ([]interface{}) {\n\treturn this.parameters\n}", "func (q *QueryInputs) buildParams() bson.D {\n\tp := bson.D{}\n\n\tif len(q.Params) != 0 {\n\t\tp = buildD(q.Params)\n\t}\n\n\treturn p\n}", "func (p ContentIDParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func (z RequestData) ParamQuery() string {\n\tl := esl.Default()\n\tif z.q == nil {\n\t\treturn \"\"\n\t}\n\tq, err := query.Values(z.q)\n\tif err != nil {\n\t\tl.Debug(\"unable to make query\", esl.Error(err), esl.Any(\"q\", z.q))\n\t\treturn \"\"\n\t} else {\n\t\treturn \"?\" + q.Encode()\n\t}\n}", "func (req *request) Params() *EntrySet {\n return req.params\n}", "func QueryResponder(t *testing.T, resp httpmock.Responder, q url.Values) httpmock.Responder {\n\treturn func(r *http.Request) (*http.Response, error) {\n\t\tt.Helper()\n\n\t\tfor k := range q {\n\t\t\tif q.Get(k) != \"\" {\n\t\t\t\tassert.Equal(t, q.Get(k), r.URL.Query().Get(k))\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\tassert.Zero(t, r.URL.Query().Get(k))\n\t\t}\n\n\t\treturn resp(r)\n\t}\n}", "func (p SearchParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func (p UserParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func (req *SimilarityLookupRequest) Query() map[string]interface{} {\n\tq := map[string]interface{}{}\n\tif string(req.Parameters.Condition) != \"\" {\n\t\tq[\"Condition\"] = req.Parameters.Condition\n\t}\n\tif req.Parameters.MerchantID != \"\" {\n\t\tq[\"MerchantId\"] = req.Parameters.MerchantID\n\t}\n\tif string(req.Parameters.SimilarityType) != \"\" {\n\t\tq[\"SimilarityType\"] = string(req.Parameters.SimilarityType)\n\t}\n\tq[\"ItemId\"] = strings.Join(req.Parameters.ItemIDs, \",\")\n\tq[\"ResponseGroup\"] = req.Parameters.ResponseGroups\n\treturn q\n}", "func query_param(query_data map[string][]string) *pagination.QueryParam {\n\tqp := new(pagination.QueryParam)\n\tif len(query_data[\"page\"]) > 0 {\n\t\tpage, err := strconv.Atoi(query_data[\"page\"][0])\n\t\tif err == nil {\n\t\t\tqp.Page = page\n\t\t}\n\t}\n\n\tif len(query_data[\"per_page\"]) > 0 {\n\t\tpage, err := strconv.Atoi(query_data[\"per_page\"][0])\n\t\tif err == nil {\n\t\t\tqp.Per_page = page\n\t\t}\n\t}\n\n\tif len(query_data[\"value\"]) > 0 {\n\t\tqp.Value = query_data[\"value\"][0]\n\t}\n\n\tif len(query_data[\"filter\"]) > 0 {\n\t\tqp.Filter, _ = strconv.ParseBool(query_data[\"filter\"][0])\n\t}\n\n\treturn qp\n}", "func getTargetFromReq(m map[string]interface{}) (s []string, err error) {\r\n\ttargets, _ := dproxy.New(m).M(\"targets\").Array()\r\n\ts = make([]string, len(targets))\r\n\r\n\tfor i, v := range targets {\r\n\t\ts[i], _ = dproxy.New(v).M(\"target\").String()\r\n\t\t\r\n\t}\r\n\r\n\treturn s, nil\r\n}", "func (d *Dao) TargetsByQuery(c context.Context, where string) (res []*model.Target, err error) {\n\tvar rows *xsql.Rows\n\tif rows, err = d.db.Query(c, _targetQuerySQL+where); err != nil {\n\t\tlog.Error(\"d.TargetsByQuery.Query error(%+v), sql(%s)\", err, _targetQuerySQL+where)\n\t\treturn\n\t}\n\tdefer rows.Close()\n\tfor rows.Next() {\n\t\tvar t = &model.Target{}\n\t\tif err = rows.Scan(&t.ID, &t.SubEvent, &t.Event, &t.Product, &t.Source, &t.GroupIDs, &t.Threshold, &t.Duration, &t.State, &t.Ctime, &t.Mtime); err != nil {\n\t\t\tlog.Error(\"d.TargetsByQuery.Scan error(%+v), sql(%s)\", err, _targetQuerySQL+where)\n\t\t\treturn\n\t\t}\n\t\tif t.GroupIDs != \"\" {\n\t\t\tvar gids []int64\n\t\t\tif gids, err = xstr.SplitInts(t.GroupIDs); err != nil {\n\t\t\t\tlog.Error(\"d.Product.SplitInts error(%+v), group ids(%s)\", err, t.GroupIDs)\n\t\t\t\treturn\n\t\t\t}\n\t\t\tif t.Groups, err = d.Groups(c, gids); err != nil {\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\t\tres = append(res, t)\n\t}\n\treturn\n}", "func (u *User) QueryRequestTarget() *RequestTargetQuery {\n\treturn NewUserClient(u.config).QueryRequestTarget(u)\n}", "func (q Query) GetParams() (params Parameters) {\n\tif q != nil {\n\t\tparams, _ = q[paramsKey].(Parameters)\n\t}\n\treturn\n}", "func (req *request) Query(key string) []string {\n return req.query[key]\n}", "func (args ForecastArgs) QueryParams() url.Values {\n\tq := make(url.Values)\n\tif args.Location != nil {\n\t\tfor k, v := range args.Location.LocationQueryParams() {\n\t\t\tq[k] = v\n\t\t}\n\t}\n\n\tif !args.Start.IsZero() {\n\t\tq.Add(\"start_time\", args.Start.Format(time.RFC3339))\n\t}\n\tif !args.End.IsZero() {\n\t\tq.Add(\"end_time\", args.End.Format(time.RFC3339))\n\t}\n\tif args.Timestep > 0 {\n\t\tq.Add(\"timestep\", strconv.Itoa(args.Timestep))\n\t}\n\tif args.UnitSystem != \"\" {\n\t\tq.Add(\"unit_system\", args.UnitSystem)\n\t}\n\tif len(args.Fields) > 0 {\n\t\tq.Add(\"fields\", strings.Join(args.Fields, \",\"))\n\t}\n\treturn q\n}", "func prepareInsertArguments(q Queryer) []interface{} {\n\tv := reflect.ValueOf(q)\n\targuments := []interface{}{}\n\tfor i := 0; i < v.NumField(); i++ {\n\t\targuments = append(arguments, v.Field(i).Interface())\n\t}\n\treturn arguments\n}", "func (p AuditParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func findOptionParams(opts ...influxdb.FindOptions) [][2]string {\n\tvar out [][2]string\n\tfor _, o := range opts {\n\t\tfor k, vals := range o.QueryParams() {\n\t\t\tfor _, v := range vals {\n\t\t\t\tout = append(out, [2]string{k, v})\n\t\t\t}\n\t\t}\n\t}\n\treturn out\n}", "func (m *EqOp) Args() []Query {\n\treturn m.argsField\n}", "func queryToMap(query url.Values, m map[string]interface{}) map[string]interface{} {\n\t// no-op if query is empty, do not create the key m[\"query\"]\n\tif len(query) == 0 {\n\t\treturn m\n\t}\n\n\t/* 'parameter' will represent url.Values\n\tmap[string]interface{}{\n\t\t\"parameter-a\": []interface{}{\n\t\t\t\"a\",\n\t\t\t\"b\",\n\t\t},\n\t\t\"parameter-b\": []interface{}{\n\t\t\t\"x\",\n\t\t\t\"y\",\n\t\t},\n\t}\n\t*/\n\tparameters := map[string]interface{}{}\n\tfor param, values := range query {\n\t\tparameters[param] = queryParamValuesToMap(values)\n\t}\n\tm[\"query\"] = parameters\n\treturn m\n}", "func (w *Wrapper) paramToQuery(data interface{}, parentheses ...bool) (param string) {\n\tswitch v := data.(type) {\n\tcase *Wrapper:\n\t\tif len(parentheses) > 0 {\n\t\t\tif parentheses[0] == false {\n\t\t\t\tparam = fmt.Sprintf(\"%s\", v.query)\n\t\t\t}\n\t\t} else {\n\t\t\tparam = fmt.Sprintf(\"(%s)\", v.query)\n\t\t}\n\tcase function:\n\t\tparam = v.query\n\tcase nil:\n\t\tparam = \"NULL\"\n\tdefault:\n\t\tparam = \"?\"\n\t}\n\treturn\n}", "func (p ExpandParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func (r *InboundRequest) QueryParamMultiple(key string) ([]string, bool) {\n value, ok := r.URL.Query()[key]\n\n return value, ok\n}", "func (client *BaseClient) Query(filter map[string]interface{}) map[string]string {\n\ttmp := make(map[string]interface{})\n\tbyt, _ := json.Marshal(filter)\n\t_ = json.Unmarshal(byt, &tmp)\n\n\tresult := make(map[string]string)\n\tfor key, value := range tmp {\n\t\tfilterValue := reflect.ValueOf(value)\n\t\tflatRepeatedList(filterValue, result, key)\n\t}\n\n\treturn result\n}", "func collectParameters(r *http.Request, oauthParams map[string]string) map[string]string {\n\tparams := map[string]string{}\n\tfor key, value := range r.URL.Query() {\n\t\tparams[key] = value[0]\n\t}\n\tfor key, value := range oauthParams {\n\t\tparams[key] = value\n\t}\n\treturn params\n}", "func extractQuery(c *gin.Context, tag string) (string, []string, error) {\n\tname, required, defaultVal, err := parseTagKey(tag)\n\tif err != nil {\n\t\treturn \"\", nil, err\n\t}\n\tvar params []string\n\tquery := c.Request.URL.Query()[name]\n\n\tif c.GetBool(ExplodeTag) {\n\t\t// Delete empty elements so default and required arguments\n\t\t// will play nice together. Append to a new collection to\n\t\t// preserve order without too much copying.\n\t\tparams = make([]string, 0, len(query))\n\t\tfor i := range query {\n\t\t\tif query[i] != \"\" {\n\t\t\t\tparams = append(params, query[i])\n\t\t\t}\n\t\t}\n\t} else {\n\t\tsplitFn := func(c rune) bool {\n\t\t\treturn c == ','\n\t\t}\n\t\tif len(query) > 1 {\n\t\t\treturn name, nil, errors.New(\"repeating values not supported: use comma-separated list\")\n\t\t} else if len(query) == 1 {\n\t\t\tparams = strings.FieldsFunc(query[0], splitFn)\n\t\t}\n\t}\n\n\t// XXX: deprecated, use of \"default\" tag is preferred\n\tif len(params) == 0 && defaultVal != \"\" {\n\t\treturn name, []string{defaultVal}, nil\n\t}\n\t// XXX: deprecated, use of \"validate\" tag is preferred\n\tif len(params) == 0 && required {\n\t\treturn \"\", nil, fmt.Errorf(\"missing query parameter: %s\", name)\n\t}\n\treturn name, params, nil\n}", "func (z RequestData) Query() interface{} {\n\treturn z.q\n}", "func (p LabelParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func (p ChildrenParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func (mock *DownloaderMock) QueryParametersCalls() []struct {\n} {\n\tvar calls []struct {\n\t}\n\tlockDownloaderMockQueryParameters.RLock()\n\tcalls = mock.calls.QueryParameters\n\tlockDownloaderMockQueryParameters.RUnlock()\n\treturn calls\n}", "func GetQueryes(r *http.Request) url.Values {\n\treturn r.URL.Query()\n}", "func (o DiagnosticBackendRequestDataMaskingOutput) QueryParams() DiagnosticBackendRequestDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v DiagnosticBackendRequestDataMasking) []DiagnosticBackendRequestDataMaskingQueryParam {\n\t\treturn v.QueryParams\n\t}).(DiagnosticBackendRequestDataMaskingQueryParamArrayOutput)\n}", "func (tr *GremlinDatabase) GetParameters() (map[string]interface{}, error) {\n\tp, err := json.TFParser.Marshal(tr.Spec.ForProvider)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbase := map[string]interface{}{}\n\treturn base, json.TFParser.Unmarshal(p, &base)\n}", "func (tr *MongoDatabase) GetParameters() (map[string]interface{}, error) {\n\tp, err := json.TFParser.Marshal(tr.Spec.ForProvider)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbase := map[string]interface{}{}\n\treturn base, json.TFParser.Unmarshal(p, &base)\n}", "func (p SpaceParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func (o ApiDiagnosticBackendRequestDataMaskingOutput) QueryParams() ApiDiagnosticBackendRequestDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v ApiDiagnosticBackendRequestDataMasking) []ApiDiagnosticBackendRequestDataMaskingQueryParam {\n\t\treturn v.QueryParams\n\t}).(ApiDiagnosticBackendRequestDataMaskingQueryParamArrayOutput)\n}", "func (o DiagnosticBackendRequestDataMaskingPtrOutput) QueryParams() DiagnosticBackendRequestDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v *DiagnosticBackendRequestDataMasking) []DiagnosticBackendRequestDataMaskingQueryParam {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.QueryParams\n\t}).(DiagnosticBackendRequestDataMaskingQueryParamArrayOutput)\n}", "func get_s3_select_query_params(query *Query) *s3.SelectObjectContentInput {\n\tparams := &s3.SelectObjectContentInput{\n\t\tBucket: aws.String(query.Bucket),\n\t\tKey: aws.String(query.Path),\n\t\tExpressionType: aws.String(s3.ExpressionTypeSql),\n\t\tExpression: aws.String(query.Query),\n\t\tInputSerialization: &s3.InputSerialization{\n\t\t\tCompressionType: aws.String(query.Compression),\n\t\t},\n\t\tOutputSerialization: &s3.OutputSerialization{\n\t\t\tJSON: &s3.JSONOutput{\n\t\t\t\tRecordDelimiter: aws.String(\",\"),\n\t\t\t},\n\t\t},\n\t}\n\n\tswitch query.Format {\n\tcase \"CSV\":\n\t\tparams.InputSerialization.CSV = &s3.CSVInput{}\n\t\tparams.InputSerialization.CSV.AllowQuotedRecordDelimiter = aws.Bool(query.CSVAllowQuotedRecordDelimiter)\n\t\tparams.InputSerialization.CSV.FileHeaderInfo = aws.String(query.CSVFileHeaderInfo)\n\n\t\tif query.CSVComments != \"\" {\n\t\t\tparams.InputSerialization.CSV.Comments = aws.String(query.CSVComments)\n\t\t}\n\t\tif query.CSVFieldDelimiter != \"\" {\n\t\t\tparams.InputSerialization.CSV.FieldDelimiter = aws.String(query.CSVFieldDelimiter)\n\t\t}\n\t\tif query.CSVQuoteCharacter != \"\" {\n\t\t\tparams.InputSerialization.CSV.QuoteCharacter = aws.String(query.CSVQuoteCharacter)\n\t\t}\n\t\tif query.CSVQuoteEscapeCharacter != \"\" {\n\t\t\tparams.InputSerialization.CSV.QuoteEscapeCharacter = aws.String(query.CSVQuoteEscapeCharacter)\n\t\t}\n\t\tif query.CSVRecordDelimiter != \"\" {\n\t\t\tparams.InputSerialization.CSV.RecordDelimiter = aws.String(query.CSVRecordDelimiter)\n\t\t}\n\tcase \"JSON\":\n\t\tparams.InputSerialization.JSON = &s3.JSONInput{}\n\t\tif query.JSONType != \"\" {\n\t\t\tparams.InputSerialization.JSON.Type = aws.String(query.JSONType)\n\t\t}\n\t}\n\n\treturn params\n}", "func (ctx *Context) QueryParams(key string) []string {\r\n\tif ctx.queryParams == nil {\r\n\t\tctx.queryParams = ctx.R.URL.Query()\r\n\t}\r\n\treturn ctx.queryParams[key]\r\n}", "func GetParameters(ctx *gin.Context) (time.Time, time.Time, string, error) {\n\tvar errorMsg = \"\"\n\n\tartist := ctx.Query(\"artist\")\n\n\tfrom, err := time.Parse(Parse_Layout, ctx.Query(\"from\"))\n\tif err != nil && errorMsg == \"\" {\n\t\terrorMsg = \"Invalid or missing 'From' parameter\"\n\t}\n\n\tuntil, err := time.Parse(Parse_Layout, ctx.Query(\"until\"))\n\tif err != nil && errorMsg == \"\" {\n\t\terrorMsg = \"Invalid or missing 'Until' parameter\"\n\t}\n\n\tif from.After(until) && errorMsg == \"\" {\n\t\terrorMsg = \"'from' is greater than 'until'\"\n\t}\n\tif errorMsg != \"\" {\n\t\treturn from, until, artist, errors.New(errorMsg)\n\t} else {\n\t\treturn from, until, artist, nil\n\t}\n\n}", "func (this *DefMethod) GetParamNameAndWhere(indx int) (string, int) {\n\tfor _, v := range this.Paras {\n\t\tif v.Indx == indx {\n\t\t\t//return v.name, v.where\n\t\t\tif strings.EqualFold(v.Where, \"query\") {\n\t\t\t\treturn v.Name, InQuery\n\t\t\t} else {\n\t\t\t\treturn v.Name, InBody\n\t\t\t}\n\t\t}\n\t}\n\treturn \"\", InQuery\n}", "func (o ApiDiagnosticBackendRequestDataMaskingPtrOutput) QueryParams() ApiDiagnosticBackendRequestDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v *ApiDiagnosticBackendRequestDataMasking) []ApiDiagnosticBackendRequestDataMaskingQueryParam {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.QueryParams\n\t}).(ApiDiagnosticBackendRequestDataMaskingQueryParamArrayOutput)\n}", "func (q *PercolatorQuery) Source() (interface{}, error) {\n\tif len(q.field) == 0 {\n\t\treturn nil, errors.New(\"elastic: Field is required in PercolatorQuery\")\n\t}\n\tif len(q.documentType) == 0 {\n\t\treturn nil, errors.New(\"elastic: DocumentType is required in PercolatorQuery\")\n\t}\n\tif q.document == nil {\n\t\treturn nil, errors.New(\"elastic: Document is required in PercolatorQuery\")\n\t}\n\n\t// {\n\t// \"percolate\" : { ... }\n\t// }\n\tsource := make(map[string]interface{})\n\tparams := make(map[string]interface{})\n\tsource[\"percolate\"] = params\n\tparams[\"field\"] = q.field\n\tparams[\"document_type\"] = q.documentType\n\tparams[\"document\"] = q.document\n\tif len(q.indexedDocumentIndex) > 0 {\n\t\tparams[\"index\"] = q.indexedDocumentIndex\n\t}\n\tif len(q.indexedDocumentType) > 0 {\n\t\tparams[\"type\"] = q.indexedDocumentType\n\t}\n\tif len(q.indexedDocumentId) > 0 {\n\t\tparams[\"id\"] = q.indexedDocumentId\n\t}\n\tif len(q.indexedDocumentRouting) > 0 {\n\t\tparams[\"routing\"] = q.indexedDocumentRouting\n\t}\n\tif len(q.indexedDocumentPreference) > 0 {\n\t\tparams[\"preference\"] = q.indexedDocumentPreference\n\t}\n\tif q.indexedDocumentVersion != nil {\n\t\tparams[\"version\"] = *q.indexedDocumentVersion\n\t}\n\treturn source, nil\n}", "func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {\n\tdefer telemetry.MeasureSince(time.Now(), types.ModuleName, \"query\", \"Params\")\n\tctx := sdk.UnwrapSDKContext(c)\n\tvar params types.Params\n\tk.paramSpace.GetParamSet(ctx, &params)\n\n\treturn &types.QueryParamsResponse{Params: params, Request: req}, nil\n}", "func requestParamsFromRpc(rpc *specSpec.Rpc) []Qparams {\n\t// path params regexFindAll \"{[a-zA-Z]*}\" $method.deeplink.href 10\n\tregex := regexp.MustCompile(`{([^{]+)}`)\n\tmatches := regex.FindAllStringSubmatch(rpc.Deeplink.Href, 50)\n\tparams := []Qparams{}\n\ti := 1\n\tfor _, match := range matches {\n\t\tparams = append(params, Qparams{\n\t\t\tDescription: \"deeplink params for path segment {\" + match[1] + \"} of \" + rpc.Deeplink.Href,\n\t\t\tType: \"string\",\n\t\t\tName: match[1],\n\t\t\tFieldId: i,\n\t\t})\n\t\ti++\n\t}\n\n\t// request type\n\tif rpc.Data.Request != \"\" {\n\t\tparams = append(params, Qparams{\n\t\t\tDescription: \"request type \" + rpc.Data.Request,\n\t\t\tType: rpc.Data.Request,\n\t\t\tName: \"data\",\n\t\t\tFieldId: i,\n\t\t})\n\t\ti++\n\t}\n\n\t// query\n\tif rpc.Query != nil {\n\t\trpc.Query.Map(func(iKey interface{}, iValue interface{}) {\n\t\t\tp := iValue.(*specSpec.Queryparam)\n\t\t\tparams = append(params, Qparams{\n\t\t\t\tDescription: p.Description,\n\t\t\t\tType: p.Type,\n\t\t\t\tName: iKey.(string),\n\t\t\t\tFieldId: i,\n\t\t\t})\n\t\t\ti++\n\t\t})\n\t}\n\n\treturn params\n}", "func (o *SearchAbsoluteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {\n\n\tif err := r.SetTimeout(o.timeout); err != nil {\n\t\treturn err\n\t}\n\tvar res []error\n\n\tif o.Decorate != nil {\n\n\t\t// query param decorate\n\t\tvar qrDecorate bool\n\t\tif o.Decorate != nil {\n\t\t\tqrDecorate = *o.Decorate\n\t\t}\n\t\tqDecorate := swag.FormatBool(qrDecorate)\n\t\tif qDecorate != \"\" {\n\t\t\tif err := r.SetQueryParam(\"decorate\", qDecorate); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\n\t}\n\n\tif o.Fields != nil {\n\n\t\t// query param fields\n\t\tvar qrFields string\n\t\tif o.Fields != nil {\n\t\t\tqrFields = *o.Fields\n\t\t}\n\t\tqFields := qrFields\n\t\tif qFields != \"\" {\n\t\t\tif err := r.SetQueryParam(\"fields\", qFields); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\n\t}\n\n\tif o.Filter != nil {\n\n\t\t// query param filter\n\t\tvar qrFilter string\n\t\tif o.Filter != nil {\n\t\t\tqrFilter = *o.Filter\n\t\t}\n\t\tqFilter := qrFilter\n\t\tif qFilter != \"\" {\n\t\t\tif err := r.SetQueryParam(\"filter\", qFilter); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\n\t}\n\n\t// query param from\n\tqrFrom := o.From\n\tqFrom := qrFrom\n\tif qFrom != \"\" {\n\t\tif err := r.SetQueryParam(\"from\", qFrom); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\tif o.Limit != nil {\n\n\t\t// query param limit\n\t\tvar qrLimit int64\n\t\tif o.Limit != nil {\n\t\t\tqrLimit = *o.Limit\n\t\t}\n\t\tqLimit := swag.FormatInt64(qrLimit)\n\t\tif qLimit != \"\" {\n\t\t\tif err := r.SetQueryParam(\"limit\", qLimit); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\n\t}\n\n\tif o.Offset != nil {\n\n\t\t// query param offset\n\t\tvar qrOffset int64\n\t\tif o.Offset != nil {\n\t\t\tqrOffset = *o.Offset\n\t\t}\n\t\tqOffset := swag.FormatInt64(qrOffset)\n\t\tif qOffset != \"\" {\n\t\t\tif err := r.SetQueryParam(\"offset\", qOffset); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\n\t}\n\n\t// query param query\n\tqrQuery := o.Query\n\tqQuery := qrQuery\n\tif qQuery != \"\" {\n\t\tif err := r.SetQueryParam(\"query\", qQuery); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\tif o.Sort != nil {\n\n\t\t// query param sort\n\t\tvar qrSort string\n\t\tif o.Sort != nil {\n\t\t\tqrSort = *o.Sort\n\t\t}\n\t\tqSort := qrSort\n\t\tif qSort != \"\" {\n\t\t\tif err := r.SetQueryParam(\"sort\", qSort); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\n\t}\n\n\t// query param to\n\tqrTo := o.To\n\tqTo := qrTo\n\tif qTo != \"\" {\n\t\tif err := r.SetQueryParam(\"to\", qTo); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}", "func namedPqParams(numFields int, numEntities int) string {\n\tparamGroups := make([]string, 0, numEntities)\n\tparams := make([]string, 0, numFields)\n\tnumTotalParams := numEntities * numFields\n\n\tfor i := 0; i < numTotalParams; i++ {\n\t\tparams = append(params, fmt.Sprintf(\"$%v\", i+1))\n\n\t\t//when we reach the number of fields, group the params\n\t\tif (i+1)%numFields == 0 {\n\t\t\tparamGroup := fmt.Sprintf(\"(%s)\", strings.Join(params, \",\"))\n\t\t\tparamGroups = append(paramGroups, paramGroup)\n\t\t\tparams = make([]string, 0, numFields)\n\t\t}\n\t}\n\treturn strings.Join(paramGroups, \",\")\n}", "func (o ApiDiagnosticBackendResponseDataMaskingOutput) QueryParams() ApiDiagnosticBackendResponseDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v ApiDiagnosticBackendResponseDataMasking) []ApiDiagnosticBackendResponseDataMaskingQueryParam {\n\t\treturn v.QueryParams\n\t}).(ApiDiagnosticBackendResponseDataMaskingQueryParamArrayOutput)\n}", "func subTargetParams(cmdToExec string, targetParams map[string]string) string {\n\tfor k, v := range targetParams {\n\t\tparamholder := \"{\" + k + \"}\"\n\t\tcmdToExec = strings.ReplaceAll(cmdToExec, paramholder, v)\n\t}\n\treturn cmdToExec\n}", "func (tr *SQLDatabase) GetParameters() (map[string]interface{}, error) {\n\tp, err := json.TFParser.Marshal(tr.Spec.ForProvider)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbase := map[string]interface{}{}\n\treturn base, json.TFParser.Unmarshal(p, &base)\n}", "func (this *NamedParameterQuery) setQuery(queryText string) {\n\n\tvar revisedBuilder bytes.Buffer\n\tvar parameterBuilder bytes.Buffer\n\tvar position []int\n\tvar character rune\n\tvar parameterName string\n\tvar width int\n\tvar positionIndex int\n\n\tthis.originalQuery = queryText\n\tpositionIndex = 0\n\n\tfor i := 0; i < len(queryText); {\n\n\t\tcharacter, width = utf8.DecodeRuneInString(queryText[i:])\n\t\ti += width\n\n\t\t// if it's a colon, do not write to builder, but grab name\n\t\tif(character == ':') {\n\n\t\t\tfor ;; {\n\n\t\t\t\tcharacter, width = utf8.DecodeRuneInString(queryText[i:])\n\t\t\t\ti += width\n\n\t\t\t\tif unicode.IsLetter(character) || unicode.IsDigit(character) {\n\t\t\t\t\tparameterBuilder.WriteString(string(character))\n\t\t\t\t} else {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// add to positions\n\t\t\tparameterName = parameterBuilder.String()\n\t\t\tposition = this.positions[parameterName]\n\t\t\tthis.positions[parameterName] = append(position, positionIndex)\n\t\t\tpositionIndex++\n\n\t\t\trevisedBuilder.WriteString(\"?\")\n\t\t\tparameterBuilder.Reset()\n\n\t\t\tif(width <= 0) {\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\n\t\t// otherwise write.\n\t\trevisedBuilder.WriteString(string(character))\n\n\t\t// if it's a quote, continue writing to builder, but do not search for parameters.\n\t\tif(character == '\\'') {\n\n\t\t\tfor ;; {\n\n\t\t\t\tcharacter, width = utf8.DecodeRuneInString(queryText[i:])\n\t\t\t\ti += width\n\t\t\t\trevisedBuilder.WriteString(string(character))\n\n\t\t\t\tif(character == '\\'') {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tthis.revisedQuery = revisedBuilder.String()\n\tthis.parameters = make([]interface{}, positionIndex)\n}", "func (tr *SQLContainer) GetParameters() (map[string]interface{}, error) {\n\tp, err := json.TFParser.Marshal(tr.Spec.ForProvider)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbase := map[string]interface{}{}\n\treturn base, json.TFParser.Unmarshal(p, &base)\n}", "func (opts GetOpts) ToObjectGetQuery() (string, error) {\n\tq, err := gophercloud.BuildQueryString(opts)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn q.String(), nil\n}", "func (q querier) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {\n\tctx := sdk.UnwrapSDKContext(c)\n\treturn &types.QueryParamsResponse{Params: q.GetParams(ctx)}, nil\n}", "func (o DiagnosticBackendResponseDataMaskingOutput) QueryParams() DiagnosticBackendResponseDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v DiagnosticBackendResponseDataMasking) []DiagnosticBackendResponseDataMaskingQueryParam {\n\t\treturn v.QueryParams\n\t}).(DiagnosticBackendResponseDataMaskingQueryParamArrayOutput)\n}", "func QueryParameterFor(name string, description string) Parameter {\n\treturn ParameterFor(Query, name, description)\n}", "func queryProfileParams(ctx sdk.Context, _ abci.RequestQuery, keeper Keeper) ([]byte, error) {\n\tprofileParams := keeper.GetParams(ctx)\n\n\tbz, err := codec.MarshalJSONIndent(keeper.Cdc, &profileParams)\n\tif err != nil {\n\t\tpanic(\"could not marshal result to JSON\")\n\t}\n\n\treturn bz, nil\n}", "func (o DiagnosticBackendResponseDataMaskingPtrOutput) QueryParams() DiagnosticBackendResponseDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v *DiagnosticBackendResponseDataMasking) []DiagnosticBackendResponseDataMaskingQueryParam {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.QueryParams\n\t}).(DiagnosticBackendResponseDataMaskingQueryParamArrayOutput)\n}", "func get_s3_select_time_params(query *Query) *s3.SelectObjectContentInput {\n\tif query.Format != \"JSON\" || query.JSONTimeField == \"\" || query.JSONTimeBucket <= 0 {\n\t\treturn nil\n\t}\n\n\tparams := &s3.SelectObjectContentInput{\n\t\tBucket: aws.String(query.Bucket),\n\t\tKey: aws.String(query.Path),\n\t\tExpressionType: aws.String(s3.ExpressionTypeSql),\n\t\tExpression: aws.String(query.JSONTimeField),\n\t\tInputSerialization: &s3.InputSerialization{\n\t\t\tJSON: &s3.JSONInput{\n\t\t\t\tType: aws.String(query.JSONType),\n\t\t\t},\n\t\t\tCompressionType: aws.String(query.Compression),\n\t\t},\n\t\tOutputSerialization: &s3.OutputSerialization{\n\t\t\tJSON: &s3.JSONOutput{\n\t\t\t\tRecordDelimiter: aws.String(\",\"),\n\t\t\t},\n\t\t},\n\t}\n\n\treturn params\n}", "func (c *Client) query(endpoint string, out interface{}, q *QueryOptions) (*QueryMeta, error) {\n\tr, err := c.newRequest(\"GET\", endpoint)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tr.setQueryOptions(q)\n\trtt, resp, err := requireOK(c.doRequest(r))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tdefer resp.Body.Close()\n\n\tqm := &QueryMeta{}\n\tparseQueryMeta(resp, qm)\n\tqm.RequestTime = rtt\n\n\tif err := decodeBody(resp, out); err != nil {\n\t\treturn nil, err\n\t}\n\treturn qm, nil\n}", "func (o *GetRelationTuplesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {\n\n\tif err := r.SetTimeout(o.timeout); err != nil {\n\t\treturn err\n\t}\n\tvar res []error\n\n\t// query param namespace\n\tqrNamespace := o.Namespace\n\tqNamespace := qrNamespace\n\tif qNamespace != \"\" {\n\n\t\tif err := r.SetQueryParam(\"namespace\", qNamespace); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\t// query param object\n\tqrObject := o.Object\n\tqObject := qrObject\n\tif qObject != \"\" {\n\n\t\tif err := r.SetQueryParam(\"object\", qObject); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\tif o.PageSize != nil {\n\n\t\t// query param page_size\n\t\tvar qrPageSize int64\n\n\t\tif o.PageSize != nil {\n\t\t\tqrPageSize = *o.PageSize\n\t\t}\n\t\tqPageSize := swag.FormatInt64(qrPageSize)\n\t\tif qPageSize != \"\" {\n\n\t\t\tif err := r.SetQueryParam(\"page_size\", qPageSize); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}\n\n\tif o.PageToken != nil {\n\n\t\t// query param page_token\n\t\tvar qrPageToken string\n\n\t\tif o.PageToken != nil {\n\t\t\tqrPageToken = *o.PageToken\n\t\t}\n\t\tqPageToken := qrPageToken\n\t\tif qPageToken != \"\" {\n\n\t\t\tif err := r.SetQueryParam(\"page_token\", qPageToken); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}\n\n\t// query param relation\n\tqrRelation := o.Relation\n\tqRelation := qrRelation\n\tif qRelation != \"\" {\n\n\t\tif err := r.SetQueryParam(\"relation\", qRelation); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\tif o.SubjectID != nil {\n\n\t\t// query param subject_id\n\t\tvar qrSubjectID string\n\n\t\tif o.SubjectID != nil {\n\t\t\tqrSubjectID = *o.SubjectID\n\t\t}\n\t\tqSubjectID := qrSubjectID\n\t\tif qSubjectID != \"\" {\n\n\t\t\tif err := r.SetQueryParam(\"subject_id\", qSubjectID); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}\n\n\tif o.SubjectSetNamespace != nil {\n\n\t\t// query param subject_set.namespace\n\t\tvar qrSubjectSetNamespace string\n\n\t\tif o.SubjectSetNamespace != nil {\n\t\t\tqrSubjectSetNamespace = *o.SubjectSetNamespace\n\t\t}\n\t\tqSubjectSetNamespace := qrSubjectSetNamespace\n\t\tif qSubjectSetNamespace != \"\" {\n\n\t\t\tif err := r.SetQueryParam(\"subject_set.namespace\", qSubjectSetNamespace); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}\n\n\tif o.SubjectSetObject != nil {\n\n\t\t// query param subject_set.object\n\t\tvar qrSubjectSetObject string\n\n\t\tif o.SubjectSetObject != nil {\n\t\t\tqrSubjectSetObject = *o.SubjectSetObject\n\t\t}\n\t\tqSubjectSetObject := qrSubjectSetObject\n\t\tif qSubjectSetObject != \"\" {\n\n\t\t\tif err := r.SetQueryParam(\"subject_set.object\", qSubjectSetObject); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}\n\n\tif o.SubjectSetRelation != nil {\n\n\t\t// query param subject_set.relation\n\t\tvar qrSubjectSetRelation string\n\n\t\tif o.SubjectSetRelation != nil {\n\t\t\tqrSubjectSetRelation = *o.SubjectSetRelation\n\t\t}\n\t\tqSubjectSetRelation := qrSubjectSetRelation\n\t\tif qSubjectSetRelation != \"\" {\n\n\t\t\tif err := r.SetQueryParam(\"subject_set.relation\", qSubjectSetRelation); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}", "func (p CollectionParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func (o ApiDiagnosticBackendResponseDataMaskingPtrOutput) QueryParams() ApiDiagnosticBackendResponseDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v *ApiDiagnosticBackendResponseDataMasking) []ApiDiagnosticBackendResponseDataMaskingQueryParam {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.QueryParams\n\t}).(ApiDiagnosticBackendResponseDataMaskingQueryParamArrayOutput)\n}", "func (r *BasicRequest) QueryArgs() (url.Values, error) {\n\treturn url.ParseQuery(r.Query)\n}", "func (tr *MongoCollection) GetParameters() (map[string]interface{}, error) {\n\tp, err := json.TFParser.Marshal(tr.Spec.ForProvider)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbase := map[string]interface{}{}\n\treturn base, json.TFParser.Unmarshal(p, &base)\n}", "func (req *ItemLookupRequest) Query() map[string]interface{} {\n\tq := map[string]interface{}{}\n\tif string(req.Parameters.Condition) != \"\" {\n\t\tq[\"Condition\"] = string(req.Parameters.Condition)\n\t}\n\tq[\"IdType\"] = string(req.Parameters.IDType)\n\tq[\"ItemId\"] = strings.Join(req.Parameters.ItemIDs, \",\")\n\tif req.Parameters.IncludeReviewsSummary != nil {\n\t\tq[\"IncludeReviewsSummary\"] = *req.Parameters.IncludeReviewsSummary\n\t}\n\tif req.Parameters.MerchantID != \"\" {\n\t\tq[\"MerchantId\"] = req.Parameters.MerchantID\n\t}\n\tif req.Parameters.RelatedItemPage > 0 {\n\t\tq[\"RelatedItemPage\"] = req.Parameters.RelatedItemPage\n\t}\n\tif req.Parameters.RelationshipType != \"\" {\n\t\tq[\"RelationshipType\"] = req.Parameters.RelationshipType\n\t}\n\tif req.Parameters.SearchIndex != \"\" {\n\t\tq[\"SearchIndex\"] = req.Parameters.SearchIndex\n\t}\n\tif req.Parameters.TruncateReviewsAt != nil {\n\t\tq[\"TruncateReviewsAt\"] = *req.Parameters.TruncateReviewsAt\n\t}\n\tif req.Parameters.VariationPage > 0 {\n\t\tq[\"VariationPage\"] = req.Parameters.VariationPage\n\t}\n\tq[\"ResponseGroup\"] = req.Parameters.ResponseGroups\n\treturn q\n}", "func (ctx *Context) QueryAll(key string) []string {\n\treturn ctx.Request.URL.Query()[key]\n}", "func (tr *SQLTrigger) GetParameters() (map[string]interface{}, error) {\n\tp, err := json.TFParser.Marshal(tr.Spec.ForProvider)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbase := map[string]interface{}{}\n\treturn base, json.TFParser.Unmarshal(p, &base)\n}", "func Query(ptp protocol.PointToPoint, tempFields ...interface{}) (t container.Tuple, b bool) {\n\tt, b = getAndQuery(ptp, protocol.QueryRequest, tempFields...)\n\treturn t, b\n}", "func (p AuditSinceParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}", "func buildQueryURL(prefix, prop string, titles []string, cont string) string {\n\tvalues := url.Values{}\n\tvalues.Add(\"format\", \"json\")\n\tvalues.Add(\"action\", \"query\")\n\tvalues.Add(\"titles\", strings.Join(titles, \"|\"))\n\tvalues.Add(\"prop\", prop)\n\tvalues.Add(fmt.Sprintf(\"%snamespace\", prefix), namespace)\n\tvalues.Add(fmt.Sprintf(\"%slimit\", prefix), \"max\")\n\tif len(cont) > 0 {\n\t\tvalues.Add(fmt.Sprintf(\"%scontinue\", prefix), cont)\n\t}\n\treturn fmt.Sprintf(\"%s?%s\", apiEndpoint, values.Encode())\n}", "func QueryParameters(queryParameters *kql.Parameters) QueryOption {\n\treturn func(q *queryOptions) error {\n\t\tq.requestProperties.QueryParameters = *queryParameters\n\t\tq.requestProperties.Parameters = queryParameters.ToParameterCollection()\n\t\treturn nil\n\t}\n}", "func findRequestQuery(req UserAccountFindRequest) (*sqlbuilder.SelectBuilder, []interface{}) {\n\tquery := selectQuery()\n\tif req.Where != \"\" {\n\t\tquery.Where(query.And(req.Where))\n\t}\n\tif len(req.Order) > 0 {\n\t\tquery.OrderBy(req.Order...)\n\t}\n\tif req.Limit != nil {\n\t\tquery.Limit(int(*req.Limit))\n\t}\n\tif req.Offset != nil {\n\t\tquery.Offset(int(*req.Offset))\n\t}\n\n\treturn query, req.Args\n}", "func (q queryServer) Params(ctx context.Context, req *v1.QueryParamsRequest) (*v1.QueryParamsResponse, error) {\n\tif req == nil {\n\t\treturn nil, status.Error(codes.InvalidArgument, \"invalid request\")\n\t}\n\n\tparams, err := q.k.Params.Get(ctx)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tresponse := &v1.QueryParamsResponse{}\n\n\t//nolint:staticcheck // needed for legacy parameters\n\tswitch req.ParamsType {\n\tcase v1.ParamDeposit:\n\t\tdepositParams := v1.NewDepositParams(params.MinDeposit, params.MaxDepositPeriod)\n\t\tresponse.DepositParams = &depositParams\n\n\tcase v1.ParamVoting:\n\t\tvotingParams := v1.NewVotingParams(params.VotingPeriod)\n\t\tresponse.VotingParams = &votingParams\n\n\tcase v1.ParamTallying:\n\t\ttallyParams := v1.NewTallyParams(params.Quorum, params.Threshold, params.VetoThreshold)\n\t\tresponse.TallyParams = &tallyParams\n\tdefault:\n\t\tif len(req.ParamsType) > 0 {\n\t\t\treturn nil, status.Errorf(codes.InvalidArgument, \"unknown params type: %s\", req.ParamsType)\n\t\t}\n\t}\n\tresponse.Params = &params\n\n\treturn response, nil\n}", "func (o ApiDiagnosticFrontendRequestDataMaskingOutput) QueryParams() ApiDiagnosticFrontendRequestDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v ApiDiagnosticFrontendRequestDataMasking) []ApiDiagnosticFrontendRequestDataMaskingQueryParam {\n\t\treturn v.QueryParams\n\t}).(ApiDiagnosticFrontendRequestDataMaskingQueryParamArrayOutput)\n}", "func (s *Service) getParams(r *http.Request) map[string]string {\n\treturn mux.Vars(r)\n}", "func (o DiagnosticFrontendRequestDataMaskingPtrOutput) QueryParams() DiagnosticFrontendRequestDataMaskingQueryParamArrayOutput {\n\treturn o.ApplyT(func(v *DiagnosticFrontendRequestDataMasking) []DiagnosticFrontendRequestDataMaskingQueryParam {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.QueryParams\n\t}).(DiagnosticFrontendRequestDataMaskingQueryParamArrayOutput)\n}" ]
[ "0.60511595", "0.60071886", "0.59714746", "0.588477", "0.5605729", "0.55951536", "0.556467", "0.54810196", "0.5445767", "0.53918225", "0.53883404", "0.53567725", "0.5352399", "0.5309143", "0.53060895", "0.5303519", "0.5288238", "0.52252424", "0.5203973", "0.5201537", "0.52002805", "0.51804537", "0.51765186", "0.51763046", "0.5167968", "0.5161767", "0.51575845", "0.51417595", "0.51360804", "0.51275873", "0.51251954", "0.5115045", "0.51012534", "0.50842935", "0.5082948", "0.5078995", "0.50761247", "0.5061889", "0.5055324", "0.5052987", "0.50509626", "0.50409496", "0.50375664", "0.50008893", "0.499482", "0.49924642", "0.4989576", "0.49433863", "0.49422076", "0.4941769", "0.49341878", "0.4933782", "0.49275833", "0.4927306", "0.4899926", "0.48958555", "0.48927745", "0.48861685", "0.48815677", "0.48800805", "0.48765957", "0.48724484", "0.4867145", "0.48517925", "0.4845192", "0.48448932", "0.4844175", "0.48433825", "0.48411387", "0.4840738", "0.48336557", "0.48329785", "0.48282456", "0.4827717", "0.4827159", "0.48269963", "0.48161644", "0.4815095", "0.48148468", "0.48148015", "0.48126075", "0.48087448", "0.48040417", "0.48009318", "0.47999135", "0.4792719", "0.4791905", "0.47900048", "0.4788764", "0.4779932", "0.4775784", "0.47664583", "0.4762344", "0.47532466", "0.4745504", "0.47426862", "0.47367537", "0.47360632", "0.47222182", "0.47216454", "0.47213385" ]
0.0
-1
retrieve information about a bound renderbuffer object
func GetRenderbufferParameteriv(target uint32, pname uint32, params *int32) { C.glowGetRenderbufferParameteriv(gpGetRenderbufferParameteriv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetBoundFramebuffer() Framebuffer {\n\tvar b int32\n\tgl.GetIntegerv(FRAMEBUFFER_BINDING, &b)\n\treturn Framebuffer{Value: uint32(b)}\n}", "func (API) GetFramebufferAttachmentInfo(state *api.State, thread uint64, attachment api.FramebufferAttachment) (width, height, index uint32, format *image.Format, err error) {\n\treturn 0, 0, 0, nil, fmt.Errorf(\"GVR does not support framebuffers\")\n}", "func (w *windowImpl) bindBackBuffer() {\n\t// w.mu.Lock()\n\t// size := w.Sz\n\t// w.mu.Unlock()\n\t//\n\tw.backBufferBound = true\n\t// gl.BindFramebuffer(gl.FRAMEBUFFER, 0)\n\t// gl.Viewport(0, 0, int32(size.X), int32(size.Y))\n}", "func (self *Graphics) RenderOrderID() int{\n return self.Object.Get(\"renderOrderID\").Int()\n}", "func (h *TelemetryHandler) GetBuffersInfo(ctx context.Context) (*vppcalls.BuffersInfo, error) {\n\tdata, err := h.vpe.RunCli(context.TODO(), \"show buffers\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar items []vppcalls.BuffersItem\n\n\tfor i, line := range strings.Split(string(data), \"\\n\") {\n\t\t// Skip empty lines\n\t\tif strings.TrimSpace(line) == \"\" {\n\t\t\tcontinue\n\t\t}\n\t\t// Check first line\n\t\tif i == 0 {\n\t\t\tfields := strings.Fields(line)\n\t\t\t// Verify header\n\t\t\tif len(fields) != 11 || fields[0] != \"Pool\" {\n\t\t\t\treturn nil, fmt.Errorf(\"invalid header for `show buffers` received: %q\", line)\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\n\t\t// Parse lines using regexp\n\t\tmatches := buffersRe.FindStringSubmatch(line)\n\t\tif len(matches)-1 != 9 {\n\t\t\treturn nil, fmt.Errorf(\"parsing failed (%d matches) for `show buffers` line: %q\", len(matches), line)\n\t\t}\n\t\tfields := matches[1:]\n\n\t\titems = append(items, vppcalls.BuffersItem{\n\t\t\t// ThreadID: uint(strToUint64(fields[0])),\n\t\t\tName: fields[0],\n\t\t\tIndex: uint(strToUint64(fields[1])),\n\t\t\tSize: strToUint64(fields[3]),\n\t\t\tAlloc: strToUint64(fields[7]),\n\t\t\tFree: strToUint64(fields[5]),\n\t\t\t// NumAlloc: strToUint64(fields[6]),\n\t\t\t// NumFree: strToUint64(fields[7]),\n\t\t})\n\t}\n\n\tinfo := &vppcalls.BuffersInfo{\n\t\tItems: items,\n\t}\n\n\treturn info, nil\n}", "func (buffer Buffer) BindBufferBase(target gl.Enum, index uint) {\n\tgl.BindBufferBase(gl.Enum(target), gl.Uint(index), gl.Uint(buffer))\n}", "func (f *Framebuffer) Renderbuffer(attachment gfx.FramebufferAttachment, buf gfx.Renderbuffer) {\n\tf.useState()\n\tf.ctx.O.Call(\n\t\t\"framebufferTexture2D\",\n\t\tf.ctx.FRAMEBUFFER,\n\t\tf.ctx.Enums[int(attachment)],\n\t\tf.ctx.RENDERBUFFER,\n\t\tbuf.Object().(*js.Object),\n\t\t0,\n\t)\n}", "func BindBufferBase(target uint32, index uint32, buffer uint32) {\n C.glowBindBufferBase(gpBindBufferBase, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer))\n}", "func (self *TileSprite) CanvasBuffer() *PIXICanvasBuffer{\n return &PIXICanvasBuffer{self.Object.Get(\"canvasBuffer\")}\n}", "func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) {\n\tC.glowGetNamedBufferSubData(gpGetNamedBufferSubData, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) {\n\tC.glowGetNamedBufferSubData(gpGetNamedBufferSubData, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func BindBufferBase(target uint32, index uint32, buffer uint32) {\n\tC.glowBindBufferBase(gpBindBufferBase, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer))\n}", "func BindBufferBase(target uint32, index uint32, buffer uint32) {\n\tC.glowBindBufferBase(gpBindBufferBase, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer))\n}", "func (f *Framebuffer) Object() interface{} {\n\treturn f.o\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tsyscall.Syscall(gpNamedFramebufferReadBuffer, 2, uintptr(framebuffer), uintptr(src), 0)\n}", "func (self Source) GetBuffer() (buffer Buffer) {\n\treturn Buffer(self.Geti(AlBuffer))\n}", "func (p Plane) GetBuffers() ObjectBuffers {\n\treturn p.buffers\n}", "func (renderbuffer Renderbuffer) IsRenderbuffer() bool {\n\treturn gl.IsRenderbuffer(uint32(renderbuffer))\n}", "func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n C.glowGetBufferSubData(gpGetBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func FrameBuffer(m rv.RenderModel) {\n\tframebuffer(m)\n}", "func IsBuffer(buffer uint32) bool {\n ret := C.glowIsBuffer(gpIsBuffer, (C.GLuint)(buffer))\n return ret == TRUE\n}", "func ReadBuffer(mode uint32) {\n C.glowReadBuffer(gpReadBuffer, (C.GLenum)(mode))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tC.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tC.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src))\n}", "func RenderbufferStorage(target uint32, internalformat uint32, width int32, height int32) {\n C.glowRenderbufferStorage(gpRenderbufferStorage, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func BindBuffer(target Enum, b Buffer) {\n\tgl.BindBuffer(uint32(target), b.Value)\n}", "func (b *mpgBuff) BufferSize() int {\n\treturn b.size\n}", "func (obj *Device) GetBackBuffer(\n\tswapChain uint,\n\tbackBuffer uint,\n\ttyp BACKBUFFER_TYPE,\n) (*Surface, Error) {\n\tvar surface *Surface\n\tret, _, _ := syscall.Syscall6(\n\t\tobj.vtbl.GetBackBuffer,\n\t\t5,\n\t\tuintptr(unsafe.Pointer(obj)),\n\t\tuintptr(swapChain),\n\t\tuintptr(backBuffer),\n\t\tuintptr(typ),\n\t\tuintptr(unsafe.Pointer(&surface)),\n\t\t0,\n\t)\n\treturn surface, toErr(ret)\n}", "func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n\tC.glowGetBufferSubData(gpGetBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n\tC.glowGetBufferSubData(gpGetBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func BufferInit(target Enum, size int, usage Enum) {\n\tgl.BufferData(uint32(target), size, nil, uint32(usage))\n}", "func (g *GLTF) loadBufferView(bvIdx int) ([]byte, error) {\n\n\t// Check if provided buffer view index is valid\n\tif bvIdx < 0 || bvIdx >= len(g.BufferViews) {\n\t\treturn nil, fmt.Errorf(\"invalid buffer view index\")\n\t}\n\tbvData := g.BufferViews[bvIdx]\n\t// Return cached if available\n\tif bvData.cache != nil {\n\t\tlog.Debug(\"Fetching BufferView %d (cached)\", bvIdx)\n\t\treturn bvData.cache, nil\n\t}\n\tlog.Debug(\"Loading BufferView %d\", bvIdx)\n\n\t// Load buffer view buffer\n\tbuf, err := g.loadBuffer(bvData.Buffer)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Establish offset\n\toffset := 0\n\tif bvData.ByteOffset != nil {\n\t\toffset = *bvData.ByteOffset\n\t}\n\n\t// Compute and return offset slice\n\tbvBytes := buf[offset : offset+bvData.ByteLength]\n\n\t// Cache buffer view\n\tg.BufferViews[bvIdx].cache = bvBytes\n\n\treturn bvBytes, nil\n}", "func (self *Graphics) Body() interface{}{\n return self.Object.Get(\"body\")\n}", "func IsRenderbuffer(renderbuffer uint32) bool {\n ret := C.glowIsRenderbuffer(gpIsRenderbuffer, (C.GLuint)(renderbuffer))\n return ret == TRUE\n}", "func FramebufferRenderbuffer(target, attachment, rbTarget Enum, rb Renderbuffer) {\n\tgl.FramebufferRenderbuffer(uint32(target), uint32(attachment), uint32(rbTarget), rb.Value)\n}", "func (gl *WebGL) BindBuffer(target GLEnum, buffer WebGLBuffer) {\n\tgl.context.Call(\"bindBuffer\", target, buffer)\n}", "func RenderbufferStorage(target uint32, internalformat uint32, width int32, height int32) {\n\tsyscall.Syscall6(gpRenderbufferStorage, 4, uintptr(target), uintptr(internalformat), uintptr(width), uintptr(height), 0, 0)\n}", "func (debugging *debuggingOpenGL) BindBuffer(target uint32, buffer uint32) {\n\tdebugging.recordEntry(\"BindBuffer\", target, buffer)\n\tdebugging.gl.BindBuffer(target, buffer)\n\tdebugging.recordExit(\"BindBuffer\")\n}", "func IsBuffer(b Buffer) bool {\n\treturn gl.IsBuffer(b.Value)\n}", "func IsBuffer(buffer uint32) bool {\n\tret := C.glowIsBuffer(gpIsBuffer, (C.GLuint)(buffer))\n\treturn ret == TRUE\n}", "func IsBuffer(buffer uint32) bool {\n\tret := C.glowIsBuffer(gpIsBuffer, (C.GLuint)(buffer))\n\treturn ret == TRUE\n}", "func (self *Graphics) Data() interface{}{\n return self.Object.Get(\"data\")\n}", "func (debugging *debuggingOpenGL) BufferData(target uint32, size int, data interface{}, usage uint32) {\n\tdebugging.recordEntry(\"BufferData\", target, size, data, usage)\n\tdebugging.gl.BufferData(target, size, data, usage)\n\tdebugging.recordExit(\"BufferData\")\n}", "func BufferSubData(target Enum, offset Intptr, size Sizeiptr, data unsafe.Pointer) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcoffset, _ := (C.GLintptr)(offset), cgoAllocsUnknown\n\tcsize, _ := (C.GLsizeiptr)(size), cgoAllocsUnknown\n\tcdata, _ := (unsafe.Pointer)(unsafe.Pointer(data)), cgoAllocsUnknown\n\tC.glBufferSubData(ctarget, coffset, csize, cdata)\n}", "func (p Point) Buffer() *Buffer {\n\treturn p.buffer\n}", "func (g *GLTF) loadBuffer(bufIdx int) ([]byte, error) {\n\n\t// Check if provided buffer index is valid\n\tif bufIdx < 0 || bufIdx >= len(g.Buffers) {\n\t\treturn nil, fmt.Errorf(\"invalid buffer index\")\n\t}\n\tbufData := &g.Buffers[bufIdx]\n\t// Return cached if available\n\tif bufData.cache != nil {\n\t\tlog.Debug(\"Fetching Buffer %d (cached)\", bufIdx)\n\t\treturn bufData.cache, nil\n\t}\n\tlog.Debug(\"Loading Buffer %d\", bufIdx)\n\n\t// If buffer URI use the chunk data field\n\tif bufData.Uri == \"\" {\n\t\treturn g.data, nil\n\t}\n\n\t// Checks if buffer URI is a data URI\n\tvar data []byte\n\tvar err error\n\tif isDataURL(bufData.Uri) {\n\t\tdata, err = loadDataURL(bufData.Uri)\n\t} else {\n\t\t// Try to load buffer from file\n\t\tdata, err = g.loadFileBytes(bufData.Uri)\n\t}\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Checks data length\n\tif len(data) != bufData.ByteLength {\n\t\treturn nil, fmt.Errorf(\"buffer:%d read data length:%d expected:%d\", bufIdx, len(data), bufData.ByteLength)\n\t}\n\t// Cache buffer data\n\tg.Buffers[bufIdx].cache = data\n\tlog.Debug(\"cache data:%v\", len(bufData.cache))\n\treturn data, nil\n}", "func (self *Graphics) GetBounds() *Rectangle{\n return &Rectangle{self.Object.Call(\"getBounds\")}\n}", "func RenderbufferStorage(target, internalFormat GLEnum, width, height int32) {\n\tgl.RenderbufferStorage(uint32(target), uint32(internalFormat), width, height)\n}", "func RenderbufferStorage(target, internalFormat Enum, width, height int) {\n\tgl.RenderbufferStorage(uint32(target), uint32(internalFormat), int32(width), int32(height))\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tsyscall.Syscall6(gpFramebufferRenderbuffer, 4, uintptr(target), uintptr(attachment), uintptr(renderbuffertarget), uintptr(renderbuffer), 0, 0)\n}", "func (b *VBO) GenBuffer() {\n\tgl.GenBuffers(1, &b.vboID)\n\tb.genBound = true\n}", "func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetNamedBufferSubData, 4, uintptr(buffer), uintptr(offset), uintptr(size), uintptr(data), 0, 0)\n}", "func (al *AudioListener) getBuffer() []gumble.AudioPacket {\n\tal.Lock()\n\tdefer al.Unlock()\n\n\tbuf := al.buffer\n\tal.buffer = nil\n\treturn buf\n}", "func IsRenderbuffer(rb Renderbuffer) bool {\n\treturn gl.IsRenderbuffer(rb.Value)\n}", "func IsBuffer(buffer Uint) Boolean {\n\tcbuffer, _ := (C.GLuint)(buffer), cgoAllocsUnknown\n\t__ret := C.glIsBuffer(cbuffer)\n\t__v := (Boolean)(__ret)\n\treturn __v\n}", "func BindRenderbuffer(target Enum, renderbuffer Uint) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcrenderbuffer, _ := (C.GLuint)(renderbuffer), cgoAllocsUnknown\n\tC.glBindRenderbuffer(ctarget, crenderbuffer)\n}", "func BindRenderbuffer(target uint32, renderbuffer uint32) {\n C.glowBindRenderbuffer(gpBindRenderbuffer, (C.GLenum)(target), (C.GLuint)(renderbuffer))\n}", "func BindBufferBase(target uint32, index uint32, buffer uint32) {\n\tsyscall.Syscall(gpBindBufferBase, 3, uintptr(target), uintptr(index), uintptr(buffer))\n}", "func BindRenderbuffer(target GLEnum, renderbuffer Renderbuffer) {\n\tgl.BindRenderbuffer(uint32(target), uint32(renderbuffer))\n}", "func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n C.glowFramebufferRenderbuffer(gpFramebufferRenderbuffer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer))\n}", "func FramebufferRenderbuffer(target Enum, attachment Enum, renderbuffertarget Enum, renderbuffer Uint) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcattachment, _ := (C.GLenum)(attachment), cgoAllocsUnknown\n\tcrenderbuffertarget, _ := (C.GLenum)(renderbuffertarget), cgoAllocsUnknown\n\tcrenderbuffer, _ := (C.GLuint)(renderbuffer), cgoAllocsUnknown\n\tC.glFramebufferRenderbuffer(ctarget, cattachment, crenderbuffertarget, crenderbuffer)\n}", "func (v *SourceView) GetBuffer() (*SourceBuffer, error) {\n\tc := C.gtk_text_view_get_buffer(v.asTextView())\n\tif c == nil {\n\t\treturn nil, nilPtrErr\n\t}\n\treturn wrapSourceBuffer(glib.Take(unsafe.Pointer(c))), nil\n}", "func (debugging *debuggingOpenGL) BindRenderbuffer(target uint32, buffer uint32) {\n\tdebugging.recordEntry(\"BindRenderbuffer\", target, buffer)\n\tdebugging.gl.BindRenderbuffer(target, buffer)\n\tdebugging.recordExit(\"BindRenderbuffer\")\n}", "func rectangleInfo(r rectangle) {\r\n\tfmt.Println(\"Length:\", r.length)\r\n\tfmt.Println(\"Width:\", r.width)\r\n}", "func BindRenderbuffer(target Enum, rb Renderbuffer) {\n\tgl.BindRenderbuffer(uint32(target), rb.Value)\n}", "func (b *Buffer) GetName() string {\n\treturn b.name\n}", "func (buffer Buffer) Bind(target gl.Enum) {\n\tgl.BindBuffer(gl.Enum(target), gl.Uint(buffer))\n}", "func GetBufferParameteri(target, pname Enum) int {\n\tvar params int32\n\tgl.GetBufferParameteriv(uint32(target), uint32(pname), &params)\n\treturn int(params)\n}", "func (b *VBO) Bind(m *Mesh) {\n\tif !b.genBound {\n\t\tpanic(\"A VBO buffer ID has not been generated. Call GenBuffer first.\")\n\t}\n\n\tgl.BindBuffer(gl.ARRAY_BUFFER, b.vboID)\n\tfloatSize := int(unsafe.Sizeof(float32(0)))\n\tgl.BufferData(gl.ARRAY_BUFFER, len(m.Vertices)*floatSize, gl.Ptr(m.Vertices), gl.STATIC_DRAW)\n}", "func (emu *emuState) Framebuffer() []byte {\n\treturn emu.framebuffer()\n}", "func (self *Graphics) Name() string{\n return self.Object.Get(\"name\").String()\n}", "func (self *Graphics) GetLocalBounds() *Rectangle{\n return &Rectangle{self.Object.Call(\"getLocalBounds\")}\n}", "func (sw *statsWidget) Buffer() (*termui.Buffer, error) {\n\tbuffer := termui.NewBuffer(sw.list.GetRect())\n\tsw.list.Lock()\n\tsw.list.Draw(buffer)\n\tsw.list.Unlock()\n\treturn buffer, nil\n}", "func (p *movingAverageProcessor) getBufferData(index int, namespace string) interface{} {\n\n\treturn p.movingAverageMap[namespace].movingAverageBuf[index]\n}", "func (native *OpenGL) BindBuffer(target uint32, buffer uint32) {\n\tgl.BindBuffer(target, buffer)\n}", "func (native *OpenGL) RenderbufferStorage(target uint32, internalformat uint32, width int32, height int32) {\n\tgl.RenderbufferStorage(target, internalformat, width, height)\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tC.glowGetNamedBufferParameteriv(gpGetNamedBufferParameteriv, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tC.glowGetNamedBufferParameteriv(gpGetNamedBufferParameteriv, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetNamedBufferParameteriv, 3, uintptr(buffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func BindBuffer(target uint32, buffer uint32) {\n C.glowBindBuffer(gpBindBuffer, (C.GLenum)(target), (C.GLuint)(buffer))\n}", "func RenderbufferStorage(target uint32, internalformat uint32, width int32, height int32) {\n\tC.glowRenderbufferStorage(gpRenderbufferStorage, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func RenderbufferStorage(target uint32, internalformat uint32, width int32, height int32) {\n\tC.glowRenderbufferStorage(gpRenderbufferStorage, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func (v *TextView) GetBuffer() (*TextBuffer, error) {\n\tc := C.gtk_text_view_get_buffer(v.native())\n\tif c == nil {\n\t\treturn nil, nilPtrErr\n\t}\n\treturn wrapTextBuffer(glib.Take(unsafe.Pointer(c))), nil\n}", "func (e *editor) indexOfBuffer(element *buffer) int {\n\tfor k, v := range e.buffers {\n\t\tif element == v {\n\t\t\treturn k\n\t\t}\n\t}\n\treturn -1 //not found.\n}", "func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) {\n\tsyscall.Syscall(gpGetNamedBufferPointerv, 3, uintptr(buffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func getBuffer() *bytes.Buffer {\n\treturn bufferPool.Get().(*bytes.Buffer)\n}", "func (cs *cpuState) Framebuffer() []byte {\n\treturn cs.LCD.framebuffer[:]\n}", "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *int8) {\n C.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func GetNamedRenderbufferParameteriv(renderbuffer uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetNamedRenderbufferParameteriv, 3, uintptr(renderbuffer), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func (native *OpenGL) FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tgl.FramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)\n}", "func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) {\n\tC.glowGetNamedBufferPointerv(gpGetNamedBufferPointerv, (C.GLuint)(buffer), (C.GLenum)(pname), params)\n}", "func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) {\n\tC.glowGetNamedBufferPointerv(gpGetNamedBufferPointerv, (C.GLuint)(buffer), (C.GLenum)(pname), params)\n}", "func GetRenderbufferInternalFormat(target GLEnum) GLEnum {\n\tvar params int32\n\tgl.GetRenderbufferParameteriv(uint32(target), gl.RENDERBUFFER_INTERNAL_FORMAT, &params)\n\treturn GLEnum(params)\n}", "func ReadBuffer(src uint32) {\n\tC.glowReadBuffer(gpReadBuffer, (C.GLenum)(src))\n}", "func ReadBuffer(src uint32) {\n\tC.glowReadBuffer(gpReadBuffer, (C.GLenum)(src))\n}", "func (debugging *debuggingOpenGL) RenderbufferStorage(target uint32, internalFormat uint32, width int32, height int32) {\n\tdebugging.recordEntry(\"RenderbufferStorage\", target, internalFormat, width, height)\n\tdebugging.gl.RenderbufferStorage(target, internalFormat, width, height)\n\tdebugging.recordExit(\"RenderbufferStorage\")\n}", "func BindBuffer(target Enum, buffer Uint) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcbuffer, _ := (C.GLuint)(buffer), cgoAllocsUnknown\n\tC.glBindBuffer(ctarget, cbuffer)\n}", "func GetRenderbufferBlueSize(target GLEnum) int32 {\n\tvar params int32\n\tgl.GetRenderbufferParameteriv(uint32(target), gl.RENDERBUFFER_BLUE_SIZE, &params)\n\treturn params\n}", "func (debugging *debuggingOpenGL) FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) {\n\tdebugging.recordEntry(\"FramebufferRenderbuffer\", target, attachment, renderbuffertarget, renderbuffer)\n\tdebugging.gl.FramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)\n\tdebugging.recordExit(\"FramebufferRenderbuffer\")\n}", "func RenderbufferStorage(target Enum, internalformat Enum, width Sizei, height Sizei) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcinternalformat, _ := (C.GLenum)(internalformat), cgoAllocsUnknown\n\tcwidth, _ := (C.GLsizei)(width), cgoAllocsUnknown\n\tcheight, _ := (C.GLsizei)(height), cgoAllocsUnknown\n\tC.glRenderbufferStorage(ctarget, cinternalformat, cwidth, cheight)\n}", "func (msg *Message) RenderBuffer() *bytes.Buffer {\n\tbuffer := bufpool.New()\n\n\tif msg.Sender != EMPTY {\n\t\tbuffer.WriteString(COLON)\n\t\tbuffer.WriteString(msg.Sender)\n\t\tbuffer.WriteString(SPACE)\n\t}\n\n\tif msg.Code > 0 {\n\t\tbuffer.WriteString(fmt.Sprintf(PADNUM, msg.Code))\n\t} else if msg.Command != EMPTY {\n\t\tbuffer.WriteString(msg.Command)\n\t}\n\n\tif len(msg.Params) > 0 {\n\t\tif len(msg.Params) > 14 {\n\t\t\tmsg.Params = msg.Params[0:15]\n\t\t}\n\n\t\tbuffer.WriteString(SPACE)\n\t\tbuffer.WriteString(strings.Join(msg.Params, SPACE))\n\t}\n\n\tif msg.Text != EMPTY {\n\t\tbuffer.WriteString(SPACE)\n\t\tbuffer.WriteString(COLON)\n\t\tbuffer.WriteString(msg.Text)\n\t}\n\n\tbuffer.WriteString(CRLF)\n\n\treturn buffer\n}" ]
[ "0.5956611", "0.57766265", "0.56857216", "0.56284696", "0.5612826", "0.55991256", "0.5587534", "0.55565536", "0.554691", "0.5534078", "0.5534078", "0.5481433", "0.5481433", "0.5474842", "0.54726976", "0.54465646", "0.5429145", "0.5424624", "0.54231966", "0.5408377", "0.54042757", "0.53909755", "0.5377316", "0.5377316", "0.53697425", "0.53678817", "0.5311602", "0.53051805", "0.5300259", "0.5300259", "0.529759", "0.5286751", "0.5284654", "0.52512485", "0.525065", "0.5248701", "0.52440387", "0.52401", "0.5239224", "0.5232104", "0.5232104", "0.5229063", "0.52180386", "0.5208815", "0.5207508", "0.52065533", "0.5193268", "0.5185307", "0.5179203", "0.5173736", "0.5172232", "0.5170808", "0.51673746", "0.5154787", "0.5151605", "0.5139476", "0.51366645", "0.5129285", "0.5128176", "0.5127553", "0.51257205", "0.5121194", "0.5118391", "0.5114605", "0.5109744", "0.5107793", "0.5106575", "0.5105966", "0.5104776", "0.5103898", "0.51023453", "0.50911206", "0.5090381", "0.5082391", "0.5081804", "0.50743073", "0.506959", "0.506959", "0.5069395", "0.5068504", "0.506536", "0.506536", "0.5060658", "0.5059115", "0.50553036", "0.50534636", "0.5052723", "0.505004", "0.5044517", "0.50337094", "0.5030309", "0.5030309", "0.50176084", "0.5015044", "0.5015044", "0.5013889", "0.5010804", "0.501047", "0.5005461", "0.50047505", "0.49922904" ]
0.0
-1
get separable convolution filter kernel images
func GetSeparableFilter(target uint32, format uint32, xtype uint32, row unsafe.Pointer, column unsafe.Pointer, span unsafe.Pointer) { C.glowGetSeparableFilter(gpGetSeparableFilter, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), row, column, span) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetConvolutionFilter(target uint32, format uint32, xtype uint32, image unsafe.Pointer) {\n C.glowGetConvolutionFilter(gpGetConvolutionFilter, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), image)\n}", "func createFilter(img image.Image, factor [2]float32, size int, kernel func(float32) float32) (f Filter) {\n\tsizeX := size * (int(math.Ceil(float64(factor[0]))))\n\tsizeY := size * (int(math.Ceil(float64(factor[1]))))\n\n\tswitch img.(type) {\n\tdefault:\n\t\tf = &filterModel{\n\t\t\t&genericConverter{img},\n\t\t\tfactor, kernel,\n\t\t\tmake([]colorArray, sizeX), make([]colorArray, sizeY),\n\t\t}\n\tcase *image.RGBA:\n\t\tf = &filterModel{\n\t\t\t&rgbaConverter{img.(*image.RGBA)},\n\t\t\tfactor, kernel,\n\t\t\tmake([]colorArray, sizeX), make([]colorArray, sizeY),\n\t\t}\n\tcase *image.RGBA64:\n\t\tf = &filterModel{\n\t\t\t&rgba64Converter{img.(*image.RGBA64)},\n\t\t\tfactor, kernel,\n\t\t\tmake([]colorArray, sizeX), make([]colorArray, sizeY),\n\t\t}\n\tcase *image.Gray:\n\t\tf = &filterModel{\n\t\t\t&grayConverter{img.(*image.Gray)},\n\t\t\tfactor, kernel,\n\t\t\tmake([]colorArray, sizeX), make([]colorArray, sizeY),\n\t\t}\n\tcase *image.Gray16:\n\t\tf = &filterModel{\n\t\t\t&gray16Converter{img.(*image.Gray16)},\n\t\t\tfactor, kernel,\n\t\t\tmake([]colorArray, sizeX), make([]colorArray, sizeY),\n\t\t}\n\tcase *image.YCbCr:\n\t\tf = &filterModel{\n\t\t\t&ycbcrConverter{img.(*image.YCbCr)},\n\t\t\tfactor, kernel,\n\t\t\tmake([]colorArray, sizeX), make([]colorArray, sizeY),\n\t\t}\n\t}\n\treturn\n}", "func (img *FloatImage) convolve(kernel *ConvKernel, px planeExtension) *FloatImage {\n\n\t// convolve each plane independently:\n\tres := new([3][]float32)\n\tfor i := 0; i < 3; i++ {\n\t\tconvolvePlane(&img.Ip[i], kernel, img.Width, img.Height, px)\n\t}\n\n\treturn &FloatImage{\n\t\tIp: *res,\n\t\tWidth: img.Width,\n\t\tHeight: img.Height,\n\t}\n}", "func ConvolutionFilter2D(target uint32, internalformat uint32, width int32, height int32, format uint32, xtype uint32, image unsafe.Pointer) {\n\tC.glowConvolutionFilter2D(gpConvolutionFilter2D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), image)\n}", "func ConvolutionFilter2D(target uint32, internalformat uint32, width int32, height int32, format uint32, xtype uint32, image unsafe.Pointer) {\n C.glowConvolutionFilter2D(gpConvolutionFilter2D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), image)\n}", "func (p *Image64) Convolved(k Kernel64) *Image64 {\n\tswitch k.(type) {\n\tcase *separableKernel64:\n\t\treturn p.separableConvolution(k.(*separableKernel64))\n\tdefault:\n\t\treturn p.fullConvolution(k)\n\t}\n\tpanic(\"unreachable\")\n}", "func GetConvolutionFilter(target uint32, format uint32, xtype uint32, image unsafe.Pointer) {\n\tC.glowGetConvolutionFilter(gpGetConvolutionFilter, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), image)\n}", "func (fir *FIR) Convolve(input []float64) ([]float64, error) {\n\tkernelSize := len(fir.kernel)\n\tn := len(input)\n\n\tif n <= kernelSize {\n\t\terr := fmt.Errorf(\"input size %d is not greater than kernel size %d\", n, kernelSize)\n\t\treturn []float64{}, err\n\t}\n\n\toutput := make([]float64, n)\n\n\t//\n\tfor i := 0; i < kernelSize; i++ {\n\t\tsum := 0.0\n\n\t\t// convolve the input with the filter kernel\n\t\tfor j := 0; j < i; j++ {\n\t\t\tsum += (input[j] * fir.kernel[kernelSize-(1+i-j)])\n\t\t}\n\n\t\toutput[i] = sum\n\t}\n\n\tfor i := kernelSize; i < n; i++ {\n\t\tsum := 0.0\n\n\t\t// convolve the input with the filter kernel\n\t\tfor j := 0; j < kernelSize; j++ {\n\t\t\tsum += (input[i-j] * fir.kernel[j])\n\t\t}\n\n\t\toutput[i] = sum\n\t}\n\n\treturn output, nil\n}", "func Convolve(src, dst []float64, kernel []float64, border Border) {\n\twidth := len(kernel)\n\thalfWidth := width / 2\n\tfor i := range dst {\n\t\tk := i - halfWidth\n\t\tvar sum float64\n\t\tif k >= 0 && k <= len(src)-width {\n\t\t\tfor j, x := range kernel {\n\t\t\t\tsum += src[k+j] * x\n\t\t\t}\n\t\t} else {\n\t\t\tfor j, x := range kernel {\n\t\t\t\tsum += border.Interpolate(src, k+j) * x\n\t\t\t}\n\t\t}\n\t\tdst[i] = sum\n\t}\n}", "func ConcurrentEdgeFilter(imgSrc image.Image) image.Image {\n\tngo:=runtime.NumCPU()\n\tout := make(chan portion)\n\tslices := imagetools.CropChevauchement(imgSrc, ngo, 10) //on laisse 5 pixels de chevauchement\n\n\tfor i := 0; i < ngo; i++ {\n\t\tgo edgWorker(i, out, slices[i][0])\n\t}\n\n\tfor i := 0; i < ngo; i++ {\n\t\tslice := <-out\n\t\tslices[slice.id][0] = slice.img\n\t}\n\n\timgEnd := imagetools.RebuildChevauchement(slices, 10)\n\n\treturn imgEnd\n\n}", "func ConstructedConv2D(m *Model, x tensor.Tensor, kernelH int, kernelW int, filters int) tensor.Tensor {\n\tslen := len(x.Shape())\n\tfAxis := slen - 1\n\twAxis := slen - 2\n\thAxis := slen - 3\n\tinFilters := x.Shape()[fAxis]\n\tinW := x.Shape()[wAxis]\n\tinH := x.Shape()[hAxis]\n\n\twShape := onesLike(x)\n\twShape[fAxis] = filters\n\twShape[wAxis] = inFilters * kernelH * kernelW\n\n\tbShape := onesLike(x)\n\tbShape[fAxis] = filters\n\n\tweight := m.AddWeight(wShape...)\n\tbias := m.AddBias(bShape...)\n\n\tslices := make([]tensor.Tensor, 0, kernelH*kernelW)\n\n\tfor hoff := 0; hoff < kernelH; hoff++ {\n\t\thslice := tensor.Slice(x, hAxis, hoff, inH-kernelH+1+hoff)\n\t\tfor woff := 0; woff < kernelW; woff++ {\n\t\t\twslice := tensor.Slice(hslice, wAxis, woff, inW-kernelW+1+woff)\n\t\t\tslices = append(slices, wslice)\n\t\t}\n\t}\n\n\tx = tensor.Concat(fAxis, slices...)\n\tx = tensor.MatMul(x, weight, wAxis, fAxis)\n\tx = tensor.Add(x, bias)\n\n\treturn x\n}", "func CopyConvolutionFilter2D(target uint32, internalformat uint32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyConvolutionFilter2D(gpCopyConvolutionFilter2D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func (img *ImageTask) ApplyConvulusion(neighbors *Neighbors, kernel [9]float64) *Colors{\n\n\tvar blue float64\n\tvar green float64\n\tvar red float64\n\tfor r := 0; r < 9; r++ {\n\t\tred = red + (neighbors.inputs[r].Red * kernel[r])\n\t\tgreen = green + (neighbors.inputs[r].Green * kernel[r])\n\t\tblue = blue + (neighbors.inputs[r].Blue * kernel[r])\n\t}\n\n\treturned := Colors{Red: red, Green: green, Blue: blue, Alpha: neighbors.inputs[4].Alpha}\n\treturn &returned\n}", "func CopyConvolutionFilter2D(target uint32, internalformat uint32, x int32, y int32, width int32, height int32) {\n C.glowCopyConvolutionFilter2D(gpCopyConvolutionFilter2D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func ConvDiff(geom *Geom, fltOn, fltOff *etensor.Float32, imgOn, imgOff, out *etensor.Float32, gain, gainOn float32) {\n\tfy := fltOn.Dim(0)\n\tfx := fltOn.Dim(1)\n\n\tgeom.FiltSz = image.Point{fx, fy}\n\tgeom.UpdtFilt()\n\n\timgSz := image.Point{imgOn.Dim(1), imgOn.Dim(0)}\n\tgeom.SetSize(imgSz)\n\toshp := []int{2, int(geom.Out.Y), int(geom.Out.X)}\n\tif !etensor.EqualInts(oshp, out.Shp) {\n\t\tout.SetShape(oshp, nil, []string{\"OnOff\", \"Y\", \"X\"})\n\t}\n\tncpu := nproc.NumCPU()\n\tnthrs, nper, rmdr := nproc.ThreadNs(ncpu, geom.Out.Y)\n\tvar wg sync.WaitGroup\n\tfor th := 0; th < nthrs; th++ {\n\t\twg.Add(1)\n\t\tyst := th * nper\n\t\tgo convDiffThr(&wg, geom, yst, nper, fltOn, fltOff, imgOn, imgOff, out, gain, gainOn)\n\t}\n\tif rmdr > 0 {\n\t\twg.Add(1)\n\t\tyst := nthrs * nper\n\t\tgo convDiffThr(&wg, geom, yst, rmdr, fltOn, fltOff, imgOn, imgOff, out, gain, gainOn)\n\t}\n\twg.Wait()\n}", "func ConvolutionFilter1D(target uint32, internalformat uint32, width int32, format uint32, xtype uint32, image unsafe.Pointer) {\n C.glowConvolutionFilter1D(gpConvolutionFilter1D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), image)\n}", "func SeparableFilter2D(target uint32, internalformat uint32, width int32, height int32, format uint32, xtype uint32, row unsafe.Pointer, column unsafe.Pointer) {\n\tC.glowSeparableFilter2D(gpSeparableFilter2D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), row, column)\n}", "func ConvolutionFilter1D(target uint32, internalformat uint32, width int32, format uint32, xtype uint32, image unsafe.Pointer) {\n\tC.glowConvolutionFilter1D(gpConvolutionFilter1D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), image)\n}", "func Conv(scope *Scope, input tf.Output, filter tf.Output, strides []int64, padding string, optional ...ConvAttr) (output tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"strides\": strides, \"padding\": padding}\n\tfor _, a := range optional {\n\t\ta(attrs)\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"Conv\",\n\t\tInput: []tf.Input{\n\t\t\tinput, filter,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0)\n}", "func SeparableFilter2D(target uint32, internalformat uint32, width int32, height int32, format uint32, xtype uint32, row unsafe.Pointer, column unsafe.Pointer) {\n C.glowSeparableFilter2D(gpSeparableFilter2D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), row, column)\n}", "func CopyConvolutionFilter1D(target uint32, internalformat uint32, x int32, y int32, width int32) {\n C.glowCopyConvolutionFilter1D(gpCopyConvolutionFilter1D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width))\n}", "func (img *FloatImage) convolveWith(kernel *ConvKernel, px planeExtension) {\n\n\t// convolve each plane independently:\n\tfor i := 0; i < 3; i++ {\n\t\timg.Ip[i] = *convolvePlane(&img.Ip[i], kernel, img.Width, img.Height, px)\n\t}\n}", "func worker(threads int, doneWorker chan<- bool, imageTasks <-chan *imagetask.ImageTask, imageResults chan<- *imagetask.ImageTask) {\n\n\t// Initial placing image chunks in to a channel for filter to consume.\n\tchunkStreamGenerator := func(done <- chan interface{}, imageChunks []*imagetask.ImageTask) chan *imagetask.ImageTask {\n\t\tchunkStream := make(chan *imagetask.ImageTask)\n\t\tgo func() {\n\t\t\tdefer close(chunkStream)\n\t\t\tfor _, chunk := range imageChunks {\n\t\t\t\tselect {\n\t\t\t\tcase <-done:\n\t\t\t\t\treturn\n\t\t\t\tcase chunkStream <- chunk:\n\t\t\t\t}\n\t\t\t}\n\t\t}()\n\t\treturn chunkStream\n\t}\n\n\t// Filter applies a filter in a pipeline fashion. \n\t// A goroutine is spawned for each chunk that needs to be filtered (which is numOfThreads chunks for each filter effect)\n\tfilter := func(threads int, effect string, effectNum int, done <- chan interface{}, chunkStream chan *imagetask.ImageTask) chan *imagetask.ImageTask {\n\t\tfilterStream := make(chan *imagetask.ImageTask, threads) // Only numOfThreads image chunks should be in the local filter channel.\n\t\tdonefilterChunk := make(chan bool)\n\t\tfor chunk := range chunkStream { // For each image chunk ...\n\t\t\tif effectNum > 0 {\n\t\t\t\tchunk.Img.UpdateInImg() // Replace inImg with outImg if not the first effect to compund effects.\n\t\t\t}\t\n\t\t\tgo func(chunk *imagetask.ImageTask) { // Spawn a goroutine for each chunk, which is equal to the numOfThreads. Each goroutine works on a portion of the image.\n\t\t\t\tselect {\n\t\t\t\tcase <-done:\n\t\t\t\t\tdonefilterChunk <- true\n\t\t\t\t\treturn\n\t\t\t\tcase filterStream <- chunk:\n\t\t\t\t\tif effect != \"G\" {\n\t\t\t\t\t\tchunk.Img.ApplyConvolution(effect) // Can wait to apply effect until after chunk is in the channel because has to wait for all goroutines to finish before it can move on to the next filter for a given image.\n\t\t\t\t\t} else {\n\t\t\t\t\t\tchunk.Img.Grayscale()\n\t\t\t\t\t}\n\t\t\t\t\tdonefilterChunk <- true // Indicate that the filtering is done for the given chunk.\n\t\t\t\t}\n\t\t\t}(chunk)\n\t\t}\n\t\tfor i := 0; i < threads; i ++ { // Wait for all portions to be put through one filter because of image dependencies with convolution.\n\t\t\t<-donefilterChunk\n\t\t}\n\t\treturn filterStream\n\t}\n\n\t// While there are more image tasks to grab ...\n\tfor true {\n\t\t// Grab image task from image task channel.\t\n\t\timgTask, more := <-imageTasks\n\n\t\t// If you get an image task, split up the image in to even chunks by y-pixels.\n\t\tif more {\n\t\t\timageChunks := imgTask.SplitImage(threads)\n\t\t\t\n\t\t\t// Iterate through filters on image chunks.\n\t\t\t// Will spawn a goroutine for each chunk in each filter (n goroutines per filter)\n\t\t\tdone := make(chan interface{})\n\t\t\tdefer close(done)\n\t\t\tchunkStream := chunkStreamGenerator(done, imageChunks)\n\t\t\tfor i := 0; i < len(imgTask.Effects); i++ {\n\t\t\t\teffect := imgTask.Effects[i]\n\t\t\t\tchunkStream = filter(threads, effect, i, done, chunkStream)\n\t\t\t\tclose(chunkStream)\n\t\t\t}\n\n\t\t\t// Put the image back together.\n\t\t\treconstructedImage, _ := imgTask.Img.NewImage()\n\t\t\tfor imgChunk := range chunkStream {\n\t\t\t\treconstructedImage.ReAddChunk(imgChunk.Img, imgChunk.YPixelStart, imgChunk.ChunkPart)\n\t\t\t}\n\t\t\timgTask.Img = reconstructedImage\n\t\t\timageResults <- imgTask // Send image to results channel to be saved.\n\n\t\t} else { // Otherwise, if there are no more image tasks, then goroutine worker exits.\n\t\t\tdoneWorker <- true // Indicate that the worker is done.\n\t\t\treturn\n\t\t}\n\t}\n}", "func CopyConvolutionFilter1D(target uint32, internalformat uint32, x int32, y int32, width int32) {\n\tC.glowCopyConvolutionFilter1D(gpCopyConvolutionFilter1D, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width))\n}", "func convolvePlane(planePtr *[]float32, kernel *ConvKernel, width, height int, toPlaneCoords planeExtension) *[]float32 {\n\n\tplane := *planePtr\n\tradius := kernel.Radius\n\tdiameter := radius*2 + 1\n\tres := make([]float32, width*height)\n\n\t// for each pixel of the intensity plane:\n\tfor y := 0; y < height; y++ {\n\t\tfor x := 0; x < width; x++ {\n\t\t\tindex := y*width + x\n\n\t\t\t// compute convolved value of the pixel:\n\t\t\tresV := float32(0)\n\t\t\tfor yk := 0; yk < diameter; yk++ {\n\t\t\t\typ := toPlaneCoords(y+yk-radius, height)\n\t\t\t\tfor xk := 0; xk < diameter; xk++ {\n\t\t\t\t\txp := toPlaneCoords(x+xk-radius, width)\n\t\t\t\t\tplaneIndex := yp*width + xp\n\t\t\t\t\tkernelIndex := yk*diameter + xk\n\t\t\t\t\tresV += (plane[planeIndex] * kernel.Kernel[kernelIndex])\n\t\t\t\t}\n\t\t\t}\n\t\t\tres[index] = resV\n\t\t}\n\t}\n\n\treturn &res\n}", "func GetSeparableFilter(target uint32, format uint32, xtype uint32, row unsafe.Pointer, column unsafe.Pointer, span unsafe.Pointer) {\n C.glowGetSeparableFilter(gpGetSeparableFilter, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), row, column, span)\n}", "func ExampleConv2() {\n\n\tconv := cnns.NewConvLayer(&tensor.TDsize{X: 5, Y: 5, Z: 3}, 1, 3, 2)\n\trelu := cnns.NewReLULayer(conv.GetOutputSize())\n\tmaxpool := cnns.NewPoolingLayer(relu.GetOutputSize(), 2, 2, \"max\", \"valid\")\n\tfullyconnected := cnns.NewFullyConnectedLayer(maxpool.GetOutputSize(), 2)\n\n\tnet := cnns.WholeNet{\n\t\tLP: cnns.NewLearningParametersDefault(),\n\t}\n\tnet.Layers = append(net.Layers, conv)\n\tnet.Layers = append(net.Layers, relu)\n\tnet.Layers = append(net.Layers, maxpool)\n\tnet.Layers = append(net.Layers, fullyconnected)\n\n\tredChannel := mat.NewDense(5, 5, []float64{\n\t\t1, 0, 1, 0, 2,\n\t\t1, 1, 3, 2, 1,\n\t\t1, 1, 0, 1, 1,\n\t\t2, 3, 2, 1, 3,\n\t\t0, 2, 0, 1, 0,\n\t})\n\tgreenChannel := mat.NewDense(5, 5, []float64{\n\t\t1, 0, 0, 1, 0,\n\t\t2, 0, 1, 2, 0,\n\t\t3, 1, 1, 3, 0,\n\t\t0, 3, 0, 3, 2,\n\t\t1, 0, 3, 2, 1,\n\t})\n\tblueChannel := mat.NewDense(5, 5, []float64{\n\t\t2, 0, 1, 2, 1,\n\t\t3, 3, 1, 3, 2,\n\t\t2, 1, 1, 1, 0,\n\t\t3, 1, 3, 2, 0,\n\t\t1, 1, 2, 1, 1,\n\t})\n\n\tkernel1R := mat.NewDense(3, 3, []float64{\n\t\t0, 1, 0,\n\t\t0, 0, 2,\n\t\t0, 1, 0,\n\t})\n\tkernel1G := mat.NewDense(3, 3, []float64{\n\t\t2, 1, 0,\n\t\t0, 0, 0,\n\t\t0, 3, 0,\n\t})\n\tkernel1B := mat.NewDense(3, 3, []float64{\n\t\t1, 0, 0,\n\t\t1, 0, 0,\n\t\t0, 0, 2,\n\t})\n\n\tkernel2R := mat.NewDense(3, 3, []float64{\n\t\t0, -1, 0,\n\t\t0, 0, 2,\n\t\t0, 1, 0,\n\t})\n\tkernel2G := mat.NewDense(3, 3, []float64{\n\t\t2, 1, 0,\n\t\t0, 0, 0,\n\t\t0, -3, 0,\n\t})\n\tkernel2B := mat.NewDense(3, 3, []float64{\n\t\t1, 0, 0,\n\t\t1, 0, 0,\n\t\t0, 0, -2,\n\t})\n\n\timg2 := &mat.Dense{}\n\timg2.Stack(redChannel, greenChannel)\n\timage := &mat.Dense{}\n\timage.Stack(img2, blueChannel)\n\n\tkernel1 := &mat.Dense{}\n\tkernel1.Stack(kernel1R, kernel1G)\n\tconvCustomWeights1 := &mat.Dense{}\n\tconvCustomWeights1.Stack(kernel1, kernel1B)\n\n\tkernel2 := &mat.Dense{}\n\tkernel2.Stack(kernel2R, kernel2G)\n\tconvCustomWeights2 := &mat.Dense{}\n\tconvCustomWeights2.Stack(kernel2, kernel2B)\n\tconv.SetCustomWeights([]*mat.Dense{convCustomWeights1, convCustomWeights2})\n\n\tfcCustomWeights := mat.NewDense(2, maxpool.GetOutputSize().Total(), []float64{\n\t\t-0.19908814, 0.01521263,\n\t\t0.17908468, -0.28144695,\n\t})\n\tfullyconnected.SetCustomWeights([]*mat.Dense{fcCustomWeights})\n\n\tfmt.Printf(\"Layers weights:\\n\")\n\tfor i := range net.Layers {\n\t\tfmt.Printf(\"%s #%d weights:\\n\", net.Layers[i].GetType(), i)\n\t\tnet.Layers[i].PrintWeights()\n\t}\n\n\tfmt.Println(\"\\tDoing training....\")\n\tfor e := 0; e < 1; e++ {\n\t\terr := net.FeedForward(image)\n\t\tif err != nil {\n\t\t\tlog.Printf(\"Feedforward caused error: %s\", err.Error())\n\t\t\treturn\n\t\t}\n\n\t\tdesired := mat.NewDense(2, 1, []float64{0.15, 0.8})\n\t\terr = net.Backpropagate(desired)\n\t\tif err != nil {\n\t\t\tlog.Printf(\"Backpropagate caused error: %s\", err.Error())\n\t\t\treturn\n\t\t}\n\n\t\tfmt.Printf(\"Epoch #%d. New layers weights\\n\", e)\n\t\tfor i := range net.Layers {\n\t\t\tfmt.Printf(\"%s #%d weights on epoch #%d:\\n\", net.Layers[i].GetType(), i, e)\n\t\t\tnet.Layers[i].PrintWeights()\n\t\t}\n\t}\n}", "func (e FusedOps) C() C.cudnnFusedOps_t { return C.cudnnFusedOps_t(e) }", "func applyConvolutionToPixel(im ImageMatrix, x int, y int, cmSize int, column []color.RGBA, cm ConvolutionMatrix, conFunc func(ImageMatrix, int, int, int, int, color.RGBA, float64) int) {\n\tcurrentColour := im[x][y]\n\tredTotal := 0\n\tgreenTotal := 0\n\tblueTotal := 0\n\tweight := 0\n\n\tkernelMatrix := im.GetKernelMatrix(x, y, cmSize)\n\n\tfor i, kernelColumn := range kernelMatrix {\n\t\tfor j, kernelPixelColour := range kernelColumn {\n\n\t\t\t// get the distance of the current pixel compared to the centre of the kernel\n\t\t\t// the centre one is the one we are modifying and saving to a new image/matrix of course...\n\t\t\tdistance := math.Sqrt(math.Pow(float64(cmSize-i), 2) + math.Pow(float64(cmSize-j), 2))\n\n\t\t\t// Call the function the user passed and get the return weight of how much influence\n\t\t\t// it should have over the centre pixel we want to change\n\t\t\t// We are multipling it by the weight in the convolution matrix as that way you can\n\t\t\t// control an aspect of the weight through the matrix as well (as well as the function that\n\t\t\t// we pass in of course :)\n\t\t\tcmValue := conFunc(im, x, y, i, j, kernelPixelColour, distance) * int(cm[i][j])\n\n\t\t\t// apply the influence / weight ... (eg. if cmValue was 0, then the current pixel would have\n\t\t\t// no influence over the pixel we are changing, if it was large in comparision to what we return\n\t\t\t// for the other kernel pixels, then it will have a large influence)\n\t\t\tredTotal += int(kernelPixelColour.R) * cmValue\n\t\t\tgreenTotal += int(kernelPixelColour.G) * cmValue\n\t\t\tblueTotal += int(kernelPixelColour.B) * cmValue\n\t\t\tweight += cmValue\n\t\t}\n\t}\n\n\t// If the convolution matrix normalised itself; aka, say it was something like:\n\t// { 0 -1 0}\n\t// {-1 4 -1}\n\t// { 0 -1 0}\n\t// then adding the entries (4 + (-1) + (-1) + (-1) + (-1)) results in a zero, in which case we leave\n\t// the weights alone (by setting the weight to divide by to 1) (aka, the weights do not have an impact,\n\t// but the pixels with a weight more more or less than 0 still do have an impact on the pixel\n\t// we are changing of course)\n\tif weight == 0 {\n\t\tweight = 1\n\t}\n\n\t// Normalise the values (based on the weight (total's in the matrix))\n\tnewRedValue := redTotal / weight\n\tnewGreenValue := greenTotal / weight\n\tnewBlueValue := blueTotal / weight\n\n\t// If the values are \"out of range\" (outside the colour range of 0-255) then set them to 0 (absence of that\n\t// colour) if they were negative or 255 (100% of that colour) if they were greater than the max allowed.\n\tif newRedValue < 0 {\n\t\tnewRedValue = 0\n\t} else if newRedValue > 255 {\n\t\tnewRedValue = 255\n\t}\n\n\tif newGreenValue < 0 {\n\t\tnewGreenValue = 0\n\t} else if newGreenValue > 255 {\n\t\tnewGreenValue = 255\n\t}\n\n\tif newBlueValue < 0 {\n\t\tnewBlueValue = 0\n\t} else if newBlueValue > 255 {\n\t\tnewBlueValue = 255\n\t}\n\n\t// Assign the new values to the pixel in the column 'column' at position y\n\tcolumn[y] = color.RGBA{uint8(newRedValue), uint8(newGreenValue), uint8(newBlueValue), currentColour.A}\n\t// fmt.Printf(\"[%v,%v] %v => %v\\n\", x, y, currentColour, column[y])\n}", "func Dilation2DBackpropFilter(scope *Scope, input tf.Output, filter tf.Output, out_backprop tf.Output, strides []int64, rates []int64, padding string) (filter_backprop tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"strides\": strides, \"rates\": rates, \"padding\": padding}\n\topspec := tf.OpSpec{\n\t\tType: \"Dilation2DBackpropFilter\",\n\t\tInput: []tf.Input{\n\t\t\tinput, filter, out_backprop,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0)\n}", "func Conv2D(t Tensor, k Tensor, hAxis int, wAxis int, fAxis int) Tensor {\n\tkh, kw := k.Shape()[0], k.Shape()[1]\n\treturn &Conv2DTensor{\n\t\tbaseTensor: base(conv2d(t, k, hAxis, wAxis, fAxis), 1, t, k),\n\t\tt: t,\n\t\tk: k,\n\t\thAxis: hAxis,\n\t\twAxis: wAxis,\n\t\tfAxis: fAxis,\n\t\tpadH: kh - 1,\n\t\tpadW: kw - 1,\n\t}\n}", "func StepConvolution() *Step {\n\t// TODO\n\treturn nil\n}", "func QuantizedConv2DPerChannel(scope *Scope, input tf.Output, filter tf.Output, min_input tf.Output, max_input tf.Output, min_filter tf.Output, max_filter tf.Output, strides []int64, padding string, optional ...QuantizedConv2DPerChannelAttr) (output tf.Output, min_output tf.Output, max_output tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"strides\": strides, \"padding\": padding}\n\tfor _, a := range optional {\n\t\ta(attrs)\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"QuantizedConv2DPerChannel\",\n\t\tInput: []tf.Input{\n\t\t\tinput, filter, min_input, max_input, min_filter, max_filter,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0), op.Output(1), op.Output(2)\n}", "func newImageBinaryChannels(imgSrc image.Image, colorChannelTypes ...channelType) []*imageBinaryChannel {\n\tchannels := make([]*imageBinaryChannel, 3)\n\tmax := imgSrc.Bounds().Max\n\tw, h := max.X, max.Y\n\tfor i, channelType := range colorChannelTypes {\n\t\tcolorChannel := image.NewGray(image.Rectangle{Max: image.Point{w, h}})\n\t\tfor x := 0; x < w; x++ {\n\t\t\tfor y := 0; y < h; y++ {\n\t\t\t\tcolorPixel := imgSrc.At(x, y).(color.NRGBA)\n\t\t\t\tvar c uint8\n\t\t\t\tswitch channelType {\n\t\t\t\tcase red:\n\t\t\t\t\tc = colorPixel.R\n\t\t\t\tcase green:\n\t\t\t\t\tc = colorPixel.G\n\t\t\t\tcase blue:\n\t\t\t\t\tc = colorPixel.B\n\t\t\t\t}\n\t\t\t\tgrayPixel := color.Gray{Y: c}\n\t\t\t\tcolorChannel.Set(x, y, grayPixel)\n\t\t\t}\n\t\t}\n\t\tchannels[i] = newImageBinaryChannel(colorChannel, channelType)\n\t}\n\treturn channels\n}", "func Sigmoid(midpoint, factor float32) Filter {\n\ta := minf32(maxf32(midpoint, 0), 1)\n\tb := absf32(factor)\n\tsig0 := sigmoid(a, b, 0)\n\tsig1 := sigmoid(a, b, 1)\n\te := float32(1.0e-5)\n\n\treturn &colorchanFilter{\n\t\tfn: func(x float32) float32 {\n\t\t\tif factor == 0 {\n\t\t\t\treturn x\n\t\t\t} else if factor > 0 {\n\t\t\t\tsig := sigmoid(a, b, x)\n\t\t\t\treturn (sig - sig0) / (sig1 - sig0)\n\t\t\t} else {\n\t\t\t\targ := minf32(maxf32((sig1-sig0)*x+sig0, e), 1-e)\n\t\t\t\treturn a - logf32(1/arg-1)/b\n\t\t\t}\n\t\t},\n\t\tlut: true,\n\t}\n}", "func Conv2DBackpropFilter(scope *Scope, input tf.Output, filter_sizes tf.Output, out_backprop tf.Output, strides []int64, padding string, optional ...Conv2DBackpropFilterAttr) (output tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"strides\": strides, \"padding\": padding}\n\tfor _, a := range optional {\n\t\ta(attrs)\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"Conv2DBackpropFilter\",\n\t\tInput: []tf.Input{\n\t\t\tinput, filter_sizes, out_backprop,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0)\n}", "func (img *FloatImage) ConvolveWrap(kernel *ConvKernel) *FloatImage {\n\treturn img.convolve(kernel, wrapPlaneExtension)\n}", "func (t1 *Tensor) Convolve2D(kernel *Tensor, stride int) (*Tensor, error) {\n\toutTensor := NewTensor((t1.Size.X-kernel.Size.X)/stride+1, (t1.Size.Y-kernel.Size.Y)/stride+1, t1.Size.Z)\n\tfor x := 0; x < outTensor.Size.X; x++ {\n\t\tfor y := 0; y < outTensor.Size.Y; y++ {\n\t\t\tmappedX, mappedY := x*stride, y*stride\n\t\t\tfor i := 0; i < kernel.Size.X; i++ {\n\t\t\t\tfor j := 0; j < kernel.Size.X; j++ {\n\t\t\t\t\tfor z := 0; z < t1.Size.Z; z++ {\n\t\t\t\t\t\tf := kernel.Get(i, j, z)\n\t\t\t\t\t\tv := t1.Get(mappedX+i, mappedY+j, z)\n\t\t\t\t\t\toutTensor.SetAdd(x, y, z, f*v)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn outTensor, nil\n}", "func DepthwiseConv2dNativeBackpropFilter(scope *Scope, input tf.Output, filter_sizes tf.Output, out_backprop tf.Output, strides []int64, padding string, optional ...DepthwiseConv2dNativeBackpropFilterAttr) (output tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"strides\": strides, \"padding\": padding}\n\tfor _, a := range optional {\n\t\ta(attrs)\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"DepthwiseConv2dNativeBackpropFilter\",\n\t\tInput: []tf.Input{\n\t\t\tinput, filter_sizes, out_backprop,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0)\n}", "func NewConvKernel3(m11, m12, m13, m21, m22, m23, m31, m32, m33 float32) *ConvKernel {\n\treturn &ConvKernel{\n\t\tKernel: []float32{m11, m12, m13, m21, m22, m23, m31, m32, m33},\n\t\tRadius: 1, // 3x3 kernel has diameter=3, thus radius=1\n\t}\n}", "func filterLayerBlobs(metadata map[digest.Digest]ocispecs.Descriptor, mu sync.Locker) images.HandlerFunc {\n\treturn func(ctx context.Context, desc ocispecs.Descriptor) ([]ocispecs.Descriptor, error) {\n\t\tswitch desc.MediaType {\n\t\tcase\n\t\t\tocispecs.MediaTypeImageLayer,\n\t\t\tocispecs.MediaTypeImageLayerNonDistributable,\n\t\t\timages.MediaTypeDockerSchema2Layer,\n\t\t\timages.MediaTypeDockerSchema2LayerForeign,\n\t\t\tocispecs.MediaTypeImageLayerGzip,\n\t\t\timages.MediaTypeDockerSchema2LayerGzip,\n\t\t\tocispecs.MediaTypeImageLayerNonDistributableGzip,\n\t\t\timages.MediaTypeDockerSchema2LayerForeignGzip,\n\t\t\tocispecs.MediaTypeImageLayerZstd,\n\t\t\tocispecs.MediaTypeImageLayerNonDistributableZstd:\n\t\t\treturn nil, images.ErrSkipDesc\n\t\tdefault:\n\t\t\tif metadata != nil {\n\t\t\t\tmu.Lock()\n\t\t\t\tmetadata[desc.Digest] = desc\n\t\t\t\tmu.Unlock()\n\t\t\t}\n\t\t}\n\t\treturn nil, nil\n\t}\n}", "func BoxFilter(src, dst []float64, width int, border Border) {\n\t// TODO optimize\n\talpha := 1.0 / float64(width)\n\tkernel := make([]float64, width)\n\tfor i := range kernel {\n\t\tkernel[i] = alpha\n\t}\n\tConvolve(src, dst, kernel, border)\n}", "func GaussianFilter(src, dst []float64, width int, sigma float64, border Border) {\n\tif width <= 0 {\n\t\twidth = 1 + 2*int(math.Floor(sigma*4+0.5))\n\t}\n\tkernel := make([]float64, width)\n\tGaussianKernel(kernel, sigma)\n\tConvolve(src, dst, kernel, border)\n}", "func (m *WeightedCluster_ClusterWeight) GetPerFilterConfig() map[string]*_struct.Struct {\n\tif m != nil {\n\t\treturn m.PerFilterConfig\n\t}\n\treturn nil\n}", "func convolutionMatrixSampleFunction(im ImageMatrix, imagePositionX int, imagePositionY int, kernelPixelX int, kernelPixel int, colour color.RGBA, distance float64) int {\n\tif distance < 1 {\n\t\treturn 1\n\t}\n\n\tif colour.R > 150 && colour.G < 100 && colour.B < 100 {\n\t\treturn int(5 * distance)\n\t}\n\n\treturn 5\n}", "func New(c *Config) (*Filter, error) {\n\n\t//\n\t// dimensions\n\t//\n\n\trF, cF := c.F.Dims()\n\trG, cG := c.G.Dims()\n\trQ, cQ := c.Q.Dims()\n\trH, cH := c.H.Dims()\n\trR, cR := c.R.Dims()\n\n\t//\n\t// validate\n\t//\n\n\tif rF != cF {\n\t\treturn nil, errors.New(\"F must be square matrix\")\n\t}\n\n\tif rQ != cQ {\n\t\treturn nil, errors.New(\"Q must be square matrix\")\n\t}\n\n\tif rR != cR {\n\t\treturn nil, errors.New(\"R must be square matrix\")\n\t}\n\n\tif rF != rG {\n\t\treturn nil, errors.New(\"row dim of F must be matched to row dim of G\")\n\t}\n\n\tif cG != rQ {\n\t\treturn nil, errors.New(\"column dim of G must be matched to row dim of Q\")\n\t}\n\n\tif cH != cF {\n\t\treturn nil, errors.New(\"column dim of H must be matched to column dim of F\")\n\t}\n\n\tif rH != rR {\n\t\treturn nil, errors.New(\"row dim of H must be matched to row dim of R\")\n\t}\n\n\t// init internal states\n\n\tx := mat64.NewVector(cF, nil)\n\tv := mat64.NewDense(rF, cF, nil)\n\tident := mat64.NewDense(rF, cF, nil)\n\tfor i := 0; i < rF; i++ {\n\t\tident.Set(i, i, 1.0)\n\t}\n\n\treturn &Filter{\n\t\tConfig: *c,\n\t\tI: ident,\n\t\tX: x,\n\t\tV: v,\n\t}, nil\n}", "func (c *imageBinaryChannel) dev2n() float64 {\n\treturn c.integralImage.dev2nRect(0, 0, c.width-1, c.height-1)\n}", "func Conv2DBackpropFilterUseCudnnOnGpu(value bool) Conv2DBackpropFilterAttr {\n\treturn func(m optionalAttr) {\n\t\tm[\"use_cudnn_on_gpu\"] = value\n\t}\n}", "func (m *WeightedCluster_ClusterWeight) GetPerFilterConfig() map[string]*types.Struct {\n\tif m != nil {\n\t\treturn m.PerFilterConfig\n\t}\n\treturn nil\n}", "func (filter *Merge) Process(img *FilterImage) error {\n\tout := img.Image\n\tbounds := out.Bounds()\n\tinbounds := filter.Image.Bounds()\n\n\txmin := bounds.Min.X\n\tif xmin < inbounds.Min.X {\n\t\txmin = inbounds.Min.X\n\t}\n\txmax := bounds.Max.X\n\tif xmax > inbounds.Max.X {\n\t\txmax = inbounds.Max.X\n\t}\n\tymin := bounds.Min.Y\n\tif ymin < inbounds.Min.Y {\n\t\tymin = inbounds.Min.Y\n\t}\n\tymax := bounds.Max.Y\n\tif ymax > inbounds.Max.Y {\n\t\tymax = inbounds.Max.Y\n\t}\n\n\tfor x := xmin; x < xmax; x++ {\n\t\tfor y := ymin; y < ymax; y++ {\n\t\t\tr, g, b, a := out.At(x, y).RGBA()\n\t\t\tir, ig, ib, ia := filter.Image.At(x, y).RGBA()\n\n\t\t\tr = uint32(ClipInt(int(r + ir), 0, 0xFFFF))\n\t\t\tg = uint32(ClipInt(int(g + ig), 0, 0xFFFF))\n\t\t\tb = uint32(ClipInt(int(b + ib), 0, 0xFFFF))\n\t\t\ta = uint32(ClipInt(int(a + ia), 0, 0xFFFF))\n\n\t\t\tout.Set(x, y, color.NRGBA64{uint16(r), uint16(g), uint16(b), uint16(a)})\n\t\t}\n\t}\n\n\treturn nil\n}", "func MakeCubicFilter(b float64, c float64) *Filter {\n\tvar radius float64\n\tif b == 0 && c == 0 {\n\t\tradius = 1.0\n\t} else {\n\t\tradius = 2.0\n\t}\n\tf := new(Filter)\n\tf.F = func(x float64, scaleFactor float64) float64 {\n\t\tif x < 1.0 {\n\t\t\treturn ((12.0-9.0*b-6.0*c)*x*x*x +\n\t\t\t\t(-18.0+12.0*b+6.0*c)*x*x +\n\t\t\t\t(6.0 - 2.0*b)) / 6.0\n\t\t} else if x < 2.0 {\n\t\t\treturn ((-b-6.0*c)*x*x*x +\n\t\t\t\t(6.0*b+30.0*c)*x*x +\n\t\t\t\t(-12.0*b-48.0*c)*x +\n\t\t\t\t(8.0*b + 24.0*c)) / 6.0\n\t\t}\n\t\treturn 0.0\n\t}\n\tf.Radius = func(scaleFactor float64) float64 {\n\t\treturn radius\n\t}\n\treturn f\n}", "func (e BatchNormOps) C() C.cudnnBatchNormOps_t { return C.cudnnBatchNormOps_t(e) }", "func FusedPadConv2D(scope *Scope, input tf.Output, paddings tf.Output, filter tf.Output, mode string, strides []int64, padding string) (output tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"mode\": mode, \"strides\": strides, \"padding\": padding}\n\topspec := tf.OpSpec{\n\t\tType: \"FusedPadConv2D\",\n\t\tInput: []tf.Input{\n\t\t\tinput, paddings, filter,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0)\n}", "func NewConvolutionalLayer(\n\tinputSize, kernelSize, stride, padding []int,\n\tGPUDriver *driver.Driver,\n\tGPUCtx *driver.Context,\n\tTensorOperator *TensorOperator,\n) *Conv2D {\n\t// argumentsMustBeValid(inputSize, kernelSize, stride, padding)\n\n\tl := &Conv2D{\n\t\tinputSize: inputSize,\n\t\tkernelSize: kernelSize,\n\t\tstride: stride,\n\t\tpadding: padding,\n\t\tGPUDriver: GPUDriver,\n\t\tGPUCtx: GPUCtx,\n\t\tTensorOperator: TensorOperator,\n\t}\n\tl.calculateOutputSize()\n\tl.loadKernels()\n\tl.allocateMemory()\n\n\treturn l\n}", "func (m *VirtualHost) GetPerFilterConfig() map[string]*_struct.Struct {\n\tif m != nil {\n\t\treturn m.PerFilterConfig\n\t}\n\treturn nil\n}", "func convDiffThr(wg *sync.WaitGroup, geom *Geom, yst, ny int, fltOn, fltOff *etensor.Float32, imgOn, imgOff, out *etensor.Float32, gain, gainOn float32) {\n\tist := geom.Border.Sub(geom.FiltLt)\n\tfor yi := 0; yi < ny; yi++ {\n\t\ty := yst + yi\n\t\tiy := int(ist.Y + y*geom.Spacing.Y)\n\t\tfor x := 0; x < geom.Out.X; x++ {\n\t\t\tix := ist.X + x*geom.Spacing.X\n\t\t\tvar sumOn, sumOff float32\n\t\t\tfi := 0\n\t\t\tfor fy := 0; fy < geom.FiltSz.Y; fy++ {\n\t\t\t\tfor fx := 0; fx < geom.FiltSz.X; fx++ {\n\t\t\t\t\tidx := imgOn.Offset([]int{iy + fy, ix + fx})\n\t\t\t\t\tsumOn += imgOn.Values[idx] * fltOn.Values[fi]\n\t\t\t\t\tsumOff += imgOff.Values[idx] * fltOff.Values[fi]\n\t\t\t\t\tfi++\n\t\t\t\t}\n\t\t\t}\n\t\t\tdiff := gain * (gainOn*sumOn - sumOff)\n\t\t\tif diff > 0 {\n\t\t\t\tout.Set([]int{0, y, x}, diff)\n\t\t\t\tout.Set([]int{1, y, x}, float32(0))\n\t\t\t} else {\n\t\t\t\tout.Set([]int{0, y, x}, float32(0))\n\t\t\t\tout.Set([]int{1, y, x}, -diff)\n\t\t\t}\n\t\t}\n\t}\n\twg.Done()\n}", "func compactImageReader(c CompactImage) CompactImageReader {\n\treturn CompactImageReader{imageReader: ImageIrReader{i: c.Dummy, x: 0, y: 0}}\n}", "func (m *VirtualHost) GetPerFilterConfig() map[string]*types.Struct {\n\tif m != nil {\n\t\treturn m.PerFilterConfig\n\t}\n\treturn nil\n}", "func NewKalmanFilter(n int, n0, sigmaK0, sigmaK, sigmaM float64) (k *Filter) {\n\tk = new(Filter)\n\tk.n = n\n\n\tk.x = make(Matrix, 2*n)\n\tk.p = make(Matrix, 2*n)\n\tk.q = make(Matrix, 2*n)\n\n\tfor i := 0; i < n; i++ {\n\t\tk.x[2*i] = []float64{1}\n\t\tk.x[2*i+1] = []float64{0}\n\n\t\tk.p[2*i] = make([]float64, 2*n)\n\t\tk.p[2*i+1] = make([]float64, 2*n)\n\t\tk.p[2*i][2*i] = sigmaK0 * sigmaK0\n\t\tk.p[2*i+1][2*i+1] = (n0 * sigmaK0) * (n0 * sigmaK0)\n\n\t\tk.q[2*i] = make([]float64, 2*n)\n\t\tk.q[2*i+1] = make([]float64, 2*n)\n\t\tk.q[2*i][2*i] = sigmaK * sigmaK\n\t\tk.q[2*i+1][2*i+1] = (n0 * sigmaK) * (n0 * sigmaK)\n\t}\n\n\tk.r = Matrix{{(n0 * sigmaM) * (n0 * sigmaM)}}\n\n\tk.U = make(chan Matrix)\n\tk.Z = make(chan float64)\n\n\tgo k.runFilter()\n\n\treturn k\n}", "func kwReduction(gr g.Graph, poolSize int, debug int) g.Graph {\n\tif debug % 2 == 1 {\n\t\tfmt.Printf(\"Starting KW Reduction \\n\")\n\t}\n\tdegree := gr.MaxDegree\n\tstartIndexes := make([]int, 0)\n\tsize := len(gr.Nodes)\n\tc := make(chan g.Graph)\n\t// If we can't split the graph into bins,\n\tif size < 2 * (degree + 1) {\n\t\tgr.Description = \"Color Reduced with KW\"\n\t\tgo runNaiveGoRoutine(gr, poolSize, debug, c)\n\t\treturn <- c\n\t}\n\tfor x := 0; x < size; x++ {\n\t\tif x % (2 * (degree + 1)) == 0 {\n\t\t\tstartIndexes = append(startIndexes, x)\n\t\t}\n\t}\n\n\tnumColors := g.CountColors(&gr)\n\tcolorBins := make([][]*g.Node, numColors)\n\tcolorToIndex := make(map[int]int)\n\tlatestIndex := 0\n\tfor _, node := range gr.Nodes {\n\t\tif _, ok := colorToIndex[node.Color]; ! ok {\n\t\t\tcolorToIndex[node.Color] = latestIndex\n\t\t\tlatestIndex++\n\t\t}\n\t\tcolorBins[colorToIndex[node.Color]] = append(colorBins[colorToIndex[node.Color]], node)\n\t}\n\n\tfor len(colorBins) > degree + 1 {\n\t\t//fmt.Printf(\"Number of bins: %d\\n\", len(colorBins))\n\t\td := make(chan [][]*g.Node)\n\t\tbinIndexes := make([]int, 0)\n\t\tcolors := len(colorBins)\n\n\t\tfor x := 0; x < colors; x++ {\n\t\t\tif x%(2*(degree+1)) == 0 {\n\t\t\t\tbinIndexes = append(binIndexes, x)\n\t\t\t}\n\t\t}\n\t\ttempBins := make([][]*g.Node, 0)\n\n\t\tfor i := 0; i < len(binIndexes); i++ {\n\t\t\tcurrStart := binIndexes[i]\n\t\t\tvar nextStart int\n\t\t\tif i+1 != len(binIndexes) {\n\t\t\t\tnextStart = binIndexes[i+1]\n\t\t\t} else {\n\t\t\t\tnextStart = len(colorBins)\n\t\t\t}\n\t\t\tgo combineColorsWithoutNaive(colorBins[currStart:nextStart], gr, d)\n\t\t}\n\t\tfor i := 0; i < len(binIndexes); i++ {\n\t\t\tbins := <-d\n\t\t\ttempBins = append(tempBins, bins...)\n\t\t}\n\n\t\tclose(d)\n\n\t\tcolorBins = tempBins\n\t\ttempBins = make([][]*g.Node, 0)\n\t}\n\tgraph := convertBinsToGraph(colorBins, &gr)\n\treturn *graph\n}", "func MakePixelMixingFilter() *Filter {\n\tf := new(Filter)\n\tf.F = func(x float64, scaleFactor float64) float64 {\n\t\tvar p float64\n\t\tif scaleFactor < 1.0 {\n\t\t\tp = scaleFactor\n\t\t} else {\n\t\t\tp = 1.0 / scaleFactor\n\t\t}\n\t\tif x < 0.5-p/2.0 {\n\t\t\treturn 1.0\n\t\t} else if x < 0.5+p/2.0 {\n\t\t\treturn 0.5 - (x-0.5)/p\n\t\t}\n\t\treturn 0.0\n\t}\n\tf.Radius = func(scaleFactor float64) float64 {\n\t\tif scaleFactor < 1.0 {\n\t\t\treturn 0.5 + scaleFactor\n\t\t}\n\t\treturn 0.5 + 1.0/scaleFactor\n\t}\n\treturn f\n}", "func Conv2DBackpropFilterV2(scope *Scope, input tf.Output, filter tf.Output, out_backprop tf.Output, strides []int64, padding string, optional ...Conv2DBackpropFilterV2Attr) (output tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"strides\": strides, \"padding\": padding}\n\tfor _, a := range optional {\n\t\ta(attrs)\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"Conv2DBackpropFilterV2\",\n\t\tInput: []tf.Input{\n\t\t\tinput, filter, out_backprop,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0)\n}", "func FSobel(in image.Image) image.Image {\n\tloadedImage := in\n\n\t//Creation of a new image with the same dimensions as the input one\n\tb := loadedImage.Bounds()\n\tminx, miny := b.Min.X, b.Min.Y\n\tmaxx, maxy := b.Max.X, b.Max.Y\n\tw, h := b.Dx(), b.Dy()\n\tmyImage := image.NewRGBA(loadedImage.Bounds())\n\n\t//convertion in greyscale with the BW algo\n\tgris := make([][]int16, h)\n\tfor i := range gris {\n\t\tgris[i] = make([]int16, w)\n\t}\n\tfor cpt := miny; cpt < maxy; cpt++ {\n\t\tfor cpt2 := minx; cpt2 < maxx; cpt2++ {\n\t\t\tred, gr, blue, _ := loadedImage.At(cpt2, cpt).RGBA()\n\t\t\tgris[cpt-miny][cpt2-minx] = int16(0.2125*float32(red*255/65535) + 0.7154*float32(gr*255/65535) + 0.0721*float32(blue*255/65535))\n\n\t\t}\n\t}\n\t//Edge-detection algorithm applied to each pixel\n\tvar maxG float64 = 0 //we save the highest value of gradient for mapping the values\n\tgradient := make([][]float64, h)\n\tfor i := range gradient {\n\t\tgradient[i] = make([]float64, w)\n\t}\n\tfor cpt := miny + 1; cpt < maxy-2; cpt++ {\n\t\tfor cpt2 := minx + 1; cpt2 < maxx-2; cpt2++ {\n\t\t\tvar gx float64\n\t\t\tgx = float64(-1*gris[cpt-1-miny][cpt2-1-minx] + 1*gris[cpt+1-miny][cpt2-1-minx] + -2*gris[cpt-1-miny][cpt2-minx] + 2*gris[cpt+1-miny][cpt2-minx] - 1*gris[cpt-1-miny][cpt2+1-minx] + 1*gris[cpt+1-miny][cpt2+1-minx])\n\t\t\tgy := float64(-1*gris[cpt-1-miny][cpt2-1-minx] - 2*gris[cpt-miny][cpt2-1-minx] - 1*gris[cpt+1-miny][cpt2-1-minx] + 1*gris[cpt-1-miny][cpt2+1-minx] + 2*gris[cpt-miny][cpt2+1-minx] + 1*gris[cpt+1-miny][cpt2+1-minx])\n\t\t\tgradient[cpt-miny][cpt2-minx] = math.Sqrt(gx*gx + gy*gy)\n\t\t\tif gradient[cpt-miny][cpt2-minx] > maxG {\n\t\t\t\tmaxG = gradient[cpt-miny][cpt2-minx]\n\t\t\t}\n\n\t\t}\n\t}\n\tfor cpt := miny + 1; cpt < maxy-2; cpt++ {\n\t\tfor cpt2 := minx + 1; cpt2 < maxx-2; cpt2++ {\n\t\t\tvar valsobel uint8\n\t\t\tif gradient[cpt-miny][cpt2-minx] > 255 {\n\t\t\t\tvalsobel = 255\n\t\t\t}\n\t\t\tvalsobel = uint8(gradient[cpt-miny][cpt2-minx] * 255 / maxG)\n\t\t\tmyImage.Set(cpt2, cpt, color.RGBA{valsobel, valsobel, valsobel, 255})\n\t\t}\n\t}\n\treturn myImage\n\n}", "func SpectralConvolution(spectrum []int) []int {\n\tvar convolution []int\n\tfor i := 0; i < len(spectrum)-1; i++ {\n\t\tfor j := i + 1; j < len(spectrum); j++ {\n\t\t\tval := spectrum[j] - spectrum[i]\n\t\t\tif val > 0 {\n\t\t\t\tconvolution = append(convolution, val)\n\t\t\t}\n\t\t}\n\t}\n\treturn convolution\n}", "func Contrast(percentage float32) Filter {\n\tif percentage == 0 {\n\t\treturn &copyimageFilter{}\n\t}\n\n\tp := 1 + minf32(maxf32(percentage, -100), 100)/100\n\n\treturn &colorchanFilter{\n\t\tfn: func(x float32) float32 {\n\t\t\tif 0 <= p && p <= 1 {\n\t\t\t\treturn 0.5 + (x-0.5)*p\n\t\t\t} else if 1 < p && p < 2 {\n\t\t\t\treturn 0.5 + (x-0.5)*(1/(2.0-p))\n\t\t\t} else {\n\t\t\t\tif x < 0.5 {\n\t\t\t\t\treturn 0\n\t\t\t\t}\n\t\t\t\treturn 1\n\t\t\t}\n\t\t},\n\t\tlut: false,\n\t}\n}", "func QuantizedConv2D(scope *Scope, input tf.Output, filter tf.Output, min_input tf.Output, max_input tf.Output, min_filter tf.Output, max_filter tf.Output, strides []int64, padding string, optional ...QuantizedConv2DAttr) (output tf.Output, min_output tf.Output, max_output tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"strides\": strides, \"padding\": padding}\n\tfor _, a := range optional {\n\t\ta(attrs)\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"QuantizedConv2D\",\n\t\tInput: []tf.Input{\n\t\t\tinput, filter, min_input, max_input, min_filter, max_filter,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0), op.Output(1), op.Output(2)\n}", "func EdgeDetection(src image.Image, radius float64) *image.RGBA {\r\n\tif radius <= 0 {\r\n\t\treturn image.NewRGBA(src.Bounds())\r\n\t}\r\n\r\n\tlength := int(math.Ceil(2*radius + 1))\r\n\tk := convolution.NewKernel(length, length)\r\n\r\n\tfor x := 0; x < length; x++ {\r\n\t\tfor y := 0; y < length; y++ {\r\n\t\t\tv := -1.0\r\n\t\t\tif x == length/2 && y == length/2 {\r\n\t\t\t\tv = float64(length*length) - 1\r\n\t\t\t}\r\n\t\t\tk.Matrix[y*length+x] = v\r\n\r\n\t\t}\r\n\t}\r\n\treturn convolution.Convolve(src, k, &convolution.Options{Bias: 0, Wrap: false, KeepAlpha: true})\r\n}", "func initContainerFilter() {\n\tvar err error\n\tif filter, err = containers.GetSharedMetricFilter(); err != nil {\n\t\tlog.Errorf(\"Error initializing container filtering: %s\", err)\n\t}\n}", "func ExampleConv() {\n\n\tconv := cnns.NewConvLayer(&tensor.TDsize{X: 9, Y: 8, Z: 1}, 1, 3, 1)\n\trelu := cnns.NewReLULayer(conv.GetOutputSize())\n\tmaxpool := cnns.NewPoolingLayer(relu.GetOutputSize(), 2, 2, \"max\", \"valid\")\n\tfullyconnected := cnns.NewFullyConnectedLayer(maxpool.GetOutputSize(), 3)\n\n\tconvCustomWeights := mat.NewDense(3, 3, []float64{\n\t\t0.10466029, -0.06228581, -0.43436298,\n\t\t0.44050909, -0.07536250, -0.34348075,\n\t\t0.16456005, 0.18682307, -0.40303048,\n\t})\n\tconv.SetCustomWeights([]*mat.Dense{convCustomWeights})\n\n\tfcCustomWeights := mat.NewDense(3, maxpool.GetOutputSize().Total(), []float64{\n\t\t-0.19908814, 0.01521263, 0.31363996, -0.28573613, -0.11934281, -0.18194183, -0.03111016, -0.21696585, -0.20689814,\n\t\t0.17908468, -0.28144695, -0.29681312, -0.13912858, 0.07067328, 0.36249144, -0.20688576, -0.20291744, 0.25257304,\n\t\t-0.29341734, 0.36533501, 0.19671917, 0.02382031, -0.47169692, -0.34167172, 0.10725344, 0.47524162, -0.42054638,\n\t})\n\tfullyconnected.SetCustomWeights([]*mat.Dense{fcCustomWeights})\n\n\tnet := cnns.WholeNet{\n\t\tLP: cnns.NewLearningParametersDefault(),\n\t}\n\tnet.Layers = append(net.Layers, conv)\n\tnet.Layers = append(net.Layers, relu)\n\tnet.Layers = append(net.Layers, maxpool)\n\tnet.Layers = append(net.Layers, fullyconnected)\n\n\timage := mat.NewDense(9, 8, []float64{\n\t\t-0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8,\n\t\t-0.9, -0.10, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16,\n\t\t-0.17, 0.18, -0.19, 0.20, 0.21, 0.22, 0.23, 0.24,\n\t\t-0.25, 0.26, 0.27, -0.28, 0.29, 0.30, 0.31, 0.32,\n\t\t-0.33, 0.34, 0.35, 0.36, -0.37, 0.38, 0.39, 0.40,\n\t\t-0.41, 0.42, 0.43, 0.44, 0.45, -0.46, 0.47, 0.48,\n\t\t-0.49, 0.50, 0.51, 0.52, 0.53, 0.54, -0.55, 0.56,\n\t\t-0.57, 0.58, 0.59, 0.60, 0.61, 0.62, 0.63, -0.64,\n\t\t-0.65, 0.66, 0.67, 0.68, 0.69, 0.70, 0.71, 0.72,\n\t})\n\n\tfmt.Printf(\"Layers weights:\\n\")\n\tfor i := range net.Layers {\n\t\tfmt.Printf(\"%s #%d weights:\\n\", net.Layers[i].GetType(), i)\n\t\tnet.Layers[i].PrintWeights()\n\t}\n\tfmt.Println(\"\\tDoing training....\")\n\tfor e := 0; e < 3; e++ {\n\t\terr := net.FeedForward(image)\n\t\tif err != nil {\n\t\t\tlog.Printf(\"Feedforward caused error: %s\", err.Error())\n\t\t\treturn\n\t\t}\n\t\tdesired := mat.NewDense(3, 1, []float64{0.32, 0.45, 0.96})\n\t\terr = net.Backpropagate(desired)\n\t\tif err != nil {\n\t\t\tlog.Printf(\"Backpropagate caused error: %s\", err.Error())\n\t\t\treturn\n\t\t}\n\n\t\tfmt.Printf(\"Epoch #%d. New layers weights\\n\", e)\n\t\tfor i := range net.Layers {\n\t\t\tfmt.Printf(\"%s #%d weights on epoch #%d:\\n\", net.Layers[i].GetType(), i, e)\n\t\t\tnet.Layers[i].PrintWeights()\n\t\t}\n\t}\n\n}", "func Conv2DBackpropFilterV2UseCudnnOnGpu(value bool) Conv2DBackpropFilterV2Attr {\n\treturn func(m optionalAttr) {\n\t\tm[\"use_cudnn_on_gpu\"] = value\n\t}\n}", "func (ev *ImgEnv) FilterImg() {\n\tev.XFormRand.Gen(&ev.XForm)\n\toimg := ev.Images[ev.ImageIdx.Cur]\n\t// following logic first extracts a sub-image of 2x the ultimate filtered size of image\n\t// from original image, which greatly speeds up the xform processes, relative to working\n\t// on entire 800x600 original image\n\tinsz := ev.Vis.Geom.In.Mul(2) // target size * 2\n\tibd := oimg.Bounds()\n\tisz := ibd.Size()\n\tirng := isz.Sub(insz)\n\tvar st image.Point\n\tst.X = rand.Intn(irng.X)\n\tst.Y = rand.Intn(irng.Y)\n\ted := st.Add(insz)\n\tsimg := oimg.SubImage(image.Rectangle{Min: st, Max: ed})\n\timg := ev.XForm.Image(simg)\n\tev.Vis.Filter(img)\n}", "func (img *FloatImage) ConvolveClamp(kernel *ConvKernel) *FloatImage {\n\treturn img.convolve(kernel, clampPlaneExtension)\n}", "func Bicubic(img image.Image, factor [2]float32) Filter {\n\treturn createFilter(img, factor, 4, func(x float32) (y float32) {\n\t\tabsX := float32(math.Abs(float64(x)))\n\t\tif absX <= 1 {\n\t\t\ty = absX*absX*(1.5*absX-2.5) + 1\n\t\t} else if absX <= 2 {\n\t\t\ty = absX*(absX*(2.5-0.5*absX)-4) + 2\n\t\t} else {\n\t\t\ty = 0\n\t\t}\n\t\treturn\n\t})\n}", "func Conv3DBackpropFilterV2(scope *Scope, input tf.Output, filter_sizes tf.Output, out_backprop tf.Output, strides []int64, padding string, optional ...Conv3DBackpropFilterV2Attr) (output tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"strides\": strides, \"padding\": padding}\n\tfor _, a := range optional {\n\t\ta(attrs)\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"Conv3DBackpropFilterV2\",\n\t\tInput: []tf.Input{\n\t\t\tinput, filter_sizes, out_backprop,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0)\n}", "func (e SoftmaxMode) C() C.cudnnSoftmaxMode_t { return C.cudnnSoftmaxMode_t(e) }", "func MakeConvolutionCoder(r, k int, poly []uint16) *ConvolutionCoder {\n\tif len(poly) != r {\n\t\tpanic(\"The number of polys should match the rate\")\n\t}\n\n\treturn &ConvolutionCoder{\n\t\tr: r,\n\t\tk: k,\n\t\tpoly: poly,\n\t\tcc: correctwrap.Correct_convolutional_create(int64(r), int64(k), &poly[0]),\n\t}\n}", "func (cc *ConvolutionCoder) Decode(data []byte) (output []byte) {\n\tframeBits := int64(len(data)) * 8\n\toutput = make([]byte, int(frameBits)/(8*cc.r))\n\tcorrectwrap.Correct_convolutional_decode(cc.cc, &data[0], frameBits, &output[0])\n\n\treturn output\n}", "func (m *WeightedCluster_ClusterWeight) GetHiddenEnvoyDeprecatedPerFilterConfig() map[string]*_struct.Struct {\n\tif m != nil {\n\t\treturn m.HiddenEnvoyDeprecatedPerFilterConfig\n\t}\n\treturn nil\n}", "func (m *WeightedCluster_ClusterWeight) GetHiddenEnvoyDeprecatedPerFilterConfig() map[string]*_struct.Struct {\n\tif m != nil {\n\t\treturn m.HiddenEnvoyDeprecatedPerFilterConfig\n\t}\n\treturn nil\n}", "func newNodeFilterIterator(src, filter Nodes, root int64) *nodeFilterIterator {\n\tn := nodeFilterIterator{src: src, filter: map[int64]bool{root: true}}\n\tfor filter.Next() {\n\t\tn.filter[filter.Node().ID()] = true\n\t}\n\tfilter.Reset()\n\tn.src.Reset()\n\treturn &n\n}", "func QuantizedDepthwiseConv2D(scope *Scope, input tf.Output, filter tf.Output, min_input tf.Output, max_input tf.Output, min_filter tf.Output, max_filter tf.Output, strides []int64, padding string, optional ...QuantizedDepthwiseConv2DAttr) (output tf.Output, min_output tf.Output, max_output tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"strides\": strides, \"padding\": padding}\n\tfor _, a := range optional {\n\t\ta(attrs)\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"QuantizedDepthwiseConv2D\",\n\t\tInput: []tf.Input{\n\t\t\tinput, filter, min_input, max_input, min_filter, max_filter,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0), op.Output(1), op.Output(2)\n}", "func FusedResizeAndPadConv2D(scope *Scope, input tf.Output, size tf.Output, paddings tf.Output, filter tf.Output, mode string, strides []int64, padding string, optional ...FusedResizeAndPadConv2DAttr) (output tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"mode\": mode, \"strides\": strides, \"padding\": padding}\n\tfor _, a := range optional {\n\t\ta(attrs)\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"FusedResizeAndPadConv2D\",\n\t\tInput: []tf.Input{\n\t\t\tinput, size, paddings, filter,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0)\n}", "func Conv2DBackpropInput(scope *Scope, input_sizes tf.Output, filter tf.Output, out_backprop tf.Output, strides []int64, padding string, optional ...Conv2DBackpropInputAttr) (output tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"strides\": strides, \"padding\": padding}\n\tfor _, a := range optional {\n\t\ta(attrs)\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"Conv2DBackpropInput\",\n\t\tInput: []tf.Input{\n\t\t\tinput_sizes, filter, out_backprop,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0)\n}", "func (d *DcrwalletCSDriver) GetCFilter(ctx context.Context, height int32) (*chainhash.Hash, [16]byte, *gcs.FilterV2, error) {\n\t// Fast track when data is in memory.\n\tif height >= d.cacheStartHeight && height < d.cacheStartHeight+int32(len(d.cache)) {\n\t\ti := int(height - d.cacheStartHeight)\n\t\tc := &d.cache[i]\n\t\treturn &c.hash, c.key, c.filter, nil\n\t}\n\n\t// Read a bunch of cfilters in one go since it's likely we'll be\n\t// queried for the next few.\n\tstart := wallet.NewBlockIdentifierFromHeight(height)\n\ti := 0\n\td.cache = d.cache[:cap(d.cache)]\n\trangeFn := func(bh chainhash.Hash, key [16]byte, filter *gcs.FilterV2) (bool, error) {\n\t\td.cache[i] = cfilter{\n\t\t\thash: bh,\n\t\t\theight: height + int32(i),\n\t\t\tkey: key,\n\t\t\tfilter: filter,\n\t\t}\n\n\t\t// Stop if the cache has been filled.\n\t\ti++\n\t\treturn i >= cap(d.cache), nil\n\t}\n\terr := d.w.RangeCFiltersV2(ctx, start, nil, rangeFn)\n\tif err != nil {\n\t\treturn nil, [16]byte{}, nil, err\n\t}\n\n\t// If we didn't read any filters from the db, it means we were\n\t// requested a filter past the current mainchain tip. Inform the\n\t// appropriate error in this case.\n\tif i == 0 {\n\t\treturn nil, [16]byte{}, nil, chainscan.ErrBlockAfterTip{Height: height}\n\t}\n\n\t// Clear out unused entries so we don't keep a reference to the filters\n\t// forever.\n\tfor j := i; j < cap(d.cache); j++ {\n\t\td.cache[j].filter = nil\n\t}\n\n\t// Keep track of correct cache start and size.\n\td.cache = d.cache[:i]\n\td.cacheStartHeight = height\n\n\t// The desired filter is the first one.\n\tc := &d.cache[0]\n\treturn &c.hash, c.key, c.filter, nil\n}", "func filter(src <-chan int, dst chan<- int, prime int) {\n\tfor i := range src { // Loop over values received from 'src'.\n\t\tif i%prime != 0 {\n\t\t\tdst <- i // Send 'i' to channel 'dst'.\n\t\t}\n\t}\n}", "func (n *Node) Convconst(con *Node, t *Type)", "func Dilation2DBackpropInput(scope *Scope, input tf.Output, filter tf.Output, out_backprop tf.Output, strides []int64, rates []int64, padding string) (in_backprop tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"strides\": strides, \"rates\": rates, \"padding\": padding}\n\topspec := tf.OpSpec{\n\t\tType: \"Dilation2DBackpropInput\",\n\t\tInput: []tf.Input{\n\t\t\tinput, filter, out_backprop,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0)\n}", "func (l *Conv2D) Forward(inputTensor tensor.Tensor) tensor.Tensor {\n\tl.inputSizeMustMatch(inputTensor)\n\n\tsave := inputTensor.(*Tensor)\n\tl.saveInput(save)\n\n\tbatchSize := l.inputBatchSize(inputTensor)\n\n\tinput := save\n\toutputSize := []int{\n\t\tl.outputSize[0],\n\t\tbatchSize,\n\t\tl.outputSize[1],\n\t\tl.outputSize[2],\n\t}\n\n\toutputHeight := outputSize[2]\n\toutputWidth := outputSize[3]\n\n\tim2ColMatrixHeight := l.numChannels() * l.kernelWidth() * l.kernelHeight()\n\tim2ColMatrixWidth := outputWidth * outputHeight * batchSize\n\tim2ColMatrix := l.TensorOperator.CreateTensor(\n\t\t[]int{im2ColMatrixHeight, im2ColMatrixWidth})\n\tdefer l.TensorOperator.Free(im2ColMatrix)\n\n\tl.im2Col(input, im2ColMatrix,\n\t\t[2]int{l.kernelWidth(), l.kernelHeight()},\n\t\t[4]int{l.padding[0], l.padding[1], l.padding[2], l.padding[3]},\n\t\t[2]int{l.stride[0], l.stride[1]},\n\t\t[2]int{0, 0},\n\t)\n\n\tkernelMatrixWidth := l.kernelWidth() * l.kernelHeight() * l.numChannels()\n\tkernelMatrixHeight := l.numKernels()\n\tkernelMatrix := l.kernel.Reshape(\n\t\t[]int{kernelMatrixHeight, kernelMatrixWidth})\n\n\thKernelData := make([]float32, kernelMatrixWidth*kernelMatrixHeight)\n\tl.GPUDriver.MemCopyD2H(l.GPUCtx, hKernelData, kernelMatrix.ptr)\n\n\toutputMatrix := l.TensorOperator.CreateTensor(\n\t\t[]int{kernelMatrixHeight, im2ColMatrixWidth})\n\tbiasTensor := l.TensorOperator.CreateTensor(\n\t\t[]int{batchSize, l.outputSize[0], l.outputSize[1], l.outputSize[2]})\n\tbiasTensorTrans := l.TensorOperator.CreateTensor(\n\t\t[]int{l.outputSize[0], batchSize, l.outputSize[1], l.outputSize[2]})\n\tl.TensorOperator.Repeat(l.bias, biasTensor, batchSize)\n\tl.TensorOperator.TransposeTensor(biasTensor, biasTensorTrans,\n\t\t[]int{1, 0, 2, 3})\n\tbiasMatrix := biasTensorTrans.Reshape(\n\t\t[]int{l.numKernels(), im2ColMatrixWidth})\n\n\tl.TensorOperator.Gemm(\n\t\tfalse, false,\n\t\tkernelMatrixHeight,\n\t\tim2ColMatrixWidth,\n\t\tkernelMatrixWidth,\n\t\t1.0, 1.0,\n\t\tkernelMatrix, im2ColMatrix, biasMatrix, outputMatrix)\n\n\toutput := &Tensor{\n\t\tdriver: l.GPUDriver,\n\t\tctx: l.GPUCtx,\n\t\tsize: outputSize,\n\t\tptr: outputMatrix.ptr,\n\t\tdescriptor: \"CNHW\",\n\t}\n\n\ttransposedOutput := l.TensorOperator.CreateTensor([]int{\n\t\tbatchSize,\n\t\tl.outputSize[0],\n\t\tl.outputSize[1],\n\t\tl.outputSize[2]})\n\tl.TensorOperator.TransposeTensor(\n\t\toutput, transposedOutput, []int{1, 0, 2, 3})\n\n\tl.TensorOperator.Free(biasTensor)\n\tl.TensorOperator.Free(biasTensorTrans)\n\tl.TensorOperator.Free(output)\n\n\treturn transposedOutput\n}", "func (e FoldingDirection) C() C.cudnnFoldingDirection_t { return C.cudnnFoldingDirection_t(e) }", "func NewDisconnectFilter() Filter {\n\treturn &disconnectFilter{}\n}", "func ToBWByteSlice(imgToConvert *image.Gray, threshold uint8) (outputBytes [][]byte) {\n\tw, h := imgToConvert.Bounds().Max.X, imgToConvert.Bounds().Max.Y\n\toutputBytes = make([][]byte, h/8, h/8)\n\tfor i := 0; i < len(outputBytes); i++ {\n\t\toutputBytes[i] = make([]byte, w)\n\t}\n\tfor currentY := 0; currentY < h/8; currentY++ {\n\t\tvar CurrentPage []byte = make([]byte, w, w)\n\t\tfor currentX := 0; currentX < w; currentX++ {\n\t\t\tvar constructedVLine byte = 0\n\t\t\tif imgToConvert.GrayAt(currentX, 0+(8*currentY)).Y >= threshold {\n\t\t\t\tconstructedVLine++\n\t\t\t}\n\t\t\tif imgToConvert.GrayAt(currentX, 1+(8*currentY)).Y >= threshold {\n\t\t\t\tconstructedVLine += 2\n\t\t\t}\n\t\t\tif imgToConvert.GrayAt(currentX, 2+(8*currentY)).Y >= threshold {\n\t\t\t\tconstructedVLine += 4\n\t\t\t}\n\t\t\tif imgToConvert.GrayAt(currentX, 3+(8*currentY)).Y >= threshold {\n\t\t\t\tconstructedVLine += 8\n\t\t\t}\n\t\t\tif imgToConvert.GrayAt(currentX, 4+(8*currentY)).Y >= threshold {\n\t\t\t\tconstructedVLine += 16\n\t\t\t}\n\t\t\tif imgToConvert.GrayAt(currentX, 5+(8*currentY)).Y >= threshold {\n\t\t\t\tconstructedVLine += 32\n\t\t\t}\n\t\t\tif imgToConvert.GrayAt(currentX, 6+(8*currentY)).Y >= threshold {\n\t\t\t\tconstructedVLine += 64\n\t\t\t}\n\t\t\tif imgToConvert.GrayAt(currentX, 7+(8*currentY)).Y >= threshold {\n\t\t\t\tconstructedVLine += 128\n\t\t\t}\n\t\t\tCurrentPage[currentX] = constructedVLine\n\t\t}\n\t\toutputBytes[currentY] = CurrentPage\n\t}\n\treturn outputBytes\n}", "func extractSwatches(src *image.RGBA, numColors int) []colorful.Color {\n\tconst (\n\t\tW = 400\n\t\tH = 75\n\t)\n\tvar swatches []colorful.Color\n\tb := src.Bounds()\n\tsw := W / numColors\n\tfor i := 0; i < numColors; i++ {\n\t\tm := src.SubImage(trimRect(image.Rect(b.Min.X+i*sw, b.Max.Y-H, b.Min.X+(i+1)*sw, b.Max.Y), 10))\n\t\tswatches = append(swatches, toColorful(averageColor(m)))\n\t\tsavePNG(strconv.Itoa(i), m) // for debugging\n\t}\n\tconst dim = 50\n\tm := image.NewRGBA(image.Rect(0, 0, dim*len(swatches), dim))\n\tfor i, c := range swatches {\n\t\tr := image.Rect(i*dim, 0, (i+1)*dim, dim)\n\t\tdraw.Draw(m, r, &image.Uniform{fromColorful(c)}, image.ZP, draw.Src)\n\t}\n\tsavePNG(\"swatches\", m) // for debugging\n\treturn swatches\n}", "func bloomFilterParams(n int64, p float64) (m, k uint) {\n\tif n <= 0 || p <= 0 || p >= 1 {\n\t\treturn 1, 0\n\t}\n\tc := 0.6185 // 0.5 ^ (m/n * ln 2) ~= 0.6185 ^ (m/n)\n\tnf := float64(n)\n\n\tmf := math.Log(p) / math.Log(c) * nf\n\tm = uint(math.Ceil(mf))\n\n\tkf := mf / nf * math.Log(2)\n\tk = uint(math.Floor(kf))\n\n\treturn\n}", "func detectImage(tmpl *detect.FeatTmpl, im image.Image, margin int, step float64, sbin int, localmax bool, maxiou float64) []detect.Det {\n\t// Construct pyramid.\n\t// Get range of scales.\n\tscales := imgpyr.Scales(im.Bounds().Size(), tmpl.Size, step)\n\t// Define feature transform.\n\tphi := hog.Transform{hog.FGMRConfig(sbin)}\n\t// Define amount and type of padding.\n\tpad := feat.Pad{feat.Margin{margin, margin, margin, margin}, imsamp.Continue}\n\tpyr := featpyr.NewPad(imgpyr.New(im, scales), phi, pad)\n\n\t// Search feature pyramid.\n\t// Options for running detector on each level.\n\tdetopts := detect.DetFilter{LocalMax: localmax, MinScore: math.Inf(-1)}\n\t// Use intersection-over-union criteria for non-max suppression.\n\toverlap := func(a, b image.Rectangle) bool {\n\t\treturn detect.IOU(a, b) > maxiou\n\t}\n\t// Options for non-max suppression.\n\tsuppropts := detect.SupprFilter{MaxNum: 0, Overlap: overlap}\n\tdets := detect.Pyramid(pyr, tmpl, detopts, suppropts)\n\treturn dets\n}", "func GaussianKernel(dst []float64, sigma float64) {\n\tvar sum float64\n\tscale := -1.0 / (2 * sigma * sigma)\n\tfor i := range dst {\n\t\tx := float64(i - (len(dst)-1)/2)\n\t\tt := math.Exp(x * x * scale)\n\t\tdst[i] = t\n\t\tsum += t\n\t}\n\talpha := 1 / sum\n\tfor i := range dst {\n\t\tdst[i] *= alpha\n\t}\n}", "func Filter(in <-chan int, out chan<- int, prime int) {\n\tfor {\n\t\ti := <-in\n\t\tif i%prime != 0 {\n\t\t\tout <- i\n\t\t}\n\t}\n}", "func (e PointwiseMode) C() C.cudnnPointwiseMode_t { return C.cudnnPointwiseMode_t(e) }", "func (f *fast) RenderKeypointsOnly() *image.RGBA {\n black := color.RGBA{0,0,0,255}\n kpcolor := color.RGBA{0,255,0,255}\n img := image.NewRGBA(f.image.Bounds())\n for i := 0; i < img.Bounds().Max.X; i++ {\n for j := 0; j < img.Bounds().Max.Y; j++ {\n img.Set(i, j, black)\n }\n }\n for i := 0; i < len(f.keypoints); i++ {\n point := f.keypoints[i].point\n img.Set(point.X, point.Y, kpcolor)\n }\n return img\n}", "func cdivSlice(out, a []float64, c float64)", "func DepthwiseConv2dNativeBackpropInput(scope *Scope, input_sizes tf.Output, filter tf.Output, out_backprop tf.Output, strides []int64, padding string, optional ...DepthwiseConv2dNativeBackpropInputAttr) (output tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{\"strides\": strides, \"padding\": padding}\n\tfor _, a := range optional {\n\t\ta(attrs)\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"DepthwiseConv2dNativeBackpropInput\",\n\t\tInput: []tf.Input{\n\t\t\tinput_sizes, filter, out_backprop,\n\t\t},\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0)\n}" ]
[ "0.6047248", "0.60281813", "0.59256595", "0.579669", "0.5783671", "0.57080394", "0.5669961", "0.5622416", "0.5562212", "0.5525284", "0.55240625", "0.5486065", "0.54535675", "0.54474854", "0.54120964", "0.52997386", "0.5209576", "0.5185579", "0.51319593", "0.50550795", "0.505181", "0.50307333", "0.5025944", "0.49977908", "0.49524817", "0.4906275", "0.49017447", "0.48654124", "0.47983688", "0.4796208", "0.47696275", "0.4729707", "0.47039348", "0.46714485", "0.4659592", "0.4588078", "0.4581111", "0.4573858", "0.45658222", "0.45392948", "0.44919655", "0.44907388", "0.44380307", "0.44299856", "0.44254312", "0.4404932", "0.44037256", "0.4398977", "0.4392724", "0.43720198", "0.4369483", "0.43648022", "0.435177", "0.4341483", "0.43356928", "0.4324126", "0.43190676", "0.43157864", "0.42868593", "0.4276453", "0.42726263", "0.4267671", "0.42564312", "0.42545164", "0.4251454", "0.4242937", "0.42315495", "0.42187282", "0.4218036", "0.4211246", "0.4207207", "0.41919842", "0.41886413", "0.41791028", "0.41716367", "0.41637048", "0.41410252", "0.41239998", "0.41239998", "0.4072666", "0.40686163", "0.40626925", "0.40618747", "0.4044975", "0.4035745", "0.40275526", "0.40239733", "0.40175933", "0.40125093", "0.40083963", "0.3998033", "0.399481", "0.39800966", "0.397161", "0.39677328", "0.39650053", "0.3963082", "0.39605942", "0.39598265", "0.39579606" ]
0.4964527
24
Returns the information log for a shader object
func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *uint8) { C.glowGetShaderInfoLog(gpGetShaderInfoLog, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *int8) {\n C.glowGetShaderInfoLog(gpGetShaderInfoLog, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func (debugging *debuggingOpenGL) GetShaderInfoLog(shader uint32) string {\n\tdebugging.recordEntry(\"GetShaderInfoLog\", shader)\n\tresult := debugging.gl.GetShaderInfoLog(shader)\n\tdebugging.recordExit(\"GetShaderInfoLog\", result)\n\treturn result\n}", "func (shader Shader) GetInfoLog() string {\n\tvar bufSize int32\n\tgl.GetShaderiv(uint32(shader), gl.INFO_LOG_LENGTH, &bufSize)\n\tinfoLog := strings.Repeat(\"\\x00\", int(bufSize+1))\n\tgl.GetShaderInfoLog(uint32(shader), bufSize, nil, gl.Str(infoLog))\n\treturn infoLog\n}", "func GetShaderInfoLog(s Shader) string {\n\tvar logLength int32\n\tgl.GetShaderiv(s.Value, gl.INFO_LOG_LENGTH, &logLength)\n\tif logLength == 0 {\n\t\treturn \"\"\n\t}\n\n\tlogBuffer := make([]uint8, logLength)\n\tgl.GetShaderInfoLog(s.Value, logLength, nil, &logBuffer[0])\n\treturn gl.GoStr(&logBuffer[0])\n}", "func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tsyscall.Syscall6(gpGetShaderInfoLog, 4, uintptr(shader), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(infoLog)), 0, 0)\n}", "func (gl *WebGL) GetShaderInfoLog(shader WebGLShader) string {\n\treturn gl.context.Call(\"getShaderInfoLog\", shader).String()\n}", "func (native *OpenGL) GLGetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tgl.GetShaderInfoLog(shader, bufSize, length, infoLog)\n}", "func GetShaderInfoLog(shader Uint, bufSize Sizei, length *Sizei, infoLog []byte) {\n\tcshader, _ := (C.GLuint)(shader), cgoAllocsUnknown\n\tcbufSize, _ := (C.GLsizei)(bufSize), cgoAllocsUnknown\n\tclength, _ := (*C.GLsizei)(unsafe.Pointer(length)), cgoAllocsUnknown\n\tcinfoLog, _ := (*C.GLchar)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&infoLog)).Data)), cgoAllocsUnknown\n\tC.glGetShaderInfoLog(cshader, cbufSize, clength, cinfoLog)\n}", "func (native *OpenGL) GetShaderInfoLog(shader uint32) string {\n\tlogLength := native.GetShaderParameter(shader, gl.INFO_LOG_LENGTH)\n\tlog := strings.Repeat(\"\\x00\", int(logLength+1))\n\tgl.GetShaderInfoLog(shader, logLength, nil, gl.Str(log))\n\treturn log\n}", "func GetProgramPipelineInfoLog(pipeline uint32, bufSize int32, length *int32, infoLog *int8) {\n C.glowGetProgramPipelineInfoLog(gpGetProgramPipelineInfoLog, (C.GLuint)(pipeline), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func (gl *WebGL) GetProgramInfoLog(shaderProgram WebGLShaderProgram) string {\n\treturn gl.context.Call(\"getProgramInfoLog\", shaderProgram).String()\n}", "func GetProgramInfoLog(program uint32, bufSize int32, length *int32, infoLog *int8) {\n C.glowGetProgramInfoLog(gpGetProgramInfoLog, (C.GLuint)(program), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func (debugging *debuggingOpenGL) GetProgramInfoLog(program uint32) string {\n\tdebugging.recordEntry(\"GetProgramInfoLog\", program)\n\tresult := debugging.gl.GetProgramInfoLog(program)\n\tdebugging.recordExit(\"GetProgramInfoLog\", result)\n\treturn result\n}", "func (native *OpenGL) GLGetProgramInfoLog(program uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tgl.GetProgramInfoLog(program, bufSize, length, infoLog)\n}", "func (program Program) GetInfoLog() string {\n\tvar bufSize int32\n\tgl.GetProgramiv(uint32(program), gl.INFO_LOG_LENGTH, &bufSize)\n\tinfoLog := strings.Repeat(\"\\x00\", int(bufSize+1))\n\tgl.GetProgramInfoLog(uint32(program), bufSize, nil, gl.Str(infoLog))\n\treturn infoLog\n}", "func GetProgramPipelineInfoLog(pipeline uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tC.glowGetProgramPipelineInfoLog(gpGetProgramPipelineInfoLog, (C.GLuint)(pipeline), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func GetProgramPipelineInfoLog(pipeline uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tC.glowGetProgramPipelineInfoLog(gpGetProgramPipelineInfoLog, (C.GLuint)(pipeline), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func GetProgramInfoLog(program uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tC.glowGetProgramInfoLog(gpGetProgramInfoLog, (C.GLuint)(program), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func GetProgramInfoLog(program uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tC.glowGetProgramInfoLog(gpGetProgramInfoLog, (C.GLuint)(program), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func (native *OpenGL) GetProgramInfoLog(program uint32) string {\n\tlogLength := native.GetProgramParameter(program, gl.INFO_LOG_LENGTH)\n\tlog := strings.Repeat(\"\\x00\", int(logLength+1))\n\tgl.GetProgramInfoLog(program, logLength, nil, gl.Str(log))\n\treturn log\n}", "func (sh *ShaderStd) Name() string { return sh.MtlName }", "func (debugging *debuggingOpenGL) ShaderSource(shader uint32, source string) {\n\tdebugging.recordEntry(\"ShaderSource\", shader, source)\n\tdebugging.gl.ShaderSource(shader, source)\n\tdebugging.recordExit(\"ShaderSource\")\n}", "func (self *TileSprite) Shader() *AbstractFilter{\n return &AbstractFilter{self.Object.Get(\"shader\")}\n}", "func (s *Shader) ID() uint32 {\n\treturn s.program.obj\n}", "func GLShader(shaderType uint32, source string) (uint32, error) {\n\t// Create shader based on shaderType\n\tshader := gl.CreateShader(shaderType)\n\t// Compile the Shader with the source\n\tcsources, free := gl.Strs(source)\n\tgl.ShaderSource(shader, 1, csources, nil)\n\tfree()\n\tgl.CompileShader(shader)\n\n\tvar status int32\n\tgl.GetShaderiv(shader, gl.COMPILE_STATUS, &status)\n\tif status == gl.FALSE {\n\t\tvar logLen int32\n\t\tgl.GetShaderiv(shader, gl.INFO_LOG_LENGTH, &logLen)\n\t\tlog := strings.Repeat(\"\\x00\", int(logLen+1))\n\t\tgl.GetShaderInfoLog(shader, logLen, nil, gl.Str(log))\n\n\t\treturn 0, fmt.Errorf(\"Failed to compile %v: %v\", source, log)\n\t}\n\n\treturn shader, nil\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n C.glowGetShaderiv(gpGetShaderiv, (C.GLuint)(shader), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetProgramInfoLog(p Program) string {\n\tvar logLength int32\n\tgl.GetProgramiv(p.Value, gl.INFO_LOG_LENGTH, &logLength)\n\tif logLength == 0 {\n\t\treturn \"\"\n\t}\n\n\tlogBuffer := make([]uint8, logLength)\n\tgl.GetProgramInfoLog(p.Value, logLength, nil, &logBuffer[0])\n\treturn gl.GoStr(&logBuffer[0])\n}", "func GetProgramInfoLog(program Uint, bufSize Sizei, length *Sizei, infoLog []byte) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcbufSize, _ := (C.GLsizei)(bufSize), cgoAllocsUnknown\n\tclength, _ := (*C.GLsizei)(unsafe.Pointer(length)), cgoAllocsUnknown\n\tcinfoLog, _ := (*C.GLchar)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&infoLog)).Data)), cgoAllocsUnknown\n\tC.glGetProgramInfoLog(cprogram, cbufSize, clength, cinfoLog)\n}", "func ShaderSource(shader uint32, count int32, xstring **int8, length *int32) {\n C.glowShaderSource(gpShaderSource, (C.GLuint)(shader), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(xstring)), (*C.GLint)(unsafe.Pointer(length)))\n}", "func (ss *sceneStub) I() Logger { return ss.L(Info) }", "func LogInfo(context string, module string, info string) {\n log.Info().\n Str(\"Context\", context).\n Str(\"Module\", module).\n Msg(info)\n}", "func GetShaderSource(shader uint32, bufSize int32, length *int32, source *int8) {\n C.glowGetShaderSource(gpGetShaderSource, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(source)))\n}", "func (s *Shader) compile(source string, shaderType uint32) (shader uint32, err error) {\n\t// create a shader from source (returns shader ID)\n\tshader = gl.CreateShader(shaderType)\n\tcsource, free := gl.Strs(source) // returns a C String and a function to free the memory\n\t//\t\t\t\tshader, count, source string, length (unused)\n\tgl.ShaderSource(shader, 1, csource, nil)\n\tfree() // frees the memory used by csource\n\tgl.CompileShader(shader) // compile the shader\n\n\t// check if compiling failed\n\tvar status int32\n\t//\t\t\t shader info type\t\t pointer\n\tgl.GetShaderiv(shader, gl.COMPILE_STATUS, &status) // returns shader info\n\tif status == gl.FALSE {\n\t\tvar logLength int32\n\t\tgl.GetShaderiv(shader, gl.INFO_LOG_LENGTH, &logLength)\n\n\t\t// create empty string that can hold the log content\n\t\tlog := strings.Repeat(\"\\x00\", int(logLength+1))\n\t\tgl.GetShaderInfoLog(shader, logLength, nil, gl.Str(log)) // returns the shader compile log\n\n\t\t// set error message\n\t\terr = errors.New(\"Failed to compile OpenGL shader:\\n\" + log)\n\t}\n\n\treturn\n}", "func main() {\n\tfile,err := os.Open(\"RolanEngine/shader/Unlit.shader\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer file.Close()\n\n\t//// 使用ioutil读取文件所有内容\n\tb, err := ioutil.ReadAll(file)\n\t//fmt.Print(string(b))\n\ttracer := string(b)\n\t//comma的意思是从字符串tracer查找第一个 #ifdef FRAGMENT,然后返回他的位置,这里的每个中文是占3个字符,从0开始计算,那么#ifdef FRAGMENT的位置就是12\n\tcomma := strings.Index(tracer, \"#ifdef FRAGMENT\")\n\t//pos := strings.Index(string(b)[comma:], \"#ifdef FRAGMENT\")\n\tfmt.Println(tracer[comma:] + \" + \\\"\\x00\\\"\")\n\n\t//tracer[comma:]这个是的意思截取字符串tracer,从12开始,包括12\n}", "func NewShader(vertexFmt, uniformFmt AttrFormat, vertexShader, fragmentShader string) (*Shader, error) {\n\tshader := &Shader{\n\t\tprogram: binder{\n\t\t\trestoreLoc: gl.CURRENT_PROGRAM,\n\t\t\tbindFunc: func(obj uint32) {\n\t\t\t\tgl.UseProgram(obj)\n\t\t\t},\n\t\t},\n\t\tvertexFmt: vertexFmt,\n\t\tuniformFmt: uniformFmt,\n\t\tuniformLoc: make([]int32, len(uniformFmt)),\n\t}\n\n\tvar vshader, fshader uint32\n\n\t// vertex shader\n\t{\n\t\tvshader = gl.CreateShader(gl.VERTEX_SHADER)\n\t\tsrc, free := gl.Strs(vertexShader)\n\t\tdefer free()\n\t\tlength := int32(len(vertexShader))\n\t\tgl.ShaderSource(vshader, 1, src, &length)\n\t\tgl.CompileShader(vshader)\n\n\t\tvar success int32\n\t\tgl.GetShaderiv(vshader, gl.COMPILE_STATUS, &success)\n\t\tif success == gl.FALSE {\n\t\t\tvar logLen int32\n\t\t\tgl.GetShaderiv(vshader, gl.INFO_LOG_LENGTH, &logLen)\n\n\t\t\tinfoLog := make([]byte, logLen)\n\t\t\tgl.GetShaderInfoLog(vshader, logLen, nil, &infoLog[0])\n\t\t\treturn nil, fmt.Errorf(\"error compiling vertex shader: %s\", string(infoLog))\n\t\t}\n\n\t\tdefer gl.DeleteShader(vshader)\n\t}\n\n\t// fragment shader\n\t{\n\t\tfshader = gl.CreateShader(gl.FRAGMENT_SHADER)\n\t\tsrc, free := gl.Strs(fragmentShader)\n\t\tdefer free()\n\t\tlength := int32(len(fragmentShader))\n\t\tgl.ShaderSource(fshader, 1, src, &length)\n\t\tgl.CompileShader(fshader)\n\n\t\tvar success int32\n\t\tgl.GetShaderiv(fshader, gl.COMPILE_STATUS, &success)\n\t\tif success == gl.FALSE {\n\t\t\tvar logLen int32\n\t\t\tgl.GetShaderiv(fshader, gl.INFO_LOG_LENGTH, &logLen)\n\n\t\t\tinfoLog := make([]byte, logLen)\n\t\t\tgl.GetShaderInfoLog(fshader, logLen, nil, &infoLog[0])\n\t\t\treturn nil, fmt.Errorf(\"error compiling fragment shader: %s\", string(infoLog))\n\t\t}\n\n\t\tdefer gl.DeleteShader(fshader)\n\t}\n\n\t// shader program\n\t{\n\t\tshader.program.obj = gl.CreateProgram()\n\t\tgl.AttachShader(shader.program.obj, vshader)\n\t\tgl.AttachShader(shader.program.obj, fshader)\n\t\tgl.LinkProgram(shader.program.obj)\n\n\t\tvar success int32\n\t\tgl.GetProgramiv(shader.program.obj, gl.LINK_STATUS, &success)\n\t\tif success == gl.FALSE {\n\t\t\tvar logLen int32\n\t\t\tgl.GetProgramiv(shader.program.obj, gl.INFO_LOG_LENGTH, &logLen)\n\n\t\t\tinfoLog := make([]byte, logLen)\n\t\t\tgl.GetProgramInfoLog(shader.program.obj, logLen, nil, &infoLog[0])\n\t\t\treturn nil, fmt.Errorf(\"error linking shader program: %s\", string(infoLog))\n\t\t}\n\t}\n\n\t// uniforms\n\tfor i, uniform := range uniformFmt {\n\t\tloc := gl.GetUniformLocation(shader.program.obj, gl.Str(uniform.Name+\"\\x00\"))\n\t\tshader.uniformLoc[i] = loc\n\t}\n\n\truntime.SetFinalizer(shader, (*Shader).delete)\n\n\treturn shader, nil\n}", "func (ctx Ctx) Info() string {\n\treturn fmt.Sprintf(\"%+v\", ctx)\n}", "func (l *GrpcLog) Info(args ...interface{}) {\n\t// l.SugaredLogger.Info(args...)\n}", "func infoLog(v ...interface{}) {\n\t// if source info is enabled, prepend the log data with source information\n\tif enableSourceInfo {\n\t\tv = append([]interface{}{getSourceInfo(), s}, v...)\n\t}\n\n\tlog.Print(v...)\n}", "func (*Log) Descriptor() ([]byte, []int) {\n\treturn file_language_agent_v2_trace_proto_rawDescGZIP(), []int{4}\n}", "func Info(t string, arg ...interface{}) {\n\tif len(arg) > 0 {\n\t\tt = fmt.Sprintf(t, arg...)\n\t}\n\n\triPos, t := getRuntimePos(t)\n\n\tappendLog(LEVEL_INFO, ColorInfo, GetRuntimeInfo(riPos), t, nil)\n}", "func GetDebugMessageLog(count uint32, bufSize int32, sources *uint32, types *uint32, ids *uint32, severities *uint32, lengths *int32, messageLog *int8) uint32 {\n ret := C.glowGetDebugMessageLog(gpGetDebugMessageLog, (C.GLuint)(count), (C.GLsizei)(bufSize), (*C.GLenum)(unsafe.Pointer(sources)), (*C.GLenum)(unsafe.Pointer(types)), (*C.GLuint)(unsafe.Pointer(ids)), (*C.GLenum)(unsafe.Pointer(severities)), (*C.GLsizei)(unsafe.Pointer(lengths)), (*C.GLchar)(unsafe.Pointer(messageLog)))\n return (uint32)(ret)\n}", "func Info(msg string) {\n log.Info(msg)\n}", "func Info() string {\n\treturn fmt.Sprintf(\"(version=%s, branch=%s, revision=%s)\", version, branch, revision)\n}", "func ShaderSource(shader uint32, count int32, xstring **uint8, length *int32) {\n\tsyscall.Syscall6(gpShaderSource, 4, uintptr(shader), uintptr(count), uintptr(unsafe.Pointer(xstring)), uintptr(unsafe.Pointer(length)), 0, 0)\n}", "func (gl *WebGL) ShaderSource(shader WebGLShader, source string) {\n\tgl.context.Call(\"shaderSource\", shader, source)\n}", "func (native *OpenGL) GLGetShaderiv(shader uint32, pname uint32, params *int32) {\n\tgl.GetShaderiv(shader, pname, params)\n}", "func GetProgramPipelineInfoLog(pipeline uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tsyscall.Syscall6(gpGetProgramPipelineInfoLog, 4, uintptr(pipeline), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(infoLog)), 0, 0)\n}", "func Info(id int64, args ...interface{}) {\n\tif IsOn() {\n\t\tAddTraceEvent(id, 1, &TraceEventDesc{\n\t\t\tDesc: fmt.Sprint(args...),\n\t\t\tSeverity: CtINFO,\n\t\t})\n\t} else {\n\t\tgrpclog.InfoDepth(1, args...)\n\t}\n}", "func (native *OpenGL) LogOpenGLWarn() {\n\tif err := gl.GetError(); err != oglconsts.NO_ERROR {\n\t\tsettings.LogWarn(\"[OpenGL Error] Error occured: %v\", err)\n\t}\n}", "func (c Context) Log(level int, msg, source string) {\n\tif level > c.LogLevel {\n\t\treturn\n\t}\n\n\tif !c.HasFlag(\"__logs\") {\n\t\tc.Flag(\"__logs\", []LogEntry{})\n\t}\n\n\tuseColors := os.Getenv(\"LOG_COLORS\") == \"true\"\n\n\tvar (\n\t\telapsed,\n\t\tformattedSource,\n\t\tformattedLevel,\n\t\tid string\n\t)\n\n\tif useColors {\n\t\telapsed = aurora.Green(fmt.Sprintf(\"+%dms\", c.Elapsed())).Bold().String()\n\t\tformattedSource = aurora.Blue(source).String()\n\t\tid = aurora.Magenta(c.Identifier).Bold().String()\n\t} else {\n\t\telapsed = fmt.Sprintf(\"+%dms\", c.Elapsed())\n\t\tformattedSource = source\n\t\tid = c.Identifier\n\t}\n\n\tswitch level {\n\tcase 30:\n\t\tif useColors {\n\t\t\tformattedLevel = aurora.Blue(\"INFO\").String()\n\t\t} else {\n\t\t\tformattedLevel = \"INFO\"\n\t\t}\n\tcase 40:\n\t\tif useColors {\n\t\t\tformattedLevel = aurora.Cyan(\"DEBUG\").String()\n\t\t} else {\n\t\t\tformattedLevel = \"DEBUG\"\n\t\t}\n\tcase 50:\n\t\tif useColors {\n\t\t\tformattedLevel = aurora.Gray(\"TRACE\").String()\n\t\t} else {\n\t\t\tformattedLevel = \"TRACE\"\n\t\t}\n\tcase 20:\n\t\tif useColors {\n\t\t\tformattedLevel = aurora.Brown(\"WARN\").String()\n\t\t} else {\n\t\t\tformattedLevel = \"WARN\"\n\t\t}\n\tcase 10:\n\t\tif useColors {\n\t\t\tformattedLevel = aurora.Red(\"ERROR\").String()\n\t\t} else {\n\t\t\tformattedLevel = \"ERROR\"\n\t\t}\n\tdefault:\n\t\tif useColors {\n\t\t\tformattedLevel = aurora.Gray(\"CLVL \" + strconv.Itoa(level)).String()\n\t\t} else {\n\t\t\tformattedLevel = \"CLVL \" + strconv.Itoa(level)\n\t\t}\n\t}\n\n\tfmt.Printf(\"[%s | %s | %s] %s %s\\n\", elapsed, formattedSource, id, formattedLevel, msg)\n\n\tlogEntry := LogEntry{\n\t\tElapsed: c.Elapsed(),\n\t\tSource: source,\n\t\tLevel: level,\n\t\tMessage: msg,\n\t}\n\n\tif c.bot.eventHandler != nil {\n\t\tc.bot.eventChan <- Event{\n\t\t\tType: EVLog,\n\t\t\tLog: &logEntry,\n\t\t\tContext: &c,\n\t\t}\n\t}\n\n\tc.logMutex.Lock()\n\tlogArr := c.GetFlag(\"__logs\").([]LogEntry)\n\tlogArr = append(logArr, logEntry)\n\tc.Flag(\"__logs\", logArr)\n\tc.logMutex.Unlock()\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n\tC.glowGetShaderiv(gpGetShaderiv, (C.GLuint)(shader), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n\tC.glowGetShaderiv(gpGetShaderiv, (C.GLuint)(shader), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (debugging *debuggingOpenGL) CreateShader(shaderType uint32) uint32 {\n\tdebugging.recordEntry(\"CreateShader\", shaderType)\n\tresult := debugging.gl.CreateShader(shaderType)\n\tdebugging.recordExit(\"CreateShader\", result)\n\treturn result\n}", "func GetShaderSource(s Shader) string {\n\tlog.Println(\"GetShaderSource: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)\")\n\tsourceLen := GetShaderi(s, gl.SHADER_SOURCE_LENGTH)\n\tif sourceLen == 0 {\n\t\treturn \"\"\n\t}\n\tbuf := make([]byte, sourceLen)\n\tgl.GetShaderSource(s.Value, int32(sourceLen), nil, &buf[0])\n\treturn string(buf)\n}", "func (j DSGit) Info() string {\n\treturn fmt.Sprintf(\"%+v\", j)\n}", "func ShaderSource(shader uint32, count int32, xstring **uint8, length *int32) {\n\tC.glowShaderSource(gpShaderSource, (C.GLuint)(shader), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(xstring)), (*C.GLint)(unsafe.Pointer(length)))\n}", "func ShaderSource(shader uint32, count int32, xstring **uint8, length *int32) {\n\tC.glowShaderSource(gpShaderSource, (C.GLuint)(shader), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(xstring)), (*C.GLint)(unsafe.Pointer(length)))\n}", "func IsShader(shader uint32) bool {\n ret := C.glowIsShader(gpIsShader, (C.GLuint)(shader))\n return ret == TRUE\n}", "func Info() [][2]string {\n\treturn runtimeInfoVar\n}", "func (data *Invasion) debug(obj ...interface{}) {\n data.DebugLog = append(data.DebugLog, spew.Sdump(obj))\n}", "func (ml *MemoryLogger) LogInfo(m ...interface{}) {\n\tml.RingBuffer.Add(fmt.Sprintf(\"%v\", fmt.Sprint(m...)))\n}", "func (s *Shader) Init(shader io.Reader) (err error) {\n\ts.uniformLocs = make(map[string]int32)\n\ts.uniformBIndices = make(map[string]uint32)\n\ts.uniformBOs = make(map[string]uint32)\n\tshaders := []uint32{}\n\n\treader := bufio.NewReader(shader)\n\n\tshaderTypeLine, err := reader.ReadString('\\n')\n\tif err != nil {\n\t\treturn err\n\t}\n\n\t// eof gets set to true if we reached the end of the file\n\teof := false\n\n\tfor {\n\t\tshader := \"\"\n\n\t\t// decide on the shader type\n\t\tvar shaderType uint32\n\t\ttypeStr := strings.Split(shaderTypeLine, \" \")[1]\n\t\tswitch strings.ToLower(typeStr) {\n\t\tcase \"vertex\\n\":\n\t\t\tshaderType = gl.VERTEX_SHADER\n\t\tcase \"fragment\\n\":\n\t\t\tshaderType = gl.FRAGMENT_SHADER\n\t\tdefault:\n\t\t\terr = errors.New(\"Shader type \" + typeStr + \" not known.\")\n\t\t\treturn err\n\t\t}\n\n\t\tfor {\n\t\t\tline, err := reader.ReadString('\\n')\n\t\t\tif err == io.EOF {\n\t\t\t\teof = true\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\t// start a new shader string with a new type if the line starts with \"#shader\"\n\t\t\tif strings.HasPrefix(line, \"#shader\") {\n\t\t\t\t// tell the next iteration the information on shader type we read\n\t\t\t\tshaderTypeLine = line\n\t\t\t\tbreak\n\t\t\t} else {\n\t\t\t\tshader += line\n\t\t\t}\n\t\t}\n\n\t\t// if the shader is not empty, compile it\n\t\tif len(shader) > 0 {\n\t\t\tshaderptr, err := s.compile(shader+\"\\x00\", shaderType)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tshaders = append(shaders, shaderptr)\n\t\t} else {\n\t\t\tbreak\n\t\t}\n\n\t\tif eof {\n\t\t\tbreak\n\t\t}\n\t}\n\n\t// link shaders\n\ts.Program = gl.CreateProgram()\n\tfor _, shader := range shaders {\n\t\tgl.AttachShader(s.Program, shader)\n\t}\n\tgl.LinkProgram(s.Program)\n\n\t// delete the singke shaders. we won't need them anymore\n\tfor _, shader := range shaders {\n\t\tgl.DeleteShader(shader)\n\t}\n\n\treturn\n}", "func (spirv *SPIRVCross) Metadata(path, variant string, shader []byte) (Metadata, error) {\n\tbase := spirv.WorkDir.Path(filepath.Base(path), variant)\n\n\tif err := spirv.WorkDir.WriteFile(base, shader); err != nil {\n\t\treturn Metadata{}, fmt.Errorf(\"unable to write shader to disk: %w\", err)\n\t}\n\n\tcmd := exec.Command(spirv.Bin,\n\t\tbase,\n\t\t\"--reflect\",\n\t)\n\n\tout, err := cmd.Output()\n\tif err != nil {\n\t\treturn Metadata{}, fmt.Errorf(\"failed to run %v: %w\", cmd.Args, err)\n\t}\n\n\tmeta, err := parseMetadata(out)\n\tif err != nil {\n\t\treturn Metadata{}, fmt.Errorf(\"%s\\nfailed to parse metadata: %w\", out, err)\n\t}\n\n\treturn meta, nil\n}", "func (nl *NullLogger) LogInfo(m ...interface{}) {\n}", "func (j DSRocketchat) Info() string {\n\treturn fmt.Sprintf(\"%+v\", j)\n}", "func GetShaderi(s Shader, pname Enum) int {\n\tvar result int32\n\tgl.GetShaderiv(s.Value, uint32(pname), &result)\n\treturn int(result)\n}", "func (rc *ReadContext) LogStats(optimized bool) {\n\n\tlog := log.Stats\n\n\ttextSize := rc.FileSize - rc.BinaryTotalSize // = non binary content = non stream data\n\n\tlog.Println(\"Original:\")\n\tlog.Printf(\"File Size : %s (%d bytes)\\n\", ByteSize(rc.FileSize), rc.FileSize)\n\tlog.Printf(\"Total Binary Data : %s (%d bytes) %4.1f%%\\n\", ByteSize(rc.BinaryTotalSize), rc.BinaryTotalSize, float32(rc.BinaryTotalSize)/float32(rc.FileSize)*100)\n\tlog.Printf(\"Total Text Data : %s (%d bytes) %4.1f%%\\n\\n\", ByteSize(textSize), textSize, float32(textSize)/float32(rc.FileSize)*100)\n\n\t// Only when optimizing we get details about resource data usage.\n\tif optimized {\n\n\t\t// Image stream data of original file.\n\t\tbinaryImageSize := rc.BinaryImageSize + rc.BinaryImageDuplSize\n\n\t\t// Font stream data of original file. (just font files)\n\t\tbinaryFontSize := rc.BinaryFontSize + rc.BinaryFontDuplSize\n\n\t\t// Content stream data, other font related stream data.\n\t\tbinaryOtherSize := rc.BinaryTotalSize - binaryImageSize - binaryFontSize\n\n\t\tlog.Println(\"Breakup of binary data:\")\n\t\tlog.Printf(\"images : %s (%d bytes) %4.1f%%\\n\", ByteSize(binaryImageSize), binaryImageSize, float32(binaryImageSize)/float32(rc.BinaryTotalSize)*100)\n\t\tlog.Printf(\"fonts : %s (%d bytes) %4.1f%%\\n\", ByteSize(binaryFontSize), binaryFontSize, float32(binaryFontSize)/float32(rc.BinaryTotalSize)*100)\n\t\tlog.Printf(\"other : %s (%d bytes) %4.1f%%\\n\\n\", ByteSize(binaryOtherSize), binaryOtherSize, float32(binaryOtherSize)/float32(rc.BinaryTotalSize)*100)\n\t}\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetShaderiv, 3, uintptr(shader), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func ShaderBinary(count int32, shaders *uint32, binaryformat uint32, binary unsafe.Pointer, length int32) {\n C.glowShaderBinary(gpShaderBinary, (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(shaders)), (C.GLenum)(binaryformat), binary, (C.GLsizei)(length))\n}", "func Info(v ...interface{}) string {\n\treturn logr.Info(v...)\n}", "func initOpenGL() uint32 {\n\tif err := gl.Init(); err != nil {\n\t\tpanic(err)\n\t}\n\tversion := gl.GoStr(gl.GetString(gl.VERSION))\n\tlog.Println(\"OpenGL version\", version)\n\n\tvertexShaderSource, err := files.ReadTextFile(vertexShaderFile)\n\tmust(err)\n\n\tvertexShaderSource += \"\\x00\"\n\n\tfragmentShaderSource, err := files.ReadTextFile(fragmentShaderFile)\n\tmust(err)\n\n\tfragmentShaderSource += \"\\x00\"\n\n\tvertexShader, err := compileShader(vertexShaderSource, gl.VERTEX_SHADER)\n\tmust(err)\n\n\tfragmentShader, err := compileShader(fragmentShaderSource, gl.FRAGMENT_SHADER)\n\tmust(err)\n\n\tprogram := gl.CreateProgram()\n\tgl.AttachShader(program, vertexShader)\n\tgl.AttachShader(program, fragmentShader)\n\tgl.LinkProgram(program)\n\n\tvar status int32\n\tgl.GetProgramiv(program, gl.LINK_STATUS, &status)\n\tif status == gl.FALSE {\n\t\tvar logLength int32\n\t\tgl.GetProgramiv(program, gl.INFO_LOG_LENGTH, &logLength)\n\n\t\tlog := strings.Repeat(\"\\x00\", int(logLength+1))\n\t\tgl.GetProgramInfoLog(program, logLength, nil, gl.Str(log))\n\n\t\terr := fmt.Errorf(\"failed to link program: %v\", log)\n\t\tpanic(err)\n\t}\n\n\tgl.DeleteShader(vertexShader)\n\tgl.DeleteShader(fragmentShader)\n\n\treturn program\n}", "func LogInfo(format string, a ...interface{}) {\n\tif LogLevel <= LogLevelInfo {\n\t\tfmt.Printf(infoColor+\"[+] \"+format+\"\\n\"+noColor, a...)\n\t}\n}", "func (shader Shader) Source(source string) {\n\tcstrs, free := gl.Strs(source + \"\\x00\")\n\tgl.ShaderSource(uint32(shader), 1, cstrs, nil)\n\tfree()\n}", "func (zw *zerologWrapper) Info(ctx context.Context, format string, args ...interface{}) {\n\tnewEntry(zw, false, zw.cfg.staticFields).Info(ctx, format, args...)\n}", "func Info(v ...interface{}) {\r\n\tgreen := color.New(color.FgGreen).SprintFunc()\r\n\tmsg := fmt.Sprintln(v...)\r\n\tfmt.Print(fmt.Sprintf(\"%s %s\", green(\"info:\"), msg))\r\n}", "func (l BlackHole) Info(_ string, _ ...Field) {}", "func infoLog(msg ...interface{}) {\n\tlogLocker.Lock()\n\tdefer logLocker.Unlock()\n\tif *confVerbose {\n\t\tcolor.Cyan(fmt.Sprint(time.Now().Format(\"02_01_06-15.04.05\"), \"[INFOR] ->\", msg))\n\t}\n}", "func RInfo(msg ...interface{}) {\n\tif !logrus.IsLevelEnabled(logrus.InfoLevel) {\n\t\treturn\n\t}\n\n\tif pc, file, line, ok := runtime.Caller(1); ok {\n\t\tfile = file[strings.LastIndex(file, \"/\")+1:]\n\t\tfuncName := runtime.FuncForPC(pc).Name()\n\t\tlogrus.WithFields(\n\t\t\tlogrus.Fields{\n\t\t\t\t\"pos\": fmt.Sprintf(\"%s:%s:%d\", file, funcName, line),\n\t\t\t}).Info(msg...)\n\t} else {\n\t\tlogrus.Info(msg)\n\t}\n}", "func StringShader(content, contentType string) string {\n\tif content == \"\" {\n\t\treturn \"\"\n\t}\n\tif contentType == \"\" {\n\t\treturn content\n\t}\n\n\tvar shaderResult string\n\tvar offSet int\n\truneStr := []rune(content)\n\tswitch contentType {\n\tcase \"UserName\":\n\t\tshaderResult = fmt.Sprintf(\"%s**\", string(runeStr[:1]))\n\tcase \"BusinessCode\":\n\t\tshaderResult = fmt.Sprintf(\"%s*********\", string(runeStr[:6]))\n\tcase \"CreditCode\":\n\t\tshaderResult = fmt.Sprintf(\"%s**********\", string(runeStr[:8]))\n\tcase \"IdentityNo\":\n\t\tshaderResult = fmt.Sprintf(\"%s**********%s\", string(runeStr[:1]), string(runeStr[len(runeStr)-1:]))\n\tcase \"BankAccount\":\n\t\toffSet = MinInt(len(runeStr), 4)\n\t\tshaderResult = fmt.Sprintf(\"**************%s\", string(runeStr[len(runeStr)-offSet:]))\n\tcase \"AlipayAccount\":\n\t\tindexOfAt := strings.LastIndex(content, \"@\")\n\t\tif indexOfAt == -1 {\n\t\t\toffSet = MinInt(len(runeStr), 4)\n\t\t\tshaderResult = fmt.Sprintf(\"*******%s\", string(runeStr[len(runeStr)-offSet:]))\n\t\t} else {\n\t\t\toffSet = MinInt(indexOfAt, 2)\n\t\t\tshaderResult = fmt.Sprintf(\"*********%s\", string(runeStr[indexOfAt-offSet:]))\n\t\t}\n\t}\n\n\treturn shaderResult\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n C.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))\n}", "func LogStringer(logInfo *TransactionLogInfo) string {\n\n\tlogString := fmt.Sprintf(\"RefCode:%s\", logInfo.RefCode)\n\tif logInfo.URL != \"\" {\n\t\tlogString += fmt.Sprintf(\" URL:%s\", logInfo.URL)\n\t}\n\n\tif logInfo.Method != \"\" {\n\t\tlogString += fmt.Sprintf(\" Method:%s\", logInfo.Method)\n\t}\n\n\tif logInfo.Body != \"\" {\n\t\tlogString += fmt.Sprintf(\" Body:%s\", logInfo.Body)\n\t}\n\n\tif logInfo.Input != \"\" {\n\t\tlogString += fmt.Sprintf(\" Request:%s\", logInfo.Input)\n\t}\n\n\tif logInfo.StatusCode != 0 {\n\t\tlogString += fmt.Sprintf(\" StatusCode:%d\", logInfo.StatusCode)\n\t}\n\n\tif logInfo.Output != \"\" {\n\t\tlogString += fmt.Sprintf(\" Response:%s\", logInfo.Output)\n\t}\n\n\treturn logString\n}", "func (debugging *debuggingOpenGL) CompileShader(shader uint32) {\n\tdebugging.recordEntry(\"CompileShader\", shader)\n\tdebugging.gl.CompileShader(shader)\n\tdebugging.recordExit(\"CompileShader\")\n}", "func CreateShaderProgramv(xtype uint32, count int32, strings **int8) uint32 {\n ret := C.glowCreateShaderProgramv(gpCreateShaderProgramv, (C.GLenum)(xtype), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(strings)))\n return (uint32)(ret)\n}", "func (*Log) Descriptor() ([]byte, []int) {\n\treturn file_scarlet_fairy_proto_rawDescGZIP(), []int{1}\n}", "func compileStatus(shader gl.Uint) (gl.Uint, error) {\n\tvar status gl.Int\n\tgl.GetShaderiv(shader, gl.COMPILE_STATUS, &status)\n\tif status == gl.FALSE {\n\t\tvar logLength gl.Int\n\t\tgl.GetShaderiv(shader, gl.INFO_LOG_LENGTH, &logLength)\n\n\t\tlog := strings.Repeat(\"\\x00\", int(logLength+1))\n\t\tchary := gl.GLStringArray(log)\n\t\tdefer gl.GLStringArrayFree(chary)\n\t\tgl.GetShaderInfoLog(shader, gl.Sizei(logLength), nil, chary[0])\n\t\tlogOut := gl.GoString(chary[0])\n\n\t\treturn gl.FALSE, fmt.Errorf(\"failed to compile %v\", logOut)\n\t}\n\n\treturn gl.TRUE, nil\n}", "func (l *Logr) Info(v ...interface{}) string {\n\treturn log(I, false, Interfaces(v).SSV(), l.meta)\n}", "func lInfo(v ...interface{}) {\n\tinfoLogger.Println(v...)\n}", "func (param *LoadParams) Info() string {\n\treturn fmt.Sprintf(\"current loader[qps=%d, durations=%v,timeout=%v]\", param.QPS, param.Duration, param.Timeout)\n}", "func Info() Line {\n\treturn &line{sev: logging.Info}\n}", "func (sm *shaderManager) GetShaderProgram(id uint32) (Shader, bool) {\n\tsm.programLock.RLock()\n\tdefer sm.programLock.RUnlock()\n\tfor _, shader := range sm.shaders {\n\t\tif shader.ProgramID() == id {\n\t\t\treturn shader, true\n\t\t}\n\t}\n\n\treturn nil, false\n}", "func Infof(id int64, format string, args ...interface{}) {\n\tmsg := fmt.Sprintf(format, args...)\n\tif IsOn() {\n\t\tAddTraceEvent(id, 1, &TraceEventDesc{\n\t\t\tDesc: msg,\n\t\t\tSeverity: CtINFO,\n\t\t})\n\t} else {\n\t\tgrpclog.InfoDepth(1, msg)\n\t}\n}", "func Info() string {\n\treturn fmt.Sprintf(\"%s %s git commit %s go version %s build date %s\", Application, Version, Revision, GoVersion, BuildRFC3339)\n}", "func CompileShader(shader uint32) {\n C.glowCompileShader(gpCompileShader, (C.GLuint)(shader))\n}", "func (h *HsaCoHeader) Info() string {\n\ts := \"HSA Code Object:\\n\"\n\ts += fmt.Sprintf(\"\\tVersion: %d.%d\\n\", h.CodeVersionMajor, h.CodeVersionMinor)\n\ts += fmt.Sprintf(\"\\tMachine: %d.%d.%d\\n\", h.MachineVersionMajor, h.MachineVersionMinor, h.MachineVersionStepping)\n\ts += fmt.Sprintf(\"\\tCode Entry Byte Offset: %d\\n\", h.KernelCodeEntryByteOffset)\n\ts += fmt.Sprintf(\"\\tPrefetch: %d (size: %d)\\n\", h.KernelCodePrefetchByteOffset, h.KernelCodePrefetchByteSize)\n\ts += fmt.Sprintf(\"\\tMax Scratch Memory: %d\\n\", h.MaxScratchBackingMemoryByteSize)\n\ts += fmt.Sprintf(\"\\tGranulated WI VGPR Count:%d\\n\", h.WIVgprCount)\n\ts += fmt.Sprintf(\"\\tGranulated Wf SGPR Count:%d\\n\", h.WFSgprCount)\n\ts += fmt.Sprintf(\"\\tWork-Group Group Segment Byte Size: %d\\n\", h.WGGroupSegmentByteSize)\n\ts += fmt.Sprintf(\"\\tKernarg Segment Byte Size:%d\\n\", h.KernargSegmentByteSize)\n\ts += fmt.Sprintf(\"\\tRegisters:\\n\")\n\ts += fmt.Sprintf(\"\\t\\tEnable SGPR Private SegmentBuffer: %t\\n\", h.EnableSgprPrivateSegmentBuffer())\n\ts += fmt.Sprintf(\"\\t\\tEnable SGPR Dispatch Ptr: %t\\n\", h.EnableSgprDispatchPtr())\n\ts += fmt.Sprintf(\"\\t\\tEnable SGPR Queue Ptr: %t\\n\", h.EnableSgprQueuePtr())\n\ts += fmt.Sprintf(\"\\t\\tEnable SGPR Kernarg Segment Ptr: %t\\n\", h.EnableSgprKernelArgSegmentPtr())\n\ts += fmt.Sprintf(\"\\t\\tEnable SGPR Dispatch ID: %t\\n\",\n\t\th.EnableSgprDispatchID())\n\ts += fmt.Sprintf(\"\\t\\tEnable SGPR Flat Scratch Init: %t\\n\", h.EnableSgprFlatScratchInit())\n\ts += fmt.Sprintf(\"\\t\\tEnable SGPR Private Segment Size: %t\\n\", h.EnableSgprPrivateSegementSize())\n\ts += fmt.Sprintf(\"\\t\\tEnable SGPR Work-Group Count (X, Y, Z): %t %t %t\\n\",\n\t\th.EnableSgprGridWorkGroupCountX(),\n\t\th.EnableSgprGridWorkGroupCountY(),\n\t\th.EnableSgprGridWorkGroupCountZ())\n\ts += fmt.Sprintf(\"\\t\\tEnable SGPR Work-Group ID (X, Y, Z): %t %t %t\\n\",\n\t\th.EnableSgprWorkGroupIDX(),\n\t\th.EnableSgprWorkGroupIDY(),\n\t\th.EnableSgprWorkGroupIDZ())\n\ts += fmt.Sprintf(\"\\t\\tEnable SGPR Work-Group Info %t\\n\", h.EnableSgprWorkGroupInfo())\n\ts += fmt.Sprintf(\"\\t\\tEnable SGPR Private Segment Wave Byte Offset: %t\\n\", h.EnableSgprPrivateSegmentWaveByteOffset())\n\n\ts += fmt.Sprintf(\"\\t\\tEnable VGPR Work-Item ID X: %t\\n\", true)\n\ts += fmt.Sprintf(\"\\t\\tEnable VGPR Work-Item ID Y: %t\\n\", h.EnableVgprWorkItemID() > 0)\n\ts += fmt.Sprintf(\"\\t\\tEnable VGPR Work-Item ID Z: %t\\n\", h.EnableVgprWorkItemID() > 1)\n\n\treturn s\n}", "func (*Log) Descriptor() ([]byte, []int) {\n\treturn file_pkg_proto_l3_proto_rawDescGZIP(), []int{5}\n}", "func (r *rectangle) info() {\n\tfmt.Println(\"Length:\", r.length)\n\tfmt.Println(\"Width:\", r.width)\n}", "func (ss *sceneStub) W() Logger { return ss.L(Warn) }", "func Info(m ...interface{}) {\n\tpc := make([]uintptr, 15)\n\tn := runtime.Callers(2, pc)\n\tframes := runtime.CallersFrames(pc[:n])\n\tframe, _ := frames.Next()\n\tlog.Printf(\"INFO [%v] %v\", frame.Function, fmt.Sprintln(m...))\n}", "func (s *Solo) Info() (map[string]string, error) {\n\tinfo := map[string]string{\n\t\t\"type\": \"solo\",\n\t\t\"tx_index\": strconv.Itoa(s.txIndex),\n\t}\n\treturn info, nil\n}" ]
[ "0.7593603", "0.72091365", "0.71395093", "0.71005464", "0.7068022", "0.6869191", "0.68301326", "0.67929184", "0.6737361", "0.6185212", "0.60471493", "0.6022578", "0.5693067", "0.5586309", "0.55788356", "0.54495394", "0.54495394", "0.5350517", "0.5350517", "0.5337245", "0.5333277", "0.52178186", "0.5216728", "0.52156985", "0.52146405", "0.51857126", "0.51191676", "0.50446", "0.4997884", "0.49953502", "0.49812385", "0.49756595", "0.4970078", "0.49572474", "0.49177426", "0.49114513", "0.483795", "0.48287553", "0.48212695", "0.48204014", "0.48145115", "0.47831634", "0.47725558", "0.47390342", "0.47362438", "0.4730926", "0.47291714", "0.47229385", "0.47017866", "0.46856552", "0.46751145", "0.46751145", "0.46665287", "0.46559128", "0.46551216", "0.46539906", "0.46539906", "0.46517393", "0.46515056", "0.46500158", "0.46280032", "0.4620173", "0.46173233", "0.4599041", "0.45971897", "0.45935398", "0.459254", "0.45807204", "0.4576505", "0.45752406", "0.45645663", "0.45601544", "0.45564622", "0.45532498", "0.45483193", "0.45297152", "0.45224735", "0.4508682", "0.4507897", "0.45051116", "0.45036808", "0.4499441", "0.4495996", "0.44943655", "0.44921267", "0.44910315", "0.4484786", "0.448057", "0.4479867", "0.44767973", "0.4476657", "0.44687524", "0.4466184", "0.44623992", "0.4461768", "0.4457323", "0.4449823", "0.44453907", "0.44445524" ]
0.7170688
3
retrieve the range and precision for numeric formats supported by the shader compiler
func GetShaderPrecisionFormat(shadertype uint32, precisiontype uint32, xrange *int32, precision *int32) { C.glowGetShaderPrecisionFormat(gpGetShaderPrecisionFormat, (C.GLenum)(shadertype), (C.GLenum)(precisiontype), (*C.GLint)(unsafe.Pointer(xrange)), (*C.GLint)(unsafe.Pointer(precision))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetShaderPrecisionFormat(shadertype uint32, precisiontype uint32, xrange *int32, precision *int32) {\n C.glowGetShaderPrecisionFormat(gpGetShaderPrecisionFormat, (C.GLenum)(shadertype), (C.GLenum)(precisiontype), (*C.GLint)(unsafe.Pointer(xrange)), (*C.GLint)(unsafe.Pointer(precision)))\n}", "func GetShaderPrecisionFormat(shadertype uint32, precisiontype uint32, xrange *int32, precision *int32) {\n\tsyscall.Syscall6(gpGetShaderPrecisionFormat, 4, uintptr(shadertype), uintptr(precisiontype), uintptr(unsafe.Pointer(xrange)), uintptr(unsafe.Pointer(precision)), 0, 0)\n}", "func GetShaderPrecisionFormat(shadertype, precisiontype Enum) (rangeLow, rangeHigh, precision int) {\n\tlog.Println(\"GetShaderPrecisionFormat: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)\")\n\tvar cRange [2]int32\n\tvar cPrecision int32\n\n\tgl.GetShaderPrecisionFormat(uint32(shadertype), uint32(precisiontype), &cRange[0], &cPrecision)\n\treturn int(cRange[0]), int(cRange[1]), int(cPrecision)\n}", "func GetShaderPrecisionFormat(shadertype Enum, precisiontype Enum, _range []Int, precision *Int) {\n\tcshadertype, _ := (C.GLenum)(shadertype), cgoAllocsUnknown\n\tcprecisiontype, _ := (C.GLenum)(precisiontype), cgoAllocsUnknown\n\tc_range, _ := (*C.GLint)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&_range)).Data)), cgoAllocsUnknown\n\tcprecision, _ := (*C.GLint)(unsafe.Pointer(precision)), cgoAllocsUnknown\n\tC.glGetShaderPrecisionFormat(cshadertype, cprecisiontype, c_range, cprecision)\n}", "func testFloatPrimitiveTypes() {\n\tvar minFloat32 float32 = -3.4e+38\n\tvar maxFloat32 float32 = +3.4e+38\n\n\tvar minFloat64 float64 = -1.7e+308\n\tvar maxFloat64 float64 = +1.7e+308\n\n\tfmt.Println(varinfo(minFloat32))\n\tfmt.Println(varinfo(maxFloat32))\n\tfmt.Println(varinfo(minFloat64))\n\tfmt.Println(varinfo(maxFloat64))\n\n\tfmt.Printf(\"%+.38f\\n\", minFloat32)\n\tfmt.Printf(\"%+.38f\\n\", maxFloat32)\n\n\tfmt.Printf(\"%+.308f\\n\", minFloat64)\n\tfmt.Printf(\"%+.308f\\n\", maxFloat64)\n}", "func main(){\n\ta := 40\n\tb := float64(a)\n\tc := uint(b)\n\n\tfmt.Println(a,b,c)\n\n\tfmt.Println(i,f,u)\n\n}", "func precision(p int) (int64, float64, int) {\n\tp64 := int64(p)\n\tl := int64(math.Log(float64(p64)))\n\tif p64 != 0 && (l%2) != 0 {\n\t\tp64 = int64(gDPi)\n\t}\n\tif p64 == 0 { // check for division by zero\n\t\tp64 = 1\n\t}\n\treturn p64, float64(p64), decimals(p64)\n}", "func determineFormat(channels int) int {\n\tswitch channels {\n\tcase 1:\n\t\treturn gl.RED\n\tcase 2:\n\t\treturn gl.RG\n\tcase 3:\n\t\treturn gl.RGB\n\tcase 4:\n\t\treturn gl.RGBA\n\t}\n\treturn gl.RGBA\n}", "func getPrecision(dataJson map[string]interface{}) int64 {\n\treturn _getPricision(dataJson, fieldPrecision)\n}", "func parseFloatParameterRange(input string) (*FloatParameterRange, error) {\n\tvar start, end float64\n\n\tvar err error\n\tif strings.Index(input, \"-\") >= 0 {\n\t\tarray := strings.Split(input, \"-\")\n\t\tif len(array) != 2 {\n\t\t\terr = errors.New(\"Failed to split the string type\")\n\t\t\treturn nil, err\n\t\t}\n\n\t\tif start, err = strconv.ParseFloat(array[0], 64); err != nil {\n\t\t\t// negative values must be dropped here\n\t\t\treturn nil, err\n\t\t}\n\t\tif end, err = strconv.ParseFloat(array[1], 64); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t} else {\n\t\tif start, err = strconv.ParseFloat(input, 64); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tend = start\n\t}\n\n\tif start > end {\n\t\terr = errors.New(\"The 'max-config-values' attributes MUST be greater or equal to their counterpart in 'min-config-values' attributes.\")\n\t\treturn nil, err\n\t}\n\n\treturn &FloatParameterRange{\n\t\tstart: start,\n\t\tend: end,\n\t}, nil\n}", "func main(){\n\tn := 3.14\n\tn = 13.7e72\n\tn = 2.1E14\n\tfmt.Printf(%v, %T, n, n)\n}", "func (c DataConversionConfig) GetFloatPrec() int {\n\t// The user-settable parameter ExtraFloatDigits indicates the number\n\t// of digits to be used to format the float value. PostgreSQL\n\t// combines this with %g.\n\t// The formula is <type>_DIG + extra_float_digits,\n\t// where <type> is either FLT (float4) or DBL (float8).\n\n\t// Also the value \"3\" in PostgreSQL is special and meant to mean\n\t// \"all the precision needed to reproduce the float exactly\". The Go\n\t// formatter uses the special value -1 for this and activates a\n\t// separate path in the formatter. We compare >= 3 here\n\t// just in case the value is not gated properly in the implementation\n\t// of SET.\n\tif c.ExtraFloatDigits >= 3 {\n\t\treturn -1\n\t}\n\n\t// CockroachDB only implements float8 at this time and Go does not\n\t// expose DBL_DIG, so we use the standard literal constant for\n\t// 64bit floats.\n\tconst StdDoubleDigits = 15\n\n\tnDigits := StdDoubleDigits + c.ExtraFloatDigits\n\tif nDigits < 1 {\n\t\t// Ensure the value is clamped at 1: printf %g does not allow\n\t\t// values lower than 1. PostgreSQL does this too.\n\t\tnDigits = 1\n\t}\n\treturn int(nDigits)\n}", "func getPrecision(precision, interval time.Duration) time.Duration {\n\tif precision > 0 {\n\t\treturn precision\n\t}\n\n\tswitch {\n\tcase interval >= time.Second:\n\t\treturn time.Second\n\tcase interval >= time.Millisecond:\n\t\treturn time.Millisecond\n\tcase interval >= time.Microsecond:\n\t\treturn time.Microsecond\n\tdefault:\n\t\treturn time.Nanosecond\n\t}\n}", "func main() {\n\n\tcvr := Converter{}\n\t// fmt.Println(cvr)\n\n\tft := fmt.Sprintf(\"%f\", float64(cvr.CentimeterToFeet(1)))\n\tfmt.Println(ft + \" ft\")\n\tcm := fmt.Sprintf(\"%f\", float64(cvr.FeetToCentimeter(1)))\n\tfmt.Println(cm + \" cm\")\n\n\tmins := fmt.Sprintf(\"%f\", float64(cvr.SecondsToMinutes(1)))\n\tfmt.Println(mins + \" minutes\")\n\tsecs := fmt.Sprintf(\"%f\", float64(cvr.MinutesToSeconds(1)))\n\tfmt.Println(secs + \" seeconds\")\n\n\tsec := fmt.Sprintf(\"%f\", float64(cvr.MillisecondsToSeconds(1)))\n\tfmt.Println(sec + \" seconds\")\n\tmsec := fmt.Sprintf(\"%f\", float64(cvr.SecondsToMilliseconds(1)))\n\tfmt.Println(msec + \" milliseconds\")\n\n\tfeh := fmt.Sprintf(\"%f\", float64(cvr.CelsiusToFahrenheit(0)))\n\tfmt.Println(feh + \" F\")\n\tcel := fmt.Sprintf(\"%f\", float64(cvr.FahrenheitToCelsius(32)))\n\tfmt.Println(cel + \" C\")\n\n\tdeg := fmt.Sprintf(\"%f\", float64(cvr.RadianToDegree(1)))\n\tfmt.Println(deg + \" degree\")\n\trad := fmt.Sprintf(\"%f\", float64(cvr.DegreeToRadian(1)))\n\tfmt.Println(rad + \" radian\")\n\n\tlbs := fmt.Sprintf(\"%f\", float64(cvr.KilogramToPounds(1)))\n\tfmt.Println(lbs + \" pounds\")\n\tkg := fmt.Sprintf(\"%f\", float64(cvr.PoundsToKilogram(1)))\n\tfmt.Println(kg + \" Kg\")\n\n\tlit := fmt.Sprintf(\"%f\", float64(cvr.GallonsToLiters(1)))\n\tfmt.Println(lit + \" L\")\n\tgal := fmt.Sprintf(\"%f\", float64(cvr.LitersToGallons(1)))\n\tfmt.Println(gal + \" gal\")\n\n}", "func (n Number) Precision() int8 {\n\treturn n.precision\n}", "func float642Uints(val float64) (bool, int, uint64, uint64) {\n\t//dst := make([]byte, 0, 24)\n\tvar bits uint64\n\tvar flt *floatInfo\n\tbits = math.Float64bits(val)\n\tflt = &float64info\n\n\tneg := bits>>(flt.expbits+flt.mantbits) != 0\n\texp := int(bits>>flt.mantbits) & (1<<flt.expbits - 1)\n\tmant := bits & (uint64(1)<<flt.mantbits - 1)\n\n\tswitch exp {\n\tcase 1<<flt.expbits - 1:\n\t\treturn neg, 0, 0, 0\n\tcase 0:\n\t\t// denormalized\n\t\texp++\n\tdefault:\n\t\t// add implicit top bit\n\t\tmant |= uint64(1) << flt.mantbits\n\t}\n\n\texp += flt.bias\n\n\tvar prec int\n\tvar digs decimalSlice\n\tok := false\n\t// Try Grisu3 algorithm.\n\tf := new(extFloat)\n\tlower, upper := f.AssignComputeBounds(mant, exp, neg, flt)\n\tvar buf [32]byte\n\tdigs.d = buf[:]\n\tok = f.ShortestDecimal(&digs, &lower, &upper)\n\tif !ok {\n\t\td := new(decimal)\n\t\td.Assign(mant)\n\t\td.Shift(exp - int(flt.mantbits))\n\t\tvar digs decimalSlice\n\t\troundShortest(d, mant, exp, flt)\n\t\tdigs = decimalSlice{d: d.d[:], nd: d.nd, dp: d.dp}\n\t\t// Precision for shortest representation mode.\n\t\tprec = max(digs.nd-digs.dp, 0)\n\t} else {\n\t\tprec = max(digs.nd-digs.dp, 0)\n\t}\n\t//\n\tvar integer, fraction uint64\n\n\t// integer, padded with zeros as needed.\n\tif digs.dp > 0 {\n\t\tm := min(digs.nd, digs.dp)\n\t\tfor i := 0; i < m; i++ {\n\t\t\tinteger *= 10\n\t\t\tinteger += uint64(digs.d[i]-'0')\n\t\t}\n\t\tfor ; m < digs.dp; m++ {\n\t\t\tinteger *= 10\n\t\t}\n\t}\n\n\t// fraction\n\tif prec > 0 {\n\t\tfor i := 0; i < prec; i++ {\n\t\t\tch := uint64(0)\n\t\t\tif j := digs.dp + i; 0 <= j && j < digs.nd {\n\t\t\t\tch = uint64(digs.d[j]-'0')\n\t\t\t}\n\t\t\tfraction *= 10\n\t\t\tfraction += ch\n\t\t}\n\t}\n\n\treturn neg, prec, integer, fraction\n}", "func (a *AssetRegistry) Precision(color devnetvm.Color) int {\n\tif asset, assetExists := a.Assets[color]; assetExists {\n\t\treturn int(asset.Precision)\n\t}\n\n\treturn 0\n}", "func getRange(expr string, r bounds) (uint64, error) {\n\tvar (\n\t\tstart, end, step uint\n\t\trangeAndStep = strings.Split(expr, \"/\")\n\t\tlowAndHigh = strings.Split(rangeAndStep[0], \"-\")\n\t\tsingleDigit = len(lowAndHigh) == 1\n\t\terr error\n\t)\n\n\tvar extra uint64\n\tif lowAndHigh[0] == \"*\" || lowAndHigh[0] == \"?\" {\n\t\tstart = r.min\n\t\tend = r.max\n\t\textra = starBit\n\t} else {\n\t\tstart, err = ParseInt(lowAndHigh[0])\n\t\tif err != nil {\n\t\t\treturn 0, err\n\t\t}\n\t\tswitch len(lowAndHigh) {\n\t\tcase 1:\n\t\t\tend = start\n\t\tcase 2:\n\t\t\tend, err = ParseInt(lowAndHigh[1])\n\t\t\tif err != nil {\n\t\t\t\treturn 0, err\n\t\t\t}\n\t\tdefault:\n\t\t\treturn 0, fmt.Errorf(\"Too many hyphens: %s\", expr)\n\t\t}\n\t}\n\n\tswitch len(rangeAndStep) {\n\tcase 1:\n\t\tstep = 1\n\tcase 2:\n\t\tstep, err = ParseInt(rangeAndStep[1])\n\t\tif err != nil {\n\t\t\treturn 0, err\n\t\t}\n\t\tif singleDigit {\n\t\t\tend = r.max\n\t\t}\n\tdefault:\n\t\treturn 0, fmt.Errorf(\"Too many slashes: %s\", expr)\n\t}\n\n\tif start < r.min {\n\t\treturn 0, fmt.Errorf(\"Beginning of range (%d) below minimum (%d): %s\", start, r.min, expr)\n\t}\n\tif end > r.max {\n\t\treturn 0, fmt.Errorf(\"End of range (%d) above maximum (%d): %s\", end, r.max, expr)\n\t}\n\tif start > end {\n\t\treturn 0, fmt.Errorf(\"Beginning of range (%d) beyond end of range (%d): %s\", start, end, expr)\n\t}\n\tif step == 0 {\n\t\treturn 0, fmt.Errorf(\"Step of range should be a positive number: %s\", expr)\n\t}\n\n\treturn getBits(start, end, step) | extra, nil\n}", "func main(){\n var intnumber int8 = -6\n var uintnumber uint8 = 6\n var floatnumber float32 = -6.7\n\n fmt.Println(intnumber)\n fmt.Println(uintnumber)\n fmt.Println(floatnumber)\n}", "func (l *lexer) getNumber() float64 {\n\tvalueEndIndex := l.pos + 1\n\tfor valueEndIndex < len(l.input) {\n\t\tch := l.input[valueEndIndex]\n\t\tif ch >= '0' && ch <= '9' {\n\t\t\tvalueEndIndex++\n\t\t\tcontinue\n\t\t}\n\t\tbreak\n\t}\n\tvalue, err := strconv.ParseFloat(l.input[l.pos:valueEndIndex], 64)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tl.pos = valueEndIndex\n\treturn value\n}", "func getRange(min, max int) int {\n\treturn max * min\n}", "func main() {\n\tx = 42\n\ty = 42.34546354235234523523\n\tfmt.Println(x)\n\tfmt.Printf(\"%T\\n\", x)\n\tfmt.Println(y)\n\tfmt.Printf(\"%T\\n\", y)\n\n\tfmt.Println(z)\n\n\t// GO Operating System\n\tfmt.Println(runtime.GOOS)\n\tfmt.Println(runtime.GOARCH)\n}", "func Numericf(value float64, precision int) string {\n\treturn f(value, precision, \"LC_NUMERIC\", true)\n}", "func appendNumber(dst []byte, src float64, bits int) []byte {\n\tif bits == 32 {\n\t\tsrc = float64(float32(src))\n\t}\n\n\tabs := math.Abs(src)\n\tfmt := byte('f')\n\tif abs != 0 {\n\t\tif bits == 64 && (float64(abs) < 1e-6 || float64(abs) >= 1e21) ||\n\t\t\tbits == 32 && (float32(abs) < 1e-6 || float32(abs) >= 1e21) {\n\t\t\tfmt = 'e'\n\t\t}\n\t}\n\tdst = strconv.AppendFloat(dst, src, fmt, -1, bits)\n\tif fmt == 'e' {\n\t\t// Clean up e-09 to e-9.\n\t\tn := len(dst)\n\t\tif n >= 4 && dst[n-4] == 'e' && dst[n-3] == '-' && dst[n-2] == '0' {\n\t\t\tdst[n-2] = dst[n-1]\n\t\t\tdst = dst[:n-1]\n\t\t}\n\t}\n\treturn dst\n}", "func (c *constWithPrecision) get(precision uint32) *Decimal {\n\ti := 0\n\t// Find the smallest precision available that's at least as high as precision,\n\t// i.e. Ceil[ log2(p) ] = 1 + Floor[ log2(p-1) ]\n\tif precision > 1 {\n\t\tprecision--\n\t\ti++\n\t}\n\tfor precision >= 16 {\n\t\tprecision /= 16\n\t\ti += 4\n\t}\n\tfor precision >= 2 {\n\t\tprecision /= 2\n\t\ti++\n\t}\n\tif i >= len(c.vals) {\n\t\treturn &c.unrounded\n\t}\n\treturn &c.vals[i]\n}", "func DepthRangef(n float32, f float32) {\n\tsyscall.Syscall(gpDepthRangef, 2, uintptr(math.Float32bits(n)), uintptr(math.Float32bits(f)), 0)\n}", "func parseNumber(cur *GoJSON, input []byte) ([]byte, error) {\n\tvar n, sign, scale float64\n\tvar subscale, signsubscale, offset int\n\tvar isDouble bool = false\n\n\tsign = 1\n\tsubscale = 0\n\tsignsubscale = 1\n\n\tif len(input) == 0 {\n\t\terrorStr := fmt.Sprintf(\"%s: Byte slice is empty\", funcName())\n\t\treturn []byte{}, errors.New(errorStr)\n\t}\n\n\tif input[offset] == '-' {\n\t\tsign = -1\n\t\toffset++\n\t}\n\n\tif unicode.IsDigit(rune(input[offset])) == false {\n\t\terrorStr := fmt.Sprintf(\"%s: Not a valid number in input %s\", funcName(), string(input))\n\t\treturn nil, errors.New(errorStr)\n\t}\n\n\tfor {\n\t\tif input[offset] == '0' {\n\t\t\toffset++\n\t\t} else {\n\t\t\tbreak\n\t\t}\n\t}\n\n\tfor {\n\t\tif unicode.IsDigit(rune(input[offset])) == true {\n\t\t\tn = (n * 10.0) + float64(input[offset]-'0')\n\t\t\toffset++\n\t\t} else {\n\t\t\tbreak\n\t\t}\n\t}\n\n\tif input[offset] == '.' && unicode.IsDigit(rune(input[offset+1])) == true {\n\t\toffset++\n\t\tisDouble = true\n\n\t\tfor {\n\t\t\tif unicode.IsDigit(rune(input[offset])) == true {\n\t\t\t\tn = (n * 10.0) + float64(input[offset]-'0')\n\t\t\t\toffset++\n\t\t\t\tscale--\n\t\t\t} else {\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n\n\tif input[offset] == 'e' || input[offset] == 'E' {\n\t\toffset++\n\t\tisDouble = true\n\n\t\tif input[offset] == '-' {\n\t\t\tsignsubscale = -1\n\t\t}\n\t\toffset++\n\n\t\tfor {\n\t\t\tif unicode.IsDigit(rune(input[offset])) == true {\n\t\t\t\tsubscale = (subscale * 10) + int(input[offset]-'0')\n\t\t\t\toffset++\n\t\t\t} else {\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n\n\tn = sign * n * math.Pow(10.0, scale+float64(subscale)*float64(signsubscale))\n\n\tif isDouble == true {\n\t\tcur.Valdouble = n\n\t\tcur.Jsontype = JSON_DOUBLE\n\t} else if sign == -1 {\n\t\tcur.Valint = int64(n)\n\t\tcur.Jsontype = JSON_INT\n\t} else {\n\t\tcur.Valuint = uint64(n)\n\t\tcur.Jsontype = JSON_UINT\n\t}\n\n\treturn input[offset:], nil\n}", "func DepthRangef(n Float, f Float) {\n\tcn, _ := (C.GLfloat)(n), cgoAllocsUnknown\n\tcf, _ := (C.GLfloat)(f), cgoAllocsUnknown\n\tC.glDepthRangef(cn, cf)\n}", "func DepthRange(n float64, f float64) {\n\tsyscall.Syscall(gpDepthRange, 2, uintptr(math.Float64bits(n)), uintptr(math.Float64bits(f)), 0)\n}", "func DepthRange(near float64, far float64) {\n C.glowDepthRange(gpDepthRange, (C.GLdouble)(near), (C.GLdouble)(far))\n}", "func ppBase(stars float64) float64 {\n\treturn pow(5.0*math.Max(1.0, stars/0.0675)-4.0, 3.0) /\n\t\t100000.0\n}", "func Range(value float64) *SimpleElement { return newSEFloat(\"range\", value) }", "func (rcv *Price) Precision() int8 {\n\treturn rcv._tab.GetInt8(rcv._tab.Pos + flatbuffers.UOffsetT(4))\n}", "func (p *Param) GetRange() (min, max float64, err error) {\n\tvar ferr C.FMOD_RESULT\n\tvar cmin, cmax C.float\n\tbase.Thread(func() {\n\t\tferr = C.FMOD_EventParameter_GetRange(p.param, &cmin, &cmax)\n\t})\n\tmin = float64(cmin)\n\tmax = float64(cmax)\n\terr = base.ResultToError(ferr)\n\treturn\n}", "func types() string {\n\tvar i int // define signed integer variable i of machine word size\n\tvar ui uint // in unsigned\n\t// alternative variable definition syntax with explicit word sizes\n\tvar (\n\t\ti8 int8\n\t\ti16 int16\n\t\ti32 int32\n\t\ti64 int64\n\t\tui8 uint8\n\t\tui16 uint16\n\t\tui32 uint32\n\t\tui64 uint64\n\t)\n\t// floats\n\tvar (\n\t\tf32 float32\n\t\tf64 float64\n\t)\n\tvar b byte // alias for uint8\n\tvar r rune // alias for int32, represents a Unicode code point\n\n\ti++ // increment\n\tui-- // decrement\n\t// Go needs explicit casts\n\ti8 += int8(ui8)\n\ti16 += int16(ui16)\n\ti32 += int32(ui32)\n\ti64 += int64(ui64)\n\tf64 += float64(f32)\n\t// assignments\n\tb = '?'\n\tr = '😷'\n\treturn string(r) + string(b)\n}", "func GetMinmax(target uint32, reset bool, format uint32, xtype uint32, values unsafe.Pointer) {\n C.glowGetMinmax(gpGetMinmax, (C.GLenum)(target), (C.GLboolean)(boolToInt(reset)), (C.GLenum)(format), (C.GLenum)(xtype), values)\n}", "func GetRenderbufferInternalFormat(target GLEnum) GLEnum {\n\tvar params int32\n\tgl.GetRenderbufferParameteriv(uint32(target), gl.RENDERBUFFER_INTERNAL_FORMAT, &params)\n\treturn GLEnum(params)\n}", "func (n NullNumeric) FormatCode() int16 { return pgx.BinaryFormatCode }", "func readNumber(pt *pathtokenizer, tokenType *int, token *string) (v float64, err error) {\n\tif *tokenType != scanNum {\n\t\treturn 0, fmt.Errorf(\"this token is not a Number but %d\", *tokenType)\n\t}\n\tv, err = strconv.ParseFloat(*token, 64) // parse float64\n\t*tokenType, *token = pt.get() // read next token\n\treturn\n}", "func precisionMultiplier(prec int64) *big.Int {\n\tif prec < 0 {\n\t\tpanic(fmt.Sprintf(\"negative precision %v\", prec))\n\t}\n\n\tif prec > LegacyPrecision {\n\t\tpanic(fmt.Sprintf(\"too much precision, maximum %v, provided %v\", LegacyPrecision, prec))\n\t}\n\treturn precisionMultipliers[prec]\n}", "func (x *Float) MinPrec() uint {}", "func NumberFormatParser() Parser {\n\treturn Parser{}\n}", "func getSliceNumber(e Expr) ([]float64, error) {\n\tswitch n := e.(type) {\n\tcase *SliceNumberLiteral:\n\t\treturn n.Val, nil\n\tcase *NilLiteral:\n\t\treturn []float64{}, nil\n\tdefault:\n\t\treturn []float64{}, fmt.Errorf(\"Literal is not a slice of float64: %v\", n)\n\t}\n}", "func FormatSupportedParameters() (result string) {\n\tfor _, v := range GetSupportedParameters() {\n\t\tresult = result + v + \" - \" + supportedParameterDescriptions[v] + \"\\n\"\n\t}\n\treturn \"\\nAvailable Parameters:\\n\" + result\n}", "func readNumber(iterator TokenIterator) []*basicToken {\n\tvar numberBasicTokens []*basicToken\n\n\tdashOrDigitsToken := iterator.Current()\n\tif dashOrDigitsToken.getType() == dash {\n\t\t// Negative sign\n\t\tnumberBasicTokens = append(numberBasicTokens, dashOrDigitsToken)\n\t\titerator.MoveNext()\n\t}\n\n\tdigitsI := iterator.Current()\n\tif digitsI != nil && digitsI.getType() == digits {\n\t\t// Whole number digits\n\t\tnumberBasicTokens = append(numberBasicTokens, digitsI)\n\t\titerator.MoveNext()\n\t}\n\n\tdecimal := iterator.Current()\n\tif decimal != nil && decimal.getType() == period {\n\t\t// Decimal point\n\t\tnumberBasicTokens = append(numberBasicTokens, decimal)\n\t\titerator.MoveNext()\n\n\t\tfractionalDigits := iterator.Current()\n\t\tif fractionalDigits != nil && fractionalDigits.getType() == digits {\n\t\t\t// Fractional number digits\n\t\t\tnumberBasicTokens = append(numberBasicTokens, fractionalDigits)\n\t\t\titerator.MoveNext()\n\t\t}\n\t}\n\n\texponentLetter := iterator.Current()\n\tif exponentLetter != nil {\n\t\tif exponentLetter.getType() == letters && strings.ToLower(exponentLetter.toString()) == \"e\" {\n\t\t\t// e\n\t\t\tnumberBasicTokens = append(numberBasicTokens, exponentLetter)\n\t\t\titerator.MoveNext()\n\n\t\t\texponentSign := iterator.Current()\n\t\t\tif exponentSign != nil &&\n\t\t\t\t(exponentSign.getType() == dash || exponentSign.getType() == plus) {\n\t\t\t\t// Exponent number sign\n\t\t\t\tnumberBasicTokens = append(numberBasicTokens, exponentSign)\n\t\t\t\titerator.MoveNext()\n\t\t\t}\n\n\t\t\texponentDigits := iterator.Current()\n\t\t\tif exponentDigits != nil && exponentDigits.getType() == digits {\n\t\t\t\t// Exponent number digits\n\t\t\t\tnumberBasicTokens = append(numberBasicTokens, exponentDigits)\n\t\t\t\titerator.MoveNext()\n\t\t\t}\n\t\t}\n\t}\n\n\treturn numberBasicTokens\n}", "func vvFromInt(i int64) (result []*vdl.Value) { //nolint:gocyclo\n\tu, f := uint64(i), float64(i)\n\tswitch {\n\tcase math.MinInt8 <= i && i <= math.MaxInt8:\n\t\tresult = append(result,\n\t\t\tvdl.IntValue(vdl.Int8Type, i),\n\t\t\tvdl.IntValue(vdl.Int8TypeN, i))\n\t\tfallthrough\n\tcase math.MinInt16 <= i && i <= math.MaxInt16:\n\t\tresult = append(result,\n\t\t\tvdl.IntValue(vdl.Int16Type, i),\n\t\t\tvdl.IntValue(vdl.Int16TypeN, i))\n\t\tfallthrough\n\tcase -1<<24 <= i && i <= 1<<24:\n\t\tresult = append(result,\n\t\t\tvdl.FloatValue(vdl.Float32Type, f),\n\t\t\tvdl.FloatValue(vdl.Float32TypeN, f))\n\t\tfallthrough\n\tcase math.MinInt32 <= i && i <= math.MaxInt32:\n\t\tresult = append(result,\n\t\t\tvdl.IntValue(vdl.Int32Type, i),\n\t\t\tvdl.IntValue(vdl.Int32TypeN, i))\n\t\tfallthrough\n\tcase -1<<53 <= i && i <= 1<<53:\n\t\tresult = append(result,\n\t\t\tvdl.FloatValue(vdl.Float64Type, f),\n\t\t\tvdl.FloatValue(vdl.Float64TypeN, f))\n\t\tfallthrough\n\tdefault:\n\t\tresult = append(result,\n\t\t\tvdl.IntValue(vdl.Int64Type, i),\n\t\t\tvdl.IntValue(vdl.Int64TypeN, i))\n\t}\n\tif i < 0 {\n\t\treturn\n\t}\n\tswitch {\n\tcase i <= math.MaxUint8:\n\t\tresult = append(result,\n\t\t\tvdl.UintValue(vdl.ByteType, u),\n\t\t\tvdl.UintValue(vdl.ByteTypeN, u))\n\t\tfallthrough\n\tcase i <= math.MaxUint16:\n\t\tresult = append(result,\n\t\t\tvdl.UintValue(vdl.Uint16Type, u),\n\t\t\tvdl.UintValue(vdl.Uint16TypeN, u))\n\t\tfallthrough\n\tcase i <= math.MaxUint32:\n\t\tresult = append(result,\n\t\t\tvdl.UintValue(vdl.Uint32Type, u),\n\t\t\tvdl.UintValue(vdl.Uint32TypeN, u))\n\t\tfallthrough\n\tdefault:\n\t\tresult = append(result,\n\t\t\tvdl.UintValue(vdl.Uint64Type, u),\n\t\t\tvdl.UintValue(vdl.Uint64TypeN, u))\n\t}\n\treturn\n}", "func main() {\n\tx := 24\n\ty := 42.2345\n\tfmt.Println(\"Value of 'x' :: \", x)\n\tfmt.Printf(\"Type of 'x' :: %T\\n\", x)\n\tfmt.Println(\"Value of 'y' :: \", y)\n\tfmt.Printf(\"Type of 'y' :: %T\\n\", y)\n}", "func (v *Provider) Range() (rng int64, err error) {\n\tres, err := v.statusG()\n\treturn res.Data.ElectricRange.Value, err\n}", "func main() {\n\tfmt.Println(getVariationsNum(\"11223344\"))\n}", "func main() {\n\t\n\tvar dimen_ft float64= 1362\n\t\n\tfmt.Print(\"The height of WTC is: \")\n\tfmt.Println(dimen_ft)\n\t\n\tvar f2m_conv = 0.3048\n\n\tvar dimen_m = dimen_ft * f2m_conv\n\n\tfmt.Print(\"The height in meters is: \")\n\tfmt.Println(dimen_m)\n\n}", "func (s *Shader) UniformFormat() AttrFormat {\n\treturn s.uniformFmt\n}", "func getNumber(e Expr) (float64, error) {\n\tswitch n := e.(type) {\n\tcase *NumberLiteral:\n\t\treturn n.Val, nil\n\tcase *NilLiteral:\n\t\treturn 0, nil\n\tdefault:\n\t\treturn 0, fmt.Errorf(\"Literal is not a number: %v\", n)\n\t}\n}", "func (s SamplesC64) Format() SampleFormat {\n\treturn SampleFormatC64\n}", "func (f v4l2Format) getPixFormat() PixFormat {\n\tpixfmt := (*PixFormat)(unsafe.Pointer(&f.fmt[0]))\n\treturn *pixfmt\n}", "func (me TxsdPresentationAttributesGraphicsTextRendering) IsGeometricPrecision() bool {\n\treturn me.String() == \"geometricPrecision\"\n}", "func (l *Lexer) readNumber() (token.TokenType, string) {\n\tposition := l.position\n\tdecimals := 0\n\tfor isDigit(l.ch) || l.ch == '.' {\n\t\tif l.ch == '.' {\n\t\t\tif decimals > 0 {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tdecimals++\n\t\t}\n\t\tl.readChar()\n\t}\n\tif decimals > 0 {\n\t\treturn token.FLOAT, l.input[position:l.position]\n\t}\n\n\treturn token.INT, l.input[position:l.position]\n}", "func readNumericLiteral(r *bufio.Reader) (string, bool) {\n\tb, err := r.ReadByte()\n\tif err != nil {\n\t\treturn \"\", false\n\t} else if !isDigit(b) && b != '-' {\n\t\treturn string(b), false\n\t}\n\n\tvar seenPeriod bool\n\tvar builder strings.Builder\n\tbuilder.WriteByte(b)\n\tfor {\n\t\tb, err := r.ReadByte()\n\t\tif err != nil {\n\t\t\treturn builder.String(), true\n\t\t}\n\t\tif b == '.' {\n\t\t\tif seenPeriod {\n\t\t\t\tbuilder.WriteByte(b)\n\t\t\t\treturn builder.String(), false\n\t\t\t}\n\t\t\tseenPeriod = true\n\t\t} else if !isDigit(b) {\n\t\t\tbreak\n\t\t}\n\t\tbuilder.WriteByte(b)\n\t}\n\t_ = r.UnreadByte()\n\n\treturn builder.String(), true\n}", "func main() {\n\tvar decoder cldr.Decoder\n\tcldr, err := decoder.DecodePath(\"data/core\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tnumbers := map[string]i18n.Number{}\n\tcalendars := map[string]i18n.Calendar{}\n\tlocales := cldr.Locales()\n\tfor _, loc := range locales {\n\t\tldml := cldr.RawLDML(loc)\n\t\tif ldml.Numbers == nil {\n\t\t\tcontinue\n\t\t}\n\t\tvar number i18n.Number\n\t\tif len(ldml.Numbers.Symbols) > 0 {\n\t\t\tsymbol := ldml.Numbers.Symbols[0]\n\t\t\tif len(symbol.Decimal) > 0 {\n\t\t\t\tnumber.Symbols.Decimal = symbol.Decimal[0].Data()\n\t\t\t}\n\t\t\tif len(symbol.Group) > 0 {\n\t\t\t\tnumber.Symbols.Group = symbol.Group[0].Data()\n\t\t\t}\n\t\t\tif len(symbol.MinusSign) > 0 {\n\t\t\t\tnumber.Symbols.Negative = symbol.MinusSign[0].Data()\n\t\t\t}\n\t\t\tif len(symbol.PercentSign) > 0 {\n\t\t\t\tnumber.Symbols.Percent = symbol.PercentSign[0].Data()\n\t\t\t}\n\t\t\tif len(symbol.PerMille) > 0 {\n\t\t\t\tnumber.Symbols.PerMille = symbol.PerMille[0].Data()\n\t\t\t}\n\t\t}\n\t\tif len(ldml.Numbers.DecimalFormats) > 0 && len(ldml.Numbers.DecimalFormats[0].DecimalFormatLength) > 0 {\n\t\t\tnumber.Formats.Decimal = ldml.Numbers.DecimalFormats[0].DecimalFormatLength[0].DecimalFormat[0].Pattern[0].Data()\n\t\t}\n\t\tif len(ldml.Numbers.CurrencyFormats) > 0 && len(ldml.Numbers.CurrencyFormats[0].CurrencyFormatLength) > 0 {\n\t\t\tnumber.Formats.Currency = ldml.Numbers.CurrencyFormats[0].CurrencyFormatLength[0].CurrencyFormat[0].Pattern[0].Data()\n\t\t}\n\t\tif len(ldml.Numbers.PercentFormats) > 0 && len(ldml.Numbers.PercentFormats[0].PercentFormatLength) > 0 {\n\t\t\tnumber.Formats.Percent = ldml.Numbers.PercentFormats[0].PercentFormatLength[0].PercentFormat[0].Pattern[0].Data()\n\t\t}\n\t\tif ldml.Numbers.Currencies != nil {\n\t\t\tfor _, currency := range ldml.Numbers.Currencies.Currency {\n\t\t\t\tvar c i18n.Currency\n\t\t\t\tc.Currency = currency.Type\n\t\t\t\tif len(currency.DisplayName) > 0 {\n\t\t\t\t\tc.DisplayName = currency.DisplayName[0].Data()\n\t\t\t\t}\n\t\t\t\tif len(currency.Symbol) > 0 {\n\t\t\t\t\tc.Symbol = currency.Symbol[0].Data()\n\t\t\t\t}\n\t\t\t\tnumber.Currencies = append(number.Currencies, c)\n\t\t\t}\n\t\t}\n\t\tnumbers[loc] = number\n\n\t\tif ldml.Dates != nil && ldml.Dates.Calendars != nil {\n\t\t\tvar calendar i18n.Calendar\n\t\t\tldmlCar := ldml.Dates.Calendars.Calendar[0]\n\t\t\tfor _, cal := range ldml.Dates.Calendars.Calendar {\n\t\t\t\tif cal.Type == \"gregorian\" {\n\t\t\t\t\tldmlCar = cal\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ldmlCar.DateFormats != nil {\n\t\t\t\tfor _, datefmt := range ldmlCar.DateFormats.DateFormatLength {\n\t\t\t\t\tswitch datefmt.Type {\n\t\t\t\t\tcase \"full\":\n\t\t\t\t\t\tcalendar.Formats.Date.Full = datefmt.DateFormat[0].Pattern[0].Data()\n\t\t\t\t\tcase \"long\":\n\t\t\t\t\t\tcalendar.Formats.Date.Long = datefmt.DateFormat[0].Pattern[0].Data()\n\t\t\t\t\tcase \"medium\":\n\t\t\t\t\t\tcalendar.Formats.Date.Medium = datefmt.DateFormat[0].Pattern[0].Data()\n\t\t\t\t\tcase \"short\":\n\t\t\t\t\t\tcalendar.Formats.Date.Short = datefmt.DateFormat[0].Pattern[0].Data()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ldmlCar.TimeFormats != nil {\n\t\t\t\tfor _, datefmt := range ldmlCar.TimeFormats.TimeFormatLength {\n\t\t\t\t\tswitch datefmt.Type {\n\t\t\t\t\tcase \"full\":\n\t\t\t\t\t\tcalendar.Formats.Time.Full = datefmt.TimeFormat[0].Pattern[0].Data()\n\t\t\t\t\tcase \"long\":\n\t\t\t\t\t\tcalendar.Formats.Time.Long = datefmt.TimeFormat[0].Pattern[0].Data()\n\t\t\t\t\tcase \"medium\":\n\t\t\t\t\t\tcalendar.Formats.Time.Medium = datefmt.TimeFormat[0].Pattern[0].Data()\n\t\t\t\t\tcase \"short\":\n\t\t\t\t\t\tcalendar.Formats.Time.Short = datefmt.TimeFormat[0].Pattern[0].Data()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ldmlCar.DateTimeFormats != nil {\n\t\t\t\tfor _, datefmt := range ldmlCar.DateTimeFormats.DateTimeFormatLength {\n\t\t\t\t\tswitch datefmt.Type {\n\t\t\t\t\tcase \"full\":\n\t\t\t\t\t\tcalendar.Formats.DateTime.Full = datefmt.DateTimeFormat[0].Pattern[0].Data()\n\t\t\t\t\tcase \"long\":\n\t\t\t\t\t\tcalendar.Formats.DateTime.Long = datefmt.DateTimeFormat[0].Pattern[0].Data()\n\t\t\t\t\tcase \"medium\":\n\t\t\t\t\t\tcalendar.Formats.DateTime.Medium = datefmt.DateTimeFormat[0].Pattern[0].Data()\n\t\t\t\t\tcase \"short\":\n\t\t\t\t\t\tcalendar.Formats.DateTime.Short = datefmt.DateTimeFormat[0].Pattern[0].Data()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ldmlCar.Months != nil {\n\t\t\t\tfor _, monthctx := range ldmlCar.Months.MonthContext {\n\t\t\t\t\tfor _, months := range monthctx.MonthWidth {\n\t\t\t\t\t\tvar i18nMonth i18n.CalendarMonthFormatNameValue\n\t\t\t\t\t\tfor _, m := range months.Month {\n\t\t\t\t\t\t\tswitch m.Type {\n\t\t\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\t\t\ti18nMonth.Jan = m.Data()\n\t\t\t\t\t\t\tcase \"2\":\n\t\t\t\t\t\t\t\ti18nMonth.Feb = m.Data()\n\t\t\t\t\t\t\tcase \"3\":\n\t\t\t\t\t\t\t\ti18nMonth.Mar = m.Data()\n\t\t\t\t\t\t\tcase \"4\":\n\t\t\t\t\t\t\t\ti18nMonth.Apr = m.Data()\n\t\t\t\t\t\t\tcase \"5\":\n\t\t\t\t\t\t\t\ti18nMonth.May = m.Data()\n\t\t\t\t\t\t\tcase \"6\":\n\t\t\t\t\t\t\t\ti18nMonth.Jun = m.Data()\n\t\t\t\t\t\t\tcase \"7\":\n\t\t\t\t\t\t\t\ti18nMonth.Jul = m.Data()\n\t\t\t\t\t\t\tcase \"8\":\n\t\t\t\t\t\t\t\ti18nMonth.Aug = m.Data()\n\t\t\t\t\t\t\tcase \"9\":\n\t\t\t\t\t\t\t\ti18nMonth.Sep = m.Data()\n\t\t\t\t\t\t\tcase \"10\":\n\t\t\t\t\t\t\t\ti18nMonth.Oct = m.Data()\n\t\t\t\t\t\t\tcase \"11\":\n\t\t\t\t\t\t\t\ti18nMonth.Nov = m.Data()\n\t\t\t\t\t\t\tcase \"12\":\n\t\t\t\t\t\t\t\ti18nMonth.Dec = m.Data()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tswitch months.Type {\n\t\t\t\t\t\tcase \"abbreviated\":\n\t\t\t\t\t\t\tcalendar.FormatNames.Months.Abbreviated = i18nMonth\n\t\t\t\t\t\tcase \"narrow\":\n\t\t\t\t\t\t\tcalendar.FormatNames.Months.Narrow = i18nMonth\n\t\t\t\t\t\tcase \"short\":\n\t\t\t\t\t\t\tcalendar.FormatNames.Months.Short = i18nMonth\n\t\t\t\t\t\tcase \"wide\":\n\t\t\t\t\t\t\tcalendar.FormatNames.Months.Wide = i18nMonth\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ldmlCar.Days != nil {\n\t\t\t\tfor _, dayctx := range ldmlCar.Days.DayContext {\n\t\t\t\t\tfor _, days := range dayctx.DayWidth {\n\t\t\t\t\t\tvar i18nDay i18n.CalendarDayFormatNameValue\n\t\t\t\t\t\tfor _, d := range days.Day {\n\t\t\t\t\t\t\tswitch d.Type {\n\t\t\t\t\t\t\tcase \"sun\":\n\t\t\t\t\t\t\t\ti18nDay.Sun = d.Data()\n\t\t\t\t\t\t\tcase \"mon\":\n\t\t\t\t\t\t\t\ti18nDay.Mon = d.Data()\n\t\t\t\t\t\t\tcase \"tue\":\n\t\t\t\t\t\t\t\ti18nDay.Tue = d.Data()\n\t\t\t\t\t\t\tcase \"wed\":\n\t\t\t\t\t\t\t\ti18nDay.Wed = d.Data()\n\t\t\t\t\t\t\tcase \"thu\":\n\t\t\t\t\t\t\t\ti18nDay.Thu = d.Data()\n\t\t\t\t\t\t\tcase \"fri\":\n\t\t\t\t\t\t\t\ti18nDay.Fri = d.Data()\n\t\t\t\t\t\t\tcase \"sat\":\n\t\t\t\t\t\t\t\ti18nDay.Sat = d.Data()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tswitch days.Type {\n\t\t\t\t\t\tcase \"abbreviated\":\n\t\t\t\t\t\t\tcalendar.FormatNames.Days.Abbreviated = i18nDay\n\t\t\t\t\t\tcase \"narrow\":\n\t\t\t\t\t\t\tcalendar.FormatNames.Days.Narrow = i18nDay\n\t\t\t\t\t\tcase \"short\":\n\t\t\t\t\t\t\tcalendar.FormatNames.Days.Short = i18nDay\n\t\t\t\t\t\tcase \"wide\":\n\t\t\t\t\t\t\tcalendar.FormatNames.Days.Wide = i18nDay\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ldmlCar.DayPeriods != nil {\n\t\t\t\tfor _, ctx := range ldmlCar.DayPeriods.DayPeriodContext {\n\t\t\t\t\tfor _, width := range ctx.DayPeriodWidth {\n\t\t\t\t\t\tvar i18nPeriod i18n.CalendarPeriodFormatNameValue\n\t\t\t\t\t\tfor _, d := range width.DayPeriod {\n\t\t\t\t\t\t\tswitch d.Type {\n\t\t\t\t\t\t\tcase \"am\":\n\t\t\t\t\t\t\t\tif i18nPeriod.AM == \"\" {\n\t\t\t\t\t\t\t\t\ti18nPeriod.AM = d.Data()\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcase \"pm\":\n\t\t\t\t\t\t\t\tif i18nPeriod.PM == \"\" {\n\t\t\t\t\t\t\t\t\ti18nPeriod.PM = d.Data()\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tswitch width.Type {\n\t\t\t\t\t\tcase \"abbreviated\":\n\t\t\t\t\t\t\tcalendar.FormatNames.Periods.Abbreviated = i18nPeriod\n\t\t\t\t\t\tcase \"narrow\":\n\t\t\t\t\t\t\tcalendar.FormatNames.Periods.Narrow = i18nPeriod\n\t\t\t\t\t\tcase \"short\":\n\t\t\t\t\t\t\tcalendar.FormatNames.Periods.Short = i18nPeriod\n\t\t\t\t\t\tcase \"wide\":\n\t\t\t\t\t\t\tcalendar.FormatNames.Periods.Wide = i18nPeriod\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// var empty i18n.CalendarPeriodFormatNameValue\n\t\t\t\t// if calendar.FormatNames.Periods.Abbreviated == empty {\n\t\t\t\t// \tcalendar.FormatNames.Periods.Abbreviated = calendar.FormatNames.Periods.Wide\n\t\t\t\t// }\n\t\t\t}\n\t\t\tcalendars[loc] = calendar\n\t\t}\n\t}\n\n\tvar wg sync.WaitGroup\n\twg.Add(len(numbers))\n\tfor locale, number := range numbers {\n\t\tgo func(locale string, number i18n.Number) {\n\t\t\tdefer func() { wg.Done() }()\n\t\t\tpath := \"resources/locales/\" + locale\n\t\t\tif _, err := os.Stat(path); err != nil {\n\t\t\t\tif err = os.MkdirAll(path, 0777); err != nil {\n\t\t\t\t\tpanic(err)\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumberFile, err := os.Create(path + \"/number.go\")\n\t\t\tif err != nil {\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t\tdefer func() { numberFile.Close() }()\n\t\t\tmainFile, err := os.Create(path + \"/main.go\")\n\t\t\tif err != nil {\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t\tdefer func() { mainFile.Close() }()\n\t\t\tcurrencyFile, err := os.Create(path + \"/currency.go\")\n\t\t\tif err != nil {\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t\tdefer func() { currencyFile.Close() }()\n\n\t\t\tmainCodes, err := format.Source([]byte(fmt.Sprintf(`package %s\n\t\t\timport \"github.com/theplant/cldr\"\n\n\t\t\tvar Locale = &cldr.Locale{\n\t\t\t\tLocale: %q,\n\t\t\t\tNumber: cldr.Number{\n\t\t\t\t\tSymbols: symbols,\n\t\t\t\t\tFormats: formats,\n\t\t\t\t\tCurrencies: currencies,\n\t\t\t\t},\n\t\t\t\tCalendar: calendar,\n\t\t\t\tPluralRule: pluralRule,\n\t\t\t}\n\n\t\t\tfunc init() {\n\t\t\t\tcldr.RegisterLocale(Locale)\n\t\t\t}\n\t\t`, locale, locale)))\n\t\t\tif err != nil {\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t\tfmt.Fprintf(mainFile, \"%s\", mainCodes)\n\n\t\t\tnumberCodes, err := format.Source([]byte(fmt.Sprintf(`package %s\n\t\t\timport \"github.com/theplant/cldr\"\n\n\t\t\tvar (\n\t\t\t\tsymbols = %# v\n\t\t\t\tformats = %# v\n\t\t\t)\n\t\t`, locale, pretty.Formatter(number.Symbols), pretty.Formatter(number.Formats))))\n\t\t\tif err != nil {\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t\tfmt.Fprintf(numberFile, \"%s\", numberCodes)\n\n\t\t\tcurrencyCodes, err := format.Source([]byte(fmt.Sprintf(`package %s\n\t\t\timport \"github.com/theplant/cldr\"\n\n\t\t\tvar currencies = %# v\n\t\t`, locale, pretty.Formatter(number.Currencies))))\n\t\t\tif err != nil {\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t\tfmt.Fprintf(currencyFile, \"%s\", currencyCodes)\n\n\t\t\tcalendar := calendars[locale]\n\t\t\tcalendarFile, err := os.Create(path + \"/calendar.go\")\n\t\t\tif err != nil {\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t\tdefer func() { calendarFile.Close() }()\n\n\t\t\tcalendarCodes, err := format.Source([]byte(fmt.Sprintf(`package %s\n\t\t\timport \"github.com/theplant/cldr\"\n\n\t\t\tvar calendar = %# v\n\t\t`, locale, pretty.Formatter(calendar))))\n\t\t\tif err != nil {\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t\tfmt.Fprintf(calendarFile, \"%s\", calendarCodes)\n\n\t\t\tpluralFile, err := os.Create(path + \"/plural.go\")\n\t\t\tif err != nil {\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t\tdefer func() { pluralFile.Close() }()\n\n\t\t\tpluralCodes, err := format.Source([]byte(fmt.Sprintf(`package %s\n\n\t\t\tvar pluralRule = \"1\"\n\t\t`, locale)))\n\t\t\tif err != nil {\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t\tfmt.Fprintf(pluralFile, \"%s\", pluralCodes)\n\t\t}(locale, number)\n\t}\n\n\twg.Wait()\n\n\tallFile, err := os.Create(\"resources/locales/all.go\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer func() { allFile.Close() }()\n\ttmpl, err := template.New(\"\").Parse(`package locales\n\t\timport (\n\t\t\t{{range $locale, $_ := .}}_ \"github.com/theplant/cldr/resources/locales/{{$locale}}\"\n\t\t{{end}})\n\t`)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tvar buf bytes.Buffer\n\tif err := tmpl.Execute(&buf, numbers); err != nil {\n\t\tpanic(err)\n\t}\n\tallCodes, err := format.Source(buf.Bytes())\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Fprintf(allFile, \"%s\", allCodes)\n}", "func Number() {\n\tfmt.Println(232, reflect.TypeOf(232))\n\tfmt.Println(232.67, reflect.TypeOf(232.67))\n}", "func (d Decimal) Precision() int32 {\n\treturn -d.Exponent()\n}", "func GPrintn(number int16, radix int8, signedValue int8) {}", "func parseSpecifier(b string) float64 {\n\tlb := len(b)\n\tif lb == 0 {\n\t\treturn 0\n\t}\n\n\tvar b0, b1 byte\n\tif lb < 2 {\n\t\tb0 = b[0]\n\t\tb1 = '0'\n\t} else {\n\t\tb1 = b[1]\n\t\tb0 = b[0]\n\t}\n\n\tif b1 != '0' {\n\t\tif b1 == 'b' { // bits, so convert bytes to bits for os.Seek()\n\t\t\tif b0 == 'k' || b0 == 'K' {\n\t\t\t\treturn 0.0078125\n\t\t\t}\n\n\t\t\tif b0 == 'm' || b0 == 'M' {\n\t\t\t\treturn 7.62939453125e-06\n\t\t\t}\n\n\t\t\tif b0 == 'g' || b0 == 'G' {\n\t\t\t\treturn 7.45058059692383e-09\n\t\t\t}\n\t\t}\n\n\t\tif b1 == 'B' { // kilo/mega/giga- bytes are assumed\n\t\t\tif b0 == 'k' || b0 == 'K' {\n\t\t\t\treturn 1024\n\t\t\t}\n\n\t\t\tif b0 == 'm' || b0 == 'M' {\n\t\t\t\treturn 1048576\n\t\t\t}\n\n\t\t\tif b0 == 'g' || b0 == 'G' {\n\t\t\t\treturn 1073741824\n\t\t\t}\n\t\t}\n\t} else { // kilo/mega/giga- bytes are assumed for single b, k, m, g\n\t\tif b0 == 'k' || b0 == 'K' {\n\t\t\treturn 1024\n\t\t}\n\n\t\tif b0 == 'm' || b0 == 'M' {\n\t\t\treturn 1048576\n\t\t}\n\n\t\tif b0 == 'g' || b0 == 'G' {\n\t\t\treturn 1073741824\n\t\t}\n\t}\n\n\treturn 1 // assumes bytes as fallback\n}", "func DepthRange(n float64, f float64) {\n\tC.glowDepthRange(gpDepthRange, (C.GLdouble)(n), (C.GLdouble)(f))\n}", "func DepthRange(n float64, f float64) {\n\tC.glowDepthRange(gpDepthRange, (C.GLdouble)(n), (C.GLdouble)(f))\n}", "func DepthRangef(n float32, f float32) {\n\tC.glowDepthRangef(gpDepthRangef, (C.GLfloat)(n), (C.GLfloat)(f))\n}", "func DepthRangef(n float32, f float32) {\n\tC.glowDepthRangef(gpDepthRangef, (C.GLfloat)(n), (C.GLfloat)(f))\n}", "func GetMultisamplefv(pname uint32, index uint32, val *float32) {\n C.glowGetMultisamplefv(gpGetMultisamplefv, (C.GLenum)(pname), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(val)))\n}", "func (wc *WriterBase) GetResolution(from int64, to int64) uint32 {\n\tredux := 3\n\tdiff := int(math.Abs(float64(to-from))) / redux // still get a lower res if w/i 3x the diff\n\tn := int(time.Now().Unix())\n\tbackF := n - int(from)\n\tbackT := n - int(to)\n\tfor _, res := range wc.resolutions {\n\t\tif diff <= res[1] && backF <= res[1] && backT <= res[1] {\n\t\t\treturn uint32(res[0])\n\t\t}\n\t}\n\treturn uint32(wc.resolutions[len(wc.resolutions)-1][0])\n}", "func rvFromInt(i int64) (result []interface{}) { //nolint:gocyclo\n\tswitch {\n\tcase math.MinInt8 <= i && i <= math.MaxInt8:\n\t\tresult = append(result, int8(i), vdl.NInt8(i))\n\t\tfallthrough\n\tcase math.MinInt16 <= i && i <= math.MaxInt16:\n\t\tresult = append(result, int16(i), vdl.NInt16(i))\n\t\tfallthrough\n\tcase -1<<24 <= i && i <= 1<<24:\n\t\tresult = append(result, float32(i), vdl.NFloat32(i))\n\t\tfallthrough\n\tcase math.MinInt32 <= i && i <= math.MaxInt32:\n\t\tresult = append(result, int32(i), vdl.NInt32(i))\n\t\tfallthrough\n\tcase -1<<53 <= i && i <= 1<<53:\n\t\tresult = append(result, float64(i), vdl.NFloat64(i))\n\t\tfallthrough\n\tdefault:\n\t\tresult = append(result, i, vdl.NInt64(i))\n\t}\n\tif i < 0 {\n\t\treturn\n\t}\n\tswitch {\n\tcase i <= math.MaxUint8:\n\t\tresult = append(result, byte(i), vdl.NByte(i))\n\t\tfallthrough\n\tcase i <= math.MaxUint16:\n\t\tresult = append(result, uint16(i), vdl.NUint16(i))\n\t\tfallthrough\n\tcase i <= math.MaxUint32:\n\t\tresult = append(result, uint32(i), vdl.NUint32(i))\n\t\tfallthrough\n\tdefault:\n\t\tresult = append(result, uint64(i), vdl.NUint64(i))\n\t}\n\treturn\n}", "func valString(v uint64) string {\n\treturn fmt.Sprintf(\"%.8f\", float64(v)/1e8)\n}", "func (f *Fs) Precision() time.Duration {\n\tvar greatestPrecision time.Duration\n\tfor _, u := range f.upstreams {\n\t\tuPrecision := u.f.Precision()\n\t\tif uPrecision > greatestPrecision {\n\t\t\tgreatestPrecision = uPrecision\n\t\t}\n\t}\n\treturn greatestPrecision\n}", "func (s serverImpl) getBatchPrecision(ctx types.Context, denom batchDenomT) (uint32, error) {\n\tvar batchInfo ecocredit.BatchInfo\n\terr := s.batchInfoTable.GetOne(ctx, orm.RowID(denom), &batchInfo)\n\tif err != nil {\n\t\treturn 0, err\n\t}\n\n\tclassInfo, err := s.getClassInfo(ctx, batchInfo.ClassId)\n\tif err != nil {\n\t\treturn 0, err\n\t}\n\n\treturn classInfo.CreditType.Precision, nil\n}", "func parseValue(s string) (float64, error) {\n\tcaps := valueRE.FindStringSubmatch(s)\n\tif len(caps) == 0 {\n\t\treturn 0, fmt.Errorf(\"Unparsable value: %s\", s)\n\t}\n\tv, err := strconv.ParseFloat(caps[1], 64)\n\tif err != nil {\n\t\treturn 0.0, errors.Wrapf(err, \"Error parsing value: %s\", s)\n\t}\n\n\tswitch u := caps[2]; u {\n\tcase \"\":\n\t\tfallthrough\n\tcase \"px\":\n\t\treturn v, nil\n\tcase \"in\":\n\t\treturn v * dpi, nil\n\tcase \"mm\":\n\t\treturn v * (dpi / mmPerInch), nil\n\tcase \"cm\":\n\t\treturn v * (mmPerCm * dpi / mmPerInch), nil\n\tcase \"pt\":\n\t\treturn v * (dpi / ptPerInch), nil\n\tcase \"pc\":\n\t\treturn v * (ptPerPc * dpi / ptPerInch), nil\n\tdefault:\n\t\treturn 0, fmt.Errorf(\"Unknown unit: %s\", u)\n\t}\n}", "func minFlenAndDecimalForType(tp byte) (int, int) {\n\tswitch tp {\n\tcase mysql.TypeTiny, mysql.TypeShort, mysql.TypeInt24, mysql.TypeLong, mysql.TypeLonglong, mysql.TypeYear:\n\t\treturn mysql.GetDefaultFieldLengthAndDecimal(tp)\n\tdefault:\n\t\t// todo support non-integer type\n\t\treturn UnspecifiedLength, UnspecifiedLength\n\t}\n}", "func (xs *Sheet) ReadNum(row int, col int) (float64, *Format) {\n\tlog.Print(\"Sheet::ReadNum() uses syscall.LazyDLL.NewProc().Call() which does not support float values\\n\")\n\tvar fo uintptr\n\ttmp, _, _ := xs.xb.lib.NewProc(\"xlSheetReadNumW\").\n\t\tCall(xs.self, I(row), I(col), uintptr(unsafe.Pointer(&fo)))\n\n\tformat := Format{}\n\tformat.xb = xs.xb\n\tformat.self = fo\n\treturn float64(tmp), &format\n}", "func TexBufferRange(target uint32, internalformat uint32, buffer uint32, offset int, size int) {\n C.glowTexBufferRange(gpTexBufferRange, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))\n}", "func getP9RGBA(c color.Color) (uint8, uint8, uint8, uint8) {\n\tp := palette.Plan9\n\tr, g, b, a := color.Palette.Convert(p, c).RGBA()\n\treturn uint8(r >> 8), uint8(g >> 8), uint8(b >> 8), uint8(a >> 8)\n}", "func (e TensorFormat) C() C.cudnnTensorFormat_t { return C.cudnnTensorFormat_t(e) }", "func capNum(n, min, max float64) float64 {\n\tif n > max {\n\t\treturn max\n\t} else if n < min {\n\t\treturn min\n\t}\n\treturn n\n}", "func formatValue(format string, value rel.Value) string {\n\tv := value.Export()\n\tswitch format[len(format)-1] {\n\tcase 't':\n\t\tv = value.Bool()\n\tcase 'c', 'd', 'o', 'O', 'x', 'X', 'U':\n\t\tv = int(value.Export().(float64))\n\tcase 'q':\n\t\tif f, ok := v.(float64); ok {\n\t\t\tv = int(f)\n\t\t}\n\t}\n\treturn fmt.Sprintf(format, v)\n}", "func parsePowerLimit(msr uint64, units RAPLPowerUnit, singleLimit bool) RAPLPowerLimit {\n\n\tvar powerLimit RAPLPowerLimit\n\n\tpowerLimit.Limit1.PowerLimit = float64(msr&0x7fff) * units.PowerUnits\n\tpowerLimit.Limit1.EnableLimit = ((msr >> 15) & 1) == 1\n\tpowerLimit.Limit1.ClampingLimit = ((msr >> 16) & 1) == 1\n\tpowerLimit.Limit1.TimeWindowLimit = parseTimeWindowLimit((msr>>17)&0x7f, units.TimeUnits)\n\n\tif singleLimit {\n\t\tpowerLimit.Lock = ((msr >> 32) & 1) == 1\n\t\treturn powerLimit\n\n\t}\n\tpowerLimit.Limit2.PowerLimit = float64((msr>>32)&0x7fff) * units.PowerUnits\n\tpowerLimit.Limit2.EnableLimit = ((msr >> 47) & 1) == 1\n\tpowerLimit.Limit2.ClampingLimit = ((msr >> 48) & 1) == 1\n\tpowerLimit.Limit2.TimeWindowLimit = parseTimeWindowLimit((msr>>49)&0x7f, units.TimeUnits)\n\n\tpowerLimit.Lock = ((msr >> 63) & 1) == 1\n\n\treturn powerLimit\n}", "func modifyNumericMetric(data interface{}, scale float64, shift float64) interface{} {\n\t//check if scale and shift parameters are set\n\tif scale == 1.0 && shift == 0.0 {\n\t\treturn data\n\t}\n\tvar modifiedData interface{}\n\t//use shift and scale and convert data to float64\n\tswitch data.(type) {\n\tcase uint32:\n\t\tmodifiedData = float64(data.(uint32))*scale + shift\n\tcase uint64:\n\t\tmodifiedData = float64(data.(uint64))*scale + shift\n\tcase int:\n\t\tmodifiedData = float64(data.(int))*scale + shift\n\tcase int32:\n\t\tmodifiedData = float64(data.(int32))*scale + shift\n\tcase int64:\n\t\tmodifiedData = float64(data.(int64))*scale + shift\n\tdefault:\n\t\tmodifiedData = data\n\t}\n\treturn modifiedData\n}", "func GetMultisamplefv(pname uint32, index uint32, val *float32) {\n\tsyscall.Syscall(gpGetMultisamplefv, 3, uintptr(pname), uintptr(index), uintptr(unsafe.Pointer(val)))\n}", "func PossibleFormatValues() []Format {\n\treturn []Format{\n\t\tFormatAzure,\n\t\tFormatExec,\n\t}\n}", "func (SupportedAdditionalProcessorFeature) Values() []SupportedAdditionalProcessorFeature {\n\treturn []SupportedAdditionalProcessorFeature{\n\t\t\"amd-sev-snp\",\n\t}\n}", "func IsPrecision(token Token) bool { _, present := precisionKeywords[token]; return present }", "func (p parseSpec) minMax() (int, int) {\n\tmaxVal := -math.MaxInt64\n\tminVal := math.MaxInt64\n\tfor _, v := range p {\n\t\tif v > maxVal {\n\t\t\tmaxVal = v\n\t\t} else if v < minVal {\n\t\t\tminVal = v\n\t\t}\n\t}\n\treturn minVal, maxVal\n}", "func type2CR2S4(query1, query2, split1, split2, split3, split4, split5, split6 string, inputType int) (a, b []string) {\n\tdb := dbConnec()\n\trows, err := db.Query(query1)\n\tdefer rows.Close()\n\tvar out, out1 []string\n\tvar sumCR1, sumCR2, sumS1, sumS2, sumS3, sumS4, f, s float64\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfor rows.Next() {\n\t\tf++\n\t\tvar x, y string\n\t\terr := rows.Scan(&x, &y)\n\t\tif err != nil {\n\t\t\tpanic(err.Error())\n\t\t}\n\t\tif inputType == 2 {\n\t\t\tout = append(out1, fmt.Sprintf(\"CPU: %s RAM: %s\\n\", x, y))\n\t\t\tlog.Println(split1, \":\", x, split2, \":\", y)\n\t\t}\n\t\tif inputType == 3 {\n\t\t\tif sumC1, err := strconv.ParseFloat(x, 32); err == nil {\n\t\t\t\tsumCR1 += sumC1\n\t\t\t}\n\t\t\tif sumC2, err := strconv.ParseFloat(y, 32); err == nil {\n\t\t\t\tsumCR2 += sumC2\n\t\t\t}\n\t\t}\n\t}\n\tif inputType == 3 {\n\t\tout = append(out1, fmt.Sprintf(\"Average CPU: %f, Average RAM: %f\\n\", sumCR1/f, sumCR2/f))\n\t\tlog.Println(\"Average\", split1, \": \", sumCR1/f, \"Average\", split2, \": \", sumCR2/f)\n\t}\n\n\trows1, err := db.Query(query2)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfor rows1.Next() {\n\t\ts++\n\t\tvar z, w, k, r string\n\t\terr := rows1.Scan(&z, &w, &k, &r)\n\t\tif err != nil {\n\t\t\tpanic(err.Error())\n\t\t}\n\t\tif inputType == 2 {\n\t\t\tout1 = append(out1, fmt.Sprintf(\"%s: %s, %s:%s, %s:%s, %s:%s\\n\", split3, z, split4, w, split5, k, split6, r))\n\t\t\tlog.Println(split3, \":\", z, \" \", split4, \":\", w, split5, \":\", k, split6, \":\", r)\n\t\t}\n\t\tif inputType == 3 {\n\t\t\tif sumSens1, err := strconv.ParseFloat(z, 32); err == nil {\n\t\t\t\tsumS1 += sumSens1\n\t\t\t}\n\t\t\tif sumSens2, err := strconv.ParseFloat(w, 32); err == nil {\n\t\t\t\tsumS2 += sumSens2\n\t\t\t}\n\t\t\tif sumSens3, err := strconv.ParseFloat(k, 32); err == nil {\n\t\t\t\tsumS3 += sumSens3\n\t\t\t}\n\t\t\tif sumSens4, err := strconv.ParseFloat(r, 32); err == nil {\n\t\t\t\tsumS4 += sumSens4\n\t\t\t}\n\t\t}\n\t}\n\tif inputType == 3 {\n\t\tout1 = append(out1, fmt.Sprintf(\" Average %s: %f, Average %s:%f, Average %s:%f, Average %s:%f\\n\", split3, sumS1/s, split4, sumS2/s, split5, sumS3/s, split6, sumS4/s))\n\t\tlog.Println(\"Average\", split3, \": \", sumS1/s, \"Average\", split4, \": \", sumS2/s, \"Average\", split5, \": \", sumS3/s, \"Average\", split6, \": \", sumS4/s)\n\t}\n\treturn out, out1\n}", "func (v *Provider) Range() (rng int64, err error) {\n\tres, err := v.chargerG()\n\tif err == nil {\n\t\tcrsd := res.Charger.Status.CruisingRangeStatusData\n\n\t\trng = int64(crsd.PrimaryEngineRange.Content)\n\t\tif crsd.EngineTypeFirstEngine.Content != \"typeIsElectric\" {\n\t\t\trng = int64(crsd.SecondaryEngineRange.Content)\n\t\t}\n\t}\n\n\treturn rng, err\n}", "func (DateTime_Precision) EnumDescriptor() ([]byte, []int) {\n\treturn file_proto_google_fhir_proto_stu3_datatypes_proto_rawDescGZIP(), []int{4, 0}\n}", "func (Time_Precision) EnumDescriptor() ([]byte, []int) {\n\treturn file_proto_google_fhir_proto_stu3_datatypes_proto_rawDescGZIP(), []int{13, 0}\n}", "func (f AvgPrxPrecisionField) Tag() quickfix.Tag { return tag.AvgPrxPrecision }", "func classifierDecimalPrecision(oldType *types.T, newType *types.T) ColumnConversionKind {\n\toldPrecision := oldType.Precision()\n\tnewPrecision := newType.Precision()\n\n\tswitch {\n\tcase oldPrecision == newPrecision:\n\t\treturn ColumnConversionTrivial\n\tcase oldPrecision == 0:\n\t\treturn ColumnConversionValidate\n\tcase newPrecision == 0 || newPrecision > oldPrecision:\n\t\treturn ColumnConversionTrivial\n\tdefault:\n\t\treturn ColumnConversionValidate\n\t}\n}", "func isNumeric(fl FieldLevel) bool {\n\tswitch fl.Field().Kind() {\n\tcase reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr, reflect.Float32, reflect.Float64:\n\t\treturn true\n\tdefault:\n\t\treturn numericRegex.MatchString(fl.Field().String())\n\t}\n}", "func (fn *formulaFuncs) EUROCONVERT(argsList *list.List) formulaArg {\n\tif argsList.Len() < 3 {\n\t\treturn newErrorFormulaArg(formulaErrorVALUE, \"EUROCONVERT requires at least 3 arguments\")\n\t}\n\tif argsList.Len() > 5 {\n\t\treturn newErrorFormulaArg(formulaErrorVALUE, \"EUROCONVERT allows at most 5 arguments\")\n\t}\n\tnumber := argsList.Front().Value.(formulaArg).ToNumber()\n\tif number.Type != ArgNumber {\n\t\treturn number\n\t}\n\tsourceCurrency := argsList.Front().Next().Value.(formulaArg).Value()\n\ttargetCurrency := argsList.Front().Next().Next().Value.(formulaArg).Value()\n\tfullPrec, triangulationPrec := newBoolFormulaArg(false), newNumberFormulaArg(0)\n\tif argsList.Len() >= 4 {\n\t\tif fullPrec = argsList.Front().Next().Next().Next().Value.(formulaArg).ToBool(); fullPrec.Type != ArgNumber {\n\t\t\treturn fullPrec\n\t\t}\n\t}\n\tif argsList.Len() == 5 {\n\t\tif triangulationPrec = argsList.Back().Value.(formulaArg).ToNumber(); triangulationPrec.Type != ArgNumber {\n\t\t\treturn triangulationPrec\n\t\t}\n\t}\n\tconvertTable := map[string][]float64{\n\t\t\"EUR\": {1.0, 2},\n\t\t\"ATS\": {13.7603, 2},\n\t\t\"BEF\": {40.3399, 0},\n\t\t\"DEM\": {1.95583, 2},\n\t\t\"ESP\": {166.386, 0},\n\t\t\"FIM\": {5.94573, 2},\n\t\t\"FRF\": {6.55957, 2},\n\t\t\"IEP\": {0.787564, 2},\n\t\t\"ITL\": {1936.27, 0},\n\t\t\"LUF\": {40.3399, 0},\n\t\t\"NLG\": {2.20371, 2},\n\t\t\"PTE\": {200.482, 2},\n\t\t\"GRD\": {340.750, 2},\n\t\t\"SIT\": {239.640, 2},\n\t\t\"MTL\": {0.429300, 2},\n\t\t\"CYP\": {0.585274, 2},\n\t\t\"SKK\": {30.1260, 2},\n\t\t\"EEK\": {15.6466, 2},\n\t\t\"LVL\": {0.702804, 2},\n\t\t\"LTL\": {3.45280, 2},\n\t}\n\tsource, ok := convertTable[sourceCurrency]\n\tif !ok {\n\t\treturn newErrorFormulaArg(formulaErrorVALUE, formulaErrorVALUE)\n\t}\n\ttarget, ok := convertTable[targetCurrency]\n\tif !ok {\n\t\treturn newErrorFormulaArg(formulaErrorVALUE, formulaErrorVALUE)\n\t}\n\tif sourceCurrency == targetCurrency {\n\t\treturn number\n\t}\n\tvar res float64\n\tif sourceCurrency == \"EUR\" {\n\t\tres = number.Number * target[0]\n\t} else {\n\t\tintermediate := number.Number / source[0]\n\t\tif triangulationPrec.Number != 0 {\n\t\t\tratio := math.Pow(10, triangulationPrec.Number)\n\t\t\tintermediate = math.Round(intermediate*ratio) / ratio\n\t\t}\n\t\tres = intermediate * target[0]\n\t}\n\tif fullPrec.Number != 1 {\n\t\tratio := math.Pow(10, target[1])\n\t\tres = math.Round(res*ratio) / ratio\n\t}\n\treturn newNumberFormulaArg(res)\n}", "func extractAmavisParameterFloat(content string) float64{\n patterns := []string{`(?P<result>\\d+)\\*1024;$`,\n `(?P<result>\\d\\.\\d+);$`,\n `(?P<result>\\d+);$`,\n }\n result := []byte{}\n for i := 0; (i<len(patterns) && string(result) == \"\"); i++ {\n pattern := regexp.MustCompile(patterns[i])\n if pattern.MatchString(content) {\n template := \"$result\"\n for _, submatches := range pattern.FindAllStringSubmatchIndex(content, -1) {\n // Apply the captured submatches to the template and append the output\n // to the result.\n result = pattern.ExpandString(result, template, content, submatches)\n }\n }\n }\n resultFloat, _ := strconv.ParseFloat(string(result), 64)\n return resultFloat\n}", "func Format(bytesPerSecond float64) (value, unit string) {\n\t// to make it bits per second\n\tnumPerSecond := bytesPerSecond * 8\n\ti := 0\n\tfor ; i < 3; i++ {\n\t\tif numPerSecond < 1024 {\n\t\t\tbreak\n\t\t}\n\t\tnumPerSecond /= 1024\n\t}\n\treturn fmt.Sprintf(\"%.2f\", numPerSecond), units[i]\n}", "func constrain(input, min, max float64) float32 {\n\tvar value float32\n\tvalue = float32(math.Min(max, math.Max(min, input)))\n\treturn value\n}", "func vvFromUint(u uint64) (result []*vdl.Value) {\n\ti, f := int64(u), float64(u)\n\tswitch {\n\tcase u <= math.MaxInt8:\n\t\tresult = append(result,\n\t\t\tvdl.IntValue(vdl.Int8Type, i),\n\t\t\tvdl.IntValue(vdl.Int8TypeN, i))\n\t\tfallthrough\n\tcase u <= math.MaxUint8:\n\t\tresult = append(result,\n\t\t\tvdl.UintValue(vdl.ByteType, u),\n\t\t\tvdl.UintValue(vdl.ByteTypeN, u))\n\t\tfallthrough\n\tcase u <= math.MaxInt16:\n\t\tresult = append(result,\n\t\t\tvdl.IntValue(vdl.Int16Type, i),\n\t\t\tvdl.IntValue(vdl.Int16TypeN, i))\n\t\tfallthrough\n\tcase u <= math.MaxUint16:\n\t\tresult = append(result,\n\t\t\tvdl.UintValue(vdl.Uint16Type, u),\n\t\t\tvdl.UintValue(vdl.Uint16TypeN, u))\n\t\tfallthrough\n\tcase u <= 1<<24:\n\t\tresult = append(result,\n\t\t\tvdl.FloatValue(vdl.Float32Type, f),\n\t\t\tvdl.FloatValue(vdl.Float32TypeN, f))\n\t\tfallthrough\n\tcase u <= math.MaxInt32:\n\t\tresult = append(result,\n\t\t\tvdl.IntValue(vdl.Int32Type, i),\n\t\t\tvdl.IntValue(vdl.Int32TypeN, i))\n\t\tfallthrough\n\tcase u <= math.MaxUint32:\n\t\tresult = append(result,\n\t\t\tvdl.UintValue(vdl.Uint32Type, u),\n\t\t\tvdl.UintValue(vdl.Uint32TypeN, u))\n\t\tfallthrough\n\tcase u <= 1<<53:\n\t\tresult = append(result,\n\t\t\tvdl.FloatValue(vdl.Float64Type, f),\n\t\t\tvdl.FloatValue(vdl.Float64TypeN, f))\n\t\tfallthrough\n\tcase u <= math.MaxInt64:\n\t\tresult = append(result,\n\t\t\tvdl.IntValue(vdl.Int64Type, i),\n\t\t\tvdl.IntValue(vdl.Int64TypeN, i))\n\t\tfallthrough\n\tdefault:\n\t\tresult = append(result,\n\t\t\tvdl.UintValue(vdl.Uint64Type, u),\n\t\t\tvdl.UintValue(vdl.Uint64TypeN, u))\n\t}\n\treturn result\n}" ]
[ "0.7283917", "0.7044346", "0.7023599", "0.6679898", "0.5296391", "0.5110981", "0.5053542", "0.4958243", "0.49415165", "0.48941338", "0.48913145", "0.48833287", "0.48478127", "0.48123774", "0.47896793", "0.47376335", "0.4701525", "0.46263656", "0.4585045", "0.45824984", "0.45593074", "0.4549694", "0.45308882", "0.4516699", "0.4505494", "0.4493856", "0.44867414", "0.44861504", "0.4474268", "0.4465515", "0.44486395", "0.4443045", "0.4435006", "0.44307956", "0.44268942", "0.44246262", "0.4417726", "0.4410329", "0.44048405", "0.44047818", "0.43974057", "0.4396599", "0.43878856", "0.43761748", "0.43749282", "0.43648148", "0.4364551", "0.4352424", "0.4350168", "0.43442303", "0.43367973", "0.4333251", "0.43295005", "0.43290046", "0.4328972", "0.4304661", "0.4299615", "0.42941856", "0.42928556", "0.42831948", "0.4265992", "0.42599893", "0.42501235", "0.42501235", "0.42494422", "0.42494422", "0.42427635", "0.4231322", "0.4230935", "0.4220641", "0.42190638", "0.42131102", "0.4199156", "0.41975802", "0.41963077", "0.41925296", "0.41921958", "0.41897982", "0.41897786", "0.41896528", "0.41890517", "0.41860008", "0.41746396", "0.41725853", "0.41718894", "0.41689658", "0.41636962", "0.41612938", "0.4155925", "0.41554245", "0.41553587", "0.41553503", "0.4149377", "0.4142256", "0.41375294", "0.41362876", "0.41276428", "0.41227", "0.41212806" ]
0.6796227
4
Returns the source code string from a shader object
func GetShaderSource(shader uint32, bufSize int32, length *int32, source *uint8) { C.glowGetShaderSource(gpGetShaderSource, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(source))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetShaderSource(s Shader) string {\n\tlog.Println(\"GetShaderSource: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)\")\n\tsourceLen := GetShaderi(s, gl.SHADER_SOURCE_LENGTH)\n\tif sourceLen == 0 {\n\t\treturn \"\"\n\t}\n\tbuf := make([]byte, sourceLen)\n\tgl.GetShaderSource(s.Value, int32(sourceLen), nil, &buf[0])\n\treturn string(buf)\n}", "func (shader Shader) Source(source string) {\n\tcstrs, free := gl.Strs(source + \"\\x00\")\n\tgl.ShaderSource(uint32(shader), 1, cstrs, nil)\n\tfree()\n}", "func GetShaderSource(shader uint32, bufSize int32, length *int32, source *int8) {\n C.glowGetShaderSource(gpGetShaderSource, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(source)))\n}", "func ShaderSource(s Shader, src string) {\n\tglsource, free := gl.Strs(src + \"\\x00\")\n\tgl.ShaderSource(s.Value, 1, glsource, nil)\n\tfree()\n}", "func ShaderSource(shader uint32, count int32, xstring **uint8, length *int32) {\n\tsyscall.Syscall6(gpShaderSource, 4, uintptr(shader), uintptr(count), uintptr(unsafe.Pointer(xstring)), uintptr(unsafe.Pointer(length)), 0, 0)\n}", "func ShaderSource(shader uint32, count int32, xstring **int8, length *int32) {\n C.glowShaderSource(gpShaderSource, (C.GLuint)(shader), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(xstring)), (*C.GLint)(unsafe.Pointer(length)))\n}", "func StringShader(content, contentType string) string {\n\tif content == \"\" {\n\t\treturn \"\"\n\t}\n\tif contentType == \"\" {\n\t\treturn content\n\t}\n\n\tvar shaderResult string\n\tvar offSet int\n\truneStr := []rune(content)\n\tswitch contentType {\n\tcase \"UserName\":\n\t\tshaderResult = fmt.Sprintf(\"%s**\", string(runeStr[:1]))\n\tcase \"BusinessCode\":\n\t\tshaderResult = fmt.Sprintf(\"%s*********\", string(runeStr[:6]))\n\tcase \"CreditCode\":\n\t\tshaderResult = fmt.Sprintf(\"%s**********\", string(runeStr[:8]))\n\tcase \"IdentityNo\":\n\t\tshaderResult = fmt.Sprintf(\"%s**********%s\", string(runeStr[:1]), string(runeStr[len(runeStr)-1:]))\n\tcase \"BankAccount\":\n\t\toffSet = MinInt(len(runeStr), 4)\n\t\tshaderResult = fmt.Sprintf(\"**************%s\", string(runeStr[len(runeStr)-offSet:]))\n\tcase \"AlipayAccount\":\n\t\tindexOfAt := strings.LastIndex(content, \"@\")\n\t\tif indexOfAt == -1 {\n\t\t\toffSet = MinInt(len(runeStr), 4)\n\t\t\tshaderResult = fmt.Sprintf(\"*******%s\", string(runeStr[len(runeStr)-offSet:]))\n\t\t} else {\n\t\t\toffSet = MinInt(indexOfAt, 2)\n\t\t\tshaderResult = fmt.Sprintf(\"*********%s\", string(runeStr[indexOfAt-offSet:]))\n\t\t}\n\t}\n\n\treturn shaderResult\n}", "func (native *OpenGL) ShaderSource(shader uint32, source string) {\n\tcsources, free := gl.Strs(source + \"\\x00\")\n\tdefer free()\n\n\tgl.ShaderSource(shader, 1, csources, nil)\n}", "func (gl *WebGL) ShaderSource(shader WebGLShader, source string) {\n\tgl.context.Call(\"shaderSource\", shader, source)\n}", "func (debugging *debuggingOpenGL) ShaderSource(shader uint32, source string) {\n\tdebugging.recordEntry(\"ShaderSource\", shader, source)\n\tdebugging.gl.ShaderSource(shader, source)\n\tdebugging.recordExit(\"ShaderSource\")\n}", "func ShaderSource(shader Uint, count Sizei, string []string, length []Int) {\n\tcshader, _ := (C.GLuint)(shader), cgoAllocsUnknown\n\tccount, _ := (C.GLsizei)(count), cgoAllocsUnknown\n\tcstring, _ := unpackArgSString(string)\n\tclength, _ := (*C.GLint)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&length)).Data)), cgoAllocsUnknown\n\tC.glShaderSource(cshader, ccount, cstring, clength)\n\tpackSString(string, cstring)\n}", "func ShaderSource(shader uint32, count int32, xstring **uint8, length *int32) {\n\tC.glowShaderSource(gpShaderSource, (C.GLuint)(shader), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(xstring)), (*C.GLint)(unsafe.Pointer(length)))\n}", "func ShaderSource(shader uint32, count int32, xstring **uint8, length *int32) {\n\tC.glowShaderSource(gpShaderSource, (C.GLuint)(shader), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(xstring)), (*C.GLint)(unsafe.Pointer(length)))\n}", "func GetShaderSource(shader uint32, bufSize int32, length *int32, source *uint8) {\n\tsyscall.Syscall6(gpGetShaderSource, 4, uintptr(shader), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(source)), 0, 0)\n}", "func GetShaderSource(shader Uint, bufSize Sizei, length *Sizei, source []byte) {\n\tcshader, _ := (C.GLuint)(shader), cgoAllocsUnknown\n\tcbufSize, _ := (C.GLsizei)(bufSize), cgoAllocsUnknown\n\tclength, _ := (*C.GLsizei)(unsafe.Pointer(length)), cgoAllocsUnknown\n\tcsource, _ := (*C.GLchar)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&source)).Data)), cgoAllocsUnknown\n\tC.glGetShaderSource(cshader, cbufSize, clength, csource)\n}", "func (native *OpenGL) GLShaderSource(shader uint32, count int32, xstring **uint8, length *int32) {\n\tgl.ShaderSource(shader, count, xstring, length)\n}", "func LoadShaderFromFile(path string) (string, error) {\n\tshaderCode, err := ioutil.ReadFile(path)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tresult := string(shaderCode) + \"\\x00\"\n\treturn result, nil\n}", "func (s *Shader) compile(source string, shaderType uint32) (shader uint32, err error) {\n\t// create a shader from source (returns shader ID)\n\tshader = gl.CreateShader(shaderType)\n\tcsource, free := gl.Strs(source) // returns a C String and a function to free the memory\n\t//\t\t\t\tshader, count, source string, length (unused)\n\tgl.ShaderSource(shader, 1, csource, nil)\n\tfree() // frees the memory used by csource\n\tgl.CompileShader(shader) // compile the shader\n\n\t// check if compiling failed\n\tvar status int32\n\t//\t\t\t shader info type\t\t pointer\n\tgl.GetShaderiv(shader, gl.COMPILE_STATUS, &status) // returns shader info\n\tif status == gl.FALSE {\n\t\tvar logLength int32\n\t\tgl.GetShaderiv(shader, gl.INFO_LOG_LENGTH, &logLength)\n\n\t\t// create empty string that can hold the log content\n\t\tlog := strings.Repeat(\"\\x00\", int(logLength+1))\n\t\tgl.GetShaderInfoLog(shader, logLength, nil, gl.Str(log)) // returns the shader compile log\n\n\t\t// set error message\n\t\terr = errors.New(\"Failed to compile OpenGL shader:\\n\" + log)\n\t}\n\n\treturn\n}", "func GLShader(shaderType uint32, source string) (uint32, error) {\n\t// Create shader based on shaderType\n\tshader := gl.CreateShader(shaderType)\n\t// Compile the Shader with the source\n\tcsources, free := gl.Strs(source)\n\tgl.ShaderSource(shader, 1, csources, nil)\n\tfree()\n\tgl.CompileShader(shader)\n\n\tvar status int32\n\tgl.GetShaderiv(shader, gl.COMPILE_STATUS, &status)\n\tif status == gl.FALSE {\n\t\tvar logLen int32\n\t\tgl.GetShaderiv(shader, gl.INFO_LOG_LENGTH, &logLen)\n\t\tlog := strings.Repeat(\"\\x00\", int(logLen+1))\n\t\tgl.GetShaderInfoLog(shader, logLen, nil, gl.Str(log))\n\n\t\treturn 0, fmt.Errorf(\"Failed to compile %v: %v\", source, log)\n\t}\n\n\treturn shader, nil\n}", "func ShaderBinary(count int32, shaders *uint32, binaryformat uint32, binary unsafe.Pointer, length int32) {\n C.glowShaderBinary(gpShaderBinary, (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(shaders)), (C.GLenum)(binaryformat), binary, (C.GLsizei)(length))\n}", "func CompileShader(shader uint32) {\n C.glowCompileShader(gpCompileShader, (C.GLuint)(shader))\n}", "func CompileShader(s Shader) {\n\tgl.CompileShader(s.Value)\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n C.glowGetShaderiv(gpGetShaderiv, (C.GLuint)(shader), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func compileShader(shaderType wasm.GLenum, shaderSrc string) (wasm.WebGLShader, error) {\n\tvar shader = gl.CreateShader(shaderType)\n\tgl.ShaderSource(shader, shaderSrc)\n\tgl.CompileShader(shader)\n\n\tif !gl.GetShaderParameter(shader, wasm.COMPILE_STATUS).(bool) {\n\t\treturn nil, fmt.Errorf(\"could not compile shader: %s\", gl.GetShaderInfoLog(shader))\n\t}\n\treturn shader, nil\n}", "func ShaderBinary(count int32, shaders *uint32, binaryFormat uint32, binary unsafe.Pointer, length int32) {\n\tC.glowShaderBinary(gpShaderBinary, (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(shaders)), (C.GLenum)(binaryFormat), binary, (C.GLsizei)(length))\n}", "func ShaderBinary(count int32, shaders *uint32, binaryFormat uint32, binary unsafe.Pointer, length int32) {\n\tC.glowShaderBinary(gpShaderBinary, (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(shaders)), (C.GLenum)(binaryFormat), binary, (C.GLsizei)(length))\n}", "func ShaderBinary(count int32, shaders *uint32, binaryformat uint32, binary unsafe.Pointer, length int32) {\n\tsyscall.Syscall6(gpShaderBinary, 5, uintptr(count), uintptr(unsafe.Pointer(shaders)), uintptr(binaryformat), uintptr(binary), uintptr(length), 0)\n}", "func (spirv *SPIRVCross) Convert(path, variant string, shader []byte, target, version string) (string, error) {\n\tbase := spirv.WorkDir.Path(filepath.Base(path), variant)\n\n\tif err := spirv.WorkDir.WriteFile(base, shader); err != nil {\n\t\treturn \"\", fmt.Errorf(\"unable to write shader to disk: %w\", err)\n\t}\n\n\tvar cmd *exec.Cmd\n\tswitch target {\n\tcase \"glsl\":\n\t\tcmd = exec.Command(spirv.Bin,\n\t\t\t\"--no-es\",\n\t\t\t\"--version\", version,\n\t\t)\n\tcase \"es\":\n\t\tcmd = exec.Command(spirv.Bin,\n\t\t\t\"--es\",\n\t\t\t\"--version\", version,\n\t\t)\n\tcase \"hlsl\":\n\t\tcmd = exec.Command(spirv.Bin,\n\t\t\t\"--hlsl\",\n\t\t\t\"--shader-model\", version,\n\t\t)\n\tdefault:\n\t\treturn \"\", fmt.Errorf(\"unknown target %q\", target)\n\t}\n\tcmd.Args = append(cmd.Args, \"--no-420pack-extension\", base)\n\n\tout, err := cmd.CombinedOutput()\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"%s\\nfailed to run %v: %w\", out, cmd.Args, err)\n\t}\n\ts := string(out)\n\tif target != \"hlsl\" {\n\t\t// Strip Windows \\r in line endings.\n\t\ts = unixLineEnding(s)\n\t}\n\n\treturn s, nil\n}", "func (cd *CloudStorage) GetPrecompiledObjectCode(ctx context.Context, precompiledObjectPath, bucketName string) (string, error) {\n\textension, err := getFileExtensionBySdk(precompiledObjectPath)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tdata, err := cd.getFileFromBucket(ctx, precompiledObjectPath, extension, bucketName)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tresult := string(data)\n\treturn result, nil\n}", "func GetShaderInfoLog(s Shader) string {\n\tvar logLength int32\n\tgl.GetShaderiv(s.Value, gl.INFO_LOG_LENGTH, &logLength)\n\tif logLength == 0 {\n\t\treturn \"\"\n\t}\n\n\tlogBuffer := make([]uint8, logLength)\n\tgl.GetShaderInfoLog(s.Value, logLength, nil, &logBuffer[0])\n\treturn gl.GoStr(&logBuffer[0])\n}", "func (trans TRANSFORM) Source() string {\n\n\tif len(trans.tags) == 0 {\n\t\treturn \"\"\n\t}\n\n\tout := []string{}\n\tfor _, v := range trans.tags {\n\t\t// out = append(out, k+Eq+url.QueryEscape(v.Source()))\n\t\tout = append(out, v.Source())\n\t}\n\treturn `transform=\"` + strings.Join(out, \" \") + `\"`\n}", "func source() string {\n\treturn \"I am an evil gopher\"\n}", "func (s SourceCodeType) String() string {\n\treturn awsutil.Prettify(s)\n}", "func (s *Script) Source() (interface{}, error) {\n\tif s.typ == \"\" && s.lang == \"\" && len(s.params) == 0 {\n\t\treturn s.script, nil\n\t}\n\tsource := make(map[string]interface{})\n\t// Beginning with 6.0, the type can only be \"source\" or \"id\"\n\tif s.typ == \"\" || s.typ == \"inline\" {\n\t\tsrc, err := s.rawScriptSource(s.script)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tsource[\"source\"] = src\n\t} else {\n\t\tsource[\"id\"] = s.script\n\t}\n\tif s.lang != \"\" {\n\t\tsource[\"lang\"] = s.lang\n\t}\n\tif len(s.params) > 0 {\n\t\tsource[\"params\"] = s.params\n\t}\n\treturn source, nil\n}", "func (s *Shader) Init(shader io.Reader) (err error) {\n\ts.uniformLocs = make(map[string]int32)\n\ts.uniformBIndices = make(map[string]uint32)\n\ts.uniformBOs = make(map[string]uint32)\n\tshaders := []uint32{}\n\n\treader := bufio.NewReader(shader)\n\n\tshaderTypeLine, err := reader.ReadString('\\n')\n\tif err != nil {\n\t\treturn err\n\t}\n\n\t// eof gets set to true if we reached the end of the file\n\teof := false\n\n\tfor {\n\t\tshader := \"\"\n\n\t\t// decide on the shader type\n\t\tvar shaderType uint32\n\t\ttypeStr := strings.Split(shaderTypeLine, \" \")[1]\n\t\tswitch strings.ToLower(typeStr) {\n\t\tcase \"vertex\\n\":\n\t\t\tshaderType = gl.VERTEX_SHADER\n\t\tcase \"fragment\\n\":\n\t\t\tshaderType = gl.FRAGMENT_SHADER\n\t\tdefault:\n\t\t\terr = errors.New(\"Shader type \" + typeStr + \" not known.\")\n\t\t\treturn err\n\t\t}\n\n\t\tfor {\n\t\t\tline, err := reader.ReadString('\\n')\n\t\t\tif err == io.EOF {\n\t\t\t\teof = true\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\t// start a new shader string with a new type if the line starts with \"#shader\"\n\t\t\tif strings.HasPrefix(line, \"#shader\") {\n\t\t\t\t// tell the next iteration the information on shader type we read\n\t\t\t\tshaderTypeLine = line\n\t\t\t\tbreak\n\t\t\t} else {\n\t\t\t\tshader += line\n\t\t\t}\n\t\t}\n\n\t\t// if the shader is not empty, compile it\n\t\tif len(shader) > 0 {\n\t\t\tshaderptr, err := s.compile(shader+\"\\x00\", shaderType)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tshaders = append(shaders, shaderptr)\n\t\t} else {\n\t\t\tbreak\n\t\t}\n\n\t\tif eof {\n\t\t\tbreak\n\t\t}\n\t}\n\n\t// link shaders\n\ts.Program = gl.CreateProgram()\n\tfor _, shader := range shaders {\n\t\tgl.AttachShader(s.Program, shader)\n\t}\n\tgl.LinkProgram(s.Program)\n\n\t// delete the singke shaders. we won't need them anymore\n\tfor _, shader := range shaders {\n\t\tgl.DeleteShader(shader)\n\t}\n\n\treturn\n}", "func (shader Shader) Compile() {\n\tgl.CompileShader(uint32(shader))\n}", "func ShaderBinary(count Sizei, shaders []Uint, binaryformat Enum, binary unsafe.Pointer, length Sizei) {\n\tccount, _ := (C.GLsizei)(count), cgoAllocsUnknown\n\tcshaders, _ := (*C.GLuint)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&shaders)).Data)), cgoAllocsUnknown\n\tcbinaryformat, _ := (C.GLenum)(binaryformat), cgoAllocsUnknown\n\tcbinary, _ := (unsafe.Pointer)(unsafe.Pointer(binary)), cgoAllocsUnknown\n\tclength, _ := (C.GLsizei)(length), cgoAllocsUnknown\n\tC.glShaderBinary(ccount, cshaders, cbinaryformat, cbinary, clength)\n}", "func (debugging *debuggingOpenGL) GetShaderInfoLog(shader uint32) string {\n\tdebugging.recordEntry(\"GetShaderInfoLog\", shader)\n\tresult := debugging.gl.GetShaderInfoLog(shader)\n\tdebugging.recordExit(\"GetShaderInfoLog\", result)\n\treturn result\n}", "func ReadVertexShader(path string) string {\n\treturn readShader(\"vertex\", path)\n}", "func (s *Shader) ID() uint32 {\n\treturn s.program.obj\n}", "func CompileShader(shader uint32) {\n\tsyscall.Syscall(gpCompileShader, 1, uintptr(shader), 0, 0)\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetShaderiv, 3, uintptr(shader), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func (c *Compiler) CompileIntoPreProcessedText(source string, shaderType ShaderType, inputFilename string, entryPoint string, options *CompilerOptions) *CompilationResult {\n\tcr := &CompilationResult{}\n\tcr.result = C.shaderc_compile_into_preprocessed_text(c.compiler,\n\t\tC.CString(source),\n\t\tC.ulong(len(source)),\n\t\tC.shaderc_shader_kind(shaderType),\n\t\tC.CString(inputFilename),\n\t\tC.CString(entryPoint), options.options)\n\treturn cr\n}", "func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *int8) {\n C.glowGetShaderInfoLog(gpGetShaderInfoLog, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func (i *Identifier) Source() []byte {\n\treturn i.Token.Lexeme\n}", "func main() {\n\tfile,err := os.Open(\"RolanEngine/shader/Unlit.shader\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer file.Close()\n\n\t//// 使用ioutil读取文件所有内容\n\tb, err := ioutil.ReadAll(file)\n\t//fmt.Print(string(b))\n\ttracer := string(b)\n\t//comma的意思是从字符串tracer查找第一个 #ifdef FRAGMENT,然后返回他的位置,这里的每个中文是占3个字符,从0开始计算,那么#ifdef FRAGMENT的位置就是12\n\tcomma := strings.Index(tracer, \"#ifdef FRAGMENT\")\n\t//pos := strings.Index(string(b)[comma:], \"#ifdef FRAGMENT\")\n\tfmt.Println(tracer[comma:] + \" + \\\"\\x00\\\"\")\n\n\t//tracer[comma:]这个是的意思截取字符串tracer,从12开始,包括12\n}", "func (s *Statement) SQLSource() (sql string) {\n\tif s.cptr != nil {\n\t\tsql = C.GoString(C.sqlite3_sql(s.cptr))\n\t}\n\treturn\n}", "func (sm *shaderManager) LoadProgramFromSrc(vertSrc string, fragSrc string, name string, shouldBeDefault bool) (Shader, error) {\n\tif program, alreadyLoaded := sm.GetShader(name); alreadyLoaded {\n\t\treturn program, nil\n\t}\n\n\tif !strings.HasSuffix(vertSrc, \"\\x00\") {\n\t\tvertSrc = vertSrc + \"\\x00\"\n\t}\n\n\tif !strings.HasSuffix(fragSrc, \"\\x00\") {\n\t\tfragSrc = fragSrc + \"\\x00\"\n\t}\n\n\tprogram, err := newProgram(vertSrc, fragSrc)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn nil, err\n\t}\n\n\tsm.programLock.Lock()\n\tdefer sm.programLock.Unlock()\n\n\tshader := newShader(name, program)\n\tsm.shaders[name] = shader\n\n\tif len(sm.shaders) == 1 || shouldBeDefault {\n\t\tsm.DefaultShader = name\n\t}\n\n\treturn shader, nil\n}", "func (a *AST) String() string {\n\treturn C.GoString(C.Z3_ast_to_string(a.rawCtx, a.rawAST))\n}", "func (r *device) LoadShader(s *gfx.Shader, done chan *gfx.Shader) {\n\t// If we are sharing assets with another renderer, allow it to load the\n\t// shader instead.\n\tr.shared.RLock()\n\tif r.shared.device != nil {\n\t\tr.shared.device.LoadShader(s, done)\n\t\tr.shared.RUnlock()\n\t\treturn\n\t}\n\tr.shared.RUnlock()\n\n\t// Perform pre-load checks on the shader.\n\tdoLoad, err := glutil.PreLoadShader(s, done)\n\tif err != nil {\n\t\tr.warner.Warnf(\"%v\\n\", err)\n\t\treturn\n\t}\n\tif !doLoad {\n\t\treturn\n\t}\n\n\tr.renderExec <- func() bool {\n\t\tnative := &nativeShader{\n\t\t\tr: r.rsrcManager,\n\t\t}\n\n\t\t// Compile vertex shader.\n\t\tnative.vertex = gl.CreateShader(gl.VERTEX_SHADER)\n\t\tsources, free := gl.Strs(string(s.GLSL.Vertex) + \"\\x00\")\n\t\tgl.ShaderSource(native.vertex, 1, sources, nil) // TODO(slimsag): use length parameter instead of null terminator\n\t\tgl.CompileShader(native.vertex)\n\t\tfree()\n\n\t\t// Check if the shader compiled or not.\n\t\tlog, compiled := shaderCompilerLog(native.vertex)\n\t\tif !compiled {\n\t\t\t// Just for sanity.\n\t\t\tnative.vertex = 0\n\n\t\t\t// Append the errors.\n\t\t\ts.Error = append(s.Error, []byte(s.Name+\" | Vertex shader errors:\\n\")...)\n\t\t\ts.Error = append(s.Error, log...)\n\t\t}\n\t\tif len(log) > 0 {\n\t\t\t// Send the compiler log to the debug writer.\n\t\t\tr.warner.Warnf(\"%s | Vertex shader errors:\\n\", s.Name)\n\t\t\tr.warner.Warnf(string(log))\n\t\t}\n\n\t\t// Compile fragment shader.\n\t\tnative.fragment = gl.CreateShader(gl.FRAGMENT_SHADER)\n\t\tsources, free = gl.Strs(string(s.GLSL.Fragment) + \"\\x00\")\n\t\tgl.ShaderSource(native.fragment, 1, sources, nil) // TODO(slimsag): use length parameter instead of null terminator\n\t\tgl.CompileShader(native.fragment)\n\t\tfree()\n\n\t\t// Check if the shader compiled or not.\n\t\tlog, compiled = shaderCompilerLog(native.fragment)\n\t\tif !compiled {\n\t\t\t// Just for sanity.\n\t\t\tnative.fragment = 0\n\n\t\t\t// Append the errors.\n\t\t\ts.Error = append(s.Error, []byte(s.Name+\" | Fragment shader errors:\\n\")...)\n\t\t\ts.Error = append(s.Error, log...)\n\t\t}\n\t\tif len(log) > 0 {\n\t\t\t// Send the compiler log to the debug writer.\n\t\t\tr.warner.Warnf(\"%s | Fragment shader errors:\\n\", s.Name)\n\t\t\tr.warner.Warnf(string(log))\n\t\t}\n\n\t\t// Create the shader program if all went well with the vertex and\n\t\t// fragment shaders.\n\t\tif native.vertex != 0 && native.fragment != 0 {\n\t\t\tnative.program = gl.CreateProgram()\n\t\t\tgl.AttachShader(native.program, native.vertex)\n\t\t\tgl.AttachShader(native.program, native.fragment)\n\t\t\tgl.LinkProgram(native.program)\n\n\t\t\t// Grab the linker's log.\n\t\t\tvar (\n\t\t\t\tlogSize int32\n\t\t\t\tlog []byte\n\t\t\t)\n\t\t\tgl.GetProgramiv(native.program, gl.INFO_LOG_LENGTH, &logSize)\n\n\t\t\tif logSize > 0 {\n\t\t\t\tlog = make([]byte, logSize)\n\t\t\t\tgl.GetProgramInfoLog(native.program, logSize, nil, &log[0])\n\n\t\t\t\t// Strip the null-termination byte.\n\t\t\t\tlog = log[:len(log)-1]\n\t\t\t}\n\n\t\t\t// Check for linker errors.\n\t\t\tvar ok int32\n\t\t\tgl.GetProgramiv(native.program, gl.LINK_STATUS, &ok)\n\t\t\tif ok == 0 {\n\t\t\t\t// Just for sanity.\n\t\t\t\tnative.program = 0\n\n\t\t\t\t// Append the errors.\n\t\t\t\ts.Error = append(s.Error, []byte(s.Name+\" | Linker errors:\\n\")...)\n\t\t\t\ts.Error = append(s.Error, log...)\n\t\t\t}\n\t\t\tif len(log) > 0 {\n\t\t\t\t// Send the linker log to the debug writer.\n\t\t\t\tr.warner.Warnf(\"%s | Linker errors:\\n\", s.Name)\n\t\t\t\tr.warner.Warnf(string(log))\n\t\t\t}\n\t\t}\n\n\t\t// Mark the shader as loaded if there were no errors.\n\t\tif len(s.Error) == 0 {\n\t\t\tnative.LocationCache = &glutil.LocationCache{\n\t\t\t\tGetAttribLocation: func(name string) int {\n\t\t\t\t\treturn int(gl.GetAttribLocation(native.program, gl.Str(name+\"\\x00\")))\n\t\t\t\t},\n\t\t\t\tGetUniformLocation: func(name string) int {\n\t\t\t\t\treturn int(gl.GetUniformLocation(native.program, gl.Str(name+\"\\x00\")))\n\t\t\t\t},\n\t\t\t}\n\n\t\t\ts.Loaded = true\n\t\t\ts.NativeShader = native\n\t\t\ts.ClearData()\n\n\t\t\t// Attach a finalizer to the shader that will later free it.\n\t\t\truntime.SetFinalizer(native, finalizeShader)\n\t\t}\n\n\t\t// Finish not Flush, see http://higherorderfun.com/blog/2011/05/26/multi-thread-opengl-texture-loading/\n\t\tgl.Finish()\n\n\t\t// Signal completion and return.\n\t\tselect {\n\t\tcase done <- s:\n\t\tdefault:\n\t\t}\n\t\treturn false // no frame rendered.\n\t}\n}", "func SourceText(n Node) string { return n.n().sourceText }", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n\tC.glowGetShaderiv(gpGetShaderiv, (C.GLuint)(shader), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n\tC.glowGetShaderiv(gpGetShaderiv, (C.GLuint)(shader), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (gl *WebGL) GetShaderInfoLog(shader WebGLShader) string {\n\treturn gl.context.Call(\"getShaderInfoLog\", shader).String()\n}", "func (obj *Device) CreateVertexShaderFromBytes(code []byte) (*VertexShader, Error) {\n\treturn obj.CreateVertexShader(uintptr(unsafe.Pointer(&code[0])))\n}", "func (shader Shader) GetInfoLog() string {\n\tvar bufSize int32\n\tgl.GetShaderiv(uint32(shader), gl.INFO_LOG_LENGTH, &bufSize)\n\tinfoLog := strings.Repeat(\"\\x00\", int(bufSize+1))\n\tgl.GetShaderInfoLog(uint32(shader), bufSize, nil, gl.Str(infoLog))\n\treturn infoLog\n}", "func (s CommitDiffSourceCodeType) String() string {\n\treturn awsutil.Prettify(s)\n}", "func GetShaderi(s Shader, pname Enum) int {\n\tvar result int32\n\tgl.GetShaderiv(s.Value, uint32(pname), &result)\n\treturn int(result)\n}", "func (s SlateSource) String() string {\n\treturn awsutil.Prettify(s)\n}", "func (s *baseNode) GetSourceString() string {\n\treturn string(s.GetSource())\n}", "func (self *TileSprite) Shader() *AbstractFilter{\n return &AbstractFilter{self.Object.Get(\"shader\")}\n}", "func Source(message string) string {\n\treturn Encode(SOURCE, message)\n}", "func (sh *ShaderStd) Name() string { return sh.MtlName }", "func ReleaseShaderCompiler() {\n C.glowReleaseShaderCompiler(gpReleaseShaderCompiler)\n}", "func (a Asset) source() string {\n\tsource := fileNameWithoutExt(a.PublicID)\n\n\tif !isURL(source) {\n\t\tvar err error\n\t\tsource, err = url.QueryUnescape(strings.Replace(source, \"%20\", \"+\", -1))\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t}\n\n\tsource = smartEscape(source)\n\n\tif a.Suffix != \"\" {\n\t\tsource += fmt.Sprintf(\"/%s\", a.Suffix)\n\t}\n\n\tif filepath.Ext(a.PublicID) != \"\" {\n\t\tsource += filepath.Ext(a.PublicID)\n\t}\n\n\treturn source\n}", "func (native *OpenGL) CompileShader(shader uint32) {\n\tgl.CompileShader(shader)\n}", "func (obj *Device) GetVertexShader() (*VertexShader, Error) {\n\tvar shader *VertexShader\n\tret, _, _ := syscall.Syscall(\n\t\tobj.vtbl.GetVertexShader,\n\t\t2,\n\t\tuintptr(unsafe.Pointer(obj)),\n\t\tuintptr(unsafe.Pointer(&shader)),\n\t\t0,\n\t)\n\treturn shader, toErr(ret)\n}", "func (text textBody) Source() string {\n\treturn text.str\n}", "func (native *OpenGL) GetShaderInfoLog(shader uint32) string {\n\tlogLength := native.GetShaderParameter(shader, gl.INFO_LOG_LENGTH)\n\tlog := strings.Repeat(\"\\x00\", int(logLength+1))\n\tgl.GetShaderInfoLog(shader, logLength, nil, gl.Str(log))\n\treturn log\n}", "func (o InstanceS3ImportOutput) SourceEngine() pulumi.StringOutput {\n\treturn o.ApplyT(func(v InstanceS3Import) string { return v.SourceEngine }).(pulumi.StringOutput)\n}", "func (t *Table) Source() (string, error) {\n\tb, err := render(t.SourceTemplate, t.parent.SourceTemplate, sourceTemplate, t)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\tb2, err := imports.Process(\"\", b, nil)\n\tif err != nil {\n\t\tlog.Println(\"WARN:\", err)\n\t\treturn string(b), nil\n\t}\n\n\treturn string(b2), nil\n}", "func (p *Program) String() string {\n\tvar out bytes.Buffer\n\tfor _, stmt := range p.Statements {\n\t\tout.WriteString(stmt.String())\n\t}\n\treturn out.String()\n}", "func (o ClusterS3ImportOutput) SourceEngine() pulumi.StringOutput {\n\treturn o.ApplyT(func(v ClusterS3Import) string { return v.SourceEngine }).(pulumi.StringOutput)\n}", "func crateSource(ctx android.SingletonContext, rModule *Module, comp *baseCompiler) (string, bool) {\n\t// Basic libraries, executables and tests.\n\tsrcs := comp.Properties.Srcs\n\tif len(srcs) != 0 {\n\t\treturn path.Join(ctx.ModuleDir(rModule), srcs[0]), true\n\t}\n\t// SourceProvider libraries.\n\tif rModule.sourceProvider != nil {\n\t\treturn sourceProviderSource(ctx, rModule)\n\t}\n\treturn \"\", false\n}", "func (cd *CloudStorage) GetPrecompiledObjectOutput(ctx context.Context, precompiledObjectPath, bucketName string) (string, error) {\n\tdata, err := cd.getFileFromBucket(ctx, precompiledObjectPath, OutputExtension, bucketName)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tresult := string(data)\n\treturn result, nil\n}", "func CompileShader(shader Uint) {\n\tcshader, _ := (C.GLuint)(shader), cgoAllocsUnknown\n\tC.glCompileShader(cshader)\n}", "func (native *OpenGL) GLGetShaderiv(shader uint32, pname uint32, params *int32) {\n\tgl.GetShaderiv(shader, pname, params)\n}", "func CreateShaderProgramv(xtype uint32, count int32, strings **int8) uint32 {\n ret := C.glowCreateShaderProgramv(gpCreateShaderProgramv, (C.GLenum)(xtype), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(strings)))\n return (uint32)(ret)\n}", "func newModel(src []byte) (*IRMF, error) {\n\tif bytes.Index(src, []byte(\"/*{\")) != 0 {\n\t\treturn nil, errors.New(`Unable to find leading \"/*{\"`)\n\t}\n\tendJSON := bytes.Index(src, []byte(\"\\n}*/\\n\"))\n\tif endJSON < 0 {\n\t\treturn nil, errors.New(`Unable to find trailing \"}*/\"`)\n\t}\n\n\tjsonBlobStr := string(src[2 : endJSON+2])\n\tjsonBlob, err := parseJSON(jsonBlobStr)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"unable to parse JSON blob: %v\", err)\n\t}\n\n\tshaderSrcBuf := src[endJSON+5:]\n\tunzip := func(data []byte) error {\n\t\tzr, err := gzip.NewReader(bytes.NewReader(data))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tbuf := &bytes.Buffer{}\n\t\tif _, err := io.Copy(buf, zr); err != nil {\n\t\t\treturn err\n\t\t}\n\t\tif err := zr.Close(); err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjsonBlob.Shader = buf.String()\n\t\treturn nil\n\t}\n\n\tif jsonBlob.Encoding != nil && *jsonBlob.Encoding == \"gzip+base64\" {\n\t\tdata, err := base64.RawStdEncoding.DecodeString(string(shaderSrcBuf))\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"uudecode error: %v\", err)\n\t\t}\n\t\tif err := unzip(data); err != nil {\n\t\t\treturn nil, fmt.Errorf(\"unzip: %v\", err)\n\t\t}\n\t\tjsonBlob.Encoding = nil\n\t} else if jsonBlob.Encoding != nil && *jsonBlob.Encoding == \"gzip\" {\n\t\tif err := unzip(shaderSrcBuf); err != nil {\n\t\t\treturn nil, fmt.Errorf(\"unzip: %v\", err)\n\t\t}\n\t\tjsonBlob.Encoding = nil\n\t} else {\n\t\tjsonBlob.Shader = string(shaderSrcBuf)\n\t}\n\n\tjsonBlob.Shader = processIncludes(jsonBlob.Shader)\n\n\tif lineNum, err := jsonBlob.validate(jsonBlobStr, jsonBlob.Shader); err != nil {\n\t\treturn nil, fmt.Errorf(\"invalid JSON blob on line %v: %v\", lineNum, err)\n\t}\n\n\treturn jsonBlob, nil\n}", "func (p *Program) String() string {\n\tvar out bytes.Buffer\n\n\tfor _, s := range p.Statements {\n\t\tout.WriteString(s.String())\n\t}\n\n\treturn out.String()\n}", "func (p *Program) String() string {\n\tvar out bytes.Buffer\n\n\tfor _, s := range p.Statements {\n\t\tout.WriteString(s.String())\n\t}\n\n\treturn out.String()\n}", "func (e *ExprShl) String() string {\n\treturn fmt.Sprintf(\"%v %v\", e.Type(), e.Ident())\n}", "func (use *USE) Source() string {\n\n\tif use.n != nil {\n\t\tuse.href = \"#\" + use.n.GetID()\n\t}\n\n\tif use.href == \"\" {\n\t\treturn \"\"\n\t}\n\n\tbody := fmt.Sprintf(useTag, use.href)\n\treturn _Source(use, body, useEndTag, use.node.inner)\n}", "func NewShader(vertexFmt, uniformFmt AttrFormat, vertexShader, fragmentShader string) (*Shader, error) {\n\tshader := &Shader{\n\t\tprogram: binder{\n\t\t\trestoreLoc: gl.CURRENT_PROGRAM,\n\t\t\tbindFunc: func(obj uint32) {\n\t\t\t\tgl.UseProgram(obj)\n\t\t\t},\n\t\t},\n\t\tvertexFmt: vertexFmt,\n\t\tuniformFmt: uniformFmt,\n\t\tuniformLoc: make([]int32, len(uniformFmt)),\n\t}\n\n\tvar vshader, fshader uint32\n\n\t// vertex shader\n\t{\n\t\tvshader = gl.CreateShader(gl.VERTEX_SHADER)\n\t\tsrc, free := gl.Strs(vertexShader)\n\t\tdefer free()\n\t\tlength := int32(len(vertexShader))\n\t\tgl.ShaderSource(vshader, 1, src, &length)\n\t\tgl.CompileShader(vshader)\n\n\t\tvar success int32\n\t\tgl.GetShaderiv(vshader, gl.COMPILE_STATUS, &success)\n\t\tif success == gl.FALSE {\n\t\t\tvar logLen int32\n\t\t\tgl.GetShaderiv(vshader, gl.INFO_LOG_LENGTH, &logLen)\n\n\t\t\tinfoLog := make([]byte, logLen)\n\t\t\tgl.GetShaderInfoLog(vshader, logLen, nil, &infoLog[0])\n\t\t\treturn nil, fmt.Errorf(\"error compiling vertex shader: %s\", string(infoLog))\n\t\t}\n\n\t\tdefer gl.DeleteShader(vshader)\n\t}\n\n\t// fragment shader\n\t{\n\t\tfshader = gl.CreateShader(gl.FRAGMENT_SHADER)\n\t\tsrc, free := gl.Strs(fragmentShader)\n\t\tdefer free()\n\t\tlength := int32(len(fragmentShader))\n\t\tgl.ShaderSource(fshader, 1, src, &length)\n\t\tgl.CompileShader(fshader)\n\n\t\tvar success int32\n\t\tgl.GetShaderiv(fshader, gl.COMPILE_STATUS, &success)\n\t\tif success == gl.FALSE {\n\t\t\tvar logLen int32\n\t\t\tgl.GetShaderiv(fshader, gl.INFO_LOG_LENGTH, &logLen)\n\n\t\t\tinfoLog := make([]byte, logLen)\n\t\t\tgl.GetShaderInfoLog(fshader, logLen, nil, &infoLog[0])\n\t\t\treturn nil, fmt.Errorf(\"error compiling fragment shader: %s\", string(infoLog))\n\t\t}\n\n\t\tdefer gl.DeleteShader(fshader)\n\t}\n\n\t// shader program\n\t{\n\t\tshader.program.obj = gl.CreateProgram()\n\t\tgl.AttachShader(shader.program.obj, vshader)\n\t\tgl.AttachShader(shader.program.obj, fshader)\n\t\tgl.LinkProgram(shader.program.obj)\n\n\t\tvar success int32\n\t\tgl.GetProgramiv(shader.program.obj, gl.LINK_STATUS, &success)\n\t\tif success == gl.FALSE {\n\t\t\tvar logLen int32\n\t\t\tgl.GetProgramiv(shader.program.obj, gl.INFO_LOG_LENGTH, &logLen)\n\n\t\t\tinfoLog := make([]byte, logLen)\n\t\t\tgl.GetProgramInfoLog(shader.program.obj, logLen, nil, &infoLog[0])\n\t\t\treturn nil, fmt.Errorf(\"error linking shader program: %s\", string(infoLog))\n\t\t}\n\t}\n\n\t// uniforms\n\tfor i, uniform := range uniformFmt {\n\t\tloc := gl.GetUniformLocation(shader.program.obj, gl.Str(uniform.Name+\"\\x00\"))\n\t\tshader.uniformLoc[i] = loc\n\t}\n\n\truntime.SetFinalizer(shader, (*Shader).delete)\n\n\treturn shader, nil\n}", "func CompileShader(shader uint32) {\n\tC.glowCompileShader(gpCompileShader, (C.GLuint)(shader))\n}", "func CompileShader(shader uint32) {\n\tC.glowCompileShader(gpCompileShader, (C.GLuint)(shader))\n}", "func (path *PATH) Source() string {\n\n\tbody := []string{}\n\tvar last *pathPart\n\tfor _, p := range path.parts {\n\t\tleadSymbol := false\n\n\t\tif p.Typ == \"Z\" || p.Typ == \"z\" {\n\t\t\tbody = append(body, p.Typ)\n\t\t\tlast = p\n\t\t\tcontinue\n\t\t}\n\n\t\ts := p.drawPart()\n\t\tif p.Typ == \"V\" || p.Typ == \"v\" || p.Typ == \"H\" || p.Typ == \"h\" {\n\t\t\tleadSymbol = true\n\t\t} else if (last != nil && last.Typ != p.Typ) || (last == nil) {\n\t\t\tleadSymbol = true\n\t\t}\n\n\t\tif leadSymbol {\n\t\t\ts = fmt.Sprintf(formatPartStart, p.Typ, s)\n\t\t}\n\n\t\tbody = append(body, s)\n\t\tlast = p\n\t}\n\n\tbodyLine := fmt.Sprintf(pathTag, strings.Join(body, \" \"))\n\treturn _Source(path, bodyLine, pathEndTag, path.inner)\n}", "func (s *AnalyzeStatement) String() string {\n\treturn fmt.Sprintf(\"ANALYZE %s\", s.Name.String())\n}", "func (o InstanceS3ImportPtrOutput) SourceEngine() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *InstanceS3Import) *string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn &v.SourceEngine\n\t}).(pulumi.StringPtrOutput)\n}", "func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tC.glowGetShaderInfoLog(gpGetShaderInfoLog, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tC.glowGetShaderInfoLog(gpGetShaderInfoLog, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func (debugging *debuggingOpenGL) CompileShader(shader uint32) {\n\tdebugging.recordEntry(\"CompileShader\", shader)\n\tdebugging.gl.CompileShader(shader)\n\tdebugging.recordExit(\"CompileShader\")\n}", "func GetString(name GLenum) string {\n\ts := unsafe.Pointer(C.glGetString(C.GLenum(name)))\n\treturn C.GoString((*C.char)(s))\n}", "func (p *Program) String() string {\n\tvar buf bytes.Buffer\n\n\tbuf.WriteString(fmt.Sprintf(`//\n//\tPackage - transpiled by c4go\n//\n//\tIf you have found any issues, please raise an issue at:\n//\thttps://github.com/Konstantin8105/c4go/\n//\n\n`))\n\n\t// Simplification from :\n\t//\tvar cc int32 = int32(uint8((func() []byte {\n\t//\t\tdefer func() {\n\t//\t\t\tfunc() []byte {\n\t//\t\t\t\ttempVarUnary := ss\n\t//\t\t\t\tdefer func() {\n\t//\t\t\t\t\tss = ss[0+1:]\n\t//\t\t\t\t}()\n\t//\t\t\t\treturn tempVarUnary\n\t//\t\t\t}()\n\t//\t\t}()\n\t//\t\treturn ss\n\t//\t}())[0]))\n\t//\n\t// to:\n\t//\tvar cc int32 = int32(uint8((func() []byte {\n\t//\t\tdefer func() {\n\t//\t\t\tss = ss[0+1:]\n\t//\t\t}()\n\t//\t\treturn ss\n\t//\t}())[0]))\n\tgoast.Walk(new(simpleDefer), p.File)\n\n\t// Only for debugging\n\t// goast.Walk(new(nilWalker), p.File)\n\n\t// First write all the messages. The double newline afterwards is important\n\t// so that the package statement has a newline above it so that the warnings\n\t// are not part of the documentation for the package.\n\tbuf.WriteString(strings.Join(p.messages, \"\\n\") + \"\\n\\n\")\n\n\tif err := format.Node(&buf, p.FileSet, p.File); err != nil {\n\t\t// Printing the entire AST will generate a lot of output. However, it is\n\t\t// the only way to debug this type of error. Hopefully the error\n\t\t// (printed immediately afterwards) will give a clue.\n\t\t//\n\t\t// You may see an error like:\n\t\t//\n\t\t// panic: format.Node internal error (692:23: expected selector or\n\t\t// type assertion, found '[')\n\t\t//\n\t\t// This means that when Go was trying to convert the Go AST to source\n\t\t// code it has come across a value or attribute that is illegal.\n\t\t//\n\t\t// The line number it is referring to (in this case, 692) is not helpful\n\t\t// as it references the internal line number of the Go code which you\n\t\t// will never see.\n\t\t//\n\t\t// The \"[\" means that there is a bracket in the wrong place. Almost\n\t\t// certainly in an identifer, like:\n\t\t//\n\t\t// noarch.IntTo[]byte(\"foo\")\n\t\t//\n\t\t// The \"[]\" which is obviously not supposed to be in the function name\n\t\t// is causing the syntax error. However, finding the original code that\n\t\t// produced this can be tricky.\n\t\t//\n\t\t// The first step is to filter down the AST output to probably lines.\n\t\t// In the error message it said that there was a misplaced \"[\" so that's\n\t\t// what we will search for. Using the original command (that generated\n\t\t// thousands of lines) we will add two grep filters:\n\t\t//\n\t\t// go test ... | grep \"\\[\" | grep -v '{$'\n\t\t// # | |\n\t\t// # | ^ This excludes lines that end with \"{\"\n\t\t// # | which almost certainly won't be what\n\t\t// # | we are looking for.\n\t\t// # |\n\t\t// # ^ This is the character we are looking for.\n\t\t//\n\t\t// Hopefully in the output you should see some lines, like (some lines\n\t\t// removed for brevity):\n\t\t//\n\t\t// 9083 . . . . . . . . . . Name: \"noarch.[]byteTo[]int\"\n\t\t// 9190 . . . . . . . . . Name: \"noarch.[]intTo[]byte\"\n\t\t//\n\t\t// These two lines are clearly the error because a name should not look\n\t\t// like this.\n\t\t//\n\t\t// Looking at the full output of the AST (thousands of lines) and\n\t\t// looking at those line numbers should give you a good idea where the\n\t\t// error is coming from; by looking at the parents of the bad lines.\n\t\t_ = goast.Print(p.FileSet, p.File)\n\n\t\tpanic(err)\n\t}\n\n\t// Add comments at the end C file\n\tfor file, beginLine := range p.commentLine {\n\t\tfor i := range p.PreprocessorFile.GetComments() {\n\t\t\tif p.PreprocessorFile.GetComments()[i].File == file {\n\t\t\t\tif beginLine.line < p.PreprocessorFile.GetComments()[i].Line {\n\t\t\t\t\tbuf.WriteString(\n\t\t\t\t\t\tfmt.Sprintln(\n\t\t\t\t\t\t\tp.PreprocessorFile.GetComments()[i].Comment))\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// simplify Go code. Example :\n\t// Before:\n\t// func compare(a interface {\n\t// }, b interface {\n\t// }) (c4goDefaultReturn int) {\n\t// After :\n\t// func compare(a interface {}, b interface {}) (c4goDefaultReturn int) {\n\treg := util.GetRegex(\"interface( )?{(\\r*)\\n(\\t*)}\")\n\ts := string(reg.ReplaceAll(buf.Bytes(), []byte(\"interface {}\")))\n\n\tsp := strings.Split(s, \"\\n\")\n\tfor i := range sp {\n\t\tif strings.HasSuffix(sp[i], \"-= 1\") {\n\t\t\tsp[i] = strings.TrimSuffix(sp[i], \"-= 1\") + \"--\"\n\t\t}\n\t\tif strings.HasSuffix(sp[i], \"+= 1\") {\n\t\t\tsp[i] = strings.TrimSuffix(sp[i], \"+= 1\") + \"++\"\n\t\t}\n\t}\n\n\treturn strings.Join(sp, \"\\n\")\n}", "func (stmts Statements) String() string {\n\treturn stmts.StringWithFlags(ast.FmtSimple)\n}", "func (s ContextSource) String() string {\n\treturn awsutil.Prettify(s)\n}", "func (l *loader) txt(fileName string) (lines []string, err error) {\n\tvar file io.ReadCloser\n\tif file, err = l.getResource(l.dir[src], fileName); err == nil {\n\t\tdefer file.Close()\n\t\tcharacters, _ := ioutil.ReadAll(bufio.NewReader(file))\n\t\tlines = strings.Split(string(characters), \"\\n\")\n\n\t\t// shader source lines must be terminated with a linefeed in order to compile.\n\t\tfor cnt := range lines {\n\t\t\tlines[cnt] = strings.TrimSpace(lines[cnt]) + \"\\n\"\n\t\t}\n\n\t\t// remove extraneous last line from split.\n\t\tlines = lines[0 : len(lines)-1]\n\t}\n\treturn\n}", "func SourceFromString(s string) *Source {\n return &Source{ Path: \"str\", Text: []byte(s) }\n}", "func (t *Template) Source() string {\n\tif t.source == \"\" {\n\t\treturn \"(dynamic)\"\n\t}\n\treturn t.source\n}" ]
[ "0.68910927", "0.6829592", "0.67685515", "0.6651526", "0.6643532", "0.65715384", "0.646141", "0.6392022", "0.63454235", "0.6338147", "0.63351244", "0.63091636", "0.63091636", "0.62784886", "0.5954171", "0.59218055", "0.5913893", "0.58197033", "0.5685558", "0.55534625", "0.55335027", "0.5529263", "0.54638195", "0.5441285", "0.5420917", "0.5420917", "0.5370749", "0.53571796", "0.5309197", "0.5289176", "0.5272179", "0.5227006", "0.52045697", "0.51682186", "0.51566905", "0.5148139", "0.5116428", "0.5112847", "0.50831974", "0.50803614", "0.50801545", "0.5076214", "0.50736135", "0.5069959", "0.5068431", "0.5054888", "0.50507796", "0.50355047", "0.50233865", "0.50207245", "0.501466", "0.5013037", "0.5013037", "0.5001535", "0.49924743", "0.49573737", "0.49447146", "0.49432272", "0.4933743", "0.4931344", "0.49177095", "0.4894052", "0.4888378", "0.48855984", "0.48797175", "0.4877641", "0.48696023", "0.48652333", "0.48528853", "0.48506507", "0.48477995", "0.48380175", "0.48317772", "0.48263022", "0.4823928", "0.4822496", "0.4819144", "0.48191038", "0.48158133", "0.48142976", "0.48142976", "0.48099786", "0.4808482", "0.48075962", "0.47843888", "0.47843888", "0.4774717", "0.4769921", "0.47503263", "0.4748893", "0.4748893", "0.47470322", "0.47328302", "0.47292796", "0.47292554", "0.4725609", "0.4721829", "0.47214568", "0.47203612" ]
0.6227499
15
Returns a parameter from a shader object
func GetShaderiv(shader uint32, pname uint32, params *int32) { C.glowGetShaderiv(gpGetShaderiv, (C.GLuint)(shader), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (native *OpenGL) GetShaderParameter(shader uint32, param uint32) int32 {\n\tresult := int32(0)\n\tgl.GetShaderiv(shader, param, &result)\n\treturn result\n}", "func (debugging *debuggingOpenGL) GetShaderParameter(shader uint32, param uint32) int32 {\n\tdebugging.recordEntry(\"GetShaderParameter\", shader, param)\n\tresult := debugging.gl.GetShaderParameter(shader, param)\n\tdebugging.recordExit(\"GetShaderParameter\", result)\n\treturn result\n}", "func (gl *WebGL) GetShaderParameter(shader WebGLShader, param GLEnum) js.Value {\n\treturn gl.context.Call(\"getShaderParameter\", shader, param)\n}", "func (p *Program) getParameter(param uint32) int {\n\tvar v int32\n\tgl.GetProgramiv(uint32(p.glHandle), param, &v)\n\treturn int(v)\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n C.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n C.glowGetShaderiv(gpGetShaderiv, (C.GLuint)(shader), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetShaderSource(shader uint32, bufSize int32, length *int32, source *int8) {\n C.glowGetShaderSource(gpGetShaderSource, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(source)))\n}", "func (gl *WebGL) GetProgramParameter(shaderProgram WebGLShaderProgram, param GLEnum) js.Value {\n\treturn gl.context.Call(\"getProgramParameter\", shaderProgram, param)\n}", "func (self *TileSprite) Shader() *AbstractFilter{\n return &AbstractFilter{self.Object.Get(\"shader\")}\n}", "func (native *OpenGL) GetProgramParameter(program uint32, param uint32) int32 {\n\tresult := int32(0)\n\tgl.GetProgramiv(program, param, &result)\n\treturn result\n}", "func GetUniformLocation(program uint32, name *int8) int32 {\n ret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tC.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tC.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetShaderiv, 3, uintptr(shader), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func GetShaderSource(shader uint32, bufSize int32, length *int32, source *uint8) {\n\tsyscall.Syscall6(gpGetShaderSource, 4, uintptr(shader), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(source)), 0, 0)\n}", "func ShaderSource(shader uint32, count int32, xstring **int8, length *int32) {\n C.glowShaderSource(gpShaderSource, (C.GLuint)(shader), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(xstring)), (*C.GLint)(unsafe.Pointer(length)))\n}", "func (native *OpenGL) GLGetShaderiv(shader uint32, pname uint32, params *int32) {\n\tgl.GetShaderiv(shader, pname, params)\n}", "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func TexParameteri(target, pname Enum, param int) {\n\tgl.TexParameteri(uint32(target), uint32(pname), int32(param))\n}", "func TexParameterf(target, pname Enum, param float32) {\n\tgl.TexParameterf(uint32(target), uint32(pname), param)\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n C.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetShaderi(s Shader, pname Enum) int {\n\tvar result int32\n\tgl.GetShaderiv(s.Value, uint32(pname), &result)\n\treturn int(result)\n}", "func ShaderSource(shader uint32, count int32, xstring **uint8, length *int32) {\n\tsyscall.Syscall6(gpShaderSource, 4, uintptr(shader), uintptr(count), uintptr(unsafe.Pointer(xstring)), uintptr(unsafe.Pointer(length)), 0, 0)\n}", "func (debugging *debuggingOpenGL) GetProgramParameter(program uint32, param uint32) int32 {\n\tdebugging.recordEntry(\"GetProgramParameter\", program, param)\n\tresult := debugging.gl.GetProgramParameter(program, param)\n\tdebugging.recordExit(\"GetProgramParameter\", result)\n\treturn result\n}", "func (gl *WebGL) ShaderSource(shader WebGLShader, source string) {\n\tgl.context.Call(\"shaderSource\", shader, source)\n}", "func (gl *WebGL) TexParameteri(target GLEnum, param GLEnum, value int) {\n\tgl.context.Call(\"texParameteri\", target, param, value)\n}", "func getParam(memory []int, ip int, rb int, mode ParamMode) int {\n\tswitch mode {\n\tcase POSITION:\n\t\treturn memory[memory[ip]]\n\tcase IMMEDIATE:\n\t\treturn memory[ip]\n\tcase RELATIVE:\n\t\treturn memory[rb+memory[ip]]\n\tdefault:\n\t\tpanic(fmt.Errorf(\"Unknown parameter mode: %d\", mode))\n\t}\n\treturn 0\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tsyscall.Syscall(gpGetUniformfv, 3, uintptr(program), uintptr(location), uintptr(unsafe.Pointer(params)))\n}", "func GetUniformLocation(p Program, name string) Uniform {\n\treturn Uniform{Value: gl.GetUniformLocation(p.Value, gl.Str(name+\"\\x00\"))}\n}", "func TexParameterfv(target, pname Enum, params []float32) {\n\tgl.TexParameterfv(uint32(target), uint32(pname), &params[0])\n}", "func (native *OpenGL) TexParameteri(target uint32, pname uint32, param int32) {\n\tgl.TexParameteri(target, pname, param)\n}", "func (am *Manager) GetShader(name string) (uint32, bool) {\n\tif shader, ok := am.Shaders[name]; ok {\n\t\treturn shader, true\n\t}\n\n\tif am.Parent != nil {\n\t\treturn am.Parent.GetShader(name)\n\t}\n\n\treturn 0, false\n}", "func TexParameteri(target Enum, pname Enum, param Int) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcpname, _ := (C.GLenum)(pname), cgoAllocsUnknown\n\tcparam, _ := (C.GLint)(param), cgoAllocsUnknown\n\tC.glTexParameteri(ctarget, cpname, cparam)\n}", "func GetRenderbufferParameteri(target, pname Enum) int {\n\tlog.Println(\"GetRenderbufferParameteri: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)\")\n\tvar result int32\n\tgl.GetRenderbufferParameteriv(uint32(target), uint32(pname), &result)\n\treturn int(result)\n}", "func (native *OpenGL) GetUniformLocation(program uint32, name string) int32 {\n\treturn gl.GetUniformLocation(program, gl.Str(name+\"\\x00\"))\n}", "func ProgramUniform2fv(program uint32, location int32, count int32, value *float32) {\n C.glowProgramUniform2fv(gpProgramUniform2fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func GetShaderSource(s Shader) string {\n\tlog.Println(\"GetShaderSource: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)\")\n\tsourceLen := GetShaderi(s, gl.SHADER_SOURCE_LENGTH)\n\tif sourceLen == 0 {\n\t\treturn \"\"\n\t}\n\tbuf := make([]byte, sourceLen)\n\tgl.GetShaderSource(s.Value, int32(sourceLen), nil, &buf[0])\n\treturn string(buf)\n}", "func (sm *shaderManager) GetShader(key string) (Shader, bool) {\n\n\tsm.programLock.RLock()\n\tdefer sm.programLock.RUnlock()\n\tprogram, status := sm.shaders[key]\n\n\treturn program, status\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func TexParameteri(target, pname GLEnum, param int32) {\n\tgl.TexParameteri(uint32(target), uint32(pname), param)\n}", "func (debugging *debuggingOpenGL) TexParameteri(target uint32, pname uint32, param int32) {\n\tdebugging.recordEntry(\"TexParameteri\", target, pname, param)\n\tdebugging.gl.TexParameteri(target, pname, param)\n\tdebugging.recordExit(\"TexParameteri\")\n}", "func GetShaderSource(shader uint32, bufSize int32, length *int32, source *uint8) {\n\tC.glowGetShaderSource(gpGetShaderSource, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(source)))\n}", "func GetShaderSource(shader uint32, bufSize int32, length *int32, source *uint8) {\n\tC.glowGetShaderSource(gpGetShaderSource, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(source)))\n}", "func GLShader(shaderType uint32, source string) (uint32, error) {\n\t// Create shader based on shaderType\n\tshader := gl.CreateShader(shaderType)\n\t// Compile the Shader with the source\n\tcsources, free := gl.Strs(source)\n\tgl.ShaderSource(shader, 1, csources, nil)\n\tfree()\n\tgl.CompileShader(shader)\n\n\tvar status int32\n\tgl.GetShaderiv(shader, gl.COMPILE_STATUS, &status)\n\tif status == gl.FALSE {\n\t\tvar logLen int32\n\t\tgl.GetShaderiv(shader, gl.INFO_LOG_LENGTH, &logLen)\n\t\tlog := strings.Repeat(\"\\x00\", int(logLen+1))\n\t\tgl.GetShaderInfoLog(shader, logLen, nil, gl.Str(log))\n\n\t\treturn 0, fmt.Errorf(\"Failed to compile %v: %v\", source, log)\n\t}\n\n\treturn shader, nil\n}", "func TexParameterfv(target Enum, pname Enum, params []Float) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcpname, _ := (C.GLenum)(pname), cgoAllocsUnknown\n\tcparams, _ := (*C.GLfloat)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&params)).Data)), cgoAllocsUnknown\n\tC.glTexParameterfv(ctarget, cpname, cparams)\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetBufferParameteri(target, pname Enum) int {\n\tvar params int32\n\tgl.GetBufferParameteriv(uint32(target), uint32(pname), &params)\n\treturn int(params)\n}", "func (debugging *debuggingOpenGL) ShaderSource(shader uint32, source string) {\n\tdebugging.recordEntry(\"ShaderSource\", shader, source)\n\tdebugging.gl.ShaderSource(shader, source)\n\tdebugging.recordExit(\"ShaderSource\")\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n C.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))\n}", "func ProgramUniform1fv(program uint32, location int32, count int32, value *float32) {\n C.glowProgramUniform1fv(gpProgramUniform1fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func (s *Shader) ID() uint32 {\n\treturn s.program.obj\n}", "func TexParameterf(target Enum, pname Enum, param Float) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tcpname, _ := (C.GLenum)(pname), cgoAllocsUnknown\n\tcparam, _ := (C.GLfloat)(param), cgoAllocsUnknown\n\tC.glTexParameterf(ctarget, cpname, cparam)\n}", "func (debugging *debuggingOpenGL) GetUniformLocation(program uint32, name string) int32 {\n\tdebugging.recordEntry(\"GetUniformLocation\", program, name)\n\tresult := debugging.gl.GetUniformLocation(program, name)\n\tdebugging.recordExit(\"GetUniformLocation\", result)\n\treturn result\n}", "func (shader Shader) Source(source string) {\n\tcstrs, free := gl.Strs(source + \"\\x00\")\n\tgl.ShaderSource(uint32(shader), 1, cstrs, nil)\n\tfree()\n}", "func (am *Manager) LoadShader(typ uint32, name string) (uint32, error) {\n\tif shader, ok := am.GetShader(name); ok {\n\t\treturn shader, nil\n\t}\n\n\tLogger.Printf(\"asset.Manager.LoadShader: loading Shader '%s'\\n\", name)\n\n\tvar shader, err = newShader(\"assets/shaders/\"+name, typ)\n\tif err != nil {\n\t\tLogger.Print(\"asset.Manager.LoadShader: failed\")\n\t\treturn 0, err\n\t}\n\n\tLogger.Print(\"asset.Manager.LoadShader: shader loaded\")\n\n\tam.AddShader(name, shader)\n\n\treturn shader, nil\n}", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *int8) int32 {\n ret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func (native *OpenGL) TexParameterf(target uint32, pname uint32, param float32) {\n\tgl.TexParameterf(target, pname, param)\n}", "func ProgramUniform3fv(program uint32, location int32, count int32, value *float32) {\n C.glowProgramUniform3fv(gpProgramUniform3fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func (s *Shader) GetUniform(str string) *Uniform {\n\tif uid, ok := s.uniforms[str]; ok {\n\t\treturn uid\n\t}\n\ts.uniforms[str] = &Uniform{\n\t\tname: str,\n\t\tprogram: s.programID,\n\t}\n\treturn s.uniforms[str]\n}", "func (gl *WebGL) TexParameterf(target GLEnum, param GLEnum, value float64) {\n\tgl.context.Call(\"texParameterf\", target, param, value)\n}", "func (sm *shaderManager) GetShaderProgram(id uint32) (Shader, bool) {\n\tsm.programLock.RLock()\n\tdefer sm.programLock.RUnlock()\n\tfor _, shader := range sm.shaders {\n\t\tif shader.ProgramID() == id {\n\t\t\treturn shader, true\n\t\t}\n\t}\n\n\treturn nil, false\n}", "func (s *Instruction) Param() *Param {\n\tif len(s.Params) > 0 {\n\t\treturn s.Params[0]\n\t}\n\treturn nil\n}", "func TexParam(wrap TextureWrap, filter TextureFilter) TextureParameters {\n\treturn TextureParameters{wrap, wrap, filter, filter}\n}", "func (program Program) GetUniformLocation(name string) UniformLocation {\n\treturn UniformLocation(gl.GetUniformLocation(uint32(program), gl.Str(name+\"\\x00\")))\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetUniformLocation, 2, uintptr(program), uintptr(unsafe.Pointer(name)), 0)\n\treturn (int32)(ret)\n}", "func TexParameterf(target, pname GLEnum, param float32) {\n\tgl.TexParameterf(uint32(target), uint32(pname), param)\n}", "func FramebufferParameteri(target uint32, pname uint32, param int32) {\n C.glowFramebufferParameteri(gpFramebufferParameteri, (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param))\n}", "func (debugging *debuggingOpenGL) GetShaderInfoLog(shader uint32) string {\n\tdebugging.recordEntry(\"GetShaderInfoLog\", shader)\n\tresult := debugging.gl.GetShaderInfoLog(shader)\n\tdebugging.recordExit(\"GetShaderInfoLog\", result)\n\treturn result\n}", "func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *int8) {\n C.glowGetShaderInfoLog(gpGetShaderInfoLog, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func GetVertexAttribfv(index uint32, pname uint32, params *float32) {\n C.glowGetVertexAttribfv(gpGetVertexAttribfv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func ProgramUniform4fv(program uint32, location int32, count int32, value *float32) {\n C.glowProgramUniform4fv(gpProgramUniform4fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func GetAttribLocation(program uint32, name *int8) int32 {\n ret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func ShaderSource(shader uint32, count int32, xstring **uint8, length *int32) {\n\tC.glowShaderSource(gpShaderSource, (C.GLuint)(shader), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(xstring)), (*C.GLint)(unsafe.Pointer(length)))\n}", "func ShaderSource(shader uint32, count int32, xstring **uint8, length *int32) {\n\tC.glowShaderSource(gpShaderSource, (C.GLuint)(shader), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(xstring)), (*C.GLint)(unsafe.Pointer(length)))\n}", "func GetUniformfv(program Uint, location Int, params []Float) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tclocation, _ := (C.GLint)(location), cgoAllocsUnknown\n\tcparams, _ := (*C.GLfloat)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&params)).Data)), cgoAllocsUnknown\n\tC.glGetUniformfv(cprogram, clocation, cparams)\n}", "func ShaderSource(shader Uint, count Sizei, string []string, length []Int) {\n\tcshader, _ := (C.GLuint)(shader), cgoAllocsUnknown\n\tccount, _ := (C.GLsizei)(count), cgoAllocsUnknown\n\tcstring, _ := unpackArgSString(string)\n\tclength, _ := (*C.GLint)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&length)).Data)), cgoAllocsUnknown\n\tC.glShaderSource(cshader, ccount, cstring, clength)\n\tpackSString(string, cstring)\n}", "func Uniform3fv(location int32, count int32, value *float32) {\n C.glowUniform3fv(gpUniform3fv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func Uniform1f(location int32, v0 float32) {\n C.glowUniform1f(gpUniform1f, (C.GLint)(location), (C.GLfloat)(v0))\n}", "func (u *Uniform) Bind() {\n\tif u.id < 0 {\n\t\tu.id = gl.GetUniformLocation(u.program, glString(u.name))\n\t\tif u.id < 0 {\n\t\t\tpanic(fmt.Errorf(\"glGetUniformLocation for \\\"%s\\\" (program %d) returned -1, GL error: %d\", u.name, u.program, gl.GetError()))\n\t\t}\n\t}\n\tswitch value := u.value.(type) {\n\tcase uint32:\n\t\tgl.Uniform1ui(u.id, value)\n\tcase []uint32:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1uiv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2uiv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3uiv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4uiv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase int32:\n\t\tgl.Uniform1i(u.id, value)\n\tcase []int32:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1iv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2iv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3iv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4iv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase float32:\n\t\tgl.Uniform1f(u.id, value)\n\tcase []float32:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1fv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2fv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3fv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4fv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase float64:\n\t\tgl.Uniform1d(u.id, value)\n\tcase []float64:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1dv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2dv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3dv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4dv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase mgl32.Mat2:\n\t\tgl.UniformMatrix2fv(u.id, 1, false, &value[0])\n\tcase mgl32.Mat3:\n\t\tgl.UniformMatrix3fv(u.id, 1, false, &value[0])\n\tcase mgl32.Mat4:\n\t\tgl.UniformMatrix4fv(u.id, 1, false, &value[0])\n\tcase *Texture:\n\t\tvalue.Bind(0) //TODO support multiple textures per-shader\n\t\terr := value.SetUniform(u.id)\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\tcase color.Color:\n\t\tr, g, b, a := toGLColor(value)\n\t\tgl.Uniform4f(u.id, r, g, b, a)\n\tdefault:\n\t\tpanic(ErrUniformInvalidType)\n\t}\n}", "func CompileShader(shader uint32) {\n C.glowCompileShader(gpCompileShader, (C.GLuint)(shader))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func ProgramUniformMatrix4x3fv(program uint32, location int32, count int32, transpose bool, value *float32) {\n C.glowProgramUniformMatrix4x3fv(gpProgramUniformMatrix4x3fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func Param(ctx context.Context, name string) string {\n\treturn Params(ctx).ByName(name)\n}", "func (c *Context) Param(name string) string {\n\tfor i, n := range c.pnames {\n\t\tif n == name {\n\t\t\treturn c.pvalues[i]\n\t\t}\n\t}\n\treturn \"\"\n}", "func Uniform1fv(location int32, count int32, value *float32) {\n C.glowUniform1fv(gpUniform1fv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func GetUniformfv(dst []float32, src Uniform, p Program) {\n\tgl.GetUniformfv(p.Value, src.Value, &dst[0])\n}", "func Uniform2fv(location int32, count int32, value *float32) {\n C.glowUniform2fv(gpUniform2fv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func (d *DSP) ParameterInt(index C.int, value *C.int, valuestr *C.char, valuestrlen C.int) error {\n\t//FMOD_RESULT F_API FMOD_DSP_GetParameterInt(FMOD_DSP *dsp, int index, int *value, char *valuestr, int valuestrlen);\n\treturn ErrNoImpl\n}", "func ShaderSource(s Shader, src string) {\n\tglsource, free := gl.Strs(src + \"\\x00\")\n\tgl.ShaderSource(s.Value, 1, glsource, nil)\n\tfree()\n}", "func (native *OpenGL) GLShaderSource(shader uint32, count int32, xstring **uint8, length *int32) {\n\tgl.ShaderSource(shader, count, xstring, length)\n}", "func (c *Context) Param(name string) string {\n\treturn c.Params.Get(name)\n}", "func CompileShader(s Shader) {\n\tgl.CompileShader(s.Value)\n}", "func ProgramUniformMatrix4x2fv(program uint32, location int32, count int32, transpose bool, value *float32) {\n C.glowProgramUniformMatrix4x2fv(gpProgramUniformMatrix4x2fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func (obj *Device) GetPixelShader() (shader *PixelShader, err Error) {\n\tret, _, _ := syscall.Syscall(\n\t\tobj.vtbl.GetPixelShader,\n\t\t2,\n\t\tuintptr(unsafe.Pointer(obj)),\n\t\tuintptr(unsafe.Pointer(&shader)),\n\t\t0,\n\t)\n\terr = toErr(ret)\n\treturn\n}", "func ProgramUniform1f(program uint32, location int32, v0 float32) {\n C.glowProgramUniform1f(gpProgramUniform1f, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0))\n}" ]
[ "0.6661247", "0.66229105", "0.64651537", "0.6363881", "0.6201076", "0.60537016", "0.58989567", "0.5865822", "0.5832206", "0.5689874", "0.5681113", "0.56488144", "0.56488144", "0.5644336", "0.5615071", "0.5604294", "0.5508281", "0.5505807", "0.5502464", "0.5499242", "0.5486645", "0.5478939", "0.5477796", "0.547205", "0.547076", "0.54522043", "0.54371965", "0.54181683", "0.54117185", "0.5409139", "0.5399382", "0.5393412", "0.53884315", "0.5387591", "0.5381103", "0.5377139", "0.536856", "0.53573036", "0.53501266", "0.5341956", "0.5338743", "0.53202456", "0.531506", "0.531506", "0.5309652", "0.5299447", "0.5297634", "0.52724737", "0.52688706", "0.52646077", "0.5258976", "0.525433", "0.52542865", "0.5249602", "0.5246152", "0.52451414", "0.52304673", "0.5229906", "0.5227155", "0.52266157", "0.5221155", "0.5215297", "0.52119935", "0.52027947", "0.52025676", "0.51919705", "0.51780504", "0.5176182", "0.5150867", "0.51437634", "0.51315093", "0.51180255", "0.50991654", "0.5097278", "0.5097278", "0.5087088", "0.50842434", "0.50820184", "0.5069906", "0.5069906", "0.50694907", "0.50641704", "0.5063198", "0.50576437", "0.50576437", "0.50528765", "0.50448054", "0.5044302", "0.5037896", "0.5035949", "0.5031681", "0.50230175", "0.50216734", "0.5012187", "0.5012122", "0.4998612", "0.49967724", "0.49836457", "0.49799946" ]
0.54317683
28
return a string describing the current GL connection
func GetString(name uint32) *uint8 { ret := C.glowGetString(gpGetString, (C.GLenum)(name)) return (*uint8)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (conn *Conn) String() string {\n\tstr := \"GoIRC Connection\\n\"\n\tstr += \"----------------\\n\\n\"\n\tif conn.Connected() {\n\t\tstr += \"Connected to \" + conn.cfg.Server + \"\\n\\n\"\n\t} else {\n\t\tstr += \"Not currently connected!\\n\\n\"\n\t}\n\tstr += conn.Me().String() + \"\\n\"\n\tif conn.st != nil {\n\t\tstr += conn.st.String() + \"\\n\"\n\t}\n\treturn str\n}", "func (conn *Conn) String() string {\n\tstr := \"GoIRC Connection\\n\"\n\tstr += \"----------------\\n\\n\"\n\tif conn.Connected {\n\t\tstr += \"Connected to \" + conn.Host + \"\\n\\n\"\n\t} else {\n\t\tstr += \"Not currently connected!\\n\\n\"\n\t}\n\tstr += conn.Me.String() + \"\\n\"\n\tif conn.st {\n\t\tstr += conn.ST.String() + \"\\n\"\n\t}\n\treturn str\n}", "func (c ConnInfo) String() string {\n\treturn c.RemoteAddr.String() + \" -> \" + c.LocalAddr.String()\n}", "func (connection *Connection) String() string {\n\tif connection == nil {\n\t\treturn \"Connection <nil>\"\n\t}\n\tvar buffer bytes.Buffer\n\tif connection.adabasMap != nil {\n\t\tbuffer.WriteString(\"Map=\" + connection.adabasMap.Name + \" \")\n\t}\n\tif connection.adabasToData == nil {\n\t\tbuffer.WriteString(\"Target not defined\")\n\t} else {\n\t\tbuffer.WriteString(connection.adabasToData.String())\n\t}\n\tif connection.fnr != 0 {\n\t\tbuffer.WriteString(\" connection file=\" + strconv.Itoa(int(connection.fnr)))\n\t}\n\treturn buffer.String()\n}", "func (c DBConfig) ConnectionInfo() string {\n\n\tswitch c.DBDialect {\n\tcase \"postgres\":\n\t\tif c.Password == \"\" {\n\t\t\treturn fmt.Sprintf(\"host=%s port=%d user=%s dbname=%s sslmode=disable\", c.Host, c.Port, c.Usr, c.Name)\n\t\t}\n\t\treturn fmt.Sprintf(\"host=%s port=%d user=%s password=%s dbname=%s sslmode=disable\", c.Host, c.Port, c.Usr, c.Password, c.Name)\n\n\tcase \"mssql\":\n\t\treturn fmt.Sprintf(\"sqlserver://%s:%s@l%s:%d?database=%s\", c.Usr, c.Password, c.Host, c.Port, c.Name)\n\n\tcase \"hdb\":\n\t\treturn fmt.Sprintf(\"hdb://%s:%s@%s:%d\", c.Usr, c.Password, c.Host, c.Port)\n\n\tcase \"sqlite\":\n\t\treturn fmt.Sprintf(\"%s\", c.Name)\n\n\tcase \"mysql\":\n\t\treturn fmt.Sprintf(\"%s:%s@tcp(%s:%d)/%s?charset=utf8&parseTime=True&loc=Local\", c.Usr, c.Password, c.Host, c.Port, c.Name)\n\n\tdefault:\n\t\tpanic(fmt.Errorf(\"dialect %s is not recognized\", c.DBDialect))\n\n\t}\n}", "func (ctx *Context) Protocol() string {\r\n\treturn ctx.R.Proto\r\n}", "func (this *DatabaseConnection) ToString() string {\n\tswitch this.Engine {\n\tcase SQLITE:\n\t\treturn this.toSQLiteString()\n\n\tcase MYSQL:\n\t\treturn this.toMySQLString()\n\n\tcase MSSQL:\n\t\treturn this.toMSSQLString()\n\n\tcase TESTDB:\n\t\treturn \"\"\n\t}\n\n\treturn \"\"\n}", "func (n TurnOn) String() string {\n\treturn \"连接成功初始化命令\"\n}", "func (n *natsDependency) GetOnlineText() string {\n\treturn \"Listening for route connections\"\n}", "func (pc *PostgresConfig) Info() string {\n\tres := \"\"\n\n\tif len(pc.Host) > 0 {\n\t\tres += fmt.Sprintf(\" host=%s\", pc.Host)\n\t}\n\n\tif len(pc.Port) > 0 {\n\t\tres += fmt.Sprintf(\" port=%s\", pc.Port)\n\t}\n\n\tif len(pc.User) > 0 {\n\t\tres += fmt.Sprintf(\" user=%s\", pc.User)\n\t}\n\n\tif len(pc.Password) > 0 {\n\t\tres += fmt.Sprintf(\" password=%s\", pc.Password)\n\t}\n\n\tif len(pc.Name) > 0 {\n\t\tres += fmt.Sprintf(\" dbname=%s\", pc.Name)\n\t}\n\n\tif pc.Ssl == \"false\" {\n\t\tres += \" sslmode=disable\"\n\t}\n\n\treturn res[1:]\n}", "func (d DB) Info() string {\n\treturn fmt.Sprintf(\n\t\t\"host=%s port=%d user=%s password=%s dbname=%s sslmode=%s\",\n\t\td.Host, d.Port, d.User, d.Password, d.Name, d.SSL,\n\t)\n}", "func (conn Connection) String() string {\n\tvar pass, key string\n\tif conn.Password != \"\" {\n\t\tpass = \"password: \" + conn.Password + \", \"\n\t}\n\tif conn.PrivateKey != \"\" {\n\t\tkey = \"private key: \" + conn.PrivateKey + \", \"\n\t}\n\n\treturn \"user: \" + conn.User + \", \" + pass + key + \"host: \" + conn.Host + \", \" + \"port: \" + strconv.FormatUint(conn.Port, 10)\n}", "func (av AttributeConnectionOp) String() string {\n\tswitch av {\n\tcase AttributeConnectionOpClose:\n\t\treturn \"close\"\n\tcase AttributeConnectionOpOpen:\n\t\treturn \"open\"\n\t}\n\treturn \"\"\n}", "func (s *Server) connectionString() string {\r\n\treturn fmt.Sprintf(\"http://%s:%d\", s.host, s.port)\r\n}", "func (s *Server) connectionString() string {\n\treturn fmt.Sprintf(\"http://%s:%d\", s.host, s.port)\n}", "func (g *altsTC) Info() credentials.ProtocolInfo {\n\treturn *g.info\n}", "func (c ConnInfo) String() string {\n\tswitch c.Type {\n\tcase TCP:\n\t\treturn c.TCPAddr.String()\n\tdefault:\n\t\tlog.Warn(\"Unsupported network address\", \"typeCode\", c.Type)\n\t\treturn \"\"\n\t}\n}", "func (c PostgresConfig) ConnectionInfo() string {\n\tif c.Password == \"\" {\n\t\treturn fmt.Sprintf(\"host=%s port=%d user=%s dbname=%s sslmode=disable\",\n\t\t\tc.Host, c.Port, c.User, c.Name)\n\t}\n\treturn fmt.Sprintf(\"host=%s port=%d user=%s password=%s dbname=%s sslmode=disable\",\n\t\tc.Host, c.Port, c.User, c.Password, c.Name)\n}", "func (gc gateColor) String() string {\n\tswitch gc {\n\tcase purple:\n\t\treturn \"Purple\"\n\tcase blue:\n\t\treturn \"Blue\"\n\tcase teal:\n\t\treturn \"Teal\"\n\tcase green:\n\t\treturn \"Green\"\n\t}\n\treturn \"\"\n}", "func (ctx Ctx) Info() string {\n\treturn fmt.Sprintf(\"%+v\", ctx)\n}", "func (e E_OpenconfigInterfaces_Interfaces_Interface_Ethernet_State_NegotiatedDuplexMode) String() string {\n\treturn ygot.EnumLogString(e, int64(e), \"E_OpenconfigInterfaces_Interfaces_Interface_Ethernet_State_NegotiatedDuplexMode\")\n}", "func (cs *ConnectivityState) String() string {\n\tfor state, id := range connectivityStates {\n\t\tif id == cs.GetCurrentState() {\n\t\t\treturn state\n\t\t}\n\t}\n\n\treturn \"\"\n}", "func (c *TLSConn) PrintConnectionStatus() {\n\ttlsVersions := [...]uint16{\n\t\ttls.VersionSSL30,\n\t\ttls.VersionTLS10,\n\t\ttls.VersionTLS11,\n\t\ttls.VersionTLS12,\n\t\ttls.VersionTLS13,\n\t}\n\n\tcipherSuites := [...]uint16{\n\t\ttls.TLS_RSA_WITH_RC4_128_SHA,\n\t\ttls.TLS_RSA_WITH_3DES_EDE_CBC_SHA,\n\t\ttls.TLS_RSA_WITH_AES_128_CBC_SHA,\n\t\ttls.TLS_RSA_WITH_AES_256_CBC_SHA,\n\t\ttls.TLS_RSA_WITH_AES_128_CBC_SHA256,\n\t\ttls.TLS_RSA_WITH_AES_128_GCM_SHA256,\n\t\ttls.TLS_RSA_WITH_AES_256_GCM_SHA384,\n\t\ttls.TLS_ECDHE_ECDSA_WITH_RC4_128_SHA,\n\t\ttls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,\n\t\ttls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,\n\t\ttls.TLS_ECDHE_RSA_WITH_RC4_128_SHA,\n\t\ttls.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA,\n\t\ttls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,\n\t\ttls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,\n\t\ttls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,\n\t\ttls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,\n\t\ttls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,\n\t\ttls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,\n\t\ttls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,\n\t\ttls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,\n\t\ttls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256,\n\t\ttls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,\n\t\ttls.TLS_AES_128_GCM_SHA256,\n\t\ttls.TLS_AES_256_GCM_SHA384,\n\t\ttls.TLS_CHACHA20_POLY1305_SHA256,\n\t\ttls.TLS_FALLBACK_SCSV,\n\t}\n\n\tcs := c.conn.ConnectionState()\n\n\tfor i, cert := range cs.PeerCertificates {\n\t\tif i > 0 {\n\t\t\tfmt.Printf(\"\\n\")\n\t\t}\n\n\t\tfmt.Printf(\"Server Key and Certificate #%d\\n\", i+1)\n\t\tfmt.Println(strings.Repeat(\"*\", 85))\n\n\t\tPrintDetails(\"Subject\", cert.Subject.String())\n\t\tPrintDetails(\"Alternative Names\", strings.Join(cert.DNSNames, \",\"))\n\t\tPrintDetails(\"Serial Number\", cert.SerialNumber.Text(16))\n\t\tPrintDetails(\"Valid From\", cert.NotBefore.Format(time.RFC1123))\n\t\tPrintDetails(\"Valid Until\", fmt.Sprintf(\"%s (expires in %d days)\",\n\t\t\tcert.NotAfter.Format(time.RFC1123),\n\t\t\tint(time.Until(cert.NotAfter).Hours()/24)))\n\n\t\tPrintDetails(\"Key\", PublicKeyDetails(cert))\n\n\t\t//weak key\n\n\t\tPrintDetails(\"Issuer\", cert.Issuer.String())\n\t\tPrintDetails(\"Signature Algorithm\", cert.SignatureAlgorithm.String())\n\n\t\t//extended validation\n\t\t// I can't find any examples of extended validation.\n\n\t\t//certificate transparency\n\t\t//OCSP must staple\n\t\t//revocation information\n\t\tPrintDetails(\"Revocation Information\", strings.Join(cert.CRLDistributionPoints, \",\"))\n\n\t\t//revocation status\n\t\t//DNS CAA\n\t\t//Trusted\n\t}\n\n\tfmt.Printf(\"\\nDefault Connection Details\\n\")\n\tfmt.Println(strings.Repeat(\"*\", 85))\n\tPrintDetails(\"Version\", TLSVersionName(cs.Version))\n\tPrintDetails(\"Cipher Suite\", CipherSuiteName(cs.CipherSuite))\n\n\tfmt.Printf(\"\\nSupported TLS/SSL Versions\\n\")\n\tfmt.Println(strings.Repeat(\"*\", 85))\n\n\tfmt.Printf(\"%-45s\", \"Cipher Suite\")\n\n\tfor _, tlsVersion := range tlsVersions {\n\t\tfmt.Printf(\" %-7s\", TLSVersionName(tlsVersion))\n\t}\n\n\tfmt.Printf(\"\\n\")\n\n\tfmt.Println(strings.Repeat(\"*\", 85))\n\n\tfor _, cipherSuite := range cipherSuites {\n\t\tfmt.Printf(\"%-45s\", CipherSuiteName(cipherSuite))\n\n\t\tfor _, tlsVersion := range tlsVersions {\n\t\t\tfmt.Printf(\" %-7v\", TestTLSConfig(c.host, c.port, c.name, tlsVersion, cipherSuite))\n\t\t}\n\n\t\tfmt.Printf(\"\\n\")\n\t}\n}", "func (e E_OpenconfigSystem_System_SshServer_Config_ProtocolVersion) String() string {\n\treturn ygot.EnumLogString(e, int64(e), \"E_OpenconfigSystem_System_SshServer_Config_ProtocolVersion\")\n}", "func (e E_OpenconfigInterfaces_Interfaces_Interface_Ethernet_Config_DuplexMode) String() string {\n\treturn ygot.EnumLogString(e, int64(e), \"E_OpenconfigInterfaces_Interfaces_Interface_Ethernet_Config_DuplexMode\")\n}", "func (ns *NSConn) String() string {\n\treturn ns.Conn.String()\n}", "func (av AttributeConnectionType) String() string {\n\tswitch av {\n\tcase AttributeConnectionTypeClient:\n\t\treturn \"client\"\n\tcase AttributeConnectionTypeFabric:\n\t\treturn \"fabric\"\n\tcase AttributeConnectionTypeHeartbeat:\n\t\treturn \"heartbeat\"\n\t}\n\treturn \"\"\n}", "func String() string {\n\tglobalData.RLock()\n\tdefer globalData.RUnlock()\n\treturn globalData.mode.String()\n}", "func (l *channelLink) String() string {\n\treturn l.channel.ChannelPoint().String()\n}", "func (i *IRC) Status() string {\n\treturn fmt.Sprintf(\"IRC: Connected: %t Lag: %s\", i.Connected.Get(), i.lag.Get())\n}", "func (m *VpnConfiguration) GetConnectionName()(*string) {\n val, err := m.GetBackingStore().Get(\"connectionName\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.(*string)\n }\n return nil\n}", "func (r *PrivateVirtualInterface) ConnectionId() pulumi.StringOutput {\n\treturn (pulumi.StringOutput)(r.s.State[\"connectionId\"])\n}", "func (d Device) String() string { return cu.Device(d).String() }", "func (c DevSession) String() string {\n\treturn fmt.Sprintf(\"%T(%v)\", c, capnp.Client(c))\n}", "func (e E_OpenconfigPlatformTypes_OPENCONFIG_HARDWARE_COMPONENT) String() string {\n\treturn ygot.EnumLogString(e, int64(e), \"E_OpenconfigPlatformTypes_OPENCONFIG_HARDWARE_COMPONENT\")\n}", "func (c *Client) CurrentContext() string {\n\treturn c.Context\n}", "func (d *Device) infoString() string {\n\treturn fmt.Sprintf(\"%04X:%04X:%04X\", d.Data.Bus, d.Data.VendorID, d.Data.ProductID)\n}", "func (t Topology) String() string {\n\tswitch t {\n\tcase Linear:\n\t\treturn \"linear\"\n\tcase Circular:\n\t\treturn \"circular\"\n\tdefault:\n\t\treturn \"\"\n\t}\n}", "func (c RedfishClient) String() string {\n\treturn \"HP Redfish \" + c.CurrentAddress\n}", "func String() string {\n\treturn fmt.Sprintf(\"OLM version: %s\\ngit commit: %s\\n\", OLMVersion, GitCommit)\n}", "func (networkClient NetworkClient) UsedProtocol() string {\n\treturn networkClient.usedProtocol\n}", "func (oc *OAuthConnection) String() string {\n\tvar builder strings.Builder\n\tbuilder.WriteString(\"OAuthConnection(\")\n\tbuilder.WriteString(fmt.Sprintf(\"id=%v\", oc.ID))\n\tbuilder.WriteString(\", created_at=\")\n\tbuilder.WriteString(oc.CreatedAt.Format(time.ANSIC))\n\tbuilder.WriteString(\", created_by=\")\n\tbuilder.WriteString(fmt.Sprintf(\"%v\", oc.CreatedBy))\n\tbuilder.WriteString(\", created_with=\")\n\tbuilder.WriteString(oc.CreatedWith)\n\tbuilder.WriteString(\", updated_at=\")\n\tbuilder.WriteString(oc.UpdatedAt.Format(time.ANSIC))\n\tbuilder.WriteString(\", updated_by=\")\n\tbuilder.WriteString(fmt.Sprintf(\"%v\", oc.UpdatedBy))\n\tbuilder.WriteString(\", updated_with=\")\n\tbuilder.WriteString(oc.UpdatedWith)\n\tbuilder.WriteString(\", provider=\")\n\tbuilder.WriteString(oc.Provider)\n\tbuilder.WriteString(\", provider_user_id=\")\n\tbuilder.WriteString(oc.ProviderUserID)\n\tbuilder.WriteString(\", name=\")\n\tbuilder.WriteString(oc.Name)\n\tbuilder.WriteByte(')')\n\treturn builder.String()\n}", "func (s GetConnectionOutput) String() string {\n\treturn awsutil.Prettify(s)\n}", "func (b *BatteryDriver) Connection() gobot.Connection { return b.connection }", "func (c *MsgConnection) String() string {\n\treturn c.id\n}", "func (v Global) String() string {\n\trepr, err := DefaultEncoder().Encode(&v)\n\tif err != nil {\n\t\treturn NilRef\n\t}\n\treturn repr\n}", "func (c *Conn) Name() string {\n\treturn ProviderName\n}", "func (n *Node) String() string {\n\treturn fmt.Sprintf(\"%v|%d\", n.addr, n.currentNumConnections)\n}", "func (lg LogGraph) String() string {\n\tb, err := json.MarshalIndent(lg, \"\", \" \")\n\tif err == nil {\n\t\treturn string(b)\n\t}\n\treturn fmt.Sprintf(\"%v\", map[string][]string(lg))\n}", "func (v Value) String() string {\n\tswitch v {\n\tcase Active:\n\t\treturn \"Active\"\n\tcase Connected:\n\t\treturn \"Connected\"\n\tcase Connecting:\n\t\treturn \"Connecting\"\n\tcase Shadow:\n\t\treturn \"Shadow\"\n\tcase Disconnected:\n\t\treturn \"Disconnected\"\n\tcase Idle:\n\t\treturn \"Idle\"\n\tcase Listen:\n\t\treturn \"Listen\"\n\tcase Reset:\n\t\treturn \"Reset\"\n\tcase Down:\n\t\treturn \"Down\"\n\tcase Init:\n\t\treturn \"Init\"\n\tdefault:\n\t\treturn \"Unknown Session Connection State (\" + strconv.Itoa(int(v)) + \")\"\n\t}\n}", "func (l *ldapClientConfig) String() string {\n\treturn fmt.Sprintf(\"{Scheme: %v Host: %v BindDN: %v len(BbindPassword): %v Insecure: %v}\", l.scheme, l.host, l.bindDN, len(l.bindPassword), l.insecure)\n}", "func (e GLenum) ErrorString() string {\n\tif e == GLenum_GL_NO_ERROR {\n\t\treturn \"GL_NO_ERROR\"\n\t}\n\treturn e.String()\n}", "func (p ProtocolVersion) String() string {\n\tswitch p {\n\tcase ProtocolVersionUnrecorded:\n\t\treturn \"Unrecorded\"\n\n\tcase ProtocolVersionLegacy:\n\t\treturn \"Legacy\"\n\n\tcase ProtocolVersionMultiLoopOut:\n\t\treturn \"Multi Loop Out\"\n\n\tcase ProtocolVersionSegwitLoopIn:\n\t\treturn \"Segwit Loop In\"\n\n\tcase ProtocolVersionPreimagePush:\n\t\treturn \"Preimage Push\"\n\n\tcase ProtocolVersionUserExpiryLoopOut:\n\t\treturn \"User Expiry Loop Out\"\n\n\tcase ProtocolVersionHtlcV2:\n\t\treturn \"HTLC V2\"\n\n\tcase ProtocolVersionLoopOutCancel:\n\t\treturn \"Loop Out Cancel\"\n\n\tcase ProtocolVersionProbe:\n\t\treturn \"Probe\"\n\n\tcase ProtocolVersionRoutingPlugin:\n\t\treturn \"Routing Plugin\"\n\n\tcase ProtocolVersionHtlcV3:\n\t\treturn \"HTLC V3\"\n\n\tcase ProtocolVersionMuSig2:\n\t\treturn \"MuSig2\"\n\n\tdefault:\n\t\treturn \"Unknown\"\n\t}\n}", "func (P ConnectionParams) String() string {\n\treturn P.string(true, false)\n}", "func (conn *Conn) ToString() string {\n\tnode := conn.node()\n\tif strings.Count(node.host, \":\") > 0 {\n\t\treturn fmt.Sprintf(\"[%s]:%d\", node.host, node.port)\n\t}\n\treturn fmt.Sprintf(\"%s:%d\", node.host, node.port)\n}", "func (m Model) View() string {\n\tvar s string\n\n\tswitch m.status {\n\tcase initCharmClient:\n\t\ts += m.preambleView()\n\t\ts += m.spinner.View() + \" Initializing...\"\n\tcase linkInit:\n\t\ts += m.preambleView()\n\t\ts += m.spinner.View() + \" Generating link...\"\n\tcase linkTokenCreated:\n\t\ts += m.preambleView()\n\t\ts += m.styles.Wrap.Render(\"To link, run the following command on your other machine:\") + \"\\n\\n\"\n\t\ts += m.styles.Code.Render(m.parentName+\" link \"+m.token) + \"\\n\\n\"\n\t\ts += common.HelpView(\"To cancel, press escape\")\n\tcase linkRequested:\n\t\tvar d []string\n\t\ts += m.preambleView()\n\t\ts += \"Link request from:\\n\\n\"\n\t\td = append(d, []string{\"IP\", m.linkRequest.requestAddr}...)\n\t\tif len(m.linkRequest.pubKey) > 50 {\n\t\t\td = append(d, []string{\"Key\", m.linkRequest.pubKey[0:50] + \"...\"}...)\n\t\t}\n\t\ts += common.KeyValueView(d...)\n\t\ts += \"\\n\\nLink this device?\\n\\n\"\n\t\ts += common.YesButtonView(m.buttonIndex == 0) + \" \"\n\t\ts += common.NoButtonView(m.buttonIndex == 1)\n\tcase linkError:\n\t\ts += m.preambleView()\n\t\ts += \"Uh oh: \" + m.err.Error()\n\tcase linkSuccess:\n\t\ts += m.styles.Keyword.Render(\"Linked!\")\n\t\tif m.alreadyLinked {\n\t\t\ts += \" This key is already linked, btw.\"\n\t\t}\n\t\tif m.standalone {\n\t\t\ts += \"\\n\"\n\t\t} else {\n\t\t\ts = m.preambleView() + s + common.HelpView(\"\\n\\nPress any key to exit...\")\n\t\t}\n\tcase linkRequestDenied:\n\t\ts += \"Link request \" + m.styles.Keyword.Render(\"denied\") + \".\"\n\t\tif m.standalone {\n\t\t\ts += \"\\n\"\n\t\t} else {\n\t\t\ts = m.preambleView() + s + common.HelpView(\"\\n\\nPress any key to exit...\")\n\t\t}\n\tcase linkTimedOut:\n\t\ts += m.preambleView()\n\t\ts += \"Link request timed out.\"\n\t\tif m.standalone {\n\t\t\ts += \"\\n\"\n\t\t} else {\n\t\t\ts += common.HelpView(\"Press any key to exit...\")\n\t\t}\n\tcase quitting:\n\t\ts += \"Linking canceled.\\n\"\n\t}\n\n\tif m.standalone {\n\t\ts = m.styles.App.Render(s)\n\t}\n\treturn s\n}", "func GetString(name GLenum) string {\n\ts := unsafe.Pointer(C.glGetString(C.GLenum(name)))\n\treturn C.GoString((*C.char)(s))\n}", "func GetInfo() string {\n\treturn fmt.Sprintf(\"version: %s, commit: %s\", Version, GitCommit)\n}", "func (tp Protocol) String() string {\n\tswitch tp {\n\tcase PurePayload:\n\t\treturn \"PurePayload\"\n\tcase TTHeader:\n\t\treturn \"TTHeader\"\n\tcase Framed:\n\t\treturn \"Framed\"\n\tcase HTTP:\n\t\treturn \"HTTP\"\n\tcase TTHeaderFramed:\n\t\treturn \"TTHeaderFramed\"\n\tcase GRPC:\n\t\treturn \"GRPC\"\n\t}\n\treturn Unknown\n}", "func (c *client) String() string {\n\treturn fmt.Sprintf(\"[%v %v]\", c.conn.LocalAddr().String(),\n\t\tc.conn.RemoteAddr().String())\n}", "func (e E_OpenconfigPacketMatchTypes_IP_PROTOCOL) String() string {\n\treturn ygot.EnumLogString(e, int64(e), \"E_OpenconfigPacketMatchTypes_IP_PROTOCOL\")\n}", "func (c RedfishClient) String() string {\n\treturn \"Dell Redfish \" + c.CurrentAddress\n}", "func (c *Client) String() string {\n\tpf := c.s.pf\n\treturn fmt.Sprintf(\"<client> g=%d, N=%x\\n I=%x\\n A=%x\\n K=%x\\n\",\n\t\tpf.g, pf.N, c.i, c.xA, c.xK)\n}", "func (i *ServerInfo) String() string { return i.registry.String() }", "func Info() string {\n\treturn fmt.Sprintf(\"(version=%s, branch=%s, revision=%s)\", version, branch, revision)\n}", "func (t Type) String() string {\r\n\tswitch t {\r\n\tcase CONNECT:\r\n\t\treturn \"Connect\"\r\n\tcase CONNACK:\r\n\t\treturn \"Connack\"\r\n\tcase PUBLISH:\r\n\t\treturn \"Publish\"\r\n\tcase PUBACK:\r\n\t\treturn \"Puback\"\r\n\tcase PUBREC:\r\n\t\treturn \"Pubrec\"\r\n\tcase PUBREL:\r\n\t\treturn \"Pubrel\"\r\n\tcase PUBCOMP:\r\n\t\treturn \"Pubcomp\"\r\n\tcase SUBSCRIBE:\r\n\t\treturn \"Subscribe\"\r\n\tcase SUBACK:\r\n\t\treturn \"Suback\"\r\n\tcase UNSUBSCRIBE:\r\n\t\treturn \"Unsubscribe\"\r\n\tcase UNSUBACK:\r\n\t\treturn \"Unsuback\"\r\n\tcase PINGREQ:\r\n\t\treturn \"Pingreq\"\r\n\tcase PINGRESP:\r\n\t\treturn \"Pingresp\"\r\n\tcase DISCONNECT:\r\n\t\treturn \"Disconnect\"\r\n\t}\r\n\r\n\treturn \"Unknown\"\r\n}", "func (cc *ConnConfig) ConnString() string { return cc.connString }", "func (e E_OpenconfigPlatformTypes_COMPONENT_OPER_STATUS) String() string {\n\treturn ygot.EnumLogString(e, int64(e), \"E_OpenconfigPlatformTypes_COMPONENT_OPER_STATUS\")\n}", "func (dbInfo *DbInfo) ConnectionString() string {\n\tconnString := fmt.Sprintf(\"user=%s host=%s port=%v dbname=%s password=%s\", dbInfo.DbUser, dbInfo.DbHost, dbInfo.DbPort, dbInfo.DbName, dbInfo.DbPass)\n\tif len(dbInfo.DbOptions) > 0 {\n\t\tconnString += \" \" + dbInfo.DbOptions\n\t}\n\treturn connString\n}", "func current() string {\n\treturn \"CURRENT\"\n}", "func (p *LegoPort) String() string { return fmt.Sprint(portPrefix, p.id) }", "func (o HybridConnectionOutput) Name() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *HybridConnection) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)\n}", "func (trans *transport) GotConn(info httptrace.GotConnInfo) {\n\n if verbose {\n fmt.Printf(\"Connection reused for '%v' ? %v - Was idle ? %v\\n\", trans.current.URL, info.Reused, info.WasIdle)\n }\n}", "func (d *Driver) Connection() gobot.Connection { return d.connection }", "func (t *tmux) socketName() string { return fmt.Sprintf(\"%s@%s\", t.options.Profile, t.options.Story) }", "func (native *OpenGL) GetOpenGLVersion() string {\n\treturn gl.GoStr(gl.GetString(gl.VERSION))\n}", "func (connector *GOCDBConnector) GetName() string {\n\treturn \"GOCDB\"\n}", "func (ms *StatusImpl) String() string {\n\tms.mutex.Lock()\n\tdefer ms.mutex.Unlock()\n\n\treturn fmt.Sprintf(\"State=%s, Context=%d, Sys=%t\", ms.state, ms.context, ms.systemChannel)\n}", "func (s NeighborConnectionDetail) String() string {\n\treturn awsutil.Prettify(s)\n}", "func (s NeighborConnectionDetail) String() string {\n\treturn awsutil.Prettify(s)\n}", "func (duplex Duplex) ToString() string {\n\treturn duplexText[duplex]\n}", "func currentLang() string {\n\treturn fmt.Sprintf(\"go1.%d\", goversion.Version)\n}", "func (v Vertex) String() string {\n\treturn \"Vertex: \" + strconv.Itoa(v.X) + \",\" + strconv.Itoa(v.Y)\n}", "func (c Provider) String() string {\n\treturn \"GitLab\"\n}", "func (c Provider) String() string {\n\treturn \"GNU\"\n}", "func (c *UDPChannel) ConnectionMode() string {\n\treturn \"UDP\"\n}", "func (sc *ServerConn) Proto() string {\n\treturn sc.proto\n}", "func (s *Eraftd) connectionString() string {\n\treturn fmt.Sprintf(\"http://%s:%d\", s.host, s.port)\n}", "func (ll *LogLevel) String() string {\n\treturn string(*ll)\n}", "func (ctx Context) String() string {\n\tbuff := bytes.NewBufferString(\"\\nContext Details:\")\n\tbuff.WriteString(\"\\n------------------\")\n\tbuff.WriteString(fmt.Sprintf(\"\\nName: %s\", ctx.Name))\n\tbuff.WriteString(fmt.Sprintf(\"\\nType: %s\", ctx.Type))\n\tbuff.WriteString(fmt.Sprintf(\"\\nEnvironment: %s\", ctx.Environment))\n\tbuff.WriteString(fmt.Sprintf(\"\\nKubernetes Context: %s\", ctx.KubernetesContext))\n\tbuff.WriteString(fmt.Sprintf(\"\\nEnvironment Type: %s\", ctx.EnvironmentType))\n\tbuff.WriteString(fmt.Sprintf(\"\\nKubeConfig File: %s\", ctx.KubeConfigFile))\n\tbuff.WriteString(\"\\n------------------\")\n\treturn buff.String()\n}", "func (c *jsiiProxy_CfnConnection) ToString() *string {\n\tvar returns *string\n\n\t_jsii_.Invoke(\n\t\tc,\n\t\t\"toString\",\n\t\tnil, // no parameters\n\t\t&returns,\n\t)\n\n\treturn returns\n}", "func (o VpnGatewayConnectionOutput) Name() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *VpnGatewayConnection) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)\n}", "func (cc *ClientConn) Target() string {\n\treturn cc.target\n}", "func (c Context) String() string {\n\tsampled := 0\n\tif c.Sampled {\n\t\tsampled = 1\n\t}\n\treturn fmt.Sprintf(\"%s/%s;o=%d\", c.TraceID, c.SpanID, sampled)\n}", "func (c ConnectionId) String() string {\n\treturn hex.EncodeToString(c)\n}", "func (gi *GpsInfo) String() string {\n\treturn fmt.Sprintf(\"GpsInfo | LAT=(%.05f) LON=(%.05f) ALT=(%d) TIME=[%s] |\",\n\t\tgi.Latitude, gi.Longitude, gi.Altitude, gi.Timestamp)\n}", "func (ss *SousServer) Help() string {\n\treturn sousServerHelp\n}", "func (c *Connection) String() string {\n\tc.Lock()\n\tdefer c.Unlock()\n\treturn fmt.Sprintf(\"<%s> dead=%v failures=%d\", c.URL, c.IsDead, c.Failures)\n}", "func (j DSGitHub) Info() string {\n\treturn fmt.Sprintf(\"%+v\", j)\n}", "func (l *RelayDriver) Name() string { return l.name }", "func (g *CayleyGraph) String() string {\n\treturn g.name\n}" ]
[ "0.60571283", "0.60210174", "0.59276", "0.5748914", "0.55196834", "0.5480027", "0.54697454", "0.5464748", "0.54230994", "0.53654164", "0.53230923", "0.5318965", "0.52613574", "0.5255681", "0.5249773", "0.5245302", "0.522117", "0.5210933", "0.5184928", "0.5180495", "0.5159536", "0.51528114", "0.5148772", "0.51397973", "0.51205856", "0.5107645", "0.50844586", "0.50836164", "0.5075399", "0.5062336", "0.50568914", "0.50545657", "0.5039797", "0.50215614", "0.50201064", "0.5019108", "0.5018956", "0.50133646", "0.5013029", "0.50129265", "0.50085294", "0.50069106", "0.5000054", "0.49988112", "0.49932042", "0.49821624", "0.49793893", "0.49758795", "0.49718907", "0.49688217", "0.49664277", "0.49617478", "0.49592286", "0.49570686", "0.49548402", "0.49485156", "0.49465284", "0.49415657", "0.49377283", "0.49366447", "0.49321854", "0.49309215", "0.49219707", "0.49215776", "0.49175245", "0.4917418", "0.4910932", "0.4906096", "0.4901191", "0.48930794", "0.48876217", "0.48868746", "0.48819464", "0.48743632", "0.48682535", "0.48529398", "0.48499134", "0.48485997", "0.4839534", "0.4839534", "0.4835978", "0.48357087", "0.4832508", "0.4830174", "0.48271683", "0.48256877", "0.48077103", "0.4806504", "0.4805942", "0.48011667", "0.4794951", "0.47941068", "0.4787611", "0.47819775", "0.47815493", "0.47803202", "0.47732306", "0.4772342", "0.47722465", "0.47708088", "0.4768689" ]
0.0
-1
retrieve the index of a subroutine uniform of a given shader stage within a program
func GetSubroutineIndex(program uint32, shadertype uint32, name *uint8) uint32 { ret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name))) return (uint32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *int8) int32 {\n ret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *int8) uint32 {\n ret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n return (uint32)(ret)\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *uint8) int32 {\n\tret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *uint8) int32 {\n\tret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetSubroutineUniformLocation, 3, uintptr(program), uintptr(shadertype), uintptr(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *int8) uint32 {\n ret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n return (uint32)(ret)\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *uint8) {\n\tsyscall.Syscall6(gpGetActiveSubroutineUniformName, 6, uintptr(program), uintptr(shadertype), uintptr(index), uintptr(bufsize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(name)))\n}", "func GetUniformLocation(program uint32, name *int8) int32 {\n ret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *uint8) uint32 {\n\tret, _, _ := syscall.Syscall(gpGetSubroutineIndex, 3, uintptr(program), uintptr(shadertype), uintptr(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **int8, uniformIndices *uint32) {\n C.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n\treturn (uint32)(ret)\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n\treturn (uint32)(ret)\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret, _, _ := syscall.Syscall(gpGetUniformBlockIndex, 2, uintptr(program), uintptr(unsafe.Pointer(uniformBlockName)), 0)\n\treturn (uint32)(ret)\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetUniformLocation, 2, uintptr(program), uintptr(unsafe.Pointer(name)), 0)\n\treturn (int32)(ret)\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n C.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetUniformLocation(program Uint, name string) Int {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcname, _ := unpackPCharString(name)\n\t__ret := C.glGetUniformLocation(cprogram, cname)\n\t__v := (Int)(__ret)\n\treturn __v\n}", "func (native *OpenGL) GetUniformLocation(program uint32, name string) int32 {\n\treturn gl.GetUniformLocation(program, gl.Str(name+\"\\x00\"))\n}", "func (debugging *debuggingOpenGL) GetUniformLocation(program uint32, name string) int32 {\n\tdebugging.recordEntry(\"GetUniformLocation\", program, name)\n\tresult := debugging.gl.GetUniformLocation(program, name)\n\tdebugging.recordExit(\"GetUniformLocation\", result)\n\treturn result\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n C.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func (s *Shader) getUniformBlockLocation(name string) (index uint32) {\n\t// if we already saved the location, return it\n\tif index, ok := s.uniformBIndices[name]; ok {\n\t\treturn index\n\t}\n\n\t// if it's not in our index cache, get it from opengl and save it in the cache\n\tindex = gl.GetUniformBlockIndex(s.Program, gl.Str(name+\"\\x00\"))\n\ts.uniformBIndices[name] = index\n\treturn\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *int8) {\n C.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *int8) int32 {\n ret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetProgramResourceIndex(program uint32, programInterface uint32, name *int8) uint32 {\n ret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (uint32)(ret)\n}", "func (program Program) GetUniformLocation(name string) UniformLocation {\n\treturn UniformLocation(gl.GetUniformLocation(uint32(program), gl.Str(name+\"\\x00\")))\n}", "func GetFragDataIndex(program uint32, name *int8) int32 {\n ret := C.glowGetFragDataIndex(gpGetFragDataIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func ProgramUniform2i(program uint32, location int32, v0 int32, v1 int32) {\n C.glowProgramUniform2i(gpProgramUniform2i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func GetUniformLocation(p Program, name string) Uniform {\n\treturn Uniform{Value: gl.GetUniformLocation(p.Value, gl.Str(name+\"\\x00\"))}\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tC.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tC.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetShaderi(s Shader, pname Enum) int {\n\tvar result int32\n\tgl.GetShaderiv(s.Value, uint32(pname), &result)\n\treturn int(result)\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func ProgramUniform1i(program uint32, location int32, v0 int32) {\n C.glowProgramUniform1i(gpProgramUniform1i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0))\n}", "func GetActiveUniform(p Program, index uint32) (name string, size int, ty Enum) {\n\tvar length, si int32\n\tvar typ uint32\n\tname = strings.Repeat(\"\\x00\", 256)\n\tcname := gl.Str(name)\n\tgl.GetActiveUniform(p.Value, uint32(index), int32(len(name)-1), &length, &si, &typ, cname)\n\tname = name[:strings.IndexRune(name, 0)]\n\treturn name, int(si), Enum(typ)\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveUniformsiv, 5, uintptr(program), uintptr(uniformCount), uintptr(unsafe.Pointer(uniformIndices)), uintptr(pname), uintptr(unsafe.Pointer(params)), 0)\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tsyscall.Syscall9(gpGetActiveUniform, 7, uintptr(program), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(xtype)), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func (native *OpenGL) GLGetUniformLocation(program uint32, name *uint8) int32 {\n\treturn gl.GetUniformLocation(program, name)\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func (s *Shader) getUniformLocation(name string) (location int32) {\n\t// if we already saved the location, return it\n\tif location, ok := s.uniformLocs[name]; ok {\n\t\treturn location\n\t}\n\n\t// if it's not in our location cache, get it from opengl and save it in the cache\n\tlocation = gl.GetUniformLocation(s.Program, gl.Str(name+\"\\x00\"))\n\tif location == -1 {\n\t\tfmt.Println(\"ERROR: Could not find uniform:\", name)\n\t\treturn\n\t}\n\n\ts.uniformLocs[name] = location\n\treturn\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformName, 5, uintptr(program), uintptr(uniformIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformName)), 0)\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *uint8) int32 {\n\tret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *uint8) int32 {\n\tret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tC.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tC.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **uint8, uniformIndices *uint32) {\n\tsyscall.Syscall6(gpGetUniformIndices, 4, uintptr(program), uintptr(uniformCount), uintptr(unsafe.Pointer(uniformNames)), uintptr(unsafe.Pointer(uniformIndices)), 0, 0)\n}", "func ProgramUniform2iv(program uint32, location int32, count int32, value *int32) {\n C.glowProgramUniform2iv(gpProgramUniform2iv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value)))\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n C.glowGetShaderiv(gpGetShaderiv, (C.GLuint)(shader), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tsyscall.Syscall(gpGetUniformfv, 3, uintptr(program), uintptr(location), uintptr(unsafe.Pointer(params)))\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **uint8, uniformIndices *uint32) {\n\tC.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **uint8, uniformIndices *uint32) {\n\tC.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func GetProgramResourceIndex(program uint32, programInterface uint32, name *uint8) uint32 {\n\tret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func GetProgramResourceIndex(program uint32, programInterface uint32, name *uint8) uint32 {\n\tret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n C.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))\n}", "func ProgramUniform2fv(program uint32, location int32, count int32, value *float32) {\n C.glowProgramUniform2fv(gpProgramUniform2fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tsyscall.Syscall(gpGetUniformiv, 3, uintptr(program), uintptr(location), uintptr(unsafe.Pointer(params)))\n}", "func ProgramUniform3uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform3uiv(gpProgramUniform3uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform1iv(program uint32, location int32, count int32, value *int32) {\n C.glowProgramUniform1iv(gpProgramUniform1iv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value)))\n}", "func ProgramUniform4uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform4uiv(gpProgramUniform4uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n\tsyscall.Syscall6(gpProgramUniform2uiv, 4, uintptr(program), uintptr(location), uintptr(count), uintptr(unsafe.Pointer(value)), 0, 0)\n}", "func GetAttribLocation(program uint32, name *int8) int32 {\n ret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetUniformiv(program Uint, location Int, params []Int) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tclocation, _ := (C.GLint)(location), cgoAllocsUnknown\n\tcparams, _ := (*C.GLint)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&params)).Data)), cgoAllocsUnknown\n\tC.glGetUniformiv(cprogram, clocation, cparams)\n}", "func GetAttribLocation(program Uint, name string) Int {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcname, _ := unpackPCharString(name)\n\t__ret := C.glGetAttribLocation(cprogram, cname)\n\t__v := (Int)(__ret)\n\treturn __v\n}", "func ProgramUniform1fv(program uint32, location int32, count int32, value *float32) {\n C.glowProgramUniform1fv(gpProgramUniform1fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n\tsyscall.Syscall(gpGetShaderiv, 3, uintptr(shader), uintptr(pname), uintptr(unsafe.Pointer(params)))\n}", "func Uniform1i(location int32, v0 int32) {\n C.glowUniform1i(gpUniform1i, (C.GLint)(location), (C.GLint)(v0))\n}", "func GetProgrami(p Program, pname Enum) int {\n\tvar result int32\n\tgl.GetProgramiv(p.Value, uint32(pname), &result)\n\treturn int(result)\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tC.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tC.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func (program Program) GetAttribLocation(name string) int32 {\n\treturn gl.GetAttribLocation(uint32(program), gl.Str(name+\"\\x00\"))\n}", "func (p *Program) getParameter(param uint32) int {\n\tvar v int32\n\tgl.GetProgramiv(uint32(p.glHandle), param, &v)\n\treturn int(v)\n}", "func (self *Script) getOutputIdxByName(name string) int {\n for i, def := range self.OutputDefs {\n if def.Name == name {\n return i\n }\n }\n return -1\n}", "func GetFragDataIndex(program uint32, name *uint8) int32 {\n\tret := C.glowGetFragDataIndex(gpGetFragDataIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetFragDataIndex(program uint32, name *uint8) int32 {\n\tret := C.glowGetFragDataIndex(gpGetFragDataIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetActiveUniform(program Uint, index Uint, bufSize Sizei, length *Sizei, size *Int, kind *Enum, name []byte) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcindex, _ := (C.GLuint)(index), cgoAllocsUnknown\n\tcbufSize, _ := (C.GLsizei)(bufSize), cgoAllocsUnknown\n\tclength, _ := (*C.GLsizei)(unsafe.Pointer(length)), cgoAllocsUnknown\n\tcsize, _ := (*C.GLint)(unsafe.Pointer(size)), cgoAllocsUnknown\n\tckind, _ := (*C.GLenum)(unsafe.Pointer(kind)), cgoAllocsUnknown\n\tcname, _ := (*C.GLchar)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&name)).Data)), cgoAllocsUnknown\n\tC.glGetActiveUniform(cprogram, cindex, cbufSize, clength, csize, ckind, cname)\n}", "func ProgramUniform2ui(program uint32, location int32, v0 uint32, v1 uint32) {\n C.glowProgramUniform2ui(gpProgramUniform2ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func GetVertexAttribIuiv(index uint32, pname uint32, params *uint32) {\n C.glowGetVertexAttribIuiv(gpGetVertexAttribIuiv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformBlockiv(gpGetActiveUniformBlockiv, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformBlockiv(gpGetActiveUniformBlockiv, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}" ]
[ "0.74622273", "0.71223706", "0.71164", "0.70962393", "0.70962393", "0.7071756", "0.6783698", "0.6783698", "0.6716894", "0.6403526", "0.6316259", "0.622342", "0.6217698", "0.6169233", "0.61134875", "0.61072636", "0.6034793", "0.6034793", "0.60258925", "0.6024647", "0.6005321", "0.5994656", "0.59435904", "0.59325975", "0.590673", "0.5896704", "0.5846616", "0.5835085", "0.58192104", "0.58192104", "0.581873", "0.5815488", "0.5805826", "0.57807773", "0.576978", "0.5722957", "0.5722957", "0.5681032", "0.5655692", "0.5655692", "0.56404847", "0.5629956", "0.56159794", "0.56159794", "0.55993503", "0.5597969", "0.5597969", "0.5578679", "0.55662924", "0.5563991", "0.555357", "0.5553334", "0.55192", "0.55192", "0.5514076", "0.5495428", "0.5495428", "0.5492942", "0.5490803", "0.5490803", "0.54835695", "0.54835695", "0.5476473", "0.54758155", "0.5449946", "0.5427402", "0.5420759", "0.5420759", "0.541355", "0.541355", "0.5386623", "0.5367632", "0.5366574", "0.53551316", "0.53039694", "0.5281191", "0.5280041", "0.52636343", "0.5253926", "0.525244", "0.5235458", "0.5226955", "0.5226566", "0.52259934", "0.52103806", "0.5209795", "0.5209795", "0.5200903", "0.5200903", "0.5198909", "0.519285", "0.5191226", "0.51909685", "0.51909685", "0.5179297", "0.5178209", "0.51578104", "0.5156603", "0.5156603" ]
0.68214595
7
retrieve the location of a subroutine uniform of a given shader stage within a program
func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *uint8) int32 { ret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name))) return (int32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *int8) int32 {\n ret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetSubroutineUniformLocation, 3, uintptr(program), uintptr(shadertype), uintptr(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetUniformLocation(program uint32, name *int8) int32 {\n ret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *int8) uint32 {\n ret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n return (uint32)(ret)\n}", "func (program Program) GetUniformLocation(name string) UniformLocation {\n\treturn UniformLocation(gl.GetUniformLocation(uint32(program), gl.Str(name+\"\\x00\")))\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *int8) uint32 {\n ret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n return (uint32)(ret)\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n C.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetUniformLocation, 2, uintptr(program), uintptr(unsafe.Pointer(name)), 0)\n\treturn (int32)(ret)\n}", "func (debugging *debuggingOpenGL) GetUniformLocation(program uint32, name string) int32 {\n\tdebugging.recordEntry(\"GetUniformLocation\", program, name)\n\tresult := debugging.gl.GetUniformLocation(program, name)\n\tdebugging.recordExit(\"GetUniformLocation\", result)\n\treturn result\n}", "func (s *Shader) getUniformBlockLocation(name string) (index uint32) {\n\t// if we already saved the location, return it\n\tif index, ok := s.uniformBIndices[name]; ok {\n\t\treturn index\n\t}\n\n\t// if it's not in our index cache, get it from opengl and save it in the cache\n\tindex = gl.GetUniformBlockIndex(s.Program, gl.Str(name+\"\\x00\"))\n\ts.uniformBIndices[name] = index\n\treturn\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *uint8) {\n\tsyscall.Syscall6(gpGetActiveSubroutineUniformName, 6, uintptr(program), uintptr(shadertype), uintptr(index), uintptr(bufsize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(name)))\n}", "func (native *OpenGL) GetUniformLocation(program uint32, name string) int32 {\n\treturn gl.GetUniformLocation(program, gl.Str(name+\"\\x00\"))\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func (uni *Uniform) Location(gs *GLS) int32 {\n\n\tloc := gs.prog.GetUniformLocation(uni.name)\n\treturn loc\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *int8) {\n C.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetUniformLocation(p Program, name string) Uniform {\n\treturn Uniform{Value: gl.GetUniformLocation(p.Value, gl.Str(name+\"\\x00\"))}\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (s *Shader) getUniformLocation(name string) (location int32) {\n\t// if we already saved the location, return it\n\tif location, ok := s.uniformLocs[name]; ok {\n\t\treturn location\n\t}\n\n\t// if it's not in our location cache, get it from opengl and save it in the cache\n\tlocation = gl.GetUniformLocation(s.Program, gl.Str(name+\"\\x00\"))\n\tif location == -1 {\n\t\tfmt.Println(\"ERROR: Could not find uniform:\", name)\n\t\treturn\n\t}\n\n\ts.uniformLocs[name] = location\n\treturn\n}", "func GetAttribLocation(program uint32, name *int8) int32 {\n ret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func (program Program) GetAttribLocation(name string) int32 {\n\treturn gl.GetAttribLocation(uint32(program), gl.Str(name+\"\\x00\"))\n}", "func GetUniformLocation(program Uint, name string) Int {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcname, _ := unpackPCharString(name)\n\t__ret := C.glGetUniformLocation(cprogram, cname)\n\t__v := (Int)(__ret)\n\treturn __v\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n C.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *uint8) uint32 {\n\tret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *uint8) uint32 {\n\tret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func GetFragDataLocation(program uint32, name *int8) int32 {\n ret := C.glowGetFragDataLocation(gpGetFragDataLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetAttribLocation(p Program, name string) Attrib {\n\treturn Attrib{Value: uint(gl.GetAttribLocation(p.Value, gl.Str(name+\"\\x00\")))}\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tC.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tC.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n\treturn (uint32)(ret)\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n\treturn (uint32)(ret)\n}", "func GetAttribLocation(program Uint, name string) Int {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcname, _ := unpackPCharString(name)\n\t__ret := C.glGetAttribLocation(cprogram, cname)\n\t__v := (Int)(__ret)\n\treturn __v\n}", "func ProgramUniform2fv(program uint32, location int32, count int32, value *float32) {\n C.glowProgramUniform2fv(gpProgramUniform2fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func GetAttribLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetAttribLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func ProgramUniform2f(program uint32, location int32, v0 float32, v1 float32) {\n C.glowProgramUniform2f(gpProgramUniform2f, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1))\n}", "func (native *OpenGL) GLGetUniformLocation(program uint32, name *uint8) int32 {\n\treturn gl.GetUniformLocation(program, name)\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tsyscall.Syscall(gpGetUniformfv, 3, uintptr(program), uintptr(location), uintptr(unsafe.Pointer(params)))\n}", "func GetProgramResourceLocation(program uint32, programInterface uint32, name *int8) int32 {\n ret := C.glowGetProgramResourceLocation(gpGetProgramResourceLocation, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret, _, _ := syscall.Syscall(gpGetUniformBlockIndex, 2, uintptr(program), uintptr(unsafe.Pointer(uniformBlockName)), 0)\n\treturn (uint32)(ret)\n}", "func ProgramUniform2i(program uint32, location int32, v0 int32, v1 int32) {\n C.glowProgramUniform2i(gpProgramUniform2i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1))\n}", "func (gl *WebGL) GetUniformLocation(shaderProgram WebGLShaderProgram, location string) WebGLUniformLocation {\n\treturn gl.context.Call(\"getUniformLocation\", shaderProgram, location)\n}", "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *int8) int32 {\n ret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func ProgramUniform1i(program uint32, location int32, v0 int32) {\n C.glowProgramUniform1i(gpProgramUniform1i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0))\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func ProgramUniform1f(program uint32, location int32, v0 float32) {\n C.glowProgramUniform1f(gpProgramUniform1f, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0))\n}", "func ProgramUniform1fv(program uint32, location int32, count int32, value *float32) {\n C.glowProgramUniform1fv(gpProgramUniform1fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tC.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tC.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func ActiveShaderProgram(pipeline uint32, program uint32) {\n C.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))\n}", "func (debugging *debuggingOpenGL) GetAttribLocation(program uint32, name string) int32 {\n\tdebugging.recordEntry(\"GetAttribLocation\", program, name)\n\tresult := debugging.gl.GetAttribLocation(program, name)\n\tdebugging.recordExit(\"GetAttribLocation\", result)\n\treturn result\n}", "func GetFragDataLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetFragDataLocation(gpGetFragDataLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetFragDataLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetFragDataLocation(gpGetFragDataLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func ProgramUniform2ui(program uint32, location int32, v0 uint32, v1 uint32) {\n C.glowProgramUniform2ui(gpProgramUniform2ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n\tC.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tC.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tC.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func ProgramUniform2iv(program uint32, location int32, count int32, value *int32) {\n C.glowProgramUniform2iv(gpProgramUniform2iv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value)))\n}", "func (native *OpenGL) GetAttribLocation(program uint32, name string) int32 {\n\treturn gl.GetAttribLocation(program, gl.Str(name+\"\\x00\"))\n}", "func BindFragDataLocation(program uint32, color uint32, name *int8) {\n C.glowBindFragDataLocation(gpBindFragDataLocation, (C.GLuint)(program), (C.GLuint)(color), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func ProgramUniform1ui(program uint32, location int32, v0 uint32) {\n C.glowProgramUniform1ui(gpProgramUniform1ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0))\n}", "func (s *Shader) GetUniform(str string) *Uniform {\n\tif uid, ok := s.uniforms[str]; ok {\n\t\treturn uid\n\t}\n\ts.uniforms[str] = &Uniform{\n\t\tname: str,\n\t\tprogram: s.programID,\n\t}\n\treturn s.uniforms[str]\n}", "func GetProgramResourceLocation(program uint32, programInterface uint32, name *uint8) int32 {\n\tret := C.glowGetProgramResourceLocation(gpGetProgramResourceLocation, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetProgramResourceLocation(program uint32, programInterface uint32, name *uint8) int32 {\n\tret := C.glowGetProgramResourceLocation(gpGetProgramResourceLocation, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetAttribLocation(program uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetAttribLocation, 2, uintptr(program), uintptr(unsafe.Pointer(name)), 0)\n\treturn (int32)(ret)\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformName, 5, uintptr(program), uintptr(uniformIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformName)), 0)\n}", "func ProgramUniform3uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform3uiv(gpProgramUniform3uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func (l *LocationCache) FindUniform(name string) int {\n\t// Scan through the cache for it now.\n\tfor _, u := range l.uniforms {\n\t\tif u.name != name {\n\t\t\tcontinue\n\t\t}\n\t\treturn u.location\n\t}\n\n\t// Query directly and store in the cache.\n\ti := l.GetUniformLocation(name)\n\tif i < 0 {\n\t\ti = -1\n\t}\n\tl.uniforms = append(l.uniforms, location{\n\t\tname: name,\n\t\tlocation: i,\n\t})\n\treturn i\n}", "func (gl *WebGL) GetAttribLocation(shaderProgram WebGLShaderProgram, attribute string) WebGLAttributeLocation {\n\treturn gl.context.Call(\"getAttribLocation\", shaderProgram, attribute).Int()\n}", "func ProgramUniform4uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform4uiv(gpProgramUniform4uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *int8) {\n C.glowGetProgramResourceName(gpGetProgramResourceName, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetShaderiv(shader uint32, pname uint32, params *int32) {\n C.glowGetShaderiv(gpGetShaderiv, (C.GLuint)(shader), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetFragDataIndex(program uint32, name *int8) int32 {\n ret := C.glowGetFragDataIndex(gpGetFragDataIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func ProgramUniform4f(program uint32, location int32, v0 float32, v1 float32, v2 float32, v3 float32) {\n C.glowProgramUniform4f(gpProgramUniform4f, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1), (C.GLfloat)(v2), (C.GLfloat)(v3))\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **int8, uniformIndices *uint32) {\n C.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func Uniform1i(location int32, v0 int32) {\n C.glowUniform1i(gpUniform1i, (C.GLint)(location), (C.GLint)(v0))\n}", "func ProgramUniform2fv(program uint32, location int32, count int32, value *float32) {\n\tC.glowProgramUniform2fv(gpProgramUniform2fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func ProgramUniform2fv(program uint32, location int32, count int32, value *float32) {\n\tC.glowProgramUniform2fv(gpProgramUniform2fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func GetUniformfv(program Uint, location Int, params []Float) {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tclocation, _ := (C.GLint)(location), cgoAllocsUnknown\n\tcparams, _ := (*C.GLfloat)(unsafe.Pointer((*sliceHeader)(unsafe.Pointer(&params)).Data)), cgoAllocsUnknown\n\tC.glGetUniformfv(cprogram, clocation, cparams)\n}", "func ProgramUniform3f(program uint32, location int32, v0 float32, v1 float32, v2 float32) {\n C.glowProgramUniform3f(gpProgramUniform3f, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1), (C.GLfloat)(v2))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformBlockName, 5, uintptr(program), uintptr(uniformBlockIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformBlockName)), 0)\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *uint8) int32 {\n\tret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *uint8) int32 {\n\tret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) {\n\tsyscall.Syscall6(gpProgramUniform2uiv, 4, uintptr(program), uintptr(location), uintptr(count), uintptr(unsafe.Pointer(value)), 0, 0)\n}" ]
[ "0.76111084", "0.7107512", "0.69044673", "0.65629286", "0.65108573", "0.65108573", "0.6393616", "0.6313993", "0.62833077", "0.6227792", "0.61834896", "0.6163104", "0.61517715", "0.60892236", "0.60604507", "0.6057482", "0.6057482", "0.6057007", "0.6026584", "0.59949034", "0.5977529", "0.5960999", "0.5936819", "0.5898708", "0.58926386", "0.58891225", "0.58851266", "0.5852117", "0.5852117", "0.58308077", "0.5805957", "0.5759493", "0.5746752", "0.5746752", "0.5692864", "0.567738", "0.567738", "0.5675555", "0.5671224", "0.5666883", "0.5666883", "0.5638775", "0.5627812", "0.5619751", "0.5616146", "0.55913407", "0.55901676", "0.5578901", "0.5530147", "0.55260754", "0.54974556", "0.5486355", "0.547236", "0.5455612", "0.5455612", "0.5424576", "0.5417444", "0.5411373", "0.5411373", "0.54075277", "0.5405831", "0.54054904", "0.54054904", "0.53900915", "0.5383434", "0.5383434", "0.5376716", "0.5376716", "0.5351449", "0.5351449", "0.5339471", "0.5339471", "0.533924", "0.5335463", "0.5291881", "0.52782756", "0.52754927", "0.5268525", "0.5268525", "0.5256186", "0.5242868", "0.5231085", "0.52236986", "0.5209649", "0.5208548", "0.5196852", "0.51926553", "0.51901263", "0.51810086", "0.5176215", "0.5170895", "0.5170625", "0.5170625", "0.5162172", "0.516186", "0.51554006", "0.51461875", "0.51461875", "0.5145498" ]
0.71867234
2
query the properties of a sync object
func GetSynciv(sync uintptr, pname uint32, count int32, length *int32, values *int32) { C.glowGetSynciv(gpGetSynciv, (C.GLsync)(sync), (C.GLenum)(pname), (C.GLsizei)(count), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(values))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (wo *WorkOrder) QueryProperties() *PropertyQuery {\n\treturn (&WorkOrderClient{wo.config}).QueryProperties(wo)\n}", "func (obj *GenericObject) GetPropertiesRaw(ctx context.Context) (json.RawMessage, error) {\n\tresult := &struct {\n\t\tProp json.RawMessage `json:\"qProp\"`\n\t}{}\n\terr := obj.RPC(ctx, \"GetProperties\", result)\n\treturn result.Prop, err\n}", "func getProperties(d *schema.ResourceData) (t []lmv1.NameAndValue) {\n\t// interate through hashmap to get custom/system properties\n\tif r, ok := d.GetOk(\"properties\"); ok {\n\t\tfor k, v := range r.(map[string]interface{}) {\n\t\t\tt = append(t, lmv1.NameAndValue{Name: k, Value: v.(string)})\n\t\t}\n\t}\n\n\treturn\n}", "func (pr *Project) QueryProperties() *PropertyQuery {\n\treturn (&ProjectClient{pr.config}).QueryProperties(pr)\n}", "func (e *Equipment) QueryProperties() *PropertyQuery {\n\treturn (&EquipmentClient{e.config}).QueryProperties(e)\n}", "func (c *PAPIClient) Properties(contractID, groupID string) ([]PapiPropertySummary, error) {\n\tprops := &PapiProperties{}\n\terr := resourceRequest(c, \"GET\", papiPropertiesEndpoint(c.GetCredentials(), contractID, groupID), nil, props)\n\tif err != nil {\n\t\treturn []PapiPropertySummary{}, err\n\t}\n\treturn props.Properties.Items, err\n}", "func (obj *GenericObject) GetProperties(ctx context.Context) (*GenericObjectProperties, error) {\n\tresult := &struct {\n\t\tProp *GenericObjectProperties `json:\"qProp\"`\n\t}{}\n\terr := obj.RPC(ctx, \"GetProperties\", result)\n\treturn result.Prop, err\n}", "func (c *gcsCore) GetProperties(id string, query string) (*prot.Properties, error) {\n\tc.containerCacheMutex.Lock()\n\tdefer c.containerCacheMutex.Unlock()\n\n\tcontainerEntry := c.getContainer(id)\n\tif containerEntry == nil {\n\t\treturn nil, gcserr.NewHresultError(gcserr.HrVmcomputeSystemNotFound)\n\t}\n\tif containerEntry.container == nil {\n\t\treturn nil, nil\n\t}\n\n\tvar queryObj prot.PropertyQuery\n\tif len(query) != 0 {\n\t\tif err := json.Unmarshal([]byte(query), &queryObj); err != nil {\n\t\t\te := gcserr.WrapHresult(err, gcserr.HrVmcomputeInvalidJSON)\n\t\t\treturn nil, errors.Wrapf(e, \"The query could not be unmarshaled: '%s'\", query)\n\t\t}\n\t}\n\n\tvar properties prot.Properties\n\tfor _, property := range queryObj.PropertyTypes {\n\t\tif property == prot.PtProcessList {\n\t\t\tprocesses, err := containerEntry.container.GetAllProcesses()\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t\tprocessDetails := make([]prot.ProcessDetails, len(processes))\n\t\t\tfor i, p := range processes {\n\t\t\t\tprocessDetails[i] = prot.ProcessDetails{ProcessID: uint32(p.Pid)}\n\t\t\t}\n\t\t\tproperties.ProcessList = processDetails\n\t\t}\n\t}\n\n\treturn &properties, nil\n}", "func (c * Client) Properties() ([]byte, error) {\n\treq, err := http.NewRequest(\"GET\", c.endpoint, nil)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\treq.Header.Add(\"Accept\", \"application/json\")\n\tresp, err := c.httpClient.Do(req)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Make sure that Close happens!\n\tdefer resp.Body.Close() //nolint errcheck\n\t// Only 200 is valid - if we get any other code, we are having problems connecting to propsd\n\tif resp.StatusCode != http.StatusOK {\n\t\treturn nil, fmt.Errorf(\"unable to connect to propsd: expected 200, got %d\", resp.StatusCode)\n\t}\n\n\treturn ioutil.ReadAll(resp.Body)\n}", "func (obj *GenericMeasure) GetPropertiesRaw(ctx context.Context) (json.RawMessage, error) {\n\tresult := &struct {\n\t\tProp json.RawMessage `json:\"qProp\"`\n\t}{}\n\terr := obj.RPC(ctx, \"GetProperties\", result)\n\treturn result.Prop, err\n}", "func QueryObject(stub shim.ChaincodeStubInterface, objectType string, keys []string) ([]byte, error) {\n\n // Check how many keys\n\n err := VerifyAtLeastOneKeyIsPresent(objectType, keys )\n if err != nil {\n return nil, err\n }\n\n compoundKey, _ := stub.CreateCompositeKey(objectType, keys)\n fmt.Println(\"QueryObject() : Compound Key : \", compoundKey)\n\n Avalbytes, err := stub.GetState(compoundKey)\n if err != nil {\n return nil, err\n }\n\n return Avalbytes, nil\n}", "func (m *Schema) GetProperties()([]Propertyable) {\n return m.properties\n}", "func (l *Location) QueryProperties() *PropertyQuery {\n\treturn (&LocationClient{l.config}).QueryProperties(l)\n}", "func (m *Set) GetProperties()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.KeyValueable) {\n val, err := m.GetBackingStore().Get(\"properties\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.KeyValueable)\n }\n return nil\n}", "func (o *MDRaid) GetSyncCompleted(ctx context.Context) (syncCompleted float64, err error) {\n\terr = o.object.CallWithContext(ctx, \"org.freedesktop.DBus.Properties.Get\", 0, InterfaceMDRaid, \"SyncCompleted\").Store(&syncCompleted)\n\treturn\n}", "func (c Client) GetProperties(name string) (bool, map[string]string, error) {\n\tnameExists, err := c.nameExists(name)\n\tif err != nil {\n\t\treturn false, nil, err\n\t}\n\n\tif !nameExists {\n\t\treturn false, nil, nil\n\t}\n\n\tproperties := make(map[string]string)\n\n\tvar continueToken string\n\tfor {\n\t\tres, err := c.getHTTP(\"Names/\"+name+\"/$/GetProperties\", withContinue(continueToken), withParam(\"IncludeValues\", \"true\"))\n\t\tif err != nil {\n\t\t\treturn false, nil, err\n\t\t}\n\n\t\tvar propertiesListPage PropertiesListPage\n\t\terr = json.Unmarshal(res, &propertiesListPage)\n\t\tif err != nil {\n\t\t\treturn false, nil, fmt.Errorf(\"could not deserialise JSON response: %+v\", err)\n\t\t}\n\n\t\tfor _, property := range propertiesListPage.Properties {\n\t\t\tif property.Value.Kind != \"String\" {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tproperties[property.Name] = property.Value.Data\n\t\t}\n\n\t\tcontinueToken = propertiesListPage.ContinuationToken\n\t\tif continueToken == \"\" {\n\t\t\tbreak\n\t\t}\n\t}\n\n\treturn true, properties, nil\n}", "func GetSync() Sync {\n\treturn Configurations.Sync\n}", "func (obj *GenericBookmark) GetPropertiesRaw(ctx context.Context) (json.RawMessage, error) {\n\tresult := &struct {\n\t\tProp json.RawMessage `json:\"qProp\"`\n\t}{}\n\terr := obj.RPC(ctx, \"GetProperties\", result)\n\treturn result.Prop, err\n}", "func (obj *GenericMeasure) GetProperties(ctx context.Context) (*GenericMeasureProperties, error) {\n\tresult := &struct {\n\t\tProp *GenericMeasureProperties `json:\"qProp\"`\n\t}{}\n\terr := obj.RPC(ctx, \"GetProperties\", result)\n\treturn result.Prop, err\n}", "func (s *Session) WatchSync(watchObject ...map[string]bool) string {\n\ts.Watch(watchObject...)\n\tline, _ := s.readLine()\n\treturn line\n}", "func (server *Server) GetSync() sync.Sync {\n\treturn server.sync\n}", "func (a *PhonebookAccess1) WatchProperties() (chan *bluez.PropertyChanged, error) {\n\treturn bluez.WatchProperties(a)\n}", "func (o *GstObj) SyncValues(t ClockTime) bool {\n\treturn C.gst_object_sync_values(o.g(), C.GstClockTime(t)) != 0\n}", "func (a *PhonebookAccess1) GetProperties() (*PhonebookAccess1Properties, error) {\n\ta.Properties.Lock()\n\terr := a.client.GetProperties(a.Properties)\n\ta.Properties.Unlock()\n\treturn a.Properties, err\n}", "func (a *PhonebookAccess1) GetPropertiesSignal() (chan *dbus.Signal, error) {\n\n\tif a.propertiesSignal == nil {\n\t\ts, err := a.client.Register(a.client.Config.Path, bluez.PropertiesInterface)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\ta.propertiesSignal = s\n\t}\n\n\treturn a.propertiesSignal, nil\n}", "func (m *WebPartData) GetProperties()(Jsonable) {\n val, err := m.GetBackingStore().Get(\"properties\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.(Jsonable)\n }\n return nil\n}", "func getProperties(ctx context.Context, thingID ThingID, store registry.Registry) interface{} {\n\tthing, err := store.Get(ctx, string(thingID))\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tvalues := make(map[string]interface{})\n\n\tfor key := range thing.Properties {\n\t\tval, err := store.GetItemValue(ctx, string(thingID), key)\n\t\tif err != nil {\n\t\t\tlogrus.Errorf(\"failed to get property value: %s\", err.Error())\n\t\t\tcontinue\n\t\t}\n\n\t\tvalues[key] = val\n\t}\n\n\treturn values\n}", "func (client StorageGatewayClient) getCloudSyncHealth(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {\n\thttpRequest, err := request.HTTPRequest(http.MethodGet, \"/storageGateways/{storageGatewayId}/cloudSyncs/{cloudSyncName}/health\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar response GetCloudSyncHealthResponse\n\tvar httpResponse *http.Response\n\thttpResponse, err = client.Call(ctx, &httpRequest)\n\tdefer common.CloseBodyIfValid(httpResponse)\n\tresponse.RawResponse = httpResponse\n\tif err != nil {\n\t\treturn response, err\n\t}\n\n\terr = common.UnmarshalResponse(httpResponse, &response)\n\treturn response, err\n}", "func (obj *GenericObject) GetEffectivePropertiesRaw(ctx context.Context) (json.RawMessage, error) {\n\tresult := &struct {\n\t\tProp json.RawMessage `json:\"qProp\"`\n\t}{}\n\terr := obj.RPC(ctx, \"GetEffectiveProperties\", result)\n\treturn result.Prop, err\n}", "func (obj *GenericBookmark) GetProperties(ctx context.Context) (*GenericBookmarkProperties, error) {\n\tresult := &struct {\n\t\tProp *GenericBookmarkProperties `json:\"qProp\"`\n\t}{}\n\terr := obj.RPC(ctx, \"GetProperties\", result)\n\treturn result.Prop, err\n}", "func (m *SchemaExtension) GetProperties()([]ExtensionSchemaPropertyable) {\n val, err := m.GetBackingStore().Get(\"properties\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.([]ExtensionSchemaPropertyable)\n }\n return nil\n}", "func getGroupProperties(d *schema.ResourceData) (t []lmv1.NameAndValue) {\n\t// interate through hashmap to get custom/system properties\n\tif r, ok := d.GetOk(\"properties\"); ok {\n\t\tfor k, v := range r.(map[string]interface{}) {\n\t\t\tt = append(t, lmv1.NameAndValue{Name: k, Value: v.(string)})\n\t\t}\n\t}\n\n\treturn\n}", "func (rp *ResourceProperty) IsSynced() (bool, error) {\n\treturn rp.PropertyIsSyncedFunc()\n}", "func printProperties(getMsgHandle ibmmq.MQMessageHandle) {\n\timpo := ibmmq.NewMQIMPO()\n\tpd := ibmmq.NewMQPD()\n\n\timpo.Options = ibmmq.MQIMPO_CONVERT_VALUE | ibmmq.MQIMPO_INQ_FIRST\n\tfor propsToRead := true; propsToRead; {\n\t\tname, value, err := getMsgHandle.InqMP(impo, pd, \"%\")\n\t\timpo.Options = ibmmq.MQIMPO_CONVERT_VALUE | ibmmq.MQIMPO_INQ_NEXT\n\t\tif err != nil {\n\t\t\tmqret := err.(*ibmmq.MQReturn)\n\t\t\tif mqret.MQRC != ibmmq.MQRC_PROPERTY_NOT_AVAILABLE {\n\t\t\t\tfmt.Println(err)\n\t\t\t} else {\n\t\t\t\tfmt.Println(\"All properties read\")\n\t\t\t}\n\n\t\t\tpropsToRead = false\n\t\t} else {\n\t\t\tfmt.Printf(\"Name: '%s' Value '%v' \\n\", name, value)\n\t\t}\n\t}\n}", "func (gdb *GostDatabase) GetDatastreamsByObservedProperty(oID interface{}, qo *odata.QueryOptions) ([]*entities.Datastream, int, bool, error) {\n\tintID, ok := ToIntID(oID)\n\tif !ok {\n\t\treturn nil, 0, false, gostErrors.NewRequestNotFound(errors.New(\"Datastream does not exist\"))\n\t}\n\n\tquery, qi := gdb.QueryBuilder.CreateQuery(&entities.Datastream{}, &entities.ObservedProperty{}, intID, qo)\n\tcountSQL := gdb.QueryBuilder.CreateCountQuery(&entities.Datastream{}, &entities.ObservedProperty{}, intID, qo)\n\treturn processDatastreams(gdb.Db, query, qo, qi, countSQL)\n}", "func (obj *GenericDimension) GetPropertiesRaw(ctx context.Context) (json.RawMessage, error) {\n\tresult := &struct {\n\t\tProp json.RawMessage `json:\"qProp\"`\n\t}{}\n\terr := obj.RPC(ctx, \"GetProperties\", result)\n\treturn result.Prop, err\n}", "func (e Endpoints) QueryOmniProperty(ctx context.Context, propertyid int64) (r0 *repository.OmniProperty, e1 error) {\n\trequest := QueryOmniPropertyRequest{Propertyid: propertyid}\n\tresponse, err := e.QueryOmniPropertyEndpoint(ctx, request)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn response.(QueryOmniPropertyResponse).Property, nil\n}", "func (obj *GenericVariable) GetPropertiesRaw(ctx context.Context) (json.RawMessage, error) {\n\tresult := &struct {\n\t\tProp json.RawMessage `json:\"qProp\"`\n\t}{}\n\terr := obj.RPC(ctx, \"GetProperties\", result)\n\treturn result.Prop, err\n}", "func (c *PAPIClient) Property(propID, contractID, groupID string) (PapiPropertySummary, error) {\n\tprops := &PapiProperties{}\n\terr := resourceRequest(c, \"GET\", papiPropertyEndpoint(c.GetCredentials(), propID, contractID, groupID), nil, props)\n\tif err != nil {\n\t\treturn PapiPropertySummary{}, err\n\t}\n\treturn props.Properties.Items[0], err\n}", "func (a *PhonebookAccess1) GetWatchPropertiesChannel() chan *dbus.Signal {\n\treturn a.watchPropertiesChannel\n}", "func (node *Node) GetProperties() (*map[string]interface{}, bool) {\n\treturn getProperties(node.NextPropertyID)\n}", "func (lq *LocationQuery) QueryProperties() *PropertyQuery {\n\tquery := &PropertyQuery{config: lq.config}\n\tstep := sqlgraph.NewStep(\n\t\tsqlgraph.From(location.Table, location.FieldID, lq.sqlQuery()),\n\t\tsqlgraph.To(property.Table, property.FieldID),\n\t\tsqlgraph.Edge(sqlgraph.O2M, false, location.PropertiesTable, location.PropertiesColumn),\n\t)\n\tquery.sql = sqlgraph.SetNeighbors(lq.driver.Dialect(), step)\n\treturn query\n}", "func Properties(vm *object.VirtualMachine) (*mo.VirtualMachine, error) {\n\tglog.V(4).Infof(\"[DEBUG] Fetching properties for VM %q\", vm.InventoryPath)\n\tctx, cancel := context.WithTimeout(context.Background(), constants.DefaultAPITimeout)\n\tdefer cancel()\n\tvar props mo.VirtualMachine\n\tif err := vm.Properties(ctx, vm.Reference(), nil, &props); err != nil {\n\t\treturn nil, err\n\t}\n\treturn &props, nil\n}", "func (l *RemoteProvider) ReadMeshSyncData() ([]model.Object, error) {\n\tobjects := make([]model.Object, 0)\n\tresult := l.GenericPersister.\n\t\tPreload(\"TypeMeta\").\n\t\tPreload(\"ObjectMeta\").\n\t\tPreload(\"ObjectMeta.Labels\").\n\t\tPreload(\"ObjectMeta.Annotations\").\n\t\tPreload(\"Spec\").\n\t\tPreload(\"Status\").\n\t\tFind(&objects)\n\n\tif result.Error != nil {\n\t\treturn nil, result.Error\n\t}\n\treturn objects, nil\n}", "func (s *SmartContract) query(APIstub shim.ChaincodeStubInterface, args []string) sc.Response {\n\tprov, _ := APIstub.GetState(args[0])\n\treturn shim.Success(prov)\n}", "func (a *AdminPolicyStatus1) GetPropertiesSignal() (chan *dbus.Signal, error) {\n\n\tif a.propertiesSignal == nil {\n\t\ts, err := a.client.Register(a.client.Config.Path, bluez.PropertiesInterface)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\ta.propertiesSignal = s\n\t}\n\n\treturn a.propertiesSignal, nil\n}", "func (o *WriteOptions) GetSync() bool {\n\treturn o == nil || o.Sync\n}", "func (obj *Object) Properties() *enigma.GenericObjectProperties {\n\tobj.lockData.Lock()\n\tdefer obj.lockData.Unlock()\n\tif obj.data == nil {\n\t\treturn nil\n\t}\n\treturn obj.data.properties\n}", "func (p *NoteStoreClient) GetSyncState(ctx context.Context, authenticationToken string) (r *SyncState, err error) {\n var _args49 NoteStoreGetSyncStateArgs\n _args49.AuthenticationToken = authenticationToken\n var _result50 NoteStoreGetSyncStateResult\n if err = p.Client_().Call(ctx, \"getSyncState\", &_args49, &_result50); err != nil {\n return\n }\n switch {\n case _result50.UserException!= nil:\n return r, _result50.UserException\n case _result50.SystemException!= nil:\n return r, _result50.SystemException\n }\n\n return _result50.GetSuccess(), nil\n}", "func (client StorageGatewayClient) getCloudSync(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {\n\thttpRequest, err := request.HTTPRequest(http.MethodGet, \"/storageGateways/{storageGatewayId}/cloudSyncs/{cloudSyncName}\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar response GetCloudSyncResponse\n\tvar httpResponse *http.Response\n\thttpResponse, err = client.Call(ctx, &httpRequest)\n\tdefer common.CloseBodyIfValid(httpResponse)\n\tresponse.RawResponse = httpResponse\n\tif err != nil {\n\t\treturn response, err\n\t}\n\n\terr = common.UnmarshalResponse(httpResponse, &response)\n\treturn response, err\n}", "func (o UserDefinedResourcesPropertiesOutput) Query() pulumi.StringOutput {\n\treturn o.ApplyT(func(v UserDefinedResourcesProperties) string { return v.Query }).(pulumi.StringOutput)\n}", "func getMessageProperties(s *amqpStream, data []byte) bool {\n\tm := s.message\n\n\t//properties are coded in the two first bytes\n\tprop1 := data[0]\n\tprop2 := data[1]\n\tvar offset uint32 = 2\n\n\t//while last bit set, we have another property flag field\n\tfor lastbit := 1; data[lastbit]&1 == 1; {\n\t\tlastbit += 2\n\t\toffset += 2\n\t}\n\n\tif hasProperty(prop1, contentTypeProp) {\n\t\tcontentType, next, err := getShortString(data, offset+1, uint32(data[offset]))\n\t\tif err {\n\t\t\tlogp.Warn(\"Failed to get content type in header frame\")\n\t\t\treturn true\n\t\t}\n\t\tm.fields[\"content-type\"] = contentType\n\t\toffset = next\n\t}\n\n\tif hasProperty(prop1, contentEncodingProp) {\n\t\tcontentEncoding, next, err := getShortString(data, offset+1, uint32(data[offset]))\n\t\tif err {\n\t\t\tlogp.Warn(\"Failed to get content encoding in header frame\")\n\t\t\treturn true\n\t\t}\n\t\tm.fields[\"content-encoding\"] = contentEncoding\n\t\toffset = next\n\t}\n\n\tif hasProperty(prop1, headersProp) {\n\t\theaders := common.MapStr{}\n\t\tnext, err, exists := getTable(headers, data, offset)\n\t\tif !err && exists {\n\t\t\tm.fields[\"headers\"] = headers\n\t\t} else if err {\n\t\t\tlogp.Warn(\"Failed to get headers\")\n\t\t\treturn true\n\t\t}\n\t\toffset = next\n\t}\n\n\tif hasProperty(prop1, deliveryModeProp) {\n\t\tif data[offset] == 1 {\n\t\t\tm.fields[\"delivery-mode\"] = \"non-persistent\"\n\t\t} else if data[offset] == 2 {\n\t\t\tm.fields[\"delivery-mode\"] = \"persistent\"\n\t\t}\n\t\toffset++\n\t}\n\n\tif hasProperty(prop1, priorityProp) {\n\t\tm.fields[\"priority\"] = data[offset]\n\t\toffset++\n\t}\n\n\tif hasProperty(prop1, correlationIDProp) {\n\t\tcorrelationID, next, err := getShortString(data, offset+1, uint32(data[offset]))\n\t\tif err {\n\t\t\tlogp.Warn(\"Failed to get correlation-id in header frame\")\n\t\t\treturn true\n\t\t}\n\t\tm.fields[\"correlation-id\"] = correlationID\n\t\toffset = next\n\t}\n\n\tif hasProperty(prop1, replyToProp) {\n\t\treplyTo, next, err := getShortString(data, offset+1, uint32(data[offset]))\n\t\tif err {\n\t\t\tlogp.Warn(\"Failed to get reply-to in header frame\")\n\t\t\treturn true\n\t\t}\n\t\tm.fields[\"reply-to\"] = replyTo\n\t\toffset = next\n\t}\n\n\tif hasProperty(prop1, expirationProp) {\n\t\texpiration, next, err := getShortString(data, offset+1, uint32(data[offset]))\n\t\tif err {\n\t\t\tlogp.Warn(\"Failed to get expiration in header frame\")\n\t\t\treturn true\n\t\t}\n\t\tm.fields[\"expiration\"] = expiration\n\t\toffset = next\n\t}\n\n\tif hasProperty(prop2, messageIDProp) {\n\t\tmessageID, next, err := getShortString(data, offset+1, uint32(data[offset]))\n\t\tif err {\n\t\t\tlogp.Warn(\"Failed to get message id in header frame\")\n\t\t\treturn true\n\t\t}\n\t\tm.fields[\"message-id\"] = messageID\n\t\toffset = next\n\t}\n\n\tif hasProperty(prop2, timestampProp) {\n\t\tt := time.Unix(int64(binary.BigEndian.Uint64(data[offset:offset+8])), 0)\n\t\tm.fields[\"timestamp\"] = t.Format(amqpTimeLayout)\n\t\toffset += 8\n\t}\n\n\tif hasProperty(prop2, typeProp) {\n\t\tmsgType, next, err := getShortString(data, offset+1, uint32(data[offset]))\n\t\tif err {\n\t\t\tlogp.Warn(\"Failed to get message type in header frame\")\n\t\t\treturn true\n\t\t}\n\t\tm.fields[\"type\"] = msgType\n\t\toffset = next\n\t}\n\n\tif hasProperty(prop2, userIDProp) {\n\t\tuserID, next, err := getShortString(data, offset+1, uint32(data[offset]))\n\t\tif err {\n\t\t\tlogp.Warn(\"Failed to get user id in header frame\")\n\t\t\treturn true\n\t\t}\n\t\tm.fields[\"user-id\"] = userID\n\t\toffset = next\n\t}\n\n\tif hasProperty(prop2, appIDProp) {\n\t\tappID, _, err := getShortString(data, offset+1, uint32(data[offset]))\n\t\tif err {\n\t\t\tlogp.Warn(\"Failed to get app-id in header frame\")\n\t\t\treturn true\n\t\t}\n\t\tm.fields[\"app-id\"] = appID\n\t}\n\treturn false\n}", "func (d *Device) Prop(values ...interface{}) ([]interface{}, error) {\n\tr, err := d.executeCommand(\"get_prop\", values...)\n\n\tif nil != err {\n\t\treturn nil, err\n\t}\n\n\treturn r.Result, nil\n}", "func (obj *GenericDimension) GetProperties(ctx context.Context) (*GenericDimensionProperties, error) {\n\tresult := &struct {\n\t\tProp *GenericDimensionProperties `json:\"qProp\"`\n\t}{}\n\terr := obj.RPC(ctx, \"GetProperties\", result)\n\treturn result.Prop, err\n}", "func Properties(hss *object.HostVsanSystem, apiTimeout time.Duration) (*mo.HostVsanSystem, error) {\n\tctx, cancel := context.WithTimeout(context.Background(), apiTimeout)\n\tdefer cancel()\n\tvar hvsProps mo.HostVsanSystem\n\terr := hss.Properties(ctx, hss.Reference(), nil, &hvsProps)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &hvsProps, err\n}", "func GetAppSyncObj() *Sync{\n appSync.InitSyncParams()\n return appSync\n}", "func (q peerPropertyQuery) All(ctx context.Context, exec boil.ContextExecutor) (PeerPropertySlice, error) {\n\tvar o []*PeerProperty\n\n\terr := q.Bind(ctx, exec, &o)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"models: failed to assign all query results to PeerProperty slice\")\n\t}\n\n\tif len(peerPropertyAfterSelectHooks) != 0 {\n\t\tfor _, obj := range o {\n\t\t\tif err := obj.doAfterSelectHooks(ctx, exec); err != nil {\n\t\t\t\treturn o, err\n\t\t\t}\n\t\t}\n\t}\n\n\treturn o, nil\n}", "func (p *NoteStoreClient) GetSyncState(ctx context.Context, authenticationToken string) (r *SyncState, userException *Errors.EDAMUserException, systemException *Errors.EDAMSystemException, err error) {\n\tif err = p.sendGetSyncState(ctx, authenticationToken); err != nil {\n\t\treturn\n\t}\n\treturn p.recvGetSyncState(ctx)\n}", "func listq(client *storage.Client, bucketName string, prefix string, delimiter string, versions bool, selfIgnore bool) ([]*storage.ObjectAttrs, error){\n ctx := context.Background()\n var objects []*storage.ObjectAttrs\n it := client.Bucket(bucketName).Objects(ctx, &storage.Query{\n Prefix: prefix,\n Delimiter: delimiter,\n Versions: versions,\n })\n for {\n oattrs, err := it.Next()\n if err == iterator.Done {\n break\n }\n if err != nil {\n return nil, err\n }\n if selfIgnore == true && oattrs.Prefix == prefix && oattrs.Prefix != \"\" {\n continue\n }\n objects = append(objects, oattrs)\n }\n return objects, nil\n}", "func (c *ContainerClient) GetProperties(ctx context.Context, o *ContainerGetPropertiesOptions) (ContainerGetPropertiesResponse, error) {\n\t// NOTE: GetMetadata actually calls GetProperties internally because GetProperties returns the metadata AND the properties.\n\t// This allows us to not expose a GetProperties method at all simplifying the API.\n\t// The optionals are nil, like they were in track 1.5\n\toptions, leaseAccess := o.format()\n\tresp, err := c.client.GetProperties(ctx, options, leaseAccess)\n\n\treturn toContainerGetPropertiesResponse(resp), handleError(err)\n}", "func (client StorageGatewayClient) listCloudSyncs(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {\n\thttpRequest, err := request.HTTPRequest(http.MethodGet, \"/storageGateways/{storageGatewayId}/cloudSyncs\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar response ListCloudSyncsResponse\n\tvar httpResponse *http.Response\n\thttpResponse, err = client.Call(ctx, &httpRequest)\n\tdefer common.CloseBodyIfValid(httpResponse)\n\tresponse.RawResponse = httpResponse\n\tif err != nil {\n\t\treturn response, err\n\t}\n\n\terr = common.UnmarshalResponse(httpResponse, &response)\n\treturn response, err\n}", "func (obj *Field) GetNxPropertiesRaw(ctx context.Context) (json.RawMessage, error) {\n\tresult := &struct {\n\t\tProperties json.RawMessage `json:\"qProperties\"`\n\t}{}\n\terr := obj.RPC(ctx, \"GetNxProperties\", result)\n\treturn result.Properties, err\n}", "func (v *View) ShowProperties() bool {\n\treturn v.properties\n}", "func (d *mongoDriver) getInProgQuery(q bson.M) bson.M {\n\tq[\"status.completed\"] = false\n\tq[\"status.in_prog\"] = true\n\treturn q\n}", "func (tr *Transport) RetrieveTwinProperties(ctx context.Context) (payload []byte, err error) {\n\treturn nil, ErrNotImplemented\n}", "func synchronize(kvsync kvs.Sync) {\n\tc := context.Background()\n\n\t// This is the object to be synchronized\n\tdb := Data{}\n\n\t// Creating a sync object from the provided lower-level kv sync.\n\ts := sync.Sync{\n\t\tSync: kvsync,\n\t}\n\n\t// Registering callback for given object with given format\n\ts.SyncObject(sync.SyncObject{\n\t\tCallback: SyncCallback,\n\t\tObject: &db,\n\t\tFormat: \"/db/stored/here/\",\n\t})\n\n\t// Time wheel to trigger callback notification for successive events\n\tfor {\n\t\te := s.Next(c)\n\t\tif e != nil {\n\t\t\tpanic(e)\n\t\t}\n\t\tif stopTimeWheel {\n\t\t\tbreak\n\t\t}\n\t}\n\n\tfmt.Printf(\"Final DB state %v\\n\\n\", &db)\n}", "func (o UserDefinedResourcesPropertiesResponseOutput) Query() pulumi.StringOutput {\n\treturn o.ApplyT(func(v UserDefinedResourcesPropertiesResponse) string { return v.Query }).(pulumi.StringOutput)\n}", "func (i *Instance) GetAllProperties() (map[string]interface{}, error) {\n\tvar err error\n\tproperties := make(map[string]interface{})\n\n\tif err = i.BeginEnumeration(); err != nil {\n\t\treturn nil, err\n\t}\n\n\tdefer i.EndEnumeration()\n\n\tfor {\n\t\tvar name string\n\t\tvar value interface{}\n\t\tvar done bool\n\n\t\tif done, name, value, _, _, err = i.Next(); err != nil || done {\n\t\t\treturn properties, err\n\t\t}\n\n\t\tproperties[name] = value\n\t}\n}", "func (o *MDRaid) GetSyncRemainingTime(ctx context.Context) (syncRemainingTime uint64, err error) {\n\terr = o.object.CallWithContext(ctx, \"org.freedesktop.DBus.Properties.Get\", 0, InterfaceMDRaid, \"SyncRemainingTime\").Store(&syncRemainingTime)\n\treturn\n}", "func (c *INDIClient) GetProperties(deviceName, propName string) error {\n\tif len(propName) > 0 && len(deviceName) == 0 {\n\t\treturn ErrPropertyWithoutDevice\n\t}\n\n\tcmd := GetProperties{\n\t\tVersion: \"1.7\",\n\t\tDevice: deviceName,\n\t\tName: propName,\n\t}\n\n\tc.write <- cmd\n\n\treturn nil\n}", "func (m *CloudCommunications) GetPresences()([]Presenceable) {\n val, err := m.GetBackingStore().Get(\"presences\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.([]Presenceable)\n }\n return nil\n}", "func (almanac *Almanac) GetProperties() (properties []Property) {\n\tfor _, v := range almanac.Result.Data {\n\t\tproperties = append(properties, v.Attachments.Properties.Properties...)\n\t}\n\treturn properties\n}", "func (o *MDRaid) GetSyncRate(ctx context.Context) (syncRate uint64, err error) {\n\terr = o.object.CallWithContext(ctx, \"org.freedesktop.DBus.Properties.Get\", 0, InterfaceMDRaid, \"SyncRate\").Store(&syncRate)\n\treturn\n}", "func (qs ConstraintQuerySet) PropertyEq(property string) ConstraintQuerySet {\n\treturn qs.w(qs.db.Where(\"property = ?\", property))\n}", "func (obj *GenericVariable) GetProperties(ctx context.Context) (*GenericVariableProperties, error) {\n\tresult := &struct {\n\t\tProp *GenericVariableProperties `json:\"qProp\"`\n\t}{}\n\terr := obj.RPC(ctx, \"GetProperties\", result)\n\treturn result.Prop, err\n}", "func (o UserDefinedResourcesPropertiesPtrOutput) Query() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *UserDefinedResourcesProperties) *string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn &v.Query\n\t}).(pulumi.StringPtrOutput)\n}", "func (obj *GenericObject) GetEffectiveProperties(ctx context.Context) (*GenericObjectProperties, error) {\n\tresult := &struct {\n\t\tProp *GenericObjectProperties `json:\"qProp\"`\n\t}{}\n\terr := obj.RPC(ctx, \"GetEffectiveProperties\", result)\n\treturn result.Prop, err\n}", "func isSyncResource(obj client.Object) bool {\n\tif v, ok := obj.GetAnnotations()[syncAnnotation]; ok {\n\t\tb, err := strconv.ParseBool(v)\n\t\tif b && err == nil {\n\t\t\treturn true\n\t\t}\n\t\tif err != nil {\n\t\t\tlog.Error(\"value format of annotation %v failed: %v, got value: %v%\", syncAnnotation, err, v)\n\t\t}\n\t}\n\n\treturn false\n}", "func (c *vertexCollection) Properties(ctx context.Context) (CollectionProperties, error) {\n\tresult, err := c.rawCollection().Properties(ctx)\n\tif err != nil {\n\t\treturn CollectionProperties{}, WithStack(err)\n\t}\n\treturn result, nil\n}", "func (st *ServiceType) QueryPropertyTypes() *PropertyTypeQuery {\n\treturn (&ServiceTypeClient{st.config}).QueryPropertyTypes(st)\n}", "func PrintSync() {\n\tklog.Infof(\"** stats collected **\")\n\tif GlobalStats != nil {\n\t\tPrint(PodList)\n\t\tPrint(IDList)\n\t\tPrint(BindingList)\n\t\tPrint(AssignedIDList)\n\t\tPrint(System)\n\t\tPrint(CacheSync)\n\n\t\tPrint(CloudGet)\n\t\tPrint(CloudUpdate)\n\t\tPrint(AssignedIDAdd)\n\t\tPrint(AssignedIDDel)\n\n\t\tPrintCount(TotalUpdateCalls)\n\t\tPrintCount(TotalGetCalls)\n\n\t\tPrintCount(TotalAssignedIDsCreated)\n\t\tPrintCount(TotalAssignedIDsUpdated)\n\t\tPrintCount(TotalAssignedIDsDeleted)\n\n\t\tPrint(FindAssignedIDCreate)\n\t\tPrint(FindAssignedIDDel)\n\n\t\tPrint(TotalCreateOrUpdate)\n\n\t\tPrint(Total)\n\t}\n\tklog.Infof(\"*********************\")\n}", "func (r *volumeReactor) syncAll() {\n\tr.lock.Lock()\n\tdefer r.lock.Unlock()\n\n\tfor _, c := range r.claims {\n\t\tr.changedObjects = append(r.changedObjects, c)\n\t}\n\tfor _, v := range r.volumes {\n\t\tr.changedObjects = append(r.changedObjects, v)\n\t}\n\tr.changedSinceLastSync = 0\n}", "func (s *Session) PollSync() string {\n\ts.Poll()\n\tline, _ := s.readLine()\n\treturn line\n}", "func (o UserDefinedResourcesPropertiesResponsePtrOutput) Query() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *UserDefinedResourcesPropertiesResponse) *string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn &v.Query\n\t}).(pulumi.StringPtrOutput)\n}", "func (d *mongoDriver) getPendingQuery(q bson.M) bson.M {\n\tq[\"status.completed\"] = false\n\tq[\"status.in_prog\"] = false\n\treturn q\n}", "func (*MockRestAPI) QueryChanges(c context.Context, host, project string, ts time.Time) ([]gr.ChangeInfo, bool, error) {\n\treturn []gr.ChangeInfo{}, false, nil\n}", "func (t *Type) Properties() map[string]Field {\n\treturn t.properties\n}", "func GetSyncValuesOML(hdc unsafe.Pointer, ust unsafe.Pointer, msc unsafe.Pointer, sbc unsafe.Pointer) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall6(gpGetSyncValuesOML, 4, uintptr(hdc), uintptr(ust), uintptr(msc), uintptr(sbc), 0, 0)\n\treturn (unsafe.Pointer)(ret)\n}", "func (o *Object) readMetaData(ctx context.Context) (err error) {\n\tif !o.modTime.IsZero() {\n\t\treturn nil\n\t}\n\t// Last resort\n\treturn o.readEntryAndSetMetadata(ctx)\n}", "func (o *Subscription) GetProperties() map[string]interface{} {\n\treturn o.additionalProperties\n}", "func (*SyncFlags) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_sql_v1_cloud_sql_resources_proto_rawDescGZIP(), []int{9}\n}", "func (d *mongoDriver) getCompletedQuery(q bson.M) bson.M {\n\tq[\"status.completed\"] = true\n\treturn q\n}", "func (gppr GetPathPropertiesResponse) XMsProperties() string {\n\treturn gppr.rawResponse.Header.Get(\"x-ms-properties\")\n}", "func GetProperties(contract *Contract, group *Group) (*Properties, error) {\n\tproperties := NewProperties()\n\tif err := properties.GetProperties(contract, group, \"\"); err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn properties, nil\n}", "func (pDB *PropertyDB) Get(UUID string) (*Property, bool, error) {\n\tp, ok := pDB.Properties[UUID]\n\tif ok {\n\t\treturn p, true, nil\n\t}\n\n\tp = &Property{}\n\terr := pDB.MySQL.Get(p, \"SELECT * FROM properties WHERE uuid = ?\", UUID)\n\tif err != nil {\n\t\tif err == sql.ErrNoRows {\n\t\t\treturn nil, false, nil\n\t\t}\n\t\treturn nil, false, errors.Wrap(err, \"unable to get property from MySQL\")\n\t}\n\treturn p, true, nil\n}", "func (o *Service) Query() (map[string]interface{}, error) {\n\tquery := \"SELECT * FROM Subscriptions WHERE 1=1\"\n\tif o.Name != \"\" {\n\t\tquery += \" AND WindowsServiceName='\" + o.Name + \"'\"\n\t}\n\n\treturn queryVaultObject(o.client, query)\n}", "func (sm *SyncManager) getSyncCandidates() []*peer.Peer {\n\tcandidates := make([]*peer.Peer, 0, len(sm.peerStates))\n\tfor peer, state := range sm.peerStates {\n\t\tcandidate := *peer\n\t\tif state.syncCandidate {\n\t\t\tcandidates = append(candidates, &candidate)\n\t\t}\n\t}\n\treturn candidates\n}", "func (self *Tween) Properties() interface{}{\n return self.Object.Get(\"properties\")\n}", "func (a *AdminPolicyStatus1) GetProperties() (*AdminPolicyStatus1Properties, error) {\n\ta.Properties.Lock()\n\terr := a.client.GetProperties(a.Properties)\n\ta.Properties.Unlock()\n\treturn a.Properties, err\n}", "func (p *Oracle) ObjectQuery() string {\n\treturn `SELECT * FROM %s WHERE 1=0`\n}", "func (obj *Doc) GetAppPropertiesRaw(ctx context.Context) (json.RawMessage, error) {\n\tresult := &struct {\n\t\tProp json.RawMessage `json:\"qProp\"`\n\t}{}\n\terr := obj.RPC(ctx, \"GetAppProperties\", result)\n\treturn result.Prop, err\n}" ]
[ "0.5661496", "0.54471743", "0.54366076", "0.5387112", "0.53325474", "0.53034806", "0.5265076", "0.5244348", "0.5201339", "0.5199312", "0.51650417", "0.5152612", "0.51299745", "0.5112904", "0.51069397", "0.5097796", "0.50891083", "0.5075836", "0.5053903", "0.5042877", "0.5042872", "0.50371015", "0.49895954", "0.49876854", "0.49857062", "0.4932997", "0.49081665", "0.4906123", "0.4889125", "0.4877544", "0.48767474", "0.48622915", "0.48495504", "0.4839211", "0.48280048", "0.48170465", "0.48052096", "0.47866732", "0.47821724", "0.47741598", "0.4766324", "0.47558516", "0.4738024", "0.473046", "0.4716072", "0.47121716", "0.47021875", "0.4696034", "0.4683843", "0.4683796", "0.46823362", "0.4678651", "0.4664853", "0.46609062", "0.46511775", "0.46510208", "0.46320623", "0.46304145", "0.46251336", "0.4617854", "0.46149775", "0.46115336", "0.46074906", "0.4604219", "0.46036562", "0.4601167", "0.45991942", "0.4591921", "0.4591692", "0.45915902", "0.45912066", "0.45886618", "0.4578226", "0.45691052", "0.4567145", "0.45659307", "0.45618242", "0.45604426", "0.45490274", "0.4541576", "0.45401567", "0.45358348", "0.45335633", "0.4530954", "0.4530775", "0.45183355", "0.45108506", "0.45028394", "0.4501868", "0.4499543", "0.44977918", "0.44955117", "0.44921464", "0.44898233", "0.44841975", "0.44816184", "0.4476105", "0.44741163", "0.44673958", "0.4459855", "0.4458112" ]
0.0
-1
return a texture image
func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) { C.glowGetTexImage(gpGetTexImage, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), pixels) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (f *Font) GetTexture() *Texture { return f.texture }", "func (t *Three) Texture() *Texture {\n\tp := t.ctx.Get(\"Texture\")\n\treturn TextureFromJSObject(p)\n}", "func GetTextureImage(texture uint32, level int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetTextureImage, 6, uintptr(texture), uintptr(level), uintptr(format), uintptr(xtype), uintptr(bufSize), uintptr(pixels))\n}", "func GetTextureImage(texture uint32, level int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureImage(gpGetTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func GetTextureImage(texture uint32, level int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureImage(gpGetTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func (c *Canvas) Texture() *glhf.Texture {\n\treturn c.gf.Texture()\n}", "func (gstr *GlyphString) GetTexture() *Texture { return gstr.font.GetTexture() }", "func (fnt *Font) Texture() *Texture {\n\treturn fnt.texture\n}", "func (self *Graphics) GenerateTexture() *Texture{\n return &Texture{self.Object.Call(\"generateTexture\")}\n}", "func (self *TileSprite) Texture() *Texture{\n return &Texture{self.Object.Get(\"texture\")}\n}", "func (md MetalDrawable) Texture() mtl.Texture {\n\treturn mtl.NewTexture(C.MetalDrawable_Texture(md.metalDrawable))\n}", "func NewTexture(scene *Scene, element *Element) *Texture {\n\tt := &Texture{\n\t\tObject: *NewObject(scene, element),\n\t}\n\treturn t\n}", "func Make(width, height int, internalformat int32, format, pixelType uint32,\n\tdata unsafe.Pointer, min, mag, s, t int32) Texture {\n\n\ttexture := Texture{0, gl.TEXTURE_2D, 0}\n\n\t// generate and bind texture\n\tgl.GenTextures(1, &texture.handle)\n\ttexture.Bind(0)\n\n\t// set texture properties\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, min)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, mag)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, s)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, t)\n\n\t// specify a texture image\n\tgl.TexImage2D(gl.TEXTURE_2D, 0, internalformat, int32(width), int32(height),\n\t\t0, format, pixelType, data)\n\n\t// unbind texture\n\ttexture.Unbind()\n\n\treturn texture\n}", "func (bm Blendmap) Texture() *gl.Texture {\n\treturn bm.Map.id\n}", "func (self *GameObjectCreator) RenderTexture() *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\")}\n}", "func (self *Graphics) GenerateTexture2O(resolution int, scaleMode int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution, scaleMode)}\n}", "func (this *RectangleShape) GetTexture() *Texture {\n\treturn this.texture\n}", "func (self *TileSprite) TilingTexture() *PIXITexture{\n return &PIXITexture{self.Object.Get(\"tilingTexture\")}\n}", "func CreateTexture() Texture {\n\tvar t Texture\n\tgl.GenTextures(1, &t.Value)\n\treturn t\n}", "func (w *Worley) GenerateTexture(tex *texture.Texture) {\n\tgl.BindImageTexture(0, tex.GetHandle(), 0, false, 0, gl.READ_WRITE, gl.RGBA32F)\n\tgl.BindImageTexture(1, w.noisetexture.GetHandle(), 0, false, 0, gl.READ_ONLY, gl.RGBA32F)\n\n\tw.computeshader.Use()\n\tw.computeshader.UpdateInt32(\"uWidth\", w.width)\n\tw.computeshader.UpdateInt32(\"uHeight\", w.height)\n\tw.computeshader.UpdateInt32(\"uResolution\", w.resolution)\n\tw.computeshader.UpdateInt32(\"uOctaves\", w.octaves)\n\tw.computeshader.UpdateFloat32(\"uRadius\", w.radius)\n\tw.computeshader.UpdateFloat32(\"uRadiusScale\", w.radiusscale)\n\tw.computeshader.UpdateFloat32(\"uBrightness\", w.brightness)\n\tw.computeshader.UpdateFloat32(\"uContrast\", w.contrast)\n\tw.computeshader.UpdateFloat32(\"uScale\", w.scale)\n\tw.computeshader.UpdateFloat32(\"uPersistance\", w.persistance)\n\tw.computeshader.Compute(uint32(w.width), uint32(w.height), 1)\n\tw.computeshader.Compute(1024, 1024, 1)\n\tw.computeshader.Release()\n\n\tgl.MemoryBarrier(gl.ALL_BARRIER_BITS)\n\n\tgl.BindImageTexture(0, 0, 0, false, 0, gl.WRITE_ONLY, gl.RGBA32F)\n\tgl.BindImageTexture(1, 0, 0, false, 0, gl.READ_ONLY, gl.RGBA32F)\n}", "func (cache *FrameCache) Texture(key FrameCacheKey) *BitmapTexture {\n\treturn cache.textures[key]\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureSubImage(gpGetTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureSubImage(gpGetTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func (obj *Device) GetTexture(stage uint32) (*BaseTexture, Error) {\n\tvar tex *BaseTexture\n\tret, _, _ := syscall.Syscall(\n\t\tobj.vtbl.GetTexture,\n\t\t3,\n\t\tuintptr(unsafe.Pointer(obj)),\n\t\tuintptr(stage),\n\t\tuintptr(unsafe.Pointer(&tex)),\n\t)\n\treturn tex, toErr(ret)\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpGetTextureSubImage, 12, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(xtype), uintptr(bufSize), uintptr(pixels))\n}", "func (spriteBatch *SpriteBatch) GetTexture() ITexture {\n\treturn spriteBatch.texture\n}", "func Load(path string) (*Image, error) {\n\t// Load the texture from file.\n\tt := C.sfTexture_createFromFile(C.CString(path), nil)\n\tif t == nil {\n\t\treturn nil, fmt.Errorf(\"texture.Load: unable to load %q\", path)\n\t}\n\ttex := &Image{\n\t\ttex: t,\n\t}\n\t// Create a sprite for the texture.\n\tsprite := C.sfSprite_create()\n\tif sprite == nil {\n\t\treturn nil, errors.New(\"texture.Load: unable to create sprite\")\n\t}\n\ttex.sprite = sprite\n\tC.sfSprite_setTexture(tex.sprite, tex.tex, C.sfTrue)\n\treturn tex, nil\n}", "func (self *Graphics) GenerateTexture1O(resolution int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution)}\n}", "func (self *Graphics) GenerateTexture3O(resolution int, scaleMode int, padding int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution, scaleMode, padding)}\n}", "func (self *GameObjectCreator) RenderTexture2O(width int, height int) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height)}\n}", "func Read(src image.Image) (*Image, error) {\n\t// Use fallback conversion for unknown image formats.\n\trgba, ok := src.(*image.RGBA)\n\tif !ok {\n\t\treturn Read(fallback(src))\n\t}\n\t// Use fallback conversion for subimages.\n\twidth, height := rgba.Rect.Dx(), rgba.Rect.Dy()\n\tif rgba.Stride != 4*width {\n\t\treturn Read(fallback(src))\n\t}\n\t// Create a read-only texture based on the pixels of the src image.\n\tt := C.sfTexture_create(C.uint(width), C.uint(height))\n\tif t == nil {\n\t\treturn nil, fmt.Errorf(\"texture.Read: unable to create %dx%d texture\", width, height)\n\t}\n\ttex := &Image{\n\t\ttex: t,\n\t}\n\tpix := (*C.sfUint8)(unsafe.Pointer(&rgba.Pix[0]))\n\tC.sfTexture_updateFromPixels(tex.tex, pix, C.uint(width), C.uint(height), 0, 0)\n\t// Create a sprite for the texture.\n\tsprite := C.sfSprite_create()\n\tif sprite == nil {\n\t\treturn nil, errors.New(\"texture.Read: unable to create sprite\")\n\t}\n\ttex.sprite = sprite\n\tC.sfSprite_setTexture(tex.sprite, tex.tex, C.sfTrue)\n\treturn tex, nil\n}", "func NewTexture(loader TextureLoader) *Texture {\n\treturn &Texture{loader: loader}\n}", "func (am *Manager) GetTexture(name string) (*Texture, bool) {\n\tif tex, ok := am.Textures[name]; ok {\n\t\treturn tex, ok\n\t}\n\n\tif am.Parent != nil {\n\t\treturn am.Parent.GetTexture(name)\n\t}\n\n\treturn nil, false\n}", "func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowGetTexImage(gpGetTexImage, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func LoadImageAsTexture(name string, path string) error {\n\tif Textures == nil {\n\t\tlog.Print(\"Initialize resource manager\")\n\t\tTextures = make(map[string]*ebiten.Image)\n\t}\n\timg, err := LoadImage(path)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tTextures[name] = img\n\treturn nil\n}", "func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetTexImage, 5, uintptr(target), uintptr(level), uintptr(format), uintptr(xtype), uintptr(pixels), 0)\n}", "func (t *Three) NewTexture(image *js.Object, opts *TextureOpts) *Texture {\n\tp := t.ctx.Get(\"Texture\")\n\tif opts != nil {\n\t\tp = p.New(image, opts.mapping, opts.wrapS, opts.wrapT, opts.magFilter, opts.minFilter, opts.format, opts.typ, opts.anisotropy)\n\t} else {\n\t\tp = p.New(image)\n\t}\n\treturn TextureFromJSObject(p)\n}", "func (obj *Device) CreateTexture(\n\twidth uint,\n\theight uint,\n\tlevels uint,\n\tusage uint32,\n\tformat FORMAT,\n\tpool POOL,\n\tsharedHandle uintptr,\n) (*Texture, Error) {\n\tvar tex *Texture\n\tret, _, _ := syscall.Syscall9(\n\t\tobj.vtbl.CreateTexture,\n\t\t9,\n\t\tuintptr(unsafe.Pointer(obj)),\n\t\tuintptr(width),\n\t\tuintptr(height),\n\t\tuintptr(levels),\n\t\tuintptr(usage),\n\t\tuintptr(format),\n\t\tuintptr(pool),\n\t\tuintptr(unsafe.Pointer(&tex)),\n\t\tsharedHandle,\n\t)\n\treturn tex, toErr(ret)\n}", "func (self *Graphics) GenerateTextureI(args ...interface{}) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", args)}\n}", "func (gl *WebGL) CreateTexture() WebGLTexture {\n\treturn gl.context.Call(\"createTexture\")\n}", "func CreateTexture() Texture {\n\tvar texture uint32\n\tgl.GenTextures(1, &texture)\n\treturn Texture(texture)\n}", "func BindImageTexture(unit uint32, texture uint32, level int32, layered bool, layer int32, access uint32, format uint32) {\n C.glowBindImageTexture(gpBindImageTexture, (C.GLuint)(unit), (C.GLuint)(texture), (C.GLint)(level), (C.GLboolean)(boolToInt(layered)), (C.GLint)(layer), (C.GLenum)(access), (C.GLenum)(format))\n}", "func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureImage(gpGetCompressedTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLsizei)(bufSize), pixels)\n}", "func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureImage(gpGetCompressedTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLsizei)(bufSize), pixels)\n}", "func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetCompressedTextureImage, 4, uintptr(texture), uintptr(level), uintptr(bufSize), uintptr(pixels), 0, 0)\n}", "func (self *GameObjectCreator) RenderTexture4O(width int, height int, key string, addToCache bool) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height, key, addToCache)}\n}", "func (self *GameObjectCreator) RenderTexture1O(width int) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width)}\n}", "func TextureFromFile(file string, params TextureParameters) (*Texture, error) {\n\timg, err := imageFromFile(file)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn TextureFromImage(img, params)\n}", "func (self *TileSprite) TintedTexture() *Canvas{\n return &Canvas{self.Object.Get(\"tintedTexture\")}\n}", "func TexImage2D(target Enum, level int, width, height int, format Enum, ty Enum, data []byte) {\n\tp := unsafe.Pointer(nil)\n\tif len(data) > 0 {\n\t\tp = gl.Ptr(&data[0])\n\t}\n\tgl.TexImage2D(uint32(target), int32(level), int32(format), int32(width), int32(height), 0, uint32(format), uint32(ty), p)\n}", "func (self *GameObjectCreator) RenderTexture3O(width int, height int, key string) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height, key)}\n}", "func (tx *TextureBase) NewTex() gpu.Texture2D {\n\tif tx.Tex != nil {\n\t\treturn tx.Tex\n\t}\n\ttx.Tex = gpu.TheGPU.NewTexture2D(tx.Nm)\n\ttx.Tex.SetBotZero(tx.Bot0)\n\treturn tx.Tex\n}", "func (am *Manager) LoadTexture(name string) (*Texture, error) {\n\tif tex, ok := am.GetTexture(name); ok {\n\t\treturn tex, nil\n\t}\n\n\tvar (\n\t\terr error\n\t\tf *os.File\n\t)\n\n\tif f, err = os.Open(\"assets/textures/\" + name); err != nil {\n\t\treturn nil, err\n\t}\n\tdefer f.Close()\n\n\tvar img image.Image\n\n\tif img, _, err = image.Decode(f); err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar tex *Texture\n\n\tif tex, err = NewTextureFromImage(name, img); err != nil {\n\t\treturn nil, err\n\t}\n\n\tam.AddTexture(tex)\n\n\treturn tex, nil\n}", "func (g *GLTF) LoadTexture(texIdx int) (*texture.Texture2D, error) {\n\n\t// Check if provided texture index is valid\n\tif texIdx < 0 || texIdx >= len(g.Textures) {\n\t\treturn nil, fmt.Errorf(\"invalid texture index\")\n\t}\n\ttexData := g.Textures[texIdx]\n\t// NOTE: Textures can't be cached because they have their own uniforms\n\tlog.Debug(\"Loading Texture %d\", texIdx)\n\n\t// Load texture image\n\timg, err := g.LoadImage(texData.Source)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\ttex := texture.NewTexture2DFromRGBA(img)\n\n\t// Get sampler and apply texture parameters\n\tif texData.Sampler != nil {\n\t\terr = g.applySampler(*texData.Sampler, tex)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\n\treturn tex, nil\n}", "func ActiveTexture(texture uint32) {\n C.glowActiveTexture(gpActiveTexture, (C.GLenum)(texture))\n}", "func TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexImage2D(gpTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func LoadTextureFileHandle(n *scene.Node, file io.ReadCloser) texture.Type {\n\t// Create texture object using no texture\n\ttex2 := texture.New()\n\n\t// Spawn goroutine to do texture loading\n\tgo func() {\n\t\tdefer file.Close()\n\n\t\t// Decode image\n\t\tsrcImage, _, err := image.Decode(file)\n\t\tif err != nil {\n\t\t\tlog.Printf(\"Load():\", err)\n\t\t}\n\n\t\t// Check to see if we need to resize image because it is too large.\n\t\tmaxSize := int(renderer.MaxTextureSize(n))\n\t\tsz := srcImage.Bounds().Size()\n\t\tif sz.X > maxSize || sz.Y > maxSize {\n\t\t\t// Cannot upload texture larger than max texture size, we must resize\n\t\t\t// it first.\n\t\t\tnewWidth := sz.X\n\t\t\tif newWidth > maxSize {\n\t\t\t\tnewWidth = maxSize\n\t\t\t}\n\t\t\tnewHeight := sz.Y\n\t\t\tif newHeight > maxSize {\n\t\t\t\tnewHeight = maxSize\n\t\t\t}\n\n\t\t\tsrcImage = resize.Resample(srcImage, srcImage.Bounds(), newWidth, newHeight)\n\t\t}\n\n\t\trgbaImage, ok := srcImage.(*image.RGBA)\n\t\tif !ok {\n\t\t\t// Convert image to RGBA\n\t\t\tb := srcImage.Bounds()\n\t\t\trgbaImage = image.NewRGBA(image.Rect(0, 0, b.Dx(), b.Dy()))\n\t\t\tdraw.Draw(rgbaImage, rgbaImage.Bounds(), srcImage, b.Min, draw.Src)\n\t\t}\n\n\t\t// Assign image to texture\n\t\ttex2.SetImage(rgbaImage)\n\n\t\t// Tell renderer to load the texture\n\t\trenderer.LoadTexture(n, tex2)\n\t}()\n\n\treturn tex2\n}", "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n C.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func TexImage2D(target GLEnum, level int32, internalformat GLEnum, width, height, border int32, format, xtype GLEnum, pixels []float32) {\n\tgl.TexImage2D(uint32(target), level, int32(internalformat), width, height, border, uint32(format), uint32(xtype), unsafe.Pointer(&pixels[0]))\n}", "func New(width uint16, height uint16) *Texture {\n\tt := &Texture{\n\t\twidth: width,\n\t\theight: height,\n\t\tpixels: make([]rgb565.Rgb565Color, width*height),\n\t}\n\n\tfor i := range t.pixels {\n\t\tt.pixels[i] = rgb565.New(0x00, 0x00, 0x00)\n\t}\n\n\treturn t\n}", "func IsTexture(t Texture) bool {\n\treturn gl.IsTexture(t.Value)\n}", "func GetRandomTexture() (rune, rune) {\n\trandomTexture := textures[rand.Intn(len(textures))]\n\treturn randomTexture.leftRune, randomTexture.rightRune\n}", "func IsTexture(texture uint32) bool {\n ret := C.glowIsTexture(gpIsTexture, (C.GLuint)(texture))\n return ret == TRUE\n}", "func TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall9(gpTexImage2D, 9, uintptr(target), uintptr(level), uintptr(internalformat), uintptr(width), uintptr(height), uintptr(border), uintptr(format), uintptr(xtype), uintptr(pixels))\n}", "func TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexImage2D(gpTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexImage2D(gpTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureView(texture uint32, target uint32, origtexture uint32, internalformat uint32, minlevel uint32, numlevels uint32, minlayer uint32, numlayers uint32) {\n C.glowTextureView(gpTextureView, (C.GLuint)(texture), (C.GLenum)(target), (C.GLuint)(origtexture), (C.GLenum)(internalformat), (C.GLuint)(minlevel), (C.GLuint)(numlevels), (C.GLuint)(minlayer), (C.GLuint)(numlayers))\n}", "func (c *Button) loadTextureFromTTF() {\n\tvar err error\n\tc.font = engosdl.GetFontManager().CreateFont(c.GetName(), c.FontFile, c.FontSize)\n\tc.texture = c.font.GetTextureFromFont(c.Message, c.Color)\n\t_, _, c.width, c.height, err = c.texture.Query()\n\tif err != nil {\n\t\tengosdl.Logger.Error().Err(err).Msg(\"Query error\")\n\t\tpanic(err)\n\t}\n\tc.GetEntity().GetTransform().SetDim(engosdl.NewVector(float64(c.width), float64(c.height)))\n}", "func pixelsToTexture(renderer *sdl.Renderer, pixels []byte, w, h int) *sdl.Texture {\n\t// AGBR is backwards from way we will be filling in out bytes\n\ttex, err := renderer.CreateTexture(sdl.PIXELFORMAT_ABGR8888, sdl.TEXTUREACCESS_STREAMING, int32(w), int32(h))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\ttex.Update(nil, pixels, w*4) // Can't provide a rectangle, pitch = 4 bytes per pixel\n\treturn tex\n}", "func (self *GameObjectCreator) RenderTextureI(args ...interface{}) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", args)}\n}", "func (debugging *debuggingOpenGL) TexImage2D(target uint32, level int32, internalFormat uint32, width int32, height int32,\n\tborder int32, format uint32, xtype uint32, pixels interface{}) {\n\tdebugging.recordEntry(\"TexImage2D\", target, level, internalFormat, width, height, border, format, xtype, pixels)\n\tdebugging.gl.TexImage2D(target, level, internalFormat, width, height, border, format, xtype, pixels)\n\tdebugging.recordExit(\"TexImage2D\")\n}", "func (self *TileSprite) LoadTexture(key interface{}) {\n self.Object.Call(\"loadTexture\", key)\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureSubImage(gpGetCompressedTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(bufSize), pixels)\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureSubImage(gpGetCompressedTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(bufSize), pixels)\n}", "func TextureFromJSObject(p *js.Object) *Texture {\n\treturn &Texture{p: p}\n}", "func (self *TileSprite) TilePattern() *PIXITexture{\n return &PIXITexture{self.Object.Get(\"tilePattern\")}\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpGetCompressedTextureSubImage, 10, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(bufSize), uintptr(pixels), 0, 0)\n}", "func (self *TileSprite) SetTexture(texture *Texture) {\n self.Object.Call(\"setTexture\", texture)\n}", "func GetCompressedTexImage(target uint32, level int32, img unsafe.Pointer) {\n C.glowGetCompressedTexImage(gpGetCompressedTexImage, (C.GLenum)(target), (C.GLint)(level), img)\n}", "func (self *TileSprite) LoadTexture2O(key interface{}, frame interface{}, stopAnimation bool) {\n self.Object.Call(\"loadTexture\", key, frame, stopAnimation)\n}", "func (am *AssetManager) LoadTexture(name, iname string) {\n\tif strings.Contains(name, \".png\") {\n\t\tpic, err := LoadPng(am.texturesDir + name)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\tam.Textures[iname] = pic\n\t} else {\n\t\tlog.Fatal(\"unable to find texture \" + (am.modelsDir + name))\n\t}\n}", "func ClientActiveTexture(texture uint32) {\n C.glowClientActiveTexture(gpClientActiveTexture, (C.GLenum)(texture))\n}", "func (native *OpenGL) TexImage2D(target uint32, level int32, internalFormat uint32, width int32, height int32,\n\tborder int32, format uint32, xtype uint32, pixels interface{}) {\n\tptr, isPointer := pixels.(unsafe.Pointer)\n\tif isPointer {\n\t\tgl.TexImage2D(target, level, int32(internalFormat), width, height, border, format, xtype, ptr)\n\t} else {\n\t\tgl.TexImage2D(target, level, int32(internalFormat), width, height, border, format, xtype, gl.Ptr(pixels))\n\t}\n}", "func (texture Texture) IsTexture() bool {\n\treturn gl.IsTexture(uint32(texture))\n}", "func LoadTextures(eng sprite.Engine) map[string]sprite.SubTex {\n\tallTexs := make(map[string]sprite.SubTex)\n\tboundedImgs := []string{\"Clubs-2.png\", \"Clubs-3.png\", \"Clubs-4.png\", \"Clubs-5.png\", \"Clubs-6.png\", \"Clubs-7.png\", \"Clubs-8.png\",\n\t\t\"Clubs-9.png\", \"Clubs-10.png\", \"Clubs-Jack.png\", \"Clubs-Queen.png\", \"Clubs-King.png\", \"Clubs-Ace.png\",\n\t\t\"Diamonds-2.png\", \"Diamonds-3.png\", \"Diamonds-4.png\", \"Diamonds-5.png\", \"Diamonds-6.png\", \"Diamonds-7.png\", \"Diamonds-8.png\",\n\t\t\"Diamonds-9.png\", \"Diamonds-10.png\", \"Diamonds-Jack.png\", \"Diamonds-Queen.png\", \"Diamonds-King.png\", \"Diamonds-Ace.png\",\n\t\t\"Spades-2.png\", \"Spades-3.png\", \"Spades-4.png\", \"Spades-5.png\", \"Spades-6.png\", \"Spades-7.png\", \"Spades-8.png\",\n\t\t\"Spades-9.png\", \"Spades-10.png\", \"Spades-Jack.png\", \"Spades-Queen.png\", \"Spades-King.png\", \"Spades-Ace.png\",\n\t\t\"Hearts-2.png\", \"Hearts-3.png\", \"Hearts-4.png\", \"Hearts-5.png\", \"Hearts-6.png\", \"Hearts-7.png\", \"Hearts-8.png\",\n\t\t\"Hearts-9.png\", \"Hearts-10.png\", \"Hearts-Jack.png\", \"Hearts-Queen.png\", \"Hearts-King.png\", \"Hearts-Ace.png\", \"BakuSquare.png\",\n\t}\n\tunboundedImgs := []string{\"Club.png\", \"Diamond.png\", \"Spade.png\", \"Heart.png\", \"gray.jpeg\", \"blue.png\", \"trickDrop.png\",\n\t\t\"trickDropBlue.png\", \"player0.jpeg\", \"player1.jpeg\", \"player2.jpeg\", \"player3.jpeg\", \"laptopIcon.png\", \"watchIcon.png\",\n\t\t\"phoneIcon.png\", \"tabletIcon.png\", \"A-Upper.png\", \"B-Upper.png\", \"C-Upper.png\", \"D-Upper.png\", \"E-Upper.png\", \"F-Upper.png\",\n\t\t\"G-Upper.png\", \"H-Upper.png\", \"I-Upper.png\", \"J-Upper.png\", \"K-Upper.png\", \"L-Upper.png\", \"M-Upper.png\", \"N-Upper.png\",\n\t\t\"O-Upper.png\", \"P-Upper.png\", \"Q-Upper.png\", \"R-Upper.png\", \"S-Upper.png\", \"T-Upper.png\", \"U-Upper.png\", \"V-Upper.png\",\n\t\t\"W-Upper.png\", \"X-Upper.png\", \"Y-Upper.png\", \"Z-Upper.png\", \"A-Lower.png\", \"B-Lower.png\", \"C-Lower.png\", \"D-Lower.png\",\n\t\t\"E-Lower.png\", \"F-Lower.png\", \"G-Lower.png\", \"H-Lower.png\", \"I-Lower.png\", \"J-Lower.png\", \"K-Lower.png\", \"L-Lower.png\",\n\t\t\"M-Lower.png\", \"N-Lower.png\", \"O-Lower.png\", \"P-Lower.png\", \"Q-Lower.png\", \"R-Lower.png\", \"S-Lower.png\", \"T-Lower.png\",\n\t\t\"U-Lower.png\", \"V-Lower.png\", \"W-Lower.png\", \"X-Lower.png\", \"Y-Lower.png\", \"Z-Lower.png\", \"Space.png\", \"Colon.png\", \"Bang.png\",\n\t\t\"Apostrophe.png\", \"1.png\", \"2.png\", \"3.png\", \"4.png\", \"5.png\", \"6.png\", \"7.png\", \"8.png\", \"9.png\", \"0.png\", \"1-Red.png\",\n\t\t\"2-Red.png\", \"3-Red.png\", \"4-Red.png\", \"5-Red.png\", \"6-Red.png\", \"7-Red.png\", \"8-Red.png\", \"9-Red.png\", \"0-Red.png\",\n\t\t\"1-DBlue.png\", \"2-DBlue.png\", \"3-DBlue.png\", \"4-DBlue.png\", \"5-DBlue.png\", \"6-DBlue.png\", \"7-DBlue.png\", \"8-DBlue.png\",\n\t\t\"9-DBlue.png\", \"0-DBlue.png\", \"A-Upper-DBlue.png\", \"B-Upper-DBlue.png\",\n\t\t\"C-Upper-DBlue.png\", \"D-Upper-DBlue.png\", \"E-Upper-DBlue.png\", \"F-Upper-DBlue.png\", \"G-Upper-DBlue.png\", \"H-Upper-DBlue.png\",\n\t\t\"I-Upper-DBlue.png\", \"J-Upper-DBlue.png\", \"K-Upper-DBlue.png\", \"L-Upper-DBlue.png\", \"M-Upper-DBlue.png\", \"N-Upper-DBlue.png\",\n\t\t\"O-Upper-DBlue.png\", \"P-Upper-DBlue.png\", \"Q-Upper-DBlue.png\", \"R-Upper-DBlue.png\", \"S-Upper-DBlue.png\", \"T-Upper-DBlue.png\",\n\t\t\"U-Upper-DBlue.png\", \"V-Upper-DBlue.png\", \"W-Upper-DBlue.png\", \"X-Upper-DBlue.png\", \"Y-Upper-DBlue.png\", \"Z-Upper-DBlue.png\",\n\t\t\"A-Lower-DBlue.png\", \"B-Lower-DBlue.png\", \"C-Lower-DBlue.png\", \"D-Lower-DBlue.png\", \"E-Lower-DBlue.png\", \"F-Lower-DBlue.png\",\n\t\t\"G-Lower-DBlue.png\", \"H-Lower-DBlue.png\", \"I-Lower-DBlue.png\", \"J-Lower-DBlue.png\", \"K-Lower-DBlue.png\", \"L-Lower-DBlue.png\",\n\t\t\"M-Lower-DBlue.png\", \"N-Lower-DBlue.png\", \"O-Lower-DBlue.png\", \"P-Lower-DBlue.png\", \"Q-Lower-DBlue.png\", \"R-Lower-DBlue.png\",\n\t\t\"S-Lower-DBlue.png\", \"T-Lower-DBlue.png\", \"U-Lower-DBlue.png\", \"V-Lower-DBlue.png\", \"W-Lower-DBlue.png\", \"X-Lower-DBlue.png\",\n\t\t\"Y-Lower-DBlue.png\", \"Z-Lower-DBlue.png\", \"Apostrophe-DBlue.png\", \"Space-DBlue.png\", \"A-Upper-LBlue.png\", \"B-Upper-LBlue.png\",\n\t\t\"C-Upper-LBlue.png\", \"D-Upper-LBlue.png\", \"E-Upper-LBlue.png\", \"F-Upper-LBlue.png\", \"G-Upper-LBlue.png\", \"H-Upper-LBlue.png\",\n\t\t\"I-Upper-LBlue.png\", \"J-Upper-LBlue.png\", \"K-Upper-LBlue.png\", \"L-Upper-LBlue.png\", \"M-Upper-LBlue.png\", \"N-Upper-LBlue.png\",\n\t\t\"O-Upper-LBlue.png\", \"P-Upper-LBlue.png\", \"Q-Upper-LBlue.png\", \"R-Upper-LBlue.png\", \"S-Upper-LBlue.png\", \"T-Upper-LBlue.png\",\n\t\t\"U-Upper-LBlue.png\", \"V-Upper-LBlue.png\", \"W-Upper-LBlue.png\", \"X-Upper-LBlue.png\", \"Y-Upper-LBlue.png\", \"Z-Upper-LBlue.png\",\n\t\t\"A-Lower-LBlue.png\", \"B-Lower-LBlue.png\", \"C-Lower-LBlue.png\", \"D-Lower-LBlue.png\", \"E-Lower-LBlue.png\", \"F-Lower-LBlue.png\",\n\t\t\"G-Lower-LBlue.png\", \"H-Lower-LBlue.png\", \"I-Lower-LBlue.png\", \"J-Lower-LBlue.png\", \"K-Lower-LBlue.png\", \"L-Lower-LBlue.png\",\n\t\t\"M-Lower-LBlue.png\", \"N-Lower-LBlue.png\", \"O-Lower-LBlue.png\", \"P-Lower-LBlue.png\", \"Q-Lower-LBlue.png\", \"R-Lower-LBlue.png\",\n\t\t\"S-Lower-LBlue.png\", \"T-Lower-LBlue.png\", \"U-Lower-LBlue.png\", \"V-Lower-LBlue.png\", \"W-Lower-LBlue.png\", \"X-Lower-LBlue.png\",\n\t\t\"Y-Lower-LBlue.png\", \"Z-Lower-LBlue.png\", \"A-Upper-Gray.png\", \"B-Upper-Gray.png\", \"C-Upper-Gray.png\", \"D-Upper-Gray.png\",\n\t\t\"E-Upper-Gray.png\", \"F-Upper-Gray.png\", \"G-Upper-Gray.png\", \"H-Upper-Gray.png\", \"I-Upper-Gray.png\", \"J-Upper-Gray.png\",\n\t\t\"K-Upper-Gray.png\", \"L-Upper-Gray.png\", \"M-Upper-Gray.png\", \"N-Upper-Gray.png\", \"O-Upper-Gray.png\", \"P-Upper-Gray.png\",\n\t\t\"Q-Upper-Gray.png\", \"R-Upper-Gray.png\", \"S-Upper-Gray.png\", \"T-Upper-Gray.png\", \"U-Upper-Gray.png\", \"V-Upper-Gray.png\",\n\t\t\"W-Upper-Gray.png\", \"X-Upper-Gray.png\", \"Y-Upper-Gray.png\", \"Z-Upper-Gray.png\", \"A-Lower-Gray.png\", \"B-Lower-Gray.png\",\n\t\t\"C-Lower-Gray.png\", \"D-Lower-Gray.png\", \"E-Lower-Gray.png\", \"F-Lower-Gray.png\", \"G-Lower-Gray.png\", \"H-Lower-Gray.png\",\n\t\t\"I-Lower-Gray.png\", \"J-Lower-Gray.png\", \"K-Lower-Gray.png\", \"L-Lower-Gray.png\", \"M-Lower-Gray.png\", \"N-Lower-Gray.png\",\n\t\t\"O-Lower-Gray.png\", \"P-Lower-Gray.png\", \"Q-Lower-Gray.png\", \"R-Lower-Gray.png\", \"S-Lower-Gray.png\", \"T-Lower-Gray.png\",\n\t\t\"U-Lower-Gray.png\", \"V-Lower-Gray.png\", \"W-Lower-Gray.png\", \"X-Lower-Gray.png\", \"Y-Lower-Gray.png\", \"Z-Lower-Gray.png\",\n\t\t\"Space-Gray.png\", \"RoundedRectangle-DBlue.png\", \"RoundedRectangle-LBlue.png\", \"RoundedRectangle-Gray.png\", \"Rectangle-LBlue.png\",\n\t\t\"Rectangle-DBlue.png\", \"HorizontalPullTab.png\", \"VerticalPullTab.png\", \"NewGamePressed.png\", \"NewGameUnpressed.png\",\n\t\t\"NewRoundPressed.png\", \"NewRoundUnpressed.png\", \"JoinGamePressed.png\", \"JoinGameUnpressed.png\", \"Period.png\",\n\t\t\"SitSpotPressed.png\", \"SitSpotUnpressed.png\", \"WatchSpotPressed.png\", \"WatchSpotUnpressed.png\", \"StartBlue.png\", \"StartGray.png\",\n\t\t\"StartBluePressed.png\", \"Restart.png\", \"Visibility.png\", \"VisibilityOff.png\", \"QuitPressed.png\", \"QuitUnpressed.png\",\n\t\t\"PassPressed.png\", \"PassUnpressed.png\", \"RightArrowBlue.png\", \"LeftArrowBlue.png\", \"AcrossArrowBlue.png\", \"RightArrowGray.png\",\n\t\t\"LeftArrowGray.png\", \"AcrossArrowGray.png\", \"TakeTrickTableUnpressed.png\", \"TakeTrickTablePressed.png\", \"TakeTrickHandPressed.png\",\n\t\t\"TakeTrickHandUnpressed.png\", \"android.png\", \"cat.png\", \"man.png\", \"woman.png\", \"TakeUnpressed.png\", \"TakePressed.png\",\n\t\t\"UnplayedBorder1.png\", \"UnplayedBorder2.png\", \"RejoinPressed.png\", \"RejoinUnpressed.png\",\n\t}\n\tfor _, f := range boundedImgs {\n\t\ta, err := asset.Open(f)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\n\t\timg, _, err := image.Decode(a)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\tt, err := eng.LoadTexture(img)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\timgWidth, imgHeight := t.Bounds()\n\t\tallTexs[f] = sprite.SubTex{t, image.Rect(0, 0, imgWidth, imgHeight)}\n\t\ta.Close()\n\t}\n\tfor _, f := range unboundedImgs {\n\t\ta, err := asset.Open(f)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\n\t\timg, _, err := image.Decode(a)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\tt, err := eng.LoadTexture(img)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\timgWidth, imgHeight := t.Bounds()\n\t\tallTexs[f] = sprite.SubTex{t, image.Rect(1, 1, imgWidth-1, imgHeight-1)}\n\t\ta.Close()\n\t}\n\treturn allTexs\n}", "func ActiveTexture(texture Enum) {\n\tgl.ActiveTexture(uint32(texture))\n}", "func (obj *Device) CreateVolumeTexture(\n\twidth uint,\n\theight uint,\n\tdepth uint,\n\tlevels uint,\n\tusage uint32,\n\tformat FORMAT,\n\tpool POOL,\n\tsharedHandle uintptr,\n) (*VolumeTexture, Error) {\n\tvar tex *VolumeTexture\n\tret, _, _ := syscall.Syscall12(\n\t\tobj.vtbl.CreateVolumeTexture,\n\t\t10,\n\t\tuintptr(unsafe.Pointer(obj)),\n\t\tuintptr(width),\n\t\tuintptr(height),\n\t\tuintptr(depth),\n\t\tuintptr(levels),\n\t\tuintptr(usage),\n\t\tuintptr(format),\n\t\tuintptr(pool),\n\t\tuintptr(unsafe.Pointer(&tex)),\n\t\tsharedHandle,\n\t\t0,\n\t\t0,\n\t)\n\treturn tex, toErr(ret)\n}", "func IsTexture(texture uint32) bool {\n\tret := C.glowIsTexture(gpIsTexture, (C.GLuint)(texture))\n\treturn ret == TRUE\n}", "func IsTexture(texture uint32) bool {\n\tret := C.glowIsTexture(gpIsTexture, (C.GLuint)(texture))\n\treturn ret == TRUE\n}", "func TexImage2D(target Enum, level Int, internalformat Int, width Sizei, height Sizei, border Int, format Enum, kind Enum, pixels unsafe.Pointer) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tclevel, _ := (C.GLint)(level), cgoAllocsUnknown\n\tcinternalformat, _ := (C.GLint)(internalformat), cgoAllocsUnknown\n\tcwidth, _ := (C.GLsizei)(width), cgoAllocsUnknown\n\tcheight, _ := (C.GLsizei)(height), cgoAllocsUnknown\n\tcborder, _ := (C.GLint)(border), cgoAllocsUnknown\n\tcformat, _ := (C.GLenum)(format), cgoAllocsUnknown\n\tckind, _ := (C.GLenum)(kind), cgoAllocsUnknown\n\tcpixels, _ := (unsafe.Pointer)(unsafe.Pointer(pixels)), cgoAllocsUnknown\n\tC.glTexImage2D(ctarget, clevel, cinternalformat, cwidth, cheight, cborder, cformat, ckind, cpixels)\n}", "func BindTexture(target uint32, texture uint32) {\n C.glowBindTexture(gpBindTexture, (C.GLenum)(target), (C.GLuint)(texture))\n}", "func (gl *WebGL) TexImage2D(target GLEnum, level int, internalFormat GLEnum, format GLEnum, texelType GLEnum, pixels interface{}) {\n\tgl.context.Call(\"texImage2D\", target, level, internalFormat, format, texelType, pixels)\n}", "func FromImage(width uint16, height uint16, m image.Image) *Texture {\n\tb := m.Bounds()\n\n\t// m must be at least 8x8\n\tif b.Max.X < 8 || b.Max.Y < 8 {\n\t\tfmt.Println(errorsIncompatibleSize.Error())\n\t\treturn New(width, height)\n\t}\n\n\t// set pixels in current texture to the upper left 8x8 pixels of the provided image\n\tt := New(width, height)\n\tvar x, y uint16\n\tfor y = 0; y < 8; y++ {\n\t\tfor x = 0; x < 8; x++ {\n\t\t\tp := m.At(int(x), int(y))\n\t\t\tt.Set(x, y, rgb565.FromColor(p))\n\t\t}\n\t}\n\n\treturn t\n}", "func BindImageTexture(unit uint32, texture uint32, level int32, layered bool, layer int32, access uint32, format uint32) {\n\tC.glowBindImageTexture(gpBindImageTexture, (C.GLuint)(unit), (C.GLuint)(texture), (C.GLint)(level), (C.GLboolean)(boolToInt(layered)), (C.GLint)(layer), (C.GLenum)(access), (C.GLenum)(format))\n}", "func BindImageTexture(unit uint32, texture uint32, level int32, layered bool, layer int32, access uint32, format uint32) {\n\tC.glowBindImageTexture(gpBindImageTexture, (C.GLuint)(unit), (C.GLuint)(texture), (C.GLint)(level), (C.GLboolean)(boolToInt(layered)), (C.GLint)(layer), (C.GLenum)(access), (C.GLenum)(format))\n}", "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n\tC.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n\tC.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func BindTexture(target Enum, t Texture) {\n\tgl.BindTexture(uint32(target), t.Value)\n}", "func GetSprite(\n\twidth, height int,\n\txoffset, yoffset int,\n\tsrc *ebiten.Image,\n) (*ebiten.Image, error) {\n\tsprite, spriteErr := ebiten.NewImage(width, height, ebiten.FilterDefault)\n\tif spriteErr != nil {\n\t\treturn nil, spriteErr\n\t}\n\n\trect := image.Rect(xoffset, yoffset, xoffset+width, yoffset+height)\n\n\tops := &ebiten.DrawImageOptions{}\n\tops.SourceRect = &rect\n\tif drawErr := sprite.DrawImage(src, ops); drawErr != nil {\n\t\treturn nil, drawErr\n\t}\n\n\treturn sprite, nil\n}" ]
[ "0.75846326", "0.72301996", "0.71188384", "0.71088463", "0.71088463", "0.7064863", "0.69811064", "0.6970473", "0.6826661", "0.6795502", "0.67854035", "0.6785349", "0.66961575", "0.667603", "0.6584404", "0.6564846", "0.6516292", "0.6508075", "0.6506929", "0.6496524", "0.64878935", "0.64811677", "0.64811677", "0.6480218", "0.64657396", "0.64278555", "0.64158666", "0.6377344", "0.63768893", "0.6366292", "0.63385516", "0.63373864", "0.63084644", "0.6301142", "0.62617385", "0.62401974", "0.62392807", "0.61989725", "0.6190583", "0.618023", "0.61695623", "0.6164883", "0.61417305", "0.61417305", "0.61240613", "0.610933", "0.6098319", "0.60759395", "0.60566294", "0.60225046", "0.6018164", "0.5993187", "0.59856707", "0.5954269", "0.5911224", "0.58996713", "0.5872443", "0.58722854", "0.58580637", "0.58236", "0.58191144", "0.5813348", "0.5812581", "0.5787821", "0.5770427", "0.5770427", "0.5767287", "0.57603145", "0.5753236", "0.574645", "0.57332635", "0.572363", "0.56795675", "0.56795675", "0.5666089", "0.5644034", "0.56134754", "0.5601152", "0.55935395", "0.55727834", "0.5571573", "0.55599636", "0.5555261", "0.55338776", "0.5530972", "0.55307037", "0.5520964", "0.55207235", "0.55207235", "0.5480835", "0.5455413", "0.54450035", "0.54392785", "0.5411112", "0.5411112", "0.54031676", "0.54031676", "0.5392774", "0.53898567" ]
0.6089327
48
return a texture image
func GetTextureImage(texture uint32, level int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) { C.glowGetTextureImage(gpGetTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (f *Font) GetTexture() *Texture { return f.texture }", "func (t *Three) Texture() *Texture {\n\tp := t.ctx.Get(\"Texture\")\n\treturn TextureFromJSObject(p)\n}", "func GetTextureImage(texture uint32, level int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetTextureImage, 6, uintptr(texture), uintptr(level), uintptr(format), uintptr(xtype), uintptr(bufSize), uintptr(pixels))\n}", "func (c *Canvas) Texture() *glhf.Texture {\n\treturn c.gf.Texture()\n}", "func (gstr *GlyphString) GetTexture() *Texture { return gstr.font.GetTexture() }", "func (fnt *Font) Texture() *Texture {\n\treturn fnt.texture\n}", "func (self *Graphics) GenerateTexture() *Texture{\n return &Texture{self.Object.Call(\"generateTexture\")}\n}", "func (self *TileSprite) Texture() *Texture{\n return &Texture{self.Object.Get(\"texture\")}\n}", "func (md MetalDrawable) Texture() mtl.Texture {\n\treturn mtl.NewTexture(C.MetalDrawable_Texture(md.metalDrawable))\n}", "func NewTexture(scene *Scene, element *Element) *Texture {\n\tt := &Texture{\n\t\tObject: *NewObject(scene, element),\n\t}\n\treturn t\n}", "func Make(width, height int, internalformat int32, format, pixelType uint32,\n\tdata unsafe.Pointer, min, mag, s, t int32) Texture {\n\n\ttexture := Texture{0, gl.TEXTURE_2D, 0}\n\n\t// generate and bind texture\n\tgl.GenTextures(1, &texture.handle)\n\ttexture.Bind(0)\n\n\t// set texture properties\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, min)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, mag)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, s)\n\tgl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, t)\n\n\t// specify a texture image\n\tgl.TexImage2D(gl.TEXTURE_2D, 0, internalformat, int32(width), int32(height),\n\t\t0, format, pixelType, data)\n\n\t// unbind texture\n\ttexture.Unbind()\n\n\treturn texture\n}", "func (bm Blendmap) Texture() *gl.Texture {\n\treturn bm.Map.id\n}", "func (self *GameObjectCreator) RenderTexture() *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\")}\n}", "func (self *Graphics) GenerateTexture2O(resolution int, scaleMode int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution, scaleMode)}\n}", "func (this *RectangleShape) GetTexture() *Texture {\n\treturn this.texture\n}", "func (self *TileSprite) TilingTexture() *PIXITexture{\n return &PIXITexture{self.Object.Get(\"tilingTexture\")}\n}", "func CreateTexture() Texture {\n\tvar t Texture\n\tgl.GenTextures(1, &t.Value)\n\treturn t\n}", "func (w *Worley) GenerateTexture(tex *texture.Texture) {\n\tgl.BindImageTexture(0, tex.GetHandle(), 0, false, 0, gl.READ_WRITE, gl.RGBA32F)\n\tgl.BindImageTexture(1, w.noisetexture.GetHandle(), 0, false, 0, gl.READ_ONLY, gl.RGBA32F)\n\n\tw.computeshader.Use()\n\tw.computeshader.UpdateInt32(\"uWidth\", w.width)\n\tw.computeshader.UpdateInt32(\"uHeight\", w.height)\n\tw.computeshader.UpdateInt32(\"uResolution\", w.resolution)\n\tw.computeshader.UpdateInt32(\"uOctaves\", w.octaves)\n\tw.computeshader.UpdateFloat32(\"uRadius\", w.radius)\n\tw.computeshader.UpdateFloat32(\"uRadiusScale\", w.radiusscale)\n\tw.computeshader.UpdateFloat32(\"uBrightness\", w.brightness)\n\tw.computeshader.UpdateFloat32(\"uContrast\", w.contrast)\n\tw.computeshader.UpdateFloat32(\"uScale\", w.scale)\n\tw.computeshader.UpdateFloat32(\"uPersistance\", w.persistance)\n\tw.computeshader.Compute(uint32(w.width), uint32(w.height), 1)\n\tw.computeshader.Compute(1024, 1024, 1)\n\tw.computeshader.Release()\n\n\tgl.MemoryBarrier(gl.ALL_BARRIER_BITS)\n\n\tgl.BindImageTexture(0, 0, 0, false, 0, gl.WRITE_ONLY, gl.RGBA32F)\n\tgl.BindImageTexture(1, 0, 0, false, 0, gl.READ_ONLY, gl.RGBA32F)\n}", "func (cache *FrameCache) Texture(key FrameCacheKey) *BitmapTexture {\n\treturn cache.textures[key]\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureSubImage(gpGetTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetTextureSubImage(gpGetTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)\n}", "func (obj *Device) GetTexture(stage uint32) (*BaseTexture, Error) {\n\tvar tex *BaseTexture\n\tret, _, _ := syscall.Syscall(\n\t\tobj.vtbl.GetTexture,\n\t\t3,\n\t\tuintptr(unsafe.Pointer(obj)),\n\t\tuintptr(stage),\n\t\tuintptr(unsafe.Pointer(&tex)),\n\t)\n\treturn tex, toErr(ret)\n}", "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpGetTextureSubImage, 12, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(xtype), uintptr(bufSize), uintptr(pixels))\n}", "func (spriteBatch *SpriteBatch) GetTexture() ITexture {\n\treturn spriteBatch.texture\n}", "func Load(path string) (*Image, error) {\n\t// Load the texture from file.\n\tt := C.sfTexture_createFromFile(C.CString(path), nil)\n\tif t == nil {\n\t\treturn nil, fmt.Errorf(\"texture.Load: unable to load %q\", path)\n\t}\n\ttex := &Image{\n\t\ttex: t,\n\t}\n\t// Create a sprite for the texture.\n\tsprite := C.sfSprite_create()\n\tif sprite == nil {\n\t\treturn nil, errors.New(\"texture.Load: unable to create sprite\")\n\t}\n\ttex.sprite = sprite\n\tC.sfSprite_setTexture(tex.sprite, tex.tex, C.sfTrue)\n\treturn tex, nil\n}", "func (self *Graphics) GenerateTexture1O(resolution int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution)}\n}", "func (self *Graphics) GenerateTexture3O(resolution int, scaleMode int, padding int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution, scaleMode, padding)}\n}", "func (self *GameObjectCreator) RenderTexture2O(width int, height int) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height)}\n}", "func Read(src image.Image) (*Image, error) {\n\t// Use fallback conversion for unknown image formats.\n\trgba, ok := src.(*image.RGBA)\n\tif !ok {\n\t\treturn Read(fallback(src))\n\t}\n\t// Use fallback conversion for subimages.\n\twidth, height := rgba.Rect.Dx(), rgba.Rect.Dy()\n\tif rgba.Stride != 4*width {\n\t\treturn Read(fallback(src))\n\t}\n\t// Create a read-only texture based on the pixels of the src image.\n\tt := C.sfTexture_create(C.uint(width), C.uint(height))\n\tif t == nil {\n\t\treturn nil, fmt.Errorf(\"texture.Read: unable to create %dx%d texture\", width, height)\n\t}\n\ttex := &Image{\n\t\ttex: t,\n\t}\n\tpix := (*C.sfUint8)(unsafe.Pointer(&rgba.Pix[0]))\n\tC.sfTexture_updateFromPixels(tex.tex, pix, C.uint(width), C.uint(height), 0, 0)\n\t// Create a sprite for the texture.\n\tsprite := C.sfSprite_create()\n\tif sprite == nil {\n\t\treturn nil, errors.New(\"texture.Read: unable to create sprite\")\n\t}\n\ttex.sprite = sprite\n\tC.sfSprite_setTexture(tex.sprite, tex.tex, C.sfTrue)\n\treturn tex, nil\n}", "func NewTexture(loader TextureLoader) *Texture {\n\treturn &Texture{loader: loader}\n}", "func (am *Manager) GetTexture(name string) (*Texture, bool) {\n\tif tex, ok := am.Textures[name]; ok {\n\t\treturn tex, ok\n\t}\n\n\tif am.Parent != nil {\n\t\treturn am.Parent.GetTexture(name)\n\t}\n\n\treturn nil, false\n}", "func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowGetTexImage(gpGetTexImage, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func LoadImageAsTexture(name string, path string) error {\n\tif Textures == nil {\n\t\tlog.Print(\"Initialize resource manager\")\n\t\tTextures = make(map[string]*ebiten.Image)\n\t}\n\timg, err := LoadImage(path)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tTextures[name] = img\n\treturn nil\n}", "func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetTexImage, 5, uintptr(target), uintptr(level), uintptr(format), uintptr(xtype), uintptr(pixels), 0)\n}", "func (t *Three) NewTexture(image *js.Object, opts *TextureOpts) *Texture {\n\tp := t.ctx.Get(\"Texture\")\n\tif opts != nil {\n\t\tp = p.New(image, opts.mapping, opts.wrapS, opts.wrapT, opts.magFilter, opts.minFilter, opts.format, opts.typ, opts.anisotropy)\n\t} else {\n\t\tp = p.New(image)\n\t}\n\treturn TextureFromJSObject(p)\n}", "func (obj *Device) CreateTexture(\n\twidth uint,\n\theight uint,\n\tlevels uint,\n\tusage uint32,\n\tformat FORMAT,\n\tpool POOL,\n\tsharedHandle uintptr,\n) (*Texture, Error) {\n\tvar tex *Texture\n\tret, _, _ := syscall.Syscall9(\n\t\tobj.vtbl.CreateTexture,\n\t\t9,\n\t\tuintptr(unsafe.Pointer(obj)),\n\t\tuintptr(width),\n\t\tuintptr(height),\n\t\tuintptr(levels),\n\t\tuintptr(usage),\n\t\tuintptr(format),\n\t\tuintptr(pool),\n\t\tuintptr(unsafe.Pointer(&tex)),\n\t\tsharedHandle,\n\t)\n\treturn tex, toErr(ret)\n}", "func (self *Graphics) GenerateTextureI(args ...interface{}) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", args)}\n}", "func (gl *WebGL) CreateTexture() WebGLTexture {\n\treturn gl.context.Call(\"createTexture\")\n}", "func CreateTexture() Texture {\n\tvar texture uint32\n\tgl.GenTextures(1, &texture)\n\treturn Texture(texture)\n}", "func BindImageTexture(unit uint32, texture uint32, level int32, layered bool, layer int32, access uint32, format uint32) {\n C.glowBindImageTexture(gpBindImageTexture, (C.GLuint)(unit), (C.GLuint)(texture), (C.GLint)(level), (C.GLboolean)(boolToInt(layered)), (C.GLint)(layer), (C.GLenum)(access), (C.GLenum)(format))\n}", "func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureImage(gpGetCompressedTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLsizei)(bufSize), pixels)\n}", "func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureImage(gpGetCompressedTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLsizei)(bufSize), pixels)\n}", "func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetCompressedTextureImage, 4, uintptr(texture), uintptr(level), uintptr(bufSize), uintptr(pixels), 0, 0)\n}", "func (self *GameObjectCreator) RenderTexture4O(width int, height int, key string, addToCache bool) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height, key, addToCache)}\n}", "func (self *GameObjectCreator) RenderTexture1O(width int) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width)}\n}", "func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowGetTexImage(gpGetTexImage, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowGetTexImage(gpGetTexImage, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureFromFile(file string, params TextureParameters) (*Texture, error) {\n\timg, err := imageFromFile(file)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn TextureFromImage(img, params)\n}", "func (self *TileSprite) TintedTexture() *Canvas{\n return &Canvas{self.Object.Get(\"tintedTexture\")}\n}", "func TexImage2D(target Enum, level int, width, height int, format Enum, ty Enum, data []byte) {\n\tp := unsafe.Pointer(nil)\n\tif len(data) > 0 {\n\t\tp = gl.Ptr(&data[0])\n\t}\n\tgl.TexImage2D(uint32(target), int32(level), int32(format), int32(width), int32(height), 0, uint32(format), uint32(ty), p)\n}", "func (self *GameObjectCreator) RenderTexture3O(width int, height int, key string) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height, key)}\n}", "func (tx *TextureBase) NewTex() gpu.Texture2D {\n\tif tx.Tex != nil {\n\t\treturn tx.Tex\n\t}\n\ttx.Tex = gpu.TheGPU.NewTexture2D(tx.Nm)\n\ttx.Tex.SetBotZero(tx.Bot0)\n\treturn tx.Tex\n}", "func (am *Manager) LoadTexture(name string) (*Texture, error) {\n\tif tex, ok := am.GetTexture(name); ok {\n\t\treturn tex, nil\n\t}\n\n\tvar (\n\t\terr error\n\t\tf *os.File\n\t)\n\n\tif f, err = os.Open(\"assets/textures/\" + name); err != nil {\n\t\treturn nil, err\n\t}\n\tdefer f.Close()\n\n\tvar img image.Image\n\n\tif img, _, err = image.Decode(f); err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar tex *Texture\n\n\tif tex, err = NewTextureFromImage(name, img); err != nil {\n\t\treturn nil, err\n\t}\n\n\tam.AddTexture(tex)\n\n\treturn tex, nil\n}", "func (g *GLTF) LoadTexture(texIdx int) (*texture.Texture2D, error) {\n\n\t// Check if provided texture index is valid\n\tif texIdx < 0 || texIdx >= len(g.Textures) {\n\t\treturn nil, fmt.Errorf(\"invalid texture index\")\n\t}\n\ttexData := g.Textures[texIdx]\n\t// NOTE: Textures can't be cached because they have their own uniforms\n\tlog.Debug(\"Loading Texture %d\", texIdx)\n\n\t// Load texture image\n\timg, err := g.LoadImage(texData.Source)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\ttex := texture.NewTexture2DFromRGBA(img)\n\n\t// Get sampler and apply texture parameters\n\tif texData.Sampler != nil {\n\t\terr = g.applySampler(*texData.Sampler, tex)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\n\treturn tex, nil\n}", "func ActiveTexture(texture uint32) {\n C.glowActiveTexture(gpActiveTexture, (C.GLenum)(texture))\n}", "func TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexImage2D(gpTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func LoadTextureFileHandle(n *scene.Node, file io.ReadCloser) texture.Type {\n\t// Create texture object using no texture\n\ttex2 := texture.New()\n\n\t// Spawn goroutine to do texture loading\n\tgo func() {\n\t\tdefer file.Close()\n\n\t\t// Decode image\n\t\tsrcImage, _, err := image.Decode(file)\n\t\tif err != nil {\n\t\t\tlog.Printf(\"Load():\", err)\n\t\t}\n\n\t\t// Check to see if we need to resize image because it is too large.\n\t\tmaxSize := int(renderer.MaxTextureSize(n))\n\t\tsz := srcImage.Bounds().Size()\n\t\tif sz.X > maxSize || sz.Y > maxSize {\n\t\t\t// Cannot upload texture larger than max texture size, we must resize\n\t\t\t// it first.\n\t\t\tnewWidth := sz.X\n\t\t\tif newWidth > maxSize {\n\t\t\t\tnewWidth = maxSize\n\t\t\t}\n\t\t\tnewHeight := sz.Y\n\t\t\tif newHeight > maxSize {\n\t\t\t\tnewHeight = maxSize\n\t\t\t}\n\n\t\t\tsrcImage = resize.Resample(srcImage, srcImage.Bounds(), newWidth, newHeight)\n\t\t}\n\n\t\trgbaImage, ok := srcImage.(*image.RGBA)\n\t\tif !ok {\n\t\t\t// Convert image to RGBA\n\t\t\tb := srcImage.Bounds()\n\t\t\trgbaImage = image.NewRGBA(image.Rect(0, 0, b.Dx(), b.Dy()))\n\t\t\tdraw.Draw(rgbaImage, rgbaImage.Bounds(), srcImage, b.Min, draw.Src)\n\t\t}\n\n\t\t// Assign image to texture\n\t\ttex2.SetImage(rgbaImage)\n\n\t\t// Tell renderer to load the texture\n\t\trenderer.LoadTexture(n, tex2)\n\t}()\n\n\treturn tex2\n}", "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n C.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func TexImage2D(target GLEnum, level int32, internalformat GLEnum, width, height, border int32, format, xtype GLEnum, pixels []float32) {\n\tgl.TexImage2D(uint32(target), level, int32(internalformat), width, height, border, uint32(format), uint32(xtype), unsafe.Pointer(&pixels[0]))\n}", "func New(width uint16, height uint16) *Texture {\n\tt := &Texture{\n\t\twidth: width,\n\t\theight: height,\n\t\tpixels: make([]rgb565.Rgb565Color, width*height),\n\t}\n\n\tfor i := range t.pixels {\n\t\tt.pixels[i] = rgb565.New(0x00, 0x00, 0x00)\n\t}\n\n\treturn t\n}", "func IsTexture(t Texture) bool {\n\treturn gl.IsTexture(t.Value)\n}", "func GetRandomTexture() (rune, rune) {\n\trandomTexture := textures[rand.Intn(len(textures))]\n\treturn randomTexture.leftRune, randomTexture.rightRune\n}", "func IsTexture(texture uint32) bool {\n ret := C.glowIsTexture(gpIsTexture, (C.GLuint)(texture))\n return ret == TRUE\n}", "func TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall9(gpTexImage2D, 9, uintptr(target), uintptr(level), uintptr(internalformat), uintptr(width), uintptr(height), uintptr(border), uintptr(format), uintptr(xtype), uintptr(pixels))\n}", "func TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexImage2D(gpTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexImage2D(gpTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureView(texture uint32, target uint32, origtexture uint32, internalformat uint32, minlevel uint32, numlevels uint32, minlayer uint32, numlayers uint32) {\n C.glowTextureView(gpTextureView, (C.GLuint)(texture), (C.GLenum)(target), (C.GLuint)(origtexture), (C.GLenum)(internalformat), (C.GLuint)(minlevel), (C.GLuint)(numlevels), (C.GLuint)(minlayer), (C.GLuint)(numlayers))\n}", "func (c *Button) loadTextureFromTTF() {\n\tvar err error\n\tc.font = engosdl.GetFontManager().CreateFont(c.GetName(), c.FontFile, c.FontSize)\n\tc.texture = c.font.GetTextureFromFont(c.Message, c.Color)\n\t_, _, c.width, c.height, err = c.texture.Query()\n\tif err != nil {\n\t\tengosdl.Logger.Error().Err(err).Msg(\"Query error\")\n\t\tpanic(err)\n\t}\n\tc.GetEntity().GetTransform().SetDim(engosdl.NewVector(float64(c.width), float64(c.height)))\n}", "func pixelsToTexture(renderer *sdl.Renderer, pixels []byte, w, h int) *sdl.Texture {\n\t// AGBR is backwards from way we will be filling in out bytes\n\ttex, err := renderer.CreateTexture(sdl.PIXELFORMAT_ABGR8888, sdl.TEXTUREACCESS_STREAMING, int32(w), int32(h))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\ttex.Update(nil, pixels, w*4) // Can't provide a rectangle, pitch = 4 bytes per pixel\n\treturn tex\n}", "func (self *GameObjectCreator) RenderTextureI(args ...interface{}) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", args)}\n}", "func (debugging *debuggingOpenGL) TexImage2D(target uint32, level int32, internalFormat uint32, width int32, height int32,\n\tborder int32, format uint32, xtype uint32, pixels interface{}) {\n\tdebugging.recordEntry(\"TexImage2D\", target, level, internalFormat, width, height, border, format, xtype, pixels)\n\tdebugging.gl.TexImage2D(target, level, internalFormat, width, height, border, format, xtype, pixels)\n\tdebugging.recordExit(\"TexImage2D\")\n}", "func (self *TileSprite) LoadTexture(key interface{}) {\n self.Object.Call(\"loadTexture\", key)\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureSubImage(gpGetCompressedTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(bufSize), pixels)\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureSubImage(gpGetCompressedTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(bufSize), pixels)\n}", "func TextureFromJSObject(p *js.Object) *Texture {\n\treturn &Texture{p: p}\n}", "func (self *TileSprite) TilePattern() *PIXITexture{\n return &PIXITexture{self.Object.Get(\"tilePattern\")}\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpGetCompressedTextureSubImage, 10, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(bufSize), uintptr(pixels), 0, 0)\n}", "func (self *TileSprite) SetTexture(texture *Texture) {\n self.Object.Call(\"setTexture\", texture)\n}", "func GetCompressedTexImage(target uint32, level int32, img unsafe.Pointer) {\n C.glowGetCompressedTexImage(gpGetCompressedTexImage, (C.GLenum)(target), (C.GLint)(level), img)\n}", "func (self *TileSprite) LoadTexture2O(key interface{}, frame interface{}, stopAnimation bool) {\n self.Object.Call(\"loadTexture\", key, frame, stopAnimation)\n}", "func (am *AssetManager) LoadTexture(name, iname string) {\n\tif strings.Contains(name, \".png\") {\n\t\tpic, err := LoadPng(am.texturesDir + name)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\tam.Textures[iname] = pic\n\t} else {\n\t\tlog.Fatal(\"unable to find texture \" + (am.modelsDir + name))\n\t}\n}", "func ClientActiveTexture(texture uint32) {\n C.glowClientActiveTexture(gpClientActiveTexture, (C.GLenum)(texture))\n}", "func (native *OpenGL) TexImage2D(target uint32, level int32, internalFormat uint32, width int32, height int32,\n\tborder int32, format uint32, xtype uint32, pixels interface{}) {\n\tptr, isPointer := pixels.(unsafe.Pointer)\n\tif isPointer {\n\t\tgl.TexImage2D(target, level, int32(internalFormat), width, height, border, format, xtype, ptr)\n\t} else {\n\t\tgl.TexImage2D(target, level, int32(internalFormat), width, height, border, format, xtype, gl.Ptr(pixels))\n\t}\n}", "func (texture Texture) IsTexture() bool {\n\treturn gl.IsTexture(uint32(texture))\n}", "func LoadTextures(eng sprite.Engine) map[string]sprite.SubTex {\n\tallTexs := make(map[string]sprite.SubTex)\n\tboundedImgs := []string{\"Clubs-2.png\", \"Clubs-3.png\", \"Clubs-4.png\", \"Clubs-5.png\", \"Clubs-6.png\", \"Clubs-7.png\", \"Clubs-8.png\",\n\t\t\"Clubs-9.png\", \"Clubs-10.png\", \"Clubs-Jack.png\", \"Clubs-Queen.png\", \"Clubs-King.png\", \"Clubs-Ace.png\",\n\t\t\"Diamonds-2.png\", \"Diamonds-3.png\", \"Diamonds-4.png\", \"Diamonds-5.png\", \"Diamonds-6.png\", \"Diamonds-7.png\", \"Diamonds-8.png\",\n\t\t\"Diamonds-9.png\", \"Diamonds-10.png\", \"Diamonds-Jack.png\", \"Diamonds-Queen.png\", \"Diamonds-King.png\", \"Diamonds-Ace.png\",\n\t\t\"Spades-2.png\", \"Spades-3.png\", \"Spades-4.png\", \"Spades-5.png\", \"Spades-6.png\", \"Spades-7.png\", \"Spades-8.png\",\n\t\t\"Spades-9.png\", \"Spades-10.png\", \"Spades-Jack.png\", \"Spades-Queen.png\", \"Spades-King.png\", \"Spades-Ace.png\",\n\t\t\"Hearts-2.png\", \"Hearts-3.png\", \"Hearts-4.png\", \"Hearts-5.png\", \"Hearts-6.png\", \"Hearts-7.png\", \"Hearts-8.png\",\n\t\t\"Hearts-9.png\", \"Hearts-10.png\", \"Hearts-Jack.png\", \"Hearts-Queen.png\", \"Hearts-King.png\", \"Hearts-Ace.png\", \"BakuSquare.png\",\n\t}\n\tunboundedImgs := []string{\"Club.png\", \"Diamond.png\", \"Spade.png\", \"Heart.png\", \"gray.jpeg\", \"blue.png\", \"trickDrop.png\",\n\t\t\"trickDropBlue.png\", \"player0.jpeg\", \"player1.jpeg\", \"player2.jpeg\", \"player3.jpeg\", \"laptopIcon.png\", \"watchIcon.png\",\n\t\t\"phoneIcon.png\", \"tabletIcon.png\", \"A-Upper.png\", \"B-Upper.png\", \"C-Upper.png\", \"D-Upper.png\", \"E-Upper.png\", \"F-Upper.png\",\n\t\t\"G-Upper.png\", \"H-Upper.png\", \"I-Upper.png\", \"J-Upper.png\", \"K-Upper.png\", \"L-Upper.png\", \"M-Upper.png\", \"N-Upper.png\",\n\t\t\"O-Upper.png\", \"P-Upper.png\", \"Q-Upper.png\", \"R-Upper.png\", \"S-Upper.png\", \"T-Upper.png\", \"U-Upper.png\", \"V-Upper.png\",\n\t\t\"W-Upper.png\", \"X-Upper.png\", \"Y-Upper.png\", \"Z-Upper.png\", \"A-Lower.png\", \"B-Lower.png\", \"C-Lower.png\", \"D-Lower.png\",\n\t\t\"E-Lower.png\", \"F-Lower.png\", \"G-Lower.png\", \"H-Lower.png\", \"I-Lower.png\", \"J-Lower.png\", \"K-Lower.png\", \"L-Lower.png\",\n\t\t\"M-Lower.png\", \"N-Lower.png\", \"O-Lower.png\", \"P-Lower.png\", \"Q-Lower.png\", \"R-Lower.png\", \"S-Lower.png\", \"T-Lower.png\",\n\t\t\"U-Lower.png\", \"V-Lower.png\", \"W-Lower.png\", \"X-Lower.png\", \"Y-Lower.png\", \"Z-Lower.png\", \"Space.png\", \"Colon.png\", \"Bang.png\",\n\t\t\"Apostrophe.png\", \"1.png\", \"2.png\", \"3.png\", \"4.png\", \"5.png\", \"6.png\", \"7.png\", \"8.png\", \"9.png\", \"0.png\", \"1-Red.png\",\n\t\t\"2-Red.png\", \"3-Red.png\", \"4-Red.png\", \"5-Red.png\", \"6-Red.png\", \"7-Red.png\", \"8-Red.png\", \"9-Red.png\", \"0-Red.png\",\n\t\t\"1-DBlue.png\", \"2-DBlue.png\", \"3-DBlue.png\", \"4-DBlue.png\", \"5-DBlue.png\", \"6-DBlue.png\", \"7-DBlue.png\", \"8-DBlue.png\",\n\t\t\"9-DBlue.png\", \"0-DBlue.png\", \"A-Upper-DBlue.png\", \"B-Upper-DBlue.png\",\n\t\t\"C-Upper-DBlue.png\", \"D-Upper-DBlue.png\", \"E-Upper-DBlue.png\", \"F-Upper-DBlue.png\", \"G-Upper-DBlue.png\", \"H-Upper-DBlue.png\",\n\t\t\"I-Upper-DBlue.png\", \"J-Upper-DBlue.png\", \"K-Upper-DBlue.png\", \"L-Upper-DBlue.png\", \"M-Upper-DBlue.png\", \"N-Upper-DBlue.png\",\n\t\t\"O-Upper-DBlue.png\", \"P-Upper-DBlue.png\", \"Q-Upper-DBlue.png\", \"R-Upper-DBlue.png\", \"S-Upper-DBlue.png\", \"T-Upper-DBlue.png\",\n\t\t\"U-Upper-DBlue.png\", \"V-Upper-DBlue.png\", \"W-Upper-DBlue.png\", \"X-Upper-DBlue.png\", \"Y-Upper-DBlue.png\", \"Z-Upper-DBlue.png\",\n\t\t\"A-Lower-DBlue.png\", \"B-Lower-DBlue.png\", \"C-Lower-DBlue.png\", \"D-Lower-DBlue.png\", \"E-Lower-DBlue.png\", \"F-Lower-DBlue.png\",\n\t\t\"G-Lower-DBlue.png\", \"H-Lower-DBlue.png\", \"I-Lower-DBlue.png\", \"J-Lower-DBlue.png\", \"K-Lower-DBlue.png\", \"L-Lower-DBlue.png\",\n\t\t\"M-Lower-DBlue.png\", \"N-Lower-DBlue.png\", \"O-Lower-DBlue.png\", \"P-Lower-DBlue.png\", \"Q-Lower-DBlue.png\", \"R-Lower-DBlue.png\",\n\t\t\"S-Lower-DBlue.png\", \"T-Lower-DBlue.png\", \"U-Lower-DBlue.png\", \"V-Lower-DBlue.png\", \"W-Lower-DBlue.png\", \"X-Lower-DBlue.png\",\n\t\t\"Y-Lower-DBlue.png\", \"Z-Lower-DBlue.png\", \"Apostrophe-DBlue.png\", \"Space-DBlue.png\", \"A-Upper-LBlue.png\", \"B-Upper-LBlue.png\",\n\t\t\"C-Upper-LBlue.png\", \"D-Upper-LBlue.png\", \"E-Upper-LBlue.png\", \"F-Upper-LBlue.png\", \"G-Upper-LBlue.png\", \"H-Upper-LBlue.png\",\n\t\t\"I-Upper-LBlue.png\", \"J-Upper-LBlue.png\", \"K-Upper-LBlue.png\", \"L-Upper-LBlue.png\", \"M-Upper-LBlue.png\", \"N-Upper-LBlue.png\",\n\t\t\"O-Upper-LBlue.png\", \"P-Upper-LBlue.png\", \"Q-Upper-LBlue.png\", \"R-Upper-LBlue.png\", \"S-Upper-LBlue.png\", \"T-Upper-LBlue.png\",\n\t\t\"U-Upper-LBlue.png\", \"V-Upper-LBlue.png\", \"W-Upper-LBlue.png\", \"X-Upper-LBlue.png\", \"Y-Upper-LBlue.png\", \"Z-Upper-LBlue.png\",\n\t\t\"A-Lower-LBlue.png\", \"B-Lower-LBlue.png\", \"C-Lower-LBlue.png\", \"D-Lower-LBlue.png\", \"E-Lower-LBlue.png\", \"F-Lower-LBlue.png\",\n\t\t\"G-Lower-LBlue.png\", \"H-Lower-LBlue.png\", \"I-Lower-LBlue.png\", \"J-Lower-LBlue.png\", \"K-Lower-LBlue.png\", \"L-Lower-LBlue.png\",\n\t\t\"M-Lower-LBlue.png\", \"N-Lower-LBlue.png\", \"O-Lower-LBlue.png\", \"P-Lower-LBlue.png\", \"Q-Lower-LBlue.png\", \"R-Lower-LBlue.png\",\n\t\t\"S-Lower-LBlue.png\", \"T-Lower-LBlue.png\", \"U-Lower-LBlue.png\", \"V-Lower-LBlue.png\", \"W-Lower-LBlue.png\", \"X-Lower-LBlue.png\",\n\t\t\"Y-Lower-LBlue.png\", \"Z-Lower-LBlue.png\", \"A-Upper-Gray.png\", \"B-Upper-Gray.png\", \"C-Upper-Gray.png\", \"D-Upper-Gray.png\",\n\t\t\"E-Upper-Gray.png\", \"F-Upper-Gray.png\", \"G-Upper-Gray.png\", \"H-Upper-Gray.png\", \"I-Upper-Gray.png\", \"J-Upper-Gray.png\",\n\t\t\"K-Upper-Gray.png\", \"L-Upper-Gray.png\", \"M-Upper-Gray.png\", \"N-Upper-Gray.png\", \"O-Upper-Gray.png\", \"P-Upper-Gray.png\",\n\t\t\"Q-Upper-Gray.png\", \"R-Upper-Gray.png\", \"S-Upper-Gray.png\", \"T-Upper-Gray.png\", \"U-Upper-Gray.png\", \"V-Upper-Gray.png\",\n\t\t\"W-Upper-Gray.png\", \"X-Upper-Gray.png\", \"Y-Upper-Gray.png\", \"Z-Upper-Gray.png\", \"A-Lower-Gray.png\", \"B-Lower-Gray.png\",\n\t\t\"C-Lower-Gray.png\", \"D-Lower-Gray.png\", \"E-Lower-Gray.png\", \"F-Lower-Gray.png\", \"G-Lower-Gray.png\", \"H-Lower-Gray.png\",\n\t\t\"I-Lower-Gray.png\", \"J-Lower-Gray.png\", \"K-Lower-Gray.png\", \"L-Lower-Gray.png\", \"M-Lower-Gray.png\", \"N-Lower-Gray.png\",\n\t\t\"O-Lower-Gray.png\", \"P-Lower-Gray.png\", \"Q-Lower-Gray.png\", \"R-Lower-Gray.png\", \"S-Lower-Gray.png\", \"T-Lower-Gray.png\",\n\t\t\"U-Lower-Gray.png\", \"V-Lower-Gray.png\", \"W-Lower-Gray.png\", \"X-Lower-Gray.png\", \"Y-Lower-Gray.png\", \"Z-Lower-Gray.png\",\n\t\t\"Space-Gray.png\", \"RoundedRectangle-DBlue.png\", \"RoundedRectangle-LBlue.png\", \"RoundedRectangle-Gray.png\", \"Rectangle-LBlue.png\",\n\t\t\"Rectangle-DBlue.png\", \"HorizontalPullTab.png\", \"VerticalPullTab.png\", \"NewGamePressed.png\", \"NewGameUnpressed.png\",\n\t\t\"NewRoundPressed.png\", \"NewRoundUnpressed.png\", \"JoinGamePressed.png\", \"JoinGameUnpressed.png\", \"Period.png\",\n\t\t\"SitSpotPressed.png\", \"SitSpotUnpressed.png\", \"WatchSpotPressed.png\", \"WatchSpotUnpressed.png\", \"StartBlue.png\", \"StartGray.png\",\n\t\t\"StartBluePressed.png\", \"Restart.png\", \"Visibility.png\", \"VisibilityOff.png\", \"QuitPressed.png\", \"QuitUnpressed.png\",\n\t\t\"PassPressed.png\", \"PassUnpressed.png\", \"RightArrowBlue.png\", \"LeftArrowBlue.png\", \"AcrossArrowBlue.png\", \"RightArrowGray.png\",\n\t\t\"LeftArrowGray.png\", \"AcrossArrowGray.png\", \"TakeTrickTableUnpressed.png\", \"TakeTrickTablePressed.png\", \"TakeTrickHandPressed.png\",\n\t\t\"TakeTrickHandUnpressed.png\", \"android.png\", \"cat.png\", \"man.png\", \"woman.png\", \"TakeUnpressed.png\", \"TakePressed.png\",\n\t\t\"UnplayedBorder1.png\", \"UnplayedBorder2.png\", \"RejoinPressed.png\", \"RejoinUnpressed.png\",\n\t}\n\tfor _, f := range boundedImgs {\n\t\ta, err := asset.Open(f)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\n\t\timg, _, err := image.Decode(a)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\tt, err := eng.LoadTexture(img)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\timgWidth, imgHeight := t.Bounds()\n\t\tallTexs[f] = sprite.SubTex{t, image.Rect(0, 0, imgWidth, imgHeight)}\n\t\ta.Close()\n\t}\n\tfor _, f := range unboundedImgs {\n\t\ta, err := asset.Open(f)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\n\t\timg, _, err := image.Decode(a)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\tt, err := eng.LoadTexture(img)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\timgWidth, imgHeight := t.Bounds()\n\t\tallTexs[f] = sprite.SubTex{t, image.Rect(1, 1, imgWidth-1, imgHeight-1)}\n\t\ta.Close()\n\t}\n\treturn allTexs\n}", "func ActiveTexture(texture Enum) {\n\tgl.ActiveTexture(uint32(texture))\n}", "func (obj *Device) CreateVolumeTexture(\n\twidth uint,\n\theight uint,\n\tdepth uint,\n\tlevels uint,\n\tusage uint32,\n\tformat FORMAT,\n\tpool POOL,\n\tsharedHandle uintptr,\n) (*VolumeTexture, Error) {\n\tvar tex *VolumeTexture\n\tret, _, _ := syscall.Syscall12(\n\t\tobj.vtbl.CreateVolumeTexture,\n\t\t10,\n\t\tuintptr(unsafe.Pointer(obj)),\n\t\tuintptr(width),\n\t\tuintptr(height),\n\t\tuintptr(depth),\n\t\tuintptr(levels),\n\t\tuintptr(usage),\n\t\tuintptr(format),\n\t\tuintptr(pool),\n\t\tuintptr(unsafe.Pointer(&tex)),\n\t\tsharedHandle,\n\t\t0,\n\t\t0,\n\t)\n\treturn tex, toErr(ret)\n}", "func IsTexture(texture uint32) bool {\n\tret := C.glowIsTexture(gpIsTexture, (C.GLuint)(texture))\n\treturn ret == TRUE\n}", "func IsTexture(texture uint32) bool {\n\tret := C.glowIsTexture(gpIsTexture, (C.GLuint)(texture))\n\treturn ret == TRUE\n}", "func TexImage2D(target Enum, level Int, internalformat Int, width Sizei, height Sizei, border Int, format Enum, kind Enum, pixels unsafe.Pointer) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tclevel, _ := (C.GLint)(level), cgoAllocsUnknown\n\tcinternalformat, _ := (C.GLint)(internalformat), cgoAllocsUnknown\n\tcwidth, _ := (C.GLsizei)(width), cgoAllocsUnknown\n\tcheight, _ := (C.GLsizei)(height), cgoAllocsUnknown\n\tcborder, _ := (C.GLint)(border), cgoAllocsUnknown\n\tcformat, _ := (C.GLenum)(format), cgoAllocsUnknown\n\tckind, _ := (C.GLenum)(kind), cgoAllocsUnknown\n\tcpixels, _ := (unsafe.Pointer)(unsafe.Pointer(pixels)), cgoAllocsUnknown\n\tC.glTexImage2D(ctarget, clevel, cinternalformat, cwidth, cheight, cborder, cformat, ckind, cpixels)\n}", "func BindTexture(target uint32, texture uint32) {\n C.glowBindTexture(gpBindTexture, (C.GLenum)(target), (C.GLuint)(texture))\n}", "func (gl *WebGL) TexImage2D(target GLEnum, level int, internalFormat GLEnum, format GLEnum, texelType GLEnum, pixels interface{}) {\n\tgl.context.Call(\"texImage2D\", target, level, internalFormat, format, texelType, pixels)\n}", "func FromImage(width uint16, height uint16, m image.Image) *Texture {\n\tb := m.Bounds()\n\n\t// m must be at least 8x8\n\tif b.Max.X < 8 || b.Max.Y < 8 {\n\t\tfmt.Println(errorsIncompatibleSize.Error())\n\t\treturn New(width, height)\n\t}\n\n\t// set pixels in current texture to the upper left 8x8 pixels of the provided image\n\tt := New(width, height)\n\tvar x, y uint16\n\tfor y = 0; y < 8; y++ {\n\t\tfor x = 0; x < 8; x++ {\n\t\t\tp := m.At(int(x), int(y))\n\t\t\tt.Set(x, y, rgb565.FromColor(p))\n\t\t}\n\t}\n\n\treturn t\n}", "func BindImageTexture(unit uint32, texture uint32, level int32, layered bool, layer int32, access uint32, format uint32) {\n\tC.glowBindImageTexture(gpBindImageTexture, (C.GLuint)(unit), (C.GLuint)(texture), (C.GLint)(level), (C.GLboolean)(boolToInt(layered)), (C.GLint)(layer), (C.GLenum)(access), (C.GLenum)(format))\n}", "func BindImageTexture(unit uint32, texture uint32, level int32, layered bool, layer int32, access uint32, format uint32) {\n\tC.glowBindImageTexture(gpBindImageTexture, (C.GLuint)(unit), (C.GLuint)(texture), (C.GLint)(level), (C.GLboolean)(boolToInt(layered)), (C.GLint)(layer), (C.GLenum)(access), (C.GLenum)(format))\n}", "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n\tC.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n\tC.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func BindTexture(target Enum, t Texture) {\n\tgl.BindTexture(uint32(target), t.Value)\n}", "func GetSprite(\n\twidth, height int,\n\txoffset, yoffset int,\n\tsrc *ebiten.Image,\n) (*ebiten.Image, error) {\n\tsprite, spriteErr := ebiten.NewImage(width, height, ebiten.FilterDefault)\n\tif spriteErr != nil {\n\t\treturn nil, spriteErr\n\t}\n\n\trect := image.Rect(xoffset, yoffset, xoffset+width, yoffset+height)\n\n\tops := &ebiten.DrawImageOptions{}\n\tops.SourceRect = &rect\n\tif drawErr := sprite.DrawImage(src, ops); drawErr != nil {\n\t\treturn nil, drawErr\n\t}\n\n\treturn sprite, nil\n}" ]
[ "0.75846326", "0.72301996", "0.71188384", "0.7064863", "0.69811064", "0.6970473", "0.6826661", "0.6795502", "0.67854035", "0.6785349", "0.66961575", "0.667603", "0.6584404", "0.6564846", "0.6516292", "0.6508075", "0.6506929", "0.6496524", "0.64878935", "0.64811677", "0.64811677", "0.6480218", "0.64657396", "0.64278555", "0.64158666", "0.6377344", "0.63768893", "0.6366292", "0.63385516", "0.63373864", "0.63084644", "0.6301142", "0.62617385", "0.62401974", "0.62392807", "0.61989725", "0.6190583", "0.618023", "0.61695623", "0.6164883", "0.61417305", "0.61417305", "0.61240613", "0.610933", "0.6098319", "0.6089327", "0.6089327", "0.60759395", "0.60566294", "0.60225046", "0.6018164", "0.5993187", "0.59856707", "0.5954269", "0.5911224", "0.58996713", "0.5872443", "0.58722854", "0.58580637", "0.58236", "0.58191144", "0.5813348", "0.5812581", "0.5787821", "0.5770427", "0.5770427", "0.5767287", "0.57603145", "0.5753236", "0.574645", "0.57332635", "0.572363", "0.56795675", "0.56795675", "0.5666089", "0.5644034", "0.56134754", "0.5601152", "0.55935395", "0.55727834", "0.5571573", "0.55599636", "0.5555261", "0.55338776", "0.5530972", "0.55307037", "0.5520964", "0.55207235", "0.55207235", "0.5480835", "0.5455413", "0.54450035", "0.54392785", "0.5411112", "0.5411112", "0.54031676", "0.54031676", "0.5392774", "0.53898567" ]
0.71088463
4
retrieve a subregion of a texture image from a texture object
func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) { C.glowGetTextureSubImage(gpGetTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpGetTextureSubImage, 12, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(xtype), uintptr(bufSize), uintptr(pixels))\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpGetCompressedTextureSubImage, 10, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(bufSize), uintptr(pixels), 0, 0)\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureSubImage(gpGetCompressedTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(bufSize), pixels)\n}", "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureSubImage(gpGetCompressedTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(bufSize), pixels)\n}", "func TextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall9(gpTextureSubImage2D, 9, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(width), uintptr(height), uintptr(format), uintptr(xtype), uintptr(pixels))\n}", "func (tex Texture) Sub(ctx gl.Context, lvl int, width int, height int, data []byte) {\n\tctx.TexSubImage2D(gl.TEXTURE_2D, lvl, 0, 0, width, height, gl.RGBA, gl.UNSIGNED_BYTE, data)\n\tif lvl > 0 {\n\t\tctx.GenerateMipmap(gl.TEXTURE_2D)\n\t}\n}", "func TextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage2D(gpTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage2D(gpTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexSubImage2D(target Enum, level int, x, y, width, height int, format, ty Enum, data []byte) {\n\tgl.TexSubImage2D(uint32(target), int32(level), int32(x), int32(y), int32(width), int32(height), uint32(format), uint32(ty), gl.Ptr(&data[0]))\n}", "func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpTextureSubImage3D, 11, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(xtype), uintptr(pixels), 0)\n}", "func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyTextureSubImage3D(gpCopyTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyTextureSubImage3D(gpCopyTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage3D(gpTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage3D(gpTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func CopyTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyTextureSubImage2D(gpCopyTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func CopyTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyTextureSubImage2D(gpCopyTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage2D(gpCompressedTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage2D(gpCompressedTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n\tsyscall.Syscall9(gpCopyTextureSubImage3D, 9, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(x), uintptr(y), uintptr(width), uintptr(height))\n}", "func TexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexSubImage2D(gpTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall9(gpTextureSubImage1D, 7, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(width), uintptr(format), uintptr(xtype), uintptr(pixels), 0, 0)\n}", "func (self *TileSprite) Texture() *Texture{\n return &Texture{self.Object.Get(\"texture\")}\n}", "func CopyTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, x int32, y int32, width int32, height int32) {\n\tsyscall.Syscall9(gpCopyTextureSubImage2D, 8, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(x), uintptr(y), uintptr(width), uintptr(height), 0)\n}", "func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTextureSubImage2D, 9, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(width), uintptr(height), uintptr(format), uintptr(imageSize), uintptr(data))\n}", "func TexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexSubImage2D(gpTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexSubImage2D(gpTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall9(gpTexSubImage2D, 9, uintptr(target), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(width), uintptr(height), uintptr(format), uintptr(xtype), uintptr(pixels))\n}", "func TextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage1D(gpTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTextureSubImage1D(gpTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage3D(gpCompressedTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage3D(gpCompressedTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexSubImage3D(gpTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpTexSubImage3D, 11, uintptr(target), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(xtype), uintptr(pixels), 0)\n}", "func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexSubImage3D(gpTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexSubImage3D(gpTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexSubImage2D(target Enum, level Int, xoffset Int, yoffset Int, width Sizei, height Sizei, format Enum, kind Enum, pixels unsafe.Pointer) {\n\tctarget, _ := (C.GLenum)(target), cgoAllocsUnknown\n\tclevel, _ := (C.GLint)(level), cgoAllocsUnknown\n\tcxoffset, _ := (C.GLint)(xoffset), cgoAllocsUnknown\n\tcyoffset, _ := (C.GLint)(yoffset), cgoAllocsUnknown\n\tcwidth, _ := (C.GLsizei)(width), cgoAllocsUnknown\n\tcheight, _ := (C.GLsizei)(height), cgoAllocsUnknown\n\tcformat, _ := (C.GLenum)(format), cgoAllocsUnknown\n\tckind, _ := (C.GLenum)(kind), cgoAllocsUnknown\n\tcpixels, _ := (unsafe.Pointer)(unsafe.Pointer(pixels)), cgoAllocsUnknown\n\tC.glTexSubImage2D(ctarget, clevel, cxoffset, cyoffset, cwidth, cheight, cformat, ckind, cpixels)\n}", "func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall12(gpCompressedTextureSubImage3D, 11, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(zoffset), uintptr(width), uintptr(height), uintptr(depth), uintptr(format), uintptr(imageSize), uintptr(data), 0)\n}", "func (p *Paletted) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &Paletted{\n\t\t\tPalette: p.Palette,\n\t\t}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &Paletted{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: p.Rect.Intersect(r),\n\t\tPalette: p.Palette,\n\t}\n}", "func CopyTextureSubImage1D(texture uint32, level int32, xoffset int32, x int32, y int32, width int32) {\n\tC.glowCopyTextureSubImage1D(gpCopyTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width))\n}", "func CopyTextureSubImage1D(texture uint32, level int32, xoffset int32, x int32, y int32, width int32) {\n\tC.glowCopyTextureSubImage1D(gpCopyTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width))\n}", "func TexSubImage2D(target GLEnum, level, xoffset, yoffset, width, height int32, format, xtype GLEnum, pixels []float32) {\n\tgl.TexSubImage2D(uint32(target), level, xoffset, yoffset, width, height, uint32(format), uint32(xtype), unsafe.Pointer(&pixels[0]))\n}", "func (self *TileSprite) TilingTexture() *PIXITexture{\n return &PIXITexture{self.Object.Get(\"tilingTexture\")}\n}", "func CopyTextureSubImage1D(texture uint32, level int32, xoffset int32, x int32, y int32, width int32) {\n\tsyscall.Syscall6(gpCopyTextureSubImage1D, 6, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(x), uintptr(y), uintptr(width))\n}", "func (p *RGBA) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &RGBA{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &RGBA{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func (p *Alpha16) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &Alpha16{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &Alpha16{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func (p *CMYK) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &CMYK{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &CMYK{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func (p *NRGBA) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &NRGBA{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &NRGBA{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func (self *TileSprite) TilePattern() *PIXITexture{\n return &PIXITexture{self.Object.Get(\"tilePattern\")}\n}", "func TexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n C.glowTexSubImage1D(gpTexSubImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (p *Image64) SubImage(r image.Rectangle) image.Image {\n\tr = r.Intersect(p.Rect)\n\tif r.Empty() {\n\t\treturn &Image64{}\n\t}\n\ti := (r.Min.Y-p.Rect.Min.Y)*p.Stride + (r.Min.X - p.Rect.Min.X)\n\treturn &Image64{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func (self *GameObjectCreator) RenderTexture2O(width int, height int) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height)}\n}", "func (p *Alpha) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &Alpha{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &Alpha{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func CompressedTextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage1D(gpCompressedTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func CompressedTextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tC.glowCompressedTextureSubImage1D(gpCompressedTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}", "func (p *RGBAf) SubImage(r image.Rectangle) *RGBAf {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &RGBAf{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &RGBAf{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func (p *FloatImage) SubImage(r image.Rectangle) image.Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &FloatImage{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &FloatImage{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func InvalidateTexSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32) {\n C.glowInvalidateTexSubImage(gpInvalidateTexSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth))\n}", "func TexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexSubImage1D(gpTexSubImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func TexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tC.glowTexSubImage1D(gpTexSubImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels)\n}", "func (p *RGBA64) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &RGBA64{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &RGBA64{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func CompressedTextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) {\n\tsyscall.Syscall9(gpCompressedTextureSubImage1D, 7, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(width), uintptr(format), uintptr(imageSize), uintptr(data), 0, 0)\n}", "func (self *TileSprite) GetBounds() *Rectangle{\n return &Rectangle{self.Object.Call(\"getBounds\")}\n}", "func (this *RectangleShape) GetTexture() *Texture {\n\treturn this.texture\n}", "func CopyTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, x int32, y int32, width int32, height int32) {\n C.glowCopyTexSubImage2D(gpCopyTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func TexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) {\n\tsyscall.Syscall9(gpTexSubImage1D, 7, uintptr(target), uintptr(level), uintptr(xoffset), uintptr(width), uintptr(format), uintptr(xtype), uintptr(pixels), 0, 0)\n}", "func (p *NRGBA64) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &NRGBA64{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &NRGBA64{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func (self *TileSprite) LoadTexture(key interface{}) {\n self.Object.Call(\"loadTexture\", key)\n}", "func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n C.glowGetBufferSubData(gpGetBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)\n}", "func (p *YCbCr) SubImage(r image.Rectangle) image.Image {\n\treturn ((*image.YCbCr)(p)).SubImage(r)\n}", "func (i *ImageBuf) ReadSubImage(subimage, miplevel int, force bool) error {\n\tret := i.ReadSubImageFormatCallback(subimage, miplevel, force, TypeUnknown, nil)\n\truntime.KeepAlive(i)\n\treturn ret\n}", "func (p *Gray16) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &Gray16{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &Gray16{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func (self *TileSprite) LoadTexture2O(key interface{}, frame interface{}, stopAnimation bool) {\n self.Object.Call(\"loadTexture\", key, frame, stopAnimation)\n}", "func (self *TileSprite) TintedTexture() *Canvas{\n return &Canvas{self.Object.Get(\"tintedTexture\")}\n}", "func (p *Gray) SubImage(r Rectangle) Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &Gray{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &Gray{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func (self *TileSprite) LoadTexture1O(key interface{}, frame interface{}) {\n self.Object.Call(\"loadTexture\", key, frame)\n}", "func (self *GameObjectCreator) RenderTexture1O(width int) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width)}\n}", "func (f *Font) GetTexture() *Texture { return f.texture }", "func (i *ImageBuf) SubImage() int {\n\tret := int(C.ImageBuf_subimage(i.ptr))\n\truntime.KeepAlive(i)\n\treturn ret\n}", "func (p *Gray16) SubImage(r image.Rectangle) image.Image {\n\tr = r.Intersect(p.Rect)\n\t// If r1 and r2 are image.Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &Gray16{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn &Gray16{\n\t\tPix: p.Pix[i:],\n\t\tStride: p.Stride,\n\t\tRect: r,\n\t}\n}", "func (bm Blendmap) Texture() *gl.Texture {\n\treturn bm.Map.id\n}", "func CopyImageSubData(srcName uint32, srcTarget uint32, srcLevel int32, srcX int32, srcY int32, srcZ int32, dstName uint32, dstTarget uint32, dstLevel int32, dstX int32, dstY int32, dstZ int32, srcWidth int32, srcHeight int32, srcDepth int32) {\n C.glowCopyImageSubData(gpCopyImageSubData, (C.GLuint)(srcName), (C.GLenum)(srcTarget), (C.GLint)(srcLevel), (C.GLint)(srcX), (C.GLint)(srcY), (C.GLint)(srcZ), (C.GLuint)(dstName), (C.GLenum)(dstTarget), (C.GLint)(dstLevel), (C.GLint)(dstX), (C.GLint)(dstY), (C.GLint)(dstZ), (C.GLsizei)(srcWidth), (C.GLsizei)(srcHeight), (C.GLsizei)(srcDepth))\n}", "func (self *GameObjectCreator) RenderTexture4O(width int, height int, key string, addToCache bool) *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\", width, height, key, addToCache)}\n}", "func (gstr *GlyphString) GetTexture() *Texture { return gstr.font.GetTexture() }", "func (self *GameObjectCreator) RenderTexture() *RenderTexture{\n return &RenderTexture{self.Object.Call(\"renderTexture\")}\n}", "func CopyTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyTexSubImage2D(gpCopyTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func CopyTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, x int32, y int32, width int32, height int32) {\n\tC.glowCopyTexSubImage2D(gpCopyTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetCompressedTextureImage, 4, uintptr(texture), uintptr(level), uintptr(bufSize), uintptr(pixels), 0, 0)\n}", "func CopyTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) {\n C.glowCopyTexSubImage3D(gpCopyTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func (p *Gray16) SubImage(r image.Rectangle) image.Image {\n\tr = r.Intersect(p.M.Rect)\n\t// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside\n\t// either r1 or r2 if the intersection is empty. Without explicitly checking for\n\t// this, the Pix[i:] expression below can panic.\n\tif r.Empty() {\n\t\treturn &Gray16{}\n\t}\n\ti := p.PixOffset(r.Min.X, r.Min.Y)\n\treturn new(Gray16).Init(\n\t\tp.M.Pix[i:],\n\t\tp.M.Stride,\n\t\tr,\n\t)\n}", "func TextureView(texture uint32, target uint32, origtexture uint32, internalformat uint32, minlevel uint32, numlevels uint32, minlayer uint32, numlayers uint32) {\n C.glowTextureView(gpTextureView, (C.GLuint)(texture), (C.GLenum)(target), (C.GLuint)(origtexture), (C.GLenum)(internalformat), (C.GLuint)(minlevel), (C.GLuint)(numlevels), (C.GLuint)(minlayer), (C.GLuint)(numlayers))\n}", "func (t *Three) Texture() *Texture {\n\tp := t.ctx.Get(\"Texture\")\n\treturn TextureFromJSObject(p)\n}", "func (this *RectangleShape) GetTextureRect() (rect IntRect) {\n\trect.fromC(C.sfRectangleShape_getTextureRect(this.cptr))\n\treturn\n}", "func InvalidateTexSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32) {\n\tC.glowInvalidateTexSubImage(gpInvalidateTexSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth))\n}", "func InvalidateTexSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32) {\n\tC.glowInvalidateTexSubImage(gpInvalidateTexSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth))\n}", "func (c *Compound) GetSub(s string) Modifiable {\n\tc.lock.RLock()\n\tm := c.subRenderables[s]\n\tc.lock.RUnlock()\n\treturn m\n}", "func (i *ImageBuf) ReadSubImageCallback(subimage, miplevel int, force bool, progress *ProgressCallback) error {\n\tret := i.ReadSubImageFormatCallback(subimage, miplevel, force, TypeUnknown, progress)\n\truntime.KeepAlive(i)\n\truntime.KeepAlive(progress)\n\treturn ret\n}", "func (self *Graphics) GenerateTexture2O(resolution int, scaleMode int) *Texture{\n return &Texture{self.Object.Call(\"generateTexture\", resolution, scaleMode)}\n}", "func CopyTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, x int32, y int32, width int32, height int32) {\n\tsyscall.Syscall9(gpCopyTexSubImage2D, 8, uintptr(target), uintptr(level), uintptr(xoffset), uintptr(yoffset), uintptr(x), uintptr(y), uintptr(width), uintptr(height), 0)\n}", "func CompressedTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) {\n C.glowCompressedTexSubImage2D(gpCompressedTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data)\n}" ]
[ "0.7286918", "0.6765079", "0.6692707", "0.6692707", "0.63971144", "0.63278204", "0.6294978", "0.6294978", "0.61546844", "0.6146687", "0.6085889", "0.6085889", "0.6063762", "0.6063762", "0.60630924", "0.60630924", "0.6002658", "0.6002658", "0.6002629", "0.59801304", "0.5979828", "0.5976279", "0.5968942", "0.59627885", "0.59118086", "0.59118086", "0.59003127", "0.58361894", "0.58361894", "0.58014643", "0.58014643", "0.5756564", "0.5714091", "0.57137614", "0.57137614", "0.57116365", "0.5704181", "0.56972057", "0.5648209", "0.5648209", "0.564377", "0.5638677", "0.5563626", "0.54939294", "0.5456206", "0.54511905", "0.54509544", "0.5426452", "0.5425556", "0.5375443", "0.53752077", "0.5370069", "0.53349453", "0.53349453", "0.53302395", "0.5317765", "0.530468", "0.53038037", "0.53038037", "0.53017116", "0.5298593", "0.52777845", "0.5252587", "0.5246097", "0.5243749", "0.5231103", "0.523012", "0.5229232", "0.52213776", "0.5219472", "0.5206309", "0.5195041", "0.51901066", "0.51876736", "0.5181594", "0.5141419", "0.5130851", "0.5128069", "0.5114853", "0.50767934", "0.5065605", "0.5059647", "0.50414073", "0.50204176", "0.50189", "0.50189", "0.5012632", "0.5001283", "0.4994916", "0.4994803", "0.49889365", "0.4985306", "0.49839246", "0.49839246", "0.4974046", "0.4945757", "0.4945672", "0.49456412", "0.4944927" ]
0.71932465
2
retrieve information about varying variables selected for transform feedback
func GetTransformFeedbackVarying(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) { C.glowGetTransformFeedbackVarying(gpGetTransformFeedbackVarying, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLsizei)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p Predicate) variables() []Variable {\n\tres := make([]Variable, 0, len(p.parameters))\n\tfor _, v := range p.parameters {\n\t\tif isVar(v.name) {\n\t\t\tres = append(res, v)\n\t\t}\n\t}\n\treturn res\n}", "func GetVariables() (int, int, int) {\n\treturn 1, 2, 3\n}", "func (o ValidatingAdmissionPolicySpecOutput) Variables() VariableArrayOutput {\n\treturn o.ApplyT(func(v ValidatingAdmissionPolicySpec) []Variable { return v.Variables }).(VariableArrayOutput)\n}", "func (tbl *STable) Variables() []interface{} {\n\treturn []interface{}{}\n}", "func (p *PKGBUILD) GetVariables() (out []string) {\n\tdone := make(map[string]bool)\n\tinfos := p.info.Variables()\n\tfor _, e := range infos {\n\t\tname := e.Name()\n\t\tif !done[name] {\n\t\t\tdone[name] = true\n\t\t\tout = append(out, name)\n\t\t}\n\t}\n\treturn\n}", "func (bo BinaryOperator) Variables() []string {\n\tset := make(map[string]struct{})\n\tfor _, x := range bo.Left.Variables() {\n\t\tset[x] = struct{}{}\n\t}\n\tfor _, x := range bo.Right.Variables() {\n\t\tset[x] = struct{}{}\n\t}\n\tattrs := make([]string, 0, len(set))\n\tfor x := range set {\n\t\tattrs = append(attrs, x)\n\t}\n\treturn attrs\n}", "func getComponentVariables(variable *model.Variable) []string {\n\tcomponentVars := []string{}\n\tif variable.IsGrouping() {\n\t\tif model.IsGeoCoordinate(variable.Grouping.GetType()) {\n\t\t\tgcg := variable.Grouping.(*model.GeoCoordinateGrouping)\n\t\t\t// Include X and Y col\n\t\t\tcomponentVars = append(componentVars, gcg.XCol, gcg.YCol)\n\n\t\t\t// include the grouping sub-ids if the ID is created from mutliple columns\n\t\t\tcomponentVars = append(componentVars, variable.Grouping.GetSubIDs()...)\n\t\t\tif variable.Grouping.GetIDCol() != \"\" {\n\t\t\t\t// include the grouping ID if present and there were no sub IDs\n\t\t\t\tcomponentVars = append(componentVars, variable.Grouping.GetIDCol())\n\t\t\t}\n\t\t} else if model.IsMultiBandImage(variable.Grouping.GetType()) {\n\t\t\trsg := variable.Grouping.(*model.MultiBandImageGrouping)\n\t\t\tcomponentVars = append(componentVars, rsg.BandCol, rsg.IDCol, rsg.ImageCol)\n\t\t} else if model.IsTimeSeries(variable.Grouping.GetType()) {\n\t\t\ttsg := variable.Grouping.(*model.TimeseriesGrouping)\n\t\t\tcomponentVars = append(componentVars, tsg.XCol, tsg.YCol)\n\t\t} else if model.IsGeoBounds(variable.Grouping.GetType()) {\n\t\t\tcomponentVars = append(componentVars, variable.Grouping.GetHidden()...)\n\t\t}\n\t} else {\n\t\tcomponentVars = append(componentVars, variable.Key)\n\t}\n\n\treturn componentVars\n}", "func (g *Game) Variables(sort *Sorting) (*VariableCollection, *Error) {\n\tif g.VariablesData == nil {\n\t\treturn fetchVariablesLink(firstLink(g, \"variables\"), nil, sort)\n\t}\n\n\treturn toVariableCollection(g.VariablesData), nil\n}", "func getvariables(fn *Node) []*Node {\n\tresult := make([]*Node, 0, 0)\n\tfor ll := fn.Func.Dcl; ll != nil; ll = ll.Next {\n\t\tif ll.N.Op == ONAME {\n\t\t\t// In order for GODEBUG=gcdead=1 to work, each bitmap needs\n\t\t\t// to contain information about all variables covered by the bitmap.\n\t\t\t// For local variables, the bitmap only covers the stkptrsize\n\t\t\t// bytes in the frame where variables containing pointers live.\n\t\t\t// For arguments and results, the bitmap covers all variables,\n\t\t\t// so we must include all the variables, even the ones without\n\t\t\t// pointers.\n\t\t\t//\n\t\t\t// The Node.opt field is available for use by optimization passes.\n\t\t\t// We use it to hold the index of the node in the variables array, plus 1\n\t\t\t// (so that 0 means the Node is not in the variables array).\n\t\t\t// Each pass should clear opt when done, but you never know,\n\t\t\t// so clear them all ourselves too.\n\t\t\t// The Node.curfn field is supposed to be set to the current function\n\t\t\t// already, but for some compiler-introduced names it seems not to be,\n\t\t\t// so fix that here.\n\t\t\t// Later, when we want to find the index of a node in the variables list,\n\t\t\t// we will check that n->curfn == curfn and n->opt > 0. Then n->opt - 1\n\t\t\t// is the index in the variables list.\n\t\t\tll.N.Opt = nil\n\n\t\t\t// The compiler doesn't emit initializations for zero-width parameters or results.\n\t\t\tif ll.N.Type.Width == 0 {\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\tll.N.Curfn = Curfn\n\t\t\tswitch ll.N.Class {\n\t\t\tcase PAUTO:\n\t\t\t\tif haspointers(ll.N.Type) {\n\t\t\t\t\tll.N.Opt = int32(len(result))\n\t\t\t\t\tresult = append(result, ll.N)\n\t\t\t\t}\n\n\t\t\tcase PPARAM, PPARAMOUT:\n\t\t\t\tll.N.Opt = int32(len(result))\n\t\t\t\tresult = append(result, ll.N)\n\t\t\t}\n\t\t}\n\t}\n\n\treturn result\n}", "func (a *Affine) Parameters() []*anydiff.Var {\n\treturn []*anydiff.Var{a.Scalers, a.Biases}\n}", "func Variables() {\n\tvar i int\n\tfmt.Println(i, c, python, java)\n}", "func (o ValidatingAdmissionPolicySpecPatchOutput) Variables() VariablePatchArrayOutput {\n\treturn o.ApplyT(func(v ValidatingAdmissionPolicySpecPatch) []VariablePatch { return v.Variables }).(VariablePatchArrayOutput)\n}", "func copyOriginalVariablesPsa() {\n\t// ---- transition probabilities -----\n\tfor i := 0; i < len(Inputs.TransitionProbabilities); i++ {\n\t\tInputs.TransitionProbabilities[i].Original_base = Inputs.TransitionProbabilities[i].Tp_base\n\t}\n\n\tvariableList := []*Variable{&AccessMonthlyProportionOfTrueNegativesThatAreTested, &AccessMonthlyProportionOfTruePositivesThatAreTested, &UsbTstSensitivity, &UsbTstSpecificity, &UsbQftSensitivity, &UsbQftSpecificity, &UsbTspotSensitivity, &UsbTspotSpecificity, &FbTstSensitivity, &FbTstSpecificity, &FbQftSensitivity, &FbQftSpecificity, &FbTspotSensitivity, &FbTspotSpecificity, &HivTstSensitivity, &HivTstSpecificity, &HivQftSensitivity, &HivQftSpecificity, &HivTspotSensitivity, &HivTspotSpecificity, &EsrdTstSensitivity, &EsrdTstSpecificity, &EsrdQftSensitivity, &EsrdQftSpecificity, &EsrdTspotSensitivity, &EsrdTspotSpecificity, &ProportionOfIndividualsThatEnrollInTreatmentAfterAPositiveTstLtbiTest, &ProportionOfIndividualsThatEnrollInTreatmentAfterAPositiveQftTspotTest, &NumberOfLtbiCasesCausedByOneActiveCase, &NumberOfSecondaryTbCasesCausedByOneActiveCase, &EfficacyOf9H, &EfficacyOf6H, &EfficacyOf4R, &EfficacyOf3Hp, &BaseRiskOfProgression, &ProportionOfLtbiTreated, &FastLatentProgression, &SlowLatentProgression, &TotalCostOfLtbiTreatment9H, &TotalCostOfLtbiTreatment6H, &TotalCostOfLtbiTreatment4R, &TotalCostOfLtbiTreatment3Hp, &ProportionOfStartedWhoCompleteTreatment9H, &ProportionOfStartedWhoCompleteTreatment6H, &ProportionOfStartedWhoCompleteTreatment4R, &ProportionOfStartedWhoCompleteTreatment3Hp, &CostOfTst, &CostOfQft, &CostOfTspot, &CostOfTstQft, &CostOfTstTspot, &CostOfActiveTbCase, &QalysGainedAvertingOneCaseOfActiveTb, &LtbiOverallAdjustmentStarting, &LtbiOverallFbAdjustmentStarting, &LtbiOverallUsbAdjustmentStarting, &LtbiAsianFbAdjustmentStarting, &LtbiAsianUsbAdjustmentStarting, &LtbiWhiteFbAdjustmentStarting, &LtbiWhiteUsbAdjustmentStarting, &LtbiHispanicFbAdjustmentStarting, &LtbiHispanicUsbAdjustmentStarting, &LtbiBlackFbAdjustmentStarting, &LtbiBlackUsbAdjustmentStarting, &LtbiOtherFbAdjustmentStarting, &LtbiOtherUsbAdjustmentStarting, &LtbiOverallAdjustment, &LtbiOverallFbAdjustment, &LtbiOverallUsbAdjustment, &LtbiAsianFbAdjustment, &LtbiAsianUsbAdjustment, &LtbiWhiteFbAdjustment, &LtbiWhiteUsbAdjustment, &LtbiHispanicFbAdjustment, &LtbiHispanicUsbAdjustment, &LtbiBlackFbAdjustment, &LtbiBlackUsbAdjustment, &LtbiOtherFbAdjustment, &LtbiOtherUsbAdjustment, &DiabetesPrevalenceAdjustment, &EsrdPrevalenceAdjustment, &SmokerPrevalenceAdjustment, &TnfAlphaPrevalenceAdjustment, &HivPrevalenceAdjustment, &TransplantsPrevalenceAdjustment}\n\n\tfor i := 0; i < len(variableList); i++ {\n\t\tvariableList[i].Original_base = variableList[i].Value\n\t}\n\n}", "func (l *Layer) Parameters() []*autofunc.Variable {\n\treturn []*autofunc.Variable{l.Biases, l.Scales}\n}", "func (s *Simplex) getSlackVariables() []int {\n\tvar slackVariables []int\n\tfor i, v := range s.Variables {\n\t\tisDecisionVariable := false\n\t\t//checks if variables are present in OF\n\t\tfor j := 0; j < len(s.LP.ObjectiveFunction.Variables) && !isDecisionVariable; j++ {\n\t\t\tif s.LP.ObjectiveFunction.Variables[j].Name == v {\n\t\t\t\tisDecisionVariable = true\n\t\t\t}\n\t\t}\n\t\tif !isDecisionVariable && !strings.HasPrefix(v, \"A\") {\n\t\t\tslackVariables = append(slackVariables, i)\n\t\t}\n\t}\n\treturn slackVariables\n}", "func (checker *CheckerType) VarNames() (obtained, expected string) {\n return \"obtained\", \"expected\"\n}", "func (sampler *Sampler)PickVariable(esd *ESD) {\t\n rr := rand.Intn(3)\n if rr <=0 && esd.hasParticipants() {\n sampler.Resample_p(esd, Pick_participant(esd.Label))\n } else if rr<=1 && len(esd.Label) < numTop {\n sampler.Resample_t(esd, pick_event(esd.Tau))\n } else{\n sampler.Resample_v(esd)\n }\n}", "func (dist Beta) NumVars() int {\n\treturn 1\n}", "func (f *Regressor) VarImp() []float64 {\n\timp := make([]float64, f.nFeatures)\n\n\tfor _, t := range f.Trees {\n\t\tfor inx, importance := range t.VarImp() {\n\t\t\timp[inx] += importance / float64(f.NTrees)\n\t\t}\n\t}\n\n\treturn imp\n}", "func (o ValidatingAdmissionPolicySpecPtrOutput) Variables() VariableArrayOutput {\n\treturn o.ApplyT(func(v *ValidatingAdmissionPolicySpec) []Variable {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.Variables\n\t}).(VariableArrayOutput)\n}", "func exportVariables(m interface{}) error {\n\t// Obtain the variable using the reflection library\n\t// so that we can export these variables ready for monitoring\n\tabstract := reflect.ValueOf(m)\n\tif abstract.Kind() == reflect.Ptr {\n\t\t// Need to access the variables within the struct\n\t\tabstract = abstract.Elem()\n\t}\n\tfor i := 0; i < abstract.NumField(); i++ {\n\t\tswitch abstract.Field(i).Kind() {\n\t\tcase reflect.Slice, reflect.Ptr, reflect.Map:\n\t\t\t// Do Nothing\n\t\tcase reflect.Struct:\n\t\t\tif !abstract.Field(i).IsValid() || !abstract.Field(i).Addr().CanInterface() {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tif err := exportVariables(abstract.Field(i).Addr().Interface()); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\tdefault:\n\t\t\tif tag, exist := abstract.Type().Field(i).Tag.Lookup(structTag); exist {\n\t\t\t\tvar variable types.Polymorph\n\t\t\t\tvariable.Set(reflect.Indirect(reflect.ValueOf(m)).FieldByName(abstract.Type().Field(i).Name))\n\t\t\t\texpvar.Publish(tag, variable)\n\t\t\t}\n\t\t}\n\t}\n\treturn nil\n}", "func GetTransformFeedbackVarying(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetTransformFeedbackVarying(gpGetTransformFeedbackVarying, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLsizei)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (c *STableField) Variables() []interface{} {\n\treturn nil\n}", "func (p *variables) Vars() []interface{} {\n\n\treturn p.vars\n}", "func (m *ResponseMatcher) Variables() map[string]jsonutil.Variable {\n\tif !m.parsed {\n\t\treturn nil\n\t}\n\treturn m.vars\n}", "func (tc *ThresholdCommand) NeedsVars() []string {\n\treturn []string{tc.ReferenceVar}\n}", "func (s *Instruction) Vars() []*Param {\n\t// Find all variables that are used by children of this instruction.\n\tunique := map[string]*Param{}\n\tfor _, i := range s.Children {\n\t\tif i.Protobuf != nil {\n\t\t\tfor _, v := range i.Protobuf.Vars() {\n\t\t\t\tunique[v.Name] = v\n\t\t\t}\n\t\t} else if i.IsInstructionGroup() {\n\t\t\tfor _, v := range i.Vars() {\n\t\t\t\tunique[v.Name] = v\n\t\t\t}\n\t\t}\n\t}\n\tinput := map[string]*Param{}\n\t// If this is a sub-subscenario instruction do not return input parameters as variables.\n\tif s.Type == SubScenarioInst {\n\t\tfor _, i := range s.Params {\n\t\t\tinput[i.Name] = i\n\t\t}\n\t}\n\tresult := []*Param{}\n\tfor _, v := range unique {\n\t\tif _, ok := input[v.Name]; !ok {\n\t\t\tresult = append(result, v)\n\t\t}\n\t}\n\treturn result\n}", "func (nv *NetView) VarsUpdate() {\n\tvl := nv.VarsLay()\n\tupdt := vl.UpdateStart()\n\tfor _, vbi := range *vl.Children() {\n\t\tvb := vbi.(*gi.Action)\n\t\tif vb.Text == nv.Var {\n\t\t\tvb.SetSelected()\n\t\t} else {\n\t\t\tvb.ClearSelected()\n\t\t}\n\t}\n\ttbar := nv.Toolbar()\n\tcmap := tbar.ChildByName(\"cmap\", 5).(*giv.ColorMapView)\n\tcmap.Map = nv.ColorMap\n\tcmap.UpdateSig()\n\tvl.UpdateEnd(updt)\n}", "func getRequiredVariables() map[string]interface{} {\n\tvariables := map[string]interface{}{\n\t\t\"competition\": competitionName,\n\t\t\"secret_name\": kaggleApiSecret,\n\t}\n\treturn variables\n}", "func (c *CompilerV2) GetVariables(t *taskfile.Task, call taskfile.Call) (*taskfile.Vars, error) {\n\tvr := varResolver{\n\t\tc: c,\n\t\tvars: compiler.GetEnviron(),\n\t}\n\tvr.vars.Set(\"TASK\", taskfile.Var{Static: t.Task})\n\n\tfor _, vars := range []*taskfile.Vars{c.Taskvars, c.TaskfileVars, call.Vars, t.Vars} {\n\t\tfor i := 0; i < c.Expansions; i++ {\n\t\t\tvr.merge(vars)\n\t\t}\n\t}\n\treturn vr.vars, vr.err\n}", "func (o ValidatingAdmissionPolicySpecPatchPtrOutput) Variables() VariablePatchArrayOutput {\n\treturn o.ApplyT(func(v *ValidatingAdmissionPolicySpecPatch) []VariablePatch {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.Variables\n\t}).(VariablePatchArrayOutput)\n}", "func (lb *Leaderboard) Variables() *VariableCollection {\n\treturn toVariableCollection(lb.VariablesData)\n}", "func (c *Context) Variables() map[string]interface{} {\n\treturn c.variables\n}", "func Variables(vars map[string]string) ([]string, error) {\n\tvar errs error\n\n\tallKeys := make(map[string]bool)\n\n\tfor k := range vars {\n\t\tallKeys[k] = true\n\t}\n\n\tfor k := range env.Parse() {\n\t\tallKeys[k] = true\n\t}\n\n\tret := make([]string, 0, len(allKeys))\n\tfor k := range allKeys {\n\t\tv, err := GetVar(k, vars)\n\t\tif err != nil {\n\t\t\terrs = multierror.Append(errs, err)\n\t\t}\n\t\tret = append(ret, fmt.Sprintf(\"%s=%s\", k, v))\n\t}\n\treturn ret, nil\n}", "func (t Task) Variables(\n\tctx context.Context,\n\tafter *string,\n\tbefore *string,\n\tfirst *int,\n\tlast *int,\n) (VariableConnection, error) {\n\treturn PaginateVariableIDSliceContext(ctx, t.VariableIDs, after, before, first, last)\n}", "func ObtainImportantVariables(ctx context.Context, db *sql.DB, needTiDBVars bool) map[string]string {\n\tvar query strings.Builder\n\tquery.WriteString(\"SHOW VARIABLES WHERE Variable_name IN ('\")\n\tfirst := true\n\tfor k := range common.DefaultImportantVariables {\n\t\tif first {\n\t\t\tfirst = false\n\t\t} else {\n\t\t\tquery.WriteString(\"','\")\n\t\t}\n\t\tquery.WriteString(k)\n\t}\n\tif needTiDBVars {\n\t\tfor k := range common.DefaultImportVariablesTiDB {\n\t\t\tquery.WriteString(\"','\")\n\t\t\tquery.WriteString(k)\n\t\t}\n\t}\n\tquery.WriteString(\"')\")\n\texec := common.SQLWithRetry{DB: db, Logger: log.FromContext(ctx)}\n\tkvs, err := exec.QueryStringRows(ctx, \"obtain system variables\", query.String())\n\tif err != nil {\n\t\t// error is not fatal\n\t\tlog.FromContext(ctx).Warn(\"obtain system variables failed, use default variables instead\", log.ShortError(err))\n\t}\n\n\t// convert result into a map. fill in any missing variables with default values.\n\tresult := make(map[string]string, len(common.DefaultImportantVariables)+len(common.DefaultImportVariablesTiDB))\n\tfor _, kv := range kvs {\n\t\tresult[kv[0]] = kv[1]\n\t}\n\n\tsetDefaultValue := func(res map[string]string, vars map[string]string) {\n\t\tfor k, defV := range vars {\n\t\t\tif _, ok := res[k]; !ok {\n\t\t\t\tres[k] = defV\n\t\t\t}\n\t\t}\n\t}\n\tsetDefaultValue(result, common.DefaultImportantVariables)\n\tif needTiDBVars {\n\t\tsetDefaultValue(result, common.DefaultImportVariablesTiDB)\n\t}\n\n\treturn result\n}", "func (dec *Decoder) Variables(vars Variables) {\n\tdec.d.vars = vars\n}", "func variableSetFromTerms(t []plandef.Term) variableSet {\n\tvar r variableSet\n\tfor i, t := range t {\n\t\tswitch vt := t.(type) {\n\t\tcase *plandef.Variable:\n\t\t\tr[i] = vt\n\t\tcase *plandef.Binding:\n\t\t\tr[i] = vt.Var\n\t\t}\n\t}\n\treturn r\n}", "func Variables(t Term) ps.Map {\n\tnames := ps.NewMap()\n\tswitch t.Type() {\n\tcase AtomType,\n\t\tFloatType,\n\t\tIntegerType,\n\t\tErrorType:\n\t\treturn names\n\tcase CompoundType:\n\t\tx := t.(*Compound)\n\t\tif x.Arity() == 0 {\n\t\t\treturn names\n\t\t} // no variables in an atom\n\t\tfor _, arg := range x.Arguments() {\n\t\t\tinnerNames := Variables(arg)\n\t\t\tinnerNames.ForEach(func(key string, val interface{}) {\n\t\t\t\tnames = names.Set(key, val)\n\t\t\t})\n\t\t}\n\t\treturn names\n\tcase VariableType:\n\t\tx := t.(*Variable)\n\t\treturn names.Set(x.Name, x)\n\t}\n\tpanic(\"Unexpected term implementation\")\n}", "func (target Target) Variations() []blueprint.Variation {\n\treturn []blueprint.Variation{\n\t\t{Mutator: \"os\", Variation: target.OsVariation()},\n\t\t{Mutator: \"arch\", Variation: target.ArchVariation()},\n\t}\n}", "func ParseEvidence(filename string) (map[int]learn.Variable, []map[int]int, []int) {\n\tfile, err := os.Open(filename)\n\tif err != nil {\n\t\tfmt.Printf(\"Error. Could not open file [%s].\\n\", filename)\n\t\tpanic(err)\n\t}\n\tdefer file.Close()\n\n\tsc := make(map[int]learn.Variable)\n\n\tscanner := bufio.NewScanner(file)\n\n\tvar line string\n\n\t// Get labels.\n\tscanner.Scan()\n\tline = scanner.Text()\n\tnslabels := 0\n\tfmt.Sscanf(line, \"labels %d\", &nslabels)\n\tslabels := make([]int, nslabels)\n\ttokens := strings.Split(line, \" \")\n\tfor i := 0; i < nslabels; i++ {\n\t\tslabels[i], err = strconv.Atoi(tokens[i+2])\n\t\tif err != nil {\n\t\t\tfmt.Printf(\"Invalid string \\\"%s\\\" found in data file [%s].\\n\", tokens[i], filename)\n\t\t\tpanic(err)\n\t\t}\n\t}\n\n\t// Get variable definitions.\n\tfor {\n\t\tif !scanner.Scan() {\n\t\t\tbreak\n\t\t}\n\t\tline = scanner.Text()\n\t\tif line[0] != 'v' {\n\t\t\tbreak\n\t\t}\n\t\tvar varid, cats int\n\t\tfmt.Sscanf(line, \"var %d %d\", &varid, &cats)\n\t\tsc[varid] = learn.Variable{Varid: varid, Categories: cats}\n\t}\n\n\tn := len(sc)\n\tvar data [][]int\n\n\tregex := regexp.MustCompile(\"[\\\\,\\\\s]+\")\n\tk := 0\n\t// We assume complete data.\n\tfor i := 0; scanner.Scan(); i++ {\n\t\tdata = append(data, make([]int, n))\n\t\ts := regex.Split(line, -1)\n\t\tfor j := 0; j < n; j++ {\n\t\t\tdata[i][j], err = strconv.Atoi(s[j])\n\t\t\tif err != nil {\n\t\t\t\tfmt.Printf(\"Invalid string \\\"%s\\\" found in data file [%s].\\n\", s[j], filename)\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t}\n\t\tline = scanner.Text()\n\t\tk++\n\t}\n\n\tdata = append(data, make([]int, n))\n\ts := regex.Split(line, -1)\n\tfor i := 0; i < n; i++ {\n\t\tdata[k][i], err = strconv.Atoi(s[i])\n\t\tif err != nil {\n\t\t\tfmt.Printf(\"Invalid string \\\"%s\\\" found in data file [%s].\\n\", s[i], filename)\n\t\t\tpanic(err)\n\t\t}\n\t}\n\n\tm, n := len(data), len(data[0])\n\tcvntmap := make([]map[int]int, m)\n\tfor i := 0; i < m; i++ {\n\t\tcvntmap[i] = make(map[int]int)\n\t\tfor j := 0; j < n; j++ {\n\t\t\tcvntmap[i][j] = data[i][j]\n\t\t}\n\t}\n\n\treturn sc, cvntmap, slabels\n}", "func (l *Loader) Variables() map[string]interface{} {\n\treturn l.cache.BuildContext().Variables\n}", "func (s *BaseLittleDuckListener) EnterVars_more(ctx *Vars_moreContext) {}", "func printvars(name string, bv Bvec, vars []*Node) {\n\tfmt.Printf(\"%s:\", name)\n\tfor i, node := range vars {\n\t\tif bvget(bv, int32(i)) != 0 {\n\t\t\tprintnode(node)\n\t\t}\n\t}\n\tfmt.Printf(\"\\n\")\n}", "func gatherInfo(prefix string, spec interface{}, env map[string]string, isInsideStructSlice, forUsage bool) ([]varInfo, error) {\n\ts := reflect.ValueOf(spec)\n\n\tif s.Kind() != reflect.Ptr {\n\t\treturn nil, ErrInvalidSpecification\n\t}\n\ts = s.Elem()\n\tif s.Kind() != reflect.Struct {\n\t\treturn nil, ErrInvalidSpecification\n\t}\n\ttypeOfSpec := s.Type()\n\n\t// over allocate an info array, we will extend if needed later\n\tinfos := make([]varInfo, 0, s.NumField())\n\tfor i := 0; i < s.NumField(); i++ {\n\t\tf := s.Field(i)\n\t\tftype := typeOfSpec.Field(i)\n\t\tif !f.CanSet() || isTrue(ftype.Tag.Get(\"ignored\")) {\n\t\t\tcontinue\n\t\t}\n\n\t\tfor f.Kind() == reflect.Ptr {\n\t\t\tif f.IsNil() {\n\t\t\t\tif f.Type().Elem().Kind() != reflect.Struct {\n\t\t\t\t\t// nil pointer to a non-struct: leave it alone\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\t// nil pointer to struct: create a zero instance\n\t\t\t\tf.Set(reflect.New(f.Type().Elem()))\n\t\t\t}\n\t\t\tf = f.Elem()\n\t\t}\n\n\t\t// Capture information about the config variable\n\t\tinfo := varInfo{\n\t\t\tName: ftype.Name,\n\t\t\tField: f,\n\t\t\tTags: ftype.Tag,\n\t\t\tAlt: strings.ToUpper(ftype.Tag.Get(\"envconfig\")),\n\t\t}\n\n\t\t// Default to the field name as the env var name (will be upcased)\n\t\tinfo.Key = info.Name\n\n\t\t// Best effort to un-pick camel casing as separate words\n\t\tif isTrue(ftype.Tag.Get(\"split_words\")) {\n\t\t\twords := gatherRegexp.FindAllStringSubmatch(ftype.Name, -1)\n\t\t\tif len(words) > 0 {\n\t\t\t\tvar name []string\n\t\t\t\tfor _, words := range words {\n\t\t\t\t\tif m := acronymRegexp.FindStringSubmatch(words[0]); len(m) == 3 {\n\t\t\t\t\t\tname = append(name, m[1], m[2])\n\t\t\t\t\t} else {\n\t\t\t\t\t\tname = append(name, words[0])\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tinfo.Key = strings.Join(name, \"_\")\n\t\t\t}\n\t\t}\n\t\tif info.Alt != \"\" {\n\t\t\tinfo.Key = info.Alt\n\t\t\tif isInsideStructSlice {\n\t\t\t\t// we don't want this to be read, since we're inside of a struct slice,\n\t\t\t\t// each slice element will have same Alt and thus they would overwrite themselves\n\t\t\t\tinfo.Alt = \"\"\n\t\t\t}\n\t\t}\n\t\tif prefix != \"\" {\n\t\t\tinfo.Key = fmt.Sprintf(\"%s_%s\", prefix, info.Key)\n\t\t}\n\t\tinfo.Key = strings.ToUpper(info.Key)\n\n\t\tif decoderFrom(f) != nil || setterFrom(f) != nil || textUnmarshaler(f) != nil || binaryUnmarshaler(f) != nil {\n\t\t\t// there's a decoder defined, no further processing needed\n\t\t\tinfos = append(infos, info)\n\t\t} else if f.Kind() == reflect.Struct {\n\t\t\t// it's a struct without a specific decoder set\n\t\t\tinnerPrefix := prefix\n\t\t\tif !ftype.Anonymous {\n\t\t\t\tinnerPrefix = info.Key\n\t\t\t}\n\n\t\t\tembeddedPtr := f.Addr().Interface()\n\t\t\tembeddedInfos, err := gatherInfo(innerPrefix, embeddedPtr, env, isInsideStructSlice, forUsage)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t\tinfos = append(infos, embeddedInfos...)\n\t\t} else if arePointers := isSliceOfStructPtrs(f); arePointers || isSliceOfStructs(f) {\n\t\t\t// it's a slice of structs\n\t\t\tvar (\n\t\t\t\tl int\n\t\t\t\tprefixFormat prefixFormatter\n\t\t\t)\n\t\t\tif forUsage {\n\t\t\t\t// it's just for usage so we don't know how many of them can be out there\n\t\t\t\t// so we'll print one info with a generic [N] index\n\t\t\t\tl = 1\n\t\t\t\tprefixFormat = usagePrefix{info.Key, \"[N]\"}\n\t\t\t} else {\n\t\t\t\tvar err error\n\t\t\t\t// let's find out how many are defined by the env vars, and gather info of each one of them\n\t\t\t\tif l, err = sliceLen(info.Key, env); err != nil {\n\t\t\t\t\treturn nil, err\n\t\t\t\t}\n\t\t\t\tprefixFormat = processPrefix(info.Key)\n\t\t\t\t// if no keys, check the alternative keys, unless we're inside of a slice\n\t\t\t\tif l == 0 && info.Alt != \"\" && !isInsideStructSlice {\n\t\t\t\t\tif l, err = sliceLen(info.Alt, env); err != nil {\n\t\t\t\t\t\treturn nil, err\n\t\t\t\t\t}\n\t\t\t\t\tprefixFormat = processPrefix(info.Alt)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tf.Set(reflect.MakeSlice(f.Type(), l, l))\n\t\t\tfor i := 0; i < l; i++ {\n\t\t\t\tvar structPtrValue reflect.Value\n\n\t\t\t\tif arePointers {\n\t\t\t\t\tf.Index(i).Set(reflect.New(f.Type().Elem().Elem()))\n\t\t\t\t\tstructPtrValue = f.Index(i)\n\t\t\t\t} else {\n\t\t\t\t\tstructPtrValue = f.Index(i).Addr()\n\t\t\t\t}\n\n\t\t\t\tembeddedInfos, err := gatherInfo(prefixFormat.format(i), structPtrValue.Interface(), env, true, forUsage)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn nil, err\n\t\t\t\t}\n\t\t\t\tinfos = append(infos, embeddedInfos...)\n\t\t\t}\n\t\t} else {\n\t\t\tinfos = append(infos, info)\n\t\t}\n\t}\n\treturn infos, nil\n}", "func (p Parameter) viewParameter(viewrule bool) {\n\tfmt.Println(\"Parameter-----\")\n\tfmt.Println(\"Delay:\", p.Delay, \"Arity:\", p.Arity)\n\n\tfmt.Print(\"Transcript=\")\n\tfmt.Print(p.Transcript.Arr)\n\tfmt.Println(\"\")\n\n\tif viewrule {\n\t\tfmt.Println(\"Ruleset={\")\n\t\tfor b1 := 1; b1 <= 132; b1++ {\n\t\t\tr2s, ok := p.Rule.rule[strconv.Itoa(b1)]\n\t\t\tif ok {\n\t\t\t\tsort.Strings(r2s)\n\t\t\t\tfor _, r2 := range r2s {\n\t\t\t\t\tb2, ok2 := strconv.Atoi(r2)\n\t\t\t\t\tif ok2 == nil && b1 <= b2 {\n\t\t\t\t\t\tfmt.Println(\"(\" + strconv.Itoa(b1) + \",\" + strconv.Itoa(b2) + \"),\")\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfmt.Println(\"}----end\")\n\t\t/*\n\t\t\tfmt.Println(\"Ruleset={\")\n\t\t\tfor b1, v := range p.Rule.rule {\n\t\t\t\tfor _, b2 := range v {\n\t\t\t\t\tfmt.Println(\" -(\", b1, b2, \")\")\n\t\t\t\t}\n\t\t\t}\n\t\t\tfmt.Println(\"}----end\")\n\t\t*/\n\t}\n}", "func TestFeedback_Vars(t *testing.T) {\n\tt.Parallel()\n\n\tfb := NewFeedback()\n\n\tfb.Var(\"foo\", \"bar\")\n\tif fb.Vars()[\"foo\"] != \"bar\" {\n\t\tt.Fatalf(\"Feedback var has wrong value. Expected=bar, Received=%v\", fb.Vars()[\"foo\"])\n\t}\n\n\twant := `{\"variables\":{\"foo\":\"bar\"},\"items\":[]}`\n\tgot, err := json.Marshal(fb)\n\tassert.Nil(t, err, \"marshal Feedback failed\")\n\tassert.Equal(t, string(got), want, \"unexpected value\")\n\n\t// Top-level vars are inherited\n\tit := fb.NewItem(\"title\")\n\tassert.Equal(t, \"bar\", it.Vars()[\"foo\"], \"unexpected var\")\n\n\t// Modifier inherits Item and top-level vars\n\tit.Var(\"baz\", \"qux\")\n\tm := it.NewModifier(\"cmd\")\n\tassert.Equal(t, \"qux\", m.Vars()[\"baz\"], \"unexpected var\")\n\tassert.Equal(t, \"bar\", m.Vars()[\"foo\"], \"unexpected var\")\n}", "func ReportVariables(dirout, fnkey string, sets SetsOfVars, genPDF bool) {\n\n\t// table header\n\tbuf := new(bytes.Buffer)\n\tio.Ff(buf, `\n\\begin{table} \\centering\n\\caption{Random variables.}\n\n\\scriptsize\n\n\\begin{tabular}[c]{ccccccc} \\toprule\nname & var & $\\mu$ & $\\sigma$ & D$^{\\star}$ & min & max \\\\ \\hline\n`)\n\n\t// generate table\n\tfor i, set := range sets {\n\t\tfor j, v := range set.Vars {\n\t\t\tkey := \"\"\n\t\t\tif j == 0 {\n\t\t\t\tkey = strings.Replace(set.Name, \"/\", \"-\", -1)\n\t\t\t\tkey = strings.Replace(key, \"_\", \"-\", -1)\n\t\t\t}\n\t\t\ttxtM, txtS := \"-\", \"-\"\n\t\t\tif v.D != \"U\" {\n\t\t\t\ttxtM = \"$\" + io.TexNum(\"\", v.M, true) + \"$\"\n\t\t\t\ttxtS = \"$\" + io.TexNum(\"\", v.S, true) + \"$\"\n\t\t\t}\n\t\t\tio.Ff(buf, `%s & $x_{%d}$ & %s & %s & %s & $%s$ & $%s$ \\\\`, key, j, txtM, txtS, v.D, io.TexNum(\"\", v.Min, true), io.TexNum(\"\", v.Max, true))\n\t\t\tio.Ff(buf, \"\\n\")\n\t\t}\n\t\tif i < len(sets)-1 {\n\t\t\tio.Ff(buf, `\\multicolumn{7}{l}{} \\\\`)\n\t\t\tio.Ff(buf, \"\\n\")\n\t\t} else {\n\t\t\tio.Ff(buf, \" \\\\hline\\n\\n\")\n\t\t}\n\t}\n\n\t// table footer\n\tio.Ff(buf, `\n\\multicolumn{7}{p{7cm}}{\n\t\\scriptsize\n\t$^{\\star}$N:Normal, L:Lognormal, G:Gumbel, F:Frechet, U:Uniform\n} \\\\\n\n\\bottomrule\n\\end{tabular}\n\\label{tab:prms%s}\n\\end{table}\n`, fnkey)\n\n\t// write table\n\ttex := fnkey + \".tex\"\n\tio.WriteFileVD(dirout, tex, buf)\n\n\t// generate PDF\n\tif genPDF {\n\n\t\t// header\n\t\theader := new(bytes.Buffer)\n\t\tio.Ff(header, `\\documentclass[a4paper,twocolumn]{article}\n\n\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{booktabs}\n\n\\usepackage[margin=1.5cm,footskip=0.5cm]{geometry}\n\n\\title{Gosl-rnd Report: Random Variables}\n\\author{The Author}\n\n\\begin{document}`)\n\n\t\t// footer\n\t\tfooter := new(bytes.Buffer)\n\t\tio.Ff(footer, `\n\\end{document}`)\n\n\t\t// write temporary TeX file\n\t\ttex = \"tmp_\" + tex\n\t\tio.WriteFileD(dirout, tex, header, buf, footer)\n\n\t\t// run pdflatex\n\t\tio.RunCmd(false, \"pdflatex\", \"-interaction=batchmode\", \"-halt-on-error\", \"-output-directory=\"+dirout, tex)\n\t\tio.PfBlue(\"file <%s/tmp_%s.pdf> generated\\n\", dirout, fnkey)\n\t}\n}", "func GetTransformFeedbackiv(xfb uint32, pname uint32, param *int32) {\n\tsyscall.Syscall(gpGetTransformFeedbackiv, 3, uintptr(xfb), uintptr(pname), uintptr(unsafe.Pointer(param)))\n}", "func someFunc(argv [] string) {\r\n if(len(argv)!=3) {\r\n fmt.Println(\"Not a correct input\")\r\n customPause()\r\n return\r\n }\r\n\r\n //Getting what variables are to be printed\r\n some := selVar(argv[1])\r\n\r\n //Getting the value of samples to print\r\n tmp, err := strconv.Atoi(argv[2])\r\n check(err)\r\n\r\n //Printing Variables and values\r\n printVar(some, tmp)\r\n customPause()\r\n}", "func (c *Comic) getRequiredVarNames(commandName string) (requiredVarNames []string) {\n\tfor _, key := range c.vip.AllKeys() {\n\t\tif requiredKeyName, ok := getRequiredKeyName(key, commandName); ok {\n\t\t\trequiredVarNames = append(requiredVarNames, requiredKeyName)\n\t\t}\n\t}\n\n\treturn\n}", "func freevars(s selection, args []string) {\n\tfmt.Println(runWithStdin(s.archive(), \"guru\", \"-modified\", \"freevars\", s.sel()))\n}", "func GetVars(p Provider) Values {\n\treturn p.getVars()\n}", "func (v *Values) GetVariables() map[string]*Variable {\n\treturn v.m[VarKey].(map[string]*Variable)\n}", "func (obj *alpha) Variable() string {\n\treturn obj.variable\n}", "func getVar(vttablet *cluster.Vttablet) (map[string]interface{}, error) {\n\tresp, err := http.Get(fmt.Sprintf(\"http://%s:%d/debug/vars\", vttablet.VttabletProcess.TabletHostname, vttablet.HTTPPort))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif resp.StatusCode == 200 {\n\t\tresultMap := make(map[string]interface{})\n\t\trespByte, _ := ioutil.ReadAll(resp.Body)\n\t\terr := json.Unmarshal(respByte, &resultMap)\n\t\treturn resultMap, err\n\t}\n\treturn nil, nil\n}", "func getDBVarsMeta(ctx context.Context, log lg.Log, db sqlz.DB) ([]source.DBVar, error) {\n\tvar dbVars []source.DBVar\n\n\trows, err := db.QueryContext(ctx, \"SHOW VARIABLES\")\n\tif err != nil {\n\t\treturn nil, errz.Err(err)\n\t}\n\tdefer log.WarnIfCloseError(rows)\n\n\tfor rows.Next() {\n\t\tvar dbVar source.DBVar\n\t\terr = rows.Scan(&dbVar.Name, &dbVar.Value)\n\t\tif err != nil {\n\t\t\treturn nil, errz.Err(err)\n\t\t}\n\t\tdbVars = append(dbVars, dbVar)\n\t}\n\terr = rows.Err()\n\tif err != nil {\n\t\treturn nil, errz.Err(err)\n\t}\n\n\treturn dbVars, nil\n}", "func (obj *Doc) GetFavoriteVariables(ctx context.Context) ([]string, error) {\n\tresult := &struct {\n\t\tNames []string `json:\"qNames\"`\n\t}{}\n\terr := obj.RPC(ctx, \"GetFavoriteVariables\", result)\n\treturn result.Names, err\n}", "func VEXTRACTPS(i, x, mr operand.Op) { ctx.VEXTRACTPS(i, x, mr) }", "func (s *Scenario) TransformVars(vars []float64) (map[string][]Build, error) {\n\terr := s.Validate()\n\tif err != nil {\n\t\treturn nil, err\n\t} else if len(vars) != s.NVars() {\n\t\treturn nil, fmt.Errorf(\"wrong number of vars: want %v, got %v\", s.NVars(), len(vars))\n\t}\n\n\tvars = s.splice(vars)\n\n\tup := s.UpperBounds()\n\tlow := s.LowerBounds()\n\tfor i, v := range vars {\n\t\tif v < low[i] {\n\t\t\tvars[i] = low[i]\n\t\t}\n\t\tif v > up[i] {\n\t\t\tvars[i] = up[i]\n\t\t}\n\t}\n\n\tbuilds := map[string][]Build{}\n\tfor _, b := range s.StartBuilds {\n\t\tbuilds[b.Proto] = append(builds[b.Proto], b)\n\t}\n\n\tvarfacs, implicitreactor := s.periodFacOrder()\n\tfor i, t := range s.periodTimes() {\n\t\tminpow := s.MinPower[i]\n\t\tmaxpow := s.MaxPower[i]\n\t\tcurrpower := s.PowerCap(builds, t)\n\t\tpowervar := vars[i*s.NVarsPerPeriod()]\n\n\t\tlowerbound := math.Max(currpower, minpow)\n\t\tpowerrange := math.Max(0, maxpow-lowerbound)\n\t\tnewpower := powervar*powerrange + lowerbound\n\t\tcaptobuild := math.Max(newpower-currpower, 0)\n\n\t\t// handle reactor builds\n\t\tcapleft := captobuild\n\t\tj := 1 // skip j = 0 which is the power cap variable\n\t\tfor j = 1; j < s.NVarsPerPeriod(); j++ {\n\t\t\tval := vars[i*s.NVarsPerPeriod()+j]\n\t\t\tfac := varfacs[j]\n\t\t\tif fac.Cap > 0 && fac.Available(t) {\n\t\t\t\twantcap := val * capleft\n\t\t\t\tnbuild := int(math.Max(0, math.Floor(wantcap/fac.Cap+0.5)))\n\t\t\t\tcapleft -= float64(nbuild) * fac.Cap\n\n\t\t\t\tif nbuild > 0 {\n\t\t\t\t\tbuilds[fac.Proto] = append(builds[fac.Proto], Build{\n\t\t\t\t\t\tTime: t,\n\t\t\t\t\t\tProto: fac.Proto,\n\t\t\t\t\t\tN: nbuild,\n\t\t\t\t\t\tfac: fac,\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// done processing reactors (except last one)\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\n\t\t// handle last (implicit) reactor\n\t\tfac := implicitreactor\n\t\tif fac.Available(t) {\n\t\t\twantcap := capleft\n\t\t\tnbuild := int(math.Max(0, math.Floor(wantcap/fac.Cap+0.5)))\n\n\t\t\tif nbuild > 0 {\n\t\t\t\tbuilds[fac.Proto] = append(builds[fac.Proto], Build{\n\t\t\t\t\tTime: t,\n\t\t\t\t\tProto: fac.Proto,\n\t\t\t\t\tN: nbuild,\n\t\t\t\t\tfac: fac,\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\n\t\t// handle other facilities\n\t\tfor ; j < s.NVarsPerPeriod(); j++ {\n\t\t\tfacfrac := vars[i*s.NVarsPerPeriod()+j]\n\t\t\tfac := varfacs[j]\n\t\t\tif !fac.Available(t) { // skip\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\thaven := float64(s.naliveproto(builds, t, fac.Proto))\n\t\t\tneedn := facfrac * float64(s.naliveproto(builds, t, fac.FracOfProtos...))\n\t\t\twantn := math.Max(0, needn-haven)\n\t\t\tnbuild := int(math.Floor(wantn + 0.5))\n\t\t\tif nbuild > 0 {\n\t\t\t\tbuilds[fac.Proto] = append(builds[fac.Proto], Build{\n\t\t\t\t\tTime: t,\n\t\t\t\t\tProto: fac.Proto,\n\t\t\t\t\tN: nbuild,\n\t\t\t\t\tfac: fac,\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\t}\n\n\ts.Builds = nil\n\tfor _, fac := range s.Facs {\n\t\tblds := builds[fac.Proto]\n\t\tfor _, b := range blds {\n\t\t\ts.Builds = append(s.Builds, b)\n\t\t}\n\t}\n\n\treturn builds, nil\n}", "func (a *AllColumnsSelector) Variable() {}", "func GetVariableAudit(db gorp.SqlExecutor, key string) ([]sdk.VariableAudit, error) {\n\taudits := []sdk.VariableAudit{}\n\tquery := `\n\t\tSELECT project_variable_audit_old.id, project_variable_audit_old.versionned, project_variable_audit_old.data, project_variable_audit_old.author\n\t\tFROM project_variable_audit_old\n\t\tJOIN project ON project.id = project_variable_audit_old.project_id\n\t\tWHERE project.projectkey = $1\n\t\tORDER BY project_variable_audit_old.versionned DESC\n\t`\n\trows, err := db.Query(query, key)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tdefer rows.Close()\n\tfor rows.Next() {\n\t\tvar audit sdk.VariableAudit\n\t\tvar data string\n\t\terr := rows.Scan(&audit.ID, &audit.Versionned, &data, &audit.Author)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tvar vars []sdk.Variable\n\t\terr = sdk.JSONUnmarshal([]byte(data), &vars)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\taudit.Variables = vars\n\t\tfor i := range audit.Variables {\n\t\t\tv := &audit.Variables[i]\n\t\t\tif sdk.NeedPlaceholder(v.Type) {\n\t\t\t\tv.Value = sdk.PasswordPlaceholder\n\t\t\t}\n\t\t}\n\n\t\taudits = append(audits, audit)\n\t}\n\treturn audits, nil\n}", "func (rv *RefVarTransformer) UnusedVars() []string {\n\tvar unused []string\n\tfor k := range rv.varMap {\n\t\t_, ok := rv.replacementCounts[k]\n\t\tif !ok {\n\t\t\tunused = append(unused, k)\n\t\t}\n\t}\n\treturn unused\n}", "func VariableGroupInfo(\n\tctx context.Context,\n\tin *pbv1.VariableGroupInfoRequest,\n\tstore *store.Store,\n\tcache *resource.Cache,\n) (*pbv1.VariableGroupInfoResponse, error) {\n\tdata, err := statvar.GetStatVarGroupNode(\n\t\tctx,\n\t\t&pb.GetStatVarGroupNodeRequest{\n\t\t\tStatVarGroup: in.GetNode(),\n\t\t\tEntities: in.GetConstrainedEntities(),\n\t\t\tNumEntitiesExistence: in.GetNumEntitiesExistence(),\n\t\t},\n\t\tstore,\n\t\tcache,\n\t)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &pbv1.VariableGroupInfoResponse{Node: in.GetNode(), Info: data}, nil\n}", "func GetFilterVariables(filterVariables []string, variables []*model.Variable) []*model.Variable {\n\n\tvariableLookup := make(map[string]*model.Variable)\n\tfor _, v := range variables {\n\t\tvariableLookup[v.Key] = v\n\t}\n\n\tfiltered := make([]*model.Variable, 0)\n\tfor _, variable := range filterVariables {\n\n\t\tv := variableLookup[variable]\n\t\tif v == nil {\n\t\t\tcontinue\n\t\t}\n\t\tfiltered = append(filtered, v)\n\t}\n\n\treturn filtered\n}", "func (m *MutInfo) NVar() int {\n\treturn len(m.mat)\n}", "func VariablesFilter(vars []Variable, types ...string) []Variable {\n\tres := []Variable{}\n\tfor _, v := range vars {\n\t\tfor _, s := range types {\n\t\t\tif v.Type == s {\n\t\t\t\tres = append(res, v)\n\t\t\t}\n\t\t}\n\t}\n\treturn res\n}", "func GetTransformFeedbackiv(xfb uint32, pname uint32, param *int32) {\n\tC.glowGetTransformFeedbackiv(gpGetTransformFeedbackiv, (C.GLuint)(xfb), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param)))\n}", "func GetTransformFeedbackiv(xfb uint32, pname uint32, param *int32) {\n\tC.glowGetTransformFeedbackiv(gpGetTransformFeedbackiv, (C.GLuint)(xfb), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param)))\n}", "func (c *CompilerV2) FastGetVariables(t *taskfile.Task, call taskfile.Call) (*taskfile.Vars, error) {\n\treturn c.GetVariables(t, call)\n}", "func PrintVarType(i interface{}) {\n\tswitch t := i.(type) {\n\tcase float64:\n\t\tfmt.Println(\"Type is float64\")\n\tcase bool:\n\t\tfmt.Println(\"Type is bool\")\n\tcase int:\n\t\tfmt.Println(\"Type is int\")\n\tdefault:\n\t\tfmt.Println(\"Unknown type %T\", t)\n\t}\n}", "func (o *TemplateSummaryResources) GetVariablesOk() (*[]TemplateSummaryVariable, bool) {\n\tif o == nil {\n\t\treturn nil, false\n\t}\n\treturn &o.Variables, true\n}", "func (s *Service) getParams(r *http.Request) map[string]string {\n\treturn mux.Vars(r)\n}", "func ExtractVariables(configDict map[string]interface{}, pattern *regexp.Regexp) map[string]string {\n\tif pattern == nil {\n\t\tpattern = defaultPattern\n\t}\n\treturn recurseExtract(configDict, pattern)\n}", "func (a *AddMixer) Parameters() []*anydiff.Var {\n\tvar res []*anydiff.Var\n\tfor _, v := range []Layer{a.In1, a.In2, a.Out} {\n\t\tif p, ok := v.(Parameterizer); ok {\n\t\t\tres = append(res, p.Parameters()...)\n\t\t}\n\t}\n\treturn res\n}", "func (n *FunctionDefinition) LocalVariables() []*Declarator { return n.Declarator.vars }", "func (pr *Project) VerifyAllVariables() string {\n\tresult := \"\"\n\t// TODO: Вначале проверяем переменные все они с одним именем должны быть одного типа\n\tvars := make(map[string]subVariable, 10000)\n\tfor _, sub := range pr.Subsystems {\n\t\tfor name, v := range sub.Variables {\n\t\t\tsv, ok := vars[name]\n\t\t\tif ok {\n\t\t\t\t//Переменная уже встречалась\n\t\t\t\t// fmt.Println(sv.SubName, sv.Variable.Name)\n\t\t\t\tif sv.Variable.Format != v.Format || sv.Variable.Size != v.Size {\n\t\t\t\t\tresult += \"Error! subsytem \" + sv.SubName + \" var \" + sv.Variable.Name + \" not equal var \" + v.Name + \" into \" + sub.Name + \"\\n\"\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t//Переменная попалась первый раз\n\t\t\t\tvars[v.Name] = subVariable{SubName: sub.Name, Variable: v}\n\t\t\t}\n\t\t}\n\t}\n\t// TODO: Затем проверяем переменные модбаса\n\tfor _, sub := range pr.Subsystems {\n\t\tfor _, mod := range sub.Modbuses {\n\t\t\tfor name, m := range mod.Registers {\n\t\t\t\tsv, ok := sub.Variables[name]\n\t\t\t\tif ok {\n\t\t\t\t\t//Переменная есть\n\t\t\t\t\tformat := \"1\"\n\t\t\t\t\tif m.Type > 1 {\n\t\t\t\t\t\tformat = strconv.Itoa(m.Format)\n\t\t\t\t\t}\n\t\t\t\t\tif len(sv.Size) == 0 {\n\t\t\t\t\t\tsv.Size = \"1\"\n\t\t\t\t\t}\n\t\t\t\t\tif sv.Format != format || sv.Size != strconv.Itoa(m.Size) {\n\t\t\t\t\t\tresult += \"Error! subsytem \" + sub.Name + \" var \" + sv.Name + \" not equal modbus var \" + m.Name + \" into \" + mod.Name + \"\\n\"\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t//Переменная попалась первый раз\n\t\t\t\t\tresult += \"Error! modbus var \" + m.Name + \" into \" + mod.Name + \" haven't variable\\n\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t// TODO: Потом проверяем все назначения на устройства со стороны переменных\n\tfor _, sub := range pr.Subsystems {\n\t\tfor _, dev := range sub.RealDevices {\n\t\t\tdrv, ok := pr.DefDrivers.Drivers[dev.Driver]\n\t\t\tif !ok {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tfor _, d := range dev.Defs {\n\t\t\t\tv, ok := sub.Variables[d.Name]\n\t\t\t\tif !ok {\n\t\t\t\t\t//Переменная нет\n\t\t\t\t\tresult += \"Error! Subsystem \" + sub.Name + \" def var \" + d.Name + \" into \" + dev.Name + \" haven't variable\\n\"\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\t// Теперь проверим совпадение форматов переменной и пина драйвера\n\t\t\t\tif drv.ReadPINFormat(d.DriverName) != v.Format {\n\t\t\t\t\tresult += \"Error! Subsystem \" + sub.Name + \" def var \" + d.Name + \" into \" + dev.Name + \" wrong format\\n\"\n\t\t\t\t\tcontinue\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}\n\n\treturn result\n}", "func GetRefVariables(w http.ResponseWriter, r *http.Request, db *sqlx.DB) {\n\tparams := mux.Vars(r)\n\n\trefVariables := []RefVariables{}\n\n\tvar err error\n\n\tif _, ok := params[\"id\"]; ok {\n\t\terr = db.Select(&refVariables, \"SELECT id, variable, units, sequence \"+\n\t\t\t\"FROM public.ref_variables \"+\n\t\t\t\"WHERE id = $1 \", params[\"id\"])\n\t} else if _, ok = params[\"variable\"]; ok {\n\t\terr = db.Select(&refVariables, \"SELECT id, variable, units, sequence \"+\n\t\t\t\"FROM public.ref_variables \"+\n\t\t\t\"WHERE variable = $1 \", params[\"variable\"])\n\t} else {\n\t\terr = db.Select(&refVariables, \"SELECT id, variable, units, sequence \"+\n\t\t\t\"FROM public.ref_variables \")\n\t}\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tw.Header().Set(\"Content-Type\", \"application/json; charset=UTF-8\")\n\tw.WriteHeader(http.StatusOK)\n\n\tif err := json.NewEncoder(w).Encode(refVariables); err != nil {\n\t\tpanic(err)\n\t}\n\n\tlogRequest(r)\n}", "func TransformFeedbackVaryings(program uint32, count int32, varyings **int8, bufferMode uint32) {\n C.glowTransformFeedbackVaryings(gpTransformFeedbackVaryings, (C.GLuint)(program), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(varyings)), (C.GLenum)(bufferMode))\n}", "func SelectFeatures(tuples []base.Tuple, features []int) []base.Tuple {\n if (len(features) <= 0) {\n return tuples;\n }\n\n var tupleType reflect.Type = reflect.TypeOf(tuples[0]);\n\n var rtn []base.Tuple = make([]base.Tuple, len(tuples));\n for tupleIndex, tuple := range(tuples) {\n var data []interface{} = make([]interface{}, len(features));\n for featurePosition, featureIndex := range(features) {\n data[featurePosition] = tuple.GetData(featureIndex);\n }\n\n rtn[tupleIndex] = base.NewTypedTuple(tupleType, data, tuple.GetClass());\n }\n\n return rtn;\n}", "func (*Base) Var(p ASTPass, node *ast.Var, ctx Context) {\n}", "func replaceTransformVariables(\n\tinput string,\n\tmatches []string,\n\ttv transformVar,\n) string {\n\tfor i := range tv.submatches {\n\t\tcurrent := tv.values[i]\n\t\tr := current.regex\n\t\tfor _, v := range matches {\n\t\t\tswitch current.token {\n\t\t\tcase \"up\":\n\t\t\t\tinput = regexReplace(r, input, strings.ToUpper(v), 1)\n\t\t\tcase \"lw\":\n\t\t\t\tinput = regexReplace(r, input, strings.ToLower(v), 1)\n\t\t\tcase \"ti\":\n\t\t\t\tinput = regexReplace(\n\t\t\t\t\tr,\n\t\t\t\t\tinput,\n\t\t\t\t\tstrings.Title(strings.ToLower(v)),\n\t\t\t\t\t1,\n\t\t\t\t)\n\t\t\tcase \"win\":\n\t\t\t\tinput = regexReplace(\n\t\t\t\t\tr,\n\t\t\t\t\tinput,\n\t\t\t\t\tregexReplace(fullWindowsForbiddenRegex, v, \"\", 0),\n\t\t\t\t\t1,\n\t\t\t\t)\n\t\t\tcase \"mac\":\n\t\t\t\tinput = regexReplace(\n\t\t\t\t\tr,\n\t\t\t\t\tinput,\n\t\t\t\t\tregexReplace(macForbiddenRegex, v, \"\", 0),\n\t\t\t\t\t1,\n\t\t\t\t)\n\t\t\tcase \"di\":\n\t\t\t\tt := transform.Chain(\n\t\t\t\t\tnorm.NFD,\n\t\t\t\t\trunes.Remove(runes.In(unicode.Mn)),\n\t\t\t\t\tnorm.NFC,\n\t\t\t\t)\n\t\t\t\tresult, _, err := transform.String(t, v)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn v\n\t\t\t\t}\n\n\t\t\t\tinput = regexReplace(r, input, result, 1)\n\t\t\t}\n\t\t}\n\t}\n\n\treturn input\n}", "func (n *Norm) Parameters() []*autofunc.Variable {\n\tres := make([]*autofunc.Variable, len(n.Weights)+len(n.Mags))\n\tcopy(res, n.Weights)\n\tcopy(res[len(n.Weights):], n.Mags)\n\n\tnormRes, rv := n.newNormRResult(autofunc.RVector{})\n\tnet := n.Creator.Create(normRes.NormPool)\n\tparams := net.Parameters()\n\tfor _, param := range params {\n\t\tif _, ok := rv[param]; !ok {\n\t\t\tres = append(res, param)\n\t\t}\n\t}\n\n\treturn res\n}", "func (t *Team) GetVar() (sum float64) {\n\tfor _, p := range t.players {\n\t\tsum += p.GetSigma() * p.GetSigma()\n\t}\n\treturn\n}", "func (req *Request) Vars() map[string]interface{} {\n\treturn req.vars\n}", "func (driver *Driver) readAdditionalVariables() error {\n\terr := driver.readAdditionalVariablesInline()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn driver.readAdditionalVariablesFile()\n}", "func (s *SparkCoreAdaptor) Variable(name string) (result string, err error) {\n\turl := fmt.Sprintf(\"%v/%s?access_token=%s\", s.deviceURL(), name, s.AccessToken)\n\tresp, err := s.requestToSpark(\"GET\", url, nil)\n\n\tif err != nil {\n\t\treturn\n\t}\n\n\tval := resp[\"result\"]\n\tswitch val.(type) {\n\tcase bool:\n\t\tresult = strconv.FormatBool(val.(bool))\n\tcase float64:\n\t\tresult = strconv.FormatFloat(val.(float64), 'f', -1, 64)\n\tcase string:\n\t\tresult = val.(string)\n\t}\n\n\treturn\n}", "func VGATHERDPS(vxy, kv, xyz operand.Op) { ctx.VGATHERDPS(vxy, kv, xyz) }", "func (p *variables) initVars(symtbl map[string]int) {\n\n\tn := len(symtbl)\n\tif n > 0 {\n\t\tp.vars = make([]interface{}, n)\n\t}\n\tp.symtbl = symtbl\n}", "func (fn *formulaFuncs) vars(name string, argsList *list.List) formulaArg {\n\tif argsList.Len() < 1 {\n\t\treturn newErrorFormulaArg(formulaErrorVALUE, fmt.Sprintf(\"%s requires at least 1 argument\", name))\n\t}\n\tsummerA, summerB, count := 0.0, 0.0, 0.0\n\tminimum := 0.0\n\tif name == \"VAR\" || name == \"VAR.S\" || name == \"VARA\" {\n\t\tminimum = 1.0\n\t}\n\tfor arg := argsList.Front(); arg != nil; arg = arg.Next() {\n\t\tfor _, token := range arg.Value.(formulaArg).ToList() {\n\t\t\tif token.Value() == \"\" {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tnum := token.ToNumber()\n\t\t\tif token.Value() != \"TRUE\" && num.Type == ArgNumber {\n\t\t\t\tsummerA += num.Number * num.Number\n\t\t\t\tsummerB += num.Number\n\t\t\t\tcount++\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tnum = token.ToBool()\n\t\t\tif num.Type == ArgNumber {\n\t\t\t\tsummerA += num.Number * num.Number\n\t\t\t\tsummerB += num.Number\n\t\t\t\tcount++\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tif name == \"VARA\" || name == \"VARPA\" {\n\t\t\t\tcount++\n\t\t\t}\n\t\t}\n\t}\n\tif count > minimum {\n\t\tsummerA *= count\n\t\tsummerB *= summerB\n\t\treturn newNumberFormulaArg((summerA - summerB) / (count * (count - minimum)))\n\t}\n\treturn newErrorFormulaArg(formulaErrorDIV, formulaErrorDIV)\n}", "func NoVars() interpreter.Activation {\n\treturn interpreter.EmptyActivation()\n}", "func (obj *codeMatch) PatternVariables() []string {\n\treturn obj.patternVariables\n}", "func VGATHERQPS(vx, kv, xy operand.Op) { ctx.VGATHERQPS(vx, kv, xy) }", "func iterateVariables(ev *eval.Evaler, ns string, f func(string)) {\n\tswitch ns {\n\tcase \"\":\n\t\tfor varname := range ev.Builtin.Names {\n\t\t\tf(varname)\n\t\t}\n\t\tfor varname := range ev.Global.Names {\n\t\t\tf(varname)\n\t\t}\n\t\t// TODO Include local names as well.\n\tcase \"E\":\n\t\tfor _, s := range os.Environ() {\n\t\t\tf(s[:strings.IndexByte(s, '=')])\n\t\t}\n\tdefault:\n\t\t// TODO Support non-module namespaces.\n\t\tmod := ev.Global.Uses[ns]\n\t\tif mod == nil {\n\t\t\tmod = ev.Builtin.Uses[ns]\n\t\t}\n\t\tfor varname := range mod {\n\t\t\tf(varname)\n\t\t}\n\t}\n}", "func example6() {\n\tid , name , age, wage, active := 1, \"foo\", 10 , 100.0, true\n\tfmt.Printf(\"<<Multiple Variable Declaration>>\\n\")\n\tfmt.Printf(\"id = %d\\n\", id)\n\tfmt.Printf(\"name = %s\\n\", name)\n\tfmt.Printf(\"age = %d\\n\", age)\n\tfmt.Printf(\"wage = %.2f\\n\", wage)\n\tfmt.Printf(\"active = %t\\n\", active)\n\tfmt.Printf(\"id type = %T\\n\", id)\n\tfmt.Printf(\"name type = %T\\n\", name)\n\tfmt.Printf(\"age type = %T\\n\", age)\n\tfmt.Printf(\"wage type = %T\\n\", wage)\n\tfmt.Printf(\"active type = %T\\n\", active)\n}", "func (j *Job) replaceVariables(renderer Renderer, cluster cluster.Cluster) error {\n\tctx := NewVariableContext(renderer, cluster, j, nil, nil)\n\tfor _, x := range j.Groups {\n\t\tif err := x.replaceVariables(renderer, cluster); err != nil {\n\t\t\treturn maskAny(err)\n\t\t}\n\t}\n\tfor i, x := range j.Constraints {\n\t\tj.Constraints[i] = x.replaceVariables(ctx)\n\t}\n\tj.Dependencies.replaceVariables(ctx)\n\treturn maskAny(ctx.Err())\n}", "func (a *Application) getAllVars() ([]types.Var, error) {\n\tvar result []types.Var\n\terrs := &interror.KustomizationErrors{}\n\n\tbases, err := a.loadBasesAsFlatList()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// TODO: computing vars and resources for bases can be combined\n\tfor _, b := range bases {\n\t\tvars, err := b.getAllVars()\n\t\tif err != nil {\n\t\t\terrs.Append(err)\n\t\t\tcontinue\n\t\t}\n\t\tb.ldr.Cleanup()\n\t\tresult = append(result, vars...)\n\t}\n\tfor _, v := range a.kustomization.Vars {\n\t\tv.Defaulting()\n\t\tresult = append(result, v)\n\t}\n\tif len(errs.Get()) > 0 {\n\t\treturn nil, errs\n\t}\n\treturn result, nil\n}", "func updateVariableTypes(solutionStorage api.SolutionStorage, metaStorage api.MetadataStorage,\n\tdataStorage api.DataStorage, fittedSolutionID string, dataset string, storageName string) error {\n\tsolutionRequest, err := solutionStorage.FetchRequestByFittedSolutionID(fittedSolutionID)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\t// get a variable map for quick look up\n\tvariables, err := metaStorage.FetchVariables(solutionRequest.Dataset, false, true, false)\n\tif err != nil {\n\t\treturn err\n\t}\n\tvariableMap := map[string]*model.Variable{}\n\tfor _, variable := range variables {\n\t\tvariableMap[variable.Key] = variable\n\t}\n\n\tfor _, feature := range solutionRequest.Features {\n\t\t// if this is a grouped variable we need to treat its components separately\n\t\tif variable, ok := variableMap[feature.FeatureName]; ok {\n\t\t\tcomponentVarNames := getComponentVariables(variable)\n\t\t\tfor _, componentVarName := range componentVarNames {\n\t\t\t\tif componentVar, ok := variableMap[componentVarName]; ok {\n\t\t\t\t\t// update variable type\n\t\t\t\t\tif err := dataStorage.SetDataType(dataset, storageName, componentVar.Key, componentVar.Type); err != nil {\n\t\t\t\t\t\treturn err\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn nil\n}", "func (f *FlagSet) Var(value Value, name string, usage string) {\n\tf.VarP(value, name, \"\", usage)\n}" ]
[ "0.5756089", "0.563979", "0.555666", "0.53868896", "0.5377409", "0.5373856", "0.53702736", "0.53682876", "0.52849257", "0.5228304", "0.52011526", "0.5184828", "0.5183603", "0.51535016", "0.5127681", "0.5127261", "0.5110287", "0.5109611", "0.51084614", "0.5063128", "0.5054515", "0.50505304", "0.5040555", "0.50050414", "0.49702787", "0.49606606", "0.49550325", "0.49527436", "0.49065086", "0.4869552", "0.4867637", "0.4863226", "0.48621213", "0.48596394", "0.4803835", "0.47917247", "0.4779867", "0.47733045", "0.47619453", "0.47604015", "0.47498", "0.4737154", "0.47355527", "0.47282884", "0.47233316", "0.47194815", "0.4715675", "0.47107494", "0.4707297", "0.46908236", "0.46763933", "0.46732813", "0.46701467", "0.46676737", "0.4659582", "0.46511933", "0.46488371", "0.4645833", "0.46410865", "0.4639769", "0.46339044", "0.46251276", "0.46070942", "0.46064818", "0.459447", "0.45598587", "0.4559075", "0.45477954", "0.45477954", "0.45452845", "0.4529544", "0.4517527", "0.45133734", "0.45126182", "0.45025465", "0.45011312", "0.45010087", "0.44905028", "0.44733155", "0.44698918", "0.4460001", "0.44458228", "0.4444784", "0.44447255", "0.4427899", "0.44252998", "0.44248587", "0.44181392", "0.44170272", "0.44060156", "0.43974796", "0.4383621", "0.43815193", "0.43639794", "0.4363928", "0.43501407", "0.43500152", "0.43473935", "0.43456614" ]
0.47441632
42
query the state of a transform feedback object.
func GetTransformFeedbackiv(xfb uint32, pname uint32, param *int32) { C.glowGetTransformFeedbackiv(gpGetTransformFeedbackiv, (C.GLuint)(xfb), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (o *Note) State() interface{} {\n\td := noteDiff{\n SubKey: &o.SubKey,\n Number: &o.Number,\n Velocity: &o.Velocity,\n }\n return d\n}", "func (o AttachmentAccepterOutput) State() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *AttachmentAccepter) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)\n}", "func (self *ComponentScaleMinMax) TransformCallbackContext() interface{}{\n return self.Object.Get(\"transformCallbackContext\")\n}", "func (m *EducationFeedbackOutcome) GetFeedback()(EducationFeedbackable) {\n return m.feedback\n}", "func (e HybridKFEstimate) State() *mat64.Vector {\n\treturn e.state\n}", "func (o KeystoresAliasesSelfSignedCertSubjectOutput) State() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v KeystoresAliasesSelfSignedCertSubject) *string { return v.State }).(pulumi.StringPtrOutput)\n}", "func IsTransformFeedback(id uint32) bool {\n ret := C.glowIsTransformFeedback(gpIsTransformFeedback, (C.GLuint)(id))\n return ret == TRUE\n}", "func (obj *Device) GetTransform(state TRANSFORMSTATETYPE) (m MATRIX, err Error) {\n\tret, _, _ := syscall.Syscall(\n\t\tobj.vtbl.GetTransform,\n\t\t3,\n\t\tuintptr(unsafe.Pointer(obj)),\n\t\tuintptr(state),\n\t\tuintptr(unsafe.Pointer(&m[0])),\n\t)\n\terr = toErr(ret)\n\treturn\n}", "func (rf *Raft) GetState() (int, bool) {\n\n var term int\n var isleader bool\n // Your code here (2A).\n rf.mu.Lock()\n defer rf.mu.Unlock()\n term = rf.currentTerm\n isleader = false\n if rf.state == LEADER {\n isleader = true\n }\n return term, isleader\n}", "func (ch *Channel) QueryOutputState(os dcpwr.OutputState) (bool, error) {\n\treturn false, dcpwr.ErrNotImplemented\n}", "func (rf *Raft) GetState() (int, bool) {\n\n var term int\n var isleader bool\n // Your code here (2A).\n rf.mu.Lock()\n term = rf.currentTerm\n isleader = (rf.state == StateLeader)\n rf.mu.Unlock()\n return term, isleader\n}", "func (self *ComponentScaleMinMax) CheckTransform(wt *Matrix) {\n self.Object.Call(\"checkTransform\", wt)\n}", "func (o KafkaMirrorMakerOutput) State() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *KafkaMirrorMaker) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)\n}", "func GetCurrentState() {\n\n}", "func (m *EducationFeedbackOutcome) GetPublishedFeedback()(EducationFeedbackable) {\n return m.publishedFeedback\n}", "func (e ScoreProposal) State() header.Header {\n\treturn e.hdr\n}", "func IsTransformFeedback(id uint32) bool {\n\tret := C.glowIsTransformFeedback(gpIsTransformFeedback, (C.GLuint)(id))\n\treturn ret == TRUE\n}", "func IsTransformFeedback(id uint32) bool {\n\tret := C.glowIsTransformFeedback(gpIsTransformFeedback, (C.GLuint)(id))\n\treturn ret == TRUE\n}", "func (o ConversationModelOutput) State() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *ConversationModel) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)\n}", "func (m *AgreementAcceptance) GetState()(*AgreementAcceptanceState) {\n return m.state\n}", "func (o VpcAttachmentOutput) State() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *VpcAttachment) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)\n}", "func (o TestMatrixOutput) State() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *TestMatrix) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)\n}", "func (k Keeper) State(c context.Context, req *types.QueryStateRequest) (*types.QueryStateResponse, error) {\n\tctx := sdk.UnwrapSDKContext(c)\n\tstate := k.GetState(ctx)\n\n\treturn &types.QueryStateResponse{State: state}, nil\n}", "func (o KeystoresAliasesSelfSignedCertSubjectPtrOutput) State() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *KeystoresAliasesSelfSignedCertSubject) *string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.State\n\t}).(pulumi.StringPtrOutput)\n}", "func (o TransformationOutput) Query() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v Transformation) *string { return v.Query }).(pulumi.StringPtrOutput)\n}", "func PauseTransformFeedback() {\n C.glowPauseTransformFeedback(gpPauseTransformFeedback)\n}", "func (r Request) State() interfaces.GameState { return r.state }", "func (r *RPCTaskReader) State() (tes.State, error) {\n\tt, err := r.client.GetTask(context.Background(), &tes.GetTaskRequest{\n\t\tId: r.taskID,\n\t\tView: tes.TaskView_MINIMAL,\n\t})\n\treturn t.GetState(), err\n}", "func IsTransformFeedback(id uint32) bool {\n\tret, _, _ := syscall.Syscall(gpIsTransformFeedback, 1, uintptr(id), 0, 0)\n\treturn ret != 0\n}", "func (o *Cell) State() interface{} {\n\td := cellDiff{\n Hue: &o.Hue,\n X: &o.X,\n Y: &o.Y,\n AudioPath: &o.AudioPath,\n MapName: &o.MapName,\n Class: &o.Class,\n MidiNote: &o.MidiNote,\n }\n return d\n}", "func BeginTransformFeedback(primitiveMode uint32) {\n C.glowBeginTransformFeedback(gpBeginTransformFeedback, (C.GLenum)(primitiveMode))\n}", "func (o LookupQueueResultOutput) State() pulumi.StringOutput {\n\treturn o.ApplyT(func(v LookupQueueResult) string { return v.State }).(pulumi.StringOutput)\n}", "func (o EndpointAttachmentOutput) State() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *EndpointAttachment) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)\n}", "func Query(ptp protocol.PointToPoint, tempFields ...interface{}) (t container.Tuple, b bool) {\n\tt, b = getAndQuery(ptp, protocol.QueryRequest, tempFields...)\n\treturn t, b\n}", "func (rf *Raft) GetState() (int, bool) {\n\n var term int\n var isleader bool\n\n rf.mu.Lock()\n defer rf.mu.Unlock()\n term = rf.currentTerm\n isleader = false\n if rf.state == Leader {\n isleader = true\n } \n\n // Your code here (2A).\n return term, isleader\n}", "func (i ImmExamplesState) IsState() {}", "func (f *filterImpl) State() mat.Vector {\n\tvar state mat.VecDense\n\tstate.CloneFromVec(f.savedState)\n\treturn &state\n}", "func (self* bestFit) state() ([]float64,[]float64,error) {\n\tif len(self.ys) < 2 {\n\t\treturn nil,nil,ENOTENOUGHDATAPOINTS\n\t}\n\treturn self.ys,[]float64{self.c,self.m},nil\n}", "func (o TransformationPtrOutput) Query() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *Transformation) *string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.Query\n\t}).(pulumi.StringPtrOutput)\n}", "func (o GetImageResultOutput) State() pulumi.StringOutput {\n\treturn o.ApplyT(func(v GetImageResult) string { return v.State }).(pulumi.StringOutput)\n}", "func (o AiFeatureStoreEntityTypeMonitoringConfigImportFeaturesAnalysisOutput) State() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v AiFeatureStoreEntityTypeMonitoringConfigImportFeaturesAnalysis) *string { return v.State }).(pulumi.StringPtrOutput)\n}", "func (rf *Raft) GetState() (int, bool) {\n var term int\n var isleader bool\n \n rf.mu.Lock()\n term = rf.currentTerm\n isleader = (rf.state == \"Leader\")\n rf.mu.Unlock()\n\n return term, isleader\n}", "func State() (*db.Source, int, time.Time) {\n\tlock.Lock()\n\tdefer lock.Unlock()\n\treturn current, ingestDelaySeconds, nextIngest\n}", "func (obj *transform) Input() string {\n\treturn obj.input\n}", "func (*XMLDocument) QueryCommandState(commandId string) (b bool) {\n\tmacro.Rewrite(\"$_.queryCommandState($1)\", commandId)\n\treturn b\n}", "func transformTaskStateToArtworksviewsTaskStateView(v *TaskState) *artworksviews.TaskStateView {\n\tif v == nil {\n\t\treturn nil\n\t}\n\tres := &artworksviews.TaskStateView{\n\t\tDate: &v.Date,\n\t\tStatus: &v.Status,\n\t}\n\n\treturn res\n}", "func (self *Graphics) Input() interface{}{\n return self.Object.Get(\"input\")\n}", "func (st *State) Analysis() (_ analysisTmpl) { return }", "func (self *ComponentScaleMinMax) TransformCallback() interface{}{\n return self.Object.Get(\"transformCallback\")\n}", "func (ed *EvalDetails) State() interpreter.EvalState {\n\treturn ed.state\n}", "func (e *liveEngine) checkState() {\n\tfor _, inst := range e.currencyConversionEngine.conversionInstruments {\n\t\tif inst.Ask.Load() == 0.0 {\n\t\t\treturn\n\t\t}\n\t}\n\n\te.ready = true\n}", "func (r *rejectCancelRequest) Transform() {\n\t// ubah isi model sales order\n\tr.SalesOrder.DocumentStatus = \"active\"\n}", "func (p *Partition) state() (partitionState, error) {\n\tvar state partitionState\n\tnode := fmt.Sprintf(\"%s/brokers/topics/%s/partitions/%d/state\", p.topic.kz.conf.Chroot, p.topic.Name, p.ID)\n\tvalue, _, err := p.topic.kz.conn.Get(node)\n\tif err != nil {\n\t\treturn state, err\n\t}\n\n\tif err := json.Unmarshal(value, &state); err != nil {\n\t\treturn state, err\n\t}\n\n\treturn state, nil\n}", "func (cs *ConsensusState) QueryState() *State {\n\tif cs == nil {\n\t\treturn nil\n\t}\n\tif !cs.mtx.TryLockTimed(time.Millisecond * 500) {\n\t\treturn nil\n\t}\n\tdefer cs.mtx.Unlock()\n\n\tstate := cs.state.Copy()\n\treturn &state\n}", "func (v *Vectorizer) FitTranform() *FeatureMatrix {\n\n}", "func (o LookupDocumentResultOutput) State() pulumi.StringOutput {\n\treturn o.ApplyT(func(v LookupDocumentResult) string { return v.State }).(pulumi.StringOutput)\n}", "func (rf *Raft) GetState() (int, bool) {\n\n\tvar term int\n\tvar isleader bool\n\t// Your code here (2A).\n\treturn term, isleader\n}", "func (ct *Ctr) Query() (cur, prv int, chg bool) {\n\treturn ct.Cur, ct.Prv, ct.Chg\n}", "func MakeTransformFeedbackObject() TransformFeedbackObject {\n\tvar tfb uint32\n\tgl.GenTransformFeedbacks(1, &tfb)\n\treturn TransformFeedbackObject(tfb)\n}", "func (r *DynamoDBTaskReader) State() (tes.State, error) {\n\tt, err := r.client.GetTask(context.Background(), &tes.GetTaskRequest{\n\t\tId: r.taskID,\n\t\tView: tes.TaskView_MINIMAL,\n\t})\n\treturn t.GetState(), err\n}", "func (e *btEngine) checkState() {\n\tfor _, inst := range e.currencyConversionEngine.conversionInstruments {\n\t\tif inst.Ask == nil {\n\t\t\treturn\n\t\t}\n\t}\n\n\te.ready = true\n}", "func (o LookupPipelineResultOutput) State() pulumi.StringOutput {\n\treturn o.ApplyT(func(v LookupPipelineResult) string { return v.State }).(pulumi.StringOutput)\n}", "func PauseTransformFeedback() {\n\tC.glowPauseTransformFeedback(gpPauseTransformFeedback)\n}", "func PauseTransformFeedback() {\n\tC.glowPauseTransformFeedback(gpPauseTransformFeedback)\n}", "func transformArtworksviewsTaskStateViewToTaskState(v *artworksviews.TaskStateView) *TaskState {\n\tif v == nil {\n\t\treturn nil\n\t}\n\tres := &TaskState{\n\t\tDate: *v.Date,\n\t\tStatus: *v.Status,\n\t}\n\n\treturn res\n}", "func (s *DeterminationWithContext) State() State {\n\treturn s.stat.get()\n}", "func ResumeTransformFeedback() {\n C.glowResumeTransformFeedback(gpResumeTransformFeedback)\n}", "func (c *Context) State() *iavl.MutableTree {\n\tif c.IsCheckOnly() {\n\t\treturn c.state.CheckTxTree()\n\t}\n\treturn c.state.DeliverTxTree()\n}", "func (self Text) Transform() Transform {\n\tt := C.sfText_getTransform(self.Cref)\n\treturn Transform{&t}\n}", "func (c ChooserState) IsState() {}", "func getState(state *bytes.Buffer) error {\n\tcmd := exec.Command(\"stty\", \"-g\")\n\tcmd.Stdin = os.Stdin\n\tcmd.Stdout = state\n\treturn cmd.Run()\n}", "func (q *QLearning) learn(fb Action) {\n\n\t// q.learningRate = float64(1 / (q.sr.steps + 1))\n\t// if q.learningRate\n\n\ts := q.state.Get()\n\tq.AddState(s)\n\n\tgreedyAction := q.EpsilonGreedy(s)\n\treward, newstate := q.TakeAction(greedyAction, fb)\n\tq.AddState(newstate)\n\n\t// maxAction := q.GetAction(newstate)\n\tqsa := q.GetQ(greedyAction, s)\n\t// _qsa := q.GetQ(maxAction, newstate)\n\n\tqval := qsa + q.learningRate*(reward-qsa)\n\tq.SetQ(greedyAction, qval)\n\n\tq.state = newstate\n\n\t// fmt.Println(\" \")\n}", "func (rc *Ctx) State() State {\n\treturn rc.state\n}", "func (o *PhysicsDirectBodyState) GetTransform() gdnative.Transform {\n\t//log.Println(\"Calling PhysicsDirectBodyState.GetTransform()\")\n\n\t// Build out the method's arguments\n\tptrArguments := make([]gdnative.Pointer, 0, 0)\n\n\t// Get the method bind\n\tmethodBind := gdnative.NewMethodBind(\"PhysicsDirectBodyState\", \"get_transform\")\n\n\t// Call the parent method.\n\t// Transform\n\tretPtr := gdnative.NewEmptyTransform()\n\tgdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)\n\n\t// If we have a return type, convert it from a pointer into its actual object.\n\tret := gdnative.NewTransformFromPointer(retPtr)\n\treturn ret\n}", "func (obj *transform) Result() string {\n\treturn obj.result\n}", "func (evpool *EvidencePool) State() State {\n\tevpool.mtx.Lock()\n\tdefer evpool.mtx.Unlock()\n\treturn evpool.state\n}", "func BeginTransformFeedback(primitiveMode uint32) {\n\tC.glowBeginTransformFeedback(gpBeginTransformFeedback, (C.GLenum)(primitiveMode))\n}", "func BeginTransformFeedback(primitiveMode uint32) {\n\tC.glowBeginTransformFeedback(gpBeginTransformFeedback, (C.GLenum)(primitiveMode))\n}", "func (o AiFeatureStoreEntityTypeMonitoringConfigImportFeaturesAnalysisPtrOutput) State() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v *AiFeatureStoreEntityTypeMonitoringConfigImportFeaturesAnalysis) *string {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t}\n\t\treturn v.State\n\t}).(pulumi.StringPtrOutput)\n}", "func (o TransformationResponseOutput) Query() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v TransformationResponse) *string { return v.Query }).(pulumi.StringPtrOutput)\n}", "func (rf *Raft) GetState() (int, bool) {\n\n\tvar term int\n\tvar isleader bool\n\t// Your code here (2A).\n\tterm = rf.currentTerm\n\tif rf.state == \"leader\" {\n\t\tisleader = true\n\t} else {\n\t\tisleader = false\n\t}\n\t//DPrintf(\"GetState of %d, term=%d, isleader=%v\", rf.me, term, isleader)\n\treturn term, isleader\n}", "func (rf *Raft) GetState() (int, bool) {\n\n\tvar term int\n\tvar isleader bool\n\t// Your code here (2A).\n\n\tterm = rf.currentTerm\n\tif rf.hasLeader && rf.leader == rf.me {\n\t\tisleader = true\n\t} else {\n\t\tisleader = false\n\t}\n\n\treturn term, isleader\n}", "func (rf *Raft) GetState() (int, bool) {\n\trf.mu.Lock()\n\tdefer rf.mu.Unlock()\n\tvar term int\n\tvar isleader bool\n\t// Your code here (2A).\n\tterm = rf.currenctTerm\n\tisleader = rf.Role == \"leader\"\n\t// here just return the fields\n\treturn term, isleader\n}", "func (o FunctionOutput) State() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *Function) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)\n}", "func (rf *Raft) GetState() (int, bool) {\r\n\r\n\tvar term int\r\n\tvar isleader bool\r\n\t// Your code here.\r\n\tterm = int(rf.getTerm())\r\n\tisleader = rf.isState(LEADER)\r\n\treturn term, isleader\r\n}", "func (o LookupInstanceResultOutput) State() pulumi.StringOutput {\n\treturn o.ApplyT(func(v LookupInstanceResult) string { return v.State }).(pulumi.StringOutput)\n}", "func (rf *Raft) GetState() (int, bool) {\n\n\tvar term int\n\tvar isleader bool\n\t// Your code here (2A).\n\trf.mu.Lock()\n\tdefer rf.mu.Unlock()\n\tterm = rf.currentTerm\n\tisleader = (rf.role == LEADER)\n\treturn term, isleader\n}", "func (a ProblemAdapter) GetState() string {\n\treturn a.event.State\n}", "func (rf *Raft) GetState() (int, bool) {\n\n\tvar term int\n\tvar isleader bool\n\t// Your code here (2A).\n\trf.mu.Lock()\n\tdefer rf.mu.Unlock()\n\tterm = rf.CurrentTerm\n\tisleader = rf.IsLeader\n\treturn term, isleader\n}", "func (rf *Raft) GetState() (int, bool) {\n\trf.mu.Lock()\n\tdefer rf.mu.Unlock()\n\n\tvar term int\n\tvar isleader bool\n\t// Your code here (2A).\n\n//\trf.mu.Lock()\n\tterm = rf.currentTerm\n\tisleader = (rf.role == LEADER)\n//\trf.mu.Unlock()\n\n\treturn term, isleader\n}", "func (ec EncryptedStateContext) State() state.State {\n\ts, _ := StateWithTransientKey(ec)\n\treturn s\n}", "func (b Santander) Transference(d Document) {\n\t// TODO\n}", "func (rf *Raft) GetState() (int, bool) {\n\n\tvar term int\n\tvar isleader bool\n\t// Your code here (2A).\n\trf.mu.Lock()\n\tdefer rf.mu.Unlock()\n\tterm = rf.currentTerm\n\tisleader = rf.getState() == Leader\n\treturn term, isleader\n}", "func (o WorkflowOutput) State() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *Workflow) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)\n}", "func (tq *TargetTracker) Select() (*Target, bool) {\n\ttq.lk.Lock()\n\tdefer tq.lk.Unlock()\n\tif tq.q.Len() == 0 {\n\t\treturn nil, false\n\t}\n\tvar toSyncTarget *Target\n\tfor _, target := range tq.q {\n\t\tif target.State == StageIdle {\n\t\t\ttoSyncTarget = target\n\t\t\tbreak\n\t\t}\n\t}\n\n\tif toSyncTarget == nil {\n\t\treturn nil, false\n\t}\n\ttoSyncTarget.State = StateInSyncing\n\treturn toSyncTarget, true\n}", "func (o M3DbOutput) State() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *M3Db) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)\n}", "func (rf *Raft) GetState() (int, bool) {\n\n\tvar term int\n\tvar isleader bool\n\t// Your code here.\n\tterm = rf.currentTerm\n\tisleader = (rf.state == LEADER)\n\treturn term, isleader\n}", "func (l *RelayDriver) State() bool {\n\treturn l.high\n}", "func (rf *Raft) GetState() (int, bool) {\n\n\tvar term int\n\tvar isleader bool\n\n\t// Your code here (2A).\n\n\trf.mu.Lock()\n\tdefer rf.mu.Unlock()\n\n\tterm = rf.currentTerm\n\tisleader = rf.status == Leader\n\treturn term, isleader\n}", "func (m *AccessPackageAssignment) GetState()(*AccessPackageAssignmentState) {\n return m.state\n}", "func (rf *Raft) GetState() (int, bool) {\n\n\tvar term int\n\tvar isleader bool\n\t// Your code here (2A).\n\tterm = rf.currentTerm\n\tif rf.currentState ==\"LEADER\"{\n\t\tisleader =true\n\t} else{\n\t\tisleader =false\n\t}\n\treturn term, isleader\n}" ]
[ "0.5199793", "0.5002224", "0.49215958", "0.48676807", "0.48359615", "0.47546482", "0.4748522", "0.4724842", "0.47211975", "0.4716928", "0.4712273", "0.46745512", "0.46518582", "0.46478093", "0.4626848", "0.46145496", "0.46115634", "0.46115634", "0.46115473", "0.45982036", "0.45929784", "0.45888907", "0.45851877", "0.45816612", "0.45811468", "0.45796958", "0.45688748", "0.4567995", "0.45631742", "0.45580482", "0.45561936", "0.45554575", "0.45438492", "0.45334414", "0.45163584", "0.45050058", "0.449992", "0.44977397", "0.44969615", "0.44936633", "0.4488648", "0.4480954", "0.4471393", "0.44692042", "0.4435785", "0.44347078", "0.44343722", "0.4424855", "0.44210044", "0.4418642", "0.44169158", "0.4414817", "0.44103828", "0.4404618", "0.4397758", "0.43956298", "0.4388831", "0.4387557", "0.43787467", "0.4372671", "0.4368665", "0.4365193", "0.43612456", "0.43612456", "0.43595833", "0.4356449", "0.4351046", "0.43494222", "0.4348169", "0.43313846", "0.4327488", "0.43220252", "0.4318124", "0.43013898", "0.43003455", "0.4293561", "0.42907974", "0.42907974", "0.42839628", "0.42812482", "0.42734933", "0.42727453", "0.42691216", "0.42689165", "0.42620143", "0.4260526", "0.42570123", "0.4250984", "0.42493245", "0.42456", "0.42397776", "0.42324474", "0.42276537", "0.42265716", "0.422634", "0.42231485", "0.4221381", "0.4218174", "0.42177668", "0.4217651", "0.4217235" ]
0.0
-1
retrieve the index of a named uniform block
func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 { ret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName))) return (uint32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetUniformBlockIndex(program uint32, uniformBlockName *int8) uint32 {\n ret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n return (uint32)(ret)\n}", "func (s *Shader) getUniformBlockLocation(name string) (index uint32) {\n\t// if we already saved the location, return it\n\tif index, ok := s.uniformBIndices[name]; ok {\n\t\treturn index\n\t}\n\n\t// if it's not in our index cache, get it from opengl and save it in the cache\n\tindex = gl.GetUniformBlockIndex(s.Program, gl.Str(name+\"\\x00\"))\n\ts.uniformBIndices[name] = index\n\treturn\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret, _, _ := syscall.Syscall(gpGetUniformBlockIndex, 2, uintptr(program), uintptr(unsafe.Pointer(uniformBlockName)), 0)\n\treturn (uint32)(ret)\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *int8) {\n C.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tC.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tC.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformBlockName, 5, uintptr(program), uintptr(uniformBlockIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformBlockName)), 0)\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func (l *LocationCache) FindUniform(name string) int {\n\t// Scan through the cache for it now.\n\tfor _, u := range l.uniforms {\n\t\tif u.name != name {\n\t\t\tcontinue\n\t\t}\n\t\treturn u.location\n\t}\n\n\t// Query directly and store in the cache.\n\ti := l.GetUniformLocation(name)\n\tif i < 0 {\n\t\ti = -1\n\t}\n\tl.uniforms = append(l.uniforms, location{\n\t\tname: name,\n\t\tlocation: i,\n\t})\n\treturn i\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **int8, uniformIndices *uint32) {\n C.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (self *Script) getOutputIdxByName(name string) int {\n for i, def := range self.OutputDefs {\n if def.Name == name {\n return i\n }\n }\n return -1\n}", "func GetUniformLocation(program uint32, name *int8) int32 {\n ret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func (provider *ChunkProvider) GetChunkIndex(x, z int32) int {\n\treturn int(((int64(x) & 0xffffffff) << 32) | (int64(z) & 0xffffffff))\n}", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *int8) int32 {\n ret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformBlockiv(gpGetActiveUniformBlockiv, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformBlockiv(gpGetActiveUniformBlockiv, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveUniformBlockiv, 4, uintptr(program), uintptr(uniformBlockIndex), uintptr(pname), uintptr(unsafe.Pointer(params)), 0, 0)\n}", "func (s *Shader) getUniformLocation(name string) (location int32) {\n\t// if we already saved the location, return it\n\tif location, ok := s.uniformLocs[name]; ok {\n\t\treturn location\n\t}\n\n\t// if it's not in our location cache, get it from opengl and save it in the cache\n\tlocation = gl.GetUniformLocation(s.Program, gl.Str(name+\"\\x00\"))\n\tif location == -1 {\n\t\tfmt.Println(\"ERROR: Could not find uniform:\", name)\n\t\treturn\n\t}\n\n\ts.uniformLocs[name] = location\n\treturn\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *int8) uint32 {\n ret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n return (uint32)(ret)\n}", "func (native *OpenGL) GetUniformLocation(program uint32, name string) int32 {\n\treturn gl.GetUniformLocation(program, gl.Str(name+\"\\x00\"))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n C.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (action *Action) GetIndex() int64 {\n\treturn action.height*types.MaxTxsPerBlock + int64(action.index)\n}", "func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) {\n C.glowUniformBlockBinding(gpUniformBlockBinding, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLuint)(uniformBlockBinding))\n}", "func (a *chunkBasedAtlas) chunkTileIndex(local maths.Vector) int {\n\treturn local.X + local.Y*a.ChunkSize\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformName, 5, uintptr(program), uintptr(uniformIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformName)), 0)\n}", "func IndexOf(blks []blocks.Block, c cid.Cid) int {\n\tfor i, n := range blks {\n\t\tif n.Cid() == c {\n\t\t\treturn i\n\t\t}\n\t}\n\treturn -1\n}", "func (st *SymbolTable) Index(name string) int {\n\tindex, exist := st.symbols[name]\n\tif !exist {\n\t\treturn -1\n\t}\n\n\treturn index\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (it iterator) index(b *ringBuf) uint64 {\n\treturn b.buf[it].Index\n}", "func (el *Elements) Index(name string) (int, bool) {\n\tfor n, e := range *el {\n\t\tif e.Name == name {\n\t\t\treturn n, true\n\t\t}\n\t}\n\treturn 0, false\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (h Helper) ScriptIndexByName(name string) int {\n\tfor i, s := range h.ScriptNames {\n\t\tif s == name {\n\t\t\treturn i\n\t\t}\n\t}\n\treturn -1\n}", "func (v Chunk) Index(label string) int {\n\tfor j, c := range v.buf.Columns {\n\t\tif c.Label == label {\n\t\t\treturn j\n\t\t}\n\t}\n\treturn -1\n}", "func (ly *CINLayer) UnitVarIdx(varNm string) (int, error) {\n\tvidx, err := ly.Layer.UnitVarIdx(varNm)\n\tif err == nil {\n\t\treturn vidx, err\n\t}\n\tif varNm != \"ACh\" {\n\t\treturn -1, fmt.Errorf(\"pcore.CINLayer: variable named: %s not found\", varNm)\n\t}\n\tnn := ly.Layer.UnitVarNum()\n\treturn nn, nil\n}", "func GetUniformLocation(program Uint, name string) Int {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcname, _ := unpackPCharString(name)\n\t__ret := C.glGetUniformLocation(cprogram, cname)\n\t__v := (Int)(__ret)\n\treturn __v\n}", "func GetActiveUniform(p Program, index uint32) (name string, size int, ty Enum) {\n\tvar length, si int32\n\tvar typ uint32\n\tname = strings.Repeat(\"\\x00\", 256)\n\tcname := gl.Str(name)\n\tgl.GetActiveUniform(p.Value, uint32(index), int32(len(name)-1), &length, &si, &typ, cname)\n\tname = name[:strings.IndexRune(name, 0)]\n\treturn name, int(si), Enum(typ)\n}", "func blockIndexKey(blockHash *common.Hash, blockHeight uint32) []byte {\n\tindexKey := make([]byte, common.HashLength+4)\n\tbinary.BigEndian.PutUint32(indexKey[0:4], blockHeight)\n\tcopy(indexKey[4:common.HashLength+4], blockHash[:])\n\treturn indexKey\n}", "func Uniform1i(location int32, v0 int32) {\n C.glowUniform1i(gpUniform1i, (C.GLint)(location), (C.GLint)(v0))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (routingTable *RoutingTable) getBucketIndex(id *KademliaID) int {\n\troutingTable.mutex.Lock()\n\tdefer routingTable.mutex.Unlock()\n\n\tdistance := id.CalcDistance(routingTable.me.ID)\n\tfor i := 0; i < IDLength; i++ {\n\t\tfor j := 0; j < 8; j++ {\n\t\t\tif (distance[i]>>uint8(7-j))&0x1 != 0 {\n\t\t\t\treturn i*8 + j\n\t\t\t}\n\t\t}\n\t}\n\n\treturn IDLength*8 - 1\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetUniformLocation, 2, uintptr(program), uintptr(unsafe.Pointer(name)), 0)\n\treturn (int32)(ret)\n}", "func (ly *MatrixLayer) UnitVarIdx(varNm string) (int, error) {\n\tvidx, err := ly.Layer.UnitVarIdx(varNm)\n\tif err == nil {\n\t\treturn vidx, err\n\t}\n\tif !(varNm == \"DALrn\" || varNm == \"ACh\") {\n\t\treturn -1, fmt.Errorf(\"pcore.NeuronVars: variable named: %s not found\", varNm)\n\t}\n\tnn := len(leabra.NeuronVars)\n\t// nn = DA\n\tif varNm == \"DALrn\" {\n\t\treturn nn + 1, nil\n\t}\n\treturn nn + 2, nil\n}", "func (m *Module) indexNamedConst(goConst *ssa.NamedConst) error {\n\t// TODO: index named constant as LLVM IR constant global variable.\n\tpanic(\"not yet implemented\")\n}", "func (uni *Uniform) Location(gs *GLS) int32 {\n\n\tloc := gs.prog.GetUniformLocation(uni.name)\n\treturn loc\n}", "func (program Program) GetUniformLocation(name string) UniformLocation {\n\treturn UniformLocation(gl.GetUniformLocation(uint32(program), gl.Str(name+\"\\x00\")))\n}", "func assetID(t int, name string) aid { return aid(t) + aid(stringHash(name))<<32 }", "func (ba *buddyAllocator) getIndex(\n\taddr, order uint32,\n) (index uint32, first bool) {\n\tif order >= MaxOrder {\n\t\treturn addr / models.Size4MB.ToBytes(), false\n\t}\n\tpageIndex := addr / models.Size4KB.ToBytes() / (1 << order)\n\tfirst = (pageIndex % 2) == 0\n\tindex = pageIndex / 2\n\treturn\n}", "func (cpu *Cpu) ind() int {\n\taddr := cpu.mem.Read(cpu.pc) & 0xFF\n\tcpu.pc++\n\n\treturn cpu.mem.Read(addr) | (cpu.mem.Read(addr+1) << 8)\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func index(element *fields.QualifiedHash, group []*fields.QualifiedHash) int {\n\tfor i, current := range group {\n\t\tif element.Equals(current) {\n\t\t\treturn i\n\t\t}\n\t}\n\treturn -1\n}", "func (desc BindDescriptor) Index() int {\n\tindex := int(desc>>bindIndexShift) - 1\n\t// debugf(\"BindDescriptor=%v, class=%v, index=%v\", desc, desc.Class(), index)\n\treturn index\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *uint8) {\n\tsyscall.Syscall6(gpGetActiveSubroutineUniformName, 6, uintptr(program), uintptr(shadertype), uintptr(index), uintptr(bufsize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(name)))\n}", "func (ly *Layer) UnitVarIdx(varNm string) (int, error) {\n\tvidx, err := ly.AlphaMaxLayer.UnitVarIdx(varNm)\n\tif err == nil {\n\t\treturn vidx, err\n\t}\n\tif varNm != \"DA\" {\n\t\treturn -1, fmt.Errorf(\"pcore.Layer: variable named: %s not found\", varNm)\n\t}\n\tnn := ly.AlphaMaxLayer.UnitVarNum()\n\treturn nn, nil\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **uint8, uniformIndices *uint32) {\n\tsyscall.Syscall6(gpGetUniformIndices, 4, uintptr(program), uintptr(uniformCount), uintptr(unsafe.Pointer(uniformNames)), uintptr(unsafe.Pointer(uniformIndices)), 0, 0)\n}", "func (cpu *Cpu) indx() int {\n\taddr := cpu.mem.Read(cpu.pc) & 0xFF\n\tcpu.pc++\n\n\treturn (cpu.mem.Read(addr+cpu.x) | (cpu.mem.Read(addr+1+cpu.x) << 8))\n}", "func GetTheBlockKey(chain, index uint64) []byte {\n\tvar key Hash\n\tif chain == 0 {\n\t\treturn nil\n\t}\n\tif index == 0 {\n\t\tvar pStat BaseInfo\n\t\tgetDataFormDB(chain, dbStat{}, []byte{StatBaseInfo}, &pStat)\n\t\treturn pStat.Key[:]\n\t}\n\tgetDataFormLog(chain, logBlockInfo{}, runtime.Encode(index), &key)\n\tif key.Empty() {\n\t\treturn nil\n\t}\n\treturn key[:]\n}", "func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) {\n\tsyscall.Syscall(gpUniformBlockBinding, 3, uintptr(program), uintptr(uniformBlockIndex), uintptr(uniformBlockBinding))\n}", "func (debugging *debuggingOpenGL) GetUniformLocation(program uint32, name string) int32 {\n\tdebugging.recordEntry(\"GetUniformLocation\", program, name)\n\tresult := debugging.gl.GetUniformLocation(program, name)\n\tdebugging.recordExit(\"GetUniformLocation\", result)\n\treturn result\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tsyscall.Syscall9(gpGetActiveUniform, 7, uintptr(program), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(xtype)), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func (entry *UtxoEntry) BlockIndex() uint32 {\n\treturn entry.blockIndex\n}", "func GetFragDataIndex(program uint32, name *int8) int32 {\n ret := C.glowGetFragDataIndex(gpGetFragDataIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func findBlock(tokens []obj.Token) int {\n\tbraceCount := 0\n\tfor i, tk := range tokens {\n\t\tswitch tk.Val {\n\t\tcase \"[\", \"(\":\n\t\t\tbraceCount++\n\t\tcase \"]\", \")\":\n\t\t\tbraceCount--\n\t\tcase \"{\":\n\t\t\tif braceCount == 0 {\n\t\t\t\treturn i\n\t\t\t}\n\t\t}\n\t}\n\tfract.IPanic(tokens[0], obj.SyntaxPanic, \"Block is not given!\")\n\treturn -1\n}", "func (g *Game) indexOf(name string) (int, int) {\n\tt := strings.ToLower(name)\n\treturn int(rune(t[0]) - 'a'), int(rune(t[1]) - '1')\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n C.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func (z *Zzz) IdxName() int { //nolint:dupl false positive\n\treturn 3\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **uint8, uniformIndices *uint32) {\n\tC.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **uint8, uniformIndices *uint32) {\n\tC.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func (b *logEventBuffer) blockNumberIndex(bn int64) int {\n\treturn int(bn-1) % b.bufferSize()\n}", "func blocknum(s string) int64 {\n\tswitch s {\n\tcase \"earliest\":\n\t\treturn 0\n\tcase \"latest\":\n\t\treturn seth.Latest\n\tcase \"pending\":\n\t\treturn seth.Pending\n\tdefault:\n\t\tbn, err := strconv.ParseInt(s, 0, 64)\n\t\tif err != nil {\n\t\t\tfatalf(\"bad block specifier %q: %s\\n\", s, err)\n\t\t}\n\t\treturn bn\n\t}\n}", "func (pal *CGBPalette) readIndex() byte {\n\treturn pal.index\n}", "func GetUniformLocation(p Program, name string) Uniform {\n\treturn Uniform{Value: gl.GetUniformLocation(p.Value, gl.Str(name+\"\\x00\"))}\n}", "func findBoomerangIndex(transferTx *inspector.Transaction,\r\n\ttransfer *actions.Transfer,\r\n\tcontractAddress bitcoin.RawAddress) uint32 {\r\n\r\n\toutputUsed := make([]bool, len(transferTx.Outputs))\r\n\tfor _, assetTransfer := range transfer.Assets {\r\n\t\tif assetTransfer.ContractIndex == uint32(0x0000ffff) ||\r\n\t\t\t(assetTransfer.AssetType == protocol.BSVAssetID && len(assetTransfer.AssetCode) == 0) {\r\n\t\t\tcontinue\r\n\t\t}\r\n\r\n\t\tif int(assetTransfer.ContractIndex) >= len(transferTx.Outputs) {\r\n\t\t\treturn 0xffffffff\r\n\t\t}\r\n\r\n\t\t// Output will be spent by settlement tx.\r\n\t\toutputUsed[assetTransfer.ContractIndex] = true\r\n\t}\r\n\r\n\tfor index, output := range transferTx.Outputs {\r\n\t\tif outputUsed[index] {\r\n\t\t\tcontinue\r\n\t\t}\r\n\t\tif output.Address.Equal(contractAddress) {\r\n\t\t\treturn uint32(index)\r\n\t\t}\r\n\t}\r\n\r\n\treturn 0xffffffff\r\n}", "func (n *Node) index(v Boxer) int {\n\tif n.children[0] == nil {\n\t\treturn -1\n\t}\n\n\tfor i, _ := range n.children {\n\t\tif n.children[i].boundingBox.ContainsCenter(v.Box()) {\n\t\t\treturn i\n\t\t}\n\t}\n\n\treturn -1\n}", "func (t T) Block() uint32 { return t.block }", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tC.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tC.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (layout Layout) blockOffset(level int, index int64) int64 {\n\treturn layout.levelOffset[level] + index*layout.blockSize\n}", "func loc(index int) int {\n\treturn index % 1000\n}", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *uint8) int32 {\n\tret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *uint8) int32 {\n\tret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func findAssetID(assets []Asset, name string) int {\n\tfor _, asset := range assets {\n\t\tif asset.Name == name {\n\t\t\treturn asset.Id\n\t\t}\n\t}\n\treturn -1\n}", "func (t *CompType) MemberIndex(name string) int {\n\tc_name := C.CString(name)\n\tdefer C.free(unsafe.Pointer(c_name))\n\treturn int(C.H5Tget_member_index(t.id, c_name))\n}", "func (b *buffer) index(i uint32) *unsafe.Pointer {\n\treturn risky.Index(unsafe.Pointer(&b.data), ptrSize, uintptr(i))\n}", "func (hm *HashMap) getIndex(key string) uint64 {\n\thasher := hm.hasher.Get().(hash.Hash64)\n\thasher.Reset()\n\thasher.Write([]byte(key))\n\tindex := hasher.Sum64() % hm.size\n\thm.hasher.Put(hasher)\n\treturn index\n}", "func Index(depth, offset uint) uint {\n\treturn (1+2*offset)*twoPow(depth) - 1\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *uint8) uint32 {\n\tret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *uint8) uint32 {\n\tret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func hashBlock(s []byte) uint32 {\n\tvar b [4]byte\n\tswitch len(s) {\n\tcase 3:\n\t\tb[2] = s[2]\n\t\tb[1] = s[1]\n\t\tb[0] = s[0]\n\tdefault:\n\t\tb[0] = 0 // for set breakpoint\n\t}\n\ti := binary.LittleEndian.Uint32(b[:])\n\treturn i\n}", "func Lookup(name string) string {\n\treturn index[name]\n}", "func (p Pin) Index() int {\n\treturn int(p.index())\n}", "func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) {\n\tC.glowUniformBlockBinding(gpUniformBlockBinding, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLuint)(uniformBlockBinding))\n}", "func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) {\n\tC.glowUniformBlockBinding(gpUniformBlockBinding, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLuint)(uniformBlockBinding))\n}" ]
[ "0.7923487", "0.76378137", "0.73417115", "0.72219354", "0.6544128", "0.6544128", "0.64430076", "0.6195887", "0.6187461", "0.6103532", "0.59265757", "0.59039944", "0.58446866", "0.58275574", "0.5662543", "0.5638315", "0.56180334", "0.56180334", "0.5613862", "0.5613862", "0.5592647", "0.5565522", "0.5533465", "0.5527175", "0.5507056", "0.54974425", "0.54704624", "0.5463877", "0.54541034", "0.54495686", "0.54206586", "0.54121786", "0.54121786", "0.54080254", "0.5393691", "0.5388631", "0.5388631", "0.5384076", "0.53757846", "0.5340057", "0.53214186", "0.53148776", "0.5307952", "0.52929544", "0.5283796", "0.52830625", "0.527394", "0.5270903", "0.52702624", "0.5267673", "0.52644944", "0.5259429", "0.5255797", "0.5253413", "0.5247606", "0.5247606", "0.5236719", "0.5225981", "0.5215613", "0.52132356", "0.5211721", "0.5195901", "0.5195136", "0.5187406", "0.5185694", "0.5180799", "0.5171278", "0.5163393", "0.5162319", "0.5158301", "0.5155685", "0.5153111", "0.51421124", "0.51421124", "0.5134851", "0.5133687", "0.5117016", "0.5111138", "0.5105527", "0.50836897", "0.5069393", "0.50666106", "0.50666106", "0.50626504", "0.5055792", "0.50505996", "0.50505996", "0.50457245", "0.5028997", "0.5020168", "0.50191736", "0.501073", "0.50058067", "0.50058067", "0.50053525", "0.5005078", "0.50045663", "0.4990656", "0.4990656" ]
0.7303142
4
retrieve the index of a named uniform block
func GetUniformIndices(program uint32, uniformCount int32, uniformNames **uint8, uniformIndices *uint32) { C.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetUniformBlockIndex(program uint32, uniformBlockName *int8) uint32 {\n ret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n return (uint32)(ret)\n}", "func (s *Shader) getUniformBlockLocation(name string) (index uint32) {\n\t// if we already saved the location, return it\n\tif index, ok := s.uniformBIndices[name]; ok {\n\t\treturn index\n\t}\n\n\t// if it's not in our index cache, get it from opengl and save it in the cache\n\tindex = gl.GetUniformBlockIndex(s.Program, gl.Str(name+\"\\x00\"))\n\ts.uniformBIndices[name] = index\n\treturn\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret, _, _ := syscall.Syscall(gpGetUniformBlockIndex, 2, uintptr(program), uintptr(unsafe.Pointer(uniformBlockName)), 0)\n\treturn (uint32)(ret)\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n\treturn (uint32)(ret)\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n\treturn (uint32)(ret)\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *int8) {\n C.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tC.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tC.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n}", "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformBlockName, 5, uintptr(program), uintptr(uniformBlockIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformBlockName)), 0)\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func (l *LocationCache) FindUniform(name string) int {\n\t// Scan through the cache for it now.\n\tfor _, u := range l.uniforms {\n\t\tif u.name != name {\n\t\t\tcontinue\n\t\t}\n\t\treturn u.location\n\t}\n\n\t// Query directly and store in the cache.\n\ti := l.GetUniformLocation(name)\n\tif i < 0 {\n\t\ti = -1\n\t}\n\tl.uniforms = append(l.uniforms, location{\n\t\tname: name,\n\t\tlocation: i,\n\t})\n\treturn i\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **int8, uniformIndices *uint32) {\n C.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (self *Script) getOutputIdxByName(name string) int {\n for i, def := range self.OutputDefs {\n if def.Name == name {\n return i\n }\n }\n return -1\n}", "func GetUniformLocation(program uint32, name *int8) int32 {\n ret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func (provider *ChunkProvider) GetChunkIndex(x, z int32) int {\n\treturn int(((int64(x) & 0xffffffff) << 32) | (int64(z) & 0xffffffff))\n}", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *int8) int32 {\n ret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tC.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformBlockiv(gpGetActiveUniformBlockiv, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tC.glowGetActiveUniformBlockiv(gpGetActiveUniformBlockiv, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) {\n\tsyscall.Syscall6(gpGetActiveUniformBlockiv, 4, uintptr(program), uintptr(uniformBlockIndex), uintptr(pname), uintptr(unsafe.Pointer(params)), 0, 0)\n}", "func (s *Shader) getUniformLocation(name string) (location int32) {\n\t// if we already saved the location, return it\n\tif location, ok := s.uniformLocs[name]; ok {\n\t\treturn location\n\t}\n\n\t// if it's not in our location cache, get it from opengl and save it in the cache\n\tlocation = gl.GetUniformLocation(s.Program, gl.Str(name+\"\\x00\"))\n\tif location == -1 {\n\t\tfmt.Println(\"ERROR: Could not find uniform:\", name)\n\t\treturn\n\t}\n\n\ts.uniformLocs[name] = location\n\treturn\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *int8) uint32 {\n ret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n return (uint32)(ret)\n}", "func (native *OpenGL) GetUniformLocation(program uint32, name string) int32 {\n\treturn gl.GetUniformLocation(program, gl.Str(name+\"\\x00\"))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n C.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (action *Action) GetIndex() int64 {\n\treturn action.height*types.MaxTxsPerBlock + int64(action.index)\n}", "func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) {\n C.glowUniformBlockBinding(gpUniformBlockBinding, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLuint)(uniformBlockBinding))\n}", "func (a *chunkBasedAtlas) chunkTileIndex(local maths.Vector) int {\n\treturn local.X + local.Y*a.ChunkSize\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) {\n\tsyscall.Syscall6(gpGetActiveUniformName, 5, uintptr(program), uintptr(uniformIndex), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(uniformName)), 0)\n}", "func IndexOf(blks []blocks.Block, c cid.Cid) int {\n\tfor i, n := range blks {\n\t\tif n.Cid() == c {\n\t\t\treturn i\n\t\t}\n\t}\n\treturn -1\n}", "func (st *SymbolTable) Index(name string) int {\n\tindex, exist := st.symbols[name]\n\tif !exist {\n\t\treturn -1\n\t}\n\n\treturn index\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) {\n\tC.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (it iterator) index(b *ringBuf) uint64 {\n\treturn b.buf[it].Index\n}", "func (el *Elements) Index(name string) (int, bool) {\n\tfor n, e := range *el {\n\t\tif e.Name == name {\n\t\t\treturn n, true\n\t\t}\n\t}\n\treturn 0, false\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tC.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func (h Helper) ScriptIndexByName(name string) int {\n\tfor i, s := range h.ScriptNames {\n\t\tif s == name {\n\t\t\treturn i\n\t\t}\n\t}\n\treturn -1\n}", "func (v Chunk) Index(label string) int {\n\tfor j, c := range v.buf.Columns {\n\t\tif c.Label == label {\n\t\t\treturn j\n\t\t}\n\t}\n\treturn -1\n}", "func (ly *CINLayer) UnitVarIdx(varNm string) (int, error) {\n\tvidx, err := ly.Layer.UnitVarIdx(varNm)\n\tif err == nil {\n\t\treturn vidx, err\n\t}\n\tif varNm != \"ACh\" {\n\t\treturn -1, fmt.Errorf(\"pcore.CINLayer: variable named: %s not found\", varNm)\n\t}\n\tnn := ly.Layer.UnitVarNum()\n\treturn nn, nil\n}", "func GetUniformLocation(program Uint, name string) Int {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcname, _ := unpackPCharString(name)\n\t__ret := C.glGetUniformLocation(cprogram, cname)\n\t__v := (Int)(__ret)\n\treturn __v\n}", "func GetActiveUniform(p Program, index uint32) (name string, size int, ty Enum) {\n\tvar length, si int32\n\tvar typ uint32\n\tname = strings.Repeat(\"\\x00\", 256)\n\tcname := gl.Str(name)\n\tgl.GetActiveUniform(p.Value, uint32(index), int32(len(name)-1), &length, &si, &typ, cname)\n\tname = name[:strings.IndexRune(name, 0)]\n\treturn name, int(si), Enum(typ)\n}", "func blockIndexKey(blockHash *common.Hash, blockHeight uint32) []byte {\n\tindexKey := make([]byte, common.HashLength+4)\n\tbinary.BigEndian.PutUint32(indexKey[0:4], blockHeight)\n\tcopy(indexKey[4:common.HashLength+4], blockHash[:])\n\treturn indexKey\n}", "func Uniform1i(location int32, v0 int32) {\n C.glowUniform1i(gpUniform1i, (C.GLint)(location), (C.GLint)(v0))\n}", "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (routingTable *RoutingTable) getBucketIndex(id *KademliaID) int {\n\troutingTable.mutex.Lock()\n\tdefer routingTable.mutex.Unlock()\n\n\tdistance := id.CalcDistance(routingTable.me.ID)\n\tfor i := 0; i < IDLength; i++ {\n\t\tfor j := 0; j < 8; j++ {\n\t\t\tif (distance[i]>>uint8(7-j))&0x1 != 0 {\n\t\t\t\treturn i*8 + j\n\t\t\t}\n\t\t}\n\t}\n\n\treturn IDLength*8 - 1\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetUniformLocation, 2, uintptr(program), uintptr(unsafe.Pointer(name)), 0)\n\treturn (int32)(ret)\n}", "func (ly *MatrixLayer) UnitVarIdx(varNm string) (int, error) {\n\tvidx, err := ly.Layer.UnitVarIdx(varNm)\n\tif err == nil {\n\t\treturn vidx, err\n\t}\n\tif !(varNm == \"DALrn\" || varNm == \"ACh\") {\n\t\treturn -1, fmt.Errorf(\"pcore.NeuronVars: variable named: %s not found\", varNm)\n\t}\n\tnn := len(leabra.NeuronVars)\n\t// nn = DA\n\tif varNm == \"DALrn\" {\n\t\treturn nn + 1, nil\n\t}\n\treturn nn + 2, nil\n}", "func (m *Module) indexNamedConst(goConst *ssa.NamedConst) error {\n\t// TODO: index named constant as LLVM IR constant global variable.\n\tpanic(\"not yet implemented\")\n}", "func (uni *Uniform) Location(gs *GLS) int32 {\n\n\tloc := gs.prog.GetUniformLocation(uni.name)\n\treturn loc\n}", "func (program Program) GetUniformLocation(name string) UniformLocation {\n\treturn UniformLocation(gl.GetUniformLocation(uint32(program), gl.Str(name+\"\\x00\")))\n}", "func assetID(t int, name string) aid { return aid(t) + aid(stringHash(name))<<32 }", "func (ba *buddyAllocator) getIndex(\n\taddr, order uint32,\n) (index uint32, first bool) {\n\tif order >= MaxOrder {\n\t\treturn addr / models.Size4MB.ToBytes(), false\n\t}\n\tpageIndex := addr / models.Size4KB.ToBytes() / (1 << order)\n\tfirst = (pageIndex % 2) == 0\n\tindex = pageIndex / 2\n\treturn\n}", "func (cpu *Cpu) ind() int {\n\taddr := cpu.mem.Read(cpu.pc) & 0xFF\n\tcpu.pc++\n\n\treturn cpu.mem.Read(addr) | (cpu.mem.Read(addr+1) << 8)\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func index(element *fields.QualifiedHash, group []*fields.QualifiedHash) int {\n\tfor i, current := range group {\n\t\tif element.Equals(current) {\n\t\t\treturn i\n\t\t}\n\t}\n\treturn -1\n}", "func (desc BindDescriptor) Index() int {\n\tindex := int(desc>>bindIndexShift) - 1\n\t// debugf(\"BindDescriptor=%v, class=%v, index=%v\", desc, desc.Class(), index)\n\treturn index\n}", "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *uint8) {\n\tsyscall.Syscall6(gpGetActiveSubroutineUniformName, 6, uintptr(program), uintptr(shadertype), uintptr(index), uintptr(bufsize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(name)))\n}", "func (ly *Layer) UnitVarIdx(varNm string) (int, error) {\n\tvidx, err := ly.AlphaMaxLayer.UnitVarIdx(varNm)\n\tif err == nil {\n\t\treturn vidx, err\n\t}\n\tif varNm != \"DA\" {\n\t\treturn -1, fmt.Errorf(\"pcore.Layer: variable named: %s not found\", varNm)\n\t}\n\tnn := ly.AlphaMaxLayer.UnitVarNum()\n\treturn nn, nil\n}", "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **uint8, uniformIndices *uint32) {\n\tsyscall.Syscall6(gpGetUniformIndices, 4, uintptr(program), uintptr(uniformCount), uintptr(unsafe.Pointer(uniformNames)), uintptr(unsafe.Pointer(uniformIndices)), 0, 0)\n}", "func (cpu *Cpu) indx() int {\n\taddr := cpu.mem.Read(cpu.pc) & 0xFF\n\tcpu.pc++\n\n\treturn (cpu.mem.Read(addr+cpu.x) | (cpu.mem.Read(addr+1+cpu.x) << 8))\n}", "func GetTheBlockKey(chain, index uint64) []byte {\n\tvar key Hash\n\tif chain == 0 {\n\t\treturn nil\n\t}\n\tif index == 0 {\n\t\tvar pStat BaseInfo\n\t\tgetDataFormDB(chain, dbStat{}, []byte{StatBaseInfo}, &pStat)\n\t\treturn pStat.Key[:]\n\t}\n\tgetDataFormLog(chain, logBlockInfo{}, runtime.Encode(index), &key)\n\tif key.Empty() {\n\t\treturn nil\n\t}\n\treturn key[:]\n}", "func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) {\n\tsyscall.Syscall(gpUniformBlockBinding, 3, uintptr(program), uintptr(uniformBlockIndex), uintptr(uniformBlockBinding))\n}", "func (debugging *debuggingOpenGL) GetUniformLocation(program uint32, name string) int32 {\n\tdebugging.recordEntry(\"GetUniformLocation\", program, name)\n\tresult := debugging.gl.GetUniformLocation(program, name)\n\tdebugging.recordExit(\"GetUniformLocation\", result)\n\treturn result\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tsyscall.Syscall9(gpGetActiveUniform, 7, uintptr(program), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(xtype)), uintptr(unsafe.Pointer(name)), 0, 0)\n}", "func (entry *UtxoEntry) BlockIndex() uint32 {\n\treturn entry.blockIndex\n}", "func GetFragDataIndex(program uint32, name *int8) int32 {\n ret := C.glowGetFragDataIndex(gpGetFragDataIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func findBlock(tokens []obj.Token) int {\n\tbraceCount := 0\n\tfor i, tk := range tokens {\n\t\tswitch tk.Val {\n\t\tcase \"[\", \"(\":\n\t\t\tbraceCount++\n\t\tcase \"]\", \")\":\n\t\t\tbraceCount--\n\t\tcase \"{\":\n\t\t\tif braceCount == 0 {\n\t\t\t\treturn i\n\t\t\t}\n\t\t}\n\t}\n\tfract.IPanic(tokens[0], obj.SyntaxPanic, \"Block is not given!\")\n\treturn -1\n}", "func (g *Game) indexOf(name string) (int, int) {\n\tt := strings.ToLower(name)\n\treturn int(rune(t[0]) - 'a'), int(rune(t[1]) - '1')\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n C.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func (z *Zzz) IdxName() int { //nolint:dupl false positive\n\treturn 3\n}", "func (b *logEventBuffer) blockNumberIndex(bn int64) int {\n\treturn int(bn-1) % b.bufferSize()\n}", "func blocknum(s string) int64 {\n\tswitch s {\n\tcase \"earliest\":\n\t\treturn 0\n\tcase \"latest\":\n\t\treturn seth.Latest\n\tcase \"pending\":\n\t\treturn seth.Pending\n\tdefault:\n\t\tbn, err := strconv.ParseInt(s, 0, 64)\n\t\tif err != nil {\n\t\t\tfatalf(\"bad block specifier %q: %s\\n\", s, err)\n\t\t}\n\t\treturn bn\n\t}\n}", "func (pal *CGBPalette) readIndex() byte {\n\treturn pal.index\n}", "func GetUniformLocation(p Program, name string) Uniform {\n\treturn Uniform{Value: gl.GetUniformLocation(p.Value, gl.Str(name+\"\\x00\"))}\n}", "func findBoomerangIndex(transferTx *inspector.Transaction,\r\n\ttransfer *actions.Transfer,\r\n\tcontractAddress bitcoin.RawAddress) uint32 {\r\n\r\n\toutputUsed := make([]bool, len(transferTx.Outputs))\r\n\tfor _, assetTransfer := range transfer.Assets {\r\n\t\tif assetTransfer.ContractIndex == uint32(0x0000ffff) ||\r\n\t\t\t(assetTransfer.AssetType == protocol.BSVAssetID && len(assetTransfer.AssetCode) == 0) {\r\n\t\t\tcontinue\r\n\t\t}\r\n\r\n\t\tif int(assetTransfer.ContractIndex) >= len(transferTx.Outputs) {\r\n\t\t\treturn 0xffffffff\r\n\t\t}\r\n\r\n\t\t// Output will be spent by settlement tx.\r\n\t\toutputUsed[assetTransfer.ContractIndex] = true\r\n\t}\r\n\r\n\tfor index, output := range transferTx.Outputs {\r\n\t\tif outputUsed[index] {\r\n\t\t\tcontinue\r\n\t\t}\r\n\t\tif output.Address.Equal(contractAddress) {\r\n\t\t\treturn uint32(index)\r\n\t\t}\r\n\t}\r\n\r\n\treturn 0xffffffff\r\n}", "func (n *Node) index(v Boxer) int {\n\tif n.children[0] == nil {\n\t\treturn -1\n\t}\n\n\tfor i, _ := range n.children {\n\t\tif n.children[i].boundingBox.ContainsCenter(v.Box()) {\n\t\t\treturn i\n\t\t}\n\t}\n\n\treturn -1\n}", "func (t T) Block() uint32 { return t.block }", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tC.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tC.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (layout Layout) blockOffset(level int, index int64) int64 {\n\treturn layout.levelOffset[level] + index*layout.blockSize\n}", "func loc(index int) int {\n\treturn index % 1000\n}", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *uint8) int32 {\n\tret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *uint8) int32 {\n\tret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func findAssetID(assets []Asset, name string) int {\n\tfor _, asset := range assets {\n\t\tif asset.Name == name {\n\t\t\treturn asset.Id\n\t\t}\n\t}\n\treturn -1\n}", "func (t *CompType) MemberIndex(name string) int {\n\tc_name := C.CString(name)\n\tdefer C.free(unsafe.Pointer(c_name))\n\treturn int(C.H5Tget_member_index(t.id, c_name))\n}", "func (b *buffer) index(i uint32) *unsafe.Pointer {\n\treturn risky.Index(unsafe.Pointer(&b.data), ptrSize, uintptr(i))\n}", "func (hm *HashMap) getIndex(key string) uint64 {\n\thasher := hm.hasher.Get().(hash.Hash64)\n\thasher.Reset()\n\thasher.Write([]byte(key))\n\tindex := hasher.Sum64() % hm.size\n\thm.hasher.Put(hasher)\n\treturn index\n}", "func Index(depth, offset uint) uint {\n\treturn (1+2*offset)*twoPow(depth) - 1\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *uint8) uint32 {\n\tret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func GetSubroutineIndex(program uint32, shadertype uint32, name *uint8) uint32 {\n\tret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (uint32)(ret)\n}", "func hashBlock(s []byte) uint32 {\n\tvar b [4]byte\n\tswitch len(s) {\n\tcase 3:\n\t\tb[2] = s[2]\n\t\tb[1] = s[1]\n\t\tb[0] = s[0]\n\tdefault:\n\t\tb[0] = 0 // for set breakpoint\n\t}\n\ti := binary.LittleEndian.Uint32(b[:])\n\treturn i\n}", "func Lookup(name string) string {\n\treturn index[name]\n}", "func (p Pin) Index() int {\n\treturn int(p.index())\n}", "func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) {\n\tC.glowUniformBlockBinding(gpUniformBlockBinding, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLuint)(uniformBlockBinding))\n}", "func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) {\n\tC.glowUniformBlockBinding(gpUniformBlockBinding, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLuint)(uniformBlockBinding))\n}" ]
[ "0.7923487", "0.76378137", "0.73417115", "0.7303142", "0.7303142", "0.72219354", "0.6544128", "0.6544128", "0.64430076", "0.6195887", "0.6187461", "0.6103532", "0.59265757", "0.59039944", "0.58446866", "0.58275574", "0.5662543", "0.5638315", "0.56180334", "0.56180334", "0.5613862", "0.5613862", "0.5592647", "0.5565522", "0.5533465", "0.5527175", "0.5507056", "0.54974425", "0.54704624", "0.5463877", "0.54541034", "0.54495686", "0.54206586", "0.54121786", "0.54121786", "0.54080254", "0.5393691", "0.5388631", "0.5388631", "0.5384076", "0.53757846", "0.5340057", "0.53214186", "0.53148776", "0.5307952", "0.52929544", "0.5283796", "0.52830625", "0.527394", "0.5270903", "0.52702624", "0.5267673", "0.52644944", "0.5259429", "0.5255797", "0.5253413", "0.5247606", "0.5247606", "0.5236719", "0.5225981", "0.5215613", "0.52132356", "0.5211721", "0.5195901", "0.5195136", "0.5187406", "0.5185694", "0.5180799", "0.5171278", "0.5163393", "0.5162319", "0.5158301", "0.5155685", "0.5153111", "0.5134851", "0.5133687", "0.5117016", "0.5111138", "0.5105527", "0.50836897", "0.5069393", "0.50666106", "0.50666106", "0.50626504", "0.5055792", "0.50505996", "0.50505996", "0.50457245", "0.5028997", "0.5020168", "0.50191736", "0.501073", "0.50058067", "0.50058067", "0.50053525", "0.5005078", "0.50045663", "0.4990656", "0.4990656" ]
0.51421124
75
Returns the location of a uniform variable
func GetUniformLocation(program uint32, name *uint8) int32 { ret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name))) return (int32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (uni *Uniform) Location(gs *GLS) int32 {\n\n\tloc := gs.prog.GetUniformLocation(uni.name)\n\treturn loc\n}", "func Uniform1i(location int32, v0 int32) {\n C.glowUniform1i(gpUniform1i, (C.GLint)(location), (C.GLint)(v0))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n C.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func (s *Shader) getUniformBlockLocation(name string) (index uint32) {\n\t// if we already saved the location, return it\n\tif index, ok := s.uniformBIndices[name]; ok {\n\t\treturn index\n\t}\n\n\t// if it's not in our index cache, get it from opengl and save it in the cache\n\tindex = gl.GetUniformBlockIndex(s.Program, gl.Str(name+\"\\x00\"))\n\ts.uniformBIndices[name] = index\n\treturn\n}", "func (l *LocationCache) FindUniform(name string) int {\n\t// Scan through the cache for it now.\n\tfor _, u := range l.uniforms {\n\t\tif u.name != name {\n\t\t\tcontinue\n\t\t}\n\t\treturn u.location\n\t}\n\n\t// Query directly and store in the cache.\n\ti := l.GetUniformLocation(name)\n\tif i < 0 {\n\t\ti = -1\n\t}\n\tl.uniforms = append(l.uniforms, location{\n\t\tname: name,\n\t\tlocation: i,\n\t})\n\treturn i\n}", "func Uniform3i(location int32, v0 int32, v1 int32, v2 int32) {\n C.glowUniform3i(gpUniform3i, (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2))\n}", "func (tr *trooper) loc() (x, y, z float64) { return tr.part.At() }", "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func (s *Shader) getUniformLocation(name string) (location int32) {\n\t// if we already saved the location, return it\n\tif location, ok := s.uniformLocs[name]; ok {\n\t\treturn location\n\t}\n\n\t// if it's not in our location cache, get it from opengl and save it in the cache\n\tlocation = gl.GetUniformLocation(s.Program, gl.Str(name+\"\\x00\"))\n\tif location == -1 {\n\t\tfmt.Println(\"ERROR: Could not find uniform:\", name)\n\t\treturn\n\t}\n\n\ts.uniformLocs[name] = location\n\treturn\n}", "func GetUniformLocation(program uint32, name *int8) int32 {\n ret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func (program Program) GetUniformLocation(name string) UniformLocation {\n\treturn UniformLocation(gl.GetUniformLocation(uint32(program), gl.Str(name+\"\\x00\")))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n C.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *int8) uint32 {\n ret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n return (uint32)(ret)\n}", "func (u *Uniform) Bind() {\n\tif u.id < 0 {\n\t\tu.id = gl.GetUniformLocation(u.program, glString(u.name))\n\t\tif u.id < 0 {\n\t\t\tpanic(fmt.Errorf(\"glGetUniformLocation for \\\"%s\\\" (program %d) returned -1, GL error: %d\", u.name, u.program, gl.GetError()))\n\t\t}\n\t}\n\tswitch value := u.value.(type) {\n\tcase uint32:\n\t\tgl.Uniform1ui(u.id, value)\n\tcase []uint32:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1uiv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2uiv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3uiv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4uiv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase int32:\n\t\tgl.Uniform1i(u.id, value)\n\tcase []int32:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1iv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2iv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3iv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4iv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase float32:\n\t\tgl.Uniform1f(u.id, value)\n\tcase []float32:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1fv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2fv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3fv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4fv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase float64:\n\t\tgl.Uniform1d(u.id, value)\n\tcase []float64:\n\t\tswitch len(value) {\n\t\tcase 1:\n\t\t\tgl.Uniform1dv(u.id, 1, &value[0])\n\t\tcase 2:\n\t\t\tgl.Uniform2dv(u.id, 2, &value[0])\n\t\tcase 3:\n\t\t\tgl.Uniform3dv(u.id, 3, &value[0])\n\t\tcase 4:\n\t\t\tgl.Uniform4dv(u.id, 4, &value[0])\n\t\tdefault:\n\t\t\tpanic(ErrUniformInvalidType)\n\t\t}\n\tcase mgl32.Mat2:\n\t\tgl.UniformMatrix2fv(u.id, 1, false, &value[0])\n\tcase mgl32.Mat3:\n\t\tgl.UniformMatrix3fv(u.id, 1, false, &value[0])\n\tcase mgl32.Mat4:\n\t\tgl.UniformMatrix4fv(u.id, 1, false, &value[0])\n\tcase *Texture:\n\t\tvalue.Bind(0) //TODO support multiple textures per-shader\n\t\terr := value.SetUniform(u.id)\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\tcase color.Color:\n\t\tr, g, b, a := toGLColor(value)\n\t\tgl.Uniform4f(u.id, r, g, b, a)\n\tdefault:\n\t\tpanic(ErrUniformInvalidType)\n\t}\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gpUniform1ui, (C.GLint)(location), (C.GLuint)(v0))\n}", "func Uniform3ui(location int32, v0 uint32, v1 uint32, v2 uint32) {\n C.glowUniform3ui(gpUniform3ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tsyscall.Syscall(gpGetUniformfv, 3, uintptr(program), uintptr(location), uintptr(unsafe.Pointer(params)))\n}", "func (d *litMapping) VariableOf(m z.Lit) Variable {\n\ti, ok := d.variables[m]\n\tif ok {\n\t\treturn i\n\t}\n\td.errs = append(d.errs, fmt.Errorf(\"no variable corresponding to %s\", m))\n\treturn zeroVariable{}\n}", "func Uniform1f(location int32, v0 float32) {\n C.glowUniform1f(gpUniform1f, (C.GLint)(location), (C.GLfloat)(v0))\n}", "func Uniform3f(location int32, v0 float32, v1 float32, v2 float32) {\n C.glowUniform3f(gpUniform3f, (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1), (C.GLfloat)(v2))\n}", "func (debugging *debuggingOpenGL) GetUniformLocation(program uint32, name string) int32 {\n\tdebugging.recordEntry(\"GetUniformLocation\", program, name)\n\tresult := debugging.gl.GetUniformLocation(program, name)\n\tdebugging.recordExit(\"GetUniformLocation\", result)\n\treturn result\n}", "func (uni *Uniform3fv) GetPos(pos int) float32 {\n\n\treturn uni.v[pos]\n}", "func Uniform4i(location int32, v0 int32, v1 int32, v2 int32, v3 int32) {\n C.glowUniform4i(gpUniform4i, (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2), (C.GLint)(v3))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tC.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n\tC.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func (native *OpenGL) GetUniformLocation(program uint32, name string) int32 {\n\treturn gl.GetUniformLocation(program, gl.Str(name+\"\\x00\"))\n}", "func GetUniformLocation(p Program, name string) Uniform {\n\treturn Uniform{Value: gl.GetUniformLocation(p.Value, gl.Str(name+\"\\x00\"))}\n}", "func Uniform2i(location int32, v0 int32, v1 int32) {\n C.glowUniform2i(gpUniform2i, (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1))\n}", "func GetAttribLocation(p Program, name string) Attrib {\n\treturn Attrib{Value: uint(gl.GetAttribLocation(p.Value, gl.Str(name+\"\\x00\")))}\n}", "func GetUniformLocation(program uint32, name *uint8) int32 {\n\tret, _, _ := syscall.Syscall(gpGetUniformLocation, 2, uintptr(program), uintptr(unsafe.Pointer(name)), 0)\n\treturn (int32)(ret)\n}", "func Uniform3uiv(location int32, count int32, value *uint32) {\n C.glowUniform3uiv(gpUniform3uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func (uni *Uniform1fv) Get(pos int, v float32) float32 {\n\n\treturn uni.v[pos]\n}", "func Uniform3fv(location int32, count int32, value *float32) {\n C.glowUniform3fv(gpUniform3fv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func Uniform2ui(location int32, v0 uint32, v1 uint32) {\n C.glowUniform2ui(gpUniform2ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1))\n}", "func (s Starbase) Location() (int, int) {\n\treturn s.X, s.Y\n}", "func Uniform4ui(location int32, v0 uint32, v1 uint32, v2 uint32, v3 uint32) {\n C.glowUniform4ui(gpUniform4ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2), (C.GLuint)(v3))\n}", "func Uniform1i(location int32, v0 int32) {\n\tC.glowUniform1i(gpUniform1i, (C.GLint)(location), (C.GLint)(v0))\n}", "func Uniform1i(location int32, v0 int32) {\n\tC.glowUniform1i(gpUniform1i, (C.GLint)(location), (C.GLint)(v0))\n}", "func (program Program) GetAttribLocation(name string) int32 {\n\treturn gl.GetAttribLocation(uint32(program), gl.Str(name+\"\\x00\"))\n}", "func (uni *Uniform4fv) GetPos(pos int) float32 {\n\n\treturn uni.v[pos]\n}", "func (ly *MatrixLayer) UnitVarIdx(varNm string) (int, error) {\n\tvidx, err := ly.Layer.UnitVarIdx(varNm)\n\tif err == nil {\n\t\treturn vidx, err\n\t}\n\tif !(varNm == \"DALrn\" || varNm == \"ACh\") {\n\t\treturn -1, fmt.Errorf(\"pcore.NeuronVars: variable named: %s not found\", varNm)\n\t}\n\tnn := len(leabra.NeuronVars)\n\t// nn = DA\n\tif varNm == \"DALrn\" {\n\t\treturn nn + 1, nil\n\t}\n\treturn nn + 2, nil\n}", "func (debugging *debuggingOpenGL) Uniform1i(location int32, value int32) {\n\tdebugging.recordEntry(\"Uniform1i\", location, value)\n\tdebugging.gl.Uniform1i(location, value)\n\tdebugging.recordExit(\"Uniform1i\")\n}", "func Uniform1fv(location int32, count int32, value *float32) {\n C.glowUniform1fv(gpUniform1fv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func Uniform1uiv(location int32, count int32, value *uint32) {\n C.glowUniform1uiv(gpUniform1uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func (s *Shader) GetUniform(str string) *Uniform {\n\tif uid, ok := s.uniforms[str]; ok {\n\t\treturn uid\n\t}\n\ts.uniforms[str] = &Uniform{\n\t\tname: str,\n\t\tprogram: s.programID,\n\t}\n\treturn s.uniforms[str]\n}", "func GetUniformLocation(program Uint, name string) Int {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcname, _ := unpackPCharString(name)\n\t__ret := C.glGetUniformLocation(cprogram, cname)\n\t__v := (Int)(__ret)\n\treturn __v\n}", "func (obj *alpha) Variable() string {\n\treturn obj.variable\n}", "func Uniform1iv(location int32, count int32, value *int32) {\n C.glowUniform1iv(gpUniform1iv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value)))\n}", "func (uni *UniformMatrix3f) Get(pos int) float32 {\n\n\treturn uni.v[pos]\n}", "func Uniform4f(location int32, v0 float32, v1 float32, v2 float32, v3 float32) {\n C.glowUniform4f(gpUniform4f, (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1), (C.GLfloat)(v2), (C.GLfloat)(v3))\n}", "func Uniform3i(location int32, v0 int32, v1 int32, v2 int32) {\n\tsyscall.Syscall6(gpUniform3i, 4, uintptr(location), uintptr(v0), uintptr(v1), uintptr(v2), 0, 0)\n}", "func Uniform1Int(location UniformLocation, v0 int32) {\n\tgl.Uniform1i(int32(location), v0)\n}", "func Uniform3Int(location UniformLocation, v0, v1, v2 int32) {\n\tgl.Uniform3i(int32(location), v0, v1, v2)\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tC.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetUniformiv(program uint32, location int32, params *int32) {\n\tC.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetAttribLocation(program uint32, name *int8) int32 {\n ret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func Uniform3iv(location int32, count int32, value *int32) {\n C.glowUniform3iv(gpUniform3iv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value)))\n}", "func Uniform3i(location int32, v0 int32, v1 int32, v2 int32) {\n\tC.glowUniform3i(gpUniform3i, (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2))\n}", "func Uniform3i(location int32, v0 int32, v1 int32, v2 int32) {\n\tC.glowUniform3i(gpUniform3i, (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2))\n}", "func (uni *Uniform) LocationIdx(gs *GLS, idx int) int32 {\n\n\t// Rebuilds uniform indexed name if necessary\n\tif uni.nameidx == \"\" || uni.idx != idx {\n\t\tuni.nameidx = fmt.Sprintf(\"%s[%d]\", uni.name, idx)\n\t\tuni.idx = idx\n\t}\n\tloc := gs.prog.GetUniformLocation(uni.nameidx)\n\treturn loc\n}", "func GetAttribLocation(program Uint, name string) Int {\n\tcprogram, _ := (C.GLuint)(program), cgoAllocsUnknown\n\tcname, _ := unpackPCharString(name)\n\t__ret := C.glGetAttribLocation(cprogram, cname)\n\t__v := (Int)(__ret)\n\treturn __v\n}", "func Uniform1ui(location int32, v0 uint32) {\n\tC.glowUniform1ui(gpUniform1ui, (C.GLint)(location), (C.GLuint)(v0))\n}", "func Uniform1ui(location int32, v0 uint32) {\n\tC.glowUniform1ui(gpUniform1ui, (C.GLint)(location), (C.GLuint)(v0))\n}", "func (obj *declaration) Variable() string {\n\treturn obj.name\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n\treturn (uint32)(ret)\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n\treturn (uint32)(ret)\n}", "func Uniform3ui(location int32, v0 uint32, v1 uint32, v2 uint32) {\n\tC.glowUniform3ui(gpUniform3ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2))\n}", "func Uniform3ui(location int32, v0 uint32, v1 uint32, v2 uint32) {\n\tC.glowUniform3ui(gpUniform3ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2))\n}", "func Uniform1i(location int32, v0 int32) {\n\tsyscall.Syscall(gpUniform1i, 2, uintptr(location), uintptr(v0), 0)\n}", "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName)))\n}", "func (debugging *debuggingOpenGL) GetAttribLocation(program uint32, name string) int32 {\n\tdebugging.recordEntry(\"GetAttribLocation\", program, name)\n\tresult := debugging.gl.GetAttribLocation(program, name)\n\tdebugging.recordExit(\"GetAttribLocation\", result)\n\treturn result\n}", "func (native *OpenGL) Uniform3i(location int32, v0 int32, v1 int32, v2 int32) {\n\tgl.Uniform3i(location, v0, v1, v2)\n}", "func Uniform2uiv(location int32, count int32, value *uint32) {\n C.glowUniform2uiv(gpUniform2uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform1i(program uint32, location int32, v0 int32) {\n C.glowProgramUniform1i(gpProgramUniform1i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0))\n}", "func (ly *Layer) UnitVarIdx(varNm string) (int, error) {\n\tvidx, err := ly.AlphaMaxLayer.UnitVarIdx(varNm)\n\tif err == nil {\n\t\treturn vidx, err\n\t}\n\tif varNm != \"DA\" {\n\t\treturn -1, fmt.Errorf(\"pcore.Layer: variable named: %s not found\", varNm)\n\t}\n\tnn := ly.AlphaMaxLayer.UnitVarNum()\n\treturn nn, nil\n}", "func Uniform3fv(location int32, count int32, value *float32) {\n\tsyscall.Syscall(gpUniform3fv, 3, uintptr(location), uintptr(count), uintptr(unsafe.Pointer(value)))\n}", "func GetAttribLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func GetAttribLocation(program uint32, name *uint8) int32 {\n\tret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n\treturn (int32)(ret)\n}", "func (v variable) AtVariable(index variable) interface{} {\n\tindexVal := core.Int(index)\n\tif indexVal == 0 {\n\t\treturn nil\n\t}\n\treturn v.At(indexVal)\n}", "func (native *OpenGL) Uniform1i(location int32, value int32) {\n\tgl.Uniform1i(location, value)\n}", "func Location() (string, error) {\n\tslice, err := loader(\"locations\")\n\tcheckErr(err)\n\treturn random(slice), nil\n}", "func (native *OpenGL) GetAttribLocation(program uint32, name string) int32 {\n\treturn gl.GetAttribLocation(program, gl.Str(name+\"\\x00\"))\n}", "func (d sumTypeDecl) Location() string {\n\treturn fmt.Sprintf(\"%s:%d\", d.Path, d.Line)\n}", "func (ly *CINLayer) UnitVarIdx(varNm string) (int, error) {\n\tvidx, err := ly.Layer.UnitVarIdx(varNm)\n\tif err == nil {\n\t\treturn vidx, err\n\t}\n\tif varNm != \"ACh\" {\n\t\treturn -1, fmt.Errorf(\"pcore.CINLayer: variable named: %s not found\", varNm)\n\t}\n\tnn := ly.Layer.UnitVarNum()\n\treturn nn, nil\n}", "func (gl *WebGL) GetAttribLocation(shaderProgram WebGLShaderProgram, attribute string) WebGLAttributeLocation {\n\treturn gl.context.Call(\"getAttribLocation\", shaderProgram, attribute).Int()\n}", "func (gl *WebGL) Uniform1i(location WebGLUniformLocation, value int) {\n\tgl.context.Call(\"uniform1i\", location, value)\n}", "func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 {\n\tret, _, _ := syscall.Syscall(gpGetUniformBlockIndex, 2, uintptr(program), uintptr(unsafe.Pointer(uniformBlockName)), 0)\n\treturn (uint32)(ret)\n}", "func ProgramUniform3uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform3uiv(gpProgramUniform3uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) {\n C.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func (native *OpenGL) GLGetUniformLocation(program uint32, name *uint8) int32 {\n\treturn gl.GetUniformLocation(program, name)\n}", "func (gl *WebGL) GetUniformLocation(shaderProgram WebGLShaderProgram, location string) WebGLUniformLocation {\n\treturn gl.context.Call(\"getUniformLocation\", shaderProgram, location)\n}", "func Uniform4uiv(location int32, count int32, value *uint32) {\n C.glowUniform4uiv(gpUniform4uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value)))\n}", "func Uniform1fv(location int32, count int32, value *float32) {\n\tsyscall.Syscall(gpUniform1fv, 3, uintptr(location), uintptr(count), uintptr(unsafe.Pointer(value)))\n}", "func Uniform2f(location int32, v0 float32, v1 float32) {\n C.glowUniform2f(gpUniform2f, (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1))\n}", "func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *int8) {\n C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))\n}", "func Uniform4fv(location int32, count int32, value *float32) {\n C.glowUniform4fv(gpUniform4fv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value)))\n}", "func (s Sphere) UV(wp Vector3) Vector3 {\n\tp := s.Transform.Inverse().MulPosition(wp)\n\tp = p.Sub(s.Origin)\n\tu := math.Atan2(p.Z, p.X)\n\tv := math.Atan2(p.Y, Vector3{p.X, 0, p.Z}.Length())\n\tu = (u + math.Pi) / (2 * math.Pi)\n\tv = (math.Pi - (v + math.Pi/2)) / math.Pi\n\treturn Vector3{u, v, 0}\n}", "func Uniform1iv(location int32, count int32, value *int32) {\n\tC.glowUniform1iv(gpUniform1iv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value)))\n}", "func Uniform1iv(location int32, count int32, value *int32) {\n\tC.glowUniform1iv(gpUniform1iv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value)))\n}" ]
[ "0.74809337", "0.62520397", "0.62455446", "0.6181303", "0.6095751", "0.6056892", "0.60137236", "0.6006182", "0.59943587", "0.5986026", "0.59797496", "0.59142804", "0.59123516", "0.5901236", "0.5888232", "0.5887566", "0.58766073", "0.5840446", "0.58348995", "0.5834894", "0.5777184", "0.57594043", "0.57589597", "0.5756705", "0.5756705", "0.5707929", "0.57069844", "0.56741774", "0.5671796", "0.56516147", "0.5646604", "0.56452805", "0.5626943", "0.56137544", "0.561356", "0.55869544", "0.554744", "0.554744", "0.5546829", "0.5545326", "0.55435175", "0.5539853", "0.5527106", "0.5512093", "0.54996777", "0.54986924", "0.5498689", "0.5491612", "0.5476595", "0.54748946", "0.546387", "0.54636854", "0.54529065", "0.54383934", "0.54383934", "0.54340637", "0.5429213", "0.54078734", "0.54078734", "0.54038614", "0.53978986", "0.53942037", "0.53942037", "0.53895974", "0.5377658", "0.5377658", "0.53771627", "0.53771627", "0.5373892", "0.5370217", "0.5369644", "0.5368515", "0.53683245", "0.5358811", "0.5356599", "0.53188413", "0.5303474", "0.5303474", "0.5286864", "0.52792275", "0.5271759", "0.5271279", "0.5267287", "0.52523535", "0.5241282", "0.5239917", "0.52393216", "0.52279925", "0.52215344", "0.52208626", "0.5204147", "0.5200144", "0.5191207", "0.51865935", "0.51789546", "0.51726675", "0.51687145", "0.51638085", "0.51638085" ]
0.55388176
43