소스 검색

comment on 'align' values

Nicolas Cannasse 13 년 전
부모
커밋
c18972b46b
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      h3d/impl/MemoryManager.hx

+ 5 - 0
h3d/impl/MemoryManager.hx

@@ -211,6 +211,11 @@ class MemoryManager {
 		return size;
 	}
 
+	/**
+		Allocate a vertex buffer.
+		Align represent the number of vertex that represent a single primitive : 3 for triangles, 4 for quads
+		You can use 0 to allocate your own buffer but in that case you can't use pre-allocated indexes/quadIndexes
+	 **/
 	public function alloc( nvect, stride, align ) {
 		var b = buffers[stride], free = null;
 		while( b != null ) {