Przeglądaj źródła

Merge branch 'master' of github.com:bkaradzic/bgfx

Branimir Karadžić 7 lat temu
rodzic
commit
d37e28ccb2
2 zmienionych plików z 21 dodań i 13 usunięć
  1. 9 2
      README.md
  2. 12 11
      include/bgfx/bgfx.h

+ 9 - 2
README.md

@@ -79,8 +79,8 @@ Languages:
 [Tools](https://bkaradzic.github.io/bgfx/tools.html)
 ----------------------------------------------------
 
-Who is using it?
-----------------
+Who is using it? #madewithbgfx
+------------------------------
 
 ## Airmech
 
@@ -284,6 +284,13 @@ target="_blank"><img src="http://img.youtube.com/vi/nY8y_dFolKo/0.jpg"
 alt="WonderWorlds"
 width="640" height="480" border="0" /></a>
 
+## mud
+
+https://hugoam.github.io/mud-io/ - an all-purpose c++ app prototyping library,
+focused towards live graphical apps and games.
+
+![mud](https://raw.githubusercontent.com/hugoam/mud-io/master/media/14_live_gfx.png)
+
 [License (BSD 2-clause)](https://bkaradzic.github.io/bgfx/license.html)
 -----------------------------------------------------------------------
 

+ 12 - 11
include/bgfx/bgfx.h

@@ -298,19 +298,20 @@ namespace bgfx
 		};
 	};
 
+	/// Primitive topology.
 	///
 	/// @attention C99 equivalent is `bgfx_topology_t`.
 	///
 	struct Topology
 	{
-		///
+		/// Primitive topology:
 		enum Enum
 		{
-			TriList,   //!<
-			TriStrip,  //!<
-			LineList,  //!<
-			LineStrip, //!<
-			PointList, //!<
+			TriList,   //!< Triangle list.
+			TriStrip,  //!< Triangle strip.
+			LineList,  //!< Line list.
+			LineStrip, //!< Line strip.
+			PointList, //!< Point list.
 
 			Count
 		};
@@ -918,12 +919,12 @@ namespace bgfx
 		uint16_t numVertexBuffers;          //!< Number of used vertex buffers.
 		uint16_t numVertexDecls;            //!< Number of used vertex declarations.
 
-		int64_t textureMemoryUsed;          //!<
-		int64_t rtMemoryUsed;               //!<
-		int32_t transientVbUsed;            //!<
-		int32_t transientIbUsed;            //!<
+		int64_t textureMemoryUsed;          //!< Estimate of texture memory used.
+		int64_t rtMemoryUsed;               //!< Estimate of render target memory used.
+		int32_t transientVbUsed;            //!< Amount of transient vertex buffer used.
+		int32_t transientIbUsed;            //!< Amount of transient index buffer used.
 
-		uint32_t numPrims[Topology::Count]; //!<
+		uint32_t numPrims[Topology::Count]; //!< Number of primitives rendered.
 
 		int64_t gpuMemoryMax;               //!< Maximum available GPU memory for application.
 		int64_t gpuMemoryUsed;              //!< Amount of GPU memory used by the application.