Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with VGAScreen hasn't definitions "ScreenSize" and "ColorDepth" and "GetFrameBuffer" #2999

Open
DeafMan1983 opened this issue Apr 16, 2024 · 3 comments

Comments

@DeafMan1983
Copy link

DeafMan1983 commented Apr 16, 2024

Hello,

I can't find definitions for VGAScreen because I really want to write an example with my own. But "ChatGPT" helped me an excellent example.

But I really don't understand where is full documentation if I understand correct for definitions of VGAScreen:

using System;
using Cosmos.System.Graphics;

namespace CosmosGraphicsExample
{
    public class Program : Cosmos.System.Kernel
    {
        protected override void BeforeRun()
        {
            // Set VGA graphics mode (320x200, 8-bit color depth)
            VGAScreen.SetGraphicsMode(VGAScreen.ScreenSize.Size320x200, VGAScreen.ColorDepth.BitDepth8);

            // Logic ...
        }

        // Run ...

    }
}

What's it becoming to new version of latest Cosmos?
Because Visual Studio got red underlines cause VGAScreen hasn't definitions.

Because I am exticed to test with Cosmos. Thank you!

Thank so much!

@zarlo
Copy link
Member

zarlo commented Apr 17, 2024

@DeafMan1983
Copy link
Author

DeafMan1983 commented Apr 17, 2024

But I would like to access GetFrameBuffers or GetPixels and SetPixels for custom pixels like SDL2's pixels.
uint[] GetPixels should rename from GetFrameBuffers.

Because some developers want to use Software Rasterization or Rendering on own OS.

Please get back Pixels/Framebuffers getter + setter to newest version of CosmosOS. Thanks

@zarlo
Copy link
Member

zarlo commented Apr 17, 2024

if you want access to the framebuffer you have to use the low level drivers that the Canvas system uses

there is GetPointColor and DrawPoint for single pixel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants