Save
Saving
  • A
    Aleph1

    @Robert it might take me a couple of days to get to this as I am still using Kode vs Kinc, and it looks like the Mac backend has changed significantly. Is Kinc stable(ish) now? If so I can attempt to upgrade to it.

    posted in Kode read more
  • A
    Aleph1

    I am trying to determine display resolution with Kore/Kode before spawning a window. On MacOS Mojave if I use the width and height methods of Kore::Display::primary() I get the values 1440 x 877, whereas the display resolution is actually 1440 x 900. I think this has to do with using [screen visibleFrame] vs [screen frame] in the Mac backend. Is there a better approach to getting these values? Would it would be possible to modify the function footprint for the width and height to accept a boolean as to whether to include menus in the calculation?

    posted in Kode read more
  • A
    Aleph1

    I have used the following example as a foundation for an engine I am building, but trying to understand what line 46 does, pipeline->inputLayout[1] = nullptr;

    https://github.com/Kore-Samples/Shader-Kore/blob/master/Sources/Shader.cpp

    If I comment that line out from any of my PipelineState instances and compile as OpenGL or Metal on OS X the pipeline still works as expected. Is this only required for other renderers (DirectX, etc.)?

    posted in Kode read more