mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
formatting
This commit is contained in:
parent
22ff3439e9
commit
18463122d5
@ -44,9 +44,9 @@ public:
|
|||||||
|
|
||||||
static GraphicsPipe* make_wglGraphicsPipe(const FactoryParams ¶ms);
|
static GraphicsPipe* make_wglGraphicsPipe(const FactoryParams ¶ms);
|
||||||
|
|
||||||
static TypeHandle get_class_type(void);
|
static TypeHandle get_class_type();
|
||||||
static void init_type(void);
|
static void init_type();
|
||||||
virtual TypeHandle get_type(void) const;
|
virtual TypeHandle get_type() const;
|
||||||
virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
|
virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -55,7 +55,7 @@ private:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
wglGraphicsPipe(void);
|
wglGraphicsPipe();
|
||||||
wglGraphicsPipe(const wglGraphicsPipe&);
|
wglGraphicsPipe(const wglGraphicsPipe&);
|
||||||
wglGraphicsPipe& operator=(const wglGraphicsPipe&);
|
wglGraphicsPipe& operator=(const wglGraphicsPipe&);
|
||||||
};
|
};
|
||||||
|
@ -62,24 +62,24 @@ public:
|
|||||||
wglGraphicsWindow(GraphicsPipe* pipe);
|
wglGraphicsWindow(GraphicsPipe* pipe);
|
||||||
wglGraphicsWindow(GraphicsPipe* pipe,
|
wglGraphicsWindow(GraphicsPipe* pipe,
|
||||||
const GraphicsWindow::Properties& props);
|
const GraphicsWindow::Properties& props);
|
||||||
virtual ~wglGraphicsWindow(void);
|
virtual ~wglGraphicsWindow();
|
||||||
|
|
||||||
virtual bool supports_update() const;
|
virtual bool supports_update() const;
|
||||||
virtual void update(void);
|
virtual void update();
|
||||||
virtual void end_frame( void );
|
virtual void end_frame();
|
||||||
virtual void swap( void );
|
virtual void swap();
|
||||||
virtual int get_depth_bitwidth(void);
|
virtual int get_depth_bitwidth();
|
||||||
|
|
||||||
virtual TypeHandle get_gsg_type() const;
|
virtual TypeHandle get_gsg_type() const;
|
||||||
static GraphicsWindow* make_wglGraphicsWindow(const FactoryParams ¶ms);
|
static GraphicsWindow* make_wglGraphicsWindow(const FactoryParams ¶ms);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void make_current(void);
|
virtual void make_current();
|
||||||
virtual void unmake_current(void);
|
virtual void unmake_current();
|
||||||
|
|
||||||
INLINE bool mouse_entry_enabled(void) { return _mouse_entry_enabled; }
|
INLINE bool mouse_entry_enabled() { return _mouse_entry_enabled; }
|
||||||
INLINE bool mouse_motion_enabled(void) { return _mouse_motion_enabled; }
|
INLINE bool mouse_motion_enabled() { return _mouse_motion_enabled; }
|
||||||
INLINE bool mouse_passive_motion_enabled(void) {
|
INLINE bool mouse_passive_motion_enabled() {
|
||||||
return _mouse_passive_motion_enabled;
|
return _mouse_passive_motion_enabled;
|
||||||
}
|
}
|
||||||
// void handle_reshape(int w, int h);
|
// void handle_reshape(int w, int h);
|
||||||
@ -93,17 +93,17 @@ protected:
|
|||||||
// PIXELFORMATDESCRIPTOR* try_for_visual(wglGraphicsPipe *pipe,
|
// PIXELFORMATDESCRIPTOR* try_for_visual(wglGraphicsPipe *pipe,
|
||||||
// int mask, int want_depth_bits = 1, int want_color_bits = 1);
|
// int mask, int want_depth_bits = 1, int want_color_bits = 1);
|
||||||
// static void get_config(PIXELFORMATDESCRIPTOR* visual, int attrib, int *value);
|
// static void get_config(PIXELFORMATDESCRIPTOR* visual, int attrib, int *value);
|
||||||
int choose_visual(void);
|
int choose_visual();
|
||||||
virtual void config( void );
|
virtual void config();
|
||||||
void setup_colormap(void);
|
void setup_colormap();
|
||||||
|
|
||||||
void enable_mouse_input(bool val);
|
void enable_mouse_input(bool val);
|
||||||
void enable_mouse_motion(bool val);
|
void enable_mouse_motion(bool val);
|
||||||
void enable_mouse_passive_motion(bool val);
|
void enable_mouse_passive_motion(bool val);
|
||||||
void enable_mouse_entry(bool val);
|
void enable_mouse_entry(bool val);
|
||||||
|
|
||||||
void handle_reshape(void);
|
void handle_reshape();
|
||||||
void process_events(void);
|
void process_events();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
HWND _mwindow;
|
HWND _mwindow;
|
||||||
@ -141,29 +141,29 @@ private:
|
|||||||
string _extensions_str;
|
string _extensions_str;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static TypeHandle get_class_type(void);
|
static TypeHandle get_class_type();
|
||||||
static void init_type(void);
|
static void init_type();
|
||||||
virtual TypeHandle get_type(void) const;
|
virtual TypeHandle get_type() const;
|
||||||
virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
|
virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
|
||||||
|
|
||||||
LONG WINAPI window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
|
LONG WINAPI window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
|
||||||
ButtonHandle lookup_key(WPARAM wparam) const;
|
ButtonHandle lookup_key(WPARAM wparam) const;
|
||||||
void DestroyMe(bool bAtExitFnCalled);
|
void DestroyMe(bool bAtExitFnCalled);
|
||||||
virtual void deactivate_window(void);
|
virtual void deactivate_window();
|
||||||
virtual void reactivate_window(void);
|
virtual void reactivate_window();
|
||||||
|
|
||||||
virtual void resize(unsigned int xsize,unsigned int ysize);
|
virtual void resize(unsigned int xsize,unsigned int ysize);
|
||||||
virtual unsigned int verify_window_sizes(unsigned int numsizes,unsigned int *dimen);
|
virtual unsigned int verify_window_sizes(unsigned int numsizes,unsigned int *dimen);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void do_close_window(void);
|
virtual void do_close_window();
|
||||||
void check_for_color_cursor_support(void);
|
void check_for_color_cursor_support();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static TypeHandle _type_handle;
|
static TypeHandle _type_handle;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern void set_global_parameters(void);
|
extern void set_global_parameters();
|
||||||
extern void restore_global_parameters(void);
|
extern void restore_global_parameters();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user