Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
glVertexAttribPointer error
#10
(03-16-2018, 08:22 PM)Brian Beuken Wrote: yes, they will all be available, but the 1st few things I do very much encourage you to type, simply because you need to get used to typing and more important finding out your errors, I have found that cutting and pasting is not very useful for learning how to code.


Can I ask what your level of C++ knowledge is?

If its not declared in this scope, it means you have not included Myfiles.h in your file so that you can then create a MyFiles FileHander.

all C++ cpp files are built as stand alone components of the main project, they create an intermediate filetype called an obj file. The Linker then puts them all together.
To create something in a particular file, the compiler needs to know about it, so if you include the MyFiles.h your compiler knows what you are trying to do.

This is covered in the section LOADING GRAPHICS OR OTHER ASSETS

I'm a junior in C++. On my list is spending more time reading some books on C++.

But I followed what is written in the book. And I have a MyFiles.cpp which includes the line #include "MyFiles.h".

But is this MyFiles.cpp included in the project when I try to compile? How can I check that?
Reply


Messages In This Thread
glVertexAttribPointer error - by pahendriks - 03-16-2018, 07:16 PM
RE: glVertexAttribPointer error - by Brian Beuken - 03-16-2018, 07:29 PM
RE: glVertexAttribPointer error - by pahendriks - 03-16-2018, 07:44 PM
RE: glVertexAttribPointer error - by Brian Beuken - 03-16-2018, 07:46 PM
RE: glVertexAttribPointer error - by pahendriks - 03-16-2018, 07:51 PM
RE: glVertexAttribPointer error - by Brian Beuken - 03-16-2018, 07:45 PM
RE: glVertexAttribPointer error - by Brian Beuken - 03-16-2018, 07:57 PM
RE: glVertexAttribPointer error - by pahendriks - 03-16-2018, 08:14 PM
RE: glVertexAttribPointer error - by Brian Beuken - 03-16-2018, 08:22 PM
RE: glVertexAttribPointer error - by pahendriks - 03-16-2018, 08:32 PM
RE: glVertexAttribPointer error - by Brian Beuken - 03-16-2018, 08:41 PM
RE: glVertexAttribPointer error - by pahendriks - 03-16-2018, 09:08 PM
RE: glVertexAttribPointer error - by Brian Beuken - 03-16-2018, 09:18 PM
RE: glVertexAttribPointer error - by pahendriks - 03-16-2018, 09:28 PM
RE: glVertexAttribPointer error - by Brian Beuken - 03-16-2018, 09:45 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)