@@ -24,7 +24,7 @@
#ifndef DFPSR_API_BUFFER
#define DFPSR_API_BUFFER
-#include <stdint.h>
+#include <cstdint>
#include <memory>
#include <functional>
#include "../base/SafePointer.h"
#ifndef DFPSR_API_STRING
#define DFPSR_API_STRING
#include <string>
#include <iostream>
#include <sstream>
#include "timeAPI.h"
#include <chrono>
#include <thread>
static bool started = false;
static std::chrono::time_point<std::chrono::steady_clock> startTime;
@@ -25,7 +25,7 @@
#ifndef DFPSR_API_TYPES
#define DFPSR_API_TYPES
#include "../image/Color.h"
#include "../math/IRect.h"
@@ -43,7 +43,7 @@
#include <cstring>
#include <cassert>
// Disabled in release mode
#ifndef NDEBUG
@@ -3,9 +3,9 @@
// or by defining DISABLE_ALLOCATOR (usually with a -DDISABLE_ALLOCATOR compiler flag).
#ifndef DISABLE_ALLOCATOR
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
#include <mutex>
static std::mutex allocationLock;
@@ -36,7 +36,7 @@
#ifndef DFPSR_ENDIAN
#define DFPSR_ENDIAN
- #include <stdint.h>
+ #include <cstdint>
// TODO: Detect endianness automatically
#ifdef DSR_BIG_ENDIAN
// TODO: Not yet tested on a big-endian machine!
@@ -81,7 +81,7 @@
#ifndef DFPSR_SIMD
#define DFPSR_SIMD
#include "SafePointer.h"
#include "../math/FVector.h"
@@ -26,7 +26,7 @@
#define DFPSR_COLLECTION_LIST
#include "collections.h"
#include <vector>
#include <algorithm>
@@ -27,7 +27,7 @@
#ifndef DFPSR_COLLECTIONS
#define DFPSR_COLLECTIONS
namespace dsr {
@@ -21,7 +21,7 @@
// 3. This notice may not be removed or altered from any source
// distribution.
#include "Font.h"
#include "../api/imageAPI.h"
#include "../api/drawAPI.h"
#ifndef DFPSR_BACKEND_WINDOW
#define DFPSR_BACKEND_WINDOW
#include "InputEvent.h"
#include "../image/ImageRgbaU8.h"
#ifndef DFPSR_GUI_FLEXREGION
#define DFPSR_GUI_FLEXREGION
#include "../math/IVector.h"
#include "../math/scalar.h"
#include "VisualComponent.h"
#include "../image/internal/imageInternal.h"
#include "VisualTheme.h"
#include "../api/fileAPI.h"
@@ -22,7 +22,7 @@
#include "Button.h"
-#include <math.h>
+#include <cmath>
using namespace dsr;
#include "Label.h"
#ifndef DFPSR_IMAGE_COLOR
#define DFPSR_IMAGE_COLOR
#include "../api/stringAPI.h"
#define DFPSR_IMAGE
#include "../api/bufferAPI.h"
#include "ImageRgbaU8.h"
#include "../base/text.h"
#ifndef DFPSR_IMAGE_PACK_ORDER
#define DFPSR_IMAGE_PACK_ORDER
#include "../api/types.h"
#include "../base/simd.h"
#include "../base/endian.h"
#ifndef DFPSR_VIRTUAL_MACHINE
#define DFPSR_VIRTUAL_MACHINE
#include "../math/FixedPoint.h"
#include "../collection/Array.h"
#include "../collection/List.h"
#ifndef DFPSR_GEOMETRY_FPLANE3D
#define DFPSR_GEOMETRY_FPLANE3D
#include "FVector.h"
@@ -24,8 +24,8 @@
#ifndef DFPSR_GEOMETRY_IRECT
#define DFPSR_GEOMETRY_IRECT
#include "IVector.h"
@@ -24,9 +24,9 @@
#ifndef DFPSR_GEOMETRY_VECTOR_METHODS
#define DFPSR_GEOMETRY_VECTOR_METHODS
// Since using templates for vector operands may include unwanted function
#ifndef DFPSR_RENDER_CAMERA
#define DFPSR_RENDER_CAMERA
#include "../math/LVector.h"
#ifndef DFPSR_RENDER_ITRIANGLE2D
#define DFPSR_RENDER_ITRIANGLE2D
#include "ProjectedPoint.h"
#ifndef DFPSR_RENDER_PROJECTEDPOINT
#define DFPSR_RENDER_PROJECTEDPOINT
#ifndef DFPSR_RENDER_MODEL_POLYGONMODEL
#define DFPSR_RENDER_MODEL_POLYGONMODEL
#include "../../api/types.h"
#include "../../collection/List.h"
#include "../../api/stringAPI.h"
#ifndef DFPSR_RENDER_MODEL_RENDERCORE
#define DFPSR_RENDER_MODEL_RENDERCORE
#include "Camera.h"
#include "shader/Shader.h"
#ifndef DFPSR_RENDER_SHADER_RGBA_MULTIPLY
#define DFPSR_RENDER_SHADER_RGBA_MULTIPLY
#include "Shader.h"
#ifndef DFPSR_RENDER_RENDERING
#define DFPSR_RENDER_RENDERING
#include "../../image/PackOrder.h"
#include "../../image/ImageRgbaU8.h"
#include "../../image/ImageF32.h"
#ifndef DFPSR_RENDER_FILLER_TEMPLATES
#define DFPSR_RENDER_FILLER_TEMPLATES
#ifndef DFPSR_RENDER_SHADER_METHODS
#define DFPSR_RENDER_SHADER_METHODS
#include "../../math/FVector.h"
#include "../../math/scalar.h"
#include "../../base/simd3D.h"
#ifndef DFPSR_RENDER_SHADER_TYPES
#define DFPSR_RENDER_SHADER_TYPES
#include "../../base/simd.h"
@@ -2,7 +2,7 @@
#ifndef DFPSR_DEFERRED_LIGHT_ENGINE
#define DFPSR_DEFERRED_LIGHT_ENGINE
-#include <assert.h>
+#include <cassert>
#include "../../DFPSR/includeFramework.h"
#include "orthoAPI.h"
@@ -5,7 +5,7 @@
#include "lightAPI.h"
#include <limits>
@@ -96,7 +96,7 @@ LATER:
#include "../SpriteEngine/spriteAPI.h"
#include "../SpriteEngine/importer.h"
@@ -1,5 +1,5 @@