I'm working on the graphics code for a game library in Java. I made package called com.engine.graphics
. In this package, I have a lower-level class called VertexArrayObject
. This class is used by "client-level" classes that clients will use; however, I do not want to give clients access to VertexArrayObject
, since it would only serve to complicate their understanding of my library. Thus, I gave VertexArrayObject
the default access specifier; that way, only classes within com.engine.graphics
have access to it, and also tells clients that they do not need to know what it is.
Just like there is this standard convention for Java, I figured there must be some standard convention for C++ for dealing with this; however, my internet searches have yielded no results.
So, my question is, what is the convention? And if there isn't one, what is the best approach?