[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/caimagemanipulation caimagemanipulati
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/caimagemanipulation caimagemanipulation.cpp,1.4,1.5 caimagemanipulation.h,1.4,1.5 |
Date: |
23 Aug 2002 15:50:26 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/caimagemanipulation
In directory dark:/tmp/cvs-serv21141/caimagemanipulation
Modified Files:
caimagemanipulation.cpp caimagemanipulation.h
Log Message:
- added copy constructor/operator= or private declarations
- some cleanup
Index: caimagemanipulation.cpp
===================================================================
RCS file:
/usr/local/cvsroot/Games/Pingus/src/caimagemanipulation/caimagemanipulation.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- caimagemanipulation.cpp 10 Jun 2002 13:03:35 -0000 1.4
+++ caimagemanipulation.cpp 23 Aug 2002 15:49:54 -0000 1.5
@@ -21,21 +21,6 @@
#include <ClanLib/Display/SurfaceProviders/canvas.h>
#include "caimagemanipulation.h"
-/** Constructor.
-*/
-CAImageManipulation::CAImageManipulation()
-{
-}
-
-
-/** Destructor.
-*/
-CAImageManipulation::~CAImageManipulation()
-{
-}
-
-
-
/** Returns a pointer to a new image, based on 'surface'
but rotated by an angle of 'degrees' degrees.
\param surface The original surface
Index: caimagemanipulation.h
===================================================================
RCS file:
/usr/local/cvsroot/Games/Pingus/src/caimagemanipulation/caimagemanipulation.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- caimagemanipulation.h 16 Aug 2002 13:03:35 -0000 1.4
+++ caimagemanipulation.h 23 Aug 2002 15:49:54 -0000 1.5
@@ -42,16 +42,16 @@
static CL_Surface* rotate( CL_Surface* surface, float angle, bool exact=true
);
static CL_Surface* flip( CL_Surface* surface, bool horizontal );
- static CL_Surface* changeHSV( CL_Surface* surface, int hue, int
saturation, int value );
+ static CL_Surface* changeHSV( CL_Surface* surface, int hue, int saturation,
int value );
- static void rgbToHsv( int r, int g, int b,
- int *h, int *s, int *v );
- static void hsvToRgb( int h, int s, int v,
- int *r, int *g, int *b );
+ static void rgbToHsv( int r, int g, int b,
+ int *h, int *s, int *v );
+ static void hsvToRgb( int h, int s, int v,
+ int *r, int *g, int *b );
- static void getExactColor( unsigned char* data,
- int width, int height,
- float x, float y,
+ static void getExactColor( unsigned char* data,
+ int width, int height,
+ float x, float y,
int *r, int *g, int *b, int *a,
bool exact=true );
@@ -59,6 +59,10 @@
static int getCoordinateY( int width, int pos );
static int getDataPosition( int width, int x, int y );
static float getDistance( float x1, float y1, float x2, float y2 );
+
+private:
+ CAImageManipulation (const CAImageManipulation&);
+ CAImageManipulation operator= (const CAImageManipulation&);
};
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/caimagemanipulation caimagemanipulation.cpp,1.4,1.5 caimagemanipulation.h,1.4,1.5,
torangan <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/entrances cloud.hxx,1.2,1.3 woodthing.hxx,1.2,1.3
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/generic list_helper.hxx,1.4,1.5
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/entrances cloud.hxx,1.2,1.3 woodthing.hxx,1.2,1.3
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/generic list_helper.hxx,1.4,1.5
- Index(es):