14 #ifndef IPHONEGRAPHICSWINDOW_H 15 #define IPHONEGRAPHICSWINDOW_H 23 #import <UIKit/UIKit.h> 31 const std::string &name,
49 void touches_began(NSSet *touches, UIEvent *event);
50 void touches_moved(NSSet *touches, UIEvent *event);
51 void touches_ended(NSSet *touches, UIEvent *event);
52 void touches_cancelled(NSSet *touches, UIEvent *event);
54 CGPoint get_average_location(NSSet *touches);
58 virtual void close_window();
59 virtual bool open_window();
62 void set_pointer_in_window(
int x,
int y);
63 void set_pointer_out_of_window();
64 void handle_button_delta(
int num_touches);
74 static void init_type() {
75 GraphicsWindow::init_type();
77 GraphicsWindow::get_class_type());
80 return get_class_type();
82 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
virtual void end_frame(FrameMode mode, Thread *current_thread)
This function will be called within the draw thread after rendering is completed for a given frame.
virtual void end_flip()
This function will be called within the draw thread after begin_flip() has been called on all windows...
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A window, fullscreen or on a desktop, into which a graphics device sends its output for interactive d...
virtual void process_events()
Do whatever processing is necessary to ensure that the window responds to user events.
virtual void begin_flip()
This function will be called within the draw thread after end_frame() has been called on all windows,...
virtual bool begin_frame(FrameMode mode, Thread *current_thread)
This function will be called within the draw thread before beginning rendering for a given frame.
A container for the various kinds of properties we might ask to have on a graphics window before we o...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An object to create GraphicsOutputs that share a particular 3-D API.
This is a base class for the various different classes that represent the result of a frame of render...
An interface to the osx/ system for managing GL windows under X.
A thread; that is, a lightweight process.
Encapsulates all the communication with a particular instance of a given rendering backend.
This class is the main interface to controlling the render process.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...
virtual void clear_pipe()
Sets the window's _pipe pointer to NULL; this is generally called only as a precursor to deleting the...
virtual void set_properties_now(WindowProperties &properties)
Applies the requested set of properties to the window, if possible, for instance to request a change ...