mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
fix some more build issues
This commit is contained in:
parent
18699ac31f
commit
f520917426
@ -13,6 +13,7 @@
|
|||||||
#define SOURCES \
|
#define SOURCES \
|
||||||
standardMunger.I standardMunger.h \
|
standardMunger.I standardMunger.h \
|
||||||
config_display.h \
|
config_display.h \
|
||||||
|
customGraphicsWindowProc.h \
|
||||||
drawableRegion.I drawableRegion.h \
|
drawableRegion.I drawableRegion.h \
|
||||||
displayRegion.I displayRegion.h \
|
displayRegion.I displayRegion.h \
|
||||||
displayRegionCullCallbackData.I displayRegionCullCallbackData.h \
|
displayRegionCullCallbackData.I displayRegionCullCallbackData.h \
|
||||||
@ -21,6 +22,7 @@
|
|||||||
graphicsEngine.I graphicsEngine.h \
|
graphicsEngine.I graphicsEngine.h \
|
||||||
graphicsOutput.I graphicsOutput.h \
|
graphicsOutput.I graphicsOutput.h \
|
||||||
graphicsBuffer.I graphicsBuffer.h \
|
graphicsBuffer.I graphicsBuffer.h \
|
||||||
|
graphicsDevice.h graphicsDevice.I \
|
||||||
graphicsPipe.I graphicsPipe.h \
|
graphicsPipe.I graphicsPipe.h \
|
||||||
graphicsPipeSelection.I graphicsPipeSelection.h \
|
graphicsPipeSelection.I graphicsPipeSelection.h \
|
||||||
graphicsStateGuardian.I \
|
graphicsStateGuardian.I \
|
||||||
@ -29,7 +31,7 @@
|
|||||||
graphicsWindow.I graphicsWindow.h \
|
graphicsWindow.I graphicsWindow.h \
|
||||||
graphicsWindowInputDevice.I \
|
graphicsWindowInputDevice.I \
|
||||||
graphicsWindowInputDevice.h \
|
graphicsWindowInputDevice.h \
|
||||||
graphicsDevice.h graphicsDevice.I \
|
graphicsWindowProc.h \
|
||||||
lru.h \
|
lru.h \
|
||||||
nativeWindowHandle.I nativeWindowHandle.h \
|
nativeWindowHandle.I nativeWindowHandle.h \
|
||||||
parasiteBuffer.I parasiteBuffer.h \
|
parasiteBuffer.I parasiteBuffer.h \
|
||||||
@ -41,15 +43,20 @@
|
|||||||
displaySearchParameters.h \
|
displaySearchParameters.h \
|
||||||
displayInformation.h \
|
displayInformation.h \
|
||||||
subprocessWindow.h subprocessWindow.I \
|
subprocessWindow.h subprocessWindow.I \
|
||||||
$[if $[OSX_PLATFORM], subprocessWindowBuffer.h subprocessWindowBuffer.I]
|
$[if $[OSX_PLATFORM], subprocessWindowBuffer.h subprocessWindowBuffer.I] \
|
||||||
|
touchInfo.h
|
||||||
|
|
||||||
|
|
||||||
#define INCLUDED_SOURCES \
|
#define INCLUDED_SOURCES \
|
||||||
standardMunger.cxx \
|
standardMunger.cxx \
|
||||||
config_display.cxx \
|
config_display.cxx \
|
||||||
|
customGraphicsWindowProc.cxx \
|
||||||
drawableRegion.cxx \
|
drawableRegion.cxx \
|
||||||
displayRegion.cxx \
|
displayRegion.cxx \
|
||||||
displayRegionCullCallbackData.cxx \
|
displayRegionCullCallbackData.cxx \
|
||||||
displayRegionDrawCallbackData.cxx \
|
displayRegionDrawCallbackData.cxx \
|
||||||
|
displaySearchParameters.cxx \
|
||||||
|
displayInformation.cxx \
|
||||||
frameBufferProperties.cxx \
|
frameBufferProperties.cxx \
|
||||||
graphicsEngine.cxx \
|
graphicsEngine.cxx \
|
||||||
graphicsOutput.cxx \
|
graphicsOutput.cxx \
|
||||||
@ -59,17 +66,17 @@
|
|||||||
graphicsStateGuardian.cxx \
|
graphicsStateGuardian.cxx \
|
||||||
graphicsThreadingModel.cxx \
|
graphicsThreadingModel.cxx \
|
||||||
graphicsWindow.cxx graphicsWindowInputDevice.cxx \
|
graphicsWindow.cxx graphicsWindowInputDevice.cxx \
|
||||||
|
graphicsWindowProc.cxx \
|
||||||
graphicsDevice.cxx \
|
graphicsDevice.cxx \
|
||||||
|
lru.cxx \
|
||||||
nativeWindowHandle.cxx \
|
nativeWindowHandle.cxx \
|
||||||
parasiteBuffer.cxx \
|
parasiteBuffer.cxx \
|
||||||
windowHandle.cxx \
|
windowHandle.cxx \
|
||||||
windowProperties.cxx \
|
windowProperties.cxx \
|
||||||
lru.cxx \
|
|
||||||
stencilRenderStates.cxx \
|
stencilRenderStates.cxx \
|
||||||
stereoDisplayRegion.cxx \
|
stereoDisplayRegion.cxx \
|
||||||
displaySearchParameters.cxx \
|
subprocessWindow.cxx \
|
||||||
displayInformation.cxx \
|
touchInfo.cxx
|
||||||
subprocessWindow.cxx
|
|
||||||
|
|
||||||
#define INSTALL_HEADERS \
|
#define INSTALL_HEADERS \
|
||||||
standardMunger.I standardMunger.h \
|
standardMunger.I standardMunger.h \
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
#ifndef CUSTOMGRAPHICSWINDOWPROC_H
|
#ifndef CUSTOMGRAPHICSWINDOWPROC_H
|
||||||
#define CUSTOMGRAPHICSWINDOWPROC_H
|
#define CUSTOMGRAPHICSWINDOWPROC_H
|
||||||
|
|
||||||
|
#include "pandabase.h"
|
||||||
#include "graphicsWindowProc.h"
|
#include "graphicsWindowProc.h"
|
||||||
|
|
||||||
class CustomGraphicsWindowProc: public GraphicsWindowProc{
|
class CustomGraphicsWindowProc: public GraphicsWindowProc{
|
||||||
@ -34,4 +35,4 @@ private:
|
|||||||
PyObject* _name;
|
PyObject* _name;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //CUSTOMGRAPHICSWINDOWPROC_H
|
#endif //CUSTOMGRAPHICSWINDOWPROC_H
|
||||||
|
@ -1564,7 +1564,7 @@ process_events(const GraphicsEngine::Windows &wlist, Thread *current_thread) {
|
|||||||
// We're not using a vector iterator here, since it's possible that
|
// We're not using a vector iterator here, since it's possible that
|
||||||
// the window list changes in an event, which would invalidate the
|
// the window list changes in an event, which would invalidate the
|
||||||
// iterator and cause a crash.
|
// iterator and cause a crash.
|
||||||
for (int i = 0; i < wlist.size(); ++i) {
|
for (size_t i = 0; i < wlist.size(); ++i) {
|
||||||
wlist[i]->process_events();
|
wlist[i]->process_events();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,40 +15,40 @@
|
|||||||
#include "touchInfo.h"
|
#include "touchInfo.h"
|
||||||
|
|
||||||
TouchInfo::TouchInfo(){
|
TouchInfo::TouchInfo(){
|
||||||
_x = 0;
|
_x = 0;
|
||||||
_y = 0;
|
_y = 0;
|
||||||
_id = 0;
|
_id = 0;
|
||||||
_flags = 0;
|
_flags = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
LONG TouchInfo::get_x(){
|
int TouchInfo::get_x(){
|
||||||
return _x;
|
return _x;
|
||||||
}
|
}
|
||||||
|
|
||||||
LONG TouchInfo::get_y(){
|
int TouchInfo::get_y(){
|
||||||
return _y;
|
return _y;
|
||||||
}
|
}
|
||||||
|
|
||||||
DWORD TouchInfo::get_id(){
|
int TouchInfo::get_id(){
|
||||||
return _id;
|
return _id;
|
||||||
}
|
}
|
||||||
|
|
||||||
DWORD TouchInfo::get_flags(){
|
int TouchInfo::get_flags(){
|
||||||
return _flags;
|
return _flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TouchInfo::set_x(LONG x){
|
void TouchInfo::set_x(int x){
|
||||||
_x = x;
|
_x = x;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TouchInfo::set_y(LONG y){
|
void TouchInfo::set_y(int y){
|
||||||
_y = y;
|
_y = y;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TouchInfo::set_id(DWORD id){
|
void TouchInfo::set_id(int id){
|
||||||
_id = id;
|
_id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TouchInfo::set_flags(DWORD flags){
|
void TouchInfo::set_flags(int flags){
|
||||||
_flags = flags;
|
_flags = flags;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
#ifndef TOUCHINFO_H
|
#ifndef TOUCHINFO_H
|
||||||
#define TOUCHINFO_H
|
#define TOUCHINFO_H
|
||||||
|
|
||||||
|
#include "pandabase.h"
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Class : TouchInfo
|
// Class : TouchInfo
|
||||||
// Description : Stores information for a single touch event.
|
// Description : Stores information for a single touch event.
|
||||||
@ -25,32 +27,32 @@ PUBLISHED:
|
|||||||
enum TouchInfoFlags
|
enum TouchInfoFlags
|
||||||
{
|
{
|
||||||
TIF_move = 0x0001,
|
TIF_move = 0x0001,
|
||||||
TIF_down = 0x0002,
|
TIF_down = 0x0002,
|
||||||
TIF_UP = 0x0004,
|
TIF_UP = 0x0004,
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
TouchInfo();
|
TouchInfo();
|
||||||
|
|
||||||
void set_x(LONG x);
|
void set_x(int x);
|
||||||
void set_y(LONG y);
|
void set_y(int y);
|
||||||
void set_id(DWORD id);
|
void set_id(int id);
|
||||||
void set_flags(DWORD flags);
|
void set_flags(int flags);
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
|
|
||||||
LONG get_x();
|
int get_x();
|
||||||
LONG get_y();
|
int get_y();
|
||||||
DWORD get_id();
|
int get_id();
|
||||||
DWORD get_flags();
|
int get_flags();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
LONG _x;
|
int _x;
|
||||||
LONG _y;
|
int _y;
|
||||||
DWORD _id;
|
int _id;
|
||||||
DWORD _flags;
|
int _flags;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user