-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from h4570/new-rel
new-rel -> master
- Loading branch information
Showing
17 changed files
with
385 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
TARGET := tutorial_11.elf | ||
ENGINEDIR := ../../engine | ||
|
||
#The Directories, Source, Includes, Objects, Binary and Resources | ||
SRCDIR := src | ||
INCDIR := inc | ||
BUILDDIR := obj | ||
TARGETDIR := bin | ||
RESDIR := res | ||
SRCEXT := cpp | ||
VSMEXT := vsm | ||
VCLEXT := vcl | ||
VCLPPEXT := vclpp | ||
DEPEXT := d | ||
OBJEXT := o | ||
|
||
#Flags, Libraries and Includes | ||
CFLAGS := | ||
LIB := | ||
LIBDIRS := | ||
INC := -I$(INCDIR) | ||
INCDEP := -I$(INCDIR) | ||
|
||
include ../Makefile.tutorials-base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Ignore everything in this directory | ||
* | ||
# Except this file | ||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
# _____ ____ ___ | ||
# | \/ ____| |___| | ||
# | | | \ | | | ||
#----------------------------------------------------------------------- | ||
# Copyright 2024, tyra - https://github.com/h4570/tyra | ||
# Licensed under Apache License 2.0 | ||
# Wellington Carvalho <[email protected]> | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <tyra> | ||
#include <memory> | ||
|
||
namespace Tyra { | ||
|
||
class Tutorial11 : public Game { | ||
public: | ||
explicit Tutorial11(Engine* engine); | ||
~Tutorial11(); | ||
|
||
void init(); | ||
void loop(); | ||
|
||
private: | ||
void setDrawData(); | ||
void loadBags(); | ||
|
||
void setTextureRegionRepeat(); | ||
void setTextureDefaultWrap(); | ||
|
||
const u8 MAX_TILES = 4; | ||
u8 TILE_COL = 0; | ||
u8 TILE_ROW = 0; | ||
|
||
u8 shouldFlipTextureSettings = false; | ||
float limitTimeToFlip = 2.00f; | ||
float elapsedTime = 0; | ||
|
||
Engine* engine; | ||
|
||
Vec4 cameraPosition, cameraLookAt; | ||
M4x4 translation, rotation, scale, model; | ||
Texture* UVCheckerTex; | ||
|
||
std::array<Vec4, 6> vertices; | ||
std::array<Color, 6> colors; | ||
std::array<Vec4, 6> uvMap; | ||
|
||
StaticPipeline stapip; | ||
std::unique_ptr<StaPipBag> bag; | ||
std::unique_ptr<StaPipInfoBag> infoBag; | ||
std::unique_ptr<StaPipColorBag> colorBag; | ||
std::unique_ptr<StaPipTextureBag> texBag; | ||
}; | ||
|
||
} // namespace Tyra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Ignore everything in this directory | ||
* | ||
# Except this file | ||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Ignore everything in this directory | ||
* | ||
# Except this file | ||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
$ConfigFile = Join-Path $PSScriptRoot '../../windows-pcsx2.ps1' | ||
. $ConfigFile | ||
|
||
RunPCSX2 |
Oops, something went wrong.