Commit Graph

943 Commits

Author SHA1 Message Date
gazer 4d16c29506 decreased a number of vao creations 2016-01-04 22:31:27 +03:00
gazer 936838bf2d clear some code 2016-01-04 21:03:35 +03:00
gazer 57002757b7 triangle strips 2016-01-04 19:43:05 +03:00
gazer 6c95d1f7d6 cache shader state 2016-01-04 19:37:43 +03:00
Keywan Ghadami 72953d0cdc fix utf8-decode
+ fixed decoding of 3 bytes unicode codepoints
+ ((ch1 & 0x1F) << 12) to ((ch1 & 0x3F) << 12)
+ refactored code to be able to make simple unittest
+ added unittests for utf8 decoding
2015-12-30 15:28:02 +01:00
Vadim Lopatin 483780ac96 Merge pull request #136 from keywan-ghadami/fix-linestream-buffer-overflow
fix bufferoverflow
2015-12-29 11:32:00 +03:00
Keywan Ghadami d51e05396c minor improvement for file-dialog
if the user selects no file and press the open button:
 the dialog will (instead of closing itself) now open the selected directory
2015-12-29 08:53:23 +01:00
Keywan Ghadami 6293c9eb80 fix bufferoverflow
+  double buffersize for mulitybytes
 +  stop processing if no charater is consumed within the loop
2015-12-28 17:27:52 +01:00
Vadim Lopatin 4f0cced6b4 css parser 2015-12-24 17:40:41 +03:00
Vadim Lopatin 9f768c85af fix unittest; CSS parser improvements 2015-12-24 15:17:19 +03:00
Vadim Lopatin 1686fde76d CSS parser 2015-12-24 14:48:23 +03:00
Vadim Lopatin 2037fcfe23 CSS parser 2015-12-24 13:55:21 +03:00
Vadim Lopatin 0d5c3509f0 CSS parser 2015-12-24 12:32:53 +03:00
Vadim Lopatin 206d9b7c60 CSS parser 2015-12-24 11:21:57 +03:00
Vadim Lopatin e958ecae6d CSS parser 2015-12-24 10:25:20 +03:00
Vadim Lopatin a06585a87d css parser 2015-12-24 09:46:47 +03:00
Vadim Lopatin 7982e7e3fe msvc unittests for dlangui 2015-12-24 08:38:21 +03:00
Vadim Lopatin a2c6d38970 css parser 2015-12-23 17:10:34 +03:00
Vadim Lopatin 3d338b86b0 CSS parser 2015-12-23 16:32:43 +03:00
Vadim Lopatin ac2abfba54 css parser, starting implementatin 2015-12-23 15:26:12 +03:00
Vadim Lopatin 34fe23adca DOM improvements; fix unit tests 2015-12-23 13:41:59 +03:00
Vadim Lopatin e2a847f108 DOM 2015-12-23 12:23:20 +03:00
Vadim Lopatin d090f8ad49 DOM initial implementation 2015-12-23 11:32:14 +03:00
Vadim Lopatin 65d7802840 Merge branch 'master' of github.com:buggins/dlangui 2015-12-23 08:46:12 +03:00
Vadim Lopatin 3c5b3a61a7 replace tabs with 4 spaces 2015-12-23 08:45:54 +03:00
Vadim Lopatin 4561b4a8ae Merge pull request #133 from alphaKAI/fix-not-allowed-code-at-graphics-fonts
fix build error at graphics/fonts.d
2015-12-23 08:37:37 +03:00
alphaKAI 3e51ebbfbb fix build error
D does not allow default constructor and to declare some constructors
for struct.
It is because that, unfortunately, your code does not be permitted in
D's structure.

Correct Code:
import std.stdio;
struct T{
    this(int v = 2){
          writeln(v);
            }
}

void main(){
    T s = T(1);
}

However, following code is not permitted.
import std.stdio;
struct T{
    this(int v = 2){
          writeln(v);
            }
}

void main(){
    T t; // <- This definition occur build error. This definition call
    default constructor such as this() but T does not has this().
        T s = T(30);
}

That's why your following code dose not permitted.
struct glyph_gamma_table(int maxv = 65)
{
      this(double gammaValue = 1.0)
            {
                      gamma = gammaValue;
                          }
      //...

}

__gshared glyph_gamma_table!65 _gamma65;// <- calling this() !!!!!!
__gshared glyph_gamma_table!256 _gamma256;// <- calling this() !!!!!

By the way I might found your miss.
Your code is:
        gamma = gammaValue;
        But this is not properly in this place, I think.
        I guess that you intended to write as follows.
                gamma(gammaValue);

                I fixed as above.
2015-12-23 13:27:07 +09:00
default0 536526185b Fix scrollbar of FileDialog not updating
If you change the opened directory in the FileDialog and opened
a directory with enough contents to require a scrollbar, the
scrollbar would not show up until you first scrolled. This commit
fixes this by updating the scrollbar whenever the displayed
directory of the FileDialog changes.
2015-12-22 15:47:19 +01:00
Vadim Lopatin e8f9422d59 opengl example 2015-12-22 14:48:23 +03:00
Vadim Lopatin 7bdff965b2 math3d 2015-12-22 13:41:34 +03:00
Vadim Lopatin f35bb6eda6 get rid of gl3n dependency 2015-12-22 12:25:33 +03:00
Vadim Lopatin 01d04ad99f update math3d 2015-12-22 11:23:07 +03:00
Vadim Lopatin bc5cee4341 math 3d - initial implementation 2015-12-22 10:03:34 +03:00
gazer 7333bdfee9 fix 2015-12-22 04:34:27 +03:00
Vadim Lopatin 2900576f9f opengl example; 3d math 2015-12-21 16:58:29 +03:00
Vadim Lopatin 6bae3ee378 OpenGL support & opengl example improvements 2015-12-21 15:47:25 +03:00
Vadim Lopatin 349c6612e1 refactor OpenGL initialization 2015-12-21 11:35:31 +03:00
Vadim Lopatin 2cb21339e5 refactoring 2015-12-21 10:44:19 +03:00
Vadim Lopatin 7924bcf4a9 OpenGL refactoring 2015-12-21 10:40:41 +03:00
Vadim Lopatin b1cbd52e79 remove FontProgram from GLSupport - anyway CrearType cannot be implemented with shaders 2015-12-21 10:25:20 +03:00
Vadim Lopatin 0556ad5781 refactor setOrthoProjection, implement setPerspectiveProjection 2015-12-21 10:18:49 +03:00
Vadim Lopatin aea38fb5fe change OpenGLDrawable interface 2015-12-21 09:52:19 +03:00
Vadim Lopatin 57aba53bf5 OpenGL example for legacy API 2015-12-21 09:46:14 +03:00
Vadim Lopatin 07f8ec9127 support alignment property in DML 2015-12-21 09:31:29 +03:00
gazer ef837c1ffc clear some code 2015-12-20 22:23:15 +03:00
gazer b8a533c598 foreach loops pt. 3 2015-12-20 18:04:27 +03:00
gazer 058bc68d2d foreach loops pt. 2 2015-12-19 21:30:52 +03:00
gazer 443236ada9 foreach loops pt. 1 2015-12-19 16:20:00 +03:00
gazer 2a53c9b4fd `switch` with `with` keyword to improve readability 2015-12-19 13:52:08 +03:00
gazer db7b78d239 Many tiny fixes 2015-12-19 10:08:18 +03:00
Vadim Lopatin 8ce8c38b24 sdl legacy opengl api 2015-12-19 08:37:30 +03:00
Vadim Lopatin d2049653ba example1: GlGears - trying on OSX 2015-12-19 08:14:18 +03:00
Vadim Lopatin 872b77241b Merge branch 'master' of github.com:buggins/dlangui 2015-12-19 07:52:34 +03:00
Vadim Lopatin c7964762c4 fixes for OSX 2015-12-19 07:52:19 +03:00
gazer 99abb65674 correct sizes and dates in FileDialog 2015-12-18 22:48:24 +03:00
gazer 03d21a463e FillColor; removed unused code; fixes 2015-12-18 19:29:33 +03:00
Vadim Lopatin 568a124274 Custom OpenGL drawable 2015-12-18 16:14:40 +03:00
Vadim Lopatin 73314752e2 fixes for dlangide 2015-12-18 10:30:04 +03:00
Vadim Lopatin 289dfa0749 fix black window on OSX - close #110 2015-12-17 21:41:07 +03:00
Vadim Lopatin e2a0e6e829 remove extra logging 2015-12-17 20:22:12 +03:00
Vadim Lopatin 439033c397 closed #120 2015-12-17 18:57:33 +03:00
Vadim Lopatin b65bc81dac docks - layout priority support 2015-12-17 11:47:27 +03:00
Vadim Lopatin 301127262b fix crash on json saving 2015-12-16 15:30:12 +03:00
Vadim Lopatin b0862b7ae5 URL like button 2015-12-15 14:36:50 +03:00
Vadim Lopatin f5dd9dbc99 fixes 2015-12-15 12:39:28 +03:00
Vadim Lopatin 4feb9d8f2a fixes 2015-12-15 10:51:06 +03:00
Vadim Lopatin e6a1895f32 support for custom line marks in multiline editor (bookmark, breakpoint, error) - close #45 2015-12-15 10:25:35 +03:00
Vadim Lopatin 5baf435713 Text editor line marks support, bookmarks support 2015-12-14 16:25:50 +03:00
Vadim Lopatin 732685c99d text editor line marks 2015-12-14 13:43:16 +03:00
Vadim Lopatin 47487535c5 fix JSON parser 2015-12-14 12:21:19 +03:00
gazer b7be028039 fix 2015-12-12 23:26:11 +03:00
gazer 2280b56171 checkgl should be only in debug 2015-12-12 22:05:59 +03:00
gazer ba5a27ce9e checkError -> checkgl 2015-12-12 20:42:32 +03:00
gazer 184fa4db50 new errors checking function 2015-12-12 20:22:04 +03:00
gazer a7aee91813 vbo fill method 2015-12-12 14:11:24 +03:00
gazer 8336f9c9cb textures with GLObject 2015-12-12 01:37:35 +03:00
gazer 9896492018 FBO with GLObject 2015-12-12 01:24:39 +03:00
gazer 3f2b14f4e3 VAO and VBO with GLObject 2015-12-12 01:20:53 +03:00
gazer bfbdd462fd OpenGL object template 2015-12-12 01:02:17 +03:00
gazer 2ae058e1f7 check() shader; fixes 2015-12-12 00:59:52 +03:00
gazer a3ec66569d clean shader compilation 2015-12-11 17:50:49 +03:00
gazer 8015acaca2 fix shader locations 2015-12-11 16:58:21 +03:00
gazer 15c1110828 few errors checking fixes 2015-12-11 16:57:42 +03:00
gazer 808861a6d3 fix github highlighting 2015-12-11 15:32:47 +03:00
Vadim Lopatin a17923e88c fonts on OSX 2015-12-11 07:08:25 +03:00
Vadim Lopatin 0c5ad89b85 Get rid of dlib dependency: strip png and jpeg reading code and put to 3rdparty/dimage 2015-12-10 16:19:03 +03:00
Vadim Lopatin f841c401fd settings improvements 2015-12-10 11:03:54 +03:00
Vadim Lopatin 176759910c settings dialog improvements 2015-12-10 10:09:30 +03:00
Vadim Lopatin 9e878d2c16 add inputbox dialog; add New Folder button to file dialog 2015-12-09 17:00:17 +03:00
Vadim Lopatin 167cc17d22 fix problem with inputing of { and } in German locale, windows 2015-12-09 15:55:54 +03:00
Vadim Lopatin 94bc5d23b3 Merge pull request #111 from nakajimakotaro/commentfix
comment fix
2015-12-08 20:07:19 +03:00
Vadim Lopatin aa1204df50 fixes 2015-12-08 15:57:59 +03:00
nakajima kotaro 9f6b2c7d34 comment fix 2015-12-08 21:22:48 +09:00
Vadim Lopatin f380eac0b4 settings object improvements 2015-12-08 10:19:13 +03:00
Vadim Lopatin 67544217fe fixes 2015-12-07 17:05:02 +03:00
Vadim Lopatin 1ce0d9c9b5 fixes 2015-12-07 16:53:45 +03:00
Vadim Lopatin 67ff73e84a file dialog improvements 2015-12-07 16:10:48 +03:00
Vadim Lopatin 29bf2c452a listeners refactoring 2015-12-07 11:58:20 +03:00
Vadim Lopatin c31d60951b StringListWinget 2015-12-06 09:27:18 +03:00
Vadim Lopatin ba1b13b290 refactoring of signal names 2015-12-04 14:04:41 +03:00