Search found 97 matches

by NaturalDemon
October 31st, 2012, 2:33 pm
Forum: Everything
Topic: Update: A simpel mouse out of window solution?
Replies: 11
Views: 4759

Re: A simpel mouse out of window solution?

wel ... maybe i said it wrong... but during my clumpsyness .... i tried to draw a line that was longer than window size. i think .... it because to mouse server default value is -1 .... and i crashed the program ... so if the mouse is outside the window .... acces violation. // this code should caus...
by NaturalDemon
October 31st, 2012, 2:27 pm
Forum: Everything
Topic: catching window resize event correctly
Replies: 2
Views: 1519

Re: catching window resize event correctly

Doesn't seem like a it would be a timing problem... especially since GetClientRect is an async function. WinAPI can be really fiddly at time and the documentation can leave a lot to be desired. Let us know if you figure it out bro. :) i was reading some 3-4 hours about it ... wel watching code exam...
by NaturalDemon
October 31st, 2012, 9:22 am
Forum: Everything
Topic: Intermediate C++ lesson 6 -> the window size reference
Replies: 5
Views: 2429

Re: Intermediate C++ lesson 6 -> the window size reference

isn't it possible to redraw a scene wit new dimensions on a resize event in the frame buffer?

destroy the buffer and insert a resized one?

maybe it can't be done seamless.... but with a messagebox ..... usng th delay ... to reset the internal stuff ...

it's a bummer ... having a fixed screen size.
by NaturalDemon
October 31st, 2012, 9:13 am
Forum: Everything
Topic: Intermediate C++ lesson 6 -> the window size reference
Replies: 5
Views: 2429

Intermediate C++ lesson 6 -> the window size reference

in order to pas the Window size or client rect (in technical terms) to the D3DGraphics class, this is what you have to change // windows.cpp #define WINDOWSIZEX 800 #define WINDOWSIZEY 600 int winSizeX = WINDOWSIZEX; int winSizeY = WINDOWSIZEY; int WINAPI wWinMain( HINSTANCE hInst,HINSTANCE,LPWSTR,I...
by NaturalDemon
October 31st, 2012, 8:19 am
Forum: Everything
Topic: catching window resize event correctly
Replies: 2
Views: 1519

catching window resize event correctly

case WM_SIZING: { if (hWnd) { pRect = (RECT*)lParam; int a = 2 + 3; switch( wParam ) { case WMSZ_BOTTOM: case WMSZ_BOTTOMLEFT: case WMSZ_BOTTOMRIGHT: case WMSZ_LEFT: case WMSZ_RIGHT: case WMSZ_TOP: case WMSZ_TOPLEFT: case WMSZ_TOPRIGHT: { RECT r; GetClientRect(hWnd, &r); break; } } } } break; case ...
by NaturalDemon
October 31st, 2012, 4:43 am
Forum: Everything
Topic: Update: A simpel mouse out of window solution?
Replies: 11
Views: 4759

Update: A simpel mouse out of window solution?

// game.h . .. ... private: int lastMouseX; int lastMouseY; // game.cpp Game::Game( HWND hWnd,const KeyboardServer& kServer,const MouseServer& mServer) : gfx( hWnd ), audio( hWnd ), kbd( kServer ), mouse( mServer ), lastMouseX(0), // <---------- lastMouseY(0), // <---------- ... .. . void Game::Go()...
by NaturalDemon
October 30th, 2012, 4:23 am
Forum: Everything
Topic: Network test
Replies: 75
Views: 26102

Re: Network test

I have lived a few years in the box of Second life. made some bots coded in C# using the Lib secondlife or currently after some copyright troubles ... lib OMV(openmeta verse). (i made some money whit it until George bush decided that Visa card being used for online gambling is wrong and the policy o...