Java doesn't allow abstract static functions, so I'm left with defining non-abstract static functions. As a result, the above function doesn't work, because i.getId() returns the Parent object's id, not that of the child object.
Are there any ways around this, or what would be a better way of dealing with it?
pass the manager to each class as it is created (UGLY)
create the manager as a singleton
Every post I see says to avoid singletons, but is this a situation that breaks the rule, or is there a better solution?
Also, the graphic data above is just one type of data; realistically there will be many data types. To avoid having a whole mess of singletons, I would create a central data manager that has a factory class for each type:
I know that in directx, the 3d stereo works by shifting the camera and rendering two different images. I was wondering if there is any way to write directly to the buffer, to display different textures to each eye. This would be useful for having 3d background images, or in my case, writing a 3d image viewer.
I know this can be done in opengl by accessing the quad buffer, but I haven't been able to find any documentation for directx. If it helps any, I'm working with nvidia cards.
I'm getting the following warning when I compile my program:
ld: warning: directory '/Users/alex/Library/Frameworks' following -F not found
Does anybody know what causes this error, and ideally how to fix it?
I'm pretty sure that it started after I updated xCode via the automatic update (xCode 3.2.2).
Normally I wouldn't worry about it too much, but I'm having a problem rendering in opengl (via SDL), and I want to make sure that it's not because of some linking error.