question about the spritesheet demo code

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
dcTom
DCEmu Junior
DCEmu Junior
Posts: 43
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Mon Feb 20, 2017 7:49 pm
Has thanked: 0
Been thanked: 0

question about the spritesheet demo code

Post by dcTom »

Code: Select all

/* Load spritesheets */
	memset(&stage1_actors_sheet, 0, sizeof(stage1_actors_sheet));
	memset(&ui_sheet,            0, sizeof(stage1_actors_sheet));
why does the second memset funktion uses as third argument sizeof(stage1_actors_sheet)
and not sizeof(ui_sheet) ?
User avatar
bogglez
Moderator
Moderator
Posts: 578
Joined: Sun Apr 20, 2014 9:45 am
Has thanked: 0
Been thanked: 0

Re: question about the spritesheet demo code

Post by bogglez »

(a wild bogglez appears)

Copy paste error (^^)v
Wiki & tutorials: http://dcemulation.org/?title=Development
Wiki feedback: viewtopic.php?f=29&t=103940
My libgl playground (not for production): https://bitbucket.org/bogglez/libgl15
My lxdream fork (with small fixes): https://bitbucket.org/bogglez/lxdream
|darc|
DCEmu Webmaster
DCEmu Webmaster
Posts: 16373
Joined: Wed Mar 14, 2001 6:00 pm
Location: New Orleans, LA
Has thanked: 103 times
Been thanked: 90 times
Contact:

Re: question about the spritesheet demo code

Post by |darc| »

bogglez wrote: Mon Jun 05, 2023 3:07 am(a wild bogglez appears)
:lol: Glad to see you're okay, it's been a while!
These users thanked the author |darc| for the post:
Ian Robinson
It's thinking...
User avatar
bogglez
Moderator
Moderator
Posts: 578
Joined: Sun Apr 20, 2014 9:45 am
Has thanked: 0
Been thanked: 0

Re: question about the spritesheet demo code

Post by bogglez »

I nuked 2 Dreamcasts tho 👼🏻💣
Wiki & tutorials: http://dcemulation.org/?title=Development
Wiki feedback: viewtopic.php?f=29&t=103940
My libgl playground (not for production): https://bitbucket.org/bogglez/libgl15
My lxdream fork (with small fixes): https://bitbucket.org/bogglez/lxdream
Post Reply