fix os x vs windows load

This commit is contained in:
Dave Schuyler 2003-09-29 23:09:17 +00:00
parent 89ac40c59b
commit 3da47160ef
2 changed files with 9 additions and 12 deletions

View File

@ -213,8 +213,7 @@ class ShowBase(DirectObject.DirectObject):
self.restart()
def exitfunc(self):
"""exitfunc(self)
"""
This should be assigned to sys.exitfunc to be called just
before Python shutdown. It guarantees that the Panda window
is closed cleanly, so that we free system resources, restore
@ -236,7 +235,7 @@ class ShowBase(DirectObject.DirectObject):
self.oldexitfunc()
def makeDefaultPipe(self):
"""makeDefaultPipe(self)
"""
Creates the default GraphicsPipe, which will be used to make
windows unless otherwise specified.
"""
@ -250,7 +249,7 @@ class ShowBase(DirectObject.DirectObject):
self.pipeList.append(self.pipe)
def makeAllPipes(self):
"""makeAllPipes(self)
"""
Creates all GraphicsPipes that the system knows about and fill up
self.pipeList with them.
"""
@ -285,11 +284,10 @@ class ShowBase(DirectObject.DirectObject):
self.notify.info("Could not make graphics pipe %s." % (pipeType.getName()))
def openWindow(self):
"""openWindow(self)
"""
Invokes ChanConfig to create a window and adds it to the list
of windows that are to be updated every frame.
"""
if self.pipe == None:
self.makeDefaultPipe()
@ -316,7 +314,7 @@ class ShowBase(DirectObject.DirectObject):
return win
def closeWindow(self, win):
"""closeWindow(self, win)
"""
Closes the indicated window and removes it from the list of
windows. If it is the main window, clears the main window
pointer to None.
@ -352,7 +350,7 @@ class ShowBase(DirectObject.DirectObject):
self.win = None
def openMainWindow(self):
"""openMainWindow(self)
"""
Creates the initial, main window for the application, and sets
up the mouse and render2d structures appropriately for it. If
this method is called a second time, it will close the
@ -401,8 +399,7 @@ class ShowBase(DirectObject.DirectObject):
return success
def setupRender(self):
"""setupRender(self)
"""
Creates the render scene graph, the primary scene graph for
rendering 3-d geometry.
"""

View File

@ -18,7 +18,7 @@
#include "load_dso.h"
#if 1 || defined(PENV_OSX)
#if defined(PENV_OSX)
// These are not used on Macintosh OS X
void *
@ -33,7 +33,7 @@ unload_dso(void *dso_handle) {
string
load_dso_error() {
const char *message="load_dso_error() unsupported on PS2";
const char *message="load_dso_error() unsupported on OS X";
return message;
}