aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/graphics/je_bitmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/graphics/je_bitmap.h')
-rw-r--r--src/libjin/graphics/je_bitmap.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/libjin/graphics/je_bitmap.h b/src/libjin/graphics/je_bitmap.h
index c392a32..644e56e 100644
--- a/src/libjin/graphics/je_bitmap.h
+++ b/src/libjin/graphics/je_bitmap.h
@@ -14,8 +14,8 @@
namespace JinEngine
{
- namespace Graphics
- {
+ namespace Graphics
+ {
///
/// A RGBA32 bitmap.
@@ -24,9 +24,9 @@ namespace JinEngine
/// texture is a renderable hard ware side structure which could be handled with GPU. For instance, opengl
/// create texture and store it in GPU memory for rendering them onto hdc.
///
- class Bitmap : public Object
- {
- public:
+ class Bitmap : public Object
+ {
+ public:
///
/// Constructor of bitmap.
///
@@ -55,7 +55,7 @@ namespace JinEngine
///
/// Destructor of bitmap
///
- virtual ~Bitmap();
+ virtual ~Bitmap();
///
/// Create bitmap with another one.
@@ -72,7 +72,7 @@ namespace JinEngine
/// @param width Width of bitmap
/// @param height Height of bitmap
///
- void bind(Color* pixels, int width, int height);
+ void bind(Color* pixels, int width, int height);
///
/// Reset pixel data with given pixels data.
@@ -81,7 +81,7 @@ namespace JinEngine
/// @param width Width of bitmap
/// @param height Height of bitmap
///
- void resetPixels(const Color* pixels, int width, int height);
+ void resetPixels(const Color* pixels, int width, int height);
///
/// Reset pixel data with given color.
@@ -90,7 +90,7 @@ namespace JinEngine
/// @param width Width of bitmap
/// @param height Height of bitmap
///
- void resetPixels(const Color& color, int width, int height);
+ void resetPixels(const Color& color, int width, int height);
///
/// Set pixel with given color.
@@ -99,14 +99,14 @@ namespace JinEngine
/// @param x X value of pixel.
/// @param y Y value of pixel.
///
- void setPixel(const Color& color, int x, int y);
+ void setPixel(const Color& color, int x, int y);
///
/// Set pixels with given color.
///
/// @param color Color to be set.
///
- void setPixels(Color color);
+ void setPixels(Color color);
///
/// Set pixels with given color data.
@@ -114,7 +114,7 @@ namespace JinEngine
/// @param colors New pixels' colors.
/// @param count Number of pixels.
///
- void setPixels(Color* colors, int count);
+ void setPixels(Color* colors, int count);
///
/// Get pixel in given position.
@@ -122,42 +122,42 @@ namespace JinEngine
/// @param x X value of position.
/// @param y Y value of position.
///
- Color getPixel(int x, int y);
+ Color getPixel(int x, int y);
///
/// Get pixels.
/// @return Colors of the bitmap.
///
- const Color* getPixels() const;
+ const Color* getPixels() const;
///
/// Get bitmap width.
///
/// @return Width of bitmap.
///
- inline int getWidth() const { return width; }
+ inline int getWidth() const { return width; }
///
/// Get bitmap height.
///
/// @return Height of bitmap.
///
- inline int getHeight() const { return height; }
+ inline int getHeight() const { return height; }
///
/// Get bitmap size.
///
/// @return Size of bitmap.
///
- inline Math::Vector2<int> getSize() const { return Math::Vector2<int>(width, height); }
+ inline Math::Vector2<int> getSize() const { return Math::Vector2<int>(width, height); }
- protected:
- Color * pixels;
- unsigned width, height;
+ protected:
+ Color * pixels;
+ unsigned width, height;
- };
+ };
- } // namespace Graphics
+ } // namespace Graphics
} // namespace JinEngine
#endif