blob: 6a75a266d008a2c8f454ae16325e9409338db6b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
//
// Generated by dtk
// Translation Unit: f_pc_draw.cpp
//
#include "f_pc/f_pc_draw.h"
#include "SSystem/SComponent/c_API_graphic.h"
#include "f_pc/f_pc_leaf.h"
#include "f_pc/f_pc_node.h"
#include "f_pc/f_pc_pause.h"
/* 8004042C-800404CC .text fpcDw_Execute__FP18base_process_class */
BOOL fpcDw_Execute(base_process_class* i_proc) {
if (!fpcPause_IsEnable(i_proc, 2)) {
layer_class* curLay;
BOOL ret;
process_method_func draw_func;
curLay = fpcLy_CurrentLayer();
if (fpcBs_Is_JustOfType(g_fpcLf_type, i_proc->mSubType)) {
draw_func = ((leafdraw_method_class*)i_proc->mpPcMtd)->mpDrawFunc;
} else {
draw_func = ((nodedraw_method_class*)i_proc->mpPcMtd)->mpDrawFunc;
}
fpcLy_SetCurrentLayer(i_proc->mLyTg.mpLayer);
ret = draw_func(i_proc);
fpcLy_SetCurrentLayer(curLay);
return ret;
} else {
return FALSE;
}
}
/* 800404CC-80040520 .text fpcDw_Handler__FPFPFPvPv_i_iPFPvPv_i */
BOOL fpcDw_Handler(fpcDw_HandlerFuncFunc i_iterHandler, fpcDw_HandlerFunc i_func) {
BOOL ret;
cAPIGph_BeforeOfDraw();
ret = i_iterHandler(i_func);
cAPIGph_AfterOfDraw();
return ret;
}
|