summaryrefslogtreecommitdiffstats
path: root/modules/theora
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-01-02 23:03:46 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-01-02 23:03:46 -0300
commit118eed485e8f928a5a0dab530ae93211afa10525 (patch)
tree83efb5cbcebb7046e5b64dfe1712475a7d3b7f14 /modules/theora
parentce26eb74bca48f16e9a34b4eb1c34e50dfc5daae (diff)
downloadredot-engine-118eed485e8f928a5a0dab530ae93211afa10525.tar.gz
ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant.
All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
Diffstat (limited to 'modules/theora')
-rw-r--r--modules/theora/register_types.cpp2
-rw-r--r--modules/theora/video_stream_theora.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/theora/register_types.cpp b/modules/theora/register_types.cpp
index 043498a230..58f63465c9 100644
--- a/modules/theora/register_types.cpp
+++ b/modules/theora/register_types.cpp
@@ -36,7 +36,7 @@ void register_theora_types() {
theora_stream_loader = memnew( ResourceFormatLoaderVideoStreamTheora );
ResourceLoader::add_resource_format_loader(theora_stream_loader);
- ObjectTypeDB::register_type<VideoStreamTheora>();
+ ClassDB::register_class<VideoStreamTheora>();
}
void unregister_theora_types() {
diff --git a/modules/theora/video_stream_theora.h b/modules/theora/video_stream_theora.h
index afb8fc9860..bff9d2538d 100644
--- a/modules/theora/video_stream_theora.h
+++ b/modules/theora/video_stream_theora.h
@@ -43,7 +43,7 @@
class VideoStreamPlaybackTheora : public VideoStreamPlayback {
- OBJ_TYPE(VideoStreamPlaybackTheora, VideoStreamPlayback);
+ GDCLASS(VideoStreamPlaybackTheora, VideoStreamPlayback);
enum {
MAX_FRAMES = 4,
@@ -165,7 +165,7 @@ public:
class VideoStreamTheora : public VideoStream {
- OBJ_TYPE(VideoStreamTheora,VideoStream);
+ GDCLASS(VideoStreamTheora,VideoStream);
String file;
int audio_track;