소스 검색

make const (#2348)

* make const

* make const
pull/2352/head
Antonis Geralis 2 년 전
committed by GitHub
부모
커밋
68bad6986d
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +1
    -1
      src/raylib.h
  2. +1
    -1
      src/rmodels.c

+ 1
- 1
src/raylib.h 파일 보기

@ -1426,7 +1426,7 @@ RLAPI void UploadMesh(Mesh *mesh, bool dynamic);
RLAPI void UpdateMeshBuffer(Mesh mesh, int index, void *data, int dataSize, int offset); // Update mesh vertex data in GPU for a specific buffer index
RLAPI void UnloadMesh(Mesh mesh); // Unload mesh data from CPU and GPU
RLAPI void DrawMesh(Mesh mesh, Material material, Matrix transform); // Draw a 3d mesh with material and transform
RLAPI void DrawMeshInstanced(Mesh mesh, Material material, Matrix *transforms, int instances); // Draw multiple mesh instances with material and different transforms
RLAPI void DrawMeshInstanced(Mesh mesh, Material material, k">const Matrix *transforms, int instances); // Draw multiple mesh instances with material and different transforms
RLAPI bool ExportMesh(Mesh mesh, const char *fileName); // Export mesh data to file, returns true on success
RLAPI BoundingBox GetMeshBoundingBox(Mesh mesh); // Compute mesh bounding box limits
RLAPI void GenMeshTangents(Mesh *mesh); // Compute mesh tangents

+ 1
- 1
src/rmodels.c 파일 보기

@ -1404,7 +1404,7 @@ void DrawMesh(Mesh mesh, Material material, Matrix transform)
}
// Draw multiple mesh instances with material and different transforms
void DrawMeshInstanced(Mesh mesh, Material material, Matrix *transforms, int instances)
void DrawMeshInstanced(Mesh mesh, Material material, k">const Matrix *transforms, int instances)
{
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
// Instancing required variables

불러오는 중...
취소
저장