aboutsummaryrefslogtreecommitdiff
path: root/src/modifiedstate.h
blob: 75518f2f5ead86d8c9e5d2a403897d5c62142c9f (plain)
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
30
31
32
33
34
35
36
37
/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#ifndef MODIFIEDSTATE_HEADER
#define MODIFIEDSTATE_HEADER

enum ModifiedState
{
	// Has not been modified.
	MOD_STATE_CLEAN = 0,
	MOD_RESERVED1 = 1,
	// Has been modified, and will be saved when being unloaded.
	MOD_STATE_WRITE_AT_UNLOAD = 2,
	MOD_RESERVED3 = 3,
	// Has been modified, and will be saved as soon as possible.
	MOD_STATE_WRITE_NEEDED = 4,
	MOD_RESERVED5 = 5,
};

#endif

span> # This file is stolen from part of the CMake build system for OGRE (Object-oriented Graphics Rendering Engine) http://www.ogre3d.org/ # # The contents of this file are placed in the public domain. Feel # free to make use of it in any way you like. #------------------------------------------------------------------- # - Try to find OpenGLES and EGL # Once done this will define # # OPENGLES2_FOUND - system has OpenGLES # OPENGLES2_INCLUDE_DIR - the GL include directory # OPENGLES2_LIBRARIES - Link these to use OpenGLES # # EGL_FOUND - system has EGL # EGL_INCLUDE_DIR - the EGL include directory # EGL_LIBRARIES - Link these to use EGL # Win32, Apple, and Android are not tested! # Linux tested and works if(WIN32) if(CYGWIN) find_path(OPENGLES2_INCLUDE_DIR GLES2/gl2.h) find_library(OPENGLES2_LIBRARY libGLESv2) else() if(BORLAND) set(OPENGLES2_LIBRARY import32 CACHE STRING "OpenGL ES 2.x library for Win32") else() # TODO # set(OPENGLES_LIBRARY ${SOURCE_DIR}/Dependencies/lib/release/libGLESv2.lib CACHE STRING "OpenGL ES 2.x library for win32" endif() endif() elseif(APPLE) create_search_paths(/Developer/Platforms) findpkg_framework(OpenGLES2) set(OPENGLES2_LIBRARY "-framework OpenGLES") else() find_path(OPENGLES2_INCLUDE_DIR GLES2/gl2.h PATHS /usr/openwin/share/include /opt/graphics/OpenGL/include /usr/X11R6/include /usr/include ) find_library(OPENGLES2_LIBRARY NAMES GLESv2 PATHS /opt/graphics/OpenGL/lib /usr/openwin/lib /usr/shlib /usr/X11R6/lib /usr/lib ) if(NOT BUILD_ANDROID) find_path(EGL_INCLUDE_DIR EGL/egl.h PATHS /usr/openwin/share/include /opt/graphics/OpenGL/include /usr/X11R6/include /usr/include ) find_library(EGL_LIBRARY NAMES EGL PATHS /opt/graphics/OpenGL/lib /usr/openwin/lib /usr/shlib /usr/X11R6/lib /usr/lib ) # On Unix OpenGL usually requires X11. # It doesn't require X11 on OSX. if(OPENGLES2_LIBRARY) if(NOT X11_FOUND) include(FindX11) endif() if(X11_FOUND) set(OPENGLES2_LIBRARIES ${X11_LIBRARIES}) endif() endif() endif() endif() set(OPENGLES2_LIBRARIES ${OPENGLES2_LIBRARIES} ${OPENGLES2_LIBRARY}) if(BUILD_ANDROID) if(OPENGLES2_LIBRARY) set(EGL_LIBRARIES) set(OPENGLES2_FOUND TRUE) endif() else() if(OPENGLES2_LIBRARY AND EGL_LIBRARY) set(OPENGLES2_LIBRARIES ${OPENGLES2_LIBRARY} ${OPENGLES2_LIBRARIES}) set(EGL_LIBRARIES ${EGL_LIBRARY} ${EGL_LIBRARIES}) set(OPENGLES2_FOUND TRUE) endif() endif() mark_as_advanced( OPENGLES2_INCLUDE_DIR OPENGLES2_LIBRARY EGL_INCLUDE_DIR EGL_LIBRARY ) if(OPENGLES2_FOUND) message(STATUS "Found system OpenGL ES 2 library: ${OPENGLES2_LIBRARIES}") else() set(OPENGLES2_LIBRARIES "") endif()