summaryrefslogtreecommitdiff
path: root/servers/camera_server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'servers/camera_server.cpp')
-rw-r--r--servers/camera_server.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/servers/camera_server.cpp b/servers/camera_server.cpp
index fd88d15e58..3caea6b7c3 100644
--- a/servers/camera_server.cpp
+++ b/servers/camera_server.cpp
@@ -29,13 +29,13 @@
/*************************************************************************/
#include "camera_server.h"
+#include "rendering_server.h"
#include "servers/camera/camera_feed.h"
-#include "visual_server.h"
////////////////////////////////////////////////////////
// CameraServer
-CameraServer::CreateFunc CameraServer::create_func = NULL;
+CameraServer::CreateFunc CameraServer::create_func = nullptr;
void CameraServer::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_feed", "index"), &CameraServer::get_feed);
@@ -54,7 +54,7 @@ void CameraServer::_bind_methods() {
BIND_ENUM_CONSTANT(FEED_CBCR_IMAGE);
};
-CameraServer *CameraServer::singleton = NULL;
+CameraServer *CameraServer::singleton = nullptr;
CameraServer *CameraServer::get_singleton() {
return singleton;
@@ -92,7 +92,7 @@ Ref<CameraFeed> CameraServer::get_feed_by_id(int p_id) {
int index = get_feed_index(p_id);
if (index == -1) {
- return NULL;
+ return nullptr;
} else {
return feeds[index];
}
@@ -132,7 +132,7 @@ void CameraServer::remove_feed(const Ref<CameraFeed> &p_feed) {
};
Ref<CameraFeed> CameraServer::get_feed(int p_index) {
- ERR_FAIL_INDEX_V(p_index, feeds.size(), NULL);
+ ERR_FAIL_INDEX_V(p_index, feeds.size(), nullptr);
return feeds[p_index];
};
@@ -167,5 +167,5 @@ CameraServer::CameraServer() {
};
CameraServer::~CameraServer() {
- singleton = NULL;
+ singleton = nullptr;
};