Looking for a little error support
Posted: April 19th, 2019, 4:53 pm
Hi, I've been following along with Chili's intermediate tutorial. I started his text drawing video but since he didn't write out a lot of the code during the video I thought I'd snatch it up from github. A lot of the methods had changed since that video however, so I tried amending the missing draw methods in the Graphics class.
I then very stupidly copy pasted his entire graphics.h and .cpp into my project, only to realise a lot of the methods were missing, like PutPixel, GetPixel, DrawSprite and BeginFrame.
Anyway, I'm quite capable of backing up and rewatching those videos or even winging it.
Since adding the SpriteEffects class I've been getting errors in my graphics class and can't for the life of me figure out why. I assumed it was something to do with looping dependencies so I removed the prototypes for the DrawSprite method using templates seen at the bottom of the graphics header.
So I removed those and made it so the draw method only works with the Chroma SpecialEffect.
Anyway TL;DR Help me figure out why I have this error:
syntax error: identifier 'Graphics' (compiling source file <every source file>)
'gfx': undeclared identifier (compiling source file <every source file>)
Here's a download link (dropbox) to a zip containing the project: https://www.dropbox.com/s/l3tgjzbpxcagd ... e.zip?dl=0
I then very stupidly copy pasted his entire graphics.h and .cpp into my project, only to realise a lot of the methods were missing, like PutPixel, GetPixel, DrawSprite and BeginFrame.
Anyway, I'm quite capable of backing up and rewatching those videos or even winging it.
Since adding the SpriteEffects class I've been getting errors in my graphics class and can't for the life of me figure out why. I assumed it was something to do with looping dependencies so I removed the prototypes for the DrawSprite method using templates seen at the bottom of the graphics header.
So I removed those and made it so the draw method only works with the Chroma SpecialEffect.
Anyway TL;DR Help me figure out why I have this error:
syntax error: identifier 'Graphics' (compiling source file <every source file>)
'gfx': undeclared identifier (compiling source file <every source file>)
Here's a download link (dropbox) to a zip containing the project: https://www.dropbox.com/s/l3tgjzbpxcagd ... e.zip?dl=0