You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
1.6 KiB
C

//:Header:1, "_screen", 3b940006
//
// File: llgfx_sscreen.h
//
// G A M E.O.N.E - LOW LEVEL LIB V1.0
// Copyright (C) 2001 LEVEL ONE ENTERTAINMENT,
// Licensed under the terms of LGPL.
//:---------------------------------------------------------------------------
//:Description
//
// Beschreibt einen Grafikbuffer. Beinhaltet alle Information für direkte
// Manipulation der Pixel.
//
//:-----------------------------------------------------------------------------
#if !defined(LLGFX_SSCREEN_INCLUDED)
#define LLGFX_SSCREEN_INCLUDED
//:Include
#if !defined(LLGFX_SRGB_INCLUDED)
#include "llgfx_srgb.h"
#endif
//:> +----------------------------------+
//:>--------------------| _screen Struct Declaration |--------------------
//:> +----------------------------------+
//:Class
struct _surface
{
//:=5
// +-----------+
// | baseptr |
// +-----------+
void * baseptr; // Zeiger auf den GrafikBuffer
//:=6
// +---------+
// | pitch |
// +---------+
int pitch; // Byte Anzahl einer scanline
//:=7
// +-------------+
// | pix_pitch |
// +-------------+
int pix_pitch; // Pixel Anzahl einer scanline
//:=8
// +--------------+
// | pix_modulo |
// +--------------+
int pix_modulo; // Pixel Modulo
//:=9
// +---------------+
// | byte_modulo |
// +---------------+
int byte_modulo; // Byte Modulo
//:=10
// +-------+
// | rgb |
// +-------+
s_rgb rgb; // RGBA Bitmasken
};
//:Custom
typedef struct _surface s_screen;
typedef struct _surface s_surface;
typedef struct _surface llgfx_sSURFACE;
//:End Custom
#endif // LLGFX_SSCREEN_INCLUDED