changeset 348:c3f32de11458

Constify.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 16 Oct 2012 00:39:53 +0300
parents f248defe7484
children 65b19a8cc84f
files dmq3d.c dmq3d.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dmq3d.c	Tue Oct 16 00:37:42 2012 +0300
+++ b/dmq3d.c	Tue Oct 16 00:39:53 2012 +0300
@@ -103,7 +103,7 @@
 }
 
 
-void dmDraw3DVectorSpriteModel(SDL_Surface *screen, DM3DVectorSpriteModel *model, DMVector *pos, DMMatrix *mat, SDL_Surface *fbmap, Uint32 lcol)
+void dmDraw3DVectorSpriteModel(SDL_Surface *screen, const DM3DVectorSpriteModel *model, const DMVector *pos, const DMMatrix *mat, SDL_Surface *fbmap, const Uint32 lcol)
 {
     int i;
     int cx = screen->w / 2, cy = screen->h / 2;
--- a/dmq3d.h	Tue Oct 16 00:37:42 2012 +0300
+++ b/dmq3d.h	Tue Oct 16 00:39:53 2012 +0300
@@ -59,7 +59,7 @@
 int dmRead3DVectorSpriteModel(DMResource *f, DM3DVectorSpriteModel **model);
 void dmFree3DVectorSpriteModel(DM3DVectorSpriteModel *model);
 
-void dmDraw3DVectorSpriteModel(SDL_Surface *screen, DM3DVectorSpriteModel *model, DMVector *pos, DMMatrix *mat, SDL_Surface *fbmap, Uint32 lcol);
+void dmDraw3DVectorSpriteModel(SDL_Surface *screen, const DM3DVectorSpriteModel *model, const DMVector *pos, const DMMatrix *mat, SDL_Surface *fbmap, const Uint32 lcol);
 
 
 #ifdef __cplusplus