Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
af9c259
delete files that can be put into the compiler-directory
joakibhu Jan 26, 2026
835718e
updated includepath, compilerpath
joakibhu Jan 27, 2026
37ee5af
sdl2-headers are in the SDL2-directory
joakibhu Jan 27, 2026
5821344
Adds image cache and image buffer-manipulations
Sep 30, 2025
a93d820
Clean up includes
Sep 30, 2025
61d3f59
Reintroduce image load exception
Sep 30, 2025
47ec3b7
Publish exercise 4
Jan 25, 2026
7daae39
Task for lecture 6
Jan 26, 2026
5ed3c1e
Publish exercise 5
Feb 2, 2026
efbd21e
Added task for lecture 7
Feb 5, 2026
309ae2a
fixed image
Oct 10, 2026
697d167
Publisere øving 6
Feb 9, 2026
85f568e
Handout lecture 8
Feb 12, 2026
42ccbe6
handout ØF6
Feb 12, 2026
04e0e00
added exercise 7
Feb 16, 2026
b01ff82
Couple of demonstrations for lecture 10
Feb 18, 2026
443502a
One more demonstration
Feb 19, 2026
7ed43da
Added a task
Feb 19, 2026
008e156
Publish O08
Feb 23, 2026
fd0197a
Updated O08 pdf
Feb 23, 2026
1a45a30
updated pdf
Feb 25, 2026
fdcfd62
removed progress bar
Feb 27, 2026
ad2400d
ø9
Mar 2, 2026
94c451b
Added Stopwatch class
Mar 5, 2026
ab25e0f
Added task file
Mar 5, 2026
d577583
fix transparent colors
Mar 2, 2026
2605194
deleted old windows setup
joakibhu Jan 25, 2026
fed872d
added a powershell script for installing everything
joakibhu Jan 25, 2026
384b9ee
added another script using scoop instead
Feb 24, 2026
e9b16e5
changed wording and added comment
Feb 24, 2026
10a9d78
added top comment
Feb 24, 2026
045eb32
properties
Oct 10, 2026
c5e0548
YOLO edit on fixing multiple triggers on Button widget
Apr 7, 2026
97f3427
implement drawing region of image
Mar 2, 2026
5a7b3f5
flip_image enum
Oct 10, 2026
7719b90
Added example projects into templates
Mar 18, 2026
ed0ccff
fix bug + correct name draw_text
Mar 9, 2026
b18040f
button
Oct 10, 2026
9a5b2ed
button again
Oct 10, 2026
fcdb881
button again
Oct 10, 2026
89edb1c
Started implementing test files
Jun 25, 2026
5515043
Revert "Started implementing test files"
Jun 25, 2026
cc7b9d0
install tools using bash script on mac
May 22, 2026
168c21d
added flags and verbose logging
May 26, 2026
a7c26d9
small additions to install script
Jul 13, 2026
71fc959
corrected function name
Jul 13, 2026
6c49011
moved new line
Jul 13, 2026
a933704
updated meson and print title in the beginning of the script
Jul 13, 2026
9f17ac5
moved windows scripts to setup folder
Jul 13, 2026
fcfa67a
added clang-tidy config
May 15, 2026
eeff80d
includepath
Oct 10, 2026
3cc04b9
added include and use .at for map access due to compiler error
Jul 13, 2026
254156b
added missing dependencies for sdl2_mixer and updated all
Jul 14, 2026
d6451dc
convert path to string before c_str
Jul 20, 2026
31fa7c1
also move path in move-operator
Jul 27, 2026
c798df8
is it fixed now?
Oct 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions configuration/.vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"${workspaceFolder}/subprojects/animationwindow/include/**",
"${workspaceFolder}/subprojects/std_lib_facilities/**",
"${workspaceFolder}/subprojects/sdl2_image_windows/include/**",
"${workspaceFolder}/subprojects/sdl2_mixer_windows/include/**",
"${workspaceFolder}/subprojects/sdl2_mixer_windows/include/**",
"${workspaceFolder}/subprojects/sdl2_windows/include/**"
],
"defines": [
Expand All @@ -17,16 +17,16 @@
],
"cStandard": "c17",
"cppStandard": "c++23",
"compilerPath": "C:\\TDT4102-mingw64\\bin\\gcc",
"compileCommands": "${workspaceFolder}/build/compile_commands.json",
"compilerPath": "C:\\TDT4102-mingw64\\bin\\g++",
"compileCommands": "build/compile_commands.json",
"intelliSenseMode": "windows-gcc-x64"
},
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"${workspaceFolder}/subprojects/animationwindow/include/**",
"${workspaceFolder}/subprojects/std_lib_facilities/**"
"${workspaceFolder}/subprojects/std_lib_facilites/**"
],
"defines": [
"_DEBUG",
Expand Down
11 changes: 10 additions & 1 deletion dependencies/subprojects/animationwindow/include/Image.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace TDT4102 {

struct ImageCache;

enum class FlipImage {
NONE, HORIZONTAL, VERTICAL
};
Expand Down Expand Up @@ -78,10 +78,13 @@ namespace TDT4102 {

void load(SDL_Renderer* renderer);

<<<<<<< HEAD
=======
void draw(SDL_Renderer* renderer, TDT4102::Point location,
int imageWidth = 0, int imageHeight = 0,
double angleDegrees = 0, TDT4102::Point rotationOrigin = {0, 0});

>>>>>>> main
/// Does conditional texture cleanup.
/// Unsets the associated texture pointer
void cleanupTexture();
Expand All @@ -94,10 +97,16 @@ namespace TDT4102 {
void reset();

static ImageCache cache;
<<<<<<< HEAD

void draw(SDL_Renderer* renderer, TDT4102::Point location, int imageWidth = 0, int imageHeight = 0, double angleDegrees = 0, TDT4102::Point rotationOrigin = {0, 0});
void drawRegion(SDL_Renderer* renderer, TDT4102::Point location, int imageWidth = 0, int imageHeight = 0, TDT4102::Point sourceTopLeftPoint = {0, 0}, int sourceWidth = 0, int sourceHeight = 0, SDL_RendererFlip flip = SDL_FLIP_NONE);
=======

void drawRegion(SDL_Renderer* renderer, TDT4102::Point location,
int imageWidth = 0, int imageHeight = 0,
TDT4102::Point sourceTopLeftPoint = {0, 0},
int sourceWidth = 0, int sourceHeight = 0, SDL_RendererFlip flip = SDL_FLIP_NONE);
>>>>>>> main
};
}
1 change: 1 addition & 0 deletions dependencies/subprojects/animationwindow/src/Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ void TDT4102::Image::setPixels(const std::vector<TDT4102::Color> &pixels, int wi
state = ImageState::FromBuffer;
}


void TDT4102::Image::draw(SDL_Renderer *renderer, TDT4102::Point location, int imageWidth, int imageHeight, double angleDegrees, TDT4102::Point rotationOrigin) {
// We need a reference to SDL_Renderer to perform the loading operation
// This requires loading it once it gets used
Expand Down
198 changes: 0 additions & 198 deletions dependencies/subprojects/sdl2_image_windows/CHANGES.txt

This file was deleted.

Binary file not shown.
4 changes: 0 additions & 4 deletions dependencies/subprojects/sdl2_image_windows/copy.py

This file was deleted.

Loading