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/>.
|
|
|
|
*/
|
|
|
|
|
2014-05-10 20:26:58 +02:00
|
|
|
#ifndef __RARCH_IMAGE_CONTEXT_H
|
|
|
|
#define __RARCH_IMAGE_CONTEXT_H
|
2011-05-18 20:22:27 +02:00
|
|
|
|
|
|
|
#include <stdint.h>
|
2014-10-21 05:05:52 +02:00
|
|
|
#include <boolean.h>
|
2011-05-18 20:22:27 +02:00
|
|
|
|
2014-09-11 21:28:38 +02:00
|
|
|
#ifdef _WIN32
|
|
|
|
#include "../context/win32_common.h"
|
2012-08-05 17:18:19 +02:00
|
|
|
#ifdef _XBOX1
|
2014-09-14 06:45:47 +02:00
|
|
|
#include "../d3d/d3d_defines.h"
|
2014-09-11 21:28:38 +02:00
|
|
|
#endif
|
2012-08-05 17:18:19 +02:00
|
|
|
#endif
|
|
|
|
|
2011-05-18 20:22:27 +02:00
|
|
|
struct texture_image
|
|
|
|
{
|
|
|
|
unsigned width;
|
|
|
|
unsigned height;
|
2012-08-05 17:18:19 +02:00
|
|
|
#ifdef _XBOX1
|
|
|
|
unsigned x;
|
|
|
|
unsigned y;
|
|
|
|
LPDIRECT3DTEXTURE pixels;
|
|
|
|
LPDIRECT3DVERTEXBUFFER vertex_buf;
|
|
|
|
#else
|
2011-05-18 20:22:27 +02:00
|
|
|
uint32_t *pixels;
|
2012-08-05 17:18:19 +02:00
|
|
|
#endif
|
2011-05-18 20:22:27 +02:00
|
|
|
};
|
|
|
|
|
2014-06-17 17:44:48 +02:00
|
|
|
bool texture_image_load(struct texture_image *img, const char *path);
|
|
|
|
void texture_image_free(struct texture_image *img);
|
2014-05-10 20:26:58 +02:00
|
|
|
|
|
|
|
#endif
|