Newbie need help

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
danielkreger
DCEmu Newbie
DCEmu Newbie
Posts: 1
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Wed May 04, 2022 9:43 pm
Has thanked: 0
Been thanked: 0

Newbie need help

Post by danielkreger »

Hi, Does anyone here have a simple tutorial that shows Hello World in the center of the screen with X,Y coordinates? I did a bit of research and couldn't find the information I wanted. Thanks!
Last edited by danielkreger on Tue Oct 18, 2022 4:27 am, edited 1 time in total.
User avatar
ThePerfectK
Insane DCEmu
Insane DCEmu
Posts: 147
Joined: Thu Apr 27, 2006 10:15 am
Has thanked: 27 times
Been thanked: 35 times

Re: Newbie need help

Post by ThePerfectK »

There are multiple ways to accomplish what you are describing, and how you accomplish them will radically change the behavior and what is being demonstrated.

If all you want is some text on your screen, the easiest way to do this is to use the bios font. The example for this is is under kos/examples/dreamcast/video/bfont/

However, the bios font is basically useless for any real-time application and relies on pixel plotting directly onto the vram framebuffer for the dreamcast. Literally all it will do is force some pixels onto the memory representation of the screen in the shape of text glyphs, but not demonstrate anything really useful about Dreamcast programming. If you want to put some text on the screen in a more correct way, you'll need to use a texture for a font and manipulate the uv coordinates as you render some square polygons to represent the text.

There are a couple of tutorials that show how to do this, the first is 2nd mix, which shows quite a bit more stuff than just font rendering, it's in: /kos/examples/dreamcast/2ndmix/

A better example would be the pvr demo, which renders some text scrolling across the screen with a background image. It's at kos/examples/dreamcast/png/
Still Thinking!~~
Post Reply