Skip to content

Commit

Permalink
ray4: rename ImageHeader struct to include version
Browse files Browse the repository at this point in the history
  • Loading branch information
hollasch committed Nov 2, 2024
1 parent a1c49ef commit 2bc709b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ray4/src/r4_image.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@

// Structure Definitions

struct ImageHeader {
struct ImageHeader_1 {
unsigned long magic; // Magic Number = R4_IMAGE_ID
unsigned char version; // Image File Version Number
unsigned char version; // Image File Version Number = 1
unsigned char bitsperpixel; // Number of Bits per Pixel
unsigned short aspect[3]; // Aspect Ratios [X,Y,Z]
unsigned short start[3]; // Starting Image Pixels for [X,Y,Z]
Expand Down
2 changes: 2 additions & 0 deletions ray4/src/r4_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
#include "ray4.h"
#include "r4_image.h"

using ImageHeader = ImageHeader_1;


//__________________________________________________________________________________________________
// Usage Messages
Expand Down

0 comments on commit 2bc709b

Please sign in to comment.