Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 88f99db867 |
BIN
Dialogs.aps
BIN
Dialogs.aps
Binary file not shown.
49
Dialogs.rc
49
Dialogs.rc
@@ -46,55 +46,6 @@ END
|
|||||||
|
|
||||||
#endif // APSTUDIO_INVOKED
|
#endif // APSTUDIO_INVOKED
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
// Dialog
|
|
||||||
//
|
|
||||||
|
|
||||||
IDD_TOOLBOX DIALOGEX 0, 0, 368, 77
|
|
||||||
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
|
|
||||||
FONT 8, "MS Shell Dlg", 0, 0, 0x0
|
|
||||||
BEGIN
|
|
||||||
CONTROL "",IDC_AXBROWSER1,"{A8F8E829-06DA-11D2-8D70-00A0C98B28E2}",WS_TABSTOP,7,7,354,63
|
|
||||||
END
|
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
// DESIGNINFO
|
|
||||||
//
|
|
||||||
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
|
||||||
GUIDELINES DESIGNINFO
|
|
||||||
BEGIN
|
|
||||||
IDD_TOOLBOX, DIALOG
|
|
||||||
BEGIN
|
|
||||||
LEFTMARGIN, 7
|
|
||||||
RIGHTMARGIN, 361
|
|
||||||
TOPMARGIN, 7
|
|
||||||
BOTTOMMARGIN, 70
|
|
||||||
END
|
|
||||||
END
|
|
||||||
#endif // APSTUDIO_INVOKED
|
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
// Dialog Info
|
|
||||||
//
|
|
||||||
|
|
||||||
IDD_TOOLBOX DLGINIT
|
|
||||||
BEGIN
|
|
||||||
IDC_AXBROWSER1, 0x376, 76, 0
|
|
||||||
0x0000, 0x0000, 0xb293, 0x0000, 0x0048, 0x0000, 0x0003, 0x0008, 0xf20b,
|
|
||||||
0x4757, 0x0020, 0x0000, 0x005f, 0x0065, 0x0078, 0x0074, 0x0065, 0x006e,
|
|
||||||
0x0074, 0x0078, 0x36e1, 0x0000, 0x0003, 0x0008, 0xf20a, 0x4757, 0xffe0,
|
|
||||||
0xffff, 0x005f, 0x0065, 0x0078, 0x0074, 0x0065, 0x006e, 0x0074, 0x0079,
|
|
||||||
0x0a8b, 0x0000,
|
|
||||||
0
|
|
||||||
END
|
|
||||||
|
|
||||||
#endif // English (U.S.) resources
|
#endif // English (U.S.) resources
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|||||||
BIN
G3DTest.suo
BIN
G3DTest.suo
Binary file not shown.
@@ -262,10 +262,6 @@
|
|||||||
RelativePath=".\PhysicalInstance.cpp"
|
RelativePath=".\PhysicalInstance.cpp"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath=".\TextButtonInstance.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter
|
<Filter
|
||||||
Name="Header Files"
|
Name="Header Files"
|
||||||
@@ -283,10 +279,6 @@
|
|||||||
RelativePath=".\resource.h"
|
RelativePath=".\resource.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath=".\TextButtonInstance.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter
|
<Filter
|
||||||
Name="Resource Files"
|
Name="Resource Files"
|
||||||
@@ -295,9 +287,5 @@
|
|||||||
</Filter>
|
</Filter>
|
||||||
</Files>
|
</Files>
|
||||||
<Globals>
|
<Globals>
|
||||||
<Global
|
|
||||||
Name="RESOURCE_FILE"
|
|
||||||
Value="Dialogs.rc"
|
|
||||||
/>
|
|
||||||
</Globals>
|
</Globals>
|
||||||
</VisualStudioProject>
|
</VisualStudioProject>
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#include <G3DAll.h>
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
class Instance
|
class Instance
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#include <G3DAll.h>
|
||||||
#include "PhysicalInstance.h"
|
#include "PhysicalInstance.h"
|
||||||
|
|
||||||
bool canCollide = true;
|
bool canCollide = true;
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
#include "TextButtonInstance.h"
|
|
||||||
Vector2 boxBegin;
|
|
||||||
Vector2 boxEnd;
|
|
||||||
Vector2 fontLocationRelativeTo;
|
|
||||||
Color4 textColor;
|
|
||||||
Color4 textOutlineColor;
|
|
||||||
Color4 boxColor;
|
|
||||||
Color4 boxOutlineColor;
|
|
||||||
Color4 textColorOvr;
|
|
||||||
Color4 textOutlineColorOvr;
|
|
||||||
Color4 boxColorOvr;
|
|
||||||
Color4 boxOutlineColorOvr;
|
|
||||||
Color4 textColorDn;
|
|
||||||
Color4 textOutlineColorDn;
|
|
||||||
Color4 boxColorDn;
|
|
||||||
Color4 boxOutlineColorDn;
|
|
||||||
bool centeredWithinBox;
|
|
||||||
std::string title;
|
|
||||||
G3D::GFontRef font;
|
|
||||||
int textSize;
|
|
||||||
|
|
||||||
|
|
||||||
TextButtonInstance::TextButtonInstance(void)
|
|
||||||
{
|
|
||||||
boxBegin = Vector2(0,0);
|
|
||||||
boxEnd = Vector2(0,0);
|
|
||||||
fontLocationRelativeTo = Vector2(0,0);
|
|
||||||
centeredWithinBox = false;
|
|
||||||
title = "TextBox";
|
|
||||||
textColor = Color4(1, 1, 1, 1);
|
|
||||||
textOutlineColor = Color4(0, 0, 0, 0);
|
|
||||||
boxColor = Color4(0.6F,0.6F,0.6F,0.4F);
|
|
||||||
boxOutlineColor = Color4(0, 0, 0, 0);
|
|
||||||
textSize = 12;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
TextButtonInstance::~TextButtonInstance(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
#include "instance.h"
|
|
||||||
|
|
||||||
class TextButtonInstance :
|
|
||||||
public Instance
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
TextButtonInstance(void);
|
|
||||||
~TextButtonInstance(void);
|
|
||||||
Vector2 boxBegin;
|
|
||||||
Vector2 boxEnd;
|
|
||||||
Vector2 fontLocationRelativeTo;
|
|
||||||
Color4 textColor;
|
|
||||||
Color4 textOutlineColor;
|
|
||||||
Color4 boxColor;
|
|
||||||
Color4 boxOutlineColor;
|
|
||||||
Color4 textColorOvr;
|
|
||||||
Color4 textOutlineColorOvr;
|
|
||||||
Color4 boxColorOvr;
|
|
||||||
Color4 boxOutlineColorOvr;
|
|
||||||
Color4 textColorDn;
|
|
||||||
Color4 textOutlineColorDn;
|
|
||||||
Color4 boxColorDn;
|
|
||||||
Color4 boxOutlineColorDn;
|
|
||||||
bool centeredWithinBox;
|
|
||||||
std::string title;
|
|
||||||
G3D::GFontRef font;
|
|
||||||
};
|
|
||||||
BIN
content/font/adventure.fnt
Normal file
BIN
content/font/adventure.fnt
Normal file
Binary file not shown.
BIN
content/font/anglo-small.fnt
Normal file
BIN
content/font/anglo-small.fnt
Normal file
Binary file not shown.
BIN
content/font/anglo.fnt
Normal file
BIN
content/font/anglo.fnt
Normal file
Binary file not shown.
BIN
content/font/bahaus-small.fnt
Normal file
BIN
content/font/bahaus-small.fnt
Normal file
Binary file not shown.
BIN
content/font/bahaus.fnt
Normal file
BIN
content/font/bahaus.fnt
Normal file
Binary file not shown.
BIN
content/font/baskerville-small.fnt
Normal file
BIN
content/font/baskerville-small.fnt
Normal file
Binary file not shown.
BIN
content/font/baskerville.fnt
Normal file
BIN
content/font/baskerville.fnt
Normal file
Binary file not shown.
BIN
content/font/britannic-small.fnt
Normal file
BIN
content/font/britannic-small.fnt
Normal file
Binary file not shown.
BIN
content/font/britannic.fnt
Normal file
BIN
content/font/britannic.fnt
Normal file
Binary file not shown.
BIN
content/font/broadway-small.fnt
Normal file
BIN
content/font/broadway-small.fnt
Normal file
Binary file not shown.
BIN
content/font/broadway.fnt
Normal file
BIN
content/font/broadway.fnt
Normal file
Binary file not shown.
BIN
content/font/bubble-small.fnt
Normal file
BIN
content/font/bubble-small.fnt
Normal file
Binary file not shown.
BIN
content/font/bubble.fnt
Normal file
BIN
content/font/bubble.fnt
Normal file
Binary file not shown.
BIN
content/font/burton-small.fnt
Normal file
BIN
content/font/burton-small.fnt
Normal file
Binary file not shown.
BIN
content/font/burton.fnt
Normal file
BIN
content/font/burton.fnt
Normal file
Binary file not shown.
BIN
content/font/century-small.fnt
Normal file
BIN
content/font/century-small.fnt
Normal file
Binary file not shown.
BIN
content/font/century.fnt
Normal file
BIN
content/font/century.fnt
Normal file
Binary file not shown.
BIN
content/font/colonna-small.fnt
Normal file
BIN
content/font/colonna-small.fnt
Normal file
Binary file not shown.
BIN
content/font/colonna.fnt
Normal file
BIN
content/font/colonna.fnt
Normal file
Binary file not shown.
BIN
content/font/comics-small.fnt
Normal file
BIN
content/font/comics-small.fnt
Normal file
Binary file not shown.
BIN
content/font/comics.fnt
Normal file
BIN
content/font/comics.fnt
Normal file
Binary file not shown.
BIN
content/font/cooper-small.fnt
Normal file
BIN
content/font/cooper-small.fnt
Normal file
Binary file not shown.
BIN
content/font/cooper.fnt
Normal file
BIN
content/font/cooper.fnt
Normal file
Binary file not shown.
BIN
content/font/courier-small.fnt
Normal file
BIN
content/font/courier-small.fnt
Normal file
Binary file not shown.
BIN
content/font/curly-small.fnt
Normal file
BIN
content/font/curly-small.fnt
Normal file
Binary file not shown.
BIN
content/font/curly.fnt
Normal file
BIN
content/font/curly.fnt
Normal file
Binary file not shown.
BIN
content/font/desmonda-small.fnt
Normal file
BIN
content/font/desmonda-small.fnt
Normal file
Binary file not shown.
BIN
content/font/desmonda.fnt
Normal file
BIN
content/font/desmonda.fnt
Normal file
Binary file not shown.
BIN
content/font/diner-small.fnt
Normal file
BIN
content/font/diner-small.fnt
Normal file
Binary file not shown.
BIN
content/font/diner.fnt
Normal file
BIN
content/font/diner.fnt
Normal file
Binary file not shown.
BIN
content/font/elephant-small.fnt
Normal file
BIN
content/font/elephant-small.fnt
Normal file
Binary file not shown.
BIN
content/font/elephant.fnt
Normal file
BIN
content/font/elephant.fnt
Normal file
Binary file not shown.
BIN
content/font/emperor-small.fnt
Normal file
BIN
content/font/emperor-small.fnt
Normal file
Binary file not shown.
BIN
content/font/emperor.fnt
Normal file
BIN
content/font/emperor.fnt
Normal file
Binary file not shown.
BIN
content/font/eurostyle-small.fnt
Normal file
BIN
content/font/eurostyle-small.fnt
Normal file
Binary file not shown.
BIN
content/font/eurostyle.fnt
Normal file
BIN
content/font/eurostyle.fnt
Normal file
Binary file not shown.
BIN
content/font/federation.fnt
Normal file
BIN
content/font/federation.fnt
Normal file
Binary file not shown.
BIN
content/font/gradl-small.fnt
Normal file
BIN
content/font/gradl-small.fnt
Normal file
Binary file not shown.
BIN
content/font/gradl.fnt
Normal file
BIN
content/font/gradl.fnt
Normal file
Binary file not shown.
BIN
content/font/led.fnt
Normal file
BIN
content/font/led.fnt
Normal file
Binary file not shown.
BIN
content/font/leditalic.fnt
Normal file
BIN
content/font/leditalic.fnt
Normal file
Binary file not shown.
BIN
content/font/news.fnt
Normal file
BIN
content/font/news.fnt
Normal file
Binary file not shown.
BIN
content/font/note-small.fnt
Normal file
BIN
content/font/note-small.fnt
Normal file
Binary file not shown.
BIN
content/font/note.fnt
Normal file
BIN
content/font/note.fnt
Normal file
Binary file not shown.
BIN
content/font/onyx-small.fnt
Normal file
BIN
content/font/onyx-small.fnt
Normal file
Binary file not shown.
BIN
content/font/onyx.fnt
Normal file
BIN
content/font/onyx.fnt
Normal file
Binary file not shown.
BIN
content/font/pricedown.fnt
Normal file
BIN
content/font/pricedown.fnt
Normal file
Binary file not shown.
BIN
content/font/sansserif.fnt
Normal file
BIN
content/font/sansserif.fnt
Normal file
Binary file not shown.
BIN
content/font/saxon-small.fnt
Normal file
BIN
content/font/saxon-small.fnt
Normal file
Binary file not shown.
BIN
content/font/saxon.fnt
Normal file
BIN
content/font/saxon.fnt
Normal file
Binary file not shown.
BIN
content/font/shadowed-small.fnt
Normal file
BIN
content/font/shadowed-small.fnt
Normal file
Binary file not shown.
BIN
content/font/shadowed.fnt
Normal file
BIN
content/font/shadowed.fnt
Normal file
Binary file not shown.
BIN
content/font/stencil-small.fnt
Normal file
BIN
content/font/stencil-small.fnt
Normal file
Binary file not shown.
BIN
content/font/stencil.fnt
Normal file
BIN
content/font/stencil.fnt
Normal file
Binary file not shown.
BIN
content/font/terminal.fnt
Normal file
BIN
content/font/terminal.fnt
Normal file
Binary file not shown.
BIN
content/font/times-small.fnt
Normal file
BIN
content/font/times-small.fnt
Normal file
Binary file not shown.
BIN
content/font/times.fnt
Normal file
BIN
content/font/times.fnt
Normal file
Binary file not shown.
BIN
content/font/venusrising-small.fnt
Normal file
BIN
content/font/venusrising-small.fnt
Normal file
Binary file not shown.
BIN
content/font/venusrising.fnt
Normal file
BIN
content/font/venusrising.fnt
Normal file
Binary file not shown.
BIN
content/font/videophreak-small.fnt
Normal file
BIN
content/font/videophreak-small.fnt
Normal file
Binary file not shown.
BIN
content/font/videophreak.fnt
Normal file
BIN
content/font/videophreak.fnt
Normal file
Binary file not shown.
BIN
content/font/widelatin-small.fnt
Normal file
BIN
content/font/widelatin-small.fnt
Normal file
Binary file not shown.
BIN
content/font/widelatin.fnt
Normal file
BIN
content/font/widelatin.fnt
Normal file
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 379 B |
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.7 KiB |
19
main.cpp
19
main.cpp
@@ -235,11 +235,6 @@ void Demo::onSimulation(RealTime rdt, SimTime sdt, SimTime idt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void readMouseGUIInput()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void Demo::onUserInput(UserInput* ui) {
|
void Demo::onUserInput(UserInput* ui) {
|
||||||
if (ui->keyPressed(SDLK_ESCAPE)) {
|
if (ui->keyPressed(SDLK_ESCAPE)) {
|
||||||
// Even when we aren't in debug mode, quit on escape.
|
// Even when we aren't in debug mode, quit on escape.
|
||||||
@@ -273,8 +268,6 @@ void Demo::onUserInput(UserInput* ui) {
|
|||||||
if(ui->keyPressed(SDLK_LSHIFT))
|
if(ui->keyPressed(SDLK_LSHIFT))
|
||||||
{
|
{
|
||||||
app->debugController.setMoveRate(20);
|
app->debugController.setMoveRate(20);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else if(ui->keyReleased(SDLK_LSHIFT))
|
else if(ui->keyReleased(SDLK_LSHIFT))
|
||||||
{
|
{
|
||||||
@@ -304,12 +297,10 @@ void Demo::onUserInput(UserInput* ui) {
|
|||||||
message = "FPS has been set to " + Convert(FPSVal[index]);
|
message = "FPS has been set to " + Convert(FPSVal[index]);
|
||||||
setDesiredFrameRate(FPSVal[index]);
|
setDesiredFrameRate(FPSVal[index]);
|
||||||
}
|
}
|
||||||
readMouseGUIInput();
|
|
||||||
// Add other key handling here
|
// Add other key handling here
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
std::string ExePath() {
|
std::string ExePath() {
|
||||||
char buffer[MAX_PATH];
|
char buffer[MAX_PATH];
|
||||||
GetModuleFileName( NULL, buffer, MAX_PATH );
|
GetModuleFileName( NULL, buffer, MAX_PATH );
|
||||||
@@ -462,12 +453,12 @@ void Demo::onGraphics(RenderDevice* rd) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
rd->pushState();
|
//rd->pushState();
|
||||||
|
|
||||||
rd->setTexture(0, go);
|
//rd->setTexture(0, go);
|
||||||
|
|
||||||
|
|
||||||
rd->enableAlphaWrite();
|
/*rd->enableAlphaWrite();
|
||||||
rd->setTexCoord(0, Vector2(0.0F, 0.0F));
|
rd->setTexCoord(0, Vector2(0.0F, 0.0F));
|
||||||
rd->setTexCoord(0, Vector2(1.0F, 0.0F));
|
rd->setTexCoord(0, Vector2(1.0F, 0.0F));
|
||||||
rd->setTexCoord(0, Vector2(0.0F, 1.0F));
|
rd->setTexCoord(0, Vector2(0.0F, 1.0F));
|
||||||
@@ -480,7 +471,7 @@ void Demo::onGraphics(RenderDevice* rd) {
|
|||||||
rd->sendVertex(Vector2(10,85));
|
rd->sendVertex(Vector2(10,85));
|
||||||
rd->endPrimitive();
|
rd->endPrimitive();
|
||||||
rd->setTexture(0, NULL);
|
rd->setTexture(0, NULL);
|
||||||
rd->popState();
|
//rd->popState();*/
|
||||||
|
|
||||||
|
|
||||||
app->renderDevice->pop2D();
|
app->renderDevice->pop2D();
|
||||||
|
|||||||
@@ -2,18 +2,15 @@
|
|||||||
// Microsoft Visual C++ generated include file.
|
// Microsoft Visual C++ generated include file.
|
||||||
// Used by Dialogs.rc
|
// Used by Dialogs.rc
|
||||||
//
|
//
|
||||||
#define IDD_TOOLBOX 101
|
|
||||||
#define IDD_ABOUT_DIALOG 102
|
#define IDD_ABOUT_DIALOG 102
|
||||||
#define IDC_AXBROWSER1 1001
|
|
||||||
#define IDC_BUTTON1 1002
|
|
||||||
|
|
||||||
// Next default values for new objects
|
// Next default values for new objects
|
||||||
//
|
//
|
||||||
#ifdef APSTUDIO_INVOKED
|
#ifdef APSTUDIO_INVOKED
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 106
|
#define _APS_NEXT_RESOURCE_VALUE 105
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40004
|
#define _APS_NEXT_COMMAND_VALUE 40004
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1003
|
#define _APS_NEXT_CONTROL_VALUE 1001
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
#define _APS_NEXT_SYMED_VALUE 101
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user