Recent Posts

Pages: [1] 2 3 ... 10
1
WIP / Re: Early WIP on v2.55
« Last post by Patrice Terrier on December 15, 2018, 06:45:37 pm »
Done, thank you!
2
WIP / Re: Early WIP on v2.55 : A2C Fix
« Last post by Michael Lobko-Lobanovsky on December 15, 2018, 05:34:06 pm »
Patrice,

One of my recent renderers must have broken the global A2C -- it switches off permanently after 1 frame render.

To fix the problem, please add in renderers.h the following statements at the very end of both main render functions:

drawUsingFixedFuncPipeline()
........
            // Test rotation
            if (doRotate) { glPopMatrix(); }
        }
    }
    if (gP.nAlphaToCoverage) glEnable(GL_SAMPLE_ALPHA_TO_COVERAGE_ARB);
}


drawUsingProgrammablePipeline()
........
            // Test rotation
            if (doRotate) { glPopMatrix(); }
        }
    }
    if (gP.nAlphaToCoverage) glEnable(GL_SAMPLE_ALPHA_TO_COVERAGE_ARB);
    glUseProgram(0);
}
3
WIP / Re: Sketchfab Girls
« Last post by Patrice Terrier on December 15, 2018, 04:37:17 pm »
Here is the revisited tatoo.zip, i think that the wallpaper could be usefull for other stage scene.
4
WIP / Re: Sketchfab Girls
« Last post by Michael Lobko-Lobanovsky on December 15, 2018, 04:23:23 pm »
5
WIP / Re: Sketchfab Girls
« Last post by Patrice Terrier on December 15, 2018, 03:46:10 pm »
Revisited ;)
6
WIP / Re: Early WIP on v2.55
« Last post by Michael Lobko-Lobanovsky on December 15, 2018, 04:07:45 am »
Awesome, thnx!
7
WIP / Re: Early WIP on v2.55
« Last post by Patrice Terrier on December 14, 2018, 09:40:17 pm »
Easy

// Create a popup GDImage overlay window
HWND CreateSplitter(IN HINSTANCE hInstance) {
    RECT lpr; GetWindowRect(gP.hGL, &lpr);

    DWORD dwStyle = WS_POPUP | WS_VISIBLE;
    DWORD dwExStyle = WS_EX_TOOLWINDOW;
    HWND hWnd = CreateWindowEx(dwExStyle, GDImageClassName, NULL, dwStyle, lpr.left + Width(lpr), lpr.top, SPLITTER_WIDTH, Height(lpr), gP.hMain, 0, hInstance, NULL);
    if (IsWindow(hWnd)) {

        //Setup the custom color background here
        ZI_SetProperty(hWnd, ZI_GradientTop, ZD_ARGB(128, 0,255,0));
        ZI_SetProperty(hWnd, ZI_GradientBottom, ZD_ARGB(128, 0,255,0));

        ZI_UseWinLIFTbackground(hWnd, TRUE, FALSE);


The beauty of this API is that it would work also with a complex background, if you use it in the Callback WM_MOVING section
8
WIP / Re: Early WIP on v2.55
« Last post by Michael Lobko-Lobanovsky on December 14, 2018, 08:56:39 pm »
How can I make the splitter color exactly the gray right panel color? Is it an RGBA constant or a brush from the \Reader PNG/JPG images? How can I tile it with the CTLBACK.jpg skin? (I do not need translucency; it should be of the exact gray color the right panel uses)
9
WIP / Re: Early WIP on v2.55
« Last post by Michael Lobko-Lobanovsky on December 14, 2018, 07:45:50 pm »
Thank you very much, Patrice!

I will study the patch and then I will come back to you if I have any questions or remarks. :)
10
WIP / Re: Early WIP on v2.55
« Last post by Patrice Terrier on December 14, 2018, 07:29:51 pm »
Mike

Here is the splitter code + LIB and DLL

A you said small is beautifulů

You should easily find your way in, the point you will have to do, is inside MoveOverlay() where an offset should be used on the x location at the time the moving of the OGL controls is performed, you will have to use a new global parameter.

The Splitter callback is the place to use, to process the messages you want to monitor.

Pages: [1] 2 3 ... 10