Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 27 Jan 2008
Offline Last Active Jun 14 2012 12:07 AM

Topics I've Started

Android + OpenGL ES...double buffered? threaded? gameloop?

30 April 2012 - 05:11 PM

3 questions...but first, here's my setup

My activity class:
...useless stuff...
import android.opengl.GLSurfaceView;

public class MyApp extends Activity
	private GLSurfaceView mSurfaceView;
	public void onCreate(Bundle savedInstanceState)
		requestWindowFeature(Window.FEATURE_NO_TITLE); //fullscreen
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		glSurfaceView = new GLSurfaceView(this);
		glSurfaceView.setRenderer(new MyRenderer());

My Renderer class
...unimportant stuff...
import android.opengl.GLSurfaceView.Renderer;
public class MyRenderer implements Renderer
	public void onDrawFrame(GL10 gl)
		...iterate over draw objects and call .draw() on them...
...more unimportant stuff...

1) Is OpenGL ES double buffered by default?
Right now, I've created a Renderer class that extends GLSurfaceView.Renderer. From that, I've got an override for onDrawFrame...like you can see above. Is this already double buffered? I've done a little bit of OpenGL coding for PC and I remember having to specifically tell it to swap buffers...

2) Given my current setup, is the renderer already on its own thread? Is that something handled by OpenGL ES (or the GLViewPort class)?

3) Right now I'm doing everything inside of the onDrawScene(GL10 gl) function. Is there a better way of creating a game loop? Seems like (assuming rendering is currently on its own thread), onDrawScene should just iterate of my drawable objects and draw them, but I should probably have a loop in another thread somewhere polling input, updating drawable object positions, etc. Any thoughts?

Thanks, in advance, for the help!

[Edit: spelling error]

Objective C book

21 July 2011 - 04:52 PM

Looking for recommendations on books (physical, actual books...not web sites please) that are based around Objective C programming for the already experience C/C++/C# programmer. All of the books I've found on Amazon are for people who have never programmed before. I have programmed for a number of years, in the gaming industry. I just want a nice book to use as reference and to get me started with Objective C goodness.

Any suggestions?


book for experience programmer getting into stackless python

15 February 2011 - 07:57 PM

Just to clarify, I don't want websites, python docs, or tutorials. I can find all of that on my own. I'm a more-than-capable googler. :)

What I'm interested in is a book, or books, with good coding strategies and general knowledge relating directly to stackless python. I've worked in the gaming industry as a programmer for long enough to understand basic coding practices and I'm very familiar with C++ and C#. The company I work for is about to switch over to stackless python for certain things, and I want to learn as much as I can. I'm old school and like real actual books.

I'm definitely not looking for a book that starts with "How to write a 'Hello World!' application."

Any help would be greatly appreciated! Thanks.

intermediate worker server?

29 November 2009 - 01:14 PM

I was hoping someone could give me some insight. I'd like to create some sort of an intermediate server which i could connect to and make calls to. This server should be able to make sql querys and compute data and return some sort of result. I was wanting this so that I could have a cross-platform solution to interacting with a database for a game or program where online data would need to be stored. I don't want to have to implement all of these calculations in every version of the game client when the server should be doing them anyway. I'm assuming I'll need to call the functions with an HTTP call or something like that, but I don't really know. Is there something out there like this? Or a tutorial on how to create your own? for windows or linux computer...doesn't matter to me. thanks!

[.net] file progress popup?

17 October 2009 - 03:04 PM

I'm looking for a simple way to have a file progress window pop up. One of the kind where it shows a file flying from one file to another or something like that. The idea is that I have a function that is going to take some time to execute because it has to access a sql database and run a few querys on that at the beginning of the function i'd like to be able to pop up a progress window that animates, showing that something is going on. and then at the end of the function when it's all done i would like to close the dialog thanks in advance!