質問編集履歴

1

GraphicsFunctions.hの訂正

2020/11/03 06:21

投稿

tettyA
tettyA

スコア93

test CHANGED
File without changes
test CHANGED
@@ -144,7 +144,7 @@
144
144
 
145
145
  ```c++
146
146
 
147
- //GraphicsFunctions
147
+ //GraphicsFunctions.h
148
148
 
149
149
  #pragma once
150
150
 
@@ -238,7 +238,21 @@
238
238
 
239
239
  void DrawTexture(float X, float Y, float TX, float TY, Texture* texture) {
240
240
 
241
-
241
+ //誤
242
+
243
+ /* CustomVertex TCV[4] = {
244
+
245
+ {X,Y,0.0f,1.0f,TX,TY},//左上
246
+
247
+ {X + texture->Width,Y,0.0f,1.0f,TX + texture->Width,TY},//右上
248
+
249
+ {X,Y + texture->Height,0.0f,1.0f,TX,texture->Height + TY},//左下
250
+
251
+ {X + texture->Width,Y + texture->Height,0.0f,1.0f,TX + texture->Width,TY + texture->Height}//右下
252
+
253
+ };*/
254
+
255
+ //正
242
256
 
243
257
  CustomVertex TCV[4] = {
244
258
 
@@ -246,9 +260,9 @@
246
260
 
247
261
  {X + texture->Width,Y,0.0f,1.0f,TX + texture->Width,TY},//右上
248
262
 
249
- {X,Y + texture->Height,0.0f,1.0f,TX,texture->Height + TY},//左下
250
-
251
- {X + texture->Width,Y + texture->Height,0.0f,1.0f,TX + texture->Width,TY + texture->Height}//右下
263
+ {X + texture->Width,Y + texture->Height,0.0f,1.0f,TX + texture->Width,TY + texture->Height},//右下
264
+
265
+ {X,Y + texture->Height,0.0f,1.0f,TX,texture->Height + TY}//左下
252
266
 
253
267
  };
254
268