Saga3D API Documentation  1.0-RC4
SColor.h File Reference
#include "enumType.hpp"
#include "EPixelFormat.h"
#include "SagaConfig.h"
#include <glm/gtx/extended_min_max.hpp>
#include <glm/gtc/constants.hpp>
#include <glm/gtc/epsilon.hpp>
#include <glm/vec4.hpp>

Go to the source code of this file.

Classes

class  saga::video::SColor
 Class representing a 32 bit ARGB color. More...
 
class  saga::video::SColorf
 Class representing a color with four floats. More...
 
class  saga::video::SColorHSL
 Class representing a color in HSL format. More...
 

Namespaces

 saga
 
 saga::video
 The video namespace contains classes for accessing the video driver. All 2d and 3d rendering is done here.
 

Functions

std::uint16_t saga::video::RGBA16 (std::uint32_t r, std::uint32_t g, std::uint32_t b, std::uint32_t a=0xFF)
 Creates a 16 bit A1R5G5B5 color. More...
 
std::uint16_t saga::video::RGB16 (std::uint32_t r, std::uint32_t g, std::uint32_t b)
 Creates a 16 bit A1R5G5B5 color. More...
 
std::uint16_t saga::video::RGB16from16 (std::uint16_t r, std::uint16_t g, std::uint16_t b)
 Creates a 16bit A1R5G5B5 color, based on 16bit input values. More...
 
std::uint16_t saga::video::X8RGB8toA1R5G5B5 (std::uint32_t color)
 Converts a 32bit (X8RGB8) color to a 16bit A1R5G5B5 color. More...
 
std::uint16_t saga::video::A8RGB8toA1R5G5B5 (std::uint32_t color)
 Converts a 32bit (A8RGB8) color to a 16bit A1R5G5B5 color. More...
 
std::uint16_t saga::video::A8RGB8toR5G6B5 (std::uint32_t color)
 Converts a 32bit (A8RGB8) color to a 16bit R5G6B5 color. More...
 
std::uint32_t saga::video::A1R5G5B5toA8RGB8 (std::uint16_t color)
 Convert A8RGB8 Color from A1R5G5B5 color. More...
 
std::uint32_t saga::video::R5G6B5toA8RGB8 (std::uint16_t color)
 Returns A8RGB8 Color from R5G6B5 color. More...
 
std::uint16_t saga::video::R5G6B5toA1R5G5B5 (std::uint16_t color)
 Returns A1R5G5B5 Color from R5G6B5 color. More...
 
std::uint16_t saga::video::A1R5G5B5toR5G6B5 (std::uint16_t color)
 Returns R5G6B5 Color from A1R5G5B5 color. More...
 
std::uint32_t saga::video::getAlpha (std::uint16_t color)
 Returns the alpha component from A1R5G5B5 color. More...
 
std::uint32_t saga::video::getRed (std::uint16_t color)
 Returns the red component from A1R5G5B5 color. More...
 
std::uint32_t saga::video::getGreen (std::uint16_t color)
 Returns the green component from A1R5G5B5 color. More...
 
std::uint32_t saga::video::getBlue (std::uint16_t color)
 Returns the blue component from A1R5G5B5 color. More...
 
std::int32_t saga::video::getAverage (std::int16_t color)
 Returns the average from a 16 bit A1R5G5B5 color. More...
 

Variables

const char *const saga::video::ColorFormatNames [saga::core::enumToPOD(E_PIXEL_FORMAT::UNKNOWN)+2]
 An enum class for the color format of textures used by the Irrlicht Engine. More...