pinkpitch
路人甲
路人甲
  • 注册日期2003-08-18
  • 发帖数144
  • QQ
  • 铜币474枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1686回复:0

Vega ——3

楼主#
更多 发布于:2006-04-04 14:16
<H2 ><FONT size=6><FONT face=Tahoma>Graphics State</FONT>(<FONT face=Tahoma>vgGfx</FONT>)</FONT></H2>
<H3 ><FONT size=3><FONT face=Tahoma><st1:place w:st="on"><st1:PlaceName w:st="on">Vega</st1:PlaceName> <st1:PlaceName w:st="on">Graphics</st1:PlaceName> <st1:PlaceType w:st="on">State</st1:PlaceType></st1:place> Functions</FONT></FONT></H3>
<P ><p><FONT face="Times New Roman" size=2> </FONT></p></P>
<P >vgGfx         *vgNewGfx      (void); <p></p></P>
<P >vgGfx         *vgFindGfx      (const char *name);<p></p></P>
<P >vgGfx           *vgGetGfx        (int idx); <p></p></P>
<P >int                  *vgGetNumGfx  (void);<p></p></P>
<P >vgGfx         *vgNewGfxCopy     (const vgGfx *gfx);  <p></p></P>
<P ><p><FONT face="Times New Roman" size=2> </FONT></p></P>
<H3 ><FONT size=3><FONT face=Tahoma><st1:place w:st="on"><st1:PlaceName w:st="on">Vega</st1:PlaceName> <st1:PlaceName w:st="on">Graphics</st1:PlaceName> <st1:PlaceType w:st="on">State</st1:PlaceType></st1:place>  Properties</FONT></FONT></H3>
<P ><FONT size=2><FONT face="Times New Roman">VGGFX_TEXTURE<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGGFX_LIGHTING<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGGFX_ZBUFFER<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGGFX_FOG<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGGFX_WIREFRAME<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGGFX_BACKFACE<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGGFX_FRONTFACE<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGGFX_STEREO<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGGFX_FADE                 - enable/disable fade level of detail<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGGFX_FADERANGE      - range between levels of detail<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGGFX_LODSCALE                - global LOD scale range modifier<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGGFX_BLENDMODE           -alpha blending mechanism<p></p></FONT></FONT></P>
<H2 ><FONT size=6><FONT face=Tahoma>Window</FONT>(<FONT face=Tahoma>vgWindow</FONT>)</FONT></H2>
<H3 ><FONT face=Tahoma size=3>Vega Window Functions</FONT></H3>
<P ><FONT size=2><FONT face="Times New Roman">vgWindow        *vgNewWin     (void);<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">vgWindow        *vgFindWin     (const char *name); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">vgWindow        *vgGetWin       (int idx); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">int              vgGetNumWin (void); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgWinLabel      (vgWindow *win, const char *label); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void          vgWinSize         (vgWindow *win, int 1, int r  *r, int *b, int *t); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void  vgWinIntro (vgWindow *win, void (*intro) (vgWindow *win, void *d), void  *data);<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgWinConfig(vgWindow *win, int attributes); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgWinFBConfigID (vgWindow *win, int id); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">int     vgGetWinFBConfigID (vgWindow *win);<p></p></FONT></FONT></P>
<H3 ><FONT size=3><FONT face=Tahoma>Vega Window </FONT>回调函数</FONT></H3>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_INPUT         - allows you to install your own event loop<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_INTRO        - to run a ‘distraction’ while you load your application<p></p></FONT></FONT></P>
<H3 ><FONT face=Tahoma size=3>Vega Window Properties</FONT></H3>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_SCREEN<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_WINBORDER<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_INPFOCUS<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_AA<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_CULLTHREADS<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_WINCURSOR<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_IOCPU                  - select the CPU for async input<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_IOPRI          - select the async I/O priority<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_DRAWCPU         - select CPU for drawing process<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_DRAWPRI - draw process priority<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_CBITS                  - set the color bits per component<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_ZBITS                   - sets the size of the Z buffer<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_ALPHABITS       - sets the preferred number of bits for        the alpha component of each color<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_MSSIZE      - set the size of the multisample buffer<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_STENSIZE  - set the size of the stencil buffer<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_BUFMODE - set single or double buffer mode<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_STEREO      - enable/disable stereo mode<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_WININPUT         - enable/disable window input<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_WINQUIT  - window manager handles quit<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_WINASYNC        - enable/disable async input<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_DRAWMODE     - select a frame buffer<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_VISUALID – sets Xvisual ID for the window (OGL)<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_ACCUMALPHABITS – sets alpha bits in the accumulation buffer<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGWIN_ACCUMCBITS – set color bit per component in   accumulation buffer<p></p></FONT></FONT></P>
<H2 ><FONT face=Tahoma size=6>Vega Channel (vgChannel)</FONT></H2>
<P ><FONT size=2><FONT face="Times New Roman">The Vega Channel functions (vgChannel) describe a view into a scene and a rectangular region of a window where the view will be displayed. A single window may have several channels associated with it, but the channel may only be associated with one window. The channels are drawn in the order in which they were defined. Channels cannot be destroyed once created, but they can be disabled and enabled. A channel is a visual channel to render the scene. The API here will let you control how the scene is projected on the screen in terms of environment, how the screen is cleared the shape and size of the viewports … you’ll see as we go through each and every painless line of code. <p></p></FONT></FONT></P>
<H3 ><FONT face=Tahoma size=3>Vega Channel Functions</FONT></H3>
<P ><FONT size=2><FONT face="Times New Roman">vgChannel        *vgNewChan            (void); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">vgChannel         *vgFindChan             (cont char *name); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">vgChannel         *vgGetChan               (int idx); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">int              *vgGetNumChan       (void); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">vgChannel         *vgNewChanCopy   (const vgChannel src);<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgChanFOV      (vgChannel *vc, float h, float v); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgGetChanFOV  (vgChannel *vc, float *h, float *v); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void          vgChanNearFar  (vgChannel *vc, float near, float  far);<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void          vgGetChanNearFar (vgChannel *vc, float *near,float *far); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgChanFrust (vgChannel *vc, float 1,       float r, float b,float t); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void          vgGetChanFrust  (vgChannel *vc, float *1, float *r, float *b,   float *t); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgChanSkew     (vgChannel *vc, vgPosition *pos); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgGetChanSkew  (vgChannel *vc, vgPosition *pos); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgChanViewPort  (vgChannel *vc, float 1, float r, float b, float t); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void          vgGenChanViewPort  (vgChannel *vc, float *1,float *r, float *b, float *t);<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgChanWin (vgChannel *chan, vgWindow *win);<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">vgWindow  *vgGetChanWin  (vgChannel *chan); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgChanGfx (vgChannel *vc, vgGfx *gfx); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">vgGfx        *vgGetChanGfx (vgChannel *vc); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgChanClrColor (vgChannel *vc, float r, float g, float b); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgGetChancClrColor (vgChannel *vc, float       *r, float *g, float *b; <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgChanCTab (vgChannel *chan, vgColorTable *ctab); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">vgColorTable  *vgGetChanCTab  (vgChannel *chan);<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgGetChanWorldToScreen (vgChannel *vc, float  x, float y, float z, float *sx, float *sy); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void          vgGetChanScreenToWorld(vgChannel, *chan,float sx, float sy,sloat sz, float *x,                                                      float *y, float *z);<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgGetChanPorjMat (vgChannel *vc, vgMat mat); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgGetChanViewMat (vgChannel *vc, vgMat mat);<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgGetChanWorldToScreenMat (vgChannel *vc, vgMat mat); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgChanDVRFilter (vgChannel *chan, float hi, float lo, float pscale,     float ascale); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgGetChanDVRFilter (vgChannel *chan, float *hi, float *lo, *pscale,float *sscale): <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgChanDVRSize (vgChannel *chan int xsize, int ysize;<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgGetChanDVRSize (vgChannel *chan, int        *xsize, int *ysize);<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgChanDVRFilter (vgChannel *chan, float hi, float lo, float pscale,     float ascale); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgGetChanDVRFilter (vgChannel *chan, float*hi, float *lo, *pscale,float *sscale): <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgChanDVRSize (vgChannel *chan int xsize,int ysize); <p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">void vgGetChanDVRSize (vgChannel *chan, int *xsize, int *ysize); <p></p></FONT></FONT></P>
<H3 ><FONT size=3><FONT face=Tahoma>Vega Channel</FONT>回调函数</FONT></H3>
<P ><FONT size=2><FONT face="Times New Roman">VGCHAN_PREDRAW<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGCHAN_POSTDRAW<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGCHAN_PRECULL<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGCHAN_PROSTCULL<p></p></FONT></FONT></P>
<H3 ><FONT face=Tahoma size=3>Vega Channel Properties</FONT></H3>
<P ><FONT size=2><FONT face="Times New Roman">VGCOMMON_ENABLED         - enables the channel<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGCHAN_FRUSTUM                - frustum type<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGCHAN_STATS             - set up statistics display<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGCHAN_STATSSEL                - which statistics you want to see<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGCHAN_CLEAR    - screen clear method<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGCHAN_RENDER  - enable/disable channel rendering<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGCHAN_ALPHA   -- alpha for clearing<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGCHAN_CULLMODE             - set cull traversal mode<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGCHAN_CULLSORT               - selects sorting method<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGCHAN_CULL_MAINSORT - primary sorting order<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGCHAN_CULL_SECSORT      - secondary sorting order<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGCHAN_CULLCPU                  - culling CPU<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGCHAN_CULLPRI          - cull priority<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGCHAN_DVR_ENABLE          - on/off dynamic video resolution<p></p></FONT></FONT></P>
<P ><FONT size=2><FONT face="Times New Roman">VGCHAN_DVR_MODE             - dynamic video resolution mode<p></p></FONT></FONT></P>
喜欢0 评分0
游客

返回顶部