Search results

  1. T

    3D modeling & OpenGL

    Save it as a .obj file and use one of the many pieces of free code out there to load the .obj file. This is probably the best way. One free Windows program (3DExplorer?) can also convert from almost any given format directly to OpenGL source code. But it is probably a good idea to keep the...
  2. T

    I need a timer (stopwatch)

    Well, time returns a long of the number of milliseconds since startup, so you can subtract the two longs and divide by 1000 to get seconds, including fractional part. To use this in your code, long starttime = system("time"); // .... do some stuff long endtime = system("time"); long...
  3. T

    Recompiling UNIX and Linux software for OSX

    It really depends on the particular program. For very simple programs, or programs which have been designed with platform-independence in mind, the compile path should be unchanged and the makefile should just work -- type "make". For more complicated programs, you need to first compile and...
  4. T

    Brand new to java

    Try a simpler program first: public class HelloWorld { static void main(String[] args) { System.out.println("hello world"); } }
  5. T

    How do I program a screen saver for OS X?

    Well, I don't know what "fully optimized" means (can code ever be fully optimized!?) but I hope you're right. The old quartz was very slow at blitting, so you were much better off putting your images into textures and using opengl. If the new quartz does this automatically, then that would be...
  6. T

    I need a timer (stopwatch)

    Then you don't want a timer. Just remember the start time. When you want to know the elapsed time, then look up the current time. Then subtract them to get the difference. NSDate objects can do this automatically, although you should check that they give subsecond precision.
  7. T

    calling driver developers for 3dfx cards

    What is the motivation for this? You aren't going to be able to sell the drivers. These cards are old and few people have them. For the cost of your time, you'd be better off buying a new graphics card. If you are seriously doing this, then I wish you luck.
  8. T

    How do I program a screen saver for OS X?

    There are screensavers with source code from the author of Fire. You'll probably need to learn OpenGL, since it is much faster than plain Quartz (10-20x as fast). Unless this has changed with recent OS updates. Anybody know?
  9. T

    A Developer already released Virtual Desktops!

    You should contact the other developer and buy him out. Competition be d***ed. Then double your prices. Seriously, he's stealing your market share.
  10. T

    port some opengl screensavers

    I just saw over at http://www.opengl.org that some nice screensaver code has been released. Anybody interested in porting it over to Mac? (There is some sample code out there by the author of Fire if you need help getting started.) Link: http://www.reallyslick.com/code.html Here's a sample:
  11. T

    Compiling Java Source Code

    Use the javac command from the Terminal. You might need to set the -classpath option. The command is well-documented, somewhere in the Dev Tools, or look online java.sun.com/docs
  12. T

    Newbie Needs Help

    The ID3 tag is stored in the last 128 bytes of the MP3 file. It starts with 3 bytes header (always "TAG" so you can distinguish between tagged and untagged MP3s), then 30 bytes each for the song title, artist, and album, 4 bytes for the year, 30 bytes comment (depending on the version, the last...
  13. T

    Why? Why? [ ] Why? Why not . ???

    It can be nice. The problem, sometimes, is that with sensible method names, you need to remember not just what to put where (the order of the arguments) but also what the names of the arguments are.
  14. T

    Windows, C, Java & X

    Apple's free developer tools includes a C compiler. If you just write a straight C program, without using nonstandard libraries, there will not be a GUI; rather you can run the program from the Terminal. The GUI libraries are platform specific but you shouldn't have to worry about them.
  15. T

    simple opengl program

    This usually means that the graphics card, or memory bus, is limiting the performance of your app, not the CPU. So buying a new graphics card will give you a better framerate, and use more CPU time, but buying a new CPU will give you the same framerate. (If it was taking closer to 100% of the...
  16. T

    D Programming Language

    Bitwise operations have nothing to do with C; they're in Java too. Ditto with pointers. ??
  17. T

    quartz 2d, carbon, and c++

    Use QuickDraw to get the window context and convert it to a Quartz context as per the example in the Quartz manual.
  18. T

    Compile in C

    You need to download the developer tools. Go to the folder in the Terminal and type make. Or if it's a project builder bundle, open it in project builder and press build.
  19. T

    iTunes plug-in

    Visualizers only, sorry. While visualizers can be fully functional (they can spawn their own windows, they can respond to events, and everything just like a regular application), they only receive information from iTunes and do not send anything back. (Drawing is no exception. Visualizers are...
  20. T

    Menubar icons HOWTO

    This hides the dock icon and the application's menu bar. So you basically get a floating window. Make it float in front of all windows (see NSWindow) including the menu-bar, make it semi-transparent and hide the window title, and you've got an easy menu-bar widget. Unfortunately, this...
Back
Top