RetroArch/gfx/image_context.h

59 lines
1.6 KiB
C
Raw Normal View History

2012-04-21 23:13:50 +02:00
/* RetroArch - A frontend for libretro.
2014-01-01 01:50:59 +01:00
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
2011-05-18 20:22:27 +02:00
*
2012-04-21 23:13:50 +02:00
* RetroArch is free software: you can redistribute it and/or modify it under the terms
2011-05-18 20:22:27 +02:00
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
2012-04-21 23:13:50 +02:00
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
2011-05-18 20:22:27 +02:00
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
2012-04-21 23:31:57 +02:00
* You should have received a copy of the GNU General Public License along with RetroArch.
2011-05-18 20:22:27 +02:00
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __RARCH_IMAGE_CONTEXT_H
#define __RARCH_IMAGE_CONTEXT_H
2011-05-18 20:22:27 +02:00
#include <stdint.h>
#include "../boolean.h"
2011-05-18 20:22:27 +02:00
#ifdef _XBOX1
2013-02-04 21:57:57 +01:00
#include <xtl.h>
#include "../xdk/xdk_defines.h"
#endif
2011-05-18 20:22:27 +02:00
struct texture_image
{
unsigned width;
unsigned height;
#ifdef _XBOX1
unsigned x;
unsigned y;
LPDIRECT3DTEXTURE pixels;
LPDIRECT3DVERTEXBUFFER vertex_buf;
#else
2011-05-18 20:22:27 +02:00
uint32_t *pixels;
#endif
2011-05-18 20:22:27 +02:00
};
typedef struct image_ctx_driver
{
bool (*load)(void*, const char*, void *);
void (*free)(void *, void *);
// Human readable string.
const char *ident;
} image_ctx_driver_t;
2011-05-18 20:22:27 +02:00
extern const image_ctx_driver_t image_ctx_xdk1;
extern const image_ctx_driver_t image_ctx_ps3;
extern const image_ctx_driver_t image_ctx_sdl;
extern const image_ctx_driver_t image_ctx_rpng;
2011-12-03 00:48:42 +01:00
void find_prev_image_driver(void);
void find_next_image_driver(void);
2014-05-10 11:35:51 -07:00
void find_image_driver(void);
#endif