On Wednesday, 12 August 2015 at 05:26:33 UTC, JN wrote:
You need a vertex and a fragment shader. You can't render
anything in OGL3 without shaders.
I thought that was the case, but the tutorial I was looking at
didn't have any shaders at that point. I added a shader program.
Also, you seem
On Wednesday, 12 August 2015 at 05:46:27 UTC, Mike Parker wrote:
On Wednesday, 12 August 2015 at 05:34:22 UTC, BBasile wrote:
[...]
It seems to me that your driver is doing things it isn't
actually supposed to do. This code is binding a vertex buffer
object with a function which is supposed
On Wednesday, 12 August 2015 at 05:34:22 UTC, BBasile wrote:
static this()
{
DerelictGL3.load;
DerelictGL.load;
DerelictSDL2.load;
SDL_Init(SDL_INIT_VIDEO);
}
I should point out that *either* DerelictGL3 *or* DerelictGL
should be loaded, but never both. DerelictGL actually ext
On Wednesday, 12 August 2015 at 05:35:30 UTC, Mike Parker wrote:
One of the best I've seen is by Anton Gerdelan [1]. The four
[1] http://antongerdelan.net/opengl/index.html
On Wednesday, 12 August 2015 at 05:34:22 UTC, BBasile wrote:
For me the following code works:
---
import derelict.sdl2.sdl;
import derelict.opengl3.gl3;
import derelict.opengl3.gl;
import std.stdio;
static this()
{
DerelictGL3.load;
DerelictGL.load;
DerelictSDL2.load;
SDL_Init(
On Wednesday, 12 August 2015 at 03:32:47 UTC, DarthCthulhu wrote:
So, any ideas what I'm doing wrong?
Too much to list. I suggest you get going with a good tutorial.
One of the best I've seen is by Anton Gerdelan [1]. The four
basic tutorials he has on his site will be enough to get you up
On Wednesday, 12 August 2015 at 03:32:47 UTC, DarthCthulhu wrote:
So I decided to try some OGL3 stuff in D utilizing the Derelict
bindings and SDL. Creating an SDL-OGL window worked fine, but
I'm having trouble with doing the most basic thing of rendering
a triangle. I get the window just fine
On Wednesday, 12 August 2015 at 03:32:47 UTC, DarthCthulhu wrote:
So I decided to try some OGL3 stuff in D utilizing the Derelict
bindings and SDL. Creating an SDL-OGL window worked fine, but
I'm having trouble with doing the most basic thing of rendering
a triangle. I get the window just fine
On Tuesday, 11 August 2015 at 21:38:49 UTC, John Colvin wrote:
On Tuesday, 11 August 2015 at 19:30:02 UTC, Laeeth Isharc wrote:
Hi.
Basic question: suppose I have a SortedRange and want to find
the index of the first entry of an array of structs matching a
needle struct.
What's the best way
So I decided to try some OGL3 stuff in D utilizing the Derelict
bindings and SDL. Creating an SDL-OGL window worked fine, but I'm
having trouble with doing the most basic thing of rendering a
triangle. I get the window just fine and the screen is being
properly cleared and buffered, but no tria
On 12/08/2015 10:50 a.m., Clayton wrote:
Hello everyone,
Am looking for someone who could help review my code . As an entry
exercise to D am converting 3 C implementations of popular pattern
matching algorithms. The idea is to have 6 final implementations ( 3
compile-time and 3 runtime) . I thi
Hello everyone,
Am looking for someone who could help review my code . As an
entry exercise to D am converting 3 C implementations of popular
pattern matching algorithms. The idea is to have 6 final
implementations ( 3 compile-time and 3 runtime) . I think am
basically done with the coding,
When programming i have encountered a simple ( i think ) problem,
yet i can't get my head around it. I am trying to convert a
string ( like "#FF00FF" for magenta ) into a color. I figured out
that i need to skip the first character '#' and then using
"chunks" range convert each pair of 2 chars
On Tuesday, 11 August 2015 at 22:11:51 UTC, Marcin Szymczak wrote:
/usr/include/dlang/dmd/std/conv.d(295): Error: template
std.conv.toImpl cannot deduce function from argument types
!(ubyte)(Take!string, int), candidates are:
I don't think to! with the base given works on the chunked
ranges,
On Tuesday, 11 August 2015 at 19:30:02 UTC, Laeeth Isharc wrote:
Hi.
Basic question: suppose I have a SortedRange and want to find
the index of the first entry of an array of structs matching a
needle struct.
What's the best way to do that? It's not clear that countUntil
treats a SortedRan
On Tuesday, 11 August 2015 at 19:56:02 UTC, Suliman wrote:
The code look very trivial, but I am getting infinity loop like:
2014-Aug-02
2014-Aug-02
2014-Aug-02
...
2014-Aug-02
Date startDate = Date.fromISOExtString("2014-08-01");
Date currentDate = to!(Date)(Clock.currTime()-1.days);
//becau
On Tuesday, 11 August 2015 at 19:56:02 UTC, Suliman wrote:
Date startDate = Date.fromISOExtString("2014-08-01");
[...]
Date nextday;
while (nextday < currentDate)
{
nextday = startDate + 1.days;
writeln(nextday);
}
startDate doe
On Tue, Aug 11, 2015 at 07:56:00PM +, Suliman via Digitalmars-d-learn wrote:
[...]
> Date startDate = Date.fromISOExtString("2014-08-01");
>
> Date currentDate = to!(Date)(Clock.currTime()-1.days); //because current
> day is not finished
>
> writeln(startDate);
> writeln(currentD
The code look very trivial, but I am getting infinity loop like:
2014-Aug-02
2014-Aug-02
2014-Aug-02
...
2014-Aug-02
Date startDate = Date.fromISOExtString("2014-08-01");
Date currentDate = to!(Date)(Clock.currTime()-1.days); //because
current day is not finished
writeln(startDate);
Hi.
Basic question: suppose I have a SortedRange and want to find the
index of the first entry of an array of structs matching a needle
struct.
What's the best way to do that? It's not clear that countUntil
treats a SortedRange specially.
I could get the lowerBound and then length or walk
Thanks to all! The problem is localized!
On Tuesday, 11 August 2015 at 15:18:31 UTC, Martin Nowak wrote:
You either have a wrong import paths (check which dmd.conf is
used with 'dmd -v non_existent') or a stable object_.di file.
Or maybe a stale .obj or .lib file, referencing the old symbol.
Try a make clean too - delete any .obj and
On Tuesday, 11 August 2015 at 15:04:29 UTC, MGW wrote:
Hi!
My project has an error link:
Error 42: Symbol Undefined
_D6object9Exception6__ctorMFNaNbNfAyaAyakC6object9ThrowableZC9Exception
On dmd 2.067.* everything gathered without mistakes. Where to
look for a mistake?
Try ddemangle (part
On Tuesday, 11 August 2015 at 15:10:57 UTC, Dominikus Dittes
Scherkl wrote:
See the changelog.
The compiler is now pickier if you forgot to link something
explicitly.
That shouldn't affect an Exception constructor through since they
are part of the core druntime.
I suspect it has to do wit
On Tuesday, 11 August 2015 at 15:04:29 UTC, MGW wrote:
Hi!
My project has an error link:
Error 42: Symbol Undefined
_D6object9Exception6__ctorMFNaNbNfAyaAyakC6object9ThrowableZC9Exception
On dmd 2.067.* everything gathered without mistakes. Where to
look for a mistake?
See the changelog.
Hi!
My project has an error link:
Error 42: Symbol Undefined
_D6object9Exception6__ctorMFNaNbNfAyaAyakC6object9ThrowableZC9Exception
On dmd 2.067.* everything gathered without mistakes. Where to
look for a mistake?
26 matches
Mail list logo