diff options
author | Nipun Garg | 2019-07-11 00:50:59 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:16 +0200 |
commit | 4c20c8be129a2e720341802783109dec6a07c944 (patch) | |
tree | 9621e182b227e60fd6882da29e1a574557709b74 /engines/hdb/gfx.h | |
parent | 0ae4cb1ea7907c7d558cb89ad101f762a0d64c8c (diff) | |
download | scummvm-rg350-4c20c8be129a2e720341802783109dec6a07c944.tar.gz scummvm-rg350-4c20c8be129a2e720341802783109dec6a07c944.tar.bz2 scummvm-rg350-4c20c8be129a2e720341802783109dec6a07c944.zip |
HDB: Add Sine and Cosine table
Diffstat (limited to 'engines/hdb/gfx.h')
-rw-r--r-- | engines/hdb/gfx.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/hdb/gfx.h b/engines/hdb/gfx.h index e49b0c56bf..d057caeca7 100644 --- a/engines/hdb/gfx.h +++ b/engines/hdb/gfx.h @@ -151,6 +151,15 @@ public: void setCursor(int x, int y); void getCursor(int *x, int *y); + // Trig Functions + + double getSin(int index) { + return _sines->at(index); + } + double getCos(int index) { + return _cosines->at(index); + } + private: int _numTiles; TileLookup *_tLookupArray; @@ -211,6 +220,8 @@ private: bool _systemInit; + Common::SineTable *_sines; + Common::CosineTable *_cosines; }; class Picture { |