Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lmj01 committed May 8, 2024
1 parent b7ae88d commit 5f55959
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 1 deletion.
12 changes: 12 additions & 0 deletions cg/opengl.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,18 @@ if(ptr)
glBindBuffer(GL_PIXEL_PACK_BUFFER, 0);
```

## 接口

### [glDrawBuffers](https://registry.khronos.org/OpenGL-Refpages/gl4/html/glDrawBuffers.xhtml)

define an array of buffers into which outputs from the fragment shader data will be written, shader输出到缓存中。它需要绑定Framebuffer Object,如果是0,就是默认的framebuffer绑定。

```c
GLuint attachments[] = { GL_COLOR_ATTACHMENT0, GL_COLOR_ATTACHMENT1 };
glDrawBuffers(config.num_color_buffers, attachments);
```
## UI库
- [NanoGUI is a a minimalistic cross-platform widget library for OpenGL 3.x. It supports automatic layout generation, stateful C++11 lambdas callbacks, a variety of useful widget types and Retina-capable rendering on Apple devices thanks to NanoVG by Mikko Mononen. Python bindings of all functionality are provided using pybind11. ](https://github.com/wjakob/nanogui)
Expand Down
4 changes: 4 additions & 0 deletions cpl/Java.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

- 编码
- Java默认字符是Unicode编码,而String类型的编码方式与JVM编码方式都与本机操作系统的默认字符集有关
- [OpenJDK ](https://openjdk.org/)
- jdk1.8需要maven3.3及以上
- jdk17需要maven3.8.8及以上


## 语言特性

Expand Down
4 changes: 4 additions & 0 deletions cpl/cplusplus.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,17 @@ base + sizeof * 偏移量,数组指针好像就是这样的,用*(a+b)访
- [PDFHummus is a Fast and Free C++ Library for Creating, Parsing an Manipulating PDF Files and Streams.](https://github.com/galkahana/PDF-Writer)
- [Software optimization resources,涉及很多底层的技术和文档,值得去看看](https://www.agner.org/optimize/#manuals)
- [Calling conventions for different C++ compilers and operating systems](https://www.agner.org/optimize/calling_conventions.pdf),更新到2023年的技术
- [微软出品C++下一代的多态Proxy: Next Generation Polymorphism in C++](https://github.com/microsoft/proxy)
## 工具
- [C++在线编译器,可以查看汇编等细节](https://godbolt.org/)
- [C++分析,可看到预处理状态](https://cppinsights.io/)
- [C++Benchmark](https://quick-bench.com/q/6tDxsmk3FMX55B8W1RrdiG_s7_k)
## 观点
### 里缪
#### 2024
> 我看标准的这些机制设计和其他一些架构,其中很重要的一条原则就是追求一致性。不仅是美学上的追求,一旦符合这种一致性,系统本身就具备适应变化的能力,从而能够抵抗非连续性问题。一切本质的东西都很简单,且具有美感。设计之初就追求一致性,本质是一种多阶思维,看似麻烦,往往能够解决很多未能提前发现的问题。
>> 很多架构都是一致性的体现,一个项目之初如果不用架构,后面慢慢修改抽象,不断演进最后发现跟已有架构一个思路
9 changes: 9 additions & 0 deletions dev-note/maven.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
配置好环境后,使用vscode开发,不使用IDE
- mvn test 跑test下的所有类
- mvn test -Dtest=ReportTest 跑test下指定的类
- mvn compile 编译
- mvn clean
- mvn package
- mvn install
- mvn clean install -Dmaven.test.skip=true

## itext7

Expand All @@ -16,3 +21,7 @@ PdfFont f3 = PdfFontFactory.createFont("C:/Windows/Fonts/simhei.ttf", PdfEncodin
document.add(new Paragraph("hellos你好").setFont(f2));
document.add(new Paragraph("hellos你好").setFont(f3));
```

## 工具

[ Spring Initializr在线生成工程模板](https://start.spring.io/)
8 changes: 7 additions & 1 deletion dev-note/pkg.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,10 @@ set(VCPKG_LIBRARY_LINKAGE dynamic)
set(VCPKG_PLATFORM_TOOLSET v140)
```

# []()
# [vfox](https://github.com/version-fox/vfox)

[文档](https://vfox.lhan.me/)

- 绑定到shell中
- vfox availabel 查看插件
- vfox search java 查看所有版本
2 changes: 2 additions & 0 deletions index/book-info.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@

## online

- [关于WebGL的shader的免费书籍The Book of Shaders -- by Patricio Gonzalez Vivo and Jen Lowe](https://thebookofshaders.com/)
-
- [Physically Based Rendering](https://www.pbr-book.org/3ed-2018/contents)
- [设计数据密集型应用 - 中文翻译](http://ddia.vonng.com/#/)
- [github](https://github.com/Vonng/ddia)
Expand Down
2 changes: 2 additions & 0 deletions web/framework.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# [Vue 前端框架]()
> 一种前端开发框架,较小的框架
- 2024-5-8,开发中,SFC模式中的props中不能含key,那是预留字段,开发中没有问题,部署出去就会出现问题。

## 关键流程

页面url变化刷新内容
Expand Down

0 comments on commit 5f55959

Please sign in to comment.