
奇思妙想
DiamondC++
1145141919810
展开
-
C++ 用可变参设置OpenGL ES的Uniform
p.s.作者没试过实际运行,也不知道行不行…#include <GLES3/gl3.h>#include <iostream>enum Type{ F = 0, U = 4, I = 8,};template < typename T > bool less(T a, T b, T c){ return (b > a && b < c);}int switch_num(int type){ int f = t原创 2021-06-26 10:23:37 · 162 阅读 · 0 评论 -
[奇思妙想]控制台命令行
p.s.没完成,但也差不多了#include<iostream>#include<sstream>#include<conio.h>#include<string>#include<vector>using namespace std;int main(){ while (true) { string command; getline(cin, command); vector < string > d原创 2021-04-04 09:14:12 · 123 阅读 · 0 评论 -
[奇思妙想]文件控制台
背景众所周知,c4droid一旦使用像SDL什么的,就没法使用控制台,导致我不能在控制台查看错误日志或者输入文本(不是完全办不到,就是太麻烦),使得我只能输出到文件,所以,我打算干脆把文件作为控制台!Outputfstream头文件里都有,这里就不详细介绍了。InputI部分我打算通过比较新旧文件来实现。vector<info> get_diff(string before,string after/*,bool debug = false*/){ vector<info&原创 2021-03-14 15:53:20 · 130 阅读 · 0 评论