src/video/ataricommon/SDL_ataric2p_s.h
author Edgar Simo <bobbens@gmail.com>
Sun, 06 Jul 2008 17:06:37 +0000
branchgsoc2008_force_feedback
changeset 2498 ab567bd667bf
parent 1895 c121d94672cb
child 2859 99210400e8b9
permissions -rw-r--r--
Fixed various mistakes in the doxygen.
slouken@281
     1
/*
slouken@281
     2
    SDL - Simple DirectMedia Layer
slouken@1312
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@281
     4
slouken@281
     5
    This library is free software; you can redistribute it and/or
slouken@1312
     6
    modify it under the terms of the GNU Lesser General Public
slouken@281
     7
    License as published by the Free Software Foundation; either
slouken@1312
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@281
     9
slouken@281
    10
    This library is distributed in the hope that it will be useful,
slouken@281
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@281
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1312
    13
    Lesser General Public License for more details.
slouken@281
    14
slouken@1312
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1312
    16
    License along with this library; if not, write to the Free Software
slouken@1312
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@281
    18
slouken@281
    19
    Sam Lantinga
slouken@281
    20
    slouken@libsdl.org
slouken@281
    21
*/
slouken@1402
    22
#include "SDL_config.h"
slouken@281
    23
slouken@281
    24
#ifndef _ATARI_C2P_h
slouken@281
    25
#define _ATARI_C2P_h
slouken@281
    26
slouken@1358
    27
#include "SDL_stdinc.h"
slouken@281
    28
slouken@281
    29
/*--- Functions pointers ---*/
slouken@281
    30
slouken@281
    31
/* Convert a chunky screen to bitplane screen */
slouken@281
    32
slouken@1895
    33
extern void (*SDL_Atari_C2pConvert) (Uint8 * src,       /* Source screen (one byte=one pixel) */
slouken@1895
    34
                                     Uint8 * dest,      /* Destination (4/8 bits planes) */
slouken@1895
    35
                                     Uint32 width,      /* Dimensions of screen to convert */
slouken@1895
    36
                                     Uint32 height, Uint32 dblligne,    /* Double the lines when converting ? */
slouken@1895
    37
                                     Uint32 srcpitch,   /* Length of one source line in bytes */
slouken@1895
    38
                                     Uint32 dstpitch    /* Length of one destination line in bytes */
slouken@1895
    39
    );
slouken@281
    40
slouken@281
    41
/*--- 8 bits functions ---*/
slouken@281
    42
slouken@281
    43
/* Convert a chunky screen to bitplane screen */
slouken@281
    44
slouken@1895
    45
void SDL_Atari_C2pConvert8(Uint8 * src, /* Source screen (one byte=one pixel) */
slouken@1895
    46
                           Uint8 * dest,        /* Destination (8 bits planes) */
slouken@1895
    47
                           Uint32 width,        /* Dimensions of screen to convert */
slouken@1895
    48
                           Uint32 height, Uint32 dblligne,      /* Double the lines when converting ? */
slouken@1895
    49
                           Uint32 srcpitch,     /* Length of one source line in bytes */
slouken@1895
    50
                           Uint32 dstpitch      /* Length of one destination line in bytes */
slouken@1895
    51
    );
slouken@281
    52
slouken@281
    53
/*--- 4 bits functions ---*/
slouken@281
    54
slouken@281
    55
/* Convert a chunky screen to bitplane screen */
slouken@281
    56
slouken@1895
    57
void SDL_Atari_C2pConvert4(Uint8 * src, /* Source screen (one byte=one pixel) */
slouken@1895
    58
                           Uint8 * dest,        /* Destination (4 bits planes) */
slouken@1895
    59
                           Uint32 width,        /* Dimensions of screen to convert */
slouken@1895
    60
                           Uint32 height, Uint32 dblligne,      /* Double the lines when converting ? */
slouken@1895
    61
                           Uint32 srcpitch,     /* Length of one source line in bytes */
slouken@1895
    62
                           Uint32 dstpitch      /* Length of one destination line in bytes */
slouken@1895
    63
    );
slouken@281
    64
slouken@281
    65
/* Conversion palette */
slouken@281
    66
slouken@1895
    67
void SDL_Atari_C2pConvert4_pal(Uint16 * lightpalette);
slouken@281
    68
slouken@281
    69
#endif /* _ATARI_C2P_h */
slouken@1895
    70
/* vi: set ts=4 sw=4 expandtab: */