File: MyGUI_OpenGLImageLoader.h

package info (click to toggle)
mygui 3.2.2-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 49,884 kB
  • ctags: 38,972
  • sloc: cpp: 118,031; ansic: 30,202; xml: 15,544; cs: 12,602; tcl: 776; python: 417; makefile: 37
file content (29 lines) | stat: -rw-r--r-- 626 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*!
	@file
	@author		George Evmenov
	@date		09/2009
	@module
*/

#ifndef MYGUI_OPENGL_IMAGE_LOADER_H_
#define MYGUI_OPENGL_IMAGE_LOADER_H_

#include "MyGUI_Prerequest.h"
#include "MyGUI_RenderFormat.h"

namespace MyGUI
{

	class OpenGLImageLoader
	{
	public:
		OpenGLImageLoader() { }
		virtual ~OpenGLImageLoader() { }

		virtual void* loadImage(int& _width, int& _height, PixelFormat& _format, const std::string& _filename) = 0;
		virtual void saveImage(int _width, int _height, MyGUI::PixelFormat _format, void* _texture, const std::string& _filename) = 0;
	};

} // namespace MyGUI

#endif // MYGUI_OPENGL_IMAGE_LOADER_H_