src/video/vgl/SDL_vglvideo.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@75
     1
/*
slouken@75
     2
    SDL - Simple DirectMedia Layer
slouken@1312
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@75
     4
slouken@75
     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@75
     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@75
     9
slouken@75
    10
    This library is distributed in the hope that it will be useful,
slouken@75
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@75
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1312
    13
    Lesser General Public License for more details.
slouken@75
    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@75
    18
slouken@75
    19
    Sam Lantinga
slouken@252
    20
    slouken@libsdl.org
slouken@75
    21
*/
slouken@1402
    22
#include "SDL_config.h"
slouken@75
    23
slouken@75
    24
#ifndef _SDL_vglvideo_h
slouken@75
    25
#define _SDL_vglvideo_h
slouken@75
    26
slouken@75
    27
#include <sys/fbio.h>
slouken@75
    28
#include <sys/consio.h>
slouken@75
    29
#include <vgl.h>
slouken@75
    30
slouken@75
    31
#include "SDL_mouse.h"
slouken@75
    32
#include "SDL_mutex.h"
slouken@1361
    33
#include "../SDL_sysvideo.h"
slouken@75
    34
slouken@75
    35
/* Hidden "this" pointer for the video functions */
slouken@75
    36
#define _THIS	SDL_VideoDevice *this
slouken@75
    37
slouken@1895
    38
typedef struct
slouken@1895
    39
{
slouken@1895
    40
    int ModeId;
slouken@1895
    41
    int Depth;
slouken@1895
    42
    int Rmask;
slouken@1895
    43
    int Gmask;
slouken@1895
    44
    int Bmask;
slouken@1895
    45
    VGLBitmap ModeInfo;
slouken@75
    46
} VGLMode;
slouken@75
    47
slouken@75
    48
/* Private display data */
slouken@1895
    49
struct SDL_PrivateVideoData
slouken@1895
    50
{
slouken@1895
    51
#define NUM_MODELISTS	4       /* 8, 16, 24, and 32 bits-per-pixel */
slouken@1895
    52
    int SDL_nummodes[NUM_MODELISTS];
slouken@1895
    53
    SDL_Rect **SDL_modelist[NUM_MODELISTS];
slouken@1895
    54
    SDL_mutex *hw_lock;
slouken@1895
    55
    VGLMode *VGLCurMode;
slouken@1895
    56
    int flip_page;
slouken@1895
    57
    byte *flip_address[2];
slouken@75
    58
};
slouken@75
    59
/* Old variable names */
slouken@75
    60
#define SDL_nummodes	(this->hidden->SDL_nummodes)
slouken@75
    61
#define SDL_modelist	(this->hidden->SDL_modelist)
slouken@75
    62
#define hw_lock		(this->hidden->hw_lock)
slouken@75
    63
#define VGLCurMode	(this->hidden->VGLCurMode)
slouken@75
    64
#define flip_page	(this->hidden->flip_page)
slouken@75
    65
#define flip_address	(this->hidden->flip_address)
slouken@75
    66
slouken@75
    67
#endif /* _SDL_vglvideo_h */
slouken@1895
    68
/* vi: set ts=4 sw=4 expandtab: */