Commit Graph

5272 Commits

Author SHA1 Message Date
Lynix b442ab0bd2 Refactored mathematics module
Added AABBs
Added code examples
Added experimental support for texture arrays (1D/2D)
Added initialisers (new way of initialising modules)
Added global headers (Plus a global header generator script)
Added pattern support for directory
Added support for spinlocks critical section on Windows
Added NzRenderWindow::SetFramerateLimit
Core project now includes Mathematics files
Fixed color implementation using double
Fixed declaration needing renderer include
Fixed MLT not clearing nextFree(File/Line) after Free
Fixed move operators not being noexcept
Fixed thread-safety (Now working correctly - If I'm lucky)
Moved Resource to core
New interface for modules
New interface for the renderer
Put some global functions to anonymous namespace
Removed empty modules
Renamed ThreadCondition to ConditionVariable
Replaced redirect to cerr log option by duplicate to cout
Setting mouse position relative to a window will make this window ignore
the event
Shaders sending methods no longer takes the uniform variable name (it's
using ID instead)
Using new OpenGL 4.3 header
2012-08-08 04:44:17 +02:00
Remi Beges ed200354cb Merge remote-tracking branch 'upstream/master' 2012-07-24 14:35:05 +02:00
Remi Beges 354d7ed002 Improved interface
*MappedNoiseBase provides a gain and offset control on the noise value
*AbstractXDNoise provides a way to contain different noises in a std
container and access the main "GetValue" member function
*Applied minor optimisation to Perlin4D (previously forgotten)
2012-07-24 14:21:56 +02:00
Lynix 06eda4eba9 Added Meshes and Animations (And many more)
Added NzTexture::IsMipmappingSupported
Color::(FromTo)HSV now takes hue and saturation in degrees
Fixed Context::EnsureContext
Fixed COW thread-safety (String, Image, Matrix4)
Fixed Quatenion<T>::operator*(const Vector3<T>&)
Fixed ResourceLoader
Fixed String::Resize with a size of 0
Fixed Texture mipmapping crash
Fixed per-class thread-safety
IndexBuffer and VertexBuffer are now resources
It is now possible to use more than 8 texcoords per shader
Moved all enumerations into separate files (Core/Enums.hpp,
Utility/Enums.hpp, ..)
Removed NzContextParameters::defaultWindow
VertexDeclaration has been rewritten (New interface/COW)
2012-07-13 15:22:14 +02:00
Lynix 5f95f0b677 Updated OpenGL headers 2012-07-01 23:09:25 +02:00
Lynix ee8a6fda3b Fixed last commit 2012-07-01 02:06:40 +02:00
Lynix 7ed9e16664 NzString::Clear now takes an optional argument
Fixed NzString::ToDouble rejecting legal strings
NzString::Clear can now keep the internal buffer to improve performances
NzStringToNumber now takes an optional argument to check if the
conversion went well
Optimized NzString::ToInteger
2012-07-01 00:44:53 +02:00
Lynix d97e4a7f43 Fixed cursor change not showing immediatly
Fixed error message when failed to create icon
2012-06-24 15:06:17 +02:00
Lynix bcf36e7a14 Added support for custom cursor/icon 2012-06-24 13:28:24 +02:00
Lynix d851e35a56 Added NzWindow::SetCursor
Moved window flags to global scope (nzWindowStyle)
Removed NzWindow::ShowMouseCursor (superseded by SetCursor)
2012-06-23 15:02:17 +02:00
Lynix 71cf7876c5 Optimized image flipping
Added new extensible flipping system
Optimized NzTexture::Update(Face)
2012-06-22 23:18:37 +02:00
Lynix acc9b99ad2 Fixed typo 2012-06-22 09:57:24 +02:00
Lynix 8e04e71c14 Added class template 2012-06-21 16:50:17 +02:00
Lynix 445d6d236d Added NzBuffer::SetStorage
Fixed (Index/Vertex)Buffer::(Fill/Map) not filling/mapping the entire
buffer when the third argument was zero
Fixed Renderer not accepting sequential index buffer
2012-06-21 16:37:28 +02:00
Lynix ec9470ceb6 Moved buffers to Utility
Fixed NzVector4::operator/
Replaced enumName_Count by enumName_Max
Renamed (Index/Vertex)Buffer::GetBufferPtr by GetPointer
2012-06-21 09:49:47 +02:00
Remi Beges 10a436b481 Made operator< of strict order 2012-06-20 20:36:14 +02:00
Remi Beges 9996a7169a Removed Physics module 2012-06-19 18:31:42 +02:00
Remi Beges f1865e5030 Sligthly changed interface & added functionnalities
NzPhysicsWorld has now a public pointer to NewtonWorld
NzCollisionShape added, can be constructed from a NzCube for now
NzPhysicsEntity added
Minor fix + typo
2012-06-18 10:24:06 +02:00
Remi Beges 092ccd0302 Forgot to commit src files and Newton headers in previous commit 2012-06-16 13:33:31 +02:00
Remi Beges c55d9b5456 Laid Physics module basis
Added NzPhysicsWorld
Added NzPhysicsSolver
2012-06-16 13:28:47 +02:00
Remi Beges 8c9e5ddc8f Merge remote-tracking branch 'upstream/master' 2012-06-16 12:45:59 +02:00
Lynix be0a5d2819 Fixed many bugs
Added NzOpenGL::GetEntry
Activated preprocessor error if not compiling with a C++11 compliant
compiler
Cube can now be constructed with a Rect
Desactived utility option "threaded window" (bugged)
Epured Image interface (No more UpdateFace, use Update with z = the face
you are targetting)
Fixed compilation errors (Thanks to RafBill)
Fixed predefined colors not exported
Fixed uplading pixels not aligned by 4 bytes
Fixed Thumbs.db files not ignored by git
NzImage now supports Filling and Flipping (Horizontally and vertically)
NzImage::Get(Const)Pixels now support pixel location
NzVector(2/3) can now return floatting distance/length with all types
NzVector(2/3/4) can now be constructed by a vector of smaller dimension
Premake now set "-std=c++11" build option for GCC
Renamed NzImage::(Get/Set)Pixel to (Get/Set)PixelColor
Updated new([])/delete([]) in the leaks tracker to the new C++11
signatures
2012-06-15 11:03:43 +02:00
Remi Beges 5fde943d9e Fixed minor bug in NoiseBase & Vector4 (typo) 2012-06-14 09:19:45 +02:00
Lynix 0f84f8eda8 Added Quaternion spheric interpolation
Fixed NzVector(2/3)::Length() and NzQuaternion::Magnitude() returning
double instead of template type
Added quaternion dot product
Added gitignore
2012-06-13 17:54:07 +02:00
Lynix e2a38b3790 First part of render texture commit
Added NzContext::EnsureContext and NzContext::GetThreadContext
Added NzCube
Added NzRect::GetCenter
Added methods to send vectors to shaders
Added NzRenderer::SetViewport
Fixed NzRect::ExtendTo calculations
Fixed NzImage::Update checks with level > 0
No longer use glTexStorage when creating a texture to prevent a bug
NzBuffer's Lock and Unlock operations renamed to Map and Unmap
NzVector2/3/4 can now cast implicitly to a pointer
Optimized compilation time of String.hpp
Optimized normalisaton of quaternions
Optimized passing uniforms to shaders
Quaternion now automaticaly Normalize h
Removed macro definition of NAZARA_RENDERER_OPENGL from Renderer
Removed implicit cast from NzVector2/3/4 to NzString
Renamed nzBufferLock to nzBufferAccess
Renamed NzRenderTarget::CanActivate to IsValid
2012-06-13 07:40:31 +02:00
Lynix b1632842ae Merge pull request #1 from Overdrivr/master
Merged Noise module
2012-06-12 01:35:08 -07:00
Remi Beges 90faf844ed Fixed contributor's name 2012-06-11 00:29:09 +02:00
Remi Beges 23bb9da0bd Fixed typo + minor errors 2012-06-10 10:27:51 +02:00
Remi Beges 879a33878e fixed typo 2012-06-09 17:07:01 +02:00
Remi Beges ebba6adae4 Simplex & Perlin fully work now (all dimensions) + dynaTerrain removed temp 2012-06-07 13:10:58 +02:00
Lynix ddd2a2f310 Added CopyTo(Image/Texture) to NzRenderWindow
Added several methods to NzRenderer
Optimized NzRenderer::GetMax*();
Nz(Render)Window::GetSize now returns an unsigned vector
Fixed textures being flipped
2012-06-05 23:06:47 +02:00
Remi Beges 5d7f8acbc8 Perlin 2,3,4 optimisations + Simplex imp fixed + improved architecture 2012-06-05 22:00:09 +02:00
Lynix a176648265 Added NzTexture
Added levelCount parameter to NzImageParams
Added NzPixelFormat::HasAlpha
Reformatted OpenGL debug messages
2012-06-05 10:54:06 +02:00
Lynix 49353cb636 Fixed crash with NzContext::Destroy
Fixed crash when calling NzContext::Destroy two times without recreating
a new context
2012-05-31 23:42:39 +02:00
Lynix dd4cb97a37 Added support for OpenGL debug mode
When NzContextParameters.debugMode is true, Nazara will receive OpenGL's
debug message and send them to Nazara's log
NzString::Pointer now have the "0x" prefix
Added support for ARB_texture_storage extension
Nazara now try to load core texture 3D before trying to load
EXT_texture3D
Added NazaraNotice macro, writing raw text into Nazara's log
Added NzContext::Destroy (called in Create)
2012-05-31 23:33:47 +02:00
Lynix f4b194f6fe Fixed rendering with OpenGL core profile
Added (automatic) support of Vertex Arrays Objects (VAO) to fix
rendering with an OpenGL core profile (OpenGL 3.2 require the use of
VAOs)
Added level check to NzImage::GetDepth/Height/Size/Width
Fixed occlussion query support not correctly setted
2012-05-31 18:18:28 +02:00
Remi Beges 4d975fa67e Forgot to commit some stuff (noise+dynaterrain) from previous commit 2012-05-31 15:35:52 +02:00
Remi Beges 9008c36802 Added NzDynaTerrain (basis) + simplex3d 4d for nznoise 2012-05-31 15:32:22 +02:00
Remi Beges 784787cd79 Suppressed perlin1d, added perlin 2,3,4 and simplex 2 classes + minor
fixes/optimisations on noisemachine
2012-05-30 19:30:51 +02:00
Lynix 3720967802 Fixed compilation error from last commit
Fixed NzImage::GetWidth/Height/Depth returning 0 when level > image's
max level
2012-05-30 19:21:20 +02:00
Lynix b220e00c88 NzImage now handles mipmaps
Added NzRenderer::SetClearColor(const Color&)
Added describe comment for pixel formats
Fixed NzPixelFormat conversion for RGBA4 and RGB5A1 types
Fixed NzRenderer::Clear prototype
Renamed NzLock to NzLockGuard
ResourceLoader's loaders are now tested from newest to oldest
2012-05-30 18:10:17 +02:00
Remi Beges 57d9af6b56 NzNoise new architecture + Perlin 1D algorithm modified 2012-05-29 20:28:31 +02:00
Lynix f39e2f7d36 NzString::Trim(med) can now take a limit flag
Fixed NzString::Simplified removing non-separator character with
HandleUtf8 flag
2012-05-28 16:21:27 +02:00
Remi Beges 7578a1b957 Fixed implementation of NzNoise + typo + small optimisations 2012-05-27 21:18:52 +02:00
Remi Beges cd701a429b 'q' n'est pas reconnu en tant que commande interne
ou externe, un programme ex‚cutable ou un fichier de commandes.
2012-05-27 21:15:12 +02:00
Lynix 96ea5fdaa7 Added NzImage::Get/SetPixel(Face)
NzImage::Update(const nzUInt8* pixels, const NzRectui& rect) now takes a
third argument to specify the layer of the 3D image (if a 3D image),
default to 0
Optimized NzPixelFormat conversion from RGBA4
Added NzColor
2012-05-27 11:57:34 +02:00
Lynix 7659fdf460 Window's subsystem is now initialized by NzUtility
Optimized Image
2012-05-25 12:23:04 +02:00
Lynix f55cf96713 Optimized NzImage::Convert
Removed debug warning
2012-05-25 07:42:48 +02:00
Remi Beges 5f765a354b Changed contributor name 2012-05-24 20:54:01 +02:00
Overdrivr 341eda975c NzNoise added 2012-05-24 20:41:08 +02:00