FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
raylib-phpcpp/examples/utils.php at master · oraoto/raylib-phpcpp · GitHub
This repository was archived by the owner on Dec 18, 2021. It is now read-only.
oraoto
/
raylib-phpcpp
Public archive
Notifications
You must be signed in to change notification settings
Fork
0
Star
6
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
raylib-phpcpp
/
examples
/
utils.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (23 loc) · 645 Bytes
Breadcrumbs
raylib-phpcpp
/
examples
/
utils.php
Copy path
File metadata and controls
26 lines (23 loc) · 645 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
function
SetModelMaterialTexture
(
$
model
,
$
materialIdx
,
$
mapIdx
,
$
texture
)
{
$
materials
=
$
model
->
materials
;
$
material
=
$
materials
[
0
];
SetMaterialTexture
(
$
material
,
$
mapIdx
,
$
texture
);
$
materials
[
0
] =
$
material
;
$
model
->
materials
=
$
materials
;
}
function
SetModelMaterialShader
(
$
model
,
$
materialIdx
,
$
shader
)
{
$
materials
=
$
model
->
materials
;
$
material
=
$
materials
[
$
materialIdx
];
$
material
->
shader
=
$
shader
;
$
materials
[
0
] =
$
material
;
$
model
->
materials
=
$
materials
;
}
function
SetShaderLoc
(
$
shader
,
$
idx
,
$
loc
)
{
$
locs
=
$
shader
->
locs
;
$
locs
[
$
idx
] =
$
loc
;
$
shader
->
locs
=
$
locs
;
}
Back
|
FazBrowse Home
|
New Git URL