aboutsummaryrefslogtreecommitdiff
path: root/smelt/sdl/CxImage/ximath.h
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2018-02-03 00:55:26 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2018-02-03 00:55:26 +0800
commit1eb88d4f5d5cb05d62be1d4a0c88c7399f7c0de0 (patch)
tree4daf8fa3f4e8fff38a61b8e2da752df8b519f232 /smelt/sdl/CxImage/ximath.h
parent6f955e10a71e364f527ea654156ea83785e9ada8 (diff)
downloadSMELT-1eb88d4f5d5cb05d62be1d4a0c88c7399f7c0de0.tar.xz
Added the GL 3.2+ port.
Fixed poor performance of the truetype renderer. (Partially) Fixed texture locking. Minor addition and fixes to the math library.
Diffstat (limited to 'smelt/sdl/CxImage/ximath.h')
-rw-r--r--smelt/sdl/CxImage/ximath.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/smelt/sdl/CxImage/ximath.h b/smelt/sdl/CxImage/ximath.h
deleted file mode 100644
index 014c14b..0000000
--- a/smelt/sdl/CxImage/ximath.h
+++ /dev/null
@@ -1,39 +0,0 @@
-#if !defined(__ximath_h)
-#define __ximath_h
-
-#include "ximadef.h"
-
-//***bd*** simple floating point point
-class DLL_EXP CxPoint2
-{
-public:
- CxPoint2();
- CxPoint2(float const x_, float const y_);
- CxPoint2(CxPoint2 const &p);
-
- float Distance(CxPoint2 const p2);
- float Distance(float const x_, float const y_);
-
- float x,y;
-};
-
-//and simple rectangle
-class DLL_EXP CxRect2
-{
-public:
- CxRect2();
- CxRect2(float const x1_, float const y1_, float const x2_, float const y2_);
- CxRect2(CxPoint2 const &bl, CxPoint2 const &tr);
- CxRect2(CxRect2 const &p);
-
- float Surface() const;
- CxRect2 CrossSection(CxRect2 const &r2) const;
- CxPoint2 Center() const;
- float Width() const;
- float Height() const;
-
- CxPoint2 botLeft;
- CxPoint2 topRight;
-};
-
-#endif