OpenGL 4.3 (Core Profile) - August 6, 2012 spec Fundamental 2.2 Command Syntax
来源:互联网 发布:剑三五毒成男捏脸数据 编辑:程序博客网 时间:2024/05/17 22:15
rtype Name{1234}{f b s i i64 f d ub us ui ui64}{v}
( [args ,] T arg1, : : :, T argN [, args] );
一句话表示一个函数族。{1234}暗示维度,之后类型描述符,v是vector
Type Descriptor Corresponding GL Type
b byte
s short
i int
i64 int64
f float
d double
ub ubyte
us ushort
ui uint
ui64 uint64
GL Type Description
Bit Width
boolean 1 or more Boolean
byte 8 Signed two’s complement binary integer
ubyte 8 Unsigned binary integer
char 8 Characters making up strings
short 16 Signed two’s complement binary integer
ushort 16 Unsigned binary integer
int 32 Signed two’s complement binary integer
uint 32 Unsigned binary integer
fixed 32 Signed two’s complement 16.16(固定浮点,小数点前后各16)
scaled integer
int64 64 Signed two’s complement binary integer
uint64 64 Unsigned binary integer
sizei 32 Non-negative binary integer size
enum 32 Enumerated binary integer value
intptr ptrbits Signed twos complement binary integer
sizeiptr ptrbits Non-negative binary integer size
sync ptrbits Sync object handle (see section 4.1)
bitfield 32 Bit field
half 16 Half-precision floating-point value
encoded in an unsigned scalar
float 32 Floating-point valueclampf 32 Floating-point value clamped to [0; 1]
double 64 Floating-point valueclampd 64 Floating-point value clamped to [0; 1]
ptrbits is the number of bits required to represent a pointer type; in other words,
types intptr, sizeiptr, and sync must be large enough to store any CPU address.
sync is defined as an anonymous struct pointer in the C language bindings
while intptr and sizeiptr are defined as integer types large enough to hold
a pointer.
When the type of internal state is boolean, zero integer or floating-point values
are converted to FALSE and non-zero values are converted to TRUE.
When the type of internal state is integer or enum, boolean values of FALSE
and TRUE are converted to 0 and 1, respectively. Floating-point values are
rounded to the nearest integer.
When the type of internal state is floating-point, boolean values of FALSE
and TRUE are converted to 0:0 and 1:0, respectively. Integer values are converted
to floating-point, with or without normalization as described for specific
commands.
三种情况下bool值的确定
If a command returning integer data is called, such as GetIntegerv or Get-
Integer64v, a boolean value of TRUE or FALSE is interpreted as 1 or 0, respectively.
A floating-point value is rounded to the nearest integer, unless the
value is an RGBA color component, a DepthRange value, or a depth buffer
clear value. In these cases, the query command converts the floating-point
value to an integer according to the INT entry of table 18.2; a value not in
[
- OpenGL 4.3 (Core Profile) - August 6, 2012 spec Fundamental 2.2 Command Syntax
- OpenGL 4.3 (Core Profile) - August 6, 2012 spec Fundamental 2.3 Command Execution
- OpenGL 4.3 (Core Profile) - August 6, 2012 spec Fundamental 2.1 Execution Model
- OpenGL 4.3 (Core Profile) - August 6, 2012 spec Fundamental 2.5 Objects and the Object Model
- OpenGL 4.3 (Core Profile) - August 6, 2012 spec Fundamental 3 Dataflow Model
- OpenGL 4.5 Core Profile管线
- OpenGL 4.3 (Core Profile) -5.3 Propagating Changes to Objects
- SPEC CPU2006 command lines
- onvif2.5 core spec
- 老OpenGL程序如何更新到新OpenGL(版本3.1及以上的Core Profile)OpenGL: Transition to Core Profile Introduction
- syntax: command not found
- ZOJ Monthly, August 2012
- ZOJ Monthly, August 2012
- August 6th Thursday
- command的syntax构建流程
- command line option syntax error
- command line option syntax error
- August
- 结合linux工具安装黑苹果小记
- 任正非答科学家16问 解读(2)
- 第 7 章 指针
- C#求字符的ASCII值
- 形意拳感悟(1)
- OpenGL 4.3 (Core Profile) - August 6, 2012 spec Fundamental 2.2 Command Syntax
- 【get/post】方式的中文乱码
- 工具分享:Fiddler----Web Debugging 的利器
- Joda-Time 简介 转自IBM
- 数据表维护扩展
- platform_device和platform_driver
- 用while语句计算1000以内的偶数和(第十周上机任务)
- lib与dll
- Struts-国际化支持