This file contains hidden or 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
//1. helloworld | |
fn nod() { | |
println!("hello, world!"); | |
} | |
//2. printing | |
fn printing() { | |
let num: i32 = 5; | |
let pi: f32 = 3.141516; | |
let str_pi: String = format!("{:.2}", pi); |
This file contains hidden or 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 is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit | |
of the public at large and to the detriment of our heirs and |
This file contains hidden or 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
SDL3 Fast Pixel Manipulation Example | |
************************************ | |
This project demonstrates dynamic Texture Updates | |
************************************************* | |
Updates a streaming texture on every frame using either locked or lockless pixel manipulation techniques. | |
Performance Analysis | |
******************** |
This file contains hidden or 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
#include <string> | |
#include <map> | |
#include <functional> | |
#include <vector> | |
#include <iostream> | |
#include <set> | |
#include <algorithm> | |
using Message = std::string; | |
using Topic = std::string; |
This file contains hidden or 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 is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit | |
of the public at large and to the detriment of our heirs and |
This file contains hidden or 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
#include <iostream> | |
#include <list> | |
#include <algorithm> | |
using namespace std; | |
struct MoneyBundle | |
{ | |
int denomination; | |
int count; |
This file contains hidden or 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
//Copyright © 2010 - 2024 Manoj M J and Oskar Schramm | |
//All Rights Reserved | |
[Game Development] | |
[Foundations] | |
[TOC] | |
Introduction | |
Platforms | |
Programming |
This file contains hidden or 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
//Copyright © 2017 Manoj M J | |
//All Rights Reserved | |
/* | |
A method to slide camera along an obstacle. | |
Note: This script uses Unity3D game engine api and libraries. | |
*/ | |
void SlideCameraOnCollision( | |
Vector3 obstacleNormal, | |
Vector3 cameraForward, |
This file contains hidden or 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
#if defined(_WIN32) | |
#define BUILD_FOR_WINDOWS | |
#endif | |
#ifdef BUILD_FOR_WINDOWS | |
#pragma warning(disable:4996) | |
#define _WINSOCK_DEPRECATED_NO_WARNINGS | |
#endif | |
#include <stdio.h> |
This file contains hidden or 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
/* | |
* Displays gameobjects linked to each script present in a scene, useful for development and debugging. | |
* Added features: | |
* You can search for a particular component, and turn off UnityEngine componets from displaying. | |
* While searching you don't have to type the entire name. | |
*/ | |
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; |
NewerOlder