发明名称 Adaptive buffering of computer graphics vertex commands
摘要 A method of buffering graphics vertex commands adaptively. A minimally-formatted vertex values buffer is created. As vertex commands are received from application software, attribute values are stored in an attribute values buffer until a vertex coordinate command is received. Upon receipt of a vertex coordinate command, attribute values are copied from the attribute values buffer into the vertex values buffer. Whenever application software issues a vertex attribute command corresponding to an attribute type that is not currently reflected in the vertex values buffer format, the vertex values buffer is automatically reformatted to include the new attribute type. Thus, the vertex values buffer automatically adapts itself to the behavior of the application. Multiple primitives are buffered between flushes. First-call and subsequent-call versions of code are provided for vertex commands. At initialization, a dispatch table is populated with pointers to the first-call versions. Thereafter, the dispatch table entries are manipulated by the commands themselves. Multiple subsequent-calls versions are provided for a single vertex coordinate command, each of the different subsequent-calls versions optimized for a different vertex values buffer format. The first-call version of the command determines which of the subsequent-calls versions is optimal for the current vertex values buffer format, and places a pointer to the optimized version in the dispatch table. Thereafter, the copying of values from the attribute values buffer into the vertex values buffer is done by the subsequent-calls version in a manner that corresponds exactly to the current vertex values buffer format, and without making any decisions.
申请公布号 US6337689(B1) 申请公布日期 2002.01.08
申请号 US19990302659 申请日期 1999.04.03
申请人 HEWLETT-PACKARD COMPANY 发明人 HOCHMUTH ROLAND M;SANDS SAMUEL C;SAUNDERS BRADLEY LOUIS;WARD ALAN D
分类号 G06T15/00;(IPC1-7):G06T15/00;G06F15/16 主分类号 G06T15/00
代理机构 代理人
主权项
地址