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

Add example for stereoscopic 3D with citro2d #53

Merged
merged 3 commits into from
Feb 5, 2023

Conversation

KonPet
Copy link
Contributor

@KonPet KonPet commented Jan 29, 2023

The only example I could find using both stereoscopic 3D and citro2d is the composite_scene example, which can look intimidating. This example aims to be as simple and as easy to understand as possible

@fincs
Copy link
Member

fincs commented Feb 4, 2023

And also, stereocopic_citro2d -> stereoscopic_2d (also notice the typo fix)

@fincs fincs merged commit 191861e into devkitPro:master Feb 5, 2023
Comment on lines +49 to +53
CFLAGS := -g -Wall -O2 -mword-relocations \
-fomit-frame-pointer -ffunction-sections \
$(ARCH)

CFLAGS += $(INCLUDE) -DARM11 -D_3DS
Copy link
Contributor

@oreo639 oreo639 Feb 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit late sorry, but -fomit-frame-pointer is useless here and -DARM11 -D_3DS should be replaced with -D__3DS__

In file included from /opt/devkitpro/libctru/include/c3d/types.h:3,
                 from /opt/devkitpro/libctru/include/citro3d.h:11,
                 from /opt/devkitpro/libctru/include/citro2d.h:15,
                 from /home/oreo639/git/3ds-examples/graphics/gpu/stereoscopic_2d/source/main.cpp:3:
/opt/devkitpro/libctru/include/3ds.h:12:2: warning: #warning "Please update your Makefile and replace -DARM11 -D_3DS with -D__3DS__" [-Wcpp]
   12 | #warning "Please update your Makefile and replace -DARM11 -D_3DS with -D__3DS__"
      |  ^~~~~~~

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

Successfully merging this pull request may close these issues.

None yet

3 participants