VirtualBox

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

最後變更 在這個檔案從78375是 78375,由 vboxsync 提交於 6 年 前

Additions/common/crOpengl,GuestHost/OpenGL,HostServices/SharedOpenGL: Eliminate all global variables from the state tracker library (state_tracker) in preparation of the SPU DLL merging, bugref:9435

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id Revision
檔案大小: 712 位元組
 
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
10void crStateFlushFunc(PCRStateTracker pState, CRStateFlushFunc func )
11{
12 CRContext *g = GetCurrentContext(pState);
13
14 g->flush_func = func;
15}
16
17void crStateFlushArg(PCRStateTracker pState, void *arg )
18{
19 CRContext *g = GetCurrentContext(pState);
20
21 g->flush_arg = arg;
22}
23
24void crStateDiffAPI(PCRStateTracker pState, SPUDispatchTable *api )
25{
26 if (!pState->diff_api.AlphaFunc)
27 {
28 /* Called when starting up Chromium */
29 crSPUInitDispatchTable( &pState->diff_api );
30 }
31 crSPUCopyDispatchTable( &pState->diff_api, api );
32}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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