src/video/haiku/SDL_bframebuffer.h
author Ryan C. Gordon <icculus@icculus.org>
Mon, 06 Apr 2015 00:10:54 -0400
changeset 9458 543298b36b28
parent 8149 681eb46b8ac4
child 9619 b94b6d0bff0f
permissions -rw-r--r--
This function can be static.
nathanheisey@5931
     1
/*
nathanheisey@5931
     2
  Simple DirectMedia Layer
slouken@8149
     3
  Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
nathanheisey@5931
     4
nathanheisey@5931
     5
  This software is provided 'as-is', without any express or implied
nathanheisey@5931
     6
  warranty.  In no event will the authors be held liable for any damages
nathanheisey@5931
     7
  arising from the use of this software.
nathanheisey@5931
     8
nathanheisey@5931
     9
  Permission is granted to anyone to use this software for any purpose,
nathanheisey@5931
    10
  including commercial applications, and to alter it and redistribute it
nathanheisey@5931
    11
  freely, subject to the following restrictions:
nathanheisey@5931
    12
nathanheisey@5931
    13
  1. The origin of this software must not be misrepresented; you must not
nathanheisey@5931
    14
     claim that you wrote the original software. If you use this software
nathanheisey@5931
    15
     in a product, an acknowledgment in the product documentation would be
nathanheisey@5931
    16
     appreciated but is not required.
nathanheisey@5931
    17
  2. Altered source versions must be plainly marked as such, and must not be
nathanheisey@5931
    18
     misrepresented as being the original software.
nathanheisey@5931
    19
  3. This notice may not be removed or altered from any source distribution.
nathanheisey@5931
    20
*/
nathanheisey@5931
    21
nathanheisey@5931
    22
#ifndef SDL_BFRAMEBUFFER_H
nathanheisey@5931
    23
#define SDL_BFRAMEBUFFER_H
nathanheisey@5931
    24
#include <SupportDefs.h>
nathanheisey@5931
    25
#ifdef __cplusplus
nathanheisey@5931
    26
extern "C" {
nathanheisey@5931
    27
#endif
nathanheisey@5931
    28
nathanheisey@5936
    29
#define DRAWTHREAD
nathanheisey@5936
    30
nathanheisey@5931
    31
#include "../SDL_sysvideo.h"
nathanheisey@5931
    32
nathanheisey@5931
    33
extern int BE_CreateWindowFramebuffer(_THIS, SDL_Window * window,
nathanheisey@5931
    34
                                       Uint32 * format,
nathanheisey@5931
    35
                                       void ** pixels, int *pitch);
nathanheisey@5931
    36
extern int BE_UpdateWindowFramebuffer(_THIS, SDL_Window * window,
slouken@7014
    37
                                       const SDL_Rect * rects, int numrects);
nathanheisey@5931
    38
extern void BE_DestroyWindowFramebuffer(_THIS, SDL_Window * window);
nathanheisey@5931
    39
extern int32 BE_DrawThread(void *data);
nathanheisey@5931
    40
nathanheisey@5931
    41
#ifdef __cplusplus
nathanheisey@5931
    42
}
nathanheisey@5931
    43
#endif
nathanheisey@5931
    44
nathanheisey@5931
    45
#endif