This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
void main(args[]){ | |
MonoGame.ConvertFromXNA(this); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/****************************************************************************/ | |
/* PREP PASS */ | |
/****************************************************************************/ | |
vxEngine.GraphicsDevice.SetRenderTargets( | |
vxEngine.Renderer.RT_ColourMap, | |
vxEngine.Renderer.RT_NormalMap, | |
vxEngine.Renderer.RT_DepthMap); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct PrepPSOutput | |
{ | |
half4 Color : COLOR0; | |
half4 Normal : COLOR1; | |
half4 Depth : COLOR2; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Set Level Bounds | |
Level_X_Max = 30; | |
Level_Y_Max = 5; | |
Level_Z_Max = 15; | |
//Set Entrance/Exit Positions | |
Vector_EntrancePos = new Vector3(0, 0, 5); | |
Vector_ExitPos = new Vector3(Level_X_Max, 7, 5); | |
base.LoadContent(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void MainFrame::OnCreatewxOCECntrl(wxCommandEvent& WXUNUSED(event)) | |
{ | |
wxBitmap page_bmp = wxArtProvider::GetBitmap(wxART_NORMAL_FILE, wxART_OTHER, wxSize(16,16)); | |
ITEMCOUNT++; | |
m_ntbk->AddPage(CreatewxOCECntrl(m_ntbk),wxString::Format(wxT("newfile%i.wxoce"), ITEMCOUNT), false, page_bmp); | |
m_mgr.Update(); | |
} | |
wxPanel* MainFrame::CreatewxOCECntrl(wxWindow* parent) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Get wxPanel handle. | |
GtkWidget* widget = panel->GetHandle(); | |
//Dig through too get x11 handle | |
Window w = gdk_x11_drawable_get_xid(gtk_widget_get_window(panel->GetHandle())); | |
//Current line crashes with Bad Window error | |
//wind = new Xw_Window(aDisplayConnection, w); | |
//Currently possible too only create seperate Window for Open Cascade |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Get wxPanel Handle (only for wxGTK/Linux) | |
GtkWidget* widget = panel->GetHandle(); | |
//Required too avoid segfault happens. | |
gtk_widget_realize( widget ); | |
gtk_widget_set_double_buffered(widget, 0); | |
//Get Window from wxPanel Handle. | |
Window wid = GDK_WINDOW_XWINDOW( widget->window ); | |
XSync(GDK_WINDOW_XDISPLAY(widget->window), False); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Handle(V3d_Viewer) wxOCEWindow::Viewer (wxWindow* panel, | |
const Standard_ExtString theName, | |
const Standard_CString theDomain, | |
const Standard_Real theViewSize, | |
const V3d_TypeOfOrientation theViewProj, | |
const Standard_Boolean theComputedMode, | |
const Standard_Boolean theDefaultComputedMode ) | |
{ | |
static Handle(OpenGl_GraphicDriver) aGraphicDriver; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////// VARIABLES ///////////////////////////// | |
//The OCE Window | |
Handle(Xw_Window) wind; | |
//The Panel which holds the OCE Window | |
wxPanel* ctrl ; | |
//Used for connecting too the Graphics Card |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class wxOCEWindow: public wxScrolledWindow | |
{ | |
public: | |
wxOCEWindow(wxWindow *parent, const wxPoint& pos, const wxSize& size, long style); | |
... | |
TCollection_ExtendedString a3DName ("Visu3D"); | |
//Create the Global wxPanel too hold the wxOCE Control |
OlderNewer