diff --git a/dub.json b/dub.json index 1c33d003..40125eb5 100644 --- a/dub.json +++ b/dub.json @@ -42,7 +42,6 @@ "./examples/d3d/", "./examples/dminer/", "./examples/tetris/", - "./examples/opengl/", "./examples/ircclient/", "./examples/spreadsheet/", "./examples/dragon/" diff --git a/examples/example1/dub.json b/examples/example1/dub.json index 47c89e33..8853dcb6 100644 --- a/examples/example1/dub.json +++ b/examples/example1/dub.json @@ -11,7 +11,7 @@ "stringImportPaths": ["views", "views/res", "views/res/i18n", "views/res/mdpi"], - "versions": ["ForceLogs"], + "versions": ["ForceLogs", "GL_AllowDeprecated"], "dependencies": { "dlangui": {"path": "../../"} @@ -19,7 +19,7 @@ "configurations" : [ { "name" : "default" - }, + }, { "name" : "console", "subConfigurations" : { diff --git a/examples/example1/src/example1.d b/examples/example1/src/example1.d index 380e0d5e..0340e3bc 100644 --- a/examples/example1/src/example1.d +++ b/examples/example1/src/example1.d @@ -1064,7 +1064,7 @@ void main() static if (BACKEND_GUI && ENABLE_OPENGL) { - tabs.addTab(new MyOpenglWidget(), "OpenGL"d); + tabs.addTab(new OpenGLExample(), "OpenGL"d); } //========================================================================== @@ -1089,354 +1089,3 @@ void main() return Platform.instance.enterMessageLoop(); } - -static if (ENABLE_OPENGL) { - - import bindbc.opengl; - - class MyOpenglWidget : VerticalLayout { - this() { - super("OpenGLView"); - layoutWidth = FILL_PARENT; - layoutHeight = FILL_PARENT; - alignment = Align.Center; - // add some UI on top of OpenGL drawable - Widget w = parseML(q{ - VerticalLayout { - alignment: center - layoutWidth: fill; layoutHeight: fill - // background for window - tiled texture - backgroundImageId: "tx_fabric.tiled" - VerticalLayout { - // child widget - will draw using OpenGL here - id: glView - margins: 20 - padding: 20 - layoutWidth: fill; layoutHeight: fill - - //backgroundColor: "#C0E0E070" // semitransparent yellow background - // red bold text with size = 150% of base style size and font face Arial - TextWidget { text: "Some controls to draw on top of OpenGL scene"; textColor: "red"; fontSize: 150%; fontWeight: 800; fontFace: "Arial" } - // arrange controls as form - table with two columns - TableLayout { - colCount: 2 - TextWidget { text: "param 1" } - EditLine { id: edit1; text: "some text" } - TextWidget { text: "param 2" } - EditLine { id: edit2; text: "some text for param2" } - TextWidget { text: "some radio buttons" } - // arrange some radio buttons vertically - VerticalLayout { - RadioButton { id: rb1; text: "Item 1" } - RadioButton { id: rb2; text: "Item 2" } - RadioButton { id: rb3; text: "Item 3" } - } - TextWidget { text: "and checkboxes" } - // arrange some checkboxes horizontally - HorizontalLayout { - CheckBox { id: cb1; text: "checkbox 1" } - CheckBox { id: cb2; text: "checkbox 2" } - } - } - VSpacer { layoutWeight: 10 } - HorizontalLayout { - Button { id: btnOk; text: "Ok" } - Button { id: btnCancel; text: "Cancel" } - } - } - } - }); - // setting OpenGL background drawable for one of child widgets - w.childById("glView").backgroundDrawable = DrawableRef(new OpenGLDrawable(&doDraw)); - addChild(w); - } - - bool _oldApi; - - /// this is OpenGLDrawableDelegate implementation - private void doDraw(Rect windowRect, Rect rc) { - if (!openglEnabled) { - Log.v("GlGears: OpenGL is disabled"); - return; - } - import dlangui.graphics.glsupport : glSupport; - _oldApi = glSupport.legacyMode; - if (_oldApi) { - drawUsingOldAPI(rc); - } else { - drawUsingNewAPI(rc); - } - } - - /// Legacy API example (glBegin/glEnd) - void drawUsingOldAPI(Rect rc) { - /* - static bool _initCalled; - if (!_initCalled) { - Log.d("GlGears: calling init()"); - _initCalled = true; - glxgears_init(); - } - glxgears_reshape(rc); - glEnable(GL_LIGHTING); - glEnable(GL_LIGHT0); - glEnable(GL_DEPTH_TEST); - glxgears_draw(); - glDisable(GL_LIGHTING); - glDisable(GL_LIGHT0); - glDisable(GL_DEPTH_TEST); - */ - } - - /// New API example (OpenGL3+, shaders) - void drawUsingNewAPI(Rect rc) { - // TODO: put some sample code here - } - /// returns true is widget is being animated - need to call animate() and redraw - @property override bool animating() { return true; } - /// animates window; interval is time left from previous draw, in hnsecs (1/10000000 of second) - override void animate(long interval) { - if (_oldApi) { - // animate legacy API example - // rotate gears - angle += interval * 0.000002f; - } else { - // TODO: animate new API example - } - invalidate(); - } - } - - static __gshared GLfloat angle = 0.0; - -version (GLLegacyAPI) { - - // Sample project for old API: GlxGears - - import std.math; - static __gshared GLfloat view_rotx = 20.0, view_roty = 30.0, view_rotz = 0.0; - static __gshared GLint gear1, gear2, gear3; - alias M_PI = std.math.PI; - - /* - * - * Draw a gear wheel. You'll probably want to call this function when - * building a display list since we do a lot of trig here. - * - * Input: inner_radius - radius of hole at center - * outer_radius - radius at center of teeth - * width - width of gear - * teeth - number of teeth - * tooth_depth - depth of tooth - */ - - static void - gear(GLfloat inner_radius, GLfloat outer_radius, GLfloat width, - GLint teeth, GLfloat tooth_depth) - { - GLint i; - GLfloat r0, r1, r2; - GLfloat angle, da; - GLfloat u, v, len; - - r0 = inner_radius; - r1 = outer_radius - tooth_depth / 2.0; - r2 = outer_radius + tooth_depth / 2.0; - - da = 2.0 * M_PI / teeth / 4.0; - - glShadeModel(GL_FLAT); - - glNormal3f(0.0, 0.0, 1.0); - - /* draw front face */ - glBegin(GL_QUAD_STRIP); - for (i = 0; i <= teeth; i++) { - angle = i * 2.0 * M_PI / teeth; - glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); - glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); - if (i < teeth) { - glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); - glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), - width * 0.5); - } - } - glEnd(); - - /* draw front sides of teeth */ - glBegin(GL_QUADS); - da = 2.0 * M_PI / teeth / 4.0; - for (i = 0; i < teeth; i++) { - angle = i * 2.0 * M_PI / teeth; - - glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); - glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), width * 0.5); - glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), - width * 0.5); - glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), - width * 0.5); - } - glEnd(); - - glNormal3f(0.0, 0.0, -1.0); - - /* draw back face */ - glBegin(GL_QUAD_STRIP); - for (i = 0; i <= teeth; i++) { - angle = i * 2.0 * M_PI / teeth; - glVertex3f(r1 * cos(angle), r1 * sin(angle), -width * 0.5); - glVertex3f(r0 * cos(angle), r0 * sin(angle), -width * 0.5); - if (i < teeth) { - glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), - -width * 0.5); - glVertex3f(r0 * cos(angle), r0 * sin(angle), -width * 0.5); - } - } - glEnd(); - - /* draw back sides of teeth */ - glBegin(GL_QUADS); - da = 2.0 * M_PI / teeth / 4.0; - for (i = 0; i < teeth; i++) { - angle = i * 2.0 * M_PI / teeth; - - glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), - -width * 0.5); - glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), - -width * 0.5); - glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), -width * 0.5); - glVertex3f(r1 * cos(angle), r1 * sin(angle), -width * 0.5); - } - glEnd(); - - /* draw outward faces of teeth */ - glBegin(GL_QUAD_STRIP); - for (i = 0; i < teeth; i++) { - angle = i * 2.0 * M_PI / teeth; - - glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); - glVertex3f(r1 * cos(angle), r1 * sin(angle), -width * 0.5); - u = r2 * cos(angle + da) - r1 * cos(angle); - v = r2 * sin(angle + da) - r1 * sin(angle); - len = sqrt(u * u + v * v); - u /= len; - v /= len; - glNormal3f(v, -u, 0.0); - glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), width * 0.5); - glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), -width * 0.5); - glNormal3f(cos(angle), sin(angle), 0.0); - glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), - width * 0.5); - glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), - -width * 0.5); - u = r1 * cos(angle + 3 * da) - r2 * cos(angle + 2 * da); - v = r1 * sin(angle + 3 * da) - r2 * sin(angle + 2 * da); - glNormal3f(v, -u, 0.0); - glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), - width * 0.5); - glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), - -width * 0.5); - glNormal3f(cos(angle), sin(angle), 0.0); - } - - glVertex3f(r1 * cos(0.0), r1 * sin(0.0), width * 0.5); - glVertex3f(r1 * cos(0.0), r1 * sin(0.0), -width * 0.5); - - glEnd(); - - glShadeModel(GL_SMOOTH); - - /* draw inside radius cylinder */ - glBegin(GL_QUAD_STRIP); - for (i = 0; i <= teeth; i++) { - angle = i * 2.0 * M_PI / teeth; - glNormal3f(-cos(angle), -sin(angle), 0.0); - glVertex3f(r0 * cos(angle), r0 * sin(angle), -width * 0.5); - glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); - } - glEnd(); - } - - - static void glxgears_draw() - { - glClear(/*GL_COLOR_BUFFER_BIT | */GL_DEPTH_BUFFER_BIT); - - glPushMatrix(); - glRotatef(view_rotx, 1.0, 0.0, 0.0); - glRotatef(view_roty, 0.0, 1.0, 0.0); - glRotatef(view_rotz, 0.0, 0.0, 1.0); - - glPushMatrix(); - glTranslatef(-3.0, -2.0, 0.0); - glRotatef(angle, 0.0, 0.0, 1.0); - glCallList(gear1); - glPopMatrix(); - - glPushMatrix(); - glTranslatef(3.1, -2.0, 0.0); - glRotatef(-2.0 * angle - 9.0, 0.0, 0.0, 1.0); - glCallList(gear2); - glPopMatrix(); - - glPushMatrix(); - glTranslatef(-3.1, 4.2, 0.0); - glRotatef(-2.0 * angle - 25.0, 0.0, 0.0, 1.0); - glCallList(gear3); - glPopMatrix(); - - glPopMatrix(); - } - - - /* new window size or exposure */ - static void - glxgears_reshape(Rect rc) - { - GLfloat h = cast(GLfloat) rc.height / cast(GLfloat) rc.width; - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - glFrustum(-1.0, 1.0, -h, h, 5.0, 60.0); - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); - glTranslatef(0.0, 0.0, -40.0); - } - - - static void glxgears_init() - { - static GLfloat[4] pos = [ 5.0, 5.0, 10.0, 0.0 ]; - static GLfloat[4] red = [ 0.8, 0.1, 0.0, 1.0 ]; - static GLfloat[4] green = [ 0.0, 0.8, 0.2, 1.0 ]; - static GLfloat[4] blue = [ 0.2, 0.2, 1.0, 1.0 ]; - - glLightfv(GL_LIGHT0, GL_POSITION, pos.ptr); - glEnable(GL_CULL_FACE); - glEnable(GL_LIGHTING); - glEnable(GL_LIGHT0); - glEnable(GL_DEPTH_TEST); - - /* make the gears */ - gear1 = glGenLists(1); - glNewList(gear1, GL_COMPILE); - glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, red.ptr); - gear(1.0, 4.0, 1.0, 20, 0.7); - glEndList(); - - gear2 = glGenLists(1); - glNewList(gear2, GL_COMPILE); - glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, green.ptr); - gear(0.5, 2.0, 2.0, 10, 0.7); - glEndList(); - - gear3 = glGenLists(1); - glNewList(gear3, GL_COMPILE); - glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, blue.ptr); - gear(1.3, 2.0, 0.5, 10, 0.7); - glEndList(); - - glEnable(GL_NORMALIZE); - } - -} -} diff --git a/examples/opengl/src/openglexample.d b/examples/example1/src/widgets/opengl.d similarity index 93% rename from examples/opengl/src/openglexample.d rename to examples/example1/src/widgets/opengl.d index 09f3a3fc..ef96b2fe 100644 --- a/examples/opengl/src/openglexample.d +++ b/examples/example1/src/widgets/opengl.d @@ -1,46 +1,13 @@ -module openglexample; - -import dlangui; - -mixin APP_ENTRY_POINT; - -/// entry point for dlangui based application -extern (C) int UIAppMain(string[] args) { - // embed resources listed in views/resources.list into executable - embeddedResourceList.addResources(embedResourcesFromList!("resources.list")()); - - // the old API example works on old context because of OpenGL deprecation model - // otherwise there will be GL_INVALID_OPERATION error - // new API functions on a modern graphics card will work even if you set context version to 1.0 - Platform.instance.GLVersionMajor = 2; - Platform.instance.GLVersionMinor = 1; - - // Enable multisampling - Platform.instance.multisamples = 16; - - // create window - Window window = Platform.instance.createWindow("DlangUI OpenGL Example", null, WindowFlag.Resizable, 800, 700); - - static if (ENABLE_OPENGL) { - window.mainWidget = new MyOpenglWidget(); - } else { - window.mainWidget = new TextWidget(null, "DlangUI is built with OpenGL support disabled"d); - } - - window.windowIcon = drawableCache.getImage("dlangui-logo1"); - - window.show(); - // run message loop - return Platform.instance.enterMessageLoop(); -} - -static if (ENABLE_OPENGL): +module widgets.opengl; import bindbc.opengl; +import dlangui; import dlangui.graphics.glsupport; import dlangui.graphics.gldrawbuf; -class MyOpenglWidget : VerticalLayout { +static if(ENABLE_OPENGL): + +class OpenGLExample : VerticalLayout { this() { super("OpenGLView"); layoutWidth = FILL_PARENT; diff --git a/examples/example1/src/widgets/package.d b/examples/example1/src/widgets/package.d index 15a03f25..0565488a 100644 --- a/examples/example1/src/widgets/package.d +++ b/examples/example1/src/widgets/package.d @@ -4,3 +4,4 @@ public import widgets.animation; public import widgets.canvas; public import widgets.charts; public import widgets.icons; +public import widgets.opengl; diff --git a/examples/opengl/views/res/mdpi/crate.png b/examples/example1/views/res/mdpi/crate.png similarity index 100% rename from examples/opengl/views/res/mdpi/crate.png rename to examples/example1/views/res/mdpi/crate.png diff --git a/examples/example1/views/resources.list b/examples/example1/views/resources.list index d05c5428..654fce4c 100644 --- a/examples/example1/views/resources.list +++ b/examples/example1/views/resources.list @@ -15,5 +15,6 @@ res/mdpi/edit-redo.png res/mdpi/edit-undo.png res/mdpi/edit-unindent.png res/mdpi/tx_fabric.jpg +res/mdpi/crate.png res/theme_custom1.xml res/blocks.png diff --git a/examples/opengl/dub.json b/examples/opengl/dub.json deleted file mode 100644 index eb31c4b2..00000000 --- a/examples/opengl/dub.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "opengl", - "description": "dlangui library OpenGL example", - "homepage": "https://github.com/buggins/dlangui", - "license": "Boost", - "authors": ["Vadim Lopatin"], - - "targetPath": "bin", - "targetType": "executable", - "targetName": "openglexample", - - "stringImportPaths": ["views", "views/res", "views/res/i18n", "views/res/mdpi"], - - "versions": ["EmbedStandardResources", "GL_AllowDeprecated"], - - "dependencies": { - "dlangui": {"path": "../../"} - }, - - "configurations": [ - { - "name": "default", - "subConfigurations": { - "dlangui": "default" - } - }, - { - "name": "x11", - "subConfigurations": { - "dlangui": "x11" - } - } - ] -} diff --git a/examples/opengl/opengl-monod-osx.dproj b/examples/opengl/opengl-monod-osx.dproj deleted file mode 100644 index 45ad8a08..00000000 --- a/examples/opengl/opengl-monod-osx.dproj +++ /dev/null @@ -1,90 +0,0 @@ - - - - Debug - x64 - {F533AB80-BD2F-4F4A-A23D-16AD24CE822A} - DMD2 - true - true - true - - - ../../src - ../../3rdparty - ../../deps/gl3n - ../../deps/DerelictGL3/source - ../../deps/DerelictSDL2/source - ../../deps/DerelictFT/source - ../../deps/DerelictUtil/source - - - - - {1CC7C43E-7B39-4AFC-A45B-F1D9F582CF6D} - - - - - true - bin\Debug - - - USE_SDL - USE_OPENGL - USE_FREETYPE - EmbedStandardResources - - - obj/Debug - true - false - opengl-monod-osx - Executable - true - 0 - -Jviews -Jviews/res -Jviews/res/i18n -Jviews/res/mdpi -Jviews/res/hdpi - - - bin\Release - - - USE_SDL - USE_OPENGL - USE_FREETYPE - EmbedStandardResources - - - obj/Release - true - false - opengl-monod-osx - Executable - true - 0 - -Jviews -Jviews/res -Jviews/res/i18n -Jviews/res/mdpi -Jviews/res/hdpi - - - true - bin\Unittest - - - USE_SDL - USE_OPENGL - USE_FREETYPE - EmbedStandardResources - - - obj/Unittest - true - true - opengl-monod-osx - Executable - true - 0 - -Jviews -Jviews/res -Jviews/res/i18n -Jviews/res/mdpi -Jviews/res/hdpi - - - - - \ No newline at end of file diff --git a/examples/opengl/opengl-msvc.visualdproj b/examples/opengl/opengl-msvc.visualdproj deleted file mode 100644 index 53c02b66..00000000 --- a/examples/opengl/opengl-msvc.visualdproj +++ /dev/null @@ -1,618 +0,0 @@ - - {29CF2CAC-2C0C-4F17-9292-E1706AC7EBBF} - - 0 - 0 - 0 - 2 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 3 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 2.043 - 0 - 0 - 0 - 0 - 0 - $(CC) -c - 1 - $(DMDInstallDir)windows\bin\dmd.exe - $(SolutionDir)/src $(SolutionDir)/3rdparty $(SolutionDir)/deps/DerelictGL3/source $(SolutionDir)/deps/DerelictUtil/source $(SolutionDir)/deps/DerelictFT/source $(SolutionDir)/deps/DerelictSDL2/source - views views/res views/res/i18n views/res/mdpi views/res/hdpi - $(ConfigurationName) - $(OutDir) - - - 0 - - - - - 0 - - - 1 - $(IntDir)\$(TargetName).json - 0 - - 0 - USE_OPENGL EmbedStandardResources - 0 - 0 - 0 - - - - 0 - - 1 - $(VisualDInstallDir)cv2pdb\cv2pdb.exe - 0 - 0 - 0 - - - - ole32.lib kernel32.lib user32.lib comctl32.lib comdlg32.lib - - - - $(OutDir)\$(ProjectName).exe - 1 - 2 - 0 - - - - *.obj;*.cmd;*.build;*.json;*.dep - - - 0 - 0 - 0 - 2 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 3 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 2.043 - 0 - 0 - 0 - 0 - 0 - $(CC) -c - 1 - $(DMDInstallDir)windows\bin\dmd.exe - $(SolutionDir)/src $(SolutionDir)/3rdparty $(SolutionDir)/deps/DerelictGL3/source $(SolutionDir)/deps/DerelictUtil/source $(SolutionDir)/deps/DerelictFT/source $(SolutionDir)/deps/DerelictSDL2/source $(SolutionDir)/deps/gl3n - views views/res views/res/i18n views/res/mdpi views/res/hdpi - $(ConfigurationName) - $(OutDir) - - - 0 - - - - - 0 - - - 1 - $(IntDir)\$(TargetName).json - 0 - - 0 - USE_OPENGL EmbedStandardResources - 0 - 0 - 0 - - - - 0 - - 1 - $(VisualDInstallDir)cv2pdb\cv2pdb.exe - 0 - 0 - 0 - - - - ole32.lib kernel32.lib user32.lib comctl32.lib comdlg32.lib - - - - $(OutDir)\$(ProjectName).exe - 1 - 2 - 0 - - - - *.obj;*.cmd;*.build;*.json;*.dep - - - 0 - 0 - 0 - 2 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 1 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 2.043 - 0 - 0 - 0 - 0 - 0 - $(CC) -c - 1 - $(DMDInstallDir)windows\bin\dmd.exe - $(SolutionDir)/src $(SolutionDir)/3rdparty $(SolutionDir)/deps/DerelictGL3/source $(SolutionDir)/deps/DerelictUtil/source $(SolutionDir)/deps/DerelictFT/source $(SolutionDir)/deps/DerelictSDL2/source - views views/res views/res/i18n views/res/mdpi views/res/hdpi - $(ConfigurationName) - $(OutDir) - - - 0 - - - - - 0 - - - 1 - $(IntDir)\$(TargetName).json - 0 - - 0 - USE_OPENGL EmbedStandardResources - 0 - 0 - 0 - - - - 0 - - 0 - $(VisualDInstallDir)cv2pdb\cv2pdb.exe - 0 - 0 - 0 - - - - ole32.lib kernel32.lib user32.lib comctl32.lib comdlg32.lib - - - - $(OutDir)\$(ProjectName).exe - 1 - 1 - 0 - - - - *.obj;*.cmd;*.build;*.json;*.dep - - - 0 - 0 - 0 - 2 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 1 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 2.043 - 0 - 0 - 0 - 0 - 0 - $(CC) -c - 1 - $(DMDInstallDir)windows\bin\dmd.exe - $(SolutionDir)/src $(SolutionDir)/3rdparty $(SolutionDir)/deps/DerelictGL3/source $(SolutionDir)/deps/DerelictUtil/source $(SolutionDir)/deps/DerelictFT/source $(SolutionDir)/deps/DerelictSDL2/source - views views/res views/res/i18n views/res/mdpi views/res/hdpi - $(ConfigurationName) - $(OutDir) - - - 0 - - - - - 0 - - - 1 - $(IntDir)\$(TargetName).json - 0 - - 0 - USE_OPENGL EmbedStandardResources - 0 - 0 - 0 - - - - 0 - - 0 - $(VisualDInstallDir)cv2pdb\cv2pdb.exe - 0 - 0 - 0 - - - - ole32.lib kernel32.lib user32.lib comctl32.lib comdlg32.lib - - - - $(OutDir)\$(ProjectName).exe - 1 - 1 - 0 - - - - *.obj;*.cmd;*.build;*.json;*.dep - - - 0 - 0 - 0 - 2 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 3 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 2.043 - 0 - 0 - 0 - 0 - 0 - $(CC) -c - 1 - $(DMDInstallDir)windows\bin\dmd.exe - $(SolutionDir)/src $(SolutionDir)/3rdparty $(SolutionDir)/deps/DerelictGL3/source $(SolutionDir)/deps/DerelictUtil/source $(SolutionDir)/deps/DerelictFT/source $(SolutionDir)/deps/DerelictSDL2/source - views views/res views/res/i18n views/res/mdpi views/res/hdpi - $(ConfigurationName) - $(OutDir) - - - 0 - - - - - 0 - - - 1 - $(IntDir)\$(TargetName).json - 0 - - 0 - USE_OPENGL EmbedStandardResources - 0 - 0 - 0 - - - - 0 - - 1 - $(VisualDInstallDir)cv2pdb\cv2pdb.exe - 0 - 0 - 0 - - - - ole32.lib kernel32.lib user32.lib comctl32.lib comdlg32.lib - - - - $(OutDir)\$(ProjectName).exe - 1 - 2 - 0 - - - - *.obj;*.cmd;*.build;*.json;*.dep - - - 0 - 0 - 0 - 2 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 3 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 2.043 - 0 - 0 - 0 - 0 - 0 - $(CC) -c - 1 - $(DMDInstallDir)windows\bin\dmd.exe - $(SolutionDir)/src $(SolutionDir)/3rdparty $(SolutionDir)/deps/DerelictGL3/source $(SolutionDir)/deps/DerelictUtil/source $(SolutionDir)/deps/DerelictFT/source $(SolutionDir)/deps/DerelictSDL2/source $(SolutionDir)/deps/gl3n - views views/res views/res/i18n views/res/mdpi views/res/hdpi - $(ConfigurationName) - $(OutDir) - - - 0 - - - - - 0 - - - 1 - $(IntDir)\$(TargetName).json - 0 - - 0 - USE_OPENGL EmbedStandardResources - 0 - 0 - 0 - - - - 0 - - 1 - $(VisualDInstallDir)cv2pdb\cv2pdb.exe - 0 - 0 - 0 - - - - ole32.lib kernel32.lib user32.lib comctl32.lib comdlg32.lib - - - - $(OutDir)\$(ProjectName).exe - 1 - 2 - 0 - - - - *.obj;*.cmd;*.build;*.json;*.dep - - - - - diff --git a/examples/opengl/views/res/mdpi/tx_fabric.jpg b/examples/opengl/views/res/mdpi/tx_fabric.jpg deleted file mode 100644 index 6c33894a..00000000 Binary files a/examples/opengl/views/res/mdpi/tx_fabric.jpg and /dev/null differ diff --git a/examples/opengl/views/resources.list b/examples/opengl/views/resources.list deleted file mode 100644 index bf609e9e..00000000 --- a/examples/opengl/views/resources.list +++ /dev/null @@ -1,2 +0,0 @@ -res/mdpi/tx_fabric.jpg -res/mdpi/crate.png