Lines Matching refs:buffer
48 char* buffer = new char[length + 1]; in openTextFile() local
49 int num = AAsset_read(asset, buffer, length); in openTextFile()
53 delete[] buffer; in openTextFile()
56 buffer[length] = '\0'; in openTextFile()
57 return buffer; in openTextFile()
94 char* buffer = openTextFile(path); in loadMesh() local
95 if (buffer == NULL) { in loadMesh()
99 int numVertices = readInt(buffer + index); in loadMesh()
107 vertices[vIndex + 0] = readFloat(buffer + index); in loadMesh()
109 vertices[vIndex + 1] = readFloat(buffer + index); in loadMesh()
111 vertices[vIndex + 2] = readFloat(buffer + index); in loadMesh()
114 normals[vIndex + 0] = readFloat(buffer + index); in loadMesh()
116 normals[vIndex + 1] = readFloat(buffer + index); in loadMesh()
118 normals[vIndex + 2] = readFloat(buffer + index); in loadMesh()
122 texCoords[tIndex + 0] = readFloat(buffer + index); in loadMesh()
124 texCoords[tIndex + 1] = readFloat(buffer + index); in loadMesh()