« first day (1549 days earlier)      last day (3475 days later) » 

11:19 PM
static void Main()
{
    IWindow window = Engine.CreateWindow("test", 640, 480);
    window.Update += window_Update;
    Thread windowThread = new Thread(window.Run);
    windowThread.Start();

    IWindow window2 = Engine.CreateWindow("test", 480, 640);
    window2.Update += window_Update;
    Thread window2Thread = new Thread(window2.Run);
    window2Thread.Start();

    while (windowThread.IsAlive && window2Thread.IsAlive)
        Thread.Sleep(0);
}
two windows each with a game loop on their own thread
how does that look for syntax?
variable names are shit. ignore them. :P
with this method, if you only have one window, you can just do...
IWindow window = Engine.CreateWindow("test", 640, 480);
window.Update += window_Update;
window.Run();
and most people will probably take that approach
 
@IcyDefiance seems ok
 
I didn't see anything wrong with the lambda version either :P
 
I'd change "Update" to "OnUpdate" or something like that, though
 
ah right, probably should
and there were other problems with the lambda version. it flat out didn't work. XD
and the best thing is, this approach also allows the XNA and OpenTK approach of inheriting from window and instantiating it from another file.
so people used to that can do things that way too
except I'll have to expose a class for that instead of an interface...
I'll come back to that one
 
what are you making, anyway?
 
11:25 PM
new engine. I scrapped my ECS thing and I'm taking a different approach now.
 
cool
 
I wanted this one to support multiple windows, just for the heck of it, and it took me a couple days to figure out how to do that
 
is it multiplatform?
 
should be. once I get something drawing I'll probably create a linux vm and test it there.
 
sounds cool
 
11:27 PM
I'm also coding it in such a way to support both OpenGL and DirectX, and multiple versions of each, but I'll only actually implement OpenGL 4.something at first
 
are you just wrapping opentk gamewindow in your window or are you doing something else?
 
I went a little lower level and wrapped NativeWindow and a GraphicsContext separately
GameWindow inherits from NativeWindow iirc... something like that anyway
 
okay, so you're the go-to guy when I'll start working on that stuff :D
 
if by go-to guy, you mean a guy who will confidently mislead you, then yeah probably :P
 
:D
 
11:33 PM
now to figure out why the windows appear to be locked up, even though they're drawing and updating fine... like I'm getting a waiting cursor when I mouse over them, and I can't drag them around or anything.
 
this new game "Evolve", that got to beta (or alpha? dunnolol) today, appeared in my steam games list
It seems to cost 50€ and I'm sure I didn't purchase it
I want someone to blame >:(
> 4 friends already own this game
 
steam does that sometimes, usually as a free trial. it'll probably just disappear after a while.
 
did everyone get it automatically or what?
I'm confused
 
probably. the trials are usually for everyone.
 
Pip
yeah
 
11:37 PM
it's not saying it's a trial or anything :(
 
mhm. same thing has happened to me with a few other games.
if it disappears in a week, you know that's what it was. if not, hey, free game.
that and the clunky interface are my two biggest annoyances with steam. oh, and how the store's video player glitches out when the steam window doesn't have focus.
not very big annoyances
 
11:50 PM
does any one know a simple way for my function at line 24 to take into account that the shape is an ellipse rather than a perfect circle here: jsfiddle.net/0vx8u3tb
 
15
Q: Check if a point is within an ellipse

Dan NeelyI have an ellipse centered at $(h,k)$, with semi-major axis $r_x$, semi-minor axis $r_y$, both aligned with the Cartesian plane. How do I determine if a point $(x,y)$ is within the area bounded by the ellipse?

 
thanks
 

« first day (1549 days earlier)      last day (3475 days later) »