Jelajahi Sumber

Merge branch 'master' of github.com:taylor001/crown

Daniele Bartolini 10 tahun lalu
induk
melakukan
86f7818add
2 mengubah file dengan 16 tambahan dan 11 penghapusan
  1. 3 1
      .gitattributes
  2. 13 10
      src/device.h

+ 3 - 1
.gitattributes

@@ -22,4 +22,6 @@
 *.so  binary
 *.dll binary
 *.exe binary
-*.tga binary
+*.tga binary
+*.dds binary
+*.wav binary

+ 13 - 10
src/device.h

@@ -30,7 +30,7 @@ struct Device
 
 	void init();
 
-	/// Shutdowns the engine freeing all the allocated resources
+	/// Shutdowns the engine freeing all the allocated resources.
 	void shutdown();
 
 	/// Returns a string identifying what platform the engine is running on.
@@ -46,23 +46,22 @@ struct Device
 	/// the simulation).
 	bool is_running() const;
 
-	/// Return the number of frames rendered from the first
-	/// call to Device::start()
+	/// Return the number of frames rendered.
 	uint64_t frame_count() const;
 
-	/// Returns the time in seconds needed to render the last frame
+	/// Returns the time in seconds needed to render the last frame.
 	float last_delta_time() const;
 
-	/// Returns the time in seconds since the first call to start().
+	/// Returns the time in seconds since the the application started.
 	double time_since_start() const;
 
 	/// Quits the application.
 	void quit();
 
-	/// Pauses the engine
+	/// Pauses the engine.
 	void pause();
 
-	/// Unpauses the engine
+	/// Unpauses the engine.
 	void unpause();
 
 	void update_resolution(uint16_t width, uint16_t height)
@@ -78,16 +77,16 @@ struct Device
 		height = _height;
 	}
 
-	/// Updates all the subsystems
+	/// Updates all the subsystems.
 	void update();
 
-	/// Renders the given @a world from the point of view of the given @a camera.
+	/// Renders the given @a world from the point of view of @a camera.
 	void render_world(World* world, Camera* camera);
 
 	/// Creates a new world.
 	World* create_world();
 
-	/// Destroys the given @a world.
+	/// Destroys the world @a w.
 	void destroy_world(World& w);
 
 	/// Returns the resource package @a id.
@@ -99,9 +98,13 @@ struct Device
 	/// ResourcePackage::unload() first.
 	void destroy_resource_package(ResourcePackage& package);
 
+	/// Reloads the resource @a type @a name.
 	void reload(StringId64 type, StringId64 name);
 
+	/// Returns the resource manager.
 	ResourceManager* resource_manager();
+
+	/// Returns the lua environment.
 	LuaEnvironment* lua_environment();
 
 private: