Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Adding software renderer implementation

  • Loading branch information
slouken committed Jun 12, 2006
1 parent d97eed4 commit 463bcff1c53ba29c95a9cad8262691ff930ab10e
@@ -108,6 +108,8 @@ enum
#define SDL_BITSPERPIXEL(X) (((X) >> 8) & 0xFF)
#define SDL_BYTESPERPIXEL(X) (((X) >> 0) & 0xFF)

#define SDL_ISPIXELFORMAT_FOURCC(format) (((format) & 0x8000000) != 0)

enum
{
SDL_PixelFormat_Unknown,
@@ -201,11 +201,11 @@ typedef enum
*/
typedef enum
{
SDL_TextureBlendMode_None, /**< No blending */
SDL_TextureBlendMode_Mask, /**< dst = A ? src : dst (alpha is mask) */
SDL_TextureBlendMode_Blend, /**< dst = (src * A) + (dst * (1-A)) */
SDL_TextureBlendMode_Add, /**< dst = (src * A) + dst */
SDL_TextureBlendMode_Mod, /**< dst = src * dst */
SDL_TextureBlendMode_None = 0x00000000, /**< No blending */
SDL_TextureBlendMode_Mask = 0x00000001, /**< dst = A ? src : dst (alpha is mask) */
SDL_TextureBlendMode_Blend = 0x00000002, /**< dst = (src * A) + (dst * (1-A)) */
SDL_TextureBlendMode_Add = 0x00000004, /**< dst = (src * A) + dst */
SDL_TextureBlendMode_Mod = 0x00000008, /**< dst = src * dst */
} SDL_TextureBlendMode;

/**
@@ -215,10 +215,10 @@ typedef enum
*/
typedef enum
{
SDL_TextureScaleMode_None, /**< No scaling, rectangles must match dimensions */
SDL_TextureScaleMode_Fast, /**< Point sampling or equivalent algorithm */
SDL_TextureScaleMode_Slow, /**< Linear filtering or equivalent algorithm */
SDL_TextureScaleMode_Best, /**< Bicubic filtering or equivalent algorithm */
SDL_TextureScaleMode_None = 0x00000000, /**< No scaling, rectangles must match dimensions */
SDL_TextureScaleMode_Fast = 0x00000001, /**< Point sampling or equivalent algorithm */
SDL_TextureScaleMode_Slow = 0x00000002, /**< Linear filtering or equivalent algorithm */
SDL_TextureScaleMode_Best = 0x00000004, /**< Bicubic filtering or equivalent algorithm */
} SDL_TextureScaleMode;

/**

0 comments on commit 463bcff

Please sign in to comment.