demOS
 All Data Structures Files Modules Pages
TRACE.H
Go to the documentation of this file.
1 /*------------------------------------------------------------------------------ -----------------
2  Copyright J.Hubert 2015
3 
4  This file is part of demOS
5 
6  demOS is free software: you can redistribute it and/or modify it under the terms of
7  the GNU Lesser General Public License as published by the Free Software Foundation,
8  either version 3 of the License, or (at your option) any later version.
9 
10  demOS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY ;
11  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12  See the GNU Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public License along with demOS.
15  If not, see <http://www.gnu.org/licenses/>.
16 ------------------------------------------------------------------------------------------------- */
17 
31 #ifndef TRACE_H
32 #define TRACE_H
33 
34 #include "DEMOSDK\BASTYPES.H"
35 #include "DEMOSDK\LOAD.H"
36 
37 void TRACinit (LOADdisk* _disk, u16 _resourceId);
38 
39 #ifdef DEMOS_DEBUG
40  typedef u16 (*TRAC_DisplayCallback) (void* _image, u16 _pitch, u16 _planePitch, u16 _y);
41 
42  void TRACsetVideoMode (u16 _pitch);
43  void TRACregisterDisplayService (TRAC_DisplayCallback _callback, u16 _enableMask);
44  void TRACdisplay (void* _image);
45  void TRACmanage (u8 _key);
46 # ifdef DEMOS_UNITTEST
47  void TRACunitTest (void* _screen);
48 # endif
49 #else
50 # define TRACsetVideoMode(_pitch)
51 # define TRACdisplay(_image)
52 # define TRACmanage(KEY) false
53 #endif
54 
55 #endif
LOAD
BASTYPES
Definition: LOAD.H:78