Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Adding software renderer implementation
  • Loading branch information
slouken committed Jun 12, 2006
1 parent d97eed4 commit 463bcff
Show file tree
Hide file tree
Showing 9 changed files with 496 additions and 83 deletions.
2 changes: 2 additions & 0 deletions include/SDL_pixels.h
Expand Up @@ -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,
Expand Down
18 changes: 9 additions & 9 deletions include/SDL_video.h
Expand Up @@ -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;

/**
Expand All @@ -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;

/**
Expand Down

0 comments on commit 463bcff

Please sign in to comment.