Debian Codegraph @

RSPiX/Src/GREEN/3D/zbuffer.h

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////cxx . . $ `<file>/RSPiX/Src/GREEN/3D/zbuffer.h`/
2 //
3 // Copyright 2016 RWS Inc, All Rights Reserved
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of version 2 of the GNU General Public License as published by
7 // the Free Software Foundation
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License along
15 // with this program; if not, write to the Free Software Foundation, Inc.,
16 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 //
18 // deals with general manipulation and use of signed 16-bit z-buffers (0 = center)
19 #ifndef ZBUFFER_H
20 #define ZBUFFER_Hcxx . . $ `RSPiX/Src/GREEN/3D/zbuffer.h:20:9`!
21 //==================================================
22 #include "Blue.h"cxx . . $ `<file>/RSPiX/Src/BLUE/Blue.h`/
23 #ifdef PATHS_IN_INCLUDEScxx . . $ `RSPiX/Src/BLUE/unix/UnixSystem.h:65:9`!
24 #include "ORANGE/QuickMath/FixedPoint.h"cxx . . $ `<file>/RSPiX/Src/ORANGE/QuickMath/FixedPoint.h`/ // for RFixedS32
25 #include "ORANGE/color/colormatch.h"cxx . . $ `<file>/RSPiX/Src/ORANGE/color/colormatch.h`/ // for RFixedS32
26 #else
27 #include "FixedPoint.h" // for RFixedS32
28 #include "ColorMatch.h" // for RFixedS32
29 #endif
30 //==================================================
31 // Note that z-buffer assumes that positive z is
32 // towards the viewer.
33 //==================================================
34 const int16_t ZB_MIN_Zcxx . . $ ZB_MIN_Z. = -32768;
35
36 class RZBuffercxx . . $ RZBuffer# // a 16-bit signed z-buffer
37 {
38 public:
39 int16_t m_sWcxx . . $ RZBuffer#m_sW.;
40 int16_t m_sHcxx . . $ RZBuffer#m_sH.;
41 int32_t m_lPcxx . . $ RZBuffer#m_lP.; // pitch in WORDS! (Not a real pitch!)
42 int16_t* m_pBufcxx . . $ RZBuffer#m_pBuf.; // for now, don't have great need for alignment!
43 //----------------------------------------------
44 void Initcxx . . $ RZBuffer#Init(49f6e7a06ebc5aa8).();
45 RZBuffercxx . . $ RZBuffer#RZBuffer(49f6e7a06ebc5aa8).();
46 RZBuffercxx . . $ RZBuffer#RZBuffer(af780a7c10c7990f).(int16_t sW,int16_t sH);
47 int16_t Createcxx . . $ RZBuffer#Create(3e795a2f2b52fe81).(int16_t sW,int16_t sH);
48 ~cxx . . $ RZBuffer#`~RZBuffer`(49f6e7a06ebc5aa8).RZBuffercxx . . $ RZBuffer#();
49 int16_t Destroycxx . . $ RZBuffer#Destroy(4c3706f7850cf040).();
50 //----------------------------------------------
51 void Clearcxx . . $ RZBuffer#Clear(68e3ae50fe6578a9).(int16_t sVal = ZB_MIN_Zcxx . . $ ZB_MIN_Z.);
52 //----------------------------------------------
53 // debugging stuff
54 int16_t* GetZPtrcxx . . $ RZBuffer#GetZPtr(490c34001d2568c6).(int16_t sX,int16_t sY){return (m_pBufcxx . . $ RZBuffer#m_pBuf. + sX + m_lPcxx . . $ RZBuffer#m_lP.*sY);}
55 void TestHeightcxx . . $ RZBuffer#TestHeight(160a5cc083499f22).(RImagecxx . . $ RImage#* pimDst,int16_t sDepth,
56 int16_t sX,int16_t sY,int16_t sW,int16_t sH);
57 void Dumpcxx . . $ RZBuffer#Dump(3157ec2ea51a0c31).(RImagecxx . . $ RImage#* pimDst,int16_t sX,int16_t sY,int16_t sW,int16_t sH,uint8_tcxx . . $ uint8_t#* pZCol);
58 };
59
60
61
62
63 //==================================================
64 //==================================================
65 //==================================================
66
67 //==================================================
68 #endif