- Timestamp:
- 08/21/14 04:02:01 (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 deleted
- 133 edited
- 30 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/core/any.hh
r254 r319 13 13 */ 14 14 15 #ifndef NV_ ANY_HH16 #define NV_ ANY_HH15 #ifndef NV_CORE_ANY_HH 16 #define NV_CORE_ANY_HH 17 17 18 #include <nv/co mmon.hh>19 #include <nv/ type_traits.hh>18 #include <nv/core/common.hh> 19 #include <nv/core/type_traits.hh> 20 20 21 21 namespace nv … … 152 152 } 153 153 154 #endif // NV_ ANY_HH154 #endif // NV_CORE_ANY_HH -
trunk/nv/core/array.hh
r260 r319 11 11 */ 12 12 13 #ifndef NV_ ARRAY_HH14 #define NV_ ARRAY_HH13 #ifndef NV_CORE_ARRAY_HH 14 #define NV_CORE_ARRAY_HH 15 15 16 #include <nv/co mmon.hh>16 #include <nv/core/common.hh> 17 17 #include <vector> 18 18 #include <array> … … 191 191 } 192 192 193 #endif // NV_ ARRAY_HH193 #endif // NV_CORE_ARRAY_HH -
trunk/nv/core/array2d.hh
r255 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 // TODO: make it work with the stl allocator 14 14 15 #ifndef NV_ ARRAY2D_HH16 #define NV_ ARRAY2D_HH17 18 #include <nv/co mmon.hh>19 #include <nv/ math.hh>20 #include <nv/ range.hh>15 #ifndef NV_CORE_ARRAY2D_HH 16 #define NV_CORE_ARRAY2D_HH 17 18 #include <nv/core/common.hh> 19 #include <nv/core/math.hh> 20 #include <nv/core/range.hh> 21 21 22 22 namespace nv … … 360 360 } 361 361 362 #endif // NV_ ARRAY2D_HH362 #endif // NV_CORE_ARRAY2D_HH -
trunk/nv/core/common.hh
r311 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 5 5 // For conditions of distribution and use, see copyright notice in nv.hh 6 6 7 #ifndef NV_CO MMON_HH8 #define NV_CO MMON_HH7 #ifndef NV_CORE_COMMON_HH 8 #define NV_CORE_COMMON_HH 9 9 10 10 // NV Library version … … 113 113 #include <cstdint> 114 114 #include <cassert> 115 #include <nv/ logging.hh>115 #include <nv/core/logging.hh> 116 116 117 117 #define NV_STRINGIZE_DETAIL(x) #x … … 227 227 } 228 228 229 #endif // NV_CO MMON_HH229 #endif // NV_CORE_COMMON_HH -
trunk/nv/core/config.hh
r205 r319 1 // Copyright (C) 201 2 Kornel Kisielewicz1 // Copyright (C) 2014 ChaosForge Ltd 2 2 // This file is part of NV Libraries. 3 3 // For conditions of distribution and use, see copyright notice in nv.hh 4 4 5 #ifndef NV_CO NFIG_HH6 #define NV_CO NFIG_HH5 #ifndef NV_CORE_CONFIG_HH 6 #define NV_CORE_CONFIG_HH 7 7 8 8 #define NV_LIB_STATIC 1 … … 10 10 #define NV_LIB_DYNAMIC 3 11 11 12 #endif // NV_CO NFIG_HH12 #endif // NV_CORE_CONFIG_HH -
trunk/nv/core/exception.hh
r256 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 11 11 */ 12 12 13 #ifndef NV_ EXCEPTION_HH14 #define NV_ EXCEPTION_HH13 #ifndef NV_CORE_EXCEPTION_HH 14 #define NV_CORE_EXCEPTION_HH 15 15 16 #include <nv/co mmon.hh>16 #include <nv/core/common.hh> 17 17 #include <string> 18 18 #include <exception> … … 44 44 } 45 45 46 #endif // NV_ EXCEPTION_HH46 #endif // NV_CORE_EXCEPTION_HH -
trunk/nv/core/flags.hh
r310 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 11 11 */ 12 12 13 #ifndef NV_ FLAGS_HH14 #define NV_ FLAGS_HH15 16 #include <nv/co mmon.hh>17 #include <nv/ type_traits.hh>18 #include <nv/ array.hh>13 #ifndef NV_CORE_FLAGS_HH 14 #define NV_CORE_FLAGS_HH 15 16 #include <nv/core/common.hh> 17 #include <nv/core/type_traits.hh> 18 #include <nv/core/array.hh> 19 19 20 20 namespace nv … … 219 219 } // namespace nv 220 220 221 #endif // NV_ FLAGS_HH221 #endif // NV_CORE_FLAGS_HH -
trunk/nv/core/handle.hh
r295 r319 10 10 */ 11 11 12 #ifndef NV_ HANDLE_HH13 #define NV_ HANDLE_HH14 15 #include <nv/co mmon.hh>16 #include <nv/ array.hh>12 #ifndef NV_CORE_HANDLE_HH 13 #define NV_CORE_HANDLE_HH 14 15 #include <nv/core/common.hh> 16 #include <nv/core/array.hh> 17 17 18 18 namespace nv … … 312 312 } 313 313 314 #endif // NV_ HANDLE_HH314 #endif // NV_CORE_HANDLE_HH -
trunk/nv/core/io_event.hh
r304 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 11 11 */ 12 12 13 #ifndef NV_IO_EVENT_HH 14 #define NV_IO_EVENT_HH 15 16 #include <nv/common.hh> 17 #include <nv/types.hh> 13 #ifndef NV_CORE_IO_EVENT_HH 14 #define NV_CORE_IO_EVENT_HH 15 16 #include <nv/core/common.hh> 18 17 19 18 namespace nv … … 214 213 * @param db The database to store all event data in. 215 214 */ 216 void register_io_types( type_database* db );215 //void register_io_types( type_database* db ); 217 216 } 218 217 219 #endif // NV_ IO_EVENT_HH218 #endif // NV_CORE_IO_EVENT_HH -
trunk/nv/core/library.hh
r256 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 11 11 */ 12 12 13 #ifndef NV_ LIBRARY_HH14 #define NV_ LIBRARY_HH13 #ifndef NV_CORE_LIBRARY_HH 14 #define NV_CORE_LIBRARY_HH 15 15 16 #include <nv/ exception.hh>17 #include <nv/ string.hh>16 #include <nv/core/exception.hh> 17 #include <nv/core/string.hh> 18 18 19 19 namespace nv … … 142 142 } // namespace nv 143 143 144 #endif // NV_ LIBRARY_HH144 #endif // NV_CORE_LIBRARY_HH -
trunk/nv/core/logger.hh
r295 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 11 11 */ 12 12 13 #ifndef NV_ LOGGER_HH14 #define NV_ LOGGER_HH15 16 #include <nv/ string.hh>17 #include <nv/ logging.hh>13 #ifndef NV_CORE_LOGGER_HH 14 #define NV_CORE_LOGGER_HH 15 16 #include <nv/core/string.hh> 17 #include <nv/core/logging.hh> 18 18 #include <iosfwd> 19 19 #include <list> … … 210 210 } 211 211 212 #endif // NV_ LOGGER_HH212 #endif // NV_CORE_LOGGER_HH -
trunk/nv/core/logging.hh
r311 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 11 11 */ 12 12 13 #ifndef NV_ LOGGING_HH14 #define NV_ LOGGING_HH13 #ifndef NV_CORE_LOGGING_HH 14 #define NV_CORE_LOGGING_HH 15 15 16 #include <nv/co mmon.hh>17 #include <nv/ singleton.hh>16 #include <nv/core/common.hh> 17 #include <nv/core/singleton.hh> 18 18 #include <string> 19 19 #include <sstream> … … 76 76 #endif 77 77 78 #endif // NV_ LOGGING_HH78 #endif // NV_CORE_LOGGING_HH -
trunk/nv/core/math.hh
r312 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 5 5 // For conditions of distribution and use, see copyright notice in nv.hh 6 6 7 #ifndef NV_ MATH_HH8 #define NV_ MATH_HH9 10 #include <nv/co mmon.hh>7 #ifndef NV_CORE_MATH_HH 8 #define NV_CORE_MATH_HH 9 10 #include <nv/core/common.hh> 11 11 12 12 #if NV_COMPILER == NV_GNUC … … 249 249 } // namespace nv 250 250 251 #endif // NV_ MATH_HH251 #endif // NV_CORE_MATH_HH -
trunk/nv/core/position.hh
r255 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 6 6 7 7 /** 8 * @file gui_element.hh8 * @file position.hh 9 9 * @author Kornel Kisielewicz 10 10 * @brief UI 2D positioning classes 11 11 */ 12 12 13 #ifndef NV_ POSITION_HH14 #define NV_ POSITION_HH15 16 #include <nv/co mmon.hh>17 #include <nv/ math.hh>18 #include <nv/ range.hh>13 #ifndef NV_CORE_POSITION_HH 14 #define NV_CORE_POSITION_HH 15 16 #include <nv/core/common.hh> 17 #include <nv/core/math.hh> 18 #include <nv/core/range.hh> 19 19 #include <utility> 20 20 … … 321 321 } 322 322 323 #endif // NV_ POSITION_HH323 #endif // NV_CORE_POSITION_HH -
trunk/nv/core/profiler.hh
r205 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 11 11 */ 12 12 13 #ifndef NV_ PROFILER_HH14 #define NV_ PROFILER_HH13 #ifndef NV_CORE_PROFILER_HH 14 #define NV_CORE_PROFILER_HH 15 15 16 #include <nv/co mmon.hh>17 #include <nv/ singleton.hh>16 #include <nv/core/common.hh> 17 #include <nv/core/singleton.hh> 18 18 #include <unordered_map> 19 19 … … 86 86 } // namespace nv 87 87 88 #endif // NV_ PROFILER_HH88 #endif // NV_CORE_PROFILER_HH -
trunk/nv/core/random.hh
r308 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 5 5 // For conditions of distribution and use, see copyright notice in nv.hh 6 6 7 #ifndef NV_ RANDOM_HH8 #define NV_ RANDOM_HH7 #ifndef NV_CORE_RANDOM_HH 8 #define NV_CORE_RANDOM_HH 9 9 10 #include <nv/common.hh> 10 #include <nv/core/common.hh> 11 #include <nv/core/math.hh> 11 12 #include <random> 12 #include <nv/math.hh>13 13 14 14 namespace nv … … 181 181 } 182 182 183 #endif // NV_ RANDOM_HH183 #endif // NV_CORE_RANDOM_HH -
trunk/nv/core/range.hh
r310 r319 10 10 */ 11 11 12 #ifndef NV_ RANGE_HH13 #define NV_ RANGE_HH14 15 #include <nv/co mmon.hh>16 #include <nv/ math.hh>17 #include <nv/ type_traits.hh>12 #ifndef NV_CORE_RANGE_HH 13 #define NV_CORE_RANGE_HH 14 15 #include <nv/core/common.hh> 16 #include <nv/core/math.hh> 17 #include <nv/core/type_traits.hh> 18 18 #include <iterator> 19 19 … … 225 225 } 226 226 227 #endif // NV_ RANGE_HH227 #endif // NV_CORE_RANGE_HH -
trunk/nv/core/singleton.hh
r205 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 11 11 */ 12 12 13 #ifndef NV_ SINGLETON_HH14 #define NV_ SINGLETON_HH13 #ifndef NV_CORE_SINGLETON_HH 14 #define NV_CORE_SINGLETON_HH 15 15 16 16 #include <cassert> … … 118 118 } // namespace nv 119 119 120 #endif // NV_ SINGLETON_HH120 #endif // NV_CORE_SINGLETON_HH -
trunk/nv/core/string.hh
r219 r319 1 // Copyright (C) 2012 Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // This file is part of NV Libraries. 3 3 // For conditions of distribution and use, see copyright notice in nv.hh 4 4 5 #ifndef NV_ STRING_HH6 #define NV_ STRING_HH5 #ifndef NV_CORE_STRING_HH 6 #define NV_CORE_STRING_HH 7 7 8 8 #include <string> … … 11 11 #include <sstream> 12 12 #include <fstream> 13 #include <nv/co mmon.hh>14 #include <nv/ exception.hh>13 #include <nv/core/common.hh> 14 #include <nv/core/exception.hh> 15 15 16 16 namespace nv … … 249 249 } 250 250 251 #endif // NV_ STRING_HH251 #endif // NV_CORE_STRING_HH -
trunk/nv/core/time.hh
r205 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 10 10 */ 11 11 12 #ifndef NV_ TIME_HH13 #define NV_ TIME_HH12 #ifndef NV_CORE_TIME_HH 13 #define NV_CORE_TIME_HH 14 14 15 #include <nv/co mmon.hh>15 #include <nv/core/common.hh> 16 16 17 17 namespace nv … … 146 146 } // namespace nv 147 147 148 #endif // NV_ TIME_HH148 #endif // NV_CORE_TIME_HH -
trunk/nv/core/transform.hh
r282 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 5 5 // For conditions of distribution and use, see copyright notice in nv.hh 6 6 7 #ifndef NV_ TRANSFORM_HH8 #define NV_ TRANSFORM_HH7 #ifndef NV_CORE_TRANSFORM_HH 8 #define NV_CORE_TRANSFORM_HH 9 9 10 #include <nv/co mmon.hh>11 #include <nv/ math.hh>10 #include <nv/core/common.hh> 11 #include <nv/core/math.hh> 12 12 13 13 namespace nv … … 105 105 } 106 106 107 #endif // NV_ TRANSFORM_HH107 #endif // NV_CORE_TRANSFORM_HH -
trunk/nv/core/type_traits.hh
r310 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 // -- once the Variadic Templates cometh, for great justice we will win! 14 14 15 #ifndef NV_ TYPE_TRAITS_HH16 #define NV_ TYPE_TRAITS_HH17 18 #include <nv/co mmon.hh>15 #ifndef NV_CORE_TYPE_TRAITS_HH 16 #define NV_CORE_TYPE_TRAITS_HH 17 18 #include <nv/core/common.hh> 19 19 #include <type_traits> 20 20 … … 230 230 } 231 231 232 #endif // NV_ TYPE_TRAITS_HH232 #endif // NV_CORE_TYPE_TRAITS_HH -
trunk/nv/core/uid.hh
r266 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 11 11 */ 12 12 13 #ifndef NV_ UID_HH14 #define NV_ UID_HH13 #ifndef NV_CORE_UID_HH 14 #define NV_CORE_UID_HH 15 15 16 #include <nv/co mmon.hh>16 #include <nv/core/common.hh> 17 17 #include <unordered_map> 18 18 … … 107 107 } 108 108 109 #endif // NV_ UID_HH109 #endif // NV_CORE_UID_HH -
trunk/nv/curses/curses_terminal.hh
r222 r319 1 // Copyright (C) 201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 #define NV_CURSES_TERMINAL_HH 14 14 15 #include <nv/co mmon.hh>15 #include <nv/core/common.hh> 16 16 #include <nv/interface/terminal.hh> 17 #include <nv/ io_event.hh>17 #include <nv/core/io_event.hh> 18 18 19 19 namespace nv -
trunk/nv/engine/program_manager.hh
r316 r319 14 14 #define NV_ENGINE_PROGRAM_MANAGER_HH 15 15 16 #include <nv/co mmon.hh>16 #include <nv/core/common.hh> 17 17 #include <nv/engine/resource_system.hh> 18 18 -
trunk/nv/engine/resource_system.hh
r316 r319 14 14 #define NV_ENGINE_RESOURCE_MANAGER_HH 15 15 16 #include <nv/co mmon.hh>16 #include <nv/core/common.hh> 17 17 #include <nv/interface/context.hh> 18 18 #include <nv/lua/lua_state.hh> -
trunk/nv/fmod/fmod_audio.hh
r194 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 #define NV_FMOD_AUDIO_HH 14 14 15 #include <nv/co mmon.hh>15 #include <nv/core/common.hh> 16 16 #include <nv/interface/audio.hh> 17 17 -
trunk/nv/formats/assimp_loader.hh
r294 r319 8 8 #define NV_ASSIMP_LOADER_HH 9 9 10 #include <nv/co mmon.hh>10 #include <nv/core/common.hh> 11 11 #include <nv/io/string_table.hh> 12 12 #include <nv/interface/mesh_loader.hh> -
trunk/nv/formats/md2_loader.hh
r287 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 14 14 #define NV_MD2_LOADER_HH 15 15 16 #include <nv/co mmon.hh>16 #include <nv/core/common.hh> 17 17 #include <unordered_map> 18 #include < vector>18 #include <nv/core/array.hh> 19 19 #include <nv/interface/mesh_loader.hh> 20 20 -
trunk/nv/formats/md3_loader.hh
r304 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 14 14 #define NV_MD3_LOADER_HH 15 15 16 #include <nv/co mmon.hh>16 #include <nv/core/common.hh> 17 17 #include <unordered_map> 18 #include < vector>19 #include <nv/ transform.hh>18 #include <nv/core/array.hh> 19 #include <nv/core/transform.hh> 20 20 #include <nv/interface/mesh_data.hh> 21 21 #include <nv/interface/mesh_loader.hh> -
trunk/nv/formats/md5_loader.hh
r291 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 14 14 #define NV_MD5_LOADER_HH 15 15 16 #include <nv/co mmon.hh>17 #include <nv/ array.hh>16 #include <nv/core/common.hh> 17 #include <nv/core/array.hh> 18 18 #include <nv/interface/mesh_loader.hh> 19 19 -
trunk/nv/formats/nmd_loader.hh
r292 r319 1 // Copyright (C) 2014 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 #define NV_NMD_LOADER_HH 9 9 10 #include <nv/co mmon.hh>10 #include <nv/core/common.hh> 11 11 #include <nv/interface/mesh_loader.hh> 12 12 #include <nv/interface/mesh_data.hh> -
trunk/nv/formats/obj_loader.hh
r287 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 14 14 #define NV_OBJ_LOADER_HH 15 15 16 #include <nv/co mmon.hh>16 #include <nv/core/common.hh> 17 17 #include <nv/interface/mesh_loader.hh> 18 18 #include <nv/interface/mesh_data.hh> -
trunk/nv/gfx/animation.hh
r293 r319 1 // Copyright (C) 2014 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 #define NV_ANIMATION_HH 9 9 10 #include <nv/co mmon.hh>11 #include < vector>10 #include <nv/core/common.hh> 11 #include <nv/core/array.hh> 12 12 #include <nv/interface/stream.hh> 13 #include <nv/ math.hh>13 #include <nv/core/math.hh> 14 14 #include <nv/interface/animation_key.hh> 15 15 #include <nv/interface/interpolation_raw.hh> 16 16 #include <nv/interface/interpolation_template.hh> 17 #include <nv/ transform.hh>17 #include <nv/core/transform.hh> 18 18 #include <glm/gtc/matrix_transform.hpp> 19 19 -
trunk/nv/gfx/debug_draw.hh
r313 r319 1 // Copyright (C) 2014 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 #define NV_DEBUG_DRAW_HH 9 9 10 #include <nv/co mmon.hh>11 #include <nv/ math.hh>10 #include <nv/core/common.hh> 11 #include <nv/core/math.hh> 12 12 #include <nv/interface/context.hh> 13 13 -
trunk/nv/gfx/image.hh
r228 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 #define NV_IMAGE_HH 9 9 10 #include <nv/co mmon.hh>11 #include <nv/ math.hh>10 #include <nv/core/common.hh> 11 #include <nv/core/math.hh> 12 12 #include <nv/interface/image_data.hh> 13 13 -
trunk/nv/gfx/keyframed_mesh.hh
r314 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 #define NV_KEYFRAMED_MESH_HH 9 9 10 #include <nv/co mmon.hh>10 #include <nv/core/common.hh> 11 11 #include <nv/interface/context.hh> 12 12 #include <nv/interface/animated_mesh.hh> -
trunk/nv/gfx/mesh_creator.hh
r304 r319 8 8 #define NV_MESH_CREATOR_HH 9 9 10 #include <nv/co mmon.hh>11 #include <nv/ math.hh>10 #include <nv/core/common.hh> 11 #include <nv/core/math.hh> 12 12 #include <nv/interface/mesh_data.hh> 13 13 -
trunk/nv/gfx/particle_engine.hh
r312 r319 1 // Copyright (C) 2014 ChaosForge Ltd 2 // http://chaosforge.org/ 3 // 4 // This file is part of NV Libraries. 5 // For conditions of distribution and use, see copyright notice in nv.hh 6 1 7 #ifndef NV_GFX_PARTICLE_ENGINE 2 8 #define NV_GFX_PARTICLE_ENGINE 3 9 4 #include <nv/co mmon.hh>5 #include <nv/ math.hh>6 #include <nv/ array.hh>7 #include <nv/ handle.hh>10 #include <nv/core/common.hh> 11 #include <nv/core/math.hh> 12 #include <nv/core/array.hh> 13 #include <nv/core/handle.hh> 8 14 #include <nv/lua/lua_state.hh> 9 15 #include <nv/gfx/texture_atlas.hh> -
trunk/nv/gfx/skeletal_mesh.hh
r313 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 #define NV_SKELETAL_MESH_HH 9 9 10 #include <nv/co mmon.hh>10 #include <nv/core/common.hh> 11 11 #include <nv/interface/context.hh> 12 12 #include <nv/interface/animated_mesh.hh> -
trunk/nv/gfx/sliced_buffer.hh
r302 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 11 11 #define NV_SLICED_BUFFER_HH 12 12 13 #include <nv/common.hh> 14 #include <nv/math.hh> 15 #include <nv/interface/vertex_buffer.hh> 13 #include <nv/core/common.hh> 14 #include <nv/core/math.hh> 16 15 17 16 namespace nv … … 271 270 static const int value_type_size = sizeof(T); 272 271 273 indexed_sliced_buffer( device* dev, buffer_hint hint, int initial_size, int initial_index_size )274 : m_vertex_buffer( dev, VERTEX_BUFFER, hint, initial_size )275 , m_index_buffer( dev, INDEX_BUFFER, hint, initial_index_size )272 indexed_sliced_buffer( context* ctx, buffer_hint hint, int initial_size, int initial_index_size ) 273 : m_vertex_buffer( ctx, VERTEX_BUFFER, hint, initial_size ) 274 , m_index_buffer( ctx, INDEX_BUFFER, hint, initial_index_size ) 276 275 { 277 276 … … 295 294 int get_vertex_size() const { return m_vertex_buffer.get_size(); } 296 295 int get_index_size() const { return m_index_buffer.get_size(); } 297 buffer* get_buffer() { return m_vertex_buffer.get_buffer(); } 296 buffer get_vertex_buffer() { return m_vertex_buffer.get_buffer(); } 297 buffer get_index_buffer() { return m_index_buffer.get_buffer(); } 298 298 sliced_vertex_buffer& get_vertex_cache() { return m_vertex_buffer; } 299 299 sliced_index_buffer& get_index_cache() { return m_index_buffer; } -
trunk/nv/gfx/texture_atlas.hh
r145 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 10 10 #define NV_TEXTURE_ATLAS_HH 11 11 12 #include <nv/co mmon.hh>13 #include <nv/ math.hh>12 #include <nv/core/common.hh> 13 #include <nv/core/math.hh> 14 14 #include <nv/gfx/image.hh> 15 15 #include <vector> -
trunk/nv/gfx/texture_font.hh
r256 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 #define NV_TEXTURE_FONT_HH 9 9 10 #include <nv/co mmon.hh>11 #include <nv/ string.hh>10 #include <nv/core/common.hh> 11 #include <nv/core/string.hh> 12 12 #include <unordered_map> 13 #include <nv/ math.hh>13 #include <nv/core/math.hh> 14 14 #include <nv/gfx/texture_atlas.hh> 15 15 -
trunk/nv/gl/gl_context.hh
r313 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/nv/gl/gl_device.hh
r316 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/nv/gl/gl_enum.hh
r316 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 #define NV_GL_ENUM_HH 14 14 15 #include <nv/ math.hh>15 #include <nv/core/math.hh> 16 16 #include <nv/interface/clear_state.hh> 17 17 #include <nv/interface/render_state.hh> 18 #include <nv/interface/vertex_buffer.hh>19 18 #include <nv/interface/image_data.hh> 20 19 #include <nv/interface/context.hh> -
trunk/nv/gl/gl_window.hh
r295 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/nv/gui/gui_common.hh
r271 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 14 14 #define NV_GUI_COMMON_HH 15 15 16 #include <nv/co mmon.hh>17 #include <nv/ handle.hh>16 #include <nv/core/common.hh> 17 #include <nv/core/handle.hh> 18 18 19 19 namespace nv -
trunk/nv/gui/gui_element.hh
r271 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 14 14 #define NV_GUI_ELEMENT_HH 15 15 16 #include <nv/common.hh> 17 #include <nv/position.hh> 18 #include <nv/io_event.hh> 16 #include <nv/core/common.hh> 17 #include <nv/core/position.hh> 18 #include <nv/core/io_event.hh> 19 #include <nv/core/string.hh> 19 20 #include <nv/gui/gui_common.hh> 21 #include <list> 20 22 21 23 namespace nv -
trunk/nv/gui/gui_environment.hh
r318 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 17 17 #include <nv/gui/gui_style.hh> 18 18 #include <nv/lua/lua_state.hh> 19 #include <nv/ io_event.hh>19 #include <nv/core/io_event.hh> 20 20 #include <nv/interface/window.hh> 21 #include <nv/ array.hh>21 #include <nv/core/array.hh> 22 22 23 23 namespace nv -
trunk/nv/gui/gui_renderer.hh
r318 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 14 14 #define NV_GUI_RENDERER_HH 15 15 16 #include <nv/object.hh> 17 #include <nv/position.hh> 18 #include <nv/math.hh> 16 #include <nv/core/position.hh> 17 #include <nv/core/math.hh> 19 18 #include <nv/gui/gui_common.hh> 20 19 #include <nv/gui/gui_style.hh> -
trunk/nv/gui/gui_style.hh
r121 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/nv/interface/animated_mesh.hh
r296 r319 1 // Copyright (C) 2014 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 14 14 #define NV_ANIMATED_MESH_HH 15 15 16 #include <nv/co mmon.hh>17 #include <nv/ math.hh>18 #include <nv/ transform.hh>16 #include <nv/core/common.hh> 17 #include <nv/core/math.hh> 18 #include <nv/core/transform.hh> 19 19 #include <nv/interface/context.hh> 20 20 -
trunk/nv/interface/animation_key.hh
r286 r319 1 // Copyright (C) 2014 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 10 10 #define NV_ANIMATION_KEY_HH 11 11 12 #include <nv/co mmon.hh>13 #include <nv/ transform.hh>14 #include <nv/ math.hh>12 #include <nv/core/common.hh> 13 #include <nv/core/transform.hh> 14 #include <nv/core/math.hh> 15 15 16 16 namespace nv -
trunk/nv/interface/audio.hh
r198 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 #define NV_AUDIO_HH 14 14 15 #include <nv/co mmon.hh>16 #include <nv/ math.hh>15 #include <nv/core/common.hh> 16 #include <nv/core/math.hh> 17 17 18 18 namespace nv -
trunk/nv/interface/camera.hh
r267 r319 1 // Copyright (C) 2014 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 #define NV_CAMERA_HH 14 14 15 #include <nv/co mmon.hh>16 #include <nv/ math.hh>15 #include <nv/core/common.hh> 16 #include <nv/core/math.hh> 17 17 18 18 namespace nv -
trunk/nv/interface/clear_state.hh
r214 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 14 14 #define NV_CLEAR_STATE_HH 15 15 16 #include <nv/co mmon.hh>17 #include <nv/ math.hh>16 #include <nv/core/common.hh> 17 #include <nv/core/math.hh> 18 18 19 19 namespace nv -
trunk/nv/interface/context.hh
r314 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 #define NV_CONTEXT_HH 14 14 15 #include <nv/co mmon.hh>15 #include <nv/core/common.hh> 16 16 #include <nv/interface/device.hh> 17 17 #include <nv/interface/camera.hh> 18 #include <nv/interface/vertex_buffer.hh>19 18 #include <nv/interface/clear_state.hh> 20 19 #include <nv/interface/render_state.hh> -
trunk/nv/interface/device.hh
r316 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 #define NV_DEVICE_HH 14 14 15 #include <nv/co mmon.hh>16 #include <nv/ string.hh>17 #include <nv/ handle.hh>15 #include <nv/core/common.hh> 16 #include <nv/core/string.hh> 17 #include <nv/core/handle.hh> 18 18 #include <nv/interface/uniform.hh> 19 19 #include <nv/interface/mesh_data.hh> 20 #include <nv/interface/vertex_buffer.hh>21 20 #include <nv/interface/image_data.hh> 22 21 -
trunk/nv/interface/file_system.hh
r135 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 #define NV_FILE_SYSTEM_HH 14 14 15 #include <nv/co mmon.hh>15 #include <nv/core/common.hh> 16 16 #include <nv/interface/stream.hh> 17 17 -
trunk/nv/interface/font.hh
r230 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 #define NV_GL_FONT_HH 9 9 10 #include <nv/co mmon.hh>11 #include <nv/ math.hh>10 #include <nv/core/common.hh> 11 #include <nv/core/math.hh> 12 12 #include <unordered_map> 13 13 -
trunk/nv/interface/image_data.hh
r292 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 14 14 #define NV_IMAGE_DATA_HH 15 15 16 #include <nv/co mmon.hh>17 #include <nv/ math.hh>16 #include <nv/core/common.hh> 17 #include <nv/core/math.hh> 18 18 #include <algorithm> 19 19 -
trunk/nv/interface/interpolation_raw.hh
r293 r319 1 // Copyright (C) 2014 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 10 10 #define NV_INTERPOLATION_RAW_HH 11 11 12 #include <nv/co mmon.hh>13 #include <nv/ transform.hh>14 #include <nv/ math.hh>12 #include <nv/core/common.hh> 13 #include <nv/core/transform.hh> 14 #include <nv/core/math.hh> 15 15 #include <nv/interface/animation_key.hh> 16 16 -
trunk/nv/interface/interpolation_template.hh
r286 r319 1 // Copyright (C) 2014 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 10 10 #define NV_INTERPOLATION_TEMPLATE_HH 11 11 12 #include <nv/co mmon.hh>13 #include <nv/ transform.hh>14 #include <nv/ math.hh>12 #include <nv/core/common.hh> 13 #include <nv/core/transform.hh> 14 #include <nv/core/math.hh> 15 15 #include <nv/interface/animation_key.hh> 16 16 -
trunk/nv/interface/map_area.hh
r298 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 #define NV_MAP_AREA_HH 14 14 15 #include <nv/co mmon.hh>16 #include <nv/ string.hh>17 #include <nv/ array.hh>18 #include <nv/ position.hh>15 #include <nv/core/common.hh> 16 #include <nv/core/string.hh> 17 #include <nv/core/array.hh> 18 #include <nv/core/position.hh> 19 19 20 20 namespace nv -
trunk/nv/interface/mesh_data.hh
r304 r319 8 8 #define NV_MESH_DATA_HH 9 9 10 #include <nv/co mmon.hh>11 #include <nv/ math.hh>12 #include <nv/ string.hh>13 #include <nv/ array.hh>10 #include <nv/core/common.hh> 11 #include <nv/core/math.hh> 12 #include <nv/core/string.hh> 13 #include <nv/core/array.hh> 14 14 #include <nv/gfx/animation.hh> 15 15 #include <nv/interface/vertex.hh> -
trunk/nv/interface/mesh_loader.hh
r293 r319 14 14 #define NV_MESH_LOADER_HH 15 15 16 #include <nv/co mmon.hh>17 #include < vector>16 #include <nv/core/common.hh> 17 #include <nv/core/array.hh> 18 18 #include <unordered_map> 19 #include <nv/ transform.hh>20 #include <nv/ string.hh>19 #include <nv/core/transform.hh> 20 #include <nv/core/string.hh> 21 21 #include <nv/gfx/animation.hh> 22 22 #include <nv/interface/mesh_data.hh> -
trunk/nv/interface/render_state.hh
r233 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 14 14 #define NV_RENDER_STATE_HH 15 15 16 #include <nv/co mmon.hh>17 #include <nv/ math.hh>16 #include <nv/core/common.hh> 17 #include <nv/core/math.hh> 18 18 #include <nv/interface/clear_state.hh> 19 #include <nv/ string.hh>19 #include <nv/core/string.hh> 20 20 21 21 namespace nv -
trunk/nv/interface/scene_node.hh
r275 r319 1 // Copyright (C) 2014 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 #define NV_SCENE_NODE_HH 14 14 15 #include <nv/co mmon.hh>16 #include < vector>17 #include <nv/ transform.hh>18 #include <nv/ math.hh>15 #include <nv/core/common.hh> 16 #include <nv/core/array.hh> 17 #include <nv/core/transform.hh> 18 #include <nv/core/math.hh> 19 19 #include <nv/interface/render_state.hh> 20 20 -
trunk/nv/interface/stream.hh
r279 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 #define NV_STREAM_HH 14 14 15 #include <nv/co mmon.hh>15 #include <nv/core/common.hh> 16 16 17 17 namespace nv -
trunk/nv/interface/terminal.hh
r222 r319 1 // Copyright (C) 2013 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2013-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 #define NV_TERMINAL_HH 14 14 15 #include <nv/co mmon.hh>16 #include <nv/ position.hh>17 #include <nv/ io_event.hh>15 #include <nv/core/common.hh> 16 #include <nv/core/position.hh> 17 #include <nv/core/io_event.hh> 18 18 19 19 namespace nv -
trunk/nv/interface/uniform.hh
r316 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 #define NV_UNIFORM_HH 14 14 15 #include <nv/interface/camera.hh> 16 #include <nv/core/common.hh> 17 #include <nv/core/string.hh> 15 18 #include <unordered_map> 16 #include <nv/interface/camera.hh>17 #include <nv/common.hh>18 #include <nv/string.hh>19 19 20 20 namespace nv -
trunk/nv/interface/vertex.hh
r302 r319 1 // Copyright (C) 2014 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 10 10 #define NV_VERTEX_HH 11 11 12 #include <nv/co mmon.hh>13 #include <nv/ transform.hh>14 #include <nv/ math.hh>12 #include <nv/core/common.hh> 13 #include <nv/core/transform.hh> 14 #include <nv/core/math.hh> 15 15 16 16 namespace nv -
trunk/nv/interface/window.hh
r121 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 10 10 */ 11 11 12 #ifndef NV_ WINDOW_HH13 #define NV_ WINDOW_HH12 #ifndef NV_GUI_WINDOW_HH 13 #define NV_GUI_WINDOW_HH 14 14 15 #include <nv/co mmon.hh>16 #include <nv/ string.hh>17 #include <nv/ io_event.hh>15 #include <nv/core/common.hh> 16 #include <nv/core/string.hh> 17 #include <nv/core/io_event.hh> 18 18 19 19 namespace nv … … 39 39 40 40 41 #endif // NV_ WINDOW_HH41 #endif // NV_GUI_WINDOW_HH -
trunk/nv/io/c_file_system.hh
r124 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 #define NV_C_FILE_SYSTEM_HH 14 14 15 #include <nv/co mmon.hh>15 #include <nv/core/common.hh> 16 16 #include <nv/interface/file_system.hh> 17 17 -
trunk/nv/io/c_stream.hh
r279 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 #define NV_C_STREAM_HH 14 14 15 #include <nv/co mmon.hh>15 #include <nv/core/common.hh> 16 16 #include <nv/interface/stream.hh> 17 17 -
trunk/nv/io/std_stream.hh
r138 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 #define NV_STD_STREAM_HH 14 14 15 #include <nv/co mmon.hh>15 #include <nv/core/common.hh> 16 16 #include <nv/interface/stream.hh> 17 17 #include <streambuf> -
trunk/nv/io/string_table.hh
r281 r319 13 13 #define NV_IO_STRING_TABLE_HH 14 14 15 #include <nv/co mmon.hh>16 #include <nv/ array.hh>15 #include <nv/core/common.hh> 16 #include <nv/core/array.hh> 17 17 #include <unordered_map> 18 18 #include <nv/interface/stream.hh> -
trunk/nv/lib/assimp.hh
r247 r319 8 8 #define NV_LIB_ASSIMP_HH 9 9 10 #include <nv/co mmon.hh>11 #include <nv/ logging.hh>12 #include <nv/ string.hh>13 #include <nv/ math.hh>10 #include <nv/core/common.hh> 11 #include <nv/core/logging.hh> 12 #include <nv/core/string.hh> 13 #include <nv/core/math.hh> 14 14 15 15 #define NV_ASSIMP_DYNAMIC -
trunk/nv/lib/curses.hh
r218 r319 1 // Copyright (C) 201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 #define NV_LIB_CURSES_HH 9 9 10 #include <nv/co mmon.hh>10 #include <nv/core/common.hh> 11 11 12 12 #define NV_CURSES_DYNAMIC -
trunk/nv/lib/fmod.hh
r197 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 #define NV_LIB_FMOD_HH 9 9 10 #include <nv/co mmon.hh>10 #include <nv/core/common.hh> 11 11 12 12 #define NV_FMOD_DYNAMIC -
trunk/nv/lib/freetype2.hh
r167 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 12 12 #include <stddef.h> 13 13 14 #include <nv/co mmon.hh>14 #include <nv/core/common.hh> 15 15 16 16 #define NV_FREETYPE_DYNAMIC -
trunk/nv/lib/gl.hh
r311 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 #define NV_LIB_GL_HH 9 9 10 #include <nv/co mmon.hh>10 #include <nv/core/common.hh> 11 11 12 12 #if NV_PLATFORM == NV_WINDOWS -
trunk/nv/lib/lua.hh
r198 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 33 33 ******************************************************************************/ 34 34 35 #include <nv/co mmon.hh>35 #include <nv/core/common.hh> 36 36 37 37 #define NV_LUA_DYNAMIC -
trunk/nv/lib/sdl.hh
r245 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 #define NV_LIB_SDL_HH 9 9 10 #include <nv/co mmon.hh>10 #include <nv/core/common.hh> 11 11 12 12 #define NV_SDL_DYNAMIC -
trunk/nv/lib/sdl_image.hh
r171 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 #define NV_LIB_SDL_IMAGE_HH 9 9 10 #include <nv/co mmon.hh>10 #include <nv/core/common.hh> 11 11 #include <nv/lib/sdl.hh> 12 12 -
trunk/nv/lib/sdl_mixer.hh
r193 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 #define NV_LIB_SDL_MIXER_HH 9 9 10 #include <nv/co mmon.hh>10 #include <nv/core/common.hh> 11 11 #include <nv/lib/sdl.hh> 12 12 -
trunk/nv/lib/wx.hh
r310 r319 19 19 #undef near 20 20 #undef far 21 #include <nv/co mmon.hh>21 #include <nv/core/common.hh> 22 22 #include <nv/lib/gl.hh> 23 23 #include <nv/gl/gl_device.hh> -
trunk/nv/lua/lua_area.hh
r209 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 7 7 #define NV_LUA_AREA_HH 8 8 9 #include <nv/co mmon.hh>10 #include <nv/ position.hh>9 #include <nv/core/common.hh> 10 #include <nv/core/position.hh> 11 11 #include <nv/lua/lua_glm.hh> 12 12 #include <nv/lua/lua_state.hh> -
trunk/nv/lua/lua_aux.hh
r207 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/nv/lua/lua_dispatch.hh
r262 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 14 14 #define NV_LUA_DISPATCH_HH 15 15 16 #include <nv/co mmon.hh>17 #include <nv/ string.hh>16 #include <nv/core/common.hh> 17 #include <nv/core/string.hh> 18 18 #include <nv/lua/lua_values.hh> 19 19 #include <nv/lua/lua_path.hh> -
trunk/nv/lua/lua_flags.hh
r215 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 7 7 #define NV_LUA_FLAGS_HH 8 8 9 #include <nv/co mmon.hh>10 #include <nv/ flags.hh>9 #include <nv/core/common.hh> 10 #include <nv/core/flags.hh> 11 11 #include <nv/lua/lua_state.hh> 12 12 #include <nv/lua/lua_values.hh> -
trunk/nv/lua/lua_function.hh
r253 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 #define NV_LUA_FUNCTION_HH 9 9 10 #include <nv/co mmon.hh>11 #include <nv/ string.hh>10 #include <nv/core/common.hh> 11 #include <nv/core/string.hh> 12 12 #include <nv/lua/lua_values.hh> 13 13 #include <nv/lua/lua_path.hh> -
trunk/nv/lua/lua_glm.hh
r208 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 9 9 #include <new> 10 #include <nv/co mmon.hh>11 #include <nv/ math.hh>10 #include <nv/core/common.hh> 11 #include <nv/core/math.hh> 12 12 #include <nv/lua/lua_values.hh> 13 13 -
trunk/nv/lua/lua_map_area.hh
r265 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/nv/lua/lua_map_tile.hh
r221 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 #define NV_LUA_MAP_TILE_HH 14 14 15 #include <nv/co mmon.hh>15 #include <nv/core/common.hh> 16 16 #include <nv/lua/lua_state.hh> 17 17 -
trunk/nv/lua/lua_nova.hh
r316 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/nv/lua/lua_path.hh
r204 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 #define NV_LUA_PATH_HH 9 9 10 #include <nv/co mmon.hh>11 #include <nv/ string.hh>10 #include <nv/core/common.hh> 11 #include <nv/core/string.hh> 12 12 #include <cstring> 13 13 -
trunk/nv/lua/lua_raw.hh
r220 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 7 7 #define NV_LUA_RAW_HH 8 8 9 #include <nv/co mmon.hh>9 #include <nv/core/common.hh> 10 10 #include <nv/lib/lua.hh> 11 11 #include <istream> -
trunk/nv/lua/lua_state.hh
r305 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 9 9 10 10 11 #ifndef NV_LUA_HH 12 #define NV_LUA_HH 13 14 #include <nv/common.hh> 11 #ifndef NV_LUA_STATE_HH 12 #define NV_LUA_STATE_HH 13 14 #include <nv/core/common.hh> 15 #include <nv/core/flags.hh> 15 16 #include <istream> 16 17 #include <map> 17 #include <nv/flags.hh>18 18 19 19 #include <nv/lua/lua_path.hh> … … 273 273 } // namespace nv 274 274 275 #endif // NV_LUA_ HH275 #endif // NV_LUA_STATE_HH -
trunk/nv/lua/lua_values.hh
r305 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 #define NV_LUA_VALUES_HH 9 9 10 #include <nv/co mmon.hh>11 #include <nv/ type_traits.hh>12 #include <nv/ string.hh>10 #include <nv/core/common.hh> 11 #include <nv/core/type_traits.hh> 12 #include <nv/core/string.hh> 13 13 14 14 struct lua_State; -
trunk/nv/rogue/fov.hh
r298 r319 10 10 #define NV_ROGUE_FOV_HH 11 11 12 #include <nv/co mmon.hh>13 #include <nv/ position.hh>12 #include <nv/core/common.hh> 13 #include <nv/core/position.hh> 14 14 #include <nv/interface/map_area.hh> 15 15 -
trunk/nv/rogue/fov_recursive_shadowcasting.hh
r298 r319 8 8 #define NV_ROGUE_FOV_RECURSIVE_SHADOWCASTING_HH 9 9 10 #include <nv/co mmon.hh>11 #include <nv/ position.hh>10 #include <nv/core/common.hh> 11 #include <nv/core/position.hh> 12 12 #include <nv/rogue/fov.hh> 13 13 -
trunk/nv/sdl/sdl_audio.hh
r194 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 13 13 #define NV_SDL_AUDIO_HH 14 14 15 #include <nv/co mmon.hh>15 #include <nv/core/common.hh> 16 16 #include <nv/interface/audio.hh> 17 17 -
trunk/src/core/io_event.cc
r304 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 5 5 // For conditions of distribution and use, see copyright notice in nv.hh 6 6 7 #include "nv/io_event.hh" 8 9 #include <nv/types.hh> 7 #include "nv/core/io_event.hh" 10 8 11 9 using namespace nv; … … 44 42 } 45 43 44 /************************************************************************ 46 45 void nv::register_io_types( type_database* db ) 47 46 { … … 138 137 db->create_type<system_event>("system_event").fields( system_fields ); 139 138 } 139 ************************************************************************/ -
trunk/src/core/library.cc
r295 r319 1 // Copyright (C) 2012 Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // This file is part of NV Libraries. 3 3 // For conditions of distribution and use, see copyright notice in nv.hh 4 #include "nv/co mmon.hh"5 #include "nv/ library.hh"4 #include "nv/core/common.hh" 5 #include "nv/core/library.hh" 6 6 7 7 #if NV_PLATFORM == NV_WINDOWS … … 30 30 #endif 31 31 32 #include "nv/ logging.hh"32 #include "nv/core/logging.hh" 33 33 34 34 using namespace nv; -
trunk/src/core/logger.cc
r295 r319 1 // Copyright (C) 2011 Kornel Kisielewicz1 // Copyright (C) 2011-2014 ChaosForge Ltd 2 2 // This file is part of NV Libraries. 3 3 // For conditions of distribution and use, see copyright notice in nv.hh 4 4 5 #include "nv/ logger.hh"6 7 #include "nv/co mmon.hh"5 #include "nv/core/logger.hh" 6 7 #include "nv/core/common.hh" 8 8 #include <iostream> 9 9 #include <utility> … … 12 12 #include <ctime> 13 13 #include <cstdio> 14 #include <nv/exception.hh>14 #include "nv/core/exception.hh" 15 15 #if NV_PLATFORM == NV_WINDOWS 16 16 #define WIN32_LEAN_AND_MEAN -
trunk/src/core/profiler.cc
r205 r319 1 // Copyright (C) 2012-201 3 Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // This file is part of NV Libraries. 3 3 // For conditions of distribution and use, see copyright notice in nv.hh 4 4 5 #include "nv/ profiler.hh"5 #include "nv/core/profiler.hh" 6 6 7 7 #include <iomanip> 8 8 #include <ios> 9 #include "nv/ time.hh"9 #include "nv/core/time.hh" 10 10 11 11 using namespace nv; -
trunk/src/core/random.cc
r308 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 5 5 // For conditions of distribution and use, see copyright notice in nv.hh 6 6 7 #include "nv/ random.hh"8 #include "nv/ time.hh"7 #include "nv/core/random.hh" 8 #include "nv/core/time.hh" 9 9 10 10 using namespace nv; -
trunk/src/core/time.cc
r205 r319 1 // Copyright (C) 2011 Kornel Kisielewicz1 // Copyright (C) 2011-2014 ChaosForge Ltd 2 2 // This file is part of NV Libraries. 3 3 // For conditions of distribution and use, see copyright notice in nv.hh 4 4 5 #include "nv/ time.hh"5 #include "nv/core/time.hh" 6 6 7 #include "nv/ logging.hh"7 #include "nv/core/logging.hh" 8 8 9 9 #if NV_COMPILER == NV_MSVC -
trunk/src/core/uid.cc
r266 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 5 5 // For conditions of distribution and use, see copyright notice in nv.hh 6 6 7 #include "nv/ uid.hh"7 #include "nv/core/uid.hh" 8 8 9 9 using namespace nv; -
trunk/src/curses/curses_terminal.cc
r222 r319 1 // Copyright (C) 2013 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2013-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 7 7 #include "nv/curses/curses_terminal.hh" 8 8 9 #include "nv/ time.hh"9 #include "nv/core/time.hh" 10 10 #include "nv/lib/curses.hh" 11 11 -
trunk/src/engine/program_manager.cc
r317 r319 6 6 7 7 #include "nv/engine/program_manager.hh" 8 #include "nv/ range.hh"8 #include "nv/core/range.hh" 9 9 #include "nv/lua/lua_nova.hh" 10 10 -
trunk/src/engine/resource_system.cc
r316 r319 6 6 7 7 #include "nv/engine/resource_system.hh" 8 #include "nv/ range.hh"8 #include "nv/core/range.hh" 9 9 #include "nv/lua/lua_nova.hh" 10 10 … … 38 38 } 39 39 40 nv::resource_type_id nv::resource_system::register_resource_type( const string& name, resource_manager_base* manager)40 nv::resource_type_id nv::resource_system::register_resource_type( const string& /*name*/, resource_manager_base* /*manager*/ ) 41 41 { 42 42 return 0; 43 43 } 44 44 45 nv::resource_type_id nv::resource_system::get_resource_type_id( const string& name) const45 nv::resource_type_id nv::resource_system::get_resource_type_id( const string& /*name*/ ) const 46 46 { 47 47 return 0; 48 48 } 49 49 50 void nv::resource_system::initialize( lua::state* a_lua_state)50 void nv::resource_system::initialize( lua::state* /*a_lua_state*/ ) 51 51 { 52 52 -
trunk/src/fmod/fmod_audio.cc
r194 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 9 9 #include "nv/lib/fmod.hh" 10 #include "nv/ logging.hh"10 #include "nv/core/logging.hh" 11 11 12 12 using namespace nv; -
trunk/src/formats/md2_loader.cc
r287 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 9 9 #include <glm/gtc/constants.hpp> 10 #include "nv/ logging.hh"10 #include "nv/core/logging.hh" 11 11 #include <cstring> 12 12 -
trunk/src/formats/md3_loader.cc
r304 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 9 9 #include <glm/gtc/constants.hpp> 10 #include "nv/ logging.hh"10 #include "nv/core/logging.hh" 11 11 #include <cstring> 12 12 -
trunk/src/formats/md5_loader.cc
r291 r319 1 // Copyright (C) 2012-2013 ChaosForge / Kornel Kisielewicz 2 // http://chaosforge.org/ 3 // 1 // Copyright (C) 2012-2014 ChaosForge Ltd 4 2 // This file is part of NV Libraries. 5 3 // For conditions of distribution and use, see copyright notice in nv.hh … … 8 6 9 7 #include <glm/gtc/constants.hpp> 10 #include "nv/ logging.hh"8 #include "nv/core/logging.hh" 11 9 #include "nv/io/std_stream.hh" 12 10 #include <cstring> -
trunk/src/formats/nmd_loader.cc
r292 r319 1 // Copyright (C) 2014 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 7 7 #include "nv/formats/nmd_loader.hh" 8 8 #include "nv/io/std_stream.hh" 9 #include "nv/ string.hh"9 #include "nv/core/string.hh" 10 10 11 11 using namespace nv; -
trunk/src/formats/obj_loader.cc
r287 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/src/gfx/debug_draw.cc
r313 r319 1 // Copyright (C) 2014 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/src/gfx/image.cc
r228 r319 1 // Copyright (C) 2011 Kornel Kisielewicz1 // Copyright (C) 2011-2014 ChaosForge Ltd 2 2 // This file is part of NV Libraries. 3 3 // For conditions of distribution and use, see copyright notice in nv.hh -
trunk/src/gfx/keyframed_mesh.cc
r314 r319 1 // Copyright (C) 2011 Kornel Kisielewicz1 // Copyright (C) 2011-2014 ChaosForge Ltd 2 2 // This file is part of NV Libraries. 3 3 // For conditions of distribution and use, see copyright notice in nv.hh … … 11 11 12 12 13 #include "nv/ logging.hh"13 #include "nv/core/logging.hh" 14 14 15 15 using namespace nv; -
trunk/src/gfx/particle_engine.cc
r313 r319 1 // Copyright (C) 2014 ChaosForge Ltd 2 // This file is part of NV Libraries. 3 // For conditions of distribution and use, see copyright notice in nv.hh 4 1 5 #include "nv/gfx/particle_engine.hh" 2 6 3 7 #include <nv/interface/device.hh> 4 #include <nv/ random.hh>8 #include <nv/core/random.hh> 5 9 #include <nv/lua/lua_glm.hh> 6 #include <nv/ logging.hh>10 #include <nv/core/logging.hh> 7 11 #include <cmath> 8 12 -
trunk/src/gfx/skeletal_mesh.cc
r313 r319 1 // Copyright (C) 2011 Kornel Kisielewicz1 // Copyright (C) 2011-2014 ChaosForge Ltd 2 2 // This file is part of NV Libraries. 3 3 // For conditions of distribution and use, see copyright notice in nv.hh -
trunk/src/gfx/texture_atlas.cc
r198 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 7 7 #include "nv/gfx/texture_atlas.hh" 8 8 9 #include "nv/ logging.hh"9 #include "nv/core/logging.hh" 10 10 #include <iostream> 11 11 -
trunk/src/gfx/texture_font.cc
r256 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/src/gl/gl_context.cc
r313 r319 1 // Copyright (C) 2012-201 3 Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // This file is part of NV Libraries. 3 3 // For conditions of distribution and use, see copyright notice in nv.hh -
trunk/src/gl/gl_device.cc
r316 r319 1 // Copyright (C) 2012-201 3 Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // This file is part of NV Libraries. 3 3 // For conditions of distribution and use, see copyright notice in nv.hh … … 6 6 7 7 #include "nv/gl/gl_window.hh" 8 #include "nv/ logging.hh"8 #include "nv/core/logging.hh" 9 9 #include "nv/lib/sdl.hh" 10 10 #include "nv/lib/sdl_image.hh" -
trunk/src/gl/gl_enum.cc
r316 r319 1 // Copyright (C) 2012-201 3 Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // This file is part of NV Libraries. 3 3 // For conditions of distribution and use, see copyright notice in nv.hh -
trunk/src/gl/gl_window.cc
r310 r319 1 // Copyright (C) 2012-201 3 Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // This file is part of NV Libraries. 3 3 // For conditions of distribution and use, see copyright notice in nv.hh … … 5 5 #include "nv/gl/gl_window.hh" 6 6 7 #include "nv/ logging.hh"7 #include "nv/core/logging.hh" 8 8 #include "nv/lib/gl.hh" 9 9 #include "nv/lib/sdl.hh" -
trunk/src/gui/gui_environment.cc
r318 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/src/gui/gui_renderer.cc
r318 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/src/gui/gui_style.cc
r268 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/src/io/c_file_system.cc
r128 r319 1 // Copyright (C) 2012-201 3 Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // This file is part of NV Libraries. 3 3 // For conditions of distribution and use, see copyright notice in nv.hh -
trunk/src/io/c_stream.cc
r279 r319 1 // Copyright (C) 2012-201 3 Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // This file is part of NV Libraries. 3 3 // For conditions of distribution and use, see copyright notice in nv.hh -
trunk/src/io/std_stream.cc
r198 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/src/lib/assimp.cc
r250 r319 23 23 #if defined( NV_ASSIMP_DYNAMIC ) 24 24 25 #include "nv/ library.hh"25 #include "nv/core/library.hh" 26 26 27 27 #define NV_ASSIMP_FUN( rtype, fname, fparams ) rtype (NV_ASSIMP_APIENTRY *fname) fparams = nullptr; -
trunk/src/lib/curses.cc
r218 r319 1 // Copyright (C) 2013 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2013-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 9 9 #if defined( NV_CURSES_DYNAMIC ) 10 10 11 #include "nv/ library.hh"11 #include "nv/core/library.hh" 12 12 13 13 #define NV_CURSES_FUN( rtype, fname, fparams ) rtype (*fname) fparams = nullptr; -
trunk/src/lib/fmod.cc
r203 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 9 9 #if defined( NV_FMOD_DYNAMIC ) 10 10 11 #include "nv/ library.hh"11 #include "nv/core/library.hh" 12 12 13 13 #define NV_FMOD_FUN( rtype, fname, fparams ) rtype (NV_FMOD_APIENTRY *fname) fparams = nullptr; -
trunk/src/lib/freetype2.cc
r167 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 9 9 #if defined( NV_FREETYPE_DYNAMIC ) 10 10 11 #include "nv/ library.hh"11 #include "nv/core/library.hh" 12 12 13 13 #define NV_FREETYPE_FUN( rtype, fname, fparams ) rtype (*fname) fparams = nullptr; -
trunk/src/lib/gl.cc
r311 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 5 5 // For conditions of distribution and use, see copyright notice in nv.hh 6 6 7 #include "nv/co mmon.hh"8 #include "nv/ range.hh"7 #include "nv/core/common.hh" 8 #include "nv/core/range.hh" 9 9 #include "nv/lib/gl.hh" 10 10 11 11 #if defined( NV_GL_DYNAMIC ) 12 12 13 #include "nv/ library.hh"13 #include "nv/core/library.hh" 14 14 15 15 #if defined( NV_SDL_GL ) -
trunk/src/lib/lua.cc
r198 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 9 9 #if defined( NV_LUA_DYNAMIC ) 10 10 11 #include "nv/ library.hh"11 #include "nv/core/library.hh" 12 12 13 13 #if NV_LUA_VERSION == NV_LUA_52 -
trunk/src/lib/sdl.cc
r171 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 9 9 #if defined( NV_SDL_DYNAMIC ) 10 10 11 #include "nv/ library.hh"11 #include "nv/core/library.hh" 12 12 13 13 #define NV_SDL_FUN( rtype, fname, fparams ) rtype (NV_SDL_APIENTRY *fname) fparams = nullptr; -
trunk/src/lib/sdl_image.cc
r168 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 9 9 #if defined( NV_SDL_DYNAMIC ) 10 10 11 #include "nv/ library.hh"11 #include "nv/core/library.hh" 12 12 13 13 #define NV_SDL_FUN( rtype, fname, fparams ) rtype (NV_SDL_APIENTRY *fname) fparams = nullptr; -
trunk/src/lib/sdl_mixer.cc
r194 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 9 9 #if defined( NV_SDL_DYNAMIC ) 10 10 11 #include "nv/ library.hh"11 #include "nv/core/library.hh" 12 12 13 13 #define NV_SDL_FUN( rtype, fname, fparams ) rtype (NV_SDL_APIENTRY *fname) fparams = nullptr; -
trunk/src/lua/lua_area.cc
r207 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 9 9 #include "nv/lua/lua_raw.hh" 10 #include "nv/ string.hh"11 #include "nv/ random.hh"10 #include "nv/core/string.hh" 11 #include "nv/core/random.hh" 12 12 13 13 const char* nv::lua::detail::AREA_METATABLE = "area"; -
trunk/src/lua/lua_aux.cc
r207 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 9 9 #include <utility> 10 10 #include "nv/lua/lua_raw.hh" 11 #include "nv/ random.hh"11 #include "nv/core/random.hh" 12 12 13 13 static int nluaaux_table_copy( lua_State* L ) -
trunk/src/lua/lua_flags.cc
r215 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 9 9 #include "nv/lua/lua_raw.hh" 10 #include "nv/ string.hh"10 #include "nv/core/string.hh" 11 11 12 12 -
trunk/src/lua/lua_function.cc
r198 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/src/lua/lua_glm.cc
r207 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 8 8 9 9 #include "nv/lua/lua_raw.hh" 10 #include "nv/ string.hh"11 #include "nv/ random.hh"10 #include "nv/core/string.hh" 11 #include "nv/core/random.hh" 12 12 13 13 static size_t nlua_swizzel_lookup[256]; -
trunk/src/lua/lua_map_area.cc
r265 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 6 6 7 7 #include "nv/lua/lua_map_area.hh" 8 #include "nv/ flags.hh"8 #include "nv/core/flags.hh" 9 9 #include "nv/lua/lua_area.hh" 10 10 #include "nv/lua/lua_glm.hh" -
trunk/src/lua/lua_map_tile.cc
r228 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 9 9 #include <numeric> 10 10 #include "nv/lua/lua_map_area.hh" 11 #include "nv/ flags.hh"12 #include "nv/ random.hh"11 #include "nv/core/flags.hh" 12 #include "nv/core/random.hh" 13 13 #include "nv/lua/lua_area.hh" 14 14 #include "nv/lua/lua_glm.hh" -
trunk/src/lua/lua_nova.cc
r316 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/src/lua/lua_path.cc
r204 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/src/lua/lua_raw.cc
r220 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 7 7 #include "nv/lua/lua_raw.hh" 8 8 9 #include "nv/ string.hh"9 #include "nv/core/string.hh" 10 10 11 11 std::string nlua_typecontent( lua_State* L, int idx ) -
trunk/src/lua/lua_state.cc
r305 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 9 9 #include "nv/lua/lua_raw.hh" 10 10 #include "nv/lua/lua_nova.hh" 11 #include "nv/ logging.hh"12 #include "nv/ string.hh"11 #include "nv/core/logging.hh" 12 #include "nv/core/string.hh" 13 13 14 14 using namespace nv; -
trunk/src/lua/lua_values.cc
r265 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/src/rogue/fov_recursive_shadowcasting.cc
r276 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 7 7 #include "nv/rogue/fov_recursive_shadowcasting.hh" 8 8 9 #include <nv/math.hh>9 #include "nv/core/math.hh" 10 10 11 11 static int nv_rogue_rs_mult[4][8] = { -
trunk/src/sdl/sdl_audio.cc
r202 r319 1 // Copyright (C) 2012-201 3 ChaosForge / Kornel Kisielewicz1 // Copyright (C) 2012-2014 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 9 9 #include "nv/lib/sdl.hh" 10 10 #include "nv/lib/sdl_mixer.hh" 11 #include "nv/ logging.hh"11 #include "nv/core/logging.hh" 12 12 13 13 using namespace nv; -
trunk/tests/cachebuf_test/nv_cachebuf_test.cc
r214 r319 1 #include <nv/interface/vertex_buffer.hh>2 1 #include <nv/gl/gl_device.hh> 3 2 #include <nv/gfx/image.hh> 4 3 #include <nv/interface/context.hh> 5 4 #include <nv/interface/window.hh> 6 #include <nv/interface/program.hh> 7 #include <nv/interface/texture2d.hh> 8 #include <nv/logging.hh> 9 #include <nv/logger.hh> 5 #include <nv/core/logging.hh> 6 #include <nv/core/logger.hh> 10 7 #include <glm/glm.hpp> 11 8 #include <glm/gtc/matrix_transform.hpp> 12 9 #include <glm/gtc/type_ptr.hpp> 13 #include <nv/string.hh> 14 #include <nv/interface/mesh.hh> 10 #include <nv/core/string.hh> 15 11 #include <cstdlib> // rand 16 12 #include <ctime> // time … … 222 218 ~application(); 223 219 protected: 224 nv::device* m_device; 225 nv::window* m_window; 220 nv::device* m_device; 221 nv::context* m_context; 222 nv::window* m_window; 226 223 nv::clear_state m_clear_state; 227 224 nv::render_state m_render_state; … … 230 227 std::vector<app_window> m_windows; 231 228 232 nv::program *m_program;233 nv::vertex_array *m_va;229 nv::program m_program; 230 nv::vertex_array m_va; 234 231 unsigned int m_count; 235 232 }; … … 237 234 application::application() 238 235 { 239 m_device = new nv::gl_device(); 240 m_window = m_device->create_window( 800, 600 ); 236 m_device = new nv::gl_device(); 237 m_window = m_device->create_window( 800, 600, false ); 238 m_context = m_window->get_context(); 241 239 242 240 m_clear_state.buffers = nv::clear_state::COLOR_AND_DEPTH_BUFFER; … … 254 252 { 255 253 m_program = m_device->create_program( nv::slurp( "cachebuf.vert" ), nv::slurp( "cachebuf.frag" ) ); 256 m_va = m_ device->create_vertex_array();257 258 #ifdef INDEXED_TEST 259 m_quad_cache = new gcache( m_ device, nv::DYNAMIC_DRAW, 200, 200 );260 m_ va->set_index_buffer(m_quad_cache->get_index_buffer(), nv::USHORT, false );261 nv:: vertex_buffer*buffer = m_quad_cache->get_vertex_buffer();262 #else 263 m_quad_cache = new gcache( m_ device, nv::DYNAMIC_DRAW, 20, true );264 nv:: vertex_buffer* buffer = (nv::vertex_buffer*)m_quad_cache->get_buffer();265 #endif 266 267 m_ va->add_vertex_buffer(nv::slot::POSITION, buffer, nv::INT, 2, 0, sizeof( vertex ), false );268 m_ va->add_vertex_buffer(nv::slot::COLOR, buffer, nv::FLOAT, 4, offset_of( &vertex::color ), sizeof( vertex ), false );254 m_va = m_context->create_vertex_array(); 255 256 #ifdef INDEXED_TEST 257 m_quad_cache = new gcache( m_context, nv::DYNAMIC_DRAW, 200, 200 ); 258 m_context->set_index_buffer( m_va, m_quad_cache->get_index_buffer(), nv::USHORT, false ); 259 nv::buffer buffer = m_quad_cache->get_vertex_buffer(); 260 #else 261 m_quad_cache = new gcache( m_context, nv::DYNAMIC_DRAW, 20, true ); 262 nv::buffer buffer = m_quad_cache->get_buffer(); 263 #endif 264 265 m_context->add_vertex_buffer( m_va, nv::slot::POSITION, buffer, nv::INT, 2, 0, sizeof( vertex ), false ); 266 m_context->add_vertex_buffer( m_va, nv::slot::COLOR, buffer, nv::FLOAT, 4, offset_of( &vertex::color ), sizeof( vertex ), false ); 269 267 } 270 268 return true; … … 274 272 { 275 273 int keypress = 0; 276 m_program->bind();277 274 glm::mat4 projection = glm::ortho( 0.0f, 800.0f, 600.0f, 0.0f, -1.0f, 1.0f ); 278 m_ program->set_uniform("nv_projection", glm::mat4(projection) );275 m_device->set_uniform( m_program, "nv_projection", glm::mat4(projection) ); 279 276 280 277 while(!keypress) … … 287 284 { 288 285 #ifdef INDEXED_TEST 289 m_ va->set_index_buffer( m_quad_cache->get_index_buffer());290 nv:: vertex_buffer*buffer = m_quad_cache->get_vertex_buffer();286 m_context->set_index_buffer( m_va, m_quad_cache->get_index_buffer(), nv::USHORT, false ); 287 nv::buffer buffer = m_quad_cache->get_vertex_buffer(); 291 288 #else 292 nv:: vertex_buffer* buffer = (nv::vertex_buffer*)m_quad_cache->get_buffer();289 nv::buffer buffer = m_quad_cache->get_buffer(); 293 290 #endif 294 m_va->update_vertex_buffer( nv::slot::POSITION, buffer, false );295 m_va->update_vertex_buffer( nv::slot::COLOR, buffer, false );296 291 } 297 292 298 293 m_window->get_context()->clear( m_clear_state ); 299 m_program->bind();300 294 // m_program->set_uniform( "tex", 0 ); 301 295 #ifdef INDEXED_TEST … … 369 363 delete m_quad_cache; 370 364 371 delete m_program;372 delete m_va;365 m_device->release( m_program ); 366 m_context->release( m_va ); 373 367 delete m_window; 374 368 delete m_device; -
trunk/tests/gui_test/nv_gui_test.cc
r269 r319 2 2 #include <nv/gui/gui_environment.hh> 3 3 #include <nv/interface/context.hh> 4 #include <nv/ logging.hh>5 #include <nv/ logger.hh>4 #include <nv/core/logging.hh> 5 #include <nv/core/logger.hh> 6 6 #include <cstdlib> // rand 7 7 #include <ctime> // time -
trunk/tests/md3_test/md3_test.cc
r304 r319 1 #include <nv/co mmon.hh>1 #include <nv/core/common.hh> 2 2 #include <iomanip> 3 3 #include <nv/gfx/keyframed_mesh.hh> 4 #include <nv/interface/vertex_buffer.hh>5 4 #include <nv/gl/gl_device.hh> 6 5 #include <nv/gfx/image.hh> … … 10 9 #include <nv/io/c_file_system.hh> 11 10 #include <nv/formats/md3_loader.hh> 12 #include <nv/ profiler.hh>13 #include <nv/ logging.hh>14 #include <nv/ logger.hh>15 #include <nv/ math.hh>16 #include <nv/ time.hh>17 #include <nv/ string.hh>11 #include <nv/core/profiler.hh> 12 #include <nv/core/logging.hh> 13 #include <nv/core/logger.hh> 14 #include <nv/core/math.hh> 15 #include <nv/core/time.hh> 16 #include <nv/core/string.hh> 18 17 #include <glm/gtx/rotate_vector.hpp> 19 18 #include <glm/gtc/matrix_access.hpp> … … 68 67 void update( nv::uint32 ms, nv::program program ) 69 68 { 70 m_mesh->update( ms );71 69 m_mesh->update_animation( m_entry, ms ); 72 70 m_mesh->update( program ); … … 206 204 207 205 m_scene_state.set_model( model ); 208 m_window->get_context()->draw( m_render_state, m_scene_state, m_program, m_legs->get_mesh() );206 m_window->get_context()->draw( nv::TRIANGLES, m_render_state, m_scene_state, m_program, m_legs->get_mesh()->get_vertex_array(), m_legs->get_mesh()->get_index_count() ); 209 207 210 208 //model = m_legs->get_transform( "tag_torso", last_legs_frame, legs_frame, legs_interpolate ); 211 209 model = m_legs->get_transform( 0 ); 212 210 m_scene_state.set_model( model ); 213 m_window->get_context()->draw( m_render_state, m_scene_state, m_program, m_torso->get_mesh() );211 m_window->get_context()->draw( nv::TRIANGLES, m_render_state, m_scene_state, m_program, m_torso->get_mesh()->get_vertex_array(), m_torso->get_mesh()->get_index_count() ); 214 212 215 213 glm::mat4 head = model * m_torso->get_transform( 0 ); //, last_torso_frame, torso_frame, torso_interpolate ); 216 214 m_scene_state.set_model( head ); 217 m_window->get_context()->draw( m_render_state, m_scene_state, m_program, m_head->get_mesh() );215 m_window->get_context()->draw( nv::TRIANGLES, m_render_state, m_scene_state, m_program, m_head->get_mesh()->get_vertex_array(), m_head->get_mesh()->get_index_count() ); 218 216 219 217 glm::mat4 weapon = model * m_torso->get_transform( 2 ); //, last_torso_frame, torso_frame, torso_interpolate ); 220 218 m_scene_state.set_model( weapon ); 221 219 m_context->bind( m_diffuse_weapon, nv::TEX_DIFFUSE ); 222 m_context->draw( m_render_state, m_scene_state, m_program, m_weapon->get_mesh() );220 m_context->draw( nv::TRIANGLES, m_render_state, m_scene_state, m_program, m_weapon->get_mesh()->get_vertex_array(), m_weapon->get_mesh()->get_index_count() ); 223 221 224 222 }
Note: See TracChangeset
for help on using the changeset viewer.