Files
RCBASIC4/doc/files/update.html
2024-12-14 15:28:03 -05:00

48 lines
955 B
HTML

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Update [RCBasic Doc] </title>
</head>
<body>
<p><h2>sub Update() </h2></p>
<p>
This is the most important function in a graphics window. It must be called every frame.
</p>
<p>
It performs a few different operations
</p>
<ol>
<li>
Renders all graphics
</li>
<li>
Checks for every event on the window
<ul>
<li>
Keyboard and Mouse Events
</li>
<li>
Joystick Events
</li>
<li>
Window Control Events (minimize, maximize, close, etc.)
</li>
</ul>
</li>
<li>
Updates the physics simulation for 2D and 3D objects if enabled
</li>
<li>
Makes breakfast if you are hungry
</li>
</ol>
<p>
If you have a window open, you should have this function being called in your main render loop every frame.
</p>
<p>
</body>
</html>