VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_flush.c@ 53090

最後變更 在這個檔案從53090是 15532,由 vboxsync 提交於 16 年 前

crOpenGL: export to OSE

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 639 位元組
 
1/* Copyright (c) 2001, Stanford University
2 * All rights reserved
3 *
4 * See the file LICENSE.txt for information on redistributing this software.
5 */
6
7#include "state.h"
8#include "cr_spu.h"
9
10SPUDispatchTable diff_api;
11
12void crStateFlushFunc( CRStateFlushFunc func )
13{
14 CRContext *g = GetCurrentContext();
15
16 g->flush_func = func;
17}
18
19void crStateFlushArg( void *arg )
20{
21 CRContext *g = GetCurrentContext();
22
23 g->flush_arg = arg;
24}
25
26void crStateDiffAPI( SPUDispatchTable *api )
27{
28 if (!diff_api.AlphaFunc)
29 {
30 /* Called when starting up Chromium */
31 crSPUInitDispatchTable( &(diff_api) );
32 }
33 crSPUCopyDispatchTable( &(diff_api), api );
34}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette