1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-07-22 16:57:12 +02:00

Dumped the old implementation. Started with a more simple approach.

This commit is contained in:
Sandu Liviu Catalin
2016-02-21 00:25:00 +02:00
parent 96ded94026
commit 06e598acfb
293 changed files with 37439 additions and 92564 deletions

View File

@@ -2,20 +2,20 @@
#define _BASE_COLOR3_HPP_
// ------------------------------------------------------------------------------------------------
#include "Config.hpp"
#include "SqBase.hpp"
// ------------------------------------------------------------------------------------------------
namespace SqMod {
/* ------------------------------------------------------------------------------------------------
* ...
*
*/
struct Color3
{
/* --------------------------------------------------------------------------------------------
* ...
*/
typedef Uint8 Value;
typedef unsigned char Value;
/* --------------------------------------------------------------------------------------------
* ...
@@ -35,59 +35,34 @@ struct Color3
Value r, g, b;
/* --------------------------------------------------------------------------------------------
* ...
*
*/
Color3();
/* --------------------------------------------------------------------------------------------
* ...
*/
Color3(Value s);
Color3(Value sv);
/* --------------------------------------------------------------------------------------------
* ...
*/
Color3(Value r, Value g, Value b);
Color3(Value rv, Value gv, Value bv);
/* --------------------------------------------------------------------------------------------
* ...
*
*/
Color3(const Color4 & c);
Color3(const Color3 & o);
/* --------------------------------------------------------------------------------------------
* ...
*/
Color3(const SQChar * name);
/* --------------------------------------------------------------------------------------------
* ...
*/
Color3(const SQChar * str, SQChar delim);
/* --------------------------------------------------------------------------------------------
* ...
*/
Color3(const Color3 & c);
/* --------------------------------------------------------------------------------------------
* ...
*/
Color3(Color3 && c);
/* --------------------------------------------------------------------------------------------
* ...
*
*/
~Color3();
/* --------------------------------------------------------------------------------------------
* ...
*
*/
Color3 & operator = (const Color3 & c);
/* --------------------------------------------------------------------------------------------
* ...
*/
Color3 & operator = (Color3 && c);
Color3 & operator = (const Color3 & o);
/* --------------------------------------------------------------------------------------------
* ...
@@ -97,7 +72,7 @@ struct Color3
/* --------------------------------------------------------------------------------------------
* ...
*/
Color3 & operator = (const SQChar * name);
Color3 & operator = (CSStr name);
/* --------------------------------------------------------------------------------------------
* ...
@@ -377,12 +352,12 @@ struct Color3
/* --------------------------------------------------------------------------------------------
* ...
*/
SQInteger Cmp(const Color3 & c) const;
Int32 Cmp(const Color3 & c) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
const SQChar * ToString() const;
CSStr ToString() const;
/* --------------------------------------------------------------------------------------------
* ...
@@ -407,42 +382,42 @@ struct Color3
/* --------------------------------------------------------------------------------------------
* ...
*/
void Set(const SQChar * str, SQChar delim);
void Set(CSStr str, SQChar delim);
/* --------------------------------------------------------------------------------------------
* ...
*/
void SetCol(const SQChar * name);
void SetCol(CSStr name);
/* --------------------------------------------------------------------------------------------
* ...
*/
SQUint32 GetRGB() const;
Uint32 GetRGB() const;
/* --------------------------------------------------------------------------------------------
* ...
*/
void SetRGB(SQUint32 p);
void SetRGB(Uint32 p);
/* --------------------------------------------------------------------------------------------
* ...
*/
SQUint32 GetRGBA() const;
Uint32 GetRGBA() const;
/* --------------------------------------------------------------------------------------------
* ...
*/
void SetRGBA(SQUint32 p);
void SetRGBA(Uint32 p);
/* --------------------------------------------------------------------------------------------
* ...
*/
SQUint32 GetARGB() const;
Uint32 GetARGB() const;
/* --------------------------------------------------------------------------------------------
* ...
*/
void SetARGB(SQUint32 p);
void SetARGB(Uint32 p);
/* --------------------------------------------------------------------------------------------
* ...