15 #ifndef IPHONEGRAPHICSWINDOW_H 16 #define IPHONEGRAPHICSWINDOW_H 18 #include "pandabase.h" 19 #include "graphicsWindow.h" 20 #include "buttonHandle.h" 24 #import <UIKit/UIKit.h> 52 void touches_began(NSSet *touches, UIEvent *event);
53 void touches_moved(NSSet *touches, UIEvent *event);
54 void touches_ended(NSSet *touches, UIEvent *event);
55 void touches_cancelled(NSSet *touches, UIEvent *event);
57 CGPoint get_average_location(NSSet *touches);
61 virtual void close_window();
62 virtual bool open_window();
65 void set_pointer_in_window(
int x,
int y);
66 void set_pointer_out_of_window();
67 void handle_button_delta(
int num_touches);
77 static void init_type() {
78 GraphicsWindow::init_type();
79 register_type(_type_handle,
"IPhoneGraphicsWindow",
80 GraphicsWindow::get_class_type());
83 return get_class_type();
85 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
91 #include "iPhoneGraphicsWindow.I" 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...
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...
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.
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 ...