Skip to content

Commit f1c3d81

Browse files
committed
update v. beta 0.1.2: remove dependencies for external files
1 parent 610bc00 commit f1c3d81

11 files changed

+922
-205
lines changed

bin/play.exe

2.51 KB
Binary file not shown.

include/image.h

+753
Large diffs are not rendered by default.

include/main.h

+17-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Mindou (minsu5875@naver.com)
44
* @brief external & user define library & etc. function/variable package header
55
* @version 0.1
6-
* @date (first date: 2023-05-08)
6+
* @date (first date: 2023-05-08, last date: 2023-05-23)
77
*
88
* @copyright Copyright (c) 2023 Minsu Bak
99
*
@@ -17,6 +17,7 @@
1717

1818
// external library & user define library
1919
#include "raylib.h"
20+
#include "image.h"
2021

2122
/**
2223
* @brief main.h variable info
@@ -27,7 +28,6 @@
2728
* #define SCREEN_H n screen size for height
2829
* #define BTN_W n button size for width
2930
* #define BTN_H n button size for height
30-
* bool FILE_NOT_FOUND n file find flag (default: false)
3131
* int btnClickFlag y define click flag for each buttons
3232
*
3333
*/
@@ -37,9 +37,20 @@
3737
#define SCREEN_H 600 // screen size: height
3838
#define BTN_W 100 // button size: width
3939
#define BTN_H 62 // button size: height
40+
#define QAUNTUM 2 // default time quantum
41+
#define P_COUNT 5 // default process count
42+
#define P_PARAM 4 // default process parameters count
4043

41-
bool FILE_NOT_FOUND = false; // file find flag
42-
int btnClickFlag[7]; // define click flag for each buttons
44+
int btnClickFlag[7]; // define click flag for each buttons
45+
46+
// process default data to be used by the simulator
47+
int pInfo[P_COUNT][P_PARAM] = {
48+
{0, 0, 10, 3}, // process 0, arrival 0, burst 10, priority 3
49+
{1, 1, 28, 2}, // process 1, arrival 1, burst 28, priority 2
50+
{2, 2, 6, 4}, // process 2, arrival 2, burst 6, priority 4
51+
{3, 3, 4, 1}, // process 3, arrival 3, burst 4, priority 1
52+
{4, 4, 14, 2} // process 4, arrival 4, burst 14, priority 2
53+
};
4354

4455
// button color flag
4556
const Color colorTag[] = {
@@ -55,8 +66,8 @@ const Color colorTag[] = {
5566

5667
// logo position
5768
const Rectangle logo_position[] = {
58-
{.x = SCREEN_W * 0.7f , .y = SCREEN_H * 0.8f, .width = 128, .height = 128},
59-
{.x = SCREEN_W * 0.85f, .y = SCREEN_H * 0.8f, .width = 96 , .height = 96 }
69+
{.x = SCREEN_W * 0.70f, .y = SCREEN_H * 0.8f, .width = 128, .height = 128},
70+
{.x = SCREEN_W * 0.83f, .y = SCREEN_H * 0.8f, .width = 96 , .height = 96 }
6071
};
6172

6273
// script array

include/process.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
// card size
4848
const Rectangle card_bound = {
49-
.x = 60, .y = 0, .width = 10, .y = 16
49+
.x = 0, .y = 0, .width = 10, .y = 16
5050
};
5151

5252
/**

include/queue.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Mindou (minsu5875@naver.com)
44
* @brief basic queue structure / edit for CPU scheduler simulator
55
* @version 0.1
6-
* @date (last update: 2023-05-09)
6+
* @date (last update: 2023-05-31)
77
*
88
* @copyright Copyright (c) 2022 Minsu Bak
99
*
@@ -22,7 +22,7 @@
2222
* @brief queue.h variable info
2323
*
2424
* type name pointer info
25-
* #define MAX n queue storage size
25+
* #define MAX n queue storage size
2626
* int front n queue front data flag
2727
* int rear n queue rear data flag
2828
* Process queue y structre queue array for Process data storage

res/images/6pm-logo_128x128.png

-1.61 KB
Binary file not shown.

res/images/6pm-logo_512x512.png

-12 KB
Binary file not shown.

res/images/cards_70x10.png

-196 Bytes
Binary file not shown.

res/images/raylib-logo_128x128.png

-655 Bytes
Binary file not shown.

res/txt/data.txt

-7
This file was deleted.

0 commit comments

Comments
 (0)