本文整理汇总了Golang中C.GLshort函数的典型用法代码示例。如果您正苦于以下问题:Golang GLshort函数的具体用法?Golang GLshort怎么用?Golang GLshort使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GLshort函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: TexCoord4s
//void glTexCoord4s (int16 s, int16 t, int16 r, int16 q)
func TexCoord4s(s int16, t int16, r int16, q int16) {
C.glTexCoord4s(C.GLshort(s), C.GLshort(t), C.GLshort(r), C.GLshort(q))
}
示例2: TexCoord2s
//void glTexCoord2s (int16 s, int16 t)
func TexCoord2s(s int16, t int16) {
C.glTexCoord2s(C.GLshort(s), C.GLshort(t))
}
示例3: TexCoord3s
//void glTexCoord3s (int16 s, int16 t, int16 r)
func TexCoord3s(s int16, t int16, r int16) {
C.glTexCoord3s(C.GLshort(s), C.GLshort(t), C.GLshort(r))
}
示例4: RasterPos2s
//void glRasterPos2s (int16 x, int16 y)
func RasterPos2s(x int16, y int16) {
C.glRasterPos2s(C.GLshort(x), C.GLshort(y))
}
示例5: TexCoord1s
//void glTexCoord1s (int16 s)
func TexCoord1s(s int16) {
C.glTexCoord1s(C.GLshort(s))
}
示例6: Indexs
//void glIndexs (int16 c)
func Indexs(c int16) {
C.glIndexs(C.GLshort(c))
}
示例7: Normal3s
//void glNormal3s (int16 nx, int16 ny, int16 nz)
func Normal3s(nx int16, ny int16, nz int16) {
C.glNormal3s(C.GLshort(nx), C.GLshort(ny), C.GLshort(nz))
}
示例8: RasterPos4s
//void glRasterPos4s (int16 x, int16 y, int16 z, int16 w)
func RasterPos4s(x int16, y int16, z int16, w int16) {
C.glRasterPos4s(C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
}
示例9: Rects
//void glRects (int16 x1, int16 y1, int16 x2, int16 y2)
func Rects(x1 int16, y1 int16, x2 int16, y2 int16) {
C.glRects(C.GLshort(x1), C.GLshort(y1), C.GLshort(x2), C.GLshort(y2))
}
示例10: Color3s
//void glColor3s (int16 red, int16 green, int16 blue)
func Color3s(red int16, green int16, blue int16) {
C.glColor3s(C.GLshort(red), C.GLshort(green), C.GLshort(blue))
}
示例11: RasterPos3s
//void glRasterPos3s (int16 x, int16 y, int16 z)
func RasterPos3s(x int16, y int16, z int16) {
C.glRasterPos3s(C.GLshort(x), C.GLshort(y), C.GLshort(z))
}
示例12: Color4s
//void glColor4s (int16 red, int16 green, int16 blue, int16 alpha)
func Color4s(red int16, green int16, blue int16, alpha int16) {
C.glColor4s(C.GLshort(red), C.GLshort(green), C.GLshort(blue), C.GLshort(alpha))
}
示例13: VertexAttrib1s
func VertexAttrib1s(index uint, v1 int16) {
C.glVertexAttrib1s(C.GLuint(index), C.GLshort(v1))
}
示例14: Vertex2s
//void glVertex2s (int16 x, int16 y)
func Vertex2s(x int16, y int16) {
C.glVertex2s(C.GLshort(x), C.GLshort(y))
}
示例15: Vertex4s
//void glVertex4s (int16 x, int16 y, int16 z, int16 w)
func Vertex4s(x int16, y int16, z int16, w int16) {
C.glVertex4s(C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
}