Volcanoscar / emo-framework

Automatically exported from code.google.com/p/emo-framework
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Spriteの左右反転について #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Spriteの左右反転をしようとスケールのxを-1にしてみました��
�
表示が消えてしまいました。
iOS版で説明するとEmoEngine.mのinitDrawFrameにglEnable(GL_CULL_FACE);と
いうのがありますがglDisable(GL_CULL_FACE);にすれば反転でも表��
�されます。
3Dと違い2D描画専用なので背面描画によるオーバードローも�
��りませんので
glDisable(GL_CULL_FACE);でもいいと思うのですがどうでしょう?
これなら左右上下反転に対応できますし。

Original issue reported on code.google.com by sat...@gmail.com on 28 Sep 2011 at 5:54

GoogleCodeExporter commented 9 years ago
なるほど、反転したいというニーズがあるんですね。特に��
�題ないと思うので glDisable(GL_CULL_FACE);にします。

Original comment by infosia...@gmail.com on 28 Sep 2011 at 9:11

GoogleCodeExporter commented 9 years ago
ありがとうございます。
それではよろしくお願いします。

Original comment by sat...@gmail.com on 28 Sep 2011 at 9:56

GoogleCodeExporter commented 9 years ago
GL_CULL_FACE を無効化したバージョンをリリースしました。

Original comment by infosia...@gmail.com on 30 Sep 2011 at 2:18

GoogleCodeExporter commented 9 years ago
0.1.6にてスプライトの反転がうまくいっているのを確認しま
した。
MouseJointのサンプルまで有りとても助かります。
ありがとうございました。

余談ですが現在xcodeにてmain.nutをmain.jsにリネームしConstants.h�
��修正し
ビルドしていますがこれだとコードのハイライト表示とコ��
�ド補完が出来て便利でした。

Original comment by sat...@gmail.com on 2 Oct 2011 at 9:28