Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 05 18:25
    Build #3385 passed
  • May 05 18:25
    Build #3385 passed
  • May 05 15:27
    Build #3384 passed
  • May 05 15:27
    Build #3384 passed
  • May 05 12:11
    Build #3383 passed
  • May 05 12:11
    Build #3383 passed
  • May 05 11:53
    Build #3382 passed
  • May 05 11:53
    Build #3382 passed
  • May 05 11:37
    Build #3381 passed
  • May 05 11:37
    Build #3381 passed
  • May 04 15:35
    Build #3379 passed
  • May 04 15:35
    Build #3379 passed
  • May 04 15:19
    Build #3378 passed
  • May 04 15:19
    Build #3378 passed
  • May 04 14:43
    Build #3377 passed
  • May 04 14:43
    Build #3377 passed
  • May 04 12:37
    Build #3374 passed
  • May 04 12:37
    Build #3374 passed
  • May 04 12:21
    Build #3373 passed
  • May 04 12:21
    Build #3373 passed
napalmtorch
@napalmtorch
Hopefully that helps
wakko
@octaviousrex

How can I make an image variable? Image img = new Image() doesn't work.

what error did you get

Quajak
@quajak

How can I make an image variable? Image img = new Image() doesn't work.

Currently only Bitmaps are supported see https://cosmosos.github.io/api/Cosmos.System.Graphics.Bitmap.html

RecursiveDescent
@RecursiveDescent
Will cosmos ever support paging?
YoshiFan100
@YoshiFan100
@napalmtorch That helps, I thought you didn't need a graphics driver, you could just use the cosmos one. I'll look into this driver stuff
Quajak
@quajak
@YoshiFan100 the cosmos built in drivers have improved in the devkit and should be almost as good
YoshiFan100
@YoshiFan100
I'll give both a spin and see if it works.
Ardhenis Muhammad Aflah
@sayaPintar
@Deniz-seckin55 you can a convert to bitmap array before in Image, this work for me.
napalmtorch
@napalmtorch
@YoshiFan100 You don't technically need an external graphics driver, but if you use the ones built-in you will need to create a back buffer yourself
I would recommend against using Canvas though as it as slow as hell xD
Ardhenis Muhammad Aflah
@sayaPintar
hi!, i need trouble to display a bmp file with VMWareSVGA by @nifanfa but if i want do display a image its make blank screen, btw i following the code and still use Setvram
if i changed vMwareSVGAII.DoubleBuffer_SetVRAM(); with draw image still blank too
Prisision
@Prisision
Is There A Way To draw Bitmaps with Cosmos Canvas???
nifanfa
@nifanfa
DrawImage
bitmap b = new bitmap(@"0:\yourbitmap.bmp"); but first,register your file system and. add your bitmap
nifanfa
@nifanfa
QQ截图20210411133713.png
QQ截图20210411133254.png
Converting Windows Fonts To Cosmos
BlitzWolfMatthew
@BlitzWolfMatthew
Nice, make comic sans, I'm curious :)
nifanfa
@nifanfa
QQ截图20210411152016.png
nifanfa
@nifanfa

os.png

will your system will crash for no reason? just like mine #1659

if this is problem solved i think we can develop further
napalmtorch
@napalmtorch
@nifanfa My OS is stable but that is because I'm using VGA and not SVGA, me and @KM198912 are actively trying to debug the SVGA driver and improve it but for now VGA is the best option
Ardhenis Muhammad Aflah
@sayaPintar
@nifanfa nice!!
anerruption
@anerruption:beerfactory.org
[m]
hey
i found a missing plug for Colorful.Console
Quajak
@quajak
whats missing?
Quajak
@quajak
Has anyone used CPU.GetMemoryMap()? If yes, were the results correct?
anerruption
@anerruption:beerfactory.org
[m]
a function called GetStdHandle()
um no i haven't used it yet
Quajak
@quajak
Are you using the devkit?
wakko
@octaviousrex
I regret to inform you all that my OS (Gizmo OS) will not support the Vulkan Graphics API yet. No high performance gaming for users of my OS (AKA me!)
BlitzWolfMatthew
@BlitzWolfMatthew
@octaviousrex wait what, are actually willing to implement Vulkan into cosmos?
wakko
@octaviousrex

@octaviousrex wait what, are actually willing to implement Vulkan into cosmos?

not really (that'd be sick tho)

napalmtorch
@napalmtorch
cosmos_mem.png
@quajak I was playing with it today, this is what I came up with. Wrote this to help @KM198912
Ignore that ROM, RAM, and STK at the top, that is for my Interpreter/VM
Quajak
@quajak
@napalmtorch Cool. Thank you! So it seems like its working as expeccted
Oliver Zhang
@Zhang-Dev-byte
Does Cosmos support multitasking, and if so, how do I use it?
Quajak
@quajak
currently not, but there is an open pr to add it
nifanfa
@nifanfa
i don't think cosmos needs multitasking
BlitzWolfMatthew
@BlitzWolfMatthew
It does
It is not a priority right now but keep in mind that every modern OS has multitasking.
nifanfa
@nifanfa
but it just run in a loop
105062425-8e6caf80-5ab5-11eb-9349-789a434d7629.gif
BlitzWolfMatthew
@BlitzWolfMatthew
Yeah, that does work, but as I said, its not reliable.
Imagine you port an application that also has other loops inside it
nifanfa
@nifanfa
windows works in the same way too