Commit Graph

13 Commits

Author SHA1 Message Date
1483ec8462 Libraries (box_lib, buf2d, libimg, tinygl): optimize function import (#231)
Libraries (box_lib, buf2d, libimg, tinygl): optimize function import

Programs updated:
- gears, test3, test_glu1, test_glu2,
- test_array1, textures0, textures1, textures2,
- ctrldemo, editbox_ex, crypt_files, img_transform,
- scrshoot, t_edit, cnc_control, cnc_editor

Reviewed-on: #231
Reviewed-by: Mikhail Frolov <mixa.frolov2003@gmail.com>
Reviewed-by: Ivan B <dunkaist@noreply.localhost>
Co-authored-by: IgorA <aie85playm@gmail.com>
Co-committed-by: IgorA <aie85playm@gmail.com>
2025-07-14 08:20:32 +02:00
c18da5afae TinyGL: Added gluDisk. Fixed args in gluCylinder and gluSphere (#223)
TinyGL:
- Fixed setting of `GL_FRONT_AND_BACK` mode;
- Fixed setting of `GL_SPOT_DIRECTION` angle;
- Optimization of drawing triangles and lines;
- Input parameters are adjusted to the OpenGL standard
  in `gluCylinder` and `gluSphere` functions;
- Added `gluDisk` function (the gluDisk function draws
  a disk-shaped quadric figure);
- Optimize function `calc_buf`.

Flag:
- Added lighting.

info3ds, info3ds_u, test_glu0, test_glu1, test_glu2,
textures0, textures1, textures2:
- Updated programs using `gluCylinder` and `gluSphere`.

Reviewed-on: #223
Reviewed-by: Ivan B <dunkaist@noreply.localhost>
Reviewed-by: Max Logaev <maxlogaev@proton.me>
Co-authored-by: IgorA <aie85playm@gmail.com>
Co-committed-by: IgorA <aie85playm@gmail.com>
2025-05-04 20:00:04 +02:00
03cfdeb50f TinyGL: Bug fixes. info3ds, info3ds_u, vox_tgl: Related changes (#210)
TinyGL:
- The `depth` parameter in the `glClearDepth` function is now `qword` instead of `dword`.
- Fixed bug with z-buffer (the edges were cut off incorrectly, the coordinates in it were from 0 to 1, but should be from -1 to 1)
- Optimized array functions: `glDrawArrays`, `glDrawElements`

info3ds, info3ds_u, vox_tgl:
- Removed unnecessary operations after fixing a bug with the z-buffer.

Reviewed-on: #210
Reviewed-by: Max Logaev <maxlogaev@proton.me>
Co-authored-by: IgorA <aie85playm@gmail.com>
Co-committed-by: IgorA <aie85playm@gmail.com>
2025-04-15 14:40:41 +02:00
IgorA
9a54fc6aed tinygl: add some double functions, add bcc32 example
libimg: small optimize

git-svn-id: svn://kolibrios.org@8408 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-14 16:48:32 +00:00
IgorA
f5228c717f tinygl: fix struct ZBuffer, clean code
git-svn-id: svn://kolibrios.org@8174 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-11-11 20:32:44 +00:00
IgorA
6ac952ed64 new program 'img_transform',
small fix in 'tinygl.obj'

git-svn-id: svn://kolibrios.org@7929 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-05-16 14:36:52 +00:00
f26b88fc9a move tinygl.obj to /sys/lib, fix path
git-svn-id: svn://kolibrios.org@6737 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-11-22 12:21:04 +00:00
IgorA
6d1c3cbf93 change path to 'kolibrios'
git-svn-id: svn://kolibrios.org@6288 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-02-23 18:26:14 +00:00
IgorA
a97271f298 add scale limits, optimize code
git-svn-id: svn://kolibrios.org@6200 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-02-12 20:31:07 +00:00
IgorA
ed44ecca04 add example with panorama, modify other examples
git-svn-id: svn://kolibrios.org@6189 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-02-10 18:41:35 +00:00
7c44fcb552 remove sys_colors_new from macros.inc, update info3ds, TynyGL examples
git-svn-id: svn://kolibrios.org@6164 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-02-07 18:37:13 +00:00
IgorA
84cfd5cf57 fix library and update example 'textures1'
git-svn-id: svn://kolibrios.org@6145 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-02-05 20:49:30 +00:00
IgorA
3a7404eddd fix in 'gluSphere', new textures example
git-svn-id: svn://kolibrios.org@6143 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-02-05 16:58:30 +00:00